Finite or not?

Problem Name:
Finite or not?
Site:CodeForces
Links:
Tags:
Problem setters: