eolymp
bolt
Try our new interface for solving problems
Problems

Domino

Domino

Find the number of ways to cover a rectangle $2 \cdot n$ with domino of size $2 \cdot 1$. The coverings that turn themselves into symmetries are considered different. \InputFile One integer $n~(0 < n < 65536)$. \OutputFile Print the number of coverings of rectangle.
Time limit 1 second
Memory limit 256 MiB
Input example #1
1
Output example #1
1
Input example #2
4
Output example #2
5
Author Виталий Бондаренко
Source 1997, X All-Ukrainian Informatics Olympiad