#include<bits/stdc++.h> using namespace std; int main(){ long long x,z; double c,a; cin>>x>>z; cin>>c; x=x-2*z; cout<<x<<endl; return 0; }