import java.util.*;enum L{L;System z;String[]l=new String[99];int i,j;{for(Scanner s=new Scanner(z.in);s.hasNext();l[i++]=s.nextLine());for(;j