#include <bits/stdc++.h>
using namespace std;
stack<char> s;
char c;
int now = 1;
int main() {
  while (cin >> c) {
    if (s.empty()) {
      s.push(c);
    } else {
      if (s.top() == c) {
        s.pop();
        now = 3 - now;
      } else {
        s.push(c);
      }
    }
  }
  if (now == 2) {
    cout << "Yes\n";
  } else {
    cout << "No\n";
  }
  return 0;
}
