Let D(N) be the sum of the digits of N expressed in decimal.
Let S(N) be the sum of the squares of the digits of N expressed in decimal.
Let C(N) be the sum of the cubes of the digits of N expressed in decimal.
Find the smallest pandigital number N (that is, containing all of the digits 0 to 9) which contains D(N), S(N) and C(N).