#include <bits/stdc++.h>
using namespace std;
int main() {
  string word;
  stack<char> letters;
  bool p1 = true;
  cin >> word;
  for (int i = 0; i < word.length(); i++) {
    if (letters.empty()) {
      letters.push(word[i]);
    } else {
      if (word[i] == letters.top()) {
        letters.pop();
        p1 = !p1;
      } else {
        letters.push(word[i]);
      }
    }
  }
  if (p1) {
    cout << "No\n";
  } else {
    cout << "Yes\n";
  }
}
