UVA12833 Daily Potato

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4698 [PDF](https://uva.onlinejudge.org/external/128/p12833.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12833/6b231b1394cb633af22f65aac9d8251834aa7aa8.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12833/1fedfd9ce76bbfd3c70af271ede3c02d4f077eaf.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12833/1c589f010624c1ba8b495017a133a9b87e9dec98.png)