UVA10669 Three powers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1610 [PDF](https://uva.onlinejudge.org/external/106/p10669.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10669/8686507d4d84b80855416fd5ecd24ea76fdd5516.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10669/99077bd941430aa41c235041eb56f4d54f4a1fb3.png)

Output Format

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