#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int i, j, sum = 0;
  cin >> s;
  stack<char> bi;
  char last = 'A';
  for (char &c : s) {
    if (c != last) {
      bi.push(c);
      last = c;
    } else if (c == last) {
      bi.pop();
      sum++;
    }
    if (bi.empty() == false)
      last = bi.top();
    else
      last = 'A';
  }
  if (sum % 2 == 0)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
