#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int cnt1, cnt2, cnt;
  char ans;
  cin >> str;
  int len = str.length();
  cnt1 = cnt2 = 0;
  for (int i = 0; i < len; i++) {
    if ('x' == str[i])
      cnt1++;
    else
      cnt2++;
  }
  if (cnt2 > cnt1) {
    cnt = cnt2 - cnt1;
    ans = 'y';
  } else {
    cnt = cnt1 - cnt2;
    ans = 'x';
  }
  for (int i = 0; i < cnt; i++) printf("%c", ans);
  printf("\n");
}
