#include<iostream> #include<cstdio> using namespace std; int main(){ double c,f; cin>>f; printf("%0.5f\n",5*(f-32)/9); return 0; }