#include<iostream> #include<iomanip> using namespace std; int main() { int f; cin>>f; double c=5*((double)f-32)/9; cout<<fixed<<setprecision(5)<<c; }