#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(){
    char word[100];
    scanf("%s",word);
    int isfound=0;
    if(('a'>word[100]||'z'<word[100]||'A'>word[100]||'Z'<word[100])!=1){
        printf("Invalid input");
        return 0;
    }
    else{
        for(int i=0;i<strlen(word);i++){
            if((word[i]=='a'||word[i]=='e'||word[i]=='i'||word[i]=='o'||word[i]=='u')!=1){
                word[i]=toupper(word[i]);
            }
            else if((word[i]=='A'||word[i]=='E'||word[i]=='I'||word[i]=='O'||word[i]=='U')!=1){
                word[i]=tolower(word[i]);
           
            }
        }
        printf("%s",word[100])
    }
}