/*****************************************************************
** EchoAlphaWords - echo words to console that contain letters
**
** (c) Scott MacKenzie, 2000                             
******************************************************************/
import java.io.*;
import java.util.*;

public class EchoAlphaWords
{
   public static void main(String[] args) throws IOException
   {
      // prepare keyboard for input
      BufferedReader stdin =
         new BufferedReader(new InputStreamReader(System.in), 1);

      // prepare to extract words from a line
      StringTokenizer words;
      String line;
      String word;

      // process lines until 'null' (no more input)
      while ((line = stdin.readLine()) != null)
      {
         // prepare to tokenize line
         words = new StringTokenizer(line);

         // process words in line
         while (words.hasMoreTokens())
         {
            word = words.nextToken();
            boolean isAlphaWord = true;

            // process characters in word
            for (int i = 0; i < word.length(); i++)
               if (!Character.isLetter(word.charAt(i)))
                  isAlphaWord = false;
            if (isAlphaWord)
               System.out.println(word);
         }
      } 
   }         
}


