make a program that will input 6 numbers and output the highest number and the lowest number

input n

max=min=n
for i=2..6
  read n
  if n>max then max=n
  if n<min then min=n
next i
print max,min