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