hh, mm = [int(i) for i in input().strip().split(':')] hh = (hh + (mm + 5) // 60) % 24 mm = (mm + 5) % 60 print('{:02d}:{:02d}'.format(hh, mm))