(map print(reverse(let i((a(string->list(read-line))))(if(null? a)'()(append(list(list->string(append a(reverse a))))(i(cdr a)))))))