T1,T2 = map(int,input().split(':')) T2 += 5 T1 += T2 // 60 T1 %= 24 T2 %= 60 print('{0:>02}:{1:>02}'.format(T1,T2))