#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; cout<<fixed<<setprecision(5)<<5.0*(a-32)/9<<endl; return 0; }