
"""simple docstring"""



import os
import string
import sys


a       :						str       		=		1 << 8

a       :						List[str]       		=		{
    '''tab''': ord('''\t'''),
    '''newline''': ord('''\r'''),
    '''esc''': 2_7,
    '''up''': 6_5 + ARROW_KEY_FLAG,
    '''down''': 6_6 + ARROW_KEY_FLAG,
    '''right''': 6_7 + ARROW_KEY_FLAG,
    '''left''': 6_8 + ARROW_KEY_FLAG,
    '''mod_int''': 9_1,
    '''undefined''': sys.maxsize,
    '''interrupt''': 3,
    '''insert''': 5_0,
    '''delete''': 5_1,
    '''pg_up''': 5_3,
    '''pg_down''': 5_4,
}

a       :						str       		=		KEYMAP['''up''']
a       :						List[Any]       		=		KEYMAP['''left''']

if sys.platform == "win32":
 a       :						Union[str, Any]       		=		[]
 a       :						Optional[Any]       		=		{
     B'''\xe0H''': KEYMAP['''up'''] - ARROW_KEY_FLAG,
     B'''\x00H''': KEYMAP['''up'''] - ARROW_KEY_FLAG,
     B'''\xe0P''': KEYMAP['''down'''] - ARROW_KEY_FLAG,
     B'''\x00P''': KEYMAP['''down'''] - ARROW_KEY_FLAG,
     B'''\xe0M''': KEYMAP['''right'''] - ARROW_KEY_FLAG,
     B'''\x00M''': KEYMAP['''right'''] - ARROW_KEY_FLAG,
     B'''\xe0K''': KEYMAP['''left'''] - ARROW_KEY_FLAG,
     B'''\x00K''': KEYMAP['''left'''] - ARROW_KEY_FLAG,
 }

for i in range(1_0):
 a       :						List[str]       		=		ord(str(i))


def 			_UpperCamelCase						(    )     ->	List[Any]:





    """simple docstring"""

    if os.name == "nt":
        import msvcrt

        _UpperCAmelCase        = """mbcs"""
        # Flush the keyboard buffer
        while msvcrt.kbhit():
            msvcrt.getch()
        if len(_A   ) == 0:
            # Read the keystroke
            _UpperCAmelCase        = msvcrt.getch()

            # If it is a prefix char, get second part
            if ch in (b"\x00", b"\xe0"):
                _UpperCAmelCase        = ch + msvcrt.getch()
                # Translate actual Win chars to bullet char types
                try:
                    _UpperCAmelCase        = chr(WIN_KEYMAP[cha]   )
                    WIN_CH_BUFFER.append(chr(KEYMAP["""mod_int"""]   )   )
                    WIN_CH_BUFFER.append(_A   )
                    if ord(_A   ) in (
                        KEYMAP["insert"] - 1 << 9,
                        KEYMAP["delete"] - 1 << 9,
                        KEYMAP["pg_up"] - 1 << 9,
                        KEYMAP["pg_down"] - 1 << 9,
                    ):
                        WIN_CH_BUFFER.append(chr(1_2_6   )   )
                    _UpperCAmelCase        = chr(KEYMAP["""esc"""]   )
                except KeyError:
                    _UpperCAmelCase        = cha[1]
            else:
                _UpperCAmelCase        = ch.decode(_A   )
        else:
            _UpperCAmelCase        = WIN_CH_BUFFER.pop(0   )
    elif os.name == "posix":
        import termios
        import tty

        _UpperCAmelCase        = sys.stdin.fileno()
        _UpperCAmelCase        = termios.tcgetattr(_A   )
        try:
            tty.setraw(_A   )
            _UpperCAmelCase        = sys.stdin.read(1   )
        finally:
            termios.tcsetattr(_A       ,   termios.TCSADRAIN       ,   _A   )
    return ch







def 			_UpperCamelCase						(    )     ->	List[Any]:





    """simple docstring"""

    _UpperCAmelCase        = get_raw_chars()
    if ord(_A   ) in [KEYMAP["interrupt"], KEYMAP["newline"]]:
        return char

    elif ord(_A   ) == KEYMAP["esc"]:
        _UpperCAmelCase        = get_raw_chars()
        if ord(_A   ) == KEYMAP["mod_int"]:
            _UpperCAmelCase        = get_raw_chars()
            if ord(_A   ) >= KEYMAP["arrow_begin"] - ARROW_KEY_FLAG and ord(_A   ) <= KEYMAP["arrow_end"] - ARROW_KEY_FLAG:
                return chr(ord(_A   ) + ARROW_KEY_FLAG   )
            else:
                return KEYMAP["undefined"]
        else:
            return get_raw_chars()

    else:
        if char in string.printable:
            return char
        else:
            return KEYMAP["undefined"]

"""simple docstring"""



import os
from math import logaa


def 			_UpperCamelCase						(    _A = "base_exp.txt"   )     ->	int:





    """simple docstring"""

    _UpperCAmelCase        = 0
    _UpperCAmelCase        = 0
    for i, line in enumerate(open(os.path.join(os.path.dirname(_A   )       ,   _A   )   )   ):
        _UpperCAmelCase     ,_UpperCAmelCase        = list(map(_A       ,   line.split(""","""   )   )   )
        if x * logaa(_A   ) > largest:
            _UpperCAmelCase        = x * logaa(_A   )
            _UpperCAmelCase        = i + 1
    return result


if __name__ == "__main__":
 print(solution())