#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-10;
long long gcd(long long a, long long b) { return (b > 0) ? gcd(b, a % b) : a; }
int main() {
  string s;
  cin >> s;
  int sz = s.length();
  int x = 0, y = 0;
  for (int i = 0; i < sz; ++i) {
    if (s[i] == 'x') {
      ++x;
    } else {
      ++y;
    }
  }
  string result;
  if (x > y) {
    for (int i = 0; i < x - y; ++i) result += "x";
  } else if (y > x) {
    for (int i = 0; i < y - x; ++i) result += "y";
  } else {
  }
  cout << result;
}
