#include <bits/stdc++.h>
using namespace std;
string s;
int f = 0;
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  stack<char> st;
  for (int i = 0; i < s.length(); ++i) {
    if (st.empty())
      st.push(s[i]);
    else if (st.top() != s[i])
      st.push(s[i]);
    else {
      f++;
      st.pop();
    }
  }
  if (f % 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
