UVA12289 One-Two-Three

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3710 [PDF](https://uva.onlinejudge.org/external/122/p12289.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12289/7e0004e024f9c73a7425525729f1e09283a3c9be.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12289/78bdce1c8320a964db7c061dea32fccb772c96ca.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12289/390fed776ecde67b0b50817b0ac4d51db42f8057.png)