#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a = 0, b = 0, c, d, e, f = 0, l, g, m, n, k, i, j, t, p, q;
  string s;
  cin >> s;
  l = s.size();
  f = 1;
  for (i = 1; i < s.size(); i++) {
    if (s[i] == s[i - 1]) {
      s.erase(i - 1, 2);
      f *= -1;
      i -= 2;
      if (i < -1) i = -1;
    }
  }
  if (f > 0)
    cout << "No\n";
  else
    cout << "Yes\n";
  return 0;
}
