#include <bits/stdc++.h>
using namespace std;
int main() {
  char str[100005];
  cin >> str;
  char q[100005];
  int tot = 0;
  int t = 0;
  for (int i = 0; str[i]; i++) {
    if (tot == 0)
      q[tot++] = str[i];
    else {
      if (q[tot - 1] == str[i]) {
        tot--;
        t++;
      } else
        q[tot++] = str[i];
    }
  }
  if (t & 1)
    puts("Yes");
  else
    puts("No");
}
