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