#include<bits/stdc++.h> using namespace std; int main() { float f, c; cin >> f; c = (f - 32) * 5.0 / 9.0; printf("%.4f\n", c); return 0; }