#include<bits/stdc++.h> using namespace std; int main(){ double F; cin>>F; printf("%.4lf",(F-32)/1.8); return 0; }