hh, mm = map(int, input().split(':')) mm += 5 if mm >= 60: hh = (hh + 1) % 24 mm %= 60 print('{:02d}:{:02d}'.format(hh, mm))