UVA887 Revolutionary Calendar

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=828 [PDF](https://uva.onlinejudge.org/external/8/p887.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA887/81ac08f2602ce2058a9bddb9d5fce032a79b24bb.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA887/626e6e3b5310a8b93201975d5b047c7758dfcb42.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA887/7dd4cc5283fdbaca7f7924e267a26fa9f98b1460.png)