UVA358 Don't Have A Cow

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=294 [PDF](https://uva.onlinejudge.org/external/3/p358.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA358/9cc7eb97b36bee97b5ae63272ebaf0cf8db2fe2b.png)

Input Format

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

Output Format

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