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