#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int count = 0;
  stack<char> st;
  for (int i = 0; i < a.size(); i++) {
    if (st.size() == 0)
      st.push(a[i]);
    else if (a[i] == st.top()) {
      count++;
      st.pop();
    } else
      st.push(a[i]);
  }
  if (count % 2 == 0)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
