UVA10513 Bangladesh Sequences

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1454 [PDF](https://uva.onlinejudge.org/external/105/p10513.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10513/a5334cc3159c06e1c7133fc88ef3df6b5552ae05.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10513/2b047597c5ce3eaa26d0ff95156ea85b578233f2.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10513/4e94365aa6151a5bec28de4c8a545849614dfba6.png)