#include <bits/stdc++.h>
using namespace std;
const long long N = (long long)(2e5), MOD = 1e9 + 7;
const long long INF = 1e17;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  int cnt = 0;
  string copy;
  copy += s[0];
  for (int i = 1; i < s.size(); i++) {
    if (s[i] == copy[copy.size() - 1]) {
      copy.erase(copy.begin() + copy.size() - 1);
      cnt++;
    } else
      copy += s[i];
  }
  if (cnt % 2 == 0)
    cout << "No";
  else
    cout << "Yes";
}
