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