#include<bits/stdc++.h> using namespace std; int main() { int s,r1; cin>>s>>r1; int r2=2*s-r1; cout<<r2<<endl; return 0; }
蒟蒻快疯了