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