def name_to_number(name):
    """Take string name as input (rock-spock-paper-lizard-scissor) and returns integer (0-1-2-3-4)
    """    
    if name == "rock":
        return 0
    elif name == "spock":
        return 1
    elif name == "paper":
        return 2
    elif name == "lizard":
        return 3
    elif name == "scissor":
        return 4
    else:
        return "Error"