import java.io.*; import java.util.*; public class Spell{ public static void main (String[] argv) throws Exception { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); Set dictionary = new HashSet(); int nWords = Integer.parseInt(input.readLine()); for(int i=0;i