#include <bits/stdc++.h>
using namespace std;
char s[100003], ss[100003];
int main() {
  int ans = 0;
  scanf("%s", s + 1);
  int len = strlen(s + 1);
  int n = 0;
  for (int i = 1; i <= len; i++) {
    if (n > 0 && ss[n] == s[i]) {
      n--;
      ans++;
    } else
      ss[++n] = s[i];
  }
  if (ans % 2)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
