3
4 4
1111
1a01
1 11
1111
4 5
11111
1B101
1a1 1
11111
10 10
1111111111
1 a b 1
1 111111 1
1 11 a A 1
1b B111 1
11 11 C1
1 B 1 11
1 11111 11
1a 0 A1
1111111111
weight: 1
distance: 1
No treasure.
weight: 511
distance: 89