str = input() str = str.lower() if('a' in str and 't' in str and 'y' in str and 'p' in str and 'i' in str and 'c' in str and 'l' in str): if(str.count('a')>1): print("YES") else: print("NO") else: print("NO")