function Show(mas) { return (mas.length>2)? (mas.slice(0, -1).join(", ").concat(" and ", mas[mas.length-1])) : mas.join(", "); }