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