Files

25 lines
679 B
Java
Raw Permalink Normal View History

2017-03-18 22:17:22 -05:00
// Author: Rodney Shaghoulian
2018-07-27 16:45:56 -07:00
// Github: github.com/RodneyShag
// HackerRank: hackerrank.com/RodneyShag
2017-03-18 22:17:22 -05:00
import java.util.Scanner;
import java.util.HashSet;
public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str = scan.nextLine().toLowerCase();
scan.close();
HashSet<Character> set = new HashSet<>();
for (int i = 0; i < str.length(); i++) {
char ch = str.charAt(i);
if (Character.isLetter(ch)) {
set.add(ch);
}
}
System.out.println(set.size() == 26 ? "pangram" : "not pangram");
}
}