#include <iostream>using namespace std;
int main (){ int h; cin >> h; cout << (h+24 - 15) % 24 << endl; return 0;}
#include using namespace std; int main (){ int h; cin >> h; cout << (h+24 - 15) % 24 << endl; return 0;} 真6老鐵
#include using namespace std;
真6老鐵