#include <iostream> #include <cstdio> using namespace std; int main(){ double F; cin>>F; double C; C=5*(F-32)/9; printf("%.4lf",C); return 0; }