#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:128777216")
const long long LINF = 1000000000000000000LL;
const int INF = 1000000000;
const long double eps = 1e-9;
const long double PI = 3.1415926535897932384626433832795l;
using namespace std;
void prepare(string s) {
  if (s.length() != 0) {
    freopen((s + ".in").c_str(), "r", stdin);
    freopen((s + ".out").c_str(), "w", stdout);
  }
}
void readdata() {}
void writedata() {}
void solve() {}
int main() {
  char c;
  int x = 0, y = 0;
  while (cin >> c) {
    if (c == 'x')
      x++;
    else if (c == 'y')
      y++;
  }
  int r = x - y;
  if (r > 0) {
    for (int i = 0; i < (int)r; i++) printf("x");
  } else if (r < 0) {
    for (int i = 0; i < (int)abs(r); i++) printf("y");
  }
  return 0;
}
