Anagrams (II)

Problem Number: 
630
Type of Problem: 
Problem Category: 
Input: 
Random Input
0
0
Critical Input: 
Random Input: 
3 8 lato atol microphotographics rata rola tara tola pies tola kola aatr photomicrographics END 5 xxx loka kola kola loka kola photomicrographics xxx END 0 abcde fgh microphotographics END
Problem Id: 
630