#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int main() {
  stack<char> s;
  int ans = 0;
  string s1;
  cin >> s1;
  char k = '0';
  for (int i = 0; i <= s1.size() - 1; ++i) {
    if (s.empty()) {
      k = s1[i];
      s.push(k);
      continue;
    }
    k = s.top();
    if (k == s1[i])
      ans++, s.pop();
    else
      s.push(s1[i]);
  }
  if (ans & 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
