#include #include int main(void){ char txt[256]; int hoge,i=1; scanf("%s",txt); hoge=strlen(txt)-1; if(txt[0]==txt[1]){ printf("NO"); i*=-1; } if(i==1){ if(hoge%2){ printf("YES"); } else { printf("NO"); } } return 0; }