BETA

Difficulty Level: Basic

Submissions: 1491 Accuracy:

44.47%

Automorphic Number
     

Write a program to check whether a given number is Automorphic number or not.
A number is called Automorphic number if and only if its square ends in the same digits as the number itself.

For example, 762 = 5776 which ends with 76 therefore it is a automorphic number.

Input:

The first line of the input contains T denoting the total number of testcases. Each of the next T lines contains a positive integer N denoting the value of a number.


Output:

Output "Automorphic" if given number is Automorphic else "Not Automorphic" .


Constraints:

1<=T<=100
1<=N<=1000


Example:

Input:
2
1
16

Output:
Automorphic
Not Automorphic

** For More Input/Output Examples Use 'Expected Output' option **

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.