Extreme Wealth

아직 제출이 없습니다시간 제한3초메모리 제한256 MB

문제

You have a friend working in casino and you decided to use it to your advantage. You'll play Red or Black exactly R+BR+B times and using your insider you know that exactly RR times the ball will fall on Red, while all the other BB times the ball will fall on Black.

You are starting with initial capital of 11 and before each spin of the roulette you can take any part of your current money and bet it either on Red or Black. You cannot bet on both in one spin. All the money you don't bet remains with you. If you guess the color correctly you get back double the bet, otherwise you lose the bet.

For what maximal XX you can guarantee you capital to be at least XX at the end of the game (if you play optimally)? If X>109X > 10^{9}, you don't really care about the exact value, so just print "Extreme Wealth".

입력

The only line contains two integers RR and BB (0R,B10130 \le R, B \le 10^{13}).

출력

Print the maximal value of XX if it is not more than 10910^{9}, otherwise print "Extreme Wealth" (without quotes).

Answer "Extreme Wealth" will be considered correct if the correct value of XX is at least 0.991090.99 \cdot 10^{9}. Answer XX' will be considered correct if the actual value of XX is at most 1.011091.01 \cdot 10^{9} and XXX106\frac{|X' - X|}{X} \le 10^{-6}.