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