#include <bits/stdc++.h>
char s[1000010], ch;
int main() {
  int i, n, len, tag = 1, flag = 1, f, c = 0;
  scanf("%s", s);
  len = strlen(s);
  for (i = 0; i < len; i++)
    if (s[i] == 'x') c++;
  f = (len - c) > c ? c : (len - c);
  for (i = 0; i < abs(f - c); i++) printf("x");
  for (i = 0; i < abs(len - c - f); i++) printf("y");
  return 0;
}
