#include<iostream> using namespace std; int main(){ double c,F; cin>>F; c=5.0/9*(F-32); printf("%.2lf\n",c); return 0; }