blob: 97aef29b5761c2aae553d020a731fa23ec3e3157 [file] [log] [blame]
Adam Bootea4947a2006-03-20 03:06:07 +00001/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* Copyright (C) 2005 Adam Boot
11*
12* Color graphics from Frozen Bubble (http://www.frozen-bubble.org/)
13*
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000014* This program is free software; you can redistribute it and/or
15* modify it under the terms of the GNU General Public License
16* as published by the Free Software Foundation; either version 2
17* of the License, or (at your option) any later version.
Adam Bootea4947a2006-03-20 03:06:07 +000018*
19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20* KIND, either express or implied.
21*
22****************************************************************************/
23
24#include "plugin.h"
Adam Bootea4947a2006-03-20 03:06:07 +000025
26#ifdef HAVE_LCD_BITMAP
27
Kevin Ferraredf4f56b2007-07-31 04:59:03 +000028#include "xlcd.h"
29#include "pluginlib_actions.h"
30#include "fixedpoint.h"
31
Adam Bootea4947a2006-03-20 03:06:07 +000032PLUGIN_HEADER
33
34/* files */
Jonathan Gordonfda7d722007-08-06 13:42:52 +000035#define SCORE_FILE PLUGIN_GAMES_DIR "/bubbles.score"
36#define SAVE_FILE PLUGIN_GAMES_DIR "/bubbles.save"
Adam Bootea4947a2006-03-20 03:06:07 +000037
38/* final game return status */
39#define BB_NONE 5
40#define BB_WIN 4
41#define BB_END 3
42#define BB_USB 2
43#define BB_QUIT 1
44#define BB_LOSE 0
45
46/* play board dimension */
47#define BB_HEIGHT 12
48#define BB_WIDTH 8
Adam Bootf45b3332006-03-29 01:32:33 +000049#define BB_LEVEL_HEIGHT 10
Adam Bootea4947a2006-03-20 03:06:07 +000050
Adam Bootf45b3332006-03-29 01:32:33 +000051/* various amounts */
Adam Bootea4947a2006-03-20 03:06:07 +000052#define NUM_SCORES 10
53#define NUM_LEVELS 100
54#define NUM_QUEUE 2
55#define NUM_BUBBLES 8
56#define MIN_ANGLE -76
57#define MAX_ANGLE 76
58#define NUM_COMPRESS 9
59#define MAX_SHOTTIME 1000
60
Jonathan Gordone2a262e2006-11-17 03:18:04 +000061/* keyboard layouts */
Jonathan Gordona39cf4f2007-07-29 09:22:14 +000062#if CONFIG_KEYPAD != SANSA_E200_PAD
63/* sansa uses the wheel instead of left/right */
Jonathan Gordone2a262e2006-11-17 03:18:04 +000064#define BUBBLES_LEFT PLA_LEFT
65#define BUBBLES_LEFT_REP PLA_LEFT_REPEAT
66#define BUBBLES_RIGHT PLA_RIGHT
67#define BUBBLES_RIGHT_REP PLA_RIGHT_REPEAT
Jonathan Gordona39cf4f2007-07-29 09:22:14 +000068#define ANGLE_STEP 4
69#define ANGLE_STEP_REP 4
70#else
71#define BUBBLES_LEFT PLA_UP
72#define BUBBLES_LEFT_REP PLA_UP_REPEAT
73#define BUBBLES_RIGHT PLA_DOWN
74#define BUBBLES_RIGHT_REP PLA_DOWN_REPEAT
75#define ANGLE_STEP 2
76#define ANGLE_STEP_REP 4
77#endif
78
Adam Boot769d6a82007-01-19 23:03:41 +000079#define BUBBLES_QUIT PLA_QUIT
80#define BUBBLES_START PLA_START
81#define BUBBLES_SELECT PLA_FIRE
82#define BUBBLES_RESUME PLA_MENU
Jonathan Gordone2a262e2006-11-17 03:18:04 +000083
84#if CONFIG_KEYPAD != ONDIO_PAD
85
86#define BUBBLES_LVLINC PLA_UP
87#define BUBBLES_LVLINC_REP PLA_UP_REPEAT
88#define BUBBLES_LVLDEC PLA_DOWN
89#define BUBBLES_LVLDEC_REP PLA_DOWN_REPEAT
90
91#else /* ondio keys */
92
93#define BUBBLES_LVLINC PLA_RIGHT
94#define BUBBLES_LVLINC_REP PLA_RIGHT_REPEAT
95#define BUBBLES_LVLDEC PLA_LEFT
96#define BUBBLES_LVLDEC_REP PLA_LEFT_REPEAT
97
98#endif
99
Jens Arnold29361ab2008-03-22 10:24:28 +0000100/* external bitmaps */
101#ifdef HAVE_LCD_COLOR
102#include "bubbles_background.h"
103#endif
104#include "bubbles_bubble.h"
105#include "bubbles_emblem.h"
106
107#define BUBBLE_WIDTH BMPWIDTH_bubbles_bubble
108#define BUBBLE_HEIGHT BMPHEIGHT_bubbles_bubble
109#define EMBLEM_WIDTH BMPWIDTH_bubbles_emblem
110#define EMBLEM_HEIGHT (BMPHEIGHT_bubbles_emblem/8)
Jonathan Gordone2a262e2006-11-17 03:18:04 +0000111
Adam Boot769d6a82007-01-19 23:03:41 +0000112/* bubbles will consume height of ROW_HEIGHT*(BB_HEIGHT-1)+BUBBLE_HEIGHT*3/2 */
113/* 22x22 bubbles (iPod Video) */
Adam Bootea4947a2006-03-20 03:06:07 +0000114#if (LCD_HEIGHT == 240) && (LCD_WIDTH == 320)
Jens Arnolda5af06b2006-04-17 02:21:08 +0000115#define XOFS 72
116#define ROW_HEIGHT 18
117#define ROW_INDENT 11
118#define MAX_FPS 40
Adam Bootea4947a2006-03-20 03:06:07 +0000119
Adam Boot769d6a82007-01-19 23:03:41 +0000120/* 22x22 bubbles (Gigabeat) */
121#elif (LCD_HEIGHT == 320) && (LCD_WIDTH == 240)
Adam Boot769d6a82007-01-19 23:03:41 +0000122#define XOFS 64
123#define ROW_HEIGHT 18
124#define ROW_INDENT 11
Nicolas Pennequin95b52a02007-05-15 16:45:45 +0000125#define MAX_FPS 30
Adam Boot769d6a82007-01-19 23:03:41 +0000126
Adam Bootea4947a2006-03-20 03:06:07 +0000127/* 16x16 bubbles (H300, iPod Color) */
128#elif (LCD_HEIGHT == 176) && (LCD_WIDTH == 220)
Jens Arnolda5af06b2006-04-17 02:21:08 +0000129#define XOFS 46
130#define ROW_HEIGHT 14
131#define ROW_INDENT 8
132#define MAX_FPS 30
Adam Bootea4947a2006-03-20 03:06:07 +0000133
Adam Boot769d6a82007-01-19 23:03:41 +0000134/* 16x16 bubbles (Sansa E200) */
135#elif (LCD_HEIGHT == 220) && (LCD_WIDTH == 176)
Adam Boot769d6a82007-01-19 23:03:41 +0000136#define XOFS 48
Jens Arnolda5af06b2006-04-17 02:21:08 +0000137#define ROW_HEIGHT 14
138#define ROW_INDENT 8
Adam Boot769d6a82007-01-19 23:03:41 +0000139#define MAX_FPS 30
Adam Bootea4947a2006-03-20 03:06:07 +0000140
Adam Boote56b1512007-01-19 23:23:32 +0000141/* 12x12 bubbles (iPod Nano) */
Adam Bootea4947a2006-03-20 03:06:07 +0000142#elif (LCD_HEIGHT == 132) && (LCD_WIDTH == 176)
Jens Arnolda5af06b2006-04-17 02:21:08 +0000143#define XOFS 40
144#define ROW_HEIGHT 10
145#define ROW_INDENT 6
146#define MAX_FPS 40
Adam Bootea4947a2006-03-20 03:06:07 +0000147
Jens Arnoldf3dd5672006-09-18 21:21:12 +0000148/* 12x12 bubbles (H100, H10, iAudio X5, iPod 3G, iPod 4G grayscale) */
149#elif (LCD_HEIGHT == 128) && ((LCD_WIDTH == 160) || (LCD_WIDTH == 128))
Jens Arnolda5af06b2006-04-17 02:21:08 +0000150#define XOFS 33
151#define ROW_HEIGHT 10
152#define ROW_INDENT 6
153#define MAX_FPS 30
Adam Bootea4947a2006-03-20 03:06:07 +0000154
Jens Arnold13ade062006-04-15 12:30:37 +0000155/* 10x10 bubbles (iPod Mini) */
156#elif (LCD_HEIGHT == 110) && (LCD_WIDTH == 138)
Jens Arnolda5af06b2006-04-17 02:21:08 +0000157#define XOFS 33
158#define ROW_HEIGHT 8
Jens Arnold375b2252006-04-21 05:58:38 +0000159#define ROW_INDENT 5
Jens Arnolda5af06b2006-04-17 02:21:08 +0000160#define MAX_FPS 30
161
Jens Arnold29361ab2008-03-22 10:24:28 +0000162/* 9x9 bubbles (iAudio M3) */
163#elif (LCD_HEIGHT == 96) && (LCD_WIDTH == 128)
164#define XOFS 45
165#define ROW_HEIGHT 7
166#define ROW_INDENT 4
167#define MAX_FPS 30
168
Marianne Arnoldbb629422007-09-28 22:05:22 +0000169/* 8x8 bubbles (Sansa C200) */
170#elif (LCD_HEIGHT == 80) && (LCD_WIDTH == 132)
Marianne Arnoldbb629422007-09-28 22:05:22 +0000171#define XOFS 45
172#define ROW_HEIGHT 6
173#define ROW_INDENT 4
174#define MAX_FPS 30
175
Jens Arnolda5af06b2006-04-17 02:21:08 +0000176/* 8x7 bubbles (Archos recorder, Ondio) */
177#elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112)
Jens Arnolda5af06b2006-04-17 02:21:08 +0000178#define XOFS 33
179#define ROW_HEIGHT 5
180#define ROW_INDENT 4
181#define MAX_FPS 20
Jens Arnold13ade062006-04-15 12:30:37 +0000182
Adam Bootea4947a2006-03-20 03:06:07 +0000183#else
184 #error BUBBLES: Unsupported LCD type
185#endif
186
Jens Arnolda5af06b2006-04-17 02:21:08 +0000187#define TEXT_LINES (LCD_HEIGHT/8)
188
Adam Bootea4947a2006-03-20 03:06:07 +0000189/* shot position */
Jens Arnolda5af06b2006-04-17 02:21:08 +0000190#define SHOTX XOFS+ROW_INDENT+BUBBLE_WIDTH*3
191#define SHOTY ROW_HEIGHT*(BB_HEIGHT-1)+BUBBLE_HEIGHT/2
Adam Bootea4947a2006-03-20 03:06:07 +0000192
193/* collision distance squared */
Jens Arnolda5af06b2006-04-17 02:21:08 +0000194#define MIN_DISTANCE ((BUBBLE_WIDTH*8)/10)*((BUBBLE_HEIGHT*8)/10)
Adam Bootea4947a2006-03-20 03:06:07 +0000195
Adam Bootea4947a2006-03-20 03:06:07 +0000196/* global rockbox api */
Steve Bavin65265772008-05-13 09:57:56 +0000197static const struct plugin_api* rb;
Adam Bootea4947a2006-03-20 03:06:07 +0000198
199/* levels */
200char level[NUM_LEVELS][BB_LEVEL_HEIGHT][BB_WIDTH] = {
201 {{ 6, 6, 4, 4, 2, 2, 3, 3},
202 { 6, 6, 4, 4, 2, 2, 3, -1},
203 { 2, 2, 3, 3, 6, 6, 4, 4},
204 { 2, 3, 3, 6, 6, 4, 4, -1},
205 {-1, -1, -1, -1, -1, -1, -1, -1},
206 {-1, -1, -1, -1, -1, -1, -1, -1},
207 {-1, -1, -1, -1, -1, -1, -1, -1},
208 {-1, -1, -1, -1, -1, -1, -1, -1},
209 {-1, -1, -1, -1, -1, -1, -1, -1},
210 {-1, -1, -1, -1, -1, -1, -1, -1}},
211 {{-1, 7, 7, 7, 7, 7, 7, -1},
212 {-1, 1, 1, 1, 1, 1, -1, -1},
213 {-1, -1, 2, 2, 2, 2, -1, -1},
214 {-1, -1, -1, 2, -1, -1, -1, -1},
215 {-1, -1, -1, 2, 2, -1, -1, -1},
216 {-1, -1, -1, 5, -1, -1, -1, -1},
217 {-1, -1, -1, 5, 5, -1, -1, -1},
218 {-1, -1, -1, -1, -1, -1, -1, -1},
219 {-1, -1, -1, -1, -1, -1, -1, -1},
220 {-1, -1, -1, -1, -1, -1, -1, -1}},
221 {{-1, -1, 7, -1, -1, 7, -1, -1},
222 {-1, -1, 7, 1, 7, -1, -1, -1},
223 {-1, -1, -1, 1, 2, -1, -1, -1},
224 {-1, -1, 1, 2, 1, -1, -1, -1},
225 {-1, -1, -1, 2, 5, -1, -1, -1},
226 {-1, -1, 3, 5, 3, -1, -1, -1},
227 {-1, -1, -1, 5, 3, -1, -1, -1},
228 {-1, -1, -1, 3, -1, -1, -1, -1},
229 {-1, -1, -1, -1, -1, -1, -1, -1},
230 {-1, -1, -1, -1, -1, -1, -1, -1}},
231 {{-1, -1, -1, 0, 0, -1, -1, -1},
232 {-1, -1, 5, 0, 1, -1, -1, -1},
233 {-1, -1, 3, 5, 1, 6, -1, -1},
234 {-1, 4, 3, -1, 6, 7, -1, -1},
235 {-1, 7, 4, -1, -1, 7, 4, -1},
236 { 6, 7, -1, -1, -1, 4, 3, -1},
237 { 1, 6, -1, -1, -1, -1, 3, 5},
238 { 1, -1, -1, -1, -1, -1, 5, -1},
239 {-1, -1, -1, -1, -1, -1, -1, -1},
240 {-1, -1, -1, -1, -1, -1, -1, -1}},
241 {{-1, -1, 0, 0, 0, 0, -1, -1},
242 {-1, 0, 1, 1, 1, 0, -1, -1},
243 {-1, 0, 1, 0, 0, 1, 0, -1},
244 {-1, 0, 1, 1, 1, 0, -1, -1},
245 {-1, -1, 0, 0, 0, 0, -1, -1},
246 {-1, -1, 7, -1, 7, -1, -1, -1},
247 {-1, -1, 7, 7, 7, 7, -1, -1},
248 {-1, -1, -1, -1, -1, -1, -1, -1},
249 {-1, -1, -1, -1, -1, -1, -1, -1},
250 {-1, -1, -1, -1, -1, -1, -1, -1}},
251 {{-1, 4, 4, 4, 6, 6, 6, -1},
252 { 4, -1, -1, -1, -1, -1, 6, -1},
253 {-1, 4, -1, -1, -1, -1, 6, -1},
254 { 4, 2, 3, 1, 2, 3, 6, -1},
255 {-1, 3, 1, 2, 3, 1, 2, -1},
256 {-1, -1, -1, -1, -1, -1, -1, -1},
257 {-1, -1, -1, -1, -1, -1, -1, -1},
258 {-1, -1, -1, -1, -1, -1, -1, -1},
259 {-1, -1, -1, -1, -1, -1, -1, -1},
260 {-1, -1, -1, -1, -1, -1, -1, -1}},
261 {{-1, 4, 4, 4, 6, 6, 6, -1},
262 { 4, -1, -1, -1, -1, -1, 6, -1},
263 {-1, 4, -1, -1, -1, -1, 6, -1},
264 { 4, 2, 3, 1, 2, 3, 6, -1},
265 {-1, 3, 1, 2, 3, 1, 2, -1},
266 {-1, 2, 3, 1, 2, 3, -1, -1},
267 {-1, -1, -1, -1, -1, -1, -1, -1},
268 {-1, -1, -1, -1, -1, -1, -1, -1},
269 {-1, -1, -1, -1, -1, -1, -1, -1},
270 {-1, -1, -1, -1, -1, -1, -1, -1}},
271 {{-1, 0, 0, -1, -1, 2, 2, -1},
272 {-1, 5, -1, -1, -1, 3, -1, -1},
273 {-1, 0, -1, -1, -1, 6, -1, -1},
274 {-1, 3, -1, -1, -1, 0, -1, -1},
275 {-1, 4, -1, -1, -1, 5, -1, -1},
276 {-1, 2, -1, -1, -1, 3, -1, -1},
277 {-1, 2, -1, -1, -1, 1, -1, -1},
278 {-1, 3, -1, -1, -1, 4, -1, -1},
279 {-1, -1, -1, -1, -1, -1, -1, -1},
280 {-1, -1, -1, -1, -1, -1, -1, -1}},
281 {{ 3, -1, -1, -1, -1, -1, -1, 3},
282 { 6, 3, 2, 4, 6, 3, 2, -1},
283 { 4, -1, -1, -1, -1, -1, -1, 4},
284 { 2, 4, 6, 3, 2, 4, 6, -1},
285 {-1, -1, -1, 6, -1, -1, -1, -1},
286 {-1, -1, -1, 3, -1, -1, -1, -1},
287 {-1, -1, -1, -1, -1, -1, -1, -1},
288 {-1, -1, -1, -1, -1, -1, -1, -1},
289 {-1, -1, -1, -1, -1, -1, -1, -1},
290 {-1, -1, -1, -1, -1, -1, -1, -1}},
291 {{-1, 2, -1, 1, -1, 1, -1, 2},
292 { 1, 2, -1, 2, 1, -1, 1, -1},
293 { 1, -1, 1, -1, 2, -1, 2, -1},
294 { 2, 1, -1, 1, 2, -1, 2, -1},
295 {-1, 2, -1, 2, -1, 2, -1, 2},
296 { 1, 2, -1, 2, 1, -1, 1, -1},
297 { 1, -1, 1, -1, 2, -1, 1, -1},
298 { 2, 2, -1, 1, 1, -1, 2, -1},
299 {-1, 2, -1, 1, -1, 1, -1, 1},
300 {-1, -1, -1, -1, -1, -1, -1, -1}},
301 {{-1, 7, 7, -1, -1, 5, 5, -1},
302 { 1, -1, -1, -1, -1, -1, 4, -1},
303 { 2, 1, -1, -1, -1, -1, 4, 3},
304 { 2, -1, -1, -1, -1, -1, 3, -1},
305 { 1, 2, -1, -1, -1, -1, 3, 4},
306 { 1, -1, -1, -1, -1, -1, 4, -1},
307 { 7, 1, -1, -1, -1, -1, 4, 5},
308 { 7, 7, -1, -1, -1, 5, 5, -1},
309 {-1, -1, -1, -1, -1, -1, -1, -1},
310 {-1, -1, -1, -1, -1, -1, -1, -1}},
311 {{ 7, 7, -1, -1, -1, -1, 5, 5},
312 { 1, 5, -1, -1, -1, 7, 4, -1},
313 { 2, 1, -1, -1, -1, -1, 4, 3},
314 { 2, -1, -1, -1, -1, -1, 3, -1},
315 { 1, 5, -1, -1, -1, -1, 7, 4},
316 { 1, -1, -1, -1, -1, -1, 4, -1},
317 { 7, 1, -1, -1, -1, -1, 4, 5},
318 { 7, 5, -1, -1, -1, 7, 5, -1},
319 {-1, -1, -1, -1, -1, -1, -1, -1},
320 {-1, -1, -1, -1, -1, -1, -1, -1}},
321 {{-1, -1, -1, 0, 0, -1, -1, -1},
322 {-1, -1, 5, 0, 1, -1, -1, -1},
323 {-1, -1, 3, 5, 1, 6, -1, -1},
324 {-1, 4, 3, 2, 6, 2, -1, -1},
325 {-1, 7, 4, 7, 2, 2, 4, -1},
326 { 6, 7, 7, 3, 3, 4, 3, -1},
327 { 1, 6, 1, 1, 1, 3, 3, 5},
328 { 1, 1, -1, -1, -1, -1, 5, -1},
329 {-1, -1, -1, -1, -1, -1, -1, -1},
330 {-1, -1, -1, -1, -1, -1, -1, -1}},
331 {{-1, -1, 0, -1, -1, 0, -1, -1},
332 {-1, 3, 3, -1, 3, 3, -1, -1},
333 {-1, 0, 2, 0, 0, 2, 0, -1},
334 {-1, 3, 3, -1, 3, 3, -1, -1},
335 {-1, -1, 0, -1, -1, 0, -1, -1},
336 {-1, -1, -1, -1, -1, -1, -1, -1},
337 {-1, -1, -1, -1, -1, -1, -1, -1},
338 {-1, -1, -1, -1, -1, -1, -1, -1},
339 {-1, -1, -1, -1, -1, -1, -1, -1},
340 {-1, -1, -1, -1, -1, -1, -1, -1}},
341 {{-1, -1, -1, 1, 1, -1, -1, -1},
342 {-1, -1, 2, 2, 2, -1, -1, -1},
343 {-1, -1, 3, 3, 3, 3, -1, -1},
344 {-1, 4, 4, 4, 4, 4, -1, -1},
345 {-1, 5, 5, 5, 5, 5, 5, -1},
346 {-1, -1, -1, 6, -1, -1, -1, -1},
347 {-1, -1, -1, 7, 7, -1, -1, -1},
348 {-1, -1, -1, 0, -1, -1, -1, -1},
349 {-1, -1, -1, -1, -1, -1, -1, -1},
350 {-1, -1, -1, -1, -1, -1, -1, -1}},
351 {{-1, -1, -1, 2, 5, -1, -1, -1},
352 {-1, 4, 3, -1, -1, -1, -1, -1},
353 { 6, 7, -1, 5, 2, -1, -1, -1},
354 {-1, -1, -1, -1, 3, 4, -1, -1},
355 {-1, -1, -1, 2, 5, -1, 7, 6},
356 {-1, 4, 3, -1, -1, -1, -1, -1},
357 { 6, 7, -1, 5, 2, -1, -1, -1},
358 {-1, -1, -1, -1, 3, 4, -1, -1},
359 {-1, -1, -1, -1, -1, -1, 7, 6},
360 {-1, -1, -1, -1, -1, -1, -1, -1}},
361 {{-1, -1, -1, 5, 5, -1, -1, -1},
362 {-1, -1, -1, 3, -1, -1, -1, -1},
363 {-1, -1, -1, 1, -1, -1, -1, -1},
364 {-1, -1, -1, 7, -1, -1, -1, -1},
365 {-1, -1, -1, 2, -1, -1, -1, -1},
366 {-1, -1, -1, 4, -1, -1, -1, -1},
367 {-1, -1, -1, 5, -1, -1, -1, -1},
368 {-1, -1, -1, 3, -1, -1, -1, -1},
369 {-1, -1, -1, -1, -1, -1, -1, -1},
370 {-1, -1, -1, -1, -1, -1, -1, -1}},
371 {{-1, -1, -1, 0, 1, -1, -1, -1},
372 {-1, -1, 0, 2, 7, 7, -1, -1},
373 {-1, -1, -1, 0, 1, 7, -1, -1},
374 {-1, 0, 0, 0, 0, -1, -1, -1},
375 {-1, 0, 0, 0, 1, 1, -1, -1},
376 { 0, 0, 0, 1, 1, 1, -1, -1},
377 {-1, 0, 0, 1, 1, 1, -1, -1},
378 {-1, 0, 0, 0, 7, 7, -1, -1},
379 {-1, -1, 7, 7, -1, -1, -1, -1},
380 {-1, -1, -1, -1, -1, -1, -1, -1}},
381 {{-1, 1, -1, -1, -1, -1, -1, -1},
382 { 1, -1, -1, -1, -1, -1, -1, -1},
383 {-1, 2, 3, 4, 7, 6, 5, -1},
384 {-1, -1, -1, -1, -1, -1, 1, -1},
385 {-1, -1, -1, -1, -1, -1, 1, -1},
386 {-1, 2, 3, 4, 7, 6, -1, -1},
387 {-1, 1, -1, -1, -1, -1, -1, -1},
388 { 1, -1, -1, -1, -1, -1, -1, -1},
389 {-1, 2, 3, 4, 7, 6, 5, -1},
390 {-1, -1, -1, -1, -1, -1, -1, -1}},
391 {{-1, 6, -1, -1, -1, -1, -1, -1},
392 { 5, -1, -1, -1, -1, -1, -1, -1},
393 { 2, 3, 4, 7, 6, 5, 2, 3},
394 {-1, -1, -1, -1, -1, -1, 4, -1},
395 {-1, -1, -1, -1, -1, -1, 7, -1},
396 {-1, 4, 3, 2, 5, 6, -1, -1},
397 {-1, 7, -1, -1, -1, -1, -1, -1},
398 { 6, -1, -1, -1, -1, -1, -1, -1},
399 { 5, 2, 3, 4, 7, 6, 5, -1},
400 {-1, -1, -1, -1, -1, -1, -1, -1}},
401 {{ 3, 2, 1, 0, 0, 1, 2, 3},
402 { 3, 2, 1, 0, 1, 2, 3, -1},
403 { 4, 3, 2, 1, 1, 2, 3, 4},
404 { 4, 3, 2, 1, 2, 3, 4, -1},
405 { 5, 4, 3, 2, 2, 3, 4, 5},
406 { 5, 4, 3, 2, 3, 4, 5, -1},
407 { 6, 5, 4, 3, 3, 4, 5, 6},
408 { 6, 5, 4, 3, 4, 5, 6, -1},
409 { 7, 6, 5, 4, 4, 5, 6, 7},
410 {-1, -1, -1, -1, -1, -1, -1, -1}},
411 {{-1, -1, -1, 5, 5, -1, -1, -1},
412 {-1, -1, -1, 3, -1, -1, -1, -1},
413 {-1, -1, -1, 2, 4, -1, -1, -1},
414 {-1, -1, -1, 6, -1, -1, -1, -1},
415 {-1, -1, -1, 2, 4, -1, -1, -1},
416 {-1, 2, -1, 5, -1, 4, -1, -1},
417 { 1, 0, 1, 0, 1, 0, 1, 0},
418 { 3, -1, 3, -1, 2, -1, 6, -1},
419 {-1, -1, -1, -1, -1, -1, -1, -1},
420 {-1, -1, -1, -1, -1, -1, -1, -1}},
421 {{-1, -1, -1, -1, 1, -1, -1, -1},
422 { 7, 4, 3, 5, -1, -1, -1, -1},
423 { 6, -1, -1, 1, -1, -1, -1, -1},
424 {-1, -1, -1, 5, 3, 4, 7, -1},
425 { 6, -1, -1, -1, 1, -1, -1, 6},
426 { 7, 4, 3, 5, -1, -1, -1, -1},
427 {-1, -1, -1, 1, -1, -1, -1, 6},
428 {-1, -1, -1, 5, 3, 4, 7, -1},
429 {-1, -1, -1, -1, -1, -1, -1, -1},
430 {-1, -1, -1, -1, -1, -1, -1, -1}},
431 {{-1, -1, -1, -1, 7, 3, 6, -1},
432 {-1, -1, 3, 7, 3, 6, 3, -1},
433 {-1, -1, 5, 7, 3, 6, 3, -1},
434 {-1, 6, 7, 3, 6, 7, -1, -1},
435 {-1, 7, 7, 3, 6, 1, -1, -1},
436 { 3, 7, 3, 6, 3, -1, -1, -1},
437 { 5, 6, 2, 7, 1, -1, -1, -1},
438 {-1, -1, -1, -1, -1, -1, -1, -1},
439 {-1, -1, -1, -1, -1, -1, -1, -1},
440 {-1, -1, -1, -1, -1, -1, -1, -1}},
441 {{ 5, -1, -1, -1, -1, -1, -1, 5},
442 { 5, -1, 6, 6, 6, -1, 5, -1},
443 {-1, 5, 4, -1, -1, 4, 5, -1},
444 {-1, 3, -1, -1, -1, 3, -1, -1},
445 {-1, 6, 0, -1, -1, 0, 6, -1},
446 {-1, 3, -1, -1, -1, 3, -1, -1},
447 {-1, -1, 4, -1, -1, 4, -1, -1},
448 {-1, -1, 6, 6, 6, -1, -1, -1},
449 {-1, -1, -1, -1, -1, -1, -1, -1},
450 {-1, -1, -1, -1, -1, -1, -1, -1}},
451 {{-1, 7, 0, -1, -1, 0, 7, -1},
452 { 7, -1, 0, -1, 0, -1, 7, -1},
453 { 7, 1, -1, 0, 0, -1, 1, 7},
454 { 7, 1, 2, 0, 2, 1, 7, -1},
455 { 7, 6, 3, 2, 2, 3, 6, 7},
456 { 7, -1, 3, 2, 3, -1, 7, -1},
457 {-1, 7, 7, 3, 3, 7, 7, -1},
458 {-1, -1, -1, 3, -1, -1, -1, -1},
459 {-1, -1, -1, -1, -1, -1, -1, -1},
460 {-1, -1, -1, -1, -1, -1, -1, -1}},
461 {{-1, 3, -1, 1, -1, 7, -1, 6},
462 { 5, -1, 7, -1, 7, -1, 6, -1},
463 { 6, -1, 0, -1, 5, -1, 3, -1},
464 {-1, 2, -1, 1, -1, 5, -1, -1},
465 {-1, 4, -1, 3, -1, 4, -1, -1},
466 { 2, -1, 3, -1, 2, -1, -1, -1},
467 {-1, -1, 4, -1, 6, -1, -1, -1},
468 {-1, -1, -1, 5, -1, -1, -1, -1},
469 {-1, -1, -1, -1, -1, -1, -1, -1},
470 {-1, -1, -1, -1, -1, -1, -1, -1}},
471 {{-1, -1, -1, -1, 1, -1, -1, -1},
472 {-1, -1, -1, -1, 3, -1, -1, -1},
473 { 6, 1, 3, 1, 2, 1, 4, 1},
474 {-1, -1, -1, -1, 6, -1, -1, -1},
475 {-1, -1, -1, 4, 1, -1, -1, -1},
476 {-1, -1, 1, -1, 3, -1, -1, -1},
477 {-1, -1, -1, 2, 1, -1, -1, -1},
478 {-1, -1, -1, -1, 4, -1, -1, -1},
479 {-1, -1, -1, 6, 1, -1, -1, -1},
480 {-1, -1, -1, 6, -1, -1, -1, -1}},
481 {{-1, -1, -1, 5, 4, -1, -1, -1},
482 {-1, -1, 4, 1, 0, -1, -1, -1},
483 {-1, -1, -1, 2, 3, -1, -1, -1},
484 {-1, 1, 4, -1, 2, 2, -1, -1},
485 {-1, 3, 1, 2, 5, 1, 4, -1},
486 {-1, 4, 2, -1, 0, 4, -1, -1},
487 {-1, -1, -1, -1, -1, -1, -1, -1},
488 {-1, -1, -1, -1, -1, -1, -1, -1},
489 {-1, -1, -1, -1, -1, -1, -1, -1},
490 {-1, -1, -1, -1, -1, -1, -1, -1}},
491 {{-1, -1, -1, -1, 1, -1, -1, -1},
492 {-1, -1, -1, 1, -1, -1, -1, -1},
493 {-1, 2, -1, -1, 1, -1, 5, -1},
494 { 5, -1, -1, 1, -1, -1, 0, -1},
495 {-1, 6, -1, -1, 1, -1, 4, -1},
496 {-1, 0, -1, 1, -1, 5, -1, -1},
497 {-1, -1, 5, 5, 0, 1, -1, -1},
498 {-1, -1, -1, -1, -1, -1, -1, -1},
499 {-1, -1, -1, -1, -1, -1, -1, -1},
500 {-1, -1, -1, -1, -1, -1, -1, -1}},
501 {{-1, -1, -1, 6, 3, -1, -1, -1},
502 {-1, -1, 3, 2, 6, -1, -1, -1},
503 {-1, -1, 2, 6, 3, 2, -1, -1},
504 {-1, 6, 3, 2, 6, 3, -1, -1},
505 {-1, 3, 2, 6, 3, 2, 6, -1},
506 { 2, 6, 3, 2, 6, 3, 2, -1},
507 { 6, 3, 2, 6, 3, 2, 6, 3},
508 {-1, -1, -1, -1, -1, -1, -1, -1},
509 {-1, -1, -1, -1, -1, -1, -1, -1},
510 {-1, -1, -1, -1, -1, -1, -1, -1}},
511 {{ 6, 6, 6, 6, 6, 6, 6, 6},
512 { 4, -1, -1, -1, -1, -1, -1, -1},
513 {-1, 3, 2, 5, 7, 6, 4, 3},
514 {-1, 5, -1, -1, -1, -1, -1, -1},
515 {-1, -1, 7, 6, 4, 3, 2, 5},
516 {-1, -1, 4, -1, -1, -1, -1, -1},
517 {-1, -1, -1, 3, 2, 5, 7, 6},
518 {-1, -1, -1, -1, -1, -1, -1, -1},
519 {-1, -1, -1, -1, -1, -1, -1, -1},
520 {-1, -1, -1, -1, -1, -1, -1, -1}},
521 {{ 1, -1, 7, -1, -1, 6, -1, 2},
522 { 6, -1, 1, -1, 6, 1, 3, -1},
523 {-1, 4, -1, 7, 2, -1, 7, -1},
524 { 2, 7, -1, -1, -1, 4, -1, -1},
525 { 6, -1, 3, 5, 0, 2, -1, 7},
526 { 1, -1, -1, -1, -1, -1, 1, -1},
527 {-1, 1, 4, 5, 7, 5, 1, -1},
528 {-1, -1, -1, -1, -1, -1, -1, -1},
529 {-1, -1, -1, -1, -1, -1, -1, -1},
530 {-1, -1, -1, -1, -1, -1, -1, -1}},
531 {{ 6, 6, 6, -1, -1, 6, 6, 6},
532 {-1, -1, 6, -1, 6, -1, -1, -1},
533 {-1, -1, 2, 3, 3, 2, -1, -1},
534 {-1, 3, -1, 5, -1, 3, -1, -1},
535 {-1, -1, 5, 3, 3, 5, -1, -1},
536 {-1, -1, 6, 1, 6, -1, -1, -1},
537 {-1, 4, 2, -1, -1, 2, 4, -1},
538 {-1, -1, -1, -1, -1, -1, -1, -1},
539 {-1, -1, -1, -1, -1, -1, -1, -1},
540 {-1, -1, -1, -1, -1, -1, -1, -1}},
541 {{-1, -1, -1, 5, 5, -1, -1, -1},
542 {-1, -1, 5, -1, -1, -1, -1, -1},
543 {-1, 3, 4, 6, 6, -1, -1, 5},
544 { 3, 3, 4, 6, 5, -1, 5, -1},
545 { 3, 2, 3, 6, 6, 5, 5, -1},
546 { 3, 3, 4, 6, 5, -1, 5, -1},
547 {-1, 3, 4, 6, 6, -1, -1, 5},
548 {-1, -1, 5, -1, -1, -1, -1, -1},
549 {-1, -1, -1, 5, 5, -1, -1, -1},
550 {-1, -1, -1, -1, -1, -1, -1, -1}},
551 {{ 1, -1, -1, -1, -1, -1, -1, 1},
552 { 1, -1, 2, 2, 2, -1, 1, -1},
553 {-1, 1, 2, 3, 3, 2, 1, -1},
554 { 6, 2, 3, -1, 3, 2, 6, -1},
555 { 6, 2, 3, -1, -1, 3, 2, 6},
556 { 6, 2, 3, -1, 3, 2, 6, -1},
557 { 3, 3, 3, 7, 7, 3, 3, 3},
558 { 0, 5, 0, 2, 0, 5, 0, -1},
559 {-1, -1, -1, -1, -1, -1, -1, -1},
560 {-1, -1, -1, -1, -1, -1, -1, -1}},
561 {{-1, -1, 7, 7, 7, -1, -1, -1},
562 {-1, 7, 2, 2, 7, -1, -1, -1},
563 {-1, 7, 5, 5, 5, 7, -1, -1},
564 { 7, 7, 7, 7, 7, 7, -1, -1},
565 {-1, -1, 6, -1, 6, -1, -1, -1},
566 {-1, 6, -1, -1, 6, -1, -1, -1},
567 {-1, 6, 4, 4, -1, 6, 4, 4},
568 {-1, -1, -1, -1, -1, -1, -1, -1},
569 {-1, -1, -1, -1, -1, -1, -1, -1},
570 {-1, -1, -1, -1, -1, -1, -1, -1}},
571 {{-1, 3, 3, -1, 3, 3, 3, -1},
572 { 3, 7, 5, 4, 6, 5, 3, -1},
573 { 1, 3, 3, 3, -1, 3, 3, 1},
574 { 2, 1, 2, 1, 2, 1, 2, -1},
575 { 1, 3, 3, -1, 3, 3, 3, 1},
576 { 3, 5, 6, 4, 5, 7, 3, -1},
577 { 2, 3, 3, 3, -1, 3, 3, 2},
578 { 1, 1, 2, 2, 2, 1, 1, -1},
579 {-1, -1, -1, -1, -1, -1, -1, -1},
580 {-1, -1, -1, -1, -1, -1, -1, -1}},
581 {{-1, 6, 5, -1, -1, -1, -1, -1},
582 { 3, 1, 3, -1, -1, -1, -1, -1},
583 {-1, 5, 6, -1, -1, -1, -1, -1},
584 {-1, -1, 5, 3, -1, -1, -1, -1},
585 {-1, -1, 6, 1, 6, -1, -1, -1},
586 {-1, -1, 3, 5, -1, -1, -1, -1},
587 {-1, -1, -1, -1, 3, 6, -1, -1},
588 {-1, -1, -1, 5, 6, 5, -1, -1},
589 {-1, -1, -1, -1, 6, 3, -1, -1},
590 {-1, -1, -1, -1, -1, -1, -1, -1}},
591 {{ 6, 3, 7, 4, 5, 1, 6, 3},
592 { 5, 1, 6, 3, 7, 4, 5, -1},
593 { 6, 3, 7, 4, 5, 1, 6, 3},
594 {-1, -1, -1, -1, -1, -1, -1, -1},
595 {-1, -1, -1, -1, -1, -1, -1, -1},
596 {-1, -1, -1, -1, -1, -1, -1, -1},
597 {-1, -1, -1, -1, -1, -1, -1, -1},
598 {-1, -1, -1, -1, -1, -1, -1, -1},
599 {-1, -1, -1, -1, -1, -1, -1, -1},
600 {-1, -1, -1, -1, -1, -1, -1, -1}},
601 {{-1, -1, -1, -1, -1, -1, 4, 4},
602 {-1, -1, 7, 7, 7, 4, 4, -1},
603 {-1, -1, -1, -1, -1, -1, 4, 4},
604 {-1, 1, -1, -1, -1, 7, -1, -1},
605 {-1, 1, 1, -1, -1, 7, -1, -1},
606 { 3, 3, 3, -1, 7, -1, -1, -1},
607 { 3, -1, 2, 3, 3, 3, -1, 3},
608 {-1, 2, -1, 3, -1, 3, 3, -1},
609 {-1, 2, -1, -1, -1, -1, -1, -1},
610 {-1, -1, -1, -1, -1, -1, -1, -1}},
611 {{-1, -1, 4, -1, -1, -1, -1, -1},
612 {-1, 7, 4, -1, -1, -1, -1, -1},
613 {-1, -1, 7, 4, -1, -1, -1, -1},
614 {-1, 4, 7, 4, -1, -1, -1, -1},
615 { 1, 1, 1, 1, 1, 1, 1, -1},
616 { 1, 2, 1, 2, 1, 1, -1, -1},
617 { 2, 2, 2, 2, 2, 2, 2, 2},
618 {-1, -1, -1, -1, -1, -1, -1, -1},
619 {-1, -1, -1, -1, -1, -1, -1, -1},
620 {-1, -1, -1, -1, -1, -1, -1, -1}},
621 {{ 0, -1, -1, -1, -1, -1, -1, 6},
622 { 6, 1, 4, 3, 7, 5, 0, -1},
623 { 0, -1, -1, -1, -1, -1, -1, 6},
624 { 6, 1, 4, 3, 7, 5, 0, -1},
625 { 0, -1, -1, -1, -1, -1, -1, 6},
626 { 6, 1, 4, 3, 7, 5, 0, -1},
627 {-1, -1, -1, -1, -1, -1, -1, -1},
628 {-1, -1, -1, -1, -1, -1, -1, -1},
629 {-1, -1, -1, -1, -1, -1, -1, -1},
630 {-1, -1, -1, -1, -1, -1, -1, -1}},
631 {{ 3, 3, 4, 6, 6, 4, 3, 3},
632 { 0, 3, 4, 6, 4, 3, 1, -1},
633 { 5, 1, 3, 4, 4, 3, 0, 1},
634 { 0, 1, 3, 4, 3, 1, 0, -1},
635 { 2, 1, 6, 3, 3, 0, 0, 1},
636 { 0, 3, 4, 3, 6, 1, 5, -1},
637 { 6, 1, 2, 6, 4, 0, 0, 2},
638 {-1, -1, -1, -1, -1, -1, -1, -1},
639 {-1, -1, -1, -1, -1, -1, -1, -1},
640 {-1, -1, -1, -1, -1, -1, -1, -1}},
641 {{ 6, 6, -1, -1, -1, -1, 4, 4},
642 { 4, 0, -1, -1, -1, 3, 6, -1},
643 { 0, 6, -1, -1, -1, -1, 4, 2},
644 { 7, -1, -1, -1, -1, -1, 7, -1},
645 { 4, 4, -1, -1, -1, -1, 5, 6},
646 { 6, 4, 7, 7, 5, 6, 4, -1},
647 {-1, 7, 6, 4, 6, 4, 7, -1},
648 {-1, 0, -1, 7, -1, 7, -1, -1},
649 {-1, -1, -1, -1, -1, -1, -1, -1},
650 {-1, -1, -1, -1, -1, -1, -1, -1}},
651 {{-1, 5, -1, -1, -1, -1, 4, -1},
652 {-1, 5, -1, -1, -1, 4, -1, -1},
653 {-1, -1, 5, 6, 6, 4, -1, -1},
654 {-1, -1, 2, -1, 2, -1, -1, -1},
655 { 0, 0, 6, -1, -1, 6, 1, 1},
656 {-1, -1, 2, -1, 2, -1, -1, -1},
657 {-1, -1, 7, 6, 6, 3, -1, -1},
658 {-1, 7, -1, -1, -1, 3, -1, -1},
659 {-1, 7, -1, -1, -1, -1, 3, -1},
660 {-1, -1, -1, -1, -1, -1, -1, -1}},
661 {{-1, 6, -1, -1, -1, -1, 2, -1},
662 { 1, 7, 1, 1, 1, 3, 1, -1},
663 {-1, -1, 4, 1, 1, 4, -1, -1},
664 {-1, 1, 3, 1, 7, 1, -1, -1},
665 {-1, -1, -1, 2, 6, -1, -1, -1},
666 {-1, -1, 1, 5, 1, -1, -1, -1},
667 {-1, -1, -1, -1, -1, -1, -1, -1},
668 {-1, -1, -1, -1, -1, -1, -1, -1},
669 {-1, -1, -1, -1, -1, -1, -1, -1},
670 {-1, -1, -1, -1, -1, -1, -1, -1}},
671 {{ 7, 7, 7, 7, 7, 7, 7, 7},
672 { 7, -1, -1, -1, -1, -1, 7, -1},
673 { 7, -1, -1, 2, 0, 5, 2, 2},
674 { 7, -1, -1, -1, 0, 3, 6, -1},
675 { 7, -1, -1, -1, -1, -1, 4, 0},
676 { 5, 5, -1, -1, -1, -1, -1, -1},
677 { 4, 3, 6, 2, -1, -1, -1, -1},
678 { 0, 2, 0, 4, -1, -1, -1, -1},
679 {-1, -1, -1, -1, -1, -1, -1, -1},
680 {-1, -1, -1, -1, -1, -1, -1, -1}},
681 {{-1, -1, 1, -1, -1, 1, -1, -1},
682 {-1, 4, -1, -1, 5, -1, -1, -1},
683 {-1, 7, -1, -1, 1, 1, 1, -1},
684 { 6, -1, -1, -1, -1, 7, -1, -1},
685 { 1, 1, 1, 1, -1, 4, -1, -1},
686 {-1, -1, 5, -1, -1, -1, -1, -1},
687 {-1, -1, 0, -1, -1, -1, -1, -1},
688 {-1, 3, -1, -1, -1, -1, -1, -1},
689 {-1, 1, -1, -1, -1, -1, -1, -1},
690 {-1, -1, -1, -1, -1, -1, -1, -1}},
691 {{-1, 7, 7, -1, -1, 7, 7, -1},
692 { 6, -1, 4, -1, 4, -1, 6, -1},
693 { 5, -1, -1, 3, 3, -1, -1, 5},
694 { 6, -1, -1, -1, -1, -1, 6, -1},
695 {-1, 7, -1, -1, -1, -1, 7, -1},
696 {-1, 4, -1, -1, -1, 4, -1, -1},
697 {-1, -1, 3, -1, -1, 3, -1, -1},
698 {-1, -1, 2, -1, 2, -1, -1, -1},
699 {-1, -1, -1, 5, 5, -1, -1, -1},
700 {-1, -1, -1, -1, -1, -1, -1, -1}},
701 {{-1, 0, 0, -1, -1, 0, 0, -1},
702 { 7, 4, 6, 6, 6, 4, 3, -1},
703 { 5, 6, 6, 6, 2, 6, 6, 3},
704 { 7, 4, 6, 6, 6, 4, 3, -1},
705 {-1, 0, 0, -1, -1, 0, 0, -1},
706 {-1, -1, -1, -1, -1, -1, -1, -1},
707 {-1, -1, -1, -1, -1, -1, -1, -1},
708 {-1, -1, -1, -1, -1, -1, -1, -1},
709 {-1, -1, -1, -1, -1, -1, -1, -1},
710 {-1, -1, -1, -1, -1, -1, -1, -1}},
711 {{-1, -1, -1, -1, -1, 7, 7, 7},
712 {-1, -1, -1, -1, 2, 7, 7, -1},
713 {-1, 0, 7, 7, 7, -1, 7, 7},
714 { 6, 7, 7, 7, -1, -1, -1, -1},
715 { 6, -1, -1, -1, 7, 7, 7, 7},
716 { 6, -1, -1, -1, -1, -1, -1, -1},
717 { 4, 2, 2, 2, 4, -1, 3, -1},
718 { 4, 4, 4, 4, 3, 3, 3, -1},
719 {-1, -1, -1, -1, -1, -1, -1, -1},
720 {-1, -1, -1, -1, -1, -1, -1, -1}},
721 {{ 4, -1, -1, 7, -1, 6, -1, 7},
722 { 7, 6, 7, -1, -1, 7, 4, -1},
723 {-1, -1, 7, -1, -1, 7, -1, -1},
724 {-1, 0, 0, 0, 0, 0, 3, -1},
725 {-1, -1, 0, 2, 2, 0, 6, 4},
726 {-1, -1, 0, 0, 0, 1, 3, -1},
727 {-1, -1, -1, 0, 0, -1, 3, 4},
728 {-1, -1, -1, 6, -1, 5, 6, -1},
729 {-1, -1, -1, -1, -1, -1, 1, 0},
730 {-1, -1, -1, -1, -1, -1, -1, -1}},
731 {{-1, 5, -1, -1, -1, -1, 5, -1},
732 { 0, -1, -1, 0, -1, -1, 0, -1},
733 { 0, 0, 0, 2, 2, 0, 0, 0},
734 { 0, -1, -1, 0, -1, -1, 0, -1},
735 {-1, 7, -1, 3, -1, -1, 7, -1},
736 {-1, -1, 3, 6, -1, -1, -1, -1},
737 {-1, -1, -1, 6, -1, -1, -1, -1},
738 {-1, 3, 6, -1, -1, -1, -1, -1},
739 {-1, 3, -1, -1, -1, -1, -1, -1},
740 {-1, -1, -1, -1, -1, -1, -1, -1}},
741 {{-1, -1, -1, 6, 5, -1, -1, -1},
742 {-1, -1, 2, 6, 3, -1, -1, -1},
743 {-1, -1, 5, 4, 7, 1, -1, -1},
744 {-1, 6, 2, 2, 3, 4, -1, -1},
745 {-1, -1, 3, 7, 3, 6, -1, -1},
746 {-1, -1, 1, 3, 2, -1, -1, -1},
747 {-1, -1, -1, 4, 5, -1, -1, -1},
748 {-1, -1, -1, 4, -1, -1, -1, -1},
749 {-1, -1, -1, -1, -1, -1, -1, -1},
750 {-1, -1, -1, -1, -1, -1, -1, -1}},
751 {{ 7, 7, -1, 2, 2, -1, 6, 6},
752 { 6, -1, -1, 6, -1, -1, 3, -1},
753 { 2, -1, -1, 1, -1, -1, 2, -1},
754 { 5, -1, -1, 3, -1, -1, 2, -1},
755 { 1, -1, -1, 2, -1, -1, 1, -1},
756 { 5, -1, -1, 2, -1, -1, 2, -1},
757 { 6, -1, -1, 1, -1, -1, 7, -1},
758 { 5, -1, -1, 5, -1, -1, 4, -1},
759 {-1, -1, -1, -1, -1, -1, -1, -1},
760 {-1, -1, -1, -1, -1, -1, -1, -1}},
761 {{-1, -1, -1, 6, 6, -1, -1, -1},
762 {-1, 0, 4, 4, 4, 0, -1, -1},
763 {-1, -1, -1, 6, 6, -1, -1, -1},
764 {-1, -1, 2, 7, 2, -1, -1, -1},
765 {-1, -1, -1, 6, 6, -1, -1, -1},
766 {-1, 0, 5, 5, 5, 0, -1, -1},
767 {-1, -1, -1, 3, 3, -1, -1, -1},
768 {-1, -1, -1, -1, -1, -1, -1, -1},
769 {-1, -1, -1, -1, -1, -1, -1, -1},
770 {-1, -1, -1, -1, -1, -1, -1, -1}},
771 {{-1, -1, 4, 1, 3, -1, -1, -1},
772 {-1, 1, -1, -1, 1, -1, -1, -1},
773 {-1, -1, 4, 1, 3, 4, 1, -1},
774 {-1, 1, 3, 4, -1, -1, 4, -1},
775 {-1, 3, -1, -1, 3, 4, 1, -1},
776 {-1, 1, 3, 4, 1, 3, -1, -1},
777 {-1, -1, 4, 1, -1, -1, -1, -1},
778 {-1, -1, -1, -1, -1, -1, -1, -1},
779 {-1, -1, -1, -1, -1, -1, -1, -1},
780 {-1, -1, -1, -1, -1, -1, -1, -1}},
781 {{-1, 6, 4, -1, 3, 2, 5, -1},
782 { 0, -1, -1, -1, -1, -1, 1, -1},
783 {-1, 2, 3, 5, -1, 4, 6, -1},
784 { 0, -1, -1, -1, -1, -1, 1, -1},
785 {-1, 4, 6, -1, 2, 5, 3, -1},
786 { 0, -1, -1, -1, -1, -1, 1, -1},
787 {-1, 5, 2, 3, -1, 4, 6, -1},
788 {-1, -1, -1, -1, -1, -1, -1, -1},
789 {-1, -1, -1, -1, -1, -1, -1, -1},
790 {-1, -1, -1, -1, -1, -1, -1, -1}},
791 {{-1, -1, -1, 6, 6, -1, -1, -1},
792 {-1, -1, 7, 6, 4, -1, -1, -1},
793 {-1, 2, 1, 7, 4, 1, 3, -1},
794 { 2, 1, 1, 1, 1, 1, 3, -1},
795 {-1, 2, 2, 2, 3, 3, 3, -1},
796 {-1, -1, -1, 5, -1, -1, -1, -1},
797 {-1, -1, -1, 2, 3, -1, -1, -1},
798 {-1, -1, -1, 5, -1, -1, -1, -1},
799 {-1, -1, 2, 2, 3, 3, -1, -1},
800 {-1, -1, -1, -1, -1, -1, -1, -1}},
801 {{ 4, -1, 5, -1, -1, 3, -1, 6},
802 { 2, -1, 3, -1, 2, -1, 4, -1},
803 { 4, -1, -1, 1, 0, -1, -1, 6},
804 { 6, -1, 2, 3, 5, -1, 4, -1},
805 { 4, -1, -1, 0, 1, -1, -1, 6},
806 { 2, -1, 5, -1, 3, -1, 4, -1},
807 { 4, -1, 3, -1, -1, 2, -1, 6},
808 { 6, -1, -1, -1, -1, -1, 4, -1},
809 {-1, -1, -1, -1, -1, -1, -1, -1},
810 {-1, -1, -1, -1, -1, -1, -1, -1}},
811 {{ 2, 6, 0, 5, 5, 1, 3, 4},
812 { 1, -1, -1, 2, -1, -1, 0, -1},
813 { 4, -1, -1, 3, 6, -1, -1, 2},
814 {-1, -1, -1, 0, -1, -1, -1, -1},
815 {-1, -1, -1, 1, 4, -1, -1, -1},
816 {-1, -1, -1, 2, -1, -1, -1, -1},
817 {-1, -1, -1, 6, 3, -1, -1, -1},
818 {-1, -1, -1, 5, -1, -1, -1, -1},
819 {-1, -1, -1, 4, 1, -1, -1, -1},
820 {-1, -1, -1, -1, -1, -1, -1, -1}},
821 {{-1, -1, -1, -1, 5, 1, 1, 3},
822 { 0, 5, 1, 0, 5, 3, 3, -1},
823 { 5, 1, 0, 5, 1, 0, 5, 1},
824 { 0, 5, 1, 0, 5, 1, 6, -1},
825 {-1, -1, -1, -1, 1, 6, 5, 1},
826 {-1, -1, -1, -1, 5, 1, 6, -1},
827 {-1, -1, -1, -1, 1, 0, 5, 1},
828 {-1, -1, -1, -1, 5, 1, 0, -1},
829 {-1, -1, -1, -1, -1, -1, -1, -1},
830 {-1, -1, -1, -1, -1, -1, -1, -1}},
831 {{-1, 0, 7, 3, -1, -1, 2, 2},
832 {-1, 0, 7, 3, -1, -1, 2, -1},
833 {-1, 0, 7, 3, -1, -1, 2, 2},
834 {-1, 0, 7, 3, -1, 3, 1, -1},
835 {-1, 0, 7, 3, -1, 6, 4, 5},
836 {-1, 0, 7, 3, -1, 7, 0, -1},
837 {-1, 0, 7, 3, -1, 2, 3, 4},
838 {-1, 0, 7, 3, -1, 5, 6, -1},
839 {-1, -1, -1, -1, -1, 7, 0, 1},
840 {-1, -1, -1, -1, -1, -1, -1, -1}},
841 {{-1, -1, -1, 7, 7, 7, 7, -1},
842 { 3, 4, 5, -1, -1, -1, 7, -1},
843 { 2, -1, -1, -1, -1, -1, -1, 3},
844 { 7, -1, -1, -1, -1, -1, 4, -1},
845 { 7, -1, -1, -1, 3, 4, 5, 6},
846 { 7, -1, -1, 2, 0, 1, 2, -1},
847 { 6, -1, -1, -1, 3, 4, 5, 6},
848 { 0, 1, -1, -1, -1, -1, -1, -1},
849 { 2, 3, 4, -1, -1, -1, -1, -1},
850 { 5, 6, 0, -1, -1, -1, -1, -1}},
851 {{-1, 7, -1, -1, -1, -1, 2, -1},
852 { 1, 1, -1, -1, -1, 3, 3, -1},
853 {-1, 2, -1, -1, -1, -1, 4, -1},
854 { 3, 3, -1, -1, -1, 5, 5, -1},
855 {-1, 4, -1, -1, -1, -1, 6, -1},
856 { 5, 5, -1, -1, -1, 1, 1, -1},
857 {-1, 6, -1, -1, -1, -1, 7, -1},
858 {-1, -1, -1, -1, -1, -1, -1, -1},
859 {-1, -1, -1, -1, -1, -1, -1, -1},
860 {-1, -1, -1, -1, -1, -1, -1, -1}},
861 {{-1, 4, -1, -1, -1, -1, 4, -1},
862 { 2, -1, -1, 1, -1, -1, 2, -1},
863 { 5, -1, -1, 0, 0, -1, -1, 5},
864 { 5, -1, -1, 1, -1, -1, 6, -1},
865 {-1, 4, 2, 7, 7, 5, 4, -1},
866 {-1, -1, -1, 6, -1, -1, -1, -1},
867 {-1, -1, -1, 3, 3, -1, -1, -1},
868 {-1, -1, -1, 7, -1, -1, -1, -1},
869 {-1, -1, -1, -1, -1, -1, -1, -1},
870 {-1, -1, -1, -1, -1, -1, -1, -1}},
871 {{-1, 1, -1, -1, 2, 3, 4, -1},
872 { 2, -1, -1, 3, 0, 4, -1, -1},
873 { 4, -1, -1, 2, 3, 1, -1, -1},
874 { 3, -1, 4, 3, 0, -1, -1, -1},
875 { 4, -1, -1, 2, 5, 1, -1, -1},
876 { 3, -1, 4, 5, 0, 4, -1, -1},
877 {-1, -1, -1, -1, -1, -1, -1, -1},
878 {-1, -1, -1, -1, -1, -1, -1, -1},
879 {-1, -1, -1, -1, -1, -1, -1, -1},
880 {-1, -1, -1, -1, -1, -1, -1, -1}},
881 {{ 2, -1, -1, 1, 1, -1, -1, 2},
882 { 2, -1, 3, 3, 3, -1, 2, -1},
883 {-1, 2, -1, 4, 4, -1, 2, -1},
884 {-1, 7, 7, 0, 7, 7, -1, -1},
885 {-1, -1, -1, 4, 4, -1, -1, -1},
886 {-1, -1, 5, 7, 5, -1, -1, -1},
887 { 6, 3, 2, 6, 4, 2, 3, 6},
888 { 5, -1, -1, -1, -1, -1, 1, -1},
889 {-1, -1, -1, -1, -1, -1, -1, -1},
890 {-1, -1, -1, -1, -1, -1, -1, -1}},
891 {{ 4, 2, 3, 5, 7, 1, 3, 6},
892 { 1, -1, -1, 1, -1, -1, 1, -1},
893 { 3, 0, 1, 3, 2, 4, 3, 5},
894 { 4, -1, -1, 4, -1, -1, 4, -1},
895 {-1, 5, -1, -1, 5, -1, -1, 5},
896 { 0, 3, 2, 0, 4, 5, 0, -1},
897 {-1, 6, -1, -1, 6, -1, -1, 6},
898 { 7, -1, -1, 7, -1, -1, 7, -1},
899 {-1, -1, -1, -1, -1, -1, -1, -1},
900 {-1, -1, -1, -1, -1, -1, -1, -1}},
901 {{-1, 5, 4, -1, 1, 1, -1, -1},
902 { 5, -1, 4, 1, -1, 1, -1, -1},
903 { 0, -1, -1, -1, -1, -1, 0, -1},
904 { 0, 6, 4, -1, -1, 4, 2, -1},
905 {-1, 4, 3, 5, 2, 6, 3, 6},
906 {-1, 2, 6, -1, -1, 5, 4, -1},
907 {-1, -1, -1, -1, -1, -1, -1, -1},
908 {-1, -1, -1, -1, -1, -1, -1, -1},
909 {-1, -1, -1, -1, -1, -1, -1, -1},
910 {-1, -1, -1, -1, -1, -1, -1, -1}},
911 {{-1, -1, -1, 6, 6, -1, -1, -1},
912 {-1, -1, 5, 5, 4, -1, -1, -1},
913 {-1, -1, 1, 6, 6, 4, -1, -1},
914 {-1, 1, 7, 2, 5, 3, -1, -1},
915 {-1, 2, 7, 2, 1, 5, 3, -1},
916 { 2, 1, 3, 1, 4, 2, 7, -1},
917 {-1, 3, 1, 3, 4, 2, 7, -1},
918 {-1, 3, 5, 5, 6, 6, -1, -1},
919 {-1, -1, -1, -1, -1, -1, -1, -1},
920 {-1, -1, -1, -1, -1, -1, -1, -1}},
921 {{-1, -1, 7, 3, -1, -1, -1, -1},
922 {-1, 1, 7, 6, -1, -1, -1, -1},
923 {-1, 3, 7, 5, 1, 5, -1, -1},
924 { 7, 7, 0, 2, 4, 0, 4, -1},
925 { 7, 1, 4, 6, 5, 6, 5, 7},
926 { 1, 7, 7, 1, 7, 7, 1, -1},
927 {-1, -1, -1, -1, -1, -1, -1, -1},
928 {-1, -1, -1, -1, -1, -1, -1, -1},
929 {-1, -1, -1, -1, -1, -1, -1, -1},
930 {-1, -1, -1, -1, -1, -1, -1, -1}},
931 {{-1, -1, 1, -1, -1, 1, -1, -1},
932 {-1, 5, 6, 1, 5, 6, -1, -1},
933 {-1, 1, 1, 2, 2, 1, 1, -1},
934 { 4, 7, 1, 0, 1, 7, 4, -1},
935 {-1, 3, 7, 5, 7, 5, 3, -1},
936 {-1, 1, 1, 1, 1, 1, -1, -1},
937 {-1, -1, -1, -1, -1, -1, -1, -1},
938 {-1, -1, -1, -1, -1, -1, -1, -1},
939 {-1, -1, -1, -1, -1, -1, -1, -1},
940 {-1, -1, -1, -1, -1, -1, -1, -1}},
941 {{ 4, -1, -1, -1, 5, -1, -1, 4},
942 { 6, 6, 7, 6, -1, 4, 5, -1},
943 { 4, 2, 7, 5, 2, 2, 6, 4},
944 {-1, -1, 4, 1, -1, 5, 2, -1},
945 {-1, 5, 2, 7, 7, -1, 7, 4},
946 { 4, 6, 5, 4, -1, 4, 2, -1},
947 {-1, -1, -1, 4, -1, 4, 1, -1},
948 { 0, 0, 0, 5, -1, -1, -1, -1},
949 {-1, -1, -1, -1, 0, 0, 0, 0},
950 {-1, -1, -1, -1, -1, -1, -1, -1}},
951 {{ 1, -1, -1, -1, 0, 0, -1, -1},
952 { 2, -1, -1, 0, 1, 0, -1, -1},
953 { 3, -1, -1, 0, 2, 2, 0, -1},
954 { 4, -1, 0, 1, 1, 1, 0, -1},
955 { 5, -1, -1, 0, 4, 4, 0, -1},
956 { 6, -1, -1, 4, 4, 4, -1, -1},
957 { 7, -1, -1, -1, 4, 4, -1, -1},
958 {-1, -1, -1, 0, 1, 0, -1, -1},
959 {-1, -1, -1, 0, 1, 1, 0, -1},
960 {-1, -1, -1, -1, -1, -1, -1, -1}},
961 {{-1, -1, 3, -1, -1, 1, 7, -1},
962 {-1, 7, 4, -1, -1, 4, 3, -1},
963 { 1, -1, -1, 0, 2, 0, -1, -1},
964 { 5, 4, -1, 3, -1, -1, -1, -1},
965 { 4, -1, 3, 6, 1, 1, 6, -1},
966 {-1, 1, -1, -1, 4, -1, 1, -1},
967 {-1, 7, 5, -1, -1, -1, 3, -1},
968 {-1, -1, 3, -1, -1, -1, -1, -1},
969 {-1, -1, -1, -1, -1, -1, -1, -1},
970 {-1, -1, -1, -1, -1, -1, -1, -1}},
971 {{ 1, -1, -1, -1, 1, -1, -1, -1},
972 { 2, -1, -1, -1, 2, -1, -1, -1},
973 {-1, 3, -1, -1, 3, 3, -1, -1},
974 {-1, 4, -1, 4, -1, 4, -1, -1},
975 {-1, 5, -1, -1, 5, 5, -1, -1},
976 { 6, -1, -1, 7, 1, 7, -1, -1},
977 { 7, -1, -1, -1, 6, 6, -1, -1},
978 {-1, -1, -1, -1, -1, -1, -1, -1},
979 {-1, -1, -1, -1, -1, -1, -1, -1},
980 {-1, -1, -1, -1, -1, -1, -1, -1}},
981 {{ 2, -1, -1, 6, -1, 2, 5, 1},
982 { 5, -1, 4, -1, 4, -1, 4, -1},
983 { 6, -1, -1, 3, -1, -1, -1, 3},
984 { 4, 2, 0, -1, -1, -1, 5, -1},
985 {-1, -1, -1, 6, -1, 3, 6, -1},
986 {-1, -1, 5, -1, 5, -1, -1, -1},
987 {-1, -1, -1, 3, -1, 4, 2, 5},
988 {-1, -1, -1, -1, -1, -1, -1, -1},
989 {-1, -1, -1, -1, -1, -1, -1, -1},
990 {-1, -1, -1, -1, -1, -1, -1, -1}},
991 {{ 6, -1, -1, -1, 4, -1, -1, 3},
992 { 0, 3, -1, -1, 6, -1, 0, -1},
993 {-1, -1, 7, -1, 1, -1, 3, -1},
994 { 7, -1, 4, 7, -1, 2, -1, -1},
995 { 5, 2, 3, 2, 1, 6, -1, 3},
996 {-1, -1, 0, 4, 3, 5, 4, -1},
997 {-1, 7, 6, -1, -1, 0, -1, -1},
998 { 4, 3, -1, -1, -1, 4, 2, -1},
999 { 0, -1, -1, -1, -1, -1, 6, -1},
1000 {-1, -1, -1, -1, -1, -1, -1, -1}},
1001 {{ 6, 1, 2, 5, 1, 6, 3, 0},
1002 {-1, -1, -1, -1, -1, -1, 4, -1},
1003 { 0, 5, 2, 7, 1, 6, 2, -1},
1004 { 3, -1, -1, -1, -1, -1, -1, -1},
1005 { 6, 7, 6, 4, 0, 5, 2, 6},
1006 {-1, -1, -1, -1, -1, -1, 1, -1},
1007 { 6, 1, 4, 0, 6, 2, 3, -1},
1008 { 0, -1, -1, -1, -1, -1, -1, -1},
1009 {-1, 0, 4, 5, 3, 7, 6, 0},
1010 {-1, -1, -1, -1, -1, -1, -1, -1}},
1011 {{-1, -1, -1, 0, 1, -1, -1, -1},
1012 {-1, -1, 0, 7, 0, -1, -1, -1},
1013 {-1, -1, 1, 2, 2, 0, -1, -1},
1014 {-1, 0, 7, 0, 7, 0, -1, -1},
1015 {-1, 6, -1, 7, 7, -1, 6, -1},
1016 { 4, 1, 6, 6, 6, 4, 1, -1},
1017 {-1, 5, -1, 7, 7, -1, 5, -1},
1018 {-1, -1, -1, -1, -1, -1, -1, -1},
1019 {-1, -1, -1, -1, -1, -1, -1, -1},
1020 {-1, -1, -1, -1, -1, -1, -1, -1}},
1021 {{-1, -1, -1, 5, 6, -1, -1, -1},
1022 {-1, -1, 3, 3, 3, -1, -1, -1},
1023 {-1, -1, 7, 5, 3, 7, -1, -1},
1024 {-1, 3, -1, 6, -1, 3, -1, -1},
1025 { 2, -1, -1, 3, 7, -1, -1, 1},
1026 { 2, 2, -1, 3, -1, 1, 1, -1},
1027 {-1, 0, 2, 5, 6, 1, 0, -1},
1028 {-1, -1, -1, 3, -1, -1, -1, -1},
1029 {-1, -1, -1, 3, 7, -1, -1, -1},
1030 {-1, -1, -1, -1, -1, -1, -1, -1}},
1031 {{-1, 6, -1, -1, -1, -1, 2, -1},
1032 {-1, 2, 6, 0, 6, 0, -1, -1},
1033 {-1, 0, -1, -1, -1, -1, -1, -1},
1034 { 6, -1, -1, -1, -1, -1, -1, -1},
1035 {-1, 3, 3, 2, 0, 6, 0, 0},
1036 {-1, 6, -1, -1, -1, -1, 0, -1},
1037 {-1, -1, -1, 6, 0, 2, 6, -1},
1038 {-1, 2, 0, -1, -1, -1, -1, -1},
1039 {-1, -1, -1, -1, -1, -1, -1, -1},
1040 {-1, -1, -1, -1, -1, -1, -1, -1}},
1041 {{ 0, 7, -1, -1, -1, -1, -1, -1},
1042 { 1, 5, -1, -1, -1, -1, -1, -1},
1043 { 7, 2, 5, -1, -1, -1, -1, -1},
1044 { 6, 3, 4, -1, -1, -1, -1, -1},
1045 { 5, 5, 4, 4, -1, -1, -1, -1},
1046 { 3, 3, 5, 3, -1, -1, -1, -1},
1047 { 1, 2, 2, 5, 3, -1, -1, -1},
1048 { 1, 0, 0, 7, 6, -1, -1, -1},
1049 { 3, 3, 5, 5, 7, 6, -1, -1},
1050 {-1, -1, -1, -1, -1, -1, -1, -1}},
1051 {{-1, -1, 2, 6, 6, 2, -1, -1},
1052 {-1, 2, 1, 1, 0, 2, -1, -1},
1053 {-1, 2, 3, 2, 2, 0, 2, -1},
1054 { 2, 3, 2, 5, 2, 7, 2, -1},
1055 { 2, 4, 2, 5, 2, 7, 2, 0},
1056 { 2, 4, 2, 6, 6, 2, 0, -1},
1057 {-1, 2, 5, 2, 2, 2, 7, 2},
1058 {-1, 2, 5, 6, 6, 7, 2, -1},
1059 {-1, -1, 2, 2, 2, 2, 2, -1},
1060 {-1, -1, -1, -1, -1, -1, -1, -1}},
1061 {{-1, -1, 0, -1, -1, 0, -1, -1},
1062 { 1, 0, 0, 1, 0, 0, 1, -1},
1063 { 1, 7, 7, 5, 5, 7, 7, 1},
1064 { 3, 2, -1, 2, -1, 2, 3, -1},
1065 { 3, 7, -1, 6, 6, -1, 7, 3},
1066 { 7, -1, -1, 6, -1, -1, 7, -1},
1067 { 4, 4, 5, -1, -1, 5, 4, 4},
1068 {-1, -1, -1, -1, -1, -1, -1, -1},
1069 {-1, -1, -1, -1, -1, -1, -1, -1},
1070 {-1, -1, -1, -1, -1, -1, -1, -1}},
1071 {{-1, 6, 3, -1, -1, 3, 6, -1},
1072 { 6, -1, 2, -1, 2, -1, 6, -1},
1073 { 2, -1, 0, 1, 1, 0, -1, 2},
1074 { 5, 0, -1, 7, -1, 0, 5, -1},
1075 {-1, 5, -1, 6, 6, -1, 5, -1},
1076 { 7, 1, 4, -1, 4, 1, 7, -1},
1077 { 7, -1, 4, -1, -1, 4, -1, 7},
1078 { 2, 0, -1, -1, -1, 0, 2, -1},
1079 {-1, 2, -1, -1, -1, -1, 2, -1},
1080 {-1, -1, -1, -1, -1, -1, -1, -1}},
1081 {{ 6, 1, -1, -1, -1, -1, 4, 0},
1082 { 2, 7, 5, 5, 5, 7, 3, -1},
1083 { 6, 1, -1, -1, -1, -1, 4, 0},
1084 { 2, 5, 7, 7, 7, 5, 3, -1},
1085 { 6, 1, -1, -1, -1, -1, 4, 0},
1086 { 2, 0, 6, 6, 6, 0, 3, -1},
1087 { 6, 1, -1, -1, -1, -1, 4, 0},
1088 {-1, -1, -1, -1, -1, -1, -1, -1},
1089 {-1, -1, -1, -1, -1, -1, -1, -1},
1090 {-1, -1, -1, -1, -1, -1, -1, -1}},
1091 {{ 5, -1, -1, 1, 1, -1, -1, 5},
1092 { 5, -1, 4, -1, 4, -1, 5, -1},
1093 {-1, 2, 4, -1, -1, 4, 2, -1},
1094 { 7, 2, -1, -1, -1, 2, 7, -1},
1095 { 0, -1, 0, 4, 4, 0, -1, 0},
1096 { 7, 2, -1, -1, -1, 2, 7, -1},
1097 {-1, 2, 3, -1, -1, 3, 2, -1},
1098 { 5, -1, 3, -1, 3, -1, 5, -1},
1099 { 5, -1, -1, 6, 6, -1, -1, 5},
1100 {-1, -1, -1, -1, -1, -1, -1, -1}},
1101 {{ 2, 2, -1, -1, -1, -1, 5, 5},
1102 { 5, -1, -1, -1, -1, -1, 2, -1},
1103 { 5, -1, -1, -1, -1, -1, -1, 2},
1104 { 1, -1, 1, 5, 1, -1, 3, -1},
1105 { 5, 2, 5, 3, 1, 2, 5, 2},
1106 { 2, 0, 5, -1, 2, 0, 5, -1},
1107 {-1, 3, 7, -1, -1, 3, 7, -1},
1108 {-1, -1, 2, 0, 5, -1, -1, -1},
1109 {-1, -1, -1, -1, -1, -1, -1, -1},
1110 {-1, -1, -1, -1, -1, -1, -1, -1}},
1111 {{ 0, 6, 5, 2, 3, 4, 1, 7},
1112 {-1, -1, -1, -1, 1, -1, -1, -1},
1113 {-1, -1, -1, 1, 1, -1, -1, -1},
1114 {-1, -1, 1, -1, -1, -1, -1, -1},
1115 { 7, 1, 4, 3, 2, 5, 6, 0},
1116 {-1, -1, -1, -1, 1, -1, -1, -1},
1117 {-1, -1, -1, 1, 1, -1, -1, -1},
1118 {-1, -1, 1, -1, -1, -1, -1, -1},
1119 { 0, 6, 5, 2, 3, 4, 1, 7},
1120 {-1, -1, -1, -1, -1, -1, -1, -1}},
1121 {{-1, -1, 1, -1, -1, 1, -1, -1},
1122 {-1, 2, 4, -1, 2, 4, -1, -1},
1123 {-1, 2, 3, 6, 5, 3, 2, -1},
1124 {-1, 6, 5, -1, 6, 5, -1, -1},
1125 {-1, -1, -1, 7, 7, -1, -1, -1},
1126 {-1, -1, -1, 7, -1, -1, -1, -1},
1127 { 1, -1, -1, 7, 7, -1, -1, 3},
1128 { 2, -1, -1, 7, -1, -1, 2, -1},
1129 {-1, 3, 4, 5, 6, 4, 1, -1},
1130 {-1, -1, -1, -1, -1, -1, -1, -1}},
1131 {{ 1, -1, -1, 2, 2, -1, -1, 2},
1132 { 1, 3, 7, 3, 7, 4, 2, -1},
1133 {-1, 1, 6, -1, -1, 6, 2, -1},
1134 { 6, -1, 7, 3, 7, -1, 6, -1},
1135 {-1, 4, 2, -1, -1, 1, 3, -1},
1136 {-1, -1, 2, 6, 1, -1, -1, -1},
1137 {-1, 4, 3, 3, 4, 4, 3, -1},
1138 {-1, -1, -1, -1, -1, -1, -1, -1},
1139 {-1, -1, -1, -1, -1, -1, -1, -1},
1140 {-1, -1, -1, -1, -1, -1, -1, -1}},
1141 {{-1, -1, -1, 5, 6, -1, -1, -1},
1142 {-1, -1, -1, 3, -1, -1, -1, -1},
1143 {-1, -1, -1, 1, 2, -1, -1, -1},
1144 {-1, -1, -1, 4, -1, -1, -1, -1},
1145 {-1, -1, -1, 5, 7, -1, -1, -1},
1146 {-1, -1, -1, 2, -1, -1, -1, -1},
1147 { 6, 5, 4, 3, 2, 1, 7, 5},
1148 {-1, -1, -1, -1, -1, -1, -1, -1},
1149 {-1, -1, -1, -1, -1, -1, -1, -1},
1150 {-1, -1, -1, -1, -1, -1, -1, -1}},
1151 {{-1, 0, -1, 1, -1, 2, -1, -1},
1152 {-1, 4, -1, 5, -1, 6, -1, -1},
1153 {-1, 7, -1, 0, -1, 2, -1, -1},
1154 {-1, 6, -1, 3, -1, 6, -1, -1},
1155 {-1, 1, -1, 1, -1, 2, -1, -1},
1156 {-1, 3, -1, 5, -1, 0, -1, -1},