#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
const int dx[] = {-1, 1, 0, 0};
const int dy[] = {0, 0, 1, -1};
const double EPS = 1e-10;
const double PI = acos(-1.0);
string s;
int a, b;
int main() {
  cin >> s;
  sort(s.begin(), s.end());
  for (int i = (0); i < (s.size()); ++i) {
    if (s[i] == 'x')
      a++;
    else
      b++;
  }
  if (a > b) {
    for (int i = (0); i < (a - b); ++i) printf("x");
  } else {
    for (int i = (0); i < (b - a); ++i) printf("y");
  }
  printf("\n");
  return 0;
}
