include<bits/stdc++.h>

using namespace std;
int main()
{
double f,c;
cin>>f;
c=(f-32)*5/9;
printf("%.3lf",c);
}