#include <bits/stdc++.h>
using namespace std;
int main() {
  string str, second = "";
  cin >> str;
  second = second + str;
  int len = str.length();
  int k = 1;
  for (int i = 0; i < len;) {
    if (str[i] == str[i + 1] && i > -1) {
      str.erase(i, 2);
      k++;
      i--;
    } else
      i++;
  }
  if (second == str) {
    cout << "No";
    return 0;
  }
  if (k % 2 == 0)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
