#include <bits/stdc++.h>   using namespace std;   int main() {     char a[103], c;     int length, i, m;     gets(a);     length = strlen(a);     for (i = length - 2; i >= 0; --i) {       if (a[i] !=    ) {         c = a[i];         break;       }     }     if (c ==  a  || c ==  e  || c ==  i  || c ==  o  || c ==  u  || c ==  y  ||         c ==  A  || c ==  E  || c ==  I  || c ==  O  || c ==  U  || c ==  Y ) {       printf( YES n );     } else {       printf( NO n );     }     return 0;   }   