#include <bits/stdc++.h>
using namespace std;
int main() {
  int x = 0, y = 0;
  string s;
  cin >> s;
  int sl = s.length();
  for (int i = 0; i < sl; i++) (s[i] == 'x' ? x : y)++;
  int mn = min(x, y);
  x -= mn, y -= mn;
  while (x--) cout << "x";
  while (y--) cout << "y";
  return 0;
}
