#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, a, flag;
  string s;
  i = flag = 0;
  cin >> s;
label:
  i = 0;
  while (i < s.size()) {
    if (s[i] == s[i + 1]) {
      s.erase(i, 2);
      if (flag)
        flag = 0;
      else
        flag = 1;
      goto label;
    }
    i++;
  }
  if (flag)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
