#include <bits/stdc++.h>
using namespace std;
stack<char> a;
string str;
int main() {
  bool win = 0;
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    if (a.empty())
      a.push(str[i]);
    else {
      if (a.top() == str[i])
        a.pop(), win = !win;
      else
        a.push(str[i]);
    }
  }
  if (win)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
