#53721: Python一行解


digua20240723@gmail.com (地呱)


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