#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const double PI = acos(-1.0);
string s;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> s;
  int xc = 0, yc = 0;
  for (int i = int(0); i < int(s.length()); i++) {
    if (s[i] == 'x')
      xc++;
    else
      yc++;
  }
  if (xc > yc) {
    int r = xc - yc;
    while (r--) cout << 'x';
  } else {
    int r = yc - xc;
    while (r--) cout << 'y';
  }
  cout << endl;
  return 0;
}
