#34996: python 一行解


1554101-0@g.puiching.edu.mo (P6A29_1300題了)


print((int(input())+9)%24)