#include <iostream> using namespace std; int main() { int F; cin >> F; cout << (F-30)/2 << endl; return 0; }