Hard
Hex to Decimal
Read a hexadecimal number (digits 0–9 and a–f, no prefix) and print its decimal value.
Input
One hex number.
Output
The decimal value.
Sample 1
Input
ff
Output
255
Sample 2
Input
10
Output
16
Output appears hereOne hex number.
The decimal value.
ff
255
10
16
Output appears here