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