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