UVA11253 Fractal

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2220 [PDF](https://uva.onlinejudge.org/external/112/p11253.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11253/2984eebc27651bd14fba2b00fb63c57dbee4599b.png)

Input Format

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

Output Format

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