#include <bits/stdc++.h>
using namespace std;
const int IINF = INT_MAX;
const long long LLINF = LLONG_MAX;
inline bool LT(double a, double b) {
  return !(fabs((a) - (b)) < (1e-8)) && a < b;
}
inline bool LTE(double a, double b) {
  return (fabs((a) - (b)) < (1e-8)) || a < b;
}
void compute() {}
int main() {
  string s;
  cin >> s;
  deque<char> deq;
  int cnt = 0;
  int n = s.size();
  for (int i = 0; i < n; ++i) {
    if (deq.empty()) {
      deq.push_back(s[i]);
    } else {
      if (deq.back() == s[i]) {
        deq.pop_back();
        ++cnt;
      } else {
        deq.push_back(s[i]);
      }
    }
  }
  if (cnt % 2 == 0)
    puts("No");
  else
    puts("Yes");
  compute();
  return 0;
}
