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