from typing import * def word_index(word: str) -> int: """ Finds index of given word. Raises ValueError if not found. """ def get_word(index: int) -> str: """ Returns word on position 'index'. """