#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void debug(vector<T> v) {
  cout << "\ndebug(vector)\n";
  long long i;
  for (i = 0; i < v.size(); i++) cout << v[i] << " ";
  cout << "\n\n";
}
inline bool prime(long long n) {
  long long i;
  for (i = 2; i * i <= n; i++)
    if (n % i == 0) return false;
  return true;
}
inline void swap(long long &a, long long &b) {
  a = a ^ b;
  b = a ^ b;
  a = a ^ b;
  return;
}
void solve() {
  long long i = 0, j = 0;
  string s;
  cin >> s;
  int cnt = 0;
  for (i = 0; i < s.length() - 1; i++) {
    if (s[i] == s[i + 1]) {
      int left = i, right = i + 1;
      while (left >= 0 and right < s.length() and s[left] == s[right]) {
        cnt++;
        s[left--] = '?';
        s[right++] = '?';
        while (s[left] == '?') left--;
        while (s[right] == '?') right++;
      }
      i = right - 1;
    }
  }
  if (cnt % 2)
    cout << "Yes\n";
  else
    cout << "No\n";
}
int main(void) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
