UVA10246 Asterix and Obelix

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1187 [PDF](https://uva.onlinejudge.org/external/102/p10246.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10246/731e133b4cc00fc37a6de629f2b3addbd405332a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10246/54b5687fa4837e2098c2c6a9927711cc51c4ca2f.png)

Output Format

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