"""
In this little assignment you are given a string of space separated numbers, and have to return the highest and lowest number.

Example:

high_and_low("1 2 3 4 5")  # return "5 1"
high_and_low("1 2 -3 4 5") # return "5 -3"
high_and_low("1 9 3 4 -5") # return "9 -5"

link to kata: https://www.codewars.com/kata/554b4ac871d6813a03000035

"""


input_string = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"

#output should be "542 -214"


def high_and_low(numbers):
  return " ".join(x(numbers.split(), key=int) for x in (max, min))


def main():
	high_and_low(input_string)


if __name__ == "__main__": main()