#include <bits/stdc++.h>
const int INF = 1e9;
const double EPS = 1e-9;
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  vector<char> stack;
  int cnt = 0;
  for (int i = 0; i < s.size(); i++) {
    if (stack.size() == 0) {
      stack.push_back(s[i]);
    } else {
      if (s[i] == stack[stack.size() - 1]) {
        cnt++;
        stack.pop_back();
      } else {
        stack.push_back(s[i]);
      }
    }
  }
  if (cnt % 2 == 0) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
  return 0;
}
