#include<iostream>
using namespace std;
int main() { int f; double t=0; cin>>f; t=5*(f-32)/9; printf("%.5lf",t); return 0; }