#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  stack<char> stk;
  int cnt = 0;
  for (int i = s.size() - 1; i >= 0; i--) {
    if (stk.empty())
      stk.push(s[i]);
    else {
      if (stk.top() == s[i]) {
        cnt++;
        stk.pop();
      } else
        stk.push(s[i]);
    }
  }
  cout << (cnt & 1 ? "Yes" : "No") << endl;
  return 0;
}
