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