← Home
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
)

func main() {
	b, _ := io.ReadAll(os.Stdin)
	s := string(b)
	xCount := strings.Count(s, "x")
	yCount := strings.Count(s, "y")

	if xCount > yCount {
		fmt.Println(strings.Repeat("x", xCount-yCount))
	} else if yCount > xCount {
		fmt.Println(strings.Repeat("y", yCount-xCount))
	}
}