#include<iostream> using namespace std; int main() { float c,f; cin>>f; cout<<5*(f-32)/9; return 0; }