'use strict'

function main(s) {

  const strs = s.split('\n').slice(1, -1);
  strs.sort();

  const ans = strs.join('')
  console.log(ans);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
