#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-11;
const double pi = acos(-1.0);
const int p = 1000000007;
int countbit(int n) { return n == 0 ? 0 : countbit(n / 2) + n % 2; }
int lowbit(int n) { return (n ^ (n - 1)) & n; }
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
long long toInt64(string s) {
  istringstream sin(s);
  long long t;
  sin >> t;
  return t;
}
string toStr(long long t) {
  stringstream sin;
  sin << t;
  string s;
  sin >> s;
  return s;
}
template <typename T>
T sqr(T n) {
  return n * n;
}
template <typename T>
void out(T& v) {
  for (int i = 0; i < v.size(); i++) cout << v[i] << ' ';
  cout << endl;
}
class Timer {
 public:
  double start;
  Timer() { start = static_cast<double>(clock()); }
  void out() { cout << "TIME: " << (clock() - start) / CLOCKS_PER_SEC << endl; }
};
void solve() {
  string s;
  cin >> s;
  int x = 0, y = 0;
  for (int i = 0; i < s.size(); i++)
    if (s[i] == 'x')
      x++;
    else
      y++;
  if (x > y)
    cout << string(x - y, 'x') << endl;
  else
    cout << string(y - x, 'y') << endl;
}
int main() {
  cout.sync_with_stdio(false);
  cin.sync_with_stdio(false);
  solve();
  return EXIT_SUCCESS;
}
