#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string str;
  cin >> str;
  vector<char> arr;
  arr.push_back(str[0]);
  int count = 0;
  for (int i = 1; i < str.size(); i++) {
    if (str[i] == arr[arr.size() - 1]) {
      arr.pop_back();
      count++;
    } else {
      arr.push_back(str[i]);
    }
  }
  if (count % 2 == 0) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
  return 0;
}
