#include <bits/stdc++.h>
using namespace std;
int st[100000 + 5];
int main() {
  int vf = 0, d = 0;
  char c;
  while (cin >> c) {
    if (c == st[vf]) {
      vf--;
      d++;
    } else
      st[++vf] = c;
  }
  if (d % 2)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
