#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size(), i, j, k, a = 0, x;
  string s1 = "";
  for (i = 0; i < n;) {
    if (s[i] == s[i + 1] && i < n - 1) {
      a++;
      i += 2;
    } else {
      if (s1.size() == 0 || s[i] != s1[x - 1]) {
        s1 += s[i];
        x = s1.size();
      } else if (s[i] == s1[x - 1]) {
        a++;
        s1 = s1.substr(0, s1.length() - 1);
        x = s1.size();
      }
      i++;
    }
  }
  if (a % 2 == 0)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
