#include <bits/stdc++.h>
#define int long long
#define all(a) a.begin(),a.end()
using namespace std;
char to_lower(char x){
if('A'<=x&&x<='Z') return (x-('A'-'a')) ;
return x ;
}
void solve(){
string a ;
cin>>a ;
string x = "atypical";
int lol = 0 ;
for(char y: a){
if(x[lol]==to_lower(y)){
++lol ;
}
if(lol==x.size()){
cout << "Yes" ;
return ;
}
}
cout << "No" ;
}
signed main(){
ios_base::sync_with_stdio(0);
cin.tie(nullptr) ;
int n =1;
while(n--){
solve() ;
cout << '\n' ;
}
}