#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<char> s;
  char name;
  int count = 0;
  while (cin >> name) {
    s.push_back(name);
  }
  for (int j = 0; j < s.size(); ++j) {
    for (int i = 0; i < s.size() - 1; ++i) {
      if (s[i] != s[i + 1]) {
        s.erase(s.begin() + i);
        s.erase(s.begin() + (i + 1));
        ++count;
      }
    }
  }
  cout << "count" << endl;
  return 0;
}
