UVA224 Kissin' Cousins

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=160 [PDF](https://uva.onlinejudge.org/external/2/p224.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA224/268af4203dbc9287984e9babc5c2087e0edce44e.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA224/59ead7beb02743f8f0cec083de7b35c62c1ea104.png)