#include<bits/stdc++.h> using namespace std; int main() { double f; double c; cin>>f; printf ("%.5lf", 5*(f-32)/9); return 0; }