UVA371 Ackermann Functions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=307 [PDF](https://uva.onlinejudge.org/external/3/p371.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA371/ac3363c772e998ad5406c38aa30613f44a44bb8f.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA371/6805cfd24da426cbf24b790573d12facbd6b5ea2.png)