#include <bits/stdc++.h>
using namespace std;
const long long N = (long long)(1e5 + 5);
const long long mod = (long long)(1e9 + 7);
signed main() {
  string s;
  cin >> s;
  stack<char> st;
  long long c = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (st.empty() || st.top() != s[i]) {
      st.push(s[i]);
    } else if (st.top() == s[i]) {
      st.pop();
      c++;
    }
  }
  if (c % 2)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
