def specified_element(nums, N):
    return [row[N] for row in nums if isinstance(row, (list, tuple)) and -len(row) <= N < len(row)]