import java.util.*;
public class Atypical {
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
String s = in.nextLine().toLowerCase();
s = s.replaceAll("[^atypical]", "");
if (s.length() < 8) {
System.out.println("NO");
} else {
String t = s;
boolean b1 = t.replaceAll("[^a]", "").length() >= 2;
boolean b2 = s.chars().distinct().count() == 7;
if (b1 && b2) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
}