#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int a[n];
  int back[n];
  a[0] = 0;
  back[0] = -1;
  int i;
  for (i = 1; i < n; i++) {
    a[i] = a[i - 1] + 1;
    back[i] = back[i - 1] + 1;
  }
  int count = 0;
  for (i = 1; i < n; i++) {
    if (a[i - 1] == -1) {
      back[i] = a[i - 1];
      continue;
    }
    if (s[i] == s[a[i - 1]]) {
      count++;
      a[i] = back[a[i - 1]];
    } else {
      back[i] = a[i - 1];
    }
  }
  if (count % 2 == 0)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
