import java.io.FileNotFoundException;
import java.util.Scanner;
import java.io.FileReader;
import java.io.PrintWriter;
public class Project {
public static void main(String[] args) throws FileNotFoundException {
String line, rev;
int x;
Scanner inFile = new Scanner(new FileReader("Word Salad"));
PrintWriter outFile = new PrintWriter("copy.txt");
while ( inFile.hasNext() ) {
line = inFile.next().toUpperCase();
//System.out.println(line);
rev = "";
for ( x = line.length() - 1; x >= 0; x-- )
rev = rev + line.charAt(x);
outFile.println(rev);
System.out.println(rev);
}
inFile.close();
outFile.close();
}
}