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