#include <iostream>
using namespace std;
int main()
{
double a;
cin >> a;
cout << fixed << setprecision(3) <<(a-32)/9.0*5.0;
return 0;
}