CF 49A
#include<bits/stdc++.h>
using namespace std;
int main()
{
char ch;
bool flag=false;
while((ch=getchar())!=EOF)
{
if(ch=='A'||ch=='a'||ch=='E'||ch=='e'||ch=='I'||ch=='i'||ch=='O'||ch=='o'||ch=='U'||ch=='u'||ch=='V'||ch=='v'||ch=='Y'||ch=='y')
flag=true;
else if((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
flag=false;
}
if(flag)
cout<<"YES";
else
cout<<"NO";
return 0;
}