Codeforces Round #483 (Div. 2) C. Finite or not? (数学)

NoSuchKey