h, m = map(int, input().split(':')) q, r = divmod(m+5, 60) h += q h %= 24 print(str(h).zfill(2)+':'+str(r).zfill(2))