Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
NumBlocks: 3D on the TI-84 Plus CE, first picture
Mason36329d155965609
diff --git a/games/numblocks/ce/.gitignore b/games/numblocks/ce/.gitignorenew file mode 100644index 00000000..c3864b8d--- /dev/null+++ b/games/numblocks/ce/.gitignore@@ -0,0 +1,3 @@+build/+obj/+bin/diff --git a/games/numblocks/ce/host/Makefile b/games/numblocks/ce/host/Makefilenew file mode 100644index 00000000..eda833be--- /dev/null+++ b/games/numblocks/ce/host/Makefile@@ -0,0 +1,16 @@+# NumBlocks CE on a computer (in games/numblocks/ce/host): `make` builds ../build/nbce, the game headless (pictures+# and scripted keys: see plat_host.c); `make shots` takes the README's pictures.+SRC = $(wildcard ../src/*.c) plat_host.c+HDR = $(wildcard ../src/*.h)+CFLAGS = -std=gnu11 -O2 -g -Wall -Wextra -Wno-unused-parameter -Wno-missing-braces -I../src++../build/nbce: $(SRC) $(HDR) Makefile+ @mkdir -p ../build+ cc $(CFLAGS) $(SRC) -o $@++../build/nbce-asan: $(SRC) $(HDR) Makefile+ @mkdir -p ../build+ cc $(CFLAGS) -fsanitize=address,undefined $(SRC) -o $@++.PHONY: asan+asan: ../build/nbce-asandiff --git a/games/numblocks/ce/host/plat_host.c b/games/numblocks/ce/host/plat_host.cnew file mode 100644index 00000000..e0403cfa--- /dev/null+++ b/games/numblocks/ce/host/plat_host.c@@ -0,0 +1,140 @@+/* NumBlocks CE on a computer, for tests and pictures: the screen is a buffer saved as pictures, the keys come from+ * a script, time is simulated (a frame takes NB_MSPF ms).+ *+ * NB_FRAMES=200 NB_KEYS="10-40:fwd,50:attack" NB_SHOTS="30,60" NB_OUT=dir NB_SAVES=dir build/nbce+ *+ * Keys: left right up down fwd back sleft sright jump sneak sprint attack use inv pause home drop pick enter 1..9.+ * NB_SDL=1 (built with SDL3: make host-sdl) opens a window to play in instead. */+#include <stdio.h>+#include <stdlib.h>+#include <string.h>+#include <sys/stat.h>+#include <time.h>+#include "../src/nb.h"++uint8_t *scr;+static uint8_t screen_mem[SCREEN_W * SCREEN_H];+static uint8_t spare[76800];+static uint8_t pal[256 * 3];+static int frame_no, frames = 100, mspf = 125;+static const char *out = "build/shots", *saves = "build/saves";+typedef struct { int a, b; uint32_t k; } Hold;+static Hold holds[256];+static int nholds;+static int shots[64], nshots;+uint32_t host_ms;++static uint32_t key_bit(const char *s) {+ static const struct { const char *n; uint32_t k; } t[] = {+ {"left", K_LEFT}, {"right", K_RIGHT}, {"up", K_UP}, {"down", K_DOWN}, {"fwd", K_FWD}, {"back", K_BACK},+ {"sleft", K_SLEFT}, {"sright", K_SRIGHT}, {"jump", K_JUMP}, {"sneak", K_SNEAK}, {"sprint", K_SPRINT},+ {"attack", K_ATTACK}, {"use", K_USE}, {"inv", K_INV}, {"pause", K_PAUSE}, {"home", K_HOME}, {"drop", K_DROP},+ {"pick", K_PICK}, {"enter", K_ENTER}, {"ok", K_OK}, {"esc", K_ESC}};+ for (unsigned i = 0; i < sizeof t / sizeof t[0]; i++)+ if (!strcmp(s, t[i].n)) return t[i].k;+ if (s[0] >= '1' && s[0] <= '9' && !s[1]) return K_SLOT1 << (s[0] - '1');+ fprintf(stderr, "unknown key %s\n", s);+ return 0;+}++void plat_init(void) {+ scr = screen_mem;+ memcpy(pal, pal_rgb, sizeof pal);+ const char *e;+ if ((e = getenv("NB_FRAMES"))) frames = atoi(e);+ if ((e = getenv("NB_MSPF"))) mspf = atoi(e);+ if ((e = getenv("NB_OUT"))) out = e;+ if ((e = getenv("NB_SAVES"))) saves = e;+ if ((e = getenv("NB_SHOTS"))) {+ char *s = strdup(e);+ for (char *t = strtok(s, ","); t && nshots < 64; t = strtok(NULL, ",")) shots[nshots++] = atoi(t);+ }+ if ((e = getenv("NB_KEYS"))) {+ char *s = strdup(e);+ for (char *t = strtok(s, ","); t && nholds < 256; t = strtok(NULL, ",")) {+ int a, b;+ char k[16];+ if (sscanf(t, "%d-%d:%15s", &a, &b, k) == 3) holds[nholds++] = (Hold){a, b, key_bit(k)};+ else if (sscanf(t, "%d:%15s", &a, k) == 2) holds[nholds++] = (Hold){a, a, key_bit(k)};+ }+ }+ mkdir(out, 0755);+ mkdir(saves, 0755);+}++static void shot(const char *path) {+ FILE *f = fopen(path, "wb");+ if (!f) return;+ fprintf(f, "P6\n%d %d\n255\n", SCREEN_W, SCREEN_H);+ for (int i = 0; i < SCREEN_W * SCREEN_H; i++) fwrite(&pal[scr[i] * 3], 1, 3, f);+ fclose(f);+}++void plat_exit(void) {+ fprintf(stderr, "%d frames\n", frame_no);+ exit(0);+}++void plat_palette(int first, int n, const uint8_t *rgb) { memcpy(pal + first * 3, rgb, (size_t)n * 3); }++uint32_t plat_keys(void) {+ uint32_t k = 0;+ for (int i = 0; i < nholds; i++)+ if (frame_no >= holds[i].a && frame_no <= holds[i].b) k |= holds[i].k;+ return k;+}++uint32_t plat_ms(void) { return host_ms; }++void plat_frame(void) {+ for (int i = 0; i < nshots; i++)+ if (shots[i] == frame_no) {+ char p[512];+ snprintf(p, sizeof p, "%s/shot_%04d.ppm", out, frame_no);+ shot(p);+ fprintf(stderr, "frame %d: %u cells, %u faces, %u spans, %u pixels; at %.2f %.2f %.2f yaw %d pitch %d, win %d %d %d\n",+ frame_no, stat_cells, stat_faces, stat_spans, stat_px, pl.x / 4096.0, pl.y / 4096.0, pl.z / 4096.0, pl.yaw,+ pl.pitch, win_x, win_y, win_z);+ }+ frame_no++;+ host_ms += (uint32_t)mspf;+ if (frame_no >= frames) plat_exit();+}++uint8_t *plat_spare(void) { return spare; }+void *plat_grow(void *p, unsigned bytes) { return realloc(p, bytes ? bytes : 1); }++static uint8_t loaded[70000];+const uint8_t *plat_load(const char *name, unsigned *len) {+ char p[512];+ snprintf(p, sizeof p, "%s/%s", saves, name);+ FILE *f = fopen(p, "rb");+ if (!f) return NULL;+ *len = (unsigned)fread(loaded, 1, sizeof loaded, f);+ fclose(f);+ return loaded;+}+bool plat_save(const char *name, const void *a, unsigned na, const void *b, unsigned nb) {+ if (na + nb > 65505) return false; /* (an appvar's most) */+ char p[512];+ snprintf(p, sizeof p, "%s/%s", saves, name);+ FILE *f = fopen(p, "wb");+ if (!f) return false;+ fwrite(a, 1, na, f);+ if (nb) fwrite(b, 1, nb, f);+ fclose(f);+ return true;+}+void plat_delete(const char *name) {+ char p[512];+ snprintf(p, sizeof p, "%s/%s", saves, name);+ remove(p);+}++void plat_expand(const uint8_t *src, uint8_t *dst, int rows) {+ for (int y = 0; y < rows; y++) {+ uint8_t *d = dst + y * 2 * SCREEN_W;+ for (int x = 0; x < RW; x++) d[2 * x] = d[2 * x + 1] = src[y * RW + x];+ memcpy(d + SCREEN_W, d, SCREEN_W);+ }+}diff --git a/games/numblocks/ce/src/data.c b/games/numblocks/ce/src/data.cnew file mode 100644index 00000000..25c6e4ff--- /dev/null+++ b/games/numblocks/ce/src/data.c@@ -0,0 +1,1289 @@+/* Made by tools/pack.py from Minecraft 1.8.8's pictures: see data.h. */+#include "data.h"++const uint8_t pal_rgb[256 * 3] = {+ 0,0,0,120,167,255,120,167,255,120,167,255,120,167,255,120,167,255,120,167,255,120,167,255,+ 120,167,255,120,167,255,120,167,255,120,167,255,120,167,255,120,167,255,120,167,255,120,167,255,+ 0,0,0,255,255,255,160,160,160,63,63,63,224,224,224,255,255,160,255,255,0,63,63,0,+ 139,139,139,55,55,55,198,198,198,85,85,85,128,255,32,255,85,85,64,64,64,32,32,32,+ 112,112,112,192,192,192,126,127,128,210,200,141,15,15,15,206,215,219,1,1,0,96,137,62,+ 31,46,167,13,13,14,4,4,4,0,0,1,145,113,97,159,74,16,33,164,149,185,143,94,+ 102,96,68,15,113,24,32,30,26,46,66,236,147,118,74,59,47,26,116,116,116,72,72,72,+ 233,239,239,50,50,49,13,20,34,127,137,191,10,81,22,160,84,67,126,170,254,109,104,79,+ 19,0,0,45,45,45,120,130,188,127,102,60,153,108,72,27,12,2,174,188,203,25,25,25,+ 196,191,159,34,20,6,7,5,3,107,107,108,50,47,36,52,52,52,36,53,43,188,132,153,+ 14,23,16,117,92,57,92,73,45,37,70,139,133,227,229,20,38,111,3,3,2,22,34,13,+ 75,54,35,22,17,11,77,75,57,42,71,32,82,104,159,9,15,12,78,43,32,93,93,93,+ 54,98,23,15,27,79,39,39,40,43,43,43,1,7,1,146,155,166,16,13,6,68,60,40,+ 83,95,104,93,131,118,69,69,69,100,101,102,76,53,20,13,5,2,64,110,33,169,170,168,+ 219,123,32,165,154,51,120,85,57,5,6,5,122,172,97,37,57,28,16,25,10,125,68,52,+ 177,176,174,162,146,113,138,97,33,17,17,19,10,14,26,144,143,142,19,30,23,65,76,89,+ 44,32,20,54,87,134,221,22,27,79,61,36,198,181,118,33,23,14,138,174,175,70,121,52,+ 74,70,50,76,76,76,129,145,162,83,188,187,33,56,101,159,136,88,99,55,42,32,46,30,+ 69,57,162,94,44,6,162,178,199,113,80,31,75,108,86,120,108,101,18,8,3,34,59,15,+ 79,79,79,179,202,253,130,135,133,50,66,31,197,169,151,44,38,27,4,5,2,252,244,81,+ 209,79,12,125,115,75,27,20,12,6,46,12,219,213,160,12,10,6,64,93,68,11,8,5,+ 2,1,1,25,22,13,10,10,11,3,28,7,9,66,10,15,10,6,59,90,41,55,78,37,+ 212,195,65,152,202,108,141,54,8,99,81,47,145,149,152,186,201,213,1,2,4,8,8,8,+ 43,29,11,8,12,5,81,82,83,0,155,153,25,38,27,28,28,29,5,7,3,169,139,0,+ 93,129,209,87,162,49,2,3,8,47,47,48,103,73,43,13,13,10,112,13,13,0,1,2,+ 6,3,1,20,14,8,49,70,52,57,81,64,181,160,142,27,42,16,142,129,115,4,3,0,+ 7,10,21,221,221,185,112,135,145,36,29,17,52,40,13,28,30,5,159,164,178,53,42,76,+ 184,184,183,89,89,89,9,6,3,68,30,4,5,8,15,95,66,22,86,64,40,2,3,6,+ 135,131,97,131,151,203,172,172,184,96,148,102,103,86,53,71,1,1,1,2,6,2,15,4,+ 161,1,1,100,86,80,170,163,121,39,37,5,121,121,121,12,19,7,26,25,19,69,100,47,+ 83,111,51,43,77,19,24,41,67,71,128,28,206,229,249,55,39,25,157,116,38,4,5,11,+ 66,50,32,102,83,24,21,21,22,44,61,48,178,173,133,95,67,46,85,81,62,10,16,53,+};+const uint8_t tex_px[NTEX][256] = {+ 34,54,54,54,54,34,125,125,107,125,34,54,54,54,54,34,34,34,125,125,125,125,54,54,54,125,125,125,107,34,34,54,+ 34,107,54,54,107,54,54,54,125,54,34,34,34,125,34,34,34,125,34,34,34,107,34,125,34,34,54,54,54,54,54,34,+ 34,125,125,54,54,54,54,54,54,54,125,125,125,125,125,107,54,54,34,34,34,54,54,54,34,107,34,34,54,54,107,34,+ 125,125,34,34,34,54,125,125,34,34,34,34,125,125,125,107,34,34,34,54,54,54,54,54,54,107,54,54,54,54,34,34,+ 34,125,125,107,125,54,34,34,34,125,125,125,125,125,125,125,34,54,54,54,54,54,54,34,107,34,34,54,54,54,125,34,+ 34,34,125,54,54,125,125,54,107,54,125,125,125,34,34,34,107,34,34,34,54,34,34,34,125,125,34,34,34,125,125,107,+ 34,54,54,54,54,54,54,54,125,125,54,54,54,54,54,34,34,125,125,125,125,125,34,54,54,54,107,54,34,34,125,125,+ 34,34,34,54,54,54,54,54,34,34,125,125,34,54,54,34,54,54,54,54,107,125,125,34,34,34,34,54,54,54,34,34,+ 47,68,68,114,114,47,68,68,114,114,222,114,114,47,114,47,114,68,222,114,114,68,154,222,114,47,68,114,47,68,222,222,+ 47,114,114,222,47,114,114,114,47,114,114,114,222,222,47,114,68,75,47,114,68,222,114,47,68,68,114,68,114,47,68,114,+ 68,114,68,47,222,68,114,114,68,222,114,75,114,68,222,114,114,222,68,68,114,68,222,222,222,114,114,222,114,114,114,47,+ 47,114,114,114,154,114,114,47,47,114,47,47,114,68,114,68,114,114,47,47,68,68,114,114,68,222,68,68,114,114,68,68,+ 68,114,114,68,114,68,114,222,114,68,68,114,114,114,222,114,114,68,222,114,114,222,222,114,114,114,114,114,47,47,114,68,+ 114,68,114,47,47,114,47,68,222,47,47,222,68,68,154,114,68,114,114,68,68,47,114,68,75,68,68,114,222,68,114,222,+ 114,222,68,114,68,68,47,114,114,114,114,114,114,114,47,47,114,68,114,114,114,114,68,68,114,222,47,222,114,47,68,68,+ 68,114,222,47,114,222,114,222,47,47,114,68,114,114,68,68,68,114,47,68,68,114,154,114,68,68,114,114,68,68,114,222,+ 240,39,240,239,239,240,239,240,240,240,239,239,239,39,174,240,240,240,240,240,240,239,240,239,239,39,39,240,39,240,239,240,+ 240,240,239,239,239,239,240,240,240,240,39,39,239,174,239,39,174,239,239,240,240,240,239,240,239,239,240,240,240,240,39,239,+ 240,239,39,239,39,39,239,39,39,174,239,39,39,239,239,240,240,240,174,39,239,240,240,240,239,240,239,239,174,239,240,240,+ 239,240,240,240,240,239,239,239,239,239,39,39,240,39,240,240,240,239,240,240,240,239,240,239,240,39,239,239,240,240,239,39,+ 39,240,39,39,39,239,39,240,39,39,239,240,239,240,240,239,240,239,39,240,240,240,39,239,239,240,240,39,240,39,240,239,+ 240,240,240,240,239,39,240,240,39,174,39,239,240,239,240,240,239,39,239,240,240,239,240,239,240,240,240,174,39,239,239,239,+ 39,240,239,239,240,240,239,174,239,240,239,239,240,240,174,240,239,39,174,240,239,240,239,39,240,240,39,240,240,239,39,39,+ 240,240,39,174,39,39,240,240,239,240,240,239,39,240,240,174,239,240,239,239,240,240,240,240,240,39,239,39,239,240,239,240,+ 135,39,135,239,239,239,174,239,135,135,239,239,239,135,175,239,135,239,135,135,135,174,135,239,174,135,135,135,39,239,239,239,+ 135,239,174,239,239,239,239,239,135,135,135,39,239,174,174,39,174,239,239,135,239,135,174,239,174,239,239,135,239,239,135,174,+ 135,239,39,239,135,39,239,135,39,174,174,135,135,174,239,239,135,135,174,135,239,135,135,135,239,135,239,239,174,239,239,135,+ 174,135,135,239,239,239,239,174,239,239,39,135,239,135,135,239,239,239,135,239,239,174,135,239,135,39,239,239,239,135,174,135,+ 135,135,39,135,135,239,39,135,39,135,239,239,239,135,135,174,135,239,39,239,239,135,135,174,239,239,239,135,239,39,239,239,+ 135,135,135,135,239,39,239,135,39,174,135,239,239,239,135,239,239,39,239,135,135,239,239,239,135,239,239,174,39,174,174,239,+ 39,135,239,239,135,239,239,174,239,239,239,174,135,135,174,135,239,135,174,239,174,135,239,39,135,135,135,135,135,239,135,39,+ 135,135,39,174,39,135,135,135,174,135,135,239,135,135,239,174,239,135,239,239,135,135,135,135,239,39,174,135,239,239,239,135,+ 148,227,148,166,166,148,166,148,148,148,166,166,166,148,203,148,148,148,148,148,148,166,148,166,166,148,148,148,227,148,166,148,+ 148,148,166,166,166,166,148,148,148,148,148,105,166,203,166,105,203,166,166,148,148,148,166,148,166,166,148,148,148,148,148,166,+ 148,166,105,166,105,105,166,105,105,203,166,148,105,166,166,148,148,148,203,148,166,148,148,148,166,148,166,166,203,166,148,148,+ 166,148,148,148,148,166,166,166,166,166,105,105,148,148,148,148,148,166,148,148,148,166,148,166,148,105,166,166,148,148,166,148,+ 148,148,105,105,105,166,105,148,105,105,166,148,166,148,148,166,148,166,105,148,148,148,105,166,166,148,148,148,148,105,148,166,+ 148,148,148,148,166,105,148,148,227,166,148,166,148,166,148,148,166,105,166,148,148,166,148,166,148,148,148,166,105,166,166,166,+ 105,148,166,166,148,148,166,166,166,148,166,166,148,148,166,148,166,148,203,148,166,148,166,227,148,148,148,148,148,166,148,105,+ 148,148,227,166,105,105,148,148,166,148,148,166,148,148,148,166,166,148,166,166,148,148,148,148,148,227,166,148,166,148,166,148,+ 148,105,148,166,166,148,166,148,148,148,166,166,166,148,203,148,148,148,148,148,148,166,148,166,166,148,148,148,105,148,166,148,+ 148,148,166,166,166,166,148,148,148,148,148,105,166,203,166,105,203,166,166,148,148,148,166,148,166,166,148,148,148,148,148,166,+ 148,166,105,166,105,105,166,105,105,203,166,148,105,166,166,148,148,148,203,148,166,148,148,148,166,148,166,166,203,166,148,148,+ 166,148,148,148,148,166,166,166,166,166,105,105,148,148,148,148,148,166,148,148,148,166,148,166,148,105,166,166,148,148,166,148,+ 148,148,105,105,105,166,105,148,105,105,166,148,166,148,148,166,148,166,105,148,148,148,105,166,166,148,148,148,148,105,148,166,+ 148,148,148,148,166,105,148,148,105,203,148,166,148,166,148,148,166,105,166,148,148,166,148,166,148,148,148,166,105,166,166,166,+ 105,148,166,166,148,148,166,166,166,148,166,166,148,148,203,148,166,148,203,148,166,148,166,105,148,148,148,148,148,166,148,105,+ 148,148,105,166,105,105,148,148,166,148,148,166,148,148,148,203,166,148,166,166,148,148,148,148,148,105,166,148,166,148,166,148,+ 240,240,240,239,239,240,239,240,240,240,239,239,239,239,174,240,240,240,240,240,240,222,239,239,239,39,39,240,239,240,239,240,+ 240,222,39,239,239,222,240,222,240,240,39,39,222,174,239,222,222,75,222,222,240,222,222,222,239,222,240,222,114,222,222,114,+ 68,114,68,47,222,68,114,114,222,222,222,75,114,68,222,114,114,222,68,68,114,68,222,222,222,114,114,222,114,114,114,47,+ 47,114,114,114,154,114,114,47,47,114,47,47,114,68,114,68,114,114,47,47,68,68,114,114,68,222,68,68,114,114,68,68,+ 68,114,114,68,114,68,114,222,114,68,68,114,114,114,222,114,114,68,222,114,114,222,222,114,114,114,114,114,47,47,114,68,+ 114,68,114,47,47,114,47,68,222,47,47,222,68,68,154,114,68,114,114,68,68,47,114,68,75,68,68,114,222,68,114,222,+ 114,222,68,114,68,68,47,114,114,114,114,114,114,114,47,47,114,68,114,114,114,114,68,68,114,222,47,222,114,47,68,68,+ 68,114,222,47,114,222,114,222,47,47,114,68,114,114,68,68,68,114,47,68,68,114,154,114,68,68,114,114,68,68,114,222,+ 135,135,135,239,239,239,174,239,135,135,239,239,239,239,175,239,135,239,135,135,135,222,239,239,174,135,135,135,239,239,239,239,+ 135,222,39,239,239,222,239,222,135,135,135,39,222,174,174,222,222,75,222,222,239,222,222,222,174,222,239,222,114,222,222,114,+ 68,114,68,47,222,68,114,114,222,222,222,75,114,68,222,114,114,222,68,68,114,68,222,222,222,114,114,222,114,114,114,47,+ 47,114,114,114,154,114,114,47,47,114,47,47,114,68,114,68,114,114,47,47,68,68,114,114,68,222,68,68,114,114,68,68,+ 68,114,114,68,114,68,114,222,114,68,68,114,114,114,222,114,114,68,222,114,114,222,222,114,114,114,114,114,47,47,114,68,+ 114,68,114,47,47,114,47,68,222,47,47,222,68,68,154,114,68,114,114,68,68,47,114,68,75,68,68,114,222,68,114,222,+ 114,222,68,114,68,68,47,114,114,114,114,114,114,114,47,47,114,68,114,114,114,114,68,68,114,222,47,222,114,47,68,68,+ 68,114,222,47,114,222,114,222,47,47,114,68,114,114,68,68,68,114,47,68,68,114,154,114,68,68,114,114,68,68,114,222,+ 148,148,148,166,166,148,166,148,148,148,166,166,166,166,203,148,148,148,148,148,148,222,166,166,166,148,148,148,166,148,166,148,+ 148,222,105,166,166,222,148,222,148,148,148,105,222,203,166,222,222,75,222,222,148,222,222,222,166,222,148,222,114,222,222,114,+ 68,114,68,47,222,68,114,114,222,222,222,75,114,68,222,114,114,222,68,68,114,68,222,222,222,114,114,222,114,114,114,47,+ 47,114,114,114,154,114,114,47,47,114,47,47,114,68,114,68,114,114,47,47,68,68,114,114,68,222,68,68,114,114,68,68,+ 68,114,114,68,114,68,114,222,114,68,68,114,114,114,222,114,114,68,222,114,114,222,222,114,114,114,114,114,47,47,114,68,+ 114,68,114,47,47,114,47,68,222,47,47,222,68,68,154,114,68,114,114,68,68,47,114,68,75,68,68,114,222,68,114,222,+ 114,222,68,114,68,68,47,114,114,114,114,114,114,114,47,47,114,68,114,114,114,114,68,68,114,222,47,222,114,47,68,68,+ 68,114,222,47,114,222,114,222,47,47,114,68,114,114,68,68,68,114,47,68,68,114,154,114,68,68,114,114,68,68,114,222,+ 148,148,148,166,166,148,166,148,148,148,166,166,166,166,203,148,148,148,148,148,148,222,166,166,166,148,148,148,166,148,166,148,+ 148,222,105,166,166,222,148,222,148,148,148,105,222,203,166,222,222,75,222,222,148,222,222,222,166,222,148,222,114,222,222,114,+ 68,114,68,47,222,68,114,114,222,222,222,75,114,68,222,114,114,222,68,68,114,68,222,222,222,114,114,222,114,114,114,47,+ 47,114,114,114,154,114,114,47,47,114,47,47,114,68,114,68,114,114,47,47,68,68,114,114,68,222,68,68,114,114,68,68,+ 68,114,114,68,114,68,114,222,114,68,68,114,114,114,222,114,114,68,222,114,114,222,222,114,114,114,114,114,47,47,114,68,+ 114,68,114,47,47,114,47,68,222,47,47,222,68,68,154,114,68,114,114,68,68,47,114,68,75,68,68,114,222,68,114,222,+ 114,222,68,114,68,68,47,114,114,114,114,114,114,114,47,47,114,68,114,114,114,114,68,68,114,222,47,222,114,47,68,68,+ 68,114,222,47,114,222,114,222,47,47,114,68,114,114,68,68,68,114,47,68,68,114,154,114,68,68,114,114,68,68,114,222,+ 34,107,107,120,111,34,32,111,18,34,107,186,217,75,111,120,24,107,111,111,154,107,111,154,120,24,125,107,107,18,34,34,+ 107,18,236,34,34,186,111,125,34,34,154,27,107,107,180,154,107,107,18,34,32,27,34,34,125,34,27,217,111,107,107,186,+ 180,111,27,27,27,27,107,34,152,27,111,18,34,34,107,32,120,34,54,120,18,120,107,27,107,33,18,34,125,34,154,107,+ 236,154,95,18,34,236,34,107,107,107,34,24,24,125,95,217,236,236,54,27,137,137,27,24,111,34,95,107,54,186,95,107,+ 107,111,111,111,34,95,111,180,111,111,125,75,18,24,107,107,107,34,154,34,24,152,107,54,111,111,75,34,152,107,111,111,+ 186,95,24,34,152,107,107,75,217,34,34,152,107,111,111,34,27,107,27,217,107,18,120,34,54,186,107,107,120,154,125,34,+ 107,18,180,180,217,34,18,125,111,111,107,107,111,154,154,217,18,111,125,154,107,107,152,107,54,154,34,107,236,24,34,27,+ 107,24,18,34,54,34,34,95,95,95,34,107,75,27,27,107,154,27,236,154,34,27,107,18,34,34,152,75,18,111,107,34,+ 47,141,141,141,141,47,47,47,141,47,47,47,47,47,47,141,47,47,47,81,47,47,141,141,141,141,141,47,141,47,47,141,+ 47,47,141,141,141,141,47,47,81,47,47,47,47,47,47,141,228,228,228,81,81,81,81,81,81,81,228,228,228,228,81,81,+ 47,141,141,141,141,47,47,141,47,141,141,81,47,47,47,47,141,141,81,47,47,47,47,141,47,47,47,47,141,141,141,141,+ 47,47,47,47,47,47,47,141,141,141,81,47,47,47,47,47,81,81,228,228,228,228,228,81,81,81,228,228,228,228,81,81,+ 47,47,47,47,47,81,141,47,47,47,47,47,47,47,47,141,141,141,141,141,141,47,47,47,141,141,141,81,47,141,141,141,+ 47,47,47,47,47,47,141,141,141,141,47,47,47,47,47,141,81,228,81,81,228,228,228,81,81,81,81,81,228,228,228,81,+ 47,47,47,47,47,141,47,141,141,81,141,141,47,47,47,47,47,141,81,47,47,47,47,141,47,47,47,141,141,141,141,47,+ 47,47,141,141,141,47,47,141,47,47,141,47,47,47,47,47,81,81,81,67,228,228,67,228,81,81,81,228,131,228,228,81,+ 81,179,179,179,179,81,81,114,179,81,81,81,81,81,81,179,81,81,114,82,114,114,179,179,179,179,179,114,179,114,81,179,+ 81,81,179,179,179,179,114,114,82,81,81,114,81,81,81,179,248,248,248,88,88,88,88,88,88,88,248,248,248,248,88,88,+ 81,179,179,179,179,81,81,179,81,179,179,222,114,114,114,81,179,179,222,114,114,114,81,179,114,114,114,114,179,179,179,179,+ 81,81,81,114,81,81,81,179,179,179,222,81,81,81,81,81,88,88,248,248,248,248,248,88,88,88,248,248,248,248,88,88,+ 81,81,81,81,81,222,179,81,81,114,114,114,81,81,81,179,179,179,179,179,179,81,114,114,179,179,179,222,81,179,179,179,+ 81,114,114,114,81,81,179,179,179,179,114,114,114,114,114,179,88,248,88,88,248,248,248,88,88,88,88,88,248,248,248,88,+ 81,81,81,81,81,179,81,179,179,88,179,179,114,81,81,81,114,179,222,81,81,81,81,179,81,114,114,179,179,179,179,114,+ 81,81,179,179,179,81,81,179,81,81,179,114,81,81,81,81,88,88,88,131,248,248,131,248,88,88,88,248,53,248,248,88,+ 35,132,132,132,132,35,35,35,132,35,35,35,35,35,35,234,35,35,35,234,35,35,132,132,132,132,132,35,132,35,35,234,+ 35,35,132,132,132,132,35,35,234,35,35,35,35,35,35,234,141,141,141,121,121,121,121,121,121,121,141,141,141,141,121,121,+ 35,132,132,132,132,35,35,234,35,132,132,234,35,35,35,35,132,132,234,35,35,35,35,234,35,35,35,35,132,132,132,132,+ 35,35,35,35,35,35,35,234,132,132,234,35,35,35,35,35,121,121,141,141,141,141,141,121,121,121,141,141,141,141,121,121,+ 35,35,35,35,35,234,132,35,35,35,35,35,35,35,35,234,132,132,132,132,132,35,35,35,132,132,132,234,35,132,132,234,+ 35,35,35,35,35,35,132,132,132,132,35,35,35,35,35,234,121,141,121,121,141,141,141,121,121,121,121,121,141,141,141,121,+ 35,35,35,35,35,132,35,234,132,234,132,132,35,35,35,35,35,132,234,35,35,35,35,234,35,35,35,132,132,132,132,35,+ 35,35,132,132,132,35,35,234,35,35,132,35,35,35,35,35,121,121,121,121,141,141,121,141,121,121,121,141,224,141,141,121,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,193,0,0,0,0,+ 0,0,0,0,193,193,0,0,0,0,193,135,60,0,0,0,0,0,0,0,96,135,0,193,193,135,0,135,67,0,0,0,+ 0,0,0,193,67,96,60,0,135,60,108,222,222,60,0,0,0,0,0,135,228,60,60,0,60,67,222,108,108,67,0,0,+ 0,0,0,0,0,228,67,108,67,222,108,60,0,193,135,0,0,0,0,193,60,0,131,222,193,193,0,0,193,135,60,0,+ 0,0,0,135,0,67,114,114,135,96,60,108,0,60,0,0,0,0,0,0,135,114,108,222,67,60,222,222,114,67,193,0,+ 0,0,0,193,96,108,0,193,60,108,108,193,60,0,60,135,0,0,193,135,60,60,0,135,60,67,108,0,0,0,0,60,+ 0,0,135,60,0,60,0,108,67,193,96,0,0,0,0,0,0,0,0,0,0,0,0,67,114,108,60,0,0,0,0,0,+ 0,0,0,0,0,0,0,67,222,108,0,0,0,0,0,0,0,0,0,0,0,0,0,228,222,108,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,78,166,0,0,0,0,0,0,0,0,0,0,0,0,0,78,202,78,78,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,108,150,0,0,0,0,0,0,0,0,0,0,166,202,0,166,184,150,0,166,202,0,0,0,0,+ 0,0,166,202,166,166,202,150,184,166,202,0,0,0,0,0,0,166,78,108,108,0,202,184,184,78,0,0,166,0,0,0,+ 0,0,166,108,166,166,78,108,108,166,78,108,108,0,0,0,0,0,0,0,108,184,108,184,166,108,184,150,166,0,0,0,+ 0,0,0,166,166,108,184,166,78,184,78,0,0,0,0,0,0,0,0,0,0,166,108,166,184,108,166,0,0,0,0,0,+ 0,0,0,0,0,78,166,184,184,78,78,166,0,0,0,0,0,0,0,0,0,0,78,108,150,166,0,0,0,0,0,0,+ 0,0,0,0,0,0,108,150,184,202,0,0,0,0,0,0,0,0,0,0,0,0,0,150,150,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,240,240,39,0,0,0,0,39,39,0,0,0,0,0,0,0,209,240,0,240,39,39,0,240,39,0,0,0,+ 0,0,0,240,209,209,177,240,240,0,240,240,209,39,0,0,0,0,0,209,177,175,175,209,240,0,240,240,177,240,0,0,+ 0,0,240,39,0,240,209,209,209,175,209,177,0,0,0,0,0,0,240,240,39,0,0,39,39,209,175,0,240,39,0,0,+ 0,0,0,240,0,175,240,240,240,209,175,209,0,240,0,0,0,0,39,209,209,177,175,240,209,209,177,209,240,0,0,0,+ 0,240,240,0,240,39,175,175,240,39,0,177,240,39,0,0,0,240,0,0,0,0,177,209,240,240,0,240,240,240,39,0,+ 0,0,0,0,0,0,39,39,209,177,0,240,0,240,240,0,0,0,0,0,0,0,240,177,175,209,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,177,209,175,0,0,0,0,0,0,0,0,0,0,0,0,0,177,209,177,0,0,0,0,0,0,+ 217,77,77,77,77,217,180,180,183,180,217,77,77,77,77,217,217,217,180,180,180,180,180,180,77,180,180,180,183,217,217,77,+ 217,183,77,77,183,77,77,77,180,77,217,217,217,180,217,217,217,180,217,217,217,183,217,180,217,217,77,77,77,77,77,217,+ 217,180,180,77,77,77,77,77,77,77,180,180,180,180,180,183,77,77,217,217,217,77,77,77,217,183,217,217,77,77,183,217,+ 180,180,217,107,217,77,180,180,217,217,217,217,180,180,180,183,217,217,217,77,77,77,77,77,77,183,77,77,77,77,217,217,+ 217,180,180,183,180,77,217,217,217,180,180,180,180,180,180,180,217,77,77,77,77,77,77,217,183,217,217,77,77,77,180,217,+ 217,217,180,77,77,180,180,77,183,77,180,180,180,217,217,217,183,217,217,217,77,217,217,217,180,180,217,217,217,180,180,183,+ 217,77,77,77,77,77,77,77,180,180,77,77,77,77,77,217,217,180,77,180,183,217,217,77,77,77,183,77,217,217,180,180,+ 217,217,217,77,77,77,77,77,217,217,180,180,217,77,77,217,77,77,77,77,183,180,180,217,217,217,217,77,77,77,217,217,+ 51,51,51,51,51,51,51,51,51,51,51,51,51,51,192,192,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,192,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 51,51,51,51,51,51,51,51,51,51,51,51,192,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,+ 112,160,160,112,176,112,112,160,160,160,160,160,112,112,112,112,112,112,160,160,112,112,112,160,160,112,112,160,160,112,112,112,+ 112,112,112,160,160,160,160,160,160,112,112,160,160,112,159,176,112,112,160,160,160,160,160,112,112,160,160,160,112,176,176,176,+ 112,160,160,160,160,160,112,112,112,112,160,160,112,176,112,112,112,160,160,160,160,112,112,112,160,160,112,112,160,112,112,112,+ 112,160,112,112,112,112,176,112,160,112,176,112,160,112,112,112,160,160,160,160,112,176,176,112,160,160,112,160,160,160,160,160,+ 112,112,112,160,160,112,112,112,160,160,160,160,160,160,160,160,112,112,112,112,160,160,160,160,160,178,160,176,176,160,160,112,+ 112,112,176,112,160,160,160,178,160,160,160,176,176,160,160,112,160,160,160,160,112,176,160,178,160,160,160,112,160,160,160,160,+ 160,160,160,160,176,176,160,160,160,160,112,160,160,160,160,112,176,112,160,112,112,160,160,160,160,112,112,160,160,160,160,176,+ 176,176,112,112,160,160,160,160,160,160,160,112,112,112,160,112,112,112,112,176,112,112,160,160,160,160,160,112,112,112,160,112,+ 72,164,164,164,209,164,35,164,164,164,164,164,164,56,35,164,164,164,164,209,252,35,35,35,209,209,17,164,164,164,164,209,+ 164,209,209,164,164,164,164,164,164,164,209,209,164,35,35,209,35,164,164,164,35,164,35,164,234,164,164,164,209,209,164,132,+ 164,164,209,164,209,209,209,209,35,35,35,209,164,132,209,35,35,164,35,17,35,209,164,164,164,209,164,35,35,35,164,132,+ 132,164,72,164,132,164,164,35,164,164,209,56,164,209,164,164,164,164,209,164,164,35,209,21,164,35,164,35,164,164,20,209,+ 164,164,209,209,164,35,209,164,35,17,132,164,164,164,164,164,132,164,209,164,164,164,35,35,164,164,164,209,164,164,164,209,+ 164,164,234,209,35,209,164,164,209,209,209,164,164,17,164,164,35,209,164,72,164,164,164,164,164,164,164,21,35,35,35,132,+ 209,164,35,209,164,35,164,132,35,164,164,35,164,209,35,164,164,209,35,252,35,35,35,209,164,209,209,164,164,164,209,35,+ 164,164,164,35,164,35,164,164,35,164,132,164,209,72,35,164,164,164,164,132,17,164,35,209,164,209,35,164,164,164,164,35,+ 34,95,18,125,34,32,34,18,24,24,217,125,125,34,34,27,95,27,18,24,217,54,125,75,34,217,217,34,34,111,107,34,+ 125,34,24,24,217,34,75,34,34,34,32,34,111,18,95,125,54,34,24,217,217,34,34,34,180,236,32,125,34,95,217,125,+ 111,34,32,34,34,125,34,180,54,217,34,125,32,24,34,34,18,217,54,34,54,125,32,34,217,217,34,34,54,34,34,111,+ 54,217,34,180,180,95,32,34,34,34,54,34,34,24,34,152,217,34,24,180,54,217,34,216,216,95,125,24,24,24,27,34,+ 34,18,54,34,217,34,24,75,27,152,34,107,27,27,27,125,34,54,186,34,34,34,54,24,34,34,34,24,34,34,34,125,+ 32,24,34,24,180,180,32,24,24,24,27,24,32,24,18,18,54,216,120,24,95,152,24,34,107,27,27,24,32,24,54,107,+ 24,111,95,34,24,34,111,75,24,34,34,24,180,34,107,34,18,54,34,34,54,24,111,75,24,32,180,54,152,32,24,34,+ 54,32,111,24,32,24,75,27,34,32,180,95,34,54,34,24,27,24,34,186,34,34,34,24,34,24,34,34,34,24,34,54,+ 34,54,54,54,54,34,125,125,107,125,34,54,54,54,54,34,34,34,125,125,125,125,125,125,54,125,125,125,107,34,34,54,+ 34,107,54,54,159,54,54,54,125,54,34,34,21,159,34,34,34,125,34,34,34,107,34,21,176,34,54,54,54,54,54,34,+ 34,125,125,54,54,54,54,54,54,54,125,125,125,125,125,107,54,54,34,34,34,17,21,54,34,107,17,21,54,54,107,34,+ 125,125,34,17,21,159,159,176,34,34,159,176,125,125,125,107,34,34,34,54,54,54,54,54,54,107,54,54,54,54,34,34,+ 34,21,159,107,125,54,34,34,17,21,125,125,125,125,125,125,34,54,54,54,54,54,54,21,176,176,176,54,54,54,125,34,+ 34,34,125,54,159,125,125,54,107,54,125,125,125,34,34,34,107,34,34,34,54,34,34,34,125,125,34,21,176,125,125,107,+ 34,54,54,54,54,54,54,54,21,17,21,159,159,176,54,34,34,125,54,21,176,34,34,54,54,176,176,54,34,34,125,125,+ 34,34,34,54,54,54,54,54,34,34,125,125,34,54,54,34,54,54,54,54,107,125,125,34,34,34,34,54,54,54,34,34,+ 34,54,54,54,54,34,125,125,107,125,34,54,54,54,54,34,34,34,125,125,125,125,125,125,54,125,125,125,107,34,34,54,+ 34,107,54,54,204,54,54,54,125,54,34,34,156,204,34,34,34,125,34,34,34,107,34,156,121,34,54,54,54,54,54,34,+ 34,125,125,54,54,54,54,54,54,54,125,125,125,125,125,107,54,54,34,34,34,72,156,54,34,107,72,156,54,54,107,34,+ 125,125,34,72,156,204,204,121,34,34,204,121,125,125,125,107,34,34,34,54,54,54,54,54,54,107,54,54,54,54,34,34,+ 34,156,204,107,125,54,34,34,72,156,125,125,125,125,125,125,34,54,54,54,54,54,54,156,121,121,121,54,54,54,125,34,+ 34,34,125,54,204,125,125,54,107,54,125,125,125,34,34,34,107,34,34,34,54,34,34,34,125,125,34,156,121,125,125,107,+ 34,54,54,54,54,54,54,54,156,72,156,204,204,121,54,34,34,125,54,156,121,34,34,54,54,121,121,54,34,34,125,125,+ 34,34,34,54,54,54,54,54,34,34,125,125,34,54,54,34,54,54,54,54,107,125,125,34,34,34,34,54,54,54,34,34,+ 34,54,54,54,54,34,125,125,107,125,34,54,54,54,54,34,34,34,125,125,125,125,125,125,54,125,125,125,107,34,34,54,+ 34,107,54,54,25,54,54,54,125,54,34,34,19,25,34,34,34,125,34,34,34,107,34,19,77,34,54,54,54,54,54,34,+ 34,125,125,54,54,54,54,54,54,54,125,125,125,125,125,107,54,54,34,34,34,106,19,54,34,107,106,19,54,54,107,34,+ 125,125,34,106,19,25,25,77,34,34,25,77,125,125,125,107,34,34,34,54,54,54,54,54,54,107,54,54,54,54,34,34,+ 34,19,25,107,125,54,34,34,106,19,125,125,125,125,125,125,34,54,54,54,54,54,54,19,77,77,77,54,54,54,125,34,+ 34,34,125,54,25,125,125,54,107,54,125,125,125,34,34,34,107,34,34,34,54,34,34,34,125,125,34,19,77,125,125,107,+ 34,54,54,54,54,54,54,54,19,106,19,25,25,77,54,34,34,125,54,19,77,34,34,54,54,77,77,54,34,34,125,125,+ 34,34,34,54,54,54,54,54,34,34,125,125,34,54,54,34,54,54,54,54,107,125,125,34,34,34,34,54,54,54,34,34,+ 228,228,53,228,228,179,53,53,53,228,228,53,81,228,228,228,228,47,47,47,47,47,47,47,141,47,47,47,47,47,47,179,+ 53,47,141,141,141,52,141,52,141,141,141,141,141,141,47,228,228,47,141,47,47,47,47,47,47,47,47,47,47,141,47,53,+ 131,47,141,47,47,47,47,47,47,47,47,47,47,141,47,228,53,47,52,47,47,141,141,141,141,141,141,47,47,52,47,228,+ 53,47,141,47,47,141,47,47,47,47,141,47,47,141,47,53,53,47,141,132,47,141,47,47,47,47,141,141,47,141,47,81,+ 228,47,47,47,47,141,47,47,47,47,141,47,47,52,47,228,228,47,52,47,47,52,47,47,47,47,141,47,47,141,47,228,+ 179,47,141,47,47,141,141,141,141,141,141,47,47,141,47,228,53,47,141,47,47,47,47,47,47,47,47,47,47,141,47,179,+ 53,47,141,47,47,47,47,47,47,47,47,47,47,141,47,53,53,47,52,141,141,141,141,141,52,141,141,141,141,141,47,53,+ 131,47,47,47,47,47,141,141,47,47,141,47,47,47,47,228,228,81,53,228,228,228,53,228,228,228,228,228,53,53,53,228,+ 103,228,228,52,53,228,52,248,179,228,179,67,228,67,228,52,248,179,81,245,248,52,248,179,52,53,228,52,131,67,131,52,+ 53,82,179,248,228,52,248,179,52,53,179,67,131,67,131,52,228,103,179,248,67,67,248,228,52,53,228,52,53,52,248,67,+ 228,248,228,179,67,67,228,179,81,248,228,52,53,52,53,67,228,82,228,179,52,228,179,228,228,53,228,68,248,67,248,179,+ 228,67,131,228,52,179,228,53,52,53,67,82,245,67,248,81,228,52,248,228,52,53,52,248,52,53,67,131,179,67,248,81,+ 228,52,248,81,52,248,228,248,228,248,52,53,228,228,248,67,228,52,103,179,228,52,248,228,228,53,52,248,228,52,248,67,+ 103,67,248,228,179,52,53,179,248,82,141,248,228,52,248,52,248,67,248,179,81,52,248,52,245,82,52,53,228,52,53,52,+ 53,52,53,179,228,52,245,228,248,179,52,53,228,179,248,52,248,228,82,228,228,67,131,81,228,179,179,53,228,52,52,53,+ 53,179,52,248,228,67,131,248,52,228,52,53,179,67,53,179,82,228,67,248,179,228,228,248,228,228,179,245,179,228,179,67,+ 131,131,128,131,131,131,128,128,128,131,131,128,222,131,131,131,131,81,81,81,81,81,81,81,114,81,81,81,81,67,81,88,+ 128,81,228,228,228,179,228,179,81,228,228,228,228,228,81,131,131,81,228,81,67,67,67,67,67,81,67,81,67,228,81,128,+ 53,81,228,67,81,81,81,81,81,81,81,81,67,228,81,131,128,81,179,67,81,228,228,228,228,228,228,81,81,179,81,131,+ 128,81,228,67,81,228,67,67,67,67,228,81,81,228,81,128,128,81,228,68,81,228,67,81,81,67,228,114,67,228,81,222,+ 131,81,81,67,81,228,67,81,81,67,228,81,67,179,81,131,131,81,179,67,81,179,67,67,67,67,228,81,67,228,81,131,+ 88,81,228,81,81,228,228,228,228,228,228,81,67,228,81,131,128,81,228,67,81,81,81,81,81,81,81,81,67,228,81,88,+ 128,81,228,67,67,81,67,67,67,67,67,67,67,228,81,128,128,81,179,228,228,228,228,228,179,228,228,228,81,228,81,128,+ 53,81,81,81,81,81,114,114,81,81,228,81,81,81,81,131,131,222,128,131,131,131,128,131,131,131,131,131,128,128,128,131,+ 69,184,184,88,150,128,108,150,184,184,184,245,128,245,184,88,150,184,128,109,150,108,150,184,108,150,184,88,73,245,73,108,+ 150,184,184,150,184,108,150,184,108,150,184,245,73,245,73,108,128,69,184,150,245,245,150,184,108,150,184,108,150,88,150,245,+ 184,150,184,184,245,245,184,184,212,150,184,88,150,88,150,245,184,184,184,184,88,184,184,184,184,150,184,108,150,245,150,184,+ 184,245,73,184,108,184,184,150,108,150,245,73,109,245,150,212,184,88,150,184,88,150,88,150,108,150,245,73,184,245,150,212,+ 184,108,150,212,108,150,184,150,184,150,108,150,184,184,150,245,184,88,69,184,128,108,150,184,184,150,108,150,184,108,150,245,+ 69,245,150,184,184,108,150,184,150,184,131,150,184,88,69,108,150,245,150,184,128,88,150,88,109,184,131,150,184,108,150,88,+ 150,88,150,184,184,88,109,184,150,184,108,150,184,184,150,108,150,128,184,184,184,245,73,212,128,184,184,150,184,108,88,150,+ 150,184,108,150,184,245,73,150,108,184,108,150,184,245,150,184,184,184,245,150,184,184,184,150,184,184,184,109,184,184,184,245,+ 120,56,56,56,56,216,56,20,20,56,189,25,25,56,56,120,56,234,132,132,132,132,132,132,132,252,132,132,35,132,132,56,+ 37,132,141,141,141,141,141,141,47,141,141,141,141,141,132,37,25,132,47,132,132,132,132,132,132,132,132,132,132,141,132,56,+ 25,132,141,132,132,132,132,132,132,132,132,132,132,141,132,20,189,132,141,132,132,141,47,47,141,141,141,132,132,141,132,25,+ 26,132,141,132,132,141,132,132,132,132,141,132,132,141,132,189,20,132,141,132,132,141,132,132,132,132,141,132,132,141,132,189,+ 37,132,47,132,132,141,132,132,132,132,141,132,132,141,132,20,56,234,141,132,132,141,132,132,132,132,141,132,132,141,132,20,+ 216,132,141,132,132,141,141,141,141,141,141,132,132,141,132,56,56,132,141,132,132,132,132,132,132,132,132,132,132,47,132,20,+ 56,132,141,132,132,132,132,132,132,132,132,132,132,141,132,20,25,132,141,141,47,141,141,141,141,141,141,47,47,47,132,56,+ 25,132,132,132,132,132,234,234,234,132,132,132,132,132,132,20,189,189,25,37,20,20,25,25,189,189,37,20,37,17,17,56,+ 120,56,56,56,56,216,56,20,20,56,17,17,17,56,56,120,56,56,37,37,37,56,56,20,56,56,56,56,56,56,56,56,+ 37,56,20,56,56,20,56,37,20,37,56,120,56,56,37,37,56,17,56,216,19,71,189,25,20,56,20,56,56,56,20,56,+ 20,56,120,120,20,25,19,189,19,20,37,37,20,20,19,37,25,30,56,17,17,56,56,17,17,56,17,17,56,19,71,238,+ 19,20,37,20,56,216,20,37,37,37,56,20,120,56,20,56,56,216,17,56,20,20,20,20,17,216,56,56,17,20,20,37,+ 37,20,37,17,17,56,56,17,20,56,56,20,56,56,37,20,56,20,56,20,20,20,216,20,216,209,37,56,56,56,56,20,+ 216,56,37,37,20,120,56,56,56,56,17,17,20,20,17,56,56,56,20,56,56,216,216,216,56,56,20,20,216,120,20,20,+ 56,17,17,56,37,20,20,56,56,20,56,20,20,56,19,19,19,37,37,56,56,56,56,120,37,56,20,20,19,19,50,238,+ 71,19,19,56,56,17,17,17,56,20,25,19,216,20,50,71,20,56,56,19,20,20,20,56,56,56,37,20,37,17,17,56,+ 110,16,243,110,151,16,16,16,96,16,16,16,16,151,16,110,96,16,243,110,16,151,16,16,151,151,16,243,243,151,16,151,+ 16,16,96,16,151,243,110,16,110,110,151,243,110,16,243,110,16,16,16,16,16,243,96,16,110,110,151,243,96,16,243,110,+ 16,110,110,16,16,110,151,16,110,96,16,16,96,16,96,96,16,243,96,16,151,96,151,16,151,110,16,151,16,151,16,96,+ 151,110,16,151,151,16,110,110,16,16,241,16,16,151,151,151,110,243,16,110,243,151,243,96,16,110,243,151,16,151,16,241,+ 243,96,16,110,110,151,110,96,16,110,96,16,16,243,110,151,96,151,16,151,96,16,110,16,151,16,110,16,151,243,96,16,+ 151,16,16,16,16,151,151,16,110,110,16,16,151,110,16,16,243,16,243,243,16,16,16,16,243,110,16,110,96,16,151,110,+ 96,16,243,110,16,243,243,16,16,96,16,110,96,16,151,110,96,16,151,96,16,110,96,16,16,151,16,110,151,243,110,16,+ 241,16,16,151,151,96,16,16,16,241,151,110,16,243,96,151,110,16,16,16,16,110,16,151,110,243,151,16,16,96,151,243,+ 96,16,110,110,151,16,16,16,241,16,16,16,16,151,16,110,96,16,243,96,16,151,16,16,151,151,16,243,243,151,16,151,+ 16,16,96,16,151,110,110,16,110,110,151,110,96,16,110,110,16,16,16,16,16,110,96,16,110,96,151,110,96,16,110,96,+ 16,110,110,16,16,110,151,16,96,96,16,16,96,16,96,96,16,110,96,16,151,96,151,16,151,96,16,151,16,151,16,96,+ 151,96,16,151,151,16,110,110,16,16,151,16,16,151,151,151,110,243,16,110,243,151,110,96,16,110,243,151,16,151,16,151,+ 243,96,16,96,96,151,96,96,16,96,96,16,16,243,110,151,96,151,16,151,96,16,96,16,151,16,96,16,151,110,96,16,+ 151,16,16,16,16,205,151,16,110,110,16,16,151,96,16,16,110,16,110,243,16,16,16,16,110,96,16,110,96,16,151,110,+ 96,16,110,96,16,110,243,16,16,96,16,96,96,16,151,110,96,16,151,96,16,110,96,16,16,151,16,96,151,110,110,16,+ 241,16,16,151,151,96,16,16,16,151,151,96,16,110,96,151,110,16,16,16,16,96,16,151,110,110,151,16,16,96,151,110,+ 166,16,148,166,78,16,16,16,203,16,16,16,16,78,16,148,203,16,148,166,16,78,16,16,78,143,16,148,148,143,16,78,+ 16,16,166,16,143,148,166,16,166,148,251,148,166,16,148,148,16,16,16,16,16,148,203,16,148,166,143,148,203,16,148,166,+ 16,166,166,16,16,148,78,16,166,166,16,16,166,16,166,203,16,148,203,16,143,166,78,16,78,166,16,78,16,78,16,203,+ 117,166,16,143,78,16,166,148,16,16,251,16,16,78,78,78,166,148,16,148,148,78,148,166,16,148,148,117,16,78,16,251,+ 148,166,16,166,166,78,166,166,16,166,166,16,16,148,166,78,166,143,16,78,166,16,166,16,78,16,166,16,78,148,166,16,+ 251,16,16,16,16,143,78,16,148,148,16,16,78,166,16,16,148,16,148,148,16,16,16,16,148,166,16,148,203,16,143,148,+ 203,16,148,166,16,148,148,16,16,203,16,166,166,16,143,166,166,16,78,166,16,148,203,16,16,143,16,166,143,148,148,16,+ 251,16,16,78,78,203,16,16,16,251,143,166,16,148,166,78,166,16,16,16,16,166,16,117,148,148,78,16,16,166,78,148,+ 166,16,148,166,78,16,16,16,203,16,16,16,16,78,16,148,203,16,148,166,16,78,16,16,78,143,16,148,148,78,16,78,+ 16,16,166,16,78,148,166,16,166,148,78,148,166,16,148,148,16,16,16,16,16,148,203,16,148,166,143,148,203,16,148,166,+ 16,166,166,16,16,148,78,16,166,203,16,16,203,16,166,203,16,148,203,16,143,203,78,16,78,166,16,78,16,78,16,203,+ 78,166,16,78,78,16,166,148,16,16,251,16,16,78,78,78,166,148,16,148,148,78,148,166,16,148,148,78,16,78,16,251,+ 148,166,16,166,166,78,166,166,16,166,166,16,16,148,166,78,203,143,16,78,203,16,166,16,78,16,166,16,78,148,166,16,+ 78,16,16,16,16,143,78,16,148,148,16,16,78,166,16,16,148,16,148,148,16,16,16,16,148,166,16,148,203,16,78,148,+ 203,16,148,166,16,148,148,16,16,203,16,166,166,16,143,166,166,16,78,166,16,148,203,16,16,78,16,166,143,148,148,16,+ 251,16,16,78,78,203,16,16,16,251,78,166,16,148,166,78,166,16,16,16,16,166,16,78,148,148,78,16,16,166,78,148,+ 16,166,16,143,16,166,143,16,166,16,166,143,16,166,16,166,166,203,203,143,126,166,16,126,16,166,203,143,16,16,16,203,+ 16,166,16,188,166,16,166,16,166,16,166,188,16,166,143,166,166,16,166,16,16,166,143,16,203,16,143,126,166,143,166,16,+ 143,16,16,203,166,16,166,143,203,166,16,16,16,166,188,16,143,16,203,143,143,16,16,143,166,126,166,143,166,143,166,16,+ 188,166,203,203,143,16,166,16,188,166,143,16,203,143,16,166,16,126,166,16,126,166,16,166,166,16,166,16,203,16,166,16,+ 16,166,143,166,126,16,166,143,143,16,16,166,143,166,16,166,166,188,203,143,16,166,16,166,188,16,166,16,143,16,166,143,+ 203,16,16,188,166,143,16,16,16,166,143,166,16,166,126,143,16,16,166,16,203,143,16,166,143,16,166,203,16,143,16,188,+ 188,203,203,166,203,166,126,166,126,166,16,166,16,143,126,16,126,16,166,16,166,16,166,143,16,16,166,143,16,188,166,16,+ 188,166,16,166,143,166,16,188,143,16,203,16,126,166,16,166,16,143,16,126,166,143,166,16,143,166,16,203,126,16,203,16,+ 239,16,240,240,117,16,16,16,174,16,16,16,16,117,16,240,174,16,39,239,16,117,16,16,117,117,16,240,240,117,16,117,+ 16,16,239,16,117,240,240,16,240,240,155,240,239,16,240,240,16,16,16,16,16,240,174,16,240,239,117,240,239,16,240,239,+ 16,240,240,16,16,240,117,16,239,239,16,16,239,16,239,174,16,240,174,16,117,239,155,16,117,239,16,117,16,117,16,174,+ 117,239,16,117,117,16,240,240,16,16,155,16,16,117,117,155,240,240,16,240,240,117,240,239,16,240,39,117,16,117,16,155,+ 240,239,16,239,239,117,239,239,16,239,239,16,16,39,240,117,239,117,16,117,239,16,239,16,117,16,239,16,117,240,239,16,+ 155,16,16,16,16,143,117,16,240,240,16,16,117,239,16,16,240,16,240,240,16,16,16,16,240,239,16,240,174,16,117,240,+ 174,16,240,239,16,240,240,16,16,174,16,239,239,16,117,240,239,16,117,239,16,240,239,16,16,117,16,239,117,240,240,16,+ 155,16,16,117,155,174,16,16,16,155,117,239,16,240,239,117,240,16,16,16,16,239,16,117,240,240,117,16,16,239,117,240,+ 17,17,17,0,17,17,17,17,17,17,17,17,17,17,17,244,17,0,0,0,0,0,0,244,0,0,0,0,0,0,0,181,+ 17,0,0,17,0,0,244,0,0,0,0,0,0,0,0,0,17,0,17,0,0,0,0,0,0,0,0,0,0,0,244,181,+ 17,17,0,0,0,0,0,0,0,17,0,0,0,244,0,181,17,0,0,0,0,0,0,0,17,0,0,0,244,0,0,0,+ 0,0,0,0,0,0,0,244,0,0,0,0,0,0,0,181,17,0,244,0,0,0,244,0,0,0,0,0,0,0,0,181,+ 17,244,0,0,0,0,0,0,0,0,0,0,0,0,0,181,17,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,17,0,0,0,0,0,17,0,0,17,0,0,0,0,0,244,0,0,0,0,0,17,0,0,181,+ 0,244,0,0,0,0,0,0,0,0,0,17,0,0,0,181,244,0,0,0,0,0,0,0,0,0,244,0,0,0,0,181,+ 17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,244,244,181,181,181,181,181,0,0,181,181,0,181,181,181,181,244,+ 34,54,54,54,54,34,125,125,107,125,34,54,54,54,54,34,34,34,125,125,125,125,125,125,54,125,125,125,107,34,34,54,+ 34,107,83,129,83,83,54,54,125,54,34,34,40,83,34,34,34,125,34,34,34,83,34,83,83,34,54,54,54,54,54,34,+ 34,125,125,54,54,54,54,54,54,54,125,125,125,125,125,107,54,54,34,34,34,83,83,54,34,107,83,129,54,54,107,34,+ 125,125,34,40,83,83,51,83,34,34,83,83,125,125,125,107,34,83,83,54,54,54,54,54,54,107,54,54,54,54,34,34,+ 34,83,40,107,125,54,34,83,34,83,83,83,125,125,125,125,34,54,54,54,54,54,54,83,83,83,83,83,54,83,129,34,+ 34,34,125,54,40,125,125,54,40,83,83,125,125,83,129,34,107,34,83,85,85,34,34,34,125,125,34,34,34,83,129,107,+ 34,54,54,54,54,40,54,54,40,83,83,54,54,83,83,34,34,125,54,125,40,40,83,54,40,40,83,54,34,34,125,125,+ 34,34,34,54,83,83,83,54,34,34,125,125,34,54,54,34,54,54,54,54,107,125,125,34,34,34,34,54,54,54,34,34,+ 129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,83,83,83,83,129,129,83,83,83,83,83,40,40,83,83,83,40,+ 129,83,83,129,83,83,83,83,129,83,83,40,40,83,83,40,129,83,83,83,83,83,83,83,83,83,83,40,40,83,83,85,+ 83,83,83,83,83,83,83,83,83,83,83,83,83,40,83,85,129,83,83,83,83,83,83,83,83,83,83,83,83,83,83,85,+ 129,40,83,83,83,83,83,83,83,83,83,83,83,83,83,40,83,83,83,83,83,40,83,83,83,83,83,83,83,83,140,40,+ 83,83,83,83,83,83,40,83,83,83,83,83,83,83,83,40,83,40,83,83,83,129,83,83,83,83,83,83,83,83,129,40,+ 129,83,140,40,83,83,83,40,83,83,83,83,83,83,129,140,129,83,83,40,140,83,83,40,83,83,83,83,83,83,129,140,+ 129,83,83,140,40,40,40,40,40,83,83,83,83,83,83,140,129,83,83,83,40,40,83,40,40,140,83,83,83,83,83,140,+ 129,140,83,83,83,83,83,83,40,83,140,40,83,83,83,40,129,140,140,83,40,140,140,140,140,140,140,140,140,140,40,40,+ 209,164,35,132,164,164,209,132,164,164,164,164,132,164,164,164,209,132,164,164,132,35,164,132,164,164,35,164,164,132,132,209,+ 35,164,164,132,132,35,35,35,132,35,35,164,132,209,164,132,35,164,132,209,209,132,164,164,35,35,164,132,209,164,164,35,+ 164,132,209,164,164,35,209,209,132,35,35,209,164,164,164,164,164,132,164,164,164,35,132,132,164,164,164,132,35,164,35,35,+ 132,164,164,209,164,35,132,209,132,164,164,35,35,35,209,132,164,132,209,35,132,132,35,35,132,164,164,164,164,209,132,209,+ 35,35,132,164,164,164,35,164,164,132,132,164,209,132,164,35,164,164,35,35,164,164,132,35,164,35,35,132,132,35,164,164,+ 35,132,35,35,164,164,132,164,164,164,132,209,164,35,164,164,132,209,209,164,164,164,164,132,35,209,132,209,164,132,164,164,+ 164,35,132,164,35,35,132,35,35,132,209,164,35,164,132,35,164,164,209,132,132,164,164,132,35,35,164,164,164,132,209,164,+ 164,164,164,209,132,164,164,132,35,132,35,164,132,209,164,164,164,164,164,132,164,164,164,132,164,164,164,132,164,164,164,209,+ 164,164,164,164,164,164,35,35,164,164,164,164,164,164,164,209,164,164,164,164,164,35,35,35,164,164,164,164,164,209,209,209,+ 164,164,164,164,35,35,35,35,35,164,35,164,209,164,164,164,164,164,164,164,35,164,164,164,35,164,35,164,164,164,164,35,+ 164,35,164,35,164,164,164,164,35,164,164,164,164,164,164,164,35,164,164,35,35,35,164,209,164,35,164,164,164,164,164,164,+ 164,164,164,35,164,35,35,209,164,164,164,164,164,164,164,164,164,164,164,35,164,164,35,35,164,164,164,164,164,164,164,164,+ 164,35,164,164,164,164,164,164,164,164,164,164,209,209,164,164,35,35,35,164,164,164,164,35,164,164,35,164,209,164,164,164,+ 35,164,164,164,164,164,164,164,164,164,164,35,164,209,209,35,164,164,164,164,164,164,164,35,164,164,35,164,164,164,164,164,+ 164,164,164,164,164,164,164,35,35,35,35,35,35,164,164,164,164,164,164,164,164,164,35,164,164,35,164,164,164,164,164,164,+ 164,164,164,164,164,164,164,35,35,164,164,164,164,209,164,164,209,164,164,164,164,164,164,35,164,164,164,209,164,164,164,164,+ 209,209,209,209,164,164,209,209,209,209,209,209,209,209,209,209,164,164,164,164,164,164,35,35,164,164,164,164,164,209,209,209,+ 35,164,35,132,35,35,35,132,35,132,132,132,35,35,72,132,35,209,209,209,35,209,209,209,209,209,132,209,209,209,209,209,+ 35,164,164,164,35,164,164,164,164,132,209,164,164,209,164,164,164,164,164,164,35,209,164,209,164,132,209,164,164,164,164,132,+ 164,35,35,35,35,35,209,209,132,132,35,209,164,164,164,132,132,209,209,209,209,209,35,35,209,209,209,35,35,35,132,209,+ 209,164,209,164,164,132,209,209,164,164,164,35,209,209,132,209,164,164,164,164,164,132,209,164,209,164,164,132,209,164,132,164,+ 132,132,132,132,164,35,164,164,209,164,164,35,209,132,132,132,209,209,209,209,35,132,132,132,164,132,132,209,132,164,209,209,+ 209,209,209,35,209,209,209,209,132,209,209,164,35,209,209,209,209,209,164,132,164,164,164,164,132,164,164,164,132,209,164,164,+ 35,35,209,35,164,209,209,132,209,35,164,164,35,132,164,132,209,209,35,164,35,35,132,209,164,164,132,35,209,209,132,209,+ 0,0,0,0,0,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,240,0,0,0,0,+ 0,0,39,0,0,240,0,0,39,0,240,0,0,0,0,174,0,0,240,174,0,240,240,0,240,0,174,0,240,0,39,174,+ 39,0,240,240,0,240,174,0,240,0,174,240,0,0,240,240,240,174,0,240,0,240,174,0,239,174,240,240,39,0,240,0,+ 39,174,0,240,0,239,174,0,174,240,174,0,39,0,240,0,240,240,174,240,174,239,240,239,174,240,174,0,240,0,174,0,+ 0,240,174,240,174,239,240,0,240,240,240,240,240,240,240,0,0,240,174,0,174,174,240,239,174,0,174,174,240,174,240,0,+ 0,240,174,0,174,0,174,240,174,0,174,240,240,174,240,0,0,174,240,0,174,0,174,240,174,0,174,239,240,174,0,0,+ 0,174,174,240,174,239,174,240,174,240,174,239,174,240,0,0,0,240,39,240,174,240,174,240,240,240,174,239,174,240,239,0,+ 0,239,239,174,240,239,174,240,174,240,174,174,174,174,239,0,239,240,239,174,239,174,174,239,174,239,239,239,174,239,174,0,+ 0,0,0,0,0,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,239,0,0,0,0,+ 0,0,39,0,0,135,0,0,39,0,239,0,0,0,0,174,0,0,135,174,0,135,239,0,135,0,174,0,239,0,39,174,+ 39,0,135,135,0,135,174,0,135,0,174,239,0,0,239,239,135,174,0,135,0,239,174,0,239,174,135,135,39,0,135,0,+ 39,174,0,135,0,239,174,0,174,239,174,0,39,0,135,0,135,135,174,239,174,239,239,239,174,239,174,0,135,0,174,0,+ 0,135,174,239,174,239,239,0,239,135,135,135,135,135,239,0,0,239,174,0,174,174,239,239,174,0,174,174,239,174,239,0,+ 0,239,174,0,174,0,174,239,174,0,174,239,239,174,239,0,0,174,135,0,174,0,174,239,174,0,174,239,239,174,0,0,+ 0,174,174,135,174,239,174,135,174,135,174,239,174,135,0,0,0,135,135,135,174,239,174,135,239,135,174,239,174,239,239,0,+ 0,174,239,174,135,239,174,239,174,239,174,174,174,174,239,0,239,135,174,174,174,174,174,174,174,174,174,174,174,239,174,0,+ 0,0,0,0,0,148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,105,0,0,0,0,0,148,0,0,0,0,+ 0,0,105,0,0,148,0,0,105,0,148,0,0,0,0,203,0,0,148,203,0,148,148,0,148,0,203,0,148,0,105,203,+ 105,0,148,148,0,148,203,0,148,0,203,148,0,0,148,148,148,203,0,148,0,148,203,0,166,203,148,148,105,0,148,0,+ 105,203,0,148,0,166,203,0,203,148,203,0,105,0,148,0,148,148,203,148,203,166,148,166,203,148,203,0,148,0,203,0,+ 0,148,203,148,203,166,148,0,148,148,148,148,148,148,148,0,0,148,203,0,203,203,148,166,203,0,203,203,148,203,148,0,+ 0,148,203,0,203,0,203,148,203,0,203,148,148,203,148,0,0,203,148,0,203,0,203,148,203,0,203,166,148,203,0,0,+ 0,203,203,148,203,166,203,148,203,148,203,166,203,148,0,0,0,148,148,148,203,148,203,148,148,148,203,166,203,148,166,0,+ 0,166,166,203,148,166,203,148,203,148,203,203,203,203,166,0,166,148,166,203,166,203,203,166,203,166,166,166,203,166,203,0,+ 0,0,0,0,0,148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,105,0,0,0,0,0,148,0,0,0,0,+ 0,0,105,0,0,148,0,0,105,0,148,0,0,0,0,203,0,0,148,203,0,148,148,0,148,0,203,0,148,0,105,203,+ 105,0,148,148,0,148,203,0,148,0,203,148,0,0,148,148,148,203,0,148,0,148,203,0,166,203,148,148,105,0,148,0,+ 105,203,0,148,0,166,203,0,203,148,203,0,105,0,148,0,148,148,203,148,203,166,148,166,203,148,203,0,148,0,203,0,+ 0,148,203,148,203,166,148,0,148,148,148,148,148,148,148,0,0,148,203,0,203,203,148,166,203,0,203,203,148,203,148,0,+ 0,148,203,0,203,0,203,148,203,0,203,148,148,203,148,0,0,203,148,0,203,0,203,148,203,0,203,166,148,203,0,0,+ 0,203,203,148,203,166,203,148,203,148,203,166,203,148,0,0,0,148,148,148,203,148,203,148,148,148,203,166,203,148,166,0,+ 0,166,166,203,148,166,203,148,203,148,203,203,203,203,166,0,166,148,166,203,166,203,203,166,203,166,166,166,203,166,203,0,+ 0,0,0,0,0,0,0,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,122,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,122,145,0,0,0,122,0,0,0,0,0,0,0,0,0,0,122,145,0,0,0,122,145,0,0,+ 0,0,0,122,122,0,0,122,122,145,145,122,122,0,0,0,0,0,0,0,145,122,0,0,122,122,122,145,145,122,0,0,+ 0,0,0,0,0,145,122,145,122,145,145,0,145,0,0,0,0,0,0,0,0,0,145,122,145,145,0,0,0,0,0,0,+ 0,0,0,0,0,122,122,122,145,0,0,145,0,0,0,0,0,122,122,122,122,122,145,122,122,145,122,122,122,122,0,0,+ 0,0,0,145,145,145,0,122,122,145,145,0,145,145,122,0,0,0,0,0,122,0,0,0,122,145,145,0,0,0,122,0,+ 0,0,0,0,122,0,0,145,122,145,0,0,0,0,0,0,0,0,0,0,0,0,0,122,122,145,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,122,122,145,0,0,0,0,0,0,0,0,0,0,0,0,0,145,122,145,0,0,0,0,0,0,+ 26,37,26,26,20,56,26,37,20,56,33,26,20,20,26,33,20,20,17,17,56,56,37,37,26,33,37,37,120,26,37,20,+ 56,56,37,20,17,56,20,37,56,56,56,56,17,17,56,20,20,37,56,56,37,37,20,56,26,37,56,56,20,37,17,56,+ 20,20,26,20,56,56,33,216,37,20,37,26,56,56,26,33,26,216,26,56,26,216,26,37,26,216,37,37,33,37,26,37,+ 17,17,56,56,20,20,20,20,56,17,20,37,17,17,56,20,37,37,17,17,56,20,56,56,26,37,56,56,20,20,56,56,+ 56,56,26,37,56,20,26,37,37,37,37,33,20,37,26,26,37,37,37,56,216,33,37,20,26,20,17,17,20,56,17,17,+ 56,56,56,56,17,56,56,20,56,56,37,20,20,20,26,20,26,26,20,20,37,37,56,56,26,26,37,20,216,216,37,20,+ 37,37,216,33,56,17,26,216,20,56,20,56,17,17,20,33,56,20,17,17,56,56,20,37,216,20,56,56,20,20,56,17,+ 17,56,20,37,56,20,20,56,17,56,37,37,20,56,37,26,33,26,56,20,26,37,56,17,20,37,20,56,26,26,56,56,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,22,22,0,22,191,22,0,0,0,0,0,0,0,0,0,0,0,22,22,22,191,0,0,0,0,0,0,+ 0,0,0,0,0,22,22,191,191,191,22,0,0,0,0,0,0,0,0,0,0,0,0,49,49,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,49,172,49,172,0,0,0,0,0,0,0,0,0,0,172,49,49,172,172,0,0,0,0,0,0,+ 0,0,0,0,0,0,172,49,172,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,172,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,232,0,0,0,0,0,0,+ 0,0,0,0,0,0,232,229,232,232,232,0,0,0,0,0,0,0,0,0,0,232,232,229,229,232,232,0,0,0,0,0,+ 0,0,0,0,0,130,130,232,232,232,0,0,0,0,0,0,0,0,0,0,0,0,232,49,172,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,0,49,49,0,49,0,49,49,0,0,0,0,+ 0,0,0,0,0,0,49,0,49,49,0,0,0,0,0,0,0,0,0,0,0,0,0,49,172,49,0,0,0,0,0,0,+ 176,176,176,176,176,176,176,176,176,176,176,176,159,159,159,176,176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,+ 176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,+ 176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,+ 176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,+ 176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,+ 176,159,159,159,159,159,159,159,159,159,159,159,159,159,159,176,176,21,21,21,21,159,159,159,159,159,159,159,159,159,159,176,+ 176,159,159,159,159,159,159,159,159,159,159,159,159,176,176,176,176,159,159,159,159,159,159,159,159,159,159,159,159,176,176,176,+ 176,159,159,159,159,159,159,159,159,159,159,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,+ 33,216,216,216,33,26,26,26,26,26,26,216,216,216,216,216,26,56,56,56,56,56,56,56,20,20,20,20,20,20,20,33,+ 26,20,20,20,20,20,20,20,20,20,20,20,20,20,20,33,216,20,20,20,20,20,20,20,20,20,20,37,37,37,37,120,+ 26,56,56,56,56,56,56,56,56,20,20,20,20,20,20,33,26,20,20,20,20,20,20,20,20,20,20,20,20,20,20,33,+ 216,20,20,20,20,20,20,20,20,20,37,37,37,37,37,120,26,56,56,56,56,56,56,56,20,20,20,20,20,20,20,33,+ 26,20,20,20,20,20,20,20,20,20,20,20,20,20,20,33,216,20,20,20,20,20,20,20,20,20,37,37,37,37,20,120,+ 26,56,56,56,56,56,56,56,56,56,56,20,20,20,20,33,26,20,20,20,20,20,20,20,20,20,20,20,20,20,20,216,+ 216,20,20,20,20,20,20,20,20,20,37,37,37,37,37,120,26,56,56,56,56,56,56,56,56,20,20,20,20,20,20,216,+ 26,20,20,20,20,20,20,20,20,20,20,20,20,20,20,216,33,216,216,216,216,216,216,216,33,33,33,33,216,216,216,216,+ 61,61,61,204,61,61,61,61,61,61,61,204,61,61,61,61,119,119,119,156,68,119,142,142,119,119,119,204,61,119,119,119,+ 119,61,142,204,61,119,119,119,119,119,119,204,119,61,119,61,125,125,125,204,125,125,125,125,125,125,125,204,125,125,125,125,+ 119,61,61,61,61,61,61,204,61,61,61,61,61,61,61,204,61,119,61,119,142,119,119,204,61,119,119,119,142,119,119,204,+ 61,142,119,142,119,142,119,204,61,142,119,119,119,119,119,204,125,125,125,125,125,125,125,204,125,125,125,125,125,125,125,204,+ 61,61,61,204,61,61,61,68,61,61,61,204,61,61,68,119,119,119,119,204,61,119,119,119,119,119,119,204,61,119,119,119,+ 119,119,119,204,61,119,142,119,142,119,119,204,61,119,119,119,125,125,206,204,125,125,125,125,125,125,125,204,125,125,125,125,+ 61,61,61,61,61,61,61,204,61,68,61,61,61,61,61,156,61,119,119,119,119,119,142,204,61,119,119,119,119,119,119,204,+ 61,142,119,119,119,119,119,204,61,119,119,119,119,119,119,204,125,125,206,125,125,125,125,204,125,125,125,125,125,125,125,204,+ 47,47,47,47,47,47,47,141,141,141,81,47,47,47,47,141,47,128,211,211,211,211,243,243,128,128,211,211,211,211,128,141,+ 47,130,198,128,129,83,243,243,245,245,245,243,243,53,53,141,228,216,24,46,129,83,243,243,130,198,245,243,243,46,49,81,+ 47,130,198,46,129,83,55,19,130,198,53,243,243,216,24,47,141,130,198,46,129,83,55,19,53,130,198,243,243,46,49,141,+ 47,130,198,46,129,83,243,243,53,130,198,243,243,46,49,47,81,81,228,228,228,228,228,81,81,81,228,228,228,228,81,81,+ 47,141,141,141,141,47,47,47,141,141,141,81,47,141,141,141,141,211,211,211,211,211,211,128,128,128,211,211,129,83,128,141,+ 47,211,245,245,130,198,53,53,245,191,191,128,129,83,245,141,81,178,178,145,130,198,245,53,243,216,24,198,129,83,46,81,+ 47,178,178,145,130,198,129,245,243,216,24,198,129,83,46,47,47,178,178,145,130,198,129,243,245,191,191,198,129,83,46,47,+ 47,178,178,145,130,198,129,243,53,191,191,198,129,83,46,47,81,81,81,67,228,228,67,228,81,81,81,228,131,228,228,81,+ 120,120,120,18,125,34,166,166,107,120,120,120,154,107,120,125,120,120,32,34,137,166,39,39,166,34,24,34,125,203,54,18,+ 166,34,34,202,166,39,120,135,152,202,24,34,203,166,166,154,135,203,203,166,216,166,125,34,186,166,203,27,166,111,120,166,+ 120,120,107,166,120,154,154,27,166,135,18,135,166,34,111,107,236,154,34,166,135,24,34,203,135,33,34,135,75,107,202,203,+ 34,34,135,166,239,203,186,166,166,135,18,135,236,34,135,107,34,34,203,166,135,120,166,166,166,166,186,24,34,186,166,33,+ 34,202,166,216,39,135,239,120,111,135,166,203,203,106,33,120,24,107,120,120,135,203,120,32,216,135,125,166,75,33,34,34,+ 107,135,34,34,34,152,120,180,34,135,154,186,166,107,180,154,166,166,135,34,54,186,34,154,125,34,203,166,135,166,166,186,+ 120,120,203,203,203,203,166,34,203,203,120,18,135,34,166,166,216,34,135,120,135,120,166,186,166,26,18,34,125,34,24,186,+ 236,24,203,18,154,34,34,166,166,166,34,125,24,125,27,203,34,236,236,166,202,202,203,166,39,154,107,166,203,203,203,75,+ 123,123,123,123,124,123,124,123,123,170,123,123,58,123,170,123,124,123,170,170,170,36,124,123,170,215,123,123,58,183,215,123,+ 123,170,215,215,215,124,36,170,215,189,250,124,183,215,189,123,41,170,189,31,124,123,36,106,189,189,123,123,220,123,123,123,+ 36,170,189,123,123,123,41,123,36,41,123,208,189,124,123,123,123,123,123,208,170,170,170,170,123,36,170,123,123,123,36,123,+ 123,123,123,123,215,215,215,215,123,170,215,36,170,170,220,123,58,123,183,41,123,189,189,250,250,170,189,183,215,215,189,58,+ 123,170,215,189,123,123,31,189,123,123,58,170,189,189,123,250,36,123,123,58,123,123,123,31,123,41,123,220,189,36,123,123,+ 36,123,123,123,123,123,124,124,123,170,124,58,123,208,123,123,58,170,170,123,123,123,123,123,170,215,123,123,170,215,189,123,+ 123,215,215,31,123,36,124,36,183,215,189,123,123,123,123,123,58,123,189,189,58,183,189,123,170,31,189,189,123,123,124,250,+ 123,123,123,189,123,123,41,123,170,71,189,189,189,123,123,124,123,123,123,124,123,123,123,123,123,123,123,123,123,123,123,58,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,22,191,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,17,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,67,131,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,53,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,52,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,248,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,52,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179,53,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,52,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179,245,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,76,76,76,76,76,76,76,76,76,76,76,76,157,0,+ 0,76,67,122,122,122,122,122,122,122,122,122,122,67,76,0,0,76,122,246,246,246,246,246,246,246,246,246,246,122,76,0,+ 0,76,122,122,122,246,246,122,246,122,122,246,246,122,76,0,0,76,122,246,246,246,246,122,246,246,246,246,122,122,76,0,+ 0,76,246,246,246,246,246,122,122,122,246,246,246,246,76,0,0,76,122,246,246,246,246,246,246,246,246,246,246,122,76,0,+ 0,76,246,246,246,246,122,246,246,246,246,246,246,246,76,0,0,76,122,122,122,246,246,246,122,122,122,246,246,122,76,0,+ 0,76,122,246,246,246,122,122,122,122,246,246,246,122,76,0,0,76,122,246,246,246,246,246,246,246,246,246,246,122,76,0,+ 0,76,246,246,246,122,246,122,122,122,122,122,246,246,76,0,0,76,67,122,122,246,246,122,246,246,122,122,246,67,76,0,+ 0,157,76,76,76,76,76,76,76,76,76,76,76,76,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,103,103,103,103,103,103,103,103,103,103,103,103,103,76,0,0,103,122,122,122,122,246,246,246,246,246,246,246,246,157,0,+ 0,103,246,246,246,246,246,246,246,246,246,246,246,246,157,0,0,103,122,122,122,246,246,122,246,122,122,122,122,122,157,0,+ 0,103,76,76,76,76,76,76,76,76,76,76,76,76,50,0,0,103,81,114,81,81,81,179,179,179,147,81,81,81,157,0,+ 0,103,122,122,122,122,122,122,122,122,122,122,122,122,157,0,0,103,246,246,246,246,122,246,246,246,246,246,246,246,157,0,+ 0,103,122,122,122,246,246,246,122,122,122,246,246,122,157,0,0,103,246,246,246,246,122,122,122,122,246,246,246,122,157,0,+ 0,103,246,246,246,246,246,246,246,246,246,246,246,122,157,0,0,103,246,246,246,122,246,122,122,122,122,122,246,246,157,0,+ 0,103,122,122,122,246,246,122,246,246,122,122,246,67,157,0,0,157,157,157,157,157,157,157,157,157,157,157,157,157,50,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,103,103,103,103,103,103,103,103,103,103,103,103,103,76,0,0,103,246,122,122,122,246,122,122,246,246,246,246,246,157,0,+ 0,103,246,246,246,246,122,221,221,122,246,246,246,246,157,0,0,103,122,122,122,246,147,26,111,221,122,122,122,122,157,0,+ 0,103,76,76,76,76,157,33,154,157,76,76,76,76,50,0,0,103,81,114,81,81,196,111,54,248,147,81,81,81,157,0,+ 0,103,122,122,122,122,147,125,54,147,122,122,122,122,157,0,0,103,246,246,246,246,122,246,246,246,246,246,246,246,157,0,+ 0,103,122,122,122,246,246,246,122,122,122,246,246,122,157,0,0,103,246,246,246,246,122,122,122,122,246,246,246,122,157,0,+ 0,103,246,246,246,246,246,246,246,246,246,246,246,122,157,0,0,103,246,246,246,122,246,122,122,122,122,122,246,246,157,0,+ 0,103,246,122,122,246,246,122,246,246,122,122,246,67,157,0,0,157,157,157,157,157,157,157,157,157,157,157,157,157,50,0,+ 34,54,54,54,54,34,125,125,107,125,34,54,54,54,54,34,34,34,125,125,125,125,125,125,54,125,125,125,107,34,34,54,+ 34,107,54,54,84,54,54,54,125,54,34,34,244,84,34,34,34,125,34,34,34,107,34,244,84,34,54,54,54,54,54,34,+ 34,125,125,54,54,54,54,54,54,54,125,125,125,125,125,107,54,54,34,34,34,17,244,54,34,107,17,244,54,54,107,34,+ 125,125,34,17,244,84,84,84,34,34,84,84,125,125,125,107,34,34,34,54,54,54,54,54,54,107,54,54,54,54,34,34,+ 34,244,84,107,125,54,34,34,17,244,125,125,125,125,125,125,34,54,54,54,54,54,54,244,84,84,84,54,54,54,125,34,+ 34,34,125,54,84,125,125,54,107,54,125,125,125,34,34,34,107,34,34,34,54,34,34,34,125,125,34,244,84,125,125,107,+ 34,54,54,54,54,54,54,54,244,17,244,84,84,84,54,34,34,125,54,244,84,34,34,54,54,84,84,54,34,34,125,125,+ 34,34,34,54,54,54,54,54,34,34,125,125,34,54,54,34,54,54,54,54,107,125,125,34,34,34,34,54,54,54,34,34,+ 187,187,187,187,187,187,187,187,187,187,187,187,46,46,46,187,187,84,84,84,84,84,84,84,84,84,84,84,84,84,84,187,+ 187,84,84,84,84,84,84,84,84,84,84,84,84,84,139,187,187,84,84,84,84,84,84,84,84,84,84,84,84,84,84,187,+ 187,84,84,84,84,84,84,84,84,84,84,84,84,84,84,187,187,84,84,84,84,84,84,84,84,84,84,84,84,84,84,187,+ 187,84,84,84,84,84,84,84,84,84,84,84,84,84,84,187,187,84,84,84,84,84,84,84,84,84,84,84,84,84,84,187,+ 187,84,84,84,84,84,84,84,84,84,84,84,84,139,139,187,187,84,84,84,84,84,84,84,84,84,84,84,84,84,84,187,+ 187,84,244,244,84,84,84,84,84,84,84,84,84,84,84,187,187,244,244,244,244,244,244,84,84,84,84,84,84,139,46,187,+ 187,244,84,84,84,244,244,84,84,84,84,139,46,187,187,187,187,84,84,84,84,84,84,84,84,84,139,139,46,46,46,187,+ 187,84,84,84,84,84,84,84,84,84,139,46,187,187,187,187,187,187,187,187,187,187,187,187,187,187,187,187,187,187,187,187,+ 162,162,173,162,162,162,173,173,173,162,162,173,169,162,169,169,162,47,47,128,68,68,68,68,68,68,68,68,157,47,47,162,+ 173,47,211,68,68,68,68,68,68,68,68,68,68,128,47,162,162,128,68,88,94,131,131,131,94,94,131,88,131,68,128,173,+ 201,68,68,131,61,61,88,68,68,94,61,68,131,68,68,162,173,68,68,131,68,68,245,114,68,88,114,61,88,68,68,162,+ 173,68,68,88,88,248,88,88,94,131,88,94,88,68,68,173,173,68,68,222,68,68,131,68,68,88,68,68,131,68,68,169,+ 162,68,61,131,68,68,88,68,68,131,68,68,131,68,68,162,162,68,119,94,88,248,131,131,94,131,88,88,131,68,68,162,+ 162,68,68,94,61,68,88,68,114,245,68,68,131,68,68,162,173,68,68,131,61,68,88,68,68,88,61,68,131,68,68,162,+ 173,128,68,131,131,94,88,131,131,131,131,131,88,68,128,173,173,47,211,68,68,68,68,68,68,68,68,68,68,128,47,173,+ 201,47,47,128,68,68,68,68,68,68,68,68,128,47,47,162,162,169,173,169,162,94,245,94,94,94,94,162,173,173,173,162,+ 162,141,141,141,141,157,68,94,94,68,157,47,47,47,47,162,162,47,47,81,47,47,211,94,94,211,141,47,141,47,47,162,+ 162,47,141,141,114,141,47,128,157,47,47,47,81,47,47,162,162,228,228,131,131,81,81,169,169,81,248,228,228,228,81,162,+ 162,141,141,114,141,47,47,211,157,141,114,81,47,47,47,162,162,141,81,184,47,184,47,211,128,47,68,47,141,141,141,162,+ 162,47,47,184,81,184,81,211,211,141,131,47,47,47,47,162,162,81,228,228,37,228,228,169,169,81,228,248,228,228,81,162,+ 162,47,47,37,81,37,179,157,157,47,47,47,47,47,47,162,162,141,141,216,179,216,81,128,211,141,141,81,47,141,141,162,+ 162,47,47,47,47,47,141,162,211,141,47,47,68,47,47,162,162,228,81,81,228,228,228,201,169,81,81,81,248,228,228,162,+ 162,47,47,68,47,141,47,162,211,141,141,141,68,81,47,162,162,141,81,68,47,47,47,211,157,47,47,141,141,141,141,162,+ 162,47,141,114,141,47,47,211,157,47,141,47,47,47,47,162,169,81,81,67,228,228,67,162,169,81,81,228,131,228,228,169,+ 162,141,141,141,141,157,68,94,94,68,157,47,47,47,47,162,162,47,47,81,47,47,211,94,94,211,141,47,141,47,47,162,+ 162,47,141,141,114,141,47,128,157,47,47,47,81,47,47,162,162,228,228,131,131,81,81,169,169,81,248,184,184,184,81,162,+ 162,141,141,114,141,47,47,211,157,141,114,184,81,184,81,162,162,141,81,184,47,47,47,211,128,47,68,184,184,184,179,162,+ 162,47,47,184,47,47,47,211,211,141,131,37,37,216,81,162,162,81,228,184,228,228,228,169,169,81,228,17,37,216,103,162,+ 162,47,47,184,216,81,141,157,157,47,47,81,37,216,81,162,162,141,216,37,216,81,47,128,211,141,141,81,17,216,179,162,+ 162,47,81,81,216,81,141,162,211,141,47,47,37,216,81,162,162,228,81,81,248,248,228,201,169,81,81,81,128,216,248,162,+ 162,47,47,68,47,141,47,162,211,141,141,141,68,17,81,162,162,141,81,68,47,47,47,211,157,47,47,141,141,179,179,162,+ 162,47,141,114,141,47,47,211,157,47,141,47,47,47,47,162,169,81,81,67,228,228,67,162,169,81,81,228,131,228,228,169,+ 25,77,77,77,195,195,65,65,98,19,25,77,65,98,25,57,25,75,217,107,55,217,54,54,137,107,107,107,217,106,27,57,+ 98,186,236,27,107,125,125,236,107,186,154,34,95,236,152,195,65,152,95,32,180,107,24,154,95,32,217,95,75,24,75,98,+ 25,54,236,75,125,236,236,95,75,24,180,180,54,154,32,98,99,217,34,32,34,34,236,217,125,125,34,154,236,107,25,98,+ 57,107,34,32,54,217,107,236,32,154,125,34,34,154,107,31,195,95,95,107,24,125,75,107,75,95,217,34,154,217,186,25,+ 195,106,32,24,18,32,32,180,125,154,54,107,95,137,236,19,98,186,125,125,34,95,125,32,180,34,34,75,75,180,152,195,+ 65,152,236,236,236,27,125,154,236,236,34,217,75,75,75,98,25,54,24,236,54,217,236,236,34,236,217,107,125,75,32,98,+ 99,217,217,217,217,217,32,236,95,217,125,24,236,236,25,98,57,107,54,180,24,180,75,217,32,18,24,236,34,236,107,31,+ 25,75,217,107,55,217,54,54,137,107,107,107,217,106,27,57,25,77,77,77,195,195,65,65,98,19,25,77,65,98,25,57,+ 25,77,77,77,195,195,65,65,98,19,25,77,65,98,25,57,25,75,217,107,55,217,54,54,137,107,107,107,217,106,27,57,+ 98,186,236,27,107,125,125,236,107,186,154,34,95,236,152,195,65,152,95,32,180,107,24,154,95,32,217,95,75,24,75,98,+ 25,54,236,75,125,236,236,95,75,24,180,180,54,154,32,98,99,217,34,32,34,34,236,217,125,125,34,154,236,107,25,98,+ 57,107,34,32,54,217,107,236,32,154,125,34,34,154,107,31,195,95,95,107,24,125,75,107,75,95,217,34,154,217,186,25,+ 195,106,236,24,18,236,54,180,125,154,236,32,75,95,236,19,137,125,26,26,26,26,26,26,33,26,26,26,26,26,125,19,+ 137,236,120,120,120,120,120,120,18,120,120,120,18,111,236,195,137,34,111,111,111,18,111,120,111,111,18,18,18,18,54,57,+ 137,34,120,18,18,18,18,18,18,18,120,120,120,120,34,65,137,54,111,111,111,18,18,18,111,18,111,111,18,18,32,57,+ 137,34,236,236,236,54,34,34,236,236,236,236,34,34,34,65,19,57,57,195,195,195,195,195,195,65,195,195,195,195,57,57,+ 25,77,77,77,195,195,65,65,98,19,25,77,65,98,25,57,25,75,217,107,55,217,54,54,137,107,107,107,217,106,27,57,+ 98,186,236,27,107,125,125,236,107,186,154,34,95,236,152,195,65,152,95,32,32,98,77,57,31,98,31,30,75,24,75,98,+ 25,54,236,137,77,16,16,16,16,16,16,25,186,154,32,98,99,217,34,98,16,16,16,16,16,16,16,16,18,107,25,98,+ 57,107,34,98,16,41,36,123,36,123,250,16,111,154,107,31,195,95,95,98,32,216,111,111,111,111,111,75,111,217,186,25,+ 195,106,236,154,95,152,152,95,217,27,152,137,236,95,236,19,137,125,26,26,26,26,26,26,33,26,26,26,26,26,125,19,+ 137,236,120,120,120,34,30,30,19,30,34,120,18,111,236,195,137,34,111,236,19,19,16,16,16,16,19,19,54,18,54,57,+ 137,34,34,19,16,16,16,16,16,16,16,16,30,120,34,65,137,54,19,16,123,71,71,71,71,250,71,123,16,120,32,57,+ 137,34,19,123,98,98,99,99,98,98,98,98,123,216,34,65,19,107,57,98,98,98,98,98,98,98,98,98,98,111,107,57,+ 25,77,77,77,195,195,65,65,98,19,25,77,65,98,25,57,25,75,217,107,55,217,54,54,137,107,107,107,217,106,27,57,+ 98,186,236,27,107,125,125,236,107,186,154,34,95,236,152,195,65,152,95,32,32,98,77,57,31,98,31,30,75,24,75,98,+ 25,54,236,137,77,16,16,16,16,16,16,25,186,154,32,98,99,217,34,98,16,16,16,16,16,16,16,16,18,107,25,98,+ 57,107,34,98,16,41,36,123,36,123,250,16,111,154,107,31,195,95,95,98,32,216,111,111,111,111,111,75,111,217,186,25,+ 195,106,236,154,95,24,24,180,125,125,24,137,236,95,236,19,137,125,26,37,37,20,56,56,56,56,20,37,37,26,125,19,+ 137,236,26,20,56,20,30,30,19,30,20,56,37,26,236,195,137,111,37,20,19,19,232,232,232,232,19,19,20,37,111,57,+ 24,26,20,19,232,232,191,232,191,232,232,232,30,56,111,65,24,20,19,232,191,191,191,232,22,191,232,232,232,56,18,57,+ 24,20,19,191,22,22,22,191,191,22,22,191,191,56,111,65,34,37,57,232,191,232,191,22,232,191,22,191,232,56,180,57,+ 34,54,54,54,54,34,125,125,107,125,34,54,54,54,54,34,34,34,125,125,125,125,125,125,54,125,125,125,107,34,34,54,+ 34,107,54,54,232,54,54,54,125,54,34,34,232,232,34,34,34,125,34,34,34,107,34,232,232,34,54,54,54,54,54,34,+ 34,125,125,54,54,54,54,54,54,54,125,125,125,125,125,107,54,54,34,34,34,232,232,54,34,107,232,232,54,54,107,34,+ 125,125,34,232,232,232,232,232,34,34,232,232,125,125,125,107,34,34,34,54,54,54,54,54,54,107,54,54,54,54,34,34,+ 34,232,232,107,125,54,34,34,232,232,125,125,125,125,125,125,34,54,54,54,54,54,54,232,232,232,232,54,54,54,125,34,+ 34,34,125,54,232,125,125,54,107,54,125,125,125,34,34,34,107,34,34,34,54,34,34,34,125,125,34,232,232,125,125,107,+ 34,54,54,54,54,54,54,54,232,232,232,232,232,232,54,34,34,125,54,232,232,34,34,54,54,232,232,54,34,34,125,125,+ 34,34,34,54,54,54,54,54,34,34,125,125,34,54,54,34,54,54,54,54,107,125,125,34,34,34,34,54,54,54,34,34,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,49,49,49,49,49,49,49,49,49,49,49,49,49,0,+ 0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,+ 0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,+ 0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,+ 0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,+ 0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,+ 0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,0,49,164,164,164,164,164,164,164,164,164,164,164,164,49,0,+ 0,49,49,49,49,49,49,49,49,49,49,49,49,49,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,49,16,163,49,163,16,49,49,49,16,163,49,49,0,+ 0,49,49,60,49,49,49,60,49,49,49,49,49,49,49,0,0,16,60,49,49,49,49,16,49,49,49,16,49,49,49,0,+ 0,163,49,49,49,49,49,49,49,49,49,49,49,49,49,0,0,49,49,49,16,49,49,49,49,49,49,49,49,60,16,0,+ 0,163,49,49,49,49,49,49,49,16,49,49,49,49,49,0,0,16,60,49,49,49,49,49,49,49,49,49,49,49,163,0,+ 0,49,49,49,16,49,49,49,49,49,49,49,16,49,16,0,0,49,49,49,49,49,49,16,49,49,49,49,49,49,49,0,+ 0,16,60,49,49,49,49,49,49,49,49,49,49,49,49,0,0,49,49,49,49,49,49,49,49,16,49,16,49,49,16,0,+ 0,49,49,49,49,16,49,49,49,49,49,49,49,49,49,0,0,49,60,49,49,49,60,49,49,60,49,49,60,60,49,0,+ 0,49,16,163,49,49,16,49,163,16,49,49,16,163,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,172,49,49,49,49,49,49,172,49,49,49,49,49,49,0,0,172,49,49,49,49,60,16,172,49,49,49,49,49,49,0,+ 16,16,49,49,49,49,49,172,172,49,49,49,49,60,16,16,0,163,49,49,49,49,49,49,16,60,49,49,49,49,49,0,+ 0,172,49,49,49,49,49,49,163,49,49,49,49,49,49,0,0,172,49,49,49,49,49,49,172,49,49,49,49,49,49,0,+ 16,16,49,49,49,49,49,49,172,49,49,49,49,60,16,16,0,172,49,49,49,49,49,49,16,60,49,49,49,49,172,0,+ 0,172,49,49,49,49,49,49,163,49,49,49,49,49,49,0,0,172,49,49,49,49,60,16,172,49,49,49,49,49,49,0,+ 16,172,49,49,49,49,49,172,172,49,49,49,49,60,16,16,0,172,49,49,49,49,49,49,172,49,49,49,49,49,172,0,+ 16,16,49,49,49,49,49,49,16,60,49,49,49,49,49,16,0,163,49,49,49,49,49,49,163,49,49,49,49,49,49,0,+ 0,172,49,49,49,49,60,16,172,49,49,49,49,49,49,0,0,172,49,49,49,49,49,172,172,49,49,49,49,49,49,0,+ 0,116,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,0,0,193,243,0,0,116,243,0,+ 0,193,243,193,0,193,243,0,0,193,243,243,0,243,96,0,0,193,243,243,0,193,243,193,0,193,243,0,0,193,243,0,+ 0,193,243,0,0,116,243,243,0,193,243,0,0,193,243,0,0,193,243,0,0,243,96,0,0,116,243,0,0,193,243,0,+ 0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,193,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,243,+ 193,116,243,0,0,193,243,0,0,193,243,0,0,193,243,0,243,243,96,0,0,193,243,0,0,193,243,0,0,116,243,0,+ 0,193,243,0,243,116,243,0,193,193,243,0,0,243,96,0,0,193,243,0,0,243,96,0,243,193,243,0,0,193,243,0,+ 0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,116,243,0,243,193,243,0,+ 0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,+ 0,116,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,0,0,193,243,0,0,116,243,0,+ 0,193,243,193,0,193,243,0,0,193,243,243,0,243,96,0,0,193,243,243,0,193,243,193,0,193,243,0,0,193,243,0,+ 0,193,243,0,0,116,243,243,0,193,243,0,0,193,243,0,0,193,243,0,0,243,96,0,0,116,243,0,0,193,243,0,+ 0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,193,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,243,+ 193,116,243,0,0,193,243,0,0,193,243,0,0,193,243,0,243,243,96,0,0,193,243,0,0,193,243,0,0,116,243,0,+ 0,193,243,0,243,116,243,0,193,193,243,0,0,243,96,0,0,193,243,0,0,243,96,0,243,193,243,0,0,193,243,0,+ 0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,116,243,0,243,193,243,0,+ 0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,+ 0,116,39,0,0,193,135,0,0,193,135,0,0,193,135,0,0,135,174,0,0,193,135,0,0,193,135,0,0,116,39,0,+ 0,193,135,193,0,193,135,0,0,193,135,243,0,135,174,0,0,193,135,243,0,193,135,193,0,193,135,0,0,193,135,0,+ 0,193,135,0,0,116,39,243,0,193,135,0,0,193,135,0,0,193,135,0,0,135,174,0,0,116,39,0,0,193,135,0,+ 0,193,135,0,0,193,135,0,0,135,174,0,0,193,135,193,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,243,+ 193,116,39,0,0,193,135,0,0,193,135,0,0,193,135,0,243,135,174,0,0,193,135,0,0,193,135,0,0,116,39,0,+ 0,193,135,0,243,116,39,0,193,193,135,0,0,135,174,0,0,193,135,0,0,135,174,0,243,193,135,0,0,193,135,0,+ 0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,116,39,0,243,193,135,0,+ 0,193,135,0,0,193,135,0,0,135,174,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,+ 0,116,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,135,174,0,0,193,135,0,0,193,135,0,0,116,135,0,+ 0,193,135,193,0,193,135,0,0,193,135,243,0,135,174,0,0,193,135,243,0,193,135,193,0,193,135,0,0,193,135,0,+ 0,193,135,0,0,116,135,243,0,193,135,0,0,193,135,0,0,193,135,0,0,135,174,0,0,116,135,0,0,193,135,0,+ 0,193,135,0,0,193,135,0,0,135,174,0,0,193,135,193,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,243,+ 193,116,135,0,0,193,135,0,0,193,135,0,0,193,135,0,243,135,174,0,0,193,135,0,0,193,135,0,0,116,135,0,+ 0,193,135,0,243,116,135,0,193,193,135,0,0,135,174,0,0,193,135,0,0,135,174,0,243,193,135,0,0,193,135,0,+ 0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,116,135,0,243,193,135,0,+ 0,193,135,0,0,193,135,0,0,135,174,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,0,193,135,0,+ 18,180,18,18,125,18,180,180,180,180,180,18,24,125,125,95,18,24,24,24,236,24,24,24,54,34,34,236,34,34,236,107,+ 125,236,236,236,24,236,34,34,34,24,34,34,34,54,75,95,180,54,34,24,34,34,236,236,236,236,236,34,34,24,32,95,+ 180,236,236,236,236,236,24,24,24,24,24,54,34,24,54,95,180,236,236,236,34,54,34,34,236,236,54,34,236,236,75,107,+ 24,54,236,54,32,32,32,32,54,54,32,107,75,54,54,107,95,95,95,95,95,95,95,95,95,95,107,107,95,95,95,95,+ 180,180,180,180,18,18,180,95,18,18,18,24,180,18,125,18,236,236,34,54,34,34,32,95,180,24,34,34,236,236,236,236,+ 24,24,236,54,236,24,54,95,180,34,34,34,34,24,236,236,34,34,34,24,24,34,32,95,18,24,54,54,34,34,34,236,+ 236,236,236,24,24,236,75,95,180,236,34,34,236,236,236,236,34,34,236,236,236,54,75,107,180,24,24,34,24,236,24,54,+ 75,75,75,32,75,54,236,107,24,75,236,54,32,32,75,75,95,95,95,95,95,95,95,95,95,95,107,95,95,95,95,95,+ 250,250,250,41,41,41,41,250,250,41,115,115,41,41,250,250,250,250,189,31,189,250,250,250,41,41,41,31,41,250,250,189,+ 41,41,31,189,250,250,41,41,41,41,189,189,250,41,250,250,41,189,189,189,250,41,115,41,31,31,189,250,250,250,189,250,+ 41,250,41,250,41,41,41,99,189,189,189,250,31,189,250,250,41,41,41,41,250,31,250,250,189,250,250,99,189,189,250,41,+ 115,41,250,250,31,189,41,250,250,41,250,189,189,250,250,41,41,41,250,189,250,250,250,41,250,250,189,189,250,41,41,41,+ 41,250,189,250,250,41,41,250,250,41,41,250,41,115,115,115,41,41,250,41,41,41,189,41,115,115,41,41,41,41,115,115,+ 115,41,41,41,41,189,41,115,41,41,99,31,189,250,41,41,41,250,41,41,250,41,41,41,250,31,189,189,250,250,41,115,+ 250,41,41,250,189,41,250,31,189,31,189,250,250,41,41,41,41,41,250,31,189,250,250,250,189,250,250,250,250,41,41,250,+ 41,250,250,189,250,41,41,41,250,250,41,250,41,41,250,250,250,250,189,41,41,41,41,41,41,115,115,41,41,41,250,41,+ 154,214,214,214,214,214,214,214,214,214,214,214,214,214,101,214,214,214,214,226,101,214,214,214,101,214,70,214,214,214,214,226,+ 214,226,226,214,214,214,214,214,214,214,214,226,101,214,214,226,101,214,214,214,214,214,214,214,214,214,214,214,214,214,214,101,+ 214,214,226,214,226,226,214,226,226,101,214,214,214,101,214,101,101,214,214,70,214,226,214,214,214,226,214,101,214,214,214,101,+ 101,214,101,214,101,214,214,214,214,214,226,70,214,214,214,214,214,214,214,214,214,214,226,226,214,214,214,214,214,214,214,214,+ 214,214,226,226,214,214,226,214,226,70,101,214,214,214,214,214,101,180,214,214,214,214,226,214,214,214,214,226,214,214,101,226,+ 214,214,138,214,101,226,214,214,226,226,226,214,214,214,214,214,101,214,226,101,214,214,214,214,214,214,214,70,214,214,214,101,+ 226,214,214,226,214,214,214,101,101,214,214,214,214,214,214,214,70,214,101,180,214,214,214,226,214,226,214,214,214,214,214,214,+ 214,214,214,214,214,214,214,214,180,214,101,214,214,101,214,214,214,214,214,101,70,214,101,226,214,226,214,214,214,214,214,101,+ 17,17,17,17,17,17,17,17,17,17,17,17,56,56,17,17,17,17,17,17,17,17,17,56,56,17,17,17,56,17,17,56,+ 17,17,17,56,56,17,17,56,17,17,17,56,17,17,17,17,17,56,56,56,17,17,56,17,17,17,17,56,17,17,17,56,+ 17,17,17,17,17,17,56,17,17,17,56,17,17,17,17,56,17,17,17,17,56,17,17,17,56,17,56,56,17,17,17,56,+ 17,56,56,56,17,17,56,17,56,56,56,17,17,17,56,56,17,17,17,17,17,17,17,56,17,17,56,56,17,17,17,56,+ 17,17,17,17,56,56,56,56,17,17,17,56,17,17,17,56,17,17,17,17,17,17,17,17,17,17,17,56,17,56,56,56,+ 17,17,17,56,17,17,17,17,17,17,56,17,17,17,17,56,17,56,56,17,17,17,56,56,56,56,56,17,17,17,56,56,+ 17,17,17,56,56,56,17,17,17,17,17,56,56,56,56,56,17,17,17,56,17,17,17,56,17,17,17,56,17,17,17,17,+ 17,17,17,56,56,56,56,17,17,17,17,17,17,17,17,56,17,17,17,17,17,56,56,56,56,56,17,17,56,17,56,17,+ 62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,+ 62,62,62,17,62,62,62,62,62,62,62,62,62,62,62,62,62,62,17,62,62,62,62,62,62,62,62,62,62,62,62,62,+ 62,17,62,62,62,62,62,62,62,17,62,62,62,62,62,62,62,62,62,62,62,62,62,62,17,62,62,62,62,62,62,62,+ 62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,+ 62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,17,62,62,62,62,62,62,62,+ 62,62,62,62,62,62,62,17,62,62,62,62,62,17,62,62,62,62,62,62,62,62,62,62,62,62,62,62,17,62,62,62,+ 62,62,62,62,62,62,62,62,62,62,62,17,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,+ 62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,+ 17,17,17,17,17,17,17,17,17,17,17,17,56,56,17,17,17,17,17,17,17,222,17,56,56,17,17,17,56,17,17,56,+ 17,222,17,56,56,222,17,222,17,17,17,56,222,17,17,222,222,75,222,222,17,222,222,222,17,222,17,222,114,222,222,114,+ 68,114,68,47,222,68,114,114,222,222,222,75,114,68,222,114,114,222,68,68,114,68,222,222,222,114,114,222,114,114,114,47,+ 47,222,114,114,154,114,114,47,47,114,47,47,114,68,114,68,47,114,47,47,68,68,114,114,68,222,68,68,114,114,68,68,+ 68,114,114,68,114,68,114,222,114,68,68,114,114,114,222,114,68,68,222,114,114,222,222,114,114,114,114,114,47,47,114,68,+ 68,68,114,47,47,114,47,68,222,47,47,114,68,68,154,114,68,114,114,68,68,47,114,68,75,68,68,114,222,68,114,222,+ 114,222,68,114,68,68,47,114,114,114,114,114,114,114,47,47,114,68,114,114,222,114,68,68,114,222,47,222,114,47,68,68,+ 68,114,222,47,114,222,114,222,114,114,114,222,114,114,68,68,68,114,47,68,68,114,154,68,68,68,114,114,68,68,114,222,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,0,0,0,0,+ 0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,+ 0,0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,1,1,1,0,0,0,0,+ 0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1,1,0,0,+ 0,0,0,0,1,1,1,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,+ 0,0,0,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,+ 0,0,0,0,0,0,1,1,0,1,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,+ 0,0,0,0,1,1,1,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,+ 0,0,1,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,+ 0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,+ 0,0,0,0,1,0,1,1,0,1,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,+ 0,0,0,0,1,1,1,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,+ 0,0,1,1,0,0,0,1,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,+ 0,0,1,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,+ 0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,+ 0,0,0,1,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,1,0,0,+ 0,0,1,1,1,0,1,1,0,1,1,0,0,1,1,0,0,0,0,0,1,0,1,0,0,1,1,0,1,1,1,1,+ 0,0,0,0,1,1,1,0,0,1,1,1,1,0,0,1,0,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,+ 0,0,1,1,0,1,0,1,1,1,0,1,0,0,0,0,0,0,1,0,1,1,0,0,1,0,0,1,1,0,0,0,+ 0,0,1,0,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,+ 0,1,0,0,1,1,1,1,1,0,1,1,0,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,0,0,0,0,+ 0,0,1,1,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,+ 0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,0,1,1,1,1,0,0,0,1,0,1,0,0,0,+ 0,1,0,1,1,1,1,0,1,1,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1,1,0,0,0,1,0,0,+ 0,1,1,1,1,0,1,1,0,1,1,0,0,1,1,0,0,1,0,0,1,0,1,0,0,1,1,0,1,1,1,1,+ 0,0,0,0,1,1,1,0,0,1,1,1,1,0,0,1,0,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,+ 0,0,1,1,0,1,0,1,1,1,0,1,0,0,0,0,0,0,1,0,1,1,0,0,1,0,0,1,1,0,1,0,+ 1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1,1,0,1,0,0,+ 0,1,0,0,1,1,1,1,1,0,1,1,0,1,0,0,0,1,1,1,1,0,0,0,1,1,1,1,0,0,0,0,+ 0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,0,1,1,0,0,1,0,0,0,1,1,1,0,+ 0,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,1,1,1,1,0,0,0,1,0,1,0,0,0,+ 0,1,0,1,1,1,1,0,1,1,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1,1,0,0,0,1,0,0,+ 1,1,1,1,1,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,1,0,1,0,0,1,1,0,1,1,1,1,+ 0,0,0,0,1,1,1,0,0,1,1,1,1,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,0,0,+ 1,1,1,1,0,1,0,1,1,1,0,1,0,0,0,1,0,0,1,0,1,1,0,0,1,0,0,1,1,0,1,1,+ 1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1,1,0,1,0,0,+ 0,1,0,0,1,1,1,1,1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,0,1,1,1,1,0,0,1,1,+ 0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,0,1,1,0,0,1,0,0,0,1,1,1,0,+};+const uint8_t shade_cm[N_SHADE][256] = {+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,183,42,168,115,115,207,38,42,168,115,86,158,200,168,168,+ 86,115,42,115,38,115,16,86,182,38,16,16,86,200,223,42,86,182,168,230,86,168,86,86,115,168,199,42,199,86,42,86,+ 16,168,42,86,86,38,115,168,115,38,16,86,168,168,168,42,38,86,86,182,115,182,16,38,168,38,86,168,223,38,168,86,+ 86,199,168,168,16,42,38,168,86,86,168,86,168,16,86,42,200,158,86,16,158,168,38,86,42,42,86,38,199,42,38,182,+ 168,182,168,168,74,38,42,86,168,86,42,42,182,42,168,168,182,168,42,86,86,86,38,38,86,115,42,168,42,168,16,190,+ 200,86,38,38,115,38,86,16,16,38,38,38,38,38,86,168,158,158,168,86,42,115,16,16,38,38,86,182,168,168,16,207,+ 223,158,16,168,86,38,168,16,16,38,168,86,42,38,42,16,43,115,42,168,168,38,42,168,115,86,16,38,43,168,168,16,+ 86,42,42,86,86,38,16,16,168,86,42,38,86,38,38,86,86,168,168,86,115,168,200,43,168,86,38,168,42,168,86,199,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,183,115,86,183,183,218,38,42,168,115,86,190,200,86,168,+ 42,115,42,115,38,115,16,158,230,38,16,16,42,200,223,74,86,100,168,230,86,168,42,86,183,168,199,42,199,200,247,86,+ 16,168,42,86,86,38,115,168,115,38,16,86,168,168,168,42,38,86,86,182,115,182,16,38,168,38,86,168,223,38,168,86,+ 86,199,168,168,16,42,38,168,86,42,86,86,168,16,86,115,200,158,86,16,158,168,38,86,115,42,200,38,199,42,168,86,+ 168,182,168,168,74,168,115,86,86,86,42,115,182,42,168,168,182,168,115,86,86,86,38,168,86,115,42,168,115,168,16,218,+ 200,86,38,38,115,38,86,38,16,38,38,38,38,38,86,86,74,190,207,86,42,115,16,16,168,38,86,182,168,168,16,207,+ 223,158,16,168,86,38,168,16,16,38,86,86,115,168,42,16,43,115,42,168,168,38,115,168,115,86,16,38,43,168,86,16,+ 42,42,115,42,86,38,16,38,168,86,74,38,42,38,168,86,86,168,182,86,183,168,200,43,168,86,168,168,115,86,86,199,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,183,115,86,183,167,218,207,42,168,183,86,190,200,86,168,+ 42,115,42,115,38,183,16,158,230,38,16,16,42,200,223,74,86,100,168,194,42,168,42,86,183,168,199,115,182,200,247,86,+ 16,168,42,86,42,38,115,168,115,38,16,42,168,168,168,74,38,86,86,182,115,182,16,38,168,38,86,86,223,38,168,86,+ 86,199,168,168,16,115,38,86,86,42,86,42,168,16,86,115,200,158,86,16,190,168,38,86,115,74,200,168,199,115,168,86,+ 168,223,200,86,115,168,115,86,86,86,115,115,182,74,86,168,223,168,115,86,86,42,38,168,86,183,42,86,115,168,16,218,+ 200,42,38,38,183,38,86,38,16,38,38,38,38,38,86,86,218,190,200,86,115,183,16,38,168,38,86,100,168,168,16,207,+ 42,158,43,168,86,38,168,16,16,38,86,86,115,168,42,16,199,183,42,168,168,38,115,182,115,86,16,168,43,86,86,16,+ 42,115,115,42,86,38,16,38,168,86,115,38,42,38,168,86,86,86,182,158,183,168,200,43,168,86,168,182,115,86,86,199,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,170,115,86,183,165,218,207,115,86,183,86,190,74,86,168,+ 42,183,115,183,38,183,16,158,230,38,16,16,42,200,223,74,42,100,168,194,74,168,42,86,183,86,168,115,182,200,247,42,+ 16,168,115,158,74,38,183,168,183,38,16,42,168,86,182,115,38,86,86,223,183,182,16,168,86,38,86,86,42,38,168,42,+ 86,182,168,168,16,115,38,86,42,42,86,42,86,38,86,115,74,74,86,16,190,168,38,200,183,115,200,168,199,115,168,86,+ 168,223,200,86,218,168,115,158,86,86,115,115,182,74,86,168,223,207,183,200,42,42,38,168,86,183,115,86,183,168,16,167,+ 200,42,168,38,183,38,86,38,16,168,38,38,38,38,86,86,218,190,200,86,115,183,16,38,168,38,86,100,168,168,16,207,+ 247,158,43,168,86,38,168,16,16,38,86,86,115,168,115,16,199,183,115,168,168,38,115,182,183,42,38,168,43,86,86,16,+ 115,115,183,115,86,38,16,38,168,42,115,38,42,38,168,86,158,86,182,158,183,168,74,43,86,86,168,86,115,86,86,199,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,170,183,86,170,165,150,207,115,86,183,42,185,109,86,168,+ 115,183,115,183,168,170,16,158,230,168,16,16,74,200,115,218,42,100,168,194,74,86,115,86,170,86,168,115,182,74,220,42,+ 16,86,247,74,74,38,183,168,183,168,16,42,86,86,86,183,168,42,86,223,183,182,16,168,86,168,86,86,42,38,86,42,+ 86,182,168,168,16,183,38,86,42,115,86,42,86,38,158,183,218,218,42,16,190,86,38,200,183,115,200,168,199,115,168,42,+ 168,223,200,86,167,168,183,158,86,86,115,115,182,74,86,168,194,207,183,200,42,42,38,86,42,183,115,86,183,168,16,165,+ 200,74,168,199,183,38,42,38,16,168,38,38,38,38,86,86,167,190,200,86,115,183,16,38,168,38,42,100,168,168,38,207,+ 247,190,43,86,86,38,168,16,16,38,86,86,183,168,115,16,199,170,115,168,168,38,183,182,183,42,38,168,199,200,86,43,+ 115,183,183,115,42,168,43,38,64,42,183,168,115,38,168,158,158,86,182,158,170,168,74,43,86,200,168,86,183,86,86,199,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41,183,86,170,197,150,207,183,86,170,42,185,109,86,168,+ 115,170,115,165,168,170,16,190,194,168,16,16,74,200,115,218,42,100,168,194,74,86,115,42,170,86,168,183,100,74,220,115,+ 16,86,247,74,74,38,170,168,183,168,38,115,86,86,86,183,168,74,86,223,170,230,16,168,86,168,42,86,247,38,86,42,+ 158,182,168,86,16,183,38,86,42,115,42,115,86,38,158,183,109,218,74,38,190,86,38,200,183,183,74,168,168,183,168,42,+ 168,223,200,86,167,168,183,158,86,42,183,220,223,218,200,86,194,207,183,200,42,115,38,86,42,170,115,86,183,168,16,165,+ 109,74,168,199,165,38,42,38,16,168,38,38,86,38,158,86,167,185,200,158,183,170,16,38,168,38,42,100,168,168,38,218,+ 247,190,43,86,200,38,168,16,16,38,86,42,183,168,115,16,199,170,115,168,168,38,183,182,183,42,38,168,199,200,86,43,+ 115,183,183,115,158,168,43,38,64,42,183,168,115,38,168,158,158,86,182,158,170,168,74,43,86,200,168,86,183,86,42,199,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41,183,42,41,197,69,207,183,86,170,42,185,109,42,168,+ 115,170,183,165,168,170,16,190,194,168,16,16,218,200,220,167,74,100,168,247,218,86,115,42,41,86,168,183,100,74,220,115,+ 16,86,183,74,218,38,170,168,170,168,38,115,86,86,86,183,168,74,158,194,93,230,16,168,86,168,42,86,247,168,86,115,+ 158,182,86,86,16,183,38,86,115,115,42,115,200,38,158,170,109,167,74,38,183,86,168,74,170,183,74,168,168,183,168,42,+ 168,247,200,86,165,168,183,190,42,42,183,220,223,167,200,86,194,200,170,74,115,115,38,86,42,170,183,86,170,86,38,102,+ 109,115,168,182,197,38,42,38,16,168,38,199,100,38,158,158,165,185,200,74,183,170,16,38,168,38,42,100,168,168,38,109,+ 220,190,43,86,74,168,168,16,16,168,86,42,183,86,183,16,199,197,183,168,86,168,183,223,170,115,38,207,199,200,86,43,+ 183,183,170,115,74,168,43,38,64,42,183,168,115,38,168,158,190,86,182,190,41,86,218,43,86,158,168,86,165,42,42,182,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,36,170,42,41,197,69,207,183,42,41,115,185,109,42,86,+ 183,197,183,197,168,41,16,190,194,168,16,16,183,109,220,167,115,100,168,247,167,86,183,42,36,86,182,183,100,218,208,115,+ 16,86,183,218,218,38,170,168,197,168,38,115,86,86,86,170,168,74,74,194,93,230,16,168,86,168,42,158,247,168,200,115,+ 158,182,86,86,38,170,38,42,115,183,42,115,200,38,190,170,150,167,74,38,185,86,168,74,170,183,218,168,168,183,168,42,+ 86,247,200,158,165,168,170,190,42,42,183,220,223,167,200,86,247,200,170,74,115,183,38,86,115,41,183,86,170,86,38,102,+ 109,218,168,182,197,38,115,38,16,168,168,199,100,38,158,158,165,185,200,74,183,41,16,38,168,38,115,231,86,168,38,109,+ 220,190,43,86,74,168,200,16,16,168,42,42,170,86,183,16,199,197,183,168,86,168,170,223,170,115,38,207,199,200,42,43,+ 183,170,170,183,74,168,43,38,64,115,165,207,183,38,168,190,190,158,182,190,41,86,218,43,86,74,168,86,165,74,115,182,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,123,170,42,36,89,69,207,170,42,41,115,237,150,42,86,+ 183,41,183,197,168,36,16,185,194,168,38,16,167,109,220,165,115,100,86,247,167,86,183,115,123,42,182,170,100,218,208,183,+ 16,86,170,218,167,38,41,168,197,168,38,183,86,42,86,170,168,218,74,247,93,194,16,86,42,168,115,158,220,168,200,115,+ 190,230,86,86,38,170,168,42,115,183,42,183,200,38,190,197,150,165,218,38,185,86,168,74,41,165,218,168,168,170,182,115,+ 86,247,109,74,197,168,170,190,42,115,170,93,223,165,74,86,247,200,41,74,115,183,38,86,115,41,170,158,197,86,38,102,+ 109,167,168,182,197,38,115,38,16,168,168,199,100,168,190,158,102,197,200,74,170,41,43,38,86,38,115,231,86,86,38,109,+ 220,185,43,86,74,168,200,16,38,168,42,115,197,86,183,16,199,36,183,86,86,168,170,42,41,115,38,207,199,74,74,43,+ 183,170,41,185,74,168,43,38,64,115,165,207,183,168,168,190,190,158,223,190,36,86,167,199,86,74,168,42,197,74,115,182,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,250,41,115,123,89,69,207,170,42,36,115,237,150,115,86,+ 183,36,170,36,168,123,16,185,194,168,38,16,165,109,231,173,183,100,86,247,165,86,183,115,123,42,182,170,100,167,124,183,+ 16,42,170,167,167,168,36,86,36,168,38,183,42,42,42,170,168,167,74,247,93,194,16,86,74,168,115,158,220,168,200,183,+ 190,230,86,42,38,41,168,74,183,183,115,183,200,38,190,41,150,165,218,38,185,158,168,218,41,197,218,168,168,170,86,115,+ 86,247,109,74,197,168,41,190,115,115,170,93,194,165,74,86,247,200,41,218,183,183,38,158,115,123,170,158,197,86,38,89,+ 109,167,168,100,36,168,115,38,16,168,168,199,100,168,190,190,102,197,109,218,170,36,43,168,86,38,115,231,86,86,38,150,+ 208,185,43,42,218,168,200,16,38,168,115,115,197,86,170,38,168,36,170,86,86,86,41,42,36,183,38,200,199,74,74,43,+ 165,41,41,185,218,168,43,38,64,183,197,207,170,168,168,190,190,158,223,190,123,86,167,199,42,218,168,42,197,74,115,182,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,250,41,115,250,169,69,207,41,42,123,183,237,150,115,86,+ 170,123,170,89,168,123,16,185,247,168,38,16,165,109,93,102,183,100,86,220,165,158,170,115,250,42,182,41,100,167,124,183,+ 16,42,41,167,165,168,123,86,36,168,38,170,42,42,42,41,168,167,218,247,80,194,38,86,74,168,115,158,220,168,74,183,+ 190,230,42,42,38,41,168,74,183,170,115,183,74,38,190,36,150,102,167,38,93,158,168,218,36,197,167,168,182,41,86,115,+ 86,220,109,74,201,86,36,185,115,115,41,93,247,197,74,86,247,200,36,218,183,170,168,158,183,123,170,158,36,86,38,89,+ 150,165,168,100,89,168,115,168,16,168,168,199,100,168,190,190,201,237,109,218,41,123,43,168,86,38,183,231,86,86,38,150,+ 208,185,43,42,218,168,200,16,38,168,115,115,36,86,197,38,168,123,170,86,200,86,36,42,36,183,38,200,199,218,74,43,+ 197,41,36,93,167,168,43,38,64,183,197,207,170,168,86,190,185,190,223,185,250,86,173,199,74,218,168,115,36,218,183,182,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,71,36,115,250,238,213,207,41,115,250,183,237,150,115,86,+ 170,123,41,89,168,250,16,185,247,168,38,16,197,150,93,201,165,231,86,220,173,74,170,183,71,115,182,41,100,173,124,165,+ 16,42,41,165,173,168,123,86,123,168,38,170,42,115,42,36,182,167,167,220,80,194,38,86,74,168,183,190,208,168,74,183,+ 190,194,42,42,38,36,168,74,170,93,183,170,74,38,185,123,69,102,167,38,237,158,86,167,123,197,165,168,182,41,86,183,+ 86,220,109,218,89,86,36,185,115,183,41,93,247,197,218,42,220,200,123,167,183,170,168,158,183,250,41,190,123,42,38,169,+ 150,165,86,100,169,168,183,168,16,86,168,182,100,168,190,190,89,237,109,167,36,250,43,168,200,168,183,231,86,86,38,69,+ 124,185,43,42,167,168,200,16,38,168,115,183,36,86,197,38,168,250,41,86,200,86,36,247,123,183,38,200,199,218,218,43,+ 197,36,123,93,167,168,43,38,64,183,36,200,197,168,86,185,185,190,223,185,250,42,173,199,74,218,86,115,36,218,183,230,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,189,123,183,71,238,213,207,36,115,250,170,118,201,183,42,+ 41,250,41,169,168,71,16,197,247,168,38,16,197,150,93,89,165,231,86,208,102,74,41,183,71,115,182,123,100,173,58,197,+ 16,115,36,173,102,168,250,86,250,86,38,197,115,115,115,123,86,165,167,220,80,247,38,86,218,168,183,190,208,168,74,170,+ 185,194,42,42,38,123,168,218,170,93,183,170,218,38,185,123,69,201,165,38,237,190,86,167,250,36,173,182,182,36,86,183,+ 86,220,109,218,169,86,123,185,183,183,36,80,247,201,218,158,220,109,250,167,170,197,168,158,183,250,36,190,123,42,38,213,+ 150,197,86,100,238,168,183,168,16,86,168,182,100,168,185,190,162,118,109,167,36,250,43,168,200,168,183,231,42,86,38,69,+ 124,237,199,115,167,168,200,16,38,168,115,183,123,158,36,38,182,238,36,86,158,86,123,247,250,170,38,200,168,218,167,199,+ 197,123,123,93,165,64,43,38,64,170,89,200,41,168,86,185,185,190,194,185,71,74,102,199,74,167,86,115,89,167,183,230,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,31,250,183,189,211,213,218,123,183,71,170,118,201,183,42,+ 41,71,36,238,168,71,16,237,220,168,38,16,36,150,93,89,197,231,42,208,201,74,36,183,189,115,182,123,100,173,58,197,+ 38,115,123,102,201,168,250,86,238,200,38,41,115,115,115,123,86,173,167,220,126,247,38,86,218,86,183,190,124,168,218,170,+ 185,194,115,115,38,123,168,167,170,93,183,41,218,168,185,250,69,89,173,168,80,190,86,173,250,89,102,86,182,123,86,170,+ 42,208,109,167,169,86,250,185,183,170,123,80,220,89,167,115,208,109,250,173,93,41,168,190,170,71,123,190,250,74,38,213,+ 69,197,86,100,238,168,185,168,16,86,168,182,100,168,185,185,169,118,150,165,123,71,43,168,200,168,170,231,42,42,38,69,+ 124,237,199,115,165,168,109,16,38,168,183,183,250,158,36,38,182,71,36,86,74,86,250,247,250,170,168,200,168,167,167,199,+ 36,123,250,93,165,64,43,38,64,170,169,158,36,86,86,185,185,190,247,185,189,74,102,168,218,165,86,115,169,167,165,230,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,31,250,183,31,50,235,218,250,183,189,197,213,89,183,42,+ 36,71,123,238,86,189,16,237,220,168,38,16,89,69,80,162,197,231,42,208,89,218,36,170,31,183,223,250,231,201,58,197,+ 38,115,123,201,201,207,71,42,238,200,168,36,115,183,115,250,86,102,165,208,126,247,38,158,167,86,165,185,124,182,218,41,+ 185,194,115,115,38,250,168,167,41,36,170,41,218,168,185,71,73,162,102,168,118,190,86,173,71,169,102,86,182,250,42,170,+ 74,208,150,167,238,86,250,237,165,170,250,80,220,89,167,115,208,109,71,173,93,36,168,190,170,189,123,185,238,74,38,211,+ 69,201,86,100,50,168,93,168,16,86,168,100,100,168,185,185,213,238,150,173,250,189,43,168,200,168,170,171,42,42,38,69,+ 58,237,199,115,173,168,109,43,38,86,183,170,238,158,123,38,182,50,123,158,74,158,250,183,71,41,168,200,168,167,167,199,+ 89,250,71,80,102,64,43,199,64,197,169,158,123,86,86,185,237,185,247,237,31,74,201,168,218,173,86,183,238,165,197,230,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,98,71,170,31,157,235,218,250,183,31,41,87,73,170,115,+ 123,189,250,50,86,31,16,118,208,86,168,16,89,69,80,169,197,231,42,124,89,167,123,170,98,183,223,250,231,201,189,36,+ 38,183,250,201,89,207,189,42,50,200,168,123,183,183,183,71,86,201,173,208,188,220,38,158,167,86,197,185,124,182,167,36,+ 185,247,115,183,38,71,86,165,36,80,170,36,167,168,237,71,73,169,201,168,118,190,86,173,189,238,201,86,182,250,42,41,+ 74,124,150,165,211,200,71,237,165,197,250,126,220,169,173,115,208,109,189,102,93,123,168,190,41,31,250,185,50,74,38,212,+ 69,89,86,100,50,168,93,168,16,86,168,100,100,168,185,185,184,87,150,102,250,31,43,168,74,168,41,171,115,42,38,69,+ 58,118,199,183,173,86,109,43,38,86,185,93,238,190,250,38,182,31,250,74,218,158,71,183,189,41,168,109,182,173,165,199,+ 169,71,189,80,102,64,199,199,64,41,238,158,123,86,42,237,237,185,247,237,31,218,89,168,167,102,42,183,238,173,197,194,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,65,189,170,98,157,235,150,71,170,31,36,205,133,170,115,+ 250,31,250,50,86,98,16,118,208,86,168,16,169,69,80,133,89,231,115,255,162,167,250,41,99,183,223,71,231,89,189,89,+ 38,183,71,89,162,200,31,42,31,200,168,123,183,183,183,71,86,89,102,208,188,220,38,158,165,86,197,185,58,86,167,36,+ 237,247,183,183,38,189,86,165,123,80,41,123,167,168,237,189,73,213,201,168,126,185,158,201,31,238,201,86,223,71,42,41,+ 74,124,150,173,211,74,189,237,197,41,71,126,208,169,173,190,124,150,31,201,80,250,168,185,41,98,71,185,50,218,38,212,+ 69,169,86,100,157,168,93,168,16,158,168,100,231,168,237,185,184,87,69,201,71,31,199,168,74,168,36,171,115,115,168,213,+ 58,118,199,183,102,86,109,43,38,86,170,93,50,190,238,38,182,98,250,74,218,158,189,170,31,36,168,109,182,102,173,199,+ 238,189,31,80,201,64,199,182,64,36,50,190,250,86,42,237,237,185,220,237,98,218,73,168,167,102,42,170,50,102,197,194,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,57,31,41,99,76,23,150,189,170,98,123,205,133,41,115,+ 250,98,71,157,86,99,16,118,208,86,168,16,238,69,126,211,89,171,115,255,133,165,250,36,195,170,223,189,231,162,242,169,+ 38,183,189,162,133,200,98,115,157,200,168,250,165,170,183,50,42,89,201,124,143,220,38,190,173,86,197,185,58,86,173,123,+ 237,247,183,183,38,31,86,197,123,126,41,250,173,168,237,31,73,213,89,168,87,185,158,201,31,50,73,42,223,189,115,36,+ 218,124,69,102,157,74,31,118,197,36,189,188,208,211,201,183,124,150,31,201,80,250,168,185,36,98,71,185,31,167,38,212,+ 73,169,158,100,157,168,36,168,38,158,86,100,231,86,237,237,212,205,69,201,189,98,199,168,218,86,36,171,115,115,168,213,+ 58,87,199,170,201,86,109,43,38,86,93,93,50,190,71,38,182,99,71,74,218,158,31,170,98,123,168,109,182,102,102,199,+ 238,189,31,126,89,64,199,182,64,123,50,218,71,86,42,237,118,185,220,118,65,167,73,168,165,201,42,170,50,201,36,194,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,25,31,41,57,248,23,69,31,41,99,123,151,133,36,183,+ 71,99,189,76,42,195,16,87,208,86,168,16,238,73,126,128,169,171,115,255,133,165,71,36,77,170,194,31,231,133,242,238,+ 38,170,189,169,133,200,98,115,99,74,168,71,165,170,170,31,42,162,89,124,78,208,38,190,102,42,36,93,58,86,173,250,+ 237,220,183,170,38,31,86,197,250,126,36,250,102,168,118,98,184,184,162,168,188,185,158,89,98,50,73,42,223,31,115,123,+ 167,58,229,201,157,74,98,118,36,123,31,188,208,211,201,185,124,150,98,89,80,71,200,185,123,65,189,197,157,167,168,53,+ 73,238,74,100,76,86,80,168,38,74,86,100,231,86,237,237,212,143,69,89,31,99,199,168,218,86,123,171,183,115,168,235,+ 189,87,199,170,89,86,109,43,38,86,93,36,157,190,50,38,182,76,189,218,167,190,98,170,98,250,168,109,182,201,201,199,+ 50,31,98,126,89,64,199,182,64,250,157,218,189,86,115,118,118,237,220,118,57,167,133,182,173,89,42,93,157,201,89,194,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,98,36,25,103,23,69,31,41,57,250,151,128,36,183,+ 189,195,31,76,42,77,16,87,255,42,168,16,50,73,126,157,238,171,183,255,211,102,189,123,25,41,247,98,231,133,242,238,+ 168,170,31,133,211,200,195,115,76,74,168,71,197,41,93,98,115,133,89,58,78,208,38,190,201,74,89,237,189,86,173,250,+ 118,220,170,170,38,98,86,201,250,188,123,71,102,168,118,99,184,212,162,168,143,185,190,162,99,157,73,42,223,31,115,123,+ 167,58,229,201,76,218,98,87,89,123,98,242,124,128,201,185,58,69,99,162,126,189,200,185,250,77,31,237,76,165,168,108,+ 73,211,74,231,76,86,80,86,38,74,86,100,231,86,118,237,212,143,69,162,98,57,199,86,218,86,250,163,183,183,168,235,+ 242,87,199,197,162,86,150,43,168,200,36,80,98,185,31,38,223,77,31,218,165,190,98,41,65,250,168,150,182,201,89,199,+ 50,98,99,188,169,64,199,100,64,250,157,218,189,158,115,118,118,237,208,118,25,173,184,182,102,73,115,93,76,89,169,247,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,55,65,123,19,136,23,69,98,36,25,71,151,128,123,183,+ 31,77,31,103,42,19,38,205,255,42,168,43,128,73,188,245,238,171,183,255,128,102,31,250,30,41,247,98,171,211,242,50,+ 168,41,98,211,128,200,77,183,77,218,168,189,197,36,93,99,115,133,162,58,251,208,168,190,201,74,169,237,189,42,201,71,+ 118,220,170,41,38,99,86,89,71,188,123,189,201,168,118,195,212,212,133,168,143,237,190,133,57,157,184,42,194,98,183,250,+ 165,58,229,89,76,218,78,87,89,250,98,78,124,157,89,185,58,69,195,73,126,50,200,237,250,25,98,237,76,165,168,131,+ 219,211,74,231,103,86,80,86,38,74,86,100,231,86,118,118,53,117,69,169,99,25,199,86,167,86,250,163,185,183,168,235,+ 242,205,199,41,162,42,150,43,168,74,80,80,76,185,157,38,223,19,98,167,173,218,195,41,77,71,168,150,182,73,89,168,+ 157,99,195,188,133,64,199,100,229,238,76,167,31,158,115,118,87,237,208,87,19,173,184,182,201,73,115,36,76,162,238,247,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,152,57,250,106,90,23,69,99,123,19,71,241,94,250,170,+ 31,19,98,103,42,106,38,205,255,42,168,43,157,184,242,53,50,171,170,97,157,201,98,250,137,36,247,65,171,128,140,50,+ 168,41,99,128,128,200,25,183,25,218,168,31,36,36,93,195,115,211,133,58,202,124,168,185,89,74,238,118,31,42,201,189,+ 118,208,41,41,38,195,158,89,189,143,250,31,201,168,87,77,212,212,211,168,117,237,190,133,25,76,184,115,247,65,183,71,+ 173,58,198,162,103,167,77,87,169,71,65,78,58,245,162,93,255,69,25,133,188,31,200,237,71,30,99,118,25,197,168,221,+ 219,157,218,231,136,86,126,86,38,218,86,100,231,200,118,118,108,155,73,133,195,19,199,86,167,86,71,163,185,183,168,23,+ 242,205,182,36,133,42,150,43,168,74,80,80,57,185,98,38,223,136,98,167,102,218,77,123,25,189,168,150,223,73,162,168,+ 157,195,25,143,211,64,199,100,229,50,76,165,98,158,183,87,87,118,208,87,55,102,212,182,89,213,115,80,77,162,238,247,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,217,25,250,152,254,23,69,57,250,106,189,241,94,250,170,+ 98,106,65,136,115,137,38,143,255,42,168,43,157,219,242,248,50,163,170,97,245,89,98,71,186,123,220,215,171,128,140,157,+ 64,36,215,128,245,109,30,183,136,218,168,98,36,123,36,77,115,128,133,58,203,124,168,185,162,218,238,118,242,42,89,31,+ 87,208,41,36,38,25,74,169,31,78,71,31,162,200,87,19,145,53,128,86,117,237,190,211,19,76,184,115,247,57,183,189,+ 173,189,198,162,103,167,25,205,238,189,77,251,58,53,133,93,97,69,19,184,188,98,200,237,189,127,195,118,19,197,168,249,+ 219,157,167,231,90,86,126,86,38,167,42,100,171,200,87,118,221,175,73,211,77,106,199,86,173,158,189,163,93,170,86,23,+ 242,151,182,123,133,42,69,199,168,74,80,126,25,185,76,38,194,90,65,165,102,185,25,123,30,31,86,69,223,73,133,168,+ 76,25,19,78,211,64,199,100,229,50,103,102,99,190,183,87,205,118,124,205,127,201,212,182,89,184,183,80,103,133,50,220,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,107,19,71,217,48,23,213,25,250,152,31,96,94,71,41,+ 65,137,57,254,115,27,38,117,255,115,168,43,76,219,242,88,157,163,197,97,53,89,65,189,95,250,220,25,171,245,127,157,+ 64,123,215,245,53,109,55,170,90,150,86,99,89,250,80,19,183,157,211,97,127,255,168,185,162,218,50,118,242,115,162,98,+ 87,208,36,123,38,19,74,238,98,78,189,98,73,200,205,106,108,108,128,86,155,118,185,128,106,103,212,183,247,25,170,189,+ 102,242,198,133,136,165,30,205,238,189,25,202,58,248,133,237,97,73,106,184,143,99,200,237,31,127,77,118,136,201,168,249,+ 219,76,167,231,254,158,188,86,38,167,42,231,171,74,87,87,249,175,219,128,25,152,199,86,102,158,31,60,93,170,86,23,+ 140,151,182,123,211,115,69,199,168,74,126,126,30,237,57,38,194,27,77,173,201,185,30,250,55,31,86,69,223,184,133,182,+ 76,19,106,78,128,64,199,100,229,31,103,102,195,190,165,205,205,118,124,205,104,89,212,182,162,184,183,80,136,211,50,220,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,32,55,189,107,161,191,213,19,71,217,98,96,94,189,36,+ 57,27,25,254,115,95,38,117,97,115,168,43,248,219,140,222,157,163,197,85,248,162,77,31,75,250,220,30,171,94,127,76,+ 64,250,19,53,248,109,186,170,254,150,86,195,169,250,80,106,185,245,128,97,148,255,168,185,133,167,50,87,242,115,133,99,+ 205,124,123,123,86,106,74,238,98,251,31,65,133,200,205,137,108,221,245,86,175,118,185,128,152,136,212,183,247,19,93,31,+ 201,242,198,211,254,173,127,117,50,31,30,203,58,103,211,80,97,73,127,212,143,57,200,118,31,104,25,87,254,89,86,122,+ 145,76,167,231,48,74,188,42,168,165,42,231,171,74,205,87,249,174,219,128,30,217,199,42,102,158,98,60,93,41,86,23,+ 140,241,182,250,128,115,69,199,168,218,126,188,90,237,25,38,247,95,25,102,89,102,55,250,186,98,86,69,223,184,211,182,+ 103,127,137,251,157,64,199,100,229,98,136,102,25,190,165,205,143,87,58,151,107,89,108,182,133,212,170,126,90,128,157,220,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,34,152,31,32,161,191,213,106,189,107,99,243,142,31,36,+ 25,95,19,48,183,75,38,155,97,115,86,43,103,145,140,82,76,172,36,85,103,133,25,98,54,71,208,127,163,94,129,76,+ 64,250,127,248,88,109,104,41,48,150,86,77,238,71,126,137,185,53,157,242,148,255,168,237,211,167,157,87,140,115,133,195,+ 205,255,250,250,100,137,218,211,195,202,31,57,184,200,151,27,221,221,53,86,174,118,185,245,217,90,108,183,220,55,93,98,+ 89,242,198,211,228,102,186,117,157,98,127,129,97,136,128,80,242,73,104,212,78,25,74,118,98,104,30,87,233,89,86,246,+ 145,103,165,171,63,74,143,74,168,165,115,231,171,74,205,205,249,239,219,245,55,107,199,42,201,158,98,60,80,41,86,23,+ 140,241,182,71,245,115,229,199,168,167,188,188,254,237,30,38,247,149,30,201,73,102,186,71,95,65,200,69,194,184,128,182,+ 136,127,27,202,245,64,182,100,229,76,254,102,19,190,197,143,117,87,58,151,32,162,108,223,133,212,170,126,254,128,157,208,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,125,217,31,34,141,191,235,152,31,32,195,243,119,98,123,+ 19,75,55,161,183,236,38,175,97,183,86,43,136,145,83,179,248,172,36,85,222,133,30,98,154,189,208,127,163,94,92,103,+ 64,71,127,88,222,109,75,41,63,102,86,19,238,189,126,233,93,248,245,242,105,255,168,237,128,165,157,205,140,183,211,77,+ 151,255,250,71,100,27,218,128,77,203,98,25,184,200,151,95,221,249,248,86,239,87,185,94,107,254,108,170,220,152,93,99,+ 89,242,198,128,48,201,104,91,157,99,127,129,97,82,128,80,215,219,104,53,251,19,109,87,65,54,137,205,63,169,86,113,+ 145,103,173,171,161,74,78,74,168,102,115,231,171,218,143,205,122,240,219,53,186,32,182,42,201,190,65,60,80,36,86,23,+ 129,96,182,71,245,183,229,199,168,167,188,143,233,118,90,38,247,236,127,89,73,102,95,189,107,57,200,73,247,212,157,182,+ 90,104,107,203,53,229,182,100,229,57,48,73,106,185,197,117,155,205,58,241,210,133,221,223,211,212,41,188,48,245,76,208,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,107,98,24,234,191,235,217,31,34,77,243,119,98,250,+ 106,236,152,224,170,154,38,174,85,183,86,43,90,145,83,81,103,172,123,40,82,211,55,65,180,31,208,104,163,142,92,136,+ 64,189,104,131,253,150,54,36,54,69,86,106,50,31,188,233,93,88,53,242,105,97,168,237,128,173,76,205,127,183,128,25,+ 151,255,71,189,100,104,167,157,25,203,99,19,184,200,241,75,45,249,88,42,240,87,237,94,32,48,221,170,220,217,80,195,+ 162,140,198,245,161,201,107,91,76,195,104,148,242,228,245,126,215,219,32,108,202,106,109,87,57,210,27,205,149,238,86,113,+ 178,136,102,171,224,218,251,74,168,102,115,231,163,218,117,143,246,39,145,248,95,34,182,115,73,190,77,187,80,123,158,23,+ 129,96,230,189,53,183,198,199,200,167,143,78,63,118,254,207,247,206,186,89,133,237,107,31,54,25,200,73,247,212,245,182,+ 254,104,75,166,248,229,182,100,229,25,63,213,137,185,36,155,155,205,58,241,138,133,221,223,128,108,41,188,63,245,76,208,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,120,32,65,18,132,191,235,107,98,24,19,193,61,65,250,+ 152,154,217,141,170,180,38,239,85,170,86,43,233,178,129,67,136,60,250,40,228,128,186,57,111,31,124,92,172,142,192,90,+ 64,31,104,82,196,150,154,123,206,69,200,137,50,98,188,149,93,222,248,140,139,97,86,118,245,102,57,143,127,183,128,30,+ 241,255,189,31,100,75,167,157,30,166,57,55,212,200,241,236,45,122,222,42,39,205,237,94,236,63,221,41,208,107,80,77,+ 133,140,198,245,224,89,105,175,76,25,107,105,242,81,94,126,215,219,210,108,203,137,109,205,25,59,95,143,44,238,86,113,+ 178,254,201,171,121,218,251,74,168,201,183,231,163,167,155,117,113,39,145,88,75,138,182,115,73,190,25,187,126,250,158,191,+ 129,110,230,31,248,183,198,199,200,173,78,251,149,87,233,207,220,234,104,162,184,237,54,98,34,19,74,73,247,108,53,182,+ 48,92,236,148,103,229,182,231,232,19,161,213,27,185,89,155,175,151,58,96,101,211,147,194,128,108,36,143,224,248,103,124,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,26,34,57,120,35,22,23,32,99,18,106,193,61,57,71,+ 217,180,107,234,197,111,38,240,85,170,86,43,233,178,46,52,90,60,238,40,81,157,95,25,33,98,124,92,172,119,192,254,+ 64,98,92,179,114,150,180,250,121,201,74,27,157,99,143,44,93,82,88,140,139,97,86,118,53,201,103,117,129,170,245,55,+ 241,255,31,31,100,236,165,76,127,148,25,152,212,109,96,154,122,246,253,42,39,143,237,142,24,161,147,41,208,32,80,19,+ 133,83,130,53,141,162,210,174,103,19,32,105,242,161,94,188,144,219,138,221,203,233,109,205,19,225,75,117,206,211,86,176,+ 45,228,89,163,252,167,202,218,168,89,183,171,163,167,91,155,113,116,145,131,54,101,182,115,73,185,30,187,126,250,158,191,+ 92,243,223,98,131,165,198,199,200,173,78,251,206,87,63,207,220,252,107,169,184,213,154,98,125,55,74,219,247,108,248,182,+ 63,210,24,148,222,229,182,231,232,106,224,213,95,185,169,175,174,151,242,96,146,128,122,247,245,221,123,78,224,88,136,255,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,20,125,25,26,164,22,23,236,57,120,137,28,29,25,189,+ 107,111,32,252,41,33,38,240,40,41,42,43,149,45,46,141,254,49,71,51,67,245,107,30,37,65,58,66,60,119,225,48,+ 64,98,66,81,67,69,214,250,252,73,74,95,157,195,143,79,80,228,222,83,84,85,86,87,248,201,136,117,92,93,94,186,+ 241,97,31,98,100,24,173,248,186,148,19,217,108,109,96,180,112,113,196,115,227,143,118,142,18,224,147,36,124,34,126,106,+ 211,129,130,88,234,162,138,239,103,106,210,139,140,52,142,188,144,145,101,221,166,107,150,151,106,146,236,117,204,128,158,176,+ 160,63,89,163,72,167,203,167,168,89,170,171,172,165,175,155,176,116,178,82,154,146,182,183,184,185,55,187,126,71,190,191,+ 92,193,194,99,222,197,198,199,200,102,251,202,121,87,149,207,208,72,105,133,212,213,180,215,18,152,74,219,220,108,88,223,+ 161,66,101,105,82,229,230,231,232,254,121,235,75,237,169,174,239,241,242,110,181,128,122,247,53,221,123,78,121,222,90,255,+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,+ 32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,+ 64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,+ 96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,+ 128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,+ 160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,+ 192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,+ 224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,+};+const uint8_t pal_cube[4096] = {+ 16,43,43,43,230,230,230,230,194,194,255,255,255,255,255,255,38,199,230,230,230,194,194,247,255,255,255,255,255,255,255,255,+ 100,100,100,194,220,220,208,255,255,255,255,255,255,255,97,97,100,231,231,231,220,208,255,255,255,255,255,255,97,97,97,85,+ 231,231,171,171,171,171,255,255,255,97,97,97,97,85,85,85,171,171,171,171,171,171,163,97,97,97,97,85,85,85,85,40,+ 171,163,163,163,163,163,163,163,97,85,85,85,85,85,40,40,172,172,172,163,163,60,60,60,60,85,85,85,85,40,40,40,+ 172,172,172,60,60,60,60,60,60,187,187,187,187,187,187,187,172,172,60,60,60,60,60,60,187,187,187,187,187,187,187,187,+ 49,49,49,49,49,49,49,187,187,187,187,187,187,187,187,187,49,49,49,49,49,49,187,187,187,187,187,187,187,187,187,187,+ 49,49,49,49,49,49,187,187,187,187,187,187,187,187,187,187,49,49,49,49,49,187,187,187,187,187,187,187,187,187,187,187,+ 49,49,49,49,187,187,187,187,187,187,187,187,187,187,187,187,49,49,49,49,187,187,187,187,187,187,187,187,187,187,187,187,+ 16,168,168,230,230,230,194,194,194,255,255,255,255,255,255,255,38,86,230,194,194,247,247,208,255,255,255,255,255,255,255,255,+ 100,100,115,220,220,208,208,255,255,255,255,255,255,97,97,97,231,231,231,231,208,208,255,255,255,255,255,97,97,97,85,85,+ 231,171,171,171,171,58,255,255,97,97,97,97,85,85,85,40,171,171,171,171,163,163,97,97,97,97,85,85,85,85,40,40,+ 163,163,163,163,163,163,163,97,85,85,85,85,85,40,40,40,172,172,172,172,172,60,60,60,85,85,85,85,40,40,40,40,+ 172,172,172,60,60,60,60,60,60,60,83,83,83,187,187,51,172,172,60,60,60,60,60,60,49,187,187,187,187,187,187,187,+ 49,49,49,49,49,49,49,49,187,187,187,187,187,187,187,187,49,49,49,49,49,49,49,187,187,187,187,187,187,187,187,187,+ 49,49,49,49,49,49,49,187,187,187,187,187,187,187,187,187,49,49,49,49,49,49,187,187,187,187,187,187,187,187,187,187,+ 49,49,49,49,49,187,187,187,187,187,187,187,187,187,187,187,49,49,49,49,49,187,187,187,187,187,187,187,187,187,187,187,+ 64,168,168,230,194,194,194,247,247,255,255,255,255,255,255,255,207,200,42,247,247,247,208,255,255,255,255,255,255,255,255,97,+ 207,190,183,220,208,208,255,255,255,255,255,255,97,97,97,85,185,185,185,93,124,124,255,255,255,255,97,97,97,85,85,40,+ 171,171,171,80,80,58,255,97,97,97,97,85,85,85,40,40,171,171,171,163,163,126,97,97,97,97,85,85,85,40,40,40,+ 163,163,163,163,163,163,242,242,85,85,85,85,40,40,40,40,172,172,172,172,60,60,60,60,242,140,85,85,40,40,40,51,+ 172,172,172,60,60,60,60,60,60,140,83,83,83,83,51,51,172,172,60,49,49,49,49,49,49,83,83,83,187,187,187,51,+ 49,49,49,49,49,49,49,49,49,187,187,187,187,187,187,187,49,49,49,49,49,49,49,49,187,187,187,187,187,187,187,187,+ 49,49,49,49,49,49,49,49,187,187,187,187,187,187,187,187,49,49,49,49,49,49,49,46,46,187,187,187,187,187,187,187,+ 49,49,49,49,49,49,46,46,46,46,46,46,46,46,46,187,49,49,49,49,49,46,46,46,46,46,46,46,46,46,46,46,+ 64,64,64,64,194,247,247,247,255,255,255,255,255,255,255,255,200,109,109,247,247,208,208,255,255,255,255,255,255,255,97,97,+ 109,109,167,170,208,208,255,255,255,255,255,97,97,97,85,40,69,102,102,41,124,124,255,255,255,97,97,97,97,85,40,40,+ 237,237,118,80,80,58,58,97,97,97,97,85,85,40,40,40,213,213,87,87,126,126,242,97,97,85,85,85,40,40,40,40,+ 172,163,163,163,188,188,242,242,242,85,85,85,40,40,40,40,172,172,172,172,60,60,60,242,140,140,140,83,40,40,51,51,+ 172,172,172,60,60,60,60,60,140,83,83,83,83,83,51,51,172,49,49,49,49,49,49,49,49,83,83,83,83,83,51,51,+ 49,49,49,49,49,49,49,49,49,46,46,46,46,46,46,46,49,49,49,49,49,49,49,49,46,46,46,46,46,46,46,46,+ 49,49,49,49,49,49,49,46,46,46,46,46,46,46,46,46,49,49,49,49,49,49,49,46,46,46,46,46,46,46,46,46,+ 49,49,49,49,49,49,46,46,46,46,46,46,46,46,46,46,49,49,49,49,193,46,46,46,46,46,46,46,46,46,46,46,+ 64,64,64,64,64,247,247,208,255,255,255,255,255,255,255,255,64,109,109,109,170,208,208,255,255,255,255,255,255,97,97,40,+ 150,150,150,173,41,124,255,255,255,255,255,97,97,97,40,40,69,69,201,89,123,250,255,255,97,97,97,97,85,40,40,40,+ 213,213,169,169,71,71,189,97,97,97,85,85,40,40,40,40,213,213,213,87,188,188,242,242,242,85,85,85,40,40,40,40,+ 235,235,205,205,143,143,78,242,242,140,85,40,40,40,40,51,23,151,151,151,151,117,78,78,140,140,83,83,83,40,51,51,+ 23,172,241,241,60,91,91,202,140,83,83,83,83,83,51,51,172,49,49,49,49,49,49,49,203,129,129,83,83,83,51,51,+ 49,49,49,49,49,49,49,49,46,46,46,46,46,46,46,46,49,49,49,49,49,49,49,49,46,46,46,46,46,46,46,46,+ 49,49,49,49,49,49,49,46,46,46,46,46,46,46,46,46,49,49,49,49,49,193,46,46,46,46,46,46,46,46,46,46,+ 49,49,49,193,193,193,46,46,46,46,46,46,46,46,46,46,28,28,28,28,28,193,46,46,46,46,46,46,46,46,46,46,+ 64,64,64,64,229,229,229,208,255,255,255,255,255,255,255,255,64,109,150,150,150,208,255,255,255,255,255,255,255,97,97,40,+ 69,69,69,201,201,123,255,255,255,255,97,97,97,40,40,40,69,69,73,162,162,250,71,255,97,97,97,85,85,40,40,40,+ 213,73,73,133,50,189,31,97,97,85,85,85,40,40,40,40,235,235,235,211,50,31,98,242,242,85,85,40,40,40,40,40,+ 235,235,235,151,143,143,78,78,140,140,140,40,40,40,40,51,23,151,151,151,117,91,251,251,140,140,83,83,83,51,51,51,+ 23,241,241,241,241,91,202,202,203,83,83,83,83,51,51,51,23,241,96,96,96,96,174,166,166,129,129,129,129,129,51,51,+ 96,96,96,49,49,110,135,135,135,46,46,46,46,46,46,46,49,49,49,243,243,243,135,135,46,46,46,46,46,46,46,46,+ 243,243,243,243,243,243,193,46,46,46,46,46,46,46,46,46,243,243,243,243,193,193,193,46,46,46,46,46,46,46,46,46,+ 243,243,193,193,193,193,193,46,46,46,46,46,46,46,139,139,28,28,28,28,28,28,28,46,46,46,46,46,46,139,139,139,+ 229,229,229,229,229,229,229,229,255,255,255,255,255,255,255,97,229,229,229,229,229,229,123,255,255,255,255,255,97,97,40,40,+ 69,69,69,69,162,133,250,255,255,97,97,97,97,40,40,40,69,73,73,73,133,133,189,189,97,97,97,85,40,40,40,40,+ 219,219,184,184,128,128,31,215,215,215,215,40,40,40,40,40,235,235,235,212,157,157,98,215,215,215,215,40,40,40,40,51,+ 23,235,212,212,53,76,57,77,215,215,140,144,40,40,51,51,23,23,151,241,155,155,202,202,19,140,83,83,83,51,51,51,+ 23,23,241,241,241,175,175,203,203,127,129,129,129,51,51,51,23,96,96,96,96,96,174,166,166,129,129,129,129,129,51,51,+ 96,96,96,96,110,110,135,135,148,148,148,92,92,92,192,192,243,243,243,243,243,243,135,135,135,46,46,46,46,46,46,192,+ 243,243,243,243,243,193,193,193,193,46,46,46,46,46,139,139,243,243,243,193,193,193,193,193,46,46,46,46,139,139,139,139,+ 28,28,28,193,193,193,193,193,46,46,46,139,139,139,139,139,28,28,28,28,28,28,28,28,28,139,139,139,139,139,139,139,+ 229,229,229,229,229,229,229,229,229,229,255,255,255,255,97,40,229,229,229,229,229,229,198,198,198,255,255,97,97,40,40,40,+ 229,229,229,198,198,198,198,198,198,215,215,215,40,40,40,40,219,219,73,198,198,198,128,215,215,215,215,215,40,40,40,40,+ 219,219,219,219,128,245,245,215,215,215,215,215,40,40,40,40,219,219,219,212,245,245,94,215,215,215,215,144,144,144,144,51,+ 23,23,212,108,53,248,77,25,215,215,144,144,144,144,51,51,23,23,108,108,155,103,136,30,106,127,144,144,144,144,51,51,+ 23,23,241,96,175,175,174,203,127,127,129,129,129,51,51,51,23,96,96,96,96,110,239,166,148,148,129,92,92,92,92,192,+ 23,243,243,243,243,243,135,135,148,148,105,92,92,192,192,192,243,243,243,243,243,243,135,135,227,227,105,105,192,192,192,192,+ 243,243,243,243,193,193,193,193,193,227,227,139,139,139,139,139,243,243,193,193,193,193,193,193,193,227,139,139,139,139,139,139,+ 28,28,28,28,28,193,193,193,193,139,139,139,139,139,139,139,28,28,28,28,28,28,28,28,28,139,139,139,139,139,139,84,+ 229,229,229,229,229,229,229,229,229,198,198,198,255,255,40,40,229,229,229,229,229,198,198,198,198,198,198,215,215,40,40,40,+ 229,229,198,198,198,198,198,198,198,215,215,215,215,40,40,40,219,198,198,198,198,198,198,198,215,215,215,215,144,144,144,144,+ 219,219,219,219,94,94,94,215,215,215,215,144,144,144,144,144,219,219,219,145,94,94,94,215,215,215,144,144,144,144,144,144,+ 23,145,145,108,108,88,88,142,215,215,144,144,144,144,144,51,23,23,221,221,221,131,222,106,55,127,144,144,144,144,144,51,+ 23,23,249,249,249,82,254,254,186,27,104,92,92,92,92,51,23,96,96,96,110,239,240,240,148,104,104,92,92,92,192,192,+ 191,243,243,243,243,243,135,135,148,105,105,105,92,192,192,192,191,243,243,243,243,193,193,39,227,227,105,105,192,192,192,192,+ 191,243,243,193,193,193,193,193,227,227,227,139,139,139,139,139,191,28,193,193,193,193,193,193,116,116,139,139,139,139,139,139,+ 28,28,28,28,28,28,28,193,116,116,139,139,139,139,139,84,28,28,28,28,28,28,28,28,28,177,139,139,139,84,84,84,+ 229,229,229,229,229,229,229,198,198,198,198,198,198,198,40,40,229,229,229,229,198,198,198,198,198,198,198,198,215,40,40,40,+ 229,198,198,198,198,198,198,198,198,198,215,215,215,144,144,144,198,198,198,198,198,198,198,198,198,215,215,215,144,144,144,144,+ 219,219,198,198,198,94,94,94,215,215,215,144,144,144,144,144,145,145,145,145,94,94,94,142,215,215,144,144,144,144,144,144,+ 145,145,145,145,142,142,142,142,142,144,144,144,144,144,144,144,23,145,221,221,221,253,253,253,152,233,144,144,144,144,144,144,+ 23,249,249,249,249,147,179,228,233,95,95,92,92,92,92,92,23,249,249,249,249,240,81,48,63,107,75,92,92,92,192,192,+ 191,191,243,243,243,240,39,39,161,105,105,210,66,192,192,192,191,191,243,243,243,193,39,39,227,227,227,210,210,192,192,192,+ 191,191,243,193,193,193,193,193,116,116,116,139,139,139,62,62,191,191,28,28,193,193,193,193,116,116,116,139,139,139,139,62,+ 28,28,28,28,28,28,28,28,177,177,177,139,139,84,84,84,28,28,28,28,28,28,28,28,28,177,177,84,84,84,84,84,+ 232,232,232,232,232,232,232,232,198,198,198,198,198,198,198,144,232,232,232,232,198,198,198,198,198,198,198,198,198,144,144,144,+ 232,198,198,198,198,198,198,198,198,198,198,215,144,144,144,144,198,198,198,198,198,198,198,198,198,198,215,144,144,144,144,144,+ 219,198,198,198,198,198,198,94,142,215,144,144,144,144,144,144,145,145,145,145,94,142,142,142,142,142,144,144,144,144,144,144,+ 145,178,178,178,142,142,142,142,119,119,144,144,144,144,144,144,178,178,178,178,221,119,119,119,119,233,233,144,144,144,144,144,+ 178,45,45,249,147,147,114,114,233,233,107,75,92,92,92,192,191,191,249,122,122,122,67,67,63,149,32,54,66,66,66,192,+ 191,191,191,122,246,246,161,161,161,224,236,34,66,66,66,66,191,191,191,246,246,113,39,39,224,224,154,138,138,225,225,62,+ 191,191,191,193,193,193,193,116,116,116,116,134,134,134,62,62,191,191,28,28,28,193,193,116,116,177,177,134,134,134,84,62,+ 191,28,28,28,28,28,28,28,177,177,177,177,84,84,84,84,28,28,28,28,28,28,28,28,28,177,177,84,84,84,84,84,+ 232,232,232,232,232,232,232,232,232,198,198,198,198,198,130,130,232,232,232,232,232,198,198,198,198,198,198,130,130,130,144,144,+ 232,232,198,198,198,198,198,198,198,130,130,130,130,144,144,144,198,198,198,198,198,198,198,130,130,130,130,130,144,144,144,144,+ 198,198,198,198,198,130,130,130,130,130,144,144,144,144,144,144,178,178,178,178,178,142,142,142,142,119,144,144,144,144,144,144,+ 178,178,178,178,178,119,119,119,119,119,119,144,144,144,144,144,178,178,178,45,45,119,119,119,61,61,61,61,144,144,144,144,+ 178,45,45,45,45,122,61,61,61,61,149,149,32,66,66,66,191,191,45,122,122,122,67,68,68,44,44,236,66,66,66,66,+ 191,191,191,246,246,246,246,52,52,206,206,24,66,59,59,59,191,191,191,246,113,113,113,113,141,121,125,125,101,225,225,62,+ 191,191,191,113,113,113,113,113,116,116,234,18,134,146,146,62,191,191,28,28,28,113,113,177,177,177,177,177,134,146,70,153,+ 22,28,28,28,28,28,28,177,177,177,177,177,84,84,84,84,22,28,28,28,28,28,28,28,177,177,177,177,84,84,84,84,+ 232,232,232,232,232,232,232,232,232,232,130,130,130,130,130,130,232,232,232,232,232,232,198,198,130,130,130,130,130,130,130,144,+ 232,232,232,198,198,130,130,130,130,130,130,130,130,130,144,144,198,198,198,198,130,130,130,130,130,130,130,130,130,144,144,144,+ 198,198,130,130,130,130,130,130,130,130,130,130,144,144,144,144,178,178,178,178,130,130,130,130,119,119,119,144,144,144,144,144,+ 178,178,178,178,178,45,119,119,119,61,61,61,144,144,144,144,178,178,45,45,45,45,61,61,61,61,61,61,61,144,144,66,+ 160,160,45,45,45,122,61,61,61,61,61,44,79,79,66,66,191,191,160,45,246,246,246,68,68,44,44,79,79,79,66,66,+ 191,191,191,246,246,246,246,52,141,141,206,79,79,79,59,59,191,191,191,112,113,113,113,113,47,121,121,204,18,214,225,225,+ 191,191,191,113,113,113,113,113,234,234,234,252,111,226,146,153,191,191,191,28,113,176,176,176,177,177,177,72,216,70,181,153,+ 22,22,28,28,28,28,176,176,177,177,177,35,181,181,181,153,22,22,28,28,28,28,28,28,177,177,177,164,209,84,244,244,+ 232,232,232,232,232,232,232,232,232,130,130,130,130,130,130,130,232,232,232,232,232,232,130,130,130,130,130,130,130,130,130,130,+ 232,232,232,130,130,130,130,130,130,130,130,130,130,130,130,144,232,130,130,130,130,130,130,130,130,130,130,130,130,130,144,144,+ 130,130,130,130,130,130,130,130,130,130,130,130,130,144,144,144,178,178,130,130,130,130,130,130,130,130,29,29,29,144,144,144,+ 178,178,178,178,45,45,119,61,61,61,29,29,29,29,29,144,160,160,160,160,160,45,61,61,61,61,29,29,29,29,79,79,+ 160,160,160,160,160,160,61,61,61,29,29,29,79,79,79,79,191,160,160,160,112,112,246,68,68,44,79,79,79,79,79,79,+ 191,191,191,112,112,112,112,47,47,47,79,79,79,79,79,79,191,191,191,112,112,112,113,47,47,47,204,79,79,79,226,226,+ 191,191,191,113,113,113,113,176,176,132,132,156,156,216,70,153,191,191,191,176,176,176,176,176,176,132,35,35,72,26,181,153,+ 22,22,22,28,176,176,176,176,176,35,35,164,209,37,37,244,22,22,22,28,28,28,159,159,159,159,21,21,209,209,244,244,+ 232,232,232,232,232,232,232,232,232,130,130,130,130,130,130,130,232,232,232,232,232,130,130,130,130,130,130,130,130,130,130,130,+ 232,232,232,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,144,+ 130,130,130,130,130,130,130,130,130,130,130,130,130,29,29,144,178,130,130,130,130,130,130,130,130,130,29,29,29,29,29,29,+ 160,160,160,160,160,130,130,29,29,29,29,29,29,29,29,29,160,160,160,160,160,160,29,29,29,29,29,29,29,29,29,79,+ 160,160,160,160,160,160,29,29,29,29,29,29,29,79,79,79,191,160,160,160,112,112,112,29,29,29,29,79,79,79,79,79,+ 191,191,112,112,112,112,112,112,47,47,79,79,79,79,79,79,191,191,112,112,112,112,112,47,47,47,47,79,79,79,226,226,+ 191,191,191,112,112,176,176,176,176,132,132,156,156,33,26,153,22,22,22,176,176,176,176,176,176,132,35,35,164,26,37,37,+ 22,22,22,22,176,176,176,159,159,159,164,164,209,209,20,244,22,22,22,22,159,159,159,159,159,159,21,21,21,56,56,56,+ 232,232,232,232,232,232,232,232,130,130,130,130,130,130,130,130,232,232,232,232,232,130,130,130,130,130,130,130,130,130,130,130,+ 232,232,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,+ 130,130,130,130,130,130,130,130,130,130,130,130,130,29,29,29,130,130,130,130,130,130,130,130,130,130,29,29,29,29,29,29,+ 160,160,160,160,160,130,29,29,29,29,29,29,29,29,29,29,160,160,160,160,160,160,29,29,29,29,29,29,29,29,29,29,+ 160,160,160,160,160,160,29,29,29,29,29,29,29,29,79,79,160,160,160,160,112,112,112,29,29,29,29,29,79,79,79,79,+ 191,191,112,112,112,112,112,112,29,47,79,79,79,79,79,79,191,191,112,112,112,112,112,112,47,47,156,156,156,156,156,33,+ 191,191,112,112,112,176,176,176,176,132,132,156,156,26,26,26,22,22,22,176,176,176,176,176,176,35,35,164,164,209,20,20,+ 22,22,22,22,176,176,159,159,159,159,164,164,209,209,20,56,22,22,22,22,159,159,159,159,159,159,21,21,21,21,17,17,+};+const uint8_t blk_tex[B_N][6] = {+ 0,0,0,0,0,0,0,0,0,0,0,0,1,2,6,6,6,6,1,1,1,1,1,1,+ 10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,+ 14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,+ 18,18,18,18,18,18,19,19,19,19,19,19,20,20,20,20,20,20,21,21,21,21,21,21,+ 22,22,22,22,22,22,23,23,23,23,23,23,24,24,24,24,24,24,25,25,26,26,26,26,+ 27,27,28,28,28,28,29,29,30,30,30,30,31,31,31,31,31,31,35,35,35,35,35,35,+ 36,36,36,36,36,36,37,37,37,37,37,37,38,38,38,38,38,38,39,39,39,39,39,39,+ 40,41,42,42,42,42,43,43,43,43,43,43,47,47,47,47,47,47,48,48,48,48,48,48,+ 49,49,49,49,49,49,50,50,50,50,50,50,51,51,51,51,51,51,52,52,52,52,52,52,+ 53,53,53,53,53,53,11,11,54,54,54,54,55,55,55,55,55,55,56,56,56,56,56,56,+ 57,57,57,57,57,57,58,58,59,60,59,59,61,61,61,61,61,61,62,62,62,62,62,62,+ 11,63,64,65,64,64,66,66,67,68,67,67,66,66,67,69,67,67,70,70,70,70,70,70,+ 71,72,73,73,73,73,74,74,74,74,74,74,78,78,78,78,78,78,79,79,79,79,79,79,+ 80,80,80,80,80,80,81,81,81,81,81,81,82,82,82,82,82,82,1,81,83,83,83,83,+};+const uint8_t blk_tint[B_N] = {+ 0,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,+ 0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,63,0,0,0,0,0,0,+};+const uint8_t blk_model[B_N] = {+ 0,1,1,1,1,1,1,1,2,2,2,1,3,3,1,1,1,1,1,1,1,1,4,4,+ 4,5,1,1,1,2,2,1,2,2,1,1,1,1,1,1,6,1,1,1,1,1,1,1,+ 1,2,1,1,1,1,5,1,+};+const uint8_t blk_flags[B_N] = {+ 0,3,3,3,3,3,3,3,4,4,4,3,8,8,3,3,3,3,3,3,3,3,3,3,+ 3,6,3,3,3,4,4,3,4,4,3,3,3,3,3,3,4,3,3,3,3,3,3,3,+ 3,4,3,3,3,3,6,3,+};+const uint8_t blk_light[B_N] = {+ 0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,13,0,+ 0,0,0,0,0,0,0,0,+};+const uint8_t blk_opacity[B_N] = {+ 0,15,15,15,15,15,15,15,0,0,0,15,3,15,15,15,15,15,15,15,15,15,1,1,+ 1,0,15,15,15,0,0,15,0,0,15,15,15,15,15,15,0,15,15,15,15,15,15,15,+ 15,0,15,15,15,15,0,15,+};+const uint8_t blk_hard[B_N] = {+ 0,6,2,2,8,8,8,8,0,0,0,255,255,255,2,2,12,12,12,8,8,8,1,1,+ 1,1,12,12,3,0,0,3,0,0,12,20,8,6,8,200,0,10,12,20,10,14,14,12,+ 2,0,6,20,2,1,2,2,+};+const uint8_t blk_tool[B_N] = {+ 0,1,3,3,1,2,2,2,0,0,0,0,0,0,3,3,33,17,1,2,2,2,0,0,+ 0,0,17,17,1,0,0,0,0,0,33,17,1,2,1,49,0,2,33,33,2,1,1,33,+ 0,0,1,1,3,3,0,3,+};+const uint8_t blk_drop[B_N] = {+ 255,4,3,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,129,19,20,21,255,255,+ 255,255,135,27,28,255,128,31,32,33,34,35,36,37,38,39,40,41,133,43,44,45,45,134,+ 48,139,50,51,137,53,255,3,+};+const uint16_t it_fuel[B_N + IT_N] = {+ 0,0,0,0,0,300,300,300,100,100,100,0,0,0,0,0,0,0,0,300,300,300,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,300,0,0,0,300,0,0,300,0,0,0,+ 0,0,0,16000,0,0,0,0,100,1600,1600,0,0,0,0,0,0,0,0,0,0,200,200,200,+ 200,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+};+const uint8_t it_kind[IT_N] = {+ 0,0,0,0,0,0,0,0,0,0,0,0,0,4,3,1,2,20,19,17,18,36,35,33,+ 34,4,3,1,2,52,51,49,50,+};+const uint16_t it_dur[IT_N] = {+ 0,0,0,0,0,0,0,0,0,0,0,0,0,59,59,59,59,131,131,131,131,250,250,250,+ 250,32,32,32,32,1561,1561,1561,1561,+};+const uint8_t it_speed[IT_N] = {+ 1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,4,4,4,4,6,6,6,+ 6,12,12,12,12,8,8,8,8,+};+const uint8_t it_dmg[IT_N] = {+ 1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,3,4,6,3,4,5,7,4,5,+ 6,5,2,3,4,8,5,6,7,+};+const char *const it_label[IT_N] = {"Stick", "Coal", "Charcoal", "Iron Ingot", "Gold Ingot", "Diamond", "Redstone", "Lapis Lazuli", "Flint", "Clay", "Brick", "Sugar Canes", "Apple", "Wooden Sword", "Wooden Shovel", "Wooden Pickaxe", "Wooden Axe", "Stone Sword", "Stone Shovel", "Stone Pickaxe", "Stone Axe", "Iron Sword", "Iron Shovel", "Iron Pickaxe", "Iron Axe", "Golden Sword", "Golden Shovel", "Golden Pickaxe", "Golden Axe", "Diamond Sword", "Diamond Shovel", "Diamond Pickaxe", "Diamond Axe"};+const char *const blk_label[B_N] = {"Air", "Stone", "Grass Block", "Dirt", "Cobblestone", "Oak Wood Planks", "Spruce Wood Planks", "Birch Wood Planks", "Oak Sapling", "Spruce Sapling", "Birch Sapling", "Bedrock", "Water", "Lava", "Sand", "Gravel", "Gold Ore", "Iron Ore", "Coal Ore", "Oak Wood", "Spruce Wood", "Birch Wood", "Oak Leaves", "Spruce Leaves", "Birch Leaves", "Glass", "Lapis Lazuli Ore", "Lapis Lazuli Block", "Sandstone", "Grass", "Dead Bush", "Wool", "Dandelion", "Poppy", "Block of Gold", "Block of Iron", "Bricks", "Bookshelf", "Moss Stone", "Obsidian", "Torch", "Chest", "Diamond Ore", "Block of Diamond", "Crafting Table", "Furnace", "Furnace", "Redstone Ore", "Cactus", "Sugar Canes", "Stone Bricks", "Block of Coal", "Clay", "Snow", "Ice", "Grass Block"};+const uint8_t recipes[] = {+ 143,0,1,3,3,254,254,254,255,128,255,255,128,255,142,0,1,1,3,254,128,128,144,0,+ 1,2,3,254,254,254,128,255,128,141,0,1,1,3,254,254,128,147,0,1,3,3,4,4,+ 4,255,128,255,255,128,255,146,0,1,1,3,4,128,128,148,0,1,2,3,4,4,4,128,+ 255,128,145,0,1,1,3,4,4,128,151,0,1,3,3,131,131,131,255,128,255,255,128,255,+ 150,0,1,1,3,131,128,128,152,0,1,2,3,131,131,131,128,255,128,149,0,1,1,3,+ 131,131,128,155,0,1,3,3,132,132,132,255,128,255,255,128,255,154,0,1,1,3,132,128,+ 128,156,0,1,2,3,132,132,132,128,255,128,153,0,1,1,3,132,132,128,159,0,1,3,+ 3,133,133,133,255,128,255,255,128,255,158,0,1,1,3,133,128,128,160,0,1,2,3,133,+ 133,133,128,255,128,157,0,1,1,3,133,133,128,34,0,1,3,3,132,132,132,132,132,132,+ 132,132,132,132,0,9,1,1,34,35,0,1,3,3,131,131,131,131,131,131,131,131,131,131,+ 0,9,1,1,35,43,0,1,3,3,133,133,133,133,133,133,133,133,133,133,0,9,1,1,+ 43,27,0,1,3,3,135,135,135,135,135,135,135,135,135,135,0,9,1,1,27,51,0,1,+ 3,3,129,129,129,129,129,129,129,129,129,129,0,9,1,1,51,41,0,1,3,3,254,254,+ 254,254,255,254,254,254,254,45,0,1,3,3,4,4,4,4,255,4,4,4,4,44,0,1,+ 2,2,254,254,254,254,28,0,1,2,2,14,14,14,14,50,0,4,2,2,1,1,1,1,+ 36,0,1,2,2,138,138,138,138,52,0,1,2,2,137,137,137,137,5,0,4,1,1,19,+ 6,0,4,1,1,20,7,0,4,1,1,21,128,0,4,1,2,254,254,40,0,4,1,2,+ 129,128,40,0,4,1,2,130,128,0,0,0,+};+const uint8_t smelt[] = {+ 17,131,16,132,42,133,14,25,4,1,137,138,18,129,47,134,26,135,19,130,20,130,21,130,+ 255,255,+};+const uint8_t tint_of_biome[N_BIOMES] = {+ 0,0,0,2,1,2,0,1,3,+};+const uint8_t cube_levels[16] = {+ 0,2,7,14,24,35,49,65,82,102,123,146,171,197,225,255,+};diff --git a/games/numblocks/ce/src/data.h b/games/numblocks/ce/src/data.hnew file mode 100644index 00000000..2748b237--- /dev/null+++ b/games/numblocks/ce/src/data.h@@ -0,0 +1,243 @@+/* Made by tools/pack.py: the blocks, items, textures and pictures of NumBlocks on the CE. */+#ifndef NBCE_DATA_H+#define NBCE_DATA_H+#include <stdint.h>++#define NTEX 94+#define N_SHADE 32+#define FIRST_STATIC 16+#define N_TINTS 4+#define B_N 56+#define IT_N 33+#define IT0 128+enum {+ B_AIR,+ B_STONE,+ B_GRASS,+ B_DIRT,+ B_COBBLESTONE,+ B_PLANKS_OAK,+ B_PLANKS_SPRUCE,+ B_PLANKS_BIRCH,+ B_SAPLING_OAK,+ B_SAPLING_SPRUCE,+ B_SAPLING_BIRCH,+ B_BEDROCK,+ B_WATER,+ B_LAVA,+ B_SAND,+ B_GRAVEL,+ B_GOLD_ORE,+ B_IRON_ORE,+ B_COAL_ORE,+ B_LOG_OAK,+ B_LOG_SPRUCE,+ B_LOG_BIRCH,+ B_LEAVES_OAK,+ B_LEAVES_SPRUCE,+ B_LEAVES_BIRCH,+ B_GLASS,+ B_LAPIS_ORE,+ B_LAPIS_BLOCK,+ B_SANDSTONE,+ B_TALL_GRASS,+ B_DEAD_BUSH,+ B_WOOL,+ B_DANDELION,+ B_POPPY,+ B_GOLD_BLOCK,+ B_IRON_BLOCK,+ B_BRICKS,+ B_BOOKSHELF,+ B_MOSSY_COBBLESTONE,+ B_OBSIDIAN,+ B_TORCH,+ B_CHEST,+ B_DIAMOND_ORE,+ B_DIAMOND_BLOCK,+ B_CRAFTING_TABLE,+ B_FURNACE,+ B_FURNACE_LIT,+ B_REDSTONE_ORE,+ B_CACTUS,+ B_SUGAR_CANE,+ B_STONE_BRICKS,+ B_COAL_BLOCK,+ B_CLAY,+ B_SNOW,+ B_ICE,+ B_GRASS_SNOWED,+};+enum {+ I_STICK = IT0 + 0,+ I_COAL = IT0 + 1,+ I_CHARCOAL = IT0 + 2,+ I_IRON_INGOT = IT0 + 3,+ I_GOLD_INGOT = IT0 + 4,+ I_DIAMOND = IT0 + 5,+ I_REDSTONE = IT0 + 6,+ I_LAPIS = IT0 + 7,+ I_FLINT = IT0 + 8,+ I_CLAY_BALL = IT0 + 9,+ I_BRICK = IT0 + 10,+ I_REEDS = IT0 + 11,+ I_APPLE = IT0 + 12,+ I_WOODEN_SWORD = IT0 + 13,+ I_WOODEN_SHOVEL = IT0 + 14,+ I_WOODEN_PICKAXE = IT0 + 15,+ I_WOODEN_AXE = IT0 + 16,+ I_STONE_SWORD = IT0 + 17,+ I_STONE_SHOVEL = IT0 + 18,+ I_STONE_PICKAXE = IT0 + 19,+ I_STONE_AXE = IT0 + 20,+ I_IRON_SWORD = IT0 + 21,+ I_IRON_SHOVEL = IT0 + 22,+ I_IRON_PICKAXE = IT0 + 23,+ I_IRON_AXE = IT0 + 24,+ I_GOLDEN_SWORD = IT0 + 25,+ I_GOLDEN_SHOVEL = IT0 + 26,+ I_GOLDEN_PICKAXE = IT0 + 27,+ I_GOLDEN_AXE = IT0 + 28,+ I_DIAMOND_SWORD = IT0 + 29,+ I_DIAMOND_SHOVEL = IT0 + 30,+ I_DIAMOND_PICKAXE = IT0 + 31,+ I_DIAMOND_AXE = IT0 + 32,+};+enum { M_NONE, M_CUBE, M_CROSS, M_LIQUID, M_LEAVES, M_GLASS, M_TORCH };+enum { BF_OPAQUE = 1, BF_SOLID = 2, BF_ALPHA = 4, BF_LIQUID = 8 };+enum { T_NONE, T_PICKAXE, T_AXE, T_SHOVEL, T_SWORD };+enum { BIOME_OCEAN, BIOME_PLAINS, BIOME_DESERT, BIOME_EXTREME_HILLS, BIOME_FOREST, BIOME_TAIGA, BIOME_BEACH, BIOME_BIRCH_FOREST, BIOME_COLD_TAIGA, N_BIOMES };+extern const uint8_t tint_of_biome[N_BIOMES];+extern const uint8_t pal_rgb[256 * 3]; /* 1-15: the sky's (set at run time) */+extern const uint8_t tex_px[NTEX][256]; /* (v * 16 + u); 0 see-through */+extern const uint8_t shade_cm[N_SHADE][256]; /* a colour at each level of light (31 full) */+extern const uint8_t pal_cube[4096]; /* the nearest colour: [r][g][b], 16 levels each (CUBE_LEVELS) */+/* faces -Y +Y -Z +Z -X +X; blk_tint: the faces whose texture has N_TINTS copies, one per biome tint */+extern const uint8_t blk_tex[B_N][6], blk_tint[B_N], blk_model[B_N], blk_flags[B_N], blk_light[B_N];+extern const uint8_t blk_opacity[B_N], blk_hard[B_N], blk_tool[B_N], blk_drop[B_N];+/* blk_hard: hardness x 4 (255: unbreakable); blk_tool: T_* | the level needed << 4; blk_drop: 255 none */+extern const uint16_t it_fuel[B_N + IT_N];+extern const uint8_t it_kind[IT_N], it_speed[IT_N], it_dmg[IT_N]; /* it_kind: T_* | tier << 4 */+extern const uint16_t it_dur[IT_N];+extern const char *const it_label[IT_N], *const blk_label[B_N];+extern const uint8_t recipes[], smelt[];+extern const uint8_t spr_data[], spr_w[], spr_h[], icon_px[], icon_of[B_N + IT_N];+extern const uint32_t spr_off[];+extern const uint8_t font_bits[96 * 8], font_w[96];+extern const uint8_t cube_levels[16];+#define TX_STONE 0+#define TX_DIRT 1+#define TX_GRASS_TOP_GRASS 2+#define TX_GRASS_SIDE 6+#define TX_COBBLESTONE 10+#define TX_PLANKS_OAK 11+#define TX_PLANKS_SPRUCE 12+#define TX_PLANKS_BIRCH 13+#define TX_SAPLING_OAK 14+#define TX_SAPLING_SPRUCE 15+#define TX_SAPLING_BIRCH 16+#define TX_BEDROCK 17+#define TX_WATER_STILL 18+#define TX_LAVA_STILL 19+#define TX_SAND 20+#define TX_GRAVEL 21+#define TX_GOLD_ORE 22+#define TX_IRON_ORE 23+#define TX_COAL_ORE 24+#define TX_LOG_OAK_TOP 25+#define TX_LOG_OAK 26+#define TX_LOG_SPRUCE_TOP 27+#define TX_LOG_SPRUCE 28+#define TX_LOG_BIRCH_TOP 29+#define TX_LOG_BIRCH 30+#define TX_LEAVES_OAK_FOLIAGE 31+#define TX_LEAVES_SPRUCE_SPRUCE 35+#define TX_LEAVES_BIRCH_BIRCH 36+#define TX_GLASS 37+#define TX_LAPIS_ORE 38+#define TX_LAPIS_BLOCK 39+#define TX_SANDSTONE_BOTTOM 40+#define TX_SANDSTONE_TOP 41+#define TX_SANDSTONE_NORMAL 42+#define TX_TALLGRASS_GRASS 43+#define TX_DEADBUSH 47+#define TX_WOOL_COLORED_WHITE 48+#define TX_FLOWER_DANDELION 49+#define TX_FLOWER_ROSE 50+#define TX_GOLD_BLOCK 51+#define TX_IRON_BLOCK 52+#define TX_BRICK 53+#define TX_BOOKSHELF 54+#define TX_COBBLESTONE_MOSSY 55+#define TX_OBSIDIAN 56+#define TX_TORCH_ON 57+#define TX_CHEST_TOP 58+#define TX_CHEST_SIDE 59+#define TX_CHEST_FRONT 60+#define TX_DIAMOND_ORE 61+#define TX_DIAMOND_BLOCK 62+#define TX_CRAFTING_TABLE_TOP 63+#define TX_CRAFTING_TABLE_SIDE 64+#define TX_CRAFTING_TABLE_FRONT 65+#define TX_FURNACE_TOP 66+#define TX_FURNACE_SIDE 67+#define TX_FURNACE_FRONT_OFF 68+#define TX_FURNACE_FRONT_ON 69+#define TX_REDSTONE_ORE 70+#define TX_CACTUS_BOTTOM 71+#define TX_CACTUS_TOP 72+#define TX_CACTUS_SIDE 73+#define TX_REEDS_GRASS 74+#define TX_STONEBRICK 78+#define TX_COAL_BLOCK 79+#define TX_CLAY 80+#define TX_SNOW 81+#define TX_ICE 82+#define TX_GRASS_SIDE_SNOWED 83+#define TX_DESTROY_STAGE_0 84+#define TX_DESTROY_STAGE_1 85+#define TX_DESTROY_STAGE_2 86+#define TX_DESTROY_STAGE_3 87+#define TX_DESTROY_STAGE_4 88+#define TX_DESTROY_STAGE_5 89+#define TX_DESTROY_STAGE_6 90+#define TX_DESTROY_STAGE_7 91+#define TX_DESTROY_STAGE_8 92+#define TX_DESTROY_STAGE_9 93+#define SP_HOTBAR 0+#define SP_HOTBAR_SEL 1+#define SP_BUTTON 2+#define SP_BUTTON_HOVER 3+#define SP_BUTTON_OFF 4+#define SP_HEART_BG 5+#define SP_HEART 6+#define SP_HEART_HALF 7+#define SP_FOOD_BG 8+#define SP_FOOD 9+#define SP_FOOD_HALF 10+#define SP_BUBBLE 11+#define SP_BUBBLE_POP 12+#define SP_XP_BG 13+#define SP_XP 14+#define SP_CROSSHAIR 15+#define SP_INVENTORY 16+#define SP_CRAFTING_TABLE 17+#define SP_FURNACE 18+#define SP_FLAME 19+#define SP_ARROW 20+#define SP_CREATIVE 21+#define SP_SCROLLER 22+#define SP_DIRT 23+#define SP_SUN 24+#define SP_MOON_0 25+#define SP_MOON_1 26+#define SP_MOON_2 27+#define SP_MOON_3 28+#define SP_MOON_4 29+#define SP_MOON_5 30+#define SP_MOON_6 31+#define SP_MOON_7 32+#define SP_CHEST 33+#define SP_STEVE 34++#endifdiff --git a/games/numblocks/ce/src/draw.c b/games/numblocks/ce/src/draw.cnew file mode 100644index 00000000..524dbb2a--- /dev/null+++ b/games/numblocks/ce/src/draw.c@@ -0,0 +1,174 @@+/* Drawing on the 320 x 240 screen (or the HUD's layer): Minecraft's font with its shadow, its GUI pictures (kept+ * as runs of a colour, sprite tables in gfx.c), 16 x 16 icons, and the 3D view doubled onto the screen with the+ * HUD over it. */+#include "nb.h"+#include "draw.h"++Canvas cv;++void canvas_screen(void) { cv = (Canvas){scr, SCREEN_W, 0, 0, SCREEN_W, SCREEN_H}; }++static inline void put(int x, int y, uint8_t c) {+ x -= cv.ox, y -= cv.oy;+ if ((unsigned)x < (unsigned)cv.w && (unsigned)y < (unsigned)cv.h) cv.p[y * cv.stride + x] = c;+}++void fill(int x, int y, int w, int h, uint8_t c) {+ x -= cv.ox, y -= cv.oy;+ if (x < 0) w += x, x = 0;+ if (y < 0) h += y, y = 0;+ if (x + w > cv.w) w = cv.w - x;+ if (y + h > cv.h) h = cv.h - y;+ if (w <= 0 || h <= 0) return;+ for (int r = 0; r < h; r++) memset(cv.p + (y + r) * cv.stride + x, c, (size_t)w);+}++/* a darker colour: Minecraft's text shadow is a quarter as bright */+uint8_t dark(uint8_t c, int level) { return shade_cm[level][c]; }++int text_width(const char *s) {+ int w = 0;+ for (; *s; s++)+ if ((unsigned char)*s >= 32 && (unsigned char)*s < 128) w += font_w[*s - 32];+ return w ? w - 1 : 0;+}++static void glyphs(const char *s, int x, int y, uint8_t c, int scale) {+ for (; *s; s++) {+ int k = *s - 32;+ if (k < 0 || k >= 96) continue;+ const uint8_t *g = font_bits + k * 8;+ for (int r = 0; r < 8; r++)+ for (int b = 0; b < 8; b++)+ if (g[r] >> b & 1) {+ if (scale == 1) put(x + b, y + r, c);+ else fill(x + b * scale, y + r * scale, scale, scale, c);+ }+ x += font_w[k] * scale;+ }+}++void text(int x, int y, const char *s, uint8_t c) {+ glyphs(s, x + 1, y + 1, dark(c, 19), 1);+ glyphs(s, x, y, c, 1);+}+void text_plain(int x, int y, const char *s, uint8_t c) { glyphs(s, x, y, c, 1); }+void text_center(int cx, int y, const char *s, uint8_t c) { text(cx - text_width(s) / 2, y, s, c); }+void text_big(int x, int y, const char *s, uint8_t c, int scale) { glyphs(s, x, y, c, scale); }++/* a GUI picture (gfx.c): its rows are runs; x, y its top left; sx, sy, w, h a part of it (w 0: all) */+void sprite_part(int id, int x, int y, int sx, int sy, int w, int h) {+ const uint8_t *base = spr_data + spr_off[id];+ int sw = spr_w[id], sh = spr_h[id];+ if (!w) w = sw, h = sh;+ for (int r = sy; r < sy + h && r < sh; r++) {+ const uint8_t *p = base + (base[r * 2] | base[r * 2 + 1] << 8) + sh * 2;+ int col = 0, dy = y + r - sy;+ while (col < sw) {+ int n = *p++;+ if (n < 128) {+ for (int k = 0; k <= n; k++, col++) {+ uint8_t c = *p++;+ if (c && col >= sx && col < sx + w) put(x + col - sx, dy, c);+ }+ } else {+ int len = n - 126;+ uint8_t c = *p++;+ if (c) {+ int a = col < sx ? sx : col, b = col + len > sx + w ? sx + w : col + len;+ for (int k = a; k < b; k++) put(x + k - sx, dy, c);+ }+ col += len;+ }+ }+ }+}+void sprite(int id, int x, int y) { sprite_part(id, x, y, 0, 0, 0, 0); }++void icon(int id, int x, int y) {+ if (id <= 0 || id >= B_N + IT_N + IT0 - B_N) return;+ int k = id >= IT0 ? B_N + id - IT0 : id;+ if (k >= B_N + IT_N || icon_of[k] == 255) return;+ const uint8_t *s = icon_px + icon_of[k] * 256;+ for (int r = 0; r < 16; r++)+ for (int c = 0; c < 16; c++)+ if (s[r * 16 + c]) put(x + c, y + r, s[r * 16 + c]);+}++/* a stack in a slot: its icon, its count (bottom right, white), a tool's wear bar */+void stack_draw(const Stack *s, int x, int y) {+ if (!s->id) return;+ icon(s->id, x, y);+ if (s->n > 1) {+ char t[4];+ int n = s->n, i = 0;+ if (n >= 10) t[i++] = (char)('0' + n / 10);+ t[i++] = (char)('0' + n % 10);+ t[i] = 0;+ text(x + 17 - text_width(t), y + 9, t, C_WHITE);+ }+ int dur = item_dur(s->id);+ if (dur && s->dmg) {+ /* RenderItem: 13 pixels, green to red */+ int left = dur - s->dmg, w = (13 * left + dur / 2) / dur;+ fill(x + 2, y + 13, 13, 2, C_BLACK);+ uint8_t c = left * 3 > dur * 2 ? C_GREEN : left * 3 > dur ? C_YELLOW : C_RED;+ fill(x + 2, y + 13, w, 1, c);+ }+}++/* Minecraft's button (widgets.png): its left part and its right end, the label centred */+void button(int x, int y, int w, int state, const char *label) {+ int id = state == 0 ? SP_BUTTON_OFF : state == 2 ? SP_BUTTON_HOVER : SP_BUTTON;+ sprite_part(id, x, y, 0, 0, w / 2, 20);+ sprite_part(id, x + w / 2, y, 200 - (w - w / 2), 0, w - w / 2, 20);+ uint8_t c = state == 0 ? C_GRAY : state == 2 ? C_HOVER : C_LIGHT;+ text_center(x + w / 2, y + 6, label, c);+}++/* the options background: dirt, 32 pixels a tile, darkened */+void dirt_background(int y0, int y1) {+ for (int y = y0; y < y1; y++)+ for (int x = 0; x < SCREEN_W; x += 32) {+ for (int k = 0; k < 32 && x + k < SCREEN_W; k += 2) {+ /* (the dirt texture at 2x, darkened to a quarter) */+ const uint8_t *row = tex_px[TX_DIRT] + ((y >> 1) & 15) * 16;+ uint8_t c = dark(row[(k >> 1) & 15], 19);+ put(x + k, y, c);+ put(x + k + 1, y, c);+ }+ }+}++/* ---------------------------------------------------------------- the 3D view on the screen */+uint8_t hud_layer[HUD_W * HUD_H];++void compose(const uint8_t *src, bool hud, bool crosshair) {+ plat_expand(src, scr, HUD_Y / 2);+ /* the rows under the HUD: doubled, then the HUD's own pixels over them */+ for (int y = HUD_Y; y < SCREEN_H; y += 2) {+ uint8_t *d = scr + y * SCREEN_W;+ const uint8_t *s = src + (y / 2) * RW;+ for (int x = 0; x < RW; x++) d[2 * x] = d[2 * x + 1] = s[x];+ if (hud) {+ const uint8_t *h = hud_layer + (y - HUD_Y) * HUD_W;+ for (int x = 0; x < HUD_W; x++)+ if (h[x]) d[HUD_X + x] = h[x];+ }+ uint8_t *d2 = d + SCREEN_W;+ for (int x = 0; x < RW; x++) d2[2 * x] = d2[2 * x + 1] = s[x];+ if (hud) {+ const uint8_t *h = hud_layer + (y + 1 - HUD_Y) * HUD_W;+ for (int x = 0; x < HUD_W; x++)+ if (h[x]) d2[HUD_X + x] = h[x];+ }+ }+ if (crosshair) {+ /* the crosshair (icons.png's, light) */+ uint8_t *m = scr + (SCREEN_H / 2) * SCREEN_W + SCREEN_W / 2;+ for (int k = -4; k <= 4; k++) {+ m[k] = C_LIGHT;+ m[k * SCREEN_W] = C_LIGHT;+ }+ }+}diff --git a/games/numblocks/ce/src/draw.h b/games/numblocks/ce/src/draw.hnew file mode 100644index 00000000..c4ba17ed--- /dev/null+++ b/games/numblocks/ce/src/draw.h@@ -0,0 +1,39 @@+/* Drawing (draw.c). */+#ifndef NBCE_DRAW_H+#define NBCE_DRAW_H+#include "nb.h"++/* where drawing goes: a buffer of stride bytes a row, showing the screen's [ox, ox + w) x [oy, oy + h) */+typedef struct {+ uint8_t *p;+ int stride, ox, oy, w, h;+} Canvas;+extern Canvas cv;+void canvas_screen(void);++/* the screens' colours: Minecraft's own, kept exact in the palette (tools/pack.py GUI_FIXED) */+enum {+ C_BLACK = FIRST_STATIC, C_WHITE, C_GRAY, C_SHADOW, C_LIGHT, C_HOVER, C_YELLOW, C_DKYELLOW, C_SLOT, C_SLOTDARK,+ C_PANEL, C_DARK, C_GREEN, C_RED, C_40, C_20, C_70, C_C0+};++void fill(int x, int y, int w, int h, uint8_t c);+uint8_t dark(uint8_t c, int level);+void text_plain(int x, int y, const char *s, uint8_t c);+void text_center(int cx, int y, const char *s, uint8_t c);+void text_big(int x, int y, const char *s, uint8_t c, int scale);+void sprite(int id, int x, int y);+void sprite_part(int id, int x, int y, int sx, int sy, int w, int h);+void icon(int id, int x, int y);+void stack_draw(const Stack *s, int x, int y);+void button(int x, int y, int w, int state, const char *label); /* state 0 off, 1 on, 2 selected */+void dirt_background(int y0, int y1);++/* the HUD: drawn into its own layer, laid over the 3D view as it goes to the screen */+#define HUD_X 66+#define HUD_W 188+#define HUD_Y 180+#define HUD_H (SCREEN_H - HUD_Y)+extern uint8_t hud_layer[HUD_W * HUD_H];+void compose(const uint8_t *src, bool hud, bool crosshair);+#endifdiff --git a/games/numblocks/ce/src/gen.c b/games/numblocks/ce/src/gen.cnew file mode 100644index 00000000..836a6797--- /dev/null+++ b/games/numblocks/ce/src/gen.c@@ -0,0 +1,275 @@+/* The terrain, made from the world's seed, a column at a time: Minecraft's biomes (oceans and beaches, plains,+ * forests, birch forests, taigas, snowy taigas, deserts, extreme hills), its layers (grass on dirt on stone,+ * sand on sandstone, bedrock at the bottom), caves (lava at the bottom of the deepest), ores at Minecraft's+ * depths, scaled to the CE's 64 levels, and its trees, cacti, tall grass and flowers.+ *+ * All of it is integer arithmetic on small numbers (the eZ80 has no floating point): value noise on lattices+ * of 8 to 128 blocks, hashed through a permutation of 0-255 shuffled by the seed. */+#include "nb.h"++static uint8_t perm[256];+static uint8_t salt[8];+static uint16_t smooth_t[256]; /* smoothstep, 0..256 for 0..255 */++/* the seed's own shuffle (Java's LCG would need 48-bit arithmetic: this one is 32-bit) */+static uint32_t lcg;+static unsigned lcg_next(void) {+ lcg = lcg * 1103515245u + 12345u;+ return (unsigned)(lcg >> 16) & 0x7FFF;+}++void gen_seed(uint32_t seed) {+ lcg = seed ^ 0x5DEECE66u;+ for (int i = 0; i < 256; i++) perm[i] = (uint8_t)i;+ for (int i = 255; i > 0; i--) {+ int j = (int)(lcg_next() % (unsigned)(i + 1));+ uint8_t t = perm[i];+ perm[i] = perm[j], perm[j] = t;+ }+ for (int i = 0; i < 8; i++) salt[i] = (uint8_t)lcg_next();+ for (int t = 0; t < 256; t++) smooth_t[t] = (uint16_t)(((int32_t)t * t * (768 - 2 * t)) >> 16);+}++static inline uint8_t h2(int x, int z, int s) {+ return perm[(uint8_t)(perm[(uint8_t)(perm[(uint8_t)(x + s)] + z)] + ((x >> 8) ^ (z >> 8) * 3) + s)];+}+static inline uint8_t h3(int x, int y, int z, int s) {+ return perm[(uint8_t)(perm[(uint8_t)(perm[(uint8_t)(perm[(uint8_t)(x + s)] + y)] + z)] + (x >> 8) + (z >> 8))];+}++#define smooth(t) smooth_t[t]++/* value noise in 2D: 0..255, on a lattice of 1 << sh blocks */+static int noise2(int x, int z, int sh, int s) {+ int xi = x >> sh, zi = z >> sh;+ int fxv = smooth((x - (xi << sh)) << (8 - sh)), fzv = smooth((z - (zi << sh)) << (8 - sh));+ int a = h2(xi, zi, s), b = h2(xi + 1, zi, s), c = h2(xi, zi + 1, s), d = h2(xi + 1, zi + 1, s);+ int ab = a + (((b - a) * fxv) >> 8), cd = c + (((d - c) * fxv) >> 8);+ return ab + (((cd - ab) * fzv) >> 8);+}++/* biomes from temperature, rain and height */+static int fbm2(int x, int z, int sh, int s) {+ return (noise2(x, z, sh, s) * 2 + noise2(x, z, sh - 1, s + 37) + 1) / 3;+}++void gen_column(int x, int z, Column *c) {+ int cont = fbm2(x, z, 7, salt[0]); /* land or sea (128-block lattice) */+ int hill = fbm2(x, z, 6, salt[1]); /* where the extreme hills rise */+ int det = noise2(x, z, 4, salt[2]) * 2 + noise2(x, z, 3, salt[3]) + noise2(x, z, 2, salt[4]) / 2; /* 0..893 */+ int temp = fbm2(x + 1000, z, 7, salt[5]);+ int rain = fbm2(x, z + 1000, 6, salt[6]);+ /* the land: up from the sea where cont is high; the hills: up to 22 blocks more */+ int land = cont - 118; /* -118..137: < 0 the ocean */+ int base = land < 0 ? SEA + land * 13 / 64 : SEA + 1 + land / 18;+ int amp = 3;+ if (hill > 150) amp += (hill - 150) * 20 / 105;+ if (land < 0) amp = 2;+ int h = base + ((det - 446) * amp) / 446;+ if (h < 6) h = 6;+ if (h > WORLD_H - 10) h = WORLD_H - 10;+ int b;+ if (h < SEA - 1) b = BIOME_OCEAN;+ else if (h <= SEA && land < 14) b = BIOME_BEACH;+ else if (amp >= 12) b = temp < 90 ? BIOME_COLD_TAIGA : BIOME_EXTREME_HILLS;+ else if (temp > 165 && rain < 120) b = BIOME_DESERT;+ else if (temp < 80) b = BIOME_COLD_TAIGA;+ else if (temp < 105) b = BIOME_TAIGA;+ else if (rain > 150) b = temp > 140 ? BIOME_FOREST : BIOME_BIRCH_FOREST;+ else if (rain > 128) b = BIOME_FOREST;+ else b = BIOME_PLAINS;+ c->h = (uint8_t)h;+ c->biome = (uint8_t)b;+ c->depth = (uint8_t)(3 + (h2(x, z, salt[7]) & 1));+ switch (b) {+ case BIOME_DESERT: case BIOME_BEACH: c->top = B_SAND, c->filler = B_SAND; break;+ case BIOME_OCEAN: {+ int k = h2(x >> 2, z >> 2, salt[3]) & 3;+ c->top = c->filler = (uint8_t)(k == 0 ? B_GRAVEL : k == 1 ? B_SAND : B_DIRT);+ if (h < SEA - 6 && k == 1) c->top = c->filler = B_GRAVEL;+ break;+ }+ case BIOME_COLD_TAIGA: c->top = B_GRASS_SNOWED, c->filler = B_DIRT; break;+ case BIOME_EXTREME_HILLS:+ c->top = h > SEA + 18 && (h2(x, z, salt[6]) & 3) == 0 ? B_STONE : B_GRASS, c->filler = B_DIRT;+ break;+ default: c->top = B_GRASS, c->filler = B_DIRT;+ }+}++/* caves: a cell is cut out where two smooth 3D noises are both near their middle (worm-like tunnels); the+ * lattice is 16 x 8 x 16 blocks, the noise read once a column at each lattice level and blended down it */+static int cave_x = 1 << 30, cave_z;+static uint8_t cave_a[WORLD_H / 8 + 1], cave_b[WORLD_H / 8 + 1];+static int noise3_col(int x, int z, int ly, int s) {+ int xi = x >> 4, zi = z >> 4;+ int fxv = smooth((x & 15) << 4), fzv = smooth((z & 15) << 4);+ int a = h3(xi, ly, zi, s), b = h3(xi + 1, ly, zi, s), c = h3(xi, ly, zi + 1, s), d = h3(xi + 1, ly, zi + 1, s);+ int ab = a + (((b - a) * fxv) >> 8), cd = c + (((d - c) * fxv) >> 8);+ return ab + (((cd - ab) * fzv) >> 8);+}+static void cave_column(int x, int z) {+ if (x == cave_x && z == cave_z) return;+ cave_x = x, cave_z = z;+ for (int l = 0; l <= WORLD_H / 8; l++) {+ cave_a[l] = (uint8_t)noise3_col(x, z, l, salt[2] ^ 0x5A);+ cave_b[l] = (uint8_t)noise3_col(x + 7, z + 3, l + 9, salt[4] ^ 0xA5);+ }+}+static bool cave_at(int x, int y, int z) {+ cave_column(x, z);+ int l = y >> 3, f = (y & 7) << 5;+ int a = cave_a[l] + (((cave_a[l + 1] - cave_a[l]) * f) >> 8) - 128;+ int b = cave_b[l] + (((cave_b[l + 1] - cave_b[l]) * f) >> 8) - 128;+ return a * a + b * b < 150;+}++/* ores: a 2 x 2 x 2 group of cells may hold a vein; Minecraft's depths for 128 levels, halved */+static int ore_at(int x, int y, int z) {+ int g = h3(x >> 1, y >> 1, z >> 1, salt[5]);+ int k = h3(x, y, z, salt[1]);+ if (k < 110) return 0;+ if (g < 7) return y < 64 ? B_COAL_ORE : 0;+ if (g < 11) return y < 32 ? B_IRON_ORE : 0;+ if (g < 12) return y < 16 ? B_GOLD_ORE : 0;+ if (g < 14) return y < 8 ? B_REDSTONE_ORE : 0;+ if (g == 14) return y < 8 && (k & 1) ? B_DIAMOND_ORE : 0;+ if (g == 15) return y < 16 && y > 4 && (k & 3) == 0 ? B_LAPIS_ORE : 0;+ if (g == 16 && (k & 1)) return B_GRAVEL;+ if (g == 17 && (k & 1)) return B_DIRT;+ return 0;+}++int gen_cell(int x, int y, int z, const Column *c) {+ int h = c->h;+ if (y == 0) return B_BEDROCK;+ if (y < 4 && (h3(x, y, z, salt[0]) & 3) >= y) return B_BEDROCK;+ if (y > h) {+ if (y < SEA) return c->biome == BIOME_COLD_TAIGA && y == SEA - 1 ? B_ICE : B_WATER;+ return B_AIR;+ }+ /* caves: not right under the sea floor or a lake, and not through the beaches */+ if (y > 3 && (h >= SEA || y < h - 3) && cave_at(x, y, z)) return y < 8 ? B_LAVA : B_AIR;+ if (y == h) {+ if (h < SEA - 1 && c->top == B_GRASS) return B_DIRT;+ return c->top == B_GRASS_SNOWED && h < SEA ? B_DIRT : c->top;+ }+ if (y > h - c->depth) return c->filler;+ if (c->filler == B_SAND && y > h - c->depth - 3) return B_SANDSTONE;+ int o = ore_at(x, y, z);+ return o ? o : B_STONE;+}++void gen_spawn(int *x, int *z) {+ /* near 0, 0: plains or a forest (Minecraft's spawn biomes), else any land that is not a beach */+ Column c;+ for (int pass = 0; pass < 2; pass++)+ for (int r = 0; r < 2048; r += 8)+ for (int k = 0; k < 8; k++) {+ int px = (k & 1 ? r : -r) + (k >> 1) * 3, pz = (k & 2 ? r : -r) / 2 + k;+ gen_column(px, pz, &c);+ if (c.h < SEA || c.biome == BIOME_OCEAN || c.biome == BIOME_BEACH) continue;+ if (pass == 0 && c.biome != BIOME_PLAINS && c.biome != BIOME_FOREST && c.biome != BIOME_BIRCH_FOREST) continue;+ *x = px, *z = pz;+ return;+ }+ *x = 0, *z = 0;+}++/* ---------------------------------------------------------------- trees and plants */+/* a tree may stand in each 4 x 4 square of columns, at a place of its own; how likely, by biome */+static const uint8_t tree_chance[N_BIOMES] = {+ [BIOME_OCEAN] = 0, [BIOME_PLAINS] = 6, [BIOME_DESERT] = 30, [BIOME_EXTREME_HILLS] = 40, [BIOME_FOREST] = 200,+ [BIOME_TAIGA] = 150, [BIOME_BEACH] = 0, [BIOME_BIRCH_FOREST] = 190, [BIOME_COLD_TAIGA] = 90};++static void (*put_fn)(int, int, int, int);+static int rx0, rz0, rx1, rz1, ry0, ry1;+static void put(int x, int y, int z, int b) {+ if (x >= rx0 && x < rx1 && z >= rz0 && z < rz1 && y >= ry0 && y < ry1 && y < WORLD_H) put_fn(x, y, z, b);+}++static void leaves_layer(int x, int y, int z, int r, int b, int corners, int s) {+ for (int dz = -r; dz <= r; dz++)+ for (int dx = -r; dx <= r; dx++) {+ if (r && (dx == r || dx == -r) && (dz == r || dz == -r)) {+ if (corners == 0) continue;+ if (corners == 1 && (h3(x + dx, y, z + dz, s) & 1)) continue;+ }+ put(x + dx, y, z + dz, b | 0x100); /* (0x100: only into air) */+ }+}++static void tree(int x, int z, const Column *c, int kind, int r) {+ int y = c->h + 1;+ if (kind == B_CACTUS) {+ int n = 1 + (r & 1) + (r >> 7 & 1);+ for (int k = 0; k < n; k++) put(x, y + k, z, B_CACTUS);+ return;+ }+ if (kind == B_LOG_SPRUCE) {+ /* WorldGenTaiga2, simply: a cone of leaves, wider every other layer, on a tall trunk */+ int hgt = 6 + (r & 3), bare = 1 + (r >> 2 & 1);+ for (int k = 0; k < hgt; k++) put(x, y + k, z, B_LOG_SPRUCE);+ put(x, y + hgt, z, B_LEAVES_SPRUCE | 0x100);+ int rad = 0;+ for (int k = hgt - 1; k >= bare; k--) {+ leaves_layer(x, y + k, z, rad, B_LEAVES_SPRUCE, rad == 2 ? 1 : 2, r);+ rad = rad >= 2 || (rad == 1 && k < hgt - 4 && (k & 1)) ? (rad == 2 ? 1 : 2) : rad + 1;+ if (k > hgt - 3) rad = k == hgt - 1 ? 1 : 0;+ }+ return;+ }+ /* WorldGenTrees (oak) and birch: a trunk of 4 to 6, two wide layers and two narrow ones on top */+ int birch = kind == B_LOG_BIRCH;+ int hgt = 4 + (r % 3) + birch;+ int leaf = birch ? B_LEAVES_BIRCH : B_LEAVES_OAK;+ for (int k = 0; k < hgt; k++) put(x, y + k, z, kind);+ for (int k = -3; k <= 0; k++) {+ int rad = k < -1 ? 2 : 1;+ leaves_layer(x, y + hgt + k, z, rad, leaf, k == 0 ? 0 : 1, r + k);+ }+}++void gen_decorate(int x0, int z0, int x1, int z1, int y0, int y1, void (*fn)(int, int, int, int)) {+ put_fn = fn;+ rx0 = x0, rz0 = z0, rx1 = x1, rz1 = z1, ry0 = y0, ry1 = y1;+ Column c;+ /* trees: the 4 x 4 squares whose tree could reach in (two blocks of leaves around a trunk) */+ for (int gz = (z0 - 2) >> 2; gz <= (z1 + 1) >> 2; gz++)+ for (int gx = (x0 - 2) >> 2; gx <= (x1 + 1) >> 2; gx++) {+ int r = h2(gx, gz, salt[3] ^ 0x33);+ int tx = (gx << 2) + (r & 3), tz = (gz << 2) + (r >> 2 & 3);+ if (tx < x0 - 2 || tx >= x1 + 2 || tz < z0 - 2 || tz >= z1 + 2) continue;+ gen_column(tx, tz, &c);+ if (r >= tree_chance[c.biome] || c.h < SEA || c.h > WORLD_H - 12) continue;+ if (c.top != B_GRASS && c.top != B_GRASS_SNOWED && c.top != B_SAND) continue;+ if (cave_at(tx, c.h, tz)) continue;+ int r2 = h2(tx, tz, salt[4]);+ int kind;+ switch (c.biome) {+ case BIOME_DESERT: kind = B_CACTUS; break;+ case BIOME_TAIGA: case BIOME_COLD_TAIGA: kind = B_LOG_SPRUCE; break;+ case BIOME_BIRCH_FOREST: kind = r2 < 200 ? B_LOG_BIRCH : B_LOG_OAK; break;+ case BIOME_FOREST: kind = r2 < 50 ? B_LOG_BIRCH : B_LOG_OAK; break;+ case BIOME_EXTREME_HILLS: kind = r2 < 128 ? B_LOG_SPRUCE : B_LOG_OAK; break;+ default: kind = B_LOG_OAK;+ }+ if ((kind == B_CACTUS) != (c.top == B_SAND)) continue;+ if (c.top == B_GRASS || c.top == B_GRASS_SNOWED) put(tx, c.h, tz, B_DIRT);+ tree(tx, tz, &c, kind, r2);+ }+}++/* the plant on top of a column (0: none) */+int gen_plant(int x, int z, const Column *c) {+ int r = h2(x, z, salt[6] ^ 0x77);+ if (r > 90 || c->h < SEA) return 0;+ if (c->top == B_GRASS) {+ if (c->biome == BIOME_PLAINS) return r < 4 ? B_DANDELION : r < 7 ? B_POPPY : r < 75 ? B_TALL_GRASS : 0;+ if (c->biome == BIOME_FOREST || c->biome == BIOME_BIRCH_FOREST)+ return r < 2 ? B_DANDELION : r < 4 ? B_POPPY : r < 26 ? B_TALL_GRASS : 0;+ return r < 20 ? B_TALL_GRASS : 0;+ }+ if (c->top == B_SAND && c->biome == BIOME_DESERT) return r < 4 ? B_DEAD_BUSH : 0;+ return 0;+}diff --git a/games/numblocks/ce/src/gfx.c b/games/numblocks/ce/src/gfx.cnew file mode 100644index 00000000..4e01c8ec--- /dev/null+++ b/games/numblocks/ce/src/gfx.c@@ -0,0 +1,2508 @@+/* Made by tools/pack.py from Minecraft 1.8.8's pictures: see data.h. */+#include "data.h"++const uint8_t spr_data[] = {+ 0,0,4,0,20,0,174,0,56,1,190,1,64,2,196,2,86,3,232,3,118,4,0,5,130,5,22,6,154,6,20,7,+ 157,7,25,8,158,8,55,9,190,9,71,10,255,16,179,16,7,16,26,26,111,111,180,180,111,255,180,169,180,1,75,16,+ 1,16,111,129,95,18,107,95,95,107,217,95,217,95,217,95,107,107,217,95,32,95,34,95,217,129,95,3,107,95,95,217,+ 131,95,9,75,95,95,236,107,34,95,95,107,95,129,107,5,95,107,107,95,95,107,130,95,2,32,95,34,129,95,0,217,+ 134,95,10,27,95,107,95,95,32,95,34,217,95,217,129,95,1,75,217,129,95,0,217,129,95,4,107,95,32,95,34,132,+ 95,0,32,130,95,0,217,131,95,3,107,107,34,217,131,95,2,217,95,107,134,95,2,32,95,34,131,95,0,217,131,95,+ 9,107,95,107,95,217,95,107,95,236,107,132,95,1,107,107,129,95,0,107,130,95,2,32,55,16,2,16,111,107,134,42,+ 2,165,42,167,131,42,5,54,95,34,217,42,102,137,42,11,167,42,115,34,95,34,95,42,115,42,42,167,129,42,11,115,+ 42,42,167,115,42,42,115,34,107,34,95,133,42,0,115,134,42,3,34,95,34,107,133,42,1,102,115,132,42,10,115,34,+ 75,34,95,42,115,42,42,115,102,131,42,0,167,130,42,8,34,217,34,95,42,115,42,42,165,133,42,0,115,129,42,3,+ 34,95,34,95,129,42,0,115,129,42,0,167,133,42,4,167,34,95,34,107,130,42,0,115,130,42,2,165,167,115,130,42,+ 2,34,55,16,10,16,180,95,42,213,235,235,213,235,235,212,129,235,0,213,130,235,5,34,27,34,107,42,212,136,235,8,+ 213,235,213,235,154,95,34,95,42,138,235,7,213,235,213,34,95,34,95,42,129,235,2,212,235,213,130,235,0,213,130,235,+ 4,34,95,34,217,42,131,235,0,213,130,235,11,213,235,212,235,235,34,95,236,107,42,235,213,133,235,11,213,213,235,212,+ 213,235,54,95,34,95,42,213,134,235,2,213,235,213,129,235,4,34,95,34,95,115,139,235,6,212,235,236,95,34,95,42,+ 137,235,6,212,235,212,235,34,55,16,3,16,111,95,42,141,235,4,34,95,34,95,42,135,235,0,212,129,235,7,212,213,+ 34,95,34,95,115,213,129,235,0,213,136,235,4,236,107,34,217,42,133,235,2,213,235,212,131,235,8,154,95,34,95,102,+ 235,213,235,212,131,235,0,212,129,235,6,213,235,34,95,34,95,42,129,235,0,212,135,235,6,213,213,236,95,154,95,42,+ 135,235,2,213,235,212,129,235,4,34,95,34,95,42,131,235,4,213,212,235,235,213,131,235,4,34,217,34,95,42,132,235,+ 0,213,130,235,0,213,129,235,2,34,55,16,3,16,180,107,42,129,235,0,213,137,235,4,34,217,34,95,167,141,235,4,+ 34,217,34,95,42,136,235,9,213,235,213,212,235,34,95,34,95,115,135,235,0,212,131,235,7,34,95,154,107,42,235,235,+ 212,129,235,0,213,129,235,0,213,130,235,5,54,107,34,95,42,213,136,235,0,212,129,235,4,236,107,154,95,42,133,235,+ 2,213,235,213,129,235,7,213,235,34,95,34,95,42,213,129,235,0,212,132,235,10,213,212,212,235,34,95,34,95,42,235,+ 213,130,235,11,212,213,213,235,213,235,213,235,235,34,55,16,7,16,180,95,42,235,212,235,213,130,235,1,213,212,129,235,+ 9,212,235,34,95,34,95,42,235,235,213,138,235,4,34,95,34,107,42,133,235,12,213,235,212,213,235,235,213,235,34,95,+ 34,95,42,129,235,5,213,235,212,235,235,213,129,235,12,213,213,235,34,95,34,95,115,235,235,213,235,213,132,235,0,213,+ 129,235,6,34,95,34,95,42,213,213,129,235,1,213,212,129,235,9,213,235,235,213,235,154,95,34,95,115,138,235,14,212,+ 235,235,154,95,54,75,115,235,212,213,235,235,212,212,134,235,7,34,107,34,95,42,212,235,213,135,235,5,213,235,235,34,+ 55,16,3,16,180,95,42,129,235,0,212,136,235,5,213,34,95,34,95,42,129,235,0,213,132,235,9,212,235,235,212,235,+ 34,95,34,95,42,134,235,0,212,129,235,13,212,235,235,34,107,34,95,115,235,235,212,235,235,213,131,235,0,213,129,235,+ 9,236,95,34,107,42,235,213,213,235,212,131,235,0,213,129,235,8,212,154,107,34,95,42,235,235,212,130,235,0,213,132,+ 235,5,213,236,95,24,95,115,129,235,2,213,235,213,132,235,7,212,235,235,34,107,34,95,42,132,235,2,213,235,213,132,+ 235,7,34,95,34,95,42,235,213,213,129,235,0,212,134,235,2,34,55,16,3,16,180,95,42,131,235,2,213,235,213,131,+ 235,6,213,235,34,95,236,95,115,130,235,2,212,213,213,130,235,8,213,235,213,235,34,95,34,95,42,130,235,1,213,212,+ 131,235,0,212,129,235,4,34,217,34,95,42,129,235,0,213,132,235,9,213,235,235,213,212,34,137,34,217,115,139,235,6,+ 213,235,236,95,154,95,42,132,235,1,213,213,129,235,0,213,129,235,4,34,107,32,95,42,140,235,25,212,34,95,54,107,+ 42,213,235,213,235,212,235,235,212,235,213,235,235,213,212,235,236,95,34,95,167,129,235,3,212,213,235,213,134,235,2,236,+ 55,16,6,16,180,95,42,235,235,213,129,235,2,213,235,212,130,235,9,212,235,34,107,34,95,167,213,235,213,131,235,0,+ 213,131,235,6,212,34,95,34,95,167,213,130,235,0,213,135,235,9,34,95,34,95,42,213,235,235,213,213,136,235,5,34,+ 95,34,95,42,213,135,235,12,212,235,235,212,235,34,95,34,217,165,235,213,212,129,235,0,212,129,235,9,213,235,235,213,+ 212,34,107,34,95,42,129,235,0,213,137,235,8,236,95,34,95,42,235,235,213,213,135,235,6,212,235,34,217,34,95,115,+ 131,235,2,213,235,213,133,235,2,34,55,16,4,16,180,95,42,213,135,235,0,213,130,235,4,24,95,54,95,42,132,235,+ 0,213,129,235,10,212,235,213,235,235,34,95,24,95,42,213,132,235,0,212,133,235,9,34,95,34,95,42,235,235,212,235,+ 213,133,235,7,213,235,235,236,107,34,137,115,129,235,0,213,133,235,9,213,235,213,235,154,107,34,95,42,213,140,235,9,+ 34,95,34,95,115,235,235,212,212,213,136,235,4,34,95,236,95,42,131,235,4,213,213,235,235,213,131,235,4,34,95,34,+ 27,42,130,235,0,213,134,235,4,213,235,34,55,16,3,16,180,95,42,130,235,2,213,235,212,133,235,11,212,54,95,236,+ 95,102,235,235,213,235,235,212,129,235,2,213,235,212,129,235,5,34,95,34,75,42,213,130,235,129,213,129,235,0,213,129,+ 235,8,34,95,34,95,167,213,235,235,213,133,235,8,212,235,235,213,154,95,154,107,42,132,235,0,212,134,235,9,34,95,+ 154,95,42,212,235,237,235,213,130,235,12,213,212,213,213,235,212,34,75,154,95,42,213,213,138,235,7,213,34,95,54,95,+ 115,235,213,130,235,0,212,129,235,10,213,235,213,235,235,236,95,34,217,42,213,129,235,3,213,235,235,213,133,235,2,34,+ 55,16,6,16,180,107,115,235,235,213,135,235,7,213,235,235,34,217,34,95,42,133,235,0,213,130,235,15,213,213,235,236,+ 95,34,95,42,235,235,213,235,213,235,235,212,131,235,6,213,235,236,217,34,217,115,132,235,0,212,134,235,6,34,217,34,+ 95,42,235,213,129,235,16,213,235,235,213,235,213,235,212,235,235,34,95,34,95,167,235,212,136,235,8,213,235,235,34,95,+ 34,95,42,213,136,235,0,213,129,235,4,34,107,34,95,42,141,235,4,34,217,34,95,115,132,235,0,212,130,235,6,212,+ 235,213,235,34,55,16,3,16,180,107,115,135,235,0,213,129,235,6,213,235,34,95,54,95,115,132,235,0,237,132,235,6,+ 213,235,32,95,34,95,42,131,235,0,213,135,235,4,34,217,34,107,42,133,235,0,213,129,235,0,213,129,235,4,34,95,+ 34,217,42,129,235,2,213,235,213,135,235,4,34,95,34,27,42,138,235,7,212,235,235,34,95,34,95,115,133,235,0,213,+ 130,235,9,213,235,235,34,107,34,95,42,235,212,139,235,7,34,95,34,95,115,235,235,212,136,235,4,213,235,34,55,16,+ 8,16,180,95,42,212,235,213,235,213,130,235,10,213,235,235,213,213,235,236,217,54,95,42,131,235,0,213,135,235,4,34,+ 95,154,95,42,132,235,3,213,235,235,213,131,235,4,34,217,34,95,42,129,235,1,213,212,132,235,8,212,213,235,235,34,+ 95,34,95,42,134,235,0,213,132,235,4,236,95,154,95,42,130,235,0,213,129,235,1,213,212,129,235,10,212,235,34,95,+ 34,95,42,235,235,212,213,129,235,0,213,133,235,4,154,95,34,95,42,130,235,0,213,136,235,8,34,95,34,95,42,235,+ 213,235,213,137,235,2,34,55,16,5,16,180,95,42,235,212,139,235,4,34,107,154,107,42,132,235,3,213,212,235,213,131,+ 235,8,34,95,24,32,42,235,235,213,212,131,235,15,213,213,235,213,235,235,154,107,34,95,42,235,213,235,235,212,136,235,+ 4,34,95,236,95,42,136,235,9,213,235,235,212,235,34,95,34,95,42,133,235,1,213,212,132,235,7,236,95,154,95,42,+ 213,235,212,132,235,10,213,235,213,212,235,235,34,95,34,95,42,129,235,0,213,137,235,4,34,107,34,95,42,139,235,4,+ 213,235,34,55,16,3,16,180,95,42,135,235,0,212,131,235,9,34,95,34,95,42,213,235,235,213,213,136,235,4,34,95,+ 154,107,42,129,235,0,212,129,235,0,213,129,235,8,212,235,213,235,34,95,34,95,42,133,235,0,212,129,235,0,213,129,+ 235,5,34,95,32,217,102,212,132,235,130,213,8,235,213,235,235,34,95,34,95,42,132,235,0,213,134,235,6,34,95,34,+ 95,42,235,213,139,235,5,34,95,34,95,42,213,136,235,0,212,129,235,4,34,95,34,95,42,129,235,0,213,129,235,0,+ 213,130,235,5,213,212,235,34,55,16,9,16,180,95,42,235,235,213,235,235,213,130,235,0,213,130,235,4,34,95,34,95,+ 115,136,235,1,213,212,129,235,6,34,95,34,95,42,212,212,132,235,0,213,131,235,26,213,34,217,34,95,42,235,213,235,+ 213,235,235,212,235,235,213,235,213,212,235,235,54,95,54,95,42,213,130,235,0,212,130,235,0,213,130,235,6,236,95,54,+ 95,42,235,213,137,235,6,212,235,34,95,34,217,42,129,235,6,212,213,235,235,213,235,213,129,235,6,212,235,34,95,34,+ 95,115,129,235,3,213,235,235,213,133,235,5,213,34,95,236,107,42,130,235,3,213,212,235,213,129,235,6,213,235,235,213,+ 34,55,16,2,16,180,32,135,34,17,24,154,34,34,32,24,34,34,95,34,75,34,236,34,154,236,34,236,130,34,0,154,+ 131,34,9,107,34,32,34,154,34,34,154,34,154,131,34,9,54,34,154,34,236,95,54,75,34,236,135,34,1,154,154,130,+ 34,2,95,34,54,131,34,1,236,236,129,34,0,154,130,34,6,236,34,95,34,54,34,236,133,34,1,54,236,130,34,4,+ 154,34,217,236,32,133,34,3,125,34,34,54,132,34,4,95,236,236,125,236,134,34,2,54,34,154,130,34,2,95,34,32,+ 136,34,1,236,54,131,34,1,55,16,2,16,180,107,131,95,8,107,107,95,217,95,107,95,95,107,130,95,6,75,95,107,+ 95,217,95,107,130,95,0,217,131,95,3,27,95,95,32,130,95,1,107,107,135,95,0,217,129,95,0,32,131,95,1,107,+ 107,129,95,11,107,95,95,217,107,107,27,95,95,32,95,107,130,95,1,217,217,129,95,0,107,133,95,5,32,95,107,95,+ 95,107,131,95,1,107,27,133,95,0,107,129,95,3,27,95,95,217,133,95,9,217,95,95,217,217,75,95,95,217,217,134,+ 95,0,27,129,95,3,107,95,95,75,135,95,0,217,134,95,1,55,16,255,16,179,16,0,0,2,0,21,0,45,0,65,+ 0,77,0,89,0,101,0,113,0,125,0,137,0,149,0,161,0,173,0,185,0,197,0,209,0,221,0,233,0,245,0,1,+ 1,19,1,36,1,59,1,150,16,0,42,130,17,4,56,17,20,20,37,133,20,0,37,130,20,1,111,42,1,42,17,129,+ 111,0,18,130,111,13,216,18,111,180,111,18,111,18,111,111,120,111,107,42,7,42,17,111,107,107,95,107,95,130,107,0,+ 75,133,107,3,120,111,107,42,3,42,17,111,107,142,0,3,37,111,107,42,3,42,20,216,107,142,0,3,56,111,75,42,+ 3,42,20,111,107,142,0,3,20,111,75,42,3,42,20,111,107,142,0,3,20,111,107,42,3,42,37,111,107,142,0,3,+ 20,111,107,42,3,42,20,111,107,142,0,3,20,120,107,42,3,42,20,120,107,142,0,3,20,111,95,42,3,42,20,111,+ 107,142,0,3,56,111,32,42,3,42,20,111,107,142,0,3,20,111,95,42,3,42,20,111,95,142,0,3,20,111,107,42,+ 3,42,20,111,32,142,0,3,20,111,107,42,3,42,20,111,54,142,0,3,20,111,95,42,3,42,20,111,107,142,0,3,+ 20,111,107,42,3,42,37,111,217,142,0,3,37,111,75,42,3,42,20,18,95,142,0,3,20,111,107,42,3,42,20,111,+ 107,142,0,3,17,111,95,42,3,42,20,111,37,130,20,1,37,37,135,20,4,17,17,111,107,42,5,42,20,111,111,120,+ 18,129,111,1,18,120,137,111,1,107,42,6,42,111,107,107,75,75,95,129,107,1,75,32,131,107,6,75,107,54,107,95,+ 107,42,150,16,0,0,4,0,17,0,161,0,45,1,201,1,97,2,254,2,125,3,6,4,145,4,44,5,184,5,72,6,+ 216,6,113,7,4,8,154,8,65,9,231,9,255,16,197,16,0,16,255,111,143,111,0,18,176,111,1,32,16,1,16,111,+ 133,32,2,75,32,75,135,32,130,75,4,32,75,32,32,75,129,32,5,54,32,75,32,32,75,130,32,129,75,129,32,0,+ 75,131,32,1,75,54,130,32,0,54,129,32,0,75,130,32,7,75,32,32,75,32,32,75,32,129,75,3,32,54,54,32,+ 129,75,1,32,32,129,75,133,32,1,75,75,133,32,4,75,32,32,54,75,131,32,130,75,1,32,54,129,32,0,75,138,+ 32,129,75,4,32,54,32,32,54,129,32,0,54,129,32,0,75,130,32,2,54,32,75,135,32,0,54,130,32,1,54,54,+ 130,32,1,54,54,135,32,4,54,75,107,186,16,3,16,111,32,75,129,32,0,75,132,32,1,54,32,129,75,2,32,32,+ 54,141,32,129,75,3,32,32,75,75,134,32,1,54,32,132,75,129,32,1,75,75,132,32,2,54,75,54,129,32,0,54,+ 129,32,10,236,32,75,75,32,32,75,107,75,32,75,129,32,3,75,75,32,54,130,32,2,236,54,32,129,75,132,32,3,+ 75,75,32,54,136,32,3,75,32,32,54,130,32,0,75,129,32,1,54,32,129,75,129,32,6,75,107,75,75,32,54,32,+ 130,75,2,32,32,75,130,32,5,75,32,32,54,32,75,134,32,0,54,141,32,2,75,27,16,4,16,111,32,32,75,133,+ 32,6,75,75,32,75,107,75,32,130,75,4,107,75,32,32,54,133,32,1,75,54,133,32,0,75,129,32,4,75,75,107,+ 75,32,129,75,130,32,0,75,131,32,7,75,75,32,32,75,75,32,32,129,54,9,32,75,75,32,32,54,32,75,32,32,+ 129,75,133,32,0,75,132,32,0,75,131,32,5,54,32,32,54,32,54,129,32,2,75,32,32,129,75,135,32,0,54,129,+ 75,134,32,0,54,129,32,0,75,129,32,4,54,32,32,75,75,130,32,7,75,107,75,75,32,54,32,75,133,32,2,54,+ 32,75,129,32,0,75,129,32,11,54,32,75,32,236,32,32,54,75,75,27,16,1,16,111,129,32,0,75,129,32,1,75,+ 75,130,32,0,54,135,32,2,75,32,32,131,75,3,32,54,32,54,130,32,6,75,32,32,75,32,75,107,130,75,3,32,+ 75,107,75,133,32,3,54,32,75,75,129,32,8,75,54,32,54,236,54,32,32,75,132,32,1,75,75,130,32,0,75,132,+ 32,129,75,3,32,32,75,54,129,32,4,54,32,54,32,32,129,75,131,32,4,75,75,32,32,54,130,32,1,75,32,129,+ 75,129,32,0,54,129,32,0,75,130,32,2,75,107,75,130,32,2,75,32,54,131,32,0,75,138,32,130,75,0,32,133,+ 75,130,32,0,75,129,32,4,75,75,32,217,16,1,16,111,133,32,0,75,132,32,0,75,131,32,0,75,129,32,2,75,+ 107,75,133,32,5,54,32,32,54,32,75,134,32,2,75,32,54,129,32,129,75,130,32,2,75,107,75,131,32,2,75,32,+ 54,129,32,2,54,32,75,131,32,1,54,32,129,75,131,32,2,75,32,32,129,75,2,32,32,54,129,32,5,75,75,32,+ 32,75,75,129,32,3,75,32,75,75,136,32,0,54,130,32,3,75,75,32,32,129,54,4,32,75,75,32,75,129,32,2,+ 75,32,32,129,75,2,32,75,107,130,75,0,32,129,75,134,32,129,75,11,107,75,32,32,75,32,32,54,75,75,32,32,+ 129,75,6,32,32,75,32,75,27,16,12,16,111,32,75,32,32,54,54,32,32,54,32,75,137,32,2,75,107,75,129,32,+ 4,75,32,32,75,107,129,75,129,32,0,54,134,32,2,54,236,54,131,32,1,54,54,129,32,8,54,32,75,32,75,107,+ 75,32,54,130,32,1,54,54,133,32,2,54,32,54,130,32,2,75,107,107,138,32,1,54,32,129,75,132,32,0,54,129,+ 32,1,54,236,134,32,0,75,141,32,1,54,32,129,75,133,32,0,54,131,32,2,54,32,54,135,32,0,54,135,32,0,+ 54,132,32,4,75,75,32,27,16,5,16,111,75,32,75,75,131,32,1,54,32,129,75,134,32,2,75,32,75,129,32,129,+ 75,4,32,32,54,32,75,131,32,0,54,132,32,1,75,75,130,32,2,75,32,54,131,32,0,75,131,32,132,75,141,32,+ 129,75,132,32,129,75,6,32,75,107,75,75,32,54,129,32,1,54,32,129,75,0,32,131,75,130,32,5,75,75,32,54,+ 32,54,134,32,2,75,32,54,132,32,2,75,32,54,134,32,3,75,75,32,75,130,32,1,75,75,129,32,10,75,32,75,+ 107,107,75,32,32,236,32,75,133,32,6,54,32,75,75,32,27,16,1,16,111,137,32,0,54,131,32,0,75,129,32,129,+ 75,7,32,32,54,54,32,32,54,54,129,32,3,54,236,32,32,130,75,14,32,32,54,236,236,54,32,75,75,32,32,54,+ 32,32,54,130,32,131,75,134,32,0,75,135,32,1,75,75,130,32,5,75,107,75,32,32,54,133,32,130,75,4,32,75,+ 32,32,54,129,32,3,75,107,32,54,130,32,0,236,129,32,2,54,32,32,129,75,141,32,0,75,129,32,5,54,32,75,+ 75,32,32,130,54,1,32,236,134,32,0,75,133,32,1,75,32,129,75,2,32,32,54,132,32,2,75,152,16,7,16,111,+ 32,32,236,32,54,54,129,32,0,75,129,32,3,54,75,32,54,131,32,1,75,75,132,32,0,75,132,32,0,75,132,32,+ 0,75,130,32,0,54,130,32,3,54,32,107,75,131,32,0,75,129,32,0,54,130,32,8,75,32,75,32,54,54,236,236,+ 54,129,32,0,54,136,32,2,75,32,54,129,32,5,54,32,32,75,32,32,129,75,129,32,2,54,32,75,130,32,7,75,+ 32,32,54,54,32,75,75,135,32,1,75,54,137,32,0,75,129,32,5,75,107,75,75,107,75,129,32,0,54,129,75,129,+ 32,0,75,130,32,6,75,32,75,107,75,32,75,134,32,2,54,32,32,129,75,1,27,16,1,16,111,132,32,8,75,75,+ 32,32,75,107,75,32,32,129,75,135,32,1,54,236,129,32,2,54,32,54,133,32,0,75,146,32,0,75,130,32,0,54,+ 135,32,11,75,75,32,32,75,75,32,54,32,54,75,75,129,32,0,54,135,32,8,75,32,32,54,32,32,75,75,54,129,+ 32,130,75,11,32,75,75,32,32,75,32,75,75,32,32,75,137,32,1,75,75,131,32,11,75,32,32,75,32,32,75,54,+ 75,32,32,75,129,32,0,75,133,32,1,54,32,129,75,1,32,32,129,75,8,32,75,32,32,75,32,32,75,54,130,32,+ 2,54,217,16,1,16,111,133,32,131,75,5,107,107,32,54,32,75,131,32,129,75,4,32,32,54,32,32,129,75,142,32,+ 0,54,133,32,2,236,54,54,135,32,0,54,129,32,0,75,129,32,4,54,54,32,32,75,129,32,13,75,32,75,32,32,+ 54,32,75,32,32,75,107,32,32,130,75,130,32,6,54,32,75,32,32,75,75,132,32,0,54,132,32,0,75,129,32,0,+ 75,131,32,1,75,75,129,32,3,75,75,32,32,129,54,11,32,75,107,75,32,32,75,32,32,236,54,32,129,54,131,32,+ 4,75,32,32,75,75,135,32,129,75,2,32,75,75,131,32,2,75,152,16,1,16,111,129,32,1,75,75,129,32,0,75,+ 132,32,129,75,2,32,32,54,130,32,4,75,75,32,32,75,133,32,0,54,130,75,1,32,75,130,32,129,75,129,32,1,+ 75,75,129,32,1,75,75,134,32,1,75,75,135,32,129,75,129,32,7,75,75,32,75,107,75,32,54,139,32,131,75,132,+ 32,3,54,32,32,54,131,32,1,75,32,129,75,1,107,75,131,32,0,54,129,32,130,75,1,32,236,133,32,4,75,32,+ 32,75,32,132,75,3,32,75,32,75,129,32,6,75,32,32,236,32,32,54,129,32,4,75,107,75,32,32,130,75,4,107,+ 75,32,27,16,3,16,111,54,54,129,32,0,75,132,32,1,54,54,140,32,3,75,32,32,75,130,32,2,75,107,75,134,+ 32,0,75,131,32,0,75,131,32,129,75,132,32,1,54,32,129,75,0,54,129,32,3,75,75,32,54,131,32,0,54,134,+ 32,6,75,32,75,107,32,236,54,130,32,4,236,54,54,32,32,129,75,5,107,107,75,32,32,54,130,32,2,54,54,32,+ 129,75,6,32,32,75,75,32,32,75,131,32,2,75,75,32,129,75,130,32,0,75,131,32,4,75,32,32,236,236,129,32,+ 1,75,75,131,32,0,54,129,32,0,75,129,32,130,75,0,32,129,75,8,32,32,75,32,236,32,32,27,16,1,16,111,+ 136,32,129,75,129,32,12,75,32,32,54,32,32,75,32,32,54,54,32,75,130,32,129,75,129,32,5,75,32,32,54,32,+ 54,130,32,129,75,129,32,0,54,130,32,0,54,133,32,0,75,132,32,6,75,32,32,75,75,32,54,130,32,3,75,75,+ 32,75,132,32,3,75,32,32,107,129,75,131,32,3,75,32,32,54,138,32,129,75,2,107,75,54,134,32,0,75,130,32,+ 5,75,32,75,75,32,54,129,32,2,54,32,75,131,32,2,54,32,75,131,32,130,75,0,32,130,75,1,32,32,129,75,+ 8,54,54,32,32,75,32,32,54,54,130,32,2,54,217,16,30,16,111,32,75,75,32,32,75,107,75,32,54,32,75,75,+ 32,236,32,32,75,75,32,54,32,75,32,54,32,54,32,32,131,75,3,32,107,75,32,129,75,130,32,9,75,107,75,54,+ 32,75,75,32,54,54,133,32,0,54,134,32,1,54,32,129,75,5,32,32,54,32,75,75,130,32,1,54,54,134,32,0,+ 54,130,32,0,75,130,32,7,54,32,32,54,54,32,32,75,130,32,2,75,107,75,129,32,0,54,133,32,0,75,136,32,+ 129,54,1,32,75,134,32,5,75,75,32,32,75,75,131,32,2,75,32,32,131,75,130,32,1,75,54,129,32,130,75,132,+ 32,3,54,32,217,16,1,16,54,129,27,8,152,27,27,186,27,186,186,137,186,136,27,3,217,217,152,186,129,27,129,152,+ 3,186,95,95,217,129,27,1,217,217,133,27,0,186,132,27,7,186,186,27,27,217,27,152,27,129,217,1,27,27,129,217,+ 130,27,16,186,27,217,217,27,27,217,27,27,152,27,217,217,152,152,27,27,129,217,4,27,186,152,217,217,131,27,7,217,+ 217,27,27,152,152,217,95,131,217,1,186,186,129,27,3,217,217,95,217,131,27,7,186,27,217,95,217,27,152,27,130,217,+ 129,27,7,186,27,217,95,217,27,27,186,129,27,12,152,186,186,27,186,186,27,217,27,186,186,152,186,131,27,0,217,130,+ 27,4,186,27,217,217,95,129,217,134,27,0,16,9,16,75,27,27,217,95,217,27,27,186,131,27,2,217,27,217,130,27,+ 9,186,152,27,217,27,186,27,27,217,186,130,217,2,27,152,152,137,27,21,186,217,217,27,27,217,217,186,186,217,27,137,+ 186,27,152,186,27,27,186,186,27,27,129,217,3,27,186,27,217,130,27,0,217,130,27,2,152,186,27,130,186,3,27,27,+ 186,137,130,27,0,217,130,27,7,186,27,217,27,186,27,27,186,136,27,21,217,217,27,27,217,95,217,27,27,217,27,152,+ 186,27,27,217,217,27,217,186,27,27,130,217,1,95,217,129,27,129,217,8,27,186,27,217,217,27,27,152,186,130,217,4,+ 186,186,152,186,186,135,27,0,186,131,27,6,217,27,27,217,27,186,16,255,16,197,16,0,0,4,0,13,0,126,0,245,+ 0,112,1,236,1,100,2,174,2,27,3,146,3,17,4,121,4,236,4,106,5,225,5,88,6,201,6,210,6,219,6,255,+ 16,197,16,0,16,255,153,194,153,1,59,16,1,16,153,133,59,2,66,59,66,135,59,129,66,5,59,59,66,59,59,66,+ 131,59,3,66,59,59,66,130,59,1,66,66,136,59,1,66,225,134,59,0,66,130,59,19,66,59,59,66,59,59,66,59,+ 59,66,66,59,225,225,59,66,59,66,59,59,129,66,133,59,0,66,138,59,0,66,131,59,3,66,59,66,66,131,59,0,+ 66,138,59,2,66,59,66,130,59,0,225,138,59,2,225,59,66,147,59,0,225,135,59,4,225,66,66,92,16,3,16,153,+ 59,66,138,59,1,66,66,145,59,129,66,129,59,0,66,134,59,2,225,59,59,131,66,130,59,0,66,133,59,0,66,130,+ 59,0,225,129,59,2,225,59,66,129,59,129,66,1,59,66,129,59,1,66,66,132,59,4,225,225,59,59,66,134,59,2,+ 66,59,225,136,59,0,66,133,59,0,66,129,59,3,225,59,59,66,130,59,129,66,4,59,59,225,59,59,129,66,2,59,+ 59,66,130,59,0,66,130,59,0,66,134,59,0,225,141,59,2,66,92,16,4,16,153,59,59,66,134,59,1,66,59,129,+ 66,3,59,59,66,59,129,66,136,59,0,66,134,59,0,66,129,59,130,66,3,59,59,66,66,130,59,0,66,132,59,0,+ 66,129,59,0,66,129,59,3,225,225,59,66,131,59,4,66,59,59,66,66,134,59,0,66,132,59,0,66,140,59,2,66,+ 59,59,129,66,136,59,129,66,138,59,0,66,132,59,0,66,131,59,129,66,130,59,0,66,133,59,2,225,59,66,129,59,+ 0,66,131,59,9,66,59,225,59,59,225,66,66,92,16,1,16,153,129,59,0,66,129,59,1,66,66,143,59,131,66,3,+ 59,225,59,225,130,59,0,66,130,59,129,66,3,59,66,66,59,129,66,135,59,1,66,66,133,59,0,225,129,59,0,66,+ 132,59,1,66,66,130,59,0,66,132,59,1,66,66,129,59,0,66,132,59,2,225,59,59,129,66,131,59,1,66,66,136,+ 59,1,66,66,133,59,0,66,130,59,129,66,130,59,0,66,133,59,0,66,138,59,130,66,129,59,129,66,1,59,66,130,+ 59,0,66,129,59,4,66,59,59,92,16,1,16,153,133,59,0,66,132,59,0,66,131,59,0,66,129,59,129,66,138,59,+ 0,66,140,59,129,66,130,59,129,66,131,59,0,66,133,59,0,66,131,59,0,225,129,59,0,66,134,59,1,66,66,129,+ 59,0,225,129,59,5,66,66,59,59,66,66,131,59,1,66,66,142,59,4,66,59,59,225,225,129,59,0,66,131,59,0,+ 66,129,59,2,66,66,59,131,66,3,59,59,66,66,136,59,130,66,132,59,3,66,66,59,59,129,66,6,59,59,66,59,+ 66,92,16,3,16,153,59,66,132,59,2,225,59,66,137,59,129,66,132,59,130,66,130,59,0,225,134,59,1,225,225,139,+ 59,4,66,59,59,66,66,132,59,0,225,134,59,2,225,59,225,131,59,1,66,66,140,59,2,66,59,66,136,59,1,225,+ 225,152,59,129,66,168,59,4,66,66,59,92,16,5,16,153,66,59,59,66,134,59,1,66,66,136,59,0,66,129,59,7,+ 66,59,66,59,59,225,59,66,138,59,0,66,133,59,0,225,131,59,0,66,131,59,5,66,66,59,59,66,66,141,59,129,+ 66,132,59,129,66,0,59,130,66,133,59,0,66,130,59,130,66,130,59,1,66,66,138,59,0,66,145,59,3,66,66,59,+ 66,130,59,1,66,66,131,59,129,66,129,59,2,225,59,66,133,59,6,225,59,66,59,59,92,16,1,16,153,143,59,0,+ 66,130,59,4,66,66,59,59,225,130,59,0,225,129,59,3,225,225,59,59,130,66,129,59,129,225,2,59,66,66,136,59,+ 1,66,59,129,66,134,59,0,66,135,59,1,66,66,130,59,129,66,136,59,130,66,4,59,66,59,59,225,129,59,3,66,+ 66,59,225,130,59,0,225,133,59,1,66,66,141,59,0,66,132,59,2,66,59,59,129,225,2,59,59,225,134,59,0,66,+ 133,59,3,66,59,59,66,129,59,0,225,132,59,2,66,92,16,7,16,153,59,59,225,59,59,225,129,59,0,66,130,59,+ 2,66,59,225,132,59,0,66,132,59,0,66,132,59,0,66,132,59,0,66,130,59,0,225,130,59,3,225,59,66,66,131,+ 59,0,66,129,59,0,225,130,59,0,66,129,59,131,225,129,59,0,225,136,59,2,66,59,225,129,59,0,225,131,59,0,+ 66,133,59,0,66,130,59,3,66,59,59,225,129,59,0,66,135,59,1,66,225,141,59,131,66,131,59,129,66,129,59,0,+ 66,132,59,129,66,1,59,66,137,59,4,66,59,66,92,16,1,16,153,132,59,3,66,66,59,59,129,66,129,59,1,66,+ 66,135,59,1,225,225,160,59,0,66,140,59,1,66,66,129,59,0,66,129,59,1,225,66,143,59,4,225,59,59,66,66,+ 130,59,129,66,9,59,59,66,66,59,59,66,59,66,66,140,59,1,66,66,131,59,7,66,59,59,66,59,59,66,225,129,+ 59,0,66,137,59,8,225,59,59,66,66,59,59,66,66,131,59,0,66,135,59,1,92,16,1,16,153,134,59,2,66,66,+ 59,129,66,1,59,225,133,59,129,66,131,59,0,66,152,59,0,225,141,59,0,66,129,59,0,225,133,59,2,66,59,66,+ 130,59,6,66,59,59,66,66,59,59,129,66,133,59,4,66,59,59,66,66,139,59,0,66,129,59,0,66,131,59,1,66,+ 66,130,59,0,66,129,59,2,225,59,59,129,66,131,59,4,225,59,59,225,225,132,59,0,66,129,59,0,66,135,59,129,+ 66,2,59,59,66,131,59,2,66,92,16,1,16,153,130,59,0,66,129,59,0,66,133,59,0,66,134,59,4,66,66,59,+ 59,66,133,59,0,225,130,66,1,59,66,131,59,1,66,66,129,59,1,66,66,129,59,1,66,66,135,59,0,66,136,59,+ 0,66,130,59,2,66,66,59,129,66,1,59,225,139,59,131,66,135,59,0,225,131,59,1,66,59,131,66,135,59,129,66,+ 2,59,59,225,136,59,2,66,59,59,129,66,5,59,66,59,66,59,66,129,59,6,66,59,59,225,59,59,225,129,59,129,+ 66,129,59,131,66,2,59,92,16,3,16,153,59,225,152,59,3,66,59,59,66,130,59,129,66,134,59,0,66,131,59,0,+ 66,131,59,129,66,134,59,129,66,0,225,129,59,1,66,66,142,59,6,66,59,66,66,59,225,225,130,59,0,225,130,59,+ 132,66,133,59,2,225,225,59,129,66,129,59,3,66,59,59,66,131,59,0,66,129,59,0,66,131,59,0,66,131,59,4,+ 66,59,59,225,225,129,59,1,66,66,135,59,0,66,129,59,130,66,2,59,59,66,129,59,6,66,59,225,59,59,92,16,+ 1,16,153,137,59,0,66,130,59,0,66,134,59,3,225,59,59,66,131,59,1,66,66,132,59,0,225,133,59,0,66,135,+ 59,0,225,133,59,0,66,132,59,0,66,129,59,0,66,132,59,3,66,59,59,66,135,59,129,66,132,59,3,66,59,59,+ 225,138,59,131,66,135,59,0,66,130,59,3,66,59,59,66,131,59,2,225,59,66,133,59,0,66,131,59,130,66,1,59,+ 59,129,66,1,59,59,129,66,8,59,225,59,59,66,59,59,225,225,131,59,1,92,16,6,16,153,59,59,66,59,59,129,+ 66,130,59,8,66,59,225,59,59,66,66,59,225,131,59,0,225,129,59,130,66,5,59,66,66,59,59,66,131,59,129,66,+ 129,59,3,66,59,59,225,145,59,7,66,66,59,59,225,59,59,66,153,59,1,225,225,133,59,129,66,137,59,0,66,136,+ 59,0,225,129,59,0,66,135,59,4,66,59,59,66,66,131,59,6,66,59,59,66,66,59,66,131,59,0,66,130,59,130,+ 66,132,59,3,225,59,92,16,1,16,59,255,92,194,92,0,16,1,16,59,255,92,194,92,0,16,255,16,197,16,0,0,+ 4,0,120,0,10,1,156,1,64,2,225,2,136,3,252,3,143,4,41,5,205,5,84,6,231,6,134,7,40,8,193,8,+ 99,9,215,9,106,10,255,16,197,16,3,16,99,99,98,132,65,3,195,65,98,99,136,65,2,99,98,99,129,65,3,99,+ 65,65,99,129,98,0,99,129,65,0,195,134,65,1,195,77,129,65,0,99,129,65,0,195,129,65,8,195,65,98,65,99,+ 98,99,65,195,130,65,0,57,134,65,2,195,65,195,130,65,2,99,98,98,140,65,4,99,99,98,99,99,130,65,0,195,+ 129,65,1,195,77,134,65,0,99,141,65,2,195,65,98,129,99,150,65,0,195,141,65,5,99,98,99,65,65,16,0,16,+ 133,65,3,99,99,65,99,135,65,2,99,99,98,129,99,2,65,65,99,131,65,129,99,7,98,99,65,65,99,98,98,99,+ 129,65,0,99,130,65,2,99,98,195,130,65,4,195,65,65,99,99,130,65,22,99,65,65,99,65,65,99,65,99,98,99,+ 65,195,195,65,99,99,98,65,65,99,98,99,133,65,1,98,99,133,65,0,99,129,65,1,98,99,130,65,5,99,99,98,+ 98,65,195,129,65,1,98,99,137,65,7,98,99,99,65,195,65,65,57,133,65,7,99,65,65,99,99,195,65,98,132,65,+ 0,99,138,65,2,99,195,195,135,65,4,195,99,98,98,16,3,16,99,99,98,129,65,0,99,132,65,4,195,65,99,98,+ 99,142,65,1,99,99,129,98,3,65,65,99,98,134,65,2,195,65,99,131,98,5,99,65,65,99,98,99,132,65,0,99,+ 130,65,0,195,129,65,7,57,65,98,99,65,65,99,98,130,99,3,65,99,98,98,132,65,5,57,57,65,99,98,99,129,+ 65,6,99,65,65,99,98,65,195,135,65,4,99,98,99,65,195,129,65,1,99,99,129,65,4,195,65,99,98,99,129,65,+ 13,99,98,99,99,65,195,65,99,98,99,98,99,65,99,130,65,0,99,130,65,1,98,99,133,65,0,57,141,65,2,98,+ 98,16,0,16,129,65,1,99,99,132,65,129,99,10,98,98,99,65,99,98,99,99,98,98,99,134,65,2,99,99,195,133,+ 65,14,98,99,65,65,99,99,98,99,65,99,98,99,65,99,65,129,99,130,65,7,99,98,99,65,99,99,65,65,129,195,+ 6,65,98,99,65,65,195,65,129,99,5,98,98,99,65,65,99,129,65,2,99,98,99,131,65,1,99,99,130,65,3,195,+ 65,65,195,131,65,2,99,65,65,130,99,135,65,2,99,99,98,134,65,0,195,129,65,0,99,129,65,4,195,65,99,98,+ 99,130,65,3,99,98,98,99,129,65,1,99,99,132,65,2,195,99,99,129,65,2,98,99,99,129,65,9,99,99,57,65,+ 65,195,99,98,98,16,0,16,130,65,0,98,129,65,2,99,98,99,139,65,4,99,65,65,99,99,129,98,3,65,195,65,+ 57,129,65,15,99,99,65,65,99,65,99,98,99,99,98,98,99,99,98,99,133,65,7,195,65,99,99,65,65,99,99,129,+ 65,0,77,129,65,0,99,131,65,3,99,98,98,99,129,65,1,98,99,130,65,9,99,98,98,99,65,65,99,195,65,99,+ 129,65,2,195,65,99,129,98,130,65,2,99,98,99,133,65,5,99,65,99,98,99,99,130,65,129,99,130,65,2,99,98,+ 99,130,65,0,99,133,65,1,99,99,134,65,5,99,65,65,98,99,98,130,99,2,98,99,98,129,99,129,65,4,98,99,+ 65,99,98,129,99,0,16,2,16,99,99,132,65,1,98,99,130,65,1,99,98,130,65,1,99,99,129,65,129,98,133,65,+ 6,195,65,65,195,65,98,99,133,65,2,99,65,195,129,65,2,98,98,99,129,65,3,99,98,98,99,131,65,2,99,65,+ 195,129,65,4,195,65,98,65,99,129,65,5,195,65,99,99,98,99,130,65,8,99,65,65,98,98,99,65,65,195,129,65,+ 8,99,99,65,99,98,98,99,65,65,130,99,141,65,11,99,98,99,65,57,195,195,65,99,98,65,99,129,65,16,98,65,+ 65,99,98,98,99,99,98,98,99,98,99,99,98,98,99,129,65,0,99,130,65,0,99,129,98,3,99,65,65,99,129,65,+ 8,98,99,65,65,99,99,98,99,65,130,99,0,16,3,16,99,99,98,132,65,3,195,65,98,99,136,65,2,99,98,99,+ 129,65,3,99,65,65,99,129,98,0,99,129,65,0,195,134,65,1,195,77,129,65,0,99,129,65,0,195,129,65,8,195,+ 65,98,65,99,98,99,65,195,130,65,0,57,134,65,2,195,65,195,130,65,2,99,98,98,140,65,4,99,99,98,99,99,+ 130,65,0,195,129,65,1,195,77,134,65,0,99,141,65,2,195,65,98,129,99,150,65,0,195,141,65,5,99,98,99,65,+ 65,16,0,16,130,99,1,98,99,132,65,3,99,98,99,99,133,65,13,99,65,99,99,65,99,98,99,99,65,65,57,65,+ 98,132,65,7,99,65,65,99,65,99,98,99,130,65,2,99,99,195,130,65,129,99,129,65,6,99,98,98,99,99,98,99,+ 141,65,129,99,132,65,4,98,99,98,99,99,129,98,131,65,1,195,65,129,99,5,65,99,98,98,99,99,129,65,129,99,+ 129,65,0,195,134,65,1,98,99,133,65,0,99,136,65,9,98,99,99,98,99,65,65,99,98,98,129,65,11,99,65,99,+ 98,98,99,99,65,57,65,98,99,130,65,8,99,65,195,65,98,99,65,65,16,0,16,130,65,0,99,133,65,0,195,130,+ 65,1,99,98,129,65,10,99,98,99,65,65,195,195,65,65,195,195,129,65,4,195,57,65,65,98,129,99,129,65,11,77,+ 57,195,65,99,99,65,99,195,65,65,195,129,65,129,99,2,98,98,99,134,65,0,99,134,65,2,99,98,98,130,65,2,+ 99,98,99,136,65,8,98,98,99,99,65,99,65,65,195,129,65,3,99,98,65,195,130,65,0,77,129,65,2,195,65,65,+ 129,99,140,65,129,99,7,65,65,195,65,99,98,65,65,129,195,2,65,65,57,133,65,5,99,98,99,65,65,99,129,65,+ 7,99,65,99,98,99,65,65,57,132,65,2,98,98,16,7,16,99,99,65,57,65,65,57,129,65,0,99,130,65,2,99,+ 65,57,131,65,1,99,98,129,65,3,99,65,65,99,132,65,0,99,131,65,1,99,98,130,65,0,195,130,65,3,57,65,+ 98,99,131,65,0,99,129,65,0,57,130,65,129,99,5,65,57,195,57,77,195,129,65,0,57,135,65,3,99,98,65,195,+ 129,65,6,195,65,65,99,65,99,98,129,99,129,65,4,99,98,99,65,65,129,99,7,65,195,65,65,99,98,65,99,129,+ 65,0,99,129,65,1,99,195,136,65,1,99,99,129,65,5,99,98,99,99,98,99,130,65,2,98,99,98,129,65,0,99,+ 130,65,7,99,65,99,98,99,99,98,99,136,65,4,99,99,98,98,16,0,16,133,65,11,99,98,99,65,99,98,98,65,+ 65,99,98,99,132,65,4,99,65,65,57,57,139,65,0,99,146,65,0,99,139,65,6,99,98,98,99,65,99,98,129,65,+ 2,195,99,99,129,65,0,195,135,65,8,99,99,65,195,65,65,98,99,195,129,65,1,99,98,129,99,10,98,98,99,65,+ 98,65,98,98,99,65,99,137,65,1,98,98,130,65,1,99,98,129,99,7,65,65,98,195,99,65,65,99,129,65,0,99,+ 133,65,6,195,65,99,98,99,65,65,129,99,4,65,99,65,99,98,129,99,131,65,2,195,195,16,0,16,134,65,10,99,+ 98,98,99,99,98,98,65,195,65,99,131,65,10,98,99,99,65,65,195,65,99,98,99,99,142,65,0,195,133,65,2,57,+ 65,195,139,65,4,99,99,65,65,195,129,65,0,99,129,65,2,98,65,99,130,65,6,99,65,65,99,98,99,65,129,98,+ 0,99,131,65,5,99,98,99,65,99,99,139,65,0,99,129,65,7,98,99,65,65,99,65,99,99,129,65,20,99,98,65,+ 65,195,57,195,65,99,98,99,65,65,99,65,65,77,195,65,195,195,131,65,6,99,98,99,65,99,98,99,133,65,7,99,+ 99,98,99,65,99,98,99,130,65,2,99,99,16,0,16,130,65,1,99,98,129,65,1,99,99,131,65,2,99,98,99,133,+ 65,4,98,98,65,99,99,131,65,8,99,99,195,98,99,98,98,65,99,130,65,13,99,98,99,65,65,99,98,98,99,65,+ 65,99,98,99,133,65,1,99,98,135,65,13,99,98,99,65,65,99,98,99,65,98,98,99,65,195,132,65,0,99,132,65,+ 4,99,98,99,98,99,135,65,0,195,130,65,3,99,99,65,99,129,98,0,99,134,65,129,99,3,98,99,65,57,132,65,+ 7,99,99,65,65,98,99,99,98,129,99,25,98,65,98,65,99,99,65,65,99,99,65,57,65,65,195,65,99,65,99,98,+ 98,99,65,99,98,99,129,98,2,99,99,16,3,16,65,65,195,129,65,0,99,131,65,0,99,133,65,0,99,134,65,4,+ 99,65,65,98,99,129,65,3,99,98,98,99,133,65,0,99,130,65,1,99,99,130,65,3,99,98,99,99,132,65,5,195,+ 65,99,99,98,195,129,65,1,99,98,140,65,8,99,65,99,65,99,98,65,57,195,130,65,7,57,65,195,65,99,98,98,+ 99,129,98,2,65,65,195,130,65,13,195,195,65,98,99,98,99,65,99,98,65,65,98,99,130,65,5,98,99,65,99,98,+ 99,129,65,1,99,99,130,65,10,99,99,65,65,77,57,65,65,99,98,99,131,65,0,195,129,65,4,99,65,65,99,98,+ 131,99,6,98,99,65,65,99,65,57,129,65,0,16,0,16,135,65,9,99,65,99,98,99,65,65,99,98,99,129,65,8,+ 99,99,65,65,57,65,65,99,99,129,65,2,99,98,99,129,65,5,99,65,65,195,65,195,130,65,2,99,98,99,134,65,+ 0,195,133,65,0,99,132,65,4,99,99,65,99,98,132,65,0,98,131,99,6,65,99,65,65,99,65,65,129,98,0,99,+ 131,65,3,99,65,65,195,137,65,5,99,98,99,99,98,98,135,65,0,99,129,65,4,99,98,99,99,98,131,65,2,57,+ 65,99,133,65,1,98,99,130,65,22,99,99,98,99,65,99,99,98,98,99,99,98,99,99,65,195,65,65,99,65,65,57,+ 195,130,65,2,195,195,16,9,16,65,65,99,99,65,99,99,98,99,129,65,29,99,99,65,77,65,65,99,98,65,195,65,+ 99,65,195,65,195,65,65,99,98,98,99,99,65,98,99,65,99,98,99,129,65,0,99,129,98,6,65,65,99,98,99,65,+ 195,142,65,10,195,65,99,99,98,99,65,195,65,99,98,130,65,1,195,195,134,65,0,195,130,65,0,99,133,65,4,195,+ 195,65,65,99,129,65,3,99,99,98,99,129,65,0,195,132,65,1,99,98,136,65,8,57,195,65,65,98,99,65,65,99,+ 130,65,6,99,98,65,65,98,98,99,130,65,7,99,65,65,98,99,99,98,99,129,65,9,99,99,195,65,65,99,98,99,+ 98,99,132,65,3,195,65,65,16,3,16,99,99,98,132,65,3,195,65,98,99,136,65,2,99,98,99,129,65,3,99,65,+ 65,99,129,98,0,99,129,65,0,195,134,65,1,195,77,129,65,0,99,129,65,0,195,129,65,8,195,65,98,65,99,98,+ 99,65,195,130,65,0,57,134,65,2,195,65,195,130,65,2,99,98,98,140,65,4,99,99,98,99,99,130,65,0,195,129,+ 65,1,195,77,134,65,0,99,141,65,2,195,65,98,129,99,150,65,0,195,141,65,5,99,98,99,65,65,16,0,16,130,+ 99,1,98,99,132,65,3,99,98,99,99,133,65,13,99,65,99,99,65,99,98,99,99,65,65,57,65,98,132,65,7,99,+ 65,65,99,65,99,98,99,130,65,2,99,99,195,130,65,129,99,129,65,6,99,98,98,99,99,98,99,141,65,129,99,132,+ 65,4,98,99,98,99,99,129,98,131,65,1,195,65,129,99,5,65,99,98,98,99,99,129,65,129,99,129,65,0,195,134,+ 65,1,98,99,133,65,0,99,136,65,9,98,99,99,98,99,65,65,99,98,98,129,65,11,99,65,99,98,98,99,99,65,+ 57,65,98,99,130,65,8,99,65,195,65,98,99,65,65,16,255,16,197,16,0,0,10,0,20,0,26,0,32,0,38,0,+ 46,0,56,0,64,0,8,0,0,16,16,0,16,16,0,0,8,0,16,98,98,16,98,98,16,0,0,16,133,98,0,16,+ 0,16,133,98,0,16,0,16,133,98,0,16,1,0,16,131,98,1,16,0,2,0,0,16,129,98,2,16,0,0,129,0,+ 2,16,98,16,129,0,130,0,0,16,130,0,0,0,2,0,12,0,20,0,26,0,32,0,40,0,46,0,52,0,135,0,+ 8,0,0,130,130,0,130,130,0,0,2,0,130,209,131,130,0,0,0,0,133,130,0,0,0,0,133,130,0,0,1,0,+ 0,131,130,1,0,0,129,0,129,130,129,0,130,0,0,130,130,0,135,0,0,0,2,0,9,0,17,0,23,0,29,0,+ 36,0,43,0,49,0,135,0,3,0,0,130,130,131,0,4,0,130,209,130,130,130,0,0,0,130,130,130,0,0,0,130,+ 130,130,0,1,0,0,129,130,130,0,129,0,1,130,130,130,0,130,0,0,130,130,0,135,0,0,0,7,0,15,0,23,+ 0,31,0,40,0,50,0,58,0,64,0,3,0,0,16,16,131,0,4,0,16,98,98,16,130,0,0,16,130,98,0,16,+ 129,0,0,16,131,98,2,16,0,0,1,0,16,130,98,2,16,0,0,2,0,0,16,129,98,2,16,0,0,129,0,129,+ 16,2,98,16,16,132,0,2,16,98,16,132,0,2,16,16,0,0,0,2,0,9,0,17,0,26,0,35,0,43,0,49,+ 0,54,0,135,0,3,0,0,130,130,131,0,4,0,130,156,130,47,130,0,5,0,130,130,47,68,47,129,0,5,0,0,+ 221,114,68,68,129,0,129,0,2,221,114,114,129,0,132,0,2,164,0,0,133,0,1,56,0,135,0,0,0,2,0,8,+ 0,16,0,24,0,32,0,39,0,45,0,50,0,135,0,129,0,0,130,131,0,4,0,0,164,130,130,130,0,129,0,2,+ 204,130,47,129,0,129,0,2,130,130,68,129,0,130,0,1,221,114,129,0,132,0,2,164,0,0,133,0,1,56,0,135,+ 0,0,0,6,0,16,0,26,0,36,0,46,0,54,0,64,0,74,0,129,0,129,16,129,0,2,0,0,16,129,187,2,+ 16,0,0,2,0,16,187,129,0,2,187,16,0,8,16,187,0,244,244,0,0,139,16,3,16,187,0,244,129,0,1,139,+ 16,1,16,187,131,0,1,139,16,2,0,16,187,129,0,2,139,16,0,2,0,0,16,129,139,2,16,0,0,129,0,129,+ 16,129,0,0,0,6,0,16,0,26,0,35,0,37,0,44,0,53,0,63,0,130,0,0,187,130,0,0,187,129,0,4,+ 187,0,0,187,0,8,16,187,0,0,16,0,187,16,0,1,0,16,130,0,2,16,0,0,135,0,0,187,132,0,1,187,+ 187,2,16,0,187,130,0,1,16,16,2,0,187,16,129,0,2,187,0,0,1,0,16,130,0,2,16,0,0,0,0,8,+ 0,155,0,45,1,192,1,0,0,255,93,177,93,0,0,2,93,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,+ 126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,+ 126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,5,251,202,143,143,202,251,131,78,4,251,+ 202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,+ 202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,2,251,+ 202,93,2,93,78,143,131,188,4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,+ 4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,+ 4,143,78,126,78,143,131,188,0,143,130,78,0,143,131,188,4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,+ 4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,+ 4,143,78,126,78,143,131,188,4,143,78,126,78,143,131,188,2,143,78,93,2,93,202,251,131,78,4,251,202,126,202,251,+ 131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,+ 131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,5,251,202,143,143,202,+ 251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,+ 251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,251,131,78,4,251,202,126,202,+ 251,131,78,2,251,202,93,0,0,255,93,177,93,0,0,0,0,139,0,58,1,205,1,106,2,3,0,80,188,188,130,117,+ 130,188,1,80,188,129,117,0,188,131,80,130,117,132,188,129,117,129,188,129,80,1,188,188,130,117,0,188,130,80,0,188,+ 129,117,6,91,117,188,188,80,188,188,129,117,130,188,1,80,80,130,117,0,188,130,80,130,117,130,188,1,80,80,129,188,+ 4,117,117,91,117,117,129,80,0,188,131,117,3,188,188,80,80,131,188,131,80,129,117,130,188,129,80,0,188,129,117,129,+ 188,1,80,80,129,188,130,117,0,188,129,80,129,188,12,117,117,188,188,80,80,188,188,117,117,91,91,117,132,188,129,117,+ 129,80,0,0,3,80,110,110,39,130,177,36,193,39,96,135,135,116,116,177,116,39,110,110,241,110,110,116,177,177,116,39,+ 39,135,241,135,110,39,39,177,116,39,135,110,241,110,110,39,39,129,116,4,39,39,96,135,135,129,116,6,39,39,135,135,+ 241,110,135,131,116,5,39,135,241,135,39,177,130,116,16,135,39,241,135,39,177,116,177,116,39,135,135,151,151,110,135,116,+ 130,39,4,135,135,78,135,135,131,39,5,135,110,241,110,110,39,130,116,25,135,135,241,110,110,39,116,116,39,39,135,135,+ 241,110,135,116,177,177,116,116,39,135,241,135,110,39,129,116,8,39,110,135,241,110,110,39,116,116,129,39,14,135,241,110,+ 135,39,177,177,116,116,39,135,241,110,110,39,129,116,3,177,135,135,80,11,80,39,177,164,177,177,116,116,177,39,241,39,+ 129,177,130,116,6,39,241,39,177,177,116,116,129,177,5,39,241,39,116,116,177,130,116,3,39,241,39,116,133,177,1,96,+ 116,133,177,3,116,96,39,177,132,116,4,39,241,39,177,177,131,116,2,39,241,39,134,116,4,241,241,116,177,177,130,116,+ 3,177,39,143,39,133,116,4,39,241,39,177,177,131,116,5,39,241,39,116,116,177,130,116,2,39,241,39,129,177,131,116,+ 3,241,39,177,177,131,116,12,39,241,39,116,177,116,116,177,177,116,39,241,39,130,177,129,116,11,39,241,39,177,177,116,+ 116,177,116,116,39,80,3,80,110,39,116,130,39,3,110,110,241,135,132,39,4,135,135,241,135,135,131,39,6,110,110,241,+ 110,110,116,116,129,39,5,135,110,241,110,135,116,130,39,4,110,110,241,110,135,129,39,6,116,116,39,110,241,135,135,131,+ 39,4,110,110,241,135,135,131,39,4,135,110,241,110,135,131,39,5,135,110,151,151,135,135,129,39,6,116,116,135,110,143,+ 110,135,131,39,3,110,110,241,135,132,39,4,110,110,241,110,135,131,39,4,110,110,241,110,110,131,39,4,110,110,241,135,+ 135,130,39,5,116,39,135,241,39,193,129,116,7,177,116,135,110,241,110,135,116,130,39,4,110,110,241,110,110,131,39,2,+ 110,110,80,3,0,80,188,188,131,117,0,188,130,80,129,188,131,80,2,188,117,117,130,91,0,117,129,80,131,188,132,80,+ 130,188,130,80,1,188,188,131,117,130,80,2,188,117,117,129,188,130,80,0,188,131,117,129,80,0,188,130,117,0,188,130,+ 80,1,188,188,131,117,129,188,0,80,133,188,130,80,131,117,0,188,129,80,1,188,188,130,117,0,188,130,80,2,117,91,+ 91,129,117,5,188,80,80,188,188,117,131,188,3,80,80,188,188,129,117,129,188,5,80,80,188,188,117,117,130,188,129,80,+ 3,188,188,117,188,129,80,0,0,0,0,2,0,4,0,6,0,12,0,18,0,24,0,30,0,36,0,42,0,48,0,54,+ 0,60,0,62,0,64,0,66,0,142,0,142,0,142,0,133,0,0,17,134,0,133,0,0,17,134,0,133,0,0,17,134,+ 0,133,0,0,17,134,0,129,0,135,17,130,0,133,0,0,17,134,0,133,0,0,17,134,0,133,0,0,17,134,0,133,+ 0,0,17,134,0,142,0,142,0,142,0,142,0,0,0,9,0,20,0,30,0,42,0,54,0,66,0,78,0,98,0,121,+ 0,144,0,167,0,190,0,213,0,236,0,3,1,26,1,49,1,72,1,95,1,118,1,141,1,164,1,187,1,210,1,232,+ 1,7,2,43,2,79,2,115,2,151,2,187,2,223,2,3,3,39,3,75,3,117,3,161,3,209,3,2,4,50,4,98,+ 4,146,4,191,4,234,4,26,5,74,5,122,5,170,5,219,5,11,6,55,6,99,6,141,6,177,6,213,6,249,6,29,+ 7,65,7,101,7,137,7,169,7,190,7,213,7,236,7,3,8,26,8,49,8,72,8,95,8,118,8,141,8,164,8,187,+ 8,210,8,233,8,0,9,23,9,46,9,66,9,78,9,90,9,102,9,114,9,162,9,220,9,22,10,80,10,138,10,196,+ 10,254,10,56,11,114,11,172,11,230,11,32,12,90,12,148,12,206,12,8,13,66,13,114,13,162,13,220,13,22,14,80,+ 14,138,14,196,14,254,14,56,15,114,15,172,15,230,15,32,16,90,16,148,16,206,16,8,17,66,17,114,17,162,17,220,+ 17,22,18,80,18,138,18,196,18,254,18,56,19,114,19,172,19,230,19,32,20,90,20,148,20,206,20,8,21,66,21,114,+ 21,126,21,138,21,150,21,162,21,210,21,12,22,70,22,128,22,186,22,244,22,46,23,104,23,162,23,220,23,22,24,80,+ 24,138,24,196,24,254,24,56,25,114,25,162,25,174,25,186,25,198,25,210,25,220,25,231,25,1,0,0,255,16,168,16,+ 129,0,1,0,16,255,17,168,17,2,16,0,0,0,16,255,17,169,17,2,26,16,0,0,16,129,17,255,26,166,26,2,+ 27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,+ 26,167,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,179,25,0,24,220,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,+ 16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,+ 2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,+ 142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,+ 220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,25,178,16,0,17,220,26,2,27,27,+ 16,2,16,17,17,130,26,143,25,1,24,25,178,16,0,17,134,26,143,25,0,24,143,25,0,24,176,26,2,27,27,16,+ 2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,+ 2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,+ 0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,+ 17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,+ 25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,+ 17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,+ 142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,+ 2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,+ 2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,+ 0,17,146,26,143,25,0,24,138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,+ 26,0,25,142,24,1,17,25,142,24,0,17,146,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,+ 0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,137,26,0,24,134,26,0,25,+ 142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,+ 24,1,17,25,142,24,0,17,137,26,1,24,24,133,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,137,26,129,24,132,26,0,+ 25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,+ 142,24,1,17,25,142,24,0,17,137,26,130,24,131,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,137,26,131,24,130,26,0,+ 25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,25,178,16,0,17,134,26,0,24,143,+ 17,0,24,143,17,1,26,26,141,24,129,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,143,25,+ 1,24,25,178,16,0,17,134,26,143,25,0,24,143,25,2,24,26,26,142,24,2,26,26,25,142,24,0,17,138,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,2,+ 17,26,26,141,24,129,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,137,26,131,24,130,26,0,25,142,24,0,17,138,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,+ 17,137,26,130,24,131,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,137,26,129,24,132,26,0,25,142,24,0,17,138,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,+ 17,137,26,1,24,24,133,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,137,26,0,24,134,26,0,25,142,24,0,17,138,26,+ 2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,+ 0,17,146,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,+ 17,134,26,0,25,142,24,1,17,25,142,24,0,17,146,26,0,25,142,24,0,17,138,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,146,26,0,24,143,17,+ 138,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,+ 142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,+ 24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,+ 26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,+ 16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,+ 1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,17,17,130,26,+ 0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,27,16,2,16,+ 17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,134,26,0,25,142,24,1,17,25,142,24,0,17,176,26,2,27,+ 27,16,2,16,17,17,130,26,0,24,143,17,0,25,178,16,0,17,134,26,0,24,143,17,0,24,143,17,176,26,2,27,+ 27,16,2,16,17,17,130,26,143,25,1,24,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,+ 142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,+ 220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,+ 27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,178,16,0,17,220,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,178,16,0,+ 17,220,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,24,179,17,220,26,2,27,27,16,2,16,17,17,255,+ 26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,+ 16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,+ 27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,130,+ 26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,+ 24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,255,+ 26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,+ 16,17,17,255,26,166,26,129,27,0,16,2,0,16,26,255,27,169,27,0,16,2,0,0,16,255,27,168,27,1,16,0,+ 129,0,255,16,168,16,1,0,0,0,0,9,0,20,0,30,0,42,0,54,0,66,0,78,0,90,0,102,0,114,0,126,+ 0,138,0,150,0,162,0,174,0,186,0,210,0,238,0,10,1,38,1,66,1,94,1,122,1,150,1,178,1,206,1,234,+ 1,6,2,34,2,62,2,96,2,132,2,168,2,200,2,232,2,16,3,57,3,97,3,137,3,177,3,217,3,1,4,41,+ 4,81,4,121,4,161,4,201,4,241,4,26,5,66,5,102,5,134,5,166,5,202,5,238,5,16,6,44,6,72,6,100,+ 6,128,6,156,6,184,6,212,6,240,6,12,7,40,7,68,7,96,7,124,7,148,7,160,7,172,7,184,7,196,7,208,+ 7,220,7,232,7,244,7,0,8,12,8,24,8,36,8,48,8,96,8,154,8,212,8,14,9,72,9,130,9,188,9,246,+ 9,48,10,106,10,164,10,222,10,24,11,82,11,140,11,198,11,0,12,48,12,96,12,154,12,212,12,14,13,72,13,130,+ 13,188,13,246,13,48,14,106,14,164,14,222,14,24,15,82,15,140,15,198,15,0,16,48,16,96,16,154,16,212,16,14,+ 17,72,17,130,17,188,17,246,17,48,18,106,18,164,18,222,18,24,19,82,19,140,19,198,19,0,20,48,20,60,20,72,+ 20,84,20,96,20,144,20,202,20,4,21,62,21,120,21,178,21,236,21,38,22,96,22,154,22,212,22,14,23,72,23,130,+ 23,188,23,246,23,48,24,96,24,108,24,120,24,132,24,144,24,154,24,165,24,1,0,0,255,16,168,16,129,0,1,0,+ 16,255,17,168,17,2,16,0,0,0,16,255,17,169,17,2,26,16,0,0,16,129,17,255,26,166,26,2,27,27,16,2,+ 16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,+ 27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,+ 26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,+ 16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,+ 27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,152,26,143,25,0,24,143,25,0,24,143,25,0,+ 24,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,+ 27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,+ 16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,+ 27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,+ 16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,162,26,151,25,0,24,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,+ 17,152,26,0,24,143,17,0,24,143,17,0,24,143,17,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,+ 17,152,26,143,25,0,24,143,25,0,24,143,25,0,24,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,+ 17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,147,26,0,24,140,26,0,25,150,24,0,17,154,+ 26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,147,26,1,24,24,+ 139,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,0,17,147,26,129,24,138,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,0,17,147,26,130,24,137,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,+ 17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,147,26,131,24,136,26,0,25,150,24,0,17,+ 154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,147,26,132,24,+ 135,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,0,17,133,26,147,24,134,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,0,17,133,26,148,24,133,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,+ 17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,133,26,147,24,134,26,0,25,150,24,0,17,+ 154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,147,26,132,24,+ 135,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,0,17,147,26,131,24,136,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,0,17,147,26,130,24,137,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,+ 17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,147,26,129,24,138,26,0,25,150,24,0,17,+ 154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,147,26,1,24,+ 24,139,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,147,26,0,24,140,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,+ 26,0,24,143,17,0,24,143,17,0,24,143,17,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,+ 26,143,25,0,24,143,25,0,24,143,25,0,24,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,16,17,17,152,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,162,26,0,25,150,24,0,17,154,26,2,27,27,16,2,+ 16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,162,26,0,25,150,24,0,17,154,26,2,+ 27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,162,26,0,24,151,17,154,+ 26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,+ 16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,+ 17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,+ 26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,+ 16,2,16,17,17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,+ 17,152,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,216,26,2,27,27,16,2,16,17,17,152,26,0,24,143,17,0,24,143,17,0,+ 24,143,17,216,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,166,+ 26,129,27,0,16,2,0,16,26,255,27,169,27,0,16,2,0,0,16,255,27,168,27,1,16,0,129,0,255,16,168,16,+ 1,0,0,0,0,9,0,20,0,30,0,42,0,54,0,66,0,78,0,90,0,102,0,114,0,126,0,138,0,150,0,162,+ 0,174,0,186,0,202,0,220,0,238,0,0,1,18,1,36,1,54,1,72,1,90,1,108,1,126,1,144,1,162,1,180,+ 1,204,1,230,1,0,2,24,2,42,2,64,2,87,2,117,2,147,2,181,2,215,2,250,2,29,3,64,3,101,3,137,+ 3,172,3,208,3,245,3,25,4,43,4,61,4,85,4,111,4,137,4,161,4,179,4,197,4,215,4,233,4,251,4,13,+ 5,31,5,49,5,67,5,85,5,103,5,121,5,139,5,155,5,167,5,179,5,191,5,203,5,215,5,227,5,239,5,251,+ 5,7,6,19,6,31,6,43,6,55,6,103,6,161,6,219,6,21,7,79,7,137,7,195,7,253,7,55,8,113,8,171,+ 8,229,8,31,9,89,9,147,9,205,9,7,10,55,10,103,10,161,10,219,10,21,11,79,11,137,11,195,11,253,11,55,+ 12,113,12,171,12,229,12,31,13,89,13,147,13,205,13,7,14,55,14,103,14,161,14,219,14,21,15,79,15,137,15,195,+ 15,253,15,55,16,113,16,171,16,229,16,31,17,89,17,147,17,205,17,7,18,55,18,67,18,79,18,91,18,103,18,151,+ 18,209,18,11,19,69,19,127,19,185,19,243,19,45,20,103,20,161,20,219,20,21,21,79,21,137,21,195,21,253,21,55,+ 22,103,22,115,22,127,22,139,22,151,22,161,22,172,22,1,0,0,255,16,168,16,129,0,1,0,16,255,17,168,17,2,+ 16,0,0,0,16,255,17,169,17,2,26,16,0,0,16,129,17,255,26,166,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,178,26,143,25,0,24,226,26,2,27,27,16,2,16,17,17,178,26,0,+ 25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,+ 17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,+ 16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,+ 26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,+ 24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,+ 26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,+ 16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,+ 27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,164,26,151,25,0,24,162,26,2,27,27,16,2,16,17,17,178,+ 26,0,25,142,24,0,17,164,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,+ 17,164,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,178,26,0,24,143,17,164,26,0,25,150,24,0,+ 17,162,26,2,27,27,16,2,16,17,17,234,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,217,26,0,+ 24,142,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,217,26,1,24,24,141,26,0,25,150,24,0,17,+ 162,26,2,27,27,16,2,16,17,17,181,26,0,24,135,26,0,24,151,26,129,24,140,26,0,25,150,24,0,17,162,26,+ 2,27,27,16,2,16,17,17,181,26,0,24,135,26,0,24,151,26,130,24,139,26,0,25,150,24,0,17,162,26,2,27,+ 27,16,2,16,17,17,182,26,0,24,129,26,0,24,129,26,0,24,152,26,131,24,138,26,0,25,150,24,0,17,162,26,+ 2,27,27,16,2,16,17,17,182,26,0,24,129,26,0,24,129,26,0,24,152,26,132,24,137,26,0,25,150,24,0,17,+ 162,26,2,27,27,16,2,16,17,17,181,26,1,24,24,130,26,4,24,26,26,24,24,137,26,147,24,136,26,0,25,150,+ 24,0,17,162,26,2,27,27,16,2,16,17,17,181,26,1,24,24,130,26,4,24,26,26,24,24,137,26,148,24,135,26,+ 0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,180,26,129,24,129,26,3,24,24,26,26,129,24,136,26,147,+ 24,136,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,180,26,1,24,24,130,26,1,24,24,129,26,1,+ 24,24,150,26,132,24,137,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,180,26,1,24,24,129,26,129,+ 24,129,26,1,24,24,150,26,131,24,138,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,180,26,129,24,+ 3,26,26,24,24,129,26,129,24,150,26,130,24,139,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,181,+ 26,5,24,24,26,26,24,24,129,26,1,24,24,151,26,129,24,140,26,0,25,150,24,0,17,162,26,2,27,27,16,2,+ 16,17,17,181,26,3,24,24,26,26,129,24,3,26,26,24,24,151,26,1,24,24,141,26,0,25,150,24,0,17,162,26,+ 2,27,27,16,2,16,17,17,180,26,129,24,1,26,26,129,24,1,26,26,129,24,150,26,0,24,142,26,0,25,150,24,+ 0,17,162,26,2,27,27,16,2,16,17,17,234,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,234,26,+ 0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,178,26,143,25,0,24,164,26,0,25,150,24,0,17,162,26,+ 2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,164,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,+ 17,17,178,26,0,25,142,24,0,17,164,26,0,25,150,24,0,17,162,26,2,27,27,16,2,16,17,17,178,26,0,25,+ 142,24,0,17,164,26,0,24,151,17,162,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,+ 27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,+ 226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,+ 142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,+ 178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,+ 2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,+ 2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,+ 0,17,226,26,2,27,27,16,2,16,17,17,178,26,0,25,142,24,0,17,226,26,2,27,27,16,2,16,17,17,178,26,+ 0,24,143,17,226,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,+ 27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,+ 167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,+ 17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,+ 27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,+ 167,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,+ 143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,+ 2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,+ 17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,+ 130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,+ 2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,+ 0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,+ 27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,+ 0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,+ 130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,+ 143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,+ 2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,+ 17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,+ 130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,+ 2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,+ 0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,+ 27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,+ 0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,+ 130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,+ 143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,+ 2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,+ 17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,+ 130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,+ 2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,+ 0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,+ 27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,+ 0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,+ 130,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,+ 17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,+ 143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,+ 130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,+ 2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,+ 0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,+ 27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,+ 130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,+ 2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,+ 17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,+ 130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,+ 0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,+ 27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,+ 166,26,129,27,0,16,2,0,16,26,255,27,169,27,0,16,2,0,0,16,255,27,168,27,1,16,0,129,0,255,16,168,+ 16,1,0,0,0,0,9,0,24,0,39,0,54,0,69,0,84,0,99,0,114,0,129,0,144,0,159,0,174,0,189,0,+ 1,26,29,135,26,2,29,26,26,2,26,22,29,129,26,0,29,129,26,3,29,22,24,26,2,26,26,22,129,26,0,22,+ 129,26,3,22,26,24,26,13,26,29,159,24,26,26,159,29,26,26,159,29,26,26,3,26,22,159,24,129,26,6,22,26,+ 26,159,22,26,26,13,26,159,17,24,26,26,29,22,24,26,17,159,24,26,13,29,159,22,24,26,26,159,22,24,26,22,+ 159,29,26,13,22,17,29,24,26,29,17,159,24,26,29,159,22,24,13,159,17,24,26,26,22,159,29,24,26,26,17,159,+ 24,13,17,17,22,26,26,22,17,24,24,26,22,17,159,24,13,29,17,159,24,26,159,17,24,26,26,159,17,29,24,13,+ 26,17,17,24,26,159,17,159,26,26,17,17,24,26,13,22,17,22,24,26,22,17,17,24,26,22,17,22,26,0,26,129,+ 24,1,26,26,129,24,1,26,26,129,24,0,0,6,0,13,0,19,0,25,0,31,0,37,0,44,0,50,0,57,0,67,+ 0,75,0,83,0,91,0,99,0,106,0,112,0,141,26,0,17,134,26,141,26,1,17,17,133,26,141,26,129,17,132,26,+ 141,26,130,17,131,26,141,26,131,17,130,26,141,26,132,17,129,26,0,26,147,17,1,26,26,0,26,148,17,0,26,0,+ 26,147,17,1,107,26,0,26,140,107,132,17,2,107,26,26,141,26,131,17,0,107,129,26,141,26,130,17,0,107,130,26,+ 141,26,129,17,0,107,131,26,141,26,2,17,17,107,132,26,141,26,1,17,107,133,26,141,26,0,107,134,26,150,26,0,+ 0,9,0,20,0,30,0,42,0,54,0,66,0,78,0,90,0,102,0,114,0,126,0,138,0,150,0,162,0,174,0,186,+ 0,198,0,252,0,62,1,128,1,194,1,4,2,70,2,136,2,202,2,12,3,78,3,144,3,210,3,20,4,86,4,152,+ 4,218,4,28,5,84,5,140,5,206,5,16,6,82,6,148,6,214,6,24,7,90,7,156,7,222,7,32,8,98,8,164,+ 8,230,8,40,9,106,9,172,9,228,9,28,10,94,10,160,10,226,10,36,11,102,11,168,11,234,11,44,12,110,12,176,+ 12,242,12,52,13,118,13,184,13,250,13,60,14,116,14,172,14,238,14,48,15,114,15,180,15,246,15,56,16,122,16,188,+ 16,254,16,64,17,130,17,196,17,6,18,72,18,138,18,204,18,4,19,60,19,126,19,192,19,2,20,68,20,134,20,200,+ 20,10,21,76,21,142,21,208,21,18,22,84,22,150,22,216,22,26,23,92,23,148,23,168,23,188,23,208,23,228,23,28,+ 24,94,24,160,24,226,24,36,25,102,25,168,25,234,25,44,26,110,26,176,26,242,26,52,27,118,27,184,27,250,27,60,+ 28,114,28,126,28,138,28,150,28,162,28,172,28,183,28,1,0,0,255,16,187,16,129,0,1,0,16,255,17,187,17,2,+ 16,0,0,0,16,255,17,188,17,2,26,16,0,0,16,129,17,255,26,185,26,2,27,27,16,2,16,17,17,255,26,186,+ 26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,+ 17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,+ 16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,+ 26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,+ 17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,131,26,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,+ 26,139,25,0,24,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,255,26,168,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,255,26,168,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,255,26,168,26,0,25,138,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,255,26,168,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,143,25,0,24,143,25,0,+ 24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,25,138,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,0,+ 25,138,24,0,17,130,26,2,27,27,16,2,16,17,17,131,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,+ 17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,0,24,139,17,130,26,2,27,27,+ 16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,26,2,27,27,16,2,16,17,17,255,26,186,+ 26,2,27,27,16,2,16,17,17,255,26,185,26,129,27,0,16,2,0,16,26,255,27,188,27,0,16,2,0,0,16,255,+ 27,187,27,1,16,0,129,0,255,16,187,16,1,0,0,0,0,4,0,10,0,18,0,24,0,32,0,38,0,46,0,52,+ 0,60,0,66,0,74,0,80,0,88,0,94,0,137,17,0,24,0,17,136,26,0,27,1,17,26,134,24,1,26,27,0,+ 17,136,26,0,27,1,17,26,134,24,1,26,27,0,17,136,26,0,27,1,17,26,134,24,1,26,27,0,17,136,26,0,+ 27,1,17,26,134,24,1,26,27,0,17,136,26,0,27,1,17,26,134,24,1,26,27,0,17,136,26,0,27,1,17,26,+ 134,24,1,26,27,0,17,136,26,0,27,0,24,137,27,0,0,17,0,34,0,51,0,68,0,85,0,102,0,119,0,136,+ 0,153,0,168,0,185,0,202,0,215,0,231,0,248,0,15,47,68,68,114,114,47,68,68,114,114,222,114,114,47,114,47,+ 15,114,68,222,114,114,68,154,222,114,47,68,114,114,68,222,222,4,47,114,114,222,47,129,114,0,47,129,114,3,222,222,+ 47,114,15,68,75,47,114,68,222,114,47,68,68,114,68,114,47,68,114,15,68,114,68,47,222,68,114,114,68,222,114,75,+ 114,68,222,114,5,114,222,68,68,114,68,129,222,2,114,114,222,129,114,0,47,15,47,222,114,114,154,114,114,47,47,114,+ 47,47,114,68,114,68,15,47,114,47,47,68,68,114,114,68,222,68,68,114,114,68,68,10,68,114,114,68,114,68,114,222,+ 114,68,68,129,114,1,222,114,6,68,68,222,114,114,222,222,131,114,3,47,47,114,68,15,68,68,114,47,47,114,47,68,+ 222,47,47,114,68,68,154,114,15,68,114,114,68,68,47,114,68,75,68,68,114,222,68,114,222,6,114,222,68,114,68,68,+ 47,133,114,1,47,47,1,114,68,130,114,9,68,68,114,222,47,222,114,47,68,68,7,68,114,222,47,114,222,114,222,129,+ 114,4,222,114,114,68,68,6,68,114,47,68,68,114,154,129,68,5,114,114,68,68,114,222,0,0,6,0,12,0,30,0,+ 58,0,90,0,118,0,146,0,176,0,204,0,232,0,4,1,36,1,64,1,94,1,126,1,158,1,190,1,222,1,252,1,+ 24,2,56,2,84,2,112,2,140,2,170,2,198,2,226,2,2,3,30,3,48,3,54,3,136,16,138,38,136,16,131,16,+ 148,38,131,16,129,16,132,38,2,86,86,207,134,158,2,207,86,86,132,38,129,16,1,16,16,131,38,6,86,207,158,158,+ 190,158,158,130,190,6,158,158,190,158,158,207,86,131,38,1,16,16,1,16,16,129,38,1,86,207,129,158,3,190,218,167,+ 165,130,167,3,165,167,218,190,129,158,1,207,86,129,38,1,16,16,0,16,129,38,7,86,207,158,190,190,167,165,165,134,+ 102,7,165,165,167,190,190,158,207,86,129,38,0,16,0,16,129,38,5,207,158,158,218,165,165,129,102,132,89,129,102,5,+ 165,165,218,158,158,207,129,38,0,16,10,16,38,38,86,158,190,218,165,165,102,102,129,89,130,169,129,89,10,102,102,165,+ 165,218,190,158,86,38,38,16,11,16,38,38,207,158,190,165,165,102,201,89,89,134,169,11,89,89,201,102,165,165,190,158,+ 207,38,38,16,9,16,38,86,158,158,167,165,102,201,89,129,169,132,211,129,169,9,89,201,102,165,167,158,158,86,38,16,+ 11,38,38,86,158,190,165,102,102,89,169,169,133,134,211,11,133,169,169,89,102,102,165,190,158,86,38,38,13,38,38,207,+ 190,218,165,102,89,89,169,133,211,211,128,130,212,13,128,211,211,133,169,89,89,102,165,218,190,207,38,38,11,38,38,158,+ 158,167,102,102,89,169,169,211,211,134,159,11,211,211,169,169,89,102,102,167,158,158,38,38,12,38,38,158,158,165,102,89,+ 89,169,211,211,128,159,132,21,12,159,128,211,211,169,89,89,102,165,158,158,38,38,13,38,38,158,190,167,102,89,169,169,+ 211,211,212,159,21,130,17,13,21,159,212,211,211,169,169,89,102,167,190,158,38,38,13,38,38,158,190,167,102,89,169,169,+ 211,211,212,159,21,130,17,13,21,159,212,211,211,169,169,89,102,167,190,158,38,38,13,38,38,158,190,167,102,89,169,169,+ 211,211,212,159,21,130,17,13,21,159,212,211,211,169,169,89,102,167,190,158,38,38,13,38,38,158,190,167,102,89,169,169,+ 211,211,212,159,21,130,17,13,21,159,212,211,211,169,169,89,102,167,190,158,38,38,12,38,38,158,158,165,102,89,89,169,+ 211,211,128,159,132,21,12,159,128,211,211,169,89,89,102,165,158,158,38,38,11,38,38,158,158,167,102,102,89,169,169,211,+ 211,134,159,11,211,211,169,169,89,102,102,167,158,158,38,38,13,38,38,207,190,218,165,102,89,89,169,133,211,211,128,130,+ 212,13,128,211,211,133,169,89,89,102,165,218,190,207,38,38,11,38,38,86,158,190,165,102,102,89,169,169,133,134,211,11,+ 133,169,169,89,102,102,165,190,158,86,38,38,9,16,38,86,158,158,167,165,102,201,89,129,169,132,211,129,169,9,89,201,+ 102,165,167,158,158,86,38,16,11,16,38,38,207,158,190,165,165,102,201,89,89,134,169,11,89,89,201,102,165,165,190,158,+ 207,38,38,16,10,16,38,38,86,158,190,218,165,165,102,102,129,89,130,169,129,89,10,102,102,165,165,218,190,158,86,38,+ 38,16,0,16,129,38,5,207,158,158,218,165,165,129,102,132,89,129,102,5,165,165,218,158,158,207,129,38,0,16,0,16,+ 129,38,7,86,207,158,190,190,167,165,165,134,102,7,165,165,167,190,190,158,207,86,129,38,0,16,1,16,16,129,38,1,+ 86,207,129,158,3,190,218,167,165,130,167,3,165,167,218,190,129,158,1,207,86,129,38,1,16,16,1,16,16,131,38,6,+ 86,207,158,158,190,158,158,130,190,6,158,158,190,158,158,207,86,131,38,1,16,16,129,16,132,38,2,86,86,207,134,158,+ 2,207,86,86,132,38,129,16,131,16,148,38,131,16,136,16,138,38,136,16,0,0,6,0,16,0,38,0,70,0,98,0,+ 124,0,152,0,182,0,208,0,238,0,10,1,36,1,68,1,101,1,134,1,167,1,200,1,232,1,9,2,41,2,67,2,+ 95,2,125,2,151,2,181,2,209,2,235,2,7,3,39,3,61,3,71,3,136,16,138,43,136,16,131,16,132,43,136,199,+ 132,43,131,16,129,16,130,43,4,199,199,182,182,199,134,182,4,199,182,182,199,199,130,43,129,16,1,16,16,129,43,8,+ 199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,11,16,16,43,43,199,+ 182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,8,16,43,43,199,182,199,230,223,194,+ 129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,+ 220,9,247,247,194,230,230,199,199,43,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,+ 220,247,247,194,223,182,182,199,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,129,208,8,220,247,247,194,230,+ 199,199,43,16,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,+ 43,16,11,43,43,182,230,194,247,220,220,208,208,124,124,134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,10,43,+ 199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,199,182,230,247,220,220,+ 208,124,124,58,58,130,244,15,101,244,104,107,58,58,124,124,208,220,220,247,230,182,199,43,8,43,199,182,230,247,220,208,+ 208,124,129,58,2,244,101,70,129,244,1,107,107,129,58,8,124,208,208,220,247,230,182,199,43,8,43,199,182,194,247,220,+ 208,124,124,129,58,7,244,101,70,244,70,244,210,107,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,247,+ 220,208,124,124,129,58,7,244,70,70,101,70,244,104,104,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,+ 247,220,208,124,124,129,58,7,101,244,244,101,70,70,107,107,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,+ 194,247,220,208,124,124,129,58,0,244,130,70,2,244,210,107,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,+ 230,247,220,208,208,124,129,58,1,210,104,129,107,2,210,104,107,129,58,8,124,208,208,220,247,230,182,199,43,11,43,199,+ 182,230,247,220,220,208,124,124,58,58,129,107,0,104,130,107,11,58,58,124,124,208,220,220,247,230,182,199,43,10,43,199,+ 199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,182,230,194,247,220,220,+ 208,208,124,124,134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,247,220,129,208,1,124,+ 124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,129,+ 208,8,220,247,247,194,230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,+ 247,247,194,223,182,182,199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,+ 199,199,43,43,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,11,+ 16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,1,16,16,129,43,+ 8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,129,16,130,43,4,+ 199,199,182,182,199,134,182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,16,136,16,138,43,136,+ 16,0,0,6,0,16,0,38,0,70,0,98,0,124,0,152,0,182,0,208,0,238,0,10,1,36,1,67,1,98,1,130,+ 1,162,1,194,1,226,1,1,2,32,2,58,2,86,2,116,2,142,2,172,2,200,2,226,2,254,2,30,3,52,3,62,+ 3,136,16,138,43,136,16,131,16,132,43,136,199,132,43,131,16,129,16,130,43,4,199,199,182,182,199,134,182,4,199,182,+ 182,199,199,130,43,129,16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,+ 199,199,129,43,1,16,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,+ 43,16,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,9,16,43,+ 43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,10,16,43,199,182,182,223,+ 194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,8,16,43,199,199,230,194,247,247,+ 220,129,208,134,124,129,208,8,220,247,247,194,230,199,199,43,16,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,+ 58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,11,43,43,182,230,194,247,220,220,208,208,124,124,134,58,11,124,+ 124,208,208,220,220,247,194,230,182,43,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,+ 194,223,199,199,43,11,43,199,182,230,247,220,220,208,124,124,58,58,129,244,1,107,195,131,58,9,124,124,208,220,220,247,+ 230,182,199,43,8,43,199,182,230,247,220,208,208,124,129,58,5,244,101,70,244,107,195,131,58,8,124,208,208,220,247,230,+ 182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,6,244,101,70,244,104,107,195,130,58,8,124,124,208,220,247,194,+ 182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,6,244,70,70,101,104,107,195,130,58,8,124,124,208,220,247,194,+ 182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,6,101,244,244,101,104,104,195,130,58,8,124,124,208,220,247,194,+ 182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,0,244,129,70,2,104,107,195,130,58,8,124,124,208,220,247,194,+ 182,199,43,8,43,199,182,230,247,220,208,208,124,129,58,1,210,104,129,107,0,195,131,58,8,124,208,208,220,247,230,182,+ 199,43,11,43,199,182,230,247,220,220,208,124,124,58,58,129,107,1,104,195,131,58,9,124,124,208,220,220,247,230,182,199,+ 43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,182,230,+ 194,247,220,220,208,208,124,124,134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,247,220,+ 129,208,1,124,124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,220,129,+ 208,134,124,129,208,8,220,247,247,194,230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,+ 208,10,220,220,247,247,194,223,182,182,199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,+ 247,194,230,230,199,199,43,43,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,+ 43,43,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,1,+ 16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,129,+ 16,130,43,4,199,199,182,182,199,134,182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,16,136,+ 16,138,43,136,16,0,0,6,0,16,0,38,0,70,0,98,0,124,0,152,0,182,0,208,0,238,0,10,1,36,1,67,+ 1,97,1,127,1,157,1,187,1,217,1,247,1,22,2,48,2,76,2,106,2,132,2,162,2,190,2,216,2,244,2,20,+ 3,42,3,52,3,136,16,138,43,136,16,131,16,132,43,136,199,132,43,131,16,129,16,130,43,4,199,199,182,182,199,134,+ 182,4,199,182,182,199,199,130,43,129,16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,+ 230,182,199,182,199,199,129,43,1,16,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,+ 199,182,199,43,43,16,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,+ 16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,10,16,43,+ 199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,8,16,43,199,199,+ 230,194,247,247,220,129,208,134,124,129,208,8,220,247,247,194,230,199,199,43,16,7,16,43,182,182,230,247,247,220,129,208,+ 1,124,124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,11,43,43,182,230,194,247,220,220,208,208,124,124,+ 134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,+ 208,208,220,247,194,223,199,199,43,16,43,199,182,230,247,220,220,208,124,124,58,58,244,244,107,107,195,131,58,9,124,124,+ 208,220,220,247,230,182,199,43,8,43,199,182,230,247,220,208,208,124,129,58,4,244,101,107,107,195,132,58,8,124,208,208,+ 220,247,230,182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,4,244,101,107,107,195,132,58,8,124,124,208,220,247,+ 194,182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,4,244,70,107,104,195,132,58,8,124,124,208,220,247,194,182,+ 199,43,8,43,199,182,194,247,220,208,124,124,129,58,4,101,244,107,104,195,132,58,8,124,124,208,220,247,194,182,199,43,+ 8,43,199,182,194,247,220,208,124,124,129,58,4,244,70,107,107,195,132,58,8,124,124,208,220,247,194,182,199,43,8,43,+ 199,182,230,247,220,208,208,124,129,58,4,210,104,107,107,195,132,58,8,124,208,208,220,247,230,182,199,43,11,43,199,182,+ 230,247,220,220,208,124,124,58,58,129,107,1,104,195,131,58,9,124,124,208,220,220,247,230,182,199,43,10,43,199,199,223,+ 194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,182,230,194,247,220,220,208,208,+ 124,124,134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,+ 58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,129,208,8,+ 220,247,247,194,230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,+ 194,223,182,182,199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,+ 43,43,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,11,16,16,+ 43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,1,16,16,129,43,8,199,+ 199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,129,16,130,43,4,199,199,+ 182,182,199,134,182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,16,136,16,138,43,136,16,0,+ 0,6,0,16,0,38,0,70,0,98,0,124,0,152,0,182,0,208,0,238,0,10,1,36,1,66,1,94,1,121,1,148,+ 1,175,1,202,1,230,1,4,2,30,2,58,2,88,2,114,2,144,2,172,2,198,2,226,2,2,3,24,3,34,3,136,+ 16,138,43,136,16,131,16,132,43,136,199,132,43,131,16,129,16,130,43,4,199,199,182,182,199,134,182,4,199,182,182,199,+ 199,130,43,129,16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,+ 129,43,1,16,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,+ 16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,9,16,43,43,199,+ 199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,10,16,43,199,182,182,223,194,247,+ 247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,8,16,43,199,199,230,194,247,247,220,129,+ 208,134,124,129,208,8,220,247,247,194,230,199,199,43,16,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,58,1,+ 124,124,129,208,7,220,247,247,230,182,182,43,16,11,43,43,182,230,194,247,220,220,208,208,124,124,134,58,11,124,124,208,+ 208,220,220,247,194,230,182,43,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,+ 199,199,43,11,43,199,182,230,247,220,220,208,124,124,58,58,129,107,0,195,132,58,9,124,124,208,220,220,247,230,182,199,+ 43,8,43,199,182,230,247,220,208,208,124,129,58,2,107,104,195,134,58,8,124,208,208,220,247,230,182,199,43,8,43,199,+ 182,194,247,220,208,124,124,129,58,1,107,195,135,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,247,220,208,+ 124,124,129,58,1,104,195,135,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,1,+ 107,195,135,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,1,107,195,135,58,8,+ 124,124,208,220,247,194,182,199,43,8,43,199,182,230,247,220,208,208,124,129,58,2,107,104,195,134,58,8,124,208,208,220,+ 247,230,182,199,43,11,43,199,182,230,247,220,220,208,124,124,58,58,129,107,0,195,132,58,9,124,124,208,220,220,247,230,+ 182,199,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,+ 182,230,194,247,220,220,208,208,124,124,134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,+ 247,220,129,208,1,124,124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,+ 220,129,208,134,124,129,208,8,220,247,247,194,230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,+ 124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,+ 9,247,247,194,230,230,199,199,43,43,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,+ 182,199,43,43,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,+ 16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,+ 16,129,16,130,43,4,199,199,182,182,199,134,182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,+ 16,136,16,138,43,136,16,0,0,6,0,16,0,38,0,70,0,98,0,124,0,152,0,182,0,208,0,238,0,10,1,36,+ 1,64,1,94,1,124,1,154,1,184,1,214,1,244,1,16,2,42,2,70,2,100,2,126,2,156,2,184,2,210,2,238,+ 2,14,3,36,3,46,3,136,16,138,43,136,16,131,16,132,43,136,199,132,43,131,16,129,16,130,43,4,199,199,182,182,+ 199,134,182,4,199,182,182,199,199,130,43,129,16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,+ 230,223,230,182,199,182,199,199,129,43,1,16,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,+ 230,182,199,182,199,43,43,16,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,+ 43,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,10,+ 16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,8,16,43,+ 199,199,230,194,247,247,220,129,208,134,124,129,208,8,220,247,247,194,230,199,199,43,16,7,16,43,182,182,230,247,247,220,+ 129,208,1,124,124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,11,43,43,182,230,194,247,220,220,208,208,+ 124,124,134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,+ 124,124,208,208,220,247,194,223,199,199,43,11,43,199,182,230,247,220,220,208,124,124,58,58,134,195,11,58,58,124,124,208,+ 220,220,247,230,182,199,43,8,43,199,182,230,247,220,208,208,124,129,58,0,195,132,58,0,195,129,58,8,124,208,208,220,+ 247,230,182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,0,195,132,58,0,195,129,58,8,124,124,208,220,247,194,+ 182,199,43,8,43,199,182,194,247,220,208,124,124,129,58,0,195,132,58,0,195,129,58,8,124,124,208,220,247,194,182,199,+ 43,8,43,199,182,194,247,220,208,124,124,129,58,0,195,132,58,0,195,129,58,8,124,124,208,220,247,194,182,199,43,8,+ 43,199,182,194,247,220,208,124,124,129,58,0,195,132,58,0,195,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,+ 182,230,247,220,208,208,124,129,58,0,195,132,58,0,195,129,58,8,124,208,208,220,247,230,182,199,43,11,43,199,182,230,+ 247,220,220,208,124,124,58,58,134,195,11,58,58,124,124,208,220,220,247,230,182,199,43,10,43,199,199,223,194,247,220,208,+ 208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,182,230,194,247,220,220,208,208,124,124,134,58,+ 11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,58,1,124,124,+ 129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,129,208,8,220,247,247,194,+ 230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,182,182,+ 199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,8,+ 16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,11,16,16,43,43,199,182,+ 199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,1,16,16,129,43,8,199,199,182,199,182,+ 230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,129,16,130,43,4,199,199,182,182,199,134,+ 182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,16,136,16,138,43,136,16,0,0,6,0,16,+ 0,38,0,70,0,98,0,124,0,152,0,182,0,208,0,238,0,10,1,36,1,66,1,94,1,121,1,148,1,175,1,202,+ 1,230,1,4,2,30,2,58,2,88,2,114,2,144,2,172,2,198,2,226,2,2,3,24,3,34,3,136,16,138,43,136,+ 16,131,16,132,43,136,199,132,43,131,16,129,16,130,43,4,199,199,182,182,199,134,182,4,199,182,182,199,199,130,43,129,+ 16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,+ 16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,8,16,43,+ 43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,9,16,43,43,199,199,230,230,194,+ 247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,+ 208,130,124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,129,+ 208,8,220,247,247,194,230,199,199,43,16,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,58,1,124,124,129,208,+ 7,220,247,247,230,182,182,43,16,11,43,43,182,230,194,247,220,220,208,208,124,124,134,58,11,124,124,208,208,220,220,247,+ 194,230,182,43,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,9,+ 43,199,182,230,247,220,220,208,124,124,132,58,15,195,107,104,107,58,58,124,124,208,220,220,247,230,182,199,43,8,43,199,+ 182,230,247,220,208,208,124,134,58,2,195,107,107,129,58,8,124,208,208,220,247,230,182,199,43,8,43,199,182,194,247,220,+ 208,124,124,135,58,1,195,107,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,247,220,208,124,124,135,58,+ 1,195,104,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,247,220,208,124,124,135,58,1,195,107,129,58,+ 8,124,124,208,220,247,194,182,199,43,8,43,199,182,194,247,220,208,124,124,135,58,1,195,107,129,58,8,124,124,208,220,+ 247,194,182,199,43,8,43,199,182,230,247,220,208,208,124,134,58,2,195,104,107,129,58,8,124,208,208,220,247,230,182,199,+ 43,9,43,199,182,230,247,220,220,208,124,124,132,58,0,195,129,107,11,58,58,124,124,208,220,220,247,230,182,199,43,10,+ 43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,182,230,194,247,+ 220,220,208,208,124,124,134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,247,220,129,208,+ 1,124,124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,+ 124,129,208,8,220,247,247,194,230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,+ 220,220,247,247,194,223,182,182,199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,+ 230,230,199,199,43,43,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,+ 16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,1,16,16,+ 129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,129,16,130,+ 43,4,199,199,182,182,199,134,182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,16,136,16,138,+ 43,136,16,0,0,6,0,16,0,38,0,70,0,98,0,124,0,152,0,182,0,208,0,238,0,10,1,36,1,67,1,97,+ 1,127,1,157,1,187,1,217,1,247,1,21,2,47,2,75,2,105,2,131,2,161,2,189,2,215,2,243,2,19,3,41,+ 3,51,3,136,16,138,43,136,16,131,16,132,43,136,199,132,43,131,16,129,16,130,43,4,199,199,182,182,199,134,182,4,+ 199,182,182,199,199,130,43,129,16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,+ 199,182,199,199,129,43,1,16,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,+ 199,43,43,16,16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,9,+ 16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,10,16,43,199,182,+ 182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,8,16,43,199,199,230,194,+ 247,247,220,129,208,134,124,129,208,8,220,247,247,194,230,199,199,43,16,7,16,43,182,182,230,247,247,220,129,208,1,124,+ 124,132,58,1,124,124,129,208,7,220,247,247,230,182,182,43,16,11,43,43,182,230,194,247,220,220,208,208,124,124,134,58,+ 11,124,124,208,208,220,220,247,194,230,182,43,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,+ 220,247,194,223,199,199,43,9,43,199,182,230,247,220,220,208,124,124,131,58,16,195,104,210,104,70,58,58,124,124,208,220,+ 220,247,230,182,199,43,8,43,199,182,230,247,220,208,208,124,132,58,4,195,210,210,70,70,129,58,8,124,208,208,220,247,+ 230,182,199,43,8,43,199,182,194,247,220,208,124,124,132,58,4,195,107,210,244,70,129,58,8,124,124,208,220,247,194,182,+ 199,43,8,43,199,182,194,247,220,208,124,124,132,58,4,195,107,210,101,101,129,58,8,124,124,208,220,247,194,182,199,43,+ 8,43,199,182,194,247,220,208,124,124,132,58,4,195,107,107,70,70,129,58,8,124,124,208,220,247,194,182,199,43,8,43,+ 199,182,194,247,220,208,124,124,132,58,4,195,107,210,70,70,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,+ 230,247,220,208,208,124,132,58,4,195,107,210,210,70,129,58,8,124,208,208,220,247,230,182,199,43,9,43,199,182,230,247,+ 220,220,208,124,124,131,58,0,195,130,107,11,58,58,124,124,208,220,220,247,230,182,199,43,10,43,199,199,223,194,247,220,+ 208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,182,230,194,247,220,220,208,208,124,124,134,+ 58,11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,58,1,124,+ 124,129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,129,208,8,220,247,247,+ 194,230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,182,+ 182,199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,+ 8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,11,16,16,43,43,199,+ 182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,1,16,16,129,43,8,199,199,182,199,+ 182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,129,16,130,43,4,199,199,182,182,199,+ 134,182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,16,136,16,138,43,136,16,0,0,6,0,+ 16,0,38,0,70,0,98,0,124,0,152,0,182,0,208,0,238,0,10,1,36,1,67,1,98,1,130,1,162,1,192,1,+ 224,1,255,1,29,2,55,2,83,2,113,2,139,2,169,2,197,2,223,2,251,2,27,3,49,3,59,3,136,16,138,43,+ 136,16,131,16,132,43,136,199,132,43,131,16,129,16,130,43,4,199,199,182,182,199,134,182,4,199,182,182,199,199,130,43,+ 129,16,1,16,16,129,43,8,199,199,182,199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,+ 16,16,11,16,16,43,43,199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,8,16,+ 43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,9,16,43,43,199,199,230,230,+ 194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,16,10,16,43,199,182,182,223,194,247,247,220,220,+ 129,208,130,124,129,208,10,220,220,247,247,194,223,182,182,199,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,+ 129,208,8,220,247,247,194,230,199,199,43,16,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,58,1,124,124,129,+ 208,7,220,247,247,230,182,182,43,16,11,43,43,182,230,194,247,220,220,208,208,124,124,134,58,11,124,124,208,208,220,220,+ 247,194,230,182,43,43,10,43,199,199,223,194,247,220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,+ 9,43,199,182,230,247,220,220,208,124,124,131,58,16,195,107,244,101,70,58,58,124,124,208,220,220,247,230,182,199,43,8,+ 43,199,182,230,247,220,208,208,124,131,58,5,195,210,210,244,70,70,129,58,8,124,208,208,220,247,230,182,199,43,8,43,+ 199,182,194,247,220,208,124,124,130,58,6,195,107,210,107,244,244,70,129,58,8,124,124,208,220,247,194,182,199,43,8,43,+ 199,182,194,247,220,208,124,124,130,58,6,195,107,104,70,244,101,101,129,58,8,124,124,208,220,247,194,182,199,43,8,43,+ 199,182,194,247,220,208,124,124,130,58,2,195,210,104,130,70,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,+ 194,247,220,208,124,124,130,58,0,195,129,107,2,244,244,70,129,58,8,124,124,208,220,247,194,182,199,43,8,43,199,182,+ 230,247,220,208,208,124,131,58,5,195,107,107,210,210,107,129,58,8,124,208,208,220,247,230,182,199,43,9,43,199,182,230,+ 247,220,220,208,124,124,131,58,0,195,130,107,11,58,58,124,124,208,220,220,247,230,182,199,43,10,43,199,199,223,194,247,+ 220,208,208,124,124,136,58,10,124,124,208,208,220,247,194,223,199,199,43,11,43,43,182,230,194,247,220,220,208,208,124,124,+ 134,58,11,124,124,208,208,220,220,247,194,230,182,43,43,7,16,43,182,182,230,247,247,220,129,208,1,124,124,132,58,1,+ 124,124,129,208,7,220,247,247,230,182,182,43,16,8,16,43,199,199,230,194,247,247,220,129,208,134,124,129,208,8,220,247,+ 247,194,230,199,199,43,16,10,16,43,199,182,182,223,194,247,247,220,220,129,208,130,124,129,208,10,220,220,247,247,194,223,+ 182,182,199,43,16,9,16,43,43,199,199,230,230,194,247,247,129,220,132,208,129,220,9,247,247,194,230,230,199,199,43,43,+ 16,8,16,43,43,199,182,199,230,223,194,129,247,134,220,129,247,8,194,223,230,199,182,199,43,43,16,11,16,16,43,43,+ 199,182,199,182,230,230,194,194,134,247,11,194,194,230,230,182,199,182,199,43,43,16,16,1,16,16,129,43,8,199,199,182,+ 199,182,230,223,230,230,130,194,8,230,230,223,230,182,199,182,199,199,129,43,1,16,16,129,16,130,43,4,199,199,182,182,+ 199,134,182,4,199,182,182,199,199,130,43,129,16,131,16,132,43,136,199,132,43,131,16,136,16,138,43,136,16,0,0,9,+ 0,20,0,30,0,42,0,54,0,66,0,78,0,90,0,102,0,114,0,126,0,138,0,150,0,162,0,174,0,186,0,198,+ 0,246,0,48,1,106,1,164,1,222,1,24,2,82,2,140,2,198,2,0,3,58,3,116,3,174,3,232,3,34,4,92,+ 4,150,4,198,4,246,4,48,5,106,5,164,5,222,5,24,6,82,6,140,6,198,6,0,7,58,7,116,7,174,7,232,+ 7,34,8,92,8,150,8,198,8,246,8,48,9,106,9,164,9,222,9,24,10,82,10,140,10,198,10,0,11,58,11,116,+ 11,174,11,232,11,34,12,92,12,150,12,198,12,210,12,222,12,234,12,246,12,2,13,14,13,26,13,38,13,50,13,62,+ 13,74,13,86,13,98,13,146,13,204,13,6,14,64,14,122,14,180,14,238,14,40,15,98,15,156,15,214,15,16,16,74,+ 16,132,16,190,16,248,16,50,17,98,17,146,17,204,17,6,18,64,18,122,18,180,18,238,18,40,19,98,19,156,19,214,+ 19,16,20,74,20,132,20,190,20,248,20,50,21,98,21,146,21,204,21,6,22,64,22,122,22,180,22,238,22,40,23,98,+ 23,156,23,214,23,16,24,74,24,132,24,190,24,248,24,50,25,98,25,110,25,122,25,134,25,146,25,194,25,252,25,54,+ 26,112,26,170,26,228,26,30,27,88,27,146,27,204,27,6,28,64,28,122,28,180,28,238,28,40,29,98,29,146,29,158,+ 29,170,29,182,29,194,29,204,29,215,29,1,0,0,255,16,168,16,129,0,1,0,16,255,17,168,17,2,16,0,0,0,+ 16,255,17,169,17,2,26,16,0,0,16,129,17,255,26,166,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,+ 26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,+ 17,130,26,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,25,0,24,143,+ 25,0,24,143,25,0,24,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,+ 17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,+ 16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,+ 26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,+ 27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,+ 17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,+ 17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,+ 26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,+ 16,17,17,130,26,0,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,+ 25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,+ 24,1,17,25,142,24,1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,25,142,24,1,17,25,+ 142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,1,17,25,142,24,+ 1,17,25,142,24,0,17,130,26,2,27,27,16,2,16,17,17,130,26,0,24,143,17,0,24,143,17,0,24,143,17,0,+ 24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,0,24,143,17,130,26,2,27,27,16,2,16,17,+ 17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,16,2,16,17,17,255,26,167,26,2,27,27,+ 16,2,16,17,17,255,26,166,26,129,27,0,16,2,0,16,26,255,27,169,27,0,16,2,0,0,16,255,27,168,27,1,+ 16,0,129,0,255,16,168,16,1,0,0,0,0,14,0,28,0,42,0,58,0,74,0,91,0,108,0,126,0,144,0,162,+ 0,174,0,186,0,194,0,204,0,214,0,220,0,226,0,228,0,230,0,232,0,238,0,244,0,2,1,16,1,34,1,46,+ 1,58,1,70,1,82,1,88,1,106,1,124,1,140,1,156,1,162,1,168,1,174,1,180,1,186,1,192,1,198,1,204,+ 1,210,1,216,1,222,1,228,1,234,1,240,1,246,1,252,1,2,2,8,2,14,2,133,0,129,184,4,128,128,184,73,+ 73,131,184,133,0,133,0,129,184,4,128,128,184,73,73,131,184,133,0,133,0,131,184,4,212,53,53,245,245,129,184,133,+ 0,133,0,0,184,130,47,0,204,130,47,2,44,44,212,133,0,133,0,0,184,130,47,0,204,130,47,2,44,44,212,133,+ 0,133,0,2,141,47,47,129,141,3,44,44,47,47,129,68,133,0,133,0,2,141,47,47,129,141,3,44,44,47,47,129,+ 68,133,0,133,0,4,47,17,17,144,144,129,47,4,144,144,17,17,141,133,0,133,0,4,68,141,141,47,47,129,253,4,+ 47,47,68,68,114,133,0,133,0,4,68,141,141,47,47,129,253,4,47,47,68,68,114,133,0,133,0,129,61,133,119,2,+ 67,67,114,133,0,133,0,129,61,133,119,2,67,67,114,133,0,133,0,129,196,136,114,133,0,136,187,2,114,114,68,130,+ 114,136,187,136,187,2,114,114,68,130,114,136,187,138,187,129,114,138,187,138,187,129,114,138,187,153,187,153,187,153,187,133,+ 141,139,187,133,141,133,141,139,187,133,141,2,141,141,44,130,141,139,187,130,141,2,44,141,141,2,141,141,44,130,141,139,+ 187,130,141,2,44,141,141,6,141,141,44,141,141,44,44,139,187,6,44,44,141,141,44,141,141,131,141,1,44,44,139,187,+ 1,44,44,131,141,131,141,1,44,44,139,187,1,44,44,131,141,131,141,1,44,44,139,187,1,44,44,131,141,131,141,1,+ 44,44,139,187,1,44,44,131,141,133,141,139,187,133,141,129,141,3,44,44,141,141,136,144,129,187,3,141,141,44,44,129,+ 141,129,141,3,44,44,141,141,136,144,129,187,3,141,141,44,44,129,141,2,44,44,141,130,44,138,144,0,187,130,44,2,+ 141,44,44,2,44,44,141,130,44,138,144,0,187,130,44,2,141,44,44,133,0,139,144,133,0,133,0,139,144,133,0,133,+ 0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,+ 144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,+ 0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,144,133,0,133,0,139,75,133,0,133,+ 0,139,75,133,0,133,0,139,75,133,0,+};+const uint32_t spr_off[] = {+ 0,2679,3044,5623,7422,10132,10220,10292,10361,10449,10523,10593,10691,10781,11247,12009,12109,19081,25731,31876,32107,32255,39887,40015,+ 40312,41204,42113,43013,43903,44775,45659,46531,47420,48317,56299,+};+const uint8_t spr_w[] = {+ 182,24,200,200,200,9,9,9,9,9,9,9,9,182,182,16,176,176,176,14,24,195,12,16,+ 32,32,32,32,32,32,32,32,32,176,27,+};+const uint8_t spr_h[] = {+ 22,24,20,20,20,9,9,9,9,9,9,9,9,5,5,16,166,166,166,14,17,136,15,16,+ 32,32,32,32,32,32,32,32,32,167,54,+};+const uint8_t icon_px[] = {+ 0,0,0,0,0,0,0,34,54,0,0,0,0,0,0,0,0,0,0,0,0,54,125,34,54,125,34,0,0,0,0,0,+ 0,0,0,34,125,34,34,34,54,34,54,54,125,0,0,0,0,34,54,34,54,54,54,54,125,34,54,54,34,107,54,0,+ 95,54,54,125,54,34,54,107,125,54,34,54,125,54,34,137,186,54,107,125,54,54,125,34,125,54,125,34,107,106,137,137,+ 54,107,95,95,54,34,125,34,54,125,34,27,27,137,106,19,54,107,95,54,95,54,95,34,34,106,27,106,137,27,106,19,+ 54,95,95,95,95,95,54,95,137,106,19,106,19,137,106,27,107,95,95,95,107,107,54,107,27,106,106,27,19,27,106,137,+ 95,107,54,107,54,95,54,107,106,137,106,137,137,27,27,137,107,54,95,107,95,95,54,107,137,19,106,106,27,106,137,137,+ 0,95,95,95,54,107,107,107,106,106,137,106,106,27,106,0,0,0,0,107,107,95,95,186,137,106,27,106,137,0,0,0,+ 0,0,0,0,0,95,95,54,27,106,27,0,0,0,0,0,0,0,0,0,0,0,0,107,106,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,240,39,0,0,0,0,0,0,0,0,0,0,0,0,240,239,239,239,240,240,0,0,0,0,0,+ 0,0,0,240,240,240,240,239,39,239,240,239,240,0,0,0,0,239,240,239,240,240,239,240,239,239,174,240,39,39,39,0,+ 174,239,174,239,240,240,240,239,39,239,39,174,239,39,39,155,248,174,174,240,240,240,240,240,239,240,240,239,240,155,155,245,+ 253,248,248,175,174,239,239,240,240,239,240,155,175,175,245,88,253,114,114,248,239,174,175,239,174,117,245,245,245,30,88,222,+ 253,68,253,248,248,248,155,175,155,117,245,88,88,114,88,88,114,253,114,253,253,248,114,253,30,114,222,114,245,88,114,88,+ 248,114,253,253,114,114,114,68,245,88,222,245,88,245,222,114,253,253,114,114,68,253,253,114,88,222,245,222,222,88,114,222,+ 0,114,248,114,253,253,114,114,222,114,114,88,245,222,222,0,0,0,0,253,68,248,253,248,88,88,88,245,222,0,0,0,+ 0,0,0,0,0,253,253,114,222,114,88,0,0,0,0,0,0,0,0,0,0,0,0,248,88,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,114,68,0,0,0,0,0,0,0,0,0,0,0,0,114,114,47,222,114,47,0,0,0,0,0,+ 0,0,0,114,114,47,114,114,68,114,114,114,114,0,0,0,0,114,222,114,47,114,68,114,47,222,222,114,114,47,47,0,+ 114,47,47,114,68,114,68,114,68,68,47,114,68,68,114,114,253,253,68,154,222,114,114,68,222,47,114,68,68,88,222,88,+ 253,253,253,248,253,114,68,114,114,114,114,222,114,88,114,88,253,114,114,68,253,253,68,114,68,88,222,88,222,30,88,222,+ 253,68,253,248,248,114,248,248,222,245,245,88,88,114,88,88,114,253,114,253,253,248,114,253,30,114,222,114,245,88,114,88,+ 248,114,253,253,114,114,114,68,245,88,222,245,88,245,222,114,253,253,114,114,68,253,253,114,88,222,245,222,222,88,114,222,+ 0,114,248,114,253,253,114,114,222,114,114,88,245,222,222,0,0,0,0,253,68,248,253,248,88,88,88,245,222,0,0,0,+ 0,0,0,0,0,253,253,114,222,114,88,0,0,0,0,0,0,0,0,0,0,0,0,248,88,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,24,107,0,0,0,0,0,0,0,0,0,0,0,0,120,111,18,34,154,34,0,0,0,0,0,+ 0,0,0,107,111,54,18,18,27,34,125,120,34,0,0,0,0,18,18,27,34,24,95,27,107,107,27,27,27,107,75,0,+ 152,236,34,107,34,120,75,111,111,95,24,125,34,107,154,75,34,24,107,107,95,54,111,107,152,152,24,95,217,57,107,152,+ 154,107,30,75,107,152,107,236,154,125,34,107,27,77,25,30,75,24,106,107,107,152,217,107,107,75,19,217,137,95,137,25,+ 154,106,107,106,106,106,152,107,25,137,77,137,54,27,57,25,55,107,137,75,152,107,107,30,25,77,107,25,137,30,25,152,+ 34,55,152,95,154,152,54,186,137,95,65,217,107,195,152,25,32,75,107,107,107,107,32,186,55,107,195,19,195,25,186,19,+ 0,75,107,186,154,152,154,154,137,137,107,27,152,25,107,0,0,0,0,34,55,152,75,107,25,217,25,25,137,0,0,0,+ 0,0,0,0,0,27,106,106,107,137,77,0,0,0,0,0,0,0,0,0,0,0,0,107,57,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,47,141,0,0,0,0,0,0,0,0,0,0,0,0,141,141,228,141,47,47,0,0,0,0,0,+ 0,0,0,141,47,228,47,47,47,81,47,141,47,0,0,0,0,47,47,81,47,141,81,228,141,47,141,228,47,141,47,0,+ 67,81,141,47,141,228,141,141,47,228,47,141,47,81,141,179,52,82,52,67,141,47,81,81,47,47,47,81,47,81,228,179,+ 67,82,67,67,52,81,47,141,47,228,141,228,179,228,248,81,52,52,52,82,52,52,52,228,47,179,228,228,88,88,179,81,+ 52,222,52,67,67,222,52,67,81,179,88,179,228,81,248,179,52,67,82,82,67,52,52,82,248,179,228,179,88,228,179,179,+ 52,82,52,52,52,222,52,67,179,228,248,81,179,228,248,81,52,52,67,82,67,82,52,82,88,81,81,179,88,179,179,81,+ 0,179,52,67,82,82,52,67,179,228,248,179,228,228,248,0,0,0,0,222,52,67,52,82,248,81,81,179,88,0,0,0,+ 0,0,0,0,0,222,52,52,179,179,248,0,0,0,0,0,0,0,0,0,0,0,0,82,88,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,81,179,0,0,0,0,0,0,0,0,0,0,0,0,179,179,248,179,114,81,0,0,0,0,0,+ 0,0,0,179,81,248,114,114,81,88,114,179,81,0,0,0,0,114,81,88,114,179,222,248,179,114,179,248,114,179,81,0,+ 131,88,179,81,179,248,179,179,114,248,81,179,114,88,179,53,196,88,196,131,179,81,88,88,114,81,81,88,81,88,88,53,+ 131,53,131,131,196,88,114,179,81,248,179,88,53,88,211,88,196,253,196,53,196,253,196,248,81,53,88,88,128,245,53,88,+ 196,245,196,131,131,245,196,131,88,53,128,53,88,88,211,53,253,131,248,53,131,253,253,53,211,53,88,53,128,88,53,53,+ 196,53,196,253,253,245,196,131,53,88,211,88,53,88,211,88,196,196,131,53,131,248,196,53,128,88,88,53,128,53,53,88,+ 0,248,196,131,53,53,253,131,53,88,211,53,88,88,211,0,0,0,0,245,196,131,196,53,211,88,88,53,128,0,0,0,+ 0,0,0,0,0,245,196,253,53,53,211,0,0,0,0,0,0,0,0,0,0,0,0,53,128,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,35,132,0,0,0,0,0,0,0,0,0,0,0,0,132,132,141,132,35,35,0,0,0,0,0,+ 0,0,0,132,35,141,35,35,35,121,35,132,35,0,0,0,0,35,35,121,35,132,234,141,234,35,132,141,35,132,35,0,+ 121,121,132,35,132,141,132,132,35,141,35,132,35,121,234,63,234,141,234,121,234,35,234,121,35,35,35,121,35,161,161,63,+ 121,161,121,121,234,121,35,132,35,141,234,161,161,161,254,161,234,121,234,161,234,121,234,141,35,161,161,161,228,48,161,161,+ 234,161,234,141,121,161,234,141,161,161,228,63,161,161,254,63,121,121,141,161,121,121,121,161,254,161,161,63,228,161,161,63,+ 234,161,234,121,121,161,234,121,161,161,254,161,161,161,254,161,234,234,121,161,121,141,234,161,228,161,161,161,228,161,161,161,+ 0,52,234,141,141,161,121,141,161,161,254,63,161,161,254,0,0,0,0,161,234,121,234,161,254,161,161,63,228,0,0,0,+ 0,0,0,0,0,161,234,121,161,161,254,0,0,0,0,0,0,0,0,0,0,0,0,161,228,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,193,0,0,0,0,+ 0,0,0,0,193,193,0,0,0,0,193,135,60,0,0,0,0,0,0,0,96,135,0,193,193,135,0,135,67,0,0,0,+ 0,0,0,193,67,96,60,0,135,60,108,222,222,60,0,0,0,0,0,135,228,60,60,0,60,67,222,108,108,67,0,0,+ 0,0,0,0,0,228,67,108,67,222,108,60,0,193,135,0,0,0,0,193,60,0,131,222,193,193,0,0,193,135,60,0,+ 0,0,0,135,0,67,114,114,135,96,60,108,0,60,0,0,0,0,0,0,135,114,108,222,67,60,222,222,114,67,193,0,+ 0,0,0,193,96,108,0,193,60,108,108,193,60,0,60,135,0,0,193,135,60,60,0,135,60,67,108,0,0,0,0,60,+ 0,0,135,60,0,60,0,108,67,193,96,0,0,0,0,0,0,0,0,0,0,0,0,67,114,108,60,0,0,0,0,0,+ 0,0,0,0,0,0,0,67,222,108,0,0,0,0,0,0,0,0,0,0,0,0,0,228,222,108,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,78,166,0,0,0,0,0,0,0,0,0,0,0,0,0,78,202,78,78,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,108,150,0,0,0,0,0,0,0,0,0,0,166,202,0,166,184,150,0,166,202,0,0,0,0,+ 0,0,166,202,166,166,202,150,184,166,202,0,0,0,0,0,0,166,78,108,108,0,202,184,184,78,0,0,166,0,0,0,+ 0,0,166,108,166,166,78,108,108,166,78,108,108,0,0,0,0,0,0,0,108,184,108,184,166,108,184,150,166,0,0,0,+ 0,0,0,166,166,108,184,166,78,184,78,0,0,0,0,0,0,0,0,0,0,166,108,166,184,108,166,0,0,0,0,0,+ 0,0,0,0,0,78,166,184,184,78,78,166,0,0,0,0,0,0,0,0,0,0,78,108,150,166,0,0,0,0,0,0,+ 0,0,0,0,0,0,108,150,184,202,0,0,0,0,0,0,0,0,0,0,0,0,0,150,150,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,240,240,39,0,0,0,0,39,39,0,0,0,0,0,0,0,209,240,0,240,39,39,0,240,39,0,0,0,+ 0,0,0,240,209,209,177,240,240,0,240,240,209,39,0,0,0,0,0,209,177,175,175,209,240,0,240,240,177,240,0,0,+ 0,0,240,39,0,240,209,209,209,175,209,177,0,0,0,0,0,0,240,240,39,0,0,39,39,209,175,0,240,39,0,0,+ 0,0,0,240,0,175,240,240,240,209,175,209,0,240,0,0,0,0,39,209,209,177,175,240,209,209,177,209,240,0,0,0,+ 0,240,240,0,240,39,175,175,240,39,0,177,240,39,0,0,0,240,0,0,0,0,177,209,240,240,0,240,240,240,39,0,+ 0,0,0,0,0,0,39,39,209,177,0,240,0,240,240,0,0,0,0,0,0,0,240,177,175,209,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,177,209,175,0,0,0,0,0,0,0,0,0,0,0,0,0,177,209,177,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,217,77,0,0,0,0,0,0,0,0,0,0,0,0,77,180,217,77,180,217,0,0,0,0,0,+ 0,0,0,217,180,217,107,217,77,217,77,77,180,0,0,0,0,217,77,217,77,77,77,77,180,217,77,77,217,183,77,0,+ 98,77,77,183,77,217,77,183,180,77,217,77,180,77,217,77,115,236,106,180,77,77,180,217,180,77,180,217,183,189,77,77,+ 236,106,98,236,236,217,180,217,77,180,217,217,217,77,189,42,236,106,98,236,98,236,98,217,217,189,217,189,77,217,189,42,+ 236,98,98,98,98,98,236,98,77,189,42,189,42,77,189,217,106,98,98,98,106,106,236,106,217,189,189,217,42,217,189,77,+ 98,106,236,106,236,98,236,106,189,19,189,77,77,217,217,77,106,236,98,106,98,98,236,106,77,42,189,189,217,189,77,77,+ 0,98,98,98,236,106,106,106,189,189,77,189,189,217,189,0,0,0,0,106,106,98,98,115,77,189,77,189,77,0,0,0,+ 0,0,0,0,0,98,98,236,217,189,217,0,0,0,0,0,0,0,0,0,0,0,0,106,189,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,164,164,0,0,0,0,0,0,0,0,0,0,0,0,35,164,164,164,252,164,0,0,0,0,0,+ 0,0,0,132,164,209,164,35,209,35,164,209,164,0,0,0,0,164,164,164,209,164,35,209,35,164,35,164,209,164,56,0,+ 252,164,35,35,35,164,164,164,17,164,56,35,132,164,209,224,156,252,234,35,164,164,164,164,164,164,164,20,164,224,224,121,+ 234,252,234,234,252,35,164,164,209,35,164,224,224,224,224,161,252,26,252,252,252,252,72,164,164,224,161,224,224,224,161,224,+ 252,234,252,252,234,252,234,252,224,224,224,224,206,121,224,224,252,234,234,72,234,121,121,121,224,224,224,161,161,224,224,224,+ 252,121,156,234,72,234,252,121,224,224,161,224,224,224,161,224,234,224,234,234,72,72,234,252,224,224,224,224,224,161,224,224,+ 0,121,234,72,252,35,26,252,224,224,224,63,206,224,224,0,0,0,0,156,252,252,252,121,224,206,161,224,206,0,0,0,+ 0,0,0,0,0,252,121,234,224,161,224,0,0,0,0,0,0,0,0,0,0,0,0,121,224,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,95,95,0,0,0,0,0,0,0,0,0,0,0,0,18,34,24,24,217,32,0,0,0,0,0,+ 0,0,0,34,18,24,180,54,125,34,34,34,24,0,0,0,0,18,111,120,24,34,34,34,34,217,217,32,34,34,34,0,+ 55,34,24,54,34,24,24,34,152,125,34,54,24,217,125,57,107,32,217,34,27,24,34,27,24,34,27,27,152,27,107,27,+ 107,106,107,27,32,34,95,152,34,54,18,95,77,137,25,137,55,107,32,107,107,107,107,34,24,27,106,137,55,27,137,195,+ 34,236,137,107,106,32,34,107,57,27,137,217,77,137,186,27,32,107,107,125,107,107,32,32,137,137,27,137,25,25,137,95,+ 154,32,236,32,19,149,149,24,25,217,77,30,137,186,186,137,217,107,107,107,149,32,106,107,137,137,137,186,77,186,106,27,+ 0,30,32,217,107,32,32,32,106,186,195,30,106,25,186,0,0,0,0,32,217,95,107,152,75,137,186,57,186,0,0,0,+ 0,0,0,0,0,107,217,107,106,186,137,0,0,0,0,0,0,0,0,0,0,0,0,95,186,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,34,54,0,0,0,0,0,0,0,0,0,0,0,0,54,125,34,54,125,34,0,0,0,0,0,+ 0,0,0,34,21,34,17,34,54,34,54,54,125,0,0,0,0,34,54,34,54,54,54,54,176,34,54,54,34,107,54,0,+ 95,54,54,176,54,34,54,176,21,54,176,54,125,54,34,137,186,54,107,125,54,54,17,34,125,54,125,34,107,106,137,137,+ 54,107,95,54,54,34,125,34,176,125,34,27,27,137,106,19,54,107,95,35,95,54,95,34,34,106,27,106,137,27,106,19,+ 35,95,176,95,95,95,176,95,137,106,19,106,19,122,106,27,107,95,95,95,107,35,54,107,27,106,180,122,19,27,106,137,+ 95,107,54,35,35,95,54,107,106,180,106,137,122,27,27,137,107,35,95,107,95,95,54,107,137,19,106,106,27,113,137,137,+ 0,95,95,95,26,35,107,107,106,106,137,106,122,27,106,0,0,0,0,107,107,95,112,186,137,106,137,106,137,0,0,0,+ 0,0,0,0,0,95,95,54,27,106,27,0,0,0,0,0,0,0,0,0,0,0,0,107,106,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,34,54,0,0,0,0,0,0,0,0,0,0,0,0,54,125,34,54,125,34,0,0,0,0,0,+ 0,0,0,34,156,34,72,34,54,34,54,54,125,0,0,0,0,34,54,34,54,54,54,54,121,34,54,54,34,107,54,0,+ 95,54,54,121,54,34,54,121,156,54,121,54,125,54,34,137,186,54,107,125,54,54,72,34,125,54,125,34,107,106,137,137,+ 54,107,95,54,54,34,125,34,121,125,34,27,27,137,106,19,54,107,95,121,95,54,95,34,34,106,27,106,137,27,106,19,+ 121,95,44,95,95,95,44,95,137,106,19,106,19,233,106,27,107,95,95,95,107,121,54,107,27,106,44,233,19,27,106,137,+ 95,107,54,121,121,95,54,107,106,44,106,137,233,27,27,137,107,121,95,107,95,95,54,107,137,19,106,106,27,233,137,137,+ 0,95,95,95,204,121,107,107,106,106,137,106,233,27,106,0,0,0,0,107,107,95,44,186,137,106,137,106,137,0,0,0,+ 0,0,0,0,0,95,95,54,27,106,27,0,0,0,0,0,0,0,0,0,0,0,0,107,106,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,34,54,0,0,0,0,0,0,0,0,0,0,0,0,54,125,34,54,125,34,0,0,0,0,0,+ 0,0,0,34,19,34,106,34,54,34,54,54,125,0,0,0,0,34,54,34,54,54,54,54,77,34,54,54,34,107,54,0,+ 95,54,54,77,54,34,54,77,19,54,77,54,125,54,34,137,186,54,107,125,54,54,106,34,125,54,125,34,107,106,137,137,+ 54,107,95,54,54,34,125,34,77,125,34,27,27,137,106,19,54,107,95,57,95,54,95,34,34,106,27,106,137,27,106,19,+ 57,95,65,95,95,95,65,95,137,106,19,106,19,31,106,27,107,95,95,95,107,57,54,107,27,106,98,31,19,27,106,137,+ 95,107,54,57,57,95,54,107,106,98,106,137,31,27,27,137,107,57,95,107,95,95,54,107,137,19,106,106,27,31,137,137,+ 0,95,95,95,25,57,107,107,106,106,137,106,31,27,106,0,0,0,0,107,107,95,98,186,137,106,137,106,137,0,0,0,+ 0,0,0,0,0,95,95,54,27,106,27,0,0,0,0,0,0,0,0,0,0,0,0,107,106,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,228,228,0,0,0,0,0,0,0,0,0,0,0,0,53,47,141,141,47,179,0,0,0,0,0,+ 0,0,0,228,47,141,47,47,47,47,52,141,228,0,0,0,0,53,47,141,47,47,141,47,47,141,47,47,141,47,228,0,+ 222,53,47,141,47,47,141,47,47,141,47,47,141,47,228,82,131,128,82,53,141,52,47,47,47,47,52,47,53,131,131,82,+ 245,245,81,222,222,228,47,141,141,47,228,211,211,131,82,131,179,222,179,222,157,67,179,53,228,82,82,53,211,82,131,248,+ 81,222,131,222,245,81,179,81,53,211,131,53,211,245,131,131,179,222,245,245,157,81,67,179,128,53,248,211,211,211,82,82,+ 67,222,81,222,245,53,179,222,53,248,211,211,133,211,82,82,222,222,67,67,131,245,222,82,82,248,222,53,53,211,222,53,+ 0,245,179,82,131,157,67,179,82,248,82,248,53,211,248,0,0,0,0,245,222,157,131,67,131,53,131,211,248,0,0,0,+ 0,0,0,0,0,128,179,128,248,211,248,0,0,0,0,0,0,0,0,0,0,0,0,179,248,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,131,131,0,0,0,0,0,0,0,0,0,0,0,0,128,81,228,228,81,131,0,0,0,0,0,+ 0,0,0,131,81,228,67,81,81,67,179,114,131,0,0,0,0,128,81,228,81,81,228,67,67,228,81,67,228,81,131,0,+ 73,128,81,228,81,81,228,67,67,228,81,81,228,81,131,128,73,109,184,128,114,179,67,81,81,67,179,81,128,133,133,128,+ 150,150,53,73,73,131,81,81,228,81,131,109,109,133,128,133,128,73,128,73,109,53,128,128,131,128,128,73,109,128,133,162,+ 53,184,73,133,150,53,128,245,69,109,133,73,109,69,133,133,128,73,150,150,109,212,53,128,109,73,73,109,200,109,184,184,+ 53,73,245,133,150,69,128,73,201,73,109,109,200,109,128,128,73,184,53,53,73,150,184,184,128,73,184,69,201,109,184,73,+ 0,109,128,184,73,109,53,128,128,73,128,73,69,109,73,0,0,0,0,150,73,109,73,53,133,73,133,109,73,0,0,0,+ 0,0,0,0,0,109,128,109,73,109,73,0,0,0,0,0,0,0,0,0,0,0,0,128,73,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,56,56,0,0,0,0,0,0,0,0,0,0,0,0,189,132,47,141,132,216,0,0,0,0,0,+ 0,0,0,56,132,141,132,132,132,132,141,132,56,0,0,0,0,25,132,141,132,132,141,132,132,141,132,132,141,35,56,0,+ 216,25,132,47,132,132,141,132,132,141,132,132,141,132,37,75,33,111,180,25,234,141,132,132,132,132,141,132,189,180,24,34,+ 216,125,120,216,216,37,132,47,141,132,56,154,24,75,24,34,120,26,195,65,111,216,216,17,20,125,24,34,24,34,31,24,+ 120,216,125,26,216,33,216,216,24,125,41,123,24,24,34,154,33,216,216,216,120,26,120,216,180,75,24,34,32,24,24,24,+ 26,216,125,120,216,33,216,250,98,24,154,180,34,180,75,98,195,33,120,125,216,216,33,111,75,180,34,125,24,24,98,36,+ 0,195,26,125,216,120,216,216,24,34,75,24,24,98,180,0,0,0,0,216,120,216,216,120,24,24,24,180,125,0,0,0,+ 0,0,0,0,0,120,120,169,34,24,154,0,0,0,0,0,0,0,0,0,0,0,0,33,24,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,0,0,0,0,0,0,0,0,0,+ 0,0,0,240,240,0,117,117,240,239,0,155,0,0,0,0,0,240,0,39,0,240,155,39,39,155,240,117,39,39,155,0,+ 0,0,155,0,39,0,0,155,240,39,0,0,0,39,39,175,0,174,0,0,0,0,239,0,0,155,39,0,155,0,87,175,+ 239,0,240,0,0,155,240,117,0,155,0,0,87,175,0,155,174,0,239,0,239,240,117,155,155,155,205,0,155,0,205,205,+ 174,239,0,0,174,240,0,143,0,0,175,0,155,0,87,205,0,117,143,174,0,117,0,174,0,0,155,175,175,0,175,0,+ 0,240,205,0,174,143,143,175,175,87,205,155,0,0,0,175,0,174,239,0,239,0,240,117,175,155,0,0,155,155,175,205,+ 0,0,175,0,175,239,174,0,87,0,0,0,87,155,155,0,0,0,0,143,117,174,0,239,0,155,175,0,175,0,0,0,+ 0,0,0,0,0,0,240,0,0,205,155,0,0,0,0,0,0,0,0,0,0,0,0,240,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,166,166,0,0,0,0,0,0,0,0,0,0,0,0,143,0,166,188,126,166,0,0,0,0,0,+ 0,0,0,166,166,166,203,143,0,143,0,0,0,0,0,0,0,126,203,166,188,0,0,0,0,166,166,143,188,0,166,0,+ 202,0,166,166,166,0,0,188,0,166,0,166,166,166,166,117,202,188,202,166,188,0,166,166,166,143,166,166,166,126,0,117,+ 0,0,0,80,0,0,0,0,143,0,143,0,117,80,126,0,202,188,0,0,0,188,202,203,166,126,117,0,0,0,126,117,+ 202,0,0,188,202,80,202,251,143,80,117,126,93,0,0,117,0,188,0,202,202,188,202,0,0,143,0,0,0,117,0,126,+ 251,0,188,202,0,0,188,0,0,143,117,126,0,117,126,0,202,0,202,202,202,0,202,0,93,117,117,0,0,117,80,117,+ 0,80,202,188,202,251,202,188,80,80,126,117,0,0,0,0,0,0,0,0,0,188,188,126,0,117,0,80,117,0,0,0,+ 0,0,0,0,0,251,202,0,0,117,126,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,174,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,0,0,0,0,0,0,0,0,0,+ 0,0,0,239,239,0,117,117,240,174,0,117,0,0,0,0,0,239,0,240,0,239,117,240,240,117,239,117,240,240,117,0,+ 0,0,117,0,240,0,0,117,239,39,0,0,0,240,240,155,0,175,0,0,0,0,174,0,0,117,39,0,155,0,87,155,+ 174,0,239,0,0,117,239,117,0,117,0,0,87,155,0,117,175,0,174,0,174,239,143,117,117,155,87,0,155,0,87,205,+ 175,174,0,0,175,239,0,143,0,0,155,0,155,0,87,87,0,143,143,175,0,143,0,175,0,0,117,155,155,0,155,0,+ 0,239,205,0,175,205,205,155,155,87,87,117,0,0,0,155,0,175,174,0,174,0,239,117,175,155,0,0,155,117,155,87,+ 0,0,155,0,175,174,175,0,87,0,0,0,87,117,117,0,0,0,0,205,117,175,0,174,0,155,155,0,155,0,0,0,+ 0,0,0,0,0,0,239,0,0,87,155,0,0,0,0,0,0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,17,17,0,0,0,0,0,0,0,0,0,0,0,0,17,17,17,17,0,17,0,0,0,0,0,+ 0,0,0,17,244,244,0,0,0,0,0,0,17,0,0,0,0,244,244,0,0,0,0,244,244,17,17,0,0,0,17,0,+ 26,181,0,0,0,244,17,17,0,0,0,244,244,244,0,138,0,0,26,0,0,0,0,0,0,0,0,0,181,180,0,0,+ 26,0,0,70,26,0,0,0,0,0,0,180,0,0,0,210,0,0,0,0,0,0,26,181,244,0,0,0,0,0,0,210,+ 70,0,0,0,26,0,0,134,0,180,0,0,0,0,0,210,0,0,0,0,0,0,70,134,0,0,0,138,0,0,0,0,+ 70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0,0,0,0,0,0,134,0,0,0,180,0,180,0,138,+ 0,134,0,0,0,0,26,0,0,0,0,0,0,0,210,0,0,0,0,0,0,0,0,134,0,0,0,0,210,0,0,0,+ 0,0,0,0,0,134,0,134,0,0,210,0,0,0,0,0,0,0,0,0,0,0,0,70,210,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,34,54,0,0,0,0,0,0,0,0,0,0,0,0,54,125,34,129,125,34,0,0,0,0,0,+ 0,0,0,34,83,83,40,34,54,34,54,54,125,0,0,0,0,34,54,83,54,54,54,54,83,34,54,54,34,107,54,0,+ 95,54,54,40,40,34,54,83,83,54,83,54,125,54,34,137,186,54,107,125,54,40,83,34,125,54,125,34,107,106,137,137,+ 54,107,140,54,54,34,125,34,83,129,34,27,27,137,106,19,54,107,95,140,95,54,95,34,34,106,27,106,137,27,106,19,+ 140,95,83,95,95,95,140,95,137,140,85,106,19,242,106,27,107,95,95,95,107,83,54,107,27,106,85,85,19,85,85,137,+ 95,85,54,40,83,95,54,107,106,85,106,85,85,27,242,137,107,54,85,107,140,140,54,107,85,19,106,106,27,106,137,137,+ 0,95,140,95,40,107,140,107,106,106,137,106,97,27,106,0,0,0,0,107,107,95,140,186,137,106,97,106,137,0,0,0,+ 0,0,0,0,0,95,95,54,27,106,27,0,0,0,0,0,0,0,0,0,0,0,0,107,106,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,83,129,0,0,0,0,0,0,0,0,0,0,0,0,129,83,83,129,129,129,0,0,0,0,0,+ 0,0,0,83,83,83,83,83,83,83,83,83,129,0,0,0,0,129,83,83,40,83,83,83,83,83,83,83,40,83,129,0,+ 83,140,83,40,40,83,40,83,83,83,83,83,40,83,40,85,140,129,83,140,83,40,83,83,83,83,83,140,40,140,242,97,+ 140,83,140,140,83,140,40,83,83,129,140,140,242,97,242,97,85,140,140,140,140,85,83,40,40,140,85,242,242,242,97,97,+ 140,140,83,140,140,85,140,85,85,140,85,242,242,242,242,97,140,140,140,140,140,140,85,85,85,85,85,242,242,242,242,242,+ 140,85,140,140,140,140,140,85,85,85,97,85,242,242,242,242,140,140,85,85,140,140,140,85,242,85,242,97,242,242,242,97,+ 0,140,140,85,140,140,140,85,85,97,242,97,97,97,242,0,0,0,0,242,140,140,140,242,242,242,97,242,97,0,0,0,+ 0,0,0,0,0,242,140,242,242,85,97,0,0,0,0,0,0,0,0,0,0,0,0,85,97,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,164,164,0,0,0,0,0,0,0,0,0,0,0,0,35,35,164,164,164,164,0,0,0,0,0,+ 0,0,0,35,35,164,35,35,164,164,35,164,164,0,0,0,0,164,164,164,164,164,164,35,209,164,164,35,164,164,164,0,+ 252,164,164,164,164,164,164,164,164,164,164,164,164,164,164,206,234,252,252,164,35,164,35,35,35,209,209,164,164,206,224,161,+ 252,72,121,234,72,164,164,164,164,164,35,206,224,161,206,224,234,252,252,72,121,252,72,164,164,224,224,161,206,224,224,161,+ 252,252,121,252,141,72,234,252,224,161,206,224,161,224,161,206,121,252,121,121,141,234,252,72,206,224,224,224,206,161,224,161,+ 252,252,234,252,234,121,234,121,224,161,206,206,224,161,224,224,121,121,72,121,234,141,252,72,206,224,161,224,161,224,224,63,+ 0,252,252,252,72,72,141,252,224,161,63,206,224,224,206,0,0,0,0,252,121,234,252,72,206,161,224,63,224,0,0,0,+ 0,0,0,0,0,121,141,252,206,161,161,0,0,0,0,0,0,0,0,0,0,0,0,72,206,0,0,0,0,0,0,0,+ 0,0,0,0,0,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,240,0,0,0,0,+ 0,0,39,0,0,240,0,0,39,0,240,0,0,0,0,174,0,0,240,174,0,240,240,0,240,0,174,0,240,0,39,174,+ 39,0,240,240,0,240,174,0,240,0,174,240,0,0,240,240,240,174,0,240,0,240,174,0,239,174,240,240,39,0,240,0,+ 39,174,0,240,0,239,174,0,174,240,174,0,39,0,240,0,240,240,174,240,174,239,240,239,174,240,174,0,240,0,174,0,+ 0,240,174,240,174,239,240,0,240,240,240,240,240,240,240,0,0,240,174,0,174,174,240,239,174,0,174,174,240,174,240,0,+ 0,240,174,0,174,0,174,240,174,0,174,240,240,174,240,0,0,174,240,0,174,0,174,240,174,0,174,239,240,174,0,0,+ 0,174,174,240,174,239,174,240,174,240,174,239,174,240,0,0,0,240,39,240,174,240,174,240,240,240,174,239,174,240,239,0,+ 0,239,239,174,240,239,174,240,174,240,174,174,174,174,239,0,239,240,239,174,239,174,174,239,174,239,239,239,174,239,174,0,+ 0,0,0,0,0,0,0,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,122,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,122,145,0,0,0,122,0,0,0,0,0,0,0,0,0,0,122,145,0,0,0,122,145,0,0,+ 0,0,0,122,122,0,0,122,122,145,145,122,122,0,0,0,0,0,0,0,145,122,0,0,122,122,122,145,145,122,0,0,+ 0,0,0,0,0,145,122,145,122,145,145,0,145,0,0,0,0,0,0,0,0,0,145,122,145,145,0,0,0,0,0,0,+ 0,0,0,0,0,122,122,122,145,0,0,145,0,0,0,0,0,122,122,122,122,122,145,122,122,145,122,122,122,122,0,0,+ 0,0,0,145,145,145,0,122,122,145,145,0,145,145,122,0,0,0,0,0,122,0,0,0,122,145,145,0,0,0,122,0,+ 0,0,0,0,122,0,0,145,122,145,0,0,0,0,0,0,0,0,0,0,0,0,0,122,122,145,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,122,122,145,0,0,0,0,0,0,0,0,0,0,0,0,0,145,122,145,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,20,37,0,0,0,0,0,0,0,0,0,0,0,0,26,20,56,20,56,56,0,0,0,0,0,+ 0,0,0,37,56,17,56,26,56,20,37,26,56,0,0,0,0,56,37,20,56,216,20,56,20,26,20,56,56,120,20,0,+ 111,56,37,56,17,56,20,26,37,56,37,33,56,17,20,54,33,26,33,56,56,216,56,37,20,20,37,56,20,236,54,24,+ 120,33,33,111,216,20,37,20,17,37,20,34,54,24,34,32,26,33,216,33,33,111,120,56,26,236,24,34,34,54,34,154,+ 216,26,120,111,120,33,26,120,24,154,34,75,75,34,24,54,33,33,216,33,26,111,33,33,34,154,75,154,34,54,24,154,+ 111,216,33,216,111,33,26,111,32,24,24,34,24,154,32,54,26,26,26,216,33,26,111,33,34,34,32,24,236,24,154,236,+ 0,216,120,111,33,216,120,26,34,24,34,75,154,34,236,0,0,0,0,26,33,33,26,216,236,32,24,24,34,0,0,0,+ 0,0,0,0,0,33,216,26,24,34,34,0,0,0,0,0,0,0,0,0,0,0,0,33,236,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,22,22,0,22,191,22,0,0,0,0,0,0,0,0,0,0,0,22,22,22,191,0,0,0,0,0,0,+ 0,0,0,0,0,22,22,191,191,191,22,0,0,0,0,0,0,0,0,0,0,0,0,49,49,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,49,172,49,172,0,0,0,0,0,0,0,0,0,0,172,49,49,172,172,0,0,0,0,0,0,+ 0,0,0,0,0,0,172,49,172,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,172,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,232,0,0,0,0,0,0,+ 0,0,0,0,0,0,232,229,232,232,232,0,0,0,0,0,0,0,0,0,0,232,232,229,229,232,232,0,0,0,0,0,+ 0,0,0,0,0,130,130,232,232,232,0,0,0,0,0,0,0,0,0,0,0,0,232,49,172,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,0,49,49,0,49,0,49,49,0,0,0,0,+ 0,0,0,0,0,0,49,0,49,49,0,0,0,0,0,0,0,0,0,0,0,0,0,49,172,49,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,176,176,0,0,0,0,0,0,0,0,0,0,0,0,176,159,159,159,159,176,0,0,0,0,0,+ 0,0,0,176,159,159,159,159,159,159,159,159,176,0,0,0,0,176,159,21,159,159,159,159,159,159,159,159,159,159,159,0,+ 113,176,159,159,159,159,159,159,159,159,159,159,159,159,176,246,176,176,113,176,159,159,159,159,159,159,159,159,176,246,113,246,+ 176,176,176,176,113,176,176,159,176,159,176,246,113,113,113,246,176,176,176,176,176,176,176,176,176,122,113,113,113,113,113,246,+ 176,176,176,176,176,176,176,113,113,113,113,113,113,113,113,246,176,176,176,176,176,176,176,113,113,113,113,113,113,113,113,246,+ 176,132,176,176,176,176,176,113,113,113,113,113,113,113,246,122,176,176,176,176,176,176,176,113,113,113,113,113,113,113,246,122,+ 0,113,176,176,176,176,176,113,113,113,113,113,113,246,246,0,0,0,0,113,176,176,113,113,141,113,113,113,246,0,0,0,+ 0,0,0,0,0,113,113,113,113,113,246,0,0,0,0,0,0,0,0,0,0,0,0,113,246,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,26,216,0,0,0,0,0,0,0,0,0,0,0,0,26,56,20,20,56,26,0,0,0,0,0,+ 0,0,0,216,20,56,20,20,56,20,20,20,26,0,0,0,0,26,20,20,56,20,20,56,20,20,20,20,20,20,216,0,+ 125,216,20,56,20,20,56,20,20,20,37,20,20,37,33,32,216,216,18,216,20,56,20,20,20,37,20,20,120,32,24,32,+ 33,120,216,33,18,33,20,20,37,20,33,54,24,24,34,54,120,216,33,120,216,216,180,216,216,32,125,24,154,24,24,75,+ 216,33,120,216,216,120,216,180,24,24,154,125,24,34,24,32,33,120,216,216,120,216,216,24,154,125,24,154,24,24,34,32,+ 120,216,33,120,216,216,111,180,24,154,24,24,154,24,24,75,216,33,120,216,33,120,216,180,125,24,154,24,24,34,24,32,+ 0,180,216,33,120,216,216,24,154,125,24,154,24,24,75,0,0,0,0,125,216,216,111,180,24,154,125,24,32,0,0,0,+ 0,0,0,0,0,180,216,180,125,24,32,0,0,0,0,0,0,0,0,0,0,0,0,125,32,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,119,61,0,0,0,0,0,0,0,0,0,0,0,0,61,61,125,204,68,61,0,0,0,0,0,+ 0,0,0,119,61,125,142,142,61,125,119,119,61,0,0,0,0,61,61,206,204,61,61,125,204,61,61,125,204,61,61,0,+ 119,206,119,119,61,125,119,119,61,125,119,142,61,125,61,142,119,206,119,125,204,61,68,125,204,61,61,125,204,95,94,94,+ 119,206,142,94,119,125,119,119,61,125,119,142,94,95,233,95,94,142,119,149,142,206,119,125,204,233,94,94,233,142,94,95,+ 119,149,94,206,119,206,119,142,94,95,233,95,94,94,233,94,142,206,119,206,94,142,119,236,233,142,94,107,233,95,94,94,+ 119,206,142,142,119,149,142,206,94,245,233,142,94,95,233,107,94,142,119,149,142,206,119,206,233,95,94,94,233,142,94,95,+ 0,149,142,206,61,206,142,142,94,107,233,233,94,94,233,0,0,0,0,206,142,142,119,149,233,142,94,95,233,0,0,0,+ 0,0,0,0,0,149,142,206,94,94,233,0,0,0,0,0,0,0,0,0,0,0,0,206,233,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,47,141,0,0,0,0,0,0,0,0,0,0,0,0,141,141,228,141,47,47,0,0,0,0,0,+ 0,0,0,141,47,228,47,47,47,81,47,141,47,0,0,0,0,47,47,81,47,141,81,228,141,47,141,228,47,141,47,0,+ 52,81,141,47,141,228,141,141,47,228,47,141,47,81,141,179,198,133,52,67,141,47,81,81,47,47,47,81,47,81,89,179,+ 198,49,140,96,67,81,47,141,47,228,141,179,162,96,60,81,198,49,140,96,128,133,52,228,47,228,89,241,198,96,60,81,+ 67,222,140,57,198,243,128,67,162,162,242,98,198,96,248,179,133,133,52,82,198,243,125,82,75,60,242,241,88,88,242,179,+ 145,219,198,211,67,222,49,67,198,60,248,228,162,162,242,81,145,219,198,245,191,133,67,82,88,179,89,211,75,198,242,81,+ 0,179,198,96,125,198,140,67,89,133,198,133,249,198,248,0,0,0,0,222,191,198,140,82,219,219,198,241,88,0,0,0,+ 0,0,0,0,0,222,140,52,219,219,248,0,0,0,0,0,0,0,0,0,0,0,0,82,88,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,120,120,0,0,0,0,0,0,0,0,0,0,0,0,236,120,203,202,137,34,0,0,0,0,0,+ 0,0,0,24,202,203,166,135,154,125,135,166,120,0,0,0,0,216,120,135,34,135,135,166,166,135,135,203,34,125,107,0,+ 24,236,18,135,203,34,180,216,135,186,135,75,34,120,154,27,107,107,107,203,166,166,203,203,186,75,106,166,107,107,143,152,+ 24,202,135,135,24,107,125,125,34,166,154,117,137,137,107,19,107,202,75,107,251,107,186,203,203,107,117,91,117,91,19,19,+ 251,202,251,251,239,106,202,236,107,143,117,77,54,91,57,107,239,24,174,202,174,174,107,202,143,117,186,117,117,78,32,152,+ 24,107,19,217,174,75,107,251,152,117,107,107,91,57,117,117,75,125,251,107,174,202,25,180,137,75,143,217,137,95,137,143,+ 0,202,107,30,251,202,186,107,19,137,57,137,236,27,78,0,0,0,0,202,202,107,107,30,117,143,75,117,152,0,0,0,+ 0,0,0,0,0,202,54,30,137,95,143,0,0,0,0,0,0,0,0,0,0,0,0,27,55,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,124,123,0,0,0,0,0,0,0,0,0,0,0,0,123,170,189,215,170,123,0,0,0,0,0,+ 0,0,0,36,170,183,123,170,123,36,170,170,170,0,0,0,0,58,215,170,123,123,123,189,215,123,41,123,124,58,123,0,+ 41,123,189,58,36,123,124,123,123,189,36,123,124,123,123,170,220,183,41,123,123,170,215,123,58,189,189,189,123,170,42,170,+ 183,71,41,41,183,123,189,123,123,189,123,170,189,220,170,170,41,220,41,215,250,41,41,123,124,170,183,247,123,247,170,170,+ 183,170,215,183,170,41,215,41,170,31,170,170,183,183,31,170,41,124,41,123,183,41,41,41,247,170,247,31,115,42,183,170,+ 215,41,41,71,41,247,183,41,170,170,124,123,220,208,98,170,41,250,41,41,183,247,250,124,170,123,170,170,31,170,170,220,+ 0,124,41,41,215,41,220,41,170,170,170,183,250,123,170,0,0,0,0,41,123,250,41,41,247,123,42,170,170,0,0,0,+ 0,0,0,0,0,41,41,36,170,123,170,0,0,0,0,0,0,0,0,0,0,0,0,124,170,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,22,191,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,17,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,67,131,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,53,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,52,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,248,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,52,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179,53,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,52,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179,245,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,122,122,76,0,0,0,0,0,0,+ 0,0,0,0,76,122,246,246,246,246,122,76,0,0,0,0,0,0,76,122,246,122,246,246,122,246,122,246,122,76,0,0,+ 0,0,76,122,122,246,122,122,246,246,246,122,122,76,0,0,76,0,0,0,76,246,122,246,246,246,246,76,0,0,0,0,+ 76,249,76,0,0,0,76,246,246,76,0,0,0,157,221,0,76,249,122,249,76,0,0,0,0,0,0,157,221,221,221,0,+ 76,222,157,18,221,122,76,0,0,157,221,221,108,50,88,0,76,122,147,154,50,147,122,0,157,221,221,238,53,108,221,0,+ 76,122,122,122,221,82,157,0,157,50,88,221,221,221,221,0,76,122,147,249,249,122,147,0,157,108,221,221,221,221,221,0,+ 0,50,147,249,122,122,249,0,157,221,221,221,221,221,238,0,0,0,0,50,147,249,147,0,157,221,221,108,169,0,0,0,+ 0,0,0,0,0,50,196,0,157,108,238,0,0,0,0,0,0,0,0,0,0,0,0,0,169,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,34,54,0,0,0,0,0,0,0,0,0,0,0,0,54,125,34,54,125,34,0,0,0,0,0,+ 0,0,0,34,244,34,17,34,54,34,54,54,125,0,0,0,0,34,54,34,54,54,54,54,84,34,54,54,34,107,54,0,+ 95,54,54,84,54,34,54,84,244,54,84,54,125,54,34,137,186,54,107,125,54,54,17,34,125,54,125,34,107,106,137,137,+ 54,107,95,54,54,34,125,34,84,125,34,27,27,137,106,19,54,107,95,146,95,54,95,34,34,106,27,106,137,27,106,19,+ 146,95,139,95,95,95,139,95,137,106,19,106,19,46,106,27,107,95,95,95,107,146,54,107,27,106,180,46,19,27,106,137,+ 95,107,54,146,146,95,54,107,106,180,106,137,46,27,27,137,107,146,95,107,95,95,54,107,137,19,106,106,27,92,137,137,+ 0,95,95,95,26,146,107,107,106,106,137,106,46,27,106,0,0,0,0,107,107,95,139,186,137,106,137,106,137,0,0,0,+ 0,0,0,0,0,95,95,54,27,106,27,0,0,0,0,0,0,0,0,0,0,0,0,107,106,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,187,187,0,0,0,0,0,0,0,0,0,0,0,0,187,84,84,84,84,187,0,0,0,0,0,+ 0,0,0,187,84,84,84,84,84,84,84,84,187,0,0,0,0,187,244,244,244,84,84,84,84,84,84,84,84,84,46,0,+ 187,187,84,84,244,244,84,84,84,84,84,84,84,84,187,187,134,139,187,187,84,84,84,84,84,84,139,84,187,187,105,187,+ 134,134,134,139,187,187,46,46,187,46,187,187,105,105,105,187,134,139,134,134,139,139,46,187,187,187,105,105,105,105,105,187,+ 134,139,139,139,134,139,139,187,105,105,105,105,105,105,105,187,134,139,139,139,139,139,139,187,105,105,105,105,105,105,105,187,+ 134,134,134,134,139,139,139,187,105,105,105,105,105,210,46,187,134,134,134,134,134,134,139,187,105,105,105,210,105,46,187,187,+ 0,187,139,134,134,139,139,187,105,210,210,210,105,187,187,0,0,0,0,187,139,46,187,187,210,210,210,105,187,0,0,0,+ 0,0,0,0,0,187,187,187,210,105,187,0,0,0,0,0,0,0,0,0,0,0,0,187,187,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,162,162,0,0,0,0,0,0,0,0,0,0,0,0,173,68,68,68,68,162,0,0,0,0,0,+ 0,0,0,162,68,68,88,68,61,131,68,68,162,0,0,0,0,173,128,68,94,88,68,131,88,68,94,131,68,157,162,0,+ 67,173,128,68,94,88,68,94,131,68,94,88,68,128,162,102,52,82,211,245,68,68,131,61,68,131,68,68,173,81,228,102,+ 67,53,67,245,67,94,68,68,68,68,162,128,89,228,248,102,52,73,52,89,52,52,52,173,162,179,228,169,88,88,179,102,+ 52,73,52,133,67,73,52,89,81,179,88,89,228,81,248,102,52,111,82,89,67,73,73,89,248,88,89,89,88,228,179,102,+ 52,82,82,211,52,26,125,89,179,89,248,162,179,228,248,102,52,81,67,165,67,82,125,89,88,34,75,102,88,179,179,102,+ 0,179,52,133,67,82,125,89,179,228,248,102,228,228,248,0,0,0,0,89,52,67,26,89,248,196,81,89,88,0,0,0,+ 0,0,0,0,0,222,52,89,179,88,248,0,0,0,0,0,0,0,0,0,0,0,0,89,88,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,25,77,0,0,0,0,0,0,0,0,0,0,0,0,99,54,95,27,55,195,0,0,0,0,0,+ 0,0,0,98,106,95,32,34,236,24,236,137,19,0,0,0,0,57,217,24,236,34,32,75,236,125,24,217,34,217,98,0,+ 99,77,107,24,217,236,154,180,154,217,34,236,154,75,195,189,30,137,98,65,54,32,217,217,217,75,137,186,31,31,98,189,+ 95,217,54,95,195,25,107,34,236,32,98,189,25,137,186,250,137,31,16,98,30,137,31,25,57,189,77,55,30,217,19,250,+ 25,189,170,16,16,77,95,98,30,77,19,25,217,137,77,31,95,18,30,154,36,16,75,31,195,19,137,55,25,30,54,189,+ 107,95,107,18,106,27,75,189,77,30,27,217,236,75,107,189,107,16,16,16,77,18,137,65,25,27,236,75,107,75,107,189,+ 0,31,189,123,16,195,154,57,27,75,95,107,95,55,189,0,0,0,0,31,31,41,24,98,137,107,107,137,189,0,0,0,+ 0,0,0,0,0,31,125,98,106,55,189,0,0,0,0,0,0,0,0,0,0,0,0,98,189,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,34,54,0,0,0,0,0,0,0,0,0,0,0,0,54,125,34,54,125,34,0,0,0,0,0,+ 0,0,0,34,232,34,232,34,54,34,54,54,125,0,0,0,0,34,54,34,54,54,54,54,232,34,54,54,34,107,54,0,+ 95,54,54,232,54,34,54,232,232,54,232,54,125,54,34,137,186,54,107,125,54,54,232,34,125,54,125,34,107,106,137,137,+ 54,107,95,54,54,34,125,34,232,125,34,27,27,137,106,19,54,107,95,232,95,54,95,34,34,106,27,106,137,27,106,19,+ 232,95,232,95,95,95,232,95,137,106,19,106,19,229,106,27,107,95,95,95,107,232,54,107,27,106,232,229,19,27,106,137,+ 95,107,54,232,232,95,54,107,106,229,106,137,229,27,27,137,107,232,95,107,95,95,54,107,137,19,106,106,27,229,137,137,+ 0,95,95,95,232,232,107,107,106,106,137,106,229,27,106,0,0,0,0,107,107,95,232,186,137,106,137,106,137,0,0,0,+ 0,0,0,0,0,95,95,54,27,106,27,0,0,0,0,0,0,0,0,0,0,0,0,107,106,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,163,60,60,163,0,0,0,0,0,0,+ 0,0,0,0,49,60,49,16,49,49,60,49,0,0,0,0,0,0,49,49,49,49,49,49,49,49,49,49,49,163,0,0,+ 163,0,163,49,16,49,49,49,49,49,49,49,49,49,0,0,16,49,49,0,49,49,49,49,49,49,49,163,0,60,60,16,+ 163,49,49,16,49,0,49,60,49,16,0,172,172,60,172,0,16,49,49,60,60,49,49,0,0,60,60,171,163,60,172,16,+ 163,60,49,60,60,49,172,0,163,60,60,172,172,60,172,0,163,60,60,60,60,49,60,0,171,60,60,172,163,172,172,16,+ 16,60,49,16,60,60,172,0,163,172,172,172,172,172,172,16,163,49,49,60,49,60,60,0,163,172,60,171,60,172,60,0,+ 0,49,49,60,60,60,172,0,163,172,60,172,172,172,60,0,0,0,0,163,49,60,60,0,163,172,60,16,60,0,0,0,+ 0,0,0,0,0,60,60,0,171,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,163,0,0,0,0,0,0,0,+ 0,116,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,0,0,193,243,0,0,116,243,0,+ 0,193,243,193,0,193,243,0,0,193,243,243,0,243,96,0,0,193,243,243,0,193,243,193,0,193,243,0,0,193,243,0,+ 0,193,243,0,0,116,243,243,0,193,243,0,0,193,243,0,0,193,243,0,0,243,96,0,0,116,243,0,0,193,243,0,+ 0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,193,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,243,+ 193,116,243,0,0,193,243,0,0,193,243,0,0,193,243,0,243,243,96,0,0,193,243,0,0,193,243,0,0,116,243,0,+ 0,193,243,0,243,116,243,0,193,193,243,0,0,243,96,0,0,193,243,0,0,243,96,0,243,193,243,0,0,193,243,0,+ 0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,116,243,0,243,193,243,0,+ 0,193,243,0,0,193,243,0,0,243,96,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,0,193,243,0,+ 0,0,0,0,0,0,0,18,180,0,0,0,0,0,0,0,0,0,0,0,0,180,236,34,236,236,18,0,0,0,0,0,+ 0,0,0,236,180,95,54,34,236,236,34,54,180,0,0,0,0,34,236,34,54,34,18,95,32,236,24,236,34,34,125,0,+ 236,95,32,236,236,32,95,180,18,107,107,236,24,32,95,25,95,75,34,95,107,180,236,54,34,236,18,95,107,95,137,25,+ 95,75,95,75,54,107,54,24,236,34,236,217,137,137,186,25,95,95,95,95,75,95,54,95,75,95,186,137,55,106,55,25,+ 236,137,217,107,75,107,95,137,186,55,137,186,55,19,25,95,75,95,34,137,95,107,75,137,106,55,106,30,25,27,55,55,+ 95,75,75,137,34,152,95,137,55,106,25,25,186,137,137,55,27,95,95,137,107,107,34,137,25,217,137,25,186,137,55,19,+ 0,137,95,137,95,95,75,95,55,106,137,25,186,106,25,0,0,0,0,137,27,107,95,95,137,186,106,25,25,0,0,0,+ 0,0,0,0,0,137,217,95,137,30,25,0,0,0,0,0,0,0,0,0,0,0,0,137,25,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,250,250,0,0,0,0,0,0,0,0,0,0,0,0,41,250,189,189,189,41,0,0,0,0,0,+ 0,0,0,41,250,250,250,250,41,115,41,41,41,0,0,0,0,41,41,41,41,41,41,250,250,189,189,189,189,41,41,0,+ 36,189,189,189,41,41,115,115,41,189,189,189,189,189,250,41,170,189,170,41,41,189,31,189,31,41,115,41,41,86,41,41,+ 36,250,36,36,170,115,250,250,41,41,41,41,183,36,41,41,170,170,170,170,170,189,170,250,250,183,41,183,250,41,36,183,+ 36,250,250,36,250,36,170,250,41,36,183,71,41,36,183,86,170,170,170,170,170,31,250,36,36,41,250,41,41,41,183,183,+ 170,170,250,170,170,250,36,170,183,41,41,41,86,250,41,183,36,189,170,170,170,170,42,170,183,41,183,86,250,41,183,41,+ 0,170,170,36,189,250,36,42,183,183,183,250,41,41,183,0,0,0,0,170,36,36,170,42,41,41,41,183,86,0,0,0,+ 0,0,0,0,0,170,170,36,183,36,183,0,0,0,0,0,0,0,0,0,0,0,0,170,41,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,214,214,0,0,0,0,0,0,0,0,0,0,0,0,101,214,214,214,101,214,0,0,0,0,0,+ 0,0,0,101,214,214,214,214,226,214,214,101,214,0,0,0,0,70,214,226,214,214,214,226,214,214,101,214,226,214,214,0,+ 154,214,214,214,214,214,214,214,70,214,70,214,101,214,226,107,24,24,154,101,214,214,214,214,214,214,214,214,214,107,107,75,+ 34,154,154,34,154,214,214,214,214,214,214,107,107,107,107,95,154,101,24,34,154,154,34,214,214,107,107,107,107,107,95,107,+ 154,154,154,154,34,154,34,24,107,107,107,107,75,75,107,107,154,154,34,180,154,34,236,236,107,107,107,107,95,107,107,107,+ 154,34,24,34,180,34,154,236,107,107,95,107,107,107,107,107,154,54,34,154,24,24,154,154,107,107,107,107,107,95,107,107,+ 0,236,34,24,154,180,154,24,217,107,107,95,75,107,107,0,0,0,0,24,154,154,154,236,107,75,107,107,75,0,0,0,+ 0,0,0,0,0,34,34,34,107,95,107,0,0,0,0,0,0,0,0,0,0,0,0,34,107,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,17,17,0,0,0,0,0,0,0,0,0,0,0,0,17,17,56,56,17,17,0,0,0,0,0,+ 0,0,0,17,17,17,56,56,17,56,56,56,17,0,0,0,0,17,17,56,56,17,56,17,17,56,17,17,56,56,56,0,+ 26,17,56,17,56,56,17,17,17,56,17,17,17,17,17,180,26,181,26,56,17,17,17,56,17,17,17,17,56,180,180,180,+ 26,33,181,33,26,17,17,17,56,56,56,180,180,125,180,125,33,181,26,26,181,181,33,56,56,180,180,125,180,180,180,125,+ 181,181,181,26,181,33,26,33,180,125,180,180,180,180,180,125,26,26,33,33,33,33,181,33,125,180,180,180,180,125,125,125,+ 26,181,181,181,26,33,181,33,180,125,180,125,180,180,180,125,181,33,33,33,181,33,26,33,180,180,180,180,125,125,180,125,+ 0,181,33,33,26,26,181,33,180,125,180,180,180,180,180,0,0,0,0,33,26,33,33,33,125,125,180,180,125,0,0,0,+ 0,0,0,0,0,26,181,181,180,125,125,0,0,0,0,0,0,0,0,0,0,0,0,26,180,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,62,62,0,0,0,0,0,0,0,0,0,0,0,0,62,17,17,17,62,62,0,0,0,0,0,+ 0,0,0,62,62,62,62,62,62,62,62,62,62,0,0,0,0,62,62,62,62,62,62,62,62,17,17,62,62,62,62,0,+ 192,62,62,62,62,62,17,17,62,62,62,62,62,62,62,92,192,192,192,62,62,62,62,62,62,62,62,62,62,92,92,92,+ 26,192,192,225,192,62,62,62,62,62,62,92,92,92,92,92,192,192,192,192,192,192,192,62,62,92,92,92,92,92,92,92,+ 225,192,192,192,26,192,192,192,92,180,92,92,92,92,92,92,192,192,192,192,192,192,225,192,92,92,92,92,92,92,92,92,+ 225,192,192,192,192,192,192,192,92,92,92,92,92,92,92,92,192,192,192,192,192,192,192,192,92,92,92,180,92,180,92,92,+ 0,192,192,192,192,192,26,192,92,92,92,92,92,92,92,0,0,0,0,192,192,192,192,192,92,92,92,92,92,0,0,0,+ 0,0,0,0,0,192,192,192,92,92,92,0,0,0,0,0,0,0,0,0,0,0,0,192,92,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,108,184,0,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,+ 0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,+ 0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,184,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,86,71,189,31,86,0,0,0,0,0,0,0,+ 0,0,0,86,250,99,25,189,189,86,0,0,0,0,0,0,0,0,0,86,189,99,65,99,189,189,86,0,0,0,0,0,+ 0,0,0,86,189,65,65,99,65,31,189,86,0,0,0,0,0,0,86,189,77,99,98,98,99,250,189,250,86,0,0,0,+ 0,0,86,250,99,65,189,250,189,36,250,41,86,0,0,0,0,0,86,189,31,31,189,189,189,250,250,250,250,86,0,0,+ 0,0,86,189,189,189,189,189,250,250,250,250,250,86,0,0,0,0,86,250,123,71,250,250,250,170,183,41,183,86,0,0,+ 0,0,0,86,250,250,170,170,170,41,36,36,86,0,0,0,0,0,0,0,86,170,170,250,86,86,86,86,0,0,0,0,+ 0,0,0,0,0,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,218,218,218,0,0,0,0,0,0,+ 0,0,0,0,0,0,218,50,50,157,218,0,0,0,0,0,0,0,0,0,0,218,238,76,103,50,50,218,0,0,0,0,+ 0,0,0,0,0,218,157,103,76,233,50,50,218,0,0,0,0,0,0,0,0,218,50,149,136,76,76,157,50,218,0,0,+ 0,0,0,0,218,50,103,233,90,136,76,238,197,238,218,0,0,0,0,218,136,238,76,76,76,238,76,169,197,36,218,0,+ 0,0,0,218,157,238,136,103,50,238,50,169,238,36,218,0,0,0,218,50,157,157,50,76,50,197,238,136,238,218,218,0,+ 0,0,218,50,254,50,136,50,238,197,238,238,238,218,0,0,0,0,218,238,169,50,50,50,238,197,197,36,197,218,0,0,+ 0,0,0,218,238,238,197,197,238,238,169,89,218,0,0,0,0,0,0,0,218,197,197,238,218,218,218,218,0,0,0,0,+ 0,0,0,0,0,218,218,218,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,106,106,0,0,0,0,0,0,0,0,0,0,0,106,106,106,111,111,106,0,0,0,+ 0,0,0,0,106,106,106,111,17,37,37,37,111,106,0,0,0,106,106,106,111,17,17,37,37,37,37,37,37,111,106,0,+ 106,180,17,17,17,37,37,37,37,37,37,107,107,107,107,77,106,17,180,37,37,37,37,37,107,107,107,180,180,180,180,77,+ 106,17,37,180,37,107,107,107,180,180,180,180,180,54,54,77,106,37,37,111,34,180,180,180,180,180,54,54,54,54,54,77,+ 106,34,34,111,34,180,180,180,54,54,54,107,77,77,77,0,0,106,34,34,34,54,54,54,54,77,77,77,0,0,0,0,+ 0,0,106,34,34,54,77,77,77,0,0,0,0,0,0,0,0,0,0,106,77,77,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,23,23,0,0,0,0,0,0,0,0,0,0,0,23,23,23,22,22,23,0,0,0,+ 0,0,0,0,23,23,23,22,17,21,21,21,22,23,0,0,0,23,23,23,22,17,17,21,21,21,21,21,21,22,23,0,+ 23,22,17,17,17,21,21,21,21,21,21,191,191,191,191,23,23,17,22,21,21,21,21,21,191,191,191,22,22,22,22,23,+ 23,17,21,22,21,191,191,191,22,22,22,22,22,112,112,23,23,21,21,22,191,22,22,22,22,22,112,112,112,112,160,23,+ 23,112,112,22,191,22,22,22,112,112,112,160,23,23,23,0,0,23,112,112,191,112,112,112,112,23,23,23,0,0,0,0,+ 0,0,23,112,191,160,23,23,23,0,0,0,0,0,0,0,0,0,0,23,23,23,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,242,242,242,242,0,0,0,0,0,0,0,0,0,0,0,242,17,17,17,17,242,0,0,0,0,0,+ 0,0,0,0,242,17,84,84,84,56,139,242,0,0,0,0,0,0,0,242,17,56,84,84,17,139,139,242,0,0,0,0,+ 0,0,0,242,17,84,17,56,56,56,139,139,242,0,0,0,0,0,242,17,84,17,84,84,84,84,46,139,242,0,0,0,+ 0,0,242,17,84,56,84,84,84,84,46,139,139,242,0,0,0,0,242,17,56,46,84,84,84,84,46,46,46,242,0,0,+ 0,0,242,17,139,139,46,46,46,46,46,46,46,242,0,0,0,0,0,242,139,46,46,46,46,46,46,46,242,0,0,0,+ 0,0,0,242,139,46,46,46,46,46,46,46,242,0,0,0,0,0,0,0,242,46,46,46,46,46,46,242,0,0,0,0,+ 0,0,0,0,0,242,242,242,242,242,242,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,64,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,64,232,232,64,0,0,0,0,0,0,0,0,0,0,0,64,232,232,229,229,64,0,0,0,0,0,+ 0,0,0,0,64,232,232,232,232,229,229,64,0,0,0,0,0,0,0,64,232,232,232,232,232,229,229,232,64,0,0,0,+ 0,0,64,232,232,232,229,232,232,229,229,229,229,64,0,0,0,0,64,232,229,232,232,232,232,229,229,229,229,64,0,0,+ 0,0,64,229,232,232,232,232,232,229,229,229,229,64,0,0,0,0,0,64,229,229,232,232,229,229,229,232,64,0,0,0,+ 0,0,0,0,64,64,229,229,229,229,64,64,0,0,0,0,0,0,0,0,0,0,64,64,64,64,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,85,85,83,83,85,0,0,0,0,0,0,0,0,0,0,85,192,129,83,225,129,85,0,0,0,+ 0,0,0,0,0,85,192,92,83,129,129,85,129,85,0,0,0,0,0,0,85,225,83,83,92,129,85,83,129,85,0,0,+ 0,0,0,0,85,192,83,225,192,129,83,129,83,85,0,0,0,0,0,0,85,92,92,192,83,85,129,83,85,85,0,0,+ 0,0,0,85,192,92,225,192,85,40,83,83,85,0,0,0,0,0,85,129,92,83,83,85,129,83,129,85,85,0,0,0,+ 0,0,85,85,192,192,40,85,83,83,40,85,0,0,0,0,0,0,85,192,85,85,129,129,83,40,85,0,0,0,0,0,+ 0,0,85,40,83,83,83,85,85,85,0,0,0,0,0,0,0,0,0,85,85,85,85,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,98,98,0,0,0,0,0,0,0,0,0,0,0,0,0,98,37,77,183,0,0,0,0,0,+ 0,0,0,0,0,0,98,37,34,77,183,0,0,0,0,0,0,0,0,0,0,98,37,34,34,77,250,183,0,0,0,0,+ 0,0,0,0,98,37,34,34,27,77,250,183,0,0,0,0,0,0,0,98,37,34,34,27,77,77,250,250,183,0,0,0,+ 0,0,98,37,34,34,27,77,77,77,77,250,183,0,0,0,0,0,98,34,34,27,77,77,77,77,77,250,250,183,0,0,+ 0,0,98,34,27,77,77,77,77,77,250,250,250,183,0,0,0,0,183,98,98,98,98,98,77,250,250,250,183,0,0,0,+ 0,0,0,183,98,98,98,98,98,77,250,183,0,0,0,0,0,0,0,0,183,98,98,98,98,98,183,0,0,0,0,0,+ 0,0,0,0,0,183,183,183,183,183,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,25,0,0,0,0,0,0,0,+ 0,0,0,0,0,25,25,226,75,25,25,0,0,0,0,0,0,0,0,0,25,138,226,226,226,75,75,25,0,0,0,0,+ 0,0,0,25,226,138,226,138,138,226,104,75,25,0,0,0,0,0,0,25,226,226,226,226,226,226,104,75,25,0,0,0,+ 0,0,25,226,138,138,226,226,138,138,75,104,75,25,0,0,0,0,25,75,226,226,226,138,226,226,75,104,75,25,0,0,+ 0,0,25,75,226,226,138,138,226,75,75,75,104,25,0,0,0,0,0,25,104,75,226,226,75,75,104,104,25,0,0,0,+ 0,0,0,0,25,25,75,75,104,75,25,25,0,0,0,0,0,0,0,0,0,0,25,25,25,25,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,128,128,0,0,0,0,0,0,0,0,0,0,0,128,128,128,119,61,128,0,0,0,+ 0,0,0,0,128,128,128,119,61,61,61,61,61,128,0,0,0,128,128,128,119,61,61,61,61,61,61,61,61,61,128,0,+ 128,119,61,61,61,61,61,61,61,61,61,94,94,94,94,133,128,119,119,61,61,61,61,61,94,94,94,142,119,119,119,133,+ 128,119,119,119,61,94,94,94,142,119,119,119,119,119,119,133,128,119,119,119,142,142,119,119,119,119,119,119,119,119,142,133,+ 128,119,119,119,142,119,119,119,119,119,119,94,133,133,133,0,0,128,119,119,142,119,119,119,142,133,133,133,0,0,0,0,+ 0,0,128,119,142,142,133,133,133,0,0,0,0,0,0,0,0,0,0,128,133,133,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,177,116,117,0,0,0,0,0,0,0,0,0,0,177,117,177,116,117,0,0,0,0,0,+ 0,0,0,0,0,21,177,39,177,240,39,0,116,177,0,0,0,0,0,0,0,21,39,177,240,116,117,116,177,116,117,0,+ 0,0,0,0,0,0,177,177,116,240,116,177,116,117,0,0,0,0,0,0,0,21,177,116,240,39,177,117,117,0,0,0,+ 0,0,0,0,177,116,39,240,116,177,117,240,39,39,0,0,0,0,177,177,177,116,240,116,177,116,39,39,117,117,0,0,+ 0,0,117,177,116,117,116,21,116,117,117,117,0,0,0,0,0,0,0,116,117,116,177,39,117,0,0,0,0,0,0,0,+ 0,0,0,117,117,177,116,117,0,0,0,0,0,0,0,0,0,0,0,0,0,116,117,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,178,219,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,130,130,73,219,0,0,0,0,0,0,0,0,0,0,130,130,130,145,145,130,198,198,0,0,0,0,+ 0,0,0,130,130,130,130,130,130,130,130,130,198,0,0,0,0,0,0,130,130,156,156,29,130,130,130,130,198,0,0,0,+ 0,0,130,130,156,156,29,130,130,130,130,130,130,198,0,0,0,0,130,130,29,156,130,130,130,130,130,130,130,198,0,0,+ 0,0,130,130,130,130,130,130,130,130,130,130,130,198,0,0,0,0,130,130,130,130,130,130,130,130,130,130,130,198,0,0,+ 0,0,0,130,130,130,130,130,130,130,130,130,198,0,0,0,0,0,0,130,130,130,130,130,130,130,130,130,198,0,0,0,+ 0,0,0,0,198,130,130,219,219,130,130,198,0,0,0,0,0,0,0,0,0,198,198,0,0,198,198,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,212,212,212,0,0,0,0,0,0,0,0,0,0,0,0,212,122,147,212,+ 0,0,0,0,0,0,0,0,0,0,0,212,122,147,122,212,0,0,0,0,0,0,0,0,0,0,212,122,147,122,212,0,+ 0,0,0,0,0,0,0,0,0,212,122,147,122,212,0,0,0,0,0,0,0,0,0,0,212,122,147,122,212,0,0,0,+ 0,0,184,184,0,0,0,212,122,147,122,212,0,0,0,0,0,0,184,108,184,0,212,122,147,122,212,0,0,0,0,0,+ 0,0,0,184,221,184,122,147,122,212,0,0,0,0,0,0,0,0,0,184,221,184,147,122,212,0,0,0,0,0,0,0,+ 0,0,0,0,184,221,184,184,0,0,0,0,0,0,0,0,0,0,0,108,147,184,221,108,184,0,0,0,0,0,0,0,+ 0,0,108,122,184,0,184,184,108,184,0,0,0,0,0,0,184,184,147,184,0,0,0,0,184,184,0,0,0,0,0,0,+ 184,221,184,0,0,0,0,0,0,0,0,0,0,0,0,0,184,184,184,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,212,212,212,0,0,0,0,0,0,0,0,0,0,0,0,212,122,122,147,212,0,+ 0,0,0,0,0,0,0,0,0,212,122,147,147,122,212,0,0,0,0,0,0,0,0,0,212,122,147,147,147,122,212,0,+ 0,0,0,0,0,0,0,0,0,108,147,147,122,212,0,0,0,0,0,0,0,0,0,0,108,122,184,122,212,0,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,212,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,+ 0,0,184,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,212,212,212,212,212,0,0,0,0,0,0,0,0,0,0,212,122,147,147,147,147,212,108,147,0,0,+ 0,0,0,0,0,0,212,212,212,212,147,147,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,147,212,0,0,+ 0,0,0,0,0,0,0,0,0,108,147,184,147,147,212,0,0,0,0,0,0,0,0,0,108,122,184,0,212,147,212,0,+ 0,0,0,0,0,0,0,108,147,184,0,0,212,147,212,0,0,0,0,0,0,0,108,122,184,0,0,0,212,147,212,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,212,122,212,0,0,0,0,0,108,122,184,0,0,0,0,0,0,212,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,212,212,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,212,122,122,212,0,0,0,0,0,0,0,0,0,0,0,212,122,147,147,212,0,0,0,0,+ 0,0,0,0,0,0,212,122,147,147,147,108,147,0,0,0,0,0,0,0,0,0,212,122,147,147,221,147,184,0,0,0,+ 0,0,0,0,0,0,0,212,212,108,147,221,147,212,0,0,0,0,0,0,0,0,0,0,108,147,184,147,147,212,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,212,212,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,55,18,24,55,+ 0,0,0,0,0,0,0,0,0,0,0,55,18,24,18,55,0,0,0,0,0,0,0,0,0,0,55,18,24,18,55,0,+ 0,0,0,0,0,0,0,0,0,55,18,24,18,55,0,0,0,0,0,0,0,0,0,0,55,18,24,18,55,0,0,0,+ 0,0,19,19,0,0,0,55,18,24,18,55,0,0,0,0,0,0,19,217,19,0,55,18,24,18,55,0,0,0,0,0,+ 0,0,0,19,75,19,18,24,18,55,0,0,0,0,0,0,0,0,0,19,75,19,24,18,55,0,0,0,0,0,0,0,+ 0,0,0,0,19,75,19,19,0,0,0,0,0,0,0,0,0,0,0,108,147,19,75,217,19,0,0,0,0,0,0,0,+ 0,0,108,122,184,0,19,19,217,19,0,0,0,0,0,0,19,19,147,184,0,0,0,0,19,19,0,0,0,0,0,0,+ 19,75,19,0,0,0,0,0,0,0,0,0,0,0,0,0,19,19,19,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,55,18,18,34,55,0,+ 0,0,0,0,0,0,0,0,0,55,18,24,34,18,55,0,0,0,0,0,0,0,0,0,55,18,24,34,24,18,55,0,+ 0,0,0,0,0,0,0,0,0,108,34,24,18,55,0,0,0,0,0,0,0,0,0,0,108,122,184,18,55,0,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,55,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,+ 0,0,184,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,55,55,55,55,55,0,0,0,0,0,0,0,0,0,0,55,18,24,34,34,24,55,108,147,0,0,+ 0,0,0,0,0,0,55,55,55,55,34,34,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,24,34,55,0,0,+ 0,0,0,0,0,0,0,0,0,108,147,184,34,24,55,0,0,0,0,0,0,0,0,0,108,122,184,0,55,34,55,0,+ 0,0,0,0,0,0,0,108,147,184,0,0,55,34,55,0,0,0,0,0,0,0,108,122,184,0,0,0,55,24,55,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,55,18,55,0,0,0,0,0,108,122,184,0,0,0,0,0,0,55,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,55,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,55,18,18,55,0,0,0,0,0,0,0,0,0,0,0,55,18,34,24,55,0,0,0,0,+ 0,0,0,0,0,0,55,18,34,34,34,108,147,0,0,0,0,0,0,0,0,0,55,18,24,34,75,34,184,0,0,0,+ 0,0,0,0,0,0,0,55,55,108,34,75,34,55,0,0,0,0,0,0,0,0,0,0,108,147,184,34,34,55,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,55,55,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,106,106,106,0,0,0,0,0,0,0,0,0,0,0,0,106,17,37,106,+ 0,0,0,0,0,0,0,0,0,0,0,106,17,37,17,106,0,0,0,0,0,0,0,0,0,0,106,17,37,17,106,0,+ 0,0,0,0,0,0,0,0,0,106,17,37,17,106,0,0,0,0,0,0,0,0,0,0,106,17,37,17,106,0,0,0,+ 0,0,98,98,0,0,0,106,17,37,17,106,0,0,0,0,0,0,98,75,98,0,106,17,37,17,106,0,0,0,0,0,+ 0,0,0,98,180,98,17,37,17,106,0,0,0,0,0,0,0,0,0,98,180,98,37,17,106,0,0,0,0,0,0,0,+ 0,0,0,0,98,180,98,98,0,0,0,0,0,0,0,0,0,0,0,108,147,98,180,75,98,0,0,0,0,0,0,0,+ 0,0,108,122,184,0,98,98,75,98,0,0,0,0,0,0,98,98,147,184,0,0,0,0,98,98,0,0,0,0,0,0,+ 98,180,98,0,0,0,0,0,0,0,0,0,0,0,0,0,98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,106,106,106,0,0,0,0,0,0,0,0,0,0,0,0,106,17,17,33,106,0,+ 0,0,0,0,0,0,0,0,0,106,17,37,33,17,106,0,0,0,0,0,0,0,0,0,106,17,37,33,37,17,106,0,+ 0,0,0,0,0,0,0,0,0,108,33,37,17,106,0,0,0,0,0,0,0,0,0,0,108,122,184,17,106,0,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,106,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,+ 0,0,184,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,106,106,106,106,106,0,0,0,0,0,0,0,0,0,0,106,17,37,33,33,37,106,108,147,0,0,+ 0,0,0,0,0,0,106,106,106,106,33,33,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,37,33,106,0,0,+ 0,0,0,0,0,0,0,0,0,108,147,184,33,37,106,0,0,0,0,0,0,0,0,0,108,122,184,0,106,33,106,0,+ 0,0,0,0,0,0,0,108,147,184,0,0,106,33,106,0,0,0,0,0,0,0,108,122,184,0,0,0,106,37,106,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,106,17,106,0,0,0,0,0,108,122,184,0,0,0,0,0,0,106,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,106,106,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,106,17,17,106,0,0,0,0,0,0,0,0,0,0,0,106,17,33,37,106,0,0,0,0,+ 0,0,0,0,0,0,106,17,33,33,33,108,147,0,0,0,0,0,0,0,0,0,106,17,37,33,180,33,184,0,0,0,+ 0,0,0,0,0,0,0,106,106,108,33,180,33,106,0,0,0,0,0,0,0,0,0,0,108,147,184,33,33,106,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,106,106,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,159,176,103,+ 0,0,0,0,0,0,0,0,0,0,0,103,159,176,159,103,0,0,0,0,0,0,0,0,0,0,103,159,176,159,103,0,+ 0,0,0,0,0,0,0,0,0,103,159,176,159,103,0,0,0,0,0,0,0,0,0,0,103,159,176,159,103,0,0,0,+ 0,0,103,103,0,0,0,103,159,176,159,103,0,0,0,0,0,0,103,161,103,0,103,159,176,159,103,0,0,0,0,0,+ 0,0,0,103,113,103,159,176,159,103,0,0,0,0,0,0,0,0,0,103,113,103,176,159,103,0,0,0,0,0,0,0,+ 0,0,0,0,103,113,103,103,0,0,0,0,0,0,0,0,0,0,0,108,147,103,113,161,103,0,0,0,0,0,0,0,+ 0,0,108,122,184,0,103,103,161,103,0,0,0,0,0,0,103,103,147,184,0,0,0,0,103,103,0,0,0,0,0,0,+ 103,113,103,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,159,159,176,103,0,+ 0,0,0,0,0,0,0,0,0,103,159,176,176,159,103,0,0,0,0,0,0,0,0,0,103,159,176,176,176,159,103,0,+ 0,0,0,0,0,0,0,0,0,108,176,176,159,103,0,0,0,0,0,0,0,0,0,0,108,122,184,159,103,0,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,103,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,+ 0,0,184,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,103,159,176,176,176,176,103,108,147,0,0,+ 0,0,0,0,0,0,103,103,103,103,176,176,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,176,176,103,0,0,+ 0,0,0,0,0,0,0,0,0,108,147,184,176,176,103,0,0,0,0,0,0,0,0,0,108,122,184,0,103,176,103,0,+ 0,0,0,0,0,0,0,108,147,184,0,0,103,176,103,0,0,0,0,0,0,0,108,122,184,0,0,0,103,176,103,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,103,159,103,0,0,0,0,0,108,122,184,0,0,0,0,0,0,103,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,103,159,159,103,0,0,0,0,0,0,0,0,0,0,0,103,159,176,176,103,0,0,0,0,+ 0,0,0,0,0,0,103,159,176,176,176,108,147,0,0,0,0,0,0,0,0,0,103,159,176,176,113,176,184,0,0,0,+ 0,0,0,0,0,0,0,103,103,108,176,113,176,103,0,0,0,0,0,0,0,0,0,0,108,147,184,176,176,103,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,103,103,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,242,242,242,0,0,0,0,0,0,0,0,0,0,0,0,242,139,46,242,+ 0,0,0,0,0,0,0,0,0,0,0,242,139,46,139,242,0,0,0,0,0,0,0,0,0,0,242,139,46,139,242,0,+ 0,0,0,0,0,0,0,0,0,242,139,46,139,242,0,0,0,0,0,0,0,0,0,0,242,139,46,139,242,0,0,0,+ 0,0,126,126,0,0,0,242,139,46,139,242,0,0,0,0,0,0,126,203,126,0,242,139,46,139,242,0,0,0,0,0,+ 0,0,0,126,46,126,139,46,139,242,0,0,0,0,0,0,0,0,0,126,46,126,46,139,242,0,0,0,0,0,0,0,+ 0,0,0,0,126,46,126,126,0,0,0,0,0,0,0,0,0,0,0,108,147,126,46,203,126,0,0,0,0,0,0,0,+ 0,0,108,122,184,0,126,126,203,126,0,0,0,0,0,0,126,126,147,184,0,0,0,0,126,126,0,0,0,0,0,0,+ 126,46,126,0,0,0,0,0,0,0,0,0,0,0,0,0,126,126,126,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,242,242,242,0,0,0,0,0,0,0,0,0,0,0,0,242,139,139,46,242,0,+ 0,0,0,0,0,0,0,0,0,242,139,46,46,139,242,0,0,0,0,0,0,0,0,0,242,139,46,46,46,139,242,0,+ 0,0,0,0,0,0,0,0,0,108,46,46,139,242,0,0,0,0,0,0,0,0,0,0,108,122,184,139,242,0,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,242,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,+ 0,0,184,108,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,242,242,242,242,242,0,0,0,0,0,0,0,0,0,0,242,139,46,46,46,46,242,108,147,0,0,+ 0,0,0,0,0,0,242,242,242,242,46,46,122,184,0,0,0,0,0,0,0,0,0,0,0,0,108,46,46,242,0,0,+ 0,0,0,0,0,0,0,0,0,108,147,184,46,46,242,0,0,0,0,0,0,0,0,0,108,122,184,0,242,46,242,0,+ 0,0,0,0,0,0,0,108,147,184,0,0,242,46,242,0,0,0,0,0,0,0,108,122,184,0,0,0,242,46,242,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,242,139,242,0,0,0,0,0,108,122,184,0,0,0,0,0,0,242,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,242,0,0,0,0,0,+ 0,0,0,0,0,0,0,0,242,139,139,242,0,0,0,0,0,0,0,0,0,0,0,242,139,46,46,242,0,0,0,0,+ 0,0,0,0,0,0,242,139,46,46,46,108,147,0,0,0,0,0,0,0,0,0,242,139,46,46,46,46,184,0,0,0,+ 0,0,0,0,0,0,0,242,242,108,46,46,46,242,0,0,0,0,0,0,0,0,0,0,108,147,184,46,46,242,0,0,+ 0,0,0,0,0,0,0,108,122,184,0,242,242,0,0,0,0,0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,+ 0,0,0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,+ 0,0,0,108,147,184,0,0,0,0,0,0,0,0,0,0,0,0,108,122,184,0,0,0,0,0,0,0,0,0,0,0,+ 0,0,147,184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,+};+const uint8_t icon_of[B_N + IT_N] = {+ 255,0,1,2,3,4,5,6,7,8,9,10,255,255,11,12,13,14,15,16,17,18,19,20,+ 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,255,43,+ 44,45,46,47,48,49,50,255,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,+ 67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,+};+const uint8_t font_bits[96 * 8] = {+ 0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,10,10,5,0,0,0,0,0,10,10,31,10,31,10,10,0,+ 4,30,1,14,16,15,4,0,17,9,8,4,2,18,17,0,4,10,4,22,13,9,22,0,2,2,1,0,0,0,0,0,+ 12,2,1,1,1,2,12,0,3,4,8,8,8,4,3,0,0,0,9,6,9,0,0,0,0,4,4,31,4,4,0,0,+ 0,0,0,0,0,1,1,1,0,0,0,31,0,0,0,0,0,0,0,0,0,1,1,0,16,8,8,4,2,2,1,0,+ 14,17,25,21,19,17,14,0,4,6,4,4,4,4,31,0,14,17,16,12,2,17,31,0,14,17,16,12,16,17,14,0,+ 24,20,18,17,31,16,16,0,31,1,15,16,16,17,14,0,12,2,1,15,17,17,14,0,31,17,16,8,4,4,4,0,+ 14,17,17,14,17,17,14,0,14,17,17,30,16,8,6,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,+ 8,4,2,1,2,4,8,0,0,0,31,0,0,31,0,0,1,2,4,8,4,2,1,0,14,17,16,8,4,0,4,0,+ 30,33,45,45,61,1,30,0,14,17,31,17,17,17,17,0,15,17,15,17,17,17,15,0,14,17,1,1,1,17,14,0,+ 15,17,17,17,17,17,15,0,31,1,7,1,1,1,31,0,31,1,7,1,1,1,1,0,30,1,25,17,17,17,14,0,+ 17,17,31,17,17,17,17,0,7,2,2,2,2,2,7,0,16,16,16,16,16,17,14,0,17,9,7,9,17,17,17,0,+ 1,1,1,1,1,1,31,0,17,27,21,17,17,17,17,0,17,19,21,25,17,17,17,0,14,17,17,17,17,17,14,0,+ 15,17,15,1,1,1,1,0,14,17,17,17,17,9,22,0,15,17,15,17,17,17,17,0,30,1,14,16,16,17,14,0,+ 31,4,4,4,4,4,4,0,17,17,17,17,17,17,14,0,17,17,17,17,10,10,4,0,17,17,17,17,21,27,17,0,+ 17,10,4,10,17,17,17,0,17,10,4,4,4,4,4,0,31,16,8,4,2,1,31,0,7,1,1,1,1,1,7,0,+ 1,2,2,4,8,8,16,0,7,4,4,4,4,4,7,0,4,10,17,0,0,0,0,0,0,0,0,0,0,0,0,31,+ 1,1,2,0,0,0,0,0,0,0,14,16,30,17,30,0,1,1,13,19,17,17,15,0,0,0,14,17,1,17,14,0,+ 16,16,22,25,17,17,30,0,0,0,14,17,31,1,30,0,12,2,15,2,2,2,2,0,0,0,30,17,17,30,16,15,+ 1,1,13,19,17,17,17,0,1,0,1,1,1,1,1,0,16,0,16,16,16,17,17,14,1,1,9,5,3,5,9,0,+ 1,1,1,1,1,1,2,0,0,0,11,21,21,17,17,0,0,0,15,17,17,17,17,0,0,0,14,17,17,17,14,0,+ 0,0,13,19,17,15,1,1,0,0,22,25,17,30,16,16,0,0,13,19,1,1,1,0,0,0,30,1,14,16,15,0,+ 2,2,7,2,2,2,4,0,0,0,17,17,17,17,30,0,0,0,17,17,17,10,4,0,0,0,17,17,21,21,30,0,+ 0,0,17,10,4,10,17,0,0,0,17,17,17,30,16,15,0,0,31,8,4,2,31,0,12,2,2,1,2,2,12,0,+ 1,1,1,0,1,1,1,0,3,4,4,8,4,4,3,0,38,25,0,0,0,0,0,0,0,0,4,10,17,17,31,0,+};+const uint8_t font_w[96] = {+ 4,2,5,6,6,6,6,3,5,5,5,6,2,6,2,6,6,6,6,6,6,6,6,6,6,6,2,2,5,6,5,6,+ 7,6,6,6,6,6,6,6,6,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,4,6,4,6,6,+ 3,6,6,6,6,6,5,6,6,2,6,5,3,6,6,6,6,6,6,6,4,6,6,6,6,6,6,5,2,5,7,6,+};diff --git a/games/numblocks/ce/src/gui.c b/games/numblocks/ce/src/gui.cnew file mode 100644index 00000000..508edb3d--- /dev/null+++ b/games/numblocks/ce/src/gui.c@@ -0,0 +1,777 @@+/* The screens: the HUD (hotbar, hearts, hunger, experience, air), Minecraft's menus (the title, the worlds, a new+ * world, the game paused, death), and its containers (the inventory and its 2 x 2 crafting, the crafting table,+ * the furnace, chests, the Creative inventory), with Minecraft's pictures and font.+ *+ * Containers on the keypad: the arrows move between slots, 2nd picks up or puts down (a left click), enter takes+ * half or puts one (a right click), y= with 2nd moves a whole stack across (a shift click), clear closes.+ * A screen is drawn in bands of the 3D view's buffer, then copied to the screen: nothing flickers. */+#include "nb.h"+#include "draw.h"++int gui = GUI_NONE, menu_action;+Tile tiles[MAX_TILES];+int n_tiles;+Tile *gui_tile;+static bool hud_dirty = true;+static int tip_ticks, msg_ticks;+static char msg[48];+static int sel; /* the slot or button selected */+static bool shown; /* the screen is drawn as it is (else: draw what changes) */+static bool full; /* all of it to draw (just opened) */++/* ---------------------------------------------------------------- drawing off screen, then onto it */+static void offscreen(int x, int y, int w, int h, void (*fn)(void)) {+ if (x < 0) w += x, x = 0;+ if (y < 0) h += y, y = 0;+ if (x + w > SCREEN_W) w = SCREEN_W - x;+ if (y + h > SCREEN_H) h = SCREEN_H - y;+ if (w <= 0 || h <= 0) return;+ int band = RW * RH / w;+ for (int y0 = y; y0 < y + h; y0 += band) {+ int bh = y + h - y0 < band ? y + h - y0 : band;+ for (int r = 0; r < bh; r++) memcpy(rbuf + r * w, scr + (y0 + r) * SCREEN_W + x, (size_t)w);+ cv = (Canvas){rbuf, w, x, y0, w, bh};+ fn();+ for (int r = 0; r < bh; r++) memcpy(scr + (y0 + r) * SCREEN_W + x, rbuf + r * w, (size_t)w);+ }+ canvas_screen();+}++/* darkens what is on the screen (Minecraft's grey veil over the world behind a screen) */+static void veil(int level) {+ for (unsigned i = 0; i < SCREEN_W * SCREEN_H; i++) scr[i] = shade_cm[level][scr[i]];+}++void gui_message(const char *s) {+ strncpy(msg, s, sizeof msg - 1);+ msg_ticks = 60;+ hud_dirty = true;+}++/* ---------------------------------------------------------------- the HUD */+static int last_slot = -1, last_id = -1;+int xp_level, xp_points; /* experience: the level, the points into it */+int xp_need(int l) { return l >= 30 ? 9 * l - 158 : l >= 15 ? 5 * l - 38 : 2 * l + 7; }++void hud_draw(void) {+ static uint32_t sig;+ /* redrawn when something on it changed */+ uint32_t s = (uint32_t)pl.slot * 7 + (uint32_t)pl.health * 131 + (uint32_t)(pl.air / 30) * 1031 + (uint32_t)xp_points * 7919 ++ (uint32_t)xp_level * 104729 + (tip_ticks > 0) + (msg_ticks > 0) * 2 + (uint32_t)pl.mode * 999331;+ for (int i = 0; i < 9; i++) s = s * 31 + pl.inv[i].id * 257 + pl.inv[i].n + pl.inv[i].dmg * 7;+ if (held()->id != last_id || pl.slot != last_slot) {+ tip_ticks = held()->id ? 40 : 0;+ last_id = held()->id, last_slot = pl.slot;+ }+ if (s == sig && !hud_dirty) return;+ sig = s, hud_dirty = false;+ cv = (Canvas){hud_layer, HUD_W, HUD_X, HUD_Y, HUD_W, HUD_H};+ memset(hud_layer, 0, sizeof hud_layer);+ int x0 = SCREEN_W / 2 - 91, yb = SCREEN_H - 22;+ sprite(SP_HOTBAR, x0, yb);+ sprite(SP_HOTBAR_SEL, x0 - 1 + pl.slot * 20, yb - 1);+ for (int i = 0; i < 9; i++) stack_draw(&pl.inv[i], x0 + 3 + i * 20, yb + 3);+ if (!pl.mode) {+ /* the experience bar and level, the hearts, the hunger (always full: no hunger here), the air */+ sprite_part(SP_XP_BG, x0, SCREEN_H - 29, 0, 0, 182, 5);+ int w = xp_points * 183 / xp_need(xp_level);+ if (w > 0) sprite_part(SP_XP, x0, SCREEN_H - 29, 0, 0, w, 5);+ if (xp_level > 0) {+ char t[6];+ int n = xp_level, i = 5;+ t[i] = 0;+ do t[--i] = (char)('0' + n % 10), n /= 10;+ while (n && i);+ int tx = SCREEN_W / 2 - text_width(t + i) / 2, ty = SCREEN_H - 35;+ text_plain(tx + 1, ty, t + i, C_BLACK), text_plain(tx - 1, ty, t + i, C_BLACK);+ text_plain(tx, ty + 1, t + i, C_BLACK), text_plain(tx, ty - 1, t + i, C_BLACK);+ text_plain(tx, ty, t + i, C_GREEN);+ }+ int hy = SCREEN_H - 39;+ for (int i = 0; i < 10; i++) {+ int x = x0 + i * 8;+ sprite(SP_HEART_BG, x, hy);+ if (pl.health > i * 2 + 1) sprite(SP_HEART, x, hy);+ else if (pl.health == i * 2 + 1) sprite(SP_HEART_HALF, x, hy);+ sprite(SP_FOOD_BG, x0 + 182 - 9 - i * 8, hy);+ sprite(SP_FOOD, x0 + 182 - 9 - i * 8, hy);+ }+ if (pl.air < 300) {+ int full = (pl.air * 10 + 299) / 300, pop = (pl.air * 10) / 300;+ for (int i = 0; i < full; i++) sprite(i < pop ? SP_BUBBLE : SP_BUBBLE_POP, x0 + 182 - 9 - i * 8, hy - 10);+ }+ }+ const char *t = msg_ticks > 0 ? msg : tip_ticks > 0 ? (held()->id >= IT0 ? it_label[held()->id - IT0] : blk_label[held()->id]) : 0;+ if (t) text_center(SCREEN_W / 2, SCREEN_H - (pl.mode ? 38 : 59 - 9), t, C_WHITE);+ canvas_screen();+}++/* ---------------------------------------------------------------- tiles: chests and furnaces */+Tile *tile_at(int x, int y, int z) {+ for (int i = 0; i < n_tiles; i++)+ if (tiles[i].x == x && tiles[i].y == y && tiles[i].z == z) return &tiles[i];+ return 0;+}+Tile *tile_new(int x, int y, int z, int kind, int facing) {+ Tile *t = tile_at(x, y, z);+ if (t) return t;+ if (n_tiles >= MAX_TILES) return 0;+ t = &tiles[n_tiles++];+ memset(t, 0, sizeof *t);+ t->x = (int16_t)x, t->y = (uint8_t)y, t->z = (int16_t)z, t->kind = (uint8_t)kind, t->facing = (uint8_t)facing;+ return t;+}+void tile_remove(int x, int y, int z) {+ Tile *t = tile_at(x, y, z);+ if (!t) return;+ if (gui_tile == t) gui_tile = 0;+ *t = tiles[--n_tiles];+}++/* ---------------------------------------------------------------- crafting */+static Stack grid[9]; /* the crafting grid open (2 x 2 in the inventory: the first 4, as 2 wide) */+static Stack result;+static int grid_w; /* 2 or 3 */++static bool ing_ok(int code, int id) {+ if (code == 255) return id == 0;+ if (code == 254) return id == B_PLANKS_OAK || id == B_PLANKS_SPRUCE || id == B_PLANKS_BIRCH;+ if (code == 253) return id == B_LOG_OAK || id == B_LOG_SPRUCE || id == B_LOG_BIRCH;+ return id == code;+}+static void craft_find(void) {+ result = (Stack){0, 0, 0};+ int x0 = 9, y0 = 9, x1 = -1, y1 = -1;+ for (int i = 0; i < grid_w * grid_w; i++)+ if (grid[i].id) {+ int x = i % grid_w, y = i / grid_w;+ if (x < x0) x0 = x;+ if (x > x1) x1 = x;+ if (y < y0) y0 = y;+ if (y > y1) y1 = y;+ }+ if (x1 < 0) return;+ int w = x1 - x0 + 1, h = y1 - y0 + 1;+ for (const uint8_t *r = recipes; r[3]; r += 5 + r[3] * r[4]) {+ if (r[3] != w || r[4] != h) continue;+ for (int mirror = 0; mirror < 2; mirror++) {+ bool ok = true;+ for (int y = 0; y < h && ok; y++)+ for (int x = 0; x < w && ok; x++) {+ int rx = mirror ? w - 1 - x : x;+ ok = ing_ok(r[5 + y * w + rx], grid[(y0 + y) * grid_w + x0 + x].id);+ }+ if (ok) {+ result = (Stack){(uint8_t)(r[0] | r[1] << 8), r[2], 0};+ return;+ }+ }+ }+}+static void craft_take(void) {+ for (int i = 0; i < grid_w * grid_w; i++)+ if (grid[i].id && !--grid[i].n) grid[i].id = 0;+ craft_find();+}++/* ---------------------------------------------------------------- the containers */+typedef struct { int16_t x, y; Stack *s; uint8_t kind; } Slot; /* kind: 0 normal, 1 result, 2 creative */+enum { SK_NORMAL, SK_RESULT, SK_CREATIVE, SK_OUTPUT };+static Slot slots[64];+static int n_slots, panel_x, panel_y, panel_w, panel_h, panel_sprite;+static int creative_scroll;+static Stack creative_items[B_N + IT_N];+static int n_creative;++static void add_slot(int x, int y, Stack *s, int kind) { slots[n_slots++] = (Slot){(int16_t)x, (int16_t)y, s, (uint8_t)kind}; }+static void add_player_slots(int x, int y) {+ for (int r = 0; r < 3; r++)+ for (int c = 0; c < 9; c++) add_slot(x + c * 18, y + r * 18, &pl.inv[9 + r * 9 + c], SK_NORMAL);+ for (int c = 0; c < 9; c++) add_slot(x + c * 18, y + 58, &pl.inv[c], SK_NORMAL);+}++static void creative_list(void) {+ n_creative = 0;+ for (int b = 1; b < B_N; b++)+ if (icon_of[b] != 255) creative_items[n_creative++] = (Stack){(uint8_t)b, 64, 0};+ for (int i = 0; i < IT_N; i++) creative_items[n_creative++] = (Stack){(uint8_t)(IT0 + i), 1, 0};+}++static void layout(void) {+ n_slots = 0;+ panel_w = 176, panel_h = 166;+ switch (gui) {+ case GUI_INVENTORY:+ panel_sprite = SP_INVENTORY;+ grid_w = 2;+ for (int i = 0; i < 4; i++) add_slot(88 + (i & 1) * 18, 26 + (i >> 1) * 18, &grid[i], SK_NORMAL);+ add_slot(144, 36, &result, SK_RESULT);+ add_player_slots(8, 84);+ break;+ case GUI_CRAFTING:+ panel_sprite = SP_CRAFTING_TABLE;+ grid_w = 3;+ for (int i = 0; i < 9; i++) add_slot(30 + (i % 3) * 18, 17 + (i / 3) * 18, &grid[i], SK_NORMAL);+ add_slot(124, 35, &result, SK_RESULT);+ add_player_slots(8, 84);+ break;+ case GUI_FURNACE:+ panel_sprite = SP_FURNACE;+ add_slot(56, 17, &gui_tile->s[0], SK_NORMAL);+ add_slot(56, 53, &gui_tile->s[1], SK_NORMAL);+ add_slot(116, 35, &gui_tile->s[2], SK_OUTPUT);+ add_player_slots(8, 84);+ break;+ case GUI_CHEST:+ panel_sprite = SP_CHEST;+ for (int i = 0; i < 27; i++) add_slot(8 + (i % 9) * 18, 18 + (i / 9) * 18, &gui_tile->s[i], SK_NORMAL);+ add_player_slots(8, 85);+ break;+ case GUI_CREATIVE:+ panel_sprite = SP_CREATIVE;+ panel_w = 195, panel_h = 136;+ for (int i = 0; i < 45; i++) {+ int k = creative_scroll * 9 + i;+ add_slot(9 + (i % 9) * 18, 18 + (i / 9) * 18, k < n_creative ? &creative_items[k] : 0, SK_CREATIVE);+ }+ for (int c = 0; c < 9; c++) add_slot(9 + c * 18, 112, &pl.inv[c], SK_NORMAL);+ break;+ }+ panel_x = (SCREEN_W - panel_w) / 2, panel_y = (SCREEN_H - panel_h) / 2;+}++static void draw_panel(void) {+ int px = panel_x, py = panel_y;+ sprite(panel_sprite, px, py);+ if (gui == GUI_INVENTORY) {+ sprite(SP_STEVE, px + 39, py + 16);+ text_plain(px + 86, py + 16, "Crafting", C_DARK);+ } else if (gui == GUI_CRAFTING) text_plain(px + 28, py + 6, "Crafting", C_DARK);+ else if (gui == GUI_FURNACE) {+ text_center(px + 88, py + 6, "Furnace", C_DARK);+ Tile *t = gui_tile;+ if (t->burn > 0 && t->burn_max > 0) {+ int h = (int)((int32_t)t->burn * 13 / t->burn_max) + 1;+ sprite_part(SP_FLAME, px + 56, py + 36 + 14 - h, 0, 14 - h, 14, h);+ }+ if (t->cook > 0) sprite_part(SP_ARROW, px + 79, py + 34, 0, 0, t->cook * 24 / 200 + 1, 17);+ } else if (gui == GUI_CHEST) text_plain(px + 8, py + 6, "Chest", C_DARK);+ else if (gui == GUI_CREATIVE) {+ text_plain(px + 8, py + 6, "Creative Inventory", C_DARK);+ int rows = (n_creative + 8) / 9 - 5;+ sprite(SP_SCROLLER, px + 175, py + 18 + (rows > 0 ? creative_scroll * (112 - 18 - 15) / rows : 0));+ }+ if (gui != GUI_INVENTORY) {+ if (gui != GUI_CREATIVE) text_plain(px + 8, py + (gui == GUI_CHEST ? 73 : 72), "Inventory", C_DARK);+ }+ for (int i = 0; i < n_slots; i++) {+ const Slot *s = &slots[i];+ if (s->s) stack_draw(s->s, px + s->x, py + s->y);+ if (i == sel) {+ /* the slot selected: Minecraft's white highlight, and a frame you cannot miss */+ int x = px + s->x, y = py + s->y;+ fill(x - 1, y - 1, 18, 1, C_WHITE), fill(x - 1, y + 16, 18, 1, C_WHITE);+ fill(x - 1, y - 1, 1, 18, C_WHITE), fill(x + 16, y - 1, 1, 18, C_WHITE);+ }+ }+ /* the stack carried, over the selected slot */+ if (pl.cursor.id && sel < n_slots) stack_draw(&pl.cursor, px + slots[sel].x + 6, py + slots[sel].y - 6);+ /* the name of what is under the cursor, at the top */+ const Slot *s = sel < n_slots ? &slots[sel] : 0;+ if (s && s->s && s->s->id && !pl.cursor.id) {+ const char *t = s->s->id >= IT0 ? it_label[s->s->id - IT0] : blk_label[s->s->id];+ int w = text_width(t) + 6, x = px + panel_w / 2 - w / 2, y = py - 13;+ fill(x, y, w, 12, C_20);+ text(x + 3, y + 2, t, C_WHITE);+ }+}++static void put_back(Stack *s) {+ if (s->id) {+ int left = inv_add(s->id, s->n, s->dmg);+ (void)left;+ *s = (Stack){0, 0, 0};+ }+}++static void close_container(void) {+ put_back(&pl.cursor);+ for (int i = 0; i < 9; i++) put_back(&grid[i]);+ result = (Stack){0, 0, 0};+ gui = GUI_NONE;+}++/* a click on slot i: 2nd (right 0), enter (right 1), y= and 2nd (shift) */+static void click(int i, int right, bool shift) {+ Slot *s = &slots[i];+ if (!s->s) return;+ Stack *st = s->s, *c = &pl.cursor;+ if (s->kind == SK_CREATIVE) {+ if (c->id) *c = (Stack){0, 0, 0};+ else if (st->id) *c = (Stack){st->id, (uint8_t)(right ? 1 : item_max(st->id)), 0};+ return;+ }+ if (shift && st->id) {+ /* across: the player's slots to the container (or the hotbar and back), the result all into the inventory */+ if (s->kind == SK_RESULT) {+ while (result.id && inv_add(result.id, result.n, 0) == 0) craft_take();+ return;+ }+ bool player = st >= &pl.inv[0] && st < &pl.inv[36];+ if (player && gui == GUI_CHEST) {+ for (int k = 0; k < 27 && st->id; k++) {+ Stack *d = &gui_tile->s[k];+ if (!d->id) *d = *st, *st = (Stack){0, 0, 0};+ else if (d->id == st->id && d->n < item_max(d->id)) {+ int m = item_max(d->id) - d->n < st->n ? item_max(d->id) - d->n : st->n;+ d->n = (uint8_t)(d->n + m);+ if (!(st->n = (uint8_t)(st->n - m))) st->id = 0;+ }+ }+ } else if (player && gui == GUI_FURNACE) {+ int k = it_fuel[st->id >= IT0 ? B_N + st->id - IT0 : st->id] ? 1 : 0;+ for (int j = 0; j < 2 && st->id; j++) {+ Stack *d = &gui_tile->s[(k + j) & 1];+ if (!d->id) *d = *st, *st = (Stack){0, 0, 0};+ }+ } else if (player) {+ /* the hotbar and the rest of the inventory */+ int from = (int)(st - pl.inv), a = from < 9 ? 9 : 0, b = from < 9 ? 36 : 9;+ Stack t = *st;+ *st = (Stack){0, 0, 0};+ for (int k = a; k < b && t.n; k++)+ if (pl.inv[k].id == t.id && pl.inv[k].n < item_max(t.id)) {+ int m = item_max(t.id) - pl.inv[k].n < t.n ? item_max(t.id) - pl.inv[k].n : t.n;+ pl.inv[k].n = (uint8_t)(pl.inv[k].n + m), t.n = (uint8_t)(t.n - m);+ }+ for (int k = a; k < b && t.n; k++)+ if (!pl.inv[k].id) pl.inv[k] = t, t.n = 0;+ if (t.n) *st = t;+ } else {+ int left = inv_add(st->id, st->n, st->dmg);+ if (left) st->n = (uint8_t)left;+ else *st = (Stack){0, 0, 0};+ }+ if (gui == GUI_INVENTORY || gui == GUI_CRAFTING) craft_find();+ return;+ }+ if (s->kind == SK_RESULT) {+ if (!st->id) return;+ if (!c->id) *c = *st, craft_take();+ else if (c->id == st->id && c->n + st->n <= item_max(c->id)) c->n = (uint8_t)(c->n + st->n), craft_take();+ return;+ }+ if (s->kind == SK_OUTPUT) {+ if (!st->id) return;+ if (!c->id) *c = *st, *st = (Stack){0, 0, 0};+ else if (c->id == st->id && c->n + st->n <= item_max(c->id)) c->n = (uint8_t)(c->n + st->n), *st = (Stack){0, 0, 0};+ return;+ }+ if (!right) {+ if (!c->id) *c = *st, *st = (Stack){0, 0, 0};+ else if (!st->id) *st = *c, *c = (Stack){0, 0, 0};+ else if (st->id == c->id && item_max(c->id) > 1) {+ int m = item_max(c->id) - st->n < c->n ? item_max(c->id) - st->n : c->n;+ st->n = (uint8_t)(st->n + m);+ if (!(c->n = (uint8_t)(c->n - m))) c->id = 0;+ } else {+ Stack t = *st;+ *st = *c, *c = t;+ }+ } else {+ if (!c->id && st->id) {+ int h = (st->n + 1) / 2;+ *c = (Stack){st->id, (uint8_t)h, st->dmg};+ if (!(st->n = (uint8_t)(st->n - h))) st->id = 0;+ } else if (c->id && (!st->id || (st->id == c->id && st->n < item_max(c->id)))) {+ if (!st->id) *st = (Stack){c->id, 0, c->dmg};+ st->n++;+ if (!--c->n) c->id = 0;+ }+ }+ if (gui == GUI_INVENTORY || gui == GUI_CRAFTING) craft_find();+}++/* the slot the arrow leads to from slot `sel` */+static int slot_towards(int dx, int dy) {+ const Slot *a = &slots[sel];+ int best = -1;+ int32_t bd = 0x7FFFFFFF;+ for (int i = 0; i < n_slots; i++) {+ if (i == sel) continue;+ int ex = slots[i].x - a->x, ey = slots[i].y - a->y;+ int along = dx ? ex * dx : ey * dy, across = dx ? ey : ex;+ if (along <= 0) continue;+ int32_t d = (int32_t)along + (int32_t)(across < 0 ? -across : across) * 3;+ if (d < bd) bd = d, best = i;+ }+ return best;+}++/* ---------------------------------------------------------------- menus */+typedef struct { int16_t x, y, w; uint8_t on, act; const char *label; } Btn;+static Btn btns[8];+static int n_btns;+enum { BA_PLAY, BA_NEW, BA_QUIT, BA_SELECT, BA_CREATE, BA_CANCEL, BA_MODE, BA_DO_CREATE, BA_DELETE, BA_DO_DELETE,+ BA_RESUME, BA_SAVE_QUIT, BA_RESPAWN, BA_TITLE, BA_DONE };+static WorldInfo winfo[MAX_WORLDS];+static int wslot[MAX_WORLDS], n_worlds, wsel;+static int create_mode;+static char mode_label[24];++static void add_btn(int x, int y, int w, int on, int act, const char *label) {+ btns[n_btns++] = (Btn){(int16_t)x, (int16_t)y, (int16_t)w, (uint8_t)on, (uint8_t)act, label};+}++static void list_worlds(void) {+ n_worlds = 0;+ for (int s = 1; s <= MAX_WORLDS; s++)+ if (world_info(s, &winfo[n_worlds])) wslot[n_worlds++] = s;+ /* the latest played first */+ for (int i = 1; i < n_worlds; i++)+ for (int j = i; j > 0 && winfo[j].played > winfo[j - 1].played; j--) {+ WorldInfo t = winfo[j];+ winfo[j] = winfo[j - 1], winfo[j - 1] = t;+ int k = wslot[j];+ wslot[j] = wslot[j - 1], wslot[j - 1] = k;+ }+ if (wsel >= n_worlds) wsel = 0;+}++static void menu_layout(void) {+ n_btns = 0;+ int w = SCREEN_W, h = SCREEN_H;+ switch (gui) {+ case GUI_TITLE: {+ int j = h / 4 + 48;+ add_btn(w / 2 - 100, j, 200, 1, BA_PLAY, "Singleplayer");+ add_btn(w / 2 - 100, j + 24, 200, 0, BA_PLAY, "Multiplayer");+ add_btn(w / 2 - 100, j + 60, 200, 1, BA_QUIT, "Quit Game");+ break;+ }+ case GUI_WORLDS:+ add_btn(w / 2 - 154, h - 52, 150, n_worlds > 0, BA_SELECT, "Play Selected World");+ add_btn(w / 2 + 4, h - 52, 150, world_free_slot() != 0, BA_CREATE, "Create New World");+ add_btn(w / 2 - 154, h - 28, 150, n_worlds > 0, BA_DELETE, "Delete");+ add_btn(w / 2 + 4, h - 28, 150, 1, BA_CANCEL, "Cancel");+ break;+ case GUI_CREATE:+ strcpy(mode_label, create_mode ? "Game Mode: Creative" : "Game Mode: Survival");+ add_btn(w / 2 - 75, 100, 150, 1, BA_MODE, mode_label);+ add_btn(w / 2 - 155, h - 28, 150, 1, BA_DO_CREATE, "Create New World");+ add_btn(w / 2 + 5, h - 28, 150, 1, BA_CANCEL, "Cancel");+ break;+ case GUI_CONFIRM:+ add_btn(w / 2 - 155, h / 6 + 96, 150, 1, BA_DO_DELETE, "Delete");+ add_btn(w / 2 + 5, h / 6 + 96, 150, 1, BA_CANCEL, "Cancel");+ break;+ case GUI_PAUSE:+ add_btn(w / 2 - 100, h / 4 + 8, 200, 1, BA_RESUME, "Back to Game");+ add_btn(w / 2 - 100, h / 4 + 104, 200, 1, BA_SAVE_QUIT, "Save and Quit to Title");+ break;+ case GUI_DEATH:+ add_btn(w / 2 - 100, h / 4 + 72, 200, 1, BA_RESPAWN, "Respawn");+ add_btn(w / 2 - 100, h / 4 + 96, 200, 1, BA_TITLE, "Title Screen");+ break;+ case GUI_CONTROLS:+ add_btn(w / 2 - 100, h - 24, 200, 1, BA_DONE, "Done");+ break;+ }+ if (sel >= n_btns) sel = 0;+ while (n_btns && !btns[sel].on) sel = (sel + 1) % n_btns;+}++static void draw_buttons(void) {+ for (int i = 0; i < n_btns; i++)+ button(btns[i].x, btns[i].y, btns[i].w, !btns[i].on ? 0 : i == sel ? 2 : 1, btns[i].label);+}++/* the title's name, in stone, like the game's logo (as NumBlocks draws it) */+static void logo(int y) {+ const char *s = "NumBlocks";+ const int sc = 4;+ int w = text_width(s) * sc, x0 = (SCREEN_W - w) / 2;+ for (int d = 3; d >= 1; d--) text_big(x0 + d, y + d, s, d == 3 ? C_20 : d == 2 ? C_40 : C_DARK, sc);+ for (int r = 0; r < 8 * sc; r++) {+ int x = x0;+ for (const char *c = s; *c; c++) {+ const uint8_t *g = font_bits + (*c - 32) * 8;+ for (int k = 0; k < 8 * sc; k++)+ if (g[r / sc] & (1 << (k / sc))) {+ int u = ((x + k) / 2) & 15, v = ((y + r) / 2) & 15;+ uint8_t col = tex_px[TX_STONE][v * 16 + u];+ if (r < sc) col = shade_cm[31][col] == col ? C_C0 : col;+ fill(x + k, y + r, 1, 1, col);+ }+ x += font_w[*c - 32] * sc;+ }+ }+}++static void splash(void) {+ /* "Also try Minecraft!" in yellow, as the title's splash (straight: the CE has no time to turn text) */+ const char *s = "Also try Minecraft!";+ int x = SCREEN_W / 2 + 40, y = 70;+ text(x, y, s, C_YELLOW);+}++static void draw_menu(void) {+ int w = SCREEN_W, h = SCREEN_H;+ switch (gui) {+ case GUI_TITLE:+ logo(30);+ splash();+ text(2, h - 10, "NumBlocks CE", C_WHITE);+ text(w - text_width("Inspired by Minecraft, not affiliated with Mojang") - 2, h - 20,+ "Inspired by Minecraft, not affiliated with Mojang", C_WHITE);+ text(w - text_width("Made by Mason Chen as part of NumPlay") - 2, h - 10, "Made by Mason Chen as part of NumPlay",+ C_WHITE);+ break;+ case GUI_WORLDS: {+ dirt_background(0, h);+ text_center(w / 2, 12, "Select World", C_WHITE);+ for (int k = 0; k < n_worlds; k++) {+ int x = w / 2 - 110, y = 30 + k * 30;+ if (k == wsel) {+ fill(x - 2, y - 2, 220, 30, C_70);+ fill(x - 1, y - 1, 218, 28, C_BLACK);+ }+ text(x + 2, y + 1, winfo[k].name, C_WHITE);+ char line[40];+ strcpy(line, winfo[k].mode ? "Creative Mode" : "Survival Mode");+ text(x + 2, y + 12, line, C_GRAY);+ }+ if (!n_worlds) text_center(w / 2, 80, "No worlds yet", C_GRAY);+ break;+ }+ case GUI_CREATE:+ dirt_background(0, h);+ text_center(w / 2, 20, "Create New World", C_WHITE);+ text(w / 2 - 100, 47, "World Name", C_GRAY);+ fill(w / 2 - 101, 59, 202, 22, C_GRAY);+ fill(w / 2 - 100, 60, 200, 20, C_BLACK);+ text(w / 2 - 96, 66, cur_name, C_LIGHT);+ text_center(w / 2, 126, create_mode ? "Unlimited resources, free flying and" : "Search for resources, crafting, gain",+ C_GRAY);+ text_center(w / 2, 138, create_mode ? "destroy blocks instantly" : "levels, health", C_GRAY);+ text_center(w / 2, 160, "Seed: (random)", C_GRAY);+ break;+ case GUI_CONFIRM:+ dirt_background(0, h);+ text_center(w / 2, 70, "Are you sure you want to delete this world?", C_WHITE);+ text_center(w / 2, 90, n_worlds ? winfo[wsel].name : "", C_GRAY);+ break;+ case GUI_PAUSE:+ text_center(w / 2, 40, "Game menu", C_WHITE);+ break;+ case GUI_DEATH:+ text_big(w / 2 - text_width("You died!"), 60, "You died!", C_WHITE, 2);+ break;+ case GUI_CONTROLS: {+ /* the keys, plainly */+ dirt_background(0, h);+ text_center(w / 2, 8, "Controls", C_WHITE);+ static const char *const k[][2] = {+ {"arrows", "Look around"}, {"cos , ( )", "Walk (like W A S D)"}, {"y=", "Jump (twice in Creative: fly)"},+ {"alpha", "Sneak"}, {"del", "Sprint"}, {"2nd", "Mine, attack"}, {"clear", "Place, use"},+ {"vars", "Inventory"}, {"1 to 9", "Pick a hotbar slot"}, {"x,T,0,n", "Drop the item"},+ {"(-)", "Pause"}, {"mode", "Save and quit"}};+ for (int i = 0; i < 12; i++) {+ text(w / 2 - 130, 26 + i * 15, k[i][0], C_YELLOW);+ text(w / 2 - 50, 26 + i * 15, k[i][1], C_WHITE);+ }+ break;+ }+ }+ draw_buttons();+}++/* ---------------------------------------------------------------- opening, input, drawing */+void gui_open(int screen) {+ int prev = gui;+ gui = screen;+ sel = 0;+ shown = false, full = true;+ if (screen == GUI_INVENTORY || screen == GUI_CRAFTING || screen == GUI_FURNACE || screen == GUI_CHEST ||+ screen == GUI_CREATIVE) {+ if (screen == GUI_CREATIVE) creative_scroll = 0, creative_list();+ layout();+ /* start on the hotbar's slot held */+ for (int i = 0; i < n_slots; i++)+ if (slots[i].s == held()) sel = i;+ craft_find();+ } else {+ if (screen == GUI_WORLDS) list_worlds();+ menu_layout();+ }+ (void)prev;+ hud_dirty = true;+}++void gui_close(void) {+ if (gui >= GUI_INVENTORY && gui <= GUI_CREATIVE) close_container();+ else gui = GUI_NONE;+ hud_dirty = true;+}++void gui_input(uint32_t keys, uint32_t pressed) {+ (void)keys;+ if (gui == GUI_NONE) return;+ bool container = gui >= GUI_INVENTORY && gui <= GUI_CREATIVE;+ if (container) {+ int dx = (pressed & K_RIGHT ? 1 : 0) - (pressed & K_LEFT ? 1 : 0), dy = (pressed & K_DOWN ? 1 : 0) - (pressed & K_UP ? 1 : 0);+ if (gui == GUI_CREATIVE && dy && sel < 45) {+ int row = sel / 9, rows = (n_creative + 8) / 9;+ if (dy < 0 && row == 0 && creative_scroll > 0) {+ creative_scroll--, layout(), shown = false;+ return;+ }+ if (dy > 0 && row == 4 && creative_scroll + 5 < rows) {+ creative_scroll++, layout(), shown = false;+ return;+ }+ }+ if (dx || dy) {+ int n = slot_towards(dx, dy);+ if (n >= 0) sel = n, shown = false;+ }+ if (pressed & K_OK) click(sel, 0, (keys & K_JUMP) != 0), shown = false;+ if (pressed & K_ENTER) click(sel, 1, false), shown = false;+ if (pressed & (K_ESC | K_INV)) gui_close();+ for (int k = 0; k < 9; k++)+ if ((pressed & (K_SLOT1 << k)) && slots[sel].s && slots[sel].kind == SK_NORMAL) {+ /* a number: swap with that hotbar slot (Minecraft's number keys over a slot) */+ Stack t = pl.inv[k];+ pl.inv[k] = *slots[sel].s, *slots[sel].s = t;+ shown = false;+ if (gui == GUI_INVENTORY || gui == GUI_CRAFTING) craft_find();+ }+ return;+ }+ /* menus: up and down (and left and right in rows), 2nd or enter presses */+ if (gui == GUI_WORLDS && n_worlds && (pressed & (K_UP | K_DOWN)) && sel == 0) {+ /* the list: up and down choose the world while the first button is selected */+ }+ int old = sel;+ if (pressed & (K_DOWN | K_RIGHT | K_UP | K_LEFT)) {+ int dir = pressed & (K_DOWN | K_RIGHT) ? 1 : -1;+ if (gui == GUI_WORLDS && (pressed & (K_UP | K_DOWN)) && n_worlds > 1 && sel == 0 && !(pressed & (K_LEFT | K_RIGHT))) {+ wsel = (wsel + dir + n_worlds) % n_worlds;+ shown = false;+ return;+ }+ for (int k = 0; k < n_btns; k++) {+ sel = (sel + dir + n_btns) % n_btns;+ if (btns[sel].on) break;+ }+ }+ if (sel != old) shown = false;+ if ((pressed & K_ESC) && gui != GUI_TITLE && gui != GUI_DEATH) {+ if (gui == GUI_PAUSE) gui_close();+ else if (gui == GUI_WORLDS) gui_open(GUI_TITLE);+ else if (gui == GUI_CREATE || gui == GUI_CONFIRM) gui_open(GUI_WORLDS);+ else if (gui == GUI_CONTROLS) gui_close();+ return;+ }+ if (!(pressed & (K_OK | K_ENTER)) || !n_btns || !btns[sel].on) return;+ switch (btns[sel].act) {+ case BA_PLAY: gui_open(GUI_WORLDS); break;+ case BA_QUIT: menu_action = ACT_QUIT; break;+ case BA_SELECT: cur_world = wslot[wsel], menu_action = ACT_PLAY; break;+ case BA_CREATE: {+ create_mode = 0;+ /* a name not taken yet */+ strcpy(cur_name, "New World");+ for (int n = 2; n < 10; n++) {+ bool taken = false;+ for (int k = 0; k < n_worlds; k++)+ if (!strcmp(winfo[k].name, cur_name)) taken = true;+ if (!taken) break;+ strcpy(cur_name, "New World 2");+ cur_name[10] = (char)('0' + n);+ }+ gui_open(GUI_CREATE);+ break;+ }+ case BA_MODE: create_mode ^= 1, menu_layout(), shown = false; break;+ case BA_DO_CREATE: {+ extern int new_mode;+ new_mode = create_mode;+ menu_action = ACT_NEW;+ break;+ }+ case BA_DELETE: gui_open(GUI_CONFIRM); break;+ case BA_DO_DELETE:+ delete_world(wslot[wsel]);+ gui_open(GUI_WORLDS);+ break;+ case BA_CANCEL: gui_open(gui == GUI_WORLDS ? GUI_TITLE : GUI_WORLDS); break;+ case BA_RESUME: gui_close(); break;+ case BA_SAVE_QUIT: menu_action = ACT_SAVE_QUIT; break;+ case BA_RESPAWN: menu_action = ACT_RESPAWN; break;+ case BA_TITLE: menu_action = ACT_TITLE; break;+ case BA_DONE: gui_close(); break;+ }+}++static void draw_panel_off(void) { draw_panel(); }+static void draw_menu_off(void) { draw_menu(); }+static void draw_buttons_off(void) { draw_buttons(); }++bool gui_needs_world(void) { return gui == GUI_NONE || gui == GUI_TITLE; }++/* draws the open screen (only what changed) */+void gui_draw(void) {+ if (gui == GUI_NONE || shown) return;+ bool container = gui >= GUI_INVENTORY && gui <= GUI_CREATIVE;+ bool over_world = container || gui == GUI_TITLE || gui == GUI_PAUSE || gui == GUI_DEATH;+ if (full) {+ /* the world behind a screen, darkened (Minecraft's grey veil; red-brown when you died) */+ if (over_world && gui != GUI_TITLE) veil(gui == GUI_DEATH ? 12 : 14);+ if (container) offscreen(panel_x - 2, panel_y - 14, panel_w + 4, panel_h + 16, draw_panel_off);+ else offscreen(0, 0, SCREEN_W, SCREEN_H, draw_menu_off);+ } else if (container) offscreen(panel_x - 2, panel_y - 14, panel_w + 4, panel_h + 16, draw_panel_off);+ else if (over_world) offscreen(0, 0, SCREEN_W, SCREEN_H, draw_buttons_off);+ else offscreen(0, 0, SCREEN_W, SCREEN_H, draw_menu_off);+ shown = true, full = false;+}+void gui_redraw(void) { shown = false, full = true; }++/* ---------------------------------------------------------------- furnaces (TileEntityFurnace: 200 ticks an item) */+static int smelt_of(int id) {+ for (const uint8_t *s = smelt; s[0] != 255; s += 2)+ if (s[0] == id) return s[1] == 0 ? 0 : s[1];+ return 0;+}+static int fuel_of(int id) { return id ? it_fuel[id >= IT0 ? B_N + id - IT0 : id] : 0; }++void gui_tick(void) {+ if (tip_ticks > 0 && !--tip_ticks) hud_dirty = true;+ if (msg_ticks > 0 && !--msg_ticks) hud_dirty = true;+ for (int i = 0; i < n_tiles; i++) {+ Tile *t = &tiles[i];+ if (t->kind != B_FURNACE) continue;+ Stack *in = &t->s[0], *fu = &t->s[1], *out = &t->s[2];+ int r = in->id ? smelt_of(in->id) : 0;+ bool room = r && (!out->id || (out->id == r && out->n < item_max(r)));+ bool was = t->burn > 0;+ if (t->burn > 0) t->burn--;+ if (!t->burn && room && fuel_of(fu->id)) {+ t->burn = t->burn_max = (int16_t)(fuel_of(fu->id) > 32000 ? 32000 : fuel_of(fu->id));+ if (!--fu->n) fu->id = 0;+ }+ if (t->burn > 0 && room) {+ if (++t->cook >= 200) {+ t->cook = 0;+ if (!out->id) *out = (Stack){(uint8_t)r, 1, 0};+ else out->n++;+ if (!--in->n) in->id = 0;+ extern void xp_add(int n);+ if (r == I_IRON_INGOT || r == I_GOLD_INGOT || r == I_DIAMOND) xp_add(1);+ }+ } else if (t->cook > 0) t->cook = t->cook > 2 ? t->cook - 2 : 0;+ bool now = t->burn > 0;+ if (now != was) world_set(t->x, t->y, t->z, now ? B_FURNACE_LIT : B_FURNACE);+ if (gui == GUI_FURNACE && gui_tile == t && (now || was || t->cook)) shown = false;+ }+}diff --git a/games/numblocks/ce/src/main.c b/games/numblocks/ce/src/main.cnew file mode 100644index 00000000..48c11c5a--- /dev/null+++ b/games/numblocks/ce/src/main.c@@ -0,0 +1,209 @@+/* NumBlocks on the TI-84 Plus CE: the title, the worlds, and the game's loop (Minecraft's 20 ticks a second, the+ * picture as often as the CE can draw it). */+#include "nb.h"+#include "draw.h"++extern int new_mode;+extern int xp_level, xp_points;+int xp_need(int l);+void gui_close(void);+bool gui_needs_world(void);+void gui_redraw(void);++static uint32_t rng = 0x12345678;+int rnd(int n) {+ rng ^= rng << 13, rng ^= rng >> 17, rng ^= rng << 5;+ return n > 0 ? (int)((rng >> 8) % (uint32_t)n) : 0;+}++void xp_add(int n) {+ xp_points += n;+ while (xp_points >= xp_need(xp_level)) xp_points -= xp_need(xp_level), xp_level++;+}++static bool in_game;+static uint32_t last_ms, tick_acc, ticks_since_save;+static int look_held;++#define TITLE_SEED 20151008u /* the title's world */++static bool backdrop_ok;+static void title_backdrop(void) {+ /* the title's world: a view over the land, the same each time */+ backdrop_ok = true;+ world_new(TITLE_SEED);+ int x, z;+ gen_spawn(&x, &z);+ memset(&pl, 0, sizeof pl);+ pl.hit_face = -1;+ world_center(x, 40, z, true);+ pl.x = (fx)x * FX1 + FX1 / 2, pl.z = (fx)z * FX1 + FX1 / 2;+ pl.y = (fx)world_top(x, z) * FX1 + FX1 * 2;+ world_time = 3000;+ render_sky_palette();+ render_title(0x3000);+ compose(rbuf, false, false);+}++static void to_title(void) {+ in_game = false;+ gui = GUI_NONE;+ title_backdrop();+ gui_open(GUI_TITLE);+}++static bool seen_controls(void) {+ unsigned len;+ const uint8_t *p = plat_load("NBCEOPT", &len);+ return p && len >= 1 && p[0] == 1;+}++static void start_game(void) {+ in_game = true;+ gui = GUI_NONE;+ render_sky_palette();+ last_ms = plat_ms(), tick_acc = 0, ticks_since_save = 0;+ if (!seen_controls()) {+ static const uint8_t one = 1;+ plat_save("NBCEOPT", &one, 1, 0, 0);+ render_frame();+ compose(rbuf, false, false);+ gui_open(GUI_CONTROLS);+ }+}++void game_save_quit(void) {+ if (in_game) save_world();+}++static void loading(const char *what) {+ canvas_screen();+ dirt_background(0, SCREEN_H);+ text_center(SCREEN_W / 2, SCREEN_H / 2 - 4, what, C_WHITE);+ plat_frame();+}++static void act(void) {+ int a = menu_action;+ menu_action = ACT_NONE;+ switch (a) {+ case ACT_QUIT: plat_exit(); break;+ case ACT_PLAY:+ loading("Loading world");+ if (load_world(cur_world)) start_game();+ else to_title();+ break;+ case ACT_NEW: {+ int s = world_free_slot();+ if (!s) break;+ loading("Building terrain");+ uint32_t seed = plat_ms() * 2654435761u ^ (uint32_t)rnd(1 << 30);+ new_world(s, cur_name, seed, new_mode);+ if (pl.mode) {+ /* Creative starts with a hotbar of building blocks */+ static const uint8_t first[9] = {B_GRASS, B_STONE, B_COBBLESTONE, B_PLANKS_OAK, B_LOG_OAK, B_GLASS, B_BRICKS,+ B_TORCH, B_SAND};+ for (int i = 0; i < 9; i++) pl.inv[i] = (Stack){first[i], 64, 0};+ }+ save_world();+ start_game();+ break;+ }+ case ACT_SAVE_QUIT:+ loading("Saving world");+ save_world();+ to_title();+ break;+ case ACT_RESPAWN:+ player_spawn();+ xp_level = xp_points = 0;+ world_center(FXI(pl.x), FXI(pl.y), FXI(pl.z), true);+ gui = GUI_NONE;+ break;+ case ACT_TITLE:+ save_world();+ to_title();+ break;+ }+}++/* looking around: faster the longer an arrow is held (60 to 180 degrees a second) */+static void look(uint32_t keys, uint32_t dt) {+ int dx = (keys & K_RIGHT ? 1 : 0) - (keys & K_LEFT ? 1 : 0), dy = (keys & K_DOWN ? 1 : 0) - (keys & K_UP ? 1 : 0);+ if (!dx && !dy) {+ look_held = 0;+ return;+ }+ look_held += (int)dt;+ int deg = 60 + (look_held > 600 ? 120 : look_held * 120 / 600); /* degrees a second */+ int32_t step = (int32_t)deg * 182 * (int32_t)dt / 1000;+ pl.yaw = (uint16_t)(pl.yaw + dx * step);+ int32_t p = pl.pitch + dy * step;+ if (p > 16383) p = 16383;+ if (p < -16383) p = -16383;+ pl.pitch = (int16_t)p;+}++static void play(uint32_t keys, uint32_t pressed) {+ uint32_t now = plat_ms(), dt = now - last_ms;+ last_ms = now;+ if (dt > 250) dt = 250;+ if (gui == GUI_NONE) look(keys, dt);+ tick_acc += dt;+ int n = 0;+ while (tick_acc >= 50 && n < 4) {+ tick_acc -= 50, n++;+ if (gui == GUI_NONE) player_tick(keys, n == 1 ? pressed : 0);+ gui_tick();+ world_time++;+ if (!(world_time & 63)) render_sky_palette();+ if (++ticks_since_save >= 20 * 60 * 5) ticks_since_save = 0, save_world();+ }+ if (tick_acc > 200) tick_acc = 0;+ world_center(FXI(pl.x), FXI(pl.y) + 1, FXI(pl.z), false);+ for (int k = 0; k < 2 && world_busy(); k++) world_step();+ if (gui == GUI_NONE) {+ if (pressed & K_INV) {+ gui_open(pl.mode ? GUI_CREATIVE : GUI_INVENTORY);+ return;+ }+ if (pressed & K_PAUSE) {+ gui_open(GUI_PAUSE);+ return;+ }+ render_frame();+ hud_draw();+ compose(rbuf, true, true);+ }+}++int main(void) {+ plat_init();+ wblk = plat_spare();+ wlight = wblk + WS * WS * WH;+ render_init();+ canvas_screen();+ to_title();+ uint32_t prev = ~0u;+ for (;;) {+ uint32_t keys = plat_keys(), pressed = keys & ~prev;+ prev = keys;+ if (keys & K_HOME) {+ if (in_game) {+ loading("Saving world");+ save_world();+ }+ break;+ }+ if (gui != GUI_NONE) gui_input(keys, pressed);+ if (menu_action) act();+ if (in_game) play(keys, pressed);+ /* back on the title from another menu: its world behind it again */+ if (gui != GUI_TITLE) backdrop_ok = false;+ else if (!backdrop_ok && !in_game) title_backdrop(), gui_redraw();+ gui_draw();+ plat_frame();+ }+ plat_exit();+ return 0;+}diff --git a/games/numblocks/ce/src/nb.h b/games/numblocks/ce/src/nb.hnew file mode 100644index 00000000..9c1dd562--- /dev/null+++ b/games/numblocks/ce/src/nb.h@@ -0,0 +1,181 @@+/* NumBlocks on the TI-84 Plus CE: Minecraft in 3D, made for the CE's eZ80 (48 MHz, no FPU, 24-bit int).+ *+ * The world around the player lives in a window of 32 x 32 columns and 32 levels (of the world's 64) that+ * follows them: what leaves it is made again from the seed when it comes back, with the player's changes (the+ * edit log, world.c) on top. Each cell has a block and its light (sky light, block light). The 3D view (render.c)+ * draws the faces of the blocks front to back at 160 x 120, each pixel once, shown at 2x.+ *+ * Minecraft's axes: +X east, +Y up, +Z south. Yaw 0 faces south (+Z) and grows clockwise seen from above (a+ * quarter turn faces west); pitch > 0 looks down. Positions are fixed point, 12 bits of fraction (FX). */+#ifndef NBCE_H+#define NBCE_H+#include <stdbool.h>+#include <stdint.h>+#include <string.h>+#include "data.h"+#include "plat.h"++typedef int32_t fx; /* 1.0 = 4096 */+#define FXS 12+#define FX1 (1L << FXS)+#define FXI(f) ((int)((f) >> FXS)) /* floor */++/* ---------------------------------------------------------------- the world (world.c) */+#define WS 32 /* the window: 32 x 32 columns */+#define WH 32 /* and 32 levels */+#define WORLD_H 64+#define SEA 32 /* sea level: water up to y 31 */+extern uint8_t *wblk; /* blocks [y & 31][z & 31][x & 31] */+extern uint8_t *wlight; /* light: sky (low 4 bits) | block (high 4 bits) */+extern uint32_t wexp[WS * WS]; /* per column: the cells with a face to draw (bit y & 31) */+extern uint8_t wtop[WS * WS]; /* per column: the lowest y the sky shines down to (in the window) */+extern uint8_t wbiome[WS * WS];+extern int win_x, win_z, win_y; /* the world position of the window's low corner */+#define WI(x, y, z) ((((unsigned)(y) & 31) << 10) | (((unsigned)(z) & 31) << 5) | ((unsigned)(x) & 31))+#define CI(x, z) ((((unsigned)(z) & 31) << 5) | ((unsigned)(x) & 31))+static inline bool in_win(int x, int y, int z) {+ return (unsigned)(x - win_x) < WS && (unsigned)(z - win_z) < WS && (unsigned)(y - win_y) < WH;+}+int world_get(int x, int y, int z);+void world_set(int x, int y, int z, int b); /* a change: kept in the edit log, the light follows */+int world_light(int x, int y, int z); /* the light byte there */+void world_new(uint32_t seed);+void world_center(int x, int y, int z, bool all); /* keeps the window around (x, y, z) */+bool world_busy(void); /* parts of the window still being made */+void world_step(void); /* makes a little more of them */+int world_top(int x, int z); /* the highest block's y + 1 (spawning) */+extern uint32_t world_seed;+/* the edit log: every block the player changed */+typedef struct { int16_t x, z; uint8_t y, b; } Edit;+extern Edit *edits;+extern unsigned n_edits, max_edits;+bool edits_room(unsigned n); /* room for n more (false: memory full) */++/* ---------------------------------------------------------------- the terrain (gen.c) */+typedef struct {+ uint8_t h; /* the ground's height (its top block's y) */+ uint8_t biome;+ uint8_t top, filler;/* the top block and the few below (grass and dirt, sand...) */+ uint8_t depth; /* how many filler blocks */+} Column;+void gen_seed(uint32_t seed);+void gen_column(int x, int z, Column *c);+int gen_cell(int x, int y, int z, const Column *c); /* the terrain, caves, ores, water */+/* trees and plants whose blocks fall in [x0, x1) x [y0, y1) x [z0, z1): put(x, y, z, block) for each */+void gen_decorate(int x0, int z0, int x1, int z1, int y0, int y1, void (*put)(int, int, int, int));+int gen_plant(int x, int z, const Column *c); /* the plant on top of a column (0: none) */+void gen_spawn(int *x, int *z);++/* ---------------------------------------------------------------- the player (player.c) */+typedef struct { uint8_t id, n; uint16_t dmg; } Stack; /* id 0: empty; dmg: a tool's wear */+typedef struct {+ fx x, y, z; /* feet */+ fx vx, vy, vz; /* blocks a tick */+ uint16_t yaw; /* 65536 a turn */+ int16_t pitch; /* 16384 = 90 degrees down */+ bool on_ground, in_water, in_lava, sneaking, sprinting, flying, dead;+ uint8_t mode; /* 0 survival, 1 creative */+ int hit_x, hit_y, hit_z, hit_face; /* the block looked at (hit_face -1: none) */+ int break_ticks, break_need; /* mining it: ticks so far, ticks it takes */+ int slot; /* the hotbar slot held */+ Stack inv[36]; /* 0-8 the hotbar, then the three rows */+ Stack craft[4]; /* the inventory's 2 x 2 crafting grid */+ Stack cursor; /* held by the cursor in a screen */+ int health; /* half hearts, 0-20 */+ int air; /* ticks of air left under water (300) */+ int hurt_time, regen, fall_from, fire;+ int spawn_x, spawn_y, spawn_z;+ int swing; /* ticks of the arm's swing left */+ int jump_wait, fwd_tap, fwd_held;+} Player;+extern Player pl;+void player_spawn(void);+void player_tick(uint32_t keys, uint32_t pressed); /* 20 a second */+int ray_pick(int reach_fx, int *hx, int *hy, int *hz, int *face); /* the first block looked at, or 0 */+int inv_add(int id, int n, int dmg); /* what does not fit */+static inline Stack *held(void) { return &pl.inv[pl.slot]; }+void player_hurt(int halves);+extern int item_dur(int id);+int item_max(int id);++/* ---------------------------------------------------------------- the 3D view (render.c) */+#define RW 160+#define RH 120+extern uint8_t *rbuf; /* the picture, RW x RH */+void render_init(void);+void render_frame(void); /* from the player's eyes */+void render_title(uint16_t yaw); /* the title's backdrop: the world turning */+void render_sky_palette(void); /* the sky's colours and the light, for the time of day */+extern uint32_t world_time; /* ticks: 24000 a day, 0 sunrise */+extern int view_dist; /* blocks seen */+extern uint32_t stat_faces, stat_spans, stat_px, stat_cells;+extern int crack_stage; /* the cracks on the block mined (-1: none) */++/* ---------------------------------------------------------------- the screens (gui.c) */+enum { GUI_NONE, GUI_INVENTORY, GUI_CRAFTING, GUI_FURNACE, GUI_CHEST, GUI_CREATIVE, GUI_PAUSE, GUI_DEATH, GUI_TITLE,+ GUI_WORLDS, GUI_CREATE, GUI_CONFIRM, GUI_LOADING, GUI_CONTROLS, GUI_OPTIONS, GUI_SAVING };+extern int gui;+void gui_open(int screen);+void gui_input(uint32_t keys, uint32_t pressed);+void gui_draw(void); /* the open screen, over the picture */+void hud_draw(void); /* the hotbar and the rest, over the picture */+void gui_tick(void); /* furnaces */+void text(int x, int y, const char *s, uint8_t c); /* Minecraft's font, with its shadow */+int text_width(const char *s);+void gui_message(const char *s);+extern int menu_action; /* what a menu asks main.c to do (ACT_*) */+enum { ACT_NONE, ACT_PLAY, ACT_NEW, ACT_QUIT, ACT_SAVE_QUIT, ACT_RESPAWN, ACT_TITLE };++/* ---------------------------------------------------------------- tiles: chests and furnaces (gui.c) */+typedef struct {+ int16_t x, z;+ uint8_t y, kind; /* B_CHEST, B_FURNACE */+ uint8_t facing; /* 2 north, 3 south, 4 west, 5 east: the face its front is on */+ uint8_t burn_max_hi;+ int16_t burn, cook, burn_max;+ Stack s[27]; /* a chest's 27; a furnace's input, fuel, output */+} Tile;+#define MAX_TILES 24+extern Tile tiles[MAX_TILES];+extern int n_tiles;+Tile *tile_at(int x, int y, int z);+Tile *tile_new(int x, int y, int z, int kind, int facing);+void tile_remove(int x, int y, int z);++/* ---------------------------------------------------------------- saves (save.c) */+#define MAX_WORLDS 5+typedef struct {+ char name[17];+ uint8_t mode;+ uint32_t seed;+ uint32_t played;+} WorldInfo;+bool world_info(int slot, WorldInfo *w);+bool save_world(void);+bool load_world(int slot);+void new_world(int slot, const char *name, uint32_t seed, int mode);+void delete_world(int slot);+int world_free_slot(void);+extern int cur_world;+extern char cur_name[17];++/* ---------------------------------------------------------------- the keys, as the game sees them (main.c) */+enum {+ K_LEFT = 1 << 0, K_RIGHT = 1 << 1, K_UP = 1 << 2, K_DOWN = 1 << 3, /* arrows: look; in screens, move */+ K_FWD = 1 << 4, K_BACK = 1 << 5, K_SLEFT = 1 << 6, K_SRIGHT = 1 << 7, /* cos ( , ) */+ K_JUMP = 1 << 8, K_SNEAK = 1 << 9, K_SPRINT = 1 << 10, /* y=, alpha, del */+ K_ATTACK = 1 << 11, K_USE = 1 << 12, K_INV = 1 << 13, /* 2nd, clear, vars */+ K_PAUSE = 1 << 14, K_HOME = 1 << 15, K_DROP = 1 << 16, K_PICK = 1 << 17, /* (-), mode, x,T,θ,n, log */+ K_ENTER = 1 << 18, /* enter */+ K_SLOT1 = 1 << 19 /* K_SLOT1 << n: digit n + 1 */+};+#define K_OK K_ATTACK /* 2nd: OK in screens */+#define K_ESC K_USE /* clear: back in screens */+uint32_t keys_now(void);+int rnd(int n);+void game_save_quit(void);++/* fixed-point helpers */+int16_t fsin(uint16_t a); /* 2.14 */+static inline int16_t fcos(uint16_t a) { return fsin((uint16_t)(a + 16384)); }+#endifdiff --git a/games/numblocks/ce/src/plat.h b/games/numblocks/ce/src/plat.hnew file mode 100644index 00000000..6125ed86--- /dev/null+++ b/games/numblocks/ce/src/plat.h@@ -0,0 +1,25 @@+/* What NumBlocks needs of the machine: the CE (plat_ce.c) or a computer, for tests and pictures (host/plat_host.c).+ * The screen is 320 x 240, a byte a pixel through a palette of 256 colours. */+#ifndef NBCE_PLAT_H+#define NBCE_PLAT_H+#include <stdbool.h>+#include <stdint.h>++#define SCREEN_W 320+#define SCREEN_H 240+extern uint8_t *scr; /* the screen shown */+void plat_init(void);+void plat_exit(void);+void plat_palette(int first, int n, const uint8_t *rgb); /* entries first.., 3 bytes each */+uint32_t plat_keys(void); /* the keys held (K_*) */+uint32_t plat_ms(void);+void plat_frame(void); /* a picture is done (the computer shows or keeps it) */+uint8_t *plat_spare(void); /* 76800 bytes of the machine's own (the CE: the second half of its screen memory) */+void *plat_grow(void *p, unsigned bytes); /* the edit log's memory, made bytes long (NULL: no room) */+/* files (the CE: appvars; data read in place) */+const uint8_t *plat_load(const char *name, unsigned *len);+bool plat_save(const char *name, const void *a, unsigned na, const void *b, unsigned nb);+void plat_delete(const char *name);+/* the renderer's hot loops (render.c has them in C, the CE in assembly) */+void plat_expand(const uint8_t *src, uint8_t *dst, int rows); /* 160-wide rows to 320 wide, doubled */+#endifdiff --git a/games/numblocks/ce/src/player.c b/games/numblocks/ce/src/player.cnew file mode 100644index 00000000..a39182f9--- /dev/null+++ b/games/numblocks/ce/src/player.c@@ -0,0 +1,416 @@+/* The player: Minecraft 1.8's movement (EntityLivingBase.moveEntityWithHeading: 0.1 a tick on the ground, slowed+ * by friction 0.546, 0.02 in the air, gravity 0.08 and drag 0.98, a jump of 0.42, swimming), the box of 0.6 x+ * 1.8 against the blocks, mining (Block.getPlayerRelativeBlockHardness: the tool's speed over the hardness, 30+ * ticks for each with the right tool, 100 without), placing, falling, drowning, lava, and health coming back.+ * Fixed point: 4096 a block. */+#include "nb.h"++Player pl;++#define W2 (FX1 * 3 / 10) /* half the box's width */+#define BOX_H (FX1 * 18 / 10)+#define C(v) ((fx)((v) * 4096 + ((v) >= 0 ? 0.5 : -0.5)))++static bool solid_at(int x, int y, int z) { return (blk_flags[world_get(x, y, z)] & BF_SOLID) != 0; }++/* the box: feet at (x, y, z); how far it can move d along axis a (0 x, 1 y, 2 z) before a solid block */+static fx clip_move(fx x, fx y, fx z, int a, fx d) {+ if (!d) return 0;+ fx lo[3] = {x - W2, y, z - W2}, hi[3] = {x + W2, y + BOX_H, z + W2};+ /* the blocks the box overlaps across the other two axes (touching is not overlapping) */+ int b0[3], b1[3];+ for (int k = 0; k < 3; k++) b0[k] = FXI(lo[k]), b1[k] = FXI(hi[k] - 1);+ if (d > 0) {+ int s = FXI(hi[a] - 1) + 1, e = FXI(hi[a] + d - 1);+ for (int c = s; c <= e; c++) {+ b0[a] = b1[a] = c;+ for (int i = b0[0]; i <= b1[0]; i++)+ for (int j = b0[1]; j <= b1[1]; j++)+ for (int k = b0[2]; k <= b1[2]; k++)+ if (solid_at(i, j, k)) return (fx)c * FX1 - hi[a];+ }+ } else {+ int s = FXI(lo[a]) - 1, e = FXI(lo[a] + d);+ for (int c = s; c >= e; c--) {+ b0[a] = b1[a] = c;+ for (int i = b0[0]; i <= b1[0]; i++)+ for (int j = b0[1]; j <= b1[1]; j++)+ for (int k = b0[2]; k <= b1[2]; k++)+ if (solid_at(i, j, k)) return (fx)(c + 1) * FX1 - lo[a];+ }+ }+ return d;+}++static bool box_free(fx x, fx y, fx z) {+ for (int i = FXI(x - W2); i <= FXI(x + W2 - 1); i++)+ for (int j = FXI(y); j <= FXI(y + BOX_H - 1); j++)+ for (int k = FXI(z - W2); k <= FXI(z + W2 - 1); k++)+ if (solid_at(i, j, k)) return false;+ return true;+}++/* standing on something, a little lower? (sneaking keeps the player from walking off an edge) */+static bool ground_under(fx x, fx y, fx z) { return clip_move(x, y, z, 1, -C(0.6)) != -C(0.6); }++static void move(fx dx, fx dy, fx dz) {+ fx ody = dy, odx = dx, odz = dz;+ if (pl.sneaking && pl.on_ground && !pl.flying) {+ /* (Entity.moveEntity: back off while the step would leave no ground) */+ while (dx && !ground_under(pl.x + dx, pl.y, pl.z)) dx = dx > C(0.05) ? dx - C(0.05) : dx < -C(0.05) ? dx + C(0.05) : 0;+ while (dz && !ground_under(pl.x, pl.y, pl.z + dz)) dz = dz > C(0.05) ? dz - C(0.05) : dz < -C(0.05) ? dz + C(0.05) : 0;+ odx = dx, odz = dz;+ }+ dy = clip_move(pl.x, pl.y, pl.z, 1, dy);+ pl.y += dy;+ dx = clip_move(pl.x, pl.y, pl.z, 0, dx);+ pl.x += dx;+ dz = clip_move(pl.x, pl.y, pl.z, 2, dz);+ pl.z += dz;+ pl.on_ground = ody < 0 && dy != ody;+ if (dy != ody) pl.vy = 0;+ if (dx != odx) pl.vx = 0;+ if (dz != odz) pl.vz = 0;+}++/* Entity.moveFlying: speed f along the input, turned by the yaw */+static void move_flying(int s, int fw, fx f) {+ /* inputs: -98..98 (Minecraft's 0.98); their length, at least 1, spreads the speed over both */+ int32_t d2 = (int32_t)s * s + (int32_t)fw * fw;+ if (!d2) return;+ int d = 100;+ while ((int32_t)(d + 1) * (d + 1) <= d2) d++;+ fx ks = f * s / d, kf = f * fw / d;+ int sy = fsin(pl.yaw), cy = fcos(pl.yaw);+ pl.vx += (ks * cy - kf * sy) >> 14;+ pl.vz += (kf * cy + ks * sy) >> 14;+}++static bool in_block(int b) {+ /* any cell the box (a little smaller) is in holds b */+ fx m = C(0.001);+ for (int i = FXI(pl.x - W2 + m); i <= FXI(pl.x + W2 - m); i++)+ for (int j = FXI(pl.y + C(0.4)); j <= FXI(pl.y + BOX_H - C(0.4)); j++)+ for (int k = FXI(pl.z - W2 + m); k <= FXI(pl.z + W2 - m); k++)+ if (world_get(i, j, k) == b) return true;+ return false;+}++void player_hurt(int halves) {+ if (pl.mode || pl.dead || pl.hurt_time > 0 || halves <= 0) return;+ pl.health -= halves;+ pl.hurt_time = 10;+ if (pl.health <= 0) pl.health = 0, pl.dead = true, gui_open(GUI_DEATH);+}++/* ---------------------------------------------------------------- the block looked at */+int ray_pick(int reach, int *hx, int *hy, int *hz, int *face) {+ /* from the eyes along the view: a cell at a time (voxel traversal) */+ int sy = fsin(pl.yaw), cy = fcos(pl.yaw), sp = fsin((uint16_t)pl.pitch), cp = fcos((uint16_t)pl.pitch);+ int32_t d[3] = {-(int32_t)sy * cp >> 14, -sp, (int32_t)cy * cp >> 14}; /* Q14 */+ fx o[3] = {pl.x, pl.y + (pl.sneaking ? C(1.54) : C(1.62)), pl.z};+ int c[3], step[3];+ int32_t tmax[3], tdel[3]; /* in 1/4096 blocks of the ray */+ for (int k = 0; k < 3; k++) {+ c[k] = FXI(o[k]);+ int32_t frac = o[k] - (fx)c[k] * FX1;+ if (d[k] > 0) step[k] = 1, tdel[k] = (int32_t)(((int32_t)FX1 << 14) / d[k]), tmax[k] = (int32_t)(((int64_t)(FX1 - frac) << 14) / d[k]);+ else if (d[k] < 0) step[k] = -1, tdel[k] = (int32_t)(((int32_t)FX1 << 14) / -d[k]), tmax[k] = (int32_t)(((int64_t)frac << 14) / -d[k]);+ else step[k] = 0, tdel[k] = tmax[k] = 0x7FFFFFFF;+ }+ int f = -1;+ for (int n = 0; n < 32; n++) {+ int b = world_get(c[0], c[1], c[2]);+ if (b != B_AIR && !(blk_flags[b] & BF_LIQUID) && n > 0) {+ *hx = c[0], *hy = c[1], *hz = c[2], *face = f;+ return b;+ }+ if (n == 0 && b != B_AIR && !(blk_flags[b] & BF_LIQUID)) {+ *hx = c[0], *hy = c[1], *hz = c[2], *face = 1;+ return b;+ }+ int k = tmax[0] < tmax[1] ? (tmax[0] < tmax[2] ? 0 : 2) : (tmax[1] < tmax[2] ? 1 : 2);+ if (tmax[k] > reach) break;+ c[k] += step[k];+ tmax[k] += tdel[k];+ /* the face entered: -Y +Y -Z +Z -X +X (index of the face of the new cell towards where the ray came from) */+ f = k == 1 ? (step[k] > 0 ? 0 : 1) : k == 2 ? (step[k] > 0 ? 2 : 3) : (step[k] > 0 ? 4 : 5);+ }+ return 0;+}++/* ---------------------------------------------------------------- items */+int item_max(int id) { return id >= IT0 && (it_kind[id - IT0] & 15) ? 1 : 64; }+int item_dur(int id) { return id >= IT0 ? it_dur[id - IT0] : 0; }++int inv_add(int id, int n, int dmg) {+ int mx = item_max(id);+ for (int pass = 0; pass < 2 && n > 0; pass++)+ for (int i = 0; i < 36 && n > 0; i++) {+ Stack *s = &pl.inv[i];+ if (pass == 0 && s->id == id && s->n < mx && mx > 1) {+ int k = mx - s->n < n ? mx - s->n : n;+ s->n = (uint8_t)(s->n + k), n -= k;+ } else if (pass == 1 && !s->id) {+ int k = n < mx ? n : mx;+ s->id = (uint8_t)id, s->n = (uint8_t)k, s->dmg = (uint16_t)dmg, n -= k;+ }+ }+ return n;+}++/* the ticks it takes to mine b with what is held (ForgeHooks-free 1.8: getPlayerRelativeBlockHardness) */+static bool can_harvest(int b, int tool, int tier) {+ /* (every block mined fastest with a pickaxe here is rock or metal: it needs one) */+ if ((blk_tool[b] & 15) != T_PICKAXE) return true;+ return tool == T_PICKAXE && tier >= blk_tool[b] >> 4;+}+static int break_time(int b) {+ int hard = blk_hard[b]; /* x 4 */+ if (hard == 255) return -1;+ if (pl.mode) return 0;+ if (hard == 0) return 0;+ const Stack *h = held();+ int tool = 0, tier = 0, speed = 1;+ if (h->id >= IT0) {+ int k = it_kind[h->id - IT0];+ tool = k & 15, tier = k >> 4;+ if (tool && tool == (blk_tool[b] & 15)) speed = it_speed[h->id - IT0];+ if (tool == T_SWORD && (b == B_LEAVES_OAK || b == B_LEAVES_SPRUCE || b == B_LEAVES_BIRCH)) speed = 1;+ }+ int per = can_harvest(b, tool, tier) ? 30 : 100;+ /* ticks = hardness * per / speed, a little more under water or in the air */+ int32_t t = ((int32_t)hard * per + speed * 4 - 1) / (speed * 4);+ if (pl.in_water) t *= 5;+ if (!pl.on_ground && !pl.flying) t *= 5;+ return (int)(t < 1 ? 1 : t);+}++static void wear(void) {+ Stack *h = held();+ if (pl.mode || h->id < IT0 || !(it_kind[h->id - IT0] & 15)) return;+ if (++h->dmg >= it_dur[h->id - IT0]) h->id = 0, h->n = 0, h->dmg = 0;+}++static void break_block(int x, int y, int z) {+ int b = world_get(x, y, z);+ if (b == B_CHEST || b == B_FURNACE || b == B_FURNACE_LIT) {+ Tile *t = tile_at(x, y, z);+ if (t && !pl.mode)+ for (int i = 0; i < 27; i++)+ if (t->s[i].id) inv_add(t->s[i].id, t->s[i].n, t->s[i].dmg);+ tile_remove(x, y, z);+ }+ world_set(x, y, z, B_AIR);+ if (!pl.mode) {+ const Stack *h = held();+ int tool = 0, tier = 0;+ if (h->id >= IT0) tool = it_kind[h->id - IT0] & 15, tier = it_kind[h->id - IT0] >> 4;+ int d = blk_drop[b];+ if (b == B_GRAVEL && rnd(10) == 0) d = I_FLINT;+ if ((b == B_LEAVES_OAK) && rnd(200) == 0) d = I_APPLE;+ if ((b == B_LEAVES_OAK || b == B_LEAVES_BIRCH || b == B_LEAVES_SPRUCE) && d == 255 && rnd(20) == 0)+ d = b == B_LEAVES_OAK ? B_SAPLING_OAK : b == B_LEAVES_BIRCH ? B_SAPLING_BIRCH : B_SAPLING_SPRUCE;+ if (d != 255 && can_harvest(b, tool, tier)) {+ int n = b == B_LAPIS_ORE ? 4 + rnd(5) : b == B_REDSTONE_ORE ? 4 + rnd(2) : 1;+ inv_add(d, n, 0);+ }+ wear();+ }+ /* what stood on it falls (plants, torches); sand and gravel fall too */+ int above = world_get(x, y + 1, z);+ if (blk_model[above] == M_CROSS || blk_model[above] == M_TORCH) break_block(x, y + 1, z);+ for (int k = y + 1; k < WORLD_H; k++) {+ int a = world_get(x, k, z);+ if (a != B_SAND && a != B_GRAVEL) break;+ world_set(x, k, z, B_AIR);+ world_set(x, k - 1, z, a);+ }+}++static void place(int x, int y, int z, int face) {+ Stack *h = held();+ if (!h->id || h->id >= IT0) return;+ int b = h->id;+ int nx = x + (face == 4 ? -1 : face == 5 ? 1 : 0), ny = y + (face == 0 ? -1 : face == 1 ? 1 : 0),+ nz = z + (face == 2 ? -1 : face == 3 ? 1 : 0);+ int there = world_get(nx, ny, nz);+ int at = world_get(x, y, z);+ if (at == B_TALL_GRASS || at == B_DEAD_BUSH) nx = x, ny = y, nz = z, there = at;+ else if (there != B_AIR && !(blk_flags[there] & BF_LIQUID)) return;+ if (!in_win(nx, ny, nz) || ny >= WORLD_H || ny < 1) return;+ /* plants need ground; torches a floor or a wall */+ int below = world_get(nx, ny - 1, nz);+ if (blk_model[b] == M_CROSS) {+ bool sap = b == B_SAPLING_OAK || b == B_SAPLING_SPRUCE || b == B_SAPLING_BIRCH || b == B_DANDELION || b == B_POPPY ||+ b == B_TALL_GRASS;+ if (sap && below != B_GRASS && below != B_DIRT && below != B_GRASS_SNOWED) return;+ if (b == B_DEAD_BUSH && below != B_SAND) return;+ if (b == B_SUGAR_CANE && below != B_SUGAR_CANE && below != B_GRASS && below != B_DIRT && below != B_SAND) return;+ }+ if (b == B_TORCH && !(blk_flags[below] & BF_OPAQUE) && face < 2) return;+ if (b == B_CACTUS && below != B_SAND && below != B_CACTUS) return;+ /* not into the player */+ if (blk_flags[b] & BF_SOLID) {+ fx x0 = pl.x - W2, x1 = pl.x + W2, z0 = pl.z - W2, z1 = pl.z + W2, y0 = pl.y, y1 = pl.y + BOX_H;+ if ((fx)nx * FX1 < x1 && (fx)(nx + 1) * FX1 > x0 && (fx)ny * FX1 < y1 && (fx)(ny + 1) * FX1 > y0 &&+ (fx)nz * FX1 < z1 && (fx)(nz + 1) * FX1 > z0)+ return;+ }+ if (!edits_room(1)) {+ gui_message("Out of memory");+ return;+ }+ if (b == B_CHEST || b == B_FURNACE) {+ /* its front towards the player (BlockFurnace.onBlockPlacedBy) */+ int q = ((pl.yaw + 8192) >> 14) & 3; /* 0 south, 1 west, 2 north, 3 east: the way the player faces */+ static const uint8_t front[4] = {2, 5, 3, 4};+ if (!tile_new(nx, ny, nz, b, front[q])) {+ gui_message("Too many chests and furnaces");+ return;+ }+ }+ world_set(nx, ny, nz, b);+ pl.swing = 6;+ if (!pl.mode && !--h->n) h->id = 0;+}++static void use(void) {+ if (pl.hit_face < 0) return;+ int b = world_get(pl.hit_x, pl.hit_y, pl.hit_z);+ if (!pl.sneaking) {+ if (b == B_CRAFTING_TABLE) { gui_open(GUI_CRAFTING); return; }+ if (b == B_FURNACE || b == B_FURNACE_LIT || b == B_CHEST) {+ extern Tile *gui_tile;+ gui_tile = tile_at(pl.hit_x, pl.hit_y, pl.hit_z);+ if (!gui_tile) gui_tile = tile_new(pl.hit_x, pl.hit_y, pl.hit_z, b == B_CHEST ? B_CHEST : B_FURNACE, 3);+ if (gui_tile) gui_open(b == B_CHEST ? GUI_CHEST : GUI_FURNACE);+ return;+ }+ }+ place(pl.hit_x, pl.hit_y, pl.hit_z, pl.hit_face);+}++/* ---------------------------------------------------------------- a tick */+void player_spawn(void) {+ pl.x = (fx)pl.spawn_x * FX1 + FX1 / 2;+ pl.z = (fx)pl.spawn_z * FX1 + FX1 / 2;+ pl.y = (fx)pl.spawn_y * FX1;+ pl.vx = pl.vy = pl.vz = 0;+ pl.health = 20, pl.air = 300, pl.dead = false, pl.fall_from = -1;+ pl.hit_face = -1;+ pl.break_ticks = 0;+}++static int last_attack;+void player_tick(uint32_t keys, uint32_t pressed) {+ if (pl.dead) return;+ if (pl.hurt_time) pl.hurt_time--;+ if (pl.swing) pl.swing--;+ /* looking: the arrows (180 degrees a second at the top speed, easing in) */+ /* (done each frame in main.c) */+ /* the hotbar */+ for (int k = 0; k < 9; k++)+ if (pressed & (K_SLOT1 << k)) pl.slot = k;+ int fw = (keys & K_FWD ? 98 : 0) - (keys & K_BACK ? 98 : 0);+ int st = (keys & K_SLEFT ? 98 : 0) - (keys & K_SRIGHT ? 98 : 0);+ pl.sneaking = (keys & K_SNEAK) && !pl.flying;+ if (pl.sneaking) fw = fw * 3 / 10, st = st * 3 / 10;+ /* sprinting: del, or forward twice quickly */+ if (pressed & K_FWD) {+ if (pl.fwd_tap > 0 && !pl.sneaking) pl.sprinting = true;+ pl.fwd_tap = 7;+ }+ if (pl.fwd_tap) pl.fwd_tap--;+ if ((keys & K_SPRINT) && fw > 0 && !pl.sneaking) pl.sprinting = true;+ if (fw <= 0 || pl.sneaking) pl.sprinting = false;+ /* flying: jump twice in Creative */+ if (pl.mode && (pressed & K_JUMP)) {+ if (pl.jump_wait > 0) pl.flying = !pl.flying, pl.jump_wait = 0, pl.vy = 0;+ else pl.jump_wait = 7;+ }+ if (pl.jump_wait) pl.jump_wait--;+ pl.in_water = in_block(B_WATER);+ pl.in_lava = in_block(B_LAVA);+ fx fall_y = pl.y;+ if (pl.flying) {+ move_flying(st, fw, pl.sprinting ? C(0.1) : C(0.05));+ if (keys & K_JUMP) pl.vy += C(0.15);+ if (keys & K_SNEAK) pl.vy -= C(0.15);+ move(pl.vx, pl.vy, pl.vz);+ pl.vy = pl.vy * 6 / 10;+ pl.vx = pl.vx * 3727 / 4096, pl.vz = pl.vz * 3727 / 4096;+ if (pl.on_ground) pl.flying = false;+ } else if (pl.in_water || pl.in_lava) {+ move_flying(st, fw, C(0.02));+ if (keys & K_JUMP) pl.vy += C(0.04);+ move(pl.vx, pl.vy, pl.vz);+ int k = pl.in_water ? 3277 : 2048; /* 0.8, 0.5 */+ pl.vx = pl.vx * k / 4096, pl.vy = pl.vy * k / 4096, pl.vz = pl.vz * k / 4096;+ pl.vy -= C(0.02);+ pl.fall_from = -1;+ } else {+ /* on the ground: 0.1 (x 1.3 sprinting) x 0.16277 / 0.546^3; in the air 0.02 (0.026) */+ fx f;+ if (pl.on_ground) f = pl.sprinting ? C(0.13) : C(0.1);+ else f = pl.sprinting ? C(0.026) : C(0.02);+ move_flying(st, fw, f);+ if ((keys & K_JUMP) && pl.on_ground) {+ pl.vy = C(0.42);+ if (pl.sprinting) {+ pl.vx -= (fx)fsin(pl.yaw) * C(0.2) >> 14;+ pl.vz += (fx)fcos(pl.yaw) * C(0.2) >> 14;+ }+ }+ move(pl.vx, pl.vy, pl.vz);+ pl.vy = (pl.vy - C(0.08)) * 4014 / 4096;+ int fr = pl.on_ground ? 2236 : 3727; /* 0.546, 0.91 */+ pl.vx = pl.vx * fr / 4096, pl.vz = pl.vz * fr / 4096;+ }+ /* falling: the height fallen, the damage on landing (more than 3 blocks) */+ if (pl.on_ground || pl.flying || pl.mode) {+ if (pl.fall_from >= 0 && !pl.flying) {+ int dmg = (int)((pl.fall_from - pl.y + FX1 - 1) / FX1) - 3;+ if (dmg > 0 && !pl.in_water) player_hurt(dmg);+ }+ pl.fall_from = -1;+ } else if (pl.vy < 0 && pl.fall_from < 0) pl.fall_from = (int32_t)fall_y;+ if (pl.fall_from >= 0 && pl.y > pl.fall_from) pl.fall_from = (int32_t)pl.y;+ /* breath, lava, the void */+ int head = world_get(FXI(pl.x), FXI(pl.y + C(1.62)), FXI(pl.z));+ if (head == B_WATER && !pl.mode) {+ if (--pl.air <= -20) pl.air = 0, player_hurt(2);+ } else pl.air = 300;+ if (pl.in_lava && !(world_time & 7)) player_hurt(4);+ if (pl.y < -FX1 * 8) player_hurt(4);+ if (!pl.mode && pl.health < 20 && pl.health > 0 && ++pl.regen >= 80) pl.health++, pl.regen = 0;+ /* the block looked at */+ int hx, hy, hz, hf;+ int hb = ray_pick(pl.mode ? FX1 * 5 : FX1 * 9 / 2, &hx, &hy, &hz, &hf);+ if (!hb) hf = -1;+ if (hf < 0 || hx != pl.hit_x || hy != pl.hit_y || hz != pl.hit_z) pl.break_ticks = 0;+ pl.hit_x = hx, pl.hit_y = hy, pl.hit_z = hz, pl.hit_face = hf;+ /* mining: hold 2nd */+ if (last_attack) last_attack--;+ if ((keys & K_ATTACK) && hf >= 0) {+ if (!pl.swing) pl.swing = 6;+ int t = break_time(hb);+ if (t >= 0 && !last_attack) {+ pl.break_need = t;+ if (++pl.break_ticks > t) {+ break_block(hx, hy, hz);+ pl.break_ticks = 0;+ last_attack = pl.mode ? 5 : 0;+ }+ }+ } else pl.break_ticks = 0;+ if (pressed & K_USE) use();+ if (pressed & K_PICK && hf >= 0 && hb < B_N && pl.mode) {+ Stack *h = held();+ h->id = (uint8_t)hb, h->n = 1, h->dmg = 0;+ }+ if (pressed & K_DROP) {+ Stack *h = held();+ if (h->id && !--h->n) h->id = 0;+ }+}diff --git a/games/numblocks/ce/src/render.c b/games/numblocks/ce/src/render.cnew file mode 100644index 00000000..7fc2be40--- /dev/null+++ b/games/numblocks/ce/src/render.c@@ -0,0 +1,641 @@+/* The 3D view: the faces of the blocks drawn front to back, at 160 x 120, shown at 2x.+ *+ * The columns around the eye are visited from near to far (a quadrant at a time, each axis outward from the+ * eye: in that order nothing can hide what came before it), and in each column the cells with a face to draw+ * (wexp) outward from the eye's level. A face is projected, clipped to the screen and filled a row of pixels+ * at a time with its texture, mapped linearly across it (faces near the eye are cut into smaller ones, so the+ * mapping stays true). A bit per pixel says which pixels are drawn: each is drawn once, and a cell whose+ * square on screen is all drawn is passed by. What is left at the end is sky.+ *+ * Like Minecraft 1.8 with Fast graphics and smooth lighting off: a face is lit by the light of the cell in+ * front of it, times its side's shade (top 1.0, north and south 0.8, east and west 0.6, bottom 0.5); grass and+ * leaves take their biome's colour; leaves are solid, their holes black; plants, glass and torches let what is+ * behind show through their see-through texels; fog fades the far blocks to the sky's horizon. The palette+ * does the shading: a texel's colour goes through a row of shade_cm (32 levels of light), then a fog row. */+#include "nb.h"++#ifndef NB_NO_RBUF+static uint8_t rbuf_mem[RW * RH];+uint8_t *rbuf = rbuf_mem;+#endif+static uint8_t cov[RH][RW / 8]; /* 1: drawn */+static int px_left; /* pixels not drawn yet */+uint32_t stat_faces, stat_spans, stat_px, stat_cells;+int view_dist = 13;+uint32_t world_time;+int crack_stage = -1;++/* ---------------------------------------------------------------- the camera */+#define Q 14+#define Q1 (1L << Q)+static int eye_bx, eye_by, eye_bz; /* the eye's block */+static int rxx, rxz; /* camera axes in world units, 2.14: right (no y part) */+static int uxx, uxy, uxz, fxx, fxy, fxz; /* up, forward */+static int bx0, by0, bz0; /* the camera-space position of the eye block's low corner, Q14 */+#define F16 1371L /* 60 / tan(35 degrees), in 1/16 pixels: Minecraft's 70 degree view */+#define NEAR (Q1 / 20)++static uint8_t lvl_sky[16], lvl_blk[16]; /* shade level of each light level */+static const uint8_t face_off[6] = {6, 0, 2, 2, 4, 4}; /* -Y +Y -Z +Z -X +X: 0.5 1.0 0.8 0.8 0.6 0.6 */+static uint8_t fog_cm[8][256]; /* fog rows: 1/9 to 8/9 of the way to the fog's colour */+static uint8_t fog_rgb[3], sky_rgb[3];+static int fog_q; /* the fog's colour as last made into fog_cm */+static int32_t fog0_2, fog_step; /* fog: from fog0 (squared, Q7) in 8 steps to view_dist */+static uint8_t crack_tex[256]; /* the mined block's texture with its cracks */+static int crack_x, crack_y, crack_z;++int16_t fsin(uint16_t a) {+ /* a quarter wave, 64 steps, linear between */+ static const int16_t q[65] = {+ 0, 402, 804, 1205, 1606, 2006, 2404, 2801, 3196, 3590, 3981, 4370, 4756, 5139, 5520, 5897, 6270, 6639, 7005,+ 7366, 7723, 8076, 8423, 8765, 9102, 9434, 9760, 10080, 10394, 10702, 11003, 11297, 11585, 11866, 12140, 12406,+ 12665, 12916, 13160, 13395, 13623, 13842, 14053, 14256, 14449, 14635, 14811, 14978, 15137, 15286, 15426, 15557,+ 15679, 15791, 15893, 15986, 16069, 16143, 16207, 16261, 16305, 16340, 16364, 16379, 16384};+ int quad = a >> 14, k = a & 16383;+ if (quad & 1) k = 16384 - k;+ int i = k >> 8, f = k & 255;+ int v = i >= 64 ? 16384 : q[i] + (((q[i + 1] - q[i]) * f) >> 8);+ return (int16_t)(quad & 2 ? -v : v);+}++/* the camera's axes from the player's yaw and pitch (Minecraft: yaw 0 faces +Z, a quarter turn faces -X) */+static void camera(fx ex, fx ey, fx ez, uint16_t yaw, int16_t pitch) {+ int sy = fsin(yaw), cy = fcos(yaw), sp = fsin((uint16_t)pitch), cp = fcos((uint16_t)pitch);+ fxx = (int)(-(int32_t)sy * cp >> Q), fxy = -sp, fxz = (int)((int32_t)cy * cp >> Q);+ rxx = -cy, rxz = -sy;+ /* up = right x forward */+ uxx = (int)(((int32_t)0 * fxz - (int32_t)rxz * fxy) >> Q);+ uxy = (int)(((int32_t)rxz * fxx - (int32_t)rxx * fxz) >> Q);+ uxz = (int)(((int32_t)rxx * fxy - (int32_t)0 * fxx) >> Q);+ eye_bx = FXI(ex), eye_by = FXI(ey), eye_bz = FXI(ez);+ int32_t dx = -(int32_t)((ex & (FX1 - 1)) << (Q - FXS)), dy = -(int32_t)((ey & (FX1 - 1)) << (Q - FXS)),+ dz = -(int32_t)((ez & (FX1 - 1)) << (Q - FXS));+ bx0 = (int)((dx * rxx + dz * rxz) >> Q);+ by0 = (int)((dx * uxx + dy * uxy + dz * uxz) >> Q);+ bz0 = (int)((dx * fxx + dy * fxy + dz * fxz) >> Q);+}++/* ---------------------------------------------------------------- the light and the sky's colours */+static int sun_k; /* 0..256: how much the sun lights (Minecraft's sun brightness) */+static int day_k; /* 0..256: the sky's brightness */++/* the shade level (0..31, 0.89 apart) of a brightness 0..1 (x 4096) */+static int level_of(int32_t b) {+ int k = 31;+ int32_t v = 4096;+ while (k > 0 && v * 89 / 100 >= b) v = v * 89 / 100, k--;+ /* nearest of v and v * 0.89 */+ if (k > 0 && b < (v + v * 89 / 100) / 2) k--;+ return k;+}++static uint16_t lerp_pal(int c, const uint8_t *to, int t9) {+ /* (a colour t9 ninths of the way to `to`, as the nearest of the cube) */+ int r = pal_rgb[c * 3], g = pal_rgb[c * 3 + 1], b = pal_rgb[c * 3 + 2];+ r += (to[0] - r) * t9 / 9, g += (to[1] - g) * t9 / 9, b += (to[2] - b) * t9 / 9;+ /* the cube's levels: (i / 15) ^ 1.8 */+ int ri = 0, gi = 0, bi = 0;+ while (ri < 15 && (cube_levels[ri] + cube_levels[ri + 1]) / 2 < r) ri++;+ while (gi < 15 && (cube_levels[gi] + cube_levels[gi + 1]) / 2 < g) gi++;+ while (bi < 15 && (cube_levels[bi] + cube_levels[bi + 1]) / 2 < b) bi++;+ return pal_cube[ri << 8 | gi << 4 | bi];+}++/* celestial angle (World.calculateCelestialAngle), 0..65535: 0 noon */+static uint16_t celestial(void) {+ int32_t t = (int32_t)((world_time + 18000) % 24000); /* (Minecraft's time 0 is sunrise: +6000 is noon) */+ /* f = t / 24000 - 0.25, eased: f + ((1 - (cos(f * pi) + 1) / 2) - f) / 3 */+ int32_t f = t * 65536 / 24000; /* 0..65535 from noon */+ int c = fcos((uint16_t)(f >> 1)); /* cos(f * pi) */+ int32_t e = (16384 - ((int32_t)c + 16384) / 2) * 4; /* (1 - (cos+1)/2) x 65536 */+ return (uint16_t)(f + (e - f) / 3);+}++void render_sky_palette(void) {+ uint16_t ang = celestial();+ /* World.getSunBrightness and getCelestialLight-ish: the sky's brightness 0.2 at night to 1 by day */+ int c = fcos(ang); /* 1 at noon, -1 at midnight */+ int32_t f = 16384 - (2 * (int32_t)c + 8192 * 2 / 5); /* 1 - (cos * 2 + 0.2) */+ f = f < 0 ? 0 : f > 16384 ? 16384 : f;+ sun_k = (int)((16384 - f) * 256 / 16384 * 8 / 10 + 51); /* x 0.8 + 0.2 */+ int32_t f2 = 16384 - (2 * (int32_t)c + 8192); /* World.getSkyColor: cos * 2 + 0.5 */+ f2 = f2 < 0 ? 0 : f2 > 16384 ? 16384 : f2;+ day_k = (int)((16384 - f2) * 256 / 16384);+ /* the light table (gamma "Moody"): (1 - f) / (3f + 1), f = 1 - level / 15; the sky's scaled by the sun */+ for (int l = 0; l < 16; l++) {+ int32_t t = (int32_t)l * 4096 / (60 - 3 * l); /* (l / 15) / ((1 - l / 15) * 3 + 1) */+ int32_t blk = t * 96 / 100 + 123; /* x 0.96 + 0.03 */+ int32_t sky = (t * (sun_k * 95 / 100 + 13) / 256) * 96 / 100 + 123;+ lvl_blk[l] = (uint8_t)level_of(blk);+ lvl_sky[l] = (uint8_t)level_of(sky);+ }+ /* the sky (Minecraft's plains sky: HSB 0.6, 0.54, 1) and the fog (0.75, 0.85, 1), darker at night */+ int dk = day_k;+ sky_rgb[0] = (uint8_t)(120 * dk / 256), sky_rgb[1] = (uint8_t)(167 * dk / 256), sky_rgb[2] = (uint8_t)(255 * dk / 256);+ int fk = dk * 94 / 100 + 15;+ fog_rgb[0] = (uint8_t)(192 * fk / 256), fog_rgb[1] = (uint8_t)(216 * fk / 256);+ fog_rgb[2] = (uint8_t)(255 * (dk * 91 / 100 + 23) / 256);+ /* (the fog leans a quarter towards the sky) */+ for (int k = 0; k < 3; k++) fog_rgb[k] = (uint8_t)(fog_rgb[k] + (sky_rgb[k] - fog_rgb[k]) * 26 / 100);+ /* the sky's 15 colours: 1 the fog (the horizon) to 15 the sky above */+ uint8_t pal[15 * 3];+ for (int i = 0; i < 15; i++)+ for (int k = 0; k < 3; k++) pal[i * 3 + k] = (uint8_t)(fog_rgb[k] + (sky_rgb[k] - fog_rgb[k]) * i / 14);+ plat_palette(1, 15, pal);+ /* the fog rows, when its colour has changed enough */+ int qf = (fog_rgb[0] >> 3) << 10 | (fog_rgb[1] >> 3) << 5 | (fog_rgb[2] >> 3);+ if (qf != fog_q) {+ fog_q = qf;+ for (int f = 0; f < 8; f++) {+ fog_cm[f][0] = 0;+ for (int i = 1; i < 256; i++) fog_cm[f][i] = i < FIRST_STATIC ? (uint8_t)i : (uint8_t)lerp_pal(i, fog_rgb, f + 1);+ }+ }+}++/* ---------------------------------------------------------------- filling a polygon */+typedef struct { int32_t x, y, u, v; } SV; /* screen x, y in 1/16 pixels; u, v in 1/256 texels */+typedef struct { int32_t x, y, z, u, v; } CV; /* camera space, Q14; u, v */++static const uint8_t *s_tex, *s_cm, *s_fog;+static bool s_alpha;++/* a row of pixels [x0, x1) at row y, those not drawn yet, from texel u, v stepping du, dv */+static void span(int y, int x0, int x1, int32_t u, int32_t v, int32_t du, int32_t dv) {+ uint8_t *c = cov[y], *d = rbuf + y * RW;+ stat_spans++;+ int x = x0;+ while (x < x1) {+ int byte = x >> 3, bit = x & 7;+ int end = (byte + 1) << 3;+ if (end > x1) end = x1;+ unsigned m = c[byte];+ unsigned want = (0xFFu << bit) & (0xFFu >> (8 - (end - (byte << 3))));+ if ((m & want) == want) { /* all drawn */+ u += du * (end - x), v += dv * (end - x);+ x = end;+ continue;+ }+ if (!(m & want) && !s_alpha) { /* none drawn: the whole run */+ c[byte] = (uint8_t)(m | want);+ int n = end - x;+ px_left -= n;+ stat_px += n;+ uint8_t *p = d + x;+ if (s_fog)+ while (n--) {+ *p++ = s_fog[s_cm[s_tex[((v >> 4) & 0xF0) | ((u >> 8) & 15)]]];+ u += du, v += dv;+ }+ else+ while (n--) {+ *p++ = s_cm[s_tex[((v >> 4) & 0xF0) | ((u >> 8) & 15)]];+ u += du, v += dv;+ }+ x = end;+ continue;+ }+ for (; x < end; x++, u += du, v += dv) {+ unsigned b = 1u << (x & 7);+ if (m & b) continue;+ int t = s_tex[((v >> 4) & 0xF0) | ((u >> 8) & 15)];+ if (s_alpha && !t) continue;+ m |= b;+ px_left--;+ stat_px++;+ d[x] = s_fog ? s_fog[s_cm[t]] : s_cm[t];+ }+ c[byte] = (uint8_t)m;+ }+}++/* clipping in 2D against x >= 0 (k 0), x <= W (1), y >= 0 (2), y <= H (3) */+static int clip2(SV *in, int n, SV *out, int k) {+ int m = 0;+ for (int i = 0; i < n; i++) {+ SV *a = &in[i], *b = &in[(i + 1) % n];+ int32_t da, db;+ switch (k) {+ case 0: da = a->x, db = b->x; break;+ case 1: da = RW * 16 - a->x, db = RW * 16 - b->x; break;+ case 2: da = a->y, db = b->y; break;+ default: da = RH * 16 - a->y, db = RH * 16 - b->y;+ }+ if (da >= 0) out[m++] = *a;+ if ((da >= 0) != (db >= 0)) {+ int32_t t = (da << 12) / (da - db); /* 0..4096 */+ SV *o = &out[m++];+ o->x = a->x + (((b->x - a->x) * t) >> 12);+ o->y = a->y + (((b->y - a->y) * t) >> 12);+ o->u = a->u + (((b->u - a->u) * t) >> 12);+ o->v = a->v + (((b->v - a->v) * t) >> 12);+ if (k == 0) o->x = 0;+ else if (k == 1) o->x = RW * 16;+ else if (k == 2) o->y = 0;+ else o->y = RH * 16;+ }+ }+ return m;+}++/* fills a convex polygon (any winding) with its texture, mapped linearly */+static void raster(SV *p, int n) {+ static SV buf_a[16], buf_b[16];+ int32_t xmin = p[0].x, xmax = p[0].x, ymin = p[0].y, ymax = p[0].y;+ for (int i = 1; i < n; i++) {+ if (p[i].x < xmin) xmin = p[i].x;+ if (p[i].x > xmax) xmax = p[i].x;+ if (p[i].y < ymin) ymin = p[i].y;+ if (p[i].y > ymax) ymax = p[i].y;+ }+ if (xmax <= 0 || ymax <= 0 || xmin >= RW * 16 || ymin >= RH * 16) return;+ if (xmin < 0 || ymin < 0 || xmax > RW * 16 || ymax > RH * 16) {+ SV *a = p, *b = buf_a;+ if (xmin < 0) n = clip2(a, n, b, 0), a = b, b = a == buf_a ? buf_b : buf_a;+ if (xmax > RW * 16 && n) n = clip2(a, n, b, 1), a = b, b = a == buf_a ? buf_b : buf_a;+ if (ymin < 0 && n) n = clip2(a, n, b, 2), a = b, b = a == buf_a ? buf_b : buf_a;+ if (ymax > RH * 16 && n) n = clip2(a, n, b, 3), a = b, b = a == buf_a ? buf_b : buf_a;+ if (n < 3) return;+ p = a;+ ymin = ymax = p[0].y;+ for (int i = 1; i < n; i++) {+ if (p[i].y < ymin) ymin = p[i].y;+ if (p[i].y > ymax) ymax = p[i].y;+ }+ }+ int y0 = (int)((ymin + 7) >> 4), y1 = (int)((ymax + 7) >> 4); /* rows whose middle is inside */+ if (y0 < 0) y0 = 0;+ if (y1 > RH) y1 = RH;+ if (y0 >= y1) return;+ /* the texture's gradient: from the largest triangle of the polygon's first vertex */+ int32_t det = 0;+ int ia = 1, ib = 2;+ for (int i = 1; i + 1 < n; i++) {+ int32_t d = (p[i].x - p[0].x) * (p[i + 1].y - p[0].y) - (p[i + 1].x - p[0].x) * (p[i].y - p[0].y);+ if ((d < 0 ? -d : d) > (det < 0 ? -det : det)) det = d, ia = i, ib = i + 1;+ }+ if (det > -64 && det < 64) return; /* (a sliver of less than a pixel) */+ int32_t ax = p[ia].x - p[0].x, ay = p[ia].y - p[0].y, bx = p[ib].x - p[0].x, by = p[ib].y - p[0].y;+ int32_t au = p[ia].u - p[0].u, bu = p[ib].u - p[0].u, av = p[ia].v - p[0].v, bv = p[ib].v - p[0].v;+ /* d/dx and d/dy per pixel, in 1/256 texels (x 256 more for precision: 8 more bits) */+ int32_t dudx = (int32_t)(((int64_t)(au * by - bu * ay) << 12) / det);+ int32_t dudy = (int32_t)(((int64_t)(bu * ax - au * bx) << 12) / det);+ int32_t dvdx = (int32_t)(((int64_t)(av * by - bv * ay) << 12) / det);+ int32_t dvdy = (int32_t)(((int64_t)(bv * ax - av * bx) << 12) / det);+ /* the edges: walk the polygon's outline once, noting each row's left and right x */+ static int16_t xl[RH], xr[RH];+ for (int y = y0; y < y1; y++) xl[y] = 32767, xr[y] = -32768;+ for (int i = 0; i < n; i++) {+ const SV *a = &p[i], *b = &p[(i + 1) % n];+ if (a->y == b->y) continue;+ if (a->y > b->y) {+ const SV *t = a;+ a = b, b = t;+ }+ int ya = (int)((a->y + 7) >> 4), yb = (int)((b->y + 7) >> 4);+ if (ya < y0) ya = y0;+ if (yb > y1) yb = y1;+ if (ya >= yb) continue;+ int32_t slope = ((b->x - a->x) << 12) / (b->y - a->y); /* 1/16 px x 4096 per 1/16 px of y */+ int32_t x = (a->x << 12) + slope * ((ya << 4) + 8 - a->y);+ int32_t step = slope << 4;+ for (int y = ya; y < yb; y++, x += step) {+ int px = (int)((x + (7 << 12)) >> 16); /* the first pixel whose middle is right of the edge */+ if (px < xl[y]) xl[y] = (int16_t)px;+ if (px > xr[y]) xr[y] = (int16_t)px;+ }+ }+ for (int y = y0; y < y1; y++) {+ int a = xl[y], b = xr[y];+ if (a < 0) a = 0;+ if (b > RW) b = RW;+ if (a >= b) continue;+ /* the texel at pixel a's middle */+ int32_t dx = (int32_t)(a << 4) + 8 - p[0].x, dy = (int32_t)(y << 4) + 8 - p[0].y;+ int32_t u = p[0].u + (int32_t)(((int64_t)dudx * dx + (int64_t)dudy * dy) >> 12);+ int32_t v = p[0].v + (int32_t)(((int64_t)dvdx * dx + (int64_t)dvdy * dy) >> 12);+ span(y, a, b, u, v, dudx >> 8, dvdx >> 8);+ }+}++/* ---------------------------------------------------------------- faces */+/* projects a camera-space vertex: x, y in 1/16 pixels */+static void project(const CV *c, SV *s) {+ int32_t inv = (F16 << 18) / c->z;+ s->x = RW * 8 + (int32_t)(((int64_t)c->x * inv) >> 18);+ s->y = RH * 8 - (int32_t)(((int64_t)c->y * inv) >> 18);+ s->u = c->u, s->v = c->v;+}++/* clips a camera-space polygon to z >= NEAR and the guard planes |x|, |y| <= 4z */+static int clip3(CV *in, int n, CV *out, int k) {+ int m = 0;+ for (int i = 0; i < n; i++) {+ CV *a = &in[i], *b = &in[(i + 1) % n];+ int32_t da, db;+ switch (k) {+ case 0: da = a->z - NEAR, db = b->z - NEAR; break;+ case 1: da = 4 * a->z - a->x, db = 4 * b->z - b->x; break;+ case 2: da = 4 * a->z + a->x, db = 4 * b->z + b->x; break;+ case 3: da = 4 * a->z - a->y, db = 4 * b->z - b->y; break;+ default: da = 4 * a->z + a->y, db = 4 * b->z + b->y;+ }+ if (da >= 0) out[m++] = *a;+ if ((da >= 0) != (db >= 0)) {+ int32_t t = (int32_t)(((int64_t)da << 14) / (da - db));+ CV *o = &out[m++];+ o->x = a->x + (int32_t)(((int64_t)(b->x - a->x) * t) >> 14);+ o->y = a->y + (int32_t)(((int64_t)(b->y - a->y) * t) >> 14);+ o->z = a->z + (int32_t)(((int64_t)(b->z - a->z) * t) >> 14);+ o->u = a->u + (((b->u - a->u) * t) >> 14);+ o->v = a->v + (((b->v - a->v) * t) >> 14);+ if (k == 0 && o->z < NEAR) o->z = NEAR;+ }+ }+ return m;+}++static void draw_quad(CV *q, int n) {+ bool far = true;+ for (int i = 0; i < n; i++)+ if (q[i].z < NEAR || q[i].x > 4 * q[i].z || -q[i].x > 4 * q[i].z || q[i].y > 4 * q[i].z || -q[i].y > 4 * q[i].z)+ far = false;+ static CV ca[16], cb[16];+ if (!far) {+ CV *a = q, *b = ca;+ for (int k = 0; k < 5 && n >= 3; k++) {+ n = clip3(a, n, b, k);+ a = b, b = a == ca ? cb : ca;+ }+ if (n < 3) return;+ q = a;+ }+ SV s[16];+ for (int i = 0; i < n; i++) project(&q[i], &s[i]);+ raster(s, n);+}++/* a face given by its four corners (camera space) and texture corners; near faces are cut in 2 x 2 or 4 x 4 */+static void face4(const int32_t (*c)[3], int split) {+ stat_faces++;+ static const int32_t uv[4][2] = {{0, 0}, {4096, 0}, {4096, 4096}, {0, 4096}};+ if (split <= 1) {+ CV q[4];+ for (int i = 0; i < 4; i++) q[i] = (CV){c[i][0], c[i][1], c[i][2], uv[i][0], uv[i][1]};+ draw_quad(q, 4);+ return;+ }+ /* corners: c0 + s * (c1 - c0) + t * (c3 - c0) */+ for (int j = 0; j < split; j++)+ for (int i = 0; i < split; i++) {+ CV q[4];+ static const int8_t o[4][2] = {{0, 0}, {1, 0}, {1, 1}, {0, 1}};+ for (int k = 0; k < 4; k++) {+ int s = i + o[k][0], t = j + o[k][1];+ for (int a = 0; a < 3; a++) {+ int32_t v = c[0][a] + (c[1][a] - c[0][a]) * s / split + (c[3][a] - c[0][a]) * t / split;+ if (a == 0) q[k].x = v;+ else if (a == 1) q[k].y = v;+ else q[k].z = v;+ }+ q[k].u = 4096 * s / split, q[k].v = 4096 * t / split;+ }+ draw_quad(q, 4);+ }+}++/* each face's corners as offsets of the cell's low corner: x, y, z bits (top-left, top-right, bottom-right,+ * bottom-left, as seen from outside) */+static const uint8_t FACE_C[6][4] = {+ {0x4, 0x5, 0x1, 0x0}, /* -Y: (0,0,1) (1,0,1) (1,0,0) (0,0,0) */+ {0x2, 0x3, 0x7, 0x6}, /* +Y: (0,1,0) (1,1,0) (1,1,1) (0,1,1) */+ {0x3, 0x2, 0x0, 0x1}, /* -Z: (1,1,0) (0,1,0) (0,0,0) (1,0,0) */+ {0x6, 0x7, 0x5, 0x4}, /* +Z: (0,1,1) (1,1,1) (1,0,1) (0,0,1) */+ {0x2, 0x6, 0x4, 0x0}, /* -X: (0,1,0) (0,1,1) (0,0,1) (0,0,0) */+ {0x7, 0x3, 0x1, 0x5}, /* +X: (1,1,1) (1,1,0) (1,0,0) (1,0,1) */+};+static const int8_t FACE_D[6][3] = {{0, -1, 0}, {0, 1, 0}, {0, 0, -1}, {0, 0, 1}, {-1, 0, 0}, {1, 0, 0}};+/* the cross of plants: two diagonal quads */+static const uint8_t CROSS_C[2][4] = {{0x2, 0x7, 0x5, 0x0}, {0x6, 0x3, 0x1, 0x4}};++static int32_t corner[8][3]; /* the cell's corners, camera space */+static void corners(int32_t x, int32_t y, int32_t z) {+ for (int k = 0; k < 8; k++) {+ int32_t cx = x, cy = y, cz = z;+ if (k & 1) cx += rxx, cy += uxx, cz += fxx;+ if (k & 2) cy += uxy, cz += fxy;+ if (k & 4) cx += rxz, cy += uxz, cz += fxz;+ corner[k][0] = cx, corner[k][1] = cy, corner[k][2] = cz;+ }+}++static const uint8_t *face_cm(int lb, int side) {+ int l = lvl_sky[lb & 15], b = lvl_blk[lb >> 4];+ if (b > l) l = b;+ l -= face_off[side];+ return shade_cm[l < 0 ? 0 : l];+}++static void crack_make(int tex) {+ const uint8_t *t = tex_px[tex], *c = tex_px[TX_DESTROY_STAGE_0 + crack_stage];+ for (int i = 0; i < 256; i++) crack_tex[i] = c[i] ? shade_cm[18][t[i]] : t[i];+}++static int tile_front(int x, int y, int z) {+ Tile *t = tile_at(x, y, z);+ return t ? t->facing : 3;+}++static void cell(int x, int y, int z, int b, int32_t X, int32_t Y, int32_t Z, int dist2) {+ stat_cells++;+ int fog = 0;+ if (dist2 > fog0_2) {+ fog = (int)((dist2 - fog0_2) / fog_step) + 1;+ if (fog > 8) return;+ }+ s_fog = fog ? fog_cm[fog - 1] : 0;+ corners(X, Y, Z);+ int zmin = corner[0][2];+ for (int k = 1; k < 8; k++)+ if (corner[k][2] < zmin) zmin = corner[k][2];+ int split = zmin < Q1 / 2 ? 4 : zmin < 2 * Q1 ? 2 : 1;+ int m = blk_model[b];+ int ci = CI(x, z);+ if (m == M_CROSS || m == M_TORCH) {+ int tex = blk_tex[b][2];+ if (blk_tint[b]) tex += tint_of_biome[wbiome[ci]];+ s_tex = tex_px[tex];+ s_cm = face_cm(wlight[WI(x, y, z)], 1);+ s_alpha = true;+ for (int k = 0; k < 2; k++) {+ int32_t q[4][3];+ for (int i = 0; i < 4; i++) memcpy(q[i], corner[CROSS_C[k][i]], sizeof q[i]);+ face4(q, split);+ }+ s_alpha = false;+ return;+ }+ s_alpha = (blk_flags[b] & BF_ALPHA) != 0;+ bool mined = crack_stage >= 0 && x == crack_x && y == crack_y && z == crack_z;+ for (int f = 0; f < 6; f++) {+ /* only the faces turned to the eye */+ int d = f >> 1, pos = f & 1;+ int e = d == 0 ? eye_by - y : d == 1 ? eye_bz - z : eye_bx - x;+ if (pos ? e <= 0 : e >= 0) continue;+ int nx = x + FACE_D[f][0], ny = y + FACE_D[f][1], nz = z + FACE_D[f][2];+ int nb = world_get(nx, ny, nz);+ if (blk_flags[nb] & BF_OPAQUE) continue;+ if (nb == b) continue;+ if ((blk_flags[b] & BF_LIQUID) && (blk_flags[nb] & BF_LIQUID)) continue;+ int tex = blk_tex[b][f];+ if (blk_tint[b] >> f & 1) tex += tint_of_biome[wbiome[ci]];+ if ((b == B_FURNACE || b == B_FURNACE_LIT || b == B_CHEST) && f >= 2) {+ int fr = tile_front(x, y, z);+ tex = f == fr ? blk_tex[b][3] : blk_tex[b][2];+ } else if (b == B_CRAFTING_TABLE && f >= 2)+ tex = f == 3 || f == 4 ? blk_tex[b][3] : blk_tex[b][2];+ if (mined) {+ crack_make(tex);+ s_tex = crack_tex;+ } else s_tex = tex_px[tex];+ s_cm = face_cm(world_light(nx, ny, nz), f);+ int32_t q[4][3];+ for (int i = 0; i < 4; i++) memcpy(q[i], corner[FACE_C[f][i]], sizeof q[i]);+ face4(q, split);+ }+ s_alpha = false;+}++/* is the square of radius r (1/16 px) around (sx, sy) all drawn? */+static bool covered(int32_t sx, int32_t sy, int32_t r) {+ int x0 = (int)((sx - r) >> 4), x1 = (int)((sx + r) >> 4), y0 = (int)((sy - r) >> 4), y1 = (int)((sy + r) >> 4);+ if (x0 < 0) x0 = 0;+ if (y0 < 0) y0 = 0;+ if (x1 >= RW) x1 = RW - 1;+ if (y1 >= RH) y1 = RH - 1;+ if (x0 > x1 || y0 > y1) return true; /* off screen */+ int b0 = x0 >> 3, b1 = x1 >> 3;+ uint8_t m0 = (uint8_t)(0xFF << (x0 & 7)), m1 = (uint8_t)(0xFF >> (7 - (x1 & 7)));+ for (int y = y0; y <= y1; y++) {+ const uint8_t *c = cov[y];+ if (b0 == b1) {+ if ((c[b0] & (m0 & m1)) != (m0 & m1)) return false;+ continue;+ }+ if ((c[b0] & m0) != m0 || (c[b1] & m1) != m1) return false;+ for (int b = b0 + 1; b < b1; b++)+ if (c[b] != 0xFF) return false;+ }+ return true;+}++/* a column's cells, outward from the eye's level */+static void column(int x, int z) {+ if ((unsigned)(x - win_x) >= WS || (unsigned)(z - win_z) >= WS) return;+ uint32_t mask = wexp[CI(x, z)];+ if (!mask) return;+ int i = x - eye_bx, k = z - eye_bz;+ /* the column's low corner at the eye's level */+ int32_t X0 = bx0 + (int32_t)i * rxx + (int32_t)k * rxz;+ int32_t Y0 = by0 + (int32_t)i * uxx + (int32_t)k * uxz;+ int32_t Z0 = bz0 + (int32_t)i * fxx + (int32_t)k * fxz;+ int ylo = win_y, yhi = win_y + WH - 1;+ for (int pass = 0; pass < 2; pass++) {+ int y = pass ? eye_by - 1 : eye_by, dy = pass ? -1 : 1;+ if (y < ylo) y = ylo;+ if (y > yhi) y = yhi;+ for (; pass ? y >= ylo : y <= yhi; y += dy) {+ if (!(mask >> (y & 31) & 1)) continue;+ int j = y - eye_by;+ int32_t X = X0, Y = Y0 + (int32_t)j * uxy, Z = Z0 + (int32_t)j * fxy;+ /* its middle, its distance, the view's sides */+ int32_t cx = X + (rxx + rxz) / 2, cy = Y + (uxx + uxy + uxz) / 2, cz = Z + (fxx + fxy + fxz) / 2;+ const int32_t R = Q1 * 87 / 100;+ if (cz < -R) continue;+ int32_t ax = cx < 0 ? -cx : cx, ay = cy < 0 ? -cy : cy;+ /* (|x| <= z * tan(43 degrees) + r / cos: 0.933 and 1.37; |y| <= z * 0.7 + r * 1.22) */+ if (ax > cz * 15 / 16 + R * 137 / 100 || ay > cz * 7 / 10 + R * 122 / 100) continue;+ int32_t d2 = ((cx >> 7) * (cx >> 7) + (cy >> 7) * (cy >> 7) + (cz >> 7) * (cz >> 7));+ int32_t vd = (int32_t)(view_dist * 128 + 111);+ if (d2 > vd * vd) continue;+ /* passed by when what is in front of it covers its square already */+ if (cz > R) {+ int32_t inv = (F16 << 18) / cz;+ int32_t sx = RW * 8 + (int32_t)(((int64_t)cx * inv) >> 18), sy = RH * 8 - (int32_t)(((int64_t)cy * inv) >> 18);+ int32_t r = (int32_t)(((int64_t)R * inv) >> 18) + 16;+ if (covered(sx, sy, r)) continue;+ }+ cell(x, y, z, wblk[WI(x, y, z)], X, Y, Z, (int)d2);+ if (px_left <= 0) return;+ }+ }+}++/* ---------------------------------------------------------------- the sky */+static void sky(void) {+ /* each row: its height in the sky (the ray through its middle, at the screen's middle column) */+ for (int y = 0; y < RH; y++) {+ uint8_t *c = cov[y];+ bool any = false;+ for (int b = 0; b < RW / 8; b++)+ if (c[b] != 0xFF) any = true;+ if (!any) continue;+ /* the ray: forward + (60 - y - 0.5) / F * up; its world height part */+ int32_t t = (int32_t)(RH / 2 * 16 - y * 16 - 8) * Q1 / F16; /* Q14 */+ int32_t ry = fxy + (t * uxy >> Q);+ int32_t len = Q1; /* (approximately: elevation from ry) */+ int e = (int)(ry * 15 * 5 / 2 / len); /* 0 at the horizon, 15 at 0.4 up */+ uint8_t col = (uint8_t)(e <= 0 ? 1 : e >= 14 ? 15 : e + 1);+ uint8_t *d = rbuf + y * RW;+ for (int b = 0; b < RW / 8; b++) {+ uint8_t m = c[b];+ if (m == 0xFF) continue;+ for (int k = 0; k < 8; k++)+ if (!(m >> k & 1)) d[b * 8 + k] = col;+ }+ }+}++/* ---------------------------------------------------------------- a frame */+static void frame_from(fx ex, fx ey, fx ez, uint16_t yaw, int16_t pitch) {+ camera(ex, ey, ez, yaw, pitch);+ memset(cov, 0, sizeof cov);+ px_left = RW * RH;+ stat_faces = stat_spans = stat_px = stat_cells = 0;+ int32_t fd = (int32_t)view_dist * 128;+ fog0_2 = fd * fd * 9 / 16; /* the fog starts at 3/4 of the view */+ fog_step = (fd * fd - fog0_2) / 9 + 1;+ int R = view_dist;+ /* the quadrants: the one looked into first */+ int qx = fxx >= 0 ? 0 : 1, qz = fxz >= 0 ? 0 : 2;+ static const uint8_t order[4] = {0, 1, 2, 3};+ for (int n = 0; n < 4 && px_left > 0; n++) {+ int q = order[n] ^ qx ^ qz;+ int sx = q & 1 ? -1 : 1, sz = q & 2 ? -1 : 1;+ for (int i = 0; i <= R && px_left > 0; i++) {+ int x = sx > 0 ? eye_bx + i : eye_bx - 1 - i;+ for (int k = 0; k <= R && px_left > 0; k++) {+ int z = sz > 0 ? eye_bz + k : eye_bz - 1 - k;+ int dx = sx > 0 ? i : i + 1, dz = sz > 0 ? k : k + 1;+ if ((dx - 1) * (dx - 1) + (dz - 1) * (dz - 1) > R * R) break;+ column(x, z);+ }+ }+ }+ sky();+}++void render_frame(void) {+ fx ey = pl.y + (pl.sneaking ? FX1 * 154 / 100 : FX1 * 162 / 100);+ if (pl.hit_face >= 0) crack_x = pl.hit_x, crack_y = pl.hit_y, crack_z = pl.hit_z;+ crack_stage = pl.break_need > 0 && pl.break_ticks > 0 ? pl.break_ticks * 10 / pl.break_need : -1;+ if (crack_stage > 9) crack_stage = 9;+ frame_from(pl.x, ey, pl.z, pl.yaw, pl.pitch);+}++void render_title(uint16_t yaw) {+ crack_stage = -1;+ frame_from(pl.x, pl.y + FX1 * 162 / 100, pl.z, yaw, 1200);+}++void render_init(void) { fog_q = -1; }diff --git a/games/numblocks/ce/src/save.c b/games/numblocks/ce/src/save.cnew file mode 100644index 00000000..5f90da03--- /dev/null+++ b/games/numblocks/ce/src/save.c@@ -0,0 +1,145 @@+/* Worlds: up to 5, each an appvar NBCEW1..NBCEW5 (archived): a header (magic, version, the world's name, mode,+ * seed, time, the player, the inventory, chests and furnaces), then the edit log. An unknown or broken file is+ * left alone: it never crashes the game. */+#include "nb.h"++int cur_world;+char cur_name[17];+int new_mode;+extern int xp_level, xp_points;+static uint32_t plays;++#define MAGIC 0x3143424Eu /* "NBC1" */+#define VERSION 1+typedef struct {+ uint32_t magic;+ uint8_t version, mode;+ char name[17];+ uint32_t seed, played, time;+ int32_t x, y, z;+ uint16_t yaw;+ int16_t pitch;+ uint8_t health, slot, flying, n_tiles;+ int16_t spawn_x, spawn_z;+ uint8_t spawn_y, xp_level;+ uint16_t xp_points;+ Stack inv[36];+ uint16_t n_edits;+} Header;++static void name_of(int slot, char *n) {+ memcpy(n, "NBCEW", 5);+ n[5] = (char)('0' + slot);+ n[6] = 0;+}++static const Header *header(int slot, unsigned *len) {+ char n[8];+ name_of(slot, n);+ const uint8_t *p = plat_load(n, len);+ if (!p || *len < sizeof(Header)) return 0;+ const Header *h = (const Header *)p;+ if (h->magic != MAGIC || h->version != VERSION) return 0;+ if (*len < sizeof(Header) + h->n_tiles * sizeof(Tile) + (unsigned)h->n_edits * sizeof(Edit)) return 0;+ return h;+}++bool world_info(int slot, WorldInfo *w) {+ unsigned len;+ const Header *h = header(slot, &len);+ if (!h) return false;+ memcpy(w->name, h->name, 17);+ w->name[16] = 0;+ w->mode = h->mode, w->seed = h->seed, w->played = h->played;+ if (h->played > plays) plays = h->played;+ return true;+}++int world_free_slot(void) {+ WorldInfo w;+ for (int s = 1; s <= MAX_WORLDS; s++)+ if (!world_info(s, &w)) return s;+ return 0;+}++void delete_world(int slot) {+ char n[8];+ name_of(slot, n);+ plat_delete(n);+}++bool save_world(void) {+ if (!cur_world) return false;+ Header h;+ memset(&h, 0, sizeof h);+ h.magic = MAGIC, h.version = VERSION, h.mode = pl.mode;+ memcpy(h.name, cur_name, 17);+ h.seed = world_seed, h.played = ++plays, h.time = world_time;+ h.x = pl.x, h.y = pl.y, h.z = pl.z, h.yaw = pl.yaw, h.pitch = pl.pitch;+ h.health = (uint8_t)pl.health, h.slot = (uint8_t)pl.slot, h.flying = pl.flying;+ h.spawn_x = (int16_t)pl.spawn_x, h.spawn_y = (uint8_t)pl.spawn_y, h.spawn_z = (int16_t)pl.spawn_z;+ h.xp_level = (uint8_t)xp_level, h.xp_points = (uint16_t)xp_points;+ memcpy(h.inv, pl.inv, sizeof h.inv);+ h.n_tiles = (uint8_t)n_tiles;+ h.n_edits = (uint16_t)n_edits;+ /* the header and the tiles, then the edits */+ static uint8_t buf[sizeof(Header) + MAX_TILES * sizeof(Tile)];+ memcpy(buf, &h, sizeof h);+ memcpy(buf + sizeof h, tiles, n_tiles * sizeof(Tile));+ char n[8];+ name_of(cur_world, n);+ return plat_save(n, buf, sizeof h + n_tiles * sizeof(Tile), edits, n_edits * sizeof(Edit));+}++void new_world(int slot, const char *name, uint32_t seed, int mode) {+ cur_world = slot;+ memcpy(cur_name, name, 17);+ cur_name[16] = 0;+ n_edits = 0;+ n_tiles = 0;+ world_time = 0;+ xp_level = xp_points = 0;+ memset(&pl, 0, sizeof pl);+ pl.mode = (uint8_t)mode;+ world_new(seed);+ int x, z;+ gen_spawn(&x, &z);+ pl.spawn_x = x, pl.spawn_z = z;+ Column c;+ gen_column(x, z, &c);+ pl.spawn_y = c.h + 1;+ player_spawn();+ world_center(x, pl.spawn_y, z, true);+ pl.spawn_y = world_top(x, z);+ player_spawn();+}++bool load_world(int slot) {+ unsigned len;+ const Header *h = header(slot, &len);+ if (!h) return false;+ Header hh;+ memcpy(&hh, h, sizeof hh);+ cur_world = slot;+ memcpy(cur_name, hh.name, 17);+ memset(&pl, 0, sizeof pl);+ pl.mode = hh.mode;+ world_time = hh.time;+ pl.spawn_x = hh.spawn_x, pl.spawn_y = hh.spawn_y, pl.spawn_z = hh.spawn_z;+ player_spawn();+ pl.x = hh.x, pl.y = hh.y, pl.z = hh.z, pl.yaw = hh.yaw, pl.pitch = hh.pitch;+ pl.health = hh.health ? hh.health : 20;+ pl.slot = hh.slot < 9 ? hh.slot : 0;+ pl.flying = hh.flying && hh.mode;+ xp_level = hh.xp_level, xp_points = hh.xp_points;+ memcpy(pl.inv, hh.inv, sizeof pl.inv);+ n_tiles = hh.n_tiles > MAX_TILES ? MAX_TILES : hh.n_tiles;+ memcpy(tiles, (const uint8_t *)h + sizeof hh, n_tiles * sizeof(Tile));+ n_edits = 0;+ if (!edits_room(hh.n_edits)) return false;+ memcpy(edits, (const uint8_t *)h + sizeof hh + hh.n_tiles * sizeof(Tile), hh.n_edits * sizeof(Edit));+ n_edits = hh.n_edits;+ world_new(hh.seed);+ world_center(FXI(pl.x), FXI(pl.y), FXI(pl.z), true);+ return true;+}diff --git a/games/numblocks/ce/src/world.c b/games/numblocks/ce/src/world.cnew file mode 100644index 00000000..5c164adc--- /dev/null+++ b/games/numblocks/ce/src/world.c@@ -0,0 +1,413 @@+/* The world around the player: a window of 32 x 32 columns and 32 levels that follows them (nb.h), filled from+ * the terrain (gen.c) and the edit log, with Minecraft's light: sky light (15 where the sky is seen straight up,+ * then one less a block, and less through leaves and water) and block light (torches, lava, lit furnaces),+ * spread through what lets light through. */+#include "nb.h"++uint8_t *wblk, *wlight;+uint32_t wexp[WS * WS];+uint8_t wtop[WS * WS], wbiome[WS * WS];+static Column wcol[WS * WS];+int win_x, win_z, win_y;+uint32_t world_seed;+Edit *edits;+unsigned n_edits, max_edits;+/* where the window is going: world_step() moves it there a row (or a level) at a time */+static int want_x, want_z, want_y;++/* ---------------------------------------------------------------- blocks */+int world_get(int x, int y, int z) {+ if (y < 0) return B_BEDROCK;+ if (y >= WORLD_H) return B_AIR;+ if ((unsigned)(x - win_x) >= WS || (unsigned)(z - win_z) >= WS) return B_AIR;+ if (y < win_y) return B_STONE;+ if (y >= win_y + WH) return B_AIR;+ return wblk[WI(x, y, z)];+}++int world_light(int x, int y, int z) {+ if (!in_win(x, y, z)) return y >= win_y + WH ? 15 : 0;+ return wlight[WI(x, y, z)];+}++int world_top(int x, int z) {+ for (int y = win_y + WH - 1; y >= win_y; y--) {+ int b = world_get(x, y, z);+ if (b != B_AIR && !(blk_flags[b] & BF_LIQUID) && blk_model[b] != M_CROSS) return y + 1;+ }+ return win_y;+}++/* ---------------------------------------------------------------- the edit log, sorted by x, z, y */+static int edit_cmp(int x, int z, int y, const Edit *e) {+ if (x != e->x) return x < e->x ? -1 : 1;+ if (z != e->z) return z < e->z ? -1 : 1;+ if (y != e->y) return y < e->y ? -1 : 1;+ return 0;+}+static unsigned edit_find(int x, int y, int z, bool *found) {+ unsigned lo = 0, hi = n_edits;+ while (lo < hi) {+ unsigned mid = (lo + hi) / 2;+ int c = edit_cmp(x, z, y, &edits[mid]);+ if (!c) {+ *found = true;+ return mid;+ }+ if (c < 0) hi = mid;+ else lo = mid + 1;+ }+ *found = false;+ return lo;+}+bool edits_room(unsigned n) {+ if (n_edits + n <= max_edits) return true;+ unsigned want = (n_edits + n + 255) & ~255u;+ Edit *e = plat_grow(edits, want * sizeof(Edit));+ if (!e) return false;+ edits = e, max_edits = want;+ return true;+}+static void edit_log(int x, int y, int z, int b) {+ bool found;+ unsigned i = edit_find(x, y, z, &found);+ /* back to what the terrain had there: no need to keep it (the terrain, not trees: those are kept) */+ if (found) {+ edits[i].b = (uint8_t)b;+ return;+ }+ if (!edits_room(1)) return;+ memmove(&edits[i + 1], &edits[i], (n_edits - i) * sizeof(Edit));+ edits[i] = (Edit){(int16_t)x, (int16_t)z, (uint8_t)y, (uint8_t)b};+ n_edits++;+}++/* ---------------------------------------------------------------- light */+/* the window's edges: a step from a cell on one leaves the window */+static inline int wx_of(int slot) { return win_x + ((slot - win_x) & 31); }+static inline int wz_of(int slot) { return win_z + ((slot - win_z) & 31); }+static inline int wy_of(int slot) { return win_y + ((slot - win_y) & 31); }++/* the queues: in the 3D view's picture (light is never spread while it is drawn) */+static uint16_t *lq; /* cells to spread light from */+static unsigned lq_h, lq_t;+#define LQ_N 5000+static uint16_t *dq; /* cells to darken, and the light they had */+static uint8_t *dql;+static unsigned dq_n;+#define DQ_N 3000++static void lq_push(unsigned i) {+ unsigned t = lq_t + 1 == LQ_N ? 0 : lq_t + 1;+ if (t == lq_h) return; /* full: (never, at the window's size; it would only leave some light out) */+ lq[lq_t] = (uint16_t)i;+ lq_t = t;+}++/* the six neighbours of cell i inside the window: their indices, -1 outside */+static int nbr[6];+static void neighbours(unsigned i) {+ int x = i & 31, z = (i >> 5) & 31, y = i >> 10;+ int ex = (win_x + 31) & 31, sx = win_x & 31, ez = (win_z + 31) & 31, sz = win_z & 31, ey = (win_y + 31) & 31,+ sy = win_y & 31;+ nbr[0] = y == sy ? -1 : (int)((i & 0x3FF) | ((unsigned)((y - 1) & 31) << 10));+ nbr[1] = y == ey ? -1 : (int)((i & 0x3FF) | ((unsigned)((y + 1) & 31) << 10));+ nbr[2] = z == sz ? -1 : (int)((i & ~0x3E0u) | ((unsigned)((z - 1) & 31) << 5));+ nbr[3] = z == ez ? -1 : (int)((i & ~0x3E0u) | ((unsigned)((z + 1) & 31) << 5));+ nbr[4] = x == sx ? -1 : (int)((i & ~31u) | ((unsigned)(x - 1) & 31));+ nbr[5] = x == ex ? -1 : (int)((i & ~31u) | ((unsigned)(x + 1) & 31));+}++/* spreads both lights from the queued cells */+static void light_spread(void) {+ while (lq_h != lq_t) {+ unsigned i = lq[lq_h];+ lq_h = lq_h + 1 == LQ_N ? 0 : lq_h + 1;+ int l = wlight[i], s = l & 15, b = l >> 4;+ if (s <= 1 && b <= 1) continue;+ neighbours(i);+ for (int k = 0; k < 6; k++) {+ int n = nbr[k];+ if (n < 0) continue;+ int op = blk_opacity[wblk[n]];+ if (op >= 15) continue;+ if (!op) op = 1;+ int nl = wlight[n], ns = nl & 15, nb = nl >> 4, ch = 0;+ if (s - op > ns) ns = s - op, ch = 1;+ if (b - op > nb) nb = b - op, ch = 1;+ if (ch) {+ wlight[n] = (uint8_t)(ns | nb << 4);+ lq_push((unsigned)n);+ }+ }+ }+}++/* takes away the light that came through cell i (of channel shift sh: 0 sky, 4 block), from level lv; the cells+ * at its edge that keep their own light are queued to spread it back */+static void light_darken(void) {+ unsigned h = 0;+ while (h < dq_n) {+ unsigned i = dq[h];+ int lv = dql[h], sh = lv >> 4 ? 4 : 0;+ lv &= 15;+ h++;+ neighbours(i);+ for (int k = 0; k < 6; k++) {+ int n = nbr[k];+ if (n < 0) continue;+ int nl = (wlight[n] >> sh) & 15;+ if (!nl) continue;+ if (nl < lv && !(sh && blk_light[wblk[n]] >= nl) && !(!sh && wtop[n & 0x3FF] <= wy_of(n >> 10))) {+ wlight[n] &= (uint8_t)~(15 << sh);+ if (dq_n < DQ_N) dq[dq_n] = (uint16_t)n, dql[dq_n] = (uint8_t)(nl | (sh ? 16 : 0)), dq_n++;+ } else lq_push((unsigned)n);+ }+ }+ dq_n = 0;+}+static void dark_push(unsigned i, int sh) {+ int lv = (wlight[i] >> sh) & 15;+ if (!lv) return;+ wlight[i] &= (uint8_t)~(15 << sh);+ if (dq_n < DQ_N) dq[dq_n] = (uint16_t)i, dql[dq_n] = (uint8_t)(lv | (sh ? 16 : 0)), dq_n++;+}++/* the sky's straight-down light of a column: wtop is the first level under everything that stops it */+static int column_top(int x, int z) {+ int c = CI(x, z);+ if (wcol[c].h >= win_y + WH) return win_y + WH;+ for (int y = win_y + WH - 1; y >= win_y; y--)+ if (blk_opacity[wblk[WI(x, y, z)]]) return y + 1;+ return win_y;+}++/* ---------------------------------------------------------------- faces to draw */+static inline bool hides(int b, int nb) {+ if (blk_flags[nb] & BF_OPAQUE) return true;+ if (nb == b && blk_model[b] != M_CROSS && blk_model[b] != M_TORCH) return true;+ if ((blk_flags[b] & BF_LIQUID) && (blk_flags[nb] & BF_LIQUID)) return true;+ return false;+}+static bool exposed(int x, int y, int z) {+ int b = wblk[WI(x, y, z)];+ if (b == B_AIR) return false;+ int m = blk_model[b];+ if (m == M_CROSS || m == M_TORCH) return true;+ /* (past the window: below it, as if solid; above, air) */+ if (y + 1 >= win_y + WH ? true : !hides(b, wblk[WI(x, y + 1, z)])) return true;+ if (y > win_y && !hides(b, wblk[WI(x, y - 1, z)])) return true;+ if (z > win_z && !hides(b, wblk[WI(x, y, z - 1)])) return true;+ if (z < win_z + WS - 1 && !hides(b, wblk[WI(x, y, z + 1)])) return true;+ if (x > win_x && !hides(b, wblk[WI(x - 1, y, z)])) return true;+ if (x < win_x + WS - 1 && !hides(b, wblk[WI(x + 1, y, z)])) return true;+ return false;+}+static void expose(int x, int y, int z) {+ if (!in_win(x, y, z)) return;+ uint32_t bit = (uint32_t)1 << (y & 31);+ if (exposed(x, y, z)) wexp[CI(x, z)] |= bit;+ else wexp[CI(x, z)] &= ~bit;+}++/* ---------------------------------------------------------------- filling the window */+static void put_cb(int x, int y, int z, int b) {+ if (!in_win(x, y, z)) return;+ unsigned i = WI(x, y, z);+ if ((b & 0x100) && wblk[i] != B_AIR) return;+ wblk[i] = (uint8_t)b;+}++/* makes the columns [x0, x1) x [z0, z1) at levels [y0, y1) (cols: their column data too), then their light and+ * faces */+static void fill(int x0, int z0, int x1, int z1, int y0, int y1, bool cols) {+ for (int z = z0; z < z1; z++)+ for (int x = x0; x < x1; x++) {+ int c = CI(x, z);+ Column *col = &wcol[c];+ if (cols) {+ gen_column(x, z, col);+ wbiome[c] = col->biome;+ }+ for (int y = y0; y < y1; y++) wblk[WI(x, y, z)] = (uint8_t)gen_cell(x, y, z, col);+ int py = col->h + 1;+ if (py >= y0 && py < y1 && wblk[WI(x, py, z)] == B_AIR && wblk[WI(x, py - 1, z)] == col->top) {+ int p = gen_plant(x, z, col);+ if (p) wblk[WI(x, py, z)] = (uint8_t)p;+ }+ }+ gen_decorate(x0, z0, x1, z1, y0, y1, put_cb);+ for (unsigned k = 0; k < n_edits; k++) {+ const Edit *e = &edits[k];+ if (e->x >= x0 && e->x < x1 && e->z >= z0 && e->z < z1 && e->y >= y0 && e->y < y1)+ wblk[WI(e->x, e->y, e->z)] = e->b;+ }+ /* the sky's light straight down, the block light of what shines; (a new top level) where the sky now stops+ * higher, the column below loses its straight-down light */+ dq_n = 0;+ for (int z = z0; z < z1; z++)+ for (int x = x0; x < x1; x++) {+ int c = CI(x, z), top = column_top(x, z);+ if (!cols && top > wtop[c])+ for (int y = wtop[c]; y < top && y < y0; y++)+ if (y >= win_y) dark_push(WI(x, y, z), 0);+ wtop[c] = (uint8_t)top;+ for (int y = y0; y < y1; y++) {+ unsigned i = WI(x, y, z);+ int bl = blk_light[wblk[i]];+ wlight[i] = (uint8_t)((y >= top ? 15 : 0) | bl << 4);+ if (bl) lq_push(i);+ }+ }+ if (dq_n) light_darken();+ /* spreading it: from the lit cells next to darker ones (the region's and the cells around it) */+ for (int z = z0 - 1; z <= z1; z++)+ for (int x = x0 - 1; x <= x1; x++) {+ if ((unsigned)(x - win_x) >= WS || (unsigned)(z - win_z) >= WS) continue;+ int c = CI(x, z), top = wtop[c];+ bool inside = x >= x0 && x < x1 && z >= z0 && z < z1;+ int ya = inside ? y0 - 1 : y0, yb = inside ? y1 + 1 : y1;+ if (ya < win_y) ya = win_y;+ if (yb > win_y + WH) yb = win_y + WH;+ for (int y = ya; y < yb; y++) {+ unsigned i = WI(x, y, z);+ if (!(wlight[i] & 15) && !(wlight[i] >> 4)) continue;+ /* a sky-lit cell matters only next to a column whose sky stops higher, or above leaves or water */+ if (inside && (wlight[i] & 15) == 15 && !(wlight[i] >> 4)) {+ bool edge = y == top && y > win_y && blk_opacity[wblk[WI(x, y - 1, z)]] < 15;+ if (!edge) {+ int n;+ edge = (x > win_x && (n = wtop[CI(x - 1, z)]) > y) || (x < win_x + WS - 1 && (n = wtop[CI(x + 1, z)]) > y) ||+ (z > win_z && (n = wtop[CI(x, z - 1)]) > y) || (z < win_z + WS - 1 && (n = wtop[CI(x, z + 1)]) > y);+ }+ if (!edge) continue;+ }+ lq_push(i);+ }+ if (x == x1) light_spread();+ }+ light_spread();+ for (int z = z0 - 1; z <= z1; z++)+ for (int x = x0 - 1; x <= x1; x++) {+ if ((unsigned)(x - win_x) >= WS || (unsigned)(z - win_z) >= WS) continue;+ for (int y = y0 - 1; y <= y1; y++) expose(x, y, z);+ }+}++/* ---------------------------------------------------------------- changes */+void world_set(int x, int y, int z, int b) {+ if (!in_win(x, y, z)) return;+ unsigned i = WI(x, y, z);+ int old = wblk[i];+ if (old == b) return;+ edit_log(x, y, z, b);+ wblk[i] = (uint8_t)b;+ /* light: take away what came through or from here, then spread it again */+ int c = CI(x, z), top = wtop[c], ntop = top;+ if (blk_opacity[b] && y >= top) ntop = y + 1;+ else if (!blk_opacity[b] && y == top - 1) ntop = column_top(x, z);+ wtop[c] = (uint8_t)ntop;+ dq_n = 0;+ lq_h = lq_t = 0;+ dark_push(i, 0);+ dark_push(i, 4);+ if (ntop > top) /* the sky is stopped higher: the column below loses its straight-down light */+ for (int k = ntop - 1; k >= top && k >= win_y; k--) dark_push(WI(x, k, z), 0);+ light_darken();+ if (ntop < top)+ for (int k = ntop; k < top; k++) {+ unsigned j = WI(x, k, z);+ wlight[j] |= 15;+ lq_push(j);+ }+ if (blk_light[b]) {+ wlight[i] = (uint8_t)((wlight[i] & 15) | blk_light[b] << 4);+ lq_push(i);+ }+ if (y >= ntop) wlight[i] |= 15;+ /* the neighbours bring their light back in */+ neighbours(i);+ for (int k = 0; k < 6; k++)+ if (nbr[k] >= 0 && wlight[nbr[k]]) lq_push((unsigned)nbr[k]);+ light_spread();+ expose(x, y, z);+ expose(x, y - 1, z);+ expose(x, y + 1, z);+ expose(x - 1, y, z);+ expose(x + 1, y, z);+ expose(x, y, z - 1);+ expose(x, y, z + 1);+}++/* ---------------------------------------------------------------- the window */+static void queues(void) {+ lq = (uint16_t *)rbuf;+ dq = (uint16_t *)(rbuf + LQ_N * 2);+ dql = rbuf + LQ_N * 2 + DQ_N * 2;+}++void world_new(uint32_t seed) {+ world_seed = seed;+ gen_seed(seed);+ queues();+}++static void fill_all(void) {+ memset(wexp, 0, sizeof wexp);+ lq_h = lq_t = 0;+ fill(win_x, win_z, win_x + WS, win_z + WS, win_y, win_y + WH, true);+}++static int clampy(int y) {+ y -= WH / 2;+ return y < 0 ? 0 : y > WORLD_H - WH ? WORLD_H - WH : y;+}++void world_center(int x, int y, int z, bool all) {+ want_x = x - WS / 2, want_z = z - WS / 2, want_y = clampy(y);+ if (all) {+ win_x = want_x, win_z = want_z, win_y = want_y;+ fill_all();+ }+}++bool world_busy(void) {+ /* (a row of slack each way: the window moves when the player is 2 blocks off its middle) */+ return want_x - win_x > 1 || win_x - want_x > 1 || want_z - win_z > 1 || win_z - want_z > 1 ||+ want_y - win_y > 2 || win_y - want_y > 2;+}++/* one row (or level) of the window made: the side the player went towards */+void world_step(void) {+ lq_h = lq_t = 0;+ if (want_x - win_x > 1) {+ win_x++;+ fill(win_x + WS - 1, win_z, win_x + WS, win_z + WS, win_y, win_y + WH, true);+ } else if (win_x - want_x > 1) {+ win_x--;+ fill(win_x, win_z, win_x + 1, win_z + WS, win_y, win_y + WH, true);+ } else if (want_z - win_z > 1) {+ win_z++;+ fill(win_x, win_z + WS - 1, win_x + WS, win_z + WS, win_y, win_y + WH, true);+ } else if (win_z - want_z > 1) {+ win_z--;+ fill(win_x, win_z, win_x + WS, win_z + 1, win_y, win_y + WH, true);+ } else if (want_y - win_y > 2) {+ /* up a level: the new top level, then the sky stops where it may now stop higher */+ win_y++;+ int y = win_y + WH - 1;+ for (int z = win_z; z < win_z + WS; z++)+ for (int x = win_x; x < win_x + WS; x++) wexp[CI(x, z)] &= ~((uint32_t)1 << (y & 31));+ fill(win_x, win_z, win_x + WS, win_z + WS, y, y + 1, false);+ for (int z = win_z; z < win_z + WS; z++)+ for (int x = win_x; x < win_x + WS; x++) expose(x, y - 1, z);+ } else if (win_y - want_y > 2) {+ win_y--;+ int y = win_y;+ for (int z = win_z; z < win_z + WS; z++)+ for (int x = win_x; x < win_x + WS; x++) wexp[CI(x, z)] &= ~((uint32_t)1 << (y & 31));+ fill(win_x, win_z, win_x + WS, win_z + WS, y, y + 1, false);+ for (int z = win_z; z < win_z + WS; z++)+ for (int x = win_x; x < win_x + WS; x++) expose(x, y + 1, z);+ }+}diff --git a/games/numblocks/ce/tools/pack.py b/games/numblocks/ce/tools/pack.pynew file mode 100644index 00000000..f3c052dc--- /dev/null+++ b/games/numblocks/ce/tools/pack.py@@ -0,0 +1,737 @@+#!/usr/bin/env python3+"""Packs Minecraft 1.8.8's pictures for NumBlocks on the TI-84 Plus CE into src/data.c, src/data.h and src/gfx.c.++ python3 tools/pack.py CLIENT_JAR++CLIENT_JAR is the official 1.8.8 client (client.jar); only its pictures are read. The CE draws with 256 colours:+one palette for everything (the textures, the screens, the icons), chosen here, 1 to 15 left to the sky. Each+texture is 16 x 16, a byte a texel (0: see-through). The 3D view shades a texel through a row of shade_cm (32+levels of light, from full down to 0.027, 0.89 apart) and the fog through rows made at run time with cube (the+nearest colour of 16 x 16 x 16 points, closer together in the dark)."""+import io+import os+import sys++import numpy as np+from PIL import Image++HERE = os.path.dirname(os.path.abspath(__file__))+CE = os.path.dirname(HERE)+NB_TOOLS = os.path.join(CE, '..', 'tools')+sys.path.insert(0, NB_TOOLS)+import pack as nbpack # noqa: E402 NumBlocks' own packer: the jar, textures, icons, font++N_SHADE = 32+SHADE_STEP = 0.89+FIRST_STATIC = 16 # palette 0: black (see-through in sprites), 1-15: the sky's, set at run time++# ---------------------------------------------------------------------------------------------- blocks+# name, textures (one, or top/side/bottom/front), model, options+# models: none, cube, cross (plants), liquid, leaves (a cube, its holes black: Fast graphics), glass (see-through+# texels), torch (a cross of the torch's texture)+# opts: hard (hardness), tool, level (pickaxe level to get a drop), light, drop (item name, None: itself, '': nothing),+# tint ('grass', 'foliage', 'spruce', 'birch': the biome's colour on the tinted faces), solid (default: cube-like)+BLOCKS = []+++def blk(name, tex=None, model='cube', **o):+ BLOCKS.append(dict(name=name, tex=tex, model=model, **o))+++def tsb(top, side, bottom=None, front=None):+ d = {'top': top, 'side': side, 'bottom': bottom or top}+ if front:+ d['front'] = front+ return d+++blk('AIR', model='none', hard=0)+blk('STONE', 'stone', hard=1.5, tool='pickaxe', drop='COBBLESTONE')+blk('GRASS', tsb('grass_top', '@grass_side', 'dirt'), tint='grass', hard=0.6, tool='shovel', drop='DIRT')+blk('DIRT', 'dirt', hard=0.5, tool='shovel')+blk('COBBLESTONE', 'cobblestone', hard=2.0, tool='pickaxe')+blk('PLANKS_OAK', 'planks_oak', hard=2.0, tool='axe')+blk('PLANKS_SPRUCE', 'planks_spruce', hard=2.0, tool='axe')+blk('PLANKS_BIRCH', 'planks_birch', hard=2.0, tool='axe')+blk('SAPLING_OAK', 'sapling_oak', 'cross', hard=0)+blk('SAPLING_SPRUCE', 'sapling_spruce', 'cross', hard=0)+blk('SAPLING_BIRCH', 'sapling_birch', 'cross', hard=0)+blk('BEDROCK', 'bedrock', hard=-1)+blk('WATER', 'water_still', 'liquid', hard=-1)+blk('LAVA', 'lava_still', 'liquid', hard=-1, light=15)+blk('SAND', 'sand', hard=0.5, tool='shovel')+blk('GRAVEL', 'gravel', hard=0.6, tool='shovel')+blk('GOLD_ORE', 'gold_ore', hard=3.0, tool='pickaxe', level=2)+blk('IRON_ORE', 'iron_ore', hard=3.0, tool='pickaxe', level=1)+blk('COAL_ORE', 'coal_ore', hard=3.0, tool='pickaxe', drop='COAL')+blk('LOG_OAK', tsb('log_oak_top', 'log_oak'), hard=2.0, tool='axe')+blk('LOG_SPRUCE', tsb('log_spruce_top', 'log_spruce'), hard=2.0, tool='axe')+blk('LOG_BIRCH', tsb('log_birch_top', 'log_birch'), hard=2.0, tool='axe')+blk('LEAVES_OAK', 'leaves_oak', 'leaves', tint='foliage', hard=0.2, drop='')+blk('LEAVES_SPRUCE', 'leaves_spruce', 'leaves', tint='spruce', hard=0.2, drop='')+blk('LEAVES_BIRCH', 'leaves_birch', 'leaves', tint='birch', hard=0.2, drop='')+blk('GLASS', 'glass', 'glass', hard=0.3, drop='')+blk('LAPIS_ORE', 'lapis_ore', hard=3.0, tool='pickaxe', level=1, drop='LAPIS')+blk('LAPIS_BLOCK', 'lapis_block', hard=3.0, tool='pickaxe', level=1)+blk('SANDSTONE', tsb('sandstone_top', 'sandstone_normal', 'sandstone_bottom'), hard=0.8, tool='pickaxe')+blk('TALL_GRASS', 'tallgrass', 'cross', tint='grass', hard=0, drop='')+blk('DEAD_BUSH', 'deadbush', 'cross', hard=0, drop='STICK')+blk('WOOL', 'wool_colored_white', hard=0.8)+blk('DANDELION', 'flower_dandelion', 'cross', hard=0)+blk('POPPY', 'flower_rose', 'cross', hard=0)+blk('GOLD_BLOCK', 'gold_block', hard=3.0, tool='pickaxe', level=2)+blk('IRON_BLOCK', 'iron_block', hard=5.0, tool='pickaxe', level=1)+blk('BRICKS', 'brick', hard=2.0, tool='pickaxe')+blk('BOOKSHELF', tsb('planks_oak', 'bookshelf'), hard=1.5, tool='axe')+blk('MOSSY_COBBLESTONE', 'cobblestone_mossy', hard=2.0, tool='pickaxe')+blk('OBSIDIAN', 'obsidian', hard=50.0, tool='pickaxe', level=3)+blk('TORCH', 'torch_on', 'torch', hard=0, light=14)+blk('CHEST', {'top': '@chest_top', 'side': '@chest_side', 'front': '@chest_front', 'bottom': '@chest_top'},+ hard=2.5, tool='axe')+blk('DIAMOND_ORE', 'diamond_ore', hard=3.0, tool='pickaxe', level=2, drop='DIAMOND')+blk('DIAMOND_BLOCK', 'diamond_block', hard=5.0, tool='pickaxe', level=2)+blk('CRAFTING_TABLE', {'top': 'crafting_table_top', 'side': 'crafting_table_side', 'front': 'crafting_table_front',+ 'bottom': 'planks_oak'}, hard=2.5, tool='axe')+blk('FURNACE', {'top': 'furnace_top', 'side': 'furnace_side', 'front': 'furnace_front_off',+ 'bottom': 'furnace_top'}, hard=3.5, tool='pickaxe')+blk('FURNACE_LIT', {'top': 'furnace_top', 'side': 'furnace_side', 'front': 'furnace_front_on',+ 'bottom': 'furnace_top'}, hard=3.5, tool='pickaxe', light=13, drop='FURNACE')+blk('REDSTONE_ORE', 'redstone_ore', hard=3.0, tool='pickaxe', level=2, drop='REDSTONE')+blk('CACTUS', tsb('cactus_top', 'cactus_side', 'cactus_bottom'), hard=0.4)+blk('SUGAR_CANE', 'reeds', 'cross', tint='grass', hard=0, drop='REEDS')+blk('STONE_BRICKS', 'stonebrick', hard=1.5, tool='pickaxe')+blk('COAL_BLOCK', 'coal_block', hard=5.0, tool='pickaxe')+blk('CLAY', 'clay', hard=0.6, tool='shovel', drop='CLAY_BALL')+blk('SNOW', 'snow', hard=0.2, tool='shovel')+blk('ICE', 'ice', 'glass', hard=0.5, drop='')+blk('GRASS_SNOWED', tsb('snow', 'grass_side_snowed', 'dirt'), hard=0.6, tool='shovel', drop='DIRT')++BNAMES = [b['name'] for b in BLOCKS]++# ---------------------------------------------------------------------------------------------- items+# an item id is a block (0 .. B_N - 1) or 128 + an item below. kind: none, pickaxe, axe, shovel, sword+ITEMS = []+TOOL_MAT = {'WOODEN': ('wood', 0, 59, 2, 0), 'STONE': ('stone', 1, 131, 4, 1), 'IRON': ('iron', 2, 250, 6, 2),+ 'GOLDEN': ('gold', 0, 32, 12, 0), 'DIAMOND': ('diamond', 3, 1561, 8, 3)}+TOOL_DAMAGE = {'sword': 4, 'axe': 3, 'pickaxe': 2, 'shovel': 1}+++def item(name, label, tex, kind='none', stack=64, dur=0, tier=0, dmg=1, fuel=0, speed=1):+ ITEMS.append(dict(name=name, label=label, tex=tex, kind=kind, stack=stack, dur=dur, tier=tier, dmg=dmg, fuel=fuel,+ speed=speed))+++item('STICK', 'Stick', 'stick', fuel=100)+item('COAL', 'Coal', 'coal', fuel=1600)+item('CHARCOAL', 'Charcoal', 'charcoal', fuel=1600)+item('IRON_INGOT', 'Iron Ingot', 'iron_ingot')+item('GOLD_INGOT', 'Gold Ingot', 'gold_ingot')+item('DIAMOND', 'Diamond', 'diamond')+item('REDSTONE', 'Redstone', 'redstone_dust')+item('LAPIS', 'Lapis Lazuli', 'dye_powder_blue')+item('FLINT', 'Flint', 'flint')+item('CLAY_BALL', 'Clay', 'clay_ball')+item('BRICK', 'Brick', 'brick')+item('REEDS', 'Sugar Canes', 'reeds')+item('APPLE', 'Apple', 'apple')+for m, (tex, lvl, uses, eff, bonus) in TOOL_MAT.items():+ lab = {'WOODEN': 'Wooden', 'GOLDEN': 'Golden'}.get(m, m.capitalize())+ for kind in ['sword', 'shovel', 'pickaxe', 'axe']:+ item(f'{m}_{kind.upper()}', f'{lab} {kind.capitalize()}', f'{tex}_{kind}', kind, stack=1, dur=uses, tier=lvl,+ dmg=1 + TOOL_DAMAGE[kind] + bonus, fuel=200 if m == 'WOODEN' else 0, speed=eff)+INAMES = [x['name'] for x in ITEMS]+IT0 = 128+++def iid(n):+ """an item id from a block or item name"""+ if n in BNAMES:+ return BNAMES.index(n)+ return IT0 + INAMES.index(n)+++# ---------------------------------------------------------------------------------------------- recipes+# (output, count, rows, keys); 'G_PLANKS' and 'G_LOG' match any kind+RECIPES = []+++def shaped(out, n, rows, keys):+ RECIPES.append((out, n, rows, keys))+++for m, x in [('WOODEN', 'G_PLANKS'), ('STONE', 'COBBLESTONE'), ('IRON', 'IRON_INGOT'), ('GOLDEN', 'GOLD_INGOT'),+ ('DIAMOND', 'DIAMOND')]:+ shaped(f'{m}_PICKAXE', 1, ['XXX', ' # ', ' # '], {'X': x, '#': 'STICK'})+ shaped(f'{m}_SHOVEL', 1, ['X', '#', '#'], {'X': x, '#': 'STICK'})+ shaped(f'{m}_AXE', 1, ['XX', 'X#', ' #'], {'X': x, '#': 'STICK'})+ shaped(f'{m}_SWORD', 1, ['X', 'X', '#'], {'X': x, '#': 'STICK'})+for b, it in [('GOLD_BLOCK', 'GOLD_INGOT'), ('IRON_BLOCK', 'IRON_INGOT'), ('DIAMOND_BLOCK', 'DIAMOND'),+ ('LAPIS_BLOCK', 'LAPIS'), ('COAL_BLOCK', 'COAL')]:+ shaped(b, 1, ['###', '###', '###'], {'#': it})+ shaped(it, 9, ['#'], {'#': b})+shaped('CHEST', 1, ['###', '# #', '###'], {'#': 'G_PLANKS'})+shaped('FURNACE', 1, ['###', '# #', '###'], {'#': 'COBBLESTONE'})+shaped('CRAFTING_TABLE', 1, ['##', '##'], {'#': 'G_PLANKS'})+shaped('SANDSTONE', 1, ['##', '##'], {'#': 'SAND'})+shaped('STONE_BRICKS', 4, ['##', '##'], {'#': 'STONE'})+shaped('BRICKS', 1, ['##', '##'], {'#': 'BRICK'})+shaped('CLAY', 1, ['##', '##'], {'#': 'CLAY_BALL'})+for n in ['OAK', 'SPRUCE', 'BIRCH']:+ shaped(f'PLANKS_{n}', 4, ['#'], {'#': f'LOG_{n}'})+shaped('STICK', 4, ['#', '#'], {'#': 'G_PLANKS'})+shaped('TORCH', 4, ['X', '#'], {'X': 'COAL', '#': 'STICK'})+shaped('TORCH', 4, ['X', '#'], {'X': 'CHARCOAL', '#': 'STICK'})+SMELT = [('IRON_ORE', 'IRON_INGOT'), ('GOLD_ORE', 'GOLD_INGOT'), ('DIAMOND_ORE', 'DIAMOND'), ('SAND', 'GLASS'),+ ('COBBLESTONE', 'STONE'), ('CLAY_BALL', 'BRICK'), ('COAL_ORE', 'COAL'), ('REDSTONE_ORE', 'REDSTONE'),+ ('LAPIS_ORE', 'LAPIS'), ('LOG_OAK', 'CHARCOAL'), ('LOG_SPRUCE', 'CHARCOAL'), ('LOG_BIRCH', 'CHARCOAL'),+ ('CACTUS', 'CACTUS')]+SMELT = [s for s in SMELT if s[0] != s[1]]+++def fuel_of(i):+ if i >= IT0:+ return ITEMS[i - IT0]['fuel']+ n = BNAMES[i]+ if n == 'COAL_BLOCK':+ return 16000+ if n.startswith('SAPLING_'):+ return 100+ if n.startswith(('PLANKS_', 'LOG_')) or n in ('CRAFTING_TABLE', 'CHEST', 'BOOKSHELF'):+ return 300+ return 0+++# biomes and their grass and foliage colours (ColorizerGrass / ColorizerFoliage at their temperature and rain)+BIOMES = [('OCEAN', 0.5, 0.5), ('PLAINS', 0.8, 0.4), ('DESERT', 2.0, 0.0), ('EXTREME_HILLS', 0.2, 0.3),+ ('FOREST', 0.7, 0.8), ('TAIGA', 0.25, 0.8), ('BEACH', 0.8, 0.4), ('BIRCH_FOREST', 0.6, 0.6),+ ('COLD_TAIGA', -0.5, 0.4)]+# the textures that change with the biome get one copy per tint (TINTS: which biomes share one)+TINT_OF_BIOME = {'OCEAN': 0, 'PLAINS': 0, 'DESERT': 0, 'BEACH': 0, 'FOREST': 1, 'BIRCH_FOREST': 1, 'EXTREME_HILLS': 2,+ 'TAIGA': 2, 'COLD_TAIGA': 3}+N_TINTS = 4+TINT_BIOME = ['PLAINS', 'FOREST', 'EXTREME_HILLS', 'COLD_TAIGA']+FIXED_TINT = {'spruce': (0x61, 0x99, 0x61), 'birch': (0x80, 0xA7, 0x55)}+++def pixels(im):+ return list(im.get_flattened_data() if hasattr(im, 'get_flattened_data') else im.getdata())+++def colormaps(jar):+ grass = jar.image('colormap/grass').convert('RGB')+ foliage = jar.image('colormap/foliage').convert('RGB')++ def look(img, t, r):+ t = min(max(t, 0.0), 1.0)+ r = min(max(r, 0.0), 1.0) * t+ return img.getpixel((int((1 - t) * 255), int((1 - r) * 255)))+ out = []+ for b in TINT_BIOME:+ _, t, r = next(x for x in BIOMES if x[0] == b)+ out.append((look(grass, t, r), look(foliage, t, r)))+ return out+++def tinted(im, k):+ o = Image.new('RGBA', im.size)+ o.putdata([(r * k[0] // 255, g * k[1] // 255, b * k[2] // 255, a) for r, g, b, a in pixels(im)])+ return o+++def tex_image(jar, n):+ return nbpack.tex_image(jar, n)+++def grass_side(jar, k):+ base = tex_image(jar, 'grass_side')+ over = tex_image(jar, 'grass_side_overlay')+ out = []+ for (r, g, b, a), (r2, g2, b2, a2) in zip(pixels(base), pixels(over)):+ if a2 >= 128:+ out.append((r2 * k[0] // 255, g2 * k[1] // 255, b2 * k[2] // 255, 255))+ else:+ out.append((r, g, b, a))+ o = Image.new('RGBA', (16, 16))+ o.putdata(out)+ return o+++def build_textures(jar):+ """every texture the blocks use, in order: (name, image, see-through); tinted ones N_TINTS times in a row.+ Returns the list and, per block, its six faces (-Y +Y -Z +Z -X +X) and which of them follow the biome."""+ tints = colormaps(jar)+ names, images, alpha, index = [], [], [], {}++ def add(key, make):+ if key in index:+ return index[key]+ index[key] = len(names)+ for im in make():+ names.append(key)+ images.append(im)+ alpha.append(any(a < 128 for _, _, _, a in pixels(im)))+ return index[key]++ faces, tintmask = [], []+ for b in BLOCKS:+ t = b['tex']+ if t is None:+ faces.append([0] * 6)+ tintmask.append(0)+ continue+ if isinstance(t, str):+ t = {'top': t, 'side': t, 'bottom': t}+ tint = b.get('tint')+ f6, mask = [], 0+ for k, face in enumerate(['bottom', 'top', 'side', 'side', 'side', 'side']):+ n = t[face]+ if face == 'side' and 'front' in t and k == 3: # the front faces south (+Z) as placed by default+ n = t['front']+ tinted_face = tint and not (b['name'] == 'GRASS' and face == 'bottom')+ if tinted_face and tint in ('grass', 'foliage'):+ if n == '@grass_side':+ i = add(n, lambda: [grass_side(jar, tints[j][0]) for j in range(N_TINTS)])+ else:+ which = 0 if tint == 'grass' else 1+ i = add(n + ':' + tint, lambda n=n, w=which: [tinted(tex_image(jar, n), tints[j][w])+ for j in range(N_TINTS)])+ mask |= 1 << k+ elif tinted_face:+ i = add(n + ':' + tint, lambda n=n: [tinted(tex_image(jar, n), FIXED_TINT[tint])])+ else:+ i = add(n, lambda n=n: [tex_image(jar, n)])+ f6.append(i)+ faces.append(f6)+ tintmask.append(mask)+ # the leaves of Fast graphics: tinted, their holes black+ for key, first in index.items():+ if key.startswith('leaves_'):+ n, tint = key.split(':')+ src = tex_image(jar, n)+ cols = [tints[j][1] for j in range(N_TINTS)] if tint in ('grass', 'foliage') else [FIXED_TINT[tint]]+ for j, k in enumerate(cols):+ px = [(r * k[0] // 255, g * k[1] // 255, b * k[2] // 255, 255) if a >= 128 else (0, 0, 0, 255)+ for r, g, b, a in pixels(src)]+ im = Image.new('RGBA', (16, 16))+ im.putdata(px)+ images[first + j] = im+ alpha[first + j] = False+ # the cracks of a block being mined (destroy_stage_0..9): drawn over its texture+ for s in range(10):+ add(f'destroy_stage_{s}', lambda s=s: [tex_image(jar, f'destroy_stage_{s}')])+ return names, images, alpha, faces, tintmask, index+++# ---------------------------------------------------------------------------------------------- the palette+GUI_FIXED = [(0, 0, 0), (255, 255, 255), (160, 160, 160), (63, 63, 63), (224, 224, 224), (255, 255, 160),+ (255, 255, 0), (63, 63, 0), (139, 139, 139), (55, 55, 55), (198, 198, 198), (85, 85, 85),+ (128, 255, 32), (255, 85, 85), (64, 64, 64), (32, 32, 32), (112, 112, 112), (192, 192, 192)]+++def to_space(c):+ """colours compared in a space closer to the eye's: gamma-ish, weighted"""+ c = np.asarray(c, dtype=np.float64) / 255.0+ c = np.sqrt(c)+ return c * np.array([0.9, 1.25, 0.75])+++def kmeans(samples, weights, fixed, k, iters=24):+ X = to_space(samples)+ F = to_space(np.array(fixed, dtype=np.float64)) if fixed else np.zeros((0, 3))+ rng = np.random.default_rng(1)+ free = k - len(F)+ # start from weighted picks+ p = weights / weights.sum()+ C = X[rng.choice(len(X), free, replace=False, p=p)]+ for _ in range(iters):+ allc = np.vstack([F, C])+ d = ((X[:, None, :] - allc[None, :, :]) ** 2).sum(-1)+ a = d.argmin(1)+ for j in range(free):+ m = a == len(F) + j+ if m.any():+ C[j] = (X[m] * weights[m, None]).sum(0) / weights[m].sum()+ else:+ C[j] = X[rng.choice(len(X), p=p)]+ allc = np.vstack([F, C])+ # back to RGB+ rgb = (allc / np.array([0.9, 1.25, 0.75])).clip(0, 1) ** 2 * 255+ return np.round(rgb).astype(int)+++def nearest(pal, cols):+ """indices into pal (FIRST_STATIC..255) of the nearest colours"""+ P = to_space(pal[FIRST_STATIC:])+ X = to_space(np.asarray(cols, dtype=np.float64))+ out = []+ for i in range(0, len(X), 4096):+ d = ((X[i:i + 4096, None, :] - P[None, :, :]) ** 2).sum(-1)+ out += list(d.argmin(1) + FIRST_STATIC)+ return out+++def shade_level(k):+ return SHADE_STEP ** (N_SHADE - 1 - k)+++CUBE_LEVELS = [round(255 * (i / 15) ** 1.8) for i in range(16)]+++# ---------------------------------------------------------------------------------------------- GUI pictures+# name, file, x, y, w, h+SPRITES = [+ ('hotbar', 'gui/widgets', 0, 0, 182, 22),+ ('hotbar_sel', 'gui/widgets', 0, 22, 24, 24),+ ('button', 'gui/widgets', 0, 66, 200, 20),+ ('button_hover', 'gui/widgets', 0, 86, 200, 20),+ ('button_off', 'gui/widgets', 0, 46, 200, 20),+ ('heart_bg', 'gui/icons', 16, 0, 9, 9),+ ('heart', 'gui/icons', 52, 0, 9, 9),+ ('heart_half', 'gui/icons', 61, 0, 9, 9),+ ('food_bg', 'gui/icons', 16, 27, 9, 9),+ ('food', 'gui/icons', 52, 27, 9, 9),+ ('food_half', 'gui/icons', 61, 27, 9, 9),+ ('bubble', 'gui/icons', 16, 18, 9, 9),+ ('bubble_pop', 'gui/icons', 25, 18, 9, 9),+ ('xp_bg', 'gui/icons', 0, 64, 182, 5),+ ('xp', 'gui/icons', 0, 69, 182, 5),+ ('crosshair', 'gui/icons', 0, 0, 16, 16),+ ('inventory', 'gui/container/inventory', 0, 0, 176, 166),+ ('crafting_table', 'gui/container/crafting_table', 0, 0, 176, 166),+ ('furnace', 'gui/container/furnace', 0, 0, 176, 166),+ ('flame', 'gui/container/furnace', 176, 0, 14, 14),+ ('arrow', 'gui/container/furnace', 176, 14, 24, 17),+ ('creative', 'gui/container/creative_inventory/tab_items', 0, 0, 195, 136),+ ('scroller', 'gui/container/creative_inventory/tabs', 232, 0, 12, 15),+ ('dirt', 'gui/options_background', 0, 0, 16, 16),+ ('sun', 'environment/sun', 0, 0, 32, 32),+] + [(f'moon_{k}', 'environment/moon_phases', (k % 4) * 32, (k // 4) * 32, 32, 32) for k in range(8)]+++def chest_image(jar):+ g54 = jar.image('gui/container/generic_54')+ chest = Image.new('RGBA', (176, 71 + 96))+ chest.paste(g54.crop((0, 0, 176, 71)), (0, 0))+ chest.paste(g54.crop((0, 126, 176, 222)), (0, 71))+ return chest+++def sprite_images(jar):+ out = []+ for n, f, x, y, w, h in SPRITES:+ out.append((n, jar.image(f).crop((x, y, x + w, y + h))))+ out.append(('chest', chest_image(jar)))+ out.append(('steve', nbpack.steve_front(jar)))+ return out+++def icon_images(jar, tex_names, tex_images):+ """16 x 16 icons: every block that can be held (as the inventory draws it), then every item"""+ icons = []+ for b in BLOCKS:+ if b['model'] == 'none' or b['name'] in ('WATER', 'LAVA', 'FURNACE_LIT', 'GRASS_SNOWED'):+ icons.append(None)+ continue+ t = b['tex']+ st = dict(tex=t, tint=b.get('tint'), model={'leaves': 'cube', 'glass': 'cube', 'torch': 'cross'}.get(+ b['model'], b['model']), meta=0)+ if b['name'] == 'GRASS':+ st['tex'] = {'top': 'grass_top', 'side': 'grass_side', 'bottom': 'dirt'}+ icons.append(grass_icon(jar))+ continue+ if b['model'] == 'leaves':+ st['tint'] = {'foliage': 'foliage'}.get(b.get('tint'), b.get('tint'))+ icons.append(nbpack.iso_icon(jar, st, None))+ for it in ITEMS:+ icons.append(nbpack.first_frame(jar.image('items/' + it['tex'])))+ return icons+++def grass_icon(jar):+ # the inventory's grass block: the plains' green on top, the side with its tinted overlay+ k = nbpack.ICON_TINT['grass']+ top = tinted(tex_image(jar, 'grass_top'), k)+ side = grass_side(jar, k)+ st = dict(tex={'top': 'stone', 'side': 'stone', 'bottom': 'stone'}, tint=None, model='cube', meta=0)+ # draw with NumBlocks' iso_icon by swapping the pictures in+ orig = nbpack.tex_image+ pics = {'grass_top!': top, 'grass_side!': side}+ nbpack.tex_image = lambda j, n: pics[n] if n in pics else orig(j, n)+ try:+ st['tex'] = {'top': 'grass_top!', 'side': 'grass_side!', 'bottom': 'grass_side!'}+ return nbpack.iso_icon(jar, st, None)+ finally:+ nbpack.tex_image = orig+++def rle(idx, w, h):+ """8-bit runs, a row at a time: n < 128: n + 1 bytes follow as they are; n >= 128: the next byte n - 126+ times. Returns the bytes and each row's offset."""+ data, rows = [], []+ for y in range(h):+ rows.append(len(data))+ row = idx[y * w:(y + 1) * w]+ x = 0+ lit = []+ while x < w:+ n = 1+ while x + n < w and n < 129 and row[x + n] == row[x]:+ n += 1+ if n >= 3:+ while lit:+ chunk = lit[:128]+ lit = lit[128:]+ data += [len(chunk) - 1] + chunk+ data += [n - 2 + 128, row[x]]+ x += n+ else:+ lit.append(row[x])+ x += 1+ while lit:+ chunk = lit[:128]+ lit = lit[128:]+ data += [len(chunk) - 1] + chunk+ return data, rows+++def carr(name, ctype, vals, per=24):+ s = [f'const {ctype} {name} = {{']+ for i in range(0, len(vals), per):+ s.append(' ' + ','.join(str(v) for v in vals[i:i + per]) + ',')+ s.append('};')+ return s+++def main():+ jar = nbpack.Jar(sys.argv[1] if len(sys.argv) > 1 else+ os.path.expanduser('~/Documents/Assets/gamesrc/numblocks/client.jar'))+ tnames, timages, talpha, faces, tintmask, tindex = build_textures(jar)+ sprites = sprite_images(jar)+ icons = icon_images(jar, tnames, timages)+ font_bits, font_w = nbpack.font_bits(jar)++ # --- the palette: textures at their face shades and darker, a little fog; the screens and icons+ samples, weights = [], []++ def addpx(im, w, shades=(1.0,)):+ for r, g, b, a in pixels(im.convert('RGBA')):+ if a >= 128:+ for s in shades:+ samples.append((r * s, g * s, b * s))+ weights.append(w)+ for i, im in enumerate(timages):+ if tnames[i].startswith('destroy_stage'):+ continue+ addpx(im, 1.0, (1.0, 0.79, 0.62))+ addpx(im, 0.35, (0.49, 0.35, 0.22, 0.12, 0.06))+ fog = (192, 216, 255)+ for r, g, b, a in pixels(im):+ if a >= 128:+ for f in (0.3, 0.6):+ samples.append((r + (fog[0] - r) * f, g + (fog[1] - g) * f, b + (fog[2] - b) * f))+ weights.append(0.25)+ for n, im in sprites:+ addpx(im, 0.6)+ for im in icons:+ if im is not None:+ addpx(im, 0.5)+ S = np.array(samples, dtype=np.float64)+ W = np.array(weights, dtype=np.float64)+ # thin it out: the same colours many times+ key = (np.round(S).astype(int) @ np.array([65536, 256, 1]))+ uniq, inv = np.unique(key, return_inverse=True)+ Wu = np.bincount(inv, weights=W)+ Su = np.stack([uniq >> 16, (uniq >> 8) & 255, uniq & 255], 1).astype(np.float64)+ pal_static = kmeans(Su, Wu, GUI_FIXED, 256 - FIRST_STATIC)+ pal = np.zeros((256, 3), dtype=int)+ pal[FIRST_STATIC:] = pal_static+ # the sky's entries start as a day sky+ for i in range(1, FIRST_STATIC):+ pal[i] = (120, 167, 255)++ def to_idx(im, see_through):+ px = pixels(im.convert('RGBA'))+ cols = [(r, g, b) for r, g, b, a in px]+ idx = nearest(pal, cols)+ return [0 if (see_through and a < 128) else i for i, (r, g, b, a) in zip(idx, px)]++ tex_idx = []+ for i, im in enumerate(timages):+ if tnames[i].startswith('destroy_stage'):+ # cracks: 1 where they darken+ tex_idx.append([1 if a >= 128 else 0 for r, g, b, a in pixels(im)])+ else:+ tex_idx.append(to_idx(im, talpha[i]))++ # shade rows: each colour at 32 levels of light+ shade = []+ for k in range(N_SHADE):+ s = shade_level(k)+ row = nearest(pal, [(r * s, g * s, b * s) for r, g, b in pal])+ row[0] = 0+ for j in range(1, FIRST_STATIC):+ row[j] = j+ shade += row+ cube = nearest(pal, [(CUBE_LEVELS[r], CUBE_LEVELS[g], CUBE_LEVELS[b]) for r in range(16) for g in range(16)+ for b in range(16)])++ # --- data.c: what the 3D view and the game need at hand+ B_N = len(BLOCKS)+ model_ids = ['none', 'cube', 'cross', 'liquid', 'leaves', 'glass', 'torch']+ tools = [None, 'pickaxe', 'axe', 'shovel']+ out = ['/* Made by tools/pack.py from Minecraft 1.8.8\'s pictures: see data.h. */', '#include "data.h"', '']+ out += carr('pal_rgb[256 * 3]', 'uint8_t', [int(v) for c in pal for v in c])+ out += carr('tex_px[NTEX][256]', 'uint8_t', [v for t in tex_idx for v in t], 32)+ out += carr('shade_cm[N_SHADE][256]', 'uint8_t', shade, 32)+ out += carr('pal_cube[4096]', 'uint8_t', cube, 32)+ out += carr('blk_tex[B_N][6]', 'uint8_t', [v for f in faces for v in f])+ out += carr('blk_tint[B_N]', 'uint8_t', tintmask)+ out += carr('blk_model[B_N]', 'uint8_t', [model_ids.index(b['model']) for b in BLOCKS])+ flags = []+ for b in BLOCKS:+ m = b['model']+ f = 0+ if m in ('cube', 'leaves'):+ f |= 1 # BF_OPAQUE: hides the faces next to it+ if m in ('cube', 'leaves', 'glass'):+ f |= 2 # BF_SOLID+ if m in ('cross', 'torch', 'glass'):+ f |= 4 # BF_ALPHA: see-through texels+ if m == 'liquid':+ f |= 8 # BF_LIQUID+ if b['name'] == 'CACTUS':+ f |= 2+ flags.append(f)+ out += carr('blk_flags[B_N]', 'uint8_t', flags)+ out += carr('blk_light[B_N]', 'uint8_t', [b.get('light', 0) for b in BLOCKS])+ opacity = []+ for b in BLOCKS:+ m = b['model']+ opacity.append(15 if m == 'cube' else 1 if m == 'leaves' else 3 if b['name'] == 'WATER' else+ 15 if b['name'] == 'LAVA' else 0)+ out += carr('blk_opacity[B_N]', 'uint8_t', opacity)+ out += carr('blk_hard[B_N]', 'uint8_t', [255 if b.get('hard', 1) < 0 else int(round(b.get('hard', 1) * 4))+ for b in BLOCKS])+ out += carr('blk_tool[B_N]', 'uint8_t', [tools.index(b.get('tool')) | b.get('level', 0) << 4 for b in BLOCKS])+ drops = []+ for b in BLOCKS:+ d = b.get('drop')+ drops.append(255 if d == '' or b['model'] == 'none' else iid(d) if d else BNAMES.index(b['name']))+ out += carr('blk_drop[B_N]', 'uint8_t', drops)+ out += carr('it_fuel[B_N + IT_N]', 'uint16_t', [fuel_of(i) for i in range(B_N)] ++ [fuel_of(IT0 + i) for i in range(len(ITEMS))])+ kinds = ['none', 'pickaxe', 'axe', 'shovel', 'sword']+ out += carr('it_kind[IT_N]', 'uint8_t', [kinds.index(x['kind']) | x['tier'] << 4 for x in ITEMS])+ out += carr('it_dur[IT_N]', 'uint16_t', [x['dur'] for x in ITEMS])+ out += carr('it_speed[IT_N]', 'uint8_t', [x['speed'] for x in ITEMS])+ out += carr('it_dmg[IT_N]', 'uint8_t', [x['dmg'] for x in ITEMS])+ out.append('const char *const it_label[IT_N] = {' + ', '.join(f'"{x["label"]}"' for x in ITEMS) + '};')+ labels = {'PLANKS_OAK': 'Oak Wood Planks', 'PLANKS_SPRUCE': 'Spruce Wood Planks',+ 'PLANKS_BIRCH': 'Birch Wood Planks', 'SAPLING_OAK': 'Oak Sapling', 'SAPLING_SPRUCE': 'Spruce Sapling',+ 'SAPLING_BIRCH': 'Birch Sapling', 'LOG_OAK': 'Oak Wood', 'LOG_SPRUCE': 'Spruce Wood',+ 'LOG_BIRCH': 'Birch Wood', 'LEAVES_OAK': 'Oak Leaves', 'LEAVES_SPRUCE': 'Spruce Leaves',+ 'LEAVES_BIRCH': 'Birch Leaves', 'LAPIS_ORE': 'Lapis Lazuli Ore', 'LAPIS_BLOCK': 'Lapis Lazuli Block',+ 'TALL_GRASS': 'Grass', 'GRASS': 'Grass Block', 'WOOL': 'Wool', 'POPPY': 'Poppy',+ 'GOLD_BLOCK': 'Block of Gold', 'IRON_BLOCK': 'Block of Iron', 'DIAMOND_BLOCK': 'Block of Diamond',+ 'COAL_BLOCK': 'Block of Coal', 'BRICKS': 'Bricks', 'STONE_BRICKS': 'Stone Bricks',+ 'MOSSY_COBBLESTONE': 'Moss Stone', 'CRAFTING_TABLE': 'Crafting Table', 'SUGAR_CANE': 'Sugar Canes',+ 'GRASS_SNOWED': 'Grass Block', 'FURNACE_LIT': 'Furnace'}+ out.append('const char *const blk_label[B_N] = {' + ', '.join(+ '"' + labels.get(b['name'], b['name'].replace('_', ' ').title()) + '"' for b in BLOCKS) + '};')+ # recipes: out (item id, 2 bytes), count, w, h, then w*h ingredient ids (255 none; 254 any planks, 253 any log)+ rec = []+ for o, n, rows, keys in RECIPES:+ w, h = max(len(r) for r in rows), len(rows)+ rec += [iid(o) & 255, iid(o) >> 8, n, w, h]+ for r in rows:+ for c in r.ljust(w):+ k = keys.get(c)+ rec.append(255 if k is None else 254 if k == 'G_PLANKS' else 253 if k == 'G_LOG' else iid(k))+ rec.append(0)+ rec.append(0)+ rec.append(0)+ out += carr('recipes[]', 'uint8_t', rec)+ out += carr('smelt[]', 'uint8_t', [v for a, b in SMELT for v in (iid(a), iid(b))] + [255, 255])+ open(os.path.join(CE, 'src', 'data.c'), 'w').write('\n'.join(out) + '\n')++ # --- gfx.c: the screens' pictures, icons and font+ g = ['/* Made by tools/pack.py from Minecraft 1.8.8\'s pictures: see data.h. */', '#include "data.h"', '']+ spr_data, spr_off, spr_w, spr_h, spr_rows = [], [], [], [], []+ for n, im in sprites:+ w, h = im.size+ idx = to_idx(im, True)+ d, rows = rle(idx, w, h)+ spr_off.append(len(spr_data))+ spr_rows.append(len(spr_data))+ rowtab = []+ for r in rows:+ rowtab += [r & 255, r >> 8]+ spr_data += rowtab + d+ spr_w.append(w)+ spr_h.append(h)+ g += carr('spr_data[]', 'uint8_t', spr_data, 32)+ g += carr('spr_off[]', 'uint32_t', spr_off)+ g += carr('spr_w[]', 'uint8_t', spr_w)+ g += carr('spr_h[]', 'uint8_t', spr_h)+ ic = []+ icon_of = []+ for im in icons:+ if im is None:+ icon_of.append(255)+ continue+ icon_of.append(len(ic) // 256)+ ic += to_idx(im, True)+ g += carr('icon_px[]', 'uint8_t', ic, 32)+ g += carr('icon_of[B_N + IT_N]', 'uint8_t', icon_of)+ g += carr('font_bits[96 * 8]', 'uint8_t', font_bits, 32)+ g += carr('font_w[96]', 'uint8_t', font_w, 32)+ open(os.path.join(CE, 'src', 'gfx.c'), 'w').write('\n'.join(g) + '\n')++ # --- data.h+ h = ['/* Made by tools/pack.py: the blocks, items, textures and pictures of NumBlocks on the CE. */',+ '#ifndef NBCE_DATA_H', '#define NBCE_DATA_H', '#include <stdint.h>', '',+ f'#define NTEX {len(tex_idx)}', f'#define N_SHADE {N_SHADE}', f'#define FIRST_STATIC {FIRST_STATIC}',+ f'#define N_TINTS {N_TINTS}', f'#define B_N {B_N}', f'#define IT_N {len(ITEMS)}', f'#define IT0 {IT0}',+ 'enum {']+ h += [f' B_{b["name"]},' for b in BLOCKS]+ h += ['};', 'enum {']+ h += [f' I_{x["name"]} = IT0 + {i},' for i, x in enumerate(ITEMS)]+ h += ['};', 'enum { M_NONE, M_CUBE, M_CROSS, M_LIQUID, M_LEAVES, M_GLASS, M_TORCH };',+ 'enum { BF_OPAQUE = 1, BF_SOLID = 2, BF_ALPHA = 4, BF_LIQUID = 8 };',+ 'enum { T_NONE, T_PICKAXE, T_AXE, T_SHOVEL, T_SWORD };',+ 'enum { ' + ', '.join(f'BIOME_{b[0]}' for b in BIOMES) + ', N_BIOMES };',+ 'extern const uint8_t tint_of_biome[N_BIOMES];',+ 'extern const uint8_t pal_rgb[256 * 3]; /* 1-15: the sky\'s (set at run time) */',+ 'extern const uint8_t tex_px[NTEX][256]; /* (v * 16 + u); 0 see-through */',+ 'extern const uint8_t shade_cm[N_SHADE][256]; /* a colour at each level of light (31 full) */',+ 'extern const uint8_t pal_cube[4096]; /* the nearest colour: [r][g][b], 16 levels each (CUBE_LEVELS) */',+ '/* faces -Y +Y -Z +Z -X +X; blk_tint: the faces whose texture has N_TINTS copies, one per biome tint */',+ 'extern const uint8_t blk_tex[B_N][6], blk_tint[B_N], blk_model[B_N], blk_flags[B_N], blk_light[B_N];',+ 'extern const uint8_t blk_opacity[B_N], blk_hard[B_N], blk_tool[B_N], blk_drop[B_N];',+ '/* blk_hard: hardness x 4 (255: unbreakable); blk_tool: T_* | the level needed << 4; blk_drop: 255 none */',+ 'extern const uint16_t it_fuel[B_N + IT_N];',+ 'extern const uint8_t it_kind[IT_N], it_speed[IT_N], it_dmg[IT_N]; /* it_kind: T_* | tier << 4 */',+ 'extern const uint16_t it_dur[IT_N];',+ 'extern const char *const it_label[IT_N], *const blk_label[B_N];',+ 'extern const uint8_t recipes[], smelt[];',+ 'extern const uint8_t spr_data[], spr_w[], spr_h[], icon_px[], icon_of[B_N + IT_N];',+ 'extern const uint32_t spr_off[];',+ 'extern const uint8_t font_bits[96 * 8], font_w[96];',+ 'extern const uint8_t cube_levels[16];']+ for i, n in enumerate(tnames):+ if i == 0 or tnames[i - 1] != n:+ h.append(f'#define TX_{n.upper().replace("@", "").replace(":", "_")} {i}')+ for i, (n, im) in enumerate(sprites):+ h.append(f'#define SP_{n.upper()} {i}')+ h += ['', '#endif', '']+ open(os.path.join(CE, 'src', 'data.h'), 'w').write('\n'.join(h))+ # the tint of each biome, and the cube's levels+ open(os.path.join(CE, 'src', 'data.c'), 'a').write('\n'.join(+ carr('tint_of_biome[N_BIOMES]', 'uint8_t', [TINT_OF_BIOME[b[0]] for b in BIOMES]) ++ carr('cube_levels[16]', 'uint8_t', CUBE_LEVELS)) + '\n')+ print(f'{len(tex_idx)} textures, {B_N} blocks, {len(ITEMS)} items, {len(RECIPES)} recipes, '+ f'sprites {len(spr_data)} bytes, icons {len(ic) // 256}')+++if __name__ == '__main__':+ main()