function highAndLow(numbers){
const num = numbers.split(' ')
let low = +num[0]
let high = +num[0]
for( let i of num){
if(+i <low){
low = +i
}
if(+i>high){
high = +i
}
}
return `${high} ${low}`
}
//codewars:Highest and Lowest
function highAndLow(str){
let max =-Infinity;
let min = Infinity ;
let x = str.split(" ").map((m)=>{
m= parseInt(m)
if(m>max){
max = m
}
if(m<min){
min = m
}
})
return (`${max} ${min}`)
}