h, m = map(int, input().split(':')) m += 5 h += m / 60 m %= 60 h %= 24 print("%02d:%02d" % (h,m))