#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using pii = pair<int, int>;
const int N = 100005;
char s[N];
int main() {
  scanf("%s", s);
  int n = strlen(s);
  stack<char> st;
  st.push(s[0]);
  int cn = 0;
  for (int i = 1; i < n; ++i) {
    if (st.empty() == false && st.top() == s[i]) {
      cn++;
      st.pop();
    } else {
      st.push(s[i]);
    }
  }
  if (cn & 1)
    printf("Yes");
  else
    printf("No");
}
