AtCoder Beginner Contest 084 - New Year

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-----
21

-----Sample Output-----
27

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

Source: atcoder | Difficulty: EASY


Solutions:
print(48 - int(input().strip()))


print(21 + 27 - int(input()))


time = int(input())
print(24 - time + 24)


m = int(input())
print(24 - m + 24)


M = int(input())
print(24 * 2 - M)


n = int(input())
print(int(24 - n + 24))


M = int(input())
aa = 48 - M
print(aa)


M = int(input())
print(str(24 - M + 24))


m = int(input())
print(24 * 2 - m)


from datetime import datetime, date
dt = datetime(date.today().year, 12, 30, int(input()), 0, 0)
td = abs(dt - datetime(dt.year + 1, 1, 1))
answer = int(td.total_seconds() / (60 * 60))
print(answer)


M = int(input())
print(48 - M)


w = int(input())
print(48 - w)


m = int(input())
x = 48 - m
print(x)


M = int(input())
M = 24 - M + 24
print(M)


print(48 - int(input()))


M = int(input())
answer = 48 - M
print(answer)


y = int(input())
print(48 - y)


hours = int(input())
print(48 - hours)


m = int(input())
n = 48 - m
print(n)


num = int(input())
print(24 - num + 24)


M = input()
N = 48 - int(M)
print(N)


m = int(input())
ans = 24 - m + 24
print(ans)


m = int(input())
print(48 - m)


M = int(input())
print(str(48 - M))


M = int(input())
if 1 <= M <= 23:
	print(48 - M)


T = int(input())
ans = 24 - T + 24
print(ans)


n = int(input())
print(48 - n)


M = int(input())
res = 48 - M
print(res)


N = int(input())
print(24 * 2 - N)


a = int(input())
ans = 48 - a
print(ans)


x = int(input())
print(24 - x + 24)


S = int(input())
day = 24 + (24 - S)
print(day)


def main():
	time = input()
	remaining_hour = 48 - int(time)
	print(remaining_hour)

def __starting_point():
	main()
__starting_point()


t = input()
T = int(t)
print(48 - T)


a = int(input())
print(48 - a)


M = int(input())
x = 24 + (24 - M)
print(x)


nancy = int(input())
print(24 - nancy + 24)


t = int(input())
print(24 - t + 24)


import sys
sys.setrecursionlimit(10 ** 6)
m = int(input())
print(24 - m + 24)


M = int(input())
A = 24 + 24 - M
print(A)


temp = input()
b = int(temp)
print(48 - b)


print(int(input()) * -1 + 48)


m = input()
ans = 48 - int(m)
print(ans)


M = int(input())
x = 48 - M
print(x)


hour = int(input())
print(24 - hour + 24)


n = int(input())
print(24 * 2 - n)


time = int(input())
Ans = 48 - time
print(Ans)


T = int(input())
print(int(48) - T)


t = int(input())
print(48 - t)


a = int(input())
print(int(24 + (24 - a)))


M = int(input())
if 1 <= M and M <= 23:
	result = 48 - M
	if result >= 0:
		print(result)


a = int(input())
b = 48 - a
print(b)


s = int(input())
print(48 - s)


print(48 - int(input()) % 24)


print(24 - int(input()) + 24)


N = int(input())
print(48 - N)


m = input()
a = 24 - int(m) + 24
print(a)


M = input()
M = int(M)
ans = 48 - M
print(ans)


l = int(input())
print(48 - l)


a = input()
b = 24 - int(a)
c = 24 + b
print(c)


p = int(input())
print(24 + (24 - p))


num = int(input())
print(48 - num)


A = int(input())
print(24 - A + 24)


M = int(input())
time_remaining = 48 - M
print(time_remaining)


N = int(input())
print(24 + 24 - N)


print('%d' % (48 - int(input())))


Year = 48
print(Year - int(input()))


print('{}'.format(24 - int(input()) + 24))


n = int(input())
r = 24 - n
print(24 + r)


x = int(input())
print(48 - x)


s = int(input())
print(24 - s + 24)


h = int(input())
print(24 - h + 24)


m = int(input())
n = 24 - m
print(n + 24)


print('{}\n'.format(48 - int(input())))


def main():
	m = int(input())
	print(48 - m)
main()


print(str(48 - int(input())))


print(eval('48-' + input()))


print(max(0, 48 - int(input())))


m = int(input())
hours = 24
print(24 - m + 24)


h = int(input())
print(48 - h)


M = int(input())
ans = 24 - M + 24
print(ans)


i = int(input())
print(24 - i + 24)


print(2 * 24 - int(input()))


a = input()
x = int(a)
print(48 - x)


ans = 48 - int(input())
print(ans)


M = int(input())
total = 24 - M + 24
print(total)


m = int(input())
ny = 48 - m
print(ny)


n = int(input())
a = 24 - n
print(24 + a)


i1 = int(input())
print(24 - i1 + 24)


x = int(input())
ans = 24 + (24 - x)
print(ans)


i = int(input())
print(24 * 2 - i)


I = int(input())
print(24 + 24 - I)


first = input()
m = int(first)
print(48 - m)


hour = int(input())
print(48 - hour)


M = int(input())
time = 24 - M
print(time + 24)


n = int(input())
res = 48 - n
print(res)


s = input()
n = int(s)
print(48 - n)


n = int(input())
d = 48 - n
print(d)


M = int(input())
X = 24 + (24 - M)
print(X)


m = int(input())
x = 24 + (24 - m)
print(x)


S = int(input())
print(24 + (24 - S))


n = int(input())
print(abs(n - 24) + 24)


number = int(input())
h = 48 - number
print(h)


print('{}'.format(48 - int(input())))


print(24 + abs(24 - int(input())))


m = int(input())
result = 48 - m
print(result)


M = int(input())
T = 24 - M + 24
print(T)


m = int(input())
m = abs(m - 24)
print(m + 24)


i = int(input())
print(48 - i)


A = int(input())
print(48 - A)


n = int(input())
print(48 - n, flush=True)


N = int(input())
K = 48 - N
print(K)


M = input()
M = int(M)
N = 24 - M
print(N + 24)


M = int(input())
Time = 48 - M
print(Time)


w = int(input())
print(24 + 24 - w)


M = int(input())
print('{}'.format(48 - M))


X = int(input())
print(48 - X)


M = int(input())
r = 48 - M
print(r)