a, b = map(int, input().split(':')) b += 5 a += b/60 a %= 24 b %= 60 print(str(a)+":"+str(b))