import java.io.*;
import java.util.*;
public class Solution {
		public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = -4;
		if(a < 0) a = -a;
		int squareNum = a*a;
		int temp = a;
		int count = 0; // count of digit of a
		while(temp > 0){
			count++;
			temp = temp/10;
		}
		int lastDigit = squareNum%(int)Math.pow(10, count);
		// System.out.print(lastDigit);
		if(lastDigit == a) System.out.print("Automorphic");
		else System.out.print("Not Automorphic");
		
	}
}
