#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv) {
  string s;
  int count = 0;
  cin >> s;
  stack<char> st;
  for (int i = 0; i < s.length(); ++i) {
    if (!st.empty()) {
      if (st.top() == s[i]) {
        ++count;
        st.pop();
      } else {
        st.push(s[i]);
      }
    } else {
      st.push(s[i]);
    }
  }
  if (count & 1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
