#include <iostream>
using namespace std;
int main(){
double f;
cin >> f;
printf("%.3f\n",(f-32)*5/9);
}