#include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>b; a=(b-32)/1.8; printf("%.2lf",a); return 0; }