UVA12156 Match Maker

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3308 [PDF](https://uva.onlinejudge.org/external/121/p12156.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12156/86f87c24587fb458565d34dec322a6f7fadf01c1.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12156/482097d5eb68a145de757762f961db25e9aa9dcc.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12156/599aa13084f4870a136a5db998817dfd24f21609.png)