UVA125 Numbering Paths

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=61 [PDF](https://uva.onlinejudge.org/external/1/p125.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA125/2c01b1b3863b0e262ebdab9e49d0d869d64c657f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA125/1407cfa4ba0be873f9fa90f207289053a0315d27.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA125/021959b0ec72154c8b191fe9fe01107113a492d7.png)