#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 0, 1, -1, 1, 1, -1, -1};
int dy[] = {1, -1, 0, 0, 1, -1, 1, -1};
int a[5][5];
int main() {
  string s;
  cin >> s;
  int c = 0;
  for (int i = 0; i < s.length(); i++)
    if (s[i] == 'x')
      c++;
    else
      c--;
  bool f = 0;
  if (c < 0) f = 1, c *= -1;
  for (int i = 0; i < c; i++)
    if (f)
      printf("y");
    else
      printf("x");
  return 0;
}
