Armstrong Numbers are those numbers which are equal ro sum of cubes of their digits.
For example 153, (1*1*1) + (5*5*5) +(3*3*3) = 1+125+27=153.
You task is to check if a number is Armstrong or not.
First Line Contains T denoting the number of test cases that follow.
Next T lines contains a positive Integer.
For every Input Integer,
If it an Armstrong Number , print ARMSTRONG
else print NOT ARMSTRONG
Every numnber is between 1 and 1000.
Problem Setter : Arjun Singh Bhatia