a = int(input()) h, m = divmod(a, 100) print(f"{10 + h}:{int(m * 0.6):02d}")