#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.14159265358979323846;
void debn(vector<int> a) {
  for (auto v : a) cout << v << ' ';
  cout << endl;
}
void debnn(vector<vector<int>> a) {
  for (auto v : a) {
    for (auto w : v) cout << w << ' ';
    cout << endl;
  }
}
long long powmod(long long x, long long y, long long mod) {
  long long res = 1;
  while (y) {
    if (y & 1) res = res * x % mod;
    y >>= 1;
    x = x * x % mod;
  }
  return res;
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  vector<char> a;
  int m = -1;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    if (m == -1) {
      m++;
      if (a.size() > m)
        a[m] = s[i];
      else
        a.push_back(s[i]);
    } else {
      if (a[m] == s[i])
        m--, ans++;
      else {
        m++;
        if (a.size() > m)
          a[m] = s[i];
        else
          a.push_back(s[i]);
      }
    }
  }
  if (ans & 1)
    cout << "Yes";
  else
    cout << "No";
}
