const main = (inputs) => {
  var array = inputs[0].split(" ");
  var c = array[2];
  array.unshift(c);
  array.pop();
  console.log(array.join(' '))
}
main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));