#45850: python解法


11310495 (李仲鎧台中一中)


a=int(input())
b=a-15
if b<0:                
    print(b+24)
else:
    print(b)

#希望能幫助到您