#include <bits/stdc++.h>
using namespace std;
int main ()
{
string s;
cin >> s;
string s1 = "atypical";
int i = 0 , j = 0;
for ( ; i < s.size() && j < s1.size() ; i++)
{
s[i] = tolower(s[i]);
if (s[i] == s1[j])j++;
}
if (j == (int)s1.size())
cout << "Yes\n";
else
cout << "No\n";
return 0;
}