
def PGMinute2():
    print("Votre horaire (hr, mn)? ", sep="", end="")
    hr = int(input())
    mn = int(input())
    if mn < 59:
        mn += 1
    else:
        mn = 0
        if hr < 23:
            hr += 1
        else:
            hr = 0
    print("Une minute plus tard: ", end="")
    if hr == 0 and mn == 0:
        print("Minuit")
    else:
        print(hr, "h", sep="", end="")
        if mn != 0:
            print(mn, "'", sep="", end="")
        print()

PGMinute2()