#include <bits/stdc++.h>
using namespace std;
void stress();
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  srand(time(0));
  stress();
}
void stress() {
  string s;
  cin >> s;
  bool win = false;
  string t = "";
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == t.back()) {
      t.pop_back();
      win = !win;
    } else
      t += s[i];
  }
  if (win)
    cout << "Yes";
  else
    cout << "No";
}
