UVA10875 Big Math

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1816 [PDF](https://uva.onlinejudge.org/external/108/p10875.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10875/a46c1861b3cf58f23aa7dcc4cb767471922654a4.png)

Input Format

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

Output Format

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