from typing import List


def _find_words_after(f, *keywords: str) -> List[str]:
    """Searches for words that follow keywords.

    The line from file f is read. Then it is split into words (by spaces).
    If its first words are the same as keywords, then remaining words (up to
    newline character) are returned. Otherwise, new line is read.

    Parameters
    ----------
    f : iterable of text lines
        File in which words are searched.
    *keywords : list of str
        List of keywords after which right words are. The order is important.

    Returns
    -------
    words : list of str
        The list of words that follow keywords.
    """
    for line in f:
        words = line.split()
        i = 0
        for w, kw in zip(words, keywords):
            if w != kw:
                break
            i += 1
        if i >= len(keywords):
            return words[i:]
    raise EOFError