#include <bits/stdc++.h>
using namespace std;
int main()
{
short t;
while(t--)
{
bool a=0,b=0,c=0;
string s;
cin >> s;
if (s[0]=='y'||s[0]=='Y')
{
b=1;
}
if (s[1]=='e'||s[1]=='E')
{
a=1;
}
if (s[2]=='s'||s[1]=='S')
{
c=1;
}
if (((a&&b)&&c)==1)
{
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKICAgIHNob3J0IHQ7CiAgICB3aGlsZSh0LS0pCiAgICB7CiAgICAgICAgYm9vbCBhPTAsYj0wLGM9MDsKICAgICAgICBzdHJpbmcgczsKICAgICAgICBjaW4gPj4gczsKICAgICAgICBpZiAoc1swXT09J3knfHxzWzBdPT0nWScpCiAgICAgICAgewogICAgICAgICAgICBiPTE7CiAgICAgICAgfQogICAgICAgIGlmIChzWzFdPT0nZSd8fHNbMV09PSdFJykKICAgICAgICB7CiAgICAgICAgICAgIGE9MTsKICAgICAgICB9CiAgICAgICAgaWYgKHNbMl09PSdzJ3x8c1sxXT09J1MnKQogICAgICAgIHsKICAgICAgICAgICAgYz0xOwogICAgICAgIH0KCiAgICAgICAgaWYgKCgoYSYmYikmJmMpPT0xKQogICAgICAgIHsKICAgICAgICAgICAgY291dCA8PCAiWUVTIiA8PCBlbmRsOwogICAgICAgIH0KICAgICAgICBlbHNlIAogICAgICAgIHsKICAgICAgICAgICAgY291dCA8PCAiTk8iIDw8IGVuZGw7CiAgICAgICAgfQogICAgfQp9