h,m=map(int,input().split(':')) m+=5 h=(h+m//60)%24 m%=60 print(('0'+str(h))[-2:]+':'+('0'+str(m))[-2:])