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