Olya and magical square

Problem Name:
Olya and magical square
Site:CodeForces
Links:
Tags:
Problem setters: