#38822: _c++


s1110083@dmhs.kh.edu.tw (d36351)


#include<iostream>
 
using namespace std;
 
int main(){
 
int n;
 
while(cin>>n){
cout<<(24+((n-15)%25))%24<<endl;
}
 
}