#include <bits/stdc++.h>
using namespace std;
int main() {
  int counter = 0;
  string str;
  vector<char> s;
  cin >> str;
  for (int i = 0; i < str.size(); i++) {
    if (s.size() != 0 and str[i] == s.back()) {
      counter++;
      s.pop_back();
    } else
      s.push_back(str[i]);
  }
  if (counter % 2 == 1)
    cout << "YES\n";
  else
    cout << "NO\n";
}
