from typing import List


def parse_instruction(line: str) -> List[str]:
    """Get a list with directions for input line"""
    allowed_directions = ["e", "se", "sw", "w", "nw", "ne"]
    directions = list()
    partial_direction = str()
    for char in line:
        if (partial_direction + char) in allowed_directions:
            directions.append(partial_direction + char)
            partial_direction = str()
        elif char in allowed_directions:
            directions.append(char)
        else:
            partial_direction += char
    return directions