a = int(input()) t = a * 60 // 100 print('{0:02d}:{1:02d}'.format(t // 60 + 10, t % 60))