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

