In a parlor game the "magician" asks one of the participants to think of a three-digit number(abc), where a, b and c represent digits in base 10 in the order indicated. The magician asks this person to form the numbers(acb), (bac), (bca), (cab) and (cba), to add these five numbers, and to reveal their sum, N. If told the value of N, the magician can identify the original number, (abc). Play the role of the magician and determine(abc) if N=3194.

(第四届AIME1986 第10题)