UVA170 Clock Patience

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=106 [PDF](https://uva.onlinejudge.org/external/1/p170.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA170/32b442a790845d25e640ec1664ff98d49ab32006.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA170/369dfc5b86913404885d56d599b2add000f52e57.png)

Output Format

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