"""
You will be given a hexadecimal (base 16) number. Convert it into decimal
(base 10).

INPUT SAMPLE:

Your program should accept as its first argument a path to a filename.
Each line in this file contains a hex number. You may assume that the hex
number does not have the leading 'Ox'. Also all alpha characters (a through f)
in the input will be in lowercase. E.g.

9f
11

OUTPUT SAMPLE:

Print out the equivalent decimal number. E.g.

159
17
"""
from sys import argv


def main(input_file):
    """Convert string hex number to base 10 decimal number"""
    with open(input_file, "r") as file:
        for line in file:
            print(int(line.rstrip(), base=16))


if __name__ == '__main__':
    main(argv[1])

f0994cdc3c1d236ad5a088cc2bc255a23e9c7b9a
<mask token>

<mask token>


def main(input_file):
    """Convert string hex number to base 10 decimal number"""
    with open(input_file, 'r') as file:
        for line in file:
            print(int(line.rstrip(), base=16))


<mask token>

<mask token>


def main(input_file):
    """Convert string hex number to base 10 decimal number"""
    with open(input_file, 'r') as file:
        for line in file:
            print(int(line.rstrip(), base=16))


if __name__ == '__main__':
    main(argv[1])

<mask token>
from sys import argv


def main(input_file):
    """Convert string hex number to base 10 decimal number"""
    with open(input_file, 'r') as file:
        for line in file:
            print(int(line.rstrip(), base=16))


if __name__ == '__main__':
    main(argv[1])

"""
You will be given a hexadecimal (base 16) number. Convert it into decimal
(base 10).

INPUT SAMPLE:

Your program should accept as its first argument a path to a filename.
Each line in this file contains a hex number. You may assume that the hex
number does not have the leading 'Ox'. Also all alpha characters (a through f)
in the input will be in lowercase. E.g.

9f
11

OUTPUT SAMPLE:

Print out the equivalent decimal number. E.g.

159
17
"""
from sys import argv


def main(input_file):
    """Convert string hex number to base 10 decimal number"""
    with open(input_file, "r") as file:
        for line in file:
            print(int(line.rstrip(), base=16))


if __name__ == '__main__':
    main(argv[1])
