#include <bits/stdc++.h>
using namespace std;
const long long dx[] = {0, 1, 0, -1};
const long long dy[] = {1, 0, -1, 0};
inline long long mod(long long n) { return (n % 1000000007); }
long long gcd(long long a, long long b) {
  if (a == 0 || b == 0) return 0;
  if (b == 1)
    return b;
  else
    return gcd(b, a % b);
}
const long long maxn = 1e5;
string s;
long long ans = 1;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> s;
  stack<char> balance;
  for (long long i = 0; i < s.size(); i++) {
    if (balance.empty() || balance.top() != s[i]) {
      balance.push(s[i]);
    } else {
      balance.pop();
      ans++;
    }
  }
  ans % 2 == 0 ? cout << "Yes\n" : cout << "No\n";
}
