UVA12445 Happy 12

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3876 [PDF](https://uva.onlinejudge.org/external/124/p12445.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12445/ac9c06a68df9b029c0210c28d951d52ada303663.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12445/328e7e2dbcdbaa1a62772db23cc4299cedaa982b.png)