(stdin => {
  // Define Function
  const nsort = (array) => array.sort((x, y) => x - y).join(' ')
  // Declare Variable
  const inputs = stdin.toString().trim().split('\n')
  const nlist = inputs.slice(0, -1)
    .map(v => v.split(' ').map(Number))

  // Main
  const result = Array.from(nlist, nsort)
  // Display
  console.log(result.join('\n'))
})(require('fs').readFileSync('/dev/stdin', 'utf8'))
