#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 .
- Suppose that the performance of the user in the contest is .
- Then, the new rating of the user will be the avarage of and .
For example, if a user with rating competes in a contest and gives performance , his/her new rating will be , the average of and .
Takahashi's current rating is , and he wants his rating to be exactly after the next contest.
Find the performance required to achieve it.
Constraints
- All input values are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the performance required to achieve the objective.
Sample Input 1
2002
2017
Sample Output 1
2032
Takahashi's current rating is .
If his performance in the contest is , his rating will be the average of and , which is equal to the desired rating, .
Sample Input 2
4500
0
Sample Output 2
-4500
Although the current and desired ratings are between and , the performance of a user can be below .