#include<bits/stdc++.h> using namespace std; int main() { int f,c; cin>>f>>c; c=5*(f-32)/9; cout<<c; return 0; }