from typing import Any


def get_first_row_index(sheet: Any, header_row_index: int) -> int:
    """Check if the sheet is a a/b/prelims export.

    HEADER
    A-final
    1
    2
    3
    B-final
    4
    5
    6
    Prelims
    7
    ...
    """
    if "final" in sheet.cell_value(header_row_index + 1, 0).lower():
        return header_row_index + 2
    else:
        return header_row_index + 1