#include <bits/stdc++.h>
char ss[100010], s[100010];
int main() {
  int top = 0, num = 0;
  s[0] = ' ';
  scanf("%s", ss);
  for (int i = 0; i < strlen(ss); i++) {
    if (ss[i] == s[top]) {
      num++;
      top--;
    } else
      s[++top] = ss[i];
  }
  if (num & 1)
    printf("YES");
  else
    printf("NO");
  return 0;
}
