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