#include <bits/stdc++.h>
using namespace std;
vector<int> a;
string s;
int alfa[26] = {0};
int solve(int N);
int main() {
  int count = 0;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    int tmp = s[i] - 'a';
    alfa[tmp] += 1;
  }
  cout << solve(s.length()) << endl;
  return 0;
}
int solve(int N) {
  if (N % 2 == 1) {
    int a_count = 0;
    for (int i = 0; i < 26; i++) {
      if (alfa[i] % 2 == 1) {
        a_count += 1;
      }
    }
    if (a_count == 1) {
      return 1;
    }
  }
  if (N % 2 == 0) {
    int a_count = 0;
    for (int i = 0; i < 26; i++) {
      if (alfa[i] % 2 == 1) {
        a_count += 1;
      }
    }
    if (a_count == 0) {
      return 1;
    }
  }
  return 0;
}
