t = input().split(":") h = t[0] m = t[1] h = int(h) m = int(m) m += 5 if m >= 60: m -= 60 h += 1 if h >= 24: h -= 24 print(f'{h:02}:{m:02}')