#include <bits/stdc++.h>
const long long int INF = 1e18L + 5;
using namespace std;
void input() {}
long long p1(long long base, long long power) {
  long long res = 1;
  while (power != 0) {
    if (power % 2 == 0) {
      base = ((base % 1000000007) * (base % 1000000007)) % 1000000007;
      power = floor(power / 2);
    } else {
      res = ((res % 1000000007) * (base % 1000000007)) % 1000000007;
      power = power - 1;
    }
  }
  return res;
}
bool compare(int a, int b) { return a > b; }
vector<long long> graph[10001];
long long color[10001];
long long visited[10001];
long long step = 0;
void dfs(long long x) {
  visited[x] = 1;
  for (auto u : graph[x]) {
    if (!visited[u]) {
      if (color[u] != color[x]) {
        step++;
      }
      dfs(u);
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  string s, ans;
  cin >> s;
  long long cx = 0, cy = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == 'x') {
      cx++;
    } else {
      cy++;
    }
  }
  if (cx > cy) {
    for (int i = 0; i < abs(cx - cy); i++) {
      ans += 'x';
    }
  } else {
    for (int i = 0; i < abs(cy - cx); i++) {
      ans += 'y';
    }
  }
  cout << ans << "\n";
}
