Math master

Problem Name:
Math master
Site:CodeForces
Links:
Tags: