#include<iostream> using namespace std; int main(){ int F,C; cin>>F; C=5*(F-32)/9; cout<<C; return 0;