#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  string str;
  cin >> str;
  x = y = 0;
  for (int i = 0; i < str.length(); i++)
    if (str[i] == 'x')
      x++;
    else
      y++;
  if (x > y)
    for (int i = 0; i < x - y; i++) cout << "x";
  else
    for (int i = 0; i < y - x; i++) cout << "y";
}
