#include<iostream> #include<iomanip> using namespace std; int main(){ double F; cin>>F; cout<<fixed<<setprecision(2)<<(F-32)/9*5<<endl; return 0; }