#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string str;
  cin >> str;
  int ln = str.size();
  stack<char> stk;
  int count = 0;
  for (int i = 0; i < ln; i++) {
    if (stk.size() && str[i] == stk.top()) {
      stk.pop();
      count++;
    } else
      stk.push(str[i]);
  }
  if (count % 2 == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
