#include <bits/stdc++.h>
using namespace std;
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, -1, 1};
int main() {
  ios::sync_with_stdio(0);
  string s;
  cin >> s;
  int x, y;
  x = y = 0;
  for (int i = 0; i < s.size(); ++i)
    if (s[i] == 'x')
      x++;
    else
      y++;
  int r = min(x, y);
  for (int i = 0; i < x - r; ++i) printf("x");
  for (int i = 0; i < y - r; ++i) printf("y");
  printf("\n");
  return 0;
}
