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