A - New Year
Editorial
/
Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 100 点
問題文
12 月 30 日の M 時から次の年になるまでは何時間か、求めてください。
制約
- 1≦M≦23
- 入力は全て整数
入力
入力は以下の形式で標準入力から与えられる。
M
出力
12 月 30 日の M 時から次の年になるまでが x 時間のとき、x を出力せよ。
入力例 1
21
出力例 1
27
12 月 30 日の 21 時から次の年になるまでは 27 時間です。
入力例 2
12
出力例 2
36
Score : 100 points
Problem Statement
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
- 1≤M≤23
- M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Sample Input 1
21
Sample Output 1
27
We have 27 hours until New Year at 21 o'clock on 30th, December.
Sample Input 2
12
Sample Output 2
36