#include <bits/stdc++.h>
using namespace std;
int siam(string s, int l, int r) {
  int sum = 0, i = 0;
  while (s[l] == s[r]) {
    s[l] = '0';
    s[r] = '0';
    sum++;
    l--;
    r++;
    cout << s << endl;
    if (l == -1 || r == s.size() + 1) break;
  }
  return sum;
}
int main() {
  string s;
  cin >> s;
  int sum = 0;
  for (int i = 1; i < s.size();) {
    if (s[i] == s[i - 1]) {
      s.erase(s.begin() + i);
      i--;
      s.erase(s.begin() + i);
      sum++;
    } else
      i++;
  }
  if (sum % 2 != 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
