def stringify(directions):
	"""
		Converts a bunch of directions into a unique identifier string -- irrespective of how directions are ordered in the iterable
		NOTE: DO NOT CHANGE THIS LOGIC WITHOUT THOUGHT
	"""
	return "_".join(sorted(list(directions)))