#include <bits/stdc++.h>
using namespace std;
void printprecise(double l, long long int precision) {
  std::cout << std::fixed;
  std::cout << std::setprecision(precision);
  std::cout << l;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  long long int l = s.length();
  long long int r = 1;
  for (long long int x = 0; x < l - 1; x++) {
    char ch1 = s.at(x);
    char ch2 = s.at(x + 1);
    if (ch1 == ch2) {
      s.erase(x, 2);
      x = x - 2;
      l = l - 2;
      if (x < 0) {
        x = -1;
      }
      if (r == 1) {
        r = 0;
      } else {
        r = 1;
      }
    }
  }
  if (r == 1) {
    cout << "No";
  } else {
    cout << "Yes";
  }
}
