https://www.acmicpc.net/problem/3046
#include <iostream> using namespace std; int main() { int r,s; cin >> r >> s; cout << 2*s-r; }