UVA357 Let Me Count The Ways

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA357/126bbf087d037ae1d06288e1a88982c519df6c17.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA357/67011a350aa09d42d233b58aeb6c715096f0f990.png)