import Foundation

func main() {
	var input = readLine()!
	for i in 0..<targets.count {
		if input == "" { break }
		input = input.replacingOccurrences(of: targets[i], with: "")
		print(input)
	}
	print(input.isEmpty ? "YES" : "NO")
}

main()
