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