#include <bits/stdc++.h>
using namespace std;
stack<char> sa;
int main() {
  int turn = 0;
  char str, tmp;
  str = getchar();
  while (str != '\n') {
    if (!sa.empty()) {
      tmp = sa.top();
      if (tmp == str) {
        sa.pop();
        turn = !turn;
      } else {
        sa.push(str);
      }
    } else
      sa.push(str);
    str = getchar();
  }
  if (turn == 0) {
    cout << "No";
  } else
    cout << "Yes";
  return 0;
}
