def drop(num, iterator):
    """Drop the first n elements on an iterator"""

    try:
        for _ in range(num):
            next(iterator)
    except StopIteration:
        return iterator

    return iterator