#include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
transform(s.begin(), s.end(), s.begin(), ::tolower);
map<char,int> h;
for(auto x : s){
h[x]++;
}
string f = "typical";
for(auto x : f){
if(!h[x]){
cout<<"No"<<endl;
return 0;
}
}
if(h['a']>1)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}