#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int ans = 0, x = 1;
  string s;
  cin >> s;
  while (x == 1) {
    x = 5;
    for (int i = 0; i < s.length(); i++) {
      if (s[i] == s[i + 1]) {
        ans++;
        if (i == 0) {
          s.erase(s.begin() + i);
          s.erase(s.begin() + i);
          x = 1;
        } else {
          s.erase(s.begin() + i);
          s.erase(s.begin() + i);
          x = 1;
        }
        break;
      }
    }
  }
  if (ans % 2 == 0) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}
