import java.io.*;
import java.util.*;

public class Palindrome {

    public static void main (String[] args)
	               throws FileNotFoundException, IOException {

	// this file is a standard list of words that appears on
        // most UNIX systems
	checkFile ("/usr/share/dict/words");
    }
    
    public static void checkFile (String filename) throws IOException {
	
	// open the file and create a BufferedReader for it
	BufferedReader in =
	    new BufferedReader (new FileReader (filename));
	
	// use the BufferedReader to get lines from the file
	String s;
	while (true) {
	    s = in.readLine();
	    if (s == null) break;
	    if (isPalindrome (s)) {
		System.out.println (s);
	    }
	}
    }
    
    public static boolean isPalindrome (String s) {
	// Replace the following line with code that
	// checks whether a word is a palindrome.
	// Then remove these comments.
        return true;
    }
}






