Convert a number directly between any two number bases, between 1 and 16. (Use digits A=10, B=11, C=12, ... F=15 for bases higher than 10.)