//d050 時區(刪掉[和]就過了)[#include <iostream>
using namespace std;
int main (){ int a; cin >>a; if (a<15//避免答案變成負數 ){ a=a+24; } cout<<a-15//換算 ;}]