#include <bits/stdc++.h>
using namespace std;
int main() {
  bool change = true;
  int cnt = 0;
  string s;
  cin >> s;
  while (change) {
    change = false;
    for (int i = 0; i < s.size(); i++) {
      if (s[i] == s[i + 1]) {
        s.erase(i, 2);
        cnt++;
        change = true;
        break;
      }
    }
  }
  if (cnt % 2 == 0)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
