Types: puzzles: List[List[List[int]]]
Ranges: 0 ≤ pi ≤ 11, number of datasets ≤ 100
Addtl Info: Input ends with a single line containing -1