#include <bits/stdc++.h>
int main() {
  int i, j, n, flag, flagm, k;
  char ch[1000001];
  while (gets(ch)) {
    flag = 0;
    flagm = 0;
    n = strlen(ch);
    for (i = 0; i < n; i++) {
      if (ch[i] == 'x')
        flag++;
      else
        flagm++;
    }
    if (flag > flagm) {
      k = flag - flagm;
      for (j = 0; j < k; j++) printf("x");
    } else if (flagm > flag) {
      k = flagm - flag;
      for (j = 0; j < k; j++) {
        printf("y");
      }
    } else
      continue;
    printf("\n");
  }
  return 0;
}
