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