#include<iostream>
#include<algorithm>
#include<string>
#include <vector>
using namespace std;
int main() {
string s;
int o=0,k=0;
char x[6] = { 't', 'y', 'i', 'l', 'p' , 'c' };
cin >> s;
for (size_t i = 0; i < s.length(); i++) {
s[i] = tolower(s[i]);
}
/for (size_t i = 0; i < 2; i++){
o = s.find('a');
if (o == -1) {
cout << "No";
return 0;
}
}/
for (size_t i = 0; i < s.length(); i++) {
s[i] = tolower(s[i]);
if (s[i] == 'a')
{
k++;
}
}
if (k<2){
cout << "No";
return 0;
}
for (size_t i = 0; i < 6; i++) {
k=s.find(x[i]);
if (k == -1) {
cout << "No";
return 0;
}
}
cout << "Yes";
}
Copy