UVA468 Key to Success

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=409 [PDF](https://uva.onlinejudge.org/external/4/p468.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA468/dfa4e40b76b6024d7fd80d4cf689cb3bf08d4a53.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA468/22f3dab3bb7204d41f5430950e006291e5db00b1.png)