#include <bits/stdc++.h>
char abc[1000001];
int main() {
  char ab[1000001];
  scanf("%s", ab);
  int abcc = strlen(ab);
  int i, x = 0, y = 0;
  for (i = 0; i < abcc; i++) {
    x += ab[i] == 'x' ? 1 : 0;
    y += ab[i] == 'y' ? 1 : 0;
  }
  if (x > y)
    for (i = 0; i < x - y; i++) abc[i] = 'x';
  else
    for (i = 0; i < y - x; i++) abc[i] = 'y';
  printf("%s", abc);
}
