#include <bits/stdc++.h>
using namespace std;
inline void intialize() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cout.tie(0);
}
void clearArr(int arr[], int n);
bool arr[105][105];
bool farr[105];
queue<int> q;
queue<int> done;
int main() {
  intialize();
  string ans[2] = {"No", "Yes"};
  string s;
  cin >> s;
  int ss = s.length(), i;
  stack<int> st;
  int t = 0;
  for (i = 0; i < ss; ++i) {
    if (st.empty())
      st.push(s[i]);
    else {
      if (s[i] == st.top()) {
        t = (t + 1) % 2;
        st.pop();
      } else {
        st.push(s[i]);
      }
    }
  }
  cout << ans[t] << endl;
}
void clearArr(int arr[], int n) {
  for (int i = 0; i < n; ++i) arr[i] = 0;
}
