#abc076a. [abc076_a]Rating Goal

[abc076_a]Rating Goal

Problem Statement

Takahashi is a user of a site that hosts programming contests.
When a user competes in a contest, the rating of the user (not necessarily an integer) changes according to the performance of the user, as follows:

  • Let the current rating of the user be aa.
  • Suppose that the performance of the user in the contest is bb.
  • Then, the new rating of the user will be the avarage of aa and bb.

For example, if a user with rating 11 competes in a contest and gives performance 10001000, his/her new rating will be 500.5500.5, the average of 11 and 10001000.

Takahashi's current rating is RR, and he wants his rating to be exactly GG after the next contest.
Find the performance required to achieve it.

Constraints

  • 0leqR,Gleq45000 \\leq R, G \\leq 4500
  • All input values are integers.

Input

Input is given from Standard Input in the following format:

RR GG

Output

Print the performance required to achieve the objective.


Sample Input 1

2002
2017

Sample Output 1

2032

Takahashi's current rating is 20022002.
If his performance in the contest is 20322032, his rating will be the average of 20022002 and 20322032, which is equal to the desired rating, 20172017.


Sample Input 2

4500
0

Sample Output 2

-4500

Although the current and desired ratings are between 00 and 45004500, the performance of a user can be below 00.