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