#include <bits/stdc++.h>
const int BIG = 2000000000;
const double INF = 1e9;
const double EPS = 1e-9;
using namespace std;
int main() {
  char c;
  int x = 0, y = 0;
  while (scanf("%c", &c) != EOF) {
    if (c == 'x') x++;
    if (c == 'y') y++;
  }
  int ans = 0;
  if (x > y) {
    ans = x - y;
    while (ans--) printf("x");
    printf("\n");
  } else {
    ans = y - x;
    while (ans--) printf("y");
    printf("\n");
  }
  return 0;
}
