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