Programming output within 1000 of all the narcissus number, the so-called narcissus number refers to a 3-digit number, the cube sum of its digits is equal to itself

Programming output within 1000 of all the narcissus number, the so-called narcissus number refers to a 3-digit number, the cube sum of its digits is equal to itself

Narcissus number refers to an n-digit number (n ≥ 3), and the sum of the n-th power of each digit is equal to itself. There are four Narcissus numbers of three digits: 153370371407; just add it, 153 + 370 + 371 + 407 = 1301. You can use the program to find them, such as Pascal language that I know