from typing import Iterator
from typing import Any
from typing import List


def take(it: Iterator[Any], n: int) -> List[Any]:
    """Take n elements of the iterator."""
    return [next(it) for _ in range(n)]