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