#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  stack<char> stk;
  int cnt = 0;
  for (int i = 0; i < s.length(); i++) {
    if (stk.empty() || s[i] != stk.top())
      stk.push(s[i]);
    else
      stk.pop(), cnt++;
  }
  cout << ((cnt & 1) ? "Yes" : "No") << endl;
}
