UVA155 All Squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=91 [PDF](https://uva.onlinejudge.org/external/1/p155.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA155/0fb159be7836f4823f8a402983a71952ba61fd6d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA155/32f473ca26a0ed023a3ad429f2af77aef5e390d1.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA155/b4da5dda2b1b8c170929eecb55c85c296ff7f1f0.png)