| 2025 USP Try-outs |
|---|
| Finished |
In the ancient and majestic city of Shanghai, future stage of the ICPC World Finals, a young programmer named Kai dreams of achieving the mastery of his mentor, the legendary Master Wei.
One day, while debugging complex code at the Wild Goose Pagoda, Kai asked, "Master, your experience is as vast as the Yellow River. When will my programming journey be exactly half of yours?"
Master Wei, with an enigmatic smile, replied: "Little grasshopper, experience is measured by years of practice. I started programming in year $$$W$$$, and you started in year $$$K$$$. There will come an exact year when my years of practice will be double yours. Find that year, and you will find the clarity you seek."
Help Kai solve his master's riddle.
The input consists of a single line with two integers $$$W$$$ and $$$K$$$ ($$$0\leq W \lt K \leq 10^9$$$), representing the year Master Wei started programming and the year Kai started, respectively.
Print a single number: the year when the master's experience will be exactly double Kai's.
1975 1995
2015
1989 2007
2025
0 1000000000
2000000000
| Name |
|---|


