#include <bits/stdc++.h>
using namespace std;
string s;
char a[1100000];
int main() {
  scanf("%s", &a);
  s = a;
  int n = 0;
  for (int(i) = (0); (i) < (s.length()); ++(i))
    if (s[i] == 'x')
      n++;
    else
      n--;
  for (int(i) = (0); (i) < (n); ++(i)) printf("x");
  for (int(i) = (0); (i) < (-n); ++(i)) printf("y");
  cout << endl;
  return 0;
}
