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