Jeff and Periods

Problem Name:
Jeff and Periods
Site:CodeForces
Links:
Tags:
Problem setters: