Calculate to digits. That's all. :) (really)
Input Specification
: Number of digits of to compute
Output Specification
A single line containing non-space separated digits of , with no decimal point. Do not round the last digit, just truncate it.
Constraints
Subtask 1 [20%]
Subtask 2 [20%]
Subtask 3 [60%]
Sample Input
5
Sample Output
31415
Comments
Probably need "chudnovsky algorithm".