function Main (input) {
  res = "";
  input.split('¥n').forEach((l, i) => {
    res += l.charAt(i);
  });
  //return res;
  console.log(res);
}

module.exports = Main;

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
