#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  string s;
  cin >> s;
  n = s.length();
  vector<char> st;
  int ans = 0;
  for (auto& el : s) {
    if (st.empty()) {
      st.push_back(el);
    } else {
      if (st.back() == el) {
        st.pop_back();
        ans += 1;
      } else {
        st.push_back(el);
      }
    }
  }
  if (ans & 1)
    cout << "Yes" << endl;
  else {
    cout << "No" << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
