#yuki_525 h,m=map(int,raw_input().split(':')) m1=m+5 if m1>=60: m1=m1-60 h=h+1 if h>=24: h=h-24 print str('%02d' % h)+':'+str('%02d' % m1)