#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int k = 0;
  stack<char> stk;
  if (s.length() != 0) {
    stk.push(s[0]);
    for (int i = 1; i < s.length(); i++) {
      if (!stk.empty()) {
        if (s[i] == stk.top()) {
          k++;
          stk.pop();
        } else {
          stk.push(s[i]);
        }
      } else {
        stk.push(s[i]);
      }
    }
  }
  if (k % 2 == 0) {
    cout << "No";
  } else {
    cout << "Yes";
  }
}
