Python 2.xでCodeEvalのHex to Decimal

CodeEval

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

input.txt

9f
11

output

159
17