#include <bits/stdc++.h>
using namespace std;
const int inf = 1000000000;
const int mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int n = s.size();
  stack<char> e;
  int ans = 0;
  for (int i = 0; i < n; i++)
    if (e.empty() || e.top() != s[i])
      e.push(s[i]);
    else
      e.pop(), ans++;
  if (ans % 2 == 0)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
