Strange Way to Express Integers

POJ - 2891