Solution for hexadecimal problem.