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