#include <bits/stdc++.h>
using namespace std;
string s;
stack<char> stk;
int main() {
  std::ios::sync_with_stdio(0);
  cin >> s;
  int ans = 0;
  for (int i = 0; i < s.length(); i++)
    if (stk.empty())
      stk.push(s[i]);
    else {
      if ((char)stk.top() == s[i]) {
        stk.pop();
        ans++;
      } else
        stk.push(s[i]);
    }
  if (ans % 2)
    cout << "Yes";
  else
    cout << "No";
}
