Petya and Square

Problem Name:
Petya and Square
Site:CodeForces
Links:
Tags:
Problem setters: