1
2
3
4
5
6
7
8
9
#include <iostream>
using namespace std;
int main() {
int R1, R2, S;
cin >> R1 >> S;
R2 = S * 2 - R1;
cout << R2;
}