h,m=map(int,input().split(":")) l,m=divmod(m+5,60) l=(l+h)%24 print(f'{l:02d}:{m:02d}')