100840: [AtCoder]ABC084 A - New Year

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

How many hours do we have until New Year at $M$ o'clock (24-hour notation) on $30$th, 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 $30$th, December, print $x$.


Sample Input 1

21

Sample Output 1

27

We have $27$ hours until New Year at $21$ o'clock on $30$th, December.


Sample Input 2

12

Sample Output 2

36

Input

题意翻译

题目描述 请问从今年的12月30日的M点钟到明年的1月1日要多久,输出时间。(M是一个正整数) 输入输出格式 输入格式 第一行一个正整数M。 输出格式 第一行一个正整数:输出从今年的12月30日的M点钟到明年的1月1日要多久的时间。 第二行:换行 感谢@鼬神 提供的翻译

加入题单

算法标签: