let line;
while(line=readline()){
    let arr=line.split(' ').reverse()
    console.log(arr.join(' '))
}