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