def moveDiscs(start, tmp, end, numDiscs):
    if numDiscs == 1:
        print("Move from", start, "to", end)
    else:
        # Move all but one from start to tmp
        moveDiscs(start, end, tmp, numDiscs-1)
        # Move one from start to end
        #moveDiscs(start, tmp, end, 1)
        print("Move from", start, "to", end)
        # Move all but one from tmp to end
        moveDiscs(tmp, start, end, numDiscs-1)
    
moveDiscs("left", "middle", "right", 4)