#include <bits/stdc++.h>
using namespace std;
string s;
int n, i, k = 0;
int main() {
  cin >> s;
  for (i = 0; i < s.size(); i++) {
    while (s[i] == s[i + 1] && s.size()) {
      s.erase(i, 2);
      i--;
      k++;
    }
  }
  if (k % 2 != 0)
    cout << "YES" << endl;
  else if (k % 2 == 0)
    cout << "No" << endl;
  return 0;
}
