function solution(s) {
let min = Math.min.apply(null,s.split(" ").map(Number));
let max = Math.max.apply(null,s.split(" ").map(Number));
var answer = min+" "+max;
return answer;
}
function solution(s) {
const arr = s.split(' ');
return Math.min(...arr)+' '+Math.max(...arr);
}
function solution(s) {
var answer = '';
var max,min;
var arr=[];
arr=s.split(' ');
max=parseInt(arr[0]);
min=parseInt(arr[0])
for(let i=0;i<s.length;i++){
let num=parseInt(arr[i]);
if(max<num) max=num;
if(min>num) min=num;
}
console.log(max,min);
answer=min+" "+max;
return answer;
}