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