// {In the Name of Allah, the Most Beneficent, the Most Merciful }
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
#define mp make_pair
#define pb push_back
#define pf push_front
#define IOS ios_base::sync_with_stdio(0);cin.tie(NULL);
#define no cout<<"NO\n"
#define yes cout<<"YES\n"
#define el "\n"
int f [8];
int main()
{
/**/IOS/**/
string s ;
cin>>s;
for(int i =0 ; i<s.size() ; i++)
{
char c = tolower(s[i]);
if(c=='a')
f[0]++;
else if (c=='t')
f[1]++;
else if (c=='y')
f[2]++;
else if (c=='p')
f[3]++;
else if (c=='i')
f[4]++;
else if (c=='c')
f[5]++;
else if (c=='l')
f[6]++;
}
for(int i=0 ; i<7 ; i++)
if(f[i]==0 || f[0]<=1)
{
cout<<"No";
return 0;
}
cout<<"Yes";
}//main
Copy