#include <bits/stdc++.h>
using namespace std;
int main() {
  stack<char> s;
  string word;
  cin >> word;
  bool flag = false;
  s.push(word[0]);
  for (int i = 1; i < word.size(); ++i) {
    if (s.empty() || s.top() != word[i]) {
      s.push(word[i]);
    } else {
      s.pop();
      flag = !flag;
    }
  }
  if (!flag)
    cout << "No";
  else
    cout << "Yes";
}
