#include "bits/stdc++.h"
#define rep(i,a,n) for(int i = (a);i < (n);i++)
typedef unsigned long long ull;
typedef long long ll;
using namespace std;

int main(){
    
    int n ;
    cin >> n;
    cout << (n-30)/2 << endl;
    
    return 0;
}
