#include <bits/stdc++.h>
using namespace std;
int ok = 1, i, l, n;
char a[100001];
stack<char> s;
int main() {
  cin >> a;
  n = strlen(a);
  for (i = 0; i < n; i++) {
    if (s.empty()) {
      s.push(a[i]);
    } else {
      if (a[i] == s.top()) {
        s.pop();
        ok = 1 - ok;
      } else
        s.push(a[i]);
    }
  }
  if (ok == 1) cout << "No";
  if (ok == 0) cout << "Yes";
  return 0;
}
