#include <bits/stdc++.h>
using namespace std;
void solveTestCase() {
  string str, ans;
  cin >> str;
  long long int cntx = 0, cnty = 0;
  for (long long int i = 0; i < str.size(); i++) {
    if (str[i] == 'x')
      cntx += 1;
    else
      cnty += 1;
  }
  if (cntx > cnty)
    for (long long int i = 0; i < abs(cntx - cnty); i++) ans += 'x';
  else
    for (long long int i = 0; i < abs(cnty - cntx); i++) ans += 'y';
  cout << ans << '\n';
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solveTestCase();
  return 0;
}
