#include <bits/stdc++.h>
using namespace std;
const int N = int(1e5 + 5);
char s[N], v[N];
void solve() {
  scanf("%s", &s);
  int n = strlen(s), vp = 0, ans = 0;
  for (int i = 0; i < n; i++) {
    if (vp > 0 && s[i] == v[vp - 1]) {
      ans ^= 1;
      vp--;
    } else {
      v[vp++] = s[i];
    }
  }
  puts(ans ? "Yes" : "No");
}
int main() {
  int tests = 1;
  while (tests--) {
    solve();
  }
  return 0;
}
