public static void main(String[] args) throws Exception {
		Scanner //sc = new FastScanner(System.in);
		sc = new Scanner(System.in);
		String in = sc.nextLine();
		
		if(isPangram(in)) System.out.println("pangram");
		else System.out.println("not pangram");
						
	}