#include <bits/stdc++.h>
using namespace std;
int main() {
  int f = true, ans = false;
  string s;
  cin >> s;
  for (int i = 0; i < s.size();) {
    if (s[i] == s[i + 1]) {
      s.erase(i, 2);
      ans = !ans;
      i = 0;
    } else {
      i++;
    }
  }
  if (ans) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
