#include <bits/stdc++.h>
using namespace std;
int main() {
  std::vector<char> v;
  string s;
  cin >> s;
  long long cnt = 0;
  v.push_back(s[0]);
  for (int i = 1; i < s.size(); i++) {
    if (s[i] == v[v.size() - 1]) {
      v.pop_back();
      cnt++;
    } else {
      v.push_back(s[i]);
    }
  }
  if (cnt % 2) {
    cout << "Yes\n";
  } else {
    cout << "No\n";
  }
}
