I am fibonacci number python error

my code is there giving error.

Traceback (most recent call last):
File “./prog.py”, line 21, in
EOFError: EOF when reading a line



please note input - it cant simply stored in integer variable

well python can manage large integer but you cant take square root of that number because in math library parameters are in double

may be my old answer for this question help you :slight_smile: -https://discuss.codechef.com/questions/74191/nzec-run-time-error-in-python

but this same code accepted by hackerrank same question