#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100010;
char s[MAXN];
int solve() {
  scanf("%s", s + 1);
  int n = strlen(s + 1), cnt = 0;
  stack<char> st;
  for (int i = 1; i <= n; i++) {
    if (st.empty())
      st.push(s[i]);
    else if (s[i] == st.top())
      cnt++, st.pop();
    else
      st.push(s[i]);
  }
  return cnt;
}
int main() {
  if (solve() % 2 == 0)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
