#include <bits/stdc++.h>
using namespace std;
char s[1000005];
int main() {
  scanf("%s", s);
  int l = strlen(s);
  int x = 0, y = 0;
  for (int i = 0; i < l; i++) {
    if (s[i] == 'x')
      x++;
    else
      y++;
  }
  while (x > y) {
    printf("x");
    x--;
  }
  while (y > x) {
    printf("y");
    y--;
  }
  return 0;
}
