#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int l = str.length(), flag = 1;
  for (int i = 0, j = 1; j < l; i++, j++) {
    if (str[i] == 'y') {
      while (j < l && str[j] != 'x') j++;
      if (j < l && str[j] == 'x') swap(str[i], str[j]);
    }
  }
  int arr[2] = {0};
  for (int i = 0; i < l; i++)
    if (str[i] == 'x')
      arr[0]++;
    else
      arr[1]++;
  if (arr[0] > arr[1])
    for (int i = arr[1] + 1; i <= arr[0]; i++) printf("%c", 'x');
  else
    for (int i = arr[0] + 1; i <= arr[1]; i++) printf("%c", 'y');
  return 0;
}
