#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e+9;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  vector<char> stek(1, '#');
  int n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == stek[stek.size() - 1])
      stek.pop_back();
    else
      stek.push_back(s[i]);
  }
  int count = stek.size() - 1;
  if (((n - count) / 2) % 2 == 0)
    cout << "No";
  else
    cout << "Yes";
}
