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