#include <bits/stdc++.h>
using namespace std;
namespace input {
template <typename T>
void read(T &x) {
  cin >> x;
}
template <typename T, typename... Rest>
void read(T &x, Rest &...rest) {
  read(x);
  read(rest...);
}
template <typename T>
void readA(T *A, int size) {
  size_t k = 0;
  while (size--) {
    read(A[k]);
    k++;
  }
}
void readS(char *S, int size) {
  size_t k = 0;
  while (size--) {
    S[k] = getchar();
    k++;
  }
  S[size] = '\0';
}
template <typename T>
void readV(vector<T> &V) {
  for (auto &itr : V) read(itr);
}
}  // namespace input
using namespace input;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  stack<char> st;
  int current = 0;
  for (int i = 0; i < s.size(); i++) {
    if (st.empty() == true)
      st.push(s[i]);
    else {
      if (st.top() == s[i]) {
        if (!current)
          current = 1;
        else
          current = 0;
        st.pop();
      } else
        st.push(s[i]);
    }
  }
  if (!current)
    cout << "No\n";
  else
    cout << "Yes\n";
}
