#include <bits/stdc++.h>
using namespace std;
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
const double pi = acos(-1.0);
const int modd = 1e9 + 7;
const int N = 2e5 + 10;
const int inf = 0x3f3f3f3f;
long long s[N], cnt = 0;
void init(long long x) {
  if (x > 1e9) return;
  long long t = x * 10 + 4;
  s[cnt++] = t;
  init(t);
  t = x * 10 + 7;
  s[cnt++] = t;
  init(t);
}
int main() {
  string a;
  cin >> a;
  int x = 0, y = 0, k = a.length();
  for (int i = 0; i < k; i++)
    if (a[i] == 'x')
      x++;
    else
      y++;
  if (x > y)
    for (int i = 1; i <= x - y; i++) cout << "x";
  if (x < y)
    for (int i = 1; i <= y - x; i++) cout << "y";
  return 0;
}
