A,B = map(int,input().split(":")) B += 5 if B >= 60: A += 1 B -= 60 print(str(A) + ":" + str(B))