#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int i, n, cnt = 0;
  bool isGameCon = true;
  n = str.size();
  vector<char> v(str.begin(), str.end());
  while (v.size() > 2) {
    for (auto j = v.begin(); j != v.end(); j++) {
      i = v.size();
      if (j + 1 == v.end()) {
        break;
      }
      if (*j == *(j + 1)) {
        v.erase(j);
        v.erase(j);
        cnt++;
        break;
      }
    }
    if (i == v.size()) {
      break;
    }
  }
  if (v.size() == 2) {
    if (v[0] == v[1]) {
      cnt++;
    }
  }
  if (cnt % 2 == 0) {
    cout << "NO";
  } else {
    cout << "YES";
  }
}
