#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  long long int i, j, k, flg = 0;
  cin >> s;
  stack<char> ms;
  for (i = 0; i < s.length(); i++) {
    if (ms.size() && ms.top() == s[i]) {
      ms.pop();
      flg++;
    } else {
      ms.push(s[i]);
    }
  }
  if (flg % 2 == 0)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
