#include <bits/stdc++.h>
int main() {
  char c;
  int count = 0;
  while (1) {
    c = getchar();
    if (c == 'x')
      count++;
    else if (c == 'y')
      count--;
    else if (c == '\n' || c == ' ')
      break;
  }
  if (count > 0) {
    while (count--) putchar('x');
  } else if (count < 0) {
    while (count++) putchar('y');
  }
  return 0;
}
