import re


def extract_version_position(input_data: str) -> int:
    """Extracts version position from a Manuscript Tracking No.

    example:

    >>> extract_version_position('01-02-2017-SR-eLife-10002R2')
    2
    >>> extract_version_position('01-02-2017-SR-eLife-10002R1')
    1
    >>> extract_version_position('01-02-2017-SR-eLife-10002')
    0

    :param input_data: str
    :return: int
    """
    position = 0
    result = re.search(r'(R\d{1,2})', input_data)
    if result:
        position = int(result.group().replace('R', ''))

    return position