eolymp
bolt
Try our new interface for solving problems
Problems

The Fibonacci sequence

The Fibonacci sequence

Find the i-th digit in Fibonacci sequence, and output it.

Input

The single line contains the number i (1 ≤ i ≤ 200).

Output

Required to bring digit, which stands on the i-th position in the sequence.

Time limit 1 second
Memory limit 64 MiB
Input example #1
4
Output example #1
3