#include <bits/stdc++.h> using namespace std; int main() { int F; double C; cin>>F; C=5*(F-32)/9; cout<<fixed<<setprecision(5)<<C; }