#include <iostream>
using namespace std;
int main() {
int h;
// 讀取台灣時間 (0-23)
while (cin >> h) {
// 計算美國山區時間
// 台灣快 15 小時,所以美國是 h - 15
// 為了處理負數,先加 24 再減 15,最後對 24 取餘數
int a = (h + 9) % 24; cout << a<< endl;
}
return 0;
} 這樣就完成了