h,m=map(int,input().split(':')) m+=5;h=(m//60+h)%24 m=m%60 m='0'+str(m) if m<10 else str(m) h='0'+str(h) if h<10 else str(h) print(h+':'+m)