#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int cnt = 0;
  cin >> s;
  int l = s.length();
  for (auto i = 0; i < l - 1; ++i) {
    if (s[i] == s[i + 1]) {
      s.erase(i, 2);
      cnt++;
      i -= 2;
      l -= 2;
      if (i < -1) i++;
    }
  }
  if (cnt % 2)
    cout << "Yes";
  else
    cout << "No";
}
