#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  string s;
  cin >> s;
  n = s.length();
  long long int m = 0;
  stack<char> q;
  q.push(s[0]);
  for (long long int i = 1; i < n; i++) {
    if (!q.empty() && q.top() == s[i])
      m++, q.pop();
    else
      q.push(s[i]);
  }
  if (m % 2 != 0)
    cout << "YES";
  else
    cout << "NO";
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int T;
  T = 1;
  for (long long int TT = 1; TT <= T; TT++) {
    solve();
  }
}
