100 atcoder#ABC182A. [ABC182A] twiblr

[ABC182A] twiblr

Score : 100100 points

Problem Statement

You are on a social networking site called twiblr. In twiblr, you can follow at most 2×(2\,\times\,( the number of users following you )+100)\,+\,100 users. You are currently following BB users, and AA users are following you. At most, how many extra users can you follow now?

Constraints

  • 0A,B100000 \le A, B \le 10000
  • B2×A+100B \le 2 \times A + 100
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

Print the maximum number of extra users you can follow now.

200 300
200

You can follow at most 2×200+100=5002 \times 200 + 100 = 500 users, that is, 200200 more users than you are following now.

10000 0
20100