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