var line=readline() var arr=[] if(line.length===1){ console.log(line) }else{ for(let i=0;i<line.length;i++){ arr.unshift(line[i]) } console.log(arr.join('')) }