#include <bits/stdc++.h>
const long long inf = 1e9;
const long double eps = 1e-9;
const long long N = 1e6;
const long long M = 1e3;
using namespace std;
void ret(string s) {
  cout << s;
  exit(0);
}
int n, k, x, y;
string s;
int a[3];
int main() {
  cin >> s;
  for (int i = 0; i < s.length(); i++)
    if (s[i] == 'x')
      x++;
    else
      y++;
  char ch = 'x';
  if (y > x) ch = 'y';
  for (int i = 0; i < abs(y - x); i++) cout << ch;
  return 0;
}
