#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve() {
  ll cnt = 0;
  string s;
  cin >> s;
  stack<char> A;
  for (auto x : s) {
    if (!A.empty()) {
      if (A.top() == x) {
        A.pop();
        cnt++;
      } else {
        A.push(x);
      }
    } else {
      A.push(x);
    }
  }
  if (cnt % 2)
    cout << "Yes";
  else
    cout << "No";
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
