Problem:
 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

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
hour = int(input())

print(48 - hour)

Solution (Python):
print(48-int(input()))

Solution (Python):
print( 48 - int(input()) )

Solution (Python):
M = input()
print 48-M

Solution (Python):
N=input()
print(48-N)

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):
print(48-int(input()))

Solution (Python):

M = int(input())

print(48-M)

Solution (Python):
M = int(input())
print(24+(24-M))

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
print(24 + (24-int(input())))

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
M=int(input())
print(24+24-M)

Solution (Python):


M = int(input())

print((24-M)+24)

Solution (Python):
print(48-int(input()))

Solution (Python):


a = int(raw_input())

print 48 - a

Solution (Python):
M = int(input())
print(24 - M + 24)

Solution (Python):
print 48 - int(raw_input())

Solution (Python):
print(48 - int(input()))

Solution (Python):
M=int(input())
print(24-M+24)

Solution (Python):
m = int(input())
print((24-m)+24)

Solution (Python):
n = int(input());print(48-n)

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):
print(24+24-int(input()))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
M=int(input())
print(24+24-M)

Solution (Python):
print(48 - int(input()))

Solution (Python):
M = int(input())
print(24 + 24 - M)

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):
print(24 + (24 - int(input())))

Solution (Python):

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

Solution (Python):
print(48-int(input()))

Solution (Python):
print(48-int(input()))

Solution (Python):
m=int(input())
print(48-m)

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
print(24+24-int(input()))

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):
n=int(input())
print(48-n)

Solution (Python):
m = int(input())
n = 48 - m
print(n)

Solution (Python):
M=int(input())
print(24+24-M)

Solution (Python):
print(-int(input())+48)

Solution (Python):
M = int(input())

print(24 - M + 24)

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(24 + (24 - m))

Solution (Python):
m = int(input())
print((24-m) + 24)

Solution (Python):
M=int(input())

print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):
m =int( input())
x = 24 - m + 24
print(x)

Solution (Python):

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

Solution (Python):
print(str(48 - int(input())))

Solution (Python):
print(48 - int(input()))

Solution (Python):
import math
import sys

def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

x = int(arr_data[0][0])

print(24-x+24)

Solution (Python):
M=int(input())
print(48-M)

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

m = ni()
print(24 + (24-m))

Solution (Python):
a=int(input())
print(24-a+24)

Solution (Python):
a = int(input())
print(48-a)

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):
a=int(input())
print(48-a)

Solution (Python):
print(48 - int(input()))

Solution (Python):
if __name__ == "__main__":
    M = int(input())
    print (24 - M + 24)

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
t = int(input())
print(24+ (24-t))

Solution (Python):
m = int(input())

print((24 - m) + 24)

Solution (Python):
a = int(input())
print(48-a)

Solution (Python):
print(48-int(input()))

Solution (Python):
n = int(input());
print(48 - n);

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):
print(48-int(input()))

Solution (Python):
N = int(input())
print(48-N)

Solution (Python):





if __name__ == '__main__':
    print(48 - int(input()))

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):

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

Solution (Python):
M = int(input())
x = 24 + (24 - M)
print(x)

Solution (Python):
m=int(input())
print(48-m)

Solution (Python):
M = int(input())
print(24+(24-M))

Solution (Python):
print(48-int(input()))

Solution (Python):
N=int(input())
print(48-N)

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
M = int(input())
print(24 + 24 - M)

Solution (Python):
print 48 - int(raw_input())

Solution (Python):
x=int(input())
print(24+24-x)

Solution (Python):
M = int(input())

print(24-M+24)

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
print(24 + 24 - int(input()))

Solution (Python):
a = int(input())
print(48-a)

Solution (Python):



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

if __name__ == '__main__':
    main()

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print (48-m)

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
t = int(input())
print(48-t)

Solution (Python):
M = int(input())
print(str(48-M))

Solution (Python):
print(24*2-int(input()))

Solution (Python):
n = int(input())

print((24 - n) + 24)

Solution (Python):
def main():
    print(48 - int(input()))

main()

Solution (Python):

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

Solution (Python):
t = int(input())
print(48-t)

Solution (Python):
a = int(input())
print(48-a)

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):
M = int(input())
print(24 + 24 - M)

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
M = int(input())
answer = 24 + 24 - M
print(answer)

Solution (Python):
def main():
    hour = int(input())
    print(24 + (24 - hour))


if __name__ == '__main__':
    main()

Solution (Python):
print(48-int(input()))

Solution (Python):


import sys

m = int(raw_input().split()[0])

sys.stdout.write('%d\n' % (48 - m))
sys.stdout.flush()

Solution (Python):
M= int(input())
ans=24+(24-M)
print (ans)

Solution (Python):
m=int(input())
a=24-m
print(24+a)

Solution (Python):
a = int(input())
print(48-a)

Solution (Python):
x = input()
print(24 - int(x) + 24)

Solution (Python):

print(48 - int(input()))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):

print(48 - int(input()))

Solution (Python):
print(48 - int(input()))

Solution (Python):

"""
https://beta.atcoder.jp/contests/abc084/tasks/abc084_a

"""
import sys
from sys import stdin
input = stdin.readline


def solve(M):
    return (24 - M) + 24


def main(args):
    M = int(input())
    ans = solve(M)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
a = int(input())
print(48-a)

Solution (Python):
print(48 - int(input()))

Solution (Python):
m=input()
print (48-m)

Solution (Python):
M = int(input())

print(48 - M)

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
n = int(input())

print(24+(24-n))

Solution (Python):
t = int(input())

print(24+24-t)

Solution (Python):
n=input()
print 48-n

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):
print(48-int(input()))

Solution (Python):
print(str(48-int(input())))

Solution (Python):
print(str(48 - int(input())))

Solution (Python):
n=int(input())
print(24+(24-n))

Solution (Python):
print(str(48-int(input())))

Solution (Python):
x = int(input())
print(48 - x)

Solution (Python):
print(48 - int(input()))

Solution (Python):


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

Solution (Python):
M = int(input())

print(48-M)

Solution (Python):
M = int(input())
x = 48 - M
print(x)

Solution (Python):
num = int(input())
print(48 - num)

Solution (Python):

M = int(input())

print(48-M)

Solution (Python):
M = int(raw_input())

print 48-M

Solution (Python):

data = int(input())
remein = (24 - data) + 24
print(remein)

Solution (Python):
M = int(input())

def main():
    ans = 48 - M
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
print(48-int(input()))

Solution (Python):
import numpy as np
import pdb

def main():
    value = int(raw_input())
    print compute(value)

def compute(value):
    finalday = 24
    remaining = 24 - value
    total = finalday + remaining
    return total

if __name__ == '__main__':
    main()

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())
print(24+24-M)

Solution (Python):
a=int(input())
print(24+(24-a))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):
def getAns(num):
    return 48-num

num = int(input())
ans = getAns(num)
print(ans)

Solution (Python):
t = input()
T = int(t)

print(48 - T)

Solution (Python):
print("{}".format(24 - int(input()) + 24))

Solution (Python):
print("{}\n".format((48-int(input()))))

Solution (Python):
m=int(input())
print(24+(24-m))

Solution (Python):
M=int(input())
print(48-M)

Solution (Python):
import fileinput
for line in fileinput.input():
    print(48 - int(line))

Solution (Python):
def solve():
	print(48 - int(input()))
solve()

Solution (Python):
T=int(input())
print(int(48)-T)

Solution (Python):
print 48 - eval(raw_input())

Solution (Python):
print(48 - int(input()))

Solution (Python):
input = eval(raw_input())
if not isinstance(input, int):
  print 'not int'
print (48 - input)

Solution (Python):
M = int(input())
twoDays = 48
print(twoDays - M)

Solution (Python):



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

print(x)

Solution (Python):






import sys

M = int(sys.stdin.readline())
x = 24 + 24 - M
print(x)

Solution (Python):


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

Solution (Python):
M=int(input())

ans=48-M

print(ans)

Solution (Python):
x = input()
print(48-int(x))

Solution (Python):
m = int(input())
print(24-m+24)

Solution (Python):
M = input()
N = 48 - int(M)
print(N)

Solution (Python):
M = int(input())

A = 24+24-M

print(A)

Solution (Python):
N=int(input())

print(24+(24-N))

Solution (Python):
M=int(input())
print(48-M)

Solution (Python):
print 48 - input()

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
from pprint import pprint as pp
def GI(): return int(raw_input())
def GIS(): return map(int, raw_input().split())

def main():
  print(24 - GI() + 24)

main()

Solution (Python):

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

if __name__=="__main__":
    main()

Solution (Python):
M = input()

rest = 24 - (int(M)%24)
print(rest+24)

Solution (Python):


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

Solution (Python):
s = input()
n = int(s)
print(48 - n)

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


if __name__ == '__main__':
    main()

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
M = int(input())
x = 24-M + 24
print(x)

Solution (Python):
M = int(input())

print(48 - M)

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(raw_input())
print 48-M

Solution (Python):
n = int(input())
print(48 - n)

Solution (Python):
print( 48 - int(input()) )

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):



m = int(input())


def calc(m):
    return 48 - m


print(calc(m))

Solution (Python):
input = int(input())
answer = 48 - input
print(answer)

Solution (Python):
print(48-int(input()))

Solution (Python):
M=((int)(input()))
print(str(48-M))

Solution (Python):
M = int(input())
Time = 48 - M
print(Time)

Solution (Python):
M = int(input())

print(24 - M + 24)

Solution (Python):
ans = 48 - int(input())

print(ans)

Solution (Python):
print(24 - int(input()) + 24)

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):
import sys

line = sys.stdin.readline()
M = int(line)

count = (24-M) + 24
print(count)

Solution (Python):
print(24+(24-int(input())))

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
print(24+24-int(input()))

Solution (Python):
a=int(input())
print(48-a)

Solution (Python):
N = int(input())
print(24+(24-N))

Solution (Python):
m = int(input())
print((24-m)+24)

Solution (Python):
print(48-int(input()))

Solution (Python):
import sys
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt, ceil, floor
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache, reduce
from operator import xor
from heapq import heappush, heappop
INF = float("inf")
sys.setrecursionlimit(10**7)


dy4, dx4 = [0, -1, 0, 1], [1, 0, -1, 0]


def inside(y: int, x: int, H: int, W: int) -> bool: return 0 <= y < H and 0 <= x < W


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


if __name__ == '__main__':
    main()

Solution (Python):
import sys
import os

def main():
  N = input()
  hour_ = 24 - N
  hour = 24 + hour_
  print hour

if __name__ == '__main__':
  main()

Solution (Python):

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

Solution (Python):


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

Solution (Python):

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

Solution (Python):
l = int(raw_input())
print 48 - l

Solution (Python):
m=int(input())
print(48-m)

Solution (Python):
a = int(input())
print(48-a)

Solution (Python):
n=int(raw_input())
print 48-n

Solution (Python):
M=int(input())
time=24-M
print(time+24)

Solution (Python):
print(48-int(input()))

Solution (Python):
print(24-int(input())+24)

Solution (Python):


import math

m = int(input())

print(48 - m)

Solution (Python):

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

Solution (Python):














two_day_hour = 48
current_hour = int(input())
print(two_day_hour - current_hour)

Solution (Python):
print str(48 - int(raw_input()))

Solution (Python):


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

Solution (Python):
M = int(input())

res = 24 + 24 - M

print(res)

Solution (Python):
M = int(input())
print(24 + (24 - M))

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())

n = 24 + (24 - M)

print(n)

Solution (Python):

 
n = input()
print(48-n)

Solution (Python):
def main():
    M = int(input())

    print(48 - M)

if __name__ == '__main__':
    main()

Solution (Python):
print(48-int(input()))

Solution (Python):
print(48-int(input()))

Solution (Python):
m=int(input())
print(24+(24-m))

Solution (Python):
print(48-int(input()))

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    n = I()

    return 48 - n



print(main())

Solution (Python):
m = int(raw_input())
print 48 - m

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())

print(48 - M)

Solution (Python):
print(48-(int(input())))

Solution (Python):
print(48 - int(input()))

Solution (Python):
print(48-int(input()))

Solution (Python):
m=input()

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

Solution (Python):
hours = int(input())
print(48-hours)

Solution (Python):
a=int(input())
print(48-a)

Solution (Python):
m =int(input())
print(48-m)

Solution (Python):
M=int(input())
print(24-M+24)

Solution (Python):
print(48 - int(input()))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
n = int(input())

ans = (24-n) + 24

print(ans)

Solution (Python):
print 48 - input()

Solution (Python):
print(48-int(input()))

Solution (Python):

"""
Created on Sat Dec 30 21:35:00 2017

@author: kanako_note
"""

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

Solution (Python):


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

Solution (Python):
m = int(input())
print(24 - m + 24)

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):

hour = int(input())

remain = 24 + (24 - hour)
        
print(remain)

Solution (Python):
m = int(input())
print(24 - m + 24)

Solution (Python):
M = int(raw_input())

print 24 + (24 - M)

Solution (Python):
s = int(input())
print(24-s + 24)

Solution (Python):
a=input()
print(48-int(a))

Solution (Python):
M = int(input())

print("{}".format(48-M))

Solution (Python):
M=int(input())
aa=48-M
print(aa)

Solution (Python):


M = int(input())

print(24-M+24)

Solution (Python):
print(48-int(input()))

Solution (Python):


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

Solution (Python):
M = int(raw_input())
print 48 - M

Solution (Python):
print("%d"%(48-int(input())))

Solution (Python):
M = int(input())
print (24 + (24 -M))

Solution (Python):
n = int(input())
print(24 + 24-n)

Solution (Python):
M = int(input())

print(48-M)

Solution (Python):


now = int(raw_input())

time = 48 - now

print time

Solution (Python):

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

Solution (Python):

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

Solution (Python):


M = int(input())

print(48 - M)

Solution (Python):
print(48 - int(input()))

Solution (Python):
n = int(input())
print(48-n)

Solution (Python):
print (48-int(raw_input()))

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
a = int(input())
ans = 48 - a
print(ans)

Solution (Python):
m=int(input())
print(48-m)

Solution (Python):
M = int(input())

print(24+(24-M))

Solution (Python):
p = int(input())
print(24 + (24 - p))

Solution (Python):
x = input()
print(48 - int(x))

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
print(48 - int(input()))

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):
print(48-int(input()))

Solution (Python):


a = int(raw_input())
b = 48 - a

print b

Solution (Python):
import sys
n=int(sys.stdin.readline())
print(48-n)

Solution (Python):
print(48-int(input()))

Solution (Python):
a = int(input())

res = 24 - a + 24

print(res)

Solution (Python):

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

Solution (Python):
import numpy as np

h = int(input())


h = 24 + 24 - h

print(h)

Solution (Python):
M = int(input())

print(48 - M)

Solution (Python):
M = int(input())
print(24 + 24 - M)

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())
print(24 + (24-M))

Solution (Python):
from pprint import pprint as pp
m=int(input())
print(24+24-m)

Solution (Python):
print 24-input()+24

Solution (Python):
print(24-int(input())+24)

Solution (Python):


import sys

def main(argv):
    line = sys.stdin.readline()
    while line:
        M = int(line.rstrip("\n"))
        print 24 - M + 24

        line = sys.stdin.readline()

if __name__ == "__main__":
    main(sys.argv)

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):



import sys

m = sys.stdin.readline().strip()
m = int(m)
print(48-m)

Solution (Python):
M=int(input())
print(48-M)

Solution (Python):
n = int(input())
print(24 - n + 24)

Solution (Python):
import sys
n = int (sys.stdin.readline())

print (24 + 24 - n)

Solution (Python):
if __name__ == '__main__':
    print(48-int(input()))

Solution (Python):
def main():
    M = int(input())
    print(24 - M + 24)

main()

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
temp=input()
b=int(temp)
print(48-b)

Solution (Python):
m = 24 - int(input())

print(m+24)

Solution (Python):
print(48-int(input()))

Solution (Python):
M = int(input())						

print(24-M+24)

Solution (Python):
M=int(input())
print(48-M)

Solution (Python):
print(48-int(input()))

Solution (Python):


a = int(raw_input())
print str(48-a)

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):
m = int(input())

ans = 24 + 24-m

print(ans)

Solution (Python):
M=int(input())

x=24+(24-M)

print(x)

Solution (Python):
M = int(input())
print(24+24-M)

Solution (Python):
print(48-int(input()))

Solution (Python):
m = int(input())
print(24 - m + 24)

Solution (Python):
M=int(input())
print(48-M)

Solution (Python):
m = int(input())
print(24 - m + 24)

Solution (Python):
def getInput():
    """

    :return: list of list of str. 1st dim: row, 2nd dim: column.
    """
    separator = ' '
    ret_array = []
    while True:
        try:
            row = input().split(sep=separator)
            ret_array.append(row)
        except EOFError:
            break
    return ret_array


g = getInput()

print(48-int(g[0][0]))

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):
M = int(input())
print(24-M+24)

Solution (Python):
a=int(input())
print(24-a+24)

Solution (Python):
import sys

M = int(sys.stdin.readline().strip())
print(48 - M)

Solution (Python):
if __name__ == '__main__':
    M = int(input())
    print((24-M) + 24)

Solution (Python):
a = int(input())

print((24-a)+24)

Solution (Python):
print(48-int(input()))

Solution (Python):
M=int(input())
print(48-M)

Solution (Python):
def slove(m):
    return 48 - m

if __name__ == "__main__":
    m = int(input())
    print(slove(m))

Solution (Python):
a = int(input())
b = 48 - a
print(b)

Solution (Python):
n = int(input())

print(48 - n)

Solution (Python):
M = int(input())
print(24 + 24 - M)

Solution (Python):
M = int(input())
print(48 - M)

Solution (Python):


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

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
M = int(input())
print(48-M)

Solution (Python):

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

Solution (Python):


M = int(raw_input())

print 24 + 24 - M

Solution (Python):
M = int(input())

print(48-M)

Solution (Python):
M = int(input())
print(24 + (24-M))

Solution (Python):
m = int(input())
print(48-m)

Solution (Python):


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

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
print (lambda x: 48-x)(input())

Solution (Python):
num = int(input())
print(24-num+24)

Solution (Python):
print 48 - input()

Solution (Python):
m = int(input())
print (24 + 24 - m)

Solution (Python):
print(24-int(input())+24)

Solution (Python):


M = int(raw_input())

print 48-M

Solution (Python):
m = int(input())
print(48 - m)

Solution (Python):
x = int(input())
print(24 - x + 24)

Solution (Python):
def solve():
    M = int(input())
    print(24 + (24 - M))


solve()

Solution (Python):
N = int(input())
print((24-N)+24)

Solution (Python):
print(48-int(input()))

Solution (Python):
N=int(input())
print(48-N)

Solution (Python):
N = int(input())
print(48 - N)

Solution (Python):
n=int(input())
print(48-n)

Solution (Python):

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

Solution (Python):
print(21+27-int(input()))

Solution (Python):
print(48 - int(input()))

Solution (Python):
print 48-input()

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

m = ni()
print(48-m)