M = int(eval(input()))

ans = 48-M



print(ans)
def solve():

    M = int(eval(input()))

    ans = 48-M

    return ans

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

def solve():
    M = int(eval(input()))
    ans = 48 - M
    return ans


print((solve()))

-M = int(eval(input())) -ans = 48 - M -print(ans) +def solve(): +    M = int(eval(input())) +    ans = 48 - M +    return ans + + +print((solve()))