#include<iostream> using namespace std; int main(){ int a; double c; cin>>a; c=5.0/9.0*(a-32.0); printf("%.3lf",c); }