#include <bits/stdc++.h>   using std::cin;   using std::cout;   using std::deque;   using std::endl;   using std::map;   using std::max;   using std::min;   using std::pair;   using std::queue;   using std::sort;   using std::string;   using std::vector;   int main() {     char last =  b ;     char x =  b ;     while ((x = getchar()) != EOF) {       if (x >=  a  && x <=  z ) {         last = x -  a  +  A ;       } else if (x >=  A  && x <=  Z ) {         last = x;       }     }     if (last ==  A  || last ==  E  || last ==  I  || last ==  O  || last ==  U  ||         last ==  Y ) {       cout <<  YES ;     } else {       cout <<  NO ;     }     return 0;   }   