#include <bits/stdc++.h>
using namespace std;
char a[100008];
int main() {
  scanf("%s", a);
  int s = 0;
  int len = strlen(a);
  stack<char> b;
  for (int i = 0; i < len; i++) {
    if (!b.empty()) {
      if (a[i] == b.top()) {
        b.pop();
        s++;
      } else
        b.push(a[i]);
    } else
      b.push(a[i]);
  }
  if (s % 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
