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