#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[100005];
  int b[100005];
  int i, j, n, t, k;
  while (gets(a) != NULL) {
    k = strlen(a);
    n = 0;
    for (i = 0; i <= k - 1; i++) b[i] = i;
    for (j = 1; j <= k - 1; j++) {
      i = j - 1;
      while (a[i] == a[j]) {
        a[i] = '0';
        a[j] = '0';
        i--;
        j++;
        n++;
        while (a[i] == '0') {
          i = b[i];
          if (i == -1) break;
        }
        if (i == -1 || j >= k) break;
      }
      for (t = i + 1; t <= j - 1; t++) b[t] = i;
    }
    if (n % 2 == 0)
      printf("No\n");
    else
      printf("Yes\n");
  }
}
