#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 9, M = 3e5 + 9, OO = 0x3f3f3f3f;
const double EPS = 0.00000000001;
const int mod = 1000000007;
char s[N];
int y, x;
void print() {
  if (x > y)
    for (int i = 0; i < x - y; ++i) printf("x");
  else
    for (int i = 0; i < y - x; ++i) printf("y");
  puts("");
}
int main() {
  scanf(" %s", s);
  for (int i = 0; s[i]; ++i) (s[i] == 'x' ? ++x : ++y);
  print();
  return 0;
}
