A - New Year 解説 /

実行時間制限: 2 sec / メモリ制限: 256 MB

配点 : 100

問題文

1230 日の M 時から次の年になるまでは何時間か、求めてください。

制約

  • 1≦M≦23
  • 入力は全て整数

入力

入力は以下の形式で標準入力から与えられる。

M

出力

1230 日の M 時から次の年になるまでが x 時間のとき、x を出力せよ。


入力例 1

21

出力例 1

27

1230 日の 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