#include <bits/stdc++.h>
using namespace std;
stack<char> s;
int main() {
  int count = 0;
  string a;
  cin >> a;
  for (unsigned int i = 0; i < a.size(); i++) {
    if (!s.empty() && a[i] == s.top()) {
      count++;
      s.pop();
    } else
      s.push(a[i]);
  }
  if (count % 2 == 0)
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
