#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ;
  string second;
  cin >> second;
  bool ok = true;
  stack<char> st;
  for (auto i : second) {
    if (st.size()) {
      if (st.top() == i)
        st.pop(), ok = !ok;
      else
        st.push(i);
    } else
      st.push(i);
  }
  if (!ok)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
