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