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