#include <iostream> #include<cstdio> using namespace std; int main() { float f; cin >> f; float c = 5.0/9*(f-32); printf("%.3f",c); }