#include<bits/stdc++.h> using namespace std; int main () { long long c, f; cin>>f; c=5*(f-32)/9; cout<<fixed<<setprecision(5)<<c*1.0; return 0; }