Hashmat the Brave Warrior

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=996 [PDF](https://uva.onlinejudge.org/external/100/p10055.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10055/11356711b212401c0b853d27cab47d09bab78f29.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10055/8393fe66cccf72690767731881dfa506fd6c1f9a.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10055/651dfafbff45f01f707adeacbbc72f6801e6f469.png)

输入输出样例

输入样例 #1

10 12
10 14
100 200

输出样例 #1

2
4
100