Unit 407 Automated Constructor has made a toy:

          maniac        
                   
    cat           hand  
                   
              dog    
        hand          
                north  
                   
  south                
  east a              

Statistical analysis should be enough to figure it out...


...or sneak a peek at the answers.


Back