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