init #51202870 Solve "Sherlock and The Beast" problem