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
Add Balatro, Buckshot Roulette and Portal Returns
Mason363515344a01670
diff --git a/.github/release.md b/.github/release.mdindex b8279896..3b6a57f5 100644--- a/.github/release.md+++ b/.github/release.md@@ -2,11 +2,14 @@| File | || --- | --- |-| **NumPlay.nwa** | All 5 games in one app. Start here! |+| **NumPlay.nwa** | All 8 games in one app. Start here! || NumPlay-Invisible.nwa | The same app, hidden: a blank icon with no name || NumPlay-Matrices.nwa | The same app, disguised as a math app called Matrices || NumDash.nwa | Only NumDash: jump to the beat || CrossyRoad.nwa | Only Crossy Road: hop, dodge, survive || NumDrive.nwa | Only NumDrive: drive, flip, finish |+| Balatro.nwa | Only Balatro: poker hands, wild jokers |+| BuckshotRoulette.nwa | Only Buckshot Roulette: you, the Dealer, one shotgun |+| PortalReturns.nwa | Only Portal Returns: think with portals || Tetris.nwa | Only Tetris: stack and clear lines || NumChess.nwa | Only Chess: bots, puzzles, 2 players |diff --git a/Makefile b/Makefileindex 28cfcafa..d270f73d 100644--- a/Makefile+++ b/Makefile@@ -59,6 +59,9 @@ $(B):MOD_numdash = games/numdash/build/module.oMOD_crossyroad = games/crossyroad/output/module.oMOD_numdrive = games/numdrive/output/device/module.o+MOD_balatro = games/balatro/output/module.o+MOD_buckshot = games/buckshot/output/module.o+MOD_portal = games/portal/output/module.oMOD_chess = games/chess/output/module.oMOD_tetris = $(B)/tetris/raw.oENTRY = main@@ -123,6 +126,9 @@ check: nwaAPP_numdash = games/numdash/build/numdash.nwa:NumDash.nwaAPP_crossyroad = games/crossyroad/output/crossyroad.nwa:CrossyRoad.nwaAPP_numdrive = games/numdrive/output/device/numdrive.nwa:NumDrive.nwa+APP_balatro = games/balatro/output/balatro.nwa:Balatro.nwa+APP_buckshot = games/buckshot/output/buckshot.nwa:BuckshotRoulette.nwa+APP_portal = games/portal/output/portal.nwa:PortalReturns.nwaAPP_chess = games/chess/output/chess.nwa:NumChess.nwaAPP_tetris = games/tetris/tetris/target/thumbv7em-none-eabihf/release/tetris:Tetris.nwa@@ -130,11 +136,17 @@ apps: | $(B)$(MAKE) -C games/numdash build NWLINK="node node_modules/nwlink/bin/nwlink"$(MAKE) -C games/crossyroad NWLINK="$(NWLINK)"$(MAKE) -C games/numdrive NWLINK="$(NWLINK)"+ $(MAKE) -C games/balatro build NWLINK="$(NWLINK)"+ $(MAKE) -C games/buckshot build NWLINK="$(NWLINK)"+ $(MAKE) -C games/portal build NWLINK="$(NWLINK)"$(MAKE) -C games/chess build NWLINK="$(NWLINK)"cd games/tetris/tetris && NWLINK="$(NWLINK)" $(CARGO) build --release --quietcp $(word 1,$(subst :, ,$(APP_numdash))) $(B)/apps/$(word 2,$(subst :, ,$(APP_numdash)))cp $(word 1,$(subst :, ,$(APP_crossyroad))) $(B)/apps/$(word 2,$(subst :, ,$(APP_crossyroad)))cp $(word 1,$(subst :, ,$(APP_numdrive))) $(B)/apps/$(word 2,$(subst :, ,$(APP_numdrive)))+ cp $(word 1,$(subst :, ,$(APP_balatro))) $(B)/apps/$(word 2,$(subst :, ,$(APP_balatro)))+ cp $(word 1,$(subst :, ,$(APP_buckshot))) $(B)/apps/$(word 2,$(subst :, ,$(APP_buckshot)))+ cp $(word 1,$(subst :, ,$(APP_portal))) $(B)/apps/$(word 2,$(subst :, ,$(APP_portal)))cp $(word 1,$(subst :, ,$(APP_chess))) $(B)/apps/$(word 2,$(subst :, ,$(APP_chess)))cp $(word 1,$(subst :, ,$(APP_tetris))) $(B)/apps/$(word 2,$(subst :, ,$(APP_tetris)))arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwa@@ -143,6 +155,9 @@ apps: | $(B)SIM_numdash = games/numdash/build/sim-module.oSIM_crossyroad = games/crossyroad/output/sim-module.oSIM_numdrive = games/numdrive/output/sim-module.o+SIM_balatro = games/balatro/output/sim-module.o+SIM_buckshot = games/buckshot/output/sim-module.o+SIM_portal = games/portal/output/sim-module.oSIM_chess = games/chess/output/sim-module.oSIM_tetris = $(B)/sim/tetris.oSIM_CFLAGS = -std=gnu11 -O2 -fPIC -DNP_SIMULATOR=1 $(EADK_SIM_CFLAGS) -Ilauncher/src -Wall -Wno-unused-parameter@@ -174,5 +189,8 @@ clean:-$(MAKE) -C games/numdash clean-$(MAKE) -C games/crossyroad clean-$(MAKE) -C games/numdrive clean+ -$(MAKE) -C games/balatro clean+ -$(MAKE) -C games/buckshot clean+ -$(MAKE) -C games/portal clean-$(MAKE) -C games/chess clean-cd games/tetris/tetris && $(CARGO) cleandiff --git a/README.md b/README.mdindex b95d9d36..5057f149 100644--- a/README.md+++ b/README.md@@ -5,8 +5,8 @@<h1 align="center">NumPlay</h1><p align="center">- <b>5 free games for your NumWorks calculator, in one app.</b><br>- NumDash, Crossy Road, NumDrive, Tetris and Chess.+ <b>8 free games for your NumWorks calculator, in one app.</b><br>+ NumDash, Crossy Road, NumDrive, Balatro, Buckshot Roulette, Portal Returns, Tetris and Chess.</p><p align="center">@@ -32,7 +32,7 @@ Click a file to download it. Not sure which one? Take the first.<table><tr><td width="120" align="center"><img src="docs/media/icon.png" width="64" alt="NumPlay icon"></td>- <td><b><a href="https://github.com/Mason363/NumPlay/releases/latest/download/NumPlay.nwa">NumPlay.nwa</a></b><br><b>All 5 games in one app. Start here!</b></td>+ <td><b><a href="https://github.com/Mason363/NumPlay/releases/latest/download/NumPlay.nwa">NumPlay.nwa</a></b><br><b>All 8 games in one app. Start here!</b></td></tr><tr><td width="120" align="center"><img src="docs/media/icon-invisible.png" width="64" alt="A blank white icon"></td>@@ -54,6 +54,18 @@ Click a file to download it. Not sure which one? Take the first.<td width="120" align="center"><img src="docs/media/thumb_numdrive.png" width="112" alt="NumDrive"></td><td><a href="https://github.com/Mason363/NumPlay/releases/latest/download/NumDrive.nwa">NumDrive.nwa</a><br>Only NumDrive: drive, flip, finish</td></tr>+ <tr>+ <td width="120" align="center"><img src="docs/media/thumb_balatro.png" width="112" alt="Balatro"></td>+ <td><a href="https://github.com/Mason363/NumPlay/releases/latest/download/Balatro.nwa">Balatro.nwa</a><br>Only Balatro: poker hands, wild jokers</td>+ </tr>+ <tr>+ <td width="120" align="center"><img src="docs/media/thumb_buckshot.png" width="112" alt="Buckshot Roulette"></td>+ <td><a href="https://github.com/Mason363/NumPlay/releases/latest/download/BuckshotRoulette.nwa">BuckshotRoulette.nwa</a><br>Only Buckshot Roulette: you, the Dealer, one shotgun</td>+ </tr>+ <tr>+ <td width="120" align="center"><img src="docs/media/thumb_portal.png" width="112" alt="Portal Returns"></td>+ <td><a href="https://github.com/Mason363/NumPlay/releases/latest/download/PortalReturns.nwa">PortalReturns.nwa</a><br>Only Portal Returns: think with portals</td>+ </tr><tr><td width="120" align="center"><img src="docs/media/thumb_tetris.png" width="112" alt="Tetris"></td><td><a href="https://github.com/Mason363/NumPlay/releases/latest/download/Tetris.nwa">Tetris.nwa</a><br>Only Tetris: stack and clear lines</td>@@ -91,11 +103,18 @@ You need your calculator, its USB cable, and a computer with **Google Chrome** o</tr><tr><td><img src="docs/media/numdrive.gif" alt="NumDrive gameplay"></td>- <td><img src="docs/media/tetris.gif" alt="Tetris gameplay"></td>+ <td><img src="docs/media/balatro.gif" alt="Balatro: a Four of a Kind scoring with five Jokers"></td>+ </tr>+ <tr>+ <td><img src="docs/media/buckshot.gif" alt="Buckshot Roulette: a round against the Dealer"></td>+ <td><img src="docs/media/portal.gif" alt="Portal Returns: falling through a portal and flying across a test chamber"></td></tr><tr>+ <td><img src="docs/media/tetris.gif" alt="Tetris gameplay"></td><td><img src="docs/media/chess.gif" alt="Chess against a bot"></td>- <td><img src="docs/media/uninstall.gif" alt="Uninstalling a game from NumPlay's settings to free up space"></td>+ </tr>+ <tr>+ <td colspan="2" align="center"><img src="docs/media/uninstall.gif" width="50%" alt="Uninstalling a game from NumPlay's settings to free up space"></td></tr></table>@@ -103,6 +122,9 @@ You need your calculator, its USB cable, and a computer with **Google Chrome** o- **[Tatone26](https://github.com/Tatone26/Numworks-games/tree/main/apps/tetris)** made Tetris and released it into the public domain.- **[gd3ds](https://github.com/AleFunky/gd3ds)** by AleFunky and friends, whose research into Geometry Dash made NumDash possible.+- **Balatro** by LocalThunk inspired NumPlay's Balatro, which uses art adapted from the game and the **m6x11** font by Daniel Linssen.+- **Buckshot Roulette** by Mike Klubnika inspired NumPlay's Buckshot Roulette, whose scenes are rendered from the game through the Open Buckshot Roulette project (1503Dev). Fonts: Fake Receipt by Ray Larabie and Dot Matrix by Dionaea.+- **[Portal Returns](https://www.cemetech.net/downloads/files/1313/x1313)** by MateoConLechuga for the TI-84 Plus CE, with sprites by CKH4 and Portal Prelude chambers ported by Unicorn from BuilderBoy's original.- The **Nunito** and **Rammetto One** fonts, under the SIL Open Font License ([LICENSES](LICENSES)).-<sub>Unofficial fan games, not affiliated with NumWorks, RobTop Games (Geometry Dash), Hipster Whale (Crossy Road) or the makers of Drive Mad. Tetris is a trademark of The Tetris Company.</sub>+<sub>Unofficial fan games, not affiliated with NumWorks, RobTop Games (Geometry Dash), Hipster Whale (Crossy Road), the makers of Drive Mad, LocalThunk or Playstack (Balatro), Mike Klubnika or Critical Reflex (Buckshot Roulette), MateoConLechuga (Portal Returns) or Valve (Portal). Tetris is a trademark of The Tetris Company.</sub>diff --git a/_config.yml b/_config.ymlindex b0620de1..1689910e 100644--- a/_config.yml+++ b/_config.yml@@ -1,4 +1,4 @@title: NumPlay-description: "Games for the NumWorks calculator: NumDash, Crossy Road, NumDrive, Tetris and Chess, in one app."+description: "Games for the NumWorks calculator: NumDash, Crossy Road, NumDrive, Balatro, Buckshot Roulette, Portal Returns, Tetris and Chess, in one app."theme: jekyll-theme-caymanexclude: [games, launcher, tools, tests, build, LICENSES, Makefile, .github]diff --git a/docs/media/balatro.gif b/docs/media/balatro.gifnew file mode 100644index 00000000..229522f6Binary files /dev/null and b/docs/media/balatro.gif differdiff --git a/docs/media/buckshot.gif b/docs/media/buckshot.gifnew file mode 100644index 00000000..9c90b9ccBinary files /dev/null and b/docs/media/buckshot.gif differdiff --git a/docs/media/launcher.gif b/docs/media/launcher.gifindex 367f6f72..84a8d718 100644Binary files a/docs/media/launcher.gif and b/docs/media/launcher.gif differdiff --git a/docs/media/portal.gif b/docs/media/portal.gifnew file mode 100644index 00000000..aafc0bfdBinary files /dev/null and b/docs/media/portal.gif differdiff --git a/docs/media/thumb_balatro.png b/docs/media/thumb_balatro.pngnew file mode 100644index 00000000..e52a9b8dBinary files /dev/null and b/docs/media/thumb_balatro.png differdiff --git a/docs/media/thumb_buckshot.png b/docs/media/thumb_buckshot.pngnew file mode 100644index 00000000..4aebd768Binary files /dev/null and b/docs/media/thumb_buckshot.png differdiff --git a/docs/media/thumb_portal.png b/docs/media/thumb_portal.pngnew file mode 100644index 00000000..1857311bBinary files /dev/null and b/docs/media/thumb_portal.png differdiff --git a/docs/play.md b/docs/play.mdindex 3abfd8e4..d5a754d6 100644--- a/docs/play.md+++ b/docs/play.md@@ -55,6 +55,58 @@ Don't floor it the whole way: too much gas flips the car.<br clear="right">+## Balatro++<img src="media/balatro.gif" width="320" align="right" alt="Balatro: a Four of a Kind scoring with five Jokers">++| Key | What it does |+| --- | --- |+| **Arrows** | Move between cards, Jokers and buttons |+| **OK** | Pick a card, or open a Joker or shop item (Buy, Sell, Use) |+| **EXE** | Play hand |+| **⌫** | Discard |+| **Shift** | Sort by rank or suit |+| **Alpha + Left / Right** | Move a Joker or a card |+| **Toolbox** / **Var** | Run info / your deck |+| **Back** | Options |++Hold **OK** or **EXE** to speed up the scoring.++<br clear="right">++## Buckshot Roulette++<img src="media/buckshot.gif" width="320" align="right" alt="Buckshot Roulette: a round against the Dealer">++| Key | What it does |+| --- | --- |+| **Arrows** | Move between your items and the shotgun. Go up to read the Dealer's items |+| **OK** or **EXE** | Use an item, pick up the shotgun, fire |+| **Up / Down** | With the shotgun: aim at the Dealer / at yourself |+| **Letter keys** | Sign the waiver (EXE signs) |+| **Back** | Pause |++Shooting yourself with a blank keeps your turn.++<br clear="right">++## Portal Returns++<img src="media/portal.gif" width="320" align="right" alt="Portal Returns: falling through a portal and flying across a test chamber">++| Key | What it does |+| --- | --- |+| **Left / Right** | Run |+| **Up** | Jump |+| **1 to 9** (not 5) | Fire a portal that way: 7 is up left, 3 is down right |+| **5** | Switch the color of the next portal |+| **OK** or **EXE** | Pick up or drop a cube, continue |+| **Back** | Pause |++**Help** on the title screen shows every key and every test element.++<br clear="right">+## Tetris<img src="media/tetris.gif" width="320" align="right" alt="Tetris gameplay">diff --git a/games/balatro/.gitignore b/games/balatro/.gitignorenew file mode 100644index 00000000..a7261a28--- /dev/null+++ b/games/balatro/.gitignore@@ -0,0 +1,4 @@+output/+# Balatro's own 1x sheets and the m6x11 font: inputs of tools/mkassets.py, kept+# out of the repository. src/assets.c holds the art the app uses.+assets/diff --git a/games/balatro/Makefile b/games/balatro/Makefilenew file mode 100644index 00000000..c6a64bd6--- /dev/null+++ b/games/balatro/Makefile@@ -0,0 +1,66 @@+# Balatro for the NumWorks calculator.+# make build output/balatro.nwa+# make check link it like the calculator does and print the installed size+# make sim simulator build (output/balatro.nwb) for tools/record.py+# make assets regenerate src/assets.c from assets/ (Python 3, numpy, Pillow)+# make run install on a connected calculator+Q ?= @+CC = arm-none-eabi-gcc+NWLINK = npx --yes -- [email protected]+PY ?= python3+BUILD_DIR = output+SRC = $(wildcard src/*.c)+HDR = $(wildcard src/*.h)++CFLAGS = -std=c99 $(shell $(NWLINK) eadk-cflags-device)+CFLAGS += -Os -Wall -fno-math-errno -fno-tree-loop-distribute-patterns -fno-reorder-functions -flto-partition=one+CFLAGS += -flto -fno-fat-lto-objects -fwhole-program -fvisibility=internal $(EXTRA)+LDFLAGS = -Wl,--relocatable -nostartfiles --specs=nano.specs+LDFLAGS += -Wl,-e,main -Wl,-u,eadk_app_name -Wl,-u,eadk_app_icon -Wl,-u,eadk_api_level+LDFLAGS += -Wl,--gc-sections -flinker-output=nolto-rel++.PHONY: build run check sim assets clean module sim-module+build: $(BUILD_DIR)/balatro.nwa++run: $(BUILD_DIR)/balatro.nwa+ $(Q) $(NWLINK) install-nwa $<++check: $(BUILD_DIR)/balatro.nwa+ $(Q) $(NWLINK) nwa-bin $< $(BUILD_DIR)/balatro.bin+ @echo "BIN $(BUILD_DIR)/balatro.bin: $$(wc -c < $(BUILD_DIR)/balatro.bin) bytes"++$(BUILD_DIR)/balatro.nwa: $(SRC) $(HDR) $(BUILD_DIR)/icon.o+ @echo "LD $@"+ $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(SRC) $(BUILD_DIR)/icon.o -lm -o $@+ $(Q) arm-none-eabi-strip --strip-unneeded $@+ $(Q) arm-none-eabi-size $@++$(BUILD_DIR)/icon.o: src/icon.png | $(BUILD_DIR)+ $(Q) $(NWLINK) png-icon-o $< $@++$(BUILD_DIR):+ $(Q) mkdir -p $@++assets:+ $(Q) $(PY) tools/mkassets.py++sim: $(BUILD_DIR)/balatro.nwb+$(BUILD_DIR)/balatro.nwb: $(SRC) $(HDR) | $(BUILD_DIR)+ $(Q) cc -std=c99 -O2 -fPIC $(shell $(NWLINK) eadk-cflags-simulator) -shared -undefined dynamic_lookup \+ $(filter-out src/libc.c,$(SRC)) ../../launcher/sim/sim.c -o $@++clean:+ $(Q) rm -rf $(BUILD_DIR)++# NumPlay launcher: the game as a module (see ../../tools/npmodule.py) for the+# calculator, and as a relocatable object for the simulator build.+module: $(BUILD_DIR)/module.o+$(BUILD_DIR)/module.o: $(SRC) $(HDR) | $(BUILD_DIR)+ $(Q) $(CC) $(CFLAGS) -Wl,--relocatable -nostartfiles -nostdlib -Wl,-e,main -flinker-output=nolto-rel $(SRC) -o $@++sim-module: $(BUILD_DIR)/sim-module.o+$(BUILD_DIR)/sim-module.o: $(SRC) $(HDR) | $(BUILD_DIR)+ $(Q) mkdir -p $(BUILD_DIR)/sim+ $(Q) for f in $(basename $(notdir $(filter-out src/libc.c,$(SRC)))); do cc -std=c99 -O2 -fPIC \+ $(shell $(NWLINK) eadk-cflags-simulator) -Dmain=np_balatro_main -c src/$$f.c -o $(BUILD_DIR)/sim/$$f.o || exit 1; done+ $(Q) ld -r $(BUILD_DIR)/sim/*.o -exported_symbol _np_balatro_main -o $@diff --git a/games/balatro/README.md b/games/balatro/README.mdnew file mode 100644index 00000000..20cb23c0--- /dev/null+++ b/games/balatro/README.md@@ -0,0 +1,89 @@+> **Balatro is part of [NumPlay](../../README.md)**, every NumWorks game in one app. Get it with all the others, or on its own as `Balatro.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).++<p align="center">+ <img src="src/icon.png" width="84" alt="Balatro icon">+</p>++<h1 align="center">Balatro</h1>++<p align="center">+ <b>The poker roguelike, on the NumWorks N0120 calculator.</b><br>+ Play poker hands, build a deck of Jokers and beat the Boss Blind of Ante 8.+</p>++<p align="center">+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/Balatro.nwa"><b>Download Balatro.nwa</b></a>+ · <a href="#controls">Controls</a>+ · <a href="#credits">Credits</a>+</p>++<p align="center">+ <img src="docs/play.gif" width="640" alt="Playing a hand: cards score, Jokers trigger, the score adds up">+</p>++## Highlights++* **The whole core game:** Small, Big and Boss Blinds, the shop, booster packs, skip tags and Endless mode after Ante 8.+* **All 150 Jokers**, including the Legendary ones from The Soul, plus every Tarot, Planet and Spectral card, all 32 Vouchers and 24 Tags.+* **All 28 Boss Blinds**, with their own colours and effects, and the five final bosses.+* **Scoring like the original:** cards score left to right, then held cards, then Jokers, with retriggers, editions and seals, and every chip and mult popping up.+* **The look of the game:** the original card and Joker art, the moving paint background, the same panels, colours and font, the fire behind a hand that beats the Blind, and the foil, holographic, polychrome and negative sheens.+* **Saves everything:** press Home at any moment and pick your run back up exactly where you left it.+* Red Deck, White Stake.++<table>+ <tr>+ <td align="center"><img src="docs/shot.png" width="390" alt="Title screen"><br><sub>Title screen</sub></td>+ <td align="center"><img src="docs/round.png" width="390" alt="A round"><br><sub>Pick up to 5 cards and play them</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/blinds.png" width="390" alt="Choosing a blind"><br><sub>Play each Blind, or skip it for a Tag</sub></td>+ <td align="center"><img src="docs/cashout.png" width="390" alt="Cash out"><br><sub>Cash out: reward, hands left, Jokers, interest</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/shop.png" width="390" alt="Shop"><br><sub>The shop: Jokers, cards, Vouchers and packs</sub></td>+ <td align="center"><img src="docs/pack.png" width="390" alt="Booster pack"><br><sub>A Mega Arcana Pack: use Tarots on your hand</sub></td>+ </tr>+</table>++## Controls++| Key | Action |+|---|---|+| Arrows | Move between cards, Jokers and buttons |+| OK | Select a card, or pick a Joker or item (then Sell, Use, Buy, Open...) |+| EXE | Play Hand |+| ⌫ | Discard |+| shift | Sort the hand by rank or by suit |+| alpha + left / right | Move a Joker or a card |+| toolbox | Run Info (poker hands, blinds, vouchers) |+| var | View your deck |+| Hold OK or EXE | Speed up scoring |+| Back | Back, or the Options menu |+| Home | Save and quit |++The game speed can be changed in Options. "How to Play" in Options lists the keys too.++## Install++1. Download **[Balatro.nwa](https://github.com/Mason363/NumPlay/releases/latest/download/Balatro.nwa)** from the [latest NumPlay release](https://github.com/Mason363/NumPlay/releases/latest).+2. Plug the calculator into your computer and open **[my.numworks.com/apps](https://my.numworks.com/apps)** in Chrome or Edge.+3. Upload `Balatro.nwa`.++## Credits++Inspired by **Balatro** by LocalThunk. Not affiliated with LocalThunk or Playstack.++* Card, Joker and interface art adapted from Balatro by LocalThunk.+* Font: m6x11 by Daniel Linssen.++Made by Mason Chen as part of NumPlay. If you enjoy it, please support the original game.++## Build++```sh+make # output/balatro.nwa+make check # link it like the calculator does and print the installed size+make sim # a build for the NumWorks simulator+make assets # rebuild the art from assets/ (Python 3, numpy, Pillow)+```diff --git a/games/balatro/docs/blinds.png b/games/balatro/docs/blinds.pngnew file mode 100644index 00000000..c5723568Binary files /dev/null and b/games/balatro/docs/blinds.png differdiff --git a/games/balatro/docs/cashout.png b/games/balatro/docs/cashout.pngnew file mode 100644index 00000000..91fdd80aBinary files /dev/null and b/games/balatro/docs/cashout.png differdiff --git a/games/balatro/docs/pack.png b/games/balatro/docs/pack.pngnew file mode 100644index 00000000..8de7e81bBinary files /dev/null and b/games/balatro/docs/pack.png differdiff --git a/games/balatro/docs/play.gif b/games/balatro/docs/play.gifnew file mode 100644index 00000000..5732a5c2Binary files /dev/null and b/games/balatro/docs/play.gif differdiff --git a/games/balatro/docs/round.png b/games/balatro/docs/round.pngnew file mode 100644index 00000000..32f15028Binary files /dev/null and b/games/balatro/docs/round.png differdiff --git a/games/balatro/docs/shop.png b/games/balatro/docs/shop.pngnew file mode 100644index 00000000..a5803544Binary files /dev/null and b/games/balatro/docs/shop.png differdiff --git a/games/balatro/docs/shot.png b/games/balatro/docs/shot.pngnew file mode 100644index 00000000..aad77318Binary files /dev/null and b/games/balatro/docs/shot.png differdiff --git a/games/balatro/src/art.c b/games/balatro/src/art.cnew file mode 100644index 00000000..5f602a85--- /dev/null+++ b/games/balatro/src/art.c@@ -0,0 +1,202 @@+/* Sprite decoding (see tools/rc.py) and the cache of decoded sprites.+ *+ * Decoded sprites are palette indices, one byte per pixel, kept in an arena.+ * Before each frame is drawn, every sprite it uses is requested once; when+ * the arena is full it is emptied and the frame's sprites are decoded again,+ * so pointers stay valid while the frame is drawn. */+#include "art.h"+#include <string.h>++#define PROB_BITS 11+#define TOP (1u << 24)+enum { C_T = 0, C_L = 16, C_U = 32, C_R = 36, C_LIT = 40, NPROBS = C_LIT + 256 };++typedef struct {+ const uint8_t *p;+ uint32_t range, code;+} rc_t;++static inline void rc_norm(rc_t *r) {+ while (r->range < TOP) {+ r->range <<= 8;+ r->code = (r->code << 8) | *r->p++;+ }+}++static inline int rc_bit(rc_t *r, uint16_t *pr) {+ uint32_t p = *pr, bound = (r->range >> PROB_BITS) * p;+ int b;+ if (r->code < bound) {+ r->range = bound;+ *pr = (uint16_t)(p + (((1u << PROB_BITS) - p) >> 4));+ b = 0;+ } else {+ r->code -= bound;+ r->range -= bound;+ *pr = (uint16_t)(p - (p >> 4));+ b = 1;+ }+ rc_norm(r);+ return b;+}++static uint32_t rc_direct(rc_t *r, int n) {+ uint32_t v = 0;+ while (n--) {+ r->range >>= 1;+ uint32_t b = r->code >= r->range;+ if (b) r->code -= r->range;+ v = v << 1 | b;+ rc_norm(r);+ }+ return v;+}++static void decode(int id, uint8_t *out, const uint8_t *tmpl) {+ const art_sprite_t *s = &art_sprites[id];+ int w = s->w, h = s->h;+ if (w != ART_CW) tmpl = 0;+ static uint16_t probs[NPROBS];+ for (int i = 0; i < NPROBS; i++) probs[i] = 1 << (PROB_BITS - 1);+ rc_t r = {art_blob + s->off, 0xFFFFFFFFu, 0};+ for (int i = 0; i < 4; i++) r.code = (r.code << 8) | *r.p++;+ int n = (int)rc_direct(&r, 8) + 1;+ uint8_t pal[256];+ for (int i = 0; i < n; i++) pal[i] = (uint8_t)rc_direct(&r, 8);+ int lb = 0;+ while ((1 << lb) < n) lb++;+ for (int y = 0; y < h; y++) {+ uint8_t *row = out + y * w, *up = row - w;+ const uint8_t *trow = tmpl ? tmpl + y * w : 0;+ for (int x = 0; x < w; x++) {+ int L = x > 0 ? row[x - 1] : -1;+ int U = y > 0 ? up[x] : -1;+ int UL = (x > 0 && y > 0) ? up[x - 1] : -1;+ int UR = (y > 0 && x < w - 1) ? up[x + 1] : -1;+ int seen[4], ns = 0, v = -1;+ if (trow) {+ int t = trow[x];+ int lt = x > 0 ? trow[x - 1] == L : 1;+ int ut = y > 0 ? (trow - w)[x] == U : 1;+ if (rc_bit(&r, &probs[C_T + (lt | ut << 1 | (t == L) << 2 | (t == U) << 3)])) v = t;+ seen[ns++] = t;+ }+#define SEEN(c) (ns > 0 && (seen[0] == (c) || (ns > 1 && (seen[1] == (c) || (ns > 2 && seen[2] == (c))))))+ if (v < 0 && L >= 0 && !SEEN(L)) {+ if (rc_bit(&r, &probs[C_L + ((U == L) | (UL == L) << 1 | (UR == U) << 2 | (UL == U) << 3)])) v = L;+ seen[ns++] = L;+ }+ if (v < 0 && U >= 0 && !SEEN(U)) {+ if (rc_bit(&r, &probs[C_U + ((UL == U) | (UR == U) << 1)])) v = U;+ seen[ns++] = U;+ }+ if (v < 0 && UR >= 0 && !SEEN(UR)) {+ if (rc_bit(&r, &probs[C_R])) v = UR;+ seen[ns++] = UR;+ }+#undef SEEN+ if (v < 0) {+ int node = 1;+ for (int k = 0; k < lb; k++) node = node * 2 + rc_bit(&r, &probs[C_LIT + node]);+ v = pal[node - (1 << lb)];+ }+ row[x] = (uint8_t)v;+ }+ }+}++/* ------------------------------------------------------------------ cache */+static uint8_t arena[ART_ARENA];+static uint32_t used;+static uint16_t where[ART_NSPRITES]; /* offset/4 + 1 into the arena, 0 = not decoded */+static uint8_t lasty[ART_NSPRITES]; /* this frame: bottom row of the sprite's last use */+static uint8_t firsty[ART_NSPRITES]; /* this frame: top row of its first use */+static uint8_t tmpl_buf[3][ART_CW * ART_CH];+static int8_t tmpl_slot[ART_NGROUPS];+static uint8_t tmpl_ready;++static void templates(void) {+ if (tmpl_ready) return;+ int k = 0;+ for (int g = 0; g < ART_NGROUPS; g++) {+ tmpl_slot[g] = -1;+ if (art_tmpl_of_group[g] >= 0 && k < 3) {+ decode(art_tmpl_of_group[g], tmpl_buf[k], 0);+ tmpl_slot[g] = (int8_t)k++;+ }+ }+ tmpl_ready = 1;+}++static uint32_t size_of(int id) { return ((uint32_t)art_sprites[id].w * art_sprites[id].h + 3) & ~3u; }++void art_flush(void) {+ used = 0;+ memset(where, 0, sizeof where);+}++void art_begin_frame(void) {+ memset(lasty, 0, sizeof lasty);+ memset(firsty, 255, sizeof firsty);+}++void art_use(int id, int top, int bottom) {+ if (id < 0 || id >= ART_NSPRITES) return;+ if (bottom > 255) bottom = 255;+ if (top < 0) top = 0;+ if (bottom > lasty[id]) lasty[id] = (uint8_t)bottom;+ if (top < firsty[id]) firsty[id] = (uint8_t)top;+}++/* Frees the sprites not needed from row y down, keeping the others packed+ * at the start of the arena (in order, so nothing overlaps while moving). */+static void evict(int y, int later) {+ uint32_t w = 0;+ for (;;) {+ /* the decoded sprite with the lowest offset at or after w */+ int best = -1;+ uint32_t bo = 0xFFFFFFFF;+ for (int i = 0; i < ART_NSPRITES; i++)+ if (where[i]) {+ uint32_t o = (where[i] - 1) * 4u;+ if (o >= w && o < bo) bo = o, best = i;+ }+ if (best < 0) break;+ if (lasty[best] <= y || (later && firsty[best] >= later)) {+ where[best] = 0; /* not needed any more this frame, or not before row `later` */+ continue;+ }+ uint32_t n = size_of(best);+ if (bo != w) memmove(arena + w, arena + bo, n);+ where[best] = (uint16_t)(w / 4 + 1);+ w += n;+ }+ used = w;+}++const uint8_t *art_peek(int id) {+ if (id < 0 || id >= ART_NSPRITES || !where[id]) return 0;+ return arena + (where[id] - 1) * 4u;+}++/* decodes the sprite if needed; y: the row being drawn (for eviction) */+const uint8_t *art_get_at(int id, int y) {+ if (id < 0 || id >= ART_NSPRITES) return 0;+ templates();+ if (where[id]) return arena + (where[id] - 1) * 4u;+ uint32_t n = size_of(id);+ if (n > sizeof arena) return 0;+ if (used + n > sizeof arena) evict(y, 0);+ if (used + n > sizeof arena && y >= 0) evict(y, y + 16);+ if (used + n > sizeof arena) return 0;+ const art_sprite_t *s = &art_sprites[id];+ int g = s->group;+ const uint8_t *tm = (tmpl_slot[g] >= 0 && art_tmpl_of_group[g] != id) ? tmpl_buf[tmpl_slot[g]] : 0;+ uint8_t *out = arena + used;+ decode(id, out, tm);+ where[id] = (uint16_t)(used / 4 + 1);+ used += n;+ return out;+}++const uint8_t *art_get(int id) { return art_get_at(id, -1); }diff --git a/games/balatro/src/art.h b/games/balatro/src/art.hnew file mode 100644index 00000000..f56cbe4d--- /dev/null+++ b/games/balatro/src/art.h@@ -0,0 +1,14 @@+#ifndef ART_H+#define ART_H+#include <stdint.h>+#include "assets.h"++#define ART_ARENA (50 * 1024)++void art_flush(void);+void art_begin_frame(void);+void art_use(int id, int top, int bottom); /* the frame uses this sprite from row top to bottom */+const uint8_t *art_get(int id); /* decodes if needed */+const uint8_t *art_get_at(int id, int y); /* same, may free sprites only used above row y */+const uint8_t *art_peek(int id); /* only if already decoded */+#endifdiff --git a/games/balatro/src/assets.c b/games/balatro/src/assets.cnew file mode 100644index 00000000..5991be4f--- /dev/null+++ b/games/balatro/src/assets.c@@ -0,0 +1,6028 @@+/* Generated by tools/mkassets.py from Balatro's art (LocalThunk) and the m6x11 font (Daniel Linssen): do not edit. */+#include "assets.h"++const art_sprite_t art_sprites[ART_NSPRITES] = {+ {0, 0, 35, 47},+ {224, 0, 35, 47},+ {505, 0, 35, 47},+ {992, 0, 35, 47},+ {1511, 0, 35, 47},+ {1870, 0, 35, 47},+ {2361, 0, 35, 47},+ {2661, 0, 35, 47},+ {2974, 0, 35, 47},+ {3309, 0, 35, 47},+ {3629, 0, 35, 47},+ {3987, 0, 35, 47},+ {4280, 0, 35, 47},+ {4584, 0, 35, 47},+ {4925, 0, 35, 47},+ {5239, 0, 35, 47},+ {5547, 0, 35, 28},+ {5793, 0, 35, 47},+ {5964, 0, 35, 47},+ {6231, 0, 35, 47},+ {6461, 0, 35, 47},+ {6847, 0, 35, 47},+ {7453, 0, 35, 47},+ {7901, 0, 35, 47},+ {8412, 0, 35, 47},+ {8720, 0, 35, 47},+ {9361, 0, 35, 47},+ {9794, 0, 35, 47},+ {10149, 0, 35, 47},+ {10533, 0, 35, 47},+ {10973, 0, 35, 47},+ {11234, 0, 35, 47},+ {11561, 0, 35, 47},+ {12015, 0, 35, 47},+ {12347, 0, 35, 47},+ {12739, 0, 35, 47},+ {13104, 0, 35, 47},+ {13447, 0, 35, 47},+ {13800, 0, 35, 47},+ {14284, 0, 35, 47},+ {14554, 0, 35, 47},+ {14803, 0, 35, 47},+ {15144, 0, 35, 47},+ {15324, 0, 35, 47},+ {15806, 0, 35, 47},+ {16216, 0, 35, 47},+ {16529, 0, 35, 47},+ {16722, 0, 35, 47},+ {16966, 0, 35, 47},+ {17381, 0, 35, 47},+ {17690, 0, 35, 47},+ {18013, 0, 35, 47},+ {18325, 0, 35, 47},+ {18864, 0, 35, 47},+ {19297, 0, 35, 47},+ {19612, 0, 35, 47},+ {20203, 0, 35, 47},+ {20519, 0, 35, 47},+ {20778, 0, 35, 47},+ {21059, 0, 35, 47},+ {21611, 0, 35, 47},+ {22173, 0, 35, 47},+ {22664, 0, 35, 47},+ {22929, 0, 35, 47},+ {23165, 0, 35, 47},+ {23697, 0, 35, 35},+ {23978, 0, 35, 47},+ {24534, 0, 35, 47},+ {25137, 0, 35, 47},+ {25419, 0, 35, 47},+ {25927, 0, 35, 47},+ {26066, 0, 35, 47},+ {26727, 0, 35, 47},+ {27077, 0, 35, 47},+ {27459, 0, 35, 47},+ {27969, 0, 35, 47},+ {28362, 0, 35, 47},+ {28945, 0, 35, 47},+ {29226, 0, 35, 39},+ {29681, 0, 35, 47},+ {29944, 0, 35, 47},+ {30381, 0, 35, 47},+ {30899, 0, 35, 47},+ {31239, 0, 35, 47},+ {31806, 0, 35, 47},+ {32126, 0, 35, 47},+ {32609, 0, 35, 47},+ {32869, 0, 35, 47},+ {33329, 0, 35, 47},+ {33749, 0, 35, 47},+ {34399, 0, 35, 47},+ {34703, 0, 35, 47},+ {35038, 0, 35, 47},+ {35587, 0, 35, 47},+ {35851, 0, 35, 47},+ {36439, 0, 35, 47},+ {36963, 0, 35, 47},+ {37268, 0, 35, 47},+ {37692, 0, 35, 47},+ {38334, 0, 35, 47},+ {39031, 0, 35, 47},+ {39500, 0, 35, 47},+ {40039, 0, 35, 47},+ {40355, 0, 35, 47},+ {40837, 0, 35, 47},+ {41282, 0, 35, 47},+ {41640, 0, 35, 47},+ {42061, 0, 35, 47},+ {42343, 0, 35, 47},+ {42597, 0, 35, 47},+ {42789, 0, 35, 47},+ {43056, 0, 35, 47},+ {43469, 0, 35, 47},+ {44055, 0, 35, 47},+ {44376, 0, 35, 47},+ {44906, 0, 35, 47},+ {45382, 0, 35, 47},+ {45935, 0, 35, 47},+ {46450, 0, 35, 47},+ {46972, 0, 35, 47},+ {47581, 0, 35, 47},+ {47939, 0, 35, 47},+ {48186, 0, 35, 47},+ {48817, 0, 35, 47},+ {49109, 0, 25, 33},+ {49370, 0, 35, 47},+ {49723, 0, 35, 47},+ {50062, 0, 35, 47},+ {50390, 0, 35, 47},+ {51014, 0, 35, 47},+ {51632, 0, 35, 47},+ {52148, 0, 35, 47},+ {52675, 0, 35, 47},+ {53201, 0, 35, 47},+ {53728, 0, 35, 47},+ {54263, 0, 35, 47},+ {54809, 0, 35, 47},+ {55102, 0, 35, 47},+ {55426, 0, 35, 47},+ {56035, 0, 35, 47},+ {56518, 0, 35, 47},+ {56963, 0, 35, 47},+ {57473, 0, 35, 47},+ {57997, 0, 35, 47},+ {58583, 0, 35, 47},+ {59313, 0, 35, 47},+ {59813, 0, 35, 47},+ {60435, 0, 35, 47},+ {60982, 0, 35, 47},+ {61587, 0, 35, 47},+ {62098, 0, 35, 47},+ {62665, 0, 35, 47},+ {62889, 0, 35, 47},+ {63127, 0, 35, 47},+ {63376, 0, 35, 47},+ {63575, 0, 35, 47},+ {63791, 0, 35, 47},+ {64047, 1, 35, 47},+ {64427, 1, 35, 47},+ {64854, 1, 35, 47},+ {65331, 1, 35, 47},+ {65759, 1, 35, 47},+ {66287, 1, 35, 47},+ {66766, 1, 35, 47},+ {67262, 1, 35, 47},+ {67754, 1, 35, 47},+ {68242, 1, 35, 47},+ {68746, 1, 35, 47},+ {69165, 1, 35, 47},+ {69631, 1, 35, 47},+ {70072, 1, 35, 47},+ {70543, 1, 35, 47},+ {71059, 1, 35, 47},+ {71524, 1, 35, 47},+ {71984, 1, 35, 47},+ {72390, 1, 35, 47},+ {72838, 1, 35, 47},+ {73263, 1, 35, 47},+ {73776, 1, 35, 47},+ {74270, 1, 35, 47},+ {74732, 1, 35, 47},+ {75084, 1, 35, 47},+ {75459, 1, 35, 47},+ {75905, 1, 35, 47},+ {76263, 1, 35, 47},+ {76701, 1, 35, 47},+ {77063, 1, 35, 47},+ {77434, 1, 35, 47},+ {77807, 1, 35, 47},+ {78138, 1, 35, 47},+ {78556, 1, 35, 47},+ {78983, 1, 35, 47},+ {79391, 1, 35, 47},+ {79894, 1, 35, 47},+ {80381, 1, 35, 47},+ {80938, 1, 35, 47},+ {81485, 1, 35, 47},+ {81949, 1, 35, 47},+ {82494, 1, 35, 47},+ {82937, 1, 35, 47},+ {83364, 1, 35, 47},+ {83893, 1, 35, 47},+ {84353, 1, 35, 47},+ {84843, 1, 35, 47},+ {85376, 1, 35, 47},+ {85876, 1, 35, 47},+ {86410, 1, 35, 47},+ {86810, 1, 35, 47},+ {87300, 1, 35, 47},+ {87888, 1, 35, 47},+ {88489, 1, 35, 47},+ {88707, 2, 35, 47},+ {89572, 2, 35, 47},+ {89869, 2, 35, 47},+ {90132, 2, 35, 47},+ {90382, 2, 35, 47},+ {90697, 2, 35, 47},+ {91014, 2, 35, 47},+ {91393, 2, 35, 47},+ {91739, 2, 35, 47},+ {92029, 2, 35, 47},+ {92298, 2, 35, 47},+ {92538, 2, 35, 47},+ {92810, 2, 35, 47},+ {92977, 2, 35, 47},+ {93260, 2, 35, 47},+ {93666, 2, 35, 47},+ {93985, 2, 35, 47},+ {94278, 2, 35, 47},+ {94723, 2, 35, 47},+ {95170, 2, 35, 47},+ {95571, 2, 35, 47},+ {96169, 2, 35, 47},+ {96619, 2, 35, 47},+ {97133, 2, 35, 47},+ {97607, 2, 35, 47},+ {98027, 2, 35, 47},+ {98414, 2, 35, 47},+ {98805, 2, 35, 47},+ {99276, 2, 35, 47},+ {99678, 2, 35, 47},+ {100125, 2, 35, 47},+ {100659, 2, 35, 47},+ {101154, 2, 35, 47},+ {101590, 2, 35, 47},+ {102083, 2, 35, 47},+ {102626, 2, 35, 47},+ {103169, 2, 35, 47},+ {103694, 2, 35, 47},+ {104260, 2, 35, 47},+ {104775, 2, 35, 47},+ {105223, 2, 35, 47},+ {105696, 2, 35, 47},+ {106223, 2, 35, 47},+ {106624, 2, 35, 47},+ {107076, 2, 35, 47},+ {107661, 2, 35, 47},+ {108226, 2, 35, 47},+ {108804, 2, 35, 47},+ {109346, 3, 35, 47},+ {109836, 3, 35, 47},+ {109871, 3, 35, 47},+ {110449, 3, 35, 47},+ {110637, 3, 35, 47},+ {110867, 3, 35, 47},+ {111232, 3, 35, 47},+ {111353, 3, 35, 47},+ {112111, 3, 35, 47},+ {112216, 3, 35, 47},+ {112430, 3, 35, 47},+ {112511, 3, 35, 47},+ {112598, 3, 35, 47},+ {112700, 3, 35, 47},+ {112755, 3, 35, 47},+ {113384, 3, 35, 47},+ {113435, 3, 35, 47},+ {113488, 3, 35, 47},+ {113544, 3, 35, 47},+ {113607, 3, 35, 47},+ {113674, 3, 35, 47},+ {113740, 3, 35, 47},+ {113815, 3, 35, 47},+ {113894, 3, 35, 47},+ {113980, 3, 35, 47},+ {114431, 3, 35, 47},+ {114876, 3, 35, 47},+ {115314, 3, 35, 47},+ {115368, 3, 35, 47},+ {115416, 3, 35, 47},+ {115467, 3, 35, 47},+ {115521, 3, 35, 47},+ {115582, 3, 35, 47},+ {115647, 3, 35, 47},+ {115712, 3, 35, 47},+ {115787, 3, 35, 47},+ {115865, 3, 35, 47},+ {115949, 3, 35, 47},+ {116357, 3, 35, 47},+ {116825, 3, 35, 47},+ {117277, 3, 35, 47},+ {117336, 3, 35, 47},+ {117383, 3, 35, 47},+ {117431, 3, 35, 47},+ {117482, 3, 35, 47},+ {117538, 3, 35, 47},+ {117597, 3, 35, 47},+ {117653, 3, 35, 47},+ {117718, 3, 35, 47},+ {117785, 3, 35, 47},+ {117857, 3, 35, 47},+ {118323, 3, 35, 47},+ {118782, 3, 35, 47},+ {119231, 3, 35, 47},+ {119280, 3, 35, 47},+ {119330, 3, 35, 47},+ {119383, 3, 35, 47},+ {119439, 3, 35, 47},+ {119501, 3, 35, 47},+ {119568, 3, 35, 47},+ {119635, 3, 35, 47},+ {119712, 3, 35, 47},+ {119792, 3, 35, 47},+ {119879, 3, 35, 47},+ {120289, 3, 35, 47},+ {120717, 3, 35, 47},+ {121210, 3, 35, 47},+ {121267, 4, 26, 26},+ {121406, 4, 26, 26},+ {121544, 4, 26, 26},+ {121653, 4, 26, 26},+ {121766, 4, 26, 26},+ {121858, 4, 26, 26},+ {121964, 4, 26, 26},+ {122075, 4, 26, 26},+ {122170, 4, 26, 26},+ {122261, 4, 26, 26},+ {122358, 4, 26, 26},+ {122482, 4, 26, 26},+ {122559, 4, 26, 26},+ {122668, 4, 26, 26},+ {122754, 4, 26, 26},+ {122869, 4, 26, 26},+ {122968, 4, 26, 26},+ {123068, 4, 26, 26},+ {123180, 4, 26, 26},+ {123281, 4, 26, 26},+ {123390, 4, 26, 26},+ {123496, 4, 26, 26},+ {123601, 4, 26, 26},+ {123703, 4, 26, 26},+ {123805, 4, 26, 26},+ {123906, 4, 26, 26},+ {124095, 4, 26, 26},+ {124276, 4, 26, 26},+ {124457, 4, 26, 26},+ {124650, 4, 26, 26},+ {124825, 4, 26, 26},+ {124918, 4, 19, 19},+ {125064, 4, 19, 19},+ {125206, 4, 19, 19},+ {125357, 4, 19, 19},+ {125507, 4, 19, 19},+ {125657, 4, 19, 19},+ {125789, 4, 19, 19},+ {125922, 4, 19, 19},+ {126058, 4, 19, 19},+ {126208, 4, 19, 19},+ {126345, 4, 19, 19},+ {126494, 4, 19, 19},+ {126643, 4, 19, 19},+ {126796, 4, 19, 19},+ {126947, 4, 19, 19},+ {127105, 4, 19, 19},+ {127266, 4, 19, 19},+ {127386, 4, 19, 19},+ {127512, 4, 19, 19},+ {127639, 4, 19, 19},+ {127776, 4, 19, 19},+ {127901, 4, 19, 19},+ {128052, 4, 19, 19},+ {128198, 4, 19, 19},+ {128351, 4, 72, 36},+ {129340, 4, 15, 15},+ {129464, 4, 11, 11},+ {129545, 5, 212, 138},+};+const uint8_t art_blob[132510] = {+ 14,0,1,24,40,45,49,47,47,39,77,79,58,25,29,74,75,188,120,60,180,159,198,164,+ 9,240,218,0,222,150,59,247,168,181,81,225,137,217,44,173,154,177,126,0,134,60,220,171,+ 175,13,224,81,146,203,42,75,188,180,224,221,242,215,109,21,241,227,160,122,238,6,3,18,+ 59,53,71,191,22,36,139,13,62,122,112,56,190,217,183,78,250,203,123,217,205,17,147,205,+ 150,173,156,85,23,82,252,41,27,63,54,35,244,33,187,167,155,141,11,49,77,194,206,34,+ 175,233,130,70,134,227,164,191,61,135,25,153,121,39,199,96,111,14,43,247,192,185,236,27,+ 23,95,253,127,12,55,185,10,129,126,44,197,100,14,103,41,29,49,179,56,11,146,155,21,+ 17,134,199,21,250,154,0,171,44,104,254,15,180,11,81,83,202,34,194,246,46,133,183,1,+ 61,83,28,178,35,89,207,163,92,22,30,104,159,248,173,76,63,84,159,43,245,213,178,91,+ 72,4,80,23,162,26,229,50,23,0,1,29,46,53,43,34,39,28,35,28,24,19,27,27,+ 35,24,18,10,17,22,22,48,48,54,18,11,255,255,166,18,208,165,97,5,223,50,135,214,+ 161,203,213,83,147,89,207,215,67,86,58,141,11,238,105,118,61,164,87,114,119,120,85,98,+ 173,127,149,196,76,235,22,227,211,30,186,164,71,38,232,231,231,214,248,173,110,204,201,96,+ 62,112,168,0,46,111,192,241,52,109,104,74,87,134,125,215,226,86,95,196,62,146,40,193,+ 163,160,129,9,114,168,113,106,148,234,50,70,187,150,158,100,206,240,209,91,238,131,221,223,+ 186,187,80,61,211,28,91,216,1,20,168,16,195,105,149,197,34,206,229,187,217,204,22,112,+ 176,197,17,97,60,116,221,217,154,238,33,166,2,105,123,214,98,4,205,221,175,118,140,153,+ 71,174,71,218,41,131,184,231,4,210,249,222,21,65,72,165,214,34,132,142,89,245,84,170,+ 15,200,227,67,11,116,87,26,148,53,221,175,126,179,19,109,115,77,147,249,69,134,112,65,+ 46,32,180,221,131,167,141,248,241,157,236,59,209,18,247,206,176,177,65,254,151,183,1,91,+ 103,190,20,130,154,12,204,148,190,223,41,255,76,59,155,67,169,239,237,83,242,225,196,207,+ 159,14,0,1,4,76,93,89,26,10,33,74,73,51,10,35,37,69,42,71,50,55,22,67,+ 25,68,37,224,177,155,7,113,204,16,89,138,229,39,69,240,151,157,13,202,80,198,165,112,+ 166,158,216,76,41,11,43,210,242,76,250,15,91,197,18,71,239,63,75,164,89,23,36,109,+ 131,193,138,230,177,135,192,241,81,88,227,169,60,115,207,165,214,87,122,179,42,105,250,188,+ 166,113,92,44,84,186,149,206,128,66,226,22,90,252,59,126,252,196,25,40,221,131,183,231,+ 229,217,4,88,237,2,93,6,17,181,112,126,169,35,125,228,77,20,140,9,114,74,178,40,+ 155,79,116,193,252,22,96,111,146,153,151,227,77,34,68,121,98,218,233,207,21,152,104,214,+ 24,54,42,173,19,181,213,75,91,1,245,146,35,211,80,55,212,53,166,167,18,23,215,181,+ 122,238,154,189,128,170,218,15,227,188,88,145,2,85,171,79,144,46,151,33,18,71,113,171,+ 197,75,221,221,103,34,2,254,237,175,3,42,69,92,168,222,144,118,39,111,41,70,188,148,+ 52,157,109,254,208,9,14,110,153,40,14,126,143,76,52,204,197,119,227,29,64,128,226,202,+ 228,211,52,209,246,41,216,192,38,104,226,41,253,71,165,95,218,188,238,118,222,106,63,140,+ 222,181,225,22,153,130,92,215,81,195,159,139,97,86,150,102,5,94,14,231,56,249,137,206,+ 182,68,67,112,22,195,83,155,210,189,164,49,179,238,141,101,25,140,153,117,183,188,88,29,+ 176,106,73,36,79,182,116,2,73,128,70,200,62,156,226,203,121,213,88,155,122,72,213,13,+ 157,207,6,87,114,182,74,81,78,113,84,18,134,245,169,190,28,22,190,163,164,92,154,219,+ 112,237,238,156,49,103,143,180,1,45,124,1,184,241,115,136,97,125,51,208,67,126,141,146,+ 210,66,237,17,179,116,68,5,244,240,24,210,80,144,163,51,42,210,191,116,159,59,91,10,+ 97,101,205,174,174,101,213,24,62,15,25,14,90,148,133,9,109,145,195,73,151,73,115,29,+ 120,98,32,43,158,27,40,221,170,111,136,30,51,48,40,13,28,19,1,78,24,238,234,190,+ 165,255,255,250,171,194,23,195,16,0,1,37,55,75,80,65,45,60,80,81,29,8,11,8,+ 8,5,40,38,70,36,136,237,233,140,174,207,206,142,87,61,228,111,242,171,20,20,100,147,+ 2,21,188,25,242,121,242,147,246,31,141,204,141,229,250,140,96,144,144,8,71,134,139,88,+ 74,188,81,138,181,228,97,249,22,157,30,128,10,103,14,128,251,106,159,47,253,93,23,107,+ 33,54,110,166,48,71,57,167,89,53,22,207,27,26,255,180,103,212,0,204,171,27,227,182,+ 148,188,153,92,29,150,4,202,98,107,30,119,127,19,71,166,190,119,86,158,197,78,145,57,+ 60,228,121,251,56,83,105,55,165,17,162,62,25,90,219,253,172,26,114,172,207,125,162,155,+ 107,35,49,163,114,97,254,77,130,32,141,91,19,65,171,27,119,30,23,230,243,150,51,142,+ 40,168,141,162,206,165,80,62,135,49,169,224,58,89,207,4,167,171,184,139,196,80,213,38,+ 211,135,56,249,172,86,222,50,23,139,152,233,220,179,213,185,243,3,171,159,180,54,72,22,+ 76,23,236,6,58,188,32,121,109,200,224,103,35,78,83,59,221,216,235,160,230,145,237,95,+ 240,155,171,180,40,107,217,124,206,104,46,166,244,49,128,172,121,221,199,39,158,140,170,171,+ 186,210,118,161,142,120,49,253,40,244,171,81,174,144,43,58,153,108,124,2,85,89,172,244,+ 120,20,175,96,116,150,184,106,18,139,22,36,25,89,60,202,184,46,193,28,0,143,69,23,+ 150,38,87,20,54,255,240,245,53,174,33,132,185,74,212,166,140,232,223,91,166,130,239,234,+ 39,240,22,41,152,196,139,30,161,61,239,232,84,29,42,159,166,172,171,114,54,200,177,34,+ 103,166,116,197,130,35,66,149,194,98,15,35,73,102,161,175,200,100,18,158,63,186,201,152,+ 239,26,71,153,33,174,36,183,44,242,166,38,11,99,114,78,32,96,88,218,46,191,20,55,+ 233,188,94,98,250,85,160,153,74,233,131,140,234,27,33,161,245,153,244,170,204,117,166,165,+ 5,196,150,83,66,153,14,17,230,124,187,92,8,8,70,166,83,61,80,143,165,201,12,7,+ 163,170,79,16,183,253,112,135,207,9,204,127,150,237,184,175,109,59,188,9,102,28,187,16,+ 125,181,20,198,7,212,213,53,1,40,197,93,121,146,84,149,255,254,233,52,154,115,0,10,+ 0,1,19,48,75,77,64,69,51,81,97,106,61,1,133,17,1,61,74,0,155,140,133,197,+ 255,0,255,64,10,193,119,160,153,217,68,136,65,130,2,66,99,60,186,181,108,163,9,156,+ 130,112,54,7,145,228,205,168,210,168,9,155,196,82,96,100,213,211,86,171,143,134,34,128,+ 42,10,147,58,159,172,130,66,26,82,162,123,127,247,245,10,31,143,157,14,206,70,194,43,+ 216,138,28,39,49,63,120,202,12,24,183,240,238,238,72,208,115,176,123,249,226,106,213,125,+ 240,152,94,116,238,67,102,245,219,100,15,249,248,205,10,137,225,195,119,173,148,96,37,133,+ 114,8,209,240,27,36,218,30,27,243,162,38,31,235,249,195,15,197,95,99,162,177,217,127,+ 22,120,186,229,211,115,253,4,13,169,81,128,81,247,165,184,143,74,164,57,96,243,131,234,+ 112,203,43,248,207,75,51,122,20,102,93,56,43,237,104,47,239,170,31,183,100,99,16,232,+ 95,132,197,218,37,100,99,250,142,151,85,16,208,55,20,162,210,61,212,238,84,160,139,114,+ 154,12,178,29,4,248,10,205,131,167,159,244,78,235,69,184,45,252,169,40,157,57,185,2,+ 209,85,251,18,128,73,121,196,141,218,133,133,198,76,139,172,185,219,243,150,128,143,103,235,+ 44,244,93,76,195,228,55,135,230,92,125,79,155,229,63,91,241,103,136,36,164,228,147,18,+ 151,120,248,252,106,204,105,93,145,18,228,41,82,73,69,232,249,245,49,167,136,110,143,91,+ 107,155,108,212,190,163,26,46,240,82,77,123,105,163,37,185,254,247,195,164,48,46,14,0,+ 1,12,47,75,69,42,64,74,77,27,12,71,71,71,18,16,2,133,17,203,116,169,189,123,+ 134,22,89,121,25,163,206,121,19,53,200,159,121,252,144,79,144,255,161,153,113,38,134,70,+ 186,117,250,13,194,14,66,6,11,166,92,94,117,103,120,122,92,246,252,193,10,212,214,77,+ 79,239,34,137,35,239,3,39,90,27,2,72,186,224,45,32,98,117,156,160,130,180,149,136,+ 134,15,20,111,2,244,40,111,92,215,248,205,24,164,229,75,195,50,194,47,139,19,43,230,+ 218,247,253,232,221,144,69,174,214,143,146,76,45,129,30,65,59,157,140,47,146,71,152,215,+ 176,76,203,151,168,3,151,9,181,131,241,117,147,24,135,129,25,228,164,83,90,90,75,215,+ 44,40,239,226,148,121,108,211,113,144,252,30,64,34,114,187,251,151,90,184,142,222,199,102,+ 4,168,102,233,83,87,106,183,232,253,166,228,96,162,234,218,55,253,52,253,101,241,211,194,+ 12,214,171,98,8,26,29,81,162,113,88,119,41,245,238,195,41,44,58,74,204,83,36,34,+ 79,187,123,142,208,42,96,227,57,86,13,35,140,128,51,35,59,219,184,170,13,105,203,18,+ 218,84,176,116,182,95,85,27,160,117,10,119,148,97,226,41,167,146,198,60,225,92,30,176,+ 129,2,167,220,49,216,130,74,81,123,56,7,97,150,27,210,73,9,85,93,214,56,254,1,+ 249,177,198,223,130,195,178,234,245,211,165,138,197,172,111,197,111,6,238,185,167,183,43,255,+ 169,99,153,163,0,4,165,213,50,154,42,192,46,192,242,241,247,45,22,16,39,111,148,91,+ 130,247,167,171,146,55,231,57,16,208,228,204,82,254,26,58,220,36,238,71,175,42,228,254,+ 116,221,62,214,50,67,231,13,86,244,119,224,197,134,216,255,59,76,183,238,213,83,87,192,+ 102,3,218,209,92,237,7,9,151,1,244,64,117,138,243,153,101,101,230,37,152,236,102,127,+ 25,163,71,120,9,88,160,245,127,51,207,192,159,193,25,218,56,104,61,213,18,191,212,255,+ 80,80,215,83,169,95,183,39,30,197,22,243,145,42,242,124,203,97,59,94,177,142,134,131,+ 96,71,255,254,43,91,215,106,133,23,0,1,23,40,41,19,15,24,30,25,21,17,15,28,+ 42,62,45,52,32,45,32,31,17,29,35,33,6,255,255,166,8,92,148,102,57,180,121,50,+ 84,34,109,203,1,143,254,149,186,24,200,24,32,133,133,82,251,50,54,142,97,247,145,129,+ 59,183,220,134,26,55,56,56,51,225,59,200,155,34,182,127,130,93,106,125,226,69,30,186,+ 251,105,122,117,103,172,222,89,74,150,75,41,14,199,172,128,116,144,219,179,15,49,210,189,+ 27,236,234,89,175,110,148,81,136,86,60,63,152,56,2,171,41,56,108,184,46,73,229,207,+ 242,48,3,21,87,191,98,46,204,83,254,23,49,167,135,98,236,173,84,240,68,241,229,6,+ 203,172,107,58,108,34,16,253,139,147,243,161,134,212,39,211,23,38,80,210,87,148,163,94,+ 93,187,214,252,189,14,70,193,32,73,166,180,249,170,250,238,173,237,118,10,100,253,8,28,+ 253,63,72,111,219,76,56,66,56,246,211,176,187,18,205,38,90,130,57,177,102,132,111,23,+ 121,218,201,129,179,119,43,119,85,228,224,248,47,61,90,152,27,15,159,28,132,33,223,8,+ 128,110,200,116,62,240,139,68,108,78,183,158,219,240,61,172,33,121,174,33,131,196,29,117,+ 6,202,188,139,173,0,27,169,201,67,45,153,10,126,238,47,35,73,173,170,8,23,0,1,+ 15,38,39,23,7,6,12,16,30,24,20,25,37,59,43,38,23,20,36,60,60,59,32,29,+ 250,203,106,229,155,113,79,13,138,178,130,217,243,119,110,182,176,179,245,24,75,54,191,211,+ 143,99,111,192,180,232,77,187,57,247,55,239,112,25,165,88,74,138,26,45,1,38,171,67,+ 27,160,128,210,26,250,86,211,1,206,218,192,131,153,33,104,125,43,192,64,140,37,57,110,+ 205,76,151,127,66,38,227,182,232,117,174,2,68,186,17,141,159,17,16,137,88,8,3,2,+ 235,181,116,170,241,13,113,17,14,21,122,53,112,83,149,156,160,24,166,92,129,4,231,206,+ 61,28,43,81,104,96,196,52,195,172,147,176,149,250,37,71,181,189,209,207,123,22,32,250,+ 133,163,176,138,131,70,193,40,116,115,64,161,227,0,185,233,73,63,98,55,215,127,241,76,+ 182,18,1,77,164,225,128,238,84,53,30,108,250,29,30,183,43,195,93,145,173,65,185,88,+ 35,156,189,86,119,11,108,196,174,203,17,122,36,150,27,138,17,155,138,135,112,182,178,147,+ 60,205,16,182,204,74,30,37,194,168,93,185,129,187,156,95,211,149,64,169,92,131,54,109,+ 158,216,55,6,50,53,208,174,140,64,111,9,53,85,23,149,194,232,69,73,144,103,231,216,+ 203,109,160,164,101,251,163,158,54,160,135,181,231,38,163,134,54,230,247,76,53,82,22,0,+ 1,16,38,39,23,8,14,34,69,64,45,11,11,32,52,50,29,11,23,28,35,46,45,31,+ 6,255,255,165,223,111,139,196,90,123,130,1,121,193,144,81,176,130,212,143,11,38,106,135,+ 67,252,243,110,237,89,77,72,190,152,250,185,79,20,131,70,226,78,197,97,149,115,194,44,+ 30,149,241,101,79,88,117,39,35,113,168,253,146,112,23,74,34,62,169,232,171,217,78,13,+ 29,206,53,19,149,2,245,37,201,134,176,106,190,174,68,105,231,222,50,234,49,227,147,20,+ 204,224,203,133,86,234,164,88,179,10,198,161,91,228,49,174,108,156,160,209,131,247,111,103,+ 213,211,160,243,178,12,23,17,198,25,24,33,18,192,227,255,255,21,195,164,118,128,100,249,+ 115,194,244,126,157,222,74,144,202,228,179,187,242,235,12,67,252,226,38,196,255,189,143,223,+ 116,15,89,30,64,103,213,163,213,175,61,228,116,75,146,98,53,138,75,173,131,246,180,198,+ 188,76,110,185,141,33,252,152,225,37,44,215,254,119,189,64,148,3,46,90,197,113,31,44,+ 95,191,7,251,107,183,42,45,91,57,226,171,116,19,211,176,181,126,161,171,78,145,131,211,+ 249,39,118,182,212,83,190,178,204,53,27,106,2,40,67,218,231,134,103,167,216,169,126,100,+ 231,173,91,40,183,88,0,101,164,219,194,1,95,140,2,142,27,212,235,101,19,78,22,152,+ 176,86,42,196,251,52,218,55,10,182,245,170,215,168,192,74,92,144,205,53,74,23,0,1,+ 3,19,28,29,21,16,10,10,6,11,23,25,35,36,39,34,35,64,56,45,23,66,66,51,+ 251,173,155,181,64,241,79,14,47,235,42,95,99,61,212,85,94,158,14,43,227,186,140,93,+ 1,39,221,173,48,84,121,58,145,147,101,120,87,73,242,84,210,51,56,183,182,100,78,101,+ 152,159,220,119,132,189,203,133,70,243,14,183,72,7,165,126,200,91,175,120,16,142,153,187,+ 72,73,59,63,27,28,0,239,77,1,63,99,47,168,137,188,254,82,67,181,221,65,51,47,+ 9,158,248,58,81,174,248,204,119,73,186,1,69,92,129,211,195,6,100,107,235,45,61,184,+ 8,123,74,222,15,114,44,37,184,16,123,115,253,111,210,170,84,92,63,205,56,152,6,124,+ 210,10,224,215,190,83,206,204,64,130,41,84,210,117,249,214,163,224,111,11,194,37,110,178,+ 175,255,106,10,187,252,245,200,141,181,6,154,78,136,142,146,25,188,61,73,30,88,172,60,+ 234,224,141,135,227,253,28,203,43,189,19,119,189,84,74,154,145,158,197,14,221,210,245,160,+ 180,241,234,146,159,52,194,248,79,11,0,66,207,251,38,66,37,177,69,144,213,190,174,253,+ 254,208,63,194,71,37,144,202,8,192,53,36,137,47,41,107,3,103,118,253,129,96,8,147,+ 121,151,133,167,56,208,38,197,111,20,34,148,152,151,19,162,17,61,166,70,208,32,15,79,+ 165,51,73,219,230,23,0,1,0,13,18,23,16,19,13,16,8,9,11,30,28,57,39,42,+ 33,67,70,55,21,59,54,50,253,113,219,116,46,241,79,51,18,90,65,38,103,191,76,51,+ 171,253,37,8,29,172,195,86,68,228,247,196,7,35,120,69,137,146,184,239,155,146,53,153,+ 203,94,63,151,33,19,89,237,202,193,8,69,0,38,127,216,229,114,45,228,83,10,21,14,+ 161,253,97,155,69,230,121,146,116,105,89,38,44,28,255,230,90,33,255,63,90,102,115,169,+ 88,237,134,87,220,87,253,171,235,191,15,65,66,5,113,219,237,209,231,200,81,18,56,9,+ 238,34,168,50,31,164,45,9,167,89,19,120,186,232,205,85,5,111,127,50,111,11,96,245,+ 227,188,24,202,213,254,10,174,167,62,229,146,32,113,100,251,239,111,67,107,115,209,165,250,+ 136,212,246,27,140,37,61,209,129,65,3,233,10,242,6,153,146,96,108,139,124,233,79,73,+ 183,134,237,84,57,83,189,108,232,110,59,94,23,127,192,192,67,103,1,134,143,2,16,117,+ 33,90,125,210,70,79,191,115,120,69,61,124,59,40,90,11,240,155,210,27,109,135,150,162,+ 140,213,82,245,54,19,81,238,2,104,62,9,53,0,200,45,163,195,122,5,167,54,175,74,+ 96,106,213,150,233,188,50,195,98,200,4,79,150,156,226,31,15,169,224,197,102,33,231,200,+ 123,17,64,54,23,229,39,251,243,110,139,217,164,67,245,29,51,26,254,129,26,89,100,71,+ 225,148,4,115,58,161,21,158,192,19,128,224,246,223,132,203,21,206,151,235,113,201,107,154,+ 86,101,118,21,0,1,24,40,41,19,9,22,30,28,29,34,38,46,37,42,20,13,14,30,+ 60,51,66,34,20,203,106,229,155,113,62,64,71,162,140,98,34,108,84,163,180,197,34,178,+ 66,13,250,89,54,36,28,154,47,73,144,243,253,79,239,0,239,63,88,51,15,104,5,198,+ 14,146,236,34,108,247,21,253,80,51,68,32,250,253,5,210,201,93,36,10,35,76,37,18,+ 62,244,129,74,115,92,168,133,172,222,173,164,164,77,93,244,31,41,232,136,205,70,237,115,+ 186,50,252,132,234,221,230,180,91,211,251,216,74,117,57,59,223,90,238,243,17,222,187,160,+ 245,147,35,45,103,93,151,92,69,118,161,207,243,16,32,156,97,246,7,130,60,201,253,248,+ 254,79,219,119,90,238,29,68,225,64,121,239,18,153,7,145,85,243,197,145,41,115,63,252,+ 32,107,149,44,211,194,81,206,178,6,109,114,115,202,214,113,195,1,133,102,200,107,32,46,+ 237,130,27,3,41,127,121,237,72,217,232,201,36,187,31,228,214,251,143,254,116,214,238,160,+ 90,98,33,214,9,22,249,245,223,130,123,214,181,164,245,89,1,28,161,80,53,26,109,13,+ 71,78,195,49,245,193,189,182,45,230,174,215,96,95,93,176,235,21,92,191,108,173,240,8,+ 32,99,225,249,196,251,80,160,21,0,1,24,40,44,34,22,19,11,14,13,21,37,38,24,+ 27,27,35,24,29,37,64,84,65,13,7,14,139,232,146,206,88,234,114,165,36,115,103,236,+ 106,13,70,207,193,36,118,211,192,97,46,6,41,55,134,172,9,24,43,99,99,235,177,172,+ 127,3,116,108,220,91,144,43,90,229,22,242,211,132,97,125,162,252,110,216,176,198,72,161,+ 150,41,175,3,171,246,237,52,176,154,38,241,188,225,183,255,134,186,120,164,92,119,97,82,+ 142,151,5,8,79,130,119,71,236,53,53,47,178,85,60,13,87,213,64,163,71,125,0,192,+ 168,211,53,182,206,235,141,121,228,176,127,90,5,148,188,99,11,232,234,194,58,53,200,217,+ 41,65,217,17,88,60,70,133,203,186,117,13,70,85,151,192,68,102,123,139,92,114,85,12,+ 102,191,147,99,78,85,213,169,96,159,62,248,79,9,111,73,213,113,2,125,213,23,228,102,+ 234,8,185,226,98,117,113,1,185,27,131,64,242,114,143,64,132,103,73,96,152,110,69,16,+ 6,20,244,250,139,76,96,25,36,38,2,150,131,235,109,16,19,185,72,126,28,226,224,146,+ 243,65,101,27,187,226,52,114,39,98,84,251,168,223,170,166,189,96,136,155,111,112,12,73,+ 10,74,225,102,66,172,83,220,131,229,54,249,40,172,65,32,239,17,190,247,20,185,242,89,+ 20,0,1,17,24,44,30,36,27,27,55,51,53,39,50,49,25,9,7,13,12,13,63,60,+ 43,233,63,91,142,16,139,129,80,173,137,64,192,102,233,180,197,61,0,74,127,174,155,33,+ 56,5,175,66,208,41,112,2,25,87,15,50,21,63,43,243,6,176,197,150,88,244,59,19,+ 147,125,193,103,0,74,8,250,103,57,163,166,181,201,178,115,124,90,47,16,92,255,11,78,+ 187,20,223,209,96,154,77,210,178,63,41,210,29,209,174,48,9,1,193,237,117,28,200,154,+ 167,124,62,87,13,87,218,14,135,5,207,72,5,171,191,163,32,142,85,163,147,226,255,238,+ 45,71,205,162,82,202,206,180,223,209,179,139,245,163,214,156,92,246,160,201,139,188,93,234,+ 181,78,77,116,173,7,12,251,113,84,3,41,29,122,178,206,206,81,117,161,251,128,140,42,+ 36,103,54,85,188,10,243,175,111,92,225,139,186,40,42,251,91,51,218,119,9,137,91,134,+ 62,181,130,254,149,67,194,27,62,67,117,93,68,160,149,34,238,253,156,249,195,184,113,5,+ 140,193,208,126,14,162,106,39,180,164,174,125,44,171,164,203,199,57,231,188,0,188,61,224,+ 46,211,18,42,210,10,7,24,75,18,114,254,74,186,93,0,87,60,14,162,192,208,27,68,+ 201,75,3,122,38,40,159,32,148,26,144,75,46,253,250,222,191,124,135,50,123,216,70,48,+ 112,5,109,20,95,11,199,84,177,75,200,22,184,184,176,195,20,178,63,144,140,250,179,91,+ 235,252,177,11,236,23,0,1,15,40,41,27,9,15,13,14,7,17,29,29,25,23,33,51,+ 56,53,37,32,35,66,52,39,243,203,106,229,155,113,81,157,217,2,1,233,113,251,175,220,+ 101,86,71,106,179,234,232,103,220,141,149,29,149,110,179,7,80,78,196,167,4,88,122,195,+ 219,34,189,177,192,245,196,43,139,144,228,19,178,52,43,8,23,150,250,234,137,59,89,85,+ 187,118,58,127,14,27,49,145,223,93,174,199,166,187,59,172,155,226,226,127,162,236,22,144,+ 135,235,64,193,39,38,114,167,135,156,180,79,128,255,72,44,66,136,111,162,225,78,90,204,+ 80,95,165,157,207,17,255,122,29,129,164,167,199,226,53,77,133,190,20,214,136,209,244,53,+ 51,184,164,22,129,207,113,93,191,132,20,153,177,148,145,73,32,205,62,3,2,40,133,212,+ 185,189,139,237,198,68,41,232,91,195,149,114,77,236,123,82,45,210,244,236,10,130,192,233,+ 164,140,162,231,166,1,62,56,61,5,204,79,55,36,15,4,207,202,153,195,70,242,161,248,+ 177,63,206,165,105,224,186,46,81,167,124,3,195,173,69,213,31,222,72,47,109,48,166,146,+ 103,124,90,46,10,220,180,126,56,15,204,247,78,102,239,33,7,188,105,196,127,142,58,74,+ 154,77,247,47,180,229,214,219,43,143,52,131,102,1,148,214,35,124,202,29,68,197,234,246,+ 171,107,117,97,252,168,71,20,0,1,25,40,45,29,24,30,21,16,39,75,74,56,37,47,+ 37,25,22,20,34,32,27,6,255,255,165,152,9,154,99,33,239,68,135,35,15,194,152,96,+ 189,52,3,95,69,207,159,61,91,120,43,66,20,220,10,63,31,139,210,190,15,1,142,0,+ 173,40,99,192,63,22,164,111,19,196,211,103,163,56,80,143,118,88,242,16,154,94,3,229,+ 105,208,255,7,193,207,103,183,225,61,53,186,220,190,21,60,103,86,103,100,44,189,108,60,+ 169,74,105,243,135,102,11,190,56,46,123,72,116,120,106,99,176,56,203,18,111,77,133,170,+ 38,167,131,59,173,205,189,128,83,122,76,233,177,253,157,192,196,240,11,3,170,170,144,140,+ 189,178,123,27,69,139,54,230,168,61,195,167,19,84,195,59,75,109,138,121,106,119,6,131,+ 56,86,139,70,49,188,170,82,249,48,209,123,8,11,149,9,182,253,199,56,141,193,243,10,+ 219,107,189,253,49,18,44,96,3,40,178,172,136,139,54,2,22,28,250,75,232,193,157,91,+ 144,89,114,246,4,100,132,118,218,15,189,244,96,63,197,12,63,137,17,219,65,81,1,60,+ 107,110,89,255,65,126,91,82,212,120,157,83,36,172,140,139,233,61,21,146,180,37,211,192,+ 141,96,123,254,186,234,85,193,43,85,178,233,79,37,132,143,9,124,110,96,254,31,178,125,+ 2,210,33,23,0,1,3,8,13,33,38,35,36,34,38,17,22,26,22,26,39,54,49,37,+ 28,24,13,40,54,52,6,173,155,181,64,241,40,81,251,137,153,191,113,29,220,236,103,159,+ 41,27,1,27,226,137,211,241,102,94,60,8,20,175,69,245,203,47,57,57,114,233,63,228,+ 48,125,70,227,233,248,32,180,237,145,57,232,220,102,162,92,46,133,61,121,80,171,130,193,+ 184,94,52,90,96,220,218,45,150,110,244,18,235,20,50,182,79,186,251,200,108,15,224,148,+ 164,77,189,12,60,227,218,236,104,134,77,223,175,29,178,169,7,189,228,16,219,131,21,239,+ 59,108,21,195,85,41,50,251,3,217,56,215,129,91,215,78,105,99,68,190,252,174,14,168,+ 163,184,136,114,190,47,128,162,104,242,189,196,71,253,125,184,253,33,190,67,63,67,208,172,+ 81,86,59,198,203,104,89,35,122,90,142,46,129,184,133,52,188,47,34,203,159,174,50,207,+ 87,31,197,132,84,60,196,232,204,100,71,240,53,93,89,92,161,210,94,163,138,216,41,53,+ 140,57,12,191,234,81,243,143,70,15,0,1,7,12,13,5,17,26,29,17,36,70,141,113,+ 109,61,66,30,4,91,202,98,43,201,221,204,137,173,8,143,107,206,207,147,5,230,144,174,+ 158,175,68,50,127,176,69,123,104,192,88,101,30,134,18,182,239,34,69,177,196,57,239,28,+ 90,253,173,202,32,123,186,5,108,144,167,253,178,25,241,83,177,115,187,130,89,230,205,207,+ 27,235,156,81,205,173,113,22,61,174,203,82,81,234,110,193,225,38,194,157,41,242,187,220,+ 41,160,151,22,72,79,102,51,10,14,166,206,195,113,106,211,22,113,81,46,164,13,5,163,+ 2,221,249,86,136,70,139,22,148,120,248,57,26,240,175,6,221,1,177,50,113,19,193,237,+ 160,226,30,185,126,129,36,127,195,78,132,68,10,0,1,19,39,47,55,60,77,105,94,79,+ 74,61,84,68,237,83,156,123,226,159,142,57,42,88,99,235,86,134,17,60,111,214,203,14,+ 5,162,67,110,27,227,255,183,186,185,67,13,174,243,207,232,18,30,245,144,147,246,153,195,+ 75,93,172,168,240,52,74,42,7,227,150,202,51,95,193,41,166,189,113,235,143,124,224,222,+ 47,106,71,153,6,206,98,189,117,105,217,161,129,181,11,58,86,38,88,157,100,77,2,159,+ 162,126,133,53,108,249,44,6,66,22,135,37,216,195,76,52,203,213,104,100,12,52,118,191,+ 72,248,231,92,174,9,122,22,65,24,173,138,26,226,26,147,163,185,72,135,235,61,134,173,+ 21,20,202,141,163,168,155,106,237,60,213,155,253,5,54,49,5,128,79,84,98,73,21,130,+ 11,90,57,55,222,179,82,191,236,0,46,245,194,177,120,236,58,234,20,128,170,121,242,225,+ 146,231,69,65,253,205,189,131,212,215,243,28,49,79,10,246,148,244,243,174,90,179,183,141,+ 255,135,38,45,165,19,129,211,58,176,52,181,214,92,165,216,216,229,180,225,124,225,200,123,+ 35,71,145,77,98,242,28,39,90,255,253,187,230,132,164,22,0,1,9,13,26,17,25,15,+ 17,11,34,53,66,42,47,59,71,55,34,20,13,16,39,41,31,6,255,255,165,233,227,161,+ 145,169,65,214,253,207,135,133,59,188,179,104,68,156,116,119,38,192,56,179,175,236,39,4,+ 247,219,219,50,89,157,45,62,163,162,120,80,219,174,38,167,113,76,132,240,53,168,15,124,+ 238,243,90,72,74,7,197,70,137,119,91,121,127,17,113,195,208,90,128,86,235,130,238,222,+ 218,239,23,96,128,17,15,89,37,182,212,122,234,178,187,246,174,166,16,63,214,122,103,99,+ 79,166,121,49,108,55,170,122,162,244,12,246,166,106,107,115,211,234,191,105,65,116,99,223,+ 165,240,34,141,44,56,163,219,85,108,220,93,247,112,7,135,231,249,24,226,230,239,214,186,+ 181,111,84,16,142,179,197,5,201,71,182,91,187,82,76,100,174,178,158,19,215,34,121,168,+ 112,254,2,77,33,112,25,120,110,40,92,243,241,214,180,137,188,104,40,187,215,176,173,38,+ 25,17,58,105,10,21,0,51,54,76,46,48,33,22,15,12,4,9,10,55,56,60,24,20,+ 20,14,24,37,39,24,248,83,85,171,230,232,202,202,11,232,23,51,117,172,108,184,73,124,+ 248,77,20,208,9,80,14,66,99,218,110,209,36,72,191,120,9,140,55,211,82,244,202,241,+ 3,192,111,121,251,209,44,121,63,39,126,121,56,45,124,85,236,134,238,220,185,103,207,11,+ 106,162,31,97,137,223,18,76,214,248,52,154,69,234,74,15,202,209,159,56,201,217,168,152,+ 125,225,207,106,246,55,103,254,107,245,254,72,211,205,169,180,236,197,153,124,148,130,235,225,+ 58,242,31,191,23,5,250,13,67,210,65,187,228,65,192,246,230,251,194,110,186,203,74,151,+ 63,134,5,40,140,242,177,20,250,181,171,121,3,78,29,32,108,170,80,178,100,176,196,62,+ 183,247,164,104,136,232,200,127,238,214,152,120,217,136,61,4,112,121,93,144,210,182,81,180,+ 84,100,3,147,49,170,162,231,71,72,228,131,16,194,250,178,102,48,11,119,144,159,190,32,+ 115,74,156,27,186,13,229,7,44,206,33,241,72,220,226,84,174,65,4,120,116,152,139,204,+ 48,100,219,127,36,168,122,103,27,209,147,239,137,71,15,254,75,184,107,15,160,33,97,182,+ 252,22,228,196,198,201,241,188,173,101,246,211,87,12,21,140,236,54,85,253,143,161,179,31,+ 71,40,119,202,24,43,126,113,251,33,137,89,134,83,231,28,142,19,172,152,106,251,255,170,+ 163,65,112,49,238,188,148,95,176,206,123,250,35,20,220,111,56,249,94,149,62,41,36,135,+ 110,181,44,68,127,188,196,73,160,149,236,17,213,173,183,81,244,94,36,36,249,239,19,180,+ 28,206,153,120,88,176,169,20,0,1,41,67,75,70,48,50,22,21,14,23,23,30,32,65,+ 58,45,20,18,13,11,7,247,66,183,53,162,227,58,151,168,217,222,254,242,191,100,240,93,+ 108,87,93,15,22,34,193,186,247,150,87,96,7,3,189,121,143,36,113,190,191,131,250,24,+ 88,95,246,222,202,31,177,165,208,234,64,200,104,123,81,18,251,188,170,24,187,159,70,6,+ 136,45,133,238,171,61,54,107,23,66,123,114,131,215,167,37,234,118,99,249,27,205,89,42,+ 116,92,40,126,194,255,119,244,165,241,32,8,70,204,173,113,202,20,209,64,178,246,66,203,+ 105,110,235,180,213,126,118,248,77,240,151,12,41,124,113,128,215,175,219,39,46,145,234,190,+ 17,235,96,13,177,254,27,39,73,160,105,56,23,1,209,2,144,150,249,228,163,149,188,238,+ 237,73,254,134,159,238,199,16,174,195,253,199,189,103,104,184,88,38,187,236,38,121,29,188,+ 2,191,95,107,193,79,207,33,210,164,71,213,195,8,85,208,102,14,30,189,190,224,113,179,+ 186,195,187,183,117,43,5,181,214,203,84,171,212,174,41,195,222,204,129,162,124,236,111,202,+ 82,154,161,49,41,139,228,240,132,220,74,178,129,149,239,122,34,190,16,94,85,76,30,87,+ 158,93,149,108,15,119,255,58,109,125,117,70,154,215,136,173,126,185,242,35,210,170,49,152,+ 143,250,133,15,254,108,209,19,21,208,171,146,93,99,49,226,98,125,249,90,115,203,135,4,+ 219,198,218,45,191,77,45,187,128,81,171,136,248,61,121,223,135,70,124,90,65,229,51,71,+ 192,101,55,29,0,235,208,9,168,75,40,240,94,87,148,242,250,179,186,5,100,9,106,124,+ 222,184,42,251,186,184,96,24,171,4,110,186,55,180,195,185,92,190,69,226,151,139,30,215,+ 25,137,167,4,193,192,199,56,139,119,15,5,175,99,247,166,24,202,222,218,81,63,67,247,+ 252,192,116,205,162,166,250,179,70,161,125,44,117,182,178,129,234,209,172,168,79,182,49,76,+ 132,107,241,118,48,78,24,194,48,59,78,167,10,172,83,99,60,122,200,160,171,149,129,228,+ 248,143,45,227,13,176,65,73,240,149,38,251,26,85,254,187,18,11,155,160,165,219,127,64,+ 250,200,50,242,84,192,94,230,142,11,140,166,44,52,67,79,227,2,205,208,203,198,49,91,+ 33,232,29,132,104,137,20,132,225,245,67,40,212,167,102,143,19,167,75,33,251,126,159,21,+ 6,139,36,126,237,186,34,170,15,157,120,245,183,169,135,116,28,241,116,139,49,169,212,202,+ 211,186,1,15,161,147,165,114,68,59,204,212,151,97,59,111,172,238,89,253,255,89,94,131,+ 143,180,170,100,139,16,188,107,100,126,104,77,0,19,0,1,8,14,17,9,14,35,56,72,+ 88,67,46,35,34,36,13,25,21,54,53,51,45,55,58,158,233,77,111,218,33,107,127,236,+ 139,14,41,242,124,147,162,66,190,66,44,0,142,179,207,127,159,27,28,242,237,243,66,112,+ 150,186,212,58,162,215,9,69,98,5,159,165,0,234,139,206,10,98,19,250,58,102,207,61,+ 39,220,30,82,26,161,133,135,113,77,42,186,191,151,223,172,160,185,247,221,82,24,224,100,+ 32,222,254,132,198,107,101,245,197,108,234,164,191,190,191,201,184,56,121,213,182,104,183,24,+ 13,153,130,126,161,205,172,6,158,199,75,190,8,188,11,49,134,50,67,121,206,164,181,128,+ 104,113,52,85,64,25,184,150,135,4,96,98,48,124,104,13,96,152,82,102,215,177,120,148,+ 154,20,244,138,224,40,73,147,202,242,213,111,194,71,217,38,35,236,121,244,118,75,240,116,+ 37,3,134,109,167,47,14,156,249,218,23,176,56,192,231,84,182,0,90,32,21,170,211,83,+ 241,141,59,184,247,139,59,4,243,84,157,14,229,172,255,98,44,209,111,151,187,229,49,140,+ 255,128,31,151,14,121,169,78,172,205,10,64,5,48,53,82,189,137,112,12,150,106,96,219,+ 38,6,85,26,1,31,154,193,158,138,73,167,107,0,21,248,163,110,0,183,110,182,12,227,+ 166,80,84,75,82,143,146,205,177,244,95,160,83,56,114,90,47,232,212,15,194,88,215,200,+ 86,189,140,201,32,175,80,45,86,126,104,186,251,181,78,21,35,218,238,207,69,230,77,204,+ 108,175,117,71,77,244,142,105,193,58,120,154,226,13,202,133,236,192,163,108,132,187,113,50,+ 182,64,236,254,254,245,84,107,24,115,101,210,30,113,59,116,25,154,53,148,247,84,208,162,+ 121,107,221,211,144,88,121,113,34,68,144,233,251,198,158,140,161,247,57,97,30,49,178,113,+ 3,167,212,194,49,114,119,169,202,45,253,14,238,66,79,170,151,92,48,180,139,32,58,155,+ 80,89,19,243,14,20,0,1,18,29,29,21,19,37,30,26,9,12,36,35,62,37,47,14,+ 17,73,96,91,22,245,143,164,72,138,6,69,117,92,121,96,151,26,90,177,224,234,181,0,+ 234,215,220,190,95,191,157,141,110,100,184,117,17,11,54,0,152,116,88,119,62,53,232,189,+ 54,47,225,142,47,177,206,110,143,125,49,119,162,10,112,182,86,89,115,181,147,32,115,84,+ 171,111,164,98,87,105,168,28,56,124,146,113,134,64,207,108,192,175,39,13,140,191,206,29,+ 134,24,223,37,37,52,186,135,113,17,93,197,34,133,226,1,24,13,253,48,254,226,120,192,+ 116,162,182,247,50,124,4,255,243,105,68,48,115,197,185,74,35,245,179,183,197,179,252,105,+ 201,130,10,172,121,89,156,156,205,121,62,129,23,32,54,30,252,215,112,81,199,53,112,236,+ 187,32,201,78,70,88,154,212,197,53,188,57,191,215,84,250,168,127,26,155,192,246,62,187,+ 128,196,128,32,0,158,92,149,173,122,62,101,211,201,234,240,187,168,35,238,29,9,214,181,+ 243,209,177,124,243,113,227,42,12,131,206,42,198,227,34,103,215,195,73,230,5,134,205,82,+ 56,73,41,198,98,15,197,202,160,176,227,242,35,160,236,196,78,38,9,29,227,227,190,50,+ 228,255,193,23,205,202,211,133,21,17,98,220,165,102,131,55,4,39,246,250,100,239,151,71,+ 95,116,134,197,207,155,227,125,56,166,10,102,0,182,128,111,119,54,188,238,196,147,202,13,+ 1,170,112,231,92,31,76,145,139,190,1,207,54,236,199,207,66,24,36,78,205,0,171,206,+ 11,117,125,230,66,119,92,111,216,31,189,33,103,29,132,92,76,126,78,217,86,92,6,207,+ 106,36,83,131,246,245,124,243,61,20,238,213,189,157,236,117,157,39,167,82,176,201,132,248,+ 142,22,252,45,90,146,215,113,208,32,3,206,217,100,27,127,252,32,175,163,30,211,101,120,+ 174,206,198,98,230,86,212,160,35,5,110,168,126,86,246,154,253,97,235,222,68,95,71,85,+ 162,249,251,1,79,171,107,50,168,153,217,143,169,192,184,60,83,224,124,83,215,78,187,38,+ 131,201,169,177,163,143,166,197,21,103,214,7,131,127,76,78,175,45,12,237,73,4,85,207,+ 132,16,150,55,216,255,221,14,221,46,123,0,20,0,1,23,31,32,21,20,19,7,5,8,+ 19,17,16,5,27,39,39,24,38,139,131,101,255,255,255,165,152,9,154,99,60,122,177,171,+ 33,194,252,171,221,236,3,20,232,204,206,162,160,21,202,79,53,213,97,6,56,193,4,114,+ 29,157,170,80,251,88,96,43,98,175,174,53,160,57,75,102,193,80,255,55,170,15,199,72,+ 240,195,147,92,226,250,70,192,124,188,39,94,52,235,122,67,46,31,251,192,41,119,142,56,+ 150,156,54,75,213,88,145,116,235,178,162,80,179,109,174,210,215,161,122,164,73,181,235,27,+ 92,117,2,20,254,226,27,214,133,47,39,107,126,135,121,195,79,69,54,162,125,189,245,215,+ 169,158,103,180,30,161,110,91,197,208,245,128,149,148,207,249,206,48,254,239,157,148,24,180,+ 114,149,80,138,48,142,211,181,178,241,11,24,151,180,199,174,93,94,211,61,4,31,127,115,+ 86,190,81,240,179,96,59,198,80,211,178,69,60,148,234,52,210,188,150,193,125,250,211,162,+ 20,21,20,226,79,54,110,179,50,52,3,63,150,215,66,193,45,32,116,11,187,224,19,218,+ 52,217,109,140,157,160,202,102,99,207,212,196,74,141,63,74,54,148,73,58,44,48,195,96,+ 103,149,67,126,6,214,89,121,97,50,88,123,19,170,234,152,195,58,54,75,44,82,10,200,+ 65,235,161,173,13,173,159,121,20,0,3,10,14,13,6,6,11,11,25,28,47,50,59,42,+ 26,27,74,80,89,56,53,146,212,23,41,137,128,140,216,211,37,244,251,98,46,115,59,191,+ 33,20,88,243,42,1,202,102,81,199,66,129,165,174,236,186,141,108,204,164,171,167,3,222,+ 50,228,65,55,128,101,81,200,199,9,90,2,147,211,147,102,172,255,198,240,196,2,73,34,+ 13,17,19,31,191,129,25,41,137,231,240,137,153,104,120,8,170,63,13,139,245,154,133,209,+ 226,186,223,240,182,35,189,84,250,246,18,191,43,32,250,153,157,158,147,128,27,30,57,140,+ 189,13,217,99,174,201,123,66,213,156,21,208,32,20,202,41,130,87,219,86,187,122,13,227,+ 18,102,97,233,128,132,38,250,119,20,213,63,103,60,67,10,30,97,213,77,49,152,226,211,+ 235,126,237,105,155,168,25,177,81,174,56,93,184,148,47,247,224,133,171,35,194,104,77,37,+ 68,254,169,99,28,44,184,31,2,212,185,165,44,139,212,87,186,1,118,153,132,211,156,189,+ 182,224,190,186,81,17,67,40,211,101,61,61,202,86,119,194,124,63,15,216,225,41,231,79,+ 24,166,111,143,208,31,149,109,76,189,159,12,222,3,122,122,228,31,192,94,60,122,77,153,+ 91,84,146,51,120,254,43,241,123,141,116,116,175,158,10,72,86,55,231,248,127,138,202,211,+ 133,67,233,132,45,56,214,112,49,15,3,242,95,195,21,130,162,24,79,241,54,21,63,34,+ 149,88,232,91,177,225,242,22,132,102,72,209,194,75,189,168,66,108,145,85,179,227,219,9,+ 71,42,192,226,65,84,85,245,245,62,99,198,42,63,124,74,202,251,9,175,153,55,199,214,+ 234,232,130,74,237,105,84,68,227,6,241,126,251,27,65,152,165,97,209,62,242,0,254,199,+ 1,60,219,192,207,26,166,207,97,30,197,118,35,1,24,155,195,89,62,128,3,20,2,224,+ 25,54,142,226,6,80,178,238,70,248,191,181,212,28,233,39,142,176,47,166,118,125,4,153,+ 20,179,164,53,223,15,126,70,231,79,16,118,250,215,86,189,112,1,61,179,232,255,28,248,+ 123,19,106,191,53,188,18,30,119,101,93,232,81,153,152,179,140,153,70,16,168,252,255,68,+ 205,70,227,203,149,109,71,123,142,89,160,194,220,17,79,151,225,252,139,192,59,40,67,201,+ 33,112,141,192,82,110,31,164,111,192,199,192,63,87,130,156,33,196,112,1,199,232,173,232,+ 33,176,23,240,29,185,209,15,50,234,2,50,132,153,221,147,80,174,172,158,224,197,90,236,+ 94,180,116,172,46,139,88,191,239,118,163,213,169,96,70,17,87,180,15,234,188,200,119,178,+ 142,247,152,169,184,216,31,200,126,214,1,82,143,125,48,19,197,82,132,211,206,116,61,193,+ 205,206,200,234,131,45,151,155,92,184,81,251,206,54,101,84,91,220,6,242,139,85,138,99,+ 120,13,0,1,16,21,38,30,53,37,63,41,111,77,127,56,66,12,4,14,53,66,95,41,+ 87,133,235,117,125,109,77,141,60,102,219,220,156,156,96,157,14,0,181,109,91,79,119,19,+ 207,5,124,17,29,48,38,54,0,249,85,148,217,206,104,187,78,156,154,110,36,254,94,239,+ 199,118,125,29,196,199,218,145,93,122,174,136,153,4,231,228,20,182,79,226,158,41,224,232,+ 137,209,125,86,237,196,133,121,119,160,76,104,10,230,49,37,192,121,192,142,255,126,198,82,+ 94,11,101,28,2,120,89,29,142,153,206,20,99,253,167,251,130,253,87,151,159,71,206,180,+ 211,235,87,245,138,14,188,25,137,35,220,252,174,158,185,118,96,106,148,121,115,188,126,91,+ 86,96,158,184,51,224,249,81,76,208,234,85,21,60,92,7,153,81,91,174,41,44,96,47,+ 255,222,211,25,191,78,201,213,161,90,19,251,78,82,74,198,229,255,13,64,24,234,176,1,+ 143,197,96,220,37,220,102,160,34,61,115,2,211,29,150,51,49,254,101,155,206,95,109,166,+ 46,206,142,246,3,190,114,56,65,1,215,130,92,176,71,223,102,227,19,76,106,225,20,227,+ 24,219,146,54,77,241,172,85,155,77,194,154,74,114,25,221,54,90,219,246,117,85,190,47,+ 235,72,33,64,248,4,181,41,158,241,202,68,245,72,243,35,134,90,250,135,132,227,214,234,+ 122,87,120,156,33,159,105,73,213,35,255,98,180,255,41,249,223,47,2,62,123,186,133,35,+ 138,77,43,133,212,233,126,88,11,251,230,16,140,68,48,214,36,106,72,254,178,231,205,157,+ 209,197,180,211,112,84,2,56,158,49,215,249,17,66,118,89,40,152,155,245,113,117,62,66,+ 130,53,161,189,133,60,143,120,123,15,73,127,231,198,44,83,195,215,211,68,8,21,198,48,+ 169,6,245,49,116,42,11,75,27,13,150,0,103,25,223,246,218,217,122,100,255,210,236,178,+ 60,31,22,0,1,24,40,44,33,36,38,33,26,32,34,32,31,28,37,26,18,5,17,22,+ 25,50,59,43,160,133,254,12,249,94,156,192,97,129,147,236,42,54,75,118,53,158,173,52,+ 209,195,13,218,194,78,77,24,217,237,32,109,154,195,95,134,54,105,128,159,227,38,189,110,+ 199,17,73,94,52,91,162,27,4,210,105,179,215,115,78,229,59,97,192,33,217,101,27,73,+ 9,50,43,214,142,13,100,251,113,5,72,119,74,149,51,9,93,89,157,86,156,188,72,172,+ 19,228,57,100,141,72,22,220,233,86,217,191,138,41,5,189,175,115,15,98,186,25,233,97,+ 11,0,198,243,148,106,38,162,135,193,150,153,6,4,213,100,43,152,177,98,19,87,34,205,+ 145,237,110,18,220,134,216,37,232,116,239,13,233,56,106,4,237,145,5,240,89,190,214,71,+ 21,97,53,155,145,3,140,47,58,30,166,1,10,58,248,35,19,101,67,44,9,125,177,188,+ 70,109,229,75,220,108,22,213,153,202,20,13,191,2,134,253,89,99,151,205,196,211,247,131,+ 79,80,27,14,81,146,45,203,137,195,206,116,6,141,215,228,163,3,214,75,240,234,59,37,+ 185,206,235,31,68,232,63,31,39,169,147,209,214,247,218,203,172,53,96,128,247,245,82,51,+ 23,124,195,146,90,236,187,16,223,203,231,198,229,106,160,222,156,0,237,191,46,12,184,83,+ 216,207,84,160,76,201,183,70,1,46,220,28,192,159,214,111,69,212,157,25,140,88,4,137,+ 54,152,28,71,42,170,84,76,69,134,156,34,63,160,103,48,246,194,174,118,11,18,0,3,+ 55,59,73,39,42,26,27,23,44,25,63,44,72,39,37,24,22,28,10,17,83,171,116,55,+ 118,62,191,9,76,22,211,167,45,79,16,111,9,133,57,162,129,201,214,49,137,231,147,120,+ 9,232,115,223,66,9,217,168,7,90,208,131,75,219,231,80,54,118,241,167,166,217,79,207,+ 166,216,254,251,126,18,254,201,197,219,94,205,75,72,4,250,39,197,54,104,187,73,118,92,+ 12,187,217,187,220,206,198,235,47,132,80,235,190,49,227,204,15,86,155,45,249,59,6,185,+ 181,76,105,47,151,238,126,44,60,116,227,95,33,58,145,75,241,235,14,145,69,214,232,61,+ 21,226,53,247,223,183,190,25,193,208,105,249,144,110,16,253,101,50,85,35,37,180,199,79,+ 32,205,116,238,166,129,218,213,163,183,213,172,93,100,159,237,128,145,58,207,68,191,34,172,+ 47,224,31,103,167,227,175,75,191,93,226,246,112,169,251,34,146,226,54,41,204,211,39,71,+ 88,67,122,196,186,217,247,137,195,93,33,248,193,84,115,220,2,177,155,21,21,171,175,49,+ 73,146,74,23,126,168,140,214,32,221,122,69,21,78,56,249,98,63,255,112,132,235,82,135,+ 153,238,212,189,53,6,83,40,209,26,229,188,77,80,119,39,56,56,62,89,55,125,21,154,+ 95,242,66,97,122,75,50,24,231,167,203,236,140,242,218,167,75,237,82,248,73,145,27,125,+ 210,64,37,87,11,84,101,112,56,150,233,28,161,69,241,159,26,236,251,194,201,6,213,241,+ 242,28,7,197,158,139,76,109,181,129,8,147,159,43,95,74,38,76,120,225,102,138,243,20,+ 211,107,175,39,210,8,53,79,22,4,14,119,118,63,236,131,18,194,246,174,0,19,0,1,+ 5,57,75,88,46,42,26,23,9,7,48,52,69,27,23,5,4,41,52,49,45,36,123,162,+ 178,106,189,164,201,224,2,39,114,244,108,226,103,199,216,28,2,252,64,163,169,225,107,179,+ 202,192,180,27,224,105,32,165,34,184,158,222,145,93,184,97,110,56,158,168,111,10,13,209,+ 169,25,195,232,92,255,175,120,24,90,44,219,223,24,40,20,112,155,40,154,133,82,141,234,+ 107,146,221,43,131,205,240,185,205,42,25,84,139,61,170,211,232,247,98,158,78,172,252,226,+ 175,165,41,109,221,78,13,31,200,40,248,66,135,166,1,235,192,85,48,115,58,56,182,16,+ 22,92,218,178,64,150,162,6,40,131,1,0,235,40,62,38,147,156,250,205,157,113,181,208,+ 171,56,45,203,80,218,122,221,5,126,205,27,61,135,22,20,60,174,91,16,218,87,174,255,+ 128,61,167,104,14,219,96,127,131,220,180,122,231,7,244,226,145,113,190,167,140,226,227,125,+ 220,110,186,168,75,22,98,119,201,196,129,58,13,23,8,95,189,235,127,199,244,26,95,91,+ 144,124,136,63,33,26,128,44,142,201,21,89,175,236,160,129,68,115,198,48,199,218,67,109,+ 199,48,10,45,200,10,196,3,55,187,221,106,99,190,11,74,9,83,180,123,135,78,144,49,+ 159,229,164,67,234,132,56,231,194,57,224,19,162,119,245,91,28,215,149,76,7,6,184,193,+ 221,237,137,115,124,5,147,204,227,111,76,122,196,78,34,153,117,239,6,239,249,170,139,235,+ 38,33,132,93,110,186,243,59,80,65,11,65,120,39,43,161,253,238,96,217,229,117,147,85,+ 120,145,135,20,167,37,189,224,223,7,84,119,217,52,115,205,13,246,248,126,31,224,73,193,+ 216,25,49,96,99,64,216,10,211,107,235,142,64,27,10,159,122,95,210,186,104,235,162,131,+ 216,207,211,200,69,18,126,216,210,189,111,89,23,1,36,246,143,89,122,196,178,71,255,255,+ 209,195,231,53,252,22,0,1,30,46,51,27,23,24,25,39,39,43,22,35,28,29,20,30,+ 30,25,44,48,50,25,18,9,255,255,165,233,227,161,145,169,65,220,0,8,107,87,83,236,+ 21,2,71,203,45,133,201,23,110,208,3,131,89,108,74,105,17,61,67,245,62,134,100,80,+ 158,54,201,248,29,169,26,186,165,28,180,12,150,131,30,242,141,222,218,10,253,139,122,119,+ 62,224,178,131,194,116,230,194,60,164,213,250,196,120,98,110,133,191,226,147,21,103,194,130,+ 185,162,28,94,172,214,49,103,184,166,133,23,193,113,31,8,65,112,52,59,134,175,236,180,+ 203,88,24,237,55,27,243,209,252,4,135,27,226,166,172,107,77,227,39,148,177,108,217,140,+ 176,115,31,113,245,131,42,249,165,1,215,68,11,60,252,123,155,244,103,85,107,124,188,88,+ 109,80,25,132,172,145,22,59,53,15,16,156,135,44,16,37,217,26,202,217,189,30,167,187,+ 220,95,35,24,184,155,215,183,48,231,42,230,67,226,84,195,100,157,53,90,83,32,208,203,+ 172,12,92,18,141,13,199,182,222,156,242,187,211,91,213,254,207,227,242,47,200,87,60,33,+ 9,107,19,0,1,35,54,75,80,65,49,21,29,29,16,21,17,17,5,8,13,27,55,70,+ 53,54,36,149,17,243,97,68,105,236,172,76,249,3,63,17,105,101,96,77,72,13,183,98,+ 69,134,19,137,195,97,139,192,191,10,152,41,156,157,127,185,209,12,10,127,89,153,246,78,+ 130,132,228,224,80,203,124,36,82,202,247,184,217,50,170,112,129,5,145,5,49,239,138,125,+ 171,46,54,187,76,218,5,208,211,203,214,92,16,221,221,28,140,171,154,15,18,37,208,114,+ 205,235,233,100,138,156,132,145,197,132,129,238,254,193,138,99,127,221,236,98,92,223,249,211,+ 253,113,94,101,116,16,43,77,43,233,30,247,191,240,246,244,149,24,141,75,242,91,91,62,+ 77,180,45,242,234,114,1,108,68,239,150,222,20,222,191,103,6,193,180,55,208,118,133,29,+ 201,90,239,119,169,15,77,125,46,179,169,158,120,2,207,7,151,163,254,244,6,116,157,74,+ 189,204,235,160,43,192,134,89,89,213,33,140,58,13,87,86,19,18,74,40,27,164,131,56,+ 101,59,77,24,85,219,42,78,47,34,139,165,139,183,239,31,31,209,170,23,46,237,47,83,+ 139,234,187,116,26,114,170,153,25,16,76,139,75,101,250,110,177,201,34,104,103,19,78,72,+ 15,153,36,23,225,11,22,194,162,155,55,27,187,212,49,56,157,16,173,76,5,27,83,235,+ 77,48,252,167,27,143,44,31,119,155,255,254,234,104,111,82,128,12,0,19,18,22,5,24,+ 45,47,68,78,77,78,81,44,63,96,20,77,217,85,43,10,177,31,149,140,150,55,235,34,+ 208,162,46,227,61,94,191,69,99,203,61,48,228,14,7,87,146,37,251,119,71,46,215,153,+ 112,108,158,182,226,141,207,140,73,189,190,101,68,75,10,14,20,21,14,136,136,3,239,71,+ 24,173,231,191,223,150,222,13,225,243,208,108,167,218,117,109,195,202,185,15,254,189,133,225,+ 147,191,110,243,207,19,103,76,105,25,239,96,38,38,192,50,110,187,83,223,27,29,104,253,+ 106,141,71,165,88,182,52,228,204,149,6,68,167,174,104,13,88,141,105,111,183,55,22,132,+ 96,89,0,51,54,229,112,86,239,86,11,169,17,193,96,63,113,173,83,58,33,64,109,148,+ 125,141,146,183,37,90,154,154,176,24,126,145,91,238,88,181,71,5,253,3,44,128,136,22,+ 80,207,1,151,142,65,108,4,71,190,94,154,216,44,209,129,76,68,39,167,176,194,127,98,+ 243,1,97,152,209,117,150,126,212,184,71,146,114,35,127,149,112,145,24,225,45,242,168,255,+ 251,115,157,92,4,165,171,158,250,12,88,208,10,202,185,102,92,62,154,24,108,6,27,154,+ 167,10,27,212,69,41,227,222,216,179,205,17,255,47,9,133,99,122,120,197,201,118,38,6,+ 83,41,178,43,242,225,137,30,75,229,34,175,171,95,70,224,5,51,130,196,39,195,105,138,+ 227,59,84,219,212,141,96,189,137,181,241,1,39,40,173,49,133,145,94,121,56,117,81,65,+ 69,20,28,12,246,201,249,97,48,194,172,27,50,2,90,16,229,214,127,11,224,71,117,13,+ 18,149,24,182,76,221,91,239,57,139,170,186,176,107,26,209,136,231,76,179,33,86,130,255,+ 199,188,169,73,8,79,168,2,44,83,95,230,21,97,122,156,44,216,241,150,52,95,56,157,+ 213,236,151,29,134,60,212,132,22,4,13,152,23,128,145,210,205,64,212,247,49,202,138,90,+ 27,67,69,173,152,254,75,12,115,254,241,245,6,182,0,20,0,1,38,45,45,32,31,55,+ 43,42,73,60,64,15,24,19,13,4,9,46,46,45,5,247,36,231,235,19,179,87,131,84,+ 118,18,106,190,21,209,82,163,251,150,11,105,158,79,121,110,137,173,117,123,15,206,170,207,+ 122,201,248,235,251,116,20,145,228,248,49,200,16,107,113,176,31,49,189,112,254,225,218,230,+ 172,5,100,166,42,237,25,158,9,235,171,123,181,177,63,54,180,171,10,181,189,57,75,4,+ 241,244,248,145,102,112,232,233,2,123,204,169,25,220,118,203,53,223,78,0,38,48,197,246,+ 56,103,187,42,139,182,115,186,102,20,192,98,117,247,121,224,136,44,241,107,195,217,115,93,+ 54,169,142,46,34,40,79,161,184,50,176,13,161,49,4,43,141,165,180,128,229,243,55,47,+ 99,244,26,56,215,172,44,190,182,228,138,96,0,90,6,11,58,182,210,3,134,15,20,190,+ 129,29,159,145,191,94,255,76,169,255,248,244,142,207,176,136,27,204,32,45,248,164,184,117,+ 54,122,202,94,97,93,93,238,128,114,143,16,230,195,72,139,57,102,165,163,125,157,89,74,+ 49,152,25,2,247,218,45,73,182,161,230,176,87,202,65,104,64,59,53,250,8,130,42,81,+ 62,105,38,189,209,204,188,53,98,58,154,191,251,161,131,241,112,73,145,199,8,74,154,37,+ 223,66,237,194,38,197,109,167,69,38,24,106,45,183,75,175,73,128,71,241,209,69,232,179,+ 65,203,183,243,253,229,126,32,51,74,100,22,0,1,10,33,45,46,31,30,34,41,39,35,+ 25,31,34,39,26,11,7,10,28,41,62,54,37,201,221,208,131,10,89,180,55,158,36,89,+ 157,93,88,43,220,155,44,160,32,126,201,44,59,174,250,215,236,227,236,175,189,153,196,110,+ 94,2,230,202,93,104,228,159,38,20,117,47,186,139,231,120,117,28,208,78,41,45,155,62,+ 148,22,20,31,175,102,219,51,50,67,137,211,52,60,210,253,184,69,4,5,252,143,136,232,+ 220,153,53,124,138,9,170,78,245,111,8,109,37,175,85,129,139,192,24,209,6,65,233,110,+ 50,241,132,101,73,90,135,28,160,249,181,217,252,172,190,142,205,94,162,229,107,8,172,169,+ 250,149,13,126,191,117,202,212,229,107,131,22,178,102,104,79,142,247,1,164,164,239,255,17,+ 82,187,126,52,192,78,163,72,236,100,54,15,2,31,107,165,191,192,219,214,41,4,144,137,+ 35,186,117,129,118,209,141,170,248,156,107,46,34,189,97,187,73,84,255,14,122,33,77,186,+ 149,198,24,214,248,179,204,159,165,0,202,118,132,5,172,223,75,221,112,120,160,31,103,198,+ 146,199,221,230,138,42,49,155,201,50,90,45,108,179,53,252,210,253,220,205,110,42,157,246,+ 213,220,80,238,14,144,99,49,79,137,30,126,102,101,156,138,200,93,43,88,130,181,57,227,+ 108,0,134,13,77,103,168,38,75,233,199,132,199,160,29,162,112,3,226,168,68,155,85,92,+ 187,202,245,181,50,152,214,140,125,153,144,60,241,29,214,199,208,228,173,169,49,174,2,36,+ 132,219,179,231,235,105,185,104,80,120,124,131,56,251,91,40,62,189,103,4,66,141,108,140,+ 70,69,176,150,85,234,133,203,148,252,82,17,46,219,143,28,60,45,124,23,0,1,17,23,+ 42,43,43,31,12,14,13,22,20,19,12,15,17,20,22,32,48,55,57,36,63,42,26,225,+ 151,216,221,7,37,154,108,168,102,243,47,137,115,179,92,176,224,45,42,42,202,184,43,177,+ 178,242,50,111,39,88,31,246,140,133,100,0,197,234,236,254,43,59,208,234,120,47,245,73,+ 23,145,2,57,182,69,114,224,180,112,36,127,157,206,255,158,164,136,104,138,86,126,100,249,+ 225,70,4,241,75,244,251,177,198,11,76,120,42,168,227,204,223,245,9,67,229,252,82,11,+ 25,75,188,78,155,111,230,73,82,189,177,2,11,134,156,116,159,201,207,169,196,56,73,110,+ 184,166,10,8,91,72,17,160,228,0,123,250,141,185,218,72,9,68,172,73,226,172,223,71,+ 61,236,74,27,130,43,153,56,84,9,65,216,146,226,195,58,160,85,229,19,144,27,11,185,+ 240,3,114,203,171,167,192,211,100,11,101,59,78,42,67,142,82,69,122,78,74,95,251,225,+ 58,16,15,9,125,186,118,99,251,130,176,219,74,63,91,8,41,73,44,100,143,233,68,103,+ 143,120,195,170,74,101,55,182,205,150,196,93,126,207,248,20,170,114,204,27,114,202,230,33,+ 62,97,62,236,140,109,114,107,238,98,15,115,208,224,23,234,110,119,118,186,243,162,74,24,+ 203,1,232,162,217,58,118,87,221,2,217,211,58,107,54,234,108,102,243,145,212,140,21,198,+ 48,0,11,215,18,67,254,97,87,157,23,194,207,113,20,165,40,181,26,161,38,247,108,174,+ 223,229,14,1,137,145,238,142,231,100,246,55,194,157,39,251,183,237,152,208,175,26,131,151,+ 18,0,1,47,54,75,51,61,45,94,80,78,7,7,4,4,27,37,43,20,15,5,246,66,+ 182,153,84,249,125,229,233,72,217,83,129,122,45,108,12,0,150,128,63,229,51,71,255,45,+ 230,175,229,201,153,117,251,143,34,8,152,210,223,191,112,236,145,208,184,223,55,91,111,103,+ 89,226,108,169,108,209,228,217,155,224,115,142,155,7,135,152,25,193,39,156,121,71,224,247,+ 21,128,64,108,75,242,176,127,212,33,207,96,69,102,168,213,91,26,48,121,221,128,103,69,+ 158,72,111,198,1,49,100,172,67,4,165,70,192,70,240,115,146,253,244,159,28,58,220,44,+ 47,112,144,140,81,15,55,72,51,104,253,86,250,7,58,192,174,93,186,164,97,230,170,174,+ 239,78,73,227,44,58,154,226,203,185,147,35,221,124,153,243,94,243,131,105,13,125,136,148,+ 130,63,191,53,48,47,86,187,44,192,205,73,135,41,117,249,67,60,92,208,41,192,150,221,+ 90,209,223,231,156,69,168,9,73,219,196,235,115,60,96,18,4,173,25,161,197,67,240,34,+ 212,238,27,135,99,164,221,98,76,160,198,118,48,35,190,34,171,215,233,69,208,130,159,88,+ 103,56,74,99,129,108,47,100,98,236,29,140,170,245,13,171,38,218,207,209,240,157,201,75,+ 71,106,53,89,24,15,4,24,242,218,9,114,126,139,171,111,249,212,16,219,251,136,146,88,+ 55,207,107,19,211,254,112,83,218,4,252,209,160,103,208,114,253,77,154,165,123,31,76,73,+ 121,253,163,49,221,61,40,15,0,1,26,38,75,54,47,19,60,79,71,24,6,64,65,78,+ 25,21,40,59,151,92,151,69,102,249,134,167,82,227,191,100,0,25,152,141,151,244,192,228,+ 58,50,170,26,252,254,108,97,92,83,85,151,158,109,96,138,4,11,33,218,29,185,63,166,+ 126,12,247,201,193,52,243,89,180,38,29,66,109,159,135,173,27,214,180,87,62,99,196,177,+ 77,79,184,214,248,206,114,252,109,140,148,114,193,75,182,35,49,209,7,19,144,190,230,106,+ 66,108,111,17,213,85,131,68,212,250,122,194,119,53,253,167,137,222,31,203,216,194,94,110,+ 168,66,156,127,205,212,138,9,153,157,171,122,129,125,109,133,171,247,113,251,197,13,135,148,+ 148,55,125,92,167,141,127,116,67,218,209,20,148,241,136,227,216,219,165,61,13,27,81,142,+ 5,189,71,241,145,158,180,228,79,172,151,182,134,177,23,225,255,16,153,88,153,109,89,82,+ 127,117,232,8,173,64,94,40,151,37,152,163,237,2,156,231,233,125,71,182,89,83,179,63,+ 64,201,93,227,128,161,42,77,45,225,244,141,23,60,177,44,179,58,193,46,234,89,60,232,+ 20,193,78,116,79,48,100,12,48,143,181,57,88,78,141,97,248,138,121,197,76,213,154,28,+ 90,8,183,244,108,196,174,54,219,46,6,97,84,7,148,101,161,184,61,160,247,227,227,62,+ 1,246,22,137,10,168,109,107,85,9,151,165,244,10,213,91,149,134,114,89,148,127,228,48,+ 196,227,184,170,216,196,120,239,205,140,228,86,44,150,42,221,212,255,254,175,21,182,27,255,+ 15,0,1,3,31,34,30,30,27,26,15,46,46,56,35,85,123,112,60,33,106,66,71,140,+ 3,42,19,107,174,204,24,32,111,196,92,230,75,71,182,175,82,13,207,230,136,196,98,209,+ 152,55,57,142,114,139,199,36,150,184,97,181,99,212,75,140,82,66,125,179,82,56,222,202,+ 185,40,50,119,189,150,72,31,94,164,86,66,6,103,68,65,194,158,14,219,168,22,123,240,+ 167,228,96,72,216,128,220,197,95,228,35,240,136,75,189,17,141,255,166,69,86,9,28,27,+ 228,146,51,246,248,57,112,184,233,77,64,11,86,155,122,132,57,113,96,216,142,147,106,152,+ 48,10,232,207,114,125,232,99,150,135,201,67,189,105,184,209,215,79,173,142,156,14,37,84,+ 26,207,125,126,223,226,212,147,77,236,108,39,56,190,129,194,200,79,209,194,105,249,200,146,+ 112,169,46,86,71,79,12,102,154,14,130,177,132,179,253,158,215,1,89,149,146,228,13,200,+ 129,64,226,202,222,155,209,5,35,48,61,167,8,72,58,36,232,51,69,28,53,127,209,198,+ 73,191,32,48,40,204,202,159,194,81,44,224,88,26,186,200,47,234,56,82,130,134,139,82,+ 24,196,101,254,162,81,180,197,253,193,6,183,54,33,103,54,164,210,204,113,214,113,78,9,+ 232,214,41,44,124,25,194,70,175,48,20,150,205,125,35,78,117,246,185,210,191,5,79,238,+ 238,225,211,59,117,158,255,194,203,205,91,59,193,90,179,197,84,214,56,118,109,141,203,113,+ 250,242,48,94,74,84,41,178,6,203,181,123,106,27,174,49,164,79,247,197,113,137,185,16,+ 3,205,26,48,71,241,179,44,206,41,102,175,3,32,185,0,70,115,13,39,253,137,225,124,+ 233,178,196,187,218,222,207,53,52,190,82,122,80,235,107,109,222,27,34,153,184,169,159,230,+ 225,234,76,27,182,183,179,128,221,203,131,230,127,221,208,25,60,164,239,27,208,74,230,154,+ 149,73,218,61,151,45,158,72,117,145,209,16,9,143,159,170,58,7,245,113,117,128,233,196,+ 219,123,12,133,73,36,214,246,0,160,59,205,218,70,50,75,165,254,221,224,226,255,255,198,+ 55,26,118,85,20,0,1,27,38,45,25,38,49,61,44,26,31,58,58,43,20,22,13,5,+ 16,46,52,38,6,255,255,165,152,9,154,100,26,63,133,162,121,145,217,172,190,128,191,63,+ 12,58,62,130,190,59,94,226,157,155,78,138,151,138,201,115,249,112,244,145,104,66,135,2,+ 53,146,203,76,2,112,175,68,12,42,128,68,228,5,33,98,226,120,20,53,204,181,16,113,+ 144,108,109,145,67,251,30,144,139,138,18,104,192,149,15,55,32,144,13,111,35,23,43,147,+ 40,72,252,111,206,28,27,96,140,105,251,228,60,78,7,96,201,51,22,117,210,80,74,2,+ 133,81,28,129,242,194,90,176,57,169,185,220,51,91,23,192,183,133,10,61,79,43,225,103,+ 248,78,78,186,59,225,73,221,138,31,113,251,188,230,23,195,134,163,156,154,210,82,48,192,+ 139,212,248,25,28,255,213,122,108,168,201,44,87,217,46,103,203,138,100,156,121,70,50,246,+ 118,100,138,88,183,148,154,219,239,98,83,112,74,102,220,62,82,1,6,216,198,181,201,116,+ 255,62,43,4,167,195,48,241,39,204,15,44,119,244,247,54,119,154,25,62,178,17,124,81,+ 99,200,22,49,43,241,32,62,121,166,18,0,1,27,43,45,35,33,34,23,39,57,68,45,+ 32,17,13,20,68,73,66,13,250,36,236,238,64,241,33,88,147,84,176,123,122,214,95,243,+ 196,216,11,86,230,229,217,89,206,190,190,64,84,34,97,82,149,182,198,248,16,195,56,219,+ 213,195,179,71,148,10,102,57,179,61,14,132,10,171,102,143,141,6,164,244,111,243,119,7,+ 140,224,77,99,188,65,152,46,156,124,145,239,186,55,162,59,37,131,190,159,6,124,71,118,+ 145,68,83,147,188,82,63,134,167,194,98,136,1,218,90,12,242,36,74,74,41,153,175,219,+ 98,80,43,88,57,235,14,87,29,205,99,206,197,121,158,120,114,32,78,79,237,207,176,95,+ 79,41,5,51,125,251,191,137,228,159,69,65,67,196,24,52,56,54,154,108,8,96,41,111,+ 222,117,31,83,78,15,54,125,172,58,157,39,220,150,136,57,115,74,174,255,234,213,141,149,+ 13,80,104,129,103,197,180,113,135,44,127,156,18,32,21,112,188,206,3,3,59,58,42,144,+ 206,192,184,164,226,160,180,84,125,200,43,87,238,221,30,135,109,177,239,22,0,1,30,38,+ 45,23,38,56,59,42,41,38,56,34,36,24,24,13,22,23,26,24,24,27,10,220,151,105,+ 244,62,185,201,245,49,33,62,160,170,212,128,250,48,177,65,250,205,207,85,85,81,195,146,+ 56,135,143,10,57,198,74,192,38,215,118,78,37,187,141,27,149,106,50,128,15,115,102,231,+ 19,180,97,47,58,60,152,178,50,109,151,134,141,80,209,173,130,60,60,138,42,75,90,97,+ 27,147,20,130,194,243,112,80,170,224,226,67,78,31,20,143,30,229,110,14,47,12,94,58,+ 150,185,132,79,137,229,28,158,0,89,146,238,57,72,83,160,240,143,198,205,39,137,149,83,+ 178,168,72,165,199,72,84,100,42,94,43,208,116,127,243,104,55,206,106,21,44,112,172,25,+ 74,133,126,240,241,220,25,178,92,80,52,209,138,190,80,17,90,33,198,245,162,38,107,175,+ 164,44,57,196,0,219,227,104,59,189,92,41,239,80,12,12,228,87,215,83,172,140,29,214,+ 29,6,185,78,64,187,16,139,30,176,69,65,51,193,166,77,172,188,57,171,35,135,72,253,+ 140,231,59,51,71,157,238,142,230,181,164,3,192,93,92,77,215,190,12,137,247,168,59,23,+ 229,99,98,125,49,54,62,59,9,172,174,70,239,168,23,71,191,213,132,78,160,200,206,54,+ 232,56,121,156,69,203,4,85,136,104,175,112,201,12,210,85,58,119,131,210,62,240,37,74,+ 197,104,43,138,42,15,114,71,57,199,243,149,241,116,124,246,22,40,224,241,4,181,209,34,+ 12,0,5,11,40,37,33,9,11,23,28,62,74,112,78,86,30,55,143,166,158,198,94,74,+ 84,254,232,252,254,36,95,149,150,120,1,225,255,71,119,115,77,129,108,23,48,147,243,92,+ 221,250,190,209,220,225,1,82,139,130,35,207,134,23,184,77,252,179,181,244,94,20,193,191,+ 148,161,170,186,208,117,159,232,218,19,122,185,103,189,90,15,123,169,58,88,116,176,153,47,+ 182,188,114,154,251,26,3,144,57,89,176,167,32,53,105,153,142,53,194,24,105,243,93,28,+ 219,18,102,16,30,116,252,14,130,129,72,156,108,47,212,194,18,127,66,49,101,133,165,46,+ 255,150,31,88,40,215,133,247,176,31,59,254,180,47,255,39,174,247,51,186,158,213,54,209,+ 15,224,42,122,106,34,93,60,106,218,192,0,15,0,1,36,49,75,75,86,114,105,91,38,+ 24,19,19,4,7,8,5,247,133,15,133,2,182,197,139,51,125,56,156,204,157,23,7,92,+ 233,75,22,11,40,97,208,210,95,77,29,178,109,152,167,121,128,245,104,127,107,194,200,149,+ 223,93,151,156,68,218,72,216,68,44,119,61,40,151,55,133,242,84,113,102,6,29,150,70,+ 88,228,110,245,189,115,132,93,107,227,198,247,203,176,157,21,39,222,168,144,59,94,213,196,+ 161,46,180,117,23,96,214,153,99,177,103,197,56,211,86,118,41,8,104,141,178,97,184,98,+ 88,103,187,22,76,60,253,180,207,84,89,235,186,114,184,51,178,139,14,237,138,27,61,194,+ 68,155,236,142,107,167,89,220,28,74,196,176,92,22,84,203,161,30,225,238,79,245,94,81,+ 78,119,217,52,177,214,168,192,228,194,164,143,87,54,18,157,188,99,85,246,35,86,188,89,+ 57,127,84,148,43,203,232,113,137,22,220,237,199,151,72,188,26,12,3,246,101,52,246,168,+ 11,153,248,12,133,243,204,94,103,252,202,20,231,86,139,26,239,180,156,162,21,32,5,13,+ 57,61,148,66,210,52,144,52,120,137,76,116,157,186,8,30,0,124,3,232,8,116,82,17,+ 174,235,242,236,87,236,172,100,132,195,196,207,24,82,123,167,207,209,191,55,233,61,47,6,+ 110,72,102,237,54,112,221,93,186,92,223,157,188,29,243,71,190,203,143,202,98,176,179,199,+ 110,16,92,252,119,155,49,46,188,175,181,138,7,204,156,242,210,143,113,175,211,106,189,3,+ 95,60,198,59,43,102,61,127,16,101,9,95,237,37,173,33,127,240,11,244,136,142,148,178,+ 126,113,181,99,79,225,191,125,205,169,101,167,115,186,75,148,179,190,137,222,144,244,85,29,+ 255,1,73,157,173,200,129,194,192,190,213,187,15,14,147,62,215,196,13,135,216,13,18,185,+ 2,227,100,40,1,160,36,95,56,239,37,122,238,48,244,92,27,156,39,225,143,42,140,7,+ 210,29,115,205,120,250,89,21,106,36,52,1,129,248,146,200,54,232,8,17,178,155,245,218,+ 118,160,243,250,7,177,20,176,255,20,248,112,97,96,18,0,1,7,10,15,20,26,29,18,+ 26,31,91,81,72,11,17,47,47,79,60,58,4,173,149,124,46,195,23,101,196,255,214,165,+ 150,248,40,239,186,193,180,116,150,78,103,168,185,216,240,134,10,18,165,151,59,49,23,218,+ 200,224,135,211,6,166,160,28,126,157,36,139,224,122,198,121,101,104,192,84,38,121,74,112,+ 229,244,73,97,202,15,6,53,117,193,227,7,39,145,8,116,216,63,0,69,209,0,218,1,+ 121,169,181,108,235,133,219,34,189,131,220,76,104,18,201,65,186,48,242,169,26,128,75,159,+ 89,184,113,67,128,58,74,121,95,184,184,57,117,182,9,169,40,69,45,50,120,157,172,46,+ 93,235,182,113,114,156,189,186,253,246,31,35,92,13,234,224,212,154,213,93,79,117,239,107,+ 230,164,36,61,232,69,232,35,168,127,41,240,17,206,56,15,49,41,44,200,69,74,218,69,+ 237,152,110,85,185,58,251,150,180,12,66,59,64,33,241,14,218,241,134,129,212,137,243,224,+ 31,33,69,24,30,78,13,225,127,141,211,7,238,70,129,100,40,69,211,1,144,208,233,21,+ 119,92,233,227,137,141,64,153,254,0,91,26,100,92,237,211,5,1,82,142,2,94,250,178,+ 71,218,62,88,40,20,222,196,23,213,126,112,67,166,123,248,175,103,187,144,128,178,27,78,+ 155,33,126,6,93,122,222,33,47,0,201,69,63,115,204,255,84,22,190,82,130,163,173,219,+ 211,50,15,123,204,135,8,254,199,46,143,14,221,121,70,57,245,222,194,185,89,91,168,38,+ 138,96,7,84,44,45,197,252,158,90,55,41,131,70,114,70,153,132,61,50,235,167,64,234,+ 12,87,26,57,216,17,148,123,237,242,95,175,37,57,187,38,119,62,237,245,78,38,61,233,+ 144,15,244,152,50,166,144,70,177,165,208,147,193,162,26,183,22,0,1,13,40,41,30,16,+ 34,31,43,34,38,44,34,37,10,43,36,36,36,40,54,25,27,12,6,255,255,165,233,143,+ 185,202,32,229,100,83,225,191,183,7,17,120,117,223,29,55,171,48,26,89,15,218,29,136,+ 8,215,53,163,82,204,190,102,179,55,123,119,60,132,189,175,165,135,164,66,56,66,81,60,+ 233,84,232,71,86,184,11,121,86,131,126,173,101,104,152,145,108,125,9,210,219,40,217,64,+ 198,223,33,188,26,53,228,31,100,122,125,205,9,68,253,30,34,187,64,185,194,2,72,154,+ 88,36,163,138,72,236,45,187,28,15,25,195,47,85,243,91,166,172,2,142,186,233,168,115,+ 1,69,53,20,184,254,246,186,97,32,42,10,93,183,66,169,96,224,60,30,71,117,46,38,+ 191,254,217,200,217,129,201,241,46,68,181,61,97,108,83,186,53,215,88,133,239,222,21,101,+ 132,235,238,160,59,158,1,5,218,215,15,69,91,203,179,151,128,118,200,9,10,125,104,63,+ 175,254,239,198,119,64,17,255,167,30,23,114,61,76,182,26,236,159,248,219,254,153,17,39,+ 50,228,254,59,62,60,81,202,90,252,95,180,252,229,77,60,83,5,0,232,106,59,165,1,+ 26,222,7,22,228,210,129,0,205,160,164,249,163,179,206,174,237,33,167,227,101,149,189,30,+ 204,231,42,108,186,219,64,8,82,111,196,16,102,149,15,165,0,19,0,1,4,27,28,25,+ 18,17,18,6,6,6,9,24,40,40,39,35,89,83,124,65,44,203,106,229,155,113,42,226,+ 182,108,162,174,251,107,78,6,63,2,132,56,87,125,28,121,17,71,152,64,186,206,18,119,+ 78,255,247,222,203,225,40,5,109,209,117,12,77,54,125,88,236,50,24,28,50,81,155,192,+ 176,192,150,206,52,21,150,167,241,239,220,30,104,155,165,147,236,62,141,211,46,90,16,8,+ 134,81,137,73,203,96,245,193,185,101,106,60,186,103,217,246,91,138,69,105,209,127,243,186,+ 29,51,226,67,207,155,5,199,106,219,43,153,91,90,27,19,4,36,65,228,139,240,40,249,+ 61,243,14,162,84,183,17,236,24,41,37,9,149,164,175,202,152,151,61,109,33,154,234,146,+ 73,97,23,255,115,250,120,83,80,200,236,155,111,112,39,151,49,52,20,0,1,29,33,45,+ 21,23,30,25,59,40,41,29,37,57,43,35,14,36,44,58,32,23,7,255,255,165,152,9,+ 154,100,26,63,133,162,122,57,207,144,120,212,154,137,101,16,71,210,232,244,3,76,58,0,+ 0,87,124,9,18,143,97,83,246,217,122,93,24,122,41,33,39,52,60,86,31,190,13,202,+ 10,31,82,81,59,219,36,233,250,119,238,54,58,46,58,173,106,239,62,253,152,98,85,92,+ 130,8,253,28,89,43,89,3,10,41,202,32,98,143,105,177,164,211,19,235,213,171,70,68,+ 133,227,154,6,201,206,24,55,193,29,67,211,108,26,178,93,7,234,68,186,14,166,56,108,+ 96,10,108,127,209,122,145,32,28,171,136,250,19,173,32,212,220,126,50,156,21,208,12,199,+ 46,104,65,24,101,198,205,129,220,65,126,102,214,240,226,243,120,192,23,185,118,120,157,135,+ 157,213,31,185,48,72,19,45,63,68,231,162,164,37,162,122,230,168,34,182,255,50,159,18,+ 10,130,230,223,14,223,228,186,71,92,57,24,20,215,218,120,178,56,127,181,243,137,11,0,+ 33,48,73,83,91,70,37,21,80,80,72,226,74,94,213,199,248,143,148,42,190,223,123,203,+ 151,97,41,118,110,223,199,83,192,137,12,108,108,121,32,151,44,140,184,60,112,225,162,247,+ 149,26,195,214,7,225,148,99,119,249,150,230,53,25,3,254,152,90,159,219,181,215,207,70,+ 69,77,59,59,136,78,92,166,64,109,4,70,37,250,103,226,252,45,47,242,119,163,177,3,+ 8,149,168,9,81,253,19,15,128,57,85,127,28,107,145,163,40,37,130,111,25,237,112,252,+ 131,179,238,81,104,187,197,89,143,202,152,126,99,105,21,132,66,54,4,47,211,104,197,44,+ 165,212,241,129,239,116,34,192,179,104,151,223,227,94,194,202,191,33,202,204,220,115,175,238,+ 133,251,190,40,193,76,117,63,194,130,94,200,62,194,244,12,234,79,177,24,94,35,229,29,+ 63,157,121,226,3,126,204,69,42,134,85,190,109,215,255,249,174,221,127,255,40,164,125,96,+ 8,177,66,5,87,2,83,215,7,13,165,110,194,56,246,23,181,3,229,149,59,207,10,224,+ 241,124,146,131,92,158,163,58,23,7,57,196,129,189,119,46,89,176,194,152,52,32,16,132,+ 139,211,229,53,107,108,194,131,239,95,180,174,231,84,117,194,228,241,24,246,144,209,58,155,+ 190,153,7,189,12,216,133,95,44,238,113,64,88,165,98,109,255,192,103,253,192,32,203,134,+ 182,18,226,79,144,176,83,76,2,246,37,25,225,39,2,9,143,56,131,182,146,211,213,81,+ 230,5,159,1,61,13,215,202,2,74,210,92,28,14,44,153,170,96,0,70,190,157,133,227,+ 169,254,223,127,117,204,69,97,229,8,4,159,188,192,209,78,234,14,111,200,95,194,109,190,+ 237,167,39,12,21,35,134,117,105,104,160,60,75,101,194,72,55,63,142,72,103,228,154,29,+ 222,249,9,50,0,22,0,1,23,27,32,16,19,20,18,30,52,55,40,25,19,30,27,35,+ 33,31,32,35,41,54,41,25,255,255,165,233,227,161,145,92,3,69,198,22,33,0,215,162,+ 85,58,4,81,89,215,0,227,28,230,60,27,69,140,4,6,222,229,4,157,208,255,83,41,+ 25,92,153,214,3,31,19,146,193,46,190,27,8,248,89,30,166,251,221,161,199,171,206,158,+ 44,141,42,202,48,208,201,233,51,133,7,95,159,77,231,181,218,159,120,125,208,30,82,168,+ 129,5,155,201,36,130,32,26,231,93,178,222,19,127,178,133,52,86,220,27,245,129,143,146,+ 159,116,251,151,90,210,2,186,173,180,219,9,65,85,174,153,64,141,152,16,64,139,178,238,+ 27,210,59,109,0,82,144,16,55,0,114,249,226,161,136,24,211,224,76,123,117,120,89,217,+ 12,8,206,199,253,151,55,106,104,235,178,33,139,81,56,48,26,118,46,132,139,124,238,94,+ 74,1,31,92,206,24,25,37,89,184,238,87,161,116,223,110,203,240,202,22,127,255,9,149,+ 123,122,95,202,54,135,205,61,123,20,121,117,202,69,136,214,117,10,189,233,147,33,253,178,+ 149,149,251,86,33,89,166,105,30,26,211,118,118,139,242,140,125,5,178,81,3,251,77,188,+ 34,98,185,223,116,180,150,50,1,176,230,41,188,5,240,184,84,78,137,1,33,40,152,111,+ 181,195,16,0,1,46,61,66,29,46,63,59,40,24,20,17,15,16,33,48,84,57,24,7,+ 9,63,13,49,253,33,60,250,222,118,178,8,183,110,73,248,242,64,179,19,254,140,0,107,+ 38,9,63,57,213,141,201,91,170,111,106,128,153,12,49,99,79,245,37,104,12,22,170,47,+ 194,7,33,8,43,235,145,56,220,53,5,56,187,123,155,246,206,89,22,15,35,29,239,180,+ 124,237,167,139,228,13,218,96,118,205,159,25,104,157,220,113,149,91,254,19,193,88,2,36,+ 175,234,2,183,31,23,172,92,112,18,232,250,62,164,179,120,22,70,17,217,198,121,67,49,+ 3,61,80,70,174,168,89,14,213,165,16,240,197,128,76,237,15,239,73,58,184,109,234,156,+ 196,11,116,70,178,29,180,139,70,176,240,183,152,14,249,45,243,247,76,113,247,131,190,43,+ 205,101,250,203,165,250,253,84,64,139,110,50,15,66,84,129,4,65,104,15,10,118,205,13,+ 244,53,167,58,152,57,162,109,47,184,4,8,178,141,2,246,12,88,209,215,224,165,87,95,+ 146,15,214,143,220,9,183,145,6,159,235,116,114,114,93,178,210,244,182,28,212,149,171,150,+ 31,69,18,35,223,14,5,207,30,248,97,94,138,125,128,250,38,182,146,148,185,165,162,120,+ 165,21,76,236,128,232,25,212,236,83,244,196,2,211,114,122,20,16,32,123,234,23,110,65,+ 144,221,211,8,174,135,255,255,190,231,162,108,121,21,0,1,37,46,75,45,69,53,76,54,+ 43,12,7,10,18,25,20,23,22,27,26,18,26,15,13,255,255,165,99,198,202,182,173,205,+ 228,242,127,197,24,84,142,88,216,240,158,83,63,207,192,250,229,18,20,126,211,171,84,50,+ 226,218,204,254,118,10,90,15,164,172,173,214,121,183,26,145,189,170,208,107,64,194,34,219,+ 92,118,61,199,185,137,65,141,223,28,15,193,1,64,237,186,23,168,5,23,156,183,253,173,+ 0,60,120,18,138,171,48,169,37,221,108,214,126,18,223,81,56,33,138,96,62,15,244,13,+ 203,122,164,208,234,171,170,105,53,27,115,48,21,98,71,99,71,48,40,87,49,238,145,16,+ 43,200,177,2,114,213,232,68,254,35,98,240,240,193,181,72,113,124,109,79,150,73,197,13,+ 209,9,247,153,25,23,152,112,93,125,188,70,110,64,64,193,235,151,85,114,248,35,222,108,+ 238,173,181,82,70,85,133,76,40,214,40,161,149,170,32,41,98,47,168,189,131,164,57,44,+ 191,220,32,160,14,35,83,92,232,54,182,193,167,185,236,240,47,229,198,108,187,13,133,203,+ 103,208,235,107,185,21,44,210,227,65,233,8,62,0,136,88,63,50,80,126,39,87,247,183,+ 204,94,166,235,27,168,128,54,235,90,69,64,127,37,144,107,48,164,60,93,118,239,217,85,+ 116,32,175,52,192,48,165,53,123,237,208,32,57,19,0,1,21,64,66,52,18,16,8,5,+ 5,52,50,51,13,20,81,78,90,28,28,6,249,7,9,213,187,165,233,85,173,26,9,57,+ 149,243,45,22,37,30,23,52,77,253,27,169,98,84,163,244,201,191,159,198,203,147,137,208,+ 18,21,235,75,150,28,157,196,192,102,29,122,202,146,229,46,168,189,221,231,98,219,228,112,+ 171,199,198,131,27,94,16,235,241,143,169,217,126,150,163,128,214,135,241,108,242,182,59,221,+ 165,224,65,159,96,80,97,227,195,193,73,125,195,251,189,195,192,61,146,129,147,105,22,170,+ 16,100,63,80,112,70,141,96,98,84,53,159,82,134,60,10,130,167,186,20,15,88,97,77,+ 42,73,86,37,117,101,74,140,171,49,254,211,20,168,71,94,12,186,13,115,202,175,225,97,+ 238,50,41,78,254,136,181,86,85,87,5,249,130,228,203,188,128,57,124,51,27,145,65,139,+ 158,73,55,14,235,160,225,231,19,197,70,194,219,146,222,199,47,150,184,12,44,48,157,165,+ 116,115,126,218,222,169,44,173,12,144,105,222,26,110,47,144,37,52,162,222,40,22,239,14,+ 36,177,30,196,134,33,166,144,235,17,241,117,161,73,201,144,110,39,228,127,72,246,78,13,+ 248,152,211,189,13,61,61,56,118,103,38,146,219,66,8,36,30,104,160,205,235,219,124,109,+ 73,195,101,151,10,113,50,96,40,27,174,246,88,192,194,175,106,250,152,84,253,224,223,175,+ 59,65,67,217,251,80,181,243,173,63,89,164,50,168,215,88,74,155,3,125,89,161,78,50,+ 16,214,188,2,84,225,222,165,123,99,131,85,48,15,223,220,25,217,44,82,130,194,158,155,+ 207,172,105,60,37,95,241,12,22,119,21,116,17,103,232,152,11,113,42,1,131,2,240,40,+ 19,77,222,128,196,99,153,191,23,173,242,48,172,192,225,80,207,56,126,130,157,222,189,249,+ 175,160,159,176,46,19,161,96,53,206,38,148,130,82,247,174,107,64,241,181,58,222,202,178,+ 63,146,250,53,221,90,128,64,123,173,25,11,111,198,46,118,62,118,238,4,98,194,79,243,+ 209,135,114,44,164,203,89,93,169,149,74,105,117,152,187,47,255,133,89,47,159,55,182,146,+ 158,202,60,10,40,99,2,116,123,55,19,11,138,117,158,62,55,163,160,128,194,10,134,136,+ 67,203,29,13,212,244,238,77,165,10,118,165,83,204,2,61,162,255,255,132,219,81,27,96,+ 19,0,1,14,23,63,59,56,18,7,7,11,28,49,43,36,25,33,72,61,84,36,32,245,+ 203,100,174,17,156,4,7,116,227,130,171,23,207,195,147,159,149,219,149,142,231,38,186,141,+ 157,6,228,143,81,100,202,141,182,177,247,105,223,147,9,243,79,21,237,62,240,180,166,69,+ 113,50,199,151,81,202,114,165,59,26,72,77,43,50,173,199,2,237,78,77,167,178,176,212,+ 195,23,206,2,20,254,250,69,151,218,126,6,140,74,208,254,210,245,248,236,206,89,65,37,+ 185,145,114,144,102,197,190,212,91,20,20,98,246,219,102,181,42,167,154,217,31,30,253,61,+ 128,176,160,127,130,63,15,127,204,83,77,10,31,51,174,200,147,64,127,139,139,194,195,194,+ 216,4,132,85,56,201,214,182,18,69,136,218,84,215,55,175,106,46,11,39,188,119,31,117,+ 9,37,109,212,113,88,1,241,197,85,101,6,204,149,207,164,1,237,86,222,152,5,56,10,+ 220,144,176,161,140,187,148,217,127,31,105,9,5,90,18,197,5,16,213,193,181,168,30,213,+ 209,49,189,203,80,99,189,68,141,238,239,216,126,56,247,85,75,204,131,170,99,127,56,60,+ 8,93,131,6,37,101,178,127,243,126,36,156,130,139,120,241,110,238,142,172,169,25,203,57,+ 207,191,131,172,11,188,33,141,185,13,49,100,41,150,59,53,11,176,101,56,125,201,43,36,+ 237,233,209,224,242,172,42,140,69,98,19,171,6,249,2,149,63,170,143,221,87,250,2,191,+ 206,149,73,254,133,92,194,49,165,237,100,204,122,187,7,59,34,224,41,239,175,2,147,195,+ 2,164,60,123,63,231,216,197,196,40,179,189,97,153,199,153,37,153,20,196,39,119,248,225,+ 142,101,48,213,215,241,99,222,17,73,50,51,59,167,134,112,39,227,111,220,181,149,219,101,+ 148,122,242,57,23,208,102,158,94,114,143,25,104,30,108,94,69,214,174,255,217,116,99,226,+ 157,19,0,1,26,39,45,19,10,30,29,52,39,49,33,66,59,57,13,13,13,57,57,49,+ 247,203,106,229,155,113,42,208,220,129,60,213,105,142,213,115,119,208,184,135,77,193,95,247,+ 45,81,207,206,48,19,211,235,3,6,91,67,163,133,95,25,186,206,131,147,127,165,69,223,+ 15,230,164,72,53,153,211,76,63,228,73,36,71,181,109,64,206,167,217,247,88,189,98,33,+ 9,120,54,108,55,110,67,170,121,202,166,56,20,177,238,79,8,1,247,47,214,31,206,210,+ 194,252,74,187,197,200,127,21,8,229,127,68,142,179,11,217,36,134,109,126,170,226,89,113,+ 190,103,242,130,73,20,16,217,169,200,163,235,125,200,183,61,4,55,192,73,24,96,81,14,+ 219,102,253,125,254,224,231,66,3,209,8,106,114,97,32,114,142,10,222,223,212,45,210,43,+ 148,138,90,63,66,24,122,140,44,251,104,180,62,201,151,93,182,200,246,138,128,186,197,61,+ 35,112,244,250,185,25,168,208,120,129,67,246,204,61,239,80,56,39,181,118,65,247,152,84,+ 149,105,97,39,229,40,82,230,128,106,95,49,132,229,55,50,33,205,90,82,54,66,179,221,+ 112,189,249,25,187,238,143,139,211,225,217,254,41,235,243,144,63,250,151,8,249,192,133,162,+ 116,98,219,87,130,179,234,62,13,5,145,209,255,210,9,200,66,193,116,7,33,75,22,75,+ 119,107,101,177,19,0,1,37,49,75,44,65,71,75,50,42,31,56,37,38,11,9,16,15,+ 13,11,7,248,36,231,182,69,5,159,128,28,205,145,23,85,139,179,147,158,36,240,61,93,+ 196,174,254,8,164,60,23,143,155,57,71,165,83,13,63,209,76,230,4,152,168,46,141,75,+ 107,242,162,237,155,127,171,132,237,172,174,221,234,85,19,18,234,234,132,37,189,46,69,57,+ 105,130,108,162,185,10,210,238,232,213,78,221,106,185,80,74,201,100,32,61,216,57,153,52,+ 111,59,255,124,144,118,160,192,155,180,193,141,87,186,124,48,225,79,53,226,221,120,76,136,+ 243,96,50,143,83,37,5,122,109,159,195,76,87,88,33,233,10,159,101,78,164,128,107,85,+ 220,88,113,83,45,19,111,117,103,150,127,118,155,98,231,98,106,193,46,43,182,101,51,71,+ 120,143,198,247,66,137,76,156,21,241,29,64,138,106,94,92,212,29,236,163,131,81,152,179,+ 232,6,190,15,79,100,202,133,44,218,14,175,252,160,59,213,67,98,164,110,88,47,74,117,+ 193,48,92,62,220,126,76,30,224,252,199,192,120,116,139,22,86,243,116,67,237,7,210,189,+ 66,159,137,54,184,190,237,244,10,17,212,192,9,193,28,7,21,201,170,172,203,225,50,24,+ 26,11,237,59,49,220,149,149,106,90,54,116,247,195,234,159,132,4,41,89,26,96,237,120,+ 48,3,184,214,55,228,126,185,147,120,38,27,93,237,28,60,67,129,32,241,70,205,117,234,+ 33,43,104,229,111,219,60,86,190,221,60,98,26,230,21,61,97,255,179,213,8,4,65,214,+ 97,210,65,243,212,155,51,43,112,115,57,147,169,254,174,253,203,154,109,100,254,134,238,45,+ 240,51,250,255,109,244,252,101,165,64,43,230,246,97,197,102,188,68,25,145,64,245,114,26,+ 106,179,184,89,84,136,29,210,22,117,193,4,134,176,245,15,29,208,189,100,213,192,157,38,+ 241,5,103,241,132,103,253,41,1,40,110,152,93,123,168,129,192,39,97,165,85,251,193,125,+ 209,82,10,137,139,52,20,95,202,192,235,30,131,143,67,231,192,108,119,98,51,206,191,172,+ 104,254,249,103,104,53,140,255,22,174,45,33,111,52,105,255,197,231,74,15,198,254,133,198,+ 72,143,223,99,183,71,18,169,199,71,151,167,189,80,210,33,27,3,33,87,16,45,189,142,+ 156,220,66,161,19,254,39,229,52,25,9,44,65,60,76,238,247,104,212,80,91,12,189,243,+ 52,251,77,185,29,243,249,234,175,79,21,137,163,163,102,42,202,166,134,169,154,109,6,118,+ 61,124,195,224,77,212,243,8,120,92,150,95,255,250,131,21,33,177,181,23,0,1,34,40,+ 45,38,56,67,39,37,21,37,31,31,19,9,19,18,26,24,27,39,32,27,17,15,11,255,+ 255,166,18,208,165,73,90,32,146,243,13,6,88,150,115,36,214,65,212,80,153,228,48,23,+ 185,57,186,122,165,220,55,0,13,228,126,117,241,90,68,244,159,64,64,197,208,250,39,69,+ 162,93,218,150,135,12,211,152,216,164,226,174,107,33,54,201,83,1,112,3,31,102,186,177,+ 179,56,168,165,141,239,203,75,226,109,206,209,139,127,152,53,251,159,181,101,195,98,27,185,+ 17,187,21,197,53,99,23,54,228,24,173,54,109,62,202,82,155,207,177,112,1,73,123,143,+ 16,222,154,69,149,69,231,118,26,63,196,114,252,138,157,122,190,252,183,165,145,56,8,203,+ 150,155,196,26,17,58,29,5,200,99,117,71,26,190,97,156,37,71,140,239,184,71,111,111,+ 10,233,109,190,143,112,178,47,14,206,229,183,174,74,114,187,13,142,197,218,55,47,122,139,+ 253,211,229,238,52,161,174,252,245,51,8,93,13,113,92,3,191,90,161,107,29,252,183,88,+ 133,96,195,145,24,151,170,44,222,35,205,54,152,206,71,202,20,9,149,105,229,199,165,131,+ 56,25,53,84,155,216,207,26,197,126,71,253,217,252,40,45,105,137,195,254,22,42,169,80,+ 180,206,16,168,165,174,38,206,153,171,104,4,188,174,228,237,36,81,103,221,220,208,123,22,+ 0,1,37,46,75,40,47,19,35,35,55,40,32,19,17,13,10,17,22,22,14,42,42,52,+ 18,11,255,255,165,233,227,161,144,206,141,153,207,196,167,250,70,239,153,254,74,88,72,253,+ 106,101,98,195,32,45,82,40,156,162,58,203,148,149,127,53,3,143,26,113,58,39,137,62,+ 104,200,223,243,47,204,154,96,94,184,25,217,176,245,84,109,113,112,152,231,206,164,194,112,+ 58,157,83,109,81,222,172,234,19,166,116,169,166,172,74,234,15,62,226,155,88,82,104,104,+ 60,196,220,25,251,192,204,195,137,246,107,144,163,185,123,173,205,235,190,231,182,136,74,188,+ 138,102,33,67,191,66,198,77,85,119,186,111,27,16,136,129,166,77,81,48,188,61,148,33,+ 168,75,121,29,109,99,9,126,115,7,168,17,23,152,225,225,78,3,30,101,205,48,65,22,+ 142,142,111,233,74,204,202,68,1,102,48,170,48,118,242,61,29,184,91,56,100,96,27,199,+ 88,14,12,14,255,126,85,14,240,11,22,191,34,198,141,179,205,202,20,35,224,196,50,143,+ 85,175,223,185,157,255,63,234,102,145,61,80,233,102,149,164,47,144,17,0,1,28,46,68,+ 46,39,46,64,68,43,24,13,12,25,64,63,57,25,22,8,255,255,165,29,66,144,176,127,+ 188,2,195,158,156,15,2,158,121,176,46,143,162,16,36,1,249,235,255,139,186,153,228,51,+ 47,33,77,20,19,8,209,174,61,161,21,17,206,191,138,160,113,180,195,219,15,72,176,125,+ 94,214,138,121,122,98,225,26,216,252,63,182,49,184,233,180,193,44,66,6,215,31,82,33,+ 188,3,74,145,149,44,208,241,45,177,166,151,168,72,144,103,92,15,147,90,196,104,103,20,+ 140,242,81,2,95,216,186,252,174,110,134,248,181,199,119,52,87,210,117,62,49,180,247,197,+ 153,7,30,237,229,255,194,35,130,41,99,9,17,103,211,248,222,118,132,65,240,109,115,146,+ 61,163,131,171,220,159,96,56,196,116,142,202,217,23,98,138,85,199,75,165,6,93,112,108,+ 228,63,55,160,104,203,22,56,55,131,120,189,169,200,168,3,215,95,118,90,215,88,6,212,+ 180,245,166,254,60,70,87,164,155,7,8,126,157,145,203,143,254,199,211,68,124,233,134,89,+ 24,63,56,60,48,46,115,164,36,153,64,82,22,35,178,143,122,245,151,72,120,59,122,104,+ 4,162,18,216,14,210,123,40,53,208,65,23,0,1,40,49,66,32,28,12,7,11,33,30,+ 27,7,9,8,18,33,34,23,20,21,52,65,77,42,0,36,230,244,40,165,33,220,89,124,+ 135,45,40,101,255,178,26,177,106,196,72,198,232,255,96,86,107,232,138,58,242,22,4,234,+ 103,230,109,119,86,114,200,74,174,70,130,188,186,9,144,138,140,201,169,91,215,43,45,166,+ 28,250,139,225,237,101,16,115,55,29,11,131,97,77,107,178,21,9,107,82,170,84,183,87,+ 55,102,15,149,147,82,60,212,101,130,49,110,119,129,31,220,100,86,126,205,211,174,208,26,+ 166,74,42,201,193,151,19,102,195,65,11,13,134,125,23,14,162,28,158,168,187,224,248,110,+ 143,253,161,34,187,74,124,51,254,63,239,99,136,80,100,108,96,167,197,28,75,151,209,143,+ 6,85,245,72,123,78,183,133,51,80,22,70,209,72,176,52,193,16,91,56,74,44,164,76,+ 75,157,33,242,44,89,78,246,89,122,125,2,130,133,60,175,140,78,109,22,213,27,231,96,+ 253,57,116,230,48,15,113,205,183,93,9,78,42,90,113,85,244,1,83,101,17,247,185,112,+ 108,107,169,208,217,245,11,54,113,197,124,7,33,245,139,67,182,144,115,174,87,149,255,71,+ 2,187,39,102,6,17,106,186,161,214,73,186,58,66,36,169,221,205,14,129,180,80,162,245,+ 9,23,170,239,218,75,240,181,114,178,129,13,65,226,1,116,25,143,37,12,199,32,16,205,+ 116,182,18,59,244,132,188,165,178,10,46,89,68,5,61,0,199,132,65,175,175,24,237,162,+ 98,186,97,163,93,148,191,182,103,114,237,25,137,66,75,9,147,154,34,106,69,11,24,123,+ 135,212,190,21,102,200,218,152,79,37,88,94,33,8,33,51,64,13,5,187,149,143,119,119,+ 158,81,249,67,90,89,233,196,23,178,81,201,68,19,172,211,180,53,226,31,144,49,38,31,+ 67,0,156,130,67,50,83,90,110,20,106,56,202,239,112,148,165,105,143,87,153,60,205,178,+ 196,148,94,80,222,190,245,129,42,245,130,70,117,203,10,247,138,246,53,11,184,107,170,14,+ 209,100,69,92,36,254,34,154,21,33,87,91,155,194,73,110,127,236,41,59,77,77,142,2,+ 211,155,155,144,250,122,236,212,134,95,185,161,21,62,14,187,252,175,110,168,172,37,39,42,+ 41,54,123,240,196,236,223,188,25,62,57,183,15,34,160,6,193,119,144,184,173,244,170,1,+ 90,14,25,241,139,159,208,200,243,251,142,15,0,34,33,58,25,44,27,30,19,32,51,51,+ 39,18,10,81,35,144,247,230,90,212,61,70,247,105,230,244,168,149,11,117,13,186,155,176,+ 214,56,101,27,156,245,228,92,172,249,213,135,91,32,7,137,13,108,181,207,97,49,128,66,+ 34,0,194,106,84,158,103,109,15,102,107,35,232,80,213,16,83,180,51,53,187,241,222,218,+ 95,149,85,221,216,89,118,244,53,20,208,162,13,43,139,182,95,12,177,11,240,241,185,73,+ 221,127,139,140,169,124,118,170,34,207,67,168,214,33,88,92,228,64,161,201,16,193,127,20,+ 48,106,197,0,207,192,144,43,132,108,222,216,66,40,205,236,122,40,133,152,87,212,69,122,+ 184,153,211,202,146,95,83,152,27,232,118,96,235,140,163,194,60,83,66,232,173,24,97,19,+ 93,118,221,97,157,230,203,6,58,201,219,93,158,118,11,47,190,44,231,82,2,215,141,79,+ 161,171,75,92,199,144,35,96,53,183,181,221,161,129,251,155,28,19,55,154,25,59,254,174,+ 62,184,103,2,147,89,158,19,84,68,53,69,149,242,193,188,205,139,242,160,74,117,250,53,+ 176,49,94,29,150,49,69,200,10,133,149,112,175,105,173,144,214,95,17,141,253,13,226,235,+ 218,178,189,24,190,248,80,41,33,145,114,81,63,113,189,199,202,146,207,228,82,125,48,12,+ 189,112,146,53,198,140,252,111,113,40,228,122,28,223,153,143,252,43,167,47,253,24,55,205,+ 171,7,216,242,218,84,74,41,52,67,121,135,87,28,204,219,8,101,134,160,82,62,221,32,+ 127,246,222,8,90,211,18,248,245,249,49,201,151,57,66,238,196,243,180,191,190,198,246,240,+ 160,122,41,105,83,167,86,77,55,140,46,19,68,224,238,223,45,202,162,50,132,9,161,93,+ 160,225,187,159,184,125,137,159,170,212,164,192,106,159,70,52,112,248,111,195,219,132,104,250,+ 44,232,45,24,40,113,108,59,131,172,115,67,1,86,105,186,37,204,141,155,211,235,225,186,+ 44,61,65,151,254,135,22,235,66,122,62,21,179,133,62,121,190,11,239,66,81,44,164,32,+ 44,37,249,169,34,22,151,156,42,249,18,151,174,110,73,184,192,115,79,207,162,40,19,22,+ 255,31,95,99,53,171,132,109,58,204,145,100,92,223,217,86,203,32,240,127,174,37,99,134,+ 220,94,211,215,59,46,101,176,202,115,255,34,19,94,68,53,59,187,67,73,176,1,29,123,+ 139,117,140,10,229,102,188,240,175,181,249,230,57,11,219,125,138,113,69,204,0,17,0,1,+ 5,33,33,29,28,28,40,35,41,32,20,14,23,34,34,31,105,103,126,55,80,74,53,195,+ 134,101,18,84,21,171,178,3,129,198,187,63,178,116,25,143,235,132,152,42,26,229,37,230,+ 132,228,210,9,19,98,172,58,9,6,107,253,90,242,85,159,139,73,18,158,225,240,120,177,+ 220,228,101,246,4,53,9,154,173,102,17,3,232,194,133,133,203,116,34,219,49,96,255,65,+ 68,245,231,142,179,86,216,222,166,184,201,102,118,175,251,201,130,126,205,1,184,202,209,43,+ 114,123,3,149,195,182,51,116,28,64,179,23,182,146,214,187,248,147,221,102,125,133,219,173,+ 8,44,160,46,231,109,226,192,237,246,53,111,181,177,100,214,111,38,139,211,223,156,197,45,+ 163,213,130,104,77,228,31,139,191,212,148,232,7,165,185,251,8,59,51,123,32,148,13,201,+ 132,103,186,202,10,211,100,29,212,6,92,106,190,143,143,58,158,230,14,140,60,53,17,141,+ 64,150,118,211,185,205,172,53,19,11,225,44,212,143,66,225,155,70,56,245,213,148,114,131,+ 148,180,209,56,31,164,36,235,202,224,218,46,80,178,208,146,239,218,157,236,131,7,68,85,+ 166,153,99,90,11,195,210,222,39,69,187,64,236,209,60,97,190,73,123,11,51,104,84,113,+ 242,224,206,55,138,88,176,3,188,252,241,209,75,65,39,218,27,231,63,129,31,77,190,212,+ 115,192,88,97,58,193,40,194,185,125,131,249,136,143,2,221,10,251,3,18,151,108,218,93,+ 38,228,132,234,23,175,196,82,143,122,168,174,42,149,219,53,180,154,104,77,33,218,82,162,+ 170,224,128,11,236,67,243,190,161,13,147,26,179,212,169,121,204,231,150,169,215,43,2,33,+ 184,246,182,218,111,18,56,168,202,159,131,206,6,48,221,232,219,126,83,241,221,195,13,130,+ 110,250,160,232,39,138,105,2,89,229,150,21,8,92,30,202,184,97,119,125,163,83,16,26,+ 45,83,35,23,91,243,99,66,132,38,239,42,34,42,11,193,159,47,86,19,96,42,198,199,+ 179,126,56,28,97,64,23,209,68,140,176,62,254,71,63,20,150,250,121,43,101,15,22,2,+ 117,255,255,226,78,184,199,195,20,0,1,27,43,45,47,56,69,42,40,44,46,32,28,25,+ 20,16,33,40,29,26,24,23,6,255,255,165,152,9,154,100,26,63,130,173,242,12,73,224,+ 127,146,195,217,14,93,106,82,88,127,70,174,2,154,170,254,41,214,217,177,8,35,197,109,+ 230,114,179,56,0,57,233,199,139,54,9,95,110,247,16,6,161,193,5,137,108,2,170,143,+ 9,106,183,73,55,109,189,104,222,180,53,68,72,110,105,146,11,136,13,140,1,39,122,44,+ 137,18,85,243,19,122,7,86,64,112,95,45,11,143,180,31,244,82,67,170,164,232,37,249,+ 184,165,215,248,52,76,34,225,50,209,48,156,133,206,254,36,105,185,7,154,121,58,205,165,+ 179,42,206,114,147,144,152,175,115,72,36,216,13,55,177,175,86,189,33,94,218,109,192,90,+ 235,167,125,3,191,142,94,65,41,237,153,252,39,129,184,251,27,92,91,135,54,187,187,171,+ 232,169,163,31,126,54,135,216,170,74,29,33,175,58,38,56,84,66,66,173,160,94,7,220,+ 57,41,98,58,170,187,115,10,25,15,194,239,153,123,45,250,27,208,137,96,248,237,231,146,+ 57,231,228,117,190,123,212,151,20,8,0,174,178,200,27,27,7,8,7,2,193,189,63,5,+ 2,110,162,160,89,253,242,190,160,73,52,39,15,86,143,42,14,51,198,16,16,214,213,87,+ 152,109,26,109,26,244,75,155,35,100,181,245,236,27,241,135,164,83,70,71,89,42,55,76,+ 51,8,27,164,83,250,70,96,238,84,8,244,243,208,20,162,215,45,178,158,113,250,125,135,+ 41,222,186,37,46,120,31,185,59,15,106,53,192,84,0,49,171,140,62,251,65,32,51,205,+ 252,192,181,156,173,239,194,102,77,49,148,84,0,128,130,233,100,203,102,144,236,13,67,217,+ 92,34,222,180,185,133,118,63,26,226,58,203,124,253,52,1,240,32,187,179,165,124,198,130,+ 183,105,83,84,251,14,95,220,199,82,122,241,13,103,200,207,98,109,118,78,207,19,91,99,+ 4,96,42,163,212,16,132,2,201,134,77,178,166,254,163,199,81,71,225,15,245,240,83,139,+ 103,124,115,172,246,76,97,26,75,11,97,234,36,200,125,205,223,46,132,92,209,211,169,80,+ 229,159,70,113,192,20,0,1,6,42,75,85,55,44,33,74,52,47,3,29,35,35,11,6,+ 7,5,4,39,37,22,36,231,105,59,212,176,240,208,43,181,76,200,45,238,180,250,223,10,+ 189,251,77,66,37,241,230,23,1,186,93,105,2,198,29,232,1,197,85,186,141,190,3,29,+ 187,213,117,60,204,166,180,92,52,36,46,154,186,104,176,45,169,8,148,196,71,224,11,139,+ 209,126,95,217,185,49,145,244,29,31,223,131,53,29,251,24,5,21,96,190,55,160,178,109,+ 186,124,50,52,179,171,3,54,112,41,145,225,248,167,254,56,6,249,50,36,224,223,191,81,+ 152,79,138,166,125,88,68,248,112,111,58,116,75,177,15,206,114,6,176,197,177,134,122,133,+ 3,30,100,232,154,48,208,114,77,140,135,194,69,5,193,163,158,36,55,118,236,90,164,193,+ 225,149,122,20,205,191,41,214,174,230,26,187,204,12,25,18,141,230,82,59,137,227,163,68,+ 194,131,190,129,98,254,111,156,44,140,126,199,13,47,30,159,108,18,75,202,240,217,143,122,+ 140,105,100,194,155,88,211,140,201,64,168,65,77,229,24,86,187,194,140,17,190,241,182,151,+ 85,215,117,5,52,43,126,105,54,192,126,198,108,132,231,165,248,229,138,227,227,158,164,93,+ 224,200,143,197,147,17,211,16,117,231,192,85,117,230,79,64,157,9,64,29,249,85,162,131,+ 109,124,193,37,124,200,109,58,141,62,79,235,249,217,112,106,240,199,3,174,201,76,74,186,+ 28,84,209,217,200,245,13,73,23,184,167,53,171,200,191,185,163,44,105,107,11,15,178,246,+ 101,181,146,1,44,225,249,194,124,2,24,226,115,54,71,58,83,10,203,79,227,143,244,207,+ 6,118,90,227,28,181,197,188,218,182,91,20,40,230,63,204,211,204,196,174,220,249,113,234,+ 15,87,52,40,180,217,124,116,66,129,65,132,84,184,21,116,109,56,106,47,104,227,55,116,+ 234,153,77,119,84,119,154,99,5,45,61,178,43,111,148,246,144,29,130,25,225,188,212,90,+ 110,61,185,61,21,72,53,178,32,129,151,43,20,107,140,9,251,184,129,88,116,84,145,40,+ 62,58,171,200,179,142,162,122,160,163,30,190,65,26,22,4,126,209,24,199,49,181,233,129,+ 180,64,39,155,156,110,1,87,14,116,222,195,154,192,120,218,98,195,67,88,191,105,127,67,+ 56,255,255,212,154,197,56,46,203,22,0,1,39,46,60,34,47,45,39,25,16,13,51,50,+ 45,15,17,28,18,14,25,35,45,29,18,6,246,192,229,179,15,151,29,67,132,76,15,104,+ 22,127,128,130,206,1,167,118,188,247,103,236,183,89,38,49,164,76,148,236,98,232,222,71,+ 151,182,78,164,231,62,161,226,101,58,48,205,61,245,134,185,109,245,206,230,105,232,196,94,+ 244,216,215,117,67,44,119,20,30,125,219,16,1,111,191,164,221,109,136,3,159,212,92,229,+ 84,50,239,236,91,189,205,198,175,186,17,49,41,249,1,61,15,221,127,71,252,225,23,84,+ 53,128,78,189,60,5,80,223,184,254,66,123,159,204,192,165,78,215,194,68,250,129,100,117,+ 226,78,153,31,136,181,187,219,175,156,181,52,235,54,39,182,198,106,208,59,152,209,174,33,+ 194,186,34,200,75,51,104,66,165,19,57,89,17,124,104,252,66,131,87,226,213,193,32,7,+ 74,69,222,55,83,112,204,9,69,144,10,115,183,100,222,221,164,16,101,184,186,79,92,210,+ 66,162,243,235,71,59,253,55,250,76,246,2,168,172,102,31,107,2,244,163,68,106,252,62,+ 49,202,152,122,139,170,100,92,231,87,73,190,170,230,212,249,210,76,230,198,60,38,66,120,+ 139,10,23,0,1,38,71,75,58,39,37,38,35,36,12,42,41,70,34,36,7,11,8,18,+ 21,20,10,1,255,240,66,183,27,228,200,218,55,204,77,94,84,50,242,114,145,162,211,22,+ 245,112,17,79,104,116,51,114,58,204,124,109,44,182,241,136,107,124,129,78,190,186,176,81,+ 58,36,70,108,161,82,231,204,188,122,198,120,50,253,77,138,36,127,205,97,111,130,180,209,+ 226,221,145,40,9,246,129,2,35,216,193,81,196,29,196,39,51,210,125,154,55,255,118,119,+ 151,39,51,154,67,85,106,159,63,33,94,11,253,35,108,208,142,41,236,106,63,87,151,103,+ 240,40,35,188,56,63,224,227,29,64,54,183,243,5,213,204,114,88,246,13,128,219,15,100,+ 233,156,35,10,101,67,137,171,250,117,50,123,60,230,170,65,223,45,150,164,95,248,13,121,+ 128,249,226,235,108,65,240,222,22,12,36,99,39,130,32,119,236,91,68,211,40,230,153,186,+ 192,57,223,156,14,5,224,252,26,168,22,233,174,130,87,16,87,200,83,231,244,159,64,82,+ 18,187,187,182,76,103,255,35,66,121,0,252,105,92,3,241,23,106,70,223,86,218,48,172,+ 30,255,64,126,3,28,76,45,154,55,28,96,73,125,27,25,252,223,198,216,79,215,187,249,+ 227,21,11,213,84,216,16,234,203,35,122,82,172,135,89,63,29,152,9,103,88,210,185,214,+ 178,221,34,245,205,18,109,104,101,239,244,178,28,0,218,215,91,167,16,249,130,190,7,174,+ 169,204,11,239,97,102,219,80,48,50,16,7,251,134,175,39,14,251,221,250,181,201,180,220,+ 21,43,135,130,179,99,239,22,225,15,185,209,247,225,238,168,104,122,243,224,87,22,149,255,+ 100,1,103,15,63,244,164,183,69,239,1,68,56,23,36,78,173,37,189,182,62,189,155,20,+ 252,34,196,37,215,230,115,242,77,61,199,74,169,229,82,74,189,111,200,77,28,62,8,2,+ 252,35,32,170,129,5,47,107,253,133,246,113,141,217,148,122,149,96,53,79,154,125,34,16,+ 136,119,170,154,53,134,83,156,135,142,216,90,145,247,131,154,121,15,255,177,135,158,145,41,+ 123,14,191,3,242,134,195,163,140,142,48,205,150,81,101,56,128,179,27,164,175,120,202,124,+ 55,86,40,104,18,131,36,195,32,16,104,50,138,131,173,79,164,171,165,177,210,87,72,203,+ 156,224,103,58,110,228,182,140,88,191,134,37,77,217,249,24,215,27,90,64,141,125,128,255,+ 208,246,41,40,228,0,13,0,1,0,4,10,11,11,8,6,7,33,56,65,135,99,168,54,+ 28,160,61,172,178,229,112,162,86,211,232,100,37,178,234,24,200,178,227,14,245,99,109,58,+ 149,59,35,134,106,20,54,28,112,104,34,90,131,244,84,53,233,181,9,211,77,101,22,124,+ 27,170,197,216,76,204,240,87,249,47,12,30,248,183,109,26,79,29,74,204,5,214,157,86,+ 79,161,46,72,132,205,188,152,233,193,104,200,167,123,197,188,114,62,63,253,113,112,75,142,+ 228,37,208,207,31,230,90,224,133,87,111,254,12,217,23,198,150,207,180,90,177,27,82,217,+ 228,187,31,24,162,252,2,101,161,88,189,124,169,110,25,179,75,62,181,52,73,61,209,16,+ 193,35,161,122,163,11,81,24,178,138,239,190,75,195,210,46,13,47,202,109,10,20,70,73,+ 12,196,139,113,196,81,218,233,43,81,102,115,116,10,219,219,144,183,115,41,114,235,42,68,+ 8,152,227,33,103,11,5,235,86,169,201,248,17,39,162,124,152,121,132,178,198,216,221,248,+ 140,223,111,99,225,94,225,211,242,67,107,6,9,195,118,191,32,200,119,178,214,14,203,74,+ 121,92,30,120,133,67,214,12,223,245,96,121,182,0,35,195,142,53,214,98,18,214,234,203,+ 184,132,14,53,146,41,2,24,249,251,54,236,183,77,160,16,161,103,243,243,172,179,20,239,+ 158,249,7,2,225,248,238,233,58,2,251,139,175,93,77,194,245,1,105,12,203,209,52,130,+ 40,62,20,197,183,165,218,39,122,139,133,197,233,186,198,236,9,236,206,72,240,6,132,200,+ 207,165,50,194,121,1,95,181,43,234,198,175,182,124,79,18,86,33,246,106,174,2,119,50,+ 158,231,33,166,91,239,105,136,161,19,212,154,234,69,8,4,160,197,155,42,51,137,2,246,+ 223,23,149,247,173,196,186,125,163,8,177,91,75,24,66,222,182,240,215,47,75,189,46,226,+ 62,187,34,86,211,118,69,34,249,227,98,134,78,240,156,100,189,220,101,8,237,26,115,68,+ 26,105,237,71,146,226,203,103,33,236,226,244,41,14,53,128,153,186,52,59,170,110,118,159,+ 248,131,95,128,12,168,254,177,222,161,18,232,114,246,139,14,206,150,165,5,244,135,235,174,+ 58,13,221,221,17,255,213,33,211,68,129,169,3,178,241,217,168,197,134,251,156,253,146,81,+ 27,97,172,147,44,177,178,48,205,203,28,109,249,93,75,188,10,34,54,104,241,254,39,19,+ 240,136,224,189,185,201,62,56,226,129,64,12,27,211,95,196,163,42,167,110,246,145,11,186,+ 128,49,86,127,75,173,178,140,209,147,15,79,103,181,83,70,176,203,208,177,49,243,115,208,+ 22,252,238,234,91,63,36,210,0,22,0,1,23,33,45,27,24,30,24,43,39,52,87,73,+ 60,22,36,38,19,5,8,16,19,20,11,6,255,255,165,233,227,161,145,169,66,64,187,232,+ 52,155,181,188,116,214,139,113,49,36,10,92,17,117,72,208,163,66,200,234,93,209,118,169,+ 125,167,129,241,21,140,168,186,220,31,194,250,224,207,145,65,148,166,21,79,67,147,102,49,+ 17,41,250,120,15,25,125,178,101,161,28,246,91,223,111,133,4,38,27,117,61,6,155,228,+ 100,140,91,18,55,22,74,180,146,222,93,82,121,222,39,247,84,232,25,76,159,147,189,252,+ 121,210,52,43,74,101,47,113,190,44,8,78,253,91,191,236,211,43,49,96,66,255,58,61,+ 33,23,179,28,68,15,217,149,29,104,214,29,209,253,14,11,148,20,49,1,188,173,67,88,+ 30,192,124,32,185,70,114,136,149,255,176,109,197,5,169,223,14,92,149,214,93,243,214,187,+ 242,224,65,136,97,111,70,142,52,29,218,58,148,45,97,76,75,119,80,33,179,200,149,23,+ 104,208,179,156,55,186,176,227,74,61,133,220,54,145,72,163,61,88,173,139,72,138,9,75,+ 40,205,91,25,46,109,245,215,92,188,107,246,116,34,185,140,23,11,171,239,227,214,126,86,+ 107,9,141,24,0,1,2,11,15,18,26,42,38,25,7,17,25,36,33,29,36,29,35,15,+ 15,9,10,66,68,35,221,63,105,3,108,213,238,139,91,172,36,159,62,164,26,0,230,45,+ 143,101,136,81,105,203,178,173,162,147,61,239,129,124,83,113,44,64,104,231,185,24,108,152,+ 3,65,22,167,100,204,185,40,171,168,123,86,128,170,32,78,112,161,23,73,58,161,195,79,+ 126,8,2,246,193,63,138,18,49,89,85,4,136,182,211,109,210,2,42,9,20,227,84,126,+ 148,246,248,247,136,176,86,240,114,134,184,226,249,68,161,48,197,37,180,19,144,32,47,157,+ 183,123,41,26,188,60,239,124,114,224,121,44,154,10,143,141,186,235,208,85,10,35,225,81,+ 251,7,4,253,200,103,92,179,98,128,31,30,5,85,187,81,156,180,212,185,34,125,90,134,+ 35,7,22,201,220,246,184,181,119,113,241,114,90,197,244,71,54,247,226,67,237,34,56,173,+ 40,108,111,124,202,185,29,215,153,63,133,137,159,5,212,89,93,112,12,89,130,185,77,223,+ 67,141,113,91,47,178,55,143,110,128,245,0,133,178,104,225,178,126,237,186,33,204,42,146,+ 101,8,146,255,230,218,206,65,220,250,251,6,239,76,210,205,19,123,248,190,32,149,174,190,+ 69,102,49,77,232,104,41,215,209,214,172,249,3,25,248,82,227,127,89,79,83,176,230,114,+ 169,215,3,2,42,31,251,29,24,253,134,128,173,58,241,76,109,180,123,20,51,202,86,77,+ 65,242,214,223,204,96,188,56,171,190,52,85,188,181,75,144,42,200,185,226,186,15,157,6,+ 192,58,221,188,15,65,12,145,119,172,180,250,62,253,8,21,41,195,81,175,201,55,221,153,+ 33,179,254,117,51,153,97,86,43,29,71,13,36,34,188,185,223,218,223,241,75,47,42,236,+ 74,162,214,146,78,49,89,155,21,20,21,156,100,17,223,23,201,38,7,13,59,125,50,10,+ 83,121,146,163,254,252,242,230,158,34,109,71,80,55,250,23,208,190,108,146,79,254,129,66,+ 202,156,236,238,143,88,200,216,204,171,220,254,205,139,217,54,194,137,233,135,246,45,195,46,+ 151,88,158,238,57,74,22,191,204,19,24,92,96,232,190,237,32,163,143,201,38,204,255,241,+ 241,147,112,213,49,56,0,10,0,1,38,45,45,32,31,69,117,148,133,66,29,251,133,17,+ 194,44,118,127,37,10,179,84,121,166,176,96,214,135,129,243,156,196,164,65,201,189,141,58,+ 187,63,115,143,24,186,169,252,206,160,49,4,55,158,166,145,224,218,37,226,107,235,175,240,+ 47,8,150,216,165,60,114,240,54,214,19,179,149,52,63,84,160,15,175,26,229,246,14,84,+ 204,176,180,146,53,59,217,53,139,244,56,48,177,190,116,115,26,77,234,84,128,134,111,197,+ 176,183,40,20,230,251,219,212,20,4,91,52,203,251,175,235,225,68,179,255,157,88,40,212,+ 253,193,16,0,50,58,96,52,47,13,14,20,20,18,26,36,50,44,38,38,14,197,180,56,+ 157,86,62,31,222,39,46,28,144,84,212,148,132,186,160,220,174,44,32,145,214,147,88,221,+ 0,164,250,212,73,168,200,219,22,72,206,87,80,176,9,229,47,245,142,97,130,17,111,87,+ 237,124,127,132,199,129,171,223,80,3,22,163,232,67,30,221,106,58,180,25,149,230,2,194,+ 71,134,114,137,201,195,233,41,11,14,21,207,180,192,9,139,148,202,55,10,226,92,9,192,+ 9,110,156,121,157,219,56,234,149,198,245,189,229,100,252,214,236,161,180,201,102,117,241,132,+ 192,195,117,143,98,254,166,79,58,194,180,195,120,105,191,64,194,56,70,240,20,181,157,193,+ 193,184,119,127,99,251,171,161,245,90,113,163,59,119,39,145,116,214,245,208,60,61,207,104,+ 111,129,206,82,23,146,235,118,136,226,167,127,248,97,66,154,94,82,126,190,144,188,6,160,+ 112,127,87,101,214,129,190,70,138,60,226,195,173,32,170,65,223,216,130,29,77,189,123,200,+ 35,80,42,203,178,100,20,212,203,110,161,206,5,238,1,43,41,94,107,234,226,94,197,241,+ 81,78,149,202,156,100,129,130,77,251,207,88,189,224,95,65,138,38,162,253,111,52,85,36,+ 208,39,169,123,235,134,171,96,125,216,95,110,101,55,18,245,86,184,80,66,58,110,229,128,+ 118,9,120,154,140,41,121,9,44,12,107,173,209,72,83,193,176,244,77,106,164,232,92,121,+ 105,16,13,0,218,201,165,248,197,121,64,174,130,69,86,24,153,114,128,107,46,114,123,89,+ 75,65,159,229,139,145,31,21,91,141,200,35,128,155,201,73,38,46,118,182,206,245,230,107,+ 105,142,137,83,9,54,116,78,211,211,98,138,68,153,76,31,33,75,78,91,64,3,95,101,+ 99,144,14,218,129,101,252,88,61,217,203,187,237,17,56,55,225,224,246,163,105,174,72,99,+ 107,34,187,6,241,13,249,77,241,138,168,68,84,64,175,2,33,172,54,76,21,187,84,129,+ 234,24,22,240,19,28,84,67,117,100,144,173,50,107,109,56,137,176,236,168,77,207,236,176,+ 2,202,40,113,142,188,180,149,42,136,161,55,43,68,134,217,50,232,137,234,124,234,44,155,+ 234,167,163,24,87,7,39,175,61,72,81,70,46,91,205,12,81,166,48,160,158,187,203,35,+ 46,42,18,112,237,195,34,105,124,83,153,65,190,162,54,118,228,11,47,236,196,92,58,174,+ 99,160,213,22,205,240,104,102,107,162,125,42,225,54,5,30,204,119,155,61,32,237,249,55,+ 57,216,38,81,181,225,197,95,119,63,37,89,180,73,228,200,34,179,211,109,157,217,254,51,+ 33,198,99,138,227,24,220,253,2,47,57,214,177,59,111,109,99,226,52,30,77,237,197,3,+ 51,230,93,59,52,74,206,143,220,118,27,196,125,228,187,34,82,152,96,6,40,70,141,196,+ 90,82,91,178,146,27,104,221,169,139,63,83,142,8,128,23,0,1,23,46,55,47,30,43,+ 30,39,21,21,16,13,21,21,28,33,38,32,22,18,21,43,47,41,10,255,255,166,18,208,+ 165,74,120,128,198,134,76,252,183,1,176,192,115,254,52,233,26,223,104,54,236,193,74,149,+ 233,75,129,251,191,144,169,89,12,151,188,68,51,40,227,116,71,6,144,162,92,235,63,147,+ 227,250,125,95,146,80,25,2,32,95,35,238,135,230,187,84,144,162,107,255,163,137,3,78,+ 159,188,193,16,107,164,205,88,1,207,14,143,118,218,199,28,232,88,83,211,74,8,48,103,+ 54,119,68,223,143,68,174,155,22,69,248,88,9,253,139,10,182,52,24,97,4,40,214,202,+ 129,227,163,65,182,93,213,201,218,36,131,162,202,242,230,94,25,167,106,170,12,12,204,200,+ 245,183,201,56,232,122,55,81,196,178,50,223,44,123,6,234,89,160,157,115,107,91,21,194,+ 113,72,230,225,210,150,100,48,192,214,198,179,220,249,145,59,250,202,84,245,81,49,171,240,+ 135,60,150,148,93,130,202,228,230,206,187,231,131,111,136,199,21,79,241,121,28,83,23,163,+ 207,51,124,232,141,48,136,160,85,74,169,2,60,103,182,77,180,201,114,243,208,210,217,56,+ 164,194,223,50,30,58,18,131,192,205,66,91,40,0,85,177,186,157,146,11,50,191,236,121,+ 141,129,151,26,125,136,37,52,225,243,108,78,118,174,108,225,67,96,71,217,6,11,16,142,+ 158,130,87,95,35,103,165,223,251,102,30,196,72,96,164,235,176,106,66,28,187,203,110,253,+ 150,149,39,171,34,11,0,1,14,23,63,59,57,18,11,13,72,68,162,100,133,69,0,179,+ 178,178,123,176,47,147,162,185,170,177,152,82,196,186,172,245,38,243,1,178,253,56,213,199,+ 243,47,221,234,158,92,82,5,106,104,187,49,126,48,6,46,157,163,33,176,149,208,171,189,+ 77,58,112,223,215,11,209,16,75,78,204,230,186,220,56,210,222,46,255,156,61,45,220,237,+ 1,45,231,240,56,252,138,252,236,109,153,150,76,62,171,79,177,12,185,162,253,150,172,67,+ 74,20,121,60,5,14,159,76,251,127,78,228,188,244,16,36,134,33,158,137,118,195,215,37,+ 104,101,9,213,202,195,219,229,189,135,52,151,62,185,15,185,127,212,218,200,195,218,212,224,+ 143,185,13,125,141,164,138,46,38,21,252,123,157,190,56,15,247,234,16,107,57,207,212,149,+ 59,138,26,91,29,165,254,186,115,108,118,159,21,156,166,215,196,148,122,219,71,95,133,227,+ 218,66,196,138,96,184,152,70,80,15,38,211,122,71,159,236,217,58,81,49,84,200,248,179,+ 50,204,92,159,7,202,47,238,145,60,72,21,115,2,24,176,92,90,99,0,184,16,252,207,+ 79,73,121,7,149,248,109,187,240,152,94,192,92,132,34,39,29,204,13,211,26,65,5,43,+ 63,106,22,220,67,3,40,254,71,231,0,93,60,131,140,243,143,149,133,64,33,88,12,92,+ 57,94,136,50,152,241,239,117,35,58,177,191,240,205,81,189,84,102,238,62,130,85,40,255,+ 41,205,5,97,92,150,87,77,162,191,222,255,102,107,238,46,184,119,22,136,67,43,179,226,+ 250,30,42,108,132,63,91,244,147,137,10,57,121,127,197,148,190,91,233,162,208,248,121,30,+ 77,251,0,21,0,1,24,42,48,44,34,50,44,44,49,44,59,46,44,27,33,28,26,8,+ 13,16,20,9,249,7,9,85,74,67,185,197,168,218,155,118,235,229,167,197,146,249,217,217,+ 245,168,132,81,29,126,189,21,36,26,108,45,102,109,45,62,176,203,207,217,34,253,92,72,+ 135,21,211,157,19,180,151,14,243,93,110,177,99,9,90,47,209,40,23,110,50,116,249,83,+ 179,112,57,220,122,46,255,68,34,160,234,55,231,233,75,13,210,78,223,154,112,73,251,159,+ 207,102,45,124,76,177,190,104,91,33,32,35,125,24,230,41,94,57,3,88,17,173,74,249,+ 24,27,103,208,220,125,17,111,225,155,158,66,49,176,6,248,185,114,192,75,144,200,69,206,+ 176,92,175,34,32,232,221,54,8,26,94,77,110,202,192,161,237,253,5,104,139,169,92,93,+ 183,21,27,68,184,61,23,239,9,158,46,16,51,90,209,1,59,134,164,181,163,73,30,181,+ 164,232,189,133,219,109,18,32,4,78,193,155,78,110,29,10,225,144,174,175,186,230,163,242,+ 242,190,143,0,180,62,63,142,77,232,240,12,77,171,216,99,180,211,21,42,159,228,167,165,+ 11,58,84,111,201,229,41,51,172,226,107,149,181,102,114,187,136,7,133,78,240,175,114,163,+ 77,228,139,226,185,117,77,227,208,211,232,11,177,130,52,58,99,220,39,50,60,125,202,50,+ 3,220,155,149,111,8,187,148,237,109,43,193,123,91,70,76,29,194,27,58,4,62,57,82,+ 115,223,187,147,23,159,165,113,140,75,218,193,28,139,222,92,51,211,68,101,120,147,91,220,+ 205,163,233,210,115,37,123,137,207,178,142,7,105,235,241,50,53,75,130,8,34,169,200,31,+ 210,170,50,22,72,125,195,132,0,112,97,244,14,241,105,45,144,190,0,198,149,51,123,60,+ 175,124,111,136,109,231,255,150,105,143,121,56,81,47,196,66,55,95,36,196,125,255,179,66,+ 189,94,63,22,60,213,248,12,12,8,243,21,58,55,19,174,158,168,19,63,11,5,227,227,+ 232,184,133,248,14,72,60,2,236,3,166,172,169,177,128,248,2,130,240,52,210,201,73,13,+ 109,72,171,76,204,209,255,76,207,104,76,221,55,239,237,29,202,255,136,138,100,191,133,206,+ 101,241,89,245,29,26,90,35,16,21,0,1,21,49,55,51,28,24,12,14,18,23,25,28,+ 27,28,70,60,54,31,32,44,222,156,48,105,3,25,110,180,216,174,34,124,68,238,124,144,+ 0,73,61,149,233,140,246,226,86,187,31,233,195,194,127,0,101,178,157,10,69,185,147,44,+ 33,167,170,194,126,177,96,204,243,247,21,157,159,47,245,7,48,169,231,24,98,100,198,227,+ 19,84,111,146,106,13,138,72,189,206,210,6,157,250,76,11,71,240,110,225,174,168,177,234,+ 250,82,67,194,46,225,138,238,115,154,243,125,9,123,153,254,200,158,158,165,86,16,102,126,+ 166,200,207,30,27,70,133,14,137,183,92,185,43,228,105,16,80,3,114,140,230,250,252,199,+ 100,237,89,224,117,195,205,115,209,125,249,124,29,76,32,63,101,106,215,52,198,100,177,47,+ 116,137,153,128,26,37,173,24,219,50,121,72,150,34,23,206,97,25,249,136,116,191,170,149,+ 250,51,221,229,1,162,118,25,155,58,103,249,78,230,250,185,42,164,3,198,120,139,106,3,+ 47,52,224,154,235,43,110,248,117,158,221,61,217,121,234,34,222,99,184,85,201,162,55,93,+ 72,151,152,109,13,146,166,20,159,123,144,126,211,94,120,155,249,152,234,146,28,250,63,224,+ 111,154,211,235,91,21,131,242,41,187,26,75,219,163,144,154,51,212,62,112,247,36,199,245,+ 9,123,85,197,161,14,1,172,234,11,18,87,215,57,100,154,198,175,165,31,8,221,255,56,+ 7,245,156,56,243,255,33,70,250,59,181,91,136,55,144,72,62,87,184,74,155,166,39,61,+ 186,195,157,145,171,105,92,77,163,228,65,22,178,218,41,129,99,57,111,57,169,158,157,221,+ 66,146,209,251,158,255,180,226,255,255,24,128,13,220,57,84,88,230,17,0,1,31,60,75,+ 64,39,26,9,8,6,3,21,23,23,6,53,73,121,70,83,36,139,97,103,241,36,136,191,+ 182,110,124,233,188,160,85,20,234,169,185,153,154,178,136,207,244,130,12,83,98,179,228,234,+ 50,236,222,19,246,148,253,89,254,150,31,49,50,239,149,159,2,114,211,221,75,4,180,227,+ 186,82,189,140,21,132,240,192,141,126,148,1,120,83,98,219,169,69,199,40,167,162,175,53,+ 253,217,21,64,70,131,27,8,74,32,32,215,201,121,56,159,157,249,118,135,171,83,240,72,+ 90,60,39,31,49,236,168,145,76,53,66,19,103,145,192,5,92,220,167,49,197,22,96,70,+ 224,136,151,251,240,57,196,178,255,145,145,183,104,169,224,231,15,177,60,87,40,95,143,30,+ 201,237,122,149,19,225,251,231,201,253,87,53,191,95,30,220,151,131,104,162,40,203,172,122,+ 239,8,6,243,107,99,35,178,156,212,236,185,74,29,151,142,126,125,188,244,12,11,115,39,+ 28,43,94,51,75,157,195,83,225,206,36,37,162,57,119,93,195,217,122,193,10,148,94,165,+ 254,85,137,10,1,68,74,79,98,163,241,98,64,196,148,244,70,142,123,225,61,239,51,197,+ 21,230,114,70,24,71,246,118,5,207,111,178,66,137,174,120,162,68,121,123,57,241,37,31,+ 165,158,251,154,197,178,195,125,241,43,69,177,209,164,5,141,194,191,74,22,233,75,169,16,+ 14,57,104,221,178,156,147,73,251,10,95,202,63,17,127,100,179,137,80,165,97,234,253,64,+ 137,97,89,22,183,169,96,133,46,46,43,198,161,23,144,158,31,7,200,52,113,105,175,102,+ 40,235,26,39,240,249,13,169,254,236,231,149,155,168,38,102,173,99,214,76,212,54,49,61,+ 230,2,211,149,130,73,58,11,29,185,92,175,165,50,35,131,86,204,184,55,115,3,237,210,+ 222,23,202,30,110,45,115,30,122,52,7,226,34,131,35,118,12,31,103,42,221,193,49,153,+ 247,248,26,227,122,34,42,38,186,68,128,171,113,104,253,7,73,49,205,244,86,45,144,109,+ 10,212,48,80,85,106,14,84,2,140,232,86,157,195,143,175,150,26,98,99,179,211,159,127,+ 175,108,57,73,227,253,23,119,72,250,81,249,71,239,29,178,54,255,223,34,233,36,13,107,+ 53,109,122,197,11,241,118,255,36,149,197,225,109,121,205,41,43,162,133,255,233,79,103,75,+ 63,48,73,66,163,76,50,95,229,118,16,53,21,86,48,44,136,200,62,186,191,85,88,163,+ 190,39,115,74,19,114,185,23,45,159,82,103,249,39,136,77,72,228,224,255,254,143,221,72,+ 24,22,0,1,26,46,63,47,31,43,36,38,24,38,39,24,11,18,18,26,17,26,42,49,+ 49,26,17,6,255,255,165,233,227,161,145,169,66,64,243,179,81,231,241,179,112,7,205,89,+ 254,157,154,89,83,183,105,35,118,212,254,174,200,120,30,60,86,4,69,136,161,135,126,82,+ 200,79,215,165,119,146,0,224,188,227,37,38,146,246,151,92,203,140,153,70,223,141,2,228,+ 108,160,91,51,168,95,62,209,32,228,138,247,158,181,56,151,168,93,19,20,5,52,163,142,+ 4,162,219,112,33,21,9,227,31,228,84,170,216,111,95,105,116,45,128,28,29,115,212,167,+ 67,190,49,81,213,41,116,226,13,71,122,239,187,15,162,182,191,100,141,153,218,130,53,185,+ 153,77,17,71,252,143,209,151,189,209,142,235,214,185,226,214,107,247,20,102,90,239,147,182,+ 179,125,184,153,174,167,174,230,41,63,102,189,92,67,152,34,201,199,241,246,225,145,40,70,+ 79,196,102,206,135,120,214,40,10,234,189,49,178,125,29,184,186,177,166,56,90,95,48,132,+ 134,210,88,117,183,233,160,203,143,43,68,83,132,162,194,141,134,217,200,53,1,13,94,119,+ 45,1,51,196,10,248,117,56,93,16,104,158,99,205,108,126,24,21,21,0,0,255,13,37,+ 51,47,35,43,41,36,17,22,17,32,23,22,30,36,37,29,68,200,222,165,211,203,197,63,+ 143,249,59,224,19,127,166,62,241,187,255,71,175,177,44,172,53,165,139,137,68,73,107,15,+ 78,223,125,135,117,171,176,142,54,137,252,226,196,171,103,114,146,33,55,6,54,95,95,82,+ 123,223,212,148,249,125,168,192,185,180,252,163,251,187,152,64,19,242,23,75,11,24,186,208,+ 195,183,129,168,73,93,183,129,114,38,243,184,210,115,195,118,63,159,94,193,32,187,35,89,+ 227,207,8,197,240,110,130,16,196,37,252,158,196,84,186,208,4,195,113,92,41,76,135,161,+ 7,78,204,44,189,90,85,94,60,14,222,32,199,167,138,112,188,94,150,88,78,79,227,119,+ 166,114,246,207,64,78,126,161,173,139,214,225,187,182,192,165,247,226,114,11,205,162,116,82,+ 176,79,88,58,75,50,174,152,213,50,105,73,42,69,41,6,130,78,2,36,192,80,188,182,+ 156,240,26,140,15,209,174,95,254,244,221,41,230,49,176,201,61,78,97,123,57,124,8,198,+ 212,57,54,0,185,197,99,102,71,205,102,197,37,166,179,178,233,248,162,135,238,40,68,250,+ 116,142,181,108,165,93,22,111,118,143,67,144,49,74,126,0,201,61,25,215,252,103,171,40,+ 240,185,154,2,145,91,164,150,132,12,48,175,255,186,228,245,101,90,169,181,123,224,40,34,+ 173,126,175,227,14,1,10,155,114,226,81,20,14,81,86,98,202,171,147,65,41,126,66,89,+ 80,105,118,135,157,204,220,101,135,122,107,213,25,196,37,48,57,75,138,19,245,175,196,63,+ 144,124,75,87,144,251,225,35,11,51,201,179,15,131,113,189,255,78,134,183,229,27,192,135,+ 37,88,246,196,5,135,0,228,231,212,75,211,7,222,85,213,186,154,136,13,93,231,48,108,+ 198,144,23,106,192,171,185,33,110,223,8,20,120,43,214,40,151,67,39,239,181,123,227,198,+ 141,179,167,141,91,163,216,156,78,26,174,122,192,83,15,1,0,12,0,26,101,118,101,25,+ 12,49,73,78,33,13,6,245,253,73,215,24,249,89,187,137,67,101,251,114,149,174,139,167,+ 247,140,173,131,206,189,52,24,214,178,230,248,162,149,152,247,246,176,50,95,223,51,62,219,+ 236,78,84,241,64,119,53,85,203,8,77,202,13,240,31,21,40,254,89,116,192,17,2,161,+ 165,201,105,199,195,243,9,226,58,17,137,167,228,113,158,236,209,242,195,92,106,186,204,79,+ 167,114,213,250,228,238,2,180,136,191,240,245,5,10,176,195,119,95,53,122,15,150,50,28,+ 160,6,192,186,194,188,24,135,144,206,158,93,38,245,127,117,53,52,231,133,152,99,19,79,+ 137,191,12,142,221,103,33,178,135,24,11,232,6,227,236,180,227,19,99,17,119,240,118,223,+ 4,116,114,229,129,230,56,74,136,229,25,203,90,122,173,73,119,145,72,240,165,178,143,200,+ 57,77,16,23,120,100,232,0,147,182,235,250,81,159,35,12,14,115,246,203,211,55,230,194,+ 10,81,198,47,219,31,89,106,82,155,16,194,38,226,224,31,180,132,104,159,11,81,250,197,+ 124,220,198,110,156,69,246,187,180,255,49,4,19,197,32,172,14,0,1,66,73,75,8,12,+ 66,74,77,81,77,73,23,20,20,8,40,59,130,169,253,157,35,99,88,52,30,0,146,48,+ 142,43,222,112,44,91,31,125,85,6,5,73,108,183,210,168,17,173,95,70,56,205,181,105,+ 190,201,136,218,199,175,134,28,174,244,44,205,192,122,92,126,64,68,250,37,42,31,212,153,+ 3,143,214,78,3,105,135,106,67,91,119,100,162,192,253,118,133,13,187,6,241,252,106,113,+ 67,61,90,40,131,225,212,128,202,74,91,235,27,220,135,134,12,103,15,153,143,28,207,122,+ 196,15,219,69,36,255,61,30,233,129,110,76,65,5,107,149,153,191,150,170,4,58,128,124,+ 209,190,178,27,16,11,53,112,148,190,48,176,13,86,26,29,199,31,18,38,75,213,63,29,+ 172,213,226,238,104,116,103,132,114,192,67,79,78,238,214,62,166,14,51,124,75,185,252,13,+ 209,85,28,125,113,0,43,242,39,25,161,237,114,144,20,182,251,205,121,130,175,5,86,3,+ 237,129,96,165,10,13,32,135,96,180,179,7,122,156,31,107,162,227,213,226,123,80,157,212,+ 211,69,21,2,232,195,177,218,151,44,227,235,82,17,226,188,234,188,30,71,72,106,219,126,+ 253,71,73,204,19,177,182,203,80,244,126,246,118,23,209,22,250,160,55,75,27,99,72,192,+ 94,169,194,15,101,239,14,111,40,166,131,71,210,231,200,73,184,96,14,119,8,69,9,255,+ 75,156,30,4,55,245,168,212,160,8,64,224,31,166,136,124,167,14,223,111,207,180,183,188,+ 71,76,46,161,171,6,79,114,58,8,132,15,67,98,159,66,126,186,51,228,202,189,167,210,+ 177,19,67,109,7,214,56,190,29,166,2,244,180,131,127,32,163,66,19,40,171,67,109,214,+ 37,194,197,7,230,172,161,123,140,122,64,241,32,91,189,96,113,131,127,188,191,179,105,82,+ 144,182,83,241,0,158,239,133,114,71,170,115,48,153,255,255,212,8,158,105,231,17,0,1,+ 38,53,75,49,48,56,45,49,26,28,27,25,24,17,12,26,61,59,28,36,231,76,54,247,+ 10,246,195,183,16,82,252,165,10,216,241,6,28,206,31,160,113,153,250,35,209,21,47,45,+ 207,181,232,169,178,71,112,239,89,95,202,113,207,79,183,222,104,7,216,6,87,52,235,33,+ 229,129,92,156,28,51,140,222,102,7,4,222,202,144,229,195,68,21,165,252,225,240,75,66,+ 28,61,235,82,133,2,200,94,158,10,35,31,215,185,179,115,215,155,219,122,50,84,44,9,+ 253,55,32,195,137,110,224,254,57,21,255,176,159,24,225,81,245,49,77,75,57,22,254,23,+ 220,172,232,218,10,139,166,41,168,168,22,32,233,140,167,173,57,150,230,61,24,93,171,136,+ 193,48,61,183,22,57,22,171,251,130,42,169,120,9,217,175,163,5,7,247,22,155,194,176,+ 252,180,82,29,9,49,204,0,108,223,105,192,33,158,215,144,249,186,132,102,59,240,74,33,+ 30,2,106,247,79,72,80,255,116,14,147,98,200,130,205,217,202,145,116,244,2,3,83,46,+ 23,67,246,85,246,43,118,194,48,108,131,125,174,165,34,58,134,199,33,227,31,62,156,64,+ 230,215,7,120,96,19,13,243,187,137,212,213,143,105,54,221,13,137,48,77,108,178,38,124,+ 75,138,148,173,152,31,176,211,128,75,181,213,3,206,212,53,98,177,110,26,40,55,91,35,+ 30,150,31,151,177,146,255,155,166,149,56,27,183,135,35,174,83,166,226,121,119,54,130,106,+ 231,160,221,106,71,204,84,108,53,21,65,93,19,199,82,51,151,98,170,107,98,147,6,232,+ 60,110,251,225,42,230,63,89,63,135,129,49,34,0,214,130,71,86,58,10,6,60,119,32,+ 49,82,103,53,17,186,135,25,220,58,72,85,182,139,149,35,36,177,14,180,82,241,142,126,+ 89,79,212,139,3,14,14,42,0,124,175,230,94,52,13,150,198,208,155,195,166,255,189,96,+ 168,5,255,240,46,65,181,250,213,14,49,235,85,74,127,223,113,0,198,129,28,119,8,167,+ 111,10,68,196,133,164,206,253,229,108,154,97,249,248,69,176,80,30,33,116,39,129,221,0,+ 253,89,236,48,211,62,198,211,83,24,244,215,220,223,153,104,3,168,8,36,49,147,195,47,+ 110,142,76,131,255,252,43,186,210,168,125,8,0,1,24,38,54,93,83,119,83,71,149,129,+ 213,199,252,47,65,130,253,114,9,207,206,204,106,123,38,180,117,162,70,141,87,188,35,27,+ 149,155,170,7,48,242,194,114,59,216,168,82,189,175,78,178,90,74,2,192,176,170,199,197,+ 30,8,32,35,113,227,246,178,25,205,227,162,142,124,62,174,141,29,126,243,124,197,199,134,+ 196,82,65,207,154,111,235,86,166,149,167,129,5,90,65,155,84,249,129,113,244,224,173,108,+ 149,7,69,48,103,253,66,237,93,91,175,220,182,231,21,135,64,188,55,230,67,67,246,40,+ 179,96,171,53,230,230,179,105,180,96,17,176,128,176,138,165,81,61,135,10,129,45,75,162,+ 98,115,35,242,194,214,104,99,221,102,127,194,37,168,10,212,235,132,53,58,4,39,245,30,+ 20,202,159,233,132,90,61,221,7,125,78,145,246,86,116,139,6,70,121,55,135,152,73,238,+ 96,35,1,54,152,194,6,45,113,216,115,131,205,124,34,104,207,192,230,102,226,209,154,47,+ 62,90,203,1,188,56,28,243,215,218,78,3,240,123,85,109,39,37,31,1,186,253,29,161,+ 192,30,226,239,136,192,6,159,93,129,103,7,113,167,105,1,101,160,80,63,12,198,108,200,+ 93,146,49,132,124,95,13,173,103,214,137,98,159,233,172,57,232,31,92,75,62,113,32,224,+ 99,220,50,79,204,1,87,17,180,168,98,76,159,77,12,74,3,11,17,181,157,97,228,183,+ 232,219,206,136,159,83,34,9,234,133,236,71,154,159,211,21,0,5,4,25,26,25,26,22,+ 22,5,24,25,37,22,21,29,44,46,30,12,27,58,14,106,7,72,225,230,98,150,73,177,+ 21,14,84,122,209,105,175,98,139,150,34,229,138,13,216,114,98,48,1,1,243,126,90,125,+ 181,150,50,23,114,41,67,34,200,80,123,223,149,73,165,125,54,71,111,98,121,3,230,197,+ 82,83,25,181,96,148,184,148,45,234,156,137,137,157,111,210,82,87,58,158,161,236,211,153,+ 103,235,30,101,32,139,180,137,160,196,141,244,110,182,34,201,74,233,184,15,78,7,54,231,+ 74,139,126,208,161,35,95,186,48,198,232,87,78,247,77,164,42,114,248,195,254,105,158,226,+ 120,134,13,181,226,29,47,71,198,226,210,196,181,130,36,223,9,84,122,169,155,135,82,170,+ 147,170,182,13,136,39,6,91,59,117,212,41,92,122,121,102,92,124,173,121,231,248,250,238,+ 133,77,137,201,223,188,241,223,31,233,190,140,142,40,150,180,22,131,53,228,243,75,144,175,+ 202,163,133,1,103,49,38,106,109,152,83,93,183,142,238,79,199,195,147,248,230,185,164,143,+ 221,94,86,213,53,180,93,79,158,38,48,0,2,197,21,42,111,148,154,125,173,137,223,190,+ 60,79,40,5,221,208,57,152,28,221,148,240,173,23,134,74,192,34,202,63,119,237,167,105,+ 168,226,201,2,94,187,190,39,128,111,246,131,245,66,185,76,9,69,101,28,32,248,167,248,+ 124,116,68,161,218,43,142,137,112,138,252,158,4,28,9,174,240,104,248,213,79,210,21,196,+ 45,24,205,173,71,58,227,166,242,229,96,130,110,70,112,246,95,213,30,222,38,191,71,135,+ 139,207,188,239,210,125,98,238,184,88,221,48,27,72,207,38,75,133,248,113,8,130,6,228,+ 95,246,197,47,197,164,136,3,218,211,15,6,107,132,45,21,199,85,92,182,92,108,215,209,+ 80,137,206,28,30,220,77,13,158,7,107,153,96,47,182,160,7,16,212,198,154,76,85,16,+ 87,125,10,254,19,75,89,22,103,3,183,30,245,221,174,133,140,11,236,7,34,182,224,177,+ 227,240,209,122,71,237,41,78,238,27,110,70,64,191,44,101,7,251,164,218,114,40,58,54,+ 188,247,3,192,2,137,2,149,93,2,191,194,222,77,193,0,235,65,184,102,139,244,84,62,+ 29,133,222,22,112,22,42,132,103,208,50,142,200,242,155,235,14,73,186,195,26,57,164,18,+ 189,183,186,109,57,230,131,31,144,124,61,81,157,133,132,174,83,72,53,38,19,38,78,164,+ 198,68,88,108,249,0,13,0,1,39,46,75,101,153,147,85,34,12,8,13,13,19,9,2,+ 175,44,65,217,12,248,152,125,38,115,217,28,42,54,151,183,230,249,186,147,86,226,53,248,+ 147,83,55,160,11,248,250,249,121,130,100,37,90,101,247,250,184,78,203,226,52,85,139,221,+ 213,201,59,207,35,183,29,47,13,85,99,250,89,213,0,203,211,24,6,33,151,111,98,165,+ 136,28,175,219,238,233,106,231,66,200,187,207,26,240,108,65,245,101,63,71,174,133,120,193,+ 52,55,83,133,15,56,181,124,213,129,9,130,127,55,129,26,229,121,27,24,190,253,123,217,+ 16,25,117,8,28,185,252,79,225,45,218,105,253,66,228,5,172,98,191,146,26,238,235,42,+ 239,135,53,81,194,31,95,162,220,71,166,73,75,69,33,57,113,78,237,255,138,178,245,44,+ 160,21,135,238,112,12,161,14,147,201,159,76,18,42,11,134,132,18,194,91,116,116,79,194,+ 102,166,217,248,93,116,29,93,186,101,98,119,109,5,76,109,197,104,140,15,112,12,91,102,+ 182,177,63,82,99,250,229,185,107,251,54,85,214,98,95,233,192,60,99,169,86,76,177,50,+ 131,209,158,18,192,175,101,77,244,9,194,56,217,190,225,212,205,12,145,147,134,141,134,195,+ 233,67,230,124,93,164,157,111,74,125,196,121,26,10,248,226,122,207,54,189,175,90,129,176,+ 129,237,231,183,100,240,170,67,59,255,254,140,93,229,22,0,1,21,27,41,25,30,33,27,+ 30,28,29,37,25,29,31,44,39,24,17,28,37,59,12,166,248,245,84,129,93,110,42,46,+ 93,24,14,146,242,78,94,176,191,12,90,167,71,43,52,136,18,1,54,243,117,116,39,17,+ 116,253,20,134,222,153,199,32,127,156,223,35,66,59,119,196,77,85,129,189,146,100,164,130,+ 43,101,137,163,182,232,109,64,23,204,65,169,222,140,60,159,171,229,129,160,58,148,247,217,+ 10,231,64,251,108,123,163,118,71,184,128,33,28,14,91,127,89,193,58,13,229,141,42,1,+ 218,245,156,102,20,199,148,206,203,74,231,35,94,252,64,208,123,224,237,23,53,142,153,155,+ 88,11,251,88,175,209,72,242,79,157,233,48,239,169,28,55,105,181,138,148,161,32,105,87,+ 39,62,231,135,28,183,185,57,124,48,28,60,116,131,155,120,79,43,28,0,225,125,223,156,+ 147,139,80,102,122,130,208,111,248,171,159,104,66,112,187,41,9,47,113,141,12,79,94,117,+ 232,165,30,111,69,38,64,156,244,168,52,112,60,249,19,116,205,116,93,30,114,36,75,3,+ 42,98,102,190,116,213,188,245,156,65,25,83,167,104,5,178,125,63,206,124,209,38,2,164,+ 79,6,58,219,236,34,152,121,156,47,135,215,18,186,64,223,211,25,158,1,248,105,22,140,+ 223,34,184,43,81,189,121,131,186,20,109,48,204,21,49,224,142,199,57,20,142,208,221,185,+ 116,90,107,64,110,109,138,171,118,144,130,30,221,145,54,29,107,138,72,115,223,39,117,69,+ 95,160,40,246,214,78,105,130,48,51,153,229,252,14,199,204,41,149,69,238,33,74,156,190,+ 220,242,44,193,116,243,175,55,170,79,129,56,109,219,1,0,7,1,120,40,143,247,238,156,+ 109,34,80,203,248,13,57,180,126,75,31,255,31,213,49,225,152,96,17,90,56,51,115,128,+ 182,81,112,253,253,189,144,202,41,65,92,163,46,66,37,207,215,3,171,58,190,230,67,186,+ 54,83,140,152,50,170,45,6,159,242,125,38,157,130,171,11,150,3,194,82,120,100,112,182,+ 174,56,49,227,137,72,17,81,240,72,129,246,183,217,151,130,16,21,0,1,30,46,52,43,+ 36,42,39,40,43,33,27,28,33,40,27,44,37,37,22,25,25,8,3,255,255,165,152,9,+ 154,100,26,63,133,152,174,122,55,169,74,193,160,119,246,7,191,182,23,34,114,206,17,177,+ 208,189,152,153,66,138,170,13,21,4,111,238,186,129,231,187,149,10,40,114,0,168,174,105,+ 185,156,213,160,97,183,90,91,207,169,71,109,190,251,123,236,250,143,71,185,141,129,236,226,+ 30,226,23,92,137,57,77,72,245,162,39,94,172,156,244,200,139,219,219,205,239,115,26,202,+ 24,67,39,84,194,158,116,61,150,137,230,93,155,82,63,37,134,24,121,4,241,14,62,186,+ 244,178,110,54,182,86,120,157,207,66,8,146,125,49,60,118,248,227,248,57,13,141,205,203,+ 144,237,251,228,195,50,11,252,91,98,212,89,128,210,120,52,51,174,108,67,70,211,15,214,+ 72,37,130,59,189,226,92,226,172,232,147,89,225,140,31,198,70,148,230,154,215,57,70,54,+ 251,139,103,110,176,48,245,100,177,254,247,39,106,230,182,121,24,113,206,245,149,83,46,107,+ 116,195,112,102,37,243,163,171,167,162,156,251,236,22,0,1,27,46,55,46,41,41,39,41,+ 35,42,41,44,23,13,15,15,19,11,8,36,41,52,18,11,253,218,100,39,137,56,119,249,+ 93,42,30,32,115,158,168,140,197,164,94,71,85,231,81,135,153,214,151,164,40,191,159,95,+ 138,188,36,61,47,113,46,72,73,226,65,80,103,52,121,120,37,153,236,142,43,250,125,16,+ 65,106,72,250,234,60,187,171,197,205,225,140,237,220,250,237,52,80,200,229,137,174,0,202,+ 137,232,113,198,188,52,245,161,59,32,194,235,4,13,157,159,51,214,196,164,18,146,156,233,+ 64,150,78,74,91,168,241,208,154,7,136,13,240,117,224,5,11,21,35,62,171,181,71,10,+ 134,84,210,158,147,123,191,34,246,7,130,234,204,115,84,63,53,112,179,212,237,97,63,234,+ 44,224,140,87,172,128,12,40,74,136,98,221,43,5,1,22,93,167,228,158,207,134,148,243,+ 133,255,20,118,92,160,67,33,202,80,48,245,225,186,31,93,4,153,179,229,92,223,85,61,+ 109,111,182,204,72,188,152,32,80,145,83,193,206,193,26,232,87,97,65,135,113,203,77,195,+ 138,192,166,32,176,70,202,20,120,189,153,19,106,137,58,126,198,102,89,70,236,7,169,145,+ 215,168,55,29,184,134,101,100,252,248,178,154,188,53,186,13,185,55,81,153,57,248,51,166,+ 89,185,94,232,167,89,206,163,37,9,7,19,9,144,2,105,139,202,48,234,8,179,1,194,+ 72,247,86,26,169,99,67,97,110,221,161,56,134,124,184,97,129,35,175,248,168,11,234,55,+ 68,56,190,151,165,99,14,90,240,191,237,135,2,240,12,195,147,46,70,14,12,50,245,191,+ 244,152,71,175,95,159,24,195,104,239,218,0,223,202,195,2,216,57,190,86,219,232,21,230,+ 174,155,36,143,116,253,189,11,65,80,123,161,14,111,111,213,117,49,9,171,35,64,173,152,+ 129,155,248,209,212,142,79,185,10,88,107,155,240,147,7,172,192,89,163,137,211,218,148,148,+ 170,223,113,98,113,151,73,54,168,183,31,44,43,200,23,105,124,23,0,1,25,46,52,47,+ 51,62,57,47,31,20,22,24,31,23,28,17,13,5,9,26,45,39,27,7,5,253,192,17,+ 58,22,82,187,236,111,47,209,41,159,17,103,70,85,69,242,250,10,86,121,79,167,185,230,+ 95,245,169,50,8,250,102,83,191,77,251,69,12,146,90,202,155,49,253,15,208,34,46,222,+ 112,13,121,90,20,12,232,113,230,175,159,165,135,92,58,96,31,164,27,12,90,12,25,126,+ 5,82,152,152,111,191,130,134,246,106,195,133,106,99,20,97,19,64,99,48,94,222,65,112,+ 253,177,58,154,106,214,27,26,251,203,93,238,242,119,249,210,41,25,85,161,52,117,70,10,+ 214,104,31,44,221,162,27,215,183,219,108,96,126,22,61,189,250,245,157,37,99,61,121,114,+ 192,131,234,35,163,65,96,72,214,80,108,241,72,85,157,219,28,139,107,77,203,118,227,246,+ 209,29,76,232,154,230,18,138,163,228,245,180,66,3,31,85,164,78,228,124,3,15,78,83,+ 167,95,33,185,20,195,177,108,166,56,172,139,244,217,244,251,201,215,211,253,66,22,224,113,+ 110,225,192,87,206,99,115,33,184,161,14,67,95,218,216,248,71,67,11,78,218,242,108,0,+ 135,100,229,21,147,67,103,187,145,10,150,130,60,197,169,159,152,88,117,46,186,141,230,165,+ 98,77,118,181,252,142,122,134,192,174,172,139,36,137,88,6,109,138,239,211,27,232,103,8,+ 22,59,231,125,173,91,97,94,68,175,116,22,239,155,124,87,12,23,28,209,58,252,81,54,+ 154,185,196,61,54,12,126,118,95,95,78,119,48,58,22,86,123,54,220,134,45,1,130,253,+ 232,109,248,219,59,103,238,147,149,222,28,158,173,149,103,95,203,72,1,229,204,240,113,48,+ 218,29,208,102,251,230,18,167,114,97,70,252,13,248,58,98,251,194,104,105,107,212,83,99,+ 133,212,173,85,101,20,0,29,38,43,20,16,16,23,21,29,25,22,25,17,25,26,29,24,+ 18,35,39,40,22,138,186,19,110,230,254,38,101,85,82,126,105,102,151,117,106,140,172,149,+ 240,197,147,180,226,83,168,243,67,19,152,24,197,71,159,77,81,104,92,213,124,151,82,39,+ 65,113,36,24,244,231,108,222,201,89,197,207,145,244,179,89,107,165,61,95,166,45,115,84,+ 182,227,146,141,25,129,198,22,195,92,172,227,115,240,148,183,246,157,249,167,151,198,206,233,+ 74,184,145,62,247,111,180,36,79,169,106,66,105,56,5,24,52,163,243,158,17,160,166,49,+ 194,199,239,119,164,168,116,254,188,223,14,13,135,155,173,14,182,251,191,64,167,207,243,123,+ 29,163,110,252,204,23,186,183,191,207,1,65,90,2,68,58,140,196,217,135,29,27,67,112,+ 67,55,98,222,239,60,106,12,204,144,151,129,174,92,23,223,109,117,27,104,5,52,241,36,+ 176,39,70,218,93,5,236,233,113,33,68,16,43,17,56,149,219,99,212,171,160,62,175,250,+ 208,59,110,7,167,251,133,109,91,208,249,121,19,117,55,152,16,146,104,233,165,229,168,158,+ 140,143,214,249,124,137,40,84,22,18,39,201,225,239,158,76,215,155,248,214,26,127,167,32,+ 7,90,10,242,46,63,21,182,188,108,56,246,114,237,51,82,78,27,49,150,213,133,52,163,+ 166,113,180,165,109,69,175,108,4,249,235,128,193,173,147,242,56,250,79,146,176,89,215,141,+ 42,170,79,241,114,16,227,235,138,43,243,185,86,142,2,132,224,84,214,84,111,231,238,203,+ 117,222,168,9,108,29,35,231,7,165,235,114,45,57,31,131,127,214,145,106,244,155,226,9,+ 247,240,114,36,66,152,166,3,181,123,89,11,188,1,205,158,227,108,244,67,150,175,240,72,+ 223,93,39,9,53,94,42,161,10,68,34,142,193,112,92,158,166,9,62,133,39,15,13,221,+ 81,230,58,220,13,174,7,159,25,42,17,177,250,105,226,168,190,90,246,176,102,171,130,75,+ 238,129,137,62,46,11,59,250,102,50,92,181,200,160,236,133,75,146,175,97,42,215,13,251,+ 181,88,13,38,112,74,76,50,114,120,194,130,88,147,239,187,182,162,16,200,137,213,227,194,+ 156,106,126,81,183,111,253,183,78,171,135,20,19,99,145,233,162,219,173,194,15,50,112,209,+ 224,143,198,220,102,218,142,245,249,167,252,118,162,181,205,130,148,92,219,202,218,47,213,144,+ 241,209,230,75,176,141,100,82,188,143,35,79,119,191,198,216,183,206,33,231,184,128,127,179,+ 211,231,148,71,251,91,83,240,14,30,228,19,104,21,23,190,54,45,249,54,7,154,40,180,+ 207,10,28,55,36,228,159,0,122,167,235,194,44,194,73,190,161,159,97,29,154,48,166,140,+ 203,176,23,85,76,54,11,192,140,92,65,57,94,113,86,140,65,58,123,65,152,71,252,247,+ 140,141,136,30,89,97,0,19,0,1,42,52,56,14,24,44,43,30,6,13,21,24,17,6,+ 52,52,56,72,71,64,240,66,188,30,195,59,47,140,188,157,33,250,254,50,2,47,152,206,+ 202,242,234,237,63,220,243,5,202,148,218,40,2,104,203,242,246,53,111,115,201,156,228,172,+ 209,171,58,89,151,125,12,26,52,9,159,194,252,229,114,69,1,197,219,5,153,72,56,89,+ 143,172,140,9,97,24,235,206,122,179,170,54,43,214,148,113,119,40,38,16,208,98,192,40,+ 141,70,79,133,13,141,83,57,185,18,163,1,175,186,205,200,107,61,207,166,10,228,50,2,+ 216,18,229,107,185,5,230,168,0,83,255,169,74,200,121,47,72,157,250,90,246,189,153,77,+ 141,20,171,253,232,142,254,52,246,67,93,68,157,61,93,65,32,179,126,101,87,22,208,53,+ 104,249,148,93,236,192,200,9,36,7,132,129,100,174,65,88,33,12,8,209,141,53,9,57,+ 64,244,69,108,69,246,12,56,208,221,59,42,184,74,13,109,199,2,249,145,140,81,4,46,+ 180,185,167,118,234,60,0,178,129,83,141,53,43,189,42,114,153,53,105,188,139,128,31,203,+ 104,150,74,126,10,250,83,24,70,94,158,153,27,147,187,153,211,10,81,52,213,219,178,116,+ 151,118,197,82,152,129,14,105,224,209,154,72,24,19,157,155,163,10,250,100,96,181,124,24,+ 0,1,12,16,26,15,24,19,20,13,14,23,23,17,34,39,39,15,19,23,23,38,50,54,+ 40,66,56,32,143,170,164,184,49,81,232,214,63,35,206,179,94,198,156,2,105,2,221,226,+ 242,160,188,82,232,169,132,236,95,16,126,138,108,247,92,83,31,246,46,45,248,82,65,46,+ 141,208,178,78,191,10,23,62,86,30,158,206,252,47,69,98,179,8,65,245,149,7,254,56,+ 43,11,240,12,166,233,199,172,136,127,36,144,78,217,105,148,110,199,94,63,168,126,103,46,+ 15,102,33,27,130,15,101,156,107,160,209,239,69,132,212,24,154,172,130,47,228,170,207,218,+ 211,68,223,232,19,215,165,94,146,236,204,61,57,153,25,56,154,62,77,64,100,246,247,40,+ 238,30,122,46,117,230,161,231,223,72,164,40,166,45,17,183,149,190,82,137,177,56,234,76,+ 59,157,57,18,45,30,42,178,130,205,54,134,198,166,19,236,248,97,20,18,2,125,28,6,+ 199,77,69,246,121,54,66,243,149,77,166,245,48,161,54,40,197,81,167,60,193,105,37,218,+ 58,243,251,166,204,253,41,66,223,172,198,220,69,51,193,41,255,73,6,57,205,209,220,50,+ 245,139,188,93,60,12,102,84,206,120,17,142,124,162,35,154,180,12,145,124,216,34,55,223,+ 100,128,112,211,21,117,56,61,19,134,13,255,142,161,157,7,161,218,44,153,110,47,217,202,+ 210,19,155,136,255,4,106,38,230,210,143,111,50,171,200,37,199,112,196,106,127,118,20,0,+ 13,23,27,17,17,19,22,14,11,13,22,28,31,38,56,54,35,76,73,86,180,203,166,19,+ 4,3,70,33,4,230,178,30,48,38,206,152,32,184,9,132,195,107,214,23,243,232,61,85,+ 89,196,230,224,218,71,57,177,34,113,253,228,76,110,166,7,243,240,209,152,111,251,10,229,+ 181,236,226,158,170,4,188,100,218,165,14,22,60,157,243,226,200,145,66,105,134,194,195,222,+ 180,19,64,109,112,213,157,125,10,7,96,224,93,142,20,237,171,231,22,195,150,30,131,214,+ 174,19,45,163,238,109,245,226,7,142,3,66,66,231,196,91,66,223,168,215,145,242,31,224,+ 5,224,102,172,143,215,33,182,165,208,101,140,230,133,233,122,241,1,159,253,2,4,188,142,+ 70,167,22,121,92,212,216,172,48,61,128,124,232,84,22,108,32,62,151,107,83,138,216,242,+ 208,90,154,143,189,141,33,6,176,197,226,179,86,59,105,188,110,23,174,40,5,199,68,118,+ 35,54,9,154,254,121,52,216,90,225,231,100,203,19,122,200,218,223,202,152,187,83,141,144,+ 195,165,230,37,205,215,87,40,33,90,36,201,16,69,15,198,113,95,115,186,146,96,182,143,+ 123,144,49,145,49,186,220,77,186,158,89,93,60,95,29,177,147,163,105,243,22,96,71,138,+ 126,149,125,164,197,239,183,62,162,61,37,80,106,203,43,88,186,135,2,23,102,183,125,67,+ 59,18,95,45,27,2,116,201,61,131,1,138,97,160,108,64,103,252,35,55,187,188,144,172,+ 160,122,255,220,192,135,119,173,10,231,24,182,228,8,122,71,89,88,206,135,69,114,68,208,+ 26,237,161,92,136,104,115,61,201,249,33,250,109,143,1,113,87,150,161,155,156,174,155,131,+ 155,0,135,49,150,98,126,174,151,252,200,200,104,39,5,232,26,138,104,38,40,28,231,86,+ 50,145,81,82,105,240,212,218,174,40,153,116,206,185,244,169,1,245,29,135,70,90,10,95,+ 155,108,239,36,238,236,10,163,187,121,166,187,231,122,63,254,178,138,127,27,68,168,26,101,+ 6,98,233,204,75,148,132,126,47,92,42,117,31,226,171,147,62,70,133,133,136,244,99,113,+ 112,242,210,56,37,178,246,110,214,18,148,125,92,106,156,192,244,242,54,128,46,45,108,196,+ 4,165,131,111,225,121,89,170,49,193,192,120,147,0,253,116,125,179,11,147,151,209,150,50,+ 210,83,167,38,122,142,8,121,92,35,28,28,107,148,171,56,80,80,0,17,0,1,44,57,+ 59,30,43,55,48,52,72,64,37,36,36,38,5,22,28,27,8,255,255,165,29,66,144,176,+ 113,1,62,109,237,189,21,239,155,18,235,156,79,21,225,254,63,21,126,223,134,64,20,169,+ 122,36,162,166,149,129,93,201,236,232,237,236,28,192,242,242,243,209,117,220,49,162,229,181,+ 155,19,244,82,174,137,185,19,190,41,159,87,110,170,200,221,208,209,41,26,95,47,88,233,+ 254,230,249,237,101,229,185,70,186,214,217,213,226,138,141,63,164,227,210,230,204,75,145,52,+ 153,59,3,100,149,255,217,219,188,138,196,217,13,233,197,84,76,197,217,236,88,237,169,92,+ 174,208,206,207,28,212,45,167,128,185,31,138,21,61,166,41,239,209,182,178,99,46,243,41,+ 88,245,21,110,51,174,179,17,63,228,241,122,172,27,218,224,127,203,5,130,148,140,184,217,+ 169,177,24,222,217,215,31,88,142,99,94,32,163,77,238,132,48,209,186,240,78,30,140,133,+ 42,190,57,151,217,71,54,57,22,245,141,113,81,63,125,21,248,175,30,253,222,43,193,24,+ 233,141,81,30,71,127,2,88,204,193,154,77,143,89,166,111,111,89,23,18,0,1,31,60,+ 75,50,41,26,22,8,25,24,24,7,14,20,49,43,59,72,68,76,36,129,84,145,7,110,+ 180,204,250,158,193,88,80,37,39,88,255,118,204,10,83,15,28,228,62,206,72,171,57,176,+ 227,106,66,81,150,132,175,90,62,211,73,216,125,247,32,109,183,207,167,210,70,85,96,125,+ 80,168,115,118,3,71,67,189,184,95,240,173,193,208,31,198,33,183,237,35,93,96,94,90,+ 94,106,187,92,43,138,103,124,15,221,225,154,88,180,228,254,134,151,224,34,97,103,173,109,+ 249,127,229,204,162,187,131,240,123,191,142,252,17,160,166,157,128,201,169,217,113,160,18,115,+ 216,186,211,234,90,121,209,68,167,251,222,1,159,190,24,209,49,228,205,235,5,128,39,115,+ 198,80,203,145,211,196,154,111,140,62,139,153,135,46,121,64,173,54,28,170,101,74,190,54,+ 178,98,216,164,249,97,131,6,60,130,91,59,144,231,136,141,14,112,52,160,49,250,9,224,+ 43,175,9,197,123,190,211,237,66,62,104,245,187,35,64,148,11,197,165,203,174,220,29,255,+ 199,30,171,226,137,175,251,23,86,251,191,117,218,255,192,21,29,124,27,197,0,67,155,104,+ 183,152,230,167,124,202,180,202,188,42,115,250,35,246,226,230,7,212,26,247,91,10,198,118,+ 160,48,239,199,170,138,84,122,173,244,96,50,69,79,99,61,211,164,195,83,86,169,190,226,+ 176,77,13,219,12,87,26,77,77,227,101,48,224,255,42,5,91,32,200,140,0,104,251,74,+ 122,132,25,65,109,193,147,19,208,151,91,169,40,119,46,136,180,236,57,137,196,139,255,64,+ 75,209,251,159,153,154,36,185,152,113,76,212,155,250,111,76,13,107,202,178,47,129,172,189,+ 124,191,98,35,23,250,10,20,146,35,20,53,59,193,145,93,149,227,79,156,55,182,211,56,+ 98,108,197,244,255,244,73,96,68,36,126,129,99,19,0,3,160,203,182,193,11,205,42,203,+ 132,152,163,137,85,15,151,168,192,244,213,101,223,74,39,55,250,9,180,167,202,102,108,62,+ 255,150,17,226,69,30,135,221,123,39,182,176,124,193,41,182,111,86,5,125,63,72,42,228,+ 181,108,32,62,86,100,145,208,252,101,115,205,225,210,59,25,114,8,112,130,33,226,89,36,+ 179,10,145,233,188,110,118,252,209,68,210,204,235,76,202,43,80,61,248,194,173,71,16,47,+ 155,181,250,42,148,102,43,91,19,52,176,56,27,179,221,26,235,129,230,254,44,71,15,237,+ 125,37,237,32,169,223,138,145,36,132,129,196,217,76,148,170,202,115,63,86,54,192,172,219,+ 255,255,40,213,254,139,0,22,0,16,35,48,39,33,50,49,39,14,25,31,34,26,37,35,+ 30,9,10,17,35,55,49,235,11,39,105,3,78,216,165,88,231,20,37,254,158,23,88,236,+ 142,116,42,45,191,50,117,253,213,23,122,206,146,57,72,194,206,27,183,105,56,96,227,77,+ 190,9,254,85,34,247,156,134,55,166,140,2,83,228,171,50,101,123,68,28,84,186,43,91,+ 231,124,149,10,215,166,120,74,121,139,137,42,7,92,94,33,225,227,109,222,182,171,250,239,+ 225,103,71,29,158,16,32,248,173,85,252,240,185,123,51,213,165,37,197,0,38,49,126,116,+ 180,4,209,235,206,20,117,139,117,33,117,140,30,175,199,133,40,38,139,23,63,166,155,80,+ 125,246,113,151,177,71,231,134,40,107,108,191,130,208,74,141,76,7,137,190,8,216,173,228,+ 154,26,92,89,151,67,148,191,52,171,128,49,227,183,203,65,219,149,103,221,106,102,146,38,+ 210,74,107,252,70,247,177,102,156,198,198,181,103,194,196,76,95,81,225,187,191,43,198,230,+ 5,135,55,247,50,106,5,255,169,11,205,216,175,189,183,203,237,40,221,104,215,136,231,10,+ 236,160,87,120,107,237,46,189,57,240,13,205,110,149,12,231,167,141,145,83,111,81,62,106,+ 26,55,113,204,246,30,245,165,185,158,153,164,127,90,22,142,75,86,61,72,169,204,240,159,+ 38,37,236,234,36,157,0,123,182,128,96,202,215,187,184,134,136,249,187,114,16,220,207,5,+ 91,246,12,1,248,217,201,207,207,154,175,5,232,204,224,235,232,253,187,147,220,176,243,77,+ 117,205,202,104,44,135,112,51,45,114,167,181,78,67,127,114,208,100,195,164,93,97,3,200,+ 112,3,54,247,212,58,254,219,27,13,153,125,34,134,94,245,5,186,36,214,179,172,217,139,+ 144,46,152,158,189,188,219,97,175,124,39,119,83,171,225,90,135,133,125,95,115,212,53,221,+ 95,66,42,85,146,156,142,30,106,93,121,43,50,3,9,128,93,224,28,106,15,169,110,166,+ 78,169,109,109,198,28,248,114,238,195,216,181,152,35,36,163,246,244,51,22,0,147,54,77,+ 207,228,218,122,208,171,19,169,18,3,107,167,227,35,232,103,59,142,70,13,84,69,62,108,+ 30,99,142,225,195,229,183,249,32,22,193,186,59,77,97,155,29,208,241,26,209,69,161,160,+ 112,19,0,19,0,1,30,46,55,43,56,51,39,31,30,43,27,29,11,12,23,33,68,59,+ 53,13,251,226,84,92,73,164,52,186,101,116,145,79,14,156,103,117,248,73,55,151,217,137,+ 189,23,186,62,205,212,246,65,90,50,253,82,234,186,135,202,248,130,193,54,137,215,90,85,+ 163,150,202,31,17,159,94,125,77,54,94,71,137,44,86,9,186,126,228,211,131,62,31,230,+ 59,170,190,244,17,164,183,124,94,128,217,2,161,115,135,89,137,234,170,214,59,41,33,221,+ 232,103,123,214,60,11,170,7,211,149,244,92,92,44,123,184,141,240,208,42,53,63,89,227,+ 240,120,174,179,242,106,251,144,22,84,5,189,184,187,112,37,4,21,62,24,87,43,59,169,+ 148,184,93,149,138,121,226,49,189,114,101,210,160,92,174,99,19,198,54,86,140,84,104,142,+ 180,238,17,161,188,178,34,195,122,95,56,27,36,195,98,147,111,138,122,222,227,136,182,72,+ 153,27,131,252,54,117,126,222,48,156,20,198,43,105,48,152,242,59,80,106,25,76,233,163,+ 230,99,24,156,182,255,219,175,52,233,233,229,153,113,146,151,7,9,32,4,64,227,84,73,+ 147,88,160,168,247,40,81,163,51,58,89,169,32,246,78,56,255,149,29,22,240,41,1,55,+ 129,150,192,169,64,96,231,202,161,218,131,179,232,194,80,214,133,69,154,139,19,0,1,4,+ 10,53,50,66,50,63,45,18,4,53,79,78,29,5,6,11,10,47,40,72,45,237,252,138,+ 153,177,26,103,90,122,130,29,250,220,10,121,183,85,112,57,172,75,119,247,5,252,209,250,+ 217,112,86,232,104,206,186,146,126,245,205,47,177,56,246,178,35,135,99,98,71,69,152,67,+ 127,49,208,31,128,133,94,113,32,67,155,209,103,22,102,186,36,181,91,131,187,228,240,208,+ 26,229,146,113,131,214,47,183,187,31,178,249,120,208,40,25,2,154,103,200,63,81,108,224,+ 186,100,3,157,76,108,94,76,73,95,89,75,102,150,99,189,191,91,122,35,229,19,228,138,+ 197,126,66,207,80,220,22,155,249,228,244,243,32,69,237,18,109,46,27,155,54,131,228,148,+ 76,16,48,152,243,46,14,70,110,252,183,159,189,184,118,117,22,102,178,218,158,228,75,85,+ 213,18,149,170,25,17,240,139,206,184,55,163,136,171,155,88,193,168,176,129,245,93,197,132,+ 228,128,179,252,251,100,231,68,174,2,96,128,172,183,75,121,87,145,55,104,214,14,92,254,+ 190,85,96,55,240,60,75,11,108,57,162,41,212,194,94,149,144,58,15,204,113,88,194,76,+ 228,253,161,223,154,136,48,12,129,241,235,94,120,79,63,111,140,125,192,153,136,25,61,34,+ 137,109,151,68,40,143,65,39,129,158,126,147,188,252,71,82,76,162,94,96,166,41,152,73,+ 42,248,192,206,191,153,147,208,134,221,54,204,119,71,127,60,69,1,125,37,186,187,82,205,+ 51,214,239,179,104,26,14,70,204,83,11,182,47,28,252,97,168,110,25,112,222,77,83,206,+ 109,39,28,126,234,80,195,60,143,223,222,89,246,27,207,177,172,101,54,4,60,225,59,33,+ 204,202,225,178,17,225,52,40,112,210,58,224,95,144,244,44,134,75,119,155,132,95,101,136,+ 150,66,157,185,233,255,255,38,134,221,32,128,22,0,1,39,56,75,71,74,67,37,27,30,+ 33,38,23,14,8,27,31,26,14,10,11,12,17,13,246,66,182,153,136,193,244,34,99,26,+ 189,139,6,68,69,125,84,110,144,26,152,32,234,167,56,242,152,58,143,244,56,254,117,64,+ 55,160,160,89,78,178,183,30,0,108,144,200,41,248,150,101,169,103,42,233,253,179,18,67,+ 229,92,174,51,157,145,17,38,197,222,82,235,224,6,230,91,154,208,53,17,146,225,68,231,+ 144,186,3,224,25,89,63,253,88,238,32,158,94,187,126,184,99,145,132,155,250,170,234,168,+ 138,190,231,135,178,41,178,155,231,21,212,66,63,126,166,8,196,82,84,253,247,159,62,111,+ 0,142,149,168,187,5,13,105,27,69,198,75,127,201,117,176,24,60,73,237,51,216,192,201,+ 30,28,137,64,10,121,4,114,31,52,76,240,4,111,202,104,174,159,24,110,229,158,152,150,+ 31,185,242,181,247,58,118,208,176,58,163,133,250,182,15,241,56,227,233,137,110,47,229,113,+ 211,210,114,34,138,34,68,102,180,127,89,198,138,111,238,196,107,95,26,144,36,180,157,113,+ 129,141,0,92,54,160,193,147,18,101,111,86,223,114,56,228,169,106,133,60,70,187,169,253,+ 191,27,182,44,32,189,13,11,55,106,214,201,30,147,163,174,95,224,24,215,170,44,210,4,+ 255,223,251,254,126,70,56,91,117,232,238,197,14,63,139,203,53,171,207,226,112,112,148,114,+ 219,10,214,184,65,10,19,48,237,211,165,56,6,243,197,241,21,203,185,138,11,104,103,7,+ 53,186,39,30,43,207,3,81,124,99,94,133,48,118,7,25,118,7,199,197,29,55,162,143,+ 214,189,145,235,18,223,101,34,246,222,34,105,158,54,245,248,225,232,202,166,202,221,139,227,+ 223,192,248,34,130,223,92,109,202,169,28,110,138,198,247,251,225,194,129,120,137,73,108,174,+ 52,220,40,244,236,102,234,44,127,241,160,54,60,9,171,104,61,35,104,180,61,160,137,144,+ 3,44,24,5,199,141,118,87,202,5,216,60,153,51,197,66,82,151,111,166,140,77,103,84,+ 239,196,255,74,249,119,87,73,56,192,92,64,112,177,37,180,57,101,172,157,44,76,243,143,+ 180,97,198,96,131,31,45,167,14,248,66,144,194,253,206,186,143,9,159,234,204,251,208,161,+ 101,17,104,193,95,1,32,177,243,170,97,148,177,151,246,59,63,249,14,243,149,14,55,147,+ 205,168,147,209,228,154,247,189,172,73,185,131,111,196,41,161,222,180,13,225,214,204,235,50,+ 148,153,125,5,63,197,61,56,129,175,95,14,36,113,116,211,64,61,206,47,43,125,235,255,+ 0,3,99,194,209,157,64,157,30,101,92,162,61,180,115,136,205,23,108,38,154,166,205,227,+ 17,35,240,64,241,174,48,97,187,129,82,168,211,81,82,54,222,97,71,133,203,37,212,255,+ 250,78,212,218,118,228,20,0,1,23,33,51,28,21,8,20,22,37,27,25,19,24,25,26,+ 27,26,49,101,103,62,245,233,57,179,146,11,127,107,126,171,95,163,162,170,67,107,156,219,+ 192,58,62,178,235,125,138,166,217,107,90,87,211,117,82,244,151,190,9,61,104,86,61,32,+ 107,95,143,55,114,199,160,213,250,166,88,191,164,165,133,185,159,186,24,189,120,175,111,215,+ 227,39,251,224,201,132,159,186,54,208,245,123,228,50,194,49,247,121,237,186,63,195,49,132,+ 87,108,145,70,76,35,223,201,83,184,102,144,188,254,85,196,223,8,153,214,163,75,151,186,+ 245,93,55,1,153,31,129,113,228,36,17,192,199,69,36,0,235,167,174,183,145,247,249,162,+ 102,113,145,212,113,138,89,114,59,174,16,8,119,165,157,253,170,59,47,94,102,123,89,24,+ 96,209,239,206,252,52,41,43,226,136,246,239,102,32,237,52,131,188,80,234,232,23,92,78,+ 149,21,143,239,175,162,151,198,215,206,103,227,250,160,247,255,197,35,245,84,254,24,207,245,+ 73,83,216,175,155,125,48,4,170,126,134,96,58,198,230,234,147,73,175,53,49,178,192,159,+ 49,75,177,175,45,25,102,67,194,118,226,156,200,114,49,98,117,230,67,80,215,59,103,130,+ 17,219,253,113,69,180,17,166,59,144,47,14,72,238,101,205,12,252,84,4,177,8,29,228,+ 69,189,202,29,139,25,147,210,30,187,212,111,54,8,68,72,64,70,109,185,131,167,87,102,+ 106,234,51,85,105,84,167,97,1,27,218,68,223,61,106,245,42,62,166,3,53,237,26,38,+ 176,73,138,158,45,162,152,191,188,153,210,61,9,231,119,179,159,25,182,52,65,195,237,10,+ 101,88,182,77,62,139,140,183,234,100,98,236,218,48,237,131,85,126,177,198,175,132,199,40,+ 26,8,210,78,131,13,154,137,212,93,121,110,228,173,196,179,204,31,199,171,107,244,195,107,+ 7,237,48,179,197,9,95,103,46,176,241,156,139,184,170,91,254,248,189,23,244,159,24,114,+ 245,141,244,253,3,252,33,237,55,202,113,88,254,24,43,70,15,98,133,23,254,234,36,43,+ 127,128,185,72,195,219,225,76,160,23,220,219,66,29,191,199,105,150,203,244,181,241,41,63,+ 188,92,224,138,29,132,158,231,5,13,203,85,76,16,138,99,6,22,22,181,34,213,193,151,+ 58,226,30,14,146,72,15,208,166,17,67,239,155,85,1,97,47,151,109,10,35,66,78,80,+ 249,216,57,223,28,249,144,115,159,51,25,225,102,16,253,90,50,172,141,82,130,163,76,227,+ 203,190,46,4,191,124,218,242,119,211,246,52,195,80,251,141,83,254,225,204,177,36,127,168,+ 236,118,51,189,96,220,125,88,148,155,58,161,41,76,215,224,191,233,123,148,8,201,252,171,+ 33,158,161,127,170,244,241,1,87,161,15,127,60,39,49,61,95,234,25,60,53,2,192,28,+ 91,137,40,155,243,191,0,195,97,222,102,164,121,175,198,5,21,30,60,107,51,38,128,198,+ 20,142,214,47,96,194,46,61,67,232,215,3,124,240,242,25,77,240,48,152,226,48,25,164,+ 107,255,246,68,36,106,233,18,0,1,50,60,69,24,48,47,47,16,12,8,10,15,55,76,+ 67,26,13,44,42,18,7,9,6,177,211,165,224,161,13,84,236,104,249,108,119,88,27,95,+ 197,188,38,125,241,239,115,30,46,217,39,249,42,41,98,21,167,68,174,20,145,37,250,226,+ 158,108,199,166,13,103,157,128,81,117,35,71,43,64,99,239,243,238,103,195,200,118,239,18,+ 227,20,103,171,132,178,145,49,172,210,28,194,198,8,240,130,16,8,7,249,201,60,186,42,+ 223,29,85,15,184,43,9,252,215,160,71,255,70,148,66,112,207,123,73,6,247,212,63,249,+ 221,77,230,203,254,1,235,213,7,72,157,3,105,167,227,209,197,124,45,106,6,155,60,113,+ 53,233,200,217,231,60,88,184,175,157,207,39,32,213,75,131,22,72,178,61,82,76,175,236,+ 218,127,224,6,67,252,190,10,194,0,55,52,92,41,148,223,103,239,124,19,233,137,154,141,+ 196,218,240,94,238,28,15,65,1,91,243,10,96,213,184,165,212,17,229,221,120,233,80,73,+ 144,51,222,181,89,234,90,218,198,69,215,247,243,43,15,209,110,255,236,143,80,219,69,112,+ 106,247,133,145,140,223,84,168,177,110,151,212,19,69,170,152,211,25,245,200,175,207,173,185,+ 67,29,73,13,35,253,215,56,11,44,141,104,179,38,149,167,88,55,152,94,254,70,126,184,+ 86,63,176,168,116,85,68,68,168,110,187,254,157,124,17,210,237,32,25,83,66,103,64,41,+ 110,168,212,112,162,111,230,56,89,107,66,6,148,216,78,94,121,131,149,242,114,207,199,91,+ 77,125,229,126,72,1,175,131,206,89,49,49,90,154,94,103,137,185,164,174,103,191,67,84,+ 107,249,206,170,187,220,142,193,99,126,7,36,132,176,246,182,216,147,215,14,230,40,18,126,+ 190,17,44,16,3,91,69,24,117,14,128,0,202,239,216,191,51,28,47,159,97,122,59,78,+ 161,172,99,73,167,180,230,237,78,255,184,17,155,63,222,154,143,48,150,74,84,13,157,196,+ 43,146,177,132,205,66,88,183,24,69,226,48,142,63,251,132,10,17,224,63,22,0,1,37,+ 42,66,36,53,34,34,18,22,16,32,24,22,12,14,34,30,28,10,32,63,63,34,244,36,+ 232,34,172,181,222,133,54,251,131,99,244,151,47,182,53,51,111,243,211,96,30,0,116,193,+ 36,234,80,210,72,189,155,109,56,169,147,26,211,121,190,85,228,218,76,194,28,192,83,110,+ 150,10,228,16,70,252,31,14,10,197,216,55,141,152,169,59,247,30,140,249,108,150,166,65,+ 227,195,5,131,198,149,213,209,17,249,111,185,162,141,253,167,50,222,114,162,49,228,191,110,+ 5,251,205,114,155,163,37,122,132,223,71,240,89,119,207,87,85,25,177,39,32,21,221,66,+ 246,229,248,235,238,98,70,100,194,251,88,103,227,13,182,219,49,88,230,168,70,137,30,12,+ 61,123,147,150,117,121,93,62,88,45,204,135,185,134,182,248,98,116,2,207,143,177,227,30,+ 73,45,69,237,30,254,164,44,1,26,70,69,113,217,155,233,248,86,252,83,29,141,45,181,+ 248,117,59,201,64,221,118,198,229,0,56,134,25,247,145,182,238,184,194,119,184,95,42,140,+ 7,127,69,188,200,162,238,90,168,144,249,136,227,172,181,108,129,207,109,219,238,21,112,154,+ 161,235,63,150,108,73,170,166,75,98,187,9,45,58,231,217,79,253,132,7,114,104,33,10,+ 147,198,204,201,248,10,227,85,17,56,131,253,138,25,184,50,92,118,135,50,149,135,143,226,+ 143,205,144,110,63,138,248,237,227,5,116,249,26,204,86,85,159,49,78,251,186,174,226,183,+ 136,26,48,247,236,90,153,175,240,105,158,238,254,12,228,73,220,52,195,44,137,152,26,222,+ 201,59,161,0,55,11,101,234,46,187,91,237,113,15,116,32,57,90,250,159,253,208,101,49,+ 148,16,17,208,58,112,128,157,202,225,90,19,190,29,69,220,68,58,209,230,76,165,231,79,+ 130,110,192,101,229,54,38,173,243,222,5,141,249,138,81,153,154,147,237,198,250,145,160,25,+ 222,17,65,75,173,129,121,74,146,50,81,208,190,203,116,127,195,137,159,215,64,100,226,233,+ 45,66,106,179,12,47,98,187,190,67,89,194,43,121,43,0,7,28,61,184,173,35,192,94,+ 56,160,183,12,104,25,183,4,178,73,22,85,220,216,203,91,54,233,119,42,166,171,197,149,+ 248,224,205,227,247,207,203,104,197,199,93,19,134,87,188,245,125,3,204,12,203,35,174,255,+ 255,243,190,206,157,208,64,13,0,1,21,43,67,52,37,20,26,33,50,55,112,106,98,28,+ 255,133,19,208,79,129,219,2,67,113,151,111,100,135,21,72,36,51,93,157,8,69,76,63,+ 185,108,246,64,117,24,112,199,213,244,248,1,73,41,212,104,145,210,122,22,202,87,56,173,+ 108,202,233,238,145,206,215,169,229,202,24,95,247,112,210,96,202,174,128,136,186,159,220,252,+ 6,59,154,94,150,132,100,145,98,254,205,112,207,21,87,97,6,198,133,26,246,200,172,183,+ 219,176,8,246,97,149,245,148,178,26,160,55,35,206,144,124,192,215,194,133,13,132,68,239,+ 164,43,66,87,86,104,34,130,53,23,245,0,235,193,155,51,108,152,244,55,239,168,118,159,+ 172,154,34,16,92,254,223,144,163,116,224,66,9,140,128,101,126,204,57,123,127,163,84,29,+ 251,156,5,207,160,208,209,211,66,70,205,238,226,147,107,180,251,70,202,222,13,138,86,31,+ 205,69,218,250,249,51,253,251,227,172,237,104,72,131,23,7,106,121,164,36,136,95,172,210,+ 70,131,187,205,20,137,19,22,184,38,46,6,241,160,6,13,173,184,156,92,21,75,6,243,+ 4,139,6,23,28,21,213,20,248,89,166,18,148,32,232,85,77,13,221,35,182,210,84,182,+ 37,122,57,177,135,157,119,230,45,253,166,255,118,211,221,19,177,137,180,127,177,220,123,79,+ 242,53,27,163,255,253,88,47,153,177,0,20,0,1,0,5,19,62,64,56,13,17,16,23,+ 27,65,71,74,33,49,47,60,33,21,3,245,203,101,121,59,144,183,196,174,196,20,85,213,+ 169,79,231,21,69,151,24,114,216,21,1,152,141,156,35,58,119,129,216,2,58,60,202,72,+ 110,31,180,228,0,69,210,177,241,117,234,1,6,164,130,12,230,115,143,210,24,196,53,93,+ 113,231,130,123,210,186,68,8,22,111,140,185,25,92,132,72,111,183,40,2,196,84,200,67,+ 103,66,108,61,215,61,184,101,41,251,114,102,129,164,25,103,61,200,106,188,37,138,213,144,+ 149,162,30,229,14,113,66,111,165,200,148,132,43,198,171,125,169,199,19,237,16,194,239,93,+ 16,14,102,159,204,168,76,43,34,137,194,75,140,169,186,100,119,255,56,143,121,210,210,16,+ 161,5,90,188,172,84,36,104,181,86,225,238,116,222,241,248,66,108,179,51,55,60,44,12,+ 252,252,44,202,149,125,70,10,103,163,164,73,209,201,2,255,213,121,23,155,41,248,196,61,+ 140,244,153,218,86,249,185,16,255,240,238,174,2,133,107,221,29,185,218,173,18,50,157,3,+ 44,171,244,195,38,21,113,27,57,104,78,4,51,133,10,39,192,0,96,216,101,166,66,154,+ 39,149,14,126,5,210,246,245,222,3,231,217,46,158,254,199,120,238,249,233,182,80,127,51,+ 97,223,219,80,39,143,114,17,34,188,50,246,126,48,64,243,22,249,7,228,51,233,85,13,+ 134,80,36,208,10,125,204,108,44,42,215,141,96,239,197,152,94,146,69,59,166,85,186,235,+ 26,86,192,163,231,242,188,103,94,34,113,67,50,14,185,142,55,133,3,20,135,124,236,241,+ 59,231,199,210,191,191,11,28,186,176,156,14,210,61,162,210,131,152,179,68,38,87,167,180,+ 147,183,116,138,234,27,19,9,60,64,125,27,118,108,119,102,53,78,191,92,114,211,36,10,+ 213,121,195,178,191,198,165,245,24,21,2,107,2,185,109,128,254,32,13,68,202,113,180,229,+ 84,85,43,210,126,38,90,11,45,198,241,82,173,57,39,189,50,57,213,162,45,250,188,201,+ 74,249,255,252,91,78,255,254,180,22,30,201,84,13,0,1,6,10,57,52,66,38,40,27,+ 34,30,80,56,124,71,102,78,43,1,17,219,23,159,251,64,228,197,32,214,218,244,146,43,+ 131,57,128,217,179,92,57,116,103,87,165,98,214,113,65,18,229,133,152,149,229,9,247,89,+ 251,217,157,48,208,90,216,192,58,121,48,228,46,244,73,181,36,206,174,77,37,144,235,156,+ 184,100,160,64,100,129,203,18,27,104,50,43,68,113,20,100,36,192,227,7,85,22,69,56,+ 69,227,23,221,17,83,246,1,76,176,214,155,23,16,128,48,78,34,163,252,136,100,140,95,+ 186,129,46,117,59,77,96,167,108,32,173,103,98,100,100,58,14,219,157,233,213,135,107,57,+ 94,226,212,255,28,160,242,136,42,243,8,71,202,165,222,212,96,149,127,187,134,93,238,205,+ 192,19,129,98,49,16,89,148,7,44,226,38,239,194,51,8,51,178,71,255,195,171,23,189,+ 125,182,194,22,207,107,99,8,36,134,231,120,4,167,34,218,113,102,168,2,18,154,236,31,+ 122,43,17,203,34,120,79,90,55,227,157,74,119,226,238,34,181,145,229,106,253,14,53,77,+ 126,26,10,70,205,112,35,160,67,26,2,148,113,155,226,142,0,215,161,240,36,129,63,19,+ 10,238,193,199,151,249,27,39,204,67,126,15,125,252,199,240,165,193,123,214,254,39,178,98,+ 117,87,4,4,106,110,242,151,117,2,18,209,127,227,131,9,144,65,31,66,11,225,11,210,+ 190,132,224,250,47,81,130,79,43,52,143,196,204,84,170,201,102,197,78,203,62,59,209,252,+ 39,171,89,55,93,164,172,250,237,47,174,124,17,216,157,228,70,173,146,236,215,103,58,110,+ 210,147,113,97,205,69,215,53,182,45,209,82,36,108,253,11,220,172,15,57,137,42,0,159,+ 140,201,157,103,129,44,159,54,70,111,186,221,132,41,91,79,20,207,193,153,53,2,124,120,+ 72,120,249,190,43,128,190,153,5,249,251,114,194,93,229,242,223,245,253,201,255,251,145,118,+ 221,138,13,0,1,48,76,107,66,56,38,67,64,53,65,56,56,6,2,33,50,64,83,251,+ 187,149,193,135,23,131,86,97,64,90,62,59,238,155,66,173,30,172,239,49,252,172,154,227,+ 253,100,83,57,248,244,143,44,205,222,13,143,253,119,62,140,245,202,88,77,50,237,91,32,+ 209,230,199,183,111,179,68,51,151,56,241,210,16,188,144,60,84,75,74,19,183,187,139,50,+ 75,181,105,164,245,7,184,253,15,229,138,125,191,28,236,69,170,223,86,183,110,116,17,84,+ 161,26,238,119,230,89,176,63,182,247,118,109,109,169,197,42,181,123,181,157,72,219,162,191,+ 125,130,253,34,247,157,11,40,183,88,228,49,179,55,11,149,41,125,30,110,36,19,117,243,+ 75,48,67,58,111,53,42,127,24,21,27,29,90,72,7,178,214,22,59,168,106,169,7,78,+ 163,109,187,29,49,155,183,219,81,16,99,48,183,48,84,8,71,208,101,175,42,221,208,68,+ 186,158,91,20,184,246,233,161,204,146,164,7,239,95,136,19,39,11,228,104,73,124,157,227,+ 179,64,213,187,49,156,106,91,140,32,61,191,211,80,133,249,146,11,114,178,9,80,49,239,+ 236,119,209,6,158,228,9,77,253,119,35,244,119,148,168,74,105,25,170,244,127,218,84,30,+ 241,31,169,33,171,82,38,254,132,14,70,54,177,24,24,221,83,175,94,64,144,91,40,173,+ 105,246,11,27,158,21,1,50,59,201,95,152,118,119,24,247,237,211,154,240,244,9,2,104,+ 98,254,211,42,2,30,3,212,152,226,159,253,12,210,82,168,101,19,255,243,77,249,202,49,+ 9,0,8,55,59,94,47,47,5,4,25,104,111,232,53,164,101,205,249,22,140,181,150,194,+ 169,188,28,45,183,63,242,226,39,13,254,183,131,104,157,223,147,26,145,10,213,23,119,144,+ 97,226,48,130,255,208,99,184,90,119,20,184,174,93,246,242,81,199,241,130,77,88,69,170,+ 204,197,180,104,203,244,113,103,219,214,162,63,220,132,238,233,167,58,57,89,127,185,65,31,+ 1,97,230,3,103,34,32,205,103,234,255,99,20,99,46,59,219,51,180,175,77,120,240,74,+ 107,33,97,245,205,48,12,245,246,202,19,253,134,22,104,105,66,97,230,90,148,195,217,163,+ 159,139,232,167,123,137,208,148,21,139,152,128,127,235,126,113,214,155,182,200,121,228,164,213,+ 133,115,80,252,199,190,105,34,115,206,214,240,120,35,42,24,175,210,136,113,191,136,38,44,+ 193,209,110,7,95,118,27,240,148,8,141,207,55,116,104,105,16,107,163,17,76,113,245,33,+ 41,100,15,130,9,113,89,175,200,126,158,13,107,74,17,148,244,182,128,75,85,116,71,79,+ 153,234,83,229,112,18,173,89,175,106,176,186,210,42,182,206,56,27,101,255,158,40,57,142,+ 133,227,248,185,4,33,212,166,132,87,74,73,206,140,213,167,57,228,113,101,75,150,235,0,+ 132,238,212,10,61,86,160,69,32,71,165,133,225,136,132,2,97,161,233,77,227,177,142,4,+ 63,181,106,123,48,245,136,173,243,65,208,65,133,140,12,53,198,16,79,211,227,39,202,123,+ 91,123,134,87,174,132,99,173,146,201,127,91,186,68,170,133,30,20,151,18,76,211,101,236,+ 224,220,36,175,74,57,19,230,251,104,215,47,32,32,239,61,166,107,146,85,179,88,153,145,+ 139,58,191,204,114,14,151,110,253,3,132,112,160,0,163,102,76,57,230,136,149,227,117,185,+ 33,146,199,228,241,191,122,202,200,242,51,133,87,20,0,1,29,33,39,14,13,12,11,30,+ 25,44,25,38,16,43,31,36,45,78,96,66,29,249,233,63,91,148,241,52,145,126,231,220,+ 154,197,195,79,217,36,139,30,83,9,209,241,178,48,119,43,112,116,226,197,2,141,102,34,+ 216,230,207,40,123,180,164,252,29,77,91,20,207,197,111,180,228,251,230,48,93,73,248,158,+ 194,203,51,37,23,41,100,136,1,55,47,199,43,8,70,103,89,54,214,71,223,58,177,3,+ 48,196,145,152,243,165,59,76,24,184,156,34,82,46,9,194,38,218,199,128,157,248,212,194,+ 185,193,5,191,120,94,83,73,93,120,216,34,218,66,29,244,215,153,221,47,238,38,11,97,+ 62,219,110,136,108,4,113,185,94,222,189,199,64,25,171,165,196,169,216,155,246,180,84,69,+ 207,64,107,83,208,88,202,35,97,52,250,233,210,129,116,214,110,126,237,154,120,108,191,70,+ 247,186,105,23,82,168,181,19,214,249,106,28,197,222,194,76,154,167,161,82,1,192,158,207,+ 82,74,2,63,165,156,203,39,147,217,24,245,41,29,197,30,225,125,51,44,245,85,225,166,+ 187,118,46,58,189,115,107,129,23,34,189,253,251,46,133,226,144,25,246,212,184,115,31,2,+ 65,116,115,34,192,57,57,23,0,1,3,45,45,48,16,18,21,21,29,27,33,25,25,37,+ 51,43,20,5,18,29,29,59,54,50,248,9,232,200,125,119,84,182,149,114,23,84,28,229,+ 77,162,144,171,201,40,133,90,91,193,126,230,14,156,146,140,8,60,17,158,106,225,251,29,+ 19,128,179,213,184,252,186,151,245,184,77,248,135,195,142,233,162,131,159,34,241,65,240,157,+ 103,220,9,235,91,133,15,104,120,120,86,215,132,7,220,197,52,120,193,156,132,40,121,205,+ 67,73,11,81,7,215,242,253,83,133,249,87,203,164,79,122,142,208,20,213,132,91,243,14,+ 253,68,91,56,218,238,5,5,184,19,199,102,188,51,58,57,13,248,208,157,59,123,98,98,+ 183,146,95,47,17,23,57,255,221,78,97,55,114,111,59,96,229,46,41,37,89,162,229,208,+ 182,63,22,212,235,106,202,39,72,252,246,204,95,190,207,245,217,42,45,53,20,192,149,61,+ 215,115,81,135,179,234,52,46,177,209,242,225,142,73,0,236,72,139,27,76,190,107,170,176,+ 66,66,95,101,79,120,52,133,83,197,31,217,230,100,251,239,183,79,116,224,29,12,0,1,+ 38,45,45,32,31,69,74,111,74,78,61,66,29,251,133,35,101,77,15,20,167,194,99,142,+ 78,95,27,94,154,12,228,120,187,169,100,33,3,169,37,94,138,1,53,63,20,80,167,108,+ 43,177,196,48,208,57,125,130,158,57,109,176,192,131,77,85,128,225,22,115,38,133,143,231,+ 155,220,191,86,34,57,230,217,239,192,88,81,2,41,244,244,115,242,172,124,83,207,86,18,+ 5,52,243,115,120,236,78,207,33,78,138,235,186,128,148,3,128,1,71,131,231,79,102,15,+ 241,206,20,200,197,28,192,113,206,109,230,101,218,91,177,106,31,139,145,236,131,158,243,174,+ 104,187,119,82,13,241,108,69,31,226,94,139,132,243,207,40,25,79,111,62,218,104,232,92,+ 237,156,82,133,250,38,192,184,179,23,46,49,55,135,134,73,163,46,99,209,119,20,0,1,+ 30,33,41,14,19,12,14,24,43,39,33,18,35,43,74,63,46,21,46,57,45,11,255,255,+ 165,152,9,154,100,26,63,130,114,7,203,191,120,192,209,227,55,203,236,203,146,95,14,226,+ 165,124,164,193,218,27,250,94,57,42,91,124,45,38,250,43,197,148,186,33,184,33,70,129,+ 183,59,88,40,28,102,245,76,83,162,242,163,118,190,120,125,162,104,201,178,149,24,169,72,+ 179,52,141,197,129,156,14,39,68,208,11,244,101,95,145,96,17,7,172,143,27,80,34,135,+ 97,201,207,151,22,202,54,104,222,203,103,95,249,190,203,46,27,229,197,43,18,93,134,71,+ 206,162,200,11,85,234,22,220,47,111,173,22,89,22,236,82,64,5,238,228,127,22,202,153,+ 189,176,71,230,153,50,28,14,246,90,183,85,89,120,117,38,123,240,214,246,100,45,90,255,+ 123,176,151,199,255,195,37,163,207,94,240,47,93,133,31,248,35,76,171,127,7,8,87,35,+ 225,204,13,107,161,190,56,177,38,223,229,140,136,244,214,231,67,164,227,127,210,30,142,7,+ 58,84,136,90,51,235,151,18,185,138,45,13,0,205,124,69,155,142,233,43,147,142,140,66,+ 22,0,1,30,46,55,43,67,59,47,13,16,11,15,35,36,47,25,33,17,37,40,43,21,+ 12,7,5,245,72,54,132,56,16,146,6,45,86,142,129,151,166,57,5,201,38,180,148,53,+ 85,76,217,143,101,132,151,25,231,212,10,200,175,192,94,0,46,184,155,107,253,238,73,147,+ 191,236,71,249,146,181,56,12,234,251,68,105,18,78,223,169,208,77,54,136,163,153,114,75,+ 63,9,146,10,82,246,89,16,65,107,111,138,10,244,62,143,163,56,32,212,169,220,61,152,+ 187,110,140,121,242,142,134,242,31,189,111,118,242,173,89,220,120,238,40,137,37,114,223,150,+ 181,142,226,239,27,126,124,44,230,139,227,24,177,109,24,116,179,21,237,50,138,71,221,151,+ 231,206,198,30,22,115,200,204,17,144,71,251,186,117,73,184,236,7,87,201,159,75,15,122,+ 150,206,66,249,249,165,220,19,245,246,17,211,76,16,196,19,49,55,120,6,118,44,244,178,+ 35,180,143,54,214,57,25,126,151,168,51,165,163,160,206,82,137,42,184,210,143,189,236,9,+ 255,50,189,4,206,209,192,82,139,146,34,107,249,167,125,40,134,183,1,143,222,23,55,25,+ 87,75,141,52,56,165,57,160,217,22,156,137,21,171,136,55,125,215,102,23,173,129,115,127,+ 181,213,18,205,6,169,196,151,217,46,225,76,247,193,64,96,30,85,152,95,178,238,225,79,+ 60,51,10,17,185,150,203,59,37,170,120,32,138,148,139,3,143,127,71,29,199,137,225,62,+ 157,221,182,44,170,61,88,124,62,221,78,71,185,240,112,250,54,43,108,65,223,96,101,142,+ 89,143,17,43,83,30,6,2,187,80,92,240,63,124,1,171,135,108,28,24,68,144,222,48,+ 49,22,126,33,208,84,2,179,33,85,47,105,165,147,171,5,79,1,230,2,47,150,185,93,+ 20,239,191,96,77,17,0,25,24,31,8,26,25,26,21,40,41,32,20,24,39,30,28,105,+ 50,65,42,105,3,28,54,159,12,24,227,85,224,216,136,18,218,255,219,216,190,71,164,75,+ 1,106,174,157,15,239,139,128,97,218,161,92,241,131,0,234,155,154,125,207,48,0,239,250,+ 150,126,142,162,175,25,151,28,38,161,143,167,10,27,131,253,21,69,55,179,50,50,134,109,+ 206,67,67,84,251,143,7,17,6,95,40,185,70,122,248,133,248,171,191,229,103,76,200,155,+ 19,1,106,90,160,215,156,14,123,203,117,175,112,218,150,79,79,38,54,129,84,33,71,16,+ 26,32,28,113,112,106,166,141,1,135,140,239,228,186,208,227,30,123,163,67,106,154,82,95,+ 250,46,154,254,191,215,207,114,243,214,27,22,211,154,107,94,84,166,253,243,59,70,195,73,+ 128,107,11,226,170,209,33,32,139,76,202,110,99,12,40,148,28,118,37,249,73,236,59,52,+ 229,67,203,102,200,131,251,252,130,82,156,54,3,197,64,73,183,122,27,251,226,98,84,96,+ 48,197,51,254,135,142,57,226,224,247,15,183,189,139,66,7,128,198,150,39,185,185,206,87,+ 106,10,122,65,131,218,173,12,165,184,105,65,179,253,206,62,250,197,170,224,190,147,147,207,+ 124,181,36,23,207,229,30,236,63,127,249,48,149,159,24,199,64,155,105,86,127,231,47,248,+ 132,117,133,67,65,136,163,114,26,108,102,137,216,25,141,20,252,178,141,165,163,191,189,122,+ 156,240,236,25,90,97,115,32,49,101,249,35,161,5,149,73,236,59,56,113,141,62,152,211,+ 145,250,232,115,152,162,109,72,176,200,82,38,67,30,240,21,27,192,42,69,235,140,35,60,+ 226,212,175,28,160,102,10,163,67,103,139,186,197,106,152,245,32,19,48,1,9,151,128,43,+ 113,133,108,228,172,255,64,153,63,17,208,203,66,154,242,177,25,196,135,85,122,158,233,115,+ 62,34,71,153,13,197,140,181,142,201,99,104,97,221,30,104,81,163,255,128,45,128,53,21,+ 219,25,183,134,17,12,197,50,50,71,83,20,231,70,19,76,198,225,13,81,63,78,65,130,+ 188,244,196,8,232,232,4,33,241,248,211,211,4,126,204,168,82,38,63,118,11,207,204,215,+ 172,137,110,88,244,11,44,169,73,222,231,249,206,94,148,25,77,121,50,23,114,73,71,180,+ 105,160,15,25,75,240,205,209,102,132,56,180,69,90,163,235,212,92,191,205,145,62,179,117,+ 133,89,65,6,146,107,125,67,155,217,126,123,57,70,45,74,80,64,214,163,143,129,46,232,+ 170,126,60,238,69,247,136,180,105,100,38,112,252,201,0,23,0,1,34,43,53,38,39,39,+ 39,36,28,12,10,31,28,41,20,18,16,28,28,36,37,47,34,16,248,36,236,234,230,106,+ 195,232,198,12,82,244,49,27,30,118,240,5,196,12,165,103,23,126,120,170,243,234,229,79,+ 103,248,118,135,73,43,232,239,157,154,224,122,0,153,36,113,101,167,35,58,39,43,99,242,+ 154,137,248,39,94,74,80,150,165,59,245,203,139,94,86,253,121,117,119,63,245,11,154,76,+ 100,70,79,5,106,136,92,148,108,71,95,27,80,135,61,4,85,1,78,216,248,218,40,201,+ 39,219,85,81,0,235,235,4,35,23,8,120,198,4,177,249,11,196,196,143,104,233,12,149,+ 224,121,165,70,126,126,100,163,57,202,247,7,1,183,140,25,232,82,112,215,75,188,78,111,+ 231,54,84,82,4,165,200,163,99,91,115,126,248,122,73,177,100,192,140,29,237,22,30,143,+ 87,136,122,87,107,134,120,80,79,230,247,187,139,143,212,176,223,151,194,165,19,82,88,225,+ 69,253,241,149,94,251,235,188,96,70,53,216,80,96,103,200,185,212,63,126,129,92,145,43,+ 86,88,26,101,166,25,209,254,215,93,140,25,45,34,166,200,200,134,42,159,24,156,14,21,+ 160,219,234,209,33,45,99,235,183,119,194,234,13,41,195,184,114,145,29,144,65,100,240,98,+ 172,244,184,29,144,151,90,232,4,149,100,152,186,117,122,96,230,16,95,138,128,76,12,242,+ 21,0,1,6,14,20,14,22,21,25,28,34,44,32,35,31,29,31,33,33,22,9,84,91,+ 89,2,143,164,78,19,28,103,76,116,247,180,14,152,228,214,35,141,37,171,250,174,241,162,+ 255,89,84,5,241,123,74,89,33,20,146,57,45,208,144,232,26,112,163,179,43,237,75,161,+ 17,246,11,92,110,218,57,217,153,125,52,25,127,192,172,68,155,9,209,217,68,158,42,238,+ 29,74,47,246,107,255,135,194,55,62,62,180,210,20,110,111,255,174,237,2,213,7,179,239,+ 25,203,130,68,87,70,6,109,204,171,143,251,134,78,111,6,106,14,38,80,84,31,158,243,+ 180,48,235,215,94,249,81,177,158,127,164,74,127,3,239,12,51,172,60,71,255,223,206,213,+ 224,21,182,38,234,53,122,249,101,56,135,226,30,243,228,64,110,253,65,104,136,219,119,69,+ 74,185,103,247,174,247,65,114,208,88,145,182,98,240,55,105,221,121,15,69,232,13,105,252,+ 71,208,138,152,45,154,195,227,51,17,206,169,20,154,60,147,160,127,201,146,30,202,130,168,+ 3,182,6,215,253,195,181,49,222,195,19,101,170,241,45,21,95,227,159,187,215,168,7,176,+ 21,177,136,231,93,45,217,55,86,206,157,30,161,20,105,20,236,29,74,182,155,144,158,199,+ 177,5,6,134,224,22,137,53,201,235,28,205,220,52,15,186,154,116,84,83,249,14,120,148,+ 227,22,43,20,170,35,14,3,238,137,19,185,252,127,155,248,253,150,91,61,140,54,10,62,+ 100,92,157,253,235,59,135,49,11,188,62,215,125,231,141,172,92,245,232,171,44,251,97,212,+ 18,252,222,215,2,93,154,125,255,144,41,144,56,137,160,107,221,124,170,183,58,79,227,195,+ 91,218,209,151,176,234,48,84,39,169,107,247,79,102,214,27,156,248,99,48,186,35,83,14,+ 247,30,212,1,68,100,189,248,188,87,24,14,241,206,254,145,67,6,192,36,186,149,162,39,+ 183,212,60,68,232,98,74,243,234,117,104,121,238,57,181,130,180,148,153,73,80,127,252,193,+ 117,175,37,17,1,132,252,197,145,177,53,48,111,5,105,92,178,45,50,16,117,16,225,42,+ 244,118,48,21,221,235,36,155,186,138,26,108,235,129,252,238,22,219,166,158,221,32,221,129,+ 166,8,32,139,199,238,198,35,157,65,25,116,128,224,26,56,91,60,75,255,251,155,81,40,+ 171,132,15,0,16,14,20,11,22,21,40,30,35,43,41,60,37,49,86,108,94,28,253,179,+ 14,228,51,27,112,82,67,8,110,186,155,59,43,220,1,184,128,153,247,57,219,249,161,182,+ 91,48,124,38,173,170,172,76,131,84,108,175,134,221,216,92,0,145,46,211,102,127,102,177,+ 214,150,159,182,26,8,164,36,83,165,52,166,83,2,23,1,93,119,219,134,67,35,51,148,+ 170,118,53,100,31,136,3,161,33,85,198,212,92,182,186,206,17,27,27,250,16,202,78,140,+ 236,80,74,212,102,68,119,51,26,8,172,160,228,172,154,218,190,213,232,120,134,247,101,17,+ 137,61,117,84,112,150,157,193,62,39,97,212,132,42,109,173,67,70,168,43,44,179,57,245,+ 142,83,121,157,147,10,141,208,2,42,209,251,93,61,131,110,148,206,102,32,142,255,187,123,+ 107,234,224,101,178,223,100,30,72,238,32,157,30,112,189,237,79,153,223,81,185,121,68,36,+ 225,95,96,229,136,44,168,70,21,108,151,227,94,106,2,65,132,19,245,120,25,35,237,116,+ 218,225,255,255,164,63,248,78,11,144,41,214,67,45,107,160,163,104,94,75,33,82,101,174,+ 158,186,178,7,109,162,126,233,155,50,140,200,147,173,104,7,250,69,227,114,209,158,102,202,+ 159,113,92,174,54,169,50,203,185,198,90,25,243,184,218,193,221,110,3,200,5,172,175,239,+ 217,87,178,60,63,225,165,157,6,235,152,156,227,51,164,226,160,235,229,157,91,31,123,111,+ 128,133,182,51,12,79,230,122,127,13,132,223,23,119,14,79,50,211,36,233,229,75,180,2,+ 87,96,10,89,39,141,176,200,51,199,199,109,170,200,251,92,168,88,49,142,141,212,44,183,+ 18,76,70,161,43,190,154,106,52,28,207,112,145,9,81,112,192,78,59,106,34,230,41,83,+ 251,128,155,123,223,53,238,236,24,42,11,102,209,30,25,144,81,30,222,5,196,219,80,37,+ 120,218,173,177,112,194,8,118,172,132,50,123,120,97,51,76,16,146,171,102,182,184,186,103,+ 24,123,45,42,159,243,61,221,181,190,244,94,98,34,79,4,156,210,193,158,26,0,22,0,+ 1,4,8,10,26,42,45,24,8,3,7,15,17,13,13,14,17,10,47,49,60,91,112,98,+ 60,78,202,176,96,151,74,29,137,248,194,239,179,166,91,128,20,91,13,153,160,255,129,18,+ 82,236,25,241,151,166,52,195,224,102,204,90,190,97,79,22,91,58,190,16,174,8,202,235,+ 21,153,216,53,236,243,132,216,1,39,69,165,71,80,70,81,86,82,242,251,30,223,146,161,+ 97,128,50,87,22,130,172,244,170,131,190,144,33,55,159,225,215,176,164,202,0,35,32,7,+ 135,56,98,29,24,82,221,120,202,115,52,231,217,77,141,42,168,13,104,83,45,146,130,14,+ 152,63,79,37,160,222,140,205,154,120,144,201,226,14,154,49,177,135,211,5,172,242,59,81,+ 20,234,129,132,247,205,108,66,20,226,142,4,161,10,108,81,43,245,205,160,12,27,182,226,+ 148,131,188,115,202,237,157,172,46,158,201,66,218,159,82,62,231,137,226,143,116,189,80,78,+ 204,190,11,28,183,92,241,113,42,250,119,229,192,46,17,154,231,145,252,217,36,163,110,25,+ 144,127,121,164,249,30,238,28,231,17,196,135,161,63,149,114,249,92,0,219,36,61,230,29,+ 218,195,88,119,86,233,78,63,224,29,192,167,234,178,103,249,192,170,87,84,237,225,167,196,+ 154,216,186,180,19,217,56,198,175,87,190,145,242,18,212,173,69,188,60,146,64,230,27,157,+ 56,20,177,42,52,113,142,147,200,164,204,245,4,245,204,129,186,203,168,153,70,49,4,41,+ 89,12,9,46,15,177,248,190,137,166,59,9,99,28,109,12,64,119,142,50,23,144,71,197,+ 230,152,13,61,177,195,19,200,21,159,146,250,3,178,86,240,108,216,193,172,27,36,78,196,+ 69,240,106,196,236,188,159,255,33,21,181,179,45,201,208,66,95,190,255,149,70,210,99,64,+ 8,158,16,109,171,166,154,117,56,93,91,60,95,220,124,166,133,52,230,110,251,34,65,64,+ 180,240,123,152,124,105,129,245,95,125,15,200,198,110,147,2,252,198,53,2,197,77,223,182,+ 85,9,43,27,65,26,91,50,121,116,159,57,60,103,187,153,13,74,81,146,40,224,72,137,+ 167,126,143,155,8,148,1,37,32,96,147,197,31,230,184,173,182,243,89,104,4,100,144,59,+ 232,200,228,79,88,121,207,198,26,102,92,150,5,20,3,118,141,136,192,227,228,195,76,235,+ 120,192,112,74,163,70,112,111,42,218,16,133,178,252,91,122,230,255,252,94,250,146,105,18,+ 0,1,23,26,37,30,39,31,17,11,12,13,24,59,58,53,30,90,102,85,20,244,173,149,+ 162,21,83,132,44,9,239,160,156,201,93,188,143,172,99,161,126,49,155,126,122,130,246,138,+ 152,96,78,143,240,1,175,36,154,65,127,101,220,44,78,186,12,221,5,119,247,227,92,222,+ 65,76,191,109,229,77,253,135,59,233,141,189,158,99,3,247,214,217,243,6,203,175,25,51,+ 232,132,168,31,124,179,244,130,100,42,156,146,139,19,197,167,239,36,13,22,16,236,179,10,+ 251,126,147,237,81,24,79,176,126,226,196,223,4,79,235,156,141,235,193,51,250,216,7,238,+ 218,192,62,190,56,247,187,174,194,221,186,231,84,32,190,160,230,141,204,207,98,126,245,251,+ 69,231,170,253,231,234,65,158,105,66,128,23,108,55,163,42,247,207,210,165,209,13,118,33,+ 197,245,131,66,85,15,203,81,227,127,46,130,177,34,135,251,138,53,90,242,58,2,189,20,+ 123,157,161,76,209,102,207,49,110,223,183,228,52,183,251,72,43,179,215,148,16,17,189,81,+ 232,241,61,156,142,243,59,191,67,45,35,85,90,139,10,26,217,26,52,171,56,167,28,1,+ 109,15,32,214,220,21,193,68,172,138,207,27,83,154,186,167,27,192,85,48,79,239,186,99,+ 173,110,159,197,31,38,0,146,214,82,44,142,120,35,230,236,118,194,154,232,221,93,194,205,+ 54,197,133,154,3,205,114,34,5,127,186,201,252,181,80,236,41,84,167,250,243,95,152,44,+ 161,228,182,158,235,129,27,217,31,205,219,15,194,123,205,195,73,52,168,104,200,26,165,223,+ 153,255,109,75,36,51,32,75,60,251,244,164,63,101,28,169,65,38,51,90,162,117,225,127,+ 169,192,122,172,252,129,155,65,5,14,94,180,227,107,186,228,245,119,4,109,204,207,237,200,+ 123,249,30,56,45,53,80,179,255,237,113,134,15,197,249,166,61,180,188,14,137,61,68,14,+ 121,25,61,85,115,253,100,2,120,229,196,127,14,213,201,182,72,137,19,180,140,206,77,71,+ 211,16,88,178,222,147,74,116,155,138,12,174,173,35,50,37,21,18,13,85,226,234,67,85,+ 248,61,228,44,222,164,249,155,28,11,196,213,80,157,136,131,114,165,25,255,125,23,162,216,+ 38,252,243,255,255,232,222,240,240,86,17,0,1,19,39,43,50,35,32,13,37,67,63,48,+ 21,73,72,75,32,24,14,245,7,8,122,219,253,106,240,172,212,112,172,89,234,104,22,92,+ 164,80,156,90,44,114,161,244,0,36,202,26,56,195,62,234,166,109,206,165,27,29,240,235,+ 187,32,9,252,182,107,28,95,33,2,33,201,15,238,134,69,52,143,242,223,98,96,146,182,+ 188,163,29,181,94,213,253,200,76,48,210,154,111,1,232,186,150,125,32,56,83,124,84,61,+ 155,173,254,27,234,233,5,28,5,6,200,87,243,104,37,184,92,93,93,41,48,3,181,0,+ 0,151,2,134,194,58,23,23,93,137,82,125,255,201,79,143,34,131,17,245,214,152,68,109,+ 62,237,65,52,158,44,188,21,95,153,74,115,7,233,32,128,92,127,222,13,243,111,117,50,+ 101,165,203,184,81,221,40,212,41,45,210,11,157,143,161,189,10,68,217,199,73,167,218,106,+ 70,194,50,211,245,132,92,124,108,45,162,216,204,27,177,52,202,139,172,157,150,3,247,235,+ 29,81,249,95,238,66,189,98,127,23,86,21,20,198,128,116,211,252,163,0,1,8,157,40,+ 88,120,212,88,125,232,186,78,198,103,255,140,224,121,208,78,172,250,6,63,16,11,157,198,+ 218,98,47,4,233,114,38,53,51,247,91,66,180,52,34,235,177,54,80,14,148,236,41,140,+ 44,5,150,71,97,27,96,26,174,214,9,39,61,160,166,62,126,101,189,99,249,78,206,166,+ 100,171,38,253,158,154,38,1,50,213,117,21,236,25,31,28,197,183,31,205,139,21,255,181,+ 70,136,188,223,3,28,4,133,242,195,206,149,42,96,211,91,212,188,215,118,254,95,62,0,+ 127,249,159,39,73,6,206,117,28,106,101,182,169,243,20,34,174,148,142,154,56,105,76,197,+ 236,122,72,213,132,50,125,92,21,34,7,190,0,75,146,94,131,76,106,113,113,129,109,234,+ 34,231,36,249,111,151,40,30,248,161,84,96,52,187,94,199,222,191,216,216,125,180,5,2,+ 249,52,35,121,21,250,227,14,83,7,90,132,149,76,35,203,171,68,19,66,206,136,80,101,+ 67,165,120,194,42,125,247,55,132,73,137,19,32,95,58,169,102,213,132,217,75,144,62,171,+ 42,46,173,155,221,27,77,101,1,218,250,236,158,20,29,22,90,36,88,113,180,255,254,223,+ 206,254,1,0,18,0,1,22,66,66,44,10,16,43,39,52,25,26,9,53,83,84,57,24,+ 27,7,249,7,8,235,23,246,124,97,30,251,10,173,174,19,43,21,168,207,42,222,32,236,+ 82,252,192,148,246,141,196,11,39,208,150,233,56,147,241,22,118,4,134,231,110,18,125,131,+ 100,223,119,0,140,86,132,125,36,97,190,60,139,187,28,137,213,146,120,115,114,200,145,172,+ 107,105,72,13,213,161,110,252,162,189,112,78,218,255,26,196,132,51,235,208,50,188,32,232,+ 117,110,157,163,70,2,204,165,215,147,147,207,126,36,32,236,62,150,8,146,255,84,147,25,+ 72,100,25,44,93,88,190,61,37,101,250,109,48,251,196,187,35,200,241,217,181,174,117,243,+ 0,75,238,155,137,55,245,80,251,13,142,108,101,0,90,146,54,114,6,125,159,251,118,16,+ 60,110,76,123,51,192,157,154,25,209,221,169,175,85,228,1,229,28,5,47,88,116,42,120,+ 115,67,174,123,164,154,87,250,211,27,15,137,59,147,170,17,74,36,152,137,255,124,70,91,+ 219,90,106,230,44,103,16,96,154,222,194,82,22,114,141,14,53,16,12,34,185,214,158,8,+ 76,152,177,88,36,24,112,236,206,253,129,168,239,35,23,223,172,193,109,170,145,2,125,168,+ 182,67,151,182,157,238,41,64,75,109,75,14,184,143,49,254,94,204,28,179,39,29,134,193,+ 81,194,228,217,14,136,208,183,158,8,150,115,195,72,8,147,166,216,252,247,169,254,233,174,+ 249,152,17,72,25,147,140,37,54,235,60,170,89,176,210,195,129,79,70,128,144,20,118,207,+ 246,124,69,188,133,186,201,159,30,224,44,60,124,163,62,139,82,249,197,96,253,179,122,151,+ 140,8,168,168,60,80,125,28,29,233,123,156,50,61,22,234,96,3,9,102,106,95,107,44,+ 129,186,180,100,49,89,172,194,4,4,101,110,68,32,187,244,9,30,102,159,63,198,91,121,+ 135,84,174,80,142,175,20,64,32,2,201,87,183,41,96,138,76,172,80,145,127,179,179,130,+ 71,145,247,1,184,235,144,17,175,6,130,244,185,121,189,253,197,164,159,153,23,61,251,211,+ 119,181,177,157,194,20,219,115,64,241,145,186,27,20,66,58,27,107,116,17,84,115,131,219,+ 142,196,241,163,241,75,44,222,147,101,202,167,7,38,115,164,55,117,235,247,94,183,175,58,+ 80,152,56,203,209,175,88,164,252,181,141,198,132,43,237,205,91,197,202,18,68,105,26,123,+ 76,18,55,185,93,161,127,171,66,175,155,115,210,48,181,241,146,117,186,88,240,231,229,75,+ 203,142,183,83,81,60,255,244,95,235,97,159,217,204,13,99,168,11,164,45,137,144,141,112,+ 159,117,174,70,115,210,109,203,237,47,215,73,136,16,0,4,14,17,19,26,39,70,70,87,+ 76,62,33,8,15,22,24,23,21,162,52,94,50,1,152,105,226,133,107,206,135,52,182,172,+ 246,10,107,84,11,71,133,169,57,239,131,58,86,172,168,210,99,100,219,73,212,0,18,234,+ 69,216,126,249,220,180,70,225,253,252,6,239,185,35,37,249,116,206,218,203,195,125,156,130,+ 225,179,122,21,143,142,126,177,178,119,20,156,111,127,193,55,84,68,40,112,198,156,137,184,+ 0,71,87,104,36,37,86,213,198,50,138,250,242,78,123,75,200,210,10,47,215,177,243,89,+ 36,147,108,167,9,215,150,247,97,70,36,199,136,250,227,142,72,3,250,206,123,7,12,190,+ 169,15,241,185,6,19,106,82,133,74,238,36,131,27,169,170,68,104,8,191,183,137,143,99,+ 204,119,177,225,10,21,164,74,124,64,44,0,98,239,0,150,237,125,160,58,160,150,196,43,+ 193,140,121,205,20,86,217,68,183,145,133,102,206,30,136,148,240,156,5,168,233,150,233,130,+ 216,92,109,237,99,12,101,210,49,254,53,0,39,124,155,185,211,123,33,226,164,226,100,111,+ 192,71,231,202,16,120,95,40,104,107,96,131,243,230,27,1,75,73,185,195,243,81,26,207,+ 14,58,247,144,248,135,16,199,124,191,9,175,246,244,183,115,117,204,178,97,132,191,133,0,+ 44,36,136,76,8,247,99,193,30,217,168,147,198,177,139,185,67,120,226,76,235,254,232,239,+ 250,236,173,11,97,219,215,183,57,235,134,169,179,112,179,71,110,229,189,249,171,129,185,63,+ 177,193,175,241,72,233,43,11,80,164,91,22,0,1,4,26,41,39,30,34,58,57,39,30,+ 39,40,37,35,34,28,14,13,28,42,46,28,12,6,255,255,165,233,227,161,145,169,65,215,+ 255,154,142,91,135,32,22,24,70,218,239,53,245,222,105,11,199,33,189,224,68,159,128,204,+ 148,175,132,10,252,11,160,218,179,186,61,41,136,66,80,195,49,184,233,198,109,191,68,158,+ 6,152,229,202,222,21,49,22,250,49,37,16,182,85,216,197,189,155,22,216,216,179,23,86,+ 205,199,43,0,18,0,109,75,163,123,167,191,134,186,176,105,255,143,40,19,150,154,93,118,+ 56,200,107,12,191,248,123,148,150,53,151,110,245,13,115,74,33,164,106,11,119,243,195,246,+ 230,105,52,228,207,99,85,73,74,213,147,23,232,217,54,24,229,120,212,210,88,222,227,248,+ 25,193,154,203,8,78,195,155,219,31,159,10,49,165,118,29,37,32,27,189,129,22,229,114,+ 0,64,105,209,107,111,69,72,144,220,74,109,176,41,75,240,61,59,132,219,145,251,56,120,+ 82,20,2,248,206,39,204,81,123,110,194,6,90,180,206,250,233,194,24,0,1,31,42,46,+ 36,31,29,9,6,7,6,9,7,12,28,34,38,26,27,43,49,46,46,58,58,30,248,7,+ 9,58,1,199,143,4,70,17,9,176,223,202,58,49,195,187,19,36,68,210,79,160,53,157,+ 107,144,235,4,81,203,25,117,125,108,61,66,109,148,101,114,2,153,146,255,177,101,55,226,+ 239,160,229,246,48,118,234,48,98,203,111,160,63,83,10,33,243,99,244,176,224,50,53,88,+ 51,72,225,128,148,186,227,214,74,138,159,242,18,204,209,106,91,144,150,166,255,45,47,228,+ 97,154,163,225,73,94,15,91,73,43,92,202,175,201,116,136,128,216,143,3,211,236,38,118,+ 73,94,0,105,10,13,121,61,36,170,11,146,112,6,175,25,108,75,14,189,67,177,249,10,+ 168,233,210,130,79,165,181,90,92,33,47,166,118,135,79,183,227,21,40,189,80,222,190,234,+ 27,144,92,87,122,249,93,80,8,204,197,20,24,154,34,160,2,77,119,237,152,188,76,202,+ 135,48,252,219,191,152,27,163,234,25,215,93,164,79,209,88,229,110,124,138,244,212,163,146,+ 102,193,77,75,57,185,130,152,71,69,127,188,43,110,63,102,222,109,84,120,88,139,109,85,+ 251,131,235,253,18,84,197,187,106,138,62,126,208,3,157,161,94,84,25,151,144,54,109,175,+ 62,63,7,188,50,30,57,243,144,148,103,181,146,107,106,55,218,189,210,23,90,52,69,63,+ 73,157,132,154,199,238,188,65,219,51,171,34,59,74,9,145,120,12,186,235,89,242,251,2,+ 86,246,177,94,108,108,84,9,102,23,220,102,210,185,159,37,154,148,202,51,57,162,189,225,+ 239,197,209,235,64,193,118,21,105,195,217,224,158,104,144,28,67,178,65,213,151,92,27,242,+ 234,237,77,169,93,154,75,55,39,52,153,14,186,54,46,83,187,85,106,101,208,244,147,236,+ 179,96,185,134,37,61,11,181,73,65,187,144,207,214,13,96,166,216,25,146,190,237,38,16,+ 167,2,101,2,26,19,31,103,160,136,81,121,204,101,247,128,34,161,50,203,185,36,236,166,+ 69,232,87,189,64,125,5,120,189,222,115,10,21,190,26,103,89,0,82,124,177,61,117,214,+ 215,244,61,64,96,158,178,168,91,243,192,129,104,165,181,180,139,219,94,170,74,129,41,178,+ 7,103,128,94,118,17,102,46,61,221,76,88,94,143,160,149,10,163,244,204,182,41,106,123,+ 171,187,159,11,229,122,5,164,76,62,139,79,36,31,78,172,181,80,205,225,65,118,215,231,+ 28,213,231,40,254,51,209,55,124,34,89,190,255,1,241,116,93,151,32,33,141,186,43,254,+ 187,159,50,225,56,244,233,97,118,10,228,31,163,139,72,123,249,76,18,250,125,121,133,10,+ 254,101,229,86,215,76,176,197,45,26,216,134,92,20,68,108,134,89,255,249,163,249,69,156,+ 0,12,0,1,22,68,73,52,14,61,61,57,22,88,111,98,29,38,69,0,179,179,69,125,+ 42,15,39,70,113,152,5,111,98,81,176,192,91,73,231,113,169,37,160,26,246,116,37,60,+ 75,89,28,48,41,3,160,102,137,165,192,68,165,67,106,200,65,219,70,10,233,220,229,93,+ 83,157,51,11,91,70,193,89,219,5,202,55,84,93,179,117,183,26,33,150,82,142,111,100,+ 196,29,124,105,23,204,86,52,20,168,135,227,195,168,38,43,211,157,166,133,103,89,94,143,+ 184,174,230,29,88,227,180,110,163,253,222,209,226,39,220,148,202,114,209,1,22,115,40,55,+ 101,144,203,16,156,22,159,209,196,116,229,26,237,105,123,16,1,213,115,175,10,108,98,93,+ 210,203,92,132,124,58,200,191,11,117,72,32,246,27,167,186,17,147,25,160,119,38,211,21,+ 92,140,140,156,11,88,82,17,255,116,37,253,193,195,28,31,163,136,157,76,208,3,188,129,+ 248,198,68,216,64,220,134,40,54,160,63,77,235,215,62,119,126,155,67,158,154,41,149,88,+ 232,103,57,80,135,188,28,253,27,42,95,113,117,38,173,62,184,165,212,169,54,215,84,116,+ 158,38,62,70,50,83,170,19,30,35,59,55,45,28,157,119,176,166,92,252,229,218,255,255,+ 252,14,171,219,121,22,0,1,24,29,39,15,30,32,51,37,38,22,33,20,31,28,39,26,+ 30,32,30,33,38,53,225,247,97,90,68,226,35,217,102,241,138,197,68,144,136,100,98,200,+ 248,149,74,16,159,122,143,174,47,239,128,54,247,250,12,197,131,80,79,114,25,131,120,77,+ 108,224,41,177,154,111,151,32,205,75,236,94,239,38,114,129,0,15,255,75,102,61,172,88,+ 51,254,226,40,191,235,246,88,78,142,82,68,6,80,58,202,180,77,103,21,223,30,209,12,+ 213,108,86,154,198,132,169,248,113,190,207,240,6,79,164,225,100,220,17,46,81,185,166,236,+ 232,18,20,63,24,222,67,184,191,49,128,130,28,213,172,8,242,252,67,39,209,90,134,149,+ 170,253,44,186,17,205,231,65,186,29,253,30,251,216,106,20,208,156,145,33,134,193,147,230,+ 205,60,84,244,77,225,8,225,132,12,175,134,185,93,199,22,168,12,136,148,237,149,124,189,+ 159,165,204,56,8,109,146,192,235,7,69,85,80,107,165,225,244,211,132,158,34,17,73,90,+ 1,162,115,66,56,97,26,208,35,167,144,242,137,72,88,113,97,198,56,35,148,125,117,129,+ 251,0,23,0,1,9,40,45,36,14,18,27,26,29,24,35,35,29,18,22,32,39,23,23,+ 16,35,44,67,47,26,255,255,166,18,208,165,75,59,35,151,144,143,57,123,63,214,1,138,+ 34,140,61,232,119,168,207,139,67,248,63,93,251,112,229,99,28,48,157,250,7,183,139,160,+ 222,104,42,124,144,179,123,163,191,21,68,89,154,167,64,232,183,74,210,240,237,54,62,115,+ 225,80,244,132,49,91,48,245,16,241,203,115,214,153,123,1,22,210,16,133,185,80,83,175,+ 101,57,136,88,210,167,76,178,151,92,23,206,203,234,31,189,217,230,33,86,152,60,138,19,+ 238,46,33,50,132,36,7,100,181,18,181,57,16,13,40,51,181,58,163,182,49,8,106,175,+ 146,117,93,7,156,46,114,253,188,243,140,70,109,33,252,250,122,17,185,96,248,99,195,0,+ 236,229,192,242,109,248,208,13,255,95,40,99,47,230,254,141,61,220,125,243,104,168,191,192,+ 149,192,248,158,95,191,120,86,101,151,119,16,169,9,205,111,34,46,119,244,172,155,132,128,+ 187,181,201,59,73,77,152,146,195,131,154,179,120,212,34,201,214,9,210,195,52,92,144,238,+ 43,75,242,130,235,38,138,59,183,141,226,173,215,168,129,183,47,140,168,185,38,43,98,109,+ 139,14,113,176,62,108,49,93,5,3,245,91,213,187,164,90,148,194,113,255,254,233,226,19,+ 27,111,173,107,36,1,184,127,79,18,193,234,32,171,141,196,2,181,103,29,205,207,225,10,+ 165,80,133,57,227,138,224,245,14,218,149,249,191,43,92,6,176,161,30,12,0,1,63,76,+ 77,24,14,62,69,76,27,10,67,88,86,55,50,55,28,33,238,19,63,159,61,217,176,40,+ 97,193,165,188,117,194,163,43,226,76,203,180,154,101,58,72,34,205,184,36,243,41,38,22,+ 16,190,243,148,175,222,35,180,147,105,138,235,166,120,213,204,248,158,4,33,79,243,80,152,+ 185,107,203,226,32,142,47,105,94,248,117,172,249,138,237,241,220,98,152,107,34,143,18,68,+ 125,197,150,86,142,254,95,240,221,15,101,36,236,160,234,105,14,65,2,239,163,243,137,215,+ 220,133,65,185,233,230,95,38,205,121,73,183,37,39,241,218,71,255,243,145,39,74,92,6,+ 205,173,166,81,30,179,37,8,235,71,21,80,8,203,155,31,42,191,81,218,219,166,203,8,+ 192,157,120,63,76,194,215,245,36,49,113,71,64,246,151,225,153,110,237,60,158,71,247,70,+ 77,112,149,193,66,234,151,36,104,120,21,19,143,157,201,237,216,231,204,197,163,246,22,201,+ 98,17,162,247,229,192,80,87,149,135,218,239,158,42,13,251,222,168,99,143,120,3,169,52,+ 118,89,170,86,19,190,166,138,23,92,53,30,23,110,99,113,240,112,103,185,30,120,249,201,+ 102,231,130,231,247,15,196,183,233,45,121,169,39,117,247,77,12,155,48,217,13,45,43,1,+ 232,161,242,150,211,112,115,108,242,141,202,15,191,194,18,224,181,235,33,70,184,249,172,50,+ 14,254,229,151,139,90,76,157,149,155,223,175,44,75,154,255,255,247,156,134,167,118,22,0,+ 1,7,27,45,66,79,69,44,25,17,13,19,24,31,34,35,31,15,11,8,13,53,52,42,+ 255,255,255,165,233,227,161,144,200,210,155,85,101,255,122,121,208,180,214,0,143,242,193,229,+ 180,218,210,38,146,39,86,91,131,105,34,192,59,231,219,127,57,216,212,155,84,32,247,40,+ 212,23,125,176,64,201,60,159,203,23,141,206,132,7,56,162,68,50,116,145,89,80,141,245,+ 102,253,58,33,56,164,77,133,164,83,36,123,189,218,14,99,171,172,163,113,190,177,48,75,+ 250,231,82,81,166,185,161,252,118,187,78,8,129,114,88,162,247,127,251,173,165,190,120,234,+ 25,52,182,113,77,94,147,128,9,184,12,134,85,137,75,122,109,226,31,186,251,47,45,241,+ 134,246,232,219,164,91,241,69,255,138,24,125,208,72,249,217,221,13,110,186,220,46,199,227,+ 103,174,223,151,97,1,26,254,67,16,53,176,160,84,86,3,213,227,160,117,86,97,238,91,+ 87,238,53,4,32,89,144,227,150,146,47,13,174,149,164,57,214,152,18,88,165,87,144,159,+ 61,192,152,150,171,7,242,130,194,151,91,207,116,214,34,85,88,9,137,240,189,118,210,92,+ 40,35,187,225,110,132,189,168,156,103,163,94,32,138,174,237,128,2,115,240,224,67,196,101,+ 194,38,6,180,56,210,225,192,27,131,67,158,131,174,98,204,207,242,113,108,47,20,223,25,+ 236,14,26,147,39,1,36,80,89,215,71,24,130,15,19,0,1,17,22,23,47,46,52,16,+ 43,59,53,28,10,11,10,15,72,73,79,36,32,2,233,57,35,9,55,151,139,130,211,184,+ 18,144,144,208,73,233,32,120,53,202,243,211,80,250,45,111,17,245,56,204,153,45,249,235,+ 2,66,8,90,122,39,216,206,106,207,101,112,130,230,197,185,22,152,75,235,36,188,100,96,+ 82,129,33,54,47,110,69,148,134,43,88,201,203,235,84,95,127,147,160,2,111,52,220,158,+ 48,116,55,177,57,244,131,45,107,62,34,226,91,243,53,157,106,187,207,96,222,208,72,253,+ 54,231,130,192,60,62,115,9,19,92,53,58,76,140,179,147,43,187,42,161,44,13,199,1,+ 66,96,59,195,240,236,89,226,28,255,114,7,253,152,223,207,215,76,163,31,19,178,135,23,+ 209,71,91,2,122,209,171,18,63,82,155,168,223,46,53,184,192,174,212,249,174,248,212,229,+ 170,216,89,247,136,2,114,238,17,163,4,168,75,215,212,17,67,206,94,163,220,12,120,110,+ 255,188,59,186,11,8,210,21,244,81,205,117,99,100,68,160,78,184,9,6,199,253,81,186,+ 176,79,124,37,253,30,53,192,227,131,15,146,26,129,176,255,149,17,122,199,148,224,121,181,+ 86,75,173,220,43,245,167,82,145,219,57,180,16,42,116,120,98,240,18,202,8,53,45,143,+ 83,161,14,115,62,1,190,65,124,173,13,152,7,204,237,16,49,101,19,100,30,14,181,55,+ 173,42,243,43,187,93,114,90,154,236,173,64,205,239,14,199,164,90,189,188,72,48,74,171,+ 69,160,15,200,119,232,148,119,44,160,78,8,60,83,65,122,69,198,209,81,97,78,8,56,+ 91,34,60,77,255,62,142,167,125,226,82,210,172,39,48,116,252,252,241,80,33,90,53,19,+ 253,179,105,61,216,21,73,41,26,149,95,18,133,100,122,241,190,186,186,144,0,145,101,185,+ 90,54,20,97,165,84,103,95,26,141,79,255,85,163,88,92,244,190,110,18,123,122,54,30,+ 191,41,112,42,174,118,21,76,151,179,30,166,11,221,197,119,197,13,117,200,200,19,79,43,+ 134,70,198,229,244,198,181,190,170,91,164,190,237,209,116,142,82,60,153,0,205,95,122,148,+ 242,170,76,45,81,157,51,22,82,230,12,99,121,193,215,44,32,82,133,37,178,134,11,24,+ 129,154,226,53,208,220,88,168,151,177,145,38,176,225,30,83,162,175,129,60,91,125,12,86,+ 151,173,34,17,99,152,52,106,175,81,20,23,16,118,79,46,14,91,52,103,222,134,208,253,+ 42,145,94,5,2,128,58,123,115,110,61,187,94,187,245,221,43,149,144,199,185,80,211,222,+ 63,53,43,147,90,40,145,150,25,202,33,26,37,2,128,151,83,210,27,59,144,71,122,252,+ 20,232,60,129,27,190,200,255,255,179,91,42,123,151,20,0,1,36,56,75,59,49,53,37,+ 41,45,45,45,26,22,11,6,7,7,20,21,46,28,59,36,136,246,122,159,173,39,162,187,+ 173,174,15,157,60,214,147,65,221,72,136,203,248,35,217,238,18,68,115,75,127,209,45,98,+ 89,11,88,192,74,179,253,255,55,44,70,218,123,72,81,203,77,121,88,126,61,71,44,39,+ 161,232,0,81,193,232,151,47,217,39,54,95,189,253,226,183,188,9,159,214,213,48,63,52,+ 225,26,84,32,158,147,85,94,129,154,32,216,148,166,190,104,89,42,92,173,218,27,86,202,+ 248,42,85,232,204,29,87,28,61,129,185,128,148,174,157,182,203,102,8,76,116,1,113,83,+ 94,111,233,146,32,111,75,23,204,220,204,146,21,239,8,236,198,185,192,229,27,255,112,178,+ 228,178,56,181,84,236,242,222,21,137,194,158,52,205,200,44,59,243,108,123,126,54,107,91,+ 125,248,67,219,105,154,196,44,153,30,255,17,230,79,211,67,237,212,142,168,38,88,116,69,+ 12,218,204,177,167,90,190,205,231,151,244,131,118,152,99,47,231,41,203,90,126,117,157,95,+ 95,130,239,191,160,100,0,103,165,79,5,125,254,31,32,92,111,221,52,19,139,245,9,58,+ 137,28,43,67,91,238,153,196,160,110,125,204,138,234,77,125,246,88,227,221,170,2,230,206,+ 167,18,165,111,173,136,227,51,78,21,124,137,234,252,182,235,92,62,104,37,189,36,231,214,+ 23,112,73,245,70,48,225,39,212,208,223,68,9,216,103,203,47,38,210,41,66,205,60,97,+ 44,16,123,40,203,57,103,200,145,116,6,72,95,56,116,13,98,159,113,41,68,47,42,43,+ 70,253,46,19,242,188,181,26,198,125,33,155,138,151,186,222,182,250,61,131,61,40,180,41,+ 222,191,204,68,176,201,182,127,218,230,60,98,160,116,232,208,105,72,196,73,135,235,216,206,+ 117,151,73,161,227,141,184,88,134,62,19,243,29,31,176,41,222,89,70,86,179,179,222,223,+ 238,195,131,194,99,165,160,101,233,71,206,235,220,158,137,192,157,153,144,147,40,212,195,151,+ 16,20,221,123,29,222,215,119,164,179,42,156,221,228,187,14,31,93,221,244,140,240,107,110,+ 131,56,232,200,124,117,240,47,8,135,14,93,199,172,195,197,103,158,224,176,227,137,65,187,+ 4,64,202,213,126,132,68,120,64,149,115,239,122,80,81,141,82,156,214,6,242,106,23,116,+ 27,103,102,198,53,43,181,135,166,120,24,20,192,229,103,133,52,182,81,99,231,71,242,171,+ 0,131,150,32,134,41,194,42,111,119,30,72,44,184,59,126,252,14,51,82,142,148,159,194,+ 113,203,90,179,4,43,173,199,181,58,72,20,89,56,118,198,241,200,152,195,110,191,172,143,+ 27,255,255,158,63,75,120,108,21,0,1,14,23,57,47,49,19,44,44,40,26,27,33,19,+ 48,44,45,38,49,48,18,207,3,43,105,3,108,213,226,30,20,81,126,138,102,23,168,81,+ 59,182,27,37,164,98,217,116,229,103,238,233,72,100,165,65,157,47,194,138,233,59,84,71,+ 180,174,217,224,94,25,158,156,106,120,100,42,254,63,41,124,234,137,12,137,45,8,1,219,+ 223,159,37,113,241,182,24,98,243,15,159,100,35,98,135,228,97,73,104,181,176,228,207,178,+ 38,4,182,127,78,219,23,207,42,138,37,94,249,219,26,196,103,7,157,175,228,111,81,104,+ 179,206,106,127,129,93,122,56,125,28,68,38,95,5,107,71,0,146,236,157,93,44,5,211,+ 254,190,186,92,34,217,243,133,236,124,42,150,198,3,190,72,74,57,112,203,186,140,163,33,+ 107,203,195,208,77,47,93,70,249,167,207,74,171,181,105,69,172,53,150,248,236,239,225,148,+ 116,34,140,144,125,54,135,6,46,239,137,135,178,246,20,104,231,98,198,218,37,1,10,125,+ 177,112,3,192,218,228,45,133,75,208,100,137,59,7,41,61,186,203,233,43,229,175,189,200,+ 74,184,223,128,69,64,94,2,237,105,174,141,22,101,157,130,14,234,70,48,104,210,112,18,+ 5,44,8,94,170,187,51,172,2,167,184,203,177,86,20,224,84,104,167,44,192,23,176,50,+ 75,132,141,180,127,150,3,7,146,161,85,36,138,78,102,31,170,14,219,237,141,223,139,139,+ 129,122,56,29,13,97,45,101,134,248,42,131,39,109,47,110,194,0,144,141,126,72,91,42,+ 255,37,206,82,184,155,139,231,30,202,2,222,136,161,215,242,126,243,109,32,69,133,154,201,+ 152,96,82,31,165,120,213,22,184,188,195,58,84,244,61,65,133,144,51,232,248,202,149,215,+ 150,134,225,204,32,65,125,111,48,248,180,76,246,34,77,98,9,182,33,30,11,160,218,117,+ 86,203,84,163,169,66,187,219,190,182,8,228,7,103,10,30,30,2,238,106,15,74,141,90,+ 104,234,60,27,224,32,32,215,1,110,7,141,192,66,135,251,50,92,60,132,117,28,90,153,+ 220,218,100,40,52,224,212,10,187,187,98,200,246,201,86,143,76,51,115,55,102,30,180,67,+ 197,5,21,145,250,119,172,66,203,73,221,255,254,216,67,180,42,246,56,50,21,0,1,31,+ 41,44,39,34,31,13,35,35,51,28,30,5,9,8,11,10,11,67,65,95,34,19,7,9,+ 214,14,221,134,126,170,53,239,248,93,213,96,169,218,18,73,91,188,77,253,59,101,83,97,+ 86,212,147,207,65,242,206,112,221,92,155,225,169,19,64,162,112,91,3,5,46,182,98,15,+ 226,206,125,108,21,124,143,128,66,59,226,9,43,182,73,39,32,183,220,197,127,19,151,38,+ 107,208,62,178,137,108,18,63,13,104,149,178,233,225,151,134,41,111,105,106,251,130,58,197,+ 102,172,208,188,228,95,102,206,18,3,76,167,117,161,223,17,19,97,186,107,231,245,53,53,+ 62,34,238,254,50,192,211,116,245,16,219,176,132,31,139,54,87,47,14,38,46,224,125,69,+ 236,111,181,180,64,179,27,71,57,66,69,73,67,134,241,184,198,118,198,81,180,177,238,87,+ 46,70,71,148,108,21,63,145,174,176,101,51,232,71,11,236,16,218,8,41,55,174,168,120,+ 75,109,159,239,202,1,9,171,64,217,248,195,251,95,152,12,236,162,193,229,132,23,19,193,+ 137,121,134,174,183,47,207,90,110,130,107,54,145,76,6,35,14,142,249,159,172,207,61,182,+ 2,254,254,65,46,22,101,106,213,183,171,64,33,141,69,244,142,114,215,21,222,174,161,110,+ 49,35,184,204,137,189,17,165,27,97,213,140,151,20,138,196,173,255,90,28,94,86,183,45,+ 241,113,10,42,16,233,199,164,193,102,82,79,118,90,102,90,244,227,115,142,215,101,103,191,+ 124,162,223,135,102,137,242,223,197,152,137,144,243,68,75,106,228,80,198,80,219,16,83,184,+ 179,223,117,2,214,147,91,213,124,39,213,232,210,131,191,210,167,51,182,166,208,100,156,170,+ 109,140,179,55,18,89,208,130,235,118,180,152,18,167,209,110,14,114,116,71,163,61,31,148,+ 12,163,227,61,10,79,239,0,101,199,53,233,161,247,69,12,99,71,103,29,87,6,222,178,+ 63,146,231,28,36,216,141,35,85,99,13,123,13,100,177,44,122,226,189,208,250,125,21,152,+ 75,236,148,0,7,159,125,152,142,52,91,167,178,134,24,38,194,74,178,159,142,76,104,14,+ 215,132,93,49,172,38,41,95,99,234,235,196,198,56,12,79,141,79,9,66,47,27,16,255,+ 186,106,61,14,185,98,94,129,137,216,170,113,255,203,61,23,108,12,32,21,0,1,26,36,+ 45,33,40,43,51,39,51,37,38,18,12,11,31,61,60,44,23,24,22,9,2,216,144,149,+ 77,236,236,240,1,184,38,222,65,33,131,12,216,241,239,158,85,23,106,9,38,200,119,134,+ 213,212,43,139,176,178,11,1,244,206,105,61,68,33,210,109,43,21,108,101,14,159,63,160,+ 63,227,185,142,227,76,172,71,108,24,221,188,11,77,118,123,103,160,120,97,64,243,64,116,+ 56,27,183,75,138,123,248,44,76,35,106,170,3,210,31,164,107,151,106,71,49,206,213,78,+ 150,201,149,202,251,254,18,89,60,105,126,104,232,113,196,148,174,1,133,217,92,221,6,108,+ 244,211,97,36,5,116,230,178,215,61,198,65,21,16,158,181,89,160,250,116,86,134,129,189,+ 48,24,63,45,50,81,86,52,7,234,97,62,230,71,189,103,249,82,145,165,80,176,135,195,+ 73,228,222,255,17,131,45,246,92,127,44,158,79,94,223,102,177,228,104,195,161,160,120,40,+ 14,196,251,254,136,243,237,183,182,124,165,207,101,165,60,37,235,155,10,170,199,132,167,26,+ 227,127,79,89,3,180,121,209,101,125,75,142,38,202,21,174,119,112,191,157,139,143,163,121,+ 126,203,75,199,92,121,144,234,109,21,127,169,105,10,19,22,63,139,201,186,117,229,214,22,+ 220,246,233,8,26,237,83,185,30,21,150,210,37,190,33,206,95,142,47,34,35,84,22,178,+ 201,107,239,147,253,227,221,171,186,255,147,12,164,188,188,70,246,25,241,50,76,81,89,116,+ 144,9,158,60,65,173,135,241,206,198,18,51,223,36,207,229,154,89,242,167,114,138,170,198,+ 201,51,61,191,183,248,51,47,119,39,58,41,187,40,227,159,232,11,188,211,94,237,9,100,+ 145,38,214,24,238,8,10,212,253,72,246,78,214,131,175,73,158,109,65,232,67,217,103,192,+ 127,70,198,120,207,248,155,20,128,95,152,93,80,116,27,185,43,12,4,8,29,131,111,244,+ 20,64,11,9,44,101,43,128,255,91,59,195,5,136,16,46,155,36,61,87,103,56,195,116,+ 210,140,203,20,157,162,118,27,27,172,115,160,172,155,180,112,13,195,170,251,54,31,217,14,+ 221,22,216,185,118,74,177,205,106,237,181,58,96,33,71,223,154,136,124,115,225,25,99,7,+ 112,148,191,86,86,217,168,59,215,5,156,243,153,254,44,99,80,21,0,1,47,53,75,46,+ 46,38,26,25,12,12,70,71,65,6,5,6,10,9,7,7,44,42,23,36,231,209,91,139,+ 98,100,108,226,215,11,55,198,183,176,83,28,198,248,122,112,192,180,58,138,103,144,16,108,+ 184,218,179,54,51,63,178,239,96,38,43,116,193,25,57,176,8,114,162,210,204,94,50,80,+ 38,254,87,25,227,243,73,14,210,104,212,61,185,220,53,98,159,109,155,161,179,110,213,97,+ 199,74,130,255,202,210,161,175,127,216,172,249,55,196,117,149,141,75,53,215,36,212,70,116,+ 213,84,155,84,67,255,63,238,141,216,160,184,179,211,197,160,19,156,117,56,211,115,193,101,+ 155,164,32,206,225,201,140,236,214,61,245,123,241,234,217,33,220,21,109,224,49,141,180,135,+ 184,33,244,192,158,73,81,93,223,86,188,121,180,252,175,41,43,151,17,33,65,219,8,241,+ 55,89,0,248,185,241,206,241,239,254,84,118,129,51,41,184,233,102,48,220,234,238,236,207,+ 84,40,27,116,39,176,106,114,195,125,71,202,63,96,122,138,48,1,234,147,187,233,82,163,+ 200,145,108,119,184,208,33,143,225,183,235,64,223,9,45,66,93,47,174,76,243,69,12,33,+ 237,136,16,40,41,199,13,142,176,176,188,92,11,195,134,210,21,125,70,69,20,211,122,130,+ 103,62,107,40,10,33,111,133,143,87,61,195,225,215,121,174,209,88,242,242,69,122,115,48,+ 7,41,53,168,168,5,56,118,108,143,253,129,116,243,84,99,182,205,210,40,47,140,204,225,+ 0,69,119,100,187,28,75,120,228,121,224,35,206,228,131,11,207,36,52,65,189,204,134,91,+ 150,92,232,146,14,149,22,47,144,130,229,119,24,161,108,57,171,138,18,107,40,98,240,8,+ 47,92,246,32,55,123,215,211,3,43,245,105,217,56,203,47,68,84,111,116,88,99,23,153,+ 248,21,34,35,87,30,106,253,51,83,195,63,214,66,165,7,117,35,232,65,115,80,85,199,+ 250,32,218,94,227,48,140,61,92,186,159,21,182,44,204,111,33,4,174,69,76,158,85,178,+ 198,160,130,122,196,247,159,208,194,87,78,245,18,111,104,37,197,86,188,42,121,183,179,104,+ 5,153,219,160,234,122,181,141,220,100,114,216,179,251,98,9,232,179,124,212,78,215,222,136,+ 195,250,243,189,54,58,183,117,44,255,255,31,45,245,242,59,22,0,1,24,36,41,25,24,+ 34,33,28,33,26,29,17,18,36,30,30,11,26,32,56,49,64,34,10,7,9,237,76,52,+ 169,231,63,255,173,118,140,190,182,42,2,119,67,225,88,247,113,17,230,218,239,155,27,52,+ 28,146,210,193,214,188,4,57,148,54,179,77,31,226,6,172,147,185,158,182,160,64,4,65,+ 103,233,231,72,65,0,195,254,100,182,117,131,35,117,168,5,253,17,128,238,223,178,184,119,+ 91,123,121,165,201,154,176,151,88,103,87,145,3,156,169,249,72,59,235,58,218,126,60,170,+ 148,134,247,186,62,45,250,71,32,59,205,138,39,175,155,252,106,44,179,56,169,33,90,192,+ 241,201,72,210,44,16,233,121,215,214,130,253,123,67,73,32,107,97,0,123,58,236,34,7,+ 67,222,140,94,70,2,47,130,24,2,79,215,181,78,66,241,184,216,198,145,19,181,193,168,+ 215,152,241,233,64,232,224,62,205,58,161,249,22,123,225,194,18,145,188,68,243,35,54,186,+ 5,60,67,68,35,254,139,194,158,213,230,164,117,59,69,98,106,171,178,6,40,72,70,176,+ 224,192,96,42,149,192,65,197,232,253,71,201,207,77,21,3,201,211,211,143,139,182,65,94,+ 159,28,53,189,29,193,98,173,113,35,41,107,242,62,152,1,248,59,113,192,233,151,171,205,+ 105,113,25,219,29,173,181,19,65,113,157,51,25,67,200,163,217,89,106,186,163,120,243,114,+ 123,105,2,166,48,86,91,135,201,175,56,148,238,212,232,124,166,226,163,98,166,61,177,78,+ 239,212,180,196,209,178,167,43,155,221,199,188,159,168,189,95,180,55,116,82,170,94,136,231,+ 199,239,173,250,185,129,144,162,225,125,41,80,197,39,198,190,243,173,199,176,107,115,34,231,+ 188,186,241,124,241,227,18,167,85,174,251,221,66,195,68,183,115,48,92,111,100,75,110,136,+ 128,97,80,124,234,190,187,103,22,31,244,223,34,26,179,208,17,75,93,201,246,101,160,47,+ 171,139,115,39,210,140,215,20,52,112,13,100,90,10,239,187,245,112,59,111,63,131,13,68,+ 220,190,93,45,223,117,27,58,87,5,62,74,235,117,88,67,149,222,77,204,25,34,118,238,+ 53,7,33,102,255,239,3,72,184,188,75,46,53,21,159,39,184,223,3,106,206,47,138,31,+ 122,96,122,203,38,82,129,37,67,150,137,69,78,23,65,177,15,254,242,103,63,211,195,21,+ 0,1,39,49,65,34,50,35,35,14,13,30,33,68,46,44,16,14,12,5,27,27,52,26,+ 11,36,232,5,27,128,55,50,112,137,71,146,208,166,218,159,206,220,5,67,211,173,106,226,+ 35,102,62,47,25,112,64,189,67,168,35,130,120,106,4,59,82,124,221,250,12,32,217,33,+ 172,96,242,116,250,183,64,185,216,144,162,27,124,99,19,202,11,190,121,187,85,227,29,82,+ 134,125,110,232,212,229,217,149,153,102,226,90,218,53,50,17,166,13,120,192,58,9,18,250,+ 40,154,111,55,184,160,162,209,40,65,115,17,61,174,157,97,253,170,241,225,62,243,161,165,+ 23,215,206,244,61,129,35,32,246,189,145,252,37,122,220,61,68,79,255,253,170,51,244,152,+ 88,25,127,36,65,249,182,31,224,145,115,104,224,112,51,143,107,214,252,249,162,255,132,160,+ 57,13,21,206,20,57,207,126,113,39,52,87,117,227,42,214,105,46,235,16,36,65,172,254,+ 16,213,161,208,213,16,34,239,25,48,106,30,228,84,100,235,136,146,194,100,231,145,86,61,+ 107,144,54,167,217,1,181,24,101,229,208,93,65,182,5,67,52,25,69,55,169,129,146,223,+ 241,156,155,151,233,43,129,236,254,111,84,151,91,240,7,34,233,209,87,241,79,117,237,15,+ 73,169,115,18,182,96,92,247,112,171,138,166,112,105,217,6,186,214,110,13,21,139,9,175,+ 118,65,64,119,61,162,5,70,186,172,42,100,22,81,147,197,0,15,198,118,154,254,130,81,+ 156,54,167,98,161,10,25,156,196,161,28,71,181,202,235,64,142,141,9,8,149,58,45,204,+ 216,121,238,235,139,223,127,96,247,131,147,3,240,98,63,157,119,62,117,15,175,140,156,213,+ 136,162,128,53,151,193,177,254,7,100,139,253,149,16,167,254,108,176,46,232,86,188,189,37,+ 215,152,190,229,198,134,31,36,171,98,203,135,219,103,155,97,24,126,204,60,164,44,93,59,+ 51,221,159,152,156,58,25,156,35,149,255,4,187,210,250,4,34,174,217,97,75,24,122,247,+ 183,163,102,94,209,97,137,195,201,19,120,88,143,221,200,159,127,206,122,199,5,171,159,219,+ 250,148,248,46,73,130,67,131,227,127,2,178,35,170,217,14,222,147,224,57,21,222,217,143,+ 120,168,5,128,75,250,7,193,187,217,208,54,34,120,162,105,27,36,16,190,167,138,89,160,+ 11,0,54,228,222,2,15,25,98,44,255,249,35,215,240,135,57,23,0,1,16,26,39,26,+ 23,17,30,44,39,23,22,22,32,31,35,24,23,25,34,32,46,56,54,31,9,255,255,166,+ 18,208,165,97,224,131,202,3,80,183,213,72,22,225,28,239,212,185,84,39,98,112,12,54,+ 100,253,241,180,98,200,206,112,7,34,136,122,251,79,189,123,199,237,64,5,194,149,202,211,+ 94,169,53,98,10,24,240,30,218,254,231,25,208,33,109,11,19,92,170,5,71,231,206,246,+ 207,188,50,29,45,235,108,68,54,59,107,228,6,230,159,81,88,251,255,149,215,154,151,234,+ 169,141,248,133,223,80,173,56,220,244,182,1,125,96,32,83,22,151,48,29,174,239,111,133,+ 168,150,119,9,52,40,48,174,159,19,175,59,71,1,55,247,78,237,220,219,98,69,25,29,+ 217,61,58,252,89,238,134,130,78,36,30,131,238,245,20,220,59,50,75,198,174,10,67,3,+ 120,232,167,174,49,41,116,153,73,211,166,208,33,128,80,54,7,190,151,118,239,191,102,188,+ 215,39,150,107,177,233,88,160,156,134,229,225,100,82,134,93,61,187,59,194,38,114,67,116,+ 84,102,240,105,250,106,162,88,181,83,92,85,67,115,113,179,73,116,223,123,206,110,207,19,+ 95,175,32,187,243,36,247,150,11,230,146,213,117,125,191,178,244,37,150,190,242,121,16,0,+ 1,19,30,44,44,37,34,16,16,5,6,5,27,49,48,28,76,83,224,52,117,243,229,65,+ 115,122,62,59,26,255,179,212,2,152,56,194,26,4,99,221,107,176,215,74,141,177,56,71,+ 150,59,96,105,187,241,175,221,72,157,119,11,172,152,172,5,94,24,200,89,203,22,54,220,+ 111,30,134,38,105,169,46,210,202,126,199,115,196,72,249,210,20,200,138,56,125,145,15,188,+ 124,209,51,156,128,87,152,17,198,94,57,88,219,31,213,35,129,204,173,247,102,4,181,116,+ 103,215,111,11,214,208,150,236,11,37,188,154,61,167,236,214,100,85,93,47,213,149,146,209,+ 80,155,101,53,242,5,14,50,247,98,116,7,30,194,94,161,91,28,25,116,22,226,89,206,+ 176,169,10,150,121,183,203,223,24,148,95,54,11,24,206,204,59,149,94,92,11,190,166,218,+ 32,171,154,74,149,158,32,247,175,169,127,163,248,222,124,195,248,244,34,198,112,148,185,201,+ 13,154,194,205,253,192,149,110,84,96,195,75,174,61,115,166,204,8,38,21,103,127,225,239,+ 20,26,154,218,127,76,23,250,172,188,75,53,237,103,210,100,124,87,129,102,74,99,42,88,+ 39,216,107,118,179,45,240,205,27,173,83,229,28,53,176,145,151,195,11,2,177,219,40,8,+ 27,86,240,183,54,160,183,18,56,137,104,218,114,160,177,195,9,195,15,45,206,176,65,166,+ 236,246,80,44,101,202,98,107,253,129,14,0,31,29,50,20,20,3,21,42,47,38,18,15,+ 12,70,25,223,38,26,171,242,253,64,160,162,93,89,33,83,87,156,248,174,47,162,169,155,+ 194,141,123,12,29,19,145,194,38,194,222,205,209,31,181,144,50,59,88,253,236,229,156,170,+ 254,61,207,205,88,216,143,124,118,131,119,161,82,9,106,205,130,196,238,44,37,169,206,214,+ 41,250,22,186,7,29,246,165,127,240,40,184,254,4,139,64,132,25,238,236,161,191,147,121,+ 247,91,25,142,196,95,79,72,54,139,48,154,60,188,48,255,66,233,107,97,112,199,112,191,+ 4,80,212,150,228,130,87,1,87,98,161,94,109,20,89,215,118,228,59,107,10,182,58,70,+ 242,2,245,134,57,125,40,105,255,107,151,215,158,58,134,60,138,226,40,255,38,47,72,187,+ 101,179,26,52,72,189,146,199,130,114,41,236,31,110,0,216,183,160,185,188,60,127,229,85,+ 137,59,205,7,63,194,6,114,241,63,142,177,235,106,23,248,39,48,41,36,74,153,16,170,+ 61,170,127,12,55,167,11,136,168,72,243,115,145,42,178,219,113,134,204,71,105,37,206,44,+ 118,227,214,180,119,137,47,253,183,74,202,62,70,246,158,58,70,122,148,191,104,61,122,83,+ 198,111,197,234,30,43,216,1,134,48,100,184,117,39,224,239,21,78,134,12,70,178,208,197,+ 116,195,113,179,128,123,150,74,255,63,140,48,203,106,250,43,153,66,251,63,155,147,33,69,+ 131,79,68,59,7,209,234,1,127,212,162,135,49,127,78,106,247,135,172,127,124,144,36,79,+ 234,253,243,59,96,215,162,112,250,202,175,79,125,245,101,205,63,78,79,83,42,222,223,35,+ 62,189,228,151,202,190,156,108,204,156,60,135,60,90,231,176,193,57,254,238,133,67,60,247,+ 29,109,193,67,134,82,9,38,225,77,87,190,133,103,107,195,201,126,177,92,60,11,156,245,+ 220,33,2,153,202,122,42,245,83,9,46,140,147,242,24,77,40,28,238,97,204,106,71,82,+ 165,209,144,112,187,113,111,26,33,49,195,53,193,250,150,83,22,39,190,241,185,92,170,186,+ 14,94,194,23,57,99,207,36,119,226,194,20,6,31,247,227,207,225,98,192,184,6,193,5,+ 134,159,48,155,20,245,78,167,99,180,202,254,71,146,237,74,204,199,17,142,40,62,130,72,+ 145,155,231,216,214,152,149,188,225,166,112,217,135,79,77,135,140,36,112,248,164,235,82,154,+ 111,181,177,192,204,149,81,10,182,153,26,255,88,56,19,25,36,248,136,23,230,247,22,49,+ 56,20,114,208,62,200,84,233,253,75,55,207,96,152,162,73,59,206,187,22,7,110,72,177,+ 124,190,88,25,228,42,179,23,204,112,47,225,232,4,61,233,229,138,0,17,0,1,45,71,+ 75,40,67,63,62,23,26,41,61,69,55,26,16,8,7,3,242,66,182,95,31,65,153,193,+ 218,88,213,123,148,97,25,15,71,36,146,192,114,38,121,78,63,131,1,133,191,129,121,46,+ 31,71,169,249,205,130,104,111,137,119,161,90,213,164,149,164,160,102,219,163,132,91,81,125,+ 153,17,8,3,113,66,5,99,26,200,13,108,19,143,61,9,74,79,79,217,114,56,159,172,+ 47,121,82,7,209,1,203,88,132,48,161,236,124,105,123,38,122,205,162,7,201,76,90,136,+ 117,190,160,80,58,234,11,231,232,150,169,5,78,213,75,73,126,191,245,70,197,195,93,71,+ 150,239,239,44,221,16,156,102,156,94,38,100,203,217,102,231,231,68,212,126,127,210,222,254,+ 180,199,65,48,190,106,88,208,162,119,176,196,251,214,88,72,94,75,165,135,24,90,41,115,+ 212,115,2,37,158,77,5,99,213,183,233,226,165,91,82,203,197,209,184,27,209,111,184,31,+ 249,88,75,179,52,230,168,130,64,132,125,150,12,101,175,254,248,227,7,205,39,239,13,163,+ 216,234,242,243,32,255,80,71,53,87,1,8,15,94,10,20,14,136,243,190,120,193,205,43,+ 21,34,138,129,34,161,22,62,56,246,96,93,199,91,87,228,26,95,205,215,1,254,86,168,+ 28,90,156,150,251,147,10,118,167,226,189,238,56,81,226,11,156,75,69,151,47,241,68,39,+ 152,141,3,68,196,117,16,227,45,241,71,146,234,241,105,169,150,221,247,156,230,225,170,68,+ 169,62,251,41,242,203,223,6,83,134,186,250,49,61,125,140,165,156,230,136,201,83,208,187,+ 167,83,136,188,197,122,118,98,91,25,134,25,89,134,179,26,126,37,42,100,205,112,40,147,+ 58,230,43,239,39,212,96,20,234,190,132,111,231,187,216,142,76,151,177,97,166,87,119,190,+ 6,134,230,184,124,83,145,84,40,110,217,54,225,17,199,59,155,56,116,131,82,245,229,167,+ 207,116,79,18,147,21,79,170,215,103,10,69,71,243,28,117,122,102,97,61,239,133,24,190,+ 39,126,124,84,194,100,142,85,243,68,141,37,254,255,236,210,239,30,135,114,66,216,21,0,+ 1,29,46,75,55,53,39,31,29,18,16,33,36,49,27,20,12,11,14,43,49,52,17,6,+ 255,252,230,245,29,81,121,70,169,10,49,132,229,144,224,89,147,4,191,16,160,85,127,216,+ 58,2,10,58,108,183,129,108,156,171,215,37,24,179,122,74,230,171,68,103,155,159,189,138,+ 61,63,210,253,65,54,232,208,71,153,79,194,163,59,73,127,140,160,137,89,14,65,160,128,+ 106,206,103,1,33,47,97,23,194,3,81,205,231,69,208,91,182,50,196,37,80,253,20,37,+ 161,177,231,242,13,174,202,245,63,159,247,83,195,231,232,136,115,218,95,74,33,112,224,107,+ 232,151,13,204,116,255,122,226,124,74,36,27,108,161,88,205,195,108,128,251,244,191,204,171,+ 243,72,226,243,22,45,248,83,62,142,196,148,148,80,145,157,133,3,141,184,75,192,65,53,+ 193,252,162,124,191,95,216,235,162,212,89,215,210,45,46,124,217,26,13,146,200,25,244,57,+ 92,193,221,47,199,17,214,242,194,250,124,187,196,188,229,150,95,206,77,60,176,159,30,237,+ 98,13,200,59,11,188,144,231,106,166,102,187,205,83,151,98,248,38,191,228,238,221,126,248,+ 251,249,147,142,157,145,200,196,255,78,56,159,159,60,197,199,1,31,221,184,212,100,132,233,+ 5,18,21,117,194,147,3,255,209,50,49,157,139,18,156,29,53,96,127,46,34,20,164,219,+ 34,34,36,72,61,61,228,96,247,215,14,179,81,5,170,204,24,43,33,144,169,73,77,146,+ 118,222,185,74,146,96,248,218,7,243,80,42,17,8,39,63,214,79,243,200,14,132,155,98,+ 112,10,105,177,15,107,108,46,125,255,217,92,146,103,157,232,77,215,127,144,206,159,164,54,+ 30,187,142,229,11,153,219,179,131,73,90,149,18,77,60,243,141,140,183,108,133,0,141,198,+ 48,255,193,223,107,213,168,173,164,69,240,124,115,238,88,104,29,39,152,45,163,218,138,183,+ 241,226,241,85,147,144,254,63,164,225,192,21,0,1,9,27,39,31,22,11,21,18,25,30,+ 43,42,49,35,29,5,7,55,72,103,53,33,243,20,66,2,120,57,2,213,218,101,76,15,+ 137,22,202,139,189,142,78,118,121,211,100,160,79,40,20,173,102,190,54,108,28,198,51,12,+ 204,172,219,7,208,80,237,233,15,137,93,86,234,58,195,200,231,129,54,8,1,26,148,205,+ 117,235,250,238,128,185,106,163,78,203,144,171,100,56,217,58,172,36,170,115,25,243,174,180,+ 229,118,116,61,188,0,74,171,153,212,112,232,94,91,178,55,89,224,197,81,171,35,134,212,+ 252,146,208,86,140,54,152,107,228,81,174,189,126,230,34,236,139,72,124,93,117,75,93,4,+ 132,68,230,42,167,176,209,233,47,191,11,124,49,239,144,136,252,17,215,94,18,22,241,140,+ 63,58,209,140,99,20,230,95,195,126,109,238,216,67,174,203,11,125,133,69,10,134,159,171,+ 174,128,139,206,146,151,98,244,152,76,180,69,77,241,11,65,36,18,212,229,9,173,40,37,+ 190,182,23,159,241,188,174,20,62,179,154,229,51,132,111,255,40,15,71,199,204,15,163,248,+ 157,229,166,10,205,218,181,117,224,78,248,115,232,34,110,236,164,213,117,215,220,120,89,192,+ 198,131,57,28,240,100,21,69,42,245,111,58,76,232,180,49,147,93,231,6,184,35,120,81,+ 227,136,117,128,45,198,94,95,100,52,18,126,130,32,83,103,47,44,214,85,102,213,115,211,+ 70,104,12,193,33,108,197,0,108,184,142,205,25,205,190,33,28,153,169,46,122,186,251,173,+ 64,94,114,175,39,17,133,104,218,139,164,67,133,146,214,17,128,59,244,228,0,229,169,194,+ 215,187,254,251,198,208,87,226,222,162,14,220,224,205,13,11,196,199,167,37,164,157,194,154,+ 34,200,194,170,40,123,158,140,73,22,206,205,153,254,36,249,137,141,171,98,26,222,77,76,+ 153,18,197,158,185,50,206,218,24,251,70,115,149,143,57,83,197,57,11,143,4,16,110,36,+ 164,254,169,96,72,194,47,247,82,185,114,26,7,249,94,177,211,106,59,129,78,178,75,179,+ 179,235,80,61,21,75,15,176,9,16,238,226,222,120,143,124,185,16,97,124,94,192,36,61,+ 33,3,71,43,166,167,14,21,189,201,82,185,2,248,239,130,51,16,0,8,30,46,49,28,+ 50,43,50,28,32,25,28,62,61,44,4,2,245,93,105,3,35,115,1,4,27,53,95,121,+ 153,240,45,60,179,63,220,231,249,157,31,134,91,246,236,211,117,142,61,145,212,222,184,251,+ 91,126,36,57,100,54,118,152,202,237,134,132,90,22,129,209,241,231,115,152,234,45,85,224,+ 63,53,214,46,218,51,152,70,108,67,167,189,237,188,255,137,215,9,54,211,79,225,228,19,+ 229,231,98,56,250,80,177,233,178,32,154,208,44,198,101,126,60,220,66,134,120,166,97,223,+ 241,126,239,18,111,28,70,85,31,30,18,0,55,88,61,10,155,177,15,192,118,130,125,176,+ 143,120,100,74,102,181,34,120,20,147,39,4,95,124,213,70,58,93,206,191,222,24,246,167,+ 170,191,124,98,170,29,186,55,185,8,115,47,29,90,145,41,98,129,238,134,194,128,98,135,+ 189,207,240,174,130,123,170,5,233,164,7,186,175,246,166,41,132,65,2,232,227,44,37,3,+ 12,205,115,117,187,62,74,177,85,27,217,165,89,6,227,67,245,56,29,169,104,114,86,101,+ 146,61,160,89,131,59,131,6,218,98,80,108,142,20,81,57,167,180,68,151,240,83,16,196,+ 16,251,110,60,165,32,203,15,208,104,223,46,114,206,240,87,71,131,215,40,14,120,68,137,+ 21,4,67,106,70,104,14,54,36,218,245,153,186,176,199,32,20,207,95,227,110,62,172,189,+ 130,179,129,165,70,148,54,227,91,218,54,231,196,183,152,206,29,178,188,204,65,217,139,83,+ 237,200,35,177,86,126,102,86,33,92,130,89,57,147,34,46,16,168,27,95,102,206,175,94,+ 186,85,65,250,101,154,207,95,109,40,19,22,80,15,133,17,121,1,41,15,27,116,48,111,+ 254,219,76,170,140,187,81,15,109,88,117,42,126,134,69,73,42,28,147,18,68,189,77,75,+ 194,128,169,172,135,115,79,38,87,183,146,198,52,4,96,173,203,61,229,28,65,255,55,107,+ 217,81,251,103,141,226,128,123,63,204,120,140,139,27,172,109,240,55,19,118,97,153,24,56,+ 159,183,102,82,210,163,133,171,238,197,135,152,15,90,118,224,47,239,5,183,16,84,114,63,+ 11,23,225,31,19,103,2,85,169,139,176,139,237,24,244,220,49,146,107,22,71,162,37,95,+ 225,42,77,130,237,220,212,169,192,45,236,232,0,20,0,14,15,23,54,67,65,67,52,49,+ 4,5,10,17,17,14,8,32,59,67,64,234,74,36,105,3,39,199,202,60,201,107,114,248,+ 240,181,87,239,204,145,179,229,225,108,238,13,163,128,196,224,56,69,142,10,203,120,50,150,+ 24,197,50,224,85,5,121,146,37,61,11,3,10,168,56,236,252,154,107,221,210,57,188,80,+ 11,129,222,109,47,189,164,28,189,51,159,90,133,83,74,115,132,79,66,204,128,255,161,186,+ 12,34,8,155,89,19,2,105,245,209,241,45,95,8,101,122,6,215,121,103,92,28,191,216,+ 119,161,232,143,251,119,79,244,73,38,31,168,252,83,126,55,184,2,157,198,201,209,16,252,+ 81,196,218,129,174,35,69,34,175,254,11,140,20,148,252,237,162,143,180,194,67,112,160,46,+ 222,32,151,39,218,54,225,70,26,231,115,124,240,48,166,167,233,192,78,26,226,90,142,156,+ 216,210,186,92,65,32,72,236,77,223,180,119,125,213,207,15,187,104,49,99,14,98,41,35,+ 231,163,131,69,220,25,74,135,224,207,16,34,110,2,97,224,202,74,46,17,18,39,243,137,+ 26,91,172,238,50,89,129,196,213,127,81,138,99,87,168,28,134,219,176,239,205,147,21,94,+ 90,46,12,223,135,39,8,81,199,242,229,241,233,33,187,65,201,107,112,176,131,152,41,193,+ 26,54,63,232,221,237,102,182,121,168,119,2,27,151,146,67,128,67,166,64,93,100,173,115,+ 198,174,33,129,158,171,51,1,92,250,80,181,244,52,27,82,25,21,85,153,151,171,65,210,+ 41,93,118,116,5,228,202,4,224,12,170,185,100,14,43,68,159,209,15,69,78,63,152,112,+ 227,172,150,130,208,47,206,20,225,141,24,170,236,208,196,13,70,140,242,160,238,249,231,4,+ 199,55,51,76,44,159,20,122,33,165,9,76,119,206,236,54,117,252,234,122,146,178,41,172,+ 145,74,215,64,53,19,119,72,44,97,219,226,66,40,109,50,238,68,31,250,173,169,8,17,+ 183,93,180,113,49,129,220,96,255,205,44,185,236,91,97,192,40,214,239,43,183,92,30,62,+ 57,95,146,195,157,104,194,165,8,46,1,131,84,104,220,50,239,156,52,128,167,106,248,191,+ 194,49,254,118,204,181,178,51,179,161,49,89,201,248,126,143,45,62,110,237,77,153,43,63,+ 140,51,0,66,68,111,165,59,244,249,109,191,106,231,139,47,5,196,249,121,9,91,234,166,+ 31,197,99,50,82,241,145,126,12,200,253,24,229,72,145,123,165,98,92,220,162,175,229,246,+ 241,241,223,70,245,87,115,241,225,183,251,124,163,52,67,146,135,146,248,40,193,115,0,19,+ 0,10,10,57,90,92,61,27,24,12,5,5,49,62,65,22,21,30,42,32,220,20,54,155,+ 124,32,0,52,76,60,12,48,117,44,194,245,0,221,230,100,225,101,97,48,173,150,246,196,+ 7,107,201,66,1,24,29,8,134,6,251,205,192,174,181,223,81,222,192,41,125,197,239,136,+ 31,125,167,137,8,191,0,46,166,63,34,226,6,161,61,44,100,249,127,83,188,52,74,112,+ 164,222,236,143,103,214,170,32,100,31,181,214,24,68,20,96,126,130,112,17,94,50,244,208,+ 155,175,195,54,167,128,48,69,248,176,254,36,254,234,74,239,142,192,7,237,65,152,150,129,+ 29,216,254,185,60,63,115,225,79,211,134,82,138,147,138,193,253,59,134,178,111,64,74,92,+ 0,123,199,167,223,12,91,223,61,177,223,247,108,31,1,158,127,73,39,250,162,34,226,3,+ 60,163,53,8,156,126,35,110,182,251,88,0,238,119,167,55,114,48,233,73,79,231,17,103,+ 220,235,216,107,51,73,211,232,181,4,184,73,39,180,90,200,57,13,207,65,246,87,185,11,+ 85,43,204,169,147,119,111,236,183,161,197,211,8,248,84,17,198,199,243,173,150,146,12,17,+ 56,238,138,215,26,125,37,35,171,225,218,45,49,24,9,216,118,249,222,72,210,210,81,139,+ 131,37,53,4,8,83,253,153,59,181,194,128,57,197,105,115,137,180,167,251,186,192,189,144,+ 106,122,143,53,85,181,7,196,175,5,243,205,237,252,184,205,26,166,104,5,95,132,220,4,+ 214,46,6,172,177,27,58,52,237,189,182,23,107,152,10,96,201,171,70,113,248,96,240,242,+ 254,140,33,97,74,82,193,73,107,197,159,168,147,163,219,222,219,112,44,8,12,72,40,98,+ 168,30,145,14,187,173,40,1,210,130,191,3,215,194,208,246,115,202,196,49,22,36,40,28,+ 234,101,242,82,78,203,99,172,59,61,35,65,231,24,175,155,69,187,241,220,74,224,243,187,+ 218,224,246,33,188,186,158,176,202,124,7,40,241,69,243,154,79,182,198,81,59,197,37,112,+ 247,207,149,28,97,152,141,76,162,237,125,74,141,20,57,251,181,147,215,20,43,116,141,111,+ 76,17,176,172,146,244,13,59,53,89,92,111,63,156,163,187,153,34,224,243,159,211,243,29,+ 236,71,65,128,162,62,155,117,83,178,7,31,100,181,63,61,102,255,153,186,138,7,115,146,+ 172,25,11,89,70,143,152,155,183,234,111,94,248,41,138,204,109,209,58,188,36,248,205,2,+ 112,209,75,240,118,243,95,132,157,181,137,89,72,161,182,43,222,103,43,46,213,42,98,226,+ 27,151,150,58,7,29,57,143,89,162,58,55,160,24,220,186,224,65,72,14,254,64,28,218,+ 63,176,224,13,186,233,132,220,201,181,228,235,36,77,49,188,223,109,34,161,81,55,29,115,+ 121,51,46,63,162,243,255,110,10,116,221,228,157,241,149,177,9,10,255,159,46,72,85,47,+ 240,224,251,119,232,226,182,179,193,143,26,103,139,204,254,147,49,57,203,228,236,62,175,234,+ 106,158,156,34,171,125,43,17,90,202,55,241,106,169,172,117,174,13,188,185,122,200,5,209,+ 148,134,135,78,143,198,17,58,180,201,104,189,217,9,8,222,222,1,62,65,44,128,226,94,+ 231,16,230,176,254,4,40,193,68,16,0,1,50,59,75,49,43,28,27,27,28,23,47,62,+ 46,32,18,59,46,76,36,117,195,83,139,148,190,148,208,124,152,253,143,48,250,217,192,135,+ 157,143,167,221,157,251,75,197,95,96,210,236,36,43,152,64,9,168,24,71,126,144,163,211,+ 164,87,40,191,70,71,3,38,63,33,2,73,140,110,84,160,124,126,66,49,190,163,200,157,+ 157,237,17,236,107,77,225,160,101,186,87,68,68,68,54,115,171,43,204,120,201,195,103,147,+ 76,47,106,72,198,115,40,66,16,110,92,63,122,152,232,219,92,60,82,141,192,230,220,25,+ 226,44,64,57,33,6,73,113,78,195,157,195,86,161,252,139,73,202,240,72,168,6,35,138,+ 164,8,178,213,204,220,225,232,18,37,59,224,153,123,20,23,115,84,35,128,172,230,25,156,+ 104,69,0,130,232,217,87,192,226,120,227,236,25,40,20,222,51,246,132,54,83,110,129,150,+ 124,76,50,164,213,135,164,97,216,184,90,243,217,48,208,68,154,8,150,66,111,155,38,227,+ 245,62,255,245,163,45,249,237,248,242,106,222,5,219,62,116,94,57,134,148,101,15,125,61,+ 229,254,136,52,229,90,187,171,169,59,2,37,179,136,181,27,131,144,31,135,236,92,119,135,+ 8,24,118,208,185,234,174,167,77,191,110,235,129,112,109,49,33,36,179,102,203,48,233,133,+ 239,226,31,198,224,125,109,7,126,181,250,160,79,243,184,155,233,73,115,6,121,200,155,201,+ 75,203,177,26,65,139,13,152,178,172,8,161,12,218,203,18,205,219,81,121,239,30,204,21,+ 202,15,88,33,251,187,84,226,204,115,246,31,213,166,28,153,145,137,10,96,10,46,234,55,+ 113,208,161,245,163,235,214,236,36,60,60,180,55,95,75,99,222,73,102,79,189,169,242,143,+ 98,239,48,14,201,129,195,9,132,135,228,117,190,69,206,251,103,194,195,100,116,17,239,112,+ 162,70,111,63,134,182,157,85,202,190,191,161,95,47,142,93,123,31,147,78,121,116,233,84,+ 49,74,248,139,182,36,175,139,213,247,250,166,108,198,12,178,235,66,184,70,90,225,231,199,+ 221,123,4,131,219,155,105,154,175,27,247,4,13,15,204,136,243,11,195,96,154,239,255,254,+ 30,214,114,129,0,17,0,1,9,14,15,9,12,12,10,15,19,36,26,23,5,16,68,148,+ 111,200,121,76,254,60,112,195,243,255,96,172,165,49,98,172,168,30,12,147,245,126,202,18,+ 201,105,161,134,193,211,41,71,98,216,57,122,147,232,244,241,108,81,1,71,28,212,49,7,+ 32,190,110,29,167,169,48,59,193,112,206,78,25,124,22,166,58,140,217,64,62,64,34,34,+ 152,182,201,25,25,214,20,63,165,225,66,97,23,9,114,153,150,25,91,130,150,239,49,80,+ 72,76,15,242,144,251,67,94,27,209,146,253,77,98,95,242,113,238,245,218,135,105,82,162,+ 113,231,151,232,147,190,233,255,59,146,58,213,78,58,136,91,182,113,199,127,222,220,133,61,+ 107,33,20,57,119,241,29,236,50,105,89,255,29,26,143,194,72,123,19,190,27,74,179,21,+ 110,235,46,252,208,193,248,113,61,89,162,239,214,165,7,118,83,232,215,224,43,218,196,255,+ 249,122,129,146,93,204,235,12,221,173,86,46,53,153,155,149,181,192,167,89,197,210,59,116,+ 71,207,78,221,136,234,151,103,8,92,183,46,183,21,242,168,108,89,191,37,21,199,138,37,+ 105,153,25,253,194,72,183,102,182,242,97,147,242,203,0,192,162,51,56,154,208,26,44,67,+ 14,88,43,125,23,143,26,13,86,185,237,51,95,18,34,31,29,151,47,159,162,42,189,228,+ 31,102,33,131,133,173,247,144,68,30,83,243,33,21,150,222,187,191,63,89,162,3,78,84,+ 168,82,64,189,133,38,144,147,119,164,85,62,161,84,37,162,30,87,96,82,192,240,171,249,+ 165,197,160,82,239,243,104,81,141,70,21,134,198,166,114,158,23,232,39,183,231,44,153,190,+ 217,33,143,62,90,129,103,36,235,16,39,135,136,150,87,63,141,25,41,246,243,57,69,136,+ 92,28,76,189,100,128,158,183,157,4,218,245,91,5,177,199,68,199,118,60,32,178,82,206,+ 231,117,212,127,188,46,216,43,160,133,70,2,208,29,7,232,104,232,66,100,149,46,84,58,+ 143,30,178,184,88,13,40,230,59,12,182,195,227,204,23,35,25,203,117,244,179,95,209,215,+ 121,135,15,26,153,234,245,204,82,153,56,74,82,182,200,212,89,67,235,5,32,192,40,122,+ 130,113,59,202,118,121,250,205,154,217,140,251,127,109,86,68,65,62,226,116,232,47,124,22,+ 146,30,19,233,83,205,145,152,171,16,58,92,182,67,253,153,128,20,232,175,140,207,53,168,+ 89,168,181,184,86,65,7,44,80,91,27,117,136,139,197,79,69,221,201,44,229,103,163,56,+ 120,221,133,110,199,182,141,12,88,123,192,210,29,190,202,41,39,244,18,230,160,218,110,29,+ 205,200,180,61,247,123,110,231,130,221,197,47,157,122,210,197,22,130,154,47,24,14,253,112,+ 180,125,219,16,0,22,22,26,42,47,53,16,16,8,8,5,48,49,56,22,118,47,180,87,+ 76,244,128,200,132,192,74,86,3,75,102,37,106,67,147,56,2,229,136,105,133,37,27,78,+ 167,202,37,62,16,59,98,89,81,255,5,233,47,66,157,164,124,216,28,166,14,60,20,197,+ 232,16,184,53,148,240,172,234,55,41,186,184,213,18,57,46,255,120,27,133,100,86,182,159,+ 163,60,210,35,242,183,114,0,97,242,150,8,56,0,158,216,110,93,147,163,106,110,215,75,+ 96,97,168,64,236,33,13,241,222,140,16,189,127,198,243,153,59,32,231,21,68,66,186,112,+ 68,170,50,205,222,226,78,85,164,192,157,66,207,229,156,70,119,252,39,121,219,144,215,168,+ 120,128,168,34,135,45,243,85,224,226,243,15,165,222,142,152,95,94,16,102,233,165,226,57,+ 188,2,165,133,203,232,63,107,184,71,151,221,17,162,207,95,32,60,228,220,105,103,30,145,+ 167,140,104,7,179,9,99,31,22,87,157,219,242,19,96,208,121,125,39,36,242,220,131,41,+ 246,9,122,152,163,64,190,122,37,40,96,43,37,55,240,210,150,251,44,5,239,28,200,168,+ 187,99,249,222,168,14,117,188,79,63,18,5,151,225,16,181,102,233,215,12,57,208,151,23,+ 146,42,89,106,61,223,116,32,181,80,88,10,126,178,50,89,75,7,202,126,161,104,56,96,+ 37,157,95,171,136,220,56,20,49,110,185,55,71,151,198,22,91,60,72,193,148,71,112,151,+ 165,158,249,43,235,201,239,48,251,91,133,31,25,182,136,216,255,167,6,221,208,43,189,43,+ 112,203,110,212,158,5,69,177,54,211,33,117,27,225,172,120,68,126,76,185,13,152,67,239,+ 246,51,33,88,35,53,6,109,25,121,81,158,96,214,146,77,252,189,237,146,120,37,214,186,+ 74,91,28,125,45,219,44,96,205,140,213,26,109,245,96,181,139,221,182,91,136,10,117,158,+ 186,233,142,227,227,24,228,35,45,214,127,17,154,203,128,169,74,32,20,182,28,215,8,31,+ 50,43,171,198,172,11,81,200,69,78,11,254,246,110,201,82,79,128,176,255,176,24,201,142,+ 164,201,34,96,32,123,196,73,235,66,18,31,232,188,150,10,101,147,111,204,94,153,110,233,+ 223,39,195,52,247,56,206,94,36,233,185,116,63,235,207,16,197,43,146,25,77,70,172,89,+ 251,4,162,137,234,250,97,24,249,137,108,156,86,73,225,77,150,247,213,177,126,0,17,0,+ 7,6,26,24,42,25,26,9,9,40,43,46,10,7,18,19,140,71,77,5,143,142,23,101,+ 80,178,207,240,235,127,232,239,36,1,250,131,248,68,126,86,190,210,165,178,252,248,233,45,+ 185,116,106,120,86,73,42,92,7,18,46,22,172,169,239,237,118,224,163,42,220,39,146,211,+ 11,147,132,88,106,17,103,107,192,59,205,206,46,160,176,58,251,231,220,25,236,82,219,27,+ 107,212,157,131,150,246,161,72,245,182,154,210,124,250,168,13,156,184,34,135,186,164,55,40,+ 118,187,9,161,201,216,143,251,156,195,60,204,72,59,232,90,213,212,118,47,101,226,213,18,+ 139,216,146,51,37,136,230,211,59,56,214,179,107,232,92,103,23,72,61,86,249,16,37,103,+ 1,48,148,88,164,167,237,201,206,184,114,118,168,253,127,28,121,248,170,93,252,114,114,216,+ 92,66,165,134,96,250,52,181,246,167,169,113,70,243,212,86,195,0,209,245,235,54,207,185,+ 196,225,69,74,230,0,245,121,23,196,199,135,196,146,129,27,21,234,101,163,157,251,174,30,+ 51,36,221,33,219,131,185,69,229,185,56,87,96,13,248,92,152,157,224,248,148,228,18,255,+ 1,221,16,131,71,100,184,114,250,155,254,117,164,73,131,151,206,94,43,53,96,50,73,108,+ 82,171,143,6,4,82,183,29,203,76,179,3,87,148,69,185,26,49,224,135,48,125,22,101,+ 98,59,205,197,158,82,206,115,227,128,55,181,98,223,130,174,97,13,157,172,215,34,222,168,+ 166,122,188,125,167,148,86,229,43,223,151,138,138,33,10,215,137,175,231,182,158,180,223,39,+ 91,241,12,90,92,1,53,147,50,168,126,192,170,188,59,132,174,202,241,200,157,25,89,59,+ 30,200,48,12,221,232,151,223,78,7,41,62,56,94,184,62,59,175,89,201,94,77,68,250,+ 184,80,240,130,42,81,78,144,71,46,203,112,123,227,49,165,242,119,188,160,247,11,158,145,+ 76,232,162,144,2,118,155,1,7,171,199,194,17,133,11,79,119,193,79,146,157,72,200,194,+ 189,164,237,176,118,49,82,10,170,57,75,82,232,131,136,144,29,86,190,206,244,204,171,235,+ 78,120,139,19,43,155,169,96,24,217,236,231,230,16,93,158,233,4,184,155,213,81,63,97,+ 70,12,76,136,219,40,17,176,172,240,233,165,198,107,62,178,180,172,181,32,89,157,193,190,+ 126,61,17,195,215,66,159,14,215,100,59,44,123,45,88,58,157,199,168,55,175,129,3,72,+ 177,233,189,214,197,6,238,185,141,75,255,69,44,193,72,45,44,6,41,213,18,198,126,197,+ 40,183,145,57,76,39,12,17,205,54,80,101,248,228,15,87,160,48,122,114,96,86,161,15,+ 180,204,0,13,0,26,35,55,30,57,64,64,26,3,3,4,63,81,71,21,101,35,52,171,+ 192,204,171,150,54,192,179,47,116,148,169,171,197,104,172,149,74,22,218,19,41,124,101,68,+ 232,33,218,215,202,23,214,132,9,88,223,150,61,23,137,165,181,128,206,105,65,27,122,115,+ 216,48,70,119,163,239,24,181,13,13,136,70,192,41,165,227,193,185,78,138,204,104,190,133,+ 243,129,148,30,251,2,80,130,245,117,189,129,45,87,67,122,200,137,122,254,176,117,93,203,+ 148,144,135,93,47,83,108,219,229,227,201,111,155,3,109,121,189,127,118,31,73,113,22,163,+ 70,17,195,251,110,170,46,245,51,89,73,21,242,244,199,155,35,199,30,207,182,130,222,186,+ 119,207,209,84,80,161,28,214,253,109,219,133,172,133,238,104,111,118,41,99,235,97,80,202,+ 246,56,12,56,149,28,75,13,154,195,232,183,194,66,58,5,234,119,46,245,136,241,34,52,+ 206,103,60,150,10,214,83,169,6,153,65,76,151,31,162,106,234,108,247,115,144,83,24,159,+ 160,131,68,53,238,18,133,221,60,68,71,115,231,95,161,240,55,64,102,172,88,165,81,30,+ 251,245,214,61,87,107,25,13,56,209,193,97,51,54,126,183,152,149,167,33,215,182,185,52,+ 189,47,186,42,110,116,178,205,3,2,131,150,51,39,73,91,54,225,149,247,26,121,28,75,+ 179,21,130,48,85,203,188,99,190,189,27,248,50,166,207,232,36,231,71,33,82,57,249,56,+ 160,64,51,216,255,91,194,131,134,8,244,102,54,34,170,49,107,178,84,140,101,167,70,43,+ 211,121,206,189,50,224,81,199,66,248,21,107,200,119,245,195,179,49,217,209,194,64,74,3,+ 105,103,122,211,29,18,20,18,227,196,53,33,115,221,158,185,217,99,186,229,186,205,137,16,+ 6,160,104,142,255,122,198,251,138,19,227,231,120,142,242,133,17,178,56,77,70,61,60,221,+ 251,57,54,179,225,239,198,152,179,143,74,227,174,92,104,120,67,59,220,38,188,155,185,57,+ 84,50,11,210,162,20,227,83,4,2,15,60,18,166,8,200,204,111,186,15,33,11,3,18,+ 211,96,212,9,233,68,18,246,190,250,53,85,34,12,49,184,8,255,223,44,159,173,240,208,+ 196,187,117,172,25,30,0,250,31,0,15,0,26,26,41,21,35,26,22,13,17,20,33,56,+ 52,36,115,56,58,112,195,71,58,163,98,69,248,24,40,36,52,33,13,195,98,160,207,91,+ 17,85,154,223,69,156,244,250,174,224,0,225,7,172,58,149,21,2,71,24,88,65,13,221,+ 217,129,238,35,113,53,29,85,254,246,227,226,53,221,191,178,82,85,182,138,14,145,120,182,+ 15,152,181,153,34,198,157,16,75,107,55,181,104,174,248,179,36,29,58,241,165,136,227,45,+ 73,29,241,89,255,243,232,202,59,68,24,119,62,120,14,178,130,215,228,185,168,121,114,91,+ 140,16,42,203,136,7,209,221,10,141,80,63,31,53,226,58,139,101,15,67,198,100,82,68,+ 135,80,158,113,142,61,233,144,129,133,78,181,76,26,203,53,34,31,50,3,71,166,182,19,+ 90,162,166,85,253,79,41,162,92,108,243,132,201,214,76,135,221,115,9,123,77,50,23,8,+ 185,204,235,144,75,226,24,212,201,239,187,140,100,25,177,173,13,179,177,33,180,73,232,193,+ 206,31,29,103,56,242,218,109,187,60,88,54,44,99,188,141,252,156,135,139,252,244,54,15,+ 94,211,63,22,35,50,123,1,63,45,230,227,37,131,28,124,93,22,28,73,30,72,176,159,+ 79,183,121,16,170,132,196,122,118,36,49,168,90,238,38,139,114,147,84,175,129,223,251,198,+ 109,239,159,117,155,63,200,173,193,237,93,229,13,121,122,219,178,8,140,21,172,135,100,61,+ 34,181,73,86,25,4,12,231,72,252,213,142,65,0,81,222,200,36,252,18,29,240,170,131,+ 143,39,111,173,112,134,12,33,40,105,229,191,89,86,123,142,127,115,204,151,160,162,151,55,+ 77,118,73,154,92,202,112,251,164,15,114,74,97,115,123,228,202,127,178,126,254,202,114,79,+ 200,121,173,210,186,199,70,16,117,115,38,12,51,61,132,17,141,59,115,185,218,58,34,54,+ 158,11,165,95,29,6,1,160,62,158,39,6,149,7,248,162,67,181,2,186,55,101,156,144,+ 225,15,248,165,229,76,165,79,101,119,21,83,228,109,184,51,92,241,145,240,204,81,188,181,+ 123,168,67,153,182,40,1,102,57,26,73,220,18,23,182,39,178,245,123,191,85,61,61,254,+ 202,11,159,226,11,8,46,228,197,189,109,31,20,215,208,212,4,178,88,234,21,112,224,199,+ 42,178,71,135,85,69,200,145,145,235,235,242,166,234,233,46,44,98,251,243,71,152,147,29,+ 42,93,252,197,242,89,3,243,210,6,105,151,156,128,170,58,99,241,234,0,166,222,17,253,+ 0,20,0,17,31,58,47,39,34,32,31,63,65,66,17,12,5,13,19,20,52,46,45,229,+ 237,123,53,165,7,155,9,42,84,164,94,0,150,27,27,48,12,181,226,65,154,255,105,54,+ 179,216,250,46,197,198,30,67,101,252,59,218,81,66,208,254,73,60,159,3,200,94,4,62,+ 110,104,232,231,183,222,123,113,69,203,81,199,131,105,181,130,206,178,215,120,94,191,74,219,+ 190,9,48,67,219,185,168,138,95,109,53,91,106,214,9,179,93,50,138,139,158,236,123,37,+ 114,252,172,151,72,214,16,221,145,67,243,107,61,29,20,159,89,201,25,2,5,12,60,182,+ 207,255,125,58,25,113,82,183,153,57,15,204,179,253,59,198,64,227,225,77,48,248,174,103,+ 205,58,6,41,19,235,177,14,183,210,232,245,232,197,32,144,180,94,47,156,249,86,149,4,+ 132,28,42,198,227,96,151,156,236,239,192,76,52,43,127,228,59,105,222,8,252,176,230,217,+ 95,227,75,75,249,244,221,130,0,18,0,1,10,13,15,15,16,24,15,17,32,57,69,52,+ 54,63,63,70,70,23,252,115,53,165,7,155,9,41,68,169,31,73,74,42,34,121,210,57,+ 225,218,127,19,217,76,140,199,159,133,253,239,216,63,156,158,111,53,206,174,68,159,91,70,+ 130,81,82,155,6,186,180,68,103,209,218,228,51,64,45,191,170,192,145,46,158,239,251,3,+ 207,201,221,111,142,245,196,213,144,40,158,95,201,48,137,166,242,138,82,163,64,107,3,19,+ 127,67,94,216,165,114,41,70,170,155,185,85,231,24,9,118,156,193,124,48,163,178,63,174,+ 12,170,126,188,125,93,241,179,56,83,134,201,234,238,217,131,95,128,204,226,85,100,199,153,+ 212,73,151,114,111,181,3,66,64,157,114,135,15,71,178,186,118,224,25,43,192,3,196,13,+ 212,205,17,9,29,219,91,202,189,28,183,42,194,173,69,118,241,151,126,23,68,95,215,92,+ 251,60,53,41,174,188,153,190,22,205,108,193,52,149,127,230,191,110,208,40,114,215,70,125,+ 110,128,11,252,51,222,209,22,0,1,10,27,41,31,24,17,58,77,84,63,43,29,8,12,+ 24,29,40,41,37,17,10,227,235,115,53,165,7,155,9,42,84,162,83,21,58,198,134,122,+ 12,119,44,77,10,212,91,108,20,44,157,192,162,113,113,215,17,129,236,96,209,67,3,84,+ 130,126,7,203,178,109,242,40,34,58,3,62,84,113,38,169,156,104,182,175,25,252,186,5,+ 96,176,172,28,249,93,144,74,254,121,246,237,231,39,48,5,136,125,67,191,12,39,84,136,+ 88,55,134,16,43,125,179,79,47,63,180,109,166,237,49,253,100,11,158,23,51,62,172,241,+ 109,18,34,31,80,196,80,247,117,87,214,132,237,149,226,148,129,234,140,131,197,204,59,147,+ 36,217,131,138,75,31,1,55,169,226,191,168,77,57,61,21,25,67,9,160,249,59,242,253,+ 137,43,136,179,1,3,135,132,136,38,142,182,2,42,144,223,37,248,99,243,224,50,80,240,+ 110,210,153,115,42,87,63,162,50,79,21,1,239,197,75,215,250,127,4,69,181,223,235,6,+ 8,136,14,34,245,71,206,184,200,246,152,108,37,40,96,219,19,0,1,13,27,37,26,28,+ 19,58,47,71,53,72,55,31,21,15,15,13,50,12,11,115,53,165,7,155,9,42,84,162,+ 21,205,196,184,16,210,224,178,47,1,140,46,205,233,250,202,68,47,110,23,184,108,98,181,+ 22,116,180,19,75,79,88,124,242,207,218,183,208,171,115,210,218,177,184,162,124,247,188,246,+ 179,34,47,62,11,219,156,175,16,230,15,134,36,50,158,186,208,177,125,11,229,13,75,113,+ 243,73,132,134,224,51,231,40,18,112,129,18,42,103,91,183,153,12,192,10,20,136,206,188,+ 209,33,51,0,229,83,243,201,198,88,40,235,140,174,197,219,134,250,74,69,1,171,183,31,+ 57,248,33,130,48,179,230,125,234,143,176,55,184,158,96,99,95,19,132,37,204,161,130,0,+ 118,31,113,134,235,147,200,44,64,117,202,251,67,60,44,172,131,173,157,155,74,66,225,17,+ 0,1,10,27,28,26,19,66,63,153,106,101,4,7,10,11,9,35,253,2,115,53,165,7,+ 155,9,42,80,65,235,208,139,34,194,250,42,159,54,185,171,57,133,65,141,105,164,26,208,+ 114,79,41,69,164,18,246,5,45,51,120,153,155,143,158,221,76,117,182,178,219,63,116,207,+ 26,67,4,46,42,180,53,176,30,112,220,125,132,70,153,76,235,209,183,222,115,100,111,99,+ 19,117,147,180,247,179,7,51,172,90,104,169,20,12,172,72,255,108,161,51,220,13,195,201,+ 210,83,2,175,173,102,43,155,142,217,105,133,248,203,21,168,42,34,64,234,142,241,38,219,+ 249,134,144,7,215,110,32,174,171,60,76,167,4,132,14,90,62,98,139,41,15,243,68,176,+ 130,58,154,66,103,78,90,18,62,186,97,237,240,94,143,75,36,110,59,88,20,207,48,240,+ 150,40,202,106,142,62,63,136,174,39,141,131,34,208,232,9,228,63,117,231,69,110,107,20,+ 0,1,11,29,41,44,75,74,77,62,54,40,33,31,28,9,16,22,22,19,23,236,239,115,+ 53,165,7,155,9,41,59,38,38,100,139,85,94,47,249,247,191,47,95,235,114,213,93,249,+ 39,190,238,67,165,38,30,110,166,141,215,52,96,203,58,118,209,243,15,131,8,213,72,156,+ 11,148,230,204,154,72,32,89,182,187,239,11,79,233,214,44,9,62,48,187,25,220,152,236,+ 81,1,29,176,9,100,3,230,163,208,64,194,239,148,62,45,211,54,24,135,173,190,157,245,+ 120,66,241,7,222,108,202,118,51,191,63,205,203,54,72,44,12,79,4,79,129,89,122,128,+ 248,198,254,188,189,8,21,238,214,189,105,110,106,128,148,206,187,34,125,37,57,202,48,103,+ 74,156,148,215,147,160,151,118,74,78,214,195,180,212,164,190,168,93,54,146,23,66,144,160,+ 18,107,55,72,246,22,105,155,61,85,4,141,169,51,210,226,151,76,245,138,133,255,243,181,+ 185,16,212,117,204,201,107,145,182,2,85,195,158,170,29,17,181,21,78,252,195,94,132,149,+ 210,195,161,149,109,201,115,165,123,52,36,184,115,244,232,28,0,8,7,20,26,42,46,36,+ 30,18,28,21,24,20,19,18,11,14,16,20,22,28,28,45,40,44,24,36,33,35,41,136,+ 229,58,83,203,201,167,213,165,95,43,203,157,244,218,188,206,237,71,232,57,143,196,183,221,+ 236,245,202,198,248,51,204,43,123,122,229,106,35,246,135,207,163,171,137,104,10,240,9,161,+ 88,83,53,218,164,31,97,87,205,137,236,252,248,135,52,199,124,192,253,183,81,11,62,58,+ 102,216,205,144,154,184,239,59,191,115,55,157,87,234,231,0,50,143,174,136,183,192,67,13,+ 226,107,98,180,30,183,193,190,86,219,79,67,134,61,166,177,173,202,246,185,208,223,237,209,+ 42,100,184,175,181,36,123,187,106,113,202,77,107,227,194,92,32,54,201,88,4,209,191,9,+ 48,56,15,171,222,245,253,161,252,237,135,198,17,27,222,154,196,193,198,8,255,152,112,9,+ 68,243,78,15,91,180,233,184,176,20,168,97,189,100,24,244,239,35,179,3,196,132,178,1,+ 24,53,229,148,118,60,0,247,77,150,192,252,114,43,84,9,123,22,122,193,96,121,37,163,+ 219,193,238,13,196,218,235,68,138,184,161,61,84,13,94,25,161,60,144,203,16,79,16,185,+ 123,43,61,185,94,110,210,34,29,151,112,139,166,212,126,18,209,57,188,134,78,13,120,94,+ 53,68,22,228,44,68,176,215,170,200,244,135,181,139,77,206,249,5,120,152,68,181,233,37,+ 251,130,196,216,62,81,159,160,136,1,223,146,164,174,254,64,34,86,33,139,177,159,104,217,+ 180,123,252,67,133,129,17,195,57,117,100,105,212,123,6,6,116,45,135,223,178,249,81,34,+ 41,252,232,188,115,115,177,189,136,183,23,22,0,8,22,27,22,13,21,19,14,19,21,45,+ 34,33,10,7,43,42,45,12,30,40,72,76,61,210,237,37,123,249,219,219,208,117,95,176,+ 119,38,246,174,54,72,88,19,199,250,234,92,0,110,170,113,29,88,241,95,238,97,56,234,+ 87,148,42,70,145,197,208,126,211,52,170,210,182,64,220,150,129,253,129,133,155,235,97,161,+ 228,27,17,201,157,28,224,27,65,135,204,149,93,54,23,244,138,101,160,158,247,25,239,235,+ 81,212,21,139,210,51,178,87,56,226,41,65,225,179,240,73,122,160,111,198,239,206,121,39,+ 176,112,43,86,194,232,161,20,58,157,169,54,241,127,224,140,21,250,180,143,51,166,144,120,+ 144,29,235,111,222,202,25,218,182,250,37,15,219,152,80,241,43,249,64,87,244,81,52,86,+ 232,116,200,31,53,81,242,241,35,30,26,69,6,249,238,188,63,174,171,9,152,9,209,215,+ 70,97,237,247,78,25,187,61,107,193,68,227,165,134,46,49,0,171,173,134,227,239,200,193,+ 42,64,146,145,227,165,198,107,47,202,71,239,192,131,108,68,22,149,137,92,38,11,124,196,+ 20,130,95,130,117,99,132,180,170,136,114,111,35,117,136,173,138,79,5,117,35,112,132,46,+ 58,127,2,138,134,188,216,164,236,161,91,12,105,25,148,29,192,175,211,211,92,73,173,208,+ 231,213,114,112,52,156,183,72,145,228,85,96,53,22,10,187,237,254,39,21,149,52,135,208,+ 197,149,145,229,115,14,145,58,16,79,149,36,74,218,3,90,224,122,81,15,215,64,58,233,+ 209,171,206,163,241,147,102,238,234,207,28,30,61,99,19,222,12,19,85,74,105,108,143,212,+ 168,187,219,162,147,180,19,19,10,116,17,122,134,119,183,23,17,88,142,172,169,190,134,158,+ 11,114,29,213,13,9,14,193,199,82,76,159,55,237,6,130,240,97,70,83,179,161,200,202,+ 160,22,48,65,28,166,21,0,8,24,38,40,22,14,16,18,18,36,36,37,8,9,39,41,+ 40,12,22,26,41,84,76,241,177,14,222,74,145,158,198,235,147,194,118,96,132,224,203,151,+ 29,209,201,31,20,205,181,160,41,186,240,115,37,55,134,189,249,81,240,181,134,228,162,74,+ 57,83,82,125,151,0,176,108,125,186,213,147,144,186,182,23,16,78,40,52,201,29,153,149,+ 207,218,140,31,84,253,78,32,227,56,165,187,88,147,246,160,133,52,216,106,9,207,3,194,+ 22,204,101,25,242,69,145,42,198,67,148,94,120,95,141,207,193,34,97,59,225,154,44,70,+ 209,162,194,151,225,170,48,202,228,57,37,184,197,252,179,63,153,208,147,19,137,127,108,100,+ 66,205,30,50,227,196,115,106,211,48,157,109,180,113,253,160,50,220,39,35,173,111,83,88,+ 134,138,173,157,239,254,154,207,93,65,157,253,62,209,240,235,171,119,39,94,3,206,57,74,+ 254,147,223,44,127,165,249,115,126,202,165,217,115,255,150,49,180,10,69,89,44,115,129,164,+ 195,148,211,144,158,170,103,71,247,195,40,23,177,130,161,49,164,90,177,197,34,119,155,7,+ 234,102,147,184,159,39,121,28,63,49,233,46,179,169,30,47,131,201,114,234,62,211,254,10,+ 186,194,133,4,184,211,77,237,244,86,219,31,189,196,74,138,250,95,28,103,178,120,34,31,+ 49,240,123,99,99,206,78,140,74,134,146,106,70,165,12,253,237,34,78,148,102,99,204,68,+ 219,63,77,243,157,111,44,149,18,232,52,114,122,77,183,225,194,32,178,134,228,107,143,12,+ 88,90,146,244,25,77,217,153,128,39,209,229,10,136,59,174,15,168,245,245,72,240,188,91,+ 158,179,83,180,246,35,173,175,114,79,235,127,114,4,130,125,173,193,177,0,89,87,65,74,+ 47,79,101,62,110,132,173,12,106,84,146,171,190,145,251,183,75,192,231,113,157,34,58,0,+ 75,6,0,231,203,7,52,211,4,9,47,90,208,136,9,64,6,139,48,101,214,61,62,188,+ 75,233,225,74,247,84,115,49,151,118,98,224,106,255,73,176,46,209,109,139,164,188,192,255,+ 194,176,78,22,0,8,22,27,29,14,13,8,13,28,43,46,35,20,11,43,41,43,12,29,+ 39,42,68,64,55,8,190,192,88,76,234,116,83,160,49,130,111,92,225,47,172,210,174,236,+ 6,234,251,89,122,50,7,73,234,213,249,75,137,72,55,157,72,77,184,233,227,134,36,100,+ 141,18,53,133,154,33,197,104,69,111,164,228,6,184,125,206,57,107,83,97,116,124,217,11,+ 177,222,222,231,224,70,203,17,198,146,121,118,53,206,34,19,27,239,96,131,105,212,41,3,+ 185,1,88,5,43,181,213,210,108,59,65,240,97,74,25,85,172,63,224,8,135,113,1,159,+ 188,237,204,30,129,201,138,205,124,198,121,184,165,211,144,35,131,102,60,199,183,157,57,50,+ 109,132,95,18,129,113,64,217,167,126,188,35,85,171,41,37,231,107,52,243,142,53,17,211,+ 46,246,239,145,147,197,9,110,230,126,182,173,55,62,156,2,208,193,248,67,61,25,31,245,+ 146,55,229,173,188,136,131,184,59,242,114,222,188,146,134,134,159,4,34,159,216,192,230,72,+ 152,2,75,183,126,49,144,88,184,250,135,224,232,99,148,52,34,168,227,120,28,30,136,181,+ 93,183,102,99,45,25,15,18,61,94,203,76,46,116,101,164,53,235,245,148,240,181,28,81,+ 75,168,121,7,99,94,121,96,34,55,236,52,150,107,132,110,97,128,208,236,49,29,241,132,+ 223,255,245,62,231,7,107,209,179,15,75,221,144,224,116,206,12,152,255,203,18,29,5,182,+ 224,70,246,155,45,235,232,75,117,193,139,251,74,46,202,217,220,98,68,97,47,150,52,71,+ 173,54,68,96,114,157,162,217,7,105,105,214,202,192,88,198,42,85,120,248,86,224,231,150,+ 214,13,50,189,45,156,150,75,46,166,144,252,219,130,90,206,184,246,1,200,114,37,82,72,+ 38,113,5,109,191,167,145,112,122,88,176,22,127,16,49,237,202,166,133,188,168,61,108,23,+ 0,8,12,25,19,13,10,11,10,9,30,51,59,40,19,18,38,40,32,12,10,37,42,87,+ 65,54,194,237,37,123,250,24,31,218,24,36,167,187,29,148,210,241,222,246,123,188,202,8,+ 58,152,222,45,175,190,246,120,215,119,40,3,192,171,124,117,8,237,5,231,114,24,203,235,+ 52,43,48,234,160,47,54,70,115,156,159,208,65,69,179,94,50,149,98,63,153,50,117,66,+ 191,111,163,154,84,189,83,29,192,59,61,111,138,110,181,75,136,168,28,212,180,72,71,1,+ 101,130,45,137,228,26,64,251,18,247,101,153,234,50,104,118,13,215,244,229,208,147,61,218,+ 250,109,206,94,254,36,173,210,24,148,123,195,84,156,49,10,228,11,213,107,68,40,162,49,+ 170,214,107,54,221,253,248,137,22,168,25,207,206,152,37,151,102,99,236,119,137,185,166,247,+ 195,234,120,106,193,160,167,43,207,119,217,112,189,55,41,249,29,58,89,156,61,20,140,181,+ 234,136,201,104,152,187,25,100,63,243,149,49,187,150,249,140,235,43,138,36,11,235,44,238,+ 191,211,224,88,113,190,111,57,54,179,208,150,106,60,227,240,104,61,30,124,42,245,39,244,+ 152,194,6,194,167,80,133,103,226,169,186,231,51,57,18,176,126,110,179,36,230,130,47,145,+ 210,177,248,23,216,200,13,236,213,42,28,197,195,116,18,159,199,20,21,115,13,237,201,105,+ 112,59,217,83,219,129,153,228,196,7,189,218,85,201,10,252,206,174,63,144,147,143,120,82,+ 58,172,195,180,238,191,236,225,54,167,239,8,104,115,125,68,130,103,120,1,219,74,143,81,+ 199,135,16,117,44,8,226,83,169,0,132,230,48,47,33,185,168,203,169,251,234,132,222,55,+ 185,10,16,204,166,96,62,4,61,91,110,159,23,101,246,208,58,45,247,26,10,160,172,135,+ 165,131,169,99,229,35,185,217,55,54,185,243,70,40,51,254,129,181,100,77,54,107,64,81,+ 168,121,71,112,146,152,224,130,13,158,68,102,221,245,99,246,83,14,232,169,174,152,28,55,+ 67,21,230,121,83,214,16,233,47,63,9,54,123,210,193,251,244,238,62,241,185,251,132,153,+ 146,98,131,46,147,91,224,29,128,67,58,134,18,254,14,55,251,27,10,33,41,89,150,76,+ 91,20,23,107,224,11,244,168,34,200,249,121,56,217,93,119,198,55,32,119,53,18,148,21,+ 0,6,5,25,21,30,15,18,13,26,43,49,37,18,8,6,40,41,44,12,45,93,97,60,+ 194,237,37,124,34,169,184,224,65,163,144,169,64,190,195,99,5,158,47,53,125,129,167,13,+ 169,2,218,143,79,175,151,129,153,150,75,195,234,157,228,154,195,210,51,139,156,51,11,64,+ 134,155,241,191,91,201,200,106,83,58,142,112,20,59,173,187,6,232,234,155,48,174,75,74,+ 62,183,66,248,249,242,34,196,138,73,238,158,5,54,120,90,140,67,62,45,231,128,138,136,+ 86,145,37,195,179,17,248,176,6,216,24,251,108,93,124,181,56,246,101,91,9,175,179,192,+ 34,30,21,150,20,31,250,1,211,22,99,181,126,101,147,200,116,14,40,255,87,39,244,88,+ 3,66,109,225,92,196,252,94,205,61,13,4,197,227,188,115,90,80,221,33,40,36,89,15,+ 142,117,120,123,21,12,17,99,212,233,92,143,58,101,154,154,229,12,134,57,77,23,166,250,+ 220,237,158,201,177,218,151,112,214,51,216,180,14,161,147,63,152,74,165,70,197,144,184,161,+ 115,103,255,140,170,192,113,70,184,200,88,42,223,211,54,227,185,10,10,228,158,22,251,48,+ 83,96,230,201,177,93,215,94,208,191,172,117,239,217,81,254,179,168,220,254,34,91,116,200,+ 23,228,87,119,116,200,2,160,226,20,204,98,18,155,202,3,47,30,235,28,78,96,26,174,+ 189,174,212,116,178,164,30,210,99,99,112,171,175,80,195,8,49,200,134,230,127,83,122,189,+ 176,83,41,230,111,66,139,25,113,229,89,119,122,23,165,240,254,251,201,59,85,116,2,28,+ 73,230,19,152,138,35,182,163,254,11,87,107,53,135,168,71,97,155,149,177,55,211,185,214,+ 77,76,22,209,71,155,128,169,110,53,49,197,248,238,168,139,97,82,51,46,116,208,167,132,+ 108,23,164,127,42,214,204,89,204,82,187,43,22,66,130,56,88,184,163,222,148,44,115,203,+ 151,170,100,94,147,123,233,131,81,162,90,128,233,47,113,219,32,51,1,182,248,209,74,165,+ 247,249,186,209,194,226,213,126,45,215,127,42,87,178,88,220,30,227,95,167,31,214,21,0,+ 8,24,35,36,25,34,42,46,31,17,8,8,9,35,34,37,12,16,30,38,42,76,64,54,+ 190,192,28,157,11,55,156,169,170,128,74,160,226,20,44,220,244,128,166,76,163,242,253,221,+ 79,213,50,108,180,205,44,192,177,56,200,234,133,0,218,52,130,51,183,67,25,199,113,236,+ 74,223,69,254,224,52,131,182,152,24,109,119,254,49,140,250,133,58,195,17,14,158,148,56,+ 248,59,252,116,71,136,20,73,150,138,141,137,160,141,175,47,129,79,114,49,189,111,253,146,+ 99,1,52,123,31,15,156,129,245,222,186,106,255,71,71,212,192,185,217,158,14,77,69,215,+ 91,253,13,11,148,39,87,138,63,111,127,225,57,187,124,30,171,71,223,252,69,139,248,118,+ 98,87,197,103,117,169,155,31,116,46,116,178,232,90,242,41,243,180,47,184,154,166,228,201,+ 44,178,13,189,225,252,47,125,82,67,138,20,50,174,99,70,210,211,139,225,177,131,24,168,+ 142,87,178,250,141,136,188,159,169,164,165,224,244,213,89,216,32,27,48,59,214,177,154,179,+ 37,182,148,202,23,15,43,87,78,24,114,107,104,152,92,61,96,28,41,82,60,207,61,47,+ 136,243,191,50,109,81,170,95,112,61,139,182,17,125,126,5,91,108,56,76,97,26,248,252,+ 244,211,90,88,191,139,249,88,19,53,114,156,221,37,136,91,29,160,191,232,107,96,198,10,+ 149,129,74,52,98,146,209,7,200,10,177,238,23,18,186,178,60,99,167,130,12,246,220,207,+ 182,38,237,75,118,11,127,67,176,241,240,197,165,20,32,174,255,52,33,10,48,85,180,38,+ 48,166,196,252,5,18,105,190,175,94,180,219,61,170,101,160,188,207,57,53,101,232,19,86,+ 95,137,165,39,156,243,70,178,99,73,240,22,72,59,174,108,17,67,175,105,145,84,4,94,+ 25,175,71,205,95,110,15,213,77,248,99,134,10,241,70,240,6,56,113,147,227,116,118,191,+ 252,65,106,44,202,229,33,144,246,94,13,135,57,101,255,125,68,193,54,87,130,29,125,244,+ 122,220,122,150,161,111,65,135,205,215,46,45,202,31,189,178,73,227,55,163,159,12,88,221,+ 243,193,215,159,177,76,69,253,108,91,163,173,116,238,21,0,6,5,26,30,33,19,10,11,+ 21,42,48,37,19,8,9,34,41,40,17,22,47,97,83,241,237,37,124,33,188,255,161,113,+ 41,218,203,72,184,246,97,220,177,87,33,33,196,115,234,32,74,27,78,203,10,189,144,100,+ 3,3,19,134,124,158,246,8,91,246,156,141,138,223,160,211,229,173,185,222,55,48,140,10,+ 97,64,113,66,254,19,49,232,235,152,221,100,187,140,25,32,116,13,29,135,114,194,73,38,+ 148,232,104,36,180,80,119,188,124,251,133,206,249,134,47,56,220,219,101,27,123,133,71,236,+ 107,214,122,17,180,48,70,55,68,4,198,212,172,52,158,144,53,118,227,8,189,84,201,38,+ 138,245,58,242,225,16,14,47,226,246,255,138,194,246,178,110,142,1,137,156,139,237,37,79,+ 88,185,136,226,39,98,131,143,193,242,237,180,118,30,120,157,133,185,70,99,72,185,248,98,+ 222,62,61,93,103,249,1,51,121,51,64,95,41,131,254,38,13,160,32,136,174,179,245,26,+ 65,98,147,75,4,47,58,168,110,228,208,74,0,58,76,169,75,67,141,223,21,88,94,137,+ 70,36,104,62,15,212,149,149,59,251,91,97,28,59,137,77,144,39,250,85,22,24,248,80,+ 107,195,151,34,13,133,84,190,250,29,254,185,199,148,204,194,30,195,118,207,202,234,111,149,+ 136,24,174,231,217,219,100,66,202,76,129,36,196,140,33,210,195,10,134,107,113,202,138,18,+ 88,1,80,40,91,247,78,143,225,210,56,55,12,17,45,94,236,197,26,25,44,171,130,33,+ 190,252,85,13,161,190,130,103,111,24,106,2,76,77,100,101,132,150,118,217,119,200,141,168,+ 135,233,200,147,106,142,100,166,203,96,138,41,69,87,219,198,2,244,196,1,239,82,234,244,+ 187,225,161,13,128,73,249,88,240,238,220,152,132,242,41,199,249,218,188,100,159,74,33,221,+ 32,217,194,74,198,119,42,172,43,38,41,16,206,200,215,128,52,131,191,4,187,113,238,105,+ 113,148,137,55,249,255,70,81,146,242,100,200,176,199,77,163,225,25,185,154,3,13,33,230,+ 176,236,221,204,207,29,41,47,26,76,90,50,160,225,207,104,181,217,53,158,84,4,45,165,+ 166,57,22,0,1,5,25,36,31,20,9,13,21,24,34,34,32,22,21,39,41,34,17,25,+ 23,41,81,76,242,41,55,123,29,49,30,233,211,26,131,194,210,110,223,68,60,240,204,84,+ 133,100,92,125,100,246,178,57,253,119,79,235,143,15,143,82,165,40,195,236,119,95,82,63,+ 139,228,130,207,64,148,190,197,74,55,108,214,119,177,179,44,136,198,135,122,171,87,87,252,+ 191,105,17,197,252,105,101,177,186,170,57,151,252,138,135,6,167,185,105,44,116,217,206,110,+ 228,88,67,67,43,228,45,184,218,68,197,236,30,150,111,167,229,176,160,43,89,25,66,19,+ 181,205,224,197,180,171,127,108,126,170,238,104,215,238,225,20,126,169,151,203,108,6,174,106,+ 96,101,173,78,114,1,124,212,198,236,176,44,5,121,246,42,122,37,100,166,249,26,116,29,+ 212,228,2,174,85,20,67,117,109,117,20,246,129,51,98,13,215,155,109,192,4,39,195,115,+ 206,180,111,226,74,237,122,46,170,198,34,240,12,92,4,96,52,126,90,146,0,163,233,47,+ 174,43,219,17,56,56,101,128,159,30,135,51,22,113,7,44,156,32,171,173,119,243,145,151,+ 100,249,111,74,206,94,136,4,209,223,143,146,92,139,167,188,192,96,95,150,175,161,186,99,+ 89,42,51,36,84,139,80,46,187,105,188,99,65,44,143,100,122,173,62,218,226,72,23,109,+ 113,215,50,69,9,156,186,8,76,237,126,21,149,143,113,116,245,65,45,107,54,182,5,18,+ 131,85,101,232,72,131,110,144,93,234,119,107,179,130,173,171,253,17,162,81,123,131,11,24,+ 136,220,98,63,224,247,255,102,70,40,136,35,89,179,182,184,174,213,138,225,55,109,165,178,+ 141,63,171,36,161,236,229,128,1,222,166,167,56,19,215,36,58,164,108,73,35,192,50,118,+ 56,87,131,186,110,117,118,218,59,237,40,5,217,151,21,121,70,99,41,76,118,123,184,131,+ 12,91,234,71,82,148,120,213,91,66,86,144,71,11,89,199,232,139,242,121,151,147,129,107,+ 231,98,23,192,139,234,5,101,29,63,139,217,93,188,154,49,247,131,24,67,209,80,134,57,+ 46,193,204,55,210,217,196,215,231,113,22,0,1,5,27,37,37,25,26,24,34,34,31,17,+ 9,8,9,34,39,37,14,11,42,97,97,64,2,190,234,212,101,27,29,100,192,103,236,216,+ 122,100,207,24,79,90,70,59,216,41,186,109,248,54,186,112,175,30,188,115,12,252,224,235,+ 142,120,243,9,120,214,214,226,226,82,54,46,106,185,232,237,18,119,117,115,184,0,248,163,+ 185,225,52,67,11,6,124,121,226,29,43,50,17,15,14,20,24,183,94,165,123,77,134,223,+ 187,188,245,21,89,97,14,85,20,196,195,201,142,179,201,213,234,167,119,140,27,218,7,63,+ 223,122,2,123,229,193,64,196,15,52,10,102,91,38,82,23,193,253,130,16,162,93,176,27,+ 141,235,245,81,157,85,249,76,52,39,226,73,59,71,8,85,180,23,23,152,143,15,10,238,+ 180,187,69,141,149,4,197,192,180,122,129,234,85,78,15,43,161,254,89,232,48,224,66,176,+ 127,109,153,75,170,21,104,117,58,33,18,183,213,95,124,0,208,240,109,89,29,222,225,7,+ 114,55,204,24,37,152,117,11,164,135,61,232,19,179,40,68,57,2,78,245,74,97,8,25,+ 136,103,108,158,254,151,133,47,15,183,203,180,140,79,82,166,248,142,226,250,194,125,202,137,+ 205,175,16,3,21,154,156,106,75,233,47,68,122,218,56,97,128,216,125,66,51,156,37,103,+ 237,114,237,27,251,88,114,222,47,4,171,114,25,206,44,175,240,129,237,32,152,176,230,201,+ 132,133,129,2,71,224,74,172,222,99,133,163,24,43,119,224,212,156,56,136,223,124,124,147,+ 124,31,115,228,184,86,211,227,203,153,239,43,22,90,210,45,44,173,55,240,95,189,232,84,+ 125,236,230,21,249,133,48,148,63,200,12,216,153,0,52,98,248,87,230,46,130,77,139,120,+ 158,134,180,31,154,27,249,64,81,48,78,174,214,100,147,29,176,85,237,226,110,175,248,145,+ 232,6,118,211,58,222,41,55,0,254,146,255,3,194,203,131,70,217,4,188,253,28,154,87,+ 73,131,64,153,132,249,15,145,229,178,234,41,182,223,247,111,131,166,162,85,182,89,242,85,+ 240,76,136,101,169,145,1,6,144,200,0,206,208,94,67,101,158,210,26,117,133,122,219,18,+ 122,95,42,14,184,219,195,44,21,44,22,0,1,5,52,65,89,46,33,3,5,6,8,37,+ 37,41,15,16,10,23,27,31,22,61,65,55,8,190,166,228,149,104,68,159,18,119,52,225,+ 85,208,147,234,224,4,253,127,102,198,243,58,139,123,4,58,29,102,204,192,18,157,186,121,+ 213,13,252,166,79,99,124,103,162,107,93,192,176,70,152,96,149,22,236,196,52,153,249,44,+ 142,27,133,144,82,241,145,149,20,66,114,141,189,68,91,169,203,36,215,17,130,81,63,5,+ 94,234,199,253,99,70,9,193,153,48,78,142,85,36,189,199,39,90,146,126,195,13,113,196,+ 56,43,244,201,95,39,212,82,107,140,28,158,122,188,170,217,121,152,70,53,210,159,250,148,+ 148,121,198,89,1,51,26,10,107,145,144,119,71,71,222,55,156,78,191,96,40,20,121,253,+ 213,30,15,226,65,245,252,48,105,197,227,40,34,87,165,53,99,246,16,207,158,97,69,90,+ 166,27,255,202,174,182,178,185,255,203,152,208,231,17,102,117,236,157,75,142,254,86,116,251,+ 108,4,5,56,108,233,70,97,55,211,104,17,6,32,254,149,117,47,135,14,18,4,62,144,+ 220,217,138,173,89,92,40,100,13,77,81,195,166,42,242,76,219,127,24,51,213,132,100,192,+ 142,77,93,0,135,189,230,125,1,71,96,41,20,40,90,95,28,47,193,98,46,136,14,220,+ 188,108,232,172,124,246,90,196,25,51,74,109,50,1,113,55,2,155,152,123,255,74,105,174,+ 216,119,166,254,229,153,138,76,122,224,87,254,48,153,63,250,110,71,28,153,174,38,109,50,+ 168,79,103,1,119,35,149,252,7,79,14,140,118,162,102,165,206,139,95,170,167,108,15,117,+ 64,216,87,94,224,7,88,210,25,247,135,28,109,65,26,154,102,234,182,74,249,53,183,31,+ 132,47,154,229,112,27,12,18,19,118,210,221,118,67,47,157,83,136,96,213,100,22,0,1,+ 5,35,67,61,35,17,17,18,12,12,15,11,14,37,34,37,13,16,10,37,39,96,65,57,+ 190,213,62,178,114,41,145,133,14,102,73,42,92,109,115,137,9,105,207,7,49,35,203,62,+ 217,206,90,187,233,98,161,77,106,252,214,61,212,78,112,103,241,198,213,232,163,95,147,143,+ 127,218,46,156,155,176,253,225,177,52,37,142,176,196,53,210,167,116,199,89,205,46,175,203,+ 37,134,78,142,147,218,207,2,3,171,236,143,113,228,215,31,250,246,147,95,154,19,178,91,+ 52,46,130,173,41,238,197,173,113,212,248,128,189,88,207,95,105,18,32,58,254,48,36,32,+ 184,180,47,88,232,229,109,243,180,146,22,142,241,254,92,143,252,19,12,246,133,13,207,11,+ 182,68,113,251,43,68,222,255,203,247,159,98,104,23,180,106,117,93,243,145,30,101,100,92,+ 147,215,168,177,183,94,239,69,189,83,217,37,241,22,254,137,185,71,90,122,100,115,56,135,+ 106,1,135,208,38,62,190,37,15,41,25,1,73,50,246,169,3,73,123,84,33,225,49,241,+ 85,182,115,95,196,153,135,176,161,40,88,79,18,101,147,238,148,73,200,216,41,126,94,73,+ 206,76,28,138,166,111,83,192,120,49,66,26,182,244,122,89,74,247,72,161,30,63,60,35,+ 60,39,122,72,173,63,96,119,191,9,103,5,23,3,217,95,33,42,80,143,73,85,235,4,+ 44,148,94,179,195,35,146,35,238,29,183,191,79,195,205,21,158,90,213,66,171,194,168,183,+ 64,205,102,161,110,145,225,36,67,95,218,7,22,4,232,110,43,246,212,42,71,152,186,237,+ 135,3,70,28,145,242,84,254,223,15,33,247,153,52,21,189,91,16,22,41,0,92,96,201,+ 213,105,50,249,29,189,100,46,205,143,65,132,161,29,53,59,152,179,146,194,27,132,89,69,+ 184,113,174,88,53,40,159,183,74,138,54,86,157,204,212,196,231,223,10,78,173,123,232,24,+ 7,3,21,95,90,100,139,19,218,147,128,121,229,19,72,184,245,138,245,96,241,214,172,82,+ 64,15,171,200,103,203,89,22,0,6,5,26,26,27,12,16,14,14,20,40,48,35,19,12,+ 43,41,40,11,9,27,40,97,75,244,41,55,210,84,255,8,90,9,161,251,253,60,244,114,+ 98,163,223,218,158,251,161,253,252,17,131,16,10,82,112,10,225,15,221,164,175,65,80,122,+ 4,77,191,174,187,38,204,102,137,19,139,65,35,181,173,39,240,124,73,76,14,177,226,111,+ 245,48,64,240,103,127,198,44,62,37,102,243,3,223,86,29,38,55,206,6,241,27,131,210,+ 0,34,79,82,4,128,138,52,208,216,241,109,248,241,171,205,74,139,118,46,133,59,48,102,+ 76,143,104,94,71,250,31,102,209,89,164,72,227,124,155,17,10,128,234,129,102,139,169,57,+ 137,140,57,43,77,107,76,54,224,220,146,105,45,207,73,160,174,87,228,127,12,173,1,254,+ 227,36,32,133,202,8,129,93,250,203,223,56,80,47,229,123,62,8,48,50,62,87,63,177,+ 164,67,70,63,237,161,176,0,152,203,81,148,84,232,148,239,241,213,169,245,242,213,36,128,+ 135,1,7,209,52,210,68,92,150,52,164,50,159,224,19,214,123,59,118,98,138,239,147,69,+ 88,55,147,232,185,7,70,67,92,54,51,183,100,248,211,58,93,85,185,171,151,98,132,58,+ 53,39,210,74,93,214,217,12,245,106,246,201,200,53,36,5,197,228,135,17,147,140,77,255,+ 115,72,125,18,55,206,11,160,109,199,236,129,4,213,128,226,191,217,160,229,61,175,156,15,+ 171,36,22,147,159,138,204,158,173,97,238,94,212,169,174,38,15,183,211,159,94,165,66,60,+ 100,155,115,125,117,145,210,12,61,184,22,224,214,24,236,15,224,147,81,87,191,72,12,209,+ 151,95,129,17,78,161,218,165,221,185,113,150,155,62,46,189,180,133,82,3,55,150,22,0,+ 11,142,29,12,121,251,68,153,199,170,39,239,157,20,176,6,218,78,70,83,101,147,48,56,+ 150,47,159,205,167,227,45,67,25,192,97,49,89,68,78,175,20,0,1,6,46,51,58,24,+ 38,32,33,16,10,9,34,34,33,9,11,13,10,41,97,96,60,190,208,232,57,6,73,158,+ 85,125,126,54,238,230,58,89,232,246,23,166,140,182,6,149,186,2,194,78,147,129,40,65,+ 41,147,232,212,45,207,126,199,251,145,30,113,54,142,110,141,238,214,233,66,213,65,165,235,+ 11,79,192,8,74,0,143,85,70,172,191,191,57,166,63,99,2,204,156,145,179,44,79,170,+ 51,136,222,104,174,149,38,237,0,184,159,177,246,70,138,49,69,253,4,4,137,32,150,93,+ 187,55,253,176,237,130,167,154,105,6,225,249,28,24,130,150,74,244,43,90,151,253,179,115,+ 240,165,51,188,120,6,150,58,250,77,176,57,18,74,140,90,159,35,12,81,121,70,158,91,+ 20,225,155,179,14,35,160,115,26,129,8,156,236,207,109,208,29,134,105,36,202,87,10,250,+ 154,179,119,58,220,49,4,194,163,215,224,57,52,112,146,18,194,62,13,18,20,241,14,121,+ 91,223,222,81,10,45,65,165,85,11,128,57,153,199,107,245,168,129,11,18,21,97,25,125,+ 108,85,252,201,146,225,162,205,175,230,200,117,150,38,100,134,147,244,98,33,31,224,187,31,+ 22,168,253,71,136,121,34,25,238,20,129,218,170,6,44,217,83,73,97,126,238,65,226,111,+ 162,174,131,250,65,135,47,40,192,190,73,178,198,124,42,208,87,58,153,10,38,240,108,79,+ 148,217,60,203,196,143,83,132,249,94,194,123,200,14,205,141,26,252,75,149,60,189,231,100,+ 189,90,41,252,149,98,153,56,54,204,62,216,117,26,211,148,48,121,217,219,234,141,137,132,+ 19,252,124,137,68,130,100,191,253,177,117,9,185,68,223,233,216,155,10,219,99,50,92,124,+ 66,39,179,72,213,23,32,9,206,244,103,19,206,138,36,35,25,203,124,31,76,146,78,102,+ 121,173,108,235,86,100,228,144,156,215,116,88,54,190,119,76,221,188,245,3,227,32,198,184,+ 221,113,214,152,184,196,141,255,76,180,127,167,253,40,201,11,247,128,70,26,237,173,65,123,+ 223,0,13,166,191,122,93,21,0,3,5,27,28,31,19,21,27,45,46,37,17,14,18,34,+ 37,30,16,29,43,72,77,61,24,190,206,142,81,37,199,56,179,163,133,157,47,189,106,49,+ 193,70,246,65,189,143,4,114,246,166,95,210,137,39,196,240,220,231,81,150,171,197,112,18,+ 7,74,184,123,76,143,68,36,132,134,28,101,255,144,193,235,255,31,201,255,135,14,21,138,+ 48,106,44,143,230,50,7,222,222,157,33,4,134,0,31,127,103,90,200,164,248,146,152,221,+ 237,92,16,135,185,5,42,88,195,132,103,94,151,119,239,70,192,79,56,188,94,239,238,79,+ 188,218,147,56,175,226,147,41,145,108,188,35,154,157,83,41,224,218,78,200,38,76,203,170,+ 1,80,91,78,123,13,61,80,185,122,186,251,203,168,160,152,210,91,59,212,29,134,6,255,+ 216,28,41,218,193,73,3,65,80,27,106,182,250,101,64,156,80,145,243,21,43,208,179,238,+ 60,112,160,125,68,115,9,8,130,154,141,217,219,183,133,190,246,45,76,208,212,255,102,226,+ 53,220,109,201,41,105,194,32,139,36,200,8,225,154,150,220,26,140,50,99,244,55,198,61,+ 31,107,149,59,148,51,202,187,165,115,16,240,198,81,183,165,248,23,151,114,134,107,84,125,+ 223,19,57,30,8,67,52,91,132,75,163,132,63,177,11,109,37,53,19,88,14,145,157,93,+ 112,100,115,244,87,11,243,239,116,209,246,250,103,138,74,55,96,102,203,228,164,7,225,4,+ 213,158,247,206,102,203,95,169,21,29,157,235,38,6,33,97,140,25,2,74,37,204,236,110,+ 247,26,65,32,210,111,228,150,108,81,100,4,12,85,254,114,245,109,32,252,190,35,244,34,+ 199,110,208,54,118,64,161,188,17,188,96,250,216,15,164,223,77,241,242,191,170,144,255,194,+ 73,169,41,202,38,47,66,142,144,149,255,141,237,219,185,161,241,97,26,12,45,45,147,87,+ 43,243,27,97,180,198,78,245,78,221,197,243,32,139,223,192,219,128,84,138,33,248,42,131,+ 52,187,23,106,190,57,236,8,188,88,94,170,5,113,3,136,93,88,87,77,79,32,247,96,+ 139,170,27,46,204,87,248,220,7,218,101,166,67,136,9,32,87,133,136,172,252,113,40,78,+ 223,19,226,255,137,138,240,112,54,6,224,114,176,127,240,231,212,2,247,22,0,6,5,30,+ 30,40,22,30,22,39,37,37,17,9,14,32,30,28,11,16,30,47,72,76,56,210,116,249,+ 189,20,231,215,96,66,135,233,106,130,155,111,173,167,26,69,28,234,61,153,240,195,169,2,+ 34,22,42,0,146,92,216,184,114,129,28,43,16,228,253,146,2,195,122,92,180,242,213,99,+ 248,216,41,200,154,188,124,159,116,52,46,17,157,206,60,0,165,176,134,203,111,7,72,91,+ 66,192,59,236,200,218,98,204,250,20,78,128,199,201,85,31,197,35,193,116,37,199,145,97,+ 31,234,0,146,18,122,202,86,80,212,15,138,230,238,174,219,153,241,0,23,126,1,63,87,+ 59,12,222,105,47,114,21,63,8,21,40,7,80,35,213,50,162,133,120,130,219,65,64,193,+ 68,230,121,71,164,128,146,189,169,199,121,43,24,213,233,133,54,65,244,126,216,225,2,157,+ 66,128,242,46,237,186,186,26,32,17,20,50,211,9,70,141,94,248,50,79,111,131,238,147,+ 246,217,110,200,22,170,86,245,119,123,78,207,107,212,113,114,189,223,85,113,55,137,37,232,+ 56,30,208,138,78,83,148,234,177,172,13,35,206,80,242,69,81,229,97,89,65,207,28,70,+ 18,26,155,207,182,46,187,38,117,116,10,15,88,221,118,232,11,199,39,34,206,87,166,139,+ 175,120,34,50,108,199,249,139,134,6,15,77,150,104,57,222,214,242,184,187,107,221,209,52,+ 86,63,185,7,70,43,34,58,105,76,19,77,25,240,231,122,210,160,65,131,255,246,162,7,+ 178,208,203,51,199,59,159,35,177,252,66,126,176,14,127,28,91,200,97,107,127,231,19,154,+ 145,201,101,88,67,73,144,132,192,207,50,83,236,58,113,164,65,140,170,24,106,198,232,199,+ 255,150,172,151,245,193,174,63,144,161,67,201,152,188,249,41,250,21,225,61,38,160,66,110,+ 236,255,106,48,95,144,210,110,252,4,226,255,195,169,126,19,5,121,176,240,181,179,164,15,+ 162,55,171,130,229,220,124,234,227,254,249,55,135,78,75,250,191,86,102,55,251,134,126,178,+ 220,184,194,102,23,0,1,4,32,34,36,20,31,26,39,37,37,17,9,40,41,44,11,10,+ 15,33,34,29,55,62,54,194,116,249,189,68,147,6,39,92,247,78,68,50,38,106,242,115,+ 106,184,183,6,149,57,165,59,138,231,13,83,16,51,116,28,99,73,241,146,85,44,73,126,+ 215,252,179,115,0,59,252,49,10,62,101,127,45,217,8,101,217,182,213,224,69,20,175,126,+ 235,11,60,71,114,182,93,49,117,52,227,39,92,252,180,140,0,167,4,154,234,110,101,25,+ 138,63,226,161,172,97,89,243,18,85,81,234,127,169,157,98,213,15,252,194,103,89,185,213,+ 153,11,74,48,190,117,234,21,75,127,67,84,161,64,171,18,100,202,11,164,66,212,213,232,+ 255,80,6,82,63,214,208,154,97,58,170,23,104,175,143,83,14,151,251,243,216,229,30,214,+ 116,125,76,28,101,154,43,253,9,39,245,192,77,97,116,148,21,155,15,53,237,236,248,243,+ 92,252,41,115,219,202,153,241,171,201,240,88,129,196,233,252,103,194,90,246,78,79,53,123,+ 26,61,24,188,55,170,197,194,208,136,104,167,65,29,238,67,1,177,185,180,90,74,94,102,+ 72,244,190,218,146,7,64,0,202,224,59,199,95,120,175,54,187,10,144,12,157,189,157,203,+ 45,101,185,145,122,125,221,220,90,176,187,121,230,173,110,245,253,186,224,182,254,224,169,138,+ 4,206,74,125,222,203,172,3,252,132,144,194,147,204,212,2,204,196,169,194,234,109,46,103,+ 205,76,218,63,161,181,37,159,223,129,88,191,78,208,114,30,115,149,236,204,71,65,160,254,+ 237,207,75,120,54,113,102,204,227,97,233,233,251,133,167,67,251,187,235,239,229,192,251,119,+ 185,217,177,219,94,1,153,252,146,158,41,108,157,60,224,242,203,28,27,163,190,108,243,36,+ 58,91,198,243,149,98,223,167,16,255,140,64,138,108,52,40,66,105,82,239,117,207,199,217,+ 63,229,198,24,253,0,123,240,25,53,62,122,28,237,238,143,171,142,62,154,158,221,239,35,+ 221,131,86,137,99,251,109,86,22,0,6,5,31,35,44,35,28,33,20,31,18,22,12,37,+ 39,37,11,11,22,40,42,75,64,54,194,177,14,222,113,23,155,39,250,114,144,211,56,193,+ 161,190,75,205,131,48,63,104,227,151,186,81,146,144,49,175,240,160,125,38,185,192,75,109,+ 26,108,163,74,99,112,94,191,136,235,228,12,40,113,207,145,56,118,252,189,209,132,28,123,+ 120,200,114,216,103,255,63,217,0,213,209,50,254,25,55,134,179,105,194,19,158,126,114,136,+ 26,247,58,61,201,204,245,145,49,20,164,83,213,109,199,217,253,150,236,53,203,116,87,242,+ 106,56,182,79,170,243,115,141,175,8,217,25,134,73,52,232,206,118,129,111,145,203,94,131,+ 241,80,135,236,206,103,27,247,43,139,118,142,236,52,208,213,227,207,17,218,213,35,136,86,+ 219,74,60,61,204,34,233,224,100,231,209,50,57,105,125,205,241,118,107,148,214,13,220,71,+ 15,48,200,248,104,201,59,129,147,227,192,28,45,149,26,226,247,41,238,246,125,58,119,222,+ 113,28,33,43,106,15,229,100,72,64,10,48,205,201,93,180,239,90,2,139,22,35,111,244,+ 194,188,253,1,104,157,175,121,37,123,86,177,182,208,187,147,140,10,154,114,155,219,198,178,+ 178,114,35,240,129,169,79,82,94,24,118,127,86,187,120,216,255,120,133,5,138,78,128,82,+ 104,141,184,67,238,225,1,192,177,68,76,174,82,15,21,138,236,59,42,46,180,11,205,16,+ 161,63,124,163,200,35,95,229,24,146,223,131,90,41,245,136,220,130,252,141,185,117,8,105,+ 130,223,89,173,101,191,147,45,98,133,62,183,14,195,15,111,182,164,88,27,74,125,207,58,+ 2,248,179,105,67,53,77,31,253,78,193,250,25,183,204,2,207,110,186,206,24,12,34,213,+ 0,43,199,142,124,174,22,0,6,5,28,32,35,18,14,27,39,34,31,18,22,39,45,41,+ 18,23,29,26,29,74,71,54,188,237,37,123,94,204,98,11,162,113,169,163,202,184,97,59,+ 19,233,171,52,229,238,54,26,183,117,8,227,154,27,213,168,248,109,11,223,153,137,138,244,+ 147,166,105,88,161,80,51,92,182,43,129,67,169,161,110,192,232,143,231,47,75,176,8,238,+ 187,76,135,246,29,13,217,26,68,156,73,201,131,205,167,208,165,150,204,241,236,213,131,78,+ 49,59,54,0,194,117,100,73,35,223,104,94,133,183,146,199,0,76,149,38,142,4,247,190,+ 34,51,105,164,163,49,188,204,157,219,62,20,221,249,5,235,79,71,170,162,237,186,139,242,+ 217,153,99,119,141,38,225,224,209,160,233,83,191,95,71,139,55,194,36,71,109,78,14,4,+ 226,143,199,241,23,75,92,195,31,217,236,132,124,218,194,154,232,203,255,150,27,216,220,243,+ 85,125,21,157,42,104,255,53,166,18,213,46,74,174,109,83,52,5,58,95,142,205,131,188,+ 130,237,201,151,124,137,213,79,73,217,136,7,110,126,198,62,15,189,232,170,58,120,245,208,+ 37,89,174,17,120,145,47,105,241,38,132,105,13,72,22,28,46,224,203,87,254,162,5,28,+ 142,98,245,119,41,8,146,154,110,208,156,200,177,241,241,133,238,89,78,103,47,35,13,247,+ 164,246,77,172,189,186,17,131,152,190,156,53,116,114,164,69,140,105,242,56,182,151,239,103,+ 58,109,26,197,221,200,126,58,74,20,193,174,41,190,76,85,119,241,45,55,24,102,255,103,+ 222,64,113,48,135,176,90,217,69,12,213,52,162,25,93,81,151,74,46,17,59,124,43,178,+ 18,89,147,34,32,98,182,109,164,122,244,106,246,210,128,16,254,211,47,236,106,74,129,88,+ 77,168,187,165,56,27,43,131,9,137,70,101,40,156,175,233,172,65,54,77,19,64,111,74,+ 60,97,243,249,54,137,147,226,218,36,53,97,173,165,39,159,251,196,210,61,117,179,23,0,+ 5,4,24,25,29,21,19,15,23,21,45,34,33,10,6,37,35,41,18,36,41,42,74,65,+ 54,188,237,37,124,88,173,0,102,149,60,39,202,116,211,218,158,129,7,27,120,158,211,220,+ 59,121,218,88,87,236,244,12,15,195,56,35,97,97,7,77,151,250,82,164,24,223,131,167,+ 82,74,108,241,13,133,66,249,170,68,234,221,255,198,165,214,151,13,201,225,125,169,136,232,+ 85,225,115,233,8,253,197,198,246,223,8,180,165,178,164,140,87,81,236,100,242,101,77,49,+ 202,166,19,186,138,68,119,75,79,107,85,33,247,243,190,222,107,213,80,180,59,129,140,73,+ 116,200,99,132,222,248,71,72,130,220,129,101,248,226,36,132,122,0,126,194,251,252,193,127,+ 39,96,115,228,121,242,133,136,148,100,4,58,171,105,37,0,55,18,237,231,99,44,188,139,+ 76,118,199,164,134,73,74,56,179,82,55,169,94,3,6,43,163,167,80,129,92,242,164,68,+ 30,210,126,1,248,222,41,162,74,112,101,188,253,169,194,49,136,103,250,248,3,246,253,205,+ 72,194,48,1,146,103,208,201,146,161,137,10,189,146,166,197,35,87,227,68,89,154,37,149,+ 44,230,223,52,195,103,191,111,25,147,104,117,29,241,132,99,129,85,52,160,28,37,153,157,+ 216,112,50,129,191,64,174,139,5,179,205,157,194,228,75,175,21,87,223,192,218,116,157,234,+ 63,176,58,107,57,26,252,200,223,72,94,241,186,123,27,216,159,50,23,175,91,215,193,168,+ 213,172,195,69,137,41,82,172,183,205,189,123,214,59,133,160,53,252,60,189,109,141,174,185,+ 34,208,207,170,115,200,30,62,55,69,12,97,59,187,195,150,21,173,249,198,126,34,250,150,+ 178,129,62,154,252,33,184,148,245,246,166,193,92,138,130,157,53,143,18,252,68,97,59,123,+ 125,226,28,107,203,36,74,228,100,223,106,179,165,119,206,22,0,6,5,39,34,38,13,26,+ 24,35,32,30,14,5,7,7,39,41,41,16,23,35,41,84,71,55,191,16,158,71,221,0,+ 237,204,131,84,101,233,120,210,175,55,83,180,108,176,192,197,109,34,70,230,176,101,98,120,+ 153,110,223,60,190,206,131,53,157,29,143,64,178,93,161,19,65,119,55,49,95,105,113,249,+ 216,63,164,96,4,94,96,220,42,239,131,139,253,116,175,25,56,225,147,169,182,40,112,185,+ 89,32,149,103,130,47,194,82,221,159,33,41,219,244,54,114,109,50,75,65,133,126,31,41,+ 24,131,27,137,173,251,251,25,136,210,148,44,11,225,135,231,73,215,190,169,207,248,140,255,+ 150,246,13,142,114,98,62,148,193,66,206,228,227,132,96,144,85,81,30,173,247,1,0,22,+ 244,185,79,182,248,120,156,59,221,207,155,113,226,239,147,225,183,249,122,46,27,32,182,54,+ 69,189,88,131,99,123,22,239,252,54,188,132,126,37,186,175,119,95,222,157,168,248,227,249,+ 89,168,158,84,91,97,105,64,57,135,94,221,10,156,133,197,111,124,97,100,228,176,183,163,+ 40,69,217,29,97,231,157,37,102,11,123,110,172,108,105,29,153,141,181,182,236,100,158,89,+ 236,178,100,181,186,100,144,29,217,28,201,187,69,124,24,168,108,94,60,16,5,162,224,252,+ 172,102,110,77,5,249,163,77,236,216,246,188,188,41,215,10,28,230,131,66,145,26,142,236,+ 184,248,109,12,187,196,147,72,29,234,88,182,132,67,114,185,74,110,254,55,99,23,126,72,+ 10,6,204,181,132,109,125,58,253,249,214,56,34,108,73,215,129,23,121,106,161,221,176,5,+ 112,181,182,124,162,97,122,20,132,139,226,118,46,96,228,234,68,166,141,46,157,150,185,115,+ 118,173,170,92,34,144,228,189,90,195,110,55,59,44,2,108,100,174,110,105,164,246,16,20,+ 82,131,182,220,173,19,87,247,204,11,66,160,33,170,52,22,5,179,147,184,25,46,22,175,+ 44,128,4,55,125,130,13,13,102,88,186,52,243,78,192,52,88,217,158,26,115,249,63,71,+ 179,180,235,0,168,242,144,115,187,75,65,104,13,104,102,151,207,225,158,158,97,222,29,0,+ 88,170,25,144,198,66,100,43,168,133,98,190,87,197,232,151,13,250,19,51,149,203,100,36,+ 22,0,4,5,21,24,30,19,20,11,12,20,40,51,37,19,9,36,41,39,17,30,43,88,+ 76,60,194,237,37,123,250,24,31,245,178,87,167,71,177,69,21,22,50,60,187,150,39,242,+ 152,117,142,43,174,26,109,162,179,220,13,164,77,60,234,100,227,18,55,176,23,132,188,152,+ 75,120,181,187,76,41,251,164,222,137,22,222,49,87,156,178,51,218,161,224,128,226,102,80,+ 147,124,249,108,254,86,199,27,198,243,213,177,103,254,13,51,234,91,60,229,140,164,172,198,+ 49,40,61,41,194,221,250,17,31,220,255,161,209,49,247,7,213,111,183,2,13,3,216,43,+ 100,1,17,194,210,237,59,48,165,88,208,104,34,132,123,186,153,184,172,244,4,60,227,120,+ 87,195,206,52,24,93,94,37,165,177,191,229,81,251,79,235,130,91,107,148,142,137,88,237,+ 151,30,118,215,26,105,99,237,206,36,89,239,166,254,29,143,106,106,141,156,185,117,99,39,+ 1,191,67,249,248,148,43,209,117,49,32,252,164,82,67,216,186,237,111,12,34,236,10,125,+ 225,72,120,55,60,45,81,121,191,42,28,232,51,121,19,198,19,163,104,241,15,59,114,47,+ 222,198,224,129,183,147,149,140,23,73,232,6,86,53,203,71,112,184,96,215,142,114,163,75,+ 49,254,230,43,204,79,103,98,175,113,30,230,178,95,173,33,229,205,55,46,33,24,224,228,+ 38,90,240,124,128,9,239,69,207,135,223,67,189,255,138,21,117,112,170,163,78,33,7,41,+ 138,207,241,211,185,47,55,221,101,105,124,62,210,8,168,53,216,63,139,87,102,199,4,166,+ 92,8,59,252,58,102,62,155,220,223,173,77,215,70,117,4,112,66,184,110,134,231,65,90,+ 33,45,114,30,235,237,68,114,202,60,80,250,135,41,212,15,90,138,201,218,193,121,26,202,+ 16,82,126,84,221,205,211,192,90,198,191,99,202,173,41,76,82,114,11,243,87,106,17,112,+ 95,107,185,35,4,114,205,217,44,6,138,148,130,136,37,43,105,123,103,201,188,171,158,65,+ 156,80,211,200,102,10,52,161,255,18,201,255,209,15,221,99,60,159,120,91,208,185,196,230,+ 54,226,151,45,251,7,165,149,132,103,92,90,196,124,22,0,6,5,21,23,34,31,38,28,+ 35,21,28,14,15,9,7,9,33,40,37,18,30,81,97,77,24,190,213,121,94,221,67,161,+ 166,200,179,57,77,104,148,170,127,235,155,84,121,178,157,209,189,1,88,9,74,112,169,239,+ 204,142,252,158,68,20,18,65,81,80,130,73,171,206,196,6,182,241,83,233,135,44,101,181,+ 76,235,190,145,13,180,118,113,16,135,80,104,29,92,239,69,29,99,8,50,24,91,200,60,+ 8,187,19,54,5,49,147,154,150,88,16,122,89,182,56,216,130,151,97,142,2,123,110,53,+ 56,123,192,131,79,72,255,63,206,78,78,60,173,208,147,222,35,208,107,238,72,131,107,112,+ 182,147,221,34,58,26,81,53,170,57,53,252,172,47,106,175,184,220,153,228,135,5,120,40,+ 65,156,9,88,12,191,80,93,89,190,223,86,233,99,209,118,32,173,28,181,167,101,155,184,+ 241,73,203,111,70,89,206,50,132,226,130,199,145,65,84,21,61,48,127,188,70,77,218,22,+ 34,32,30,196,70,237,184,44,218,119,191,151,133,236,246,211,63,163,111,196,87,255,50,204,+ 211,61,0,224,121,23,41,8,155,254,106,5,173,108,53,72,10,154,149,113,51,139,68,40,+ 222,111,0,180,124,40,122,169,79,21,168,113,251,53,197,253,39,7,66,67,12,183,147,129,+ 80,76,28,182,242,20,242,57,129,82,81,243,87,131,108,136,229,209,112,187,208,26,46,71,+ 194,197,27,187,237,144,145,197,51,193,109,112,46,134,187,12,223,59,254,50,3,53,83,254,+ 87,91,210,2,92,189,149,85,70,202,135,160,232,71,143,112,219,241,248,18,40,210,189,165,+ 176,186,172,13,160,55,192,120,46,232,42,92,251,116,90,48,10,186,54,245,46,51,20,50,+ 74,61,87,14,72,98,73,125,210,15,235,240,117,143,58,5,177,92,76,62,39,35,152,139,+ 196,98,84,248,168,71,223,254,49,222,191,21,111,194,160,141,50,201,35,1,145,127,214,98,+ 231,20,71,241,196,199,103,167,55,206,230,175,111,235,157,87,195,148,175,254,22,0,2,7,+ 21,31,52,55,49,21,8,34,35,42,11,11,10,11,48,67,66,33,18,42,28,198,135,135,+ 120,234,58,40,5,73,61,246,157,56,77,200,16,243,24,251,61,4,154,108,33,1,132,92,+ 206,74,252,148,123,225,207,190,19,94,117,210,99,23,156,18,228,162,139,156,26,52,125,150,+ 134,98,54,159,215,76,232,198,46,137,139,167,204,61,51,161,173,176,39,139,101,129,191,96,+ 6,186,153,57,235,123,7,90,5,124,17,205,184,140,241,157,167,219,14,82,88,159,163,192,+ 146,130,163,183,131,101,178,3,27,249,69,30,180,232,106,252,203,98,108,220,254,198,174,0,+ 26,114,163,226,158,146,234,113,13,100,65,111,16,181,128,87,245,208,182,8,126,209,232,37,+ 102,72,188,147,210,217,191,121,23,125,107,52,189,204,231,175,0,48,33,224,86,29,185,104,+ 88,93,110,20,154,209,191,186,187,218,238,88,96,10,183,233,87,209,241,242,224,246,236,186,+ 51,85,206,223,169,61,139,54,184,189,108,130,68,50,75,95,119,247,223,74,8,232,17,226,+ 28,224,186,206,80,43,242,32,247,135,181,20,82,52,250,196,90,234,136,220,62,157,150,5,+ 214,199,157,50,231,64,148,164,19,205,27,110,189,105,28,248,226,132,63,156,19,8,52,24,+ 13,36,196,210,77,105,26,157,106,180,34,157,163,137,83,132,104,209,4,109,159,2,100,34,+ 102,183,197,102,50,212,124,241,40,34,54,152,127,115,195,99,122,32,132,210,176,215,4,28,+ 83,133,144,111,26,205,218,31,131,134,253,86,22,0,2,4,10,22,22,54,56,52,18,3,+ 3,34,35,37,10,11,17,77,75,73,18,36,27,198,141,135,120,234,58,102,81,205,61,246,+ 157,81,148,231,43,92,84,78,39,4,235,22,170,159,1,249,208,201,84,38,102,116,163,182,+ 49,99,6,153,27,185,64,29,197,150,46,178,73,40,78,104,204,138,184,12,150,157,154,247,+ 191,89,19,183,98,235,66,92,34,101,10,79,100,113,173,128,25,9,181,84,83,44,49,177,+ 88,170,123,139,104,201,240,210,86,241,250,192,255,160,97,170,50,98,179,75,46,201,201,77,+ 98,247,221,189,191,232,9,95,1,140,255,171,113,195,200,121,56,54,166,47,70,55,41,16,+ 28,127,111,131,55,36,120,184,208,151,15,145,185,128,69,138,113,233,82,237,160,68,125,89,+ 54,98,73,247,26,123,125,174,5,92,116,76,155,116,71,152,190,66,17,135,29,135,254,79,+ 237,181,57,26,130,219,216,65,17,86,165,84,222,247,142,38,217,5,103,172,131,44,158,101,+ 36,210,22,227,43,12,36,43,17,244,49,74,169,67,32,23,216,88,213,211,99,217,170,139,+ 9,75,76,215,199,36,184,232,237,146,126,192,144,50,146,6,169,108,10,146,209,4,5,195,+ 169,41,98,116,14,40,154,237,51,65,154,206,62,181,139,54,199,210,251,73,1,36,201,117,+ 106,153,154,154,232,242,127,223,85,149,215,48,50,253,140,255,212,129,62,250,244,80,213,63,+ 131,150,211,0,222,101,147,70,226,73,238,76,62,83,230,213,166,239,182,231,237,137,156,243,+ 107,134,155,31,151,217,0,118,99,64,39,79,126,149,10,28,140,210,59,101,157,247,152,38,+ 202,121,192,22,0,9,7,33,63,64,48,11,10,37,44,45,20,26,48,64,50,27,9,18,+ 24,24,19,10,113,21,135,120,233,238,173,10,221,207,22,8,156,249,119,228,190,31,78,128,+ 192,15,110,67,185,20,214,226,137,210,80,86,112,84,64,23,114,72,219,185,133,165,163,13,+ 59,184,154,251,153,185,59,24,14,19,221,6,245,135,68,201,208,48,139,36,115,195,209,159,+ 133,94,188,225,0,142,136,126,45,188,17,212,254,244,203,8,137,235,236,5,149,112,154,102,+ 97,250,222,129,93,15,46,236,179,223,83,5,43,23,9,204,228,245,207,140,175,155,64,194,+ 160,23,192,70,112,117,193,214,203,117,139,140,53,222,174,136,42,7,243,1,171,14,74,219,+ 53,182,156,76,173,152,20,195,193,7,57,202,150,97,228,23,66,166,205,149,40,228,163,179,+ 161,138,35,72,177,232,100,47,22,255,27,189,95,141,75,3,169,50,111,247,151,64,79,57,+ 102,73,217,177,168,67,35,192,72,25,246,34,127,203,66,56,244,238,82,176,211,208,28,218,+ 193,1,45,173,8,185,116,17,103,73,104,187,222,179,185,140,247,197,33,190,187,64,48,184,+ 29,113,236,162,152,42,70,136,60,14,93,187,186,54,149,34,66,112,89,244,14,124,140,81,+ 163,86,253,132,144,17,142,233,155,51,68,92,34,105,102,198,28,222,28,78,15,73,252,113,+ 8,136,72,226,203,44,0,163,216,21,236,119,185,138,180,157,72,135,101,38,250,164,177,44,+ 167,99,89,50,114,210,42,213,249,2,11,22,52,150,93,79,20,80,133,48,90,61,196,226,+ 38,43,241,155,189,159,125,35,143,123,23,246,254,49,74,243,251,112,86,171,183,214,196,164,+ 6,106,108,197,33,190,116,75,187,221,137,175,149,222,236,248,115,116,238,252,68,117,237,199,+ 248,168,76,11,77,202,66,96,8,240,209,28,120,203,35,122,170,204,22,67,143,108,29,133,+ 124,211,12,192,101,131,118,211,40,185,122,26,11,213,167,64,44,20,0,2,8,29,70,72,+ 55,35,36,41,22,15,11,10,17,35,62,53,33,9,18,34,173,228,135,120,236,17,10,208,+ 223,102,210,96,139,130,79,84,2,20,10,206,56,58,183,127,107,208,235,116,32,0,238,231,+ 208,172,98,3,11,230,250,90,144,188,45,63,165,224,0,203,45,199,156,97,171,43,253,189,+ 177,145,63,49,211,159,140,4,42,161,135,29,195,223,217,55,80,40,195,85,28,112,242,219,+ 251,214,185,238,206,102,10,17,93,94,185,255,211,142,152,24,137,57,55,27,7,155,217,158,+ 228,146,146,237,126,205,54,0,152,145,24,34,200,111,16,110,145,122,137,44,180,221,110,231,+ 5,201,196,23,133,147,193,15,110,176,173,229,136,161,138,112,159,91,67,44,232,235,193,250,+ 201,216,217,74,32,212,113,199,109,31,215,24,227,207,80,44,231,203,103,25,117,229,95,98,+ 118,240,145,104,170,89,101,24,43,143,124,173,147,32,81,160,172,235,79,78,36,176,74,84,+ 31,186,22,94,28,205,10,40,144,40,60,14,30,37,23,179,177,238,31,248,31,198,140,38,+ 235,196,92,211,245,1,252,213,195,211,36,254,42,5,245,150,208,205,31,53,201,238,222,236,+ 174,45,54,197,73,125,205,33,112,96,111,238,78,173,119,165,163,36,218,178,59,226,67,179,+ 38,59,177,177,171,14,216,178,76,158,233,72,16,66,161,46,4,160,212,163,83,230,251,155,+ 65,167,137,124,48,85,196,215,14,116,77,55,163,57,1,60,245,255,252,113,59,250,7,107,+ 201,210,162,80,59,129,213,192,147,175,9,97,156,93,199,19,0,7,7,29,27,31,21,42,+ 41,49,42,43,30,18,15,72,67,64,10,18,34,137,40,135,120,233,238,206,34,221,207,20,+ 244,223,252,251,79,32,143,145,245,29,146,113,123,207,233,65,59,107,16,221,58,189,193,72,+ 12,38,140,204,13,134,193,202,80,207,42,60,107,3,41,133,52,137,145,88,255,180,109,38,+ 255,111,183,100,166,190,79,11,143,184,167,192,129,35,128,123,20,148,200,242,188,196,84,44,+ 240,148,2,143,105,16,174,12,6,79,101,0,16,165,252,100,255,52,50,51,193,162,157,243,+ 148,111,106,49,15,229,200,58,165,107,196,47,99,112,38,28,126,39,3,246,184,50,163,206,+ 7,121,56,34,78,226,123,145,23,235,231,97,98,208,191,164,248,161,254,116,182,201,102,184,+ 134,250,182,196,52,132,91,6,188,230,98,106,143,77,139,214,61,59,148,106,196,145,253,249,+ 190,146,63,166,116,254,68,98,173,141,130,125,93,25,87,140,47,175,163,206,212,44,218,63,+ 15,239,97,201,160,204,15,69,230,5,166,67,2,171,142,189,87,218,81,122,217,69,18,90,+ 34,80,189,129,14,163,16,220,190,11,191,15,104,56,181,26,49,237,101,101,102,7,252,27,+ 91,174,38,48,10,86,180,83,243,192,57,134,109,253,100,58,175,129,243,95,237,151,217,165,+ 248,36,33,198,77,252,143,132,135,222,33,178,32,232,235,40,99,22,48,72,213,78,14,209,+ 53,243,106,118,42,182,104,125,85,126,158,209,57,230,36,165,159,59,102,41,26,126,251,9,+ 85,40,215,104,137,81,239,92,223,161,41,229,222,71,128,218,104,153,197,49,143,28,52,147,+ 3,190,201,50,184,225,78,144,64,177,241,94,149,141,108,156,114,86,140,80,86,100,221,145,+ 133,98,236,128,56,252,84,41,188,10,41,61,222,249,15,193,178,188,107,7,16,142,114,86,+ 179,189,216,79,220,48,90,161,100,164,235,181,250,0,185,7,77,143,198,137,121,22,0,8,+ 6,10,26,26,70,48,49,8,25,24,30,19,21,18,12,48,67,66,33,18,36,28,198,141,+ 135,120,234,58,71,43,141,61,246,157,56,77,199,84,99,66,249,226,224,106,92,92,97,152,+ 227,36,157,166,129,32,213,234,249,33,6,78,20,32,163,89,153,80,14,251,128,13,146,93,+ 121,57,134,111,154,176,234,40,64,147,57,98,189,244,0,48,68,42,191,214,251,40,172,75,+ 171,200,74,86,189,112,36,106,100,12,38,203,57,14,198,17,226,252,137,87,254,251,165,30,+ 94,67,63,136,164,147,38,63,212,76,60,29,136,237,169,103,57,227,157,149,2,49,108,219,+ 202,123,169,54,204,63,112,173,28,193,162,146,134,242,58,213,127,111,95,127,194,29,153,155,+ 195,180,205,49,199,235,154,210,6,75,100,205,47,149,171,211,198,54,143,119,124,20,52,90,+ 124,125,78,189,161,80,160,17,73,174,151,147,97,188,173,117,186,218,83,192,243,84,101,240,+ 89,128,23,187,245,105,162,97,159,1,193,226,246,135,20,44,99,181,84,166,75,128,163,66,+ 11,77,219,175,247,87,71,131,172,121,175,155,128,185,168,39,201,156,8,170,4,114,50,166,+ 218,42,3,127,46,50,156,41,149,204,189,107,38,105,245,233,210,78,80,111,252,162,251,59,+ 211,77,215,22,97,159,171,56,187,15,153,189,226,220,246,24,133,59,193,6,231,74,203,6,+ 191,146,26,42,108,229,254,87,249,117,39,17,73,194,9,185,45,87,49,181,131,235,192,236,+ 142,47,235,49,107,34,229,169,60,126,140,88,166,122,225,40,44,254,180,145,193,130,82,20,+ 0,10,20,23,24,50,55,46,10,5,4,36,41,44,11,14,75,75,73,18,42,27,127,15,+ 135,120,233,238,239,58,221,207,20,240,225,45,6,255,101,2,10,195,211,69,201,109,84,196,+ 205,212,114,188,16,148,236,125,199,28,37,50,136,37,190,61,173,50,163,216,222,247,175,111,+ 127,142,121,253,190,171,238,189,47,207,36,241,117,184,228,133,169,190,237,155,217,25,241,54,+ 46,59,111,159,19,231,161,53,94,226,87,79,145,87,49,215,145,234,131,26,227,101,37,184,+ 2,113,98,81,152,213,44,20,58,72,92,43,133,227,18,26,48,34,220,204,168,31,164,165,+ 184,160,151,142,210,220,208,202,180,145,219,149,71,120,34,128,195,46,232,199,74,136,13,28,+ 197,95,173,216,250,39,234,124,121,14,182,179,248,42,9,198,4,144,126,44,221,105,215,129,+ 58,135,129,50,236,145,203,177,80,204,6,52,0,53,15,154,88,175,15,131,34,160,49,74,+ 226,28,204,166,20,157,159,46,232,194,246,141,175,73,99,75,242,253,26,69,92,96,21,174,+ 118,53,33,130,36,228,232,70,217,145,87,51,109,78,148,253,166,26,13,147,71,60,106,61,+ 14,45,132,212,184,105,25,228,253,168,114,186,101,90,44,198,130,189,153,147,119,184,147,68,+ 221,144,216,152,20,105,193,64,5,233,136,6,185,239,125,3,188,200,44,103,151,3,233,219,+ 111,117,22,113,105,235,10,75,214,72,141,96,228,146,228,94,53,69,244,99,179,114,190,62,+ 0,245,44,194,157,149,198,227,62,249,68,53,183,198,70,10,25,169,63,86,138,47,151,9,+ 28,177,88,219,5,24,167,220,249,16,18,0,9,8,34,67,72,50,42,44,45,18,51,74,+ 68,29,10,17,27,34,16,228,30,135,120,233,23,253,203,101,35,122,248,218,95,4,162,159,+ 112,107,1,220,84,216,236,196,91,128,81,255,156,26,201,60,75,131,246,158,215,42,154,109,+ 136,59,246,25,136,95,210,113,59,222,150,237,109,252,254,163,25,2,132,153,125,107,24,220,+ 253,182,89,197,179,14,1,136,22,206,1,230,62,9,89,81,247,102,170,222,141,97,168,136,+ 178,94,174,210,213,248,108,27,77,183,252,70,223,227,219,70,74,165,224,65,26,0,131,216,+ 82,189,192,229,171,173,16,145,113,205,67,216,84,235,254,13,99,255,164,101,137,165,113,246,+ 38,205,27,179,111,47,54,21,66,113,237,86,120,78,145,64,37,214,145,61,92,119,246,202,+ 121,45,51,6,198,135,115,61,32,175,162,45,37,139,171,159,204,31,206,171,11,229,34,153,+ 10,45,187,3,104,173,55,31,80,116,59,234,171,159,64,53,185,33,164,179,67,222,85,32,+ 79,97,235,172,66,170,210,131,168,149,212,244,163,52,24,241,65,206,146,246,225,168,147,169,+ 170,248,221,22,54,95,11,128,148,167,21,238,191,68,3,82,229,42,151,140,253,251,208,156,+ 167,240,82,116,100,152,31,175,172,163,123,96,129,151,182,202,52,172,87,165,73,195,17,181,+ 129,202,41,227,114,152,206,123,252,72,193,38,220,102,7,225,93,142,186,21,239,230,35,134,+ 40,210,169,69,119,209,199,134,241,120,224,100,202,91,32,17,196,128,84,9,145,25,177,166,+ 45,50,218,169,18,52,81,186,24,88,204,110,244,114,165,78,10,96,60,225,228,218,214,22,+ 0,6,7,16,25,24,62,51,50,27,36,42,22,11,7,9,48,66,65,26,5,9,18,34,+ 245,92,135,120,234,84,162,185,255,251,206,250,88,109,254,154,206,205,20,168,19,123,121,51,+ 13,72,194,92,123,199,227,229,24,222,105,239,137,33,53,210,14,115,121,203,31,148,16,110,+ 150,126,15,187,88,139,248,234,67,124,92,110,143,48,172,119,11,178,110,75,191,154,222,168,+ 252,201,233,87,103,133,34,80,112,238,81,11,218,4,17,224,221,184,146,218,113,39,236,190,+ 115,148,64,220,138,21,234,55,237,145,49,176,176,6,6,209,95,176,31,97,114,130,220,28,+ 178,37,2,233,165,161,174,185,224,238,42,243,218,219,96,110,204,205,0,62,158,65,61,164,+ 167,54,102,111,169,148,189,164,152,195,86,168,229,209,13,155,161,30,166,159,57,75,4,255,+ 157,58,98,3,151,227,122,251,119,28,31,23,78,130,106,65,183,206,195,136,169,213,44,75,+ 57,42,215,216,176,195,209,183,189,209,212,47,223,58,253,120,99,151,47,203,62,233,6,200,+ 199,251,140,202,235,252,104,11,96,67,121,169,156,79,128,55,220,228,122,23,207,236,107,64,+ 37,160,81,14,235,59,112,174,42,118,40,152,68,39,245,86,10,77,191,198,74,41,193,120,+ 74,46,185,6,221,72,174,185,120,246,94,166,165,115,141,218,82,250,138,33,245,181,167,11,+ 16,217,226,147,169,160,114,28,162,177,127,175,23,36,126,100,196,9,22,0,10,31,80,72,+ 50,27,26,34,19,19,11,10,44,43,45,14,31,23,26,18,26,35,17,153,203,135,120,234,+ 17,233,119,96,14,241,103,132,114,211,44,8,238,139,54,66,130,47,87,250,14,255,36,84,+ 168,253,155,15,6,28,220,102,232,21,230,20,77,18,28,152,134,244,179,139,139,214,242,193,+ 93,219,177,39,104,40,28,106,204,28,151,226,111,66,251,227,42,73,32,230,124,129,98,82,+ 237,247,173,209,216,77,94,232,94,156,230,204,91,2,42,196,12,235,63,241,88,52,163,165,+ 242,93,139,114,198,27,96,30,182,24,174,134,80,237,216,18,62,15,142,98,10,168,107,251,+ 69,37,193,119,56,233,126,229,70,235,42,182,184,15,159,86,209,205,52,22,67,90,172,244,+ 202,48,203,105,233,224,225,151,145,116,46,245,177,81,67,80,22,14,111,29,127,204,213,89,+ 49,184,75,80,76,38,221,120,202,96,181,107,59,85,252,219,172,198,64,128,192,7,234,219,+ 251,74,113,42,103,108,184,104,166,9,251,81,39,249,78,109,144,38,0,163,49,16,243,93,+ 149,85,36,185,140,155,155,127,174,157,245,33,153,34,8,221,192,32,18,238,63,149,78,191,+ 28,13,86,81,164,134,25,3,61,101,169,248,21,222,198,125,28,110,94,101,107,0,192,95,+ 191,195,89,161,50,214,73,193,62,24,51,102,214,156,48,120,60,55,3,14,50,117,21,154,+ 80,180,19,208,171,22,209,17,1,199,222,220,60,136,0,171,94,34,33,14,176,195,64,126,+ 239,23,167,125,145,133,8,230,74,194,157,31,118,46,92,127,133,242,80,74,121,212,187,203,+ 214,163,113,103,238,239,220,194,5,222,119,99,1,70,241,135,231,93,102,220,216,45,17,218,+ 40,232,208,9,219,99,163,18,166,225,116,249,4,153,234,255,93,127,141,188,5,51,38,108,+ 69,199,49,73,22,0,10,31,56,66,43,26,8,39,36,36,10,11,16,12,48,60,65,27,+ 14,18,24,36,17,155,203,135,120,233,121,208,247,137,156,156,111,122,138,187,31,97,2,216,+ 129,202,40,220,130,199,156,230,52,38,246,108,14,37,250,193,193,197,249,68,38,154,182,101,+ 21,215,68,108,164,127,240,19,245,53,150,172,171,156,125,177,164,123,66,89,234,4,255,65,+ 242,240,23,34,246,212,134,246,98,164,115,65,225,109,115,62,165,219,202,201,26,228,158,158,+ 79,181,74,64,203,127,245,146,40,170,204,149,153,205,234,99,48,113,21,143,244,127,235,186,+ 133,216,105,54,155,251,182,99,212,60,53,160,160,39,56,0,15,159,134,164,118,75,209,20,+ 255,11,52,98,233,30,128,36,198,190,10,1,172,206,21,226,249,141,160,131,19,176,131,249,+ 241,192,96,18,81,13,110,125,0,73,111,125,133,67,97,218,150,20,204,81,20,23,172,6,+ 209,152,164,236,18,156,72,227,7,177,60,150,7,241,86,239,213,220,49,83,127,66,119,227,+ 155,209,132,232,99,232,144,55,35,53,129,105,244,3,59,174,160,217,46,153,92,40,188,79,+ 16,204,131,111,251,230,40,151,187,33,29,160,160,128,201,97,107,230,163,98,143,101,148,94,+ 89,57,157,50,20,205,209,184,217,41,54,56,85,179,30,195,175,162,236,62,26,66,33,210,+ 167,30,193,97,126,143,106,234,166,167,221,41,174,231,174,207,195,138,134,62,145,164,110,197,+ 105,62,92,47,180,156,195,159,107,96,95,51,84,249,84,80,200,105,26,77,153,23,112,100,+ 35,119,22,110,95,249,86,56,128,167,48,106,253,146,45,13,139,230,7,122,200,150,37,66,+ 15,251,115,193,153,46,199,181,44,200,177,171,66,150,179,29,221,157,186,60,114,193,210,244,+ 204,235,223,12,58,226,203,174,72,59,126,24,59,217,197,253,103,157,61,55,169,143,104,22,+ 0,9,7,17,24,24,36,43,48,30,8,34,35,42,13,18,12,48,67,66,33,18,42,28,+ 198,135,135,120,233,191,94,168,223,150,122,88,248,2,130,153,23,97,2,243,62,97,127,133,+ 26,191,117,48,7,3,131,107,210,245,20,103,222,115,206,210,38,20,173,25,201,176,194,178,+ 48,28,238,91,19,51,211,176,85,33,238,40,34,135,201,87,135,119,79,118,91,109,232,20,+ 144,101,116,253,38,215,140,175,196,72,24,199,107,75,84,168,125,92,0,156,163,42,146,113,+ 207,160,6,236,213,155,66,136,220,198,167,93,177,58,154,123,197,95,35,59,49,125,193,154,+ 88,239,39,203,65,192,108,230,150,19,90,215,140,23,236,163,41,54,171,61,162,174,216,8,+ 246,24,51,218,126,148,196,38,175,3,49,7,199,240,16,38,83,125,208,67,37,99,238,214,+ 90,71,196,203,90,242,62,192,190,108,250,228,89,32,153,94,73,71,142,116,219,231,52,101,+ 44,166,18,200,195,30,185,192,238,182,159,170,237,145,5,145,186,232,47,244,196,43,12,230,+ 141,106,87,183,57,179,126,192,108,133,78,33,38,88,243,81,228,9,112,236,85,248,129,41,+ 100,237,114,244,58,120,16,135,149,215,204,90,250,112,238,184,245,204,111,121,131,222,18,125,+ 174,146,177,244,22,241,240,236,109,145,59,93,76,68,190,137,134,149,225,40,36,37,139,104,+ 111,0,110,240,143,93,210,229,157,107,229,171,224,235,243,18,88,254,14,180,60,221,164,80,+ 101,228,119,205,96,160,237,148,159,32,16,235,111,250,23,242,116,60,153,217,68,107,131,77,+ 147,92,155,102,96,190,236,39,217,28,74,59,220,127,78,120,58,4,44,162,125,97,90,234,+ 115,119,30,129,183,182,188,198,255,51,139,112,17,80,252,31,112,144,212,145,199,79,37,23,+ 0,14,29,58,61,73,52,47,24,44,40,33,16,16,26,25,34,31,32,22,19,21,16,15,+ 244,109,190,135,120,233,94,241,15,202,36,101,136,164,47,182,115,39,102,109,35,69,148,185,+ 157,111,167,242,50,156,115,74,46,184,16,86,153,18,76,185,121,184,186,179,190,152,112,143,+ 18,118,112,211,64,106,124,234,96,158,114,175,0,215,31,224,54,64,9,65,168,60,147,121,+ 95,251,149,118,182,95,45,7,84,111,233,39,82,109,2,187,230,143,87,107,128,130,110,4,+ 209,98,129,230,15,101,80,145,224,217,254,159,187,167,10,226,109,227,199,166,51,96,67,174,+ 185,176,194,62,214,249,211,176,190,63,195,6,146,10,107,180,31,27,45,38,255,8,245,5,+ 4,171,73,12,179,233,186,144,223,54,114,233,18,141,67,232,87,50,32,70,31,188,222,103,+ 138,255,195,51,103,101,226,196,233,133,79,7,154,129,169,126,20,184,243,214,164,194,231,102,+ 18,149,18,145,228,195,58,94,154,189,83,240,196,197,19,80,144,182,171,141,176,59,81,224,+ 132,255,73,155,188,62,79,153,95,135,235,235,4,96,45,161,208,218,94,55,6,151,15,228,+ 36,217,130,103,13,27,64,226,17,217,75,91,132,133,179,80,163,200,244,85,36,187,54,182,+ 9,68,92,61,176,125,121,133,14,172,152,25,248,162,248,89,31,37,21,212,106,23,7,70,+ 245,196,181,45,96,145,65,184,146,196,172,67,227,104,129,24,135,200,148,26,112,192,156,60,+ 255,34,58,164,237,157,175,211,104,148,5,90,29,91,70,240,180,47,46,159,92,30,91,198,+ 238,169,113,104,11,170,185,126,74,222,119,106,126,177,144,184,84,73,25,16,102,91,174,149,+ 168,18,179,254,193,11,171,151,120,244,211,78,142,156,213,138,135,179,191,109,114,31,149,19,+ 240,81,86,94,126,116,216,73,20,132,140,183,165,183,241,43,79,195,133,124,130,49,223,169,+ 203,20,44,154,75,237,229,60,251,56,228,193,48,212,45,178,216,109,21,38,49,87,152,14,+ 68,162,3,43,42,106,123,135,210,163,19,46,94,118,7,110,35,112,151,57,205,3,190,113,+ 252,194,70,220,91,96,153,203,11,103,201,237,122,103,62,51,129,152,68,34,152,68,22,0,+ 3,17,22,57,42,57,36,60,51,58,39,34,14,26,24,39,30,35,20,19,25,28,0,147,+ 122,135,120,233,128,76,159,203,248,50,202,161,181,54,73,212,217,170,118,136,238,130,121,16,+ 102,120,250,152,140,42,119,103,4,132,226,119,44,229,187,89,43,128,196,218,87,120,233,218,+ 102,179,135,196,219,105,43,215,226,205,207,126,239,157,86,131,63,61,114,245,214,248,53,127,+ 248,199,137,94,98,249,170,173,101,111,112,129,93,51,31,34,36,254,169,232,251,224,75,242,+ 201,29,12,3,61,121,231,148,21,44,217,85,26,125,189,205,148,181,115,11,117,68,234,252,+ 136,39,200,218,81,92,87,222,76,98,173,155,95,43,162,226,54,204,228,105,145,111,212,28,+ 130,165,152,120,124,188,41,6,4,206,141,6,180,85,12,114,67,34,65,211,246,12,60,208,+ 83,18,49,198,183,230,20,246,145,125,251,103,177,44,91,125,237,233,133,1,220,215,108,176,+ 6,209,104,88,116,38,24,209,31,209,105,247,144,232,230,229,186,250,242,180,114,130,219,27,+ 172,6,136,237,201,108,234,146,163,227,85,178,127,60,132,233,201,225,210,47,134,105,148,230,+ 216,102,168,96,205,25,16,77,37,4,35,33,165,250,42,59,221,20,62,156,160,125,224,161,+ 34,135,178,150,219,124,39,211,209,87,196,163,210,212,10,99,144,183,191,82,196,60,54,121,+ 194,78,79,107,140,220,156,141,242,42,90,126,39,167,132,174,224,162,29,39,57,99,94,3,+ 188,51,20,76,112,96,108,78,197,237,158,124,227,223,197,66,198,16,61,85,79,147,217,203,+ 186,112,255,94,161,43,163,218,21,21,173,72,154,160,2,121,239,63,29,79,68,143,166,71,+ 231,91,55,189,66,242,77,8,233,182,181,12,219,22,129,16,176,173,241,71,174,17,236,15,+ 126,175,79,217,221,143,136,161,100,14,255,193,158,72,38,232,177,179,117,113,161,189,195,105,+ 0,253,71,149,224,160,131,34,203,189,58,47,151,169,53,163,130,227,223,171,254,146,141,245,+ 176,104,3,20,43,172,244,197,209,31,143,243,150,104,194,96,182,83,110,224,72,131,204,95,+ 96,27,30,77,105,23,0,5,16,53,56,59,35,58,43,43,18,21,31,26,28,11,22,18,+ 40,35,34,14,16,29,9,159,125,135,120,233,195,3,191,204,237,192,199,155,129,7,203,104,+ 184,33,70,251,143,27,106,245,193,66,35,164,87,218,243,163,113,14,89,164,205,207,216,94,+ 39,16,157,79,129,98,173,119,35,226,209,30,30,200,221,168,79,147,211,202,46,76,112,164,+ 31,185,66,188,108,21,96,244,140,209,199,158,78,195,211,25,144,191,125,82,237,92,150,237,+ 249,138,161,149,4,237,4,203,62,252,234,74,110,183,70,119,142,11,155,192,95,165,50,152,+ 190,61,179,201,129,36,145,59,173,243,35,215,172,164,255,200,8,60,97,179,120,240,188,139,+ 201,57,252,66,61,212,152,178,190,17,195,245,179,148,241,67,49,141,187,247,143,35,36,79,+ 252,89,158,59,252,95,116,141,160,16,178,38,43,151,211,219,121,78,156,35,191,128,48,51,+ 167,115,40,207,238,71,162,24,182,135,5,9,68,171,133,106,126,210,11,52,77,26,0,230,+ 132,18,12,51,149,0,224,9,106,81,183,175,115,80,129,3,14,110,94,168,134,159,195,111,+ 176,244,131,223,80,16,210,121,61,136,163,140,91,60,252,220,137,206,99,208,168,114,66,17,+ 101,96,235,163,238,211,189,7,237,126,252,9,40,202,154,63,158,206,254,173,126,252,53,130,+ 46,175,18,126,106,157,188,173,249,66,90,181,105,249,60,139,175,171,200,244,122,107,178,235,+ 2,155,254,172,35,94,189,241,4,112,46,107,225,155,93,78,11,112,188,228,28,56,42,173,+ 203,171,192,141,235,14,238,27,42,29,156,209,50,48,110,35,86,155,215,204,188,75,60,128,+ 143,178,221,76,75,241,50,116,210,34,166,139,36,26,206,233,248,117,58,148,146,165,37,221,+ 196,222,211,201,35,29,191,251,170,101,144,218,243,250,221,249,66,13,206,154,105,73,18,236,+ 195,53,87,101,134,2,39,105,79,31,57,107,82,9,175,110,70,238,102,174,130,206,252,204,+ 179,4,66,188,225,193,81,4,23,246,149,224,180,204,214,149,97,99,19,233,223,209,214,32,+ 115,90,31,237,188,14,163,254,149,99,135,164,34,79,205,253,129,38,80,138,36,175,205,151,+ 46,128,78,232,82,141,252,30,41,137,49,129,83,119,87,22,219,82,163,199,108,185,213,38,+ 36,102,40,4,55,131,199,113,68,10,99,39,20,125,243,50,102,206,5,112,156,179,155,246,+ 128,89,48,176,239,36,73,209,3,248,23,0,12,28,49,45,64,56,65,35,47,35,31,18,+ 28,24,18,11,23,28,31,25,19,20,21,1,148,122,135,120,233,94,241,15,203,248,50,207,+ 62,21,54,94,2,113,78,18,211,24,179,241,61,94,118,21,118,15,103,230,184,223,107,144,+ 116,31,6,183,215,238,209,177,222,2,33,90,84,119,126,102,59,214,33,230,234,168,112,255,+ 201,203,9,82,119,48,90,140,209,148,25,82,24,73,89,225,231,176,82,128,48,13,154,74,+ 174,158,203,65,148,70,254,123,15,40,47,137,1,249,201,147,63,9,185,133,190,206,73,88,+ 31,234,205,88,173,165,116,51,0,128,247,206,166,7,105,112,6,92,183,177,124,231,252,197,+ 125,126,242,156,250,231,56,90,224,92,237,234,146,124,64,141,36,209,121,173,10,243,145,199,+ 41,193,154,12,124,19,195,248,187,0,212,222,95,94,43,195,76,181,120,91,246,205,155,228,+ 11,95,50,229,141,11,245,179,108,196,227,251,25,209,3,57,145,54,254,224,186,243,111,63,+ 116,193,31,201,197,193,94,142,213,253,116,145,182,145,70,223,119,135,46,223,91,227,74,62,+ 183,9,3,81,128,210,69,143,252,172,41,241,148,56,114,127,67,174,67,13,162,176,178,136,+ 34,160,121,206,105,83,59,27,247,47,213,95,215,248,15,224,89,195,149,76,115,159,2,66,+ 213,93,8,136,178,35,18,229,166,87,198,238,205,207,149,191,225,6,104,101,196,50,221,16,+ 247,2,212,136,119,100,85,61,20,252,103,155,241,7,241,130,212,47,248,238,230,167,226,43,+ 5,200,175,31,218,15,127,48,67,218,175,213,46,225,118,118,172,7,51,199,222,211,92,183,+ 129,55,114,232,74,74,71,174,161,107,23,173,170,79,169,152,66,107,224,197,25,147,227,238,+ 65,171,255,162,74,88,185,210,30,248,39,123,240,174,27,91,1,2,129,25,161,2,94,157,+ 8,222,183,242,224,200,80,158,255,18,240,21,210,6,75,58,110,242,69,141,180,96,195,12,+ 11,176,122,213,121,217,163,224,202,164,65,73,48,17,114,65,182,53,45,242,183,52,2,235,+ 30,154,246,180,235,0,116,27,242,229,213,24,54,242,250,163,191,124,0,7,251,33,195,72,+ 226,50,245,54,32,66,139,49,89,175,141,193,188,84,108,224,127,213,238,91,117,65,20,197,+ 126,67,15,187,47,189,14,110,219,236,62,133,100,170,155,77,45,206,36,103,240,146,12,129,+ 77,33,254,216,236,22,0,3,16,59,59,75,46,51,26,25,41,40,40,31,29,25,24,27,+ 32,22,23,24,23,253,108,190,135,120,233,94,241,15,203,248,32,186,193,169,117,236,136,197,+ 237,228,197,60,70,172,73,19,41,151,157,72,62,253,176,163,173,21,115,99,192,95,189,60,+ 248,214,241,202,201,131,218,76,190,81,218,107,204,227,133,251,242,118,16,53,34,68,74,222,+ 37,245,165,7,167,13,51,124,129,252,89,56,247,84,30,177,143,130,76,243,2,176,122,221,+ 59,78,51,47,16,76,130,64,250,231,205,118,247,93,67,69,168,50,204,70,98,23,82,88,+ 18,86,6,32,53,168,205,124,35,22,242,169,81,118,90,83,33,129,56,187,193,239,229,36,+ 67,92,87,231,207,108,173,150,29,71,139,132,96,181,171,222,198,211,222,222,231,18,67,192,+ 171,31,126,136,107,99,105,221,247,239,231,116,5,174,171,226,120,130,65,253,129,167,95,205,+ 71,45,58,217,120,16,76,214,152,253,181,89,190,173,94,219,184,74,91,43,231,171,68,163,+ 140,36,68,84,239,212,215,143,83,222,146,118,168,163,249,160,86,160,81,176,173,46,214,237,+ 102,112,132,40,20,79,241,145,246,110,45,91,75,241,164,23,212,108,127,215,250,111,69,72,+ 24,180,114,88,245,194,20,102,211,120,204,78,211,128,251,43,61,216,140,102,207,185,239,156,+ 117,69,97,95,147,64,116,57,96,171,223,146,70,177,77,255,41,149,92,184,157,197,111,219,+ 244,12,188,169,197,137,47,248,24,90,131,210,112,32,88,2,249,208,217,205,162,120,4,78,+ 157,231,188,166,46,155,211,195,129,251,221,66,168,104,29,78,220,143,197,149,75,199,203,72,+ 31,160,28,15,175,208,173,18,75,176,124,97,246,141,100,108,125,0,208,7,100,94,104,83,+ 216,121,187,33,46,190,199,139,79,131,68,99,177,131,238,1,41,190,31,186,117,234,214,88,+ 172,9,213,150,209,200,5,213,37,201,175,191,202,81,223,49,218,255,4,187,247,178,233,15,+ 47,213,53,138,236,21,49,121,30,198,98,133,73,22,0,18,30,55,61,61,67,51,40,43,+ 40,37,22,18,38,30,37,18,13,6,10,18,22,255,111,191,135,120,233,28,60,161,211,176,+ 81,42,235,157,154,216,8,116,23,137,246,186,104,12,18,253,22,26,125,3,20,43,146,233,+ 136,15,188,185,202,34,103,199,151,69,230,204,130,234,64,127,98,52,62,131,160,142,111,157,+ 157,73,100,3,218,74,146,183,202,166,117,35,118,187,138,39,132,222,251,11,206,173,221,84,+ 138,202,187,195,199,51,79,0,41,85,111,39,76,13,228,252,47,185,112,140,113,166,121,197,+ 253,158,130,52,202,251,154,206,98,26,53,112,62,243,86,118,250,69,254,111,129,227,206,233,+ 81,40,133,3,180,31,155,149,238,43,30,245,203,187,233,193,231,161,250,86,39,129,227,191,+ 183,149,151,29,165,176,65,18,108,122,9,18,119,241,2,33,188,133,18,212,225,86,208,229,+ 89,155,8,223,97,63,227,191,220,38,73,235,53,2,118,242,10,234,16,192,138,50,44,195,+ 185,198,116,220,112,249,201,137,216,101,228,139,68,140,71,240,196,233,182,100,203,181,209,128,+ 133,155,101,188,184,60,145,102,248,43,135,125,253,134,231,183,145,188,240,135,161,74,132,187,+ 213,59,11,16,73,198,76,47,197,76,30,201,40,136,70,88,209,174,189,223,34,113,28,142,+ 231,138,73,96,61,226,115,174,44,22,181,111,72,120,95,118,49,170,3,200,255,209,8,180,+ 210,32,197,169,105,122,94,233,229,114,85,35,10,71,60,141,83,98,250,246,178,225,161,66,+ 217,80,202,149,200,64,168,37,63,27,216,34,236,80,208,202,183,19,250,239,5,64,210,206,+ 200,116,113,93,7,73,82,250,71,69,98,132,56,146,219,132,8,73,222,94,204,114,123,193,+ 116,194,239,88,181,242,30,81,26,189,11,177,154,109,220,71,32,147,221,20,118,174,58,148,+ 76,206,180,104,143,140,84,138,116,185,147,198,194,94,229,167,52,131,16,216,94,29,150,89,+ 19,149,90,70,179,236,193,100,133,225,33,189,186,197,139,82,11,67,183,56,24,66,17,63,+ 38,122,152,146,98,197,241,95,136,8,207,63,41,146,188,49,54,58,36,99,23,111,135,136,+ 222,153,37,148,155,54,251,161,228,214,110,130,11,120,212,251,142,252,160,243,154,159,78,175,+ 46,79,20,121,117,67,11,110,197,35,78,212,63,239,193,119,134,70,180,47,199,114,134,239,+ 5,140,95,39,65,30,23,0,3,16,22,52,57,73,53,34,20,12,19,28,36,27,19,14,+ 27,27,39,33,30,16,34,17,170,126,135,120,233,227,211,172,202,86,41,13,232,225,179,124,+ 173,34,45,89,27,158,7,238,241,168,50,142,117,56,19,55,211,191,65,240,227,4,27,54,+ 122,165,29,78,226,66,120,28,60,68,100,17,94,230,193,50,153,140,153,126,120,14,53,3,+ 38,103,26,154,223,122,89,91,56,229,135,49,188,171,40,163,191,102,248,192,219,90,157,9,+ 181,195,51,181,162,214,106,1,67,178,32,36,24,80,3,253,172,199,11,74,131,189,83,103,+ 94,32,38,85,219,103,27,40,212,193,254,46,9,84,22,160,111,37,208,206,185,9,247,3,+ 4,116,240,129,109,130,167,108,170,7,238,59,79,213,108,173,121,248,236,63,82,254,209,225,+ 55,66,51,87,230,38,37,77,82,82,68,21,172,243,83,159,102,218,117,98,236,48,196,149,+ 27,29,214,17,4,57,139,217,246,93,166,151,130,39,75,209,199,236,115,207,104,106,219,207,+ 170,164,75,76,230,220,146,4,107,100,203,227,93,253,162,34,49,36,158,241,36,27,165,201,+ 253,93,146,142,108,24,167,137,128,83,251,77,59,11,34,246,227,103,43,207,131,160,156,125,+ 90,59,164,157,222,173,23,85,182,40,73,56,180,140,168,15,212,54,127,122,229,216,111,168,+ 44,72,221,75,209,144,107,88,14,98,105,120,224,191,93,199,16,182,16,172,247,59,226,58,+ 114,153,201,228,234,187,35,184,249,132,163,185,223,218,175,72,178,31,85,77,64,68,121,222,+ 194,73,254,138,24,15,233,85,0,89,205,0,60,202,245,117,47,118,176,143,62,86,122,5,+ 252,171,71,138,21,30,217,211,64,119,126,209,130,8,169,98,158,189,150,74,21,61,141,243,+ 215,132,248,200,76,120,168,236,47,225,204,242,96,187,4,93,89,110,16,50,101,26,86,255,+ 84,223,74,22,138,217,37,67,92,208,86,232,185,27,202,0,26,23,0,17,29,56,45,59,+ 48,60,38,52,38,35,26,29,30,14,23,25,31,22,22,22,16,12,243,109,190,135,120,233,+ 94,241,15,202,36,101,59,5,35,124,2,2,15,230,89,186,246,27,115,83,194,24,250,58,+ 208,98,105,102,109,128,206,36,137,176,102,239,227,238,86,73,112,236,236,207,44,65,254,45,+ 218,62,200,18,77,160,175,242,134,112,56,181,254,71,211,171,177,174,104,232,189,179,183,175,+ 52,76,174,90,122,170,159,112,146,114,166,38,136,100,12,166,21,52,90,252,110,68,85,22,+ 229,236,253,205,69,107,78,246,127,27,86,208,253,181,101,110,105,80,232,56,48,50,163,208,+ 234,73,114,253,111,201,130,43,191,84,11,252,96,166,182,42,170,187,16,188,232,27,93,21,+ 115,35,250,15,187,154,153,43,38,215,161,0,97,33,118,255,113,67,11,8,135,148,35,94,+ 183,214,18,238,144,57,162,254,244,2,64,158,236,104,216,64,52,224,157,207,211,73,16,226,+ 20,104,99,62,164,45,210,244,195,142,248,108,157,43,73,69,61,155,108,59,246,233,86,43,+ 94,19,87,167,19,216,105,43,7,177,246,42,62,177,223,130,138,167,11,93,69,31,23,89,+ 88,58,71,114,134,122,39,1,126,98,200,142,16,61,53,225,70,93,108,77,166,221,150,176,+ 91,253,198,1,41,118,140,251,82,197,242,199,59,10,106,254,76,96,245,112,177,105,83,254,+ 144,38,108,25,198,38,97,181,120,141,168,142,158,129,83,2,16,115,91,155,178,65,65,158,+ 23,127,167,124,219,66,88,234,50,137,178,147,182,90,86,194,13,53,79,206,156,54,189,167,+ 95,102,200,6,95,43,214,35,252,45,115,91,106,100,25,135,125,199,99,3,21,225,66,79,+ 68,123,174,1,45,240,6,24,72,81,9,41,102,55,71,163,132,219,42,177,184,122,249,148,+ 144,182,61,168,134,78,90,175,97,71,245,183,22,0,3,6,15,17,44,44,59,43,58,41,+ 26,17,45,47,53,23,48,42,44,22,18,22,253,219,242,135,120,233,220,220,28,27,101,58,+ 92,153,248,107,248,215,83,250,237,30,193,252,201,205,204,214,49,222,169,65,207,86,225,204,+ 249,61,249,6,95,48,25,231,241,93,16,80,48,62,151,197,245,140,200,37,246,77,18,244,+ 93,75,141,123,140,211,204,76,206,31,81,198,173,171,208,66,111,252,192,154,11,219,130,154,+ 19,38,230,11,2,207,39,62,113,50,22,216,237,137,53,118,158,80,248,189,145,239,78,60,+ 149,195,82,210,75,37,50,15,175,15,46,34,144,18,153,91,253,70,239,213,111,47,44,24,+ 109,243,143,120,30,6,119,34,117,251,182,179,225,152,185,69,114,204,76,239,156,56,219,233,+ 189,59,164,195,108,21,218,80,89,1,53,27,133,92,179,13,159,55,158,167,193,124,203,12,+ 65,157,126,63,153,105,43,63,19,70,97,43,138,11,43,86,100,246,229,109,152,161,94,212,+ 202,154,71,215,217,247,250,17,177,213,109,116,124,117,61,253,111,57,250,101,150,54,243,148,+ 68,31,77,246,160,51,152,250,172,119,203,135,191,255,203,192,133,105,30,2,255,231,138,126,+ 192,248,21,180,93,227,36,130,185,84,176,120,187,209,20,74,104,76,139,161,66,213,74,136,+ 52,161,246,5,232,117,148,61,158,199,142,8,33,59,106,52,51,165,159,235,246,119,227,7,+ 9,218,34,39,203,101,245,29,81,88,144,199,200,30,156,98,233,114,20,140,251,95,58,117,+ 167,62,242,174,170,31,194,144,202,217,177,111,177,221,118,124,3,12,204,37,145,92,196,245,+ 138,188,119,107,82,81,39,127,130,10,230,80,115,27,104,61,219,241,98,210,72,187,93,55,+ 91,182,214,190,46,173,160,148,65,55,56,14,23,90,163,25,69,145,42,201,123,49,137,190,+ 118,42,158,166,7,74,95,127,133,142,183,255,181,179,79,228,66,6,38,54,204,125,59,123,+ 15,208,123,120,110,159,27,234,38,63,151,41,106,200,224,79,41,247,13,254,194,20,254,59,+ 135,102,35,146,207,253,221,95,146,155,36,37,182,146,54,158,89,116,207,34,201,17,210,180,+ 65,85,139,6,232,165,169,81,109,190,139,86,123,151,33,236,81,127,22,10,97,2,222,79,+ 28,203,2,124,46,45,20,249,228,224,54,145,130,22,0,12,28,63,63,62,41,39,29,26,+ 21,41,38,46,26,44,46,43,27,17,18,13,10,242,107,190,135,120,233,94,241,15,202,150,+ 208,186,193,169,100,205,187,32,65,53,27,35,36,34,128,5,212,151,111,110,209,108,69,254,+ 39,92,176,178,65,138,89,113,124,12,132,74,88,253,49,168,162,191,174,47,14,53,81,154,+ 88,93,148,7,170,53,86,84,242,121,237,76,7,95,16,80,88,177,16,61,63,190,211,43,+ 24,149,77,254,82,84,137,173,236,0,163,202,73,245,79,247,242,223,33,126,118,32,204,2,+ 123,82,74,29,33,221,37,232,123,210,92,181,168,156,170,84,252,154,58,25,115,173,211,165,+ 128,167,203,211,189,196,223,12,62,168,174,65,29,213,128,23,19,209,190,123,204,163,175,245,+ 91,169,102,49,79,238,98,231,22,40,228,172,120,225,229,52,84,35,238,126,26,227,99,101,+ 34,130,248,76,44,152,237,69,127,10,201,175,77,160,194,133,106,80,60,0,228,196,215,70,+ 140,71,39,124,32,221,131,160,99,125,137,66,43,239,106,75,192,35,60,110,190,194,251,139,+ 82,51,220,131,109,14,155,106,175,242,2,62,140,110,5,133,220,178,95,185,179,192,6,218,+ 103,237,203,2,113,188,5,85,107,240,209,113,24,163,171,177,94,173,71,250,3,191,173,67,+ 95,146,18,95,183,188,241,79,190,33,195,229,251,254,3,148,176,225,48,8,93,146,173,161,+ 215,76,207,242,103,228,233,172,53,178,214,179,81,66,181,28,180,173,138,31,137,13,255,239,+ 108,150,90,88,138,219,43,87,145,152,94,223,134,114,173,46,174,48,47,86,252,112,85,158,+ 122,86,73,80,190,221,106,20,90,180,128,40,197,191,83,62,8,215,152,61,78,228,138,244,+ 201,153,238,19,130,199,240,16,215,109,253,190,180,198,237,26,128,247,14,178,153,62,171,99,+ 214,10,72,252,68,164,178,16,39,199,14,186,37,239,127,142,30,89,189,158,207,35,61,142,+ 150,61,206,24,240,210,235,158,38,248,14,114,234,203,184,109,14,22,0,3,17,22,57,42,+ 71,47,48,22,15,24,57,53,51,14,14,22,30,30,22,29,36,7,150,122,135,120,233,128,+ 76,159,203,248,68,172,212,144,240,95,183,103,56,205,226,229,176,84,169,70,66,229,204,148,+ 95,193,31,240,121,157,59,25,1,231,220,115,236,24,8,10,80,112,73,133,22,97,1,176,+ 35,66,155,220,218,90,119,151,37,147,211,221,108,232,249,65,46,80,160,70,254,132,236,146,+ 83,209,246,23,28,72,60,93,92,80,9,96,196,233,82,29,170,196,171,170,12,81,16,106,+ 67,55,152,176,138,138,136,211,131,33,87,137,229,119,1,38,159,12,225,76,16,227,248,156,+ 60,175,113,92,154,206,104,160,65,121,6,68,29,138,75,116,123,197,248,252,114,191,202,43,+ 85,194,187,151,233,18,132,152,30,120,124,105,118,147,95,223,138,4,14,133,254,238,190,196,+ 139,146,150,45,33,86,209,63,57,250,3,122,150,160,8,141,179,26,145,227,2,200,46,74,+ 145,65,114,164,70,47,161,160,76,181,90,159,180,201,101,91,176,112,18,83,214,209,68,180,+ 150,33,124,134,234,57,138,70,16,233,4,24,50,71,230,33,125,219,77,148,72,43,62,209,+ 18,41,119,198,20,118,95,97,200,218,181,34,19,72,228,121,148,214,157,69,23,173,152,163,+ 164,122,151,121,15,208,152,113,84,144,222,58,23,115,81,191,97,31,85,5,136,85,174,144,+ 10,20,178,23,254,173,1,93,206,182,5,227,205,173,165,184,234,0,154,148,109,221,129,71,+ 166,25,109,40,101,70,123,22,152,14,26,154,166,229,220,210,144,151,92,233,200,234,210,16,+ 21,94,81,2,213,195,126,58,49,196,61,231,173,0,168,79,185,154,108,131,232,92,8,116,+ 35,225,94,142,160,150,200,122,66,218,58,247,15,107,138,59,180,198,80,217,7,172,232,228,+ 193,55,150,251,92,244,226,175,115,210,140,122,203,237,62,31,19,252,224,39,156,147,227,227,+ 71,193,100,78,163,76,236,251,161,119,127,246,254,103,170,58,32,187,155,119,204,23,106,88,+ 58,135,58,240,113,79,155,148,23,85,68,49,207,2,19,191,226,240,180,97,53,174,223,144,+ 243,197,5,22,0,5,16,20,54,43,85,51,60,26,41,34,29,16,16,29,29,40,37,37,+ 30,24,21,250,145,122,135,120,233,187,163,244,191,115,141,90,212,113,30,169,236,177,242,22,+ 141,73,103,163,136,248,251,189,20,63,187,200,72,237,157,242,82,242,99,46,83,169,118,164,+ 250,32,7,54,27,182,76,80,149,145,225,136,191,185,106,214,227,58,242,92,225,218,237,59,+ 195,131,97,251,18,131,34,230,24,2,226,169,233,176,111,186,1,154,166,125,175,125,252,13,+ 207,197,10,159,127,43,85,170,212,153,184,48,40,37,45,170,64,197,64,5,164,82,86,224,+ 193,103,114,110,128,166,14,7,131,254,68,230,68,217,235,176,88,69,245,135,217,200,5,236,+ 132,95,185,107,100,105,40,1,13,155,254,141,50,56,72,126,202,153,77,84,203,207,169,127,+ 221,243,26,216,162,208,191,116,122,118,14,183,131,179,115,186,215,3,147,113,234,88,230,74,+ 153,18,123,69,174,202,178,19,89,88,247,251,189,238,137,246,73,126,79,10,201,224,59,155,+ 45,112,148,16,181,68,189,96,243,248,136,196,22,214,94,111,188,151,243,29,23,235,159,160,+ 65,156,255,43,87,228,74,37,93,53,6,237,60,87,229,219,9,147,235,99,184,144,63,144,+ 34,118,103,44,89,33,86,55,64,45,166,56,200,109,38,254,246,91,111,167,20,135,235,83,+ 159,207,32,116,78,175,188,188,24,134,135,59,229,226,186,143,114,69,103,46,82,162,10,39,+ 167,50,82,213,150,163,131,79,89,170,56,25,103,36,74,71,105,218,239,65,233,58,121,219,+ 12,113,84,211,47,207,75,130,157,230,33,102,108,199,89,202,252,55,217,154,188,153,213,247,+ 178,166,195,246,112,64,3,113,168,90,48,191,147,155,43,225,251,28,6,24,214,5,239,48,+ 79,85,241,228,44,224,250,81,53,47,158,170,236,122,28,108,150,229,40,210,227,64,38,225,+ 38,40,183,31,71,92,20,166,125,95,95,61,250,181,163,102,196,114,80,234,180,151,193,249,+ 61,169,94,141,24,83,113,183,205,83,16,158,73,186,221,97,129,29,141,8,109,40,109,189,+ 134,148,102,158,77,243,243,12,94,37,70,165,35,176,6,71,149,127,99,161,126,151,42,189,+ 140,95,66,7,135,20,11,26,135,27,240,253,85,89,152,193,133,67,238,229,208,255,243,51,+ 63,56,172,247,7,174,172,53,23,0,1,16,57,62,76,47,50,26,31,24,40,35,34,20,+ 19,24,26,28,27,19,19,19,28,0,154,122,135,120,233,154,34,255,48,191,229,126,2,181,+ 247,172,219,199,83,181,130,247,238,1,113,211,114,11,97,58,228,226,25,220,216,208,190,172,+ 50,117,71,217,107,180,125,71,97,245,150,115,145,2,4,47,32,32,192,220,230,77,93,250,+ 134,85,35,129,119,91,106,241,180,193,232,66,209,191,28,197,36,81,14,237,235,236,161,48,+ 8,32,18,122,168,66,22,128,184,186,201,37,251,190,124,219,19,211,41,253,12,229,89,130,+ 155,189,25,214,236,45,121,87,159,237,129,150,22,119,60,159,102,104,181,5,25,2,243,242,+ 97,211,40,125,122,102,181,137,232,30,157,135,11,97,135,182,83,129,55,11,135,210,236,180,+ 170,112,130,222,87,67,121,172,143,209,153,158,93,198,195,229,122,8,11,224,3,148,39,1,+ 33,242,228,27,146,65,0,244,143,135,173,235,128,17,11,53,224,186,184,239,162,216,102,47,+ 4,251,188,182,156,127,56,99,36,45,117,236,96,146,178,9,18,68,70,141,164,221,131,89,+ 132,251,190,124,151,101,80,55,201,95,206,76,77,219,164,88,117,59,135,100,64,41,164,120,+ 181,55,195,29,74,41,109,169,205,0,69,113,62,244,184,36,146,22,90,14,143,41,78,113,+ 246,111,119,10,198,210,101,224,187,29,242,164,229,237,57,169,84,157,24,179,96,163,217,226,+ 144,146,198,76,253,29,70,37,204,172,123,68,253,166,247,99,96,181,200,54,116,206,52,91,+ 118,132,224,68,79,253,13,250,239,75,126,7,148,124,62,57,222,93,124,93,43,174,179,200,+ 30,10,208,72,128,33,250,87,211,153,196,164,239,46,181,175,248,206,22,20,194,50,173,171,+ 132,250,228,88,166,206,121,72,206,224,219,231,14,222,173,186,246,40,8,152,116,166,132,133,+ 225,68,207,110,25,152,63,250,10,43,12,238,168,114,178,238,126,83,229,74,42,114,176,240,+ 45,58,49,102,167,200,10,153,105,48,154,213,11,33,7,95,203,161,181,107,15,234,200,197,+ 26,75,186,133,231,14,9,248,15,7,71,103,161,228,132,23,212,76,10,16,212,178,103,74,+ 187,164,205,74,23,0,5,16,32,54,53,43,33,36,47,40,26,22,30,35,40,26,35,33,+ 42,29,31,20,20,244,145,122,135,120,233,161,168,47,206,217,224,38,77,226,116,111,158,121,+ 113,141,231,163,186,32,46,168,255,115,228,33,132,212,176,55,205,210,8,31,144,112,170,186,+ 138,51,249,44,114,34,20,131,91,13,104,54,27,192,189,236,177,62,106,151,196,110,178,7,+ 233,64,246,186,40,253,169,3,79,165,56,179,165,26,83,81,30,148,239,12,103,170,124,80,+ 186,5,199,112,19,177,109,231,227,138,154,110,169,75,34,0,172,101,93,190,196,146,23,9,+ 54,238,40,31,222,161,101,247,149,68,183,123,224,129,118,193,41,143,222,75,97,169,91,172,+ 125,190,230,198,150,147,108,54,142,246,175,110,55,210,20,81,137,87,213,130,119,124,217,142,+ 245,131,249,24,202,121,65,182,38,184,80,38,114,96,15,247,243,111,254,108,111,255,155,51,+ 118,215,85,197,4,77,252,98,208,239,117,22,244,26,0,27,113,29,219,226,157,81,254,1,+ 244,87,120,188,173,74,98,204,188,58,216,196,134,178,26,166,117,191,168,241,209,157,90,65,+ 152,34,13,171,204,139,195,136,76,22,48,230,122,159,38,98,170,76,153,130,64,173,10,50,+ 1,84,107,51,55,136,209,90,215,246,233,115,18,80,111,210,223,179,58,232,225,88,204,48,+ 157,142,115,1,125,159,39,63,111,219,154,130,224,105,21,154,160,122,221,63,75,24,6,211,+ 254,70,232,199,122,116,202,47,199,229,66,216,141,17,23,131,40,101,50,194,28,51,63,127,+ 35,105,201,138,181,203,146,241,91,119,217,19,44,184,55,63,173,213,62,181,153,225,105,117,+ 173,165,255,221,39,84,108,119,46,1,53,233,208,134,95,34,171,215,241,47,73,72,135,223,+ 222,164,168,86,63,226,37,234,94,183,191,200,172,109,81,201,8,112,131,221,239,120,85,138,+ 245,11,210,144,208,27,61,101,18,214,189,255,180,8,87,76,51,1,146,249,70,85,116,59,+ 168,116,200,49,165,30,29,224,217,217,160,232,249,151,134,152,36,215,38,148,190,94,141,144,+ 198,224,144,103,255,40,168,157,134,245,135,42,128,53,70,116,102,90,28,233,168,1,206,253,+ 29,35,105,201,58,90,250,105,48,21,42,231,66,99,181,25,243,206,32,75,142,77,196,15,+ 39,80,225,7,227,197,2,46,93,59,21,0,15,51,61,95,65,59,12,16,17,21,27,36,+ 45,44,35,47,30,36,15,16,10,242,107,190,135,120,233,94,241,15,203,248,13,141,232,211,+ 182,149,123,135,227,146,144,1,18,245,60,190,193,173,56,240,29,107,31,110,6,178,177,68,+ 96,93,131,134,1,178,59,33,70,235,194,21,251,120,70,190,211,121,186,252,20,63,135,28,+ 240,182,82,33,99,31,190,230,165,208,3,254,219,209,145,122,13,85,129,168,89,52,129,60,+ 143,192,98,243,172,252,29,98,140,119,87,160,70,159,240,217,4,239,138,167,9,97,124,42,+ 39,138,140,114,108,103,84,44,255,48,192,140,41,113,91,113,164,70,115,188,195,24,15,212,+ 213,22,50,142,71,106,200,47,174,65,254,78,97,196,10,96,95,196,125,250,44,238,179,116,+ 140,212,149,187,41,49,138,201,46,91,136,150,1,236,173,4,107,188,235,148,219,106,217,210,+ 136,187,107,240,134,120,214,40,18,16,100,238,236,195,65,167,174,190,40,2,86,103,146,28,+ 177,154,28,202,19,102,81,193,186,48,209,14,102,39,72,158,219,254,230,69,245,12,109,35,+ 39,177,1,58,178,118,189,150,12,52,23,238,136,20,211,204,26,48,65,172,239,141,214,70,+ 95,107,49,137,83,201,139,13,58,14,70,179,183,136,174,204,216,101,129,245,14,188,66,5,+ 81,87,19,255,167,70,151,82,237,24,148,56,101,77,136,105,191,56,67,31,22,237,199,32,+ 163,98,110,29,10,215,210,191,184,237,161,17,230,173,156,1,176,70,231,17,9,73,106,117,+ 29,75,62,220,232,146,48,41,107,210,98,206,184,178,11,40,80,37,114,114,228,249,176,96,+ 76,172,91,37,165,180,145,228,236,82,47,236,32,96,64,222,131,102,175,106,5,83,103,59,+ 66,110,22,0,13,29,47,44,28,75,74,75,39,34,37,15,16,17,29,25,18,19,30,37,+ 25,18,248,146,122,135,120,233,94,241,15,200,192,165,49,152,37,171,99,142,31,94,27,18,+ 106,113,20,70,164,116,155,166,87,230,92,49,31,19,151,33,134,48,115,102,222,41,156,18,+ 206,115,254,189,147,210,141,203,20,215,12,84,218,246,167,54,43,238,80,110,230,155,113,43,+ 43,88,21,17,10,3,169,77,81,3,248,8,117,224,91,217,195,23,7,141,201,85,251,134,+ 194,233,56,119,189,245,138,146,191,10,83,64,75,13,59,224,127,218,211,1,140,239,117,204,+ 3,44,164,97,84,57,170,1,186,240,66,255,127,83,4,131,240,248,253,130,228,29,61,17,+ 181,112,25,25,2,193,195,187,162,189,237,54,20,71,15,26,237,210,186,191,132,21,157,138,+ 191,221,66,66,97,240,61,121,115,138,144,35,148,33,36,73,241,111,157,200,28,85,161,104,+ 110,229,205,123,84,17,139,245,50,175,27,213,69,172,138,140,127,10,119,239,84,95,4,24,+ 254,203,16,76,149,108,103,106,151,252,15,243,67,171,217,105,9,181,226,169,27,225,46,148,+ 152,224,195,52,127,224,149,149,71,81,190,119,98,96,147,103,129,118,184,250,131,225,139,210,+ 64,202,1,235,109,15,182,105,102,204,226,122,228,143,173,165,182,41,181,90,54,209,235,252,+ 178,222,35,91,18,139,77,122,85,137,100,247,108,237,132,215,35,83,101,117,202,167,142,245,+ 226,80,85,69,252,248,35,205,67,203,199,210,108,73,37,115,245,101,246,55,57,251,38,60,+ 45,158,202,54,202,119,212,165,135,14,18,89,150,110,245,28,88,167,152,30,56,240,230,214,+ 255,67,157,41,39,105,140,212,232,229,84,190,69,186,157,224,175,18,127,121,168,145,167,46,+ 195,246,61,110,128,152,213,65,231,75,215,98,123,236,148,136,173,36,40,42,191,62,147,207,+ 101,203,194,40,53,8,223,144,6,113,103,215,164,188,91,30,70,214,171,159,184,52,69,50,+ 56,190,133,129,228,63,107,175,193,132,142,60,77,103,183,93,249,70,83,2,87,16,49,153,+ 55,184,43,42,250,244,133,116,42,182,74,126,22,0,2,6,22,51,53,57,41,47,38,28,+ 23,53,50,49,18,40,39,39,19,17,12,18,1,144,200,135,120,232,253,10,50,89,72,160,+ 35,231,219,223,198,254,226,183,92,57,48,215,144,4,61,3,10,204,50,250,23,53,94,149,+ 234,88,112,188,119,220,167,42,205,239,36,214,184,121,77,85,255,83,142,77,129,118,115,232,+ 78,228,201,73,108,165,253,135,213,32,165,190,25,247,29,193,164,185,100,115,85,13,140,118,+ 8,36,168,190,211,140,1,109,148,55,28,247,6,31,173,56,53,76,180,168,83,29,141,41,+ 153,221,245,178,15,61,241,215,121,68,5,10,209,111,2,188,137,216,171,232,158,78,209,231,+ 87,137,146,188,112,254,143,28,155,35,141,160,206,32,126,195,52,27,56,157,226,219,83,144,+ 138,52,133,51,170,1,51,169,78,239,223,217,139,238,125,177,88,162,240,14,76,252,85,30,+ 25,85,195,186,212,23,69,6,25,116,94,187,122,172,60,123,35,13,64,125,69,6,189,126,+ 118,30,120,219,202,233,46,209,233,202,176,146,65,103,35,2,53,251,111,12,0,247,187,149,+ 177,206,35,218,241,113,115,63,13,241,128,13,86,17,146,26,63,156,81,150,184,56,144,241,+ 67,229,33,4,210,76,5,168,87,1,251,55,96,198,4,214,88,103,231,149,167,229,139,59,+ 94,187,57,186,254,138,95,131,177,89,77,54,92,70,99,62,233,215,153,11,29,120,205,106,+ 207,229,122,113,84,86,103,27,166,96,49,35,57,206,86,187,99,219,62,170,235,217,70,117,+ 176,25,208,123,250,37,17,231,165,151,48,4,162,81,134,220,75,210,254,108,231,240,223,140,+ 183,25,208,98,7,82,118,238,200,170,99,147,206,76,240,152,61,38,65,130,49,91,124,85,+ 216,84,47,124,219,12,115,4,88,69,155,125,110,210,119,177,54,90,112,240,239,175,234,144,+ 139,48,93,17,220,232,225,205,218,91,64,101,88,142,109,191,248,250,72,195,243,58,161,46,+ 198,191,237,72,115,206,29,102,221,162,189,162,238,245,239,156,200,240,207,65,192,39,76,51,+ 181,114,146,154,238,5,188,64,35,90,181,10,156,248,125,42,61,3,196,26,85,99,17,87,+ 14,229,178,236,255,53,138,32,208,233,186,145,104,151,237,178,38,116,166,210,133,70,17,185,+ 247,98,27,110,242,165,25,208,97,92,177,176,238,237,168,38,27,77,135,237,26,6,76,114,+ 222,250,33,216,116,37,177,210,102,121,112,191,44,1,243,239,106,181,116,139,69,73,220,36,+ 12,203,111,81,2,77,196,80,121,40,195,157,177,29,155,17,229,176,167,92,21,184,57,157,+ 21,0,20,51,80,89,57,42,21,20,32,35,35,18,15,30,43,42,28,10,16,15,27,0,+ 144,197,135,120,233,27,71,96,47,75,3,168,228,25,222,233,76,250,184,208,92,95,208,64,+ 245,113,46,48,91,104,165,241,84,11,128,119,35,97,43,7,242,251,247,17,238,95,90,99,+ 136,232,142,158,78,35,78,171,53,20,243,46,179,252,201,190,88,192,148,70,253,58,144,123,+ 138,159,192,20,91,127,36,10,33,98,144,56,182,20,167,226,69,216,136,96,201,149,249,74,+ 59,99,151,151,104,87,44,54,138,138,222,122,81,110,227,255,88,249,232,102,12,59,231,175,+ 109,231,26,210,60,191,143,179,116,240,165,221,211,225,55,255,184,156,41,177,185,26,171,235,+ 106,61,32,57,232,78,94,17,217,249,253,161,130,140,59,108,80,34,77,173,116,58,217,166,+ 132,97,137,115,69,19,89,77,52,185,113,126,59,43,151,78,5,185,60,113,189,149,127,184,+ 196,29,216,244,52,75,177,166,177,185,98,161,142,152,148,247,95,189,224,196,93,50,72,102,+ 153,101,23,89,248,6,16,81,183,196,86,20,72,37,10,31,103,102,181,151,227,161,112,220,+ 89,2,180,108,42,92,181,27,3,148,23,180,207,49,97,208,0,185,197,165,88,83,236,112,+ 13,249,48,177,122,36,241,156,143,231,169,138,234,213,250,131,245,193,68,168,18,169,85,214,+ 86,129,176,90,188,98,172,26,70,165,61,125,59,67,205,33,67,97,57,190,32,87,153,79,+ 109,245,71,135,223,189,202,99,196,3,249,161,139,104,59,180,119,89,231,219,133,136,16,91,+ 240,203,90,22,134,183,155,198,237,79,10,169,149,192,29,162,11,150,62,229,70,66,99,202,+ 120,9,12,169,106,206,126,217,19,179,112,208,221,108,160,136,21,134,116,239,138,220,21,12,+ 171,142,42,116,49,124,94,242,29,218,157,99,34,91,123,250,81,126,38,1,101,219,19,144,+ 101,222,144,9,98,66,99,231,122,51,58,28,111,60,98,25,231,224,225,21,127,63,22,96,+ 56,194,76,128,132,231,5,237,251,22,61,134,140,130,32,63,194,217,229,51,49,25,111,89,+ 26,118,69,221,109,79,130,107,126,255,139,33,68,136,146,108,249,112,48,217,209,150,83,124,+ 253,13,168,239,114,222,109,171,237,163,82,123,188,73,80,187,236,86,193,181,52,161,168,107,+ 201,30,167,147,181,157,246,200,15,90,223,245,215,126,90,3,214,205,206,209,129,240,246,209,+ 25,242,54,96,115,133,208,65,225,196,223,69,203,244,43,13,122,228,92,194,39,131,38,120,+ 73,201,203,85,6,98,167,73,197,227,148,111,119,170,238,94,110,153,226,209,140,77,143,27,+ 44,18,0,2,1,9,9,14,12,11,16,32,33,29,24,52,54,41,65,61,134,70,41,22,+ 20,10,185,84,62,173,87,225,140,201,165,91,91,93,220,250,183,31,15,47,124,13,89,16,+ 242,74,16,123,137,199,174,173,78,94,243,215,68,54,44,127,149,240,255,72,247,96,161,238,+ 33,158,206,246,151,39,210,160,82,152,225,53,169,158,30,252,71,210,1,170,72,230,184,42,+ 125,192,109,209,175,214,9,75,34,88,128,220,6,54,250,33,142,235,201,125,60,19,197,205,+ 176,152,132,250,119,233,62,181,83,248,65,141,189,109,192,244,161,61,6,207,35,72,148,17,+ 32,159,237,28,101,217,111,198,70,193,24,145,167,151,183,243,38,80,199,227,87,14,131,42,+ 243,146,161,154,15,55,249,35,81,234,117,95,162,226,48,182,161,168,142,208,6,14,195,204,+ 155,76,208,51,230,50,50,236,193,152,177,245,181,201,154,248,234,95,119,17,97,13,170,173,+ 49,4,254,121,0,0,254,4,5,5,5,4,3,3,4,4,6,7,7,5,5,6,7,5,+ 6,5,6,4,5,6,7,10,8,7,3,3,3,3,3,4,4,4,4,5,5,6,6,7,+ 5,6,7,8,6,7,10,10,7,3,5,5,5,4,6,6,5,5,6,8,7,7,8,8,+ 10,9,8,5,3,5,5,7,6,6,4,4,4,4,3,5,6,6,8,8,8,6,5,6,+ 6,7,6,5,5,8,8,9,6,9,12,15,12,7,5,7,9,12,9,9,9,9,7,3,+ 4,6,10,12,14,9,7,192,203,153,219,179,43,210,70,118,82,56,155,176,223,141,176,44,+ 111,199,122,114,15,195,46,227,16,0,162,46,19,96,36,96,214,135,73,11,157,122,74,131,+ 233,129,12,155,61,76,154,231,206,14,216,234,143,226,156,189,67,108,198,91,110,216,44,87,+ 187,87,127,133,199,160,34,165,99,105,6,206,161,55,138,114,38,200,196,246,217,43,230,161,+ 170,114,128,86,52,66,76,251,87,233,145,214,165,7,29,115,249,19,11,63,204,49,121,251,+ 14,109,191,238,17,78,228,137,143,197,176,36,245,103,40,26,201,29,89,92,51,200,199,93,+ 216,221,105,163,187,60,216,185,234,72,226,26,29,49,61,196,49,246,51,37,197,184,93,116,+ 229,188,238,22,200,106,252,72,133,202,33,75,34,203,84,123,102,187,75,80,235,171,227,254,+ 177,78,49,198,193,139,6,103,64,163,82,175,177,181,120,169,48,182,123,187,204,137,106,182,+ 151,218,112,182,77,86,176,139,81,90,209,211,225,202,130,144,30,166,53,67,86,139,134,78,+ 51,142,243,213,155,92,53,169,43,73,231,34,42,227,85,214,124,79,228,18,36,139,160,176,+ 118,10,231,201,16,59,84,80,117,0,47,84,162,110,164,186,135,131,30,66,200,126,146,230,+ 111,47,157,83,246,105,187,72,178,84,85,182,185,112,127,5,132,145,206,36,7,180,85,102,+ 8,125,195,156,71,61,77,75,112,118,63,232,11,11,117,77,49,93,33,7,20,142,198,241,+ 195,35,98,246,162,150,13,5,44,235,142,39,97,124,221,47,215,37,22,20,177,112,33,171,+ 47,64,167,141,94,65,224,215,139,203,92,94,229,201,94,193,114,253,89,82,222,42,53,160,+ 119,78,159,58,103,110,211,108,66,138,72,212,190,146,91,42,199,127,156,248,182,53,130,24,+ 59,95,3,15,6,127,214,236,114,83,183,81,145,28,216,192,192,117,155,208,85,26,210,99,+ 38,63,72,38,112,71,205,26,23,1,138,88,134,131,117,197,84,23,23,188,16,45,191,27,+ 254,130,78,190,184,89,159,91,122,137,116,94,64,140,220,18,20,165,7,1,226,116,235,57,+ 100,76,47,116,84,104,104,202,225,78,136,204,26,82,241,89,224,49,71,207,17,252,156,202,+ 61,139,79,228,150,147,252,79,243,241,205,65,245,75,226,152,112,57,15,218,204,111,94,181,+ 175,111,44,214,153,50,45,108,221,210,231,74,153,51,184,3,217,142,96,131,143,219,103,253,+ 137,236,130,49,51,233,21,245,74,203,159,142,184,109,78,217,77,142,0,104,157,165,229,44,+ 92,107,68,89,49,33,141,12,4,109,2,242,163,106,210,193,77,144,201,193,19,216,166,27,+ 186,37,41,150,165,0,95,1,12,62,8,85,94,6,197,193,78,138,102,103,108,38,59,155,+ 238,147,176,94,243,4,146,245,168,86,129,155,154,46,138,177,9,69,143,236,175,200,224,239,+ 158,140,22,130,96,37,127,54,34,48,239,152,97,7,224,36,183,2,111,215,244,203,38,251,+ 128,104,166,51,149,42,211,152,35,44,176,140,18,104,85,111,7,133,165,220,185,185,91,191,+ 88,98,69,10,149,21,14,71,107,83,56,150,200,238,240,231,207,48,35,234,183,123,182,189,+ 104,171,128,126,241,124,236,124,109,130,105,237,4,48,47,4,255,185,87,52,17,96,46,153,+ 134,252,99,173,19,0,1,36,41,50,14,33,32,76,64,56,21,25,63,56,45,9,8,7,+ 14,41,39,255,159,100,156,184,221,223,87,68,180,235,232,149,158,235,67,187,28,149,93,217,+ 63,138,19,59,64,17,106,97,236,247,163,252,39,50,15,146,203,22,81,162,200,226,144,165,+ 175,175,19,148,235,51,144,234,201,187,62,165,220,148,96,96,147,219,177,246,55,174,62,244,+ 253,79,61,6,182,222,33,22,79,208,152,232,197,200,85,43,173,124,202,100,48,206,109,39,+ 252,183,112,122,113,27,131,119,90,180,219,71,67,232,191,95,104,221,182,182,48,244,1,176,+ 219,186,171,4,54,111,108,191,78,184,93,85,114,251,205,180,62,51,103,207,24,21,69,31,+ 132,146,178,87,246,185,5,48,165,147,43,217,142,59,178,14,134,53,8,228,141,223,187,171,+ 134,46,94,158,124,83,32,191,199,45,229,179,95,31,192,155,63,82,53,92,86,37,245,167,+ 76,4,85,208,20,203,35,203,243,122,155,26,216,110,52,207,16,68,224,123,189,59,231,114,+ 101,138,92,115,192,251,139,191,237,105,241,88,123,28,246,53,125,56,65,236,101,244,108,141,+ 48,162,159,191,52,212,177,30,38,53,37,217,234,169,137,49,63,156,83,157,35,167,100,182,+ 224,85,92,43,96,2,191,135,161,120,111,216,227,22,0,1,28,40,41,14,11,29,29,25,+ 11,9,26,21,22,41,47,48,19,18,28,78,73,74,14,239,170,119,46,147,98,252,74,254,+ 224,90,225,124,147,177,242,17,222,56,104,172,5,227,181,165,16,154,6,254,198,199,7,235,+ 67,2,13,124,120,198,189,238,207,155,158,197,177,22,85,237,92,76,25,222,199,132,111,164,+ 21,171,102,4,74,185,179,208,251,37,62,52,245,78,255,59,45,81,233,81,169,104,222,34,+ 154,146,216,201,42,217,84,194,96,57,104,97,43,119,235,75,71,240,50,0,63,195,21,165,+ 85,49,74,52,77,89,88,205,20,204,112,143,185,221,152,224,230,216,153,219,102,214,27,70,+ 4,101,189,104,134,212,52,92,177,167,253,108,167,198,201,224,181,245,117,7,10,18,81,51,+ 39,135,87,127,95,225,85,171,0,70,171,112,30,115,100,188,97,74,147,132,255,209,204,209,+ 74,85,139,102,45,216,45,252,112,147,154,76,173,83,164,223,39,142,84,188,147,162,122,241,+ 194,141,195,120,222,146,155,240,14,100,69,195,247,101,218,58,238,214,225,65,63,81,107,184,+ 108,58,248,83,64,147,52,169,254,148,1,219,20,0,1,28,31,31,10,18,19,15,24,23,+ 21,10,48,54,52,58,71,78,43,28,42,31,251,192,169,182,54,49,163,202,225,108,70,223,+ 169,171,133,56,131,98,54,39,110,210,109,69,149,21,6,62,63,70,184,218,118,203,161,73,+ 82,49,61,184,239,189,82,7,204,4,179,242,63,210,24,36,249,163,108,251,142,83,143,183,+ 36,196,248,219,146,5,43,7,99,110,136,65,44,180,143,171,161,57,36,70,84,248,72,89,+ 246,157,209,101,21,149,77,238,6,118,130,181,225,250,114,197,172,59,181,38,2,11,242,96,+ 207,164,211,16,7,54,152,136,122,128,43,65,191,114,34,144,195,105,253,190,32,43,7,9,+ 9,121,229,231,3,100,215,202,142,93,156,89,179,116,252,152,202,251,22,155,59,208,231,34,+ 59,90,243,23,169,6,83,41,8,250,237,237,60,146,91,229,3,178,137,4,178,121,162,196,+ 6,133,111,181,111,60,97,4,41,224,201,34,83,226,71,150,96,25,247,90,70,151,130,197,+ 39,58,213,216,51,156,43,91,171,41,61,9,79,122,240,10,35,255,149,192,66,88,16,0,+ 1,38,67,70,35,16,22,23,18,24,21,20,54,67,78,69,70,55,240,159,100,156,184,221,+ 223,87,68,180,235,232,149,158,219,68,16,18,94,35,162,156,67,40,229,124,214,1,190,196,+ 6,93,47,21,171,56,23,5,169,249,175,96,206,1,13,47,170,136,245,24,196,174,0,169,+ 144,38,215,153,202,140,108,80,83,206,2,43,253,174,91,107,17,53,90,133,54,232,164,205,+ 45,5,88,4,139,155,198,106,141,210,34,52,124,193,5,41,102,104,36,115,250,144,95,76,+ 60,9,122,240,187,1,238,139,219,219,2,4,156,43,198,157,159,125,87,237,20,186,212,194,+ 19,9,127,98,228,213,34,30,71,57,235,20,42,83,193,64,147,80,185,49,76,86,249,147,+ 194,22,143,205,54,63,230,4,39,29,236,218,141,241,187,139,51,210,91,230,241,7,214,217,+ 187,51,208,96,74,197,84,3,222,198,29,174,254,162,12,65,195,71,239,87,165,28,254,121,+ 89,150,80,99,54,77,252,185,155,187,19,114,111,145,66,204,125,156,90,160,106,52,171,105,+ 173,221,25,179,211,246,255,230,53,70,80,112,229,221,242,242,199,17,17,186,25,189,52,59,+ 1,187,68,14,81,55,243,235,253,106,133,52,83,226,19,245,174,118,80,95,206,255,50,165,+ 229,26,53,219,217,138,221,172,112,60,65,244,157,4,227,193,44,251,70,36,147,250,153,66,+ 162,19,0,1,14,34,53,49,39,24,17,60,56,65,16,34,56,56,50,16,21,9,16,241,+ 14,183,80,52,64,194,219,30,129,135,20,116,21,98,107,95,51,136,243,223,114,207,155,42,+ 195,184,255,177,23,238,232,5,178,92,5,190,77,77,192,238,77,198,177,43,14,167,46,168,+ 82,254,164,33,224,164,227,234,139,212,169,92,51,124,135,209,143,186,42,30,122,174,116,152,+ 29,88,180,122,9,232,179,15,80,10,159,40,31,98,177,138,8,249,32,210,183,183,54,151,+ 157,183,157,230,205,194,27,205,20,93,33,119,156,111,141,139,245,173,136,205,223,10,91,184,+ 61,158,62,107,89,18,64,94,35,135,211,140,169,55,186,144,64,202,217,117,47,157,92,146,+ 6,104,235,49,251,215,138,255,223,65,207,81,196,141,65,253,129,142,185,134,127,27,29,2,+ 209,83,117,245,183,116,156,110,218,249,159,172,164,246,166,49,151,221,135,18,238,183,193,125,+ 145,103,197,162,40,133,23,56,97,104,160,130,89,26,122,172,12,197,43,226,57,58,160,11,+ 41,237,109,163,191,212,169,94,191,244,25,58,154,242,14,168,122,240,76,194,220,150,226,29,+ 228,104,216,174,234,173,20,83,72,114,177,164,72,203,199,133,163,186,71,151,103,222,91,44,+ 64,245,68,218,39,217,39,6,17,49,84,35,238,172,180,122,172,127,164,13,123,90,115,131,+ 140,68,219,44,152,94,23,0,1,6,34,64,57,34,9,16,26,22,14,4,8,21,21,70,+ 61,64,57,53,51,4,5,21,19,243,181,151,30,211,181,184,96,109,154,67,112,168,150,118,+ 45,174,166,25,255,179,158,240,66,103,3,148,17,160,64,134,83,58,207,251,16,104,163,85,+ 61,203,187,51,64,214,76,65,167,168,186,149,132,40,117,129,191,71,194,100,70,90,215,45,+ 140,91,165,180,94,43,243,3,114,158,77,124,156,222,42,213,106,103,152,151,20,198,65,246,+ 29,238,15,46,17,146,208,45,26,8,90,134,1,244,136,241,111,24,93,196,174,213,79,163,+ 42,220,106,95,196,41,111,111,210,236,43,238,255,237,92,146,30,169,152,58,197,199,154,103,+ 238,132,37,62,195,36,204,242,60,42,74,227,95,219,125,110,186,173,128,154,243,95,250,116,+ 87,93,63,228,120,136,167,156,192,124,40,188,245,239,183,45,12,63,71,45,71,190,190,140,+ 223,33,40,46,50,185,200,167,74,113,53,0,218,94,190,47,104,60,99,29,162,179,97,185,+ 224,174,169,174,223,7,222,18,114,131,207,156,160,246,6,228,243,197,229,136,150,72,242,120,+ 58,30,70,8,29,138,42,43,15,229,160,180,15,165,240,254,50,21,15,47,86,25,98,230,+ 12,248,56,4,119,157,72,184,63,231,172,63,81,10,9,51,75,81,199,230,157,92,176,149,+ 253,114,131,171,25,230,131,218,66,56,12,87,150,112,74,72,246,124,108,111,107,250,147,85,+ 121,211,12,239,119,192,242,137,117,188,8,123,122,250,251,169,95,26,211,86,61,165,204,189,+ 16,221,232,126,217,126,16,227,191,117,253,246,177,165,199,157,65,93,208,149,190,233,96,65,+ 112,20,0,1,35,39,73,46,59,26,26,17,20,14,10,44,44,62,24,23,4,8,50,64,+ 58,240,181,151,30,211,181,184,105,17,114,32,106,126,221,109,81,216,147,12,19,133,170,100,+ 45,233,25,247,41,47,216,97,103,57,77,189,250,3,115,131,154,149,77,4,29,113,95,151,+ 51,244,245,37,34,57,104,14,221,0,141,216,151,1,69,238,78,249,14,18,55,167,231,63,+ 200,8,47,224,248,219,122,234,91,12,69,115,170,188,76,240,222,225,185,6,87,114,48,214,+ 94,85,53,87,179,189,38,242,100,189,74,224,156,113,98,17,169,178,15,181,3,70,15,207,+ 15,92,104,192,67,68,242,126,30,45,16,29,172,187,140,79,207,90,47,192,207,163,165,212,+ 216,122,131,51,125,130,91,121,60,59,134,248,125,6,238,134,199,158,213,213,141,225,244,62,+ 180,82,87,164,202,200,197,146,134,156,50,124,249,96,209,71,153,73,202,27,35,248,98,167,+ 249,193,133,19,202,160,157,228,218,126,129,147,111,179,139,58,117,165,61,0,5,216,180,199,+ 29,168,233,46,52,30,202,235,66,58,253,48,241,185,29,185,19,17,218,75,57,229,168,92,+ 166,208,120,96,186,120,37,188,89,117,186,204,59,63,199,239,70,246,167,101,140,240,125,206,+ 190,130,148,46,210,164,33,193,151,85,38,62,177,252,47,160,171,67,115,57,229,118,153,91,+ 11,133,45,16,152,135,241,199,229,112,163,66,115,75,74,3,91,94,148,243,163,224,19,144,+ 36,25,62,12,1,27,43,235,65,9,39,23,0,1,26,40,51,44,37,29,9,29,50,56,+ 47,40,42,53,38,30,8,7,19,20,21,22,21,17,228,159,180,133,217,247,242,85,212,145,+ 114,172,158,197,214,233,99,119,6,1,9,136,135,30,98,18,49,246,108,4,24,210,46,77,+ 225,2,75,50,123,104,127,114,144,206,229,116,44,18,87,12,74,237,132,222,97,199,74,80,+ 50,115,94,119,53,56,98,73,95,187,246,125,117,78,209,236,137,40,73,130,252,213,7,171,+ 253,37,172,239,220,22,233,192,89,188,251,231,213,74,108,103,19,184,67,31,56,210,177,14,+ 69,132,2,151,216,86,70,141,13,237,255,55,35,81,66,11,20,204,186,56,226,232,228,56,+ 242,217,232,176,57,233,117,135,214,81,245,73,78,7,232,68,199,22,133,42,36,234,74,154,+ 82,37,106,228,188,5,102,184,62,250,92,250,79,17,31,20,182,134,38,118,227,229,227,156,+ 106,140,73,25,228,48,222,115,85,128,103,168,161,137,223,247,218,83,171,0,142,216,56,72,+ 151,170,185,86,153,116,111,28,199,102,207,135,7,3,193,84,181,196,168,51,26,45,43,31,+ 80,45,7,197,115,217,221,55,2,85,240,162,167,4,199,60,111,72,82,184,189,41,130,77,+ 40,156,33,65,134,127,236,18,255,36,14,142,201,21,0,1,5,43,43,37,7,7,12,8,+ 9,6,6,14,20,28,70,62,58,13,17,74,98,93,0,153,219,3,16,92,89,161,1,208,+ 205,240,52,110,74,180,47,93,197,130,6,144,182,5,20,133,62,25,5,201,237,70,44,68,+ 107,234,85,15,114,95,38,128,13,99,171,178,199,102,131,239,39,254,119,76,200,82,245,140,+ 148,51,235,220,187,141,117,26,255,143,72,244,159,99,197,138,61,187,120,132,153,61,104,150,+ 195,58,118,172,146,236,97,211,163,157,51,203,140,248,123,94,42,225,243,49,240,120,125,31,+ 61,147,103,66,200,167,235,201,129,135,181,197,94,218,255,14,19,76,18,218,35,92,160,90,+ 180,89,3,29,68,175,166,192,34,20,52,229,241,244,122,156,103,136,35,239,233,236,99,156,+ 43,172,171,185,200,35,57,95,163,112,244,56,42,167,6,82,107,226,95,244,99,142,179,60,+ 225,231,170,21,97,0,116,151,163,116,31,93,218,63,143,182,173,188,34,163,236,202,155,137,+ 50,242,127,148,91,83,74,155,149,55,114,251,225,246,186,223,82,214,61,48,35,30,237,177,+ 243,238,121,2,71,210,233,151,45,62,109,35,148,233,110,221,169,101,20,0,1,6,34,39,+ 66,42,37,6,7,11,27,51,59,46,40,29,66,70,74,32,11,4,229,192,169,182,54,49,+ 163,202,225,108,70,223,169,171,133,162,114,232,80,137,10,176,23,4,183,43,132,111,220,85,+ 214,25,16,242,229,103,185,189,187,59,12,48,125,11,168,101,38,88,61,233,107,16,132,222,+ 22,177,141,106,233,216,15,55,12,138,91,41,196,245,68,20,238,157,80,196,8,171,216,8,+ 223,211,84,89,107,62,172,35,134,91,79,83,211,132,216,135,176,189,252,51,115,141,80,254,+ 198,40,46,58,232,167,162,225,36,171,20,8,224,77,176,115,156,244,125,122,28,225,157,52,+ 196,133,160,8,36,225,219,19,154,176,189,228,91,174,210,59,28,84,182,160,36,193,151,155,+ 1,51,193,131,79,178,114,50,52,166,209,163,242,138,176,115,58,228,35,175,17,51,91,128,+ 50,9,108,76,99,190,155,176,9,98,171,168,76,79,113,219,28,107,181,96,208,51,252,134,+ 51,207,45,225,194,15,248,164,84,212,172,71,69,235,195,235,151,163,21,0,1,27,40,58,+ 30,21,15,23,37,28,21,16,48,67,64,37,23,46,38,47,19,30,13,237,170,119,46,147,+ 98,250,240,47,57,52,126,5,133,69,179,39,234,79,226,41,62,185,6,78,18,133,91,6,+ 205,141,78,79,175,71,23,168,193,244,72,197,35,55,117,138,12,103,252,57,226,46,246,45,+ 53,179,90,172,154,216,137,97,175,167,125,162,41,185,195,82,236,203,32,44,180,123,16,101,+ 131,246,238,18,138,76,202,175,153,53,201,151,142,0,110,73,252,186,151,45,85,161,252,213,+ 237,90,216,79,40,228,108,181,28,32,52,210,135,203,26,190,181,113,6,157,121,70,145,229,+ 91,233,233,208,145,200,98,146,26,28,74,240,20,75,111,246,121,126,108,13,248,21,207,177,+ 162,186,239,97,100,66,37,225,109,242,120,228,1,47,4,17,198,137,151,142,179,142,198,121,+ 128,233,53,155,186,0,158,104,173,58,122,52,213,195,153,147,135,238,238,189,154,240,174,56,+ 115,122,20,166,19,255,18,63,157,147,50,133,191,24,196,92,192,6,203,123,162,160,70,210,+ 147,180,230,168,15,118,76,9,209,225,78,83,89,137,109,226,10,243,255,62,42,194,212,25,+ 196,18,17,0,1,6,10,12,14,13,18,10,12,5,8,31,32,29,6,6,7,183,181,149,+ 3,125,100,235,155,120,168,49,168,255,113,29,90,61,94,59,25,133,71,2,47,42,146,230,+ 92,171,87,226,226,144,203,230,70,118,82,13,13,153,112,15,89,40,14,230,38,125,39,246,+ 147,12,110,210,145,148,178,159,87,171,101,178,206,241,173,127,255,139,242,140,152,24,176,168,+ 236,15,55,235,179,75,146,237,244,15,64,65,118,116,184,155,157,9,26,192,105,33,236,203,+ 79,43,238,235,0,158,209,221,80,225,129,53,171,67,104,192,192,127,111,178,36,96,171,1,+ 176,155,151,233,184,242,85,241,167,163,93,64,134,192,187,127,163,210,59,244,180,226,51,57,+ 54,20,0,1,28,39,68,41,35,10,12,26,25,25,64,64,61,15,13,22,15,53,46,61,+ 20,243,148,187,103,31,246,17,200,144,4,119,34,144,136,133,91,244,176,168,240,227,69,118,+ 193,67,49,61,71,96,30,212,136,21,194,152,36,111,246,43,68,126,98,166,200,48,208,57,+ 214,80,18,60,110,167,90,236,13,34,217,139,90,18,172,202,22,141,179,83,212,95,132,92,+ 161,8,0,197,89,98,77,170,154,38,220,41,249,253,165,250,138,161,116,6,161,108,226,223,+ 219,30,208,45,247,20,85,211,195,90,10,152,34,197,69,13,161,191,45,14,214,16,15,179,+ 199,5,90,150,89,140,232,166,167,166,143,242,107,137,37,247,12,62,34,63,58,129,182,209,+ 231,94,235,240,117,82,102,191,85,95,26,25,109,11,93,19,19,24,17,174,65,77,100,48,+ 175,6,89,145,136,138,248,68,59,97,186,140,15,38,79,43,162,205,254,197,127,179,254,172,+ 226,183,156,209,236,223,167,135,136,75,141,191,26,237,116,246,93,70,29,49,101,229,160,208,+ 209,221,167,168,205,159,207,136,197,239,248,163,174,75,14,161,121,47,187,131,102,40,227,113,+ 115,37,198,196,81,191,241,52,98,185,24,75,210,66,105,79,235,173,252,125,17,0,1,28,+ 44,46,20,7,16,24,32,73,63,67,16,20,12,11,81,93,91,242,148,187,103,31,246,17,+ 200,144,4,119,34,144,136,133,91,244,176,66,82,9,236,64,163,225,133,185,46,48,34,8,+ 0,198,48,81,160,229,84,66,7,217,11,43,37,80,17,62,86,42,63,86,89,173,33,5,+ 118,171,101,37,138,250,167,94,111,145,201,52,1,202,215,204,253,215,142,121,10,240,75,36,+ 71,9,232,23,249,194,133,55,146,109,196,134,87,117,178,151,41,119,54,194,179,1,122,74,+ 91,240,204,180,225,42,24,178,254,125,152,156,98,71,63,171,243,105,106,196,134,131,176,141,+ 212,12,51,60,31,141,39,154,7,128,25,96,100,37,98,43,119,212,167,152,129,205,108,168,+ 55,16,120,104,82,242,153,50,237,191,13,25,98,48,102,196,224,255,93,220,198,207,56,36,+ 131,138,162,122,201,118,204,13,82,169,168,37,250,136,5,142,52,110,48,143,210,232,98,160,+ 122,77,9,43,41,62,110,206,36,182,217,28,106,232,97,145,242,56,176,74,23,92,251,113,+ 50,204,224,172,24,30,86,110,87,182,105,188,111,156,33,202,54,169,52,151,15,237,100,166,+ 114,190,218,32,119,118,126,252,143,129,93,113,71,135,223,60,152,34,173,245,100,114,15,192,+ 96,248,165,175,137,133,147,174,120,168,226,135,169,24,117,89,209,196,61,209,216,53,207,133,+ 179,37,234,119,202,245,11,149,232,135,97,219,177,250,62,221,153,0,213,24,228,53,17,253,+ 223,130,167,211,245,35,7,121,58,224,196,32,183,192,107,35,138,191,85,211,104,24,214,53,+ 4,138,206,201,102,75,44,198,79,249,124,81,198,198,127,6,187,47,125,225,204,128,78,146,+ 80,60,241,209,190,95,137,199,85,212,177,23,24,170,253,165,61,22,22,0,1,20,40,47,+ 30,32,26,26,11,31,39,44,23,20,14,14,41,62,66,53,31,29,23,20,243,170,119,46,+ 147,98,250,240,47,56,235,120,240,57,247,37,64,67,76,66,245,89,41,96,193,120,252,12,+ 9,247,205,203,84,149,208,109,94,146,218,59,207,249,175,117,143,69,253,101,249,182,150,199,+ 231,189,128,135,169,197,101,10,93,216,28,192,6,87,51,165,202,212,51,119,64,244,61,230,+ 50,199,235,64,81,53,216,204,199,77,5,107,108,116,204,0,87,185,161,220,232,196,66,135,+ 175,196,40,95,7,18,157,245,199,142,109,116,96,46,124,224,229,1,252,72,45,26,138,97,+ 194,188,226,119,173,64,212,137,18,89,191,157,234,31,162,98,156,96,101,136,42,157,132,218,+ 76,22,16,50,116,215,236,90,179,14,102,129,86,180,178,189,133,183,224,30,147,198,106,59,+ 88,123,23,204,80,135,46,39,48,49,171,193,55,131,203,15,187,34,29,178,53,47,128,111,+ 62,244,169,161,43,239,250,112,40,141,110,56,222,74,213,218,184,145,168,74,178,66,49,194,+ 185,200,30,149,61,59,137,166,70,234,67,62,174,105,66,178,83,54,136,202,164,227,243,18,+ 126,192,26,69,169,42,131,83,107,66,98,50,163,219,165,183,156,70,4,116,236,217,99,220,+ 87,115,51,205,108,126,101,157,72,58,182,118,107,57,90,30,33,249,127,140,108,190,215,251,+ 116,22,0,1,27,37,50,37,32,20,7,8,12,20,19,20,10,14,17,17,15,30,41,39,+ 42,93,91,32,148,187,103,31,246,17,200,145,215,122,107,70,62,181,77,198,130,239,105,38,+ 57,133,203,191,169,186,106,46,105,148,145,111,63,59,238,114,96,163,228,126,176,132,29,1,+ 186,35,241,45,228,208,108,27,64,45,5,241,75,17,132,96,195,192,244,204,251,232,218,146,+ 228,254,134,191,88,98,145,164,45,109,130,90,234,83,13,43,191,141,212,18,178,1,32,125,+ 166,3,243,22,208,75,2,124,10,40,212,241,236,175,68,223,45,192,107,108,244,234,47,112,+ 180,210,247,84,98,227,141,230,20,91,61,24,49,159,32,107,156,142,99,149,251,198,166,240,+ 58,229,60,74,235,255,4,201,178,70,6,210,160,173,250,147,76,188,161,54,127,240,250,25,+ 21,118,213,133,132,172,244,201,133,147,139,37,87,236,233,189,227,156,143,218,248,115,195,13,+ 162,74,20,195,117,219,174,193,227,172,240,78,189,214,160,105,45,153,71,153,123,219,177,135,+ 53,84,177,169,198,231,127,245,164,228,87,113,135,206,122,129,51,79,118,210,111,3,248,226,+ 84,58,235,200,217,33,225,156,211,119,134,157,187,186,22,238,247,221,42,1,149,52,212,47,+ 194,255,9,165,146,51,22,0,9,40,53,48,19,21,32,44,55,43,32,10,22,21,62,48,+ 48,7,9,7,7,26,41,39,244,26,179,159,232,20,186,242,232,131,93,137,89,18,81,245,+ 230,193,97,44,166,196,65,10,85,215,251,209,222,160,167,20,236,253,196,132,74,201,253,107,+ 196,176,77,28,124,173,139,162,3,248,80,116,36,169,161,55,115,215,115,248,49,119,227,156,+ 228,158,201,109,38,35,106,16,5,17,22,146,193,220,4,248,63,17,84,113,173,52,239,16,+ 171,34,245,143,145,63,216,52,115,118,235,43,32,161,15,44,210,244,3,97,189,143,102,195,+ 67,116,237,143,16,126,39,26,236,170,144,68,213,252,26,58,236,219,57,100,145,60,200,64,+ 221,101,113,18,142,13,191,201,153,142,85,12,15,158,151,176,198,113,139,133,211,193,184,213,+ 180,204,169,175,152,159,144,103,200,138,209,28,106,199,136,241,85,3,158,155,53,213,47,52,+ 163,5,19,140,115,222,218,136,14,254,140,217,101,126,74,2,197,183,42,37,147,64,85,28,+ 62,63,251,225,46,76,39,128,35,47,145,228,203,187,166,157,11,92,137,154,81,126,79,197,+ 116,39,102,156,54,187,130,55,178,124,26,20,64,160,79,168,162,201,139,184,81,136,162,206,+ 98,42,251,81,199,201,135,142,173,175,13,199,229,47,210,236,30,55,222,213,72,102,62,191,+ 148,162,203,188,209,72,20,21,195,198,39,165,60,119,74,228,70,35,82,162,69,242,143,197,+ 166,87,241,2,102,231,146,1,128,222,137,208,227,84,127,171,149,107,84,74,80,72,164,19,+ 136,144,78,12,145,27,50,223,161,143,167,72,237,205,105,132,104,168,216,154,214,168,110,244,+ 24,90,77,85,196,243,130,89,106,246,150,203,252,169,228,181,177,130,95,148,14,120,200,95,+ 75,190,223,47,140,147,45,151,143,98,223,54,68,96,74,223,105,194,167,123,117,101,232,232,+ 167,26,145,221,64,169,218,156,134,197,74,131,18,248,145,252,177,116,230,22,0,9,9,43,+ 36,44,15,14,18,18,24,19,21,19,12,35,51,61,36,19,14,69,68,75,17,241,204,150,+ 89,141,128,100,123,108,62,1,192,97,148,151,15,49,250,109,224,181,91,16,3,215,239,78,+ 102,175,175,212,118,143,151,68,222,178,158,200,217,147,234,223,114,186,118,231,198,94,140,211,+ 152,255,221,132,121,149,121,129,194,123,40,249,26,40,138,181,52,83,15,239,84,221,39,225,+ 201,3,68,192,51,220,243,163,41,218,148,55,217,182,33,209,123,13,191,227,72,124,233,184,+ 16,246,29,130,197,1,246,204,103,89,1,193,190,76,114,40,134,135,163,193,255,23,232,173,+ 82,52,115,165,246,190,199,173,200,61,142,112,206,37,224,235,62,55,219,47,80,110,177,192,+ 112,177,198,199,181,182,154,41,85,152,50,234,190,98,223,123,216,24,61,116,21,172,12,20,+ 53,71,53,124,5,81,29,2,107,82,253,72,165,39,53,228,188,121,147,17,98,112,123,86,+ 29,211,8,54,123,177,131,208,41,212,40,211,23,246,221,177,114,240,17,170,25,121,62,60,+ 46,219,22,96,157,25,43,5,24,48,82,243,103,139,78,142,197,154,99,127,29,118,109,178,+ 153,222,56,11,236,20,159,85,190,228,9,12,103,109,202,42,165,247,83,115,129,8,239,186,+ 41,47,184,30,170,195,28,187,1,2,99,134,240,179,209,66,254,65,182,244,232,139,108,3,+ 128,248,116,129,24,169,230,198,107,95,87,110,168,189,28,246,151,53,63,200,8,135,251,208,+ 72,32,55,231,64,133,83,174,139,166,150,249,251,124,2,114,147,138,244,63,130,137,157,170,+ 17,189,201,149,254,180,205,28,102,74,71,48,84,82,118,84,183,12,55,243,241,89,66,212,+ 99,167,16,84,24,11,158,77,40,159,157,87,20,229,86,251,90,33,117,102,217,235,184,36,+ 99,116,236,1,98,103,122,55,31,80,193,223,195,54,229,76,250,180,178,215,148,182,56,78,+ 136,119,63,230,7,246,248,226,165,240,22,0,8,39,51,44,23,44,45,54,31,33,16,12,+ 24,32,46,48,45,29,19,13,16,16,11,95,20,183,62,134,83,201,126,157,163,148,13,16,+ 20,96,215,95,114,14,50,135,248,68,217,116,178,92,18,38,182,116,85,47,107,246,121,135,+ 22,172,79,99,111,20,148,104,55,143,63,178,161,11,33,158,223,8,111,28,198,237,59,140,+ 233,222,114,216,6,243,191,64,124,26,205,30,223,29,197,228,203,212,217,81,141,106,220,147,+ 124,184,2,9,198,211,10,185,242,121,188,114,109,46,62,197,26,201,16,87,47,242,169,109,+ 229,173,74,11,170,113,89,247,109,255,115,230,22,21,125,131,253,152,121,164,161,54,211,196,+ 87,140,81,167,23,201,142,202,149,28,183,144,216,44,100,133,143,213,45,152,59,88,178,159,+ 240,59,155,120,201,149,52,181,255,104,27,11,105,99,56,254,209,13,76,40,19,28,251,60,+ 21,82,199,120,251,249,209,58,113,53,95,197,136,212,136,220,104,221,216,19,231,152,223,24,+ 83,202,230,161,87,144,58,210,233,121,126,80,104,194,31,253,255,212,194,220,44,141,100,233,+ 209,158,176,15,236,30,205,79,125,97,204,189,43,114,129,41,68,4,245,19,170,63,50,58,+ 48,78,13,188,3,130,118,101,160,49,252,141,248,58,67,2,157,231,143,67,131,78,114,157,+ 150,16,207,40,193,244,69,142,105,67,151,16,23,142,66,8,98,186,125,136,74,71,49,84,+ 158,106,114,114,195,32,51,248,173,175,86,251,154,250,212,233,32,65,169,236,213,163,211,32,+ 98,93,67,177,245,29,209,203,30,74,232,245,74,180,165,221,34,61,5,225,32,182,141,162,+ 164,231,119,138,168,4,167,222,146,210,149,8,22,206,98,127,165,2,201,250,235,98,252,26,+ 170,49,82,18,0,32,36,85,61,59,16,14,15,45,49,59,26,29,26,26,14,36,39,37,+ 91,20,183,62,134,83,157,200,2,240,254,210,155,247,34,157,210,20,99,136,193,104,54,106,+ 229,160,76,171,235,159,144,38,16,251,130,134,91,206,9,24,87,21,135,36,121,54,194,247,+ 122,229,213,232,241,242,224,218,221,253,156,235,241,5,73,124,192,178,187,221,127,135,82,59,+ 62,120,97,53,252,226,236,240,211,114,155,75,14,53,225,106,75,13,140,86,208,20,126,90,+ 145,124,30,64,50,181,176,146,160,39,95,240,197,37,80,177,34,100,74,194,85,138,58,156,+ 0,159,93,117,76,227,51,7,14,219,231,23,241,217,14,192,235,253,135,46,174,70,179,120,+ 67,180,145,51,22,107,240,240,101,101,114,191,61,18,73,52,216,121,120,103,45,18,116,139,+ 55,228,50,197,221,192,84,214,66,109,19,12,102,164,29,24,148,128,173,211,199,151,130,163,+ 250,157,249,30,55,77,136,251,188,125,52,153,126,140,216,98,28,200,29,20,61,150,220,93,+ 226,64,42,140,246,92,21,154,55,215,167,93,245,52,60,212,5,245,9,80,104,35,253,240,+ 31,20,101,92,159,103,159,224,24,128,234,174,161,109,133,173,3,13,247,112,68,30,141,69,+ 92,63,172,173,19,46,140,139,250,201,221,37,164,69,14,113,97,25,104,96,209,185,248,123,+ 161,199,249,83,98,210,228,34,76,136,151,106,12,138,106,249,199,80,17,33,137,246,186,169,+ 159,175,169,62,160,134,5,243,177,99,190,49,249,186,65,194,82,26,251,85,4,116,112,60,+ 151,53,171,115,238,66,237,225,8,251,111,41,171,187,176,57,63,69,233,250,170,47,11,163,+ 228,93,44,83,26,108,56,4,24,36,250,50,6,200,246,222,205,147,232,193,158,179,220,212,+ 171,95,46,182,209,1,156,230,238,74,92,107,35,29,183,176,174,68,46,4,12,76,50,104,+ 236,63,219,134,223,219,175,240,113,95,82,0,127,42,78,8,86,121,177,183,251,69,59,188,+ 234,87,193,167,10,50,176,79,10,152,115,105,143,244,140,45,225,41,191,84,59,65,130,34,+ 21,86,108,79,106,83,194,9,220,72,138,67,111,46,93,244,162,36,211,231,135,192,151,60,+ 47,211,91,148,127,166,201,1,126,242,77,30,247,54,84,9,19,56,170,54,55,235,211,27,+ 158,66,226,110,127,229,126,36,198,43,191,89,20,25,163,18,237,242,123,147,190,153,185,35,+ 125,119,227,12,104,59,195,43,102,141,36,19,233,171,86,191,24,27,35,147,96,37,167,217,+ 178,171,33,121,231,66,238,190,76,97,73,165,158,153,15,9,38,151,130,24,102,71,164,155,+ 199,22,0,9,41,49,45,13,14,18,16,14,15,60,57,48,15,19,26,56,52,57,22,22,+ 19,11,55,124,183,86,105,85,21,138,239,93,43,98,106,225,83,203,118,241,16,141,49,113,+ 93,2,32,16,26,137,229,169,29,228,203,116,63,39,74,212,145,166,11,37,216,191,255,170,+ 214,127,117,200,57,251,142,69,145,238,96,168,115,120,55,104,71,47,220,182,136,161,3,193,+ 220,220,152,160,68,12,217,170,172,184,107,119,249,53,126,71,28,58,59,12,128,137,161,122,+ 20,11,212,41,32,64,215,232,165,72,64,215,36,110,212,131,15,86,66,166,104,251,134,116,+ 8,46,3,140,43,169,81,154,48,115,81,173,16,242,63,71,156,161,77,140,7,106,230,109,+ 141,115,109,125,76,92,131,244,214,52,157,189,143,178,81,25,37,186,176,66,32,73,195,254,+ 254,254,106,72,131,138,133,139,178,79,47,189,33,209,97,252,51,12,210,58,47,206,14,128,+ 183,128,182,38,181,107,198,60,42,182,16,7,204,191,245,164,140,177,135,91,202,21,72,81,+ 83,191,57,76,99,79,127,205,221,145,130,169,14,20,133,147,5,79,205,134,4,94,34,177,+ 66,62,69,19,112,230,1,222,105,182,56,32,58,84,203,129,91,223,134,138,156,233,248,144,+ 131,62,32,199,242,33,190,146,213,190,46,138,234,245,94,65,224,94,115,118,166,250,242,192,+ 95,88,176,29,0,190,222,6,81,127,92,34,31,162,43,175,138,148,247,100,71,67,132,194,+ 43,180,50,214,130,21,149,247,202,7,219,225,83,16,8,211,41,15,178,60,185,190,145,87,+ 80,251,186,20,128,164,27,190,34,41,95,150,209,1,109,201,159,165,103,149,103,76,237,172,+ 55,207,103,84,159,11,100,114,123,143,234,22,147,114,16,10,77,213,138,207,185,90,148,126,+ 56,57,62,69,173,9,58,171,116,84,153,5,189,166,109,77,26,194,50,91,110,41,120,78,+ 32,193,222,78,139,120,53,8,140,108,86,56,101,33,94,166,218,151,37,20,0,4,9,13,+ 25,32,45,45,36,25,26,71,70,67,28,26,13,54,55,55,5,21,19,244,115,165,170,77,+ 28,26,46,151,227,113,187,156,27,243,243,87,49,63,85,38,7,134,157,36,139,38,114,251,+ 62,117,90,24,1,133,247,167,221,142,129,67,40,222,240,48,23,40,29,141,36,235,46,78,+ 216,120,112,152,167,235,115,101,232,106,149,3,216,163,238,216,239,107,67,219,91,138,140,86,+ 117,18,67,69,161,246,202,214,148,191,233,151,1,86,41,42,1,77,142,64,117,178,217,209,+ 114,70,177,26,31,155,178,51,117,41,140,166,3,195,197,143,237,78,112,18,41,239,154,191,+ 248,3,61,4,106,194,182,43,190,108,199,4,82,179,185,100,13,136,194,104,130,150,192,203,+ 134,63,148,169,158,93,234,26,66,157,26,169,241,232,204,7,4,10,33,53,118,234,82,139,+ 83,241,242,228,224,29,133,6,85,120,76,72,195,116,163,237,84,49,120,52,25,152,199,126,+ 142,223,197,48,15,223,93,102,209,220,189,132,110,222,11,127,44,14,193,192,122,60,64,61,+ 196,212,36,24,250,41,0,205,216,238,95,43,49,13,24,90,58,127,226,159,106,112,2,146,+ 127,132,241,108,156,153,209,186,165,150,49,36,73,136,70,228,183,0,197,142,251,22,113,21,+ 244,210,224,207,50,0,185,102,103,153,20,233,64,134,194,141,80,176,80,76,188,59,254,207,+ 117,222,132,177,211,66,69,85,10,110,157,160,227,245,163,79,50,112,82,90,229,37,53,133,+ 245,132,4,167,73,242,240,174,178,57,38,223,39,69,71,27,234,4,214,157,169,197,14,42,+ 83,208,152,223,44,1,160,247,117,116,55,159,38,171,54,227,215,227,61,89,228,219,154,151,+ 62,221,9,93,175,167,69,130,180,244,64,88,147,196,94,247,189,54,152,51,118,110,240,140,+ 171,35,15,148,71,142,144,159,47,74,35,137,112,120,33,208,123,250,237,65,8,142,109,223,+ 121,250,21,52,207,185,115,149,70,192,106,98,167,189,253,126,6,219,37,135,201,5,150,201,+ 78,70,12,8,19,105,20,6,252,228,42,133,182,253,88,174,183,192,85,179,72,248,11,33,+ 162,98,140,230,112,169,104,73,86,151,64,15,11,246,232,47,21,125,74,195,93,64,84,55,+ 254,196,60,175,191,23,0,43,57,74,40,34,25,17,11,12,13,16,12,12,32,64,63,36,+ 4,5,4,5,18,43,59,43,244,26,219,143,158,62,215,182,84,111,158,175,84,130,176,157,+ 38,63,121,111,142,93,129,144,28,234,170,71,64,95,86,183,202,238,47,121,232,144,45,12,+ 92,225,7,235,19,214,252,19,16,46,63,239,24,176,38,77,17,119,86,5,113,88,175,152,+ 45,7,132,220,89,124,8,191,8,106,57,139,157,201,48,100,169,39,61,34,82,65,243,213,+ 50,147,72,178,76,151,249,43,103,221,73,20,189,161,107,64,215,222,157,63,121,5,209,249,+ 91,240,102,117,112,203,110,64,191,48,155,189,213,32,198,190,88,97,190,63,176,82,113,239,+ 190,171,119,133,249,66,7,24,147,44,44,42,94,202,3,63,21,58,1,144,250,242,193,186,+ 92,84,249,46,87,103,174,73,74,155,143,113,186,199,202,138,184,168,13,60,25,86,3,51,+ 18,207,23,245,231,134,136,37,159,183,51,151,109,252,168,164,151,201,220,12,217,84,168,28,+ 254,198,179,122,208,129,97,199,149,222,124,77,181,36,176,208,96,16,135,170,26,73,81,211,+ 16,183,209,250,77,81,165,59,150,74,172,170,93,101,144,83,1,191,17,104,48,238,212,34,+ 3,187,108,254,70,157,22,2,58,244,217,173,144,199,99,96,86,148,165,44,94,80,6,68,+ 67,169,199,190,40,195,7,22,226,25,16,175,38,127,232,233,71,183,24,211,94,119,173,132,+ 186,180,45,26,32,32,146,104,56,6,127,87,88,179,137,0,246,111,6,136,43,160,202,24,+ 249,171,166,42,109,152,150,157,141,102,241,159,221,124,81,68,132,237,213,176,207,163,23,74,+ 83,128,49,37,47,235,178,114,49,132,77,49,54,237,79,10,26,242,191,90,159,241,196,29,+ 156,201,27,254,35,28,207,29,245,230,246,145,87,132,70,253,106,18,136,54,103,248,249,171,+ 33,121,65,49,49,173,226,55,87,235,225,182,252,246,144,205,255,153,139,111,27,238,12,86,+ 186,77,87,77,76,14,189,161,123,7,6,245,131,239,84,52,120,137,255,42,114,25,87,22,+ 0,12,39,53,55,41,61,64,56,36,41,34,42,29,33,17,11,10,14,18,18,14,18,2,+ 87,9,183,62,134,83,173,141,173,202,36,121,29,132,76,163,33,77,223,245,23,36,114,116,+ 82,37,203,138,190,251,94,10,176,254,32,64,223,198,234,109,204,186,134,169,158,72,35,62,+ 205,239,18,60,174,1,5,153,167,129,128,22,104,97,247,31,171,200,4,64,181,128,163,185,+ 138,111,100,226,231,6,252,58,183,251,122,109,70,124,52,110,32,73,116,169,133,142,199,56,+ 10,103,168,154,107,7,126,95,6,53,140,228,77,99,232,62,34,220,132,240,10,108,7,109,+ 133,223,116,100,225,220,221,145,230,113,62,106,134,246,7,23,115,8,113,169,175,127,26,168,+ 192,92,185,92,248,12,68,129,93,156,228,168,244,105,129,190,116,13,114,28,24,164,188,42,+ 110,100,58,189,195,120,75,73,222,67,47,24,144,61,206,106,210,138,31,241,35,102,118,125,+ 173,181,174,165,126,238,229,76,187,164,175,225,101,112,35,214,86,155,98,160,67,161,109,180,+ 49,79,117,82,188,119,18,214,86,231,173,17,42,2,62,2,235,238,26,113,188,73,152,68,+ 73,136,210,238,169,33,218,146,184,89,238,10,243,149,218,206,36,232,20,76,41,151,98,122,+ 161,163,198,81,134,63,99,19,68,52,185,196,199,210,223,126,34,60,172,125,164,17,33,16,+ 117,111,13,25,11,184,178,1,126,2,158,19,166,114,146,205,198,205,29,72,105,27,201,175,+ 246,55,24,254,177,79,47,67,36,47,209,66,168,219,52,139,176,154,200,186,247,11,35,81,+ 178,221,47,226,65,192,178,15,247,129,91,117,31,51,157,72,242,173,92,104,68,92,242,223,+ 85,86,148,236,7,214,239,96,44,103,79,229,97,10,219,142,159,92,106,2,54,171,43,132,+ 41,4,49,85,142,32,15,42,216,163,145,22,0,5,35,43,46,16,14,7,5,3,5,5,+ 11,26,28,37,52,53,46,22,75,72,74,17,199,108,183,104,23,70,82,13,37,23,1,245,+ 220,145,60,180,173,215,181,69,178,97,127,170,91,51,12,169,97,172,207,211,237,73,6,21,+ 235,251,126,247,36,231,241,234,206,65,128,29,29,253,118,18,2,251,123,120,156,250,144,42,+ 73,177,243,33,254,187,169,112,65,48,185,110,81,145,142,162,59,94,33,21,153,191,44,4,+ 130,96,201,83,215,226,185,174,180,189,80,119,191,244,113,64,167,165,235,38,241,82,76,86,+ 42,96,103,132,191,141,106,118,75,14,212,241,223,41,102,183,77,99,196,106,212,177,134,140,+ 245,232,86,134,176,119,201,160,58,192,14,168,134,173,159,78,53,208,114,154,23,80,98,111,+ 221,11,9,137,239,15,57,108,59,93,102,128,99,17,151,152,189,202,166,151,250,176,103,25,+ 240,164,128,10,148,220,9,47,101,167,171,2,130,6,107,168,65,42,93,195,67,49,189,238,+ 95,216,30,174,70,215,128,236,5,67,157,68,102,231,9,168,65,185,74,178,181,38,161,217,+ 80,206,163,103,204,60,171,26,230,24,134,146,65,179,203,152,180,129,215,142,177,112,71,160,+ 27,197,103,15,97,225,7,240,71,14,112,113,171,3,137,155,84,103,193,249,47,87,242,207,+ 196,151,90,71,88,198,50,78,130,220,225,208,102,69,132,247,217,129,101,136,187,173,184,203,+ 48,99,133,196,221,16,126,175,227,83,107,162,28,57,12,94,24,116,219,149,243,139,136,149,+ 8,158,208,4,55,150,163,14,43,189,105,90,181,154,251,96,162,76,24,252,133,207,34,165,+ 242,73,250,8,171,166,90,106,58,195,254,234,165,181,20,0,8,63,73,69,15,9,11,19,+ 25,46,48,57,36,27,13,8,45,60,72,31,255,109,194,183,67,131,172,254,212,66,184,221,+ 15,183,104,86,80,113,219,245,254,250,186,217,248,55,170,18,248,85,11,89,166,152,51,254,+ 160,63,235,104,105,76,82,78,241,177,73,41,232,154,176,64,231,245,235,132,125,43,10,14,+ 47,230,128,220,114,90,227,62,80,214,76,215,85,1,177,45,2,156,176,196,6,119,233,150,+ 153,133,18,119,103,86,231,199,48,212,5,192,87,57,69,149,155,164,126,250,79,79,251,161,+ 25,79,217,149,140,34,193,181,158,7,43,245,209,97,241,116,111,49,83,95,205,196,93,106,+ 255,224,97,13,102,158,205,83,41,173,113,44,20,171,71,188,132,18,107,251,74,68,208,79,+ 222,209,40,202,210,33,54,22,228,22,201,143,112,200,210,167,235,52,2,7,239,235,79,177,+ 203,17,167,8,178,64,210,238,18,36,143,116,212,29,172,13,97,54,44,216,42,76,82,74,+ 206,118,2,41,196,84,238,155,180,73,148,41,130,38,118,7,239,144,243,164,249,63,185,167,+ 103,165,67,220,91,12,134,119,118,135,210,178,56,161,51,216,168,131,214,152,95,85,187,187,+ 223,249,223,115,25,97,11,219,135,134,80,55,16,88,100,202,244,199,91,71,63,45,179,170,+ 54,64,157,147,168,150,163,25,249,219,35,26,46,220,177,246,3,147,163,36,156,212,147,39,+ 67,4,103,187,228,73,148,181,116,190,66,95,219,253,78,140,132,232,42,73,236,249,8,98,+ 87,63,119,81,72,97,16,154,230,7,249,14,156,9,72,182,74,101,156,14,180,144,118,106,+ 36,30,240,49,114,124,64,199,83,199,84,65,73,40,224,193,195,226,55,55,62,21,0,46,+ 71,89,44,18,5,14,16,20,13,11,12,37,43,40,18,25,58,53,50,19,30,17,238,142,+ 31,199,47,82,211,125,96,165,64,52,204,213,248,114,148,91,161,160,50,229,94,82,151,18,+ 84,104,230,38,151,148,93,246,212,49,11,48,90,33,69,37,139,150,102,119,36,233,26,15,+ 197,48,247,83,7,75,124,201,136,200,75,2,15,40,113,237,157,138,186,161,173,246,223,108,+ 142,207,174,180,53,250,190,120,94,136,210,154,201,111,185,172,86,99,241,92,224,179,176,117,+ 77,233,190,48,55,85,26,244,96,111,49,116,169,40,109,1,242,249,93,224,139,0,23,138,+ 128,192,135,61,47,28,237,33,8,82,36,250,47,115,254,20,160,32,246,220,204,208,93,40,+ 183,52,111,147,174,222,44,125,202,173,219,60,26,162,19,153,126,218,57,10,224,213,191,26,+ 217,135,53,214,3,74,150,135,115,65,162,60,238,104,122,236,123,230,85,228,37,45,220,231,+ 192,214,26,247,230,52,200,231,118,52,191,174,15,129,75,218,211,96,103,100,226,16,199,79,+ 163,248,166,46,228,239,75,172,173,235,96,202,153,123,113,54,195,57,193,230,225,239,1,221,+ 247,193,63,149,211,195,128,134,192,73,157,187,25,49,164,233,36,187,65,196,62,178,46,84,+ 15,124,224,115,11,118,127,120,206,53,163,10,226,48,151,62,114,145,240,93,168,229,111,222,+ 110,224,135,243,255,105,209,188,252,130,128,5,208,161,163,168,172,88,227,15,210,135,33,129,+ 236,235,126,104,223,78,211,152,91,47,104,161,192,76,171,75,50,131,38,91,202,190,153,231,+ 0,189,75,241,71,19,195,215,2,160,5,219,173,43,87,82,48,4,255,99,66,97,230,177,+ 2,0,45,169,48,124,147,224,240,220,6,255,65,241,23,159,222,170,75,0,97,60,168,136,+ 72,38,120,18,174,143,172,1,30,90,206,44,144,125,248,96,182,90,47,90,41,233,203,89,+ 177,114,176,38,124,167,76,115,247,118,105,150,163,224,178,15,38,183,14,0,33,50,249,55,+ 229,180,50,75,71,166,63,122,251,17,204,76,21,0,34,47,80,49,35,17,23,22,17,34,+ 39,37,21,27,30,67,60,56,13,14,11,251,77,8,183,62,134,83,179,199,247,71,79,196,+ 195,214,64,24,108,170,62,61,248,47,167,19,51,21,107,179,133,19,124,53,225,215,80,109,+ 239,101,191,229,145,226,252,236,198,231,40,34,60,2,132,99,150,61,81,194,22,23,228,42,+ 205,95,19,247,17,27,124,172,189,8,54,121,226,43,36,0,131,45,217,26,138,112,135,4,+ 145,212,227,196,13,47,193,31,251,71,15,237,41,216,164,17,60,126,163,197,229,76,225,87,+ 104,151,172,34,199,86,14,250,249,100,78,91,213,108,120,166,39,69,16,208,156,142,44,111,+ 164,151,231,14,149,40,44,104,49,137,79,13,88,237,249,180,69,127,103,0,128,178,130,220,+ 189,53,191,243,165,176,78,165,201,231,105,113,35,147,242,144,89,247,107,192,43,116,121,144,+ 109,223,199,4,224,86,13,122,148,75,228,124,177,203,186,116,116,153,87,182,202,147,159,183,+ 14,237,18,21,95,247,20,253,205,88,139,30,196,111,63,21,70,180,149,82,97,109,78,15,+ 51,193,128,142,66,153,229,166,145,189,185,76,101,74,171,26,205,173,95,106,17,8,250,8,+ 102,50,195,100,20,79,54,250,193,0,199,161,195,16,130,179,72,63,52,230,158,52,8,126,+ 208,91,157,11,43,142,211,233,16,109,159,52,42,58,11,79,102,6,224,75,209,19,131,104,+ 157,201,18,142,35,141,179,123,89,248,235,128,202,88,223,70,139,153,93,207,88,216,17,212,+ 138,120,252,250,0,200,97,152,166,131,50,178,161,63,239,179,45,4,141,189,209,17,162,238,+ 2,152,249,152,47,119,216,182,229,217,14,44,192,49,185,4,17,121,124,135,154,193,202,25,+ 79,72,177,192,255,46,20,0,43,43,51,12,11,6,19,27,45,61,55,48,19,43,50,47,+ 21,7,22,35,48,31,244,146,22,205,64,194,196,193,219,217,37,91,154,82,92,187,198,135,+ 67,9,109,216,216,246,117,33,103,251,104,202,201,31,146,254,213,36,241,23,48,89,72,91,+ 5,246,167,17,187,15,7,7,74,67,243,69,142,154,70,3,27,28,16,74,10,73,200,121,+ 124,136,221,238,69,20,135,89,97,16,17,148,143,169,193,62,124,83,173,216,49,195,49,12,+ 212,203,8,195,230,135,235,251,46,48,171,201,84,208,153,202,139,190,13,178,186,11,232,192,+ 210,124,36,156,14,91,251,51,96,53,226,146,77,6,227,10,49,103,6,106,141,34,134,194,+ 219,237,58,198,7,211,25,94,213,11,176,151,168,143,215,211,146,104,95,182,19,162,51,55,+ 21,51,23,155,143,195,192,245,182,12,253,180,169,120,186,255,200,197,219,169,228,59,236,138,+ 68,104,127,117,142,198,8,145,252,137,202,178,171,58,148,166,119,51,165,35,90,0,17,165,+ 83,72,66,209,172,44,186,57,247,60,6,162,253,51,72,157,126,79,191,136,184,248,59,17,+ 255,188,203,132,255,39,96,183,106,56,141,85,17,172,252,217,140,61,186,92,207,145,187,214,+ 109,132,15,164,90,0,134,75,100,206,161,77,180,233,54,53,70,96,111,232,219,184,95,52,+ 53,238,180,231,169,52,253,32,64,118,51,242,54,152,128,226,83,63,128,188,130,216,56,140,+ 82,239,252,170,101,165,214,7,11,251,2,255,211,181,230,124,158,76,61,151,62,241,11,138,+ 16,212,65,76,145,171,174,145,6,35,74,171,58,8,168,240,188,232,180,186,208,228,144,196,+ 46,90,67,12,250,8,222,23,101,36,97,47,175,38,110,89,66,101,191,15,15,69,175,9,+ 155,6,59,107,157,181,56,137,73,217,141,83,216,153,199,45,198,206,138,176,189,161,110,161,+ 157,77,91,231,222,250,102,247,199,35,235,228,11,136,12,41,55,195,69,74,212,17,0,43,+ 49,58,16,10,16,24,30,18,61,60,65,14,8,65,66,78,33,30,244,101,174,235,255,44,+ 192,145,241,137,18,110,214,117,79,193,134,207,199,224,159,114,30,129,228,167,171,221,73,118,+ 75,246,148,253,119,38,6,241,101,81,123,122,229,212,165,66,103,127,77,168,114,124,246,242,+ 161,208,184,219,136,161,224,222,160,175,18,141,60,12,249,9,107,111,24,181,161,221,137,202,+ 221,111,229,244,111,249,4,223,84,33,75,37,49,31,108,59,246,83,244,17,14,176,138,117,+ 34,18,179,121,244,8,171,111,165,187,28,24,34,223,125,190,208,70,161,118,58,183,163,63,+ 89,106,57,171,221,32,134,12,192,74,13,7,156,16,135,102,55,188,229,104,211,16,36,222,+ 80,115,215,208,214,195,194,30,58,61,79,25,33,223,77,122,161,87,147,31,224,100,167,98,+ 124,223,74,6,193,79,179,80,93,131,118,208,39,62,226,252,241,192,85,108,54,150,210,96,+ 120,211,129,96,152,10,195,8,147,232,137,233,167,1,51,146,191,82,11,56,132,208,131,53,+ 11,61,6,9,37,101,45,217,26,30,22,115,184,148,131,29,29,51,188,35,49,184,170,144,+ 69,103,66,25,158,132,149,243,208,233,213,7,175,180,25,232,189,132,253,160,234,192,82,56,+ 80,44,101,19,74,20,202,129,209,81,138,104,159,50,75,89,151,187,19,102,212,11,54,187,+ 99,31,217,228,200,146,170,56,113,127,41,210,199,130,198,100,158,190,69,105,97,36,151,73,+ 218,162,151,80,115,183,136,22,126,66,52,201,188,225,117,132,251,59,87,53,172,249,121,9,+ 176,169,42,200,181,31,9,81,46,18,216,48,120,204,140,131,88,81,2,54,1,47,93,77,+ 31,1,64,197,241,72,41,159,31,214,14,222,80,1,234,4,228,103,41,39,18,229,27,201,+ 57,53,100,57,66,169,194,227,178,64,19,212,125,185,65,107,83,121,5,179,128,223,60,134,+ 113,124,71,20,81,66,4,146,232,231,250,39,244,142,215,51,199,169,84,127,145,39,5,230,+ 185,62,231,206,66,244,27,59,212,243,41,169,184,47,195,78,84,249,164,147,211,74,184,152,+ 21,192,116,38,201,147,8,126,146,244,231,136,132,21,230,86,69,225,49,197,43,174,246,136,+ 71,81,67,75,159,86,77,173,106,214,107,180,72,209,164,126,83,117,48,169,47,83,226,175,+ 55,190,89,22,0,40,45,53,34,42,38,39,37,37,29,16,16,11,28,34,50,37,54,32,+ 29,6,13,18,16,233,142,49,101,255,82,211,135,81,80,64,52,204,223,79,14,212,219,232,+ 208,36,56,99,51,155,158,214,168,4,105,240,138,53,214,85,154,103,127,241,97,154,93,235,+ 197,202,9,242,190,104,212,95,32,220,87,239,238,3,1,89,216,196,210,237,75,246,230,250,+ 180,108,152,148,67,165,61,7,132,32,186,194,128,23,20,82,220,76,15,241,106,78,251,235,+ 236,218,7,107,92,221,55,236,204,248,130,115,181,21,216,2,80,47,26,136,85,84,239,107,+ 189,251,32,73,118,88,31,245,71,24,128,50,163,0,79,23,28,5,75,122,157,196,178,198,+ 34,228,70,84,193,20,125,4,205,64,236,182,86,205,18,27,140,1,154,173,69,221,37,24,+ 88,218,69,203,110,204,149,91,64,245,94,122,117,37,95,194,209,112,96,163,211,58,198,119,+ 30,52,208,212,254,34,140,12,33,115,31,26,65,237,231,25,108,225,234,132,95,35,255,232,+ 215,152,29,252,151,33,132,25,86,115,56,67,168,204,29,55,27,15,53,40,213,166,9,255,+ 142,44,27,111,95,223,19,89,126,85,123,153,201,60,179,105,170,158,63,68,208,99,7,5,+ 65,126,120,159,114,248,92,15,10,240,58,232,43,246,31,198,118,79,223,251,148,74,189,140,+ 123,216,157,57,76,116,5,44,100,86,150,211,16,247,76,176,156,32,48,97,195,53,161,216,+ 181,52,204,66,35,250,174,206,210,53,218,254,15,70,54,110,101,56,162,141,101,74,117,49,+ 5,139,243,96,141,160,26,166,43,178,58,57,244,159,215,39,151,45,199,189,94,114,161,201,+ 96,88,98,247,4,146,52,248,20,244,215,111,143,162,26,135,46,199,119,15,72,77,66,202,+ 180,5,186,217,96,135,68,102,131,140,248,227,165,81,188,237,196,108,249,201,5,15,72,122,+ 87,78,172,23,200,226,58,237,178,191,117,47,127,19,120,235,183,144,44,143,42,80,96,202,+ 107,69,127,36,201,59,91,182,126,145,199,121,27,149,202,36,115,186,40,79,188,243,253,87,+ 95,230,162,87,88,184,219,73,211,8,204,201,237,142,253,162,25,254,23,0,35,46,69,36,+ 32,25,24,14,15,15,16,11,11,11,12,16,21,30,29,42,50,66,51,24,163,140,183,70,+ 207,220,126,81,128,71,94,202,35,226,229,117,68,225,59,47,224,224,31,208,47,149,169,141,+ 183,247,110,138,51,139,104,138,94,177,149,250,102,16,156,89,6,124,131,55,174,154,195,146,+ 72,41,122,206,10,230,77,43,213,160,234,241,238,192,177,154,112,27,24,227,20,43,204,251,+ 140,217,37,250,93,92,244,173,50,200,245,157,198,182,236,39,18,139,73,115,163,141,56,7,+ 93,207,74,192,56,229,89,228,178,3,238,11,190,216,86,98,173,231,31,233,100,24,41,247,+ 137,76,213,203,180,44,130,105,208,189,88,81,127,44,1,149,252,171,64,135,122,22,28,98,+ 162,54,125,24,46,95,211,55,65,198,43,35,157,101,23,72,160,94,206,31,111,87,1,109,+ 114,54,86,132,199,162,54,155,206,152,135,117,26,186,251,93,73,250,230,209,230,211,228,118,+ 108,150,176,231,99,150,198,89,210,91,236,33,187,171,228,27,205,127,96,111,188,49,228,72,+ 21,216,75,154,238,43,198,166,149,75,9,67,196,72,124,241,143,162,81,46,3,189,213,88,+ 169,79,131,84,85,139,91,32,169,209,119,55,205,13,216,103,49,208,29,151,211,140,254,31,+ 207,94,219,189,81,45,166,197,151,250,180,197,35,223,55,219,143,68,4,42,101,63,86,230,+ 174,132,20,39,184,229,179,253,10,233,162,116,201,251,166,87,114,96,56,91,218,176,10,251,+ 218,178,144,120,115,225,179,242,15,246,20,103,185,66,18,246,104,126,223,151,161,239,218,110,+ 0,163,140,86,254,196,95,42,181,7,178,225,178,3,148,134,82,195,59,227,68,168,81,63,+ 45,79,69,99,22,67,179,121,149,47,59,193,193,83,34,232,167,85,24,110,51,162,19,214,+ 170,170,238,219,208,229,176,132,196,145,171,79,110,220,123,10,48,103,228,19,69,38,21,0,+ 6,12,25,28,20,24,23,49,49,59,50,37,32,15,42,57,68,41,39,28,36,248,102,255,+ 73,47,44,212,37,206,218,180,16,70,161,179,216,111,179,225,199,120,61,116,61,3,53,126,+ 163,171,119,123,117,222,210,191,233,49,251,118,211,176,51,125,215,61,133,108,96,248,155,164,+ 87,209,9,190,98,180,255,238,118,85,151,239,250,75,48,195,194,78,24,64,95,220,160,115,+ 25,231,72,46,78,224,65,96,192,88,202,204,89,177,169,242,6,150,201,94,155,46,209,38,+ 33,51,96,71,119,105,87,99,202,23,243,233,115,8,114,220,77,157,9,166,237,102,236,29,+ 63,73,229,126,94,235,235,37,91,246,43,76,181,167,33,214,81,187,54,42,82,34,58,203,+ 171,151,139,173,101,143,135,137,104,90,152,44,214,3,160,182,58,163,207,155,247,234,6,34,+ 91,0,247,0,246,207,239,252,52,164,171,151,181,76,14,161,86,143,41,94,212,169,41,242,+ 98,126,236,40,36,122,56,20,10,170,163,232,227,120,109,240,93,199,186,35,133,13,250,184,+ 116,202,83,219,87,158,24,147,197,125,163,4,179,226,56,122,35,12,60,203,25,100,45,90,+ 21,218,216,161,199,203,213,45,193,229,91,168,174,155,117,70,247,161,85,147,91,151,237,244,+ 174,195,190,151,57,227,175,200,16,164,219,216,97,40,24,50,83,131,208,89,253,187,76,115,+ 118,164,115,155,252,173,147,152,82,108,181,143,249,236,244,31,136,162,86,88,120,195,167,42,+ 77,248,119,89,14,0,214,26,137,147,153,121,42,30,37,128,230,24,111,99,254,67,43,140,+ 29,217,4,24,42,235,186,253,126,117,223,1,77,29,131,102,133,212,240,191,154,245,219,163,+ 10,179,203,50,121,172,175,205,33,25,7,60,139,172,236,124,147,132,120,188,111,137,240,201,+ 46,56,208,234,255,27,2,238,134,171,152,185,236,54,33,78,161,46,203,72,8,31,153,203,+ 188,67,159,4,177,41,86,122,115,58,253,61,131,215,64,160,134,8,249,84,109,255,218,61,+ 183,34,120,51,173,219,178,241,162,221,159,115,146,85,106,70,175,125,101,168,60,207,121,227,+ 114,183,128,168,1,243,214,146,215,128,174,23,0,2,4,9,12,10,14,14,20,20,42,42,+ 46,36,54,46,42,17,21,13,66,64,83,38,16,187,46,223,111,5,89,216,237,112,31,61,+ 221,65,41,246,31,85,53,160,251,187,124,88,69,36,129,207,71,199,190,187,123,111,245,105,+ 88,54,126,221,156,204,60,228,37,3,254,157,151,161,24,235,24,221,137,131,72,213,198,167,+ 249,59,63,2,147,202,206,112,67,14,209,81,38,224,182,225,141,208,183,33,184,249,72,34,+ 150,180,134,228,150,17,23,53,238,209,67,39,213,204,38,186,56,163,54,182,235,146,196,60,+ 10,9,184,36,82,72,210,54,194,45,131,189,77,186,255,217,104,186,7,224,172,169,96,81,+ 138,188,217,221,116,218,151,102,178,43,80,8,138,223,189,152,172,177,238,214,161,43,70,45,+ 175,233,82,203,67,78,0,230,251,170,136,119,135,249,212,201,219,243,104,203,186,144,47,184,+ 62,63,24,221,174,150,117,83,234,59,230,108,230,58,202,145,227,119,184,15,19,204,78,220,+ 156,245,238,60,29,127,106,23,238,183,101,241,167,109,240,154,126,83,24,4,78,9,186,223,+ 145,47,156,132,77,194,90,22,78,129,13,112,227,22,226,215,188,169,49,6,91,219,54,239,+ 73,116,168,254,210,100,228,31,87,37,213,106,27,178,153,163,47,123,92,12,13,61,110,156,+ 204,177,196,103,246,56,60,84,163,160,16,89,197,107,138,22,204,95,173,185,251,245,226,23,+ 190,46,227,114,240,124,156,11,3,83,109,103,6,202,107,44,22,85,183,130,56,99,223,98,+ 107,163,214,87,48,151,199,208,219,125,110,96,222,136,222,209,134,129,131,138,143,126,32,70,+ 245,114,92,203,138,224,184,29,212,171,219,251,84,216,70,94,212,173,83,193,80,86,72,178,+ 95,69,150,100,188,108,158,1,156,142,19,14,70,143,152,32,120,143,130,130,191,183,133,11,+ 156,105,243,187,168,164,66,206,214,47,48,126,47,142,76,194,38,200,234,74,212,142,81,87,+ 225,38,180,120,95,42,77,165,83,170,129,158,84,109,229,205,215,182,177,103,77,194,25,48,+ 253,47,203,118,155,55,55,233,3,120,254,247,68,157,152,140,102,41,248,212,156,238,113,110,+ 111,215,88,91,142,66,50,36,24,170,188,195,125,69,55,196,49,163,29,113,70,159,157,11,+ 88,238,55,147,157,44,156,64,112,5,105,107,170,167,21,86,41,168,91,205,165,92,51,163,+ 248,72,22,0,1,1,8,10,11,13,13,14,16,14,13,14,42,45,38,67,62,66,70,71,+ 78,30,16,223,37,70,42,91,52,206,125,194,69,240,228,73,54,206,172,251,71,47,232,234,+ 193,139,111,237,46,145,44,30,230,196,162,178,196,120,243,193,76,151,53,97,237,126,230,254,+ 147,16,36,85,14,5,72,28,13,120,178,166,223,79,228,193,216,97,183,165,253,87,227,112,+ 83,182,198,254,57,116,40,54,27,228,231,109,60,37,66,2,223,193,140,73,50,11,226,139,+ 87,118,50,150,9,205,16,177,199,185,120,112,74,134,33,58,205,107,135,96,84,237,67,184,+ 86,135,185,101,130,125,42,17,230,181,209,243,197,31,142,230,255,188,9,107,198,134,120,169,+ 203,163,99,192,213,100,217,31,71,11,190,200,63,176,142,232,142,88,181,158,24,154,73,209,+ 216,53,21,127,241,207,226,250,78,20,45,134,14,36,228,247,224,111,124,243,15,53,81,226,+ 60,192,239,175,208,249,149,59,122,222,39,184,108,0,176,90,77,101,29,25,39,116,189,175,+ 159,187,141,162,70,224,213,90,49,191,175,92,141,175,175,165,50,156,110,219,246,140,113,39,+ 125,233,112,84,34,21,118,226,139,170,29,156,57,102,225,227,128,188,228,55,180,59,55,35,+ 154,193,205,17,8,96,131,96,102,239,112,88,238,202,183,1,50,132,51,122,147,89,175,107,+ 16,159,43,49,84,77,75,160,193,56,14,138,253,92,9,102,30,111,86,149,184,169,72,176,+ 218,4,85,223,100,157,80,2,234,233,163,218,91,16,188,50,23,2,67,150,11,202,53,205,+ 215,227,113,236,242,194,134,178,118,142,178,23,166,249,57,110,69,181,175,216,104,177,44,193,+ 238,224,117,54,114,163,158,0,169,83,142,205,58,242,95,74,14,99,31,114,168,17,9,31,+ 80,136,118,80,145,100,85,0,86,210,164,110,171,166,134,203,196,55,8,26,149,129,100,97,+ 227,69,119,122,20,172,85,46,126,41,246,218,83,188,96,11,235,148,92,179,232,124,104,174,+ 160,236,51,210,253,216,253,139,33,165,235,150,108,75,130,45,52,18,188,184,225,236,226,231,+ 167,166,81,176,129,81,107,82,22,32,93,24,120,39,65,99,71,109,60,68,79,3,27,88,+ 185,241,85,202,255,0,133,150,154,189,35,58,218,106,211,235,205,98,230,182,46,54,197,129,+ 95,135,104,122,26,161,225,188,60,84,228,133,72,71,85,170,199,23,0,6,10,21,18,14,+ 13,70,75,71,21,19,42,53,54,32,63,58,56,6,5,10,11,15,247,111,182,142,167,96,+ 8,116,73,184,117,144,128,151,211,159,240,239,114,75,67,135,51,135,247,63,223,183,120,235,+ 111,232,183,8,119,10,89,250,112,83,131,147,221,247,151,190,98,61,4,10,118,172,239,53,+ 237,219,92,244,155,60,147,9,125,131,52,107,177,147,102,159,179,190,236,4,58,151,207,14,+ 180,231,236,60,154,103,77,251,89,193,8,113,130,216,30,70,233,66,55,107,169,248,110,27,+ 44,167,107,246,14,38,198,197,187,220,59,166,189,255,140,232,43,68,243,165,117,47,232,128,+ 209,156,23,170,250,60,59,73,120,76,7,150,61,8,21,72,177,254,18,106,7,173,27,138,+ 123,144,227,19,165,127,75,144,55,8,241,139,14,158,223,83,33,219,128,57,97,10,239,126,+ 239,130,235,137,120,137,145,223,188,57,43,250,111,246,89,226,212,136,32,81,139,84,133,176,+ 192,86,136,249,200,149,215,15,149,224,2,136,228,12,129,230,94,38,32,131,114,44,54,248,+ 215,23,242,165,230,177,126,68,229,26,221,36,229,229,25,124,216,44,7,109,155,244,30,216,+ 76,232,116,30,33,30,31,56,10,104,223,183,50,185,98,136,87,138,162,151,80,100,106,27,+ 201,150,49,158,193,254,92,9,106,91,73,173,1,12,73,225,116,58,35,12,204,168,84,24,+ 230,139,183,124,92,0,54,150,184,76,14,47,182,125,74,139,167,132,181,183,18,159,161,106,+ 196,28,168,1,155,105,107,67,153,58,118,34,229,99,98,158,57,237,208,132,238,77,188,188,+ 240,163,187,102,35,28,114,44,36,141,92,111,93,185,39,52,141,216,243,112,204,208,190,34,+ 61,2,185,244,31,3,24,207,83,147,216,84,190,201,38,186,79,109,46,253,23,242,229,243,+ 112,172,24,134,18,133,27,57,184,244,31,174,119,207,80,246,137,98,39,49,115,10,174,147,+ 52,41,120,240,247,14,236,121,198,65,118,242,111,91,147,245,196,80,122,76,134,114,213,45,+ 68,208,30,201,12,218,9,179,192,19,190,25,212,101,207,241,13,245,139,224,6,161,249,173,+ 161,35,94,93,179,186,48,102,189,69,95,36,6,213,18,17,178,2,195,44,252,93,202,102,+ 137,61,74,112,45,29,170,88,6,32,233,0,224,128,22,0,4,11,18,22,14,12,11,38,+ 48,45,39,29,64,50,49,14,6,17,58,72,63,29,3,148,5,107,205,126,137,233,21,247,+ 221,127,209,76,167,178,220,249,210,155,30,175,133,109,58,87,49,233,225,107,77,183,242,198,+ 195,249,7,176,75,200,199,109,21,195,189,212,158,242,184,232,83,225,190,142,176,78,0,213,+ 240,155,5,56,117,122,190,51,26,114,29,124,255,1,173,134,232,113,106,14,167,147,155,24,+ 132,3,26,205,233,74,201,0,110,58,181,70,227,134,178,37,247,10,134,210,16,251,175,158,+ 2,67,213,184,121,176,183,24,1,12,45,242,158,0,144,128,83,162,97,8,68,229,169,21,+ 0,162,75,167,102,65,165,194,70,133,83,132,125,228,198,44,5,249,107,216,227,219,90,36,+ 192,36,17,232,104,172,206,36,77,50,26,189,213,7,36,16,249,193,212,20,244,142,154,75,+ 163,40,153,71,79,8,36,118,160,3,145,110,53,182,21,213,85,179,103,20,246,201,138,5,+ 80,8,161,147,38,115,204,148,187,165,105,231,168,27,242,165,58,35,229,111,91,24,43,210,+ 204,206,103,4,56,199,117,203,170,34,181,121,246,194,60,83,210,55,232,161,10,22,252,167,+ 161,112,78,47,96,33,153,65,245,144,97,151,41,47,241,179,149,149,148,246,199,23,157,51,+ 175,77,20,94,83,28,237,32,246,71,202,145,42,224,137,207,54,245,50,77,57,47,31,152,+ 243,238,40,216,119,19,187,37,32,174,132,39,141,168,135,254,58,211,202,189,90,142,213,83,+ 28,150,189,169,97,79,245,133,160,27,104,123,236,196,135,92,88,200,239,125,161,175,41,179,+ 95,0,80,208,134,3,163,76,204,237,160,17,63,27,159,222,254,94,138,8,125,36,74,237,+ 47,116,250,59,249,14,212,253,112,30,91,238,64,194,14,154,225,150,210,10,32,129,18,49,+ 232,71,110,2,205,189,54,8,22,202,124,103,199,1,246,26,81,66,233,69,156,45,187,14,+ 79,40,109,221,96,182,129,168,98,47,147,243,95,15,194,215,188,92,77,149,91,229,219,85,+ 153,171,20,75,179,7,170,183,60,114,247,122,91,50,251,110,202,129,44,186,124,105,26,209,+ 181,69,81,6,42,50,94,40,133,250,86,99,231,140,4,9,102,30,186,88,74,216,118,219,+ 125,111,10,0,53,234,237,143,119,159,160,35,153,236,39,82,6,171,220,1,3,147,242,243,+ 184,139,2,206,131,111,229,113,95,150,181,242,60,79,250,37,179,69,215,133,81,113,214,79,+ 81,190,229,175,22,0,1,4,11,14,20,19,26,28,35,34,26,47,64,65,40,28,34,69,+ 58,53,31,30,3,143,119,143,96,97,125,227,52,224,214,183,101,102,125,224,119,141,238,62,+ 72,228,190,202,241,66,238,143,251,32,39,44,41,130,124,208,118,127,109,154,10,41,161,158,+ 77,85,101,203,63,174,195,102,193,204,120,71,169,104,190,118,208,29,178,23,38,33,222,2,+ 116,42,190,99,237,111,33,14,251,132,92,51,21,192,10,171,137,88,157,193,7,126,136,217,+ 86,175,216,208,227,4,116,49,255,171,246,253,194,65,162,26,62,41,251,150,147,109,183,121,+ 233,191,188,154,18,71,191,100,177,63,144,19,170,48,121,173,83,251,112,249,108,185,108,157,+ 106,69,3,70,183,53,87,193,144,166,110,247,85,157,86,241,29,255,21,69,10,96,45,51,+ 189,211,165,16,34,113,45,207,22,237,6,215,208,163,20,125,35,27,131,88,30,130,42,222,+ 216,225,164,98,71,146,60,215,208,225,188,100,39,190,57,37,168,161,109,240,7,82,196,31,+ 201,52,122,146,166,199,48,70,214,145,39,3,177,168,89,102,183,63,35,156,22,90,74,49,+ 16,81,57,63,82,88,84,167,98,213,166,71,109,105,45,249,247,156,224,192,81,91,240,168,+ 231,242,214,19,15,161,19,237,127,183,84,250,51,83,150,246,117,227,172,147,23,140,153,166,+ 14,23,69,187,205,152,208,188,192,12,1,16,57,170,148,156,29,214,192,160,248,133,110,160,+ 249,186,44,12,138,172,204,237,89,55,196,65,13,149,155,156,175,8,245,75,52,196,129,235,+ 138,126,147,163,42,70,3,15,140,216,209,255,118,98,62,203,71,184,240,145,122,249,64,238,+ 136,153,130,186,78,164,107,195,148,77,175,58,67,192,191,111,176,78,169,147,93,207,1,98,+ 37,230,106,224,42,229,153,228,126,192,230,65,172,168,119,80,243,95,83,135,114,29,69,193,+ 230,173,112,67,104,254,157,9,73,110,213,108,204,250,157,156,69,193,27,3,155,35,36,196,+ 185,221,236,211,251,39,57,225,246,86,201,125,211,54,147,31,18,141,19,123,179,220,108,69,+ 104,167,89,70,198,101,254,32,59,206,15,81,138,87,150,228,204,230,81,132,194,20,27,117,+ 213,104,0,93,21,206,138,192,141,110,0,190,173,99,178,18,0,6,6,9,13,19,26,22,+ 18,12,7,7,9,13,75,72,77,16,73,98,252,176,123,238,8,60,114,160,70,196,219,1,+ 166,138,177,253,245,17,50,81,40,45,164,2,128,25,143,100,35,237,7,197,104,52,170,217,+ 184,197,16,208,126,81,177,41,147,35,88,248,239,194,78,92,32,202,58,99,90,182,152,113,+ 195,177,1,162,131,14,15,224,189,27,15,32,165,247,217,112,231,139,107,249,174,121,183,252,+ 238,103,246,195,56,188,230,199,57,16,7,109,194,11,212,128,255,77,10,205,40,124,98,5,+ 93,31,133,146,15,144,141,3,147,227,254,159,1,175,198,143,170,21,11,158,192,94,112,218,+ 92,223,41,166,115,39,238,188,224,236,163,147,5,244,43,159,204,191,75,48,219,24,223,130,+ 179,89,11,250,171,178,197,247,132,11,183,197,235,35,3,65,28,193,255,64,199,72,68,157,+ 191,174,135,113,97,152,215,92,193,187,142,11,31,194,210,136,167,104,239,104,177,168,29,96,+ 181,164,62,93,199,225,151,60,135,35,26,107,246,25,94,121,42,38,221,145,97,83,92,236,+ 133,193,25,238,158,37,45,255,138,42,184,158,165,157,212,15,144,72,130,236,141,167,127,99,+ 78,172,16,190,173,8,28,126,74,200,136,138,206,173,217,207,120,55,20,33,191,189,188,2,+ 66,18,242,155,87,84,96,56,255,164,147,184,130,184,38,119,96,118,112,176,106,100,36,49,+ 252,27,23,45,244,180,40,43,94,204,127,51,145,239,102,154,92,87,93,232,73,88,198,245,+ 190,43,39,124,157,19,214,120,197,22,7,102,226,119,16,103,112,198,94,226,179,46,104,93,+ 49,0,157,71,198,207,42,246,239,182,241,116,151,211,224,21,96,138,52,214,88,117,219,227,+ 148,47,216,172,224,64,149,95,253,150,130,57,136,117,205,16,236,7,67,11,136,30,192,35,+ 9,111,105,211,166,5,21,191,147,35,117,242,67,69,18,20,107,215,207,135,122,15,166,113,+ 42,160,211,101,114,142,19,17,0,3,8,17,19,13,12,15,73,69,73,16,17,12,36,50,+ 47,29,71,191,9,146,163,137,37,239,134,180,100,179,167,5,125,203,110,226,146,65,70,38,+ 246,25,242,32,213,170,18,18,62,135,237,232,249,141,83,185,36,204,235,151,33,101,97,56,+ 249,54,48,120,117,203,172,126,45,76,109,255,37,239,209,131,67,193,221,151,36,28,174,246,+ 101,210,69,66,87,120,241,51,74,36,197,175,182,219,225,141,55,162,168,159,78,137,83,13,+ 52,215,216,34,107,194,211,32,202,147,107,234,255,89,222,114,7,248,123,231,22,250,26,143,+ 112,133,244,48,134,228,190,247,5,77,145,193,1,35,32,40,238,121,37,174,29,187,133,101,+ 167,11,237,145,174,9,212,253,8,95,175,225,56,105,233,108,146,77,221,204,242,141,165,138,+ 33,110,94,118,203,55,225,208,41,162,16,18,255,109,158,251,103,217,160,157,225,1,234,140,+ 66,15,114,202,84,61,124,143,182,243,181,1,175,34,127,75,225,177,162,37,242,141,210,22,+ 194,226,69,231,207,223,250,16,156,172,37,151,86,84,247,41,254,54,108,208,160,62,200,19,+ 203,158,79,224,168,133,151,187,3,33,46,98,46,2,208,148,204,107,225,129,233,151,25,196,+ 34,154,11,250,67,109,194,143,25,127,177,51,233,8,248,159,153,115,27,25,168,201,251,199,+ 35,40,5,83,31,239,192,87,14,33,220,50,142,76,92,125,37,144,24,178,189,114,232,168,+ 34,79,95,221,17,241,2,230,107,42,5,8,84,131,94,81,136,83,137,216,144,92,125,243,+ 189,103,144,178,131,6,5,85,192,85,143,191,44,61,230,172,208,54,31,85,62,11,86,29,+ 238,228,136,218,217,147,254,25,54,203,90,230,205,194,213,186,113,1,223,59,138,27,233,226,+ 187,193,22,21,65,178,58,119,36,144,219,45,25,144,82,254,94,222,69,14,38,128,84,75,+ 51,97,240,221,40,48,107,8,227,16,73,207,86,54,47,0,233,149,190,135,195,226,72,158,+ 54,111,129,71,34,20,253,223,116,246,255,134,60,93,117,10,239,82,254,232,41,155,82,244,+ 21,0,1,3,14,17,17,14,16,27,47,72,80,64,49,26,67,63,64,15,5,8,31,13,+ 167,117,180,71,238,248,36,200,172,151,174,109,128,27,22,221,46,72,119,204,111,4,35,165,+ 75,171,91,102,154,81,76,82,207,153,79,15,92,39,184,232,11,235,56,250,49,184,167,75,+ 50,89,95,78,136,103,245,148,5,81,243,42,101,127,164,134,97,98,95,215,217,56,199,222,+ 216,75,112,171,107,176,159,62,144,124,153,50,61,83,167,173,97,19,67,150,155,233,219,219,+ 75,91,208,128,15,134,171,119,142,137,102,254,11,96,55,224,48,82,181,222,242,179,119,234,+ 161,78,68,9,247,140,7,108,96,171,247,44,243,62,95,57,132,114,195,6,217,73,206,224,+ 57,29,3,185,222,137,230,161,188,14,109,158,207,197,23,28,84,214,130,162,15,53,3,24,+ 16,180,228,180,59,18,105,203,32,2,124,83,154,190,254,116,49,76,41,43,238,188,64,84,+ 50,236,248,199,27,62,51,2,51,91,156,93,16,97,57,210,103,198,68,226,215,161,191,119,+ 189,120,229,181,78,8,197,133,197,154,241,139,34,67,54,155,142,167,150,109,234,169,227,184,+ 1,226,96,89,63,252,150,124,248,150,194,77,173,159,147,111,35,191,141,148,244,16,218,238,+ 224,23,251,249,130,217,60,171,70,13,38,3,174,221,24,250,113,215,252,204,127,167,16,24,+ 70,220,200,199,112,245,235,153,75,137,190,200,69,248,138,175,163,1,209,227,73,151,119,218,+ 211,130,42,39,203,102,125,201,234,198,13,49,216,108,215,101,163,88,96,202,98,251,111,168,+ 51,158,2,17,242,210,100,162,8,146,183,217,242,235,72,6,231,7,86,205,254,186,1,105,+ 193,206,188,182,218,193,110,85,162,100,250,230,70,120,213,26,26,52,67,111,145,209,88,48,+ 152,4,7,233,222,175,76,86,252,40,154,234,8,109,255,178,55,2,66,20,188,72,227,227,+ 221,147,77,80,45,253,102,151,0,30,32,174,110,214,195,133,209,133,16,10,162,155,1,153,+ 221,84,152,165,125,241,253,133,62,227,235,178,157,236,165,157,66,17,225,177,40,161,225,8,+ 1,161,201,219,122,170,56,28,105,42,27,201,64,110,223,19,34,96,138,146,201,182,6,149,+ 68,235,114,67,218,225,92,208,222,107,175,213,125,148,195,204,64,169,102,176,43,9,209,21,+ 0,3,8,19,23,20,28,25,40,91,99,88,50,42,41,13,10,10,21,21,43,33,13,106,+ 187,130,138,169,205,4,169,60,38,57,115,65,118,17,255,87,60,190,106,167,224,164,52,248,+ 56,189,245,244,58,141,18,124,234,54,114,161,112,12,118,43,142,25,150,233,223,115,192,219,+ 254,164,179,156,193,26,146,49,127,94,131,85,50,102,154,216,120,77,101,209,183,141,123,66,+ 132,218,168,211,110,212,162,176,248,113,107,210,83,54,169,84,24,23,99,135,125,146,112,45,+ 163,243,196,236,193,15,242,89,127,163,58,176,7,186,1,44,235,36,130,40,225,107,125,5,+ 61,30,197,55,68,201,61,150,102,185,40,140,242,162,52,143,172,86,98,207,90,62,68,127,+ 40,148,202,118,25,221,254,155,9,198,133,4,181,36,102,20,19,63,188,95,14,227,108,91,+ 187,34,163,94,24,182,59,23,65,27,75,224,29,1,178,214,42,111,251,156,167,170,23,44,+ 25,124,90,135,34,65,107,220,165,63,74,153,55,254,176,149,34,179,175,161,183,104,165,82,+ 138,216,81,22,149,119,128,129,254,188,122,139,5,103,40,160,171,169,252,57,8,55,90,115,+ 241,26,191,110,231,9,244,47,99,198,106,93,250,193,43,254,244,79,191,70,30,221,150,232,+ 174,224,198,14,150,29,89,89,68,32,30,218,95,33,174,127,223,33,238,183,128,159,138,76,+ 1,154,250,116,226,58,113,80,164,201,68,218,136,223,227,6,246,208,69,43,9,138,127,194,+ 187,69,231,65,51,230,124,112,184,195,188,171,83,152,71,104,121,138,193,97,83,30,142,132,+ 217,185,19,34,84,124,245,161,252,125,93,183,138,105,213,20,134,2,183,58,56,40,21,194,+ 115,168,105,127,175,55,97,76,35,233,146,157,243,252,195,106,23,0,1,3,15,20,20,13,+ 15,72,74,87,25,23,41,43,63,25,23,3,6,6,48,54,57,253,134,254,141,254,176,50,+ 45,130,198,142,147,196,123,34,2,109,126,134,56,196,203,53,229,148,151,228,159,203,225,127,+ 42,53,227,151,242,220,248,148,233,1,232,35,32,102,167,227,215,138,209,181,91,18,184,10,+ 59,102,10,52,169,146,151,71,13,224,113,78,198,223,209,127,95,158,136,141,245,71,68,202,+ 152,131,98,80,124,77,219,216,156,41,120,140,18,18,220,49,209,53,7,73,136,181,35,190,+ 223,67,24,218,2,133,214,52,29,37,218,140,40,46,172,113,75,16,215,55,211,189,98,98,+ 149,38,88,245,123,113,236,161,24,12,94,164,67,118,194,46,43,187,33,106,3,55,39,119,+ 27,149,203,87,244,146,15,50,165,112,36,206,105,88,171,251,91,87,241,66,24,183,246,101,+ 159,2,84,52,34,223,178,206,205,214,202,31,62,97,112,220,66,0,87,9,173,196,127,89,+ 198,78,200,129,124,68,211,173,205,255,62,215,186,90,241,187,1,7,183,106,145,116,247,0,+ 44,70,220,236,148,16,63,56,116,12,233,238,41,84,14,54,219,62,215,184,212,201,99,53,+ 161,210,178,117,253,90,89,249,110,167,65,102,10,108,136,189,148,129,121,212,121,80,136,56,+ 81,103,72,229,54,163,138,247,83,220,94,210,47,158,191,191,96,224,251,176,27,239,118,162,+ 69,255,55,135,174,237,223,161,84,231,58,223,88,70,174,150,108,64,189,248,38,109,51,139,+ 42,199,41,252,164,17,197,33,221,191,70,140,54,29,52,230,181,140,48,213,72,54,15,144,+ 115,219,82,178,3,79,162,184,13,54,172,181,9,81,219,232,31,248,234,238,135,70,209,88,+ 104,149,57,83,159,152,83,108,224,12,129,169,71,109,206,4,243,85,37,200,108,184,57,135,+ 181,255,156,90,26,81,87,196,194,18,35,43,36,177,135,240,77,144,206,199,247,10,128,51,+ 209,11,240,109,242,122,16,164,47,93,229,121,21,0,1,1,7,9,10,8,6,4,7,7,+ 10,11,43,44,62,34,39,20,64,71,76,73,90,0,86,224,145,228,51,187,2,109,172,133,+ 115,67,95,122,26,129,40,92,64,227,2,2,53,209,138,177,210,33,146,125,120,134,30,139,+ 225,131,248,4,4,78,30,40,189,211,85,80,124,57,37,62,18,90,29,165,66,152,251,114,+ 200,171,29,95,220,27,189,103,142,204,100,123,156,103,98,162,134,23,220,242,196,42,129,73,+ 181,4,94,239,120,110,165,241,3,77,206,154,132,188,71,83,185,17,216,125,170,187,21,97,+ 9,4,157,215,235,234,101,220,3,99,149,243,169,192,110,158,102,81,77,34,5,158,216,134,+ 189,26,183,236,205,60,62,152,109,117,145,4,175,172,118,168,251,73,212,115,143,175,79,140,+ 78,59,230,81,226,178,250,136,165,65,64,196,183,88,87,25,175,8,252,52,82,248,47,201,+ 205,243,69,159,83,140,106,138,71,217,228,220,203,148,142,75,45,215,241,31,3,40,6,140,+ 189,90,167,3,226,119,170,101,241,148,71,168,26,231,91,153,45,191,149,119,221,20,72,104,+ 56,94,207,238,187,35,208,78,229,110,113,18,105,43,151,176,209,197,141,228,5,12,204,227,+ 149,158,66,135,151,54,81,92,35,103,252,32,34,159,55,36,203,155,128,133,123,23,226,170,+ 226,90,119,146,213,55,172,194,140,70,51,157,121,196,156,168,37,151,104,133,135,67,136,208,+ 77,197,225,233,138,169,168,133,237,154,93,197,155,230,229,232,81,91,249,252,27,46,30,20,+ 89,169,100,130,14,175,12,154,145,236,142,34,231,186,238,42,237,130,144,212,153,3,26,146,+ 142,11,21,64,153,95,27,102,141,114,89,87,158,180,209,69,112,142,253,247,69,178,200,78,+ 144,217,76,251,10,247,10,163,10,108,50,187,228,38,72,202,127,116,7,170,153,128,108,237,+ 56,64,209,115,83,88,244,153,144,70,124,215,164,251,102,9,28,43,114,205,52,212,109,106,+ 176,105,119,151,35,173,240,7,66,209,80,80,156,74,190,2,84,32,29,1,153,151,124,86,+ 144,113,192,247,0,216,234,109,6,81,204,33,128,30,132,140,141,221,198,197,249,76,66,123,+ 192,99,131,140,16,126,73,48,142,114,86,12,212,251,123,19,126,6,56,110,88,69,248,74,+ 189,64,190,26,5,109,223,167,79,10,248,17,150,69,164,24,86,87,75,229,226,93,134,82,+ 10,155,85,249,107,101,119,49,40,155,2,72,16,158,29,18,104,147,154,222,105,84,11,168,+ 212,121,50,32,27,221,121,133,248,123,85,234,186,232,195,175,226,20,145,24,25,23,0,4,+ 8,17,22,22,23,17,17,19,25,20,33,30,34,24,54,60,59,26,66,69,67,22,248,138,+ 254,141,245,195,133,207,23,166,21,100,203,171,2,103,37,9,8,97,62,151,68,52,250,108,+ 5,99,171,186,186,186,206,128,235,89,19,7,69,232,115,93,217,174,229,108,12,36,0,12,+ 88,30,165,148,228,24,221,87,136,87,16,75,50,174,100,171,97,244,235,141,61,132,203,103,+ 52,198,18,245,177,170,13,62,164,76,180,164,211,62,217,234,137,25,226,104,50,245,106,14,+ 204,107,95,191,78,15,142,234,237,58,172,122,247,134,243,66,182,251,43,47,17,53,247,81,+ 116,57,228,252,26,98,98,84,69,155,254,127,35,45,18,83,14,213,161,50,62,206,49,248,+ 155,58,10,42,131,1,122,124,61,203,255,4,7,68,111,245,89,247,187,54,248,206,9,178,+ 44,171,115,12,183,65,113,177,129,44,5,5,142,26,19,208,199,208,81,185,52,134,230,119,+ 129,236,25,86,246,72,226,68,238,254,220,120,45,207,245,171,32,116,206,235,208,6,19,140,+ 189,222,9,218,87,78,248,236,73,19,78,65,250,166,158,153,78,212,58,123,153,231,173,40,+ 47,99,103,169,188,57,3,56,20,86,74,211,250,101,220,161,105,160,192,74,140,160,171,189,+ 103,133,184,74,29,49,74,251,56,103,71,222,156,67,147,115,163,178,1,60,65,158,222,187,+ 79,179,92,109,152,169,52,243,62,215,106,205,104,192,17,239,91,96,166,141,88,63,181,87,+ 207,211,63,170,28,86,61,206,198,100,161,123,15,9,168,96,32,248,32,227,195,46,61,112,+ 118,233,174,153,255,24,94,29,122,240,240,107,144,11,107,160,66,93,184,250,67,17,197,106,+ 57,123,150,143,214,245,217,87,233,68,32,203,183,159,197,171,8,87,213,228,220,160,69,127,+ 6,161,47,239,70,198,147,135,244,15,163,144,129,47,51,130,19,236,16,235,87,94,18,99,+ 94,30,132,170,158,141,79,110,236,47,109,50,88,26,85,206,228,162,141,179,194,60,232,6,+ 37,137,84,46,137,78,220,92,249,12,150,251,42,174,169,126,212,76,215,134,75,97,26,41,+ 142,111,246,188,74,39,9,184,242,43,63,237,163,11,159,5,81,114,24,175,80,193,13,177,+ 202,228,185,249,197,3,90,52,12,252,30,218,44,31,172,103,19,187,105,42,146,219,156,124,+ 124,100,112,153,58,98,241,122,167,70,114,115,58,13,16,108,55,84,206,207,239,8,251,87,+ 17,61,186,21,85,125,137,146,226,167,23,0,4,6,20,19,21,15,48,59,68,34,16,48,+ 58,59,24,13,12,56,60,67,14,11,9,247,112,188,130,139,130,7,26,116,25,104,26,248,+ 175,87,243,200,169,35,101,194,70,199,158,212,204,224,250,236,51,198,159,127,82,228,89,9,+ 172,171,211,64,181,36,33,242,214,7,94,168,249,205,33,170,138,167,80,104,18,43,114,138,+ 220,223,246,26,62,242,181,206,247,104,19,223,197,155,194,167,122,234,82,161,122,183,225,234,+ 38,144,72,178,138,53,96,154,188,251,83,25,139,72,219,4,175,60,64,234,85,252,35,146,+ 225,159,36,74,125,85,135,248,132,165,6,133,3,241,162,97,109,183,214,208,14,202,220,112,+ 248,241,118,30,173,183,36,38,114,220,15,216,132,15,169,26,34,162,61,146,79,34,99,67,+ 69,120,86,188,143,86,53,14,186,100,127,148,65,216,151,84,236,18,10,138,189,87,12,139,+ 176,253,77,89,90,159,255,94,107,30,195,143,123,191,249,15,248,5,27,94,157,165,85,128,+ 66,244,77,86,172,188,125,43,152,40,124,24,141,81,252,184,162,176,8,52,255,213,134,118,+ 231,210,163,49,120,146,115,226,205,186,191,217,241,1,213,44,121,66,203,179,11,212,165,57,+ 208,45,158,133,132,231,184,114,142,72,199,239,129,70,121,7,107,175,14,27,126,64,18,250,+ 66,173,233,14,124,55,148,217,181,122,80,23,131,18,83,40,192,166,5,83,191,83,47,81,+ 103,88,30,4,13,230,66,166,79,199,161,63,43,144,37,114,0,124,240,173,92,183,90,62,+ 248,210,60,70,107,62,196,189,163,169,103,84,75,131,102,63,163,206,62,197,125,175,126,84,+ 211,43,30,20,244,196,50,133,42,153,141,104,194,62,101,42,114,196,202,221,25,125,120,103,+ 248,252,32,114,248,206,127,198,125,62,122,238,249,170,11,254,159,90,209,37,121,74,205,138,+ 241,29,8,246,41,192,153,246,248,102,162,52,189,14,115,201,187,251,17,50,73,213,249,20,+ 243,11,119,51,254,255,147,176,102,12,39,2,180,90,94,126,72,178,86,90,200,75,83,94,+ 102,219,158,46,52,122,131,215,141,95,141,148,212,49,207,72,10,150,174,10,90,57,204,48,+ 153,176,190,236,137,181,62,236,147,137,98,89,170,234,192,207,19,24,230,201,158,180,30,215,+ 90,147,239,80,16,46,119,132,216,171,26,194,3,46,122,225,105,47,238,85,160,216,21,112,+ 103,181,83,186,19,197,205,58,13,33,173,195,194,105,62,98,25,184,152,12,57,163,136,75,+ 130,208,160,129,7,90,146,187,219,224,79,254,22,0,1,0,6,10,11,19,20,21,45,46,+ 52,22,30,80,81,124,78,73,16,4,8,7,243,212,235,11,3,45,7,5,165,66,24,8,+ 241,62,221,198,245,247,49,58,18,207,22,169,17,24,217,236,14,148,210,111,240,144,243,129,+ 10,182,42,75,164,123,157,166,109,95,54,109,226,57,74,46,87,47,35,233,97,232,10,224,+ 42,241,75,174,149,11,12,210,254,213,223,195,145,69,33,94,70,199,203,152,183,9,148,161,+ 78,251,198,218,15,60,25,96,106,105,95,116,206,245,179,146,124,42,99,185,138,254,159,199,+ 200,134,101,160,185,243,95,53,84,55,94,116,49,38,247,50,118,105,144,211,50,207,93,81,+ 26,73,114,253,139,0,225,138,147,75,83,209,32,59,152,253,73,27,122,165,174,94,126,43,+ 142,135,238,220,163,182,82,239,75,238,196,75,86,128,223,177,115,78,35,208,68,172,131,122,+ 247,5,130,104,123,8,77,129,133,221,153,185,245,106,9,235,95,9,172,53,92,1,67,141,+ 156,164,113,51,124,173,53,39,163,150,246,48,172,229,25,187,92,148,117,138,188,62,186,144,+ 26,35,37,162,199,178,227,249,24,56,33,213,37,165,118,235,205,180,108,30,119,239,245,229,+ 253,66,88,4,121,5,39,80,60,61,191,196,12,78,139,54,195,57,155,31,67,166,247,252,+ 62,175,186,174,184,148,144,149,139,12,2,176,175,4,50,55,255,67,223,60,107,116,84,112,+ 26,172,27,235,20,235,119,107,112,212,200,7,177,6,234,223,207,194,145,170,112,244,176,17,+ 49,119,157,126,84,180,239,3,52,100,49,48,21,246,214,111,83,91,61,244,144,226,67,7,+ 141,129,250,186,106,99,122,28,100,114,143,131,134,91,141,103,247,1,164,190,204,47,230,69,+ 108,85,145,8,68,128,122,173,214,237,9,123,241,2,134,219,148,82,203,103,217,111,255,237,+ 208,138,207,104,30,108,212,225,132,58,190,194,108,50,61,84,28,12,188,174,50,231,206,0,+ 227,18,148,145,163,230,245,156,167,173,122,147,163,11,202,199,242,249,6,20,4,101,165,173,+ 141,26,180,116,142,91,30,144,238,44,106,224,191,242,252,220,25,147,9,217,173,59,253,179,+ 238,71,53,59,253,219,45,20,87,73,105,66,111,241,44,27,70,88,49,246,68,124,108,47,+ 213,230,47,100,56,65,244,196,36,4,123,7,242,69,113,148,175,49,162,220,86,194,248,237,+ 16,199,8,0,1,15,20,20,12,94,103,141,150,19,61,66,71,155,129,44,185,238,175,156,+ 175,21,116,16,6,237,171,227,59,145,195,182,210,122,57,51,199,115,96,180,136,205,119,67,+ 17,114,133,82,142,191,143,234,212,21,176,82,223,135,142,81,81,67,182,217,118,17,202,135,+ 146,30,198,232,118,81,141,191,240,106,103,58,236,94,170,103,131,86,42,73,234,126,146,166,+ 112,167,112,56,252,205,217,154,14,185,90,121,59,50,46,119,82,4,253,211,169,130,175,23,+ 67,221,147,130,104,144,125,215,190,116,152,86,11,121,37,202,250,2,35,50,129,36,204,143,+ 90,52,69,213,235,239,143,52,69,194,10,185,156,194,196,66,178,49,188,232,106,126,7,68,+ 34,239,122,55,83,49,202,165,52,248,203,220,243,140,236,137,231,57,130,48,94,228,100,108,+ 104,23,244,127,147,103,201,250,178,16,244,46,167,235,80,153,193,228,3,107,91,125,207,231,+ 140,207,153,46,140,38,218,46,133,140,126,129,27,128,78,58,150,24,86,29,243,135,94,106,+ 237,51,159,253,35,13,194,82,46,230,79,144,191,70,180,211,104,198,82,133,188,155,97,189,+ 231,34,239,237,129,65,66,252,70,200,78,103,189,57,188,227,84,110,202,239,23,137,111,98,+ 217,62,209,139,95,244,171,14,82,104,121,3,150,121,41,65,214,14,157,20,242,173,139,4,+ 54,207,202,74,66,191,58,200,116,132,63,114,134,30,97,100,254,142,25,71,191,254,144,249,+ 156,196,45,77,78,108,79,246,255,112,244,100,14,156,74,197,65,209,189,134,136,138,100,157,+ 194,13,166,201,254,168,76,14,0,71,209,27,255,72,153,2,160,206,121,222,203,43,19,153,+ 152,134,74,9,243,45,227,58,165,150,158,92,3,29,46,170,141,182,69,111,143,199,180,28,+ 94,230,107,129,250,84,191,202,75,202,52,9,145,41,1,215,7,186,116,30,75,211,174,89,+ 161,173,170,166,57,146,177,246,203,229,64,22,241,11,252,182,107,32,28,92,218,69,233,68,+ 98,151,27,246,161,14,107,86,94,102,89,205,186,81,90,27,177,76,193,240,119,43,222,249,+ 15,61,225,150,107,75,215,95,138,135,129,231,3,0,1,79,91,45,174,104,215,220,236,120,+ 2,166,97,78,147,143,237,61,14,102,235,199,149,27,151,62,200,231,119,90,6,172,237,19,+ 0,57,65,79,24,15,5,8,9,12,10,9,7,5,32,34,35,7,55,55,119,241,87,203,+ 70,242,132,135,13,233,171,11,162,41,208,173,110,199,245,101,177,168,70,153,177,11,20,92,+ 77,108,7,101,113,88,67,93,245,158,158,236,15,9,147,120,127,130,4,176,246,68,147,81,+ 161,1,102,103,68,224,193,9,6,198,222,136,132,102,63,60,31,103,228,4,35,117,132,244,+ 152,123,36,1,223,208,186,67,221,233,172,52,98,84,137,178,103,190,55,161,28,37,79,139,+ 146,51,124,44,35,82,44,192,223,188,59,180,19,185,248,120,122,145,163,224,190,119,130,99,+ 35,6,191,112,41,5,150,123,32,157,79,248,252,21,212,198,112,83,231,135,3,249,57,234,+ 176,215,178,11,201,74,208,179,220,122,60,237,114,77,181,83,194,0,172,69,167,116,16,214,+ 73,2,106,126,200,14,123,97,118,62,61,252,80,188,128,214,161,211,96,106,84,167,99,1,+ 5,96,180,218,93,139,237,72,244,82,174,120,176,48,109,105,161,90,255,106,201,112,141,20,+ 39,210,154,84,63,243,174,157,241,123,44,37,168,245,163,99,74,233,122,154,209,118,17,203,+ 25,201,224,158,50,234,216,53,96,71,244,16,119,43,87,197,82,169,205,166,147,13,232,202,+ 43,222,159,48,22,109,207,79,119,140,24,157,201,89,47,67,121,251,8,255,13,86,157,135,+ 198,32,158,54,122,117,68,61,110,13,73,7,235,237,186,167,12,44,172,142,200,82,82,227,+ 148,111,225,50,190,193,191,113,132,253,218,203,180,111,119,48,49,14,92,142,149,223,109,234,+ 251,101,40,7,85,193,235,246,195,115,97,85,128,112,105,206,19,213,120,219,154,164,121,102,+ 172,21,103,73,14,7,237,97,13,112,210,144,200,204,167,239,166,31,186,251,15,47,42,103,+ 82,76,121,62,140,101,122,43,105,107,155,84,58,164,224,13,71,230,101,127,11,198,181,184,+ 21,250,81,71,182,26,78,13,96,69,15,54,204,195,247,112,90,23,103,209,133,29,175,127,+ 178,140,107,193,165,61,81,168,86,11,218,189,49,69,108,26,213,91,68,234,106,7,25,87,+ 60,142,27,227,157,217,141,1,253,17,60,178,18,69,247,241,245,204,133,0,70,188,164,135,+ 121,171,48,191,192,152,88,27,37,215,91,209,132,104,5,250,140,132,43,71,48,231,153,228,+ 41,188,202,173,126,96,4,141,61,65,25,178,0,132,142,109,142,211,58,162,121,150,79,219,+ 176,174,154,28,147,180,114,129,61,28,18,164,54,232,198,136,130,56,132,215,144,225,15,150,+ 236,16,0,17,17,19,5,5,5,3,25,48,62,65,43,58,33,36,7,114,43,158,14,189,+ 238,73,176,202,59,145,75,66,239,77,29,235,145,46,127,42,10,160,33,99,105,240,94,181,+ 165,67,84,241,107,117,36,229,172,87,218,58,142,136,167,238,179,117,129,26,148,38,40,74,+ 78,155,145,191,42,121,91,75,235,120,33,144,127,110,218,203,171,75,26,98,219,124,48,199,+ 8,73,131,22,121,209,36,168,238,119,75,55,76,56,142,122,114,48,81,27,108,153,230,78,+ 180,166,96,234,106,22,135,192,124,71,95,52,253,73,10,215,199,234,166,164,200,66,51,184,+ 3,138,85,54,102,200,109,223,134,117,63,8,253,0,206,122,68,189,34,161,0,111,80,125,+ 23,9,122,195,252,56,43,106,182,9,24,174,74,228,232,255,242,225,66,157,0,13,0,1,+ 72,77,90,30,32,19,6,3,101,101,101,4,52,116,212,61,43,41,62,10,210,120,52,69,+ 239,159,176,183,154,90,54,196,107,152,197,203,16,17,237,189,209,142,96,137,0,167,227,25,+ 240,217,159,192,218,110,92,252,145,161,210,148,114,252,248,41,72,241,54,82,37,6,200,17,+ 79,102,91,212,179,63,38,50,70,167,214,125,252,140,210,27,237,142,86,213,45,34,191,13,+ 37,80,185,35,190,38,222,102,26,238,232,3,143,250,61,68,142,177,205,92,168,173,10,212,+ 111,143,224,144,185,185,225,126,187,236,151,102,11,186,109,68,226,226,23,181,192,180,90,180,+ 133,113,226,70,125,110,106,163,42,65,174,140,103,8,41,133,214,196,111,247,57,89,52,162,+ 156,124,239,171,52,252,234,43,26,39,182,174,73,163,219,55,75,88,193,197,65,63,87,191,+ 70,52,145,7,219,46,30,220,249,166,158,200,53,100,4,156,125,193,190,248,65,128,35,194,+ 167,11,187,43,255,255,236,4,41,198,0,19,0,1,17,21,27,37,59,63,45,34,33,42,+ 56,50,32,9,26,29,61,41,54,150,128,255,178,100,46,220,186,122,133,118,209,255,90,96,+ 153,243,132,249,142,46,94,146,27,9,119,97,20,130,142,78,180,236,159,84,191,191,9,246,+ 176,40,34,171,48,91,0,12,163,50,94,74,170,28,208,191,235,69,129,169,93,233,57,23,+ 86,48,28,4,215,209,114,214,158,59,117,115,51,64,123,39,101,141,11,63,88,210,7,191,+ 169,8,169,145,221,98,23,255,138,215,106,44,212,53,172,146,80,192,137,75,69,12,183,212,+ 25,72,30,165,228,206,1,33,204,232,27,158,159,178,26,49,131,163,139,245,43,200,8,227,+ 170,231,215,177,216,188,44,229,237,7,141,186,159,42,60,227,34,225,5,145,130,221,172,209,+ 248,49,64,144,118,99,48,94,231,198,224,90,237,18,134,31,114,197,15,179,113,240,140,40,+ 10,42,25,118,140,144,141,212,185,5,104,20,11,7,188,215,110,128,128,61,140,180,177,201,+ 61,143,254,221,149,179,28,92,150,183,242,122,54,30,99,139,214,179,79,28,103,251,147,55,+ 7,235,51,5,93,34,79,204,151,37,255,244,27,173,217,36,57,63,206,233,200,5,46,11,+ 77,211,4,206,29,224,163,38,71,238,194,234,141,160,80,249,25,148,10,101,187,142,108,48,+ 159,116,130,34,93,140,161,195,190,45,28,164,176,153,226,181,22,5,28,135,210,46,125,57,+ 56,130,72,114,204,70,187,216,22,253,254,243,182,74,196,242,23,255,115,115,70,43,33,143,+ 170,164,38,4,168,65,4,251,236,188,223,138,68,111,127,239,16,0,1,19,28,79,61,63,+ 13,21,33,51,68,52,35,35,64,62,54,134,160,239,177,123,121,85,180,205,150,227,27,146,+ 196,202,246,144,141,215,77,78,16,30,146,34,84,50,94,2,39,148,251,133,167,162,252,234,+ 43,27,146,72,57,35,111,239,155,120,236,205,92,21,209,162,45,236,200,9,38,221,10,11,+ 155,188,129,43,47,121,74,107,62,175,4,190,37,178,163,150,247,14,119,213,92,8,140,106,+ 61,72,236,55,203,38,77,83,41,58,239,216,91,16,17,113,78,21,0,3,1,5,3,3,+ 3,3,3,3,3,3,3,3,22,22,28,12,12,17,18,17,200,18,231,27,43,156,133,104,+ 156,1,247,226,17,65,211,138,69,68,104,185,133,147,109,227,46,135,101,246,16,39,130,217,+ 76,216,123,43,28,208,37,216,106,26,223,89,246,13,79,162,150,106,20,215,19,151,166,186,+ 98,7,210,120,177,187,15,48,177,123,196,3,45,107,108,220,79,10,40,119,211,90,215,52,+ 193,218,243,170,160,191,113,19,39,163,110,18,241,202,46,219,122,7,223,159,15,188,80,151,+ 216,124,131,29,241,92,75,188,124,204,130,124,234,36,92,106,8,241,179,71,173,84,102,199,+ 196,43,162,85,135,6,3,194,19,23,188,124,149,95,134,121,207,220,50,246,55,21,38,65,+ 63,102,20,36,131,139,94,127,102,200,124,180,152,156,202,24,157,215,223,132,31,26,251,242,+ 246,63,28,20,4,121,238,184,21,60,135,217,42,78,173,191,3,0,215,190,151,185,110,210,+ 100,220,125,177,26,52,46,137,80,189,39,211,101,246,139,176,6,120,55,124,181,30,232,21,+ 18,24,118,211,197,173,116,229,78,126,177,51,47,206,59,160,77,74,205,77,175,78,84,3,+ 252,228,74,139,202,141,72,44,149,210,166,41,231,65,217,157,104,31,185,130,60,156,15,241,+ 138,103,85,113,179,217,99,69,77,134,107,183,133,126,80,80,192,6,188,199,170,74,208,151,+ 239,176,197,153,213,200,91,41,61,130,34,251,225,53,130,37,52,204,28,103,216,239,100,183,+ 198,52,183,226,180,244,220,231,121,220,200,46,216,43,135,187,211,249,224,34,77,160,192,137,+ 140,29,124,15,25,148,131,124,234,209,10,230,55,87,15,20,231,114,127,38,180,239,172,157,+ 134,75,43,153,51,115,134,74,245,178,217,160,236,170,90,236,43,30,243,63,165,129,201,168,+ 218,60,92,25,65,124,251,39,16,7,239,193,96,20,41,171,20,222,224,108,167,47,118,180,+ 30,226,1,51,29,47,222,36,240,179,153,1,18,152,119,111,101,64,0,68,66,14,157,143,+ 23,72,82,124,50,118,91,242,158,177,194,110,232,238,80,29,148,69,18,191,139,83,117,18,+ 68,222,61,236,219,228,241,230,228,174,74,164,211,192,51,173,126,195,22,80,46,230,23,172,+ 78,191,77,2,155,200,234,168,129,8,30,86,236,61,186,232,102,202,39,80,134,36,233,226,+ 250,93,73,242,33,176,244,19,33,192,248,20,147,195,3,144,110,128,77,168,26,200,6,150,+ 154,77,184,159,220,158,204,156,95,36,204,235,60,252,92,158,186,153,199,51,103,233,230,98,+ 9,90,176,83,185,65,111,139,107,129,159,19,81,101,147,168,36,213,16,237,46,12,167,211,+ 232,134,165,172,159,169,249,169,157,47,131,95,17,84,242,114,102,167,179,35,243,235,198,24,+ 216,32,112,90,4,167,161,138,56,98,37,91,229,15,169,201,38,71,95,1,230,48,29,131,+ 87,212,219,71,178,252,191,120,136,29,139,152,33,131,20,47,57,63,89,251,0,20,209,208,+ 177,157,56,238,15,54,65,16,86,133,1,158,99,116,244,222,67,212,31,124,78,191,227,215,+ 202,189,184,218,76,213,240,148,152,82,140,50,107,96,194,165,228,139,134,142,98,77,209,5,+ 36,41,12,112,240,238,227,48,48,122,253,59,130,123,107,213,216,13,110,35,26,178,176,151,+ 8,108,171,31,96,148,36,8,0,29,29,31,8,8,8,3,36,232,215,85,113,246,93,117,+ 27,32,116,163,244,230,174,151,75,212,151,119,68,36,72,190,246,5,49,83,12,25,22,51,+ 27,15,184,17,196,123,161,74,2,168,49,236,32,10,75,191,22,117,11,224,128,57,161,216,+ 200,237,35,97,5,46,246,144,98,80,6,135,60,243,184,242,56,33,1,100,126,46,44,147,+ 167,36,6,87,78,15,21,25,144,245,9,218,46,187,200,218,19,0,32,38,42,17,9,10,+ 4,4,3,9,9,9,7,13,13,69,122,140,79,61,60,108,151,191,78,212,2,238,81,121,+ 69,94,151,169,31,244,97,255,68,228,18,73,97,251,137,96,178,21,152,56,215,167,163,252,+ 27,57,67,23,75,19,35,86,4,117,179,185,239,102,96,21,47,25,209,145,116,123,78,38,+ 226,245,241,252,254,93,21,79,43,216,246,65,157,77,252,102,155,60,3,69,149,124,241,171,+ 103,155,168,223,20,198,53,194,177,114,95,124,227,170,132,5,175,151,165,10,155,164,208,192,+ 111,142,33,219,4,67,142,62,7,200,9,159,29,74,36,240,176,57,88,45,55,30,115,81,+ 78,101,128,236,123,160,246,129,47,43,155,119,81,46,0,120,154,254,52,57,157,237,124,108,+ 144,149,89,64,236,169,93,162,181,149,70,28,216,127,58,144,126,169,115,253,142,197,187,216,+ 173,111,41,113,133,181,160,218,109,252,139,190,215,147,6,0,25,70,74,90,47,72,172,136,+ 104,255,255,118,8,116,210,165,172,59,97,154,163,228,201,97,65,199,102,204,206,58,65,225,+ 72,149,152,17,78,144,100,58,130,89,19,128,153,152,143,142,52,3,148,213,34,252,249,154,+ 226,119,4,39,34,205,174,91,123,245,131,91,65,8,93,19,53,68,239,35,45,137,111,7,+ 0,169,169,174,14,12,11,4,103,70,63,255,255,117,235,71,47,17,177,62,247,242,176,215,+ 113,244,126,250,249,130,53,160,212,154,35,136,113,83,68,162,32,118,138,133,244,247,50,147,+ 242,45,193,8,43,216,210,81,142,243,33,49,93,139,4,142,230,57,179,17,14,243,136,85,+ 196,240,22,35,202,101,165,165,221,65,183,127,19,217,8,0,109,109,112,102,102,101,3,3,+ 58,41,35,255,255,186,243,215,251,171,93,200,101,56,132,225,129,247,188,106,166,43,9,172,+ 103,123,252,126,159,205,138,84,172,120,183,27,216,60,178,157,74,60,19,75,38,247,107,40,+ 156,0,242,6,204,122,32,40,89,136,104,25,48,169,138,108,228,88,83,240,220,129,22,239,+ 70,242,58,231,41,2,17,234,201,114,66,117,108,95,188,255,189,202,55,211,3,0,91,160,+ 245,228,93,5,255,254,236,144,94,36,2,178,158,157,40,99,235,172,160,133,236,0,130,78,+ 230,58,124,218,191,38,211,96,226,208,22,34,130,228,111,211,30,158,140,80,249,87,231,246,+ 235,158,72,21,0,33,31,44,18,27,26,27,20,15,10,9,6,10,16,44,44,87,59,54,+ 4,9,61,151,230,205,93,170,109,136,225,148,0,252,81,153,35,41,81,201,146,182,87,7,+ 156,241,9,24,43,151,83,244,50,160,112,154,91,97,108,144,188,138,64,117,236,248,89,210,+ 134,45,78,154,116,62,116,137,93,248,232,198,89,20,17,64,250,15,33,252,34,214,141,42,+ 176,73,151,114,171,207,209,222,84,81,41,70,193,145,26,68,206,185,159,86,67,239,15,215,+ 103,255,246,190,94,104,132,121,124,8,117,63,195,33,164,129,66,125,25,128,0,146,41,82,+ 212,187,222,234,71,178,123,229,44,51,221,101,253,219,173,79,190,41,218,141,56,149,26,84,+ 43,248,87,244,64,43,236,28,77,147,207,70,44,120,49,235,222,208,137,178,66,151,30,229,+ 132,68,41,25,19,41,176,188,108,207,212,57,146,6,72,122,141,211,107,151,227,249,66,238,+ 246,148,190,166,173,156,12,114,133,44,171,83,71,231,64,136,107,208,179,190,10,55,20,0,+ 23,45,116,25,170,96,136,38,54,86,250,167,201,35,224,23,201,97,160,251,235,61,91,138,+ 205,200,69,176,228,131,134,17,15,240,147,98,191,173,45,248,10,37,154,138,34,63,109,125,+ 36,22,192,40,10,178,96,102,254,188,20,222,18,50,157,75,167,236,100,9,54,151,40,130,+ 198,3,85,223,94,167,156,209,167,34,146,20,94,136,248,59,65,95,102,225,17,63,103,196,+ 243,161,174,67,109,2,197,32,178,11,209,62,206,238,226,4,76,57,210,201,173,137,213,61,+ 198,106,172,255,199,7,4,161,171,234,239,168,29,94,111,80,143,136,22,174,152,87,6,14,+ 36,59,215,211,146,58,9,200,129,216,177,31,64,55,0,62,55,251,147,247,236,18,143,120,+ 102,217,236,85,7,128,38,136,205,36,110,105,17,164,207,18,240,38,35,135,82,86,96,43,+ 153,145,8,132,92,206,49,237,229,209,239,210,98,44,163,133,95,230,226,160,1,182,161,40,+ 135,63,222,9,219,228,62,180,138,57,241,249,216,34,10,53,186,157,182,125,66,110,17,147,+ 126,5,71,25,18,198,240,135,185,250,109,205,241,149,208,35,42,215,251,42,98,109,81,161,+ 175,88,161,218,55,245,48,87,114,3,19,248,146,70,64,15,75,125,233,199,104,181,201,216,+ 169,88,106,200,238,97,11,236,232,173,113,119,42,23,48,103,170,212,117,156,26,143,0,244,+ 247,84,169,126,243,214,92,135,151,202,108,225,160,105,163,211,27,229,206,244,224,90,78,95,+ 129,175,24,125,217,173,27,187,83,201,145,125,49,39,176,65,166,241,181,204,40,73,82,40,+ 67,110,170,81,31,203,29,249,38,134,53,146,109,221,118,113,229,11,4,11,42,141,208,220,+ 214,56,24,245,236,130,48,0,1,0,173,126,255,78,245,221,215,8,68,101,1,18,187,128,+ 245,129,226,45,236,93,30,95,102,63,18,2,239,35,202,167,47,111,58,52,230,143,47,1,+ 99,41,106,135,89,53,116,23,127,176,235,1,0,173,126,255,78,245,221,215,17,88,160,57,+ 178,8,128,19,37,59,60,105,20,189,223,199,7,194,141,243,40,255,249,110,97,81,65,193,+ 185,112,98,168,175,157,194,169,86,111,154,124,67,220,154,206,1,0,173,126,255,78,245,212,+ 111,248,73,245,135,79,109,62,215,150,7,121,246,23,252,196,117,243,114,142,47,131,39,169,+ 146,188,69,197,237,79,9,5,200,133,43,240,147,138,23,252,59,212,140,242,71,192,186,189,+ 1,0,173,126,255,78,245,221,208,26,169,241,235,234,215,3,184,55,204,35,6,249,253,135,+ 94,71,47,1,35,91,249,198,39,154,70,147,63,33,51,45,152,228,109,31,164,220,32,73,+ 28,135,99,203,65,209,245,234,47,46,112,76,212,79,0,1,0,173,126,255,78,245,221,208,+ 26,169,234,38,80,175,174,70,33,213,106,210,9,148,174,127,172,129,31,97,96,54,112,18,+ 60,224,197,243,210,11,220,39,64,243,185,182,255,128,45,43,3,20,150,102,36,185,184,226,+ 183,231,250,141,70,27,241,52,238,255,1,0,173,126,255,78,245,221,215,24,141,195,15,16,+ 228,244,63,50,67,230,248,81,252,0,168,238,222,204,245,51,180,71,27,202,68,136,110,252,+ 116,212,91,69,166,130,178,116,206,41,155,32,101,198,223,65,113,179,125,186,64,173,220,183,+ 42,146,160,241,1,0,173,126,255,78,245,221,208,19,186,53,109,120,55,190,91,82,88,246,+ 152,124,0,152,187,241,23,72,42,194,234,171,23,40,253,197,141,223,51,99,252,169,254,53,+ 226,43,65,148,32,226,217,31,88,188,9,5,196,85,4,163,248,252,175,101,56,247,168,89,+ 86,94,78,224,23,35,157,1,0,173,126,255,78,245,221,208,19,186,64,224,250,210,39,107,+ 203,181,23,80,181,174,87,51,184,188,110,88,128,10,249,224,10,231,175,40,53,241,28,202,+ 235,110,32,204,179,69,74,22,191,81,40,222,253,27,146,126,192,67,193,245,59,222,159,145,+ 71,251,155,81,151,13,181,8,131,97,38,52,19,146,1,0,173,126,255,78,245,212,117,235,+ 108,213,135,160,59,33,33,118,225,91,26,46,18,251,125,26,168,186,153,77,159,218,128,244,+ 85,224,27,63,120,69,245,245,43,246,51,155,148,123,107,40,106,230,73,227,140,219,68,180,+ 0,212,143,54,221,69,130,208,97,208,188,57,103,252,116,102,65,188,170,87,229,155,49,151,+ 31,162,58,121,23,0,58,85,100,64,39,36,30,33,32,20,12,7,13,13,15,17,38,51,+ 40,25,9,11,4,13,1,253,255,109,135,232,8,78,37,6,38,186,82,253,85,178,155,82,+ 246,129,18,211,99,154,115,195,154,54,27,200,236,220,171,199,34,163,40,87,187,185,119,222,+ 164,74,225,223,24,203,253,204,30,88,150,162,252,31,193,110,157,136,70,21,164,114,158,192,+ 54,183,149,164,75,113,1,143,200,24,135,216,239,175,68,56,75,65,46,110,41,104,28,232,+ 161,95,243,11,17,6,134,145,48,25,191,51,77,155,88,195,191,50,108,169,39,1,23,89,+ 40,174,250,99,129,177,30,16,30,79,50,137,147,19,165,194,252,228,156,133,178,225,191,231,+ 106,245,210,73,147,222,61,82,115,182,89,99,159,49,194,2,3,143,0,135,89,26,162,233,+ 102,128,17,64,151,231,53,160,163,98,247,79,158,114,116,180,153,43,81,165,184,105,201,185,+ 83,248,89,18,61,85,73,149,213,151,1,55,24,208,213,92,175,79,82,4,183,24,230,149,+ 255,192,44,114,0,194,215,43,240,230,117,5,249,3,14,121,67,191,98,54,30,66,15,152,+ 53,104,21,221,130,183,133,48,95,16,94,243,227,111,34,97,16,119,147,231,189,79,142,87,+ 223,155,85,209,248,104,125,33,36,223,212,108,217,139,4,199,98,2,34,213,240,128,182,56,+ 234,208,239,73,211,81,216,22,4,15,131,218,33,34,23,203,249,83,190,117,64,62,208,213,+ 221,178,13,72,136,255,248,122,142,213,116,180,227,54,50,98,116,163,211,117,64,224,90,215,+ 235,241,16,83,101,53,127,18,65,202,9,247,118,168,219,151,88,124,212,64,5,166,250,191,+ 78,119,23,204,202,55,68,74,114,112,157,39,154,175,249,132,64,59,10,161,199,191,188,6,+ 15,56,197,104,150,115,252,231,236,36,241,92,48,125,143,163,150,62,142,118,222,146,40,51,+ 211,191,116,195,181,87,1,42,147,14,219,220,185,5,94,234,237,29,73,244,223,13,173,20,+ 0,56,92,114,65,37,34,44,36,24,8,7,13,13,16,39,47,48,26,20,15,13,1,253,+ 255,91,81,31,235,116,117,48,58,2,172,33,175,206,153,249,5,204,101,81,187,212,78,129,+ 103,49,60,80,47,48,186,77,241,62,115,140,126,50,202,230,118,31,153,234,43,199,168,124,+ 133,212,82,228,47,193,87,8,236,255,183,254,232,209,167,11,115,92,100,211,4,191,111,209,+ 163,91,244,248,235,237,254,80,19,179,92,87,57,91,138,187,69,77,35,19,13,122,113,84,+ 112,7,15,41,172,183,3,236,87,199,136,106,111,11,131,153,84,11,27,25,189,253,10,64,+ 81,253,217,246,252,221,167,186,19,222,82,19,55,48,173,177,252,148,197,56,164,100,133,248,+ 31,56,172,157,126,59,52,156,125,1,187,37,247,255,122,0,137,52,177,100,185,74,177,84,+ 249,102,14,110,21,197,85,226,217,35,73,211,201,205,243,160,231,38,71,217,182,220,226,34,+ 240,25,38,119,234,51,244,196,47,136,214,242,129,142,6,212,220,174,8,51,243,140,130,132,+ 236,131,98,107,232,46,101,80,243,42,25,236,251,221,108,89,213,204,106,157,4,99,176,137,+ 165,147,186,5,135,1,141,60,79,196,76,252,88,154,0,3,5,198,77,112,238,57,159,105,+ 32,3,75,178,188,64,133,89,101,111,121,88,231,52,11,136,248,141,199,182,6,124,141,68,+ 1,227,106,112,216,227,220,155,37,53,130,227,56,232,75,57,144,39,126,156,90,199,102,38,+ 203,215,40,232,169,35,219,3,137,215,21,138,150,23,38,11,143,122,240,125,204,225,7,81,+ 240,210,7,6,227,110,225,246,9,163,163,144,181,87,143,57,194,86,159,12,69,86,87,127,+ 119,237,175,60,218,96,51,204,106,92,31,92,169,157,28,98,57,33,30,225,207,254,231,135,+ 4,91,22,254,32,35,214,191,80,44,186,99,42,166,247,163,145,115,157,212,63,200,1,86,+ 16,255,116,115,202,227,99,34,232,231,203,156,22,0,44,79,105,69,39,21,19,20,22,33,+ 32,27,23,17,29,22,29,24,28,31,25,15,13,1,253,255,91,150,73,245,146,130,178,154,+ 35,40,164,247,151,216,255,253,16,203,66,178,25,144,41,178,182,110,75,54,56,67,0,9,+ 247,224,10,37,148,20,209,98,170,207,116,89,37,235,25,178,10,232,78,111,226,5,108,248,+ 156,147,222,235,36,235,36,78,236,248,197,225,146,227,70,163,113,239,145,182,255,151,72,19,+ 112,93,119,213,150,153,129,207,59,203,85,202,197,53,219,170,174,109,213,111,239,7,66,167,+ 206,228,158,235,52,184,4,211,26,103,115,49,60,123,215,74,87,58,146,154,209,154,197,192,+ 187,151,72,221,182,253,12,40,13,76,41,69,180,71,249,176,179,125,147,148,242,229,177,87,+ 68,169,41,93,99,250,52,56,91,205,105,249,135,136,87,221,150,51,200,149,32,40,157,17,+ 118,73,35,87,211,157,141,182,89,69,23,195,216,104,184,164,227,54,22,33,210,99,173,203,+ 85,199,38,33,164,120,100,107,104,142,43,38,254,134,8,82,65,23,172,48,243,219,33,7,+ 163,169,57,65,12,255,153,73,17,217,39,109,194,15,164,0,42,189,218,117,185,172,143,14,+ 36,247,167,181,254,114,149,114,48,7,35,79,182,25,24,47,195,98,113,60,136,90,108,193,+ 155,235,104,228,131,197,158,75,125,14,19,126,244,101,210,122,31,225,103,50,53,106,121,113,+ 163,145,206,67,228,90,102,181,186,171,193,180,24,169,144,182,55,165,1,150,214,155,202,75,+ 187,142,45,81,36,190,13,48,130,29,145,33,213,240,118,3,199,32,125,14,132,137,151,132,+ 126,64,211,116,201,185,52,170,99,178,45,254,115,187,56,57,81,135,75,110,151,167,246,85,+ 23,136,105,142,63,133,197,2,12,165,166,97,200,60,69,21,28,0,241,82,220,35,146,85,+ 7,1,221,108,210,171,116,26,123,199,114,105,111,42,228,182,220,89,1,0,173,126,255,78,+ 246,107,72,139,184,80,33,190,71,151,148,88,225,223,101,253,153,128,227,201,132,33,160,16,+ 146,30,22,27,98,152,124,119,235,92,106,204,248,155,176,26,108,14,62,111,183,135,3,27,+ 1,0,245,126,255,6,245,221,215,8,68,101,1,19,150,154,225,172,93,209,42,82,100,137,+ 170,37,200,225,130,28,73,254,135,184,203,95,201,221,223,20,178,224,12,218,103,17,184,107,+ 1,0,245,126,255,6,245,221,215,17,88,160,65,33,139,140,74,97,254,8,232,6,150,176,+ 100,154,246,97,10,190,37,44,70,46,150,126,188,157,236,250,125,252,74,209,167,208,134,28,+ 71,111,149,1,0,245,126,255,6,245,212,111,248,73,245,135,241,148,155,15,46,62,156,60,+ 175,35,236,153,158,42,234,195,173,18,110,248,233,78,239,117,18,100,201,179,214,120,241,89,+ 17,49,235,229,127,36,187,123,227,1,0,245,126,255,6,245,221,208,26,169,241,235,237,18,+ 242,141,134,202,22,74,108,100,180,112,46,20,13,149,27,240,168,47,124,85,114,188,142,191,+ 150,214,150,228,56,60,129,124,98,208,69,55,115,149,8,43,9,48,179,165,84,52,1,0,+ 245,126,255,6,245,221,208,26,169,234,38,80,246,77,107,202,119,73,196,255,146,29,182,211,+ 231,54,17,192,206,142,120,176,77,33,135,233,245,118,50,128,251,92,150,15,69,8,230,242,+ 31,105,38,93,193,145,71,143,63,189,186,9,129,119,80,1,0,245,126,255,6,245,221,215,+ 24,141,208,160,95,41,95,48,56,214,253,136,110,225,254,171,83,106,199,251,214,0,33,61,+ 249,19,27,141,23,230,202,126,229,35,139,57,115,120,197,224,13,20,202,106,230,111,150,73,+ 67,204,73,17,155,196,87,156,1,0,245,126,255,6,245,221,208,19,186,53,109,121,38,55,+ 26,192,99,81,17,241,182,174,138,112,154,201,44,102,15,73,16,112,220,225,30,126,195,48,+ 8,75,156,250,38,171,250,69,212,30,83,4,105,87,38,155,226,20,240,119,88,204,181,154,+ 12,193,83,160,237,99,107,42,245,201,254,1,0,245,126,255,6,245,221,208,19,186,64,224,+ 255,159,45,8,5,185,14,124,116,208,112,109,111,144,126,190,234,164,85,208,154,91,88,86,+ 254,164,55,195,207,184,166,193,58,131,197,5,164,155,240,187,203,109,18,216,37,219,201,4,+ 133,59,226,63,159,40,96,238,28,251,38,133,238,130,180,193,131,1,0,245,126,255,6,245,+ 212,117,235,108,213,135,160,59,91,69,116,6,31,70,153,120,203,174,143,233,82,145,105,241,+ 176,76,249,209,81,189,232,28,170,190,104,112,166,228,147,56,213,148,182,134,28,242,111,57,+ 58,13,82,122,51,24,5,143,66,121,222,232,62,206,181,45,145,233,225,174,13,70,170,92,+ 106,70,234,204,189,23,0,26,53,86,95,71,49,35,32,35,20,18,30,25,27,7,14,16,+ 15,8,13,21,22,17,20,9,255,255,112,30,213,19,245,77,181,61,149,149,82,112,84,169,+ 254,108,212,162,123,109,31,62,31,94,58,11,96,140,71,187,250,230,150,231,171,107,17,53,+ 91,66,110,40,216,227,94,186,10,77,191,149,76,39,166,216,164,196,75,194,84,54,35,240,+ 117,182,48,127,247,191,95,207,0,152,205,70,127,237,33,114,49,45,124,242,108,130,28,27,+ 22,210,189,77,151,244,114,94,147,82,85,209,229,52,227,106,38,220,181,107,78,86,240,70,+ 241,46,68,202,246,73,61,27,176,182,130,26,102,90,75,214,89,214,164,129,255,16,229,9,+ 174,208,13,197,196,66,56,175,137,4,85,175,115,238,49,18,213,84,208,94,208,236,103,250,+ 146,188,132,50,63,29,194,16,13,103,72,83,54,101,66,205,123,35,192,172,252,127,98,37,+ 28,174,230,215,206,134,134,114,186,4,54,55,61,97,40,147,54,100,168,13,26,2,114,170,+ 77,221,88,128,105,69,18,39,176,121,61,91,48,52,191,191,43,104,252,89,219,113,105,146,+ 28,100,28,233,87,90,229,139,196,195,247,236,13,37,112,9,39,231,160,170,234,31,174,182,+ 213,49,164,95,205,255,146,236,84,30,149,92,27,83,146,146,218,154,198,53,44,236,5,165,+ 32,145,231,86,189,214,232,131,39,11,129,5,131,226,96,223,39,23,60,154,165,253,16,35,+ 161,18,99,152,193,181,24,140,167,158,144,54,242,29,4,94,4,128,112,108,194,127,79,134,+ 93,78,98,196,76,25,185,215,86,95,139,108,180,187,97,212,172,227,78,187,22,204,187,239,+ 19,89,220,110,188,189,157,50,54,22,50,69,254,232,190,241,240,100,148,225,200,121,213,82,+ 97,19,1,97,228,23,0,45,67,87,50,36,34,30,43,31,28,8,18,21,41,31,28,11,+ 21,21,21,15,22,20,26,9,255,255,94,234,121,233,67,143,241,229,74,67,53,206,86,8,+ 15,15,249,150,74,223,34,108,4,114,112,242,170,95,66,7,161,162,208,59,26,245,158,52,+ 49,198,64,39,23,13,34,14,250,38,191,212,19,45,22,71,205,180,54,180,120,236,187,225,+ 212,146,114,1,77,241,66,202,125,161,27,208,3,29,174,155,248,218,7,95,34,106,91,94,+ 98,79,15,137,98,37,92,229,54,133,231,163,233,233,119,234,37,199,80,89,147,172,40,43,+ 80,193,38,12,104,84,46,74,113,237,50,71,80,199,90,114,155,210,180,232,236,225,134,254,+ 7,20,94,69,119,221,186,231,253,244,105,101,36,92,155,206,224,180,246,88,69,32,106,91,+ 116,188,175,151,127,84,30,202,249,206,240,170,147,41,165,154,152,61,189,172,119,156,51,222,+ 11,162,174,95,41,213,3,54,103,122,133,50,238,171,21,56,104,177,101,184,17,97,2,243,+ 235,90,171,95,179,1,163,231,130,240,19,183,134,218,114,119,26,130,67,139,193,93,81,193,+ 232,222,41,246,193,152,253,1,148,230,225,207,242,189,215,29,53,197,7,51,18,157,246,153,+ 80,112,139,20,31,34,93,62,157,216,80,126,144,158,183,148,72,133,137,248,113,8,210,14,+ 69,172,23,246,89,71,60,165,80,13,248,0,157,231,18,200,125,241,231,158,80,216,181,66,+ 4,101,186,119,204,146,166,149,88,73,18,171,220,48,97,193,92,63,70,4,26,99,238,98,+ 68,243,116,173,184,9,78,140,134,99,104,111,248,2,137,148,96,208,236,17,221,22,53,161,+ 83,194,59,53,219,67,24,210,170,82,87,73,131,152,136,14,200,204,124,228,204,252,39,180,+ 161,197,40,30,172,150,56,195,190,57,35,23,235,128,128,111,98,168,21,30,54,106,78,121,+ 55,241,34,113,167,244,41,82,181,213,204,154,167,88,185,250,20,70,34,88,85,161,251,38,+ 223,213,170,196,133,29,50,171,103,0,243,38,65,246,91,152,192,22,0,2,25,57,106,88,+ 87,41,54,27,27,29,30,30,10,13,16,14,11,12,21,20,17,19,9,255,255,94,150,158,+ 144,32,162,132,139,46,56,97,158,30,173,219,33,219,190,132,130,186,215,252,134,12,221,157,+ 37,158,148,152,230,103,186,190,232,201,10,173,144,94,147,230,105,14,89,5,165,33,242,148,+ 133,106,13,51,78,184,99,121,42,223,86,228,188,205,29,202,184,208,8,187,81,171,92,51,+ 10,255,166,131,86,237,192,104,102,219,60,93,247,154,239,119,37,147,152,110,194,133,192,164,+ 252,234,5,20,178,88,148,234,76,50,191,18,26,194,156,169,213,198,202,161,246,87,45,164,+ 141,88,242,213,141,229,232,195,15,54,88,169,229,150,227,202,89,230,133,187,169,7,187,62,+ 84,81,230,229,89,181,52,226,183,86,11,224,137,184,77,69,183,84,36,103,109,152,209,46,+ 167,104,163,1,170,208,86,199,57,240,144,199,39,15,32,124,6,210,206,53,186,161,23,33,+ 22,107,234,211,122,44,241,200,38,199,22,43,84,179,153,119,56,102,62,133,74,35,23,20,+ 149,60,120,129,154,189,110,36,74,155,68,194,3,5,125,246,103,234,49,201,176,183,21,203,+ 183,209,183,22,14,192,102,227,108,188,214,135,216,32,145,67,166,57,79,172,60,23,222,153,+ 116,166,213,12,126,82,198,211,93,163,160,149,215,164,108,143,87,84,155,95,73,204,211,96,+ 86,220,131,255,128,195,178,11,119,136,198,228,93,145,180,122,139,207,124,220,149,222,158,175,+ 161,81,249,57,108,196,45,178,119,164,82,127,1,240,110,163,228,147,7,111,13,182,201,43,+ 16,213,8,113,182,217,121,89,62,20,29,62,215,25,23,134,30,16,219,74,202,23,52,12,+ 74,152,210,233,211,86,254,98,98,206,137,28,132,59,152,252,41,161,188,230,138,208,126,113,+ 149,56,207,226,245,94,128,187,189,124,107,120,85,22,11,176,30,14,254,210,142,135,149,237,+ 27,94,74,81,54,49,109,37,76,171,36,46,10,1,0,245,126,255,6,246,107,72,139,184,+ 80,33,190,71,152,34,181,180,159,35,117,130,138,232,191,179,236,135,126,123,103,150,118,91,+ 116,134,62,24,94,134,130,122,83,233,98,251,71,244,226,95,138,146,239,198,105,188,193,221,+ 1,0,159,126,255,92,245,221,215,8,68,101,1,19,150,167,100,19,43,18,154,186,213,31,+ 124,211,51,156,53,114,237,131,62,103,5,214,165,39,192,120,50,166,118,24,229,112,67,1,+ 0,159,126,255,92,245,221,215,17,88,160,65,33,212,220,116,117,216,89,27,37,44,17,135,+ 201,12,185,194,96,12,142,242,78,216,48,216,188,76,16,145,210,160,52,136,91,11,253,1,+ 0,159,126,255,92,245,212,111,248,73,245,135,241,166,35,146,245,34,102,115,152,124,151,1,+ 10,241,20,113,166,1,246,101,224,34,109,80,1,126,232,155,208,202,76,30,242,63,197,75,+ 41,0,1,0,159,126,255,92,245,221,208,26,169,241,235,237,19,17,52,44,167,162,73,105,+ 186,109,218,255,200,164,165,195,162,34,130,8,172,253,9,212,165,18,83,107,71,86,67,187,+ 70,167,194,104,162,49,27,96,73,232,1,0,159,126,255,92,245,221,208,26,169,234,38,80,+ 246,80,231,183,225,68,38,56,94,43,132,137,235,115,81,56,88,193,242,194,144,225,216,116,+ 10,255,181,11,123,199,47,143,19,143,51,145,35,87,159,212,229,21,47,244,32,1,0,159,+ 126,255,92,245,221,215,24,141,208,161,227,140,183,36,60,125,209,6,139,89,66,224,251,252,+ 102,41,169,95,64,130,166,154,90,22,172,25,61,54,131,146,90,30,80,203,225,129,96,45,+ 247,192,78,7,4,1,0,159,126,255,92,245,221,208,19,186,53,109,121,38,64,42,157,3,+ 137,232,163,155,5,252,147,107,241,38,77,234,147,88,36,178,72,85,40,106,244,139,141,151,+ 57,188,158,104,10,88,221,154,169,243,142,253,99,202,145,214,213,191,115,225,3,150,1,0,+ 159,126,255,92,245,221,208,19,186,64,224,255,159,98,57,90,174,58,140,194,239,185,226,139,+ 142,185,129,252,194,88,199,179,45,194,92,147,171,210,195,186,191,110,247,153,114,3,57,123,+ 9,122,13,2,169,137,205,10,110,76,102,104,38,238,213,90,32,1,0,159,126,255,92,245,+ 212,117,235,108,213,135,160,59,91,69,191,22,10,177,61,95,172,78,167,90,252,203,251,193,+ 83,34,218,57,189,43,34,176,24,9,202,77,144,216,121,104,144,173,84,96,89,65,251,97,+ 82,136,125,141,33,177,58,207,204,242,51,114,126,239,199,113,102,23,0,59,80,87,35,32,+ 39,35,20,20,19,16,11,11,13,20,22,26,41,48,46,25,24,16,20,1,253,255,110,5,+ 39,98,8,105,81,29,63,206,195,171,15,163,129,143,34,121,176,102,93,101,159,95,96,176,+ 250,32,27,238,229,254,91,244,175,136,13,89,41,91,208,252,64,158,223,191,2,255,82,121,+ 201,207,136,113,88,66,100,166,109,140,153,53,129,252,24,50,27,33,56,52,158,227,183,65,+ 105,182,108,214,66,20,70,230,102,248,14,242,31,190,104,17,24,219,49,174,13,102,91,243,+ 242,141,1,197,15,222,66,184,43,84,16,58,68,35,6,176,175,68,154,72,156,195,112,38,+ 119,213,20,132,30,15,38,180,240,242,250,20,243,91,160,68,121,23,9,58,239,162,45,229,+ 76,54,200,232,36,137,160,156,182,128,178,223,215,237,139,199,211,75,100,11,26,138,51,72,+ 15,207,13,164,186,141,235,66,200,178,70,182,45,117,39,31,146,38,72,4,14,3,2,239,+ 114,174,23,239,100,154,174,208,67,48,9,105,142,187,157,125,248,210,1,99,13,212,185,192,+ 127,92,137,48,133,228,142,76,91,249,92,116,151,157,205,103,34,8,122,10,132,73,195,45,+ 208,77,192,213,149,86,54,107,206,239,126,23,7,52,242,73,124,73,2,64,170,234,34,155,+ 162,237,27,252,14,179,143,209,46,105,18,226,121,174,213,115,61,181,89,168,154,48,58,68,+ 25,239,89,153,122,245,14,68,214,204,32,249,229,148,207,224,43,171,218,9,161,117,139,57,+ 221,196,189,26,108,25,89,88,45,218,251,249,23,165,80,163,89,123,244,22,26,89,87,128,+ 174,36,99,231,170,11,76,64,152,144,77,225,211,198,200,150,150,22,95,149,237,42,60,163,+ 249,160,156,70,165,35,73,155,131,52,163,205,50,245,27,243,7,90,107,243,58,142,55,225,+ 243,183,23,236,220,115,98,156,129,199,42,222,158,11,76,72,190,184,92,88,231,23,155,175,+ 125,21,91,201,147,237,128,67,215,125,113,72,184,147,185,40,37,9,55,57,236,56,121,233,+ 222,6,80,23,0,1,17,57,65,72,60,57,32,14,31,30,28,11,11,15,17,29,34,44,+ 35,36,27,23,19,1,253,255,91,239,119,154,242,136,69,186,118,112,188,236,78,85,196,85,+ 148,100,85,126,227,161,163,172,21,166,75,199,121,140,155,222,121,227,147,137,253,235,174,88,+ 5,31,112,231,166,113,229,58,179,192,247,90,29,181,235,216,195,106,93,40,109,34,230,48,+ 129,90,208,37,116,190,139,222,150,222,17,163,124,74,113,177,103,188,7,186,219,31,48,190,+ 242,15,112,191,137,176,207,238,230,91,101,36,189,113,135,7,98,47,202,90,183,88,95,90,+ 204,223,10,181,104,237,81,136,86,73,36,98,175,173,29,112,23,225,168,105,29,20,74,175,+ 11,32,123,199,216,75,142,193,28,24,56,101,107,150,10,26,105,175,3,84,246,7,91,94,+ 52,42,138,57,78,128,87,152,128,125,192,103,239,239,42,10,60,246,183,52,92,126,159,182,+ 197,18,121,139,220,20,52,57,34,186,239,110,43,72,168,7,101,177,228,58,83,53,177,138,+ 17,204,249,116,199,123,36,48,31,162,42,79,29,124,189,93,148,255,66,24,18,117,85,55,+ 124,117,130,228,251,91,105,126,147,56,247,191,62,246,242,125,194,247,199,11,27,89,24,245,+ 71,54,241,165,124,240,190,145,212,200,128,159,250,40,6,115,81,58,17,200,118,59,196,183,+ 166,224,26,16,93,158,11,231,134,219,43,92,137,130,134,202,177,186,219,133,193,93,188,55,+ 212,225,43,201,20,54,241,145,173,235,52,230,57,227,31,87,217,171,109,107,86,145,185,190,+ 197,48,189,224,67,119,40,123,43,163,245,175,165,130,57,114,32,218,154,47,148,176,182,37,+ 144,120,117,162,179,105,53,142,226,10,96,187,53,203,173,7,254,224,246,140,15,30,29,0,+ 218,97,135,207,112,189,160,101,202,213,148,15,156,252,58,77,28,128,237,239,237,222,209,15,+ 2,79,93,106,70,77,244,161,32,27,59,70,19,98,57,253,19,168,194,58,70,110,222,3,+ 156,114,202,212,81,43,20,0,67,69,121,59,57,11,30,31,33,22,22,30,36,46,36,21,+ 12,10,18,14,22,1,253,255,90,168,194,75,40,186,80,30,143,30,31,145,7,119,228,187,+ 234,136,96,8,90,51,142,38,162,8,22,43,252,148,179,60,61,157,25,21,119,8,187,176,+ 0,45,175,134,141,18,223,57,87,141,155,89,18,211,224,97,210,194,143,60,196,126,225,114,+ 79,232,118,178,32,191,198,66,249,39,185,209,29,133,33,195,174,214,6,85,132,119,195,245,+ 84,182,227,113,239,204,8,74,163,55,166,44,40,15,96,227,65,135,248,184,72,196,216,160,+ 15,81,247,84,40,87,183,178,125,114,226,176,255,63,61,172,67,84,255,17,128,254,101,228,+ 8,110,255,111,174,248,34,182,23,250,244,99,74,77,194,229,73,118,238,40,98,120,167,41,+ 223,72,51,164,178,116,159,155,135,138,150,123,24,229,10,132,28,66,182,58,201,38,120,113,+ 175,219,113,189,154,118,249,88,2,71,82,41,77,76,212,223,5,0,92,77,157,253,16,15,+ 190,147,120,67,33,9,219,255,197,15,193,1,250,194,206,244,18,230,26,12,66,146,216,231,+ 105,102,178,130,200,244,28,189,127,121,58,118,104,131,76,148,205,172,40,98,41,169,234,11,+ 118,4,176,148,157,94,240,62,140,30,253,241,16,83,130,153,37,99,95,222,141,167,252,6,+ 147,254,59,168,182,62,227,158,34,233,249,91,9,193,170,142,75,71,213,128,132,69,17,24,+ 167,39,35,237,65,201,37,10,174,39,62,62,50,181,42,91,189,101,54,199,99,14,35,201,+ 120,140,223,176,113,227,133,90,163,99,54,87,253,4,3,14,112,74,221,214,20,138,38,246,+ 111,133,83,131,109,6,57,145,240,127,247,141,41,5,192,186,204,46,170,139,80,124,211,159,+ 90,223,135,114,73,174,207,78,110,38,77,51,208,25,42,229,106,140,240,45,111,164,150,128,+ 1,142,123,240,151,193,204,76,113,228,132,40,217,62,108,61,189,144,206,98,12,51,70,1,+ 0,159,126,255,92,246,107,72,139,184,80,33,190,71,155,27,144,207,245,3,58,8,97,111,+ 247,120,27,62,211,103,41,54,184,125,85,247,82,252,221,249,34,175,133,219,107,146,23,231,+ 1,0,251,126,255,0,245,221,215,8,68,101,1,18,189,219,176,50,177,104,119,63,172,230,+ 194,62,220,9,124,218,108,11,66,167,135,73,134,108,109,230,147,188,71,188,89,14,249,181,+ 165,90,1,0,251,126,255,0,245,221,215,17,88,160,57,251,220,70,68,8,62,223,45,107,+ 231,78,115,237,125,173,190,206,43,143,121,174,127,196,253,216,53,240,1,220,46,76,113,50,+ 68,0,85,85,175,53,167,1,0,251,126,255,0,245,212,111,248,73,245,135,80,183,83,46,+ 31,82,117,137,222,63,95,146,44,223,10,206,114,210,65,210,66,109,64,66,110,138,158,79,+ 62,66,193,219,152,62,106,121,105,57,211,120,95,94,25,1,0,251,126,255,0,245,221,208,+ 26,169,241,235,234,244,158,159,134,156,254,162,174,86,182,32,91,145,122,161,206,87,127,28,+ 248,111,70,176,236,188,70,217,146,252,226,230,45,210,90,36,212,169,248,3,234,238,12,177,+ 86,240,187,30,182,1,0,251,126,255,0,245,221,208,26,169,234,38,80,176,143,110,253,128,+ 107,65,9,115,228,210,94,154,215,182,26,148,67,99,149,13,100,112,15,81,85,193,226,107,+ 210,17,82,30,222,100,27,122,245,189,182,237,238,86,132,249,139,238,90,117,143,180,110,155,+ 1,0,251,126,255,0,245,221,215,24,141,195,42,114,105,124,157,105,24,124,60,208,81,95,+ 48,116,172,187,11,193,136,45,177,132,146,198,169,9,76,80,27,73,133,16,200,196,151,211,+ 22,221,120,33,186,118,124,243,214,255,187,41,202,206,71,115,176,3,242,1,0,251,126,255,+ 0,245,221,208,19,186,53,109,120,58,173,163,202,242,0,52,130,13,119,2,101,158,61,154,+ 190,146,45,69,231,187,203,142,3,207,147,231,227,115,185,238,83,214,237,149,187,39,108,190,+ 244,123,196,184,162,90,168,187,228,155,228,158,67,23,149,100,53,196,195,81,124,175,106,51,+ 1,0,251,126,255,0,245,221,208,19,186,64,224,251,17,27,108,246,199,195,85,228,99,228,+ 131,32,3,75,128,147,2,38,121,198,133,185,125,64,131,206,109,223,76,61,171,64,61,68,+ 54,132,65,117,231,149,162,44,232,35,2,86,245,22,115,213,47,13,171,51,22,139,212,154,+ 78,250,3,80,166,107,209,51,1,0,251,126,255,0,245,212,117,235,108,213,135,160,59,33,+ 144,163,2,234,5,30,254,174,18,181,233,14,143,11,250,133,44,175,7,86,69,110,215,142,+ 119,169,55,49,35,255,151,170,230,106,183,19,174,129,97,155,149,212,56,107,227,247,236,160,+ 52,43,96,20,15,125,28,49,164,192,93,126,239,180,34,150,47,251,226,59,51,221,232,23,+ 0,1,24,57,98,82,62,23,14,15,22,32,30,26,19,12,17,27,43,49,40,28,15,12,+ 16,3,252,255,112,30,76,219,93,58,249,85,88,31,247,190,156,226,18,250,59,229,182,13,+ 81,227,117,129,142,93,62,6,3,123,187,112,21,94,118,114,223,136,168,30,197,134,164,121,+ 14,237,231,105,21,196,33,89,167,42,29,230,203,30,153,254,14,52,72,32,206,113,151,216,+ 9,248,216,93,190,11,56,229,254,109,214,159,43,73,109,12,62,124,153,189,195,34,138,73,+ 84,16,97,209,170,141,176,18,162,162,45,62,181,191,124,203,183,241,91,103,137,56,49,111,+ 221,171,111,187,85,89,142,210,28,191,255,40,221,159,119,129,74,204,160,177,47,33,180,50,+ 240,47,189,50,243,15,182,216,160,23,129,6,75,189,52,190,2,165,120,62,145,91,215,221,+ 108,174,154,27,102,142,175,214,28,38,135,24,191,113,229,244,247,251,125,114,62,118,171,206,+ 208,19,233,224,219,8,130,108,206,202,21,231,88,246,18,35,92,82,77,125,118,110,190,186,+ 246,135,183,59,114,48,147,35,9,194,188,228,99,137,209,14,237,88,224,9,174,80,74,5,+ 230,81,65,183,91,250,141,224,22,116,85,209,120,11,134,104,217,132,208,15,39,124,123,105,+ 156,167,92,210,59,0,207,227,67,224,142,7,191,213,17,158,187,136,223,59,151,170,157,63,+ 146,68,153,146,82,102,10,117,17,64,215,252,15,87,18,189,226,161,3,69,151,15,130,152,+ 110,89,250,212,145,107,167,51,218,211,190,29,132,12,250,166,36,137,254,50,19,92,41,209,+ 199,96,20,173,228,229,245,212,6,42,239,19,122,197,167,206,171,254,149,180,3,66,143,224,+ 149,7,207,186,182,230,140,175,201,241,139,107,213,51,215,254,163,74,241,150,157,60,60,49,+ 129,23,0,28,42,97,84,74,26,16,10,9,29,34,42,22,25,40,38,46,27,25,12,7,+ 9,7,15,3,252,255,94,234,121,233,76,31,134,99,46,63,77,175,100,29,212,99,66,222,+ 236,112,229,22,74,243,189,101,103,18,231,198,166,146,24,210,39,167,204,115,131,102,151,57,+ 111,157,252,85,250,162,83,172,243,200,152,66,120,193,249,212,115,166,253,112,233,213,210,8,+ 112,134,147,177,32,124,123,80,109,214,163,15,75,203,33,223,56,247,139,31,178,222,235,189,+ 162,161,104,85,41,174,202,162,172,79,248,247,204,93,105,184,61,197,91,7,11,91,29,37,+ 9,212,155,180,203,109,125,246,50,239,97,34,215,146,67,142,224,154,204,251,57,134,226,52,+ 126,33,92,33,104,73,53,179,156,29,90,221,207,144,241,37,67,35,119,85,127,224,195,0,+ 88,76,189,189,142,108,227,79,118,100,85,145,33,130,177,136,117,59,25,139,223,14,91,140,+ 153,15,216,3,13,38,191,184,163,247,120,9,252,238,251,13,200,191,22,131,116,202,91,249,+ 42,152,229,130,211,4,161,220,23,23,230,171,12,66,212,34,146,54,254,145,205,247,249,134,+ 74,229,168,184,87,133,206,236,69,6,29,120,226,22,199,226,159,243,130,184,255,94,183,252,+ 15,183,4,207,80,54,219,206,183,141,231,157,160,153,119,6,202,39,25,231,177,94,214,125,+ 194,16,204,193,161,159,182,191,171,104,130,34,193,146,79,38,134,191,248,80,155,175,127,15,+ 172,241,136,219,80,56,232,69,19,154,115,134,6,56,9,123,252,126,99,44,166,137,167,74,+ 110,116,253,30,130,250,150,236,224,247,216,255,58,255,154,157,101,243,168,247,207,196,144,136,+ 106,234,174,230,8,83,51,35,195,211,164,7,32,204,110,103,190,42,66,238,181,8,157,209,+ 133,84,94,129,207,9,172,167,158,127,44,215,147,232,200,125,207,41,58,160,190,23,0,1,+ 53,83,101,61,43,32,26,38,36,32,14,17,26,39,39,30,18,12,9,13,13,13,15,3,+ 252,255,94,225,34,177,209,202,129,150,131,202,97,57,21,100,132,75,189,55,102,158,104,46,+ 220,123,192,255,147,111,25,222,41,146,204,118,5,59,248,83,77,178,179,214,120,89,85,210,+ 140,10,46,54,123,201,31,19,253,191,63,176,3,250,143,99,42,67,3,191,80,200,195,130,+ 162,52,121,44,57,59,135,35,41,122,203,22,175,72,117,39,218,228,100,189,16,5,114,74,+ 61,201,184,205,169,169,99,176,48,117,226,8,64,167,144,61,74,231,220,88,48,176,100,0,+ 188,43,123,250,209,75,160,213,19,217,205,243,192,211,7,235,12,45,147,163,162,135,190,5,+ 110,226,104,223,245,250,96,21,66,198,239,38,217,120,45,160,210,249,131,12,0,8,223,203,+ 96,83,78,117,181,39,250,55,90,48,28,202,167,9,32,211,240,173,64,49,161,114,191,24,+ 218,20,161,113,197,61,94,15,195,96,49,194,153,6,32,47,170,177,178,183,60,219,184,16,+ 59,149,216,150,35,93,235,196,255,65,82,161,243,69,29,87,149,17,88,234,56,177,180,29,+ 152,85,49,58,111,52,24,105,144,29,58,183,228,181,55,91,141,48,165,45,68,210,52,141,+ 143,10,122,210,228,50,161,26,117,117,184,20,170,130,183,214,98,130,77,113,79,223,11,29,+ 176,204,84,136,73,2,76,218,164,104,244,25,122,59,32,49,147,50,18,63,118,136,113,158,+ 104,222,88,214,134,189,117,109,233,225,218,248,174,216,81,237,184,228,181,81,158,105,104,237,+ 90,156,193,105,239,114,34,235,145,94,199,103,145,79,175,23,170,123,60,149,21,243,45,128,+ 201,122,90,228,20,45,122,235,1,41,194,171,12,9,228,114,40,149,207,75,248,67,72,155,+ 81,8,94,233,52,151,236,12,245,182,199,229,84,222,146,45,173,114,36,183,167,63,104,31,+ 236,163,222,21,85,83,176,12,116,236,1,5,11,175,198,203,4,176,74,135,24,79,34,94,+ 171,32,168,200,174,225,151,70,20,53,251,109,7,102,197,4,34,62,202,0,170,38,215,131,+ 166,83,149,171,139,72,96,241,37,155,1,0,251,126,255,0,246,107,72,139,184,80,33,190,+ 71,155,27,144,207,175,207,158,197,19,55,92,175,97,110,223,186,70,126,193,247,196,83,33,+ 87,51,78,167,112,59,117,25,127,189,222,170,99,0,254,89,7,21,102,8,0,16,72,102,+ 174,125,129,44,47,40,21,2,246,195,239,235,16,219,75,232,117,220,148,238,139,160,237,120,+ 132,10,93,40,103,229,85,41,76,220,184,28,190,205,80,28,254,151,212,0,227,196,47,157,+ 18,45,49,129,59,225,106,147,241,253,237,131,250,132,243,171,68,253,56,129,106,72,169,118,+ 59,237,176,192,198,114,174,130,171,16,216,36,4,86,39,130,10,191,221,201,207,207,214,179,+ 188,250,167,124,60,136,183,163,71,192,167,235,116,75,192,92,78,88,241,254,11,41,111,53,+ 50,47,12,195,137,89,205,96,197,33,38,207,210,182,10,0,48,47,50,10,87,89,84,22,+ 84,93,113,32,12,195,58,250,47,97,66,244,207,37,228,33,5,140,151,143,122,7,63,251,+ 173,44,70,91,96,88,209,48,225,104,150,146,230,11,141,42,206,124,236,220,230,66,178,181,+ 163,101,120,131,45,73,124,16,37,65,109,237,165,102,214,215,230,129,125,104,9,1,111,64,+ 92,79,189,67,37,130,12,15,132,193,29,38,131,18,153,29,66,76,206,235,228,247,105,210,+ 234,72,74,74,172,9,120,138,71,201,255,105,25,72,220,21,45,62,210,255,197,43,36,122,+ 79,253,141,73,129,252,92,23,6,0,137,162,167,42,16,83,108,74,250,174,138,160,250,92,+ 73,69,89,194,86,114,159,51,146,119,146,27,55,113,183,232,85,188,199,44,134,4,85,153,+ 89,51,180,153,84,249,134,37,136,6,9,133,247,181,99,245,183,135,106,146,161,254,2,201,+ 218,200,201,209,251,231,205,215,84,220,247,122,167,209,162,137,68,236,176,171,93,193,255,88,+ 252,232,92,20,239,237,143,191,36,203,8,23,186,215,123,116,254,74,70,247,80,7,0,109,+ 107,188,102,102,45,23,75,22,10,174,46,84,206,88,181,139,188,86,121,227,61,162,143,7,+ 50,44,224,33,215,95,229,34,115,132,139,175,36,163,6,164,214,114,40,88,67,0,16,97,+ 199,243,109,21,249,19,252,16,180,164,68,217,74,114,5,103,188,154,231,36,93,41,78,210,+ 242,51,159,84,29,224,181,255,112,113,96,175,119,212,141,213,189,134,248,251,255,58,43,152,+ 59,248,50,136,190,233,16,170,41,247,34,213,16,28,6,0,66,65,92,41,90,102,180,98,+ 50,174,46,84,206,92,78,120,254,107,111,241,184,119,56,47,97,197,198,255,131,41,226,206,+ 64,156,147,123,132,166,40,80,201,222,197,113,224,160,93,99,157,223,74,7,249,126,236,181,+ 156,173,242,206,201,233,152,59,124,171,48,131,231,135,65,103,231,98,216,243,189,149,135,95,+ 38,6,81,37,150,64,64,50,30,33,6,0,89,106,187,113,103,24,85,44,33,241,139,218,+ 94,5,2,4,37,184,130,172,212,7,109,166,73,111,156,181,61,237,101,199,177,255,189,85,+ 111,85,85,90,54,224,155,159,116,150,116,239,128,17,79,43,21,243,237,136,128,129,0,28,+ 54,150,36,214,145,31,140,34,233,46,139,231,38,24,164,93,87,205,158,217,37,113,239,22,+ 168,0,10,188,239,36,85,74,108,32,26,231,228,120,241,236,3,196,50,139,6,0,82,81,+ 145,73,112,78,132,60,21,200,44,98,7,27,35,228,18,184,110,84,48,105,163,140,56,194,+ 159,253,242,216,201,89,82,238,83,229,80,170,34,58,222,70,171,46,132,44,57,103,242,229,+ 248,50,80,146,20,25,123,231,67,200,243,13,41,61,44,233,203,13,45,223,113,34,232,49,+ 192,81,99,228,221,11,217,126,211,220,40,205,110,161,247,110,112,173,126,191,220,36,210,189,+ 135,103,181,69,147,2,193,216,37,166,140,7,0,140,162,167,37,16,15,75,106,72,248,174,+ 138,160,250,92,133,155,106,23,131,166,51,160,206,79,128,22,220,113,112,27,222,192,46,29,+ 217,91,195,93,23,59,114,73,224,133,77,247,58,143,56,246,171,126,164,48,83,161,72,117,+ 208,76,218,200,213,190,95,37,71,199,170,47,45,160,61,153,109,126,59,35,186,68,115,207,+ 59,252,181,233,103,203,216,60,145,71,7,0,105,152,157,96,66,72,41,66,26,2,241,226,+ 213,117,48,197,185,130,31,24,35,139,57,21,22,204,116,124,223,133,114,177,31,88,87,183,+ 125,171,139,142,31,152,196,247,248,101,241,178,186,150,81,107,90,144,228,37,206,228,227,86,+ 130,234,212,159,67,185,62,148,224,230,6,86,31,123,48,206,32,119,104,43,43,51,248,178,+ 46,212,145,216,198,6,0,133,133,172,41,103,76,113,16,252,174,46,84,206,88,181,139,188,+ 86,121,227,63,118,162,46,142,202,89,85,17,1,155,188,41,180,174,0,166,175,40,207,88,+ 72,170,48,191,221,172,12,101,212,236,44,116,233,95,227,50,153,186,209,60,161,242,249,205,+ 160,48,17,150,0,147,224,50,15,132,15,25,124,171,241,24,127,17,91,136,142,225,170,237,+ 198,87,99,20,172,0,5,0,88,110,114,116,102,173,51,30,174,46,84,206,92,78,120,254,+ 107,111,134,196,211,212,124,223,76,157,75,218,85,212,36,181,218,247,178,8,219,235,31,99,+ 1,218,219,106,243,109,1,146,187,22,246,214,111,63,70,38,221,85,134,68,176,181,217,23,+ 194,114,226,40,70,163,124,234,41,43,21,253,194,184,87,213,97,52,130,237,215,137,255,52,+ 238,189,38,245,157,182,141,30,84,39,231,146,73,254,202,210,194,202,216,83,136,193,96,150,+ 104,246,168,27,235,161,227,117,216,58,5,0,79,146,153,118,68,134,58,28,241,139,218,94,+ 5,2,4,37,184,137,210,170,189,225,235,172,32,243,126,180,187,213,139,239,24,100,98,79,+ 128,190,65,22,239,232,161,56,196,18,38,169,107,24,13,223,253,237,205,62,94,75,13,196,+ 15,43,139,156,42,106,33,245,67,120,142,79,1,71,162,8,0,39,43,52,21,92,87,82,+ 22,132,113,89,195,45,59,222,59,33,207,7,20,185,48,210,59,123,214,254,16,18,75,182,+ 7,43,83,11,221,70,143,59,42,40,70,160,88,144,40,13,61,74,124,2,105,206,229,7,+ 215,142,34,187,95,190,126,150,109,29,164,116,228,171,165,175,139,187,35,195,74,138,70,69,+ 94,188,253,241,235,38,250,182,178,101,132,223,67,191,34,152,154,86,243,143,28,58,29,80,+ 128,76,74,250,6,0,131,133,163,42,43,84,114,76,253,174,46,84,206,88,181,139,188,86,+ 111,117,251,229,177,165,139,191,76,217,159,200,175,60,120,79,26,156,218,56,88,234,251,82,+ 5,78,96,183,56,190,151,165,181,212,218,29,114,138,108,49,242,124,169,191,122,223,239,53,+ 205,214,204,123,182,224,18,73,150,41,84,120,20,209,246,135,141,136,9,0,28,59,63,46,+ 15,33,23,68,55,174,111,96,195,45,59,222,59,33,207,7,20,185,48,210,59,127,244,57,+ 242,47,103,155,154,47,140,247,101,30,154,226,161,104,211,25,174,42,157,235,158,115,50,168,+ 142,114,101,103,243,153,110,16,33,237,11,158,185,3,119,64,154,180,90,157,71,80,134,242,+ 154,150,123,113,125,226,143,157,91,118,156,0,119,123,208,70,137,159,159,160,43,188,92,15,+ 90,223,24,56,116,167,152,56,10,225,197,125,114,7,0,111,111,116,97,101,100,28,72,39,+ 8,174,46,84,206,88,181,139,188,86,121,227,61,162,232,214,136,238,169,255,60,190,90,125,+ 168,137,196,75,253,58,128,81,119,21,175,54,51,228,141,175,165,205,249,60,222,136,255,73,+ 61,230,11,232,72,93,92,229,97,224,77,155,128,81,165,247,22,225,134,36,123,41,97,99,+ 183,140,218,206,54,228,46,143,110,57,118,232,207,137,46,27,7,0,145,153,175,31,70,66,+ 65,61,14,3,174,46,84,206,88,181,139,188,86,121,227,63,114,20,4,3,82,170,186,149,+ 143,141,162,196,60,53,15,169,47,151,221,159,189,220,181,172,178,126,94,175,47,125,90,53,+ 82,86,134,177,172,218,114,233,161,30,49,7,76,66,66,58,245,33,90,238,86,194,96,225,+ 124,228,88,86,15,148,23,36,42,19,109,68,153,117,104,195,192,126,185,197,7,0,143,187,+ 205,74,40,27,29,57,22,254,174,46,84,206,88,181,139,188,86,121,227,63,112,59,145,191,+ 197,3,14,47,51,98,6,111,215,3,18,58,218,190,74,170,50,96,147,200,205,137,3,186,+ 64,109,176,235,117,19,148,87,222,217,43,171,248,214,145,95,20,7,178,99,13,17,152,53,+ 243,246,25,96,237,234,250,240,231,223,19,13,253,44,60,8,237,62,83,30,48,46,226,29,+ 107,223,15,220,113,205,139,73,187,100,150,222,7,0,131,130,134,40,40,85,68,114,36,5,+ 174,46,84,206,88,181,139,188,86,121,227,61,162,110,20,146,32,100,34,42,17,170,179,172,+ 43,51,140,56,181,75,194,212,73,99,134,62,175,74,210,124,149,209,79,100,32,136,108,84,+ 130,86,158,24,164,82,130,164,121,153,108,210,187,126,80,9,80,19,103,226,117,178,240,211,+ 205,14,67,27,172,59,109,4,177,79,139,23,144,203,128,60,172,7,0,104,142,147,88,49,+ 73,35,93,35,17,174,46,84,206,88,181,139,188,86,121,227,61,162,134,74,205,107,182,72,+ 140,55,18,14,91,120,227,136,75,19,84,241,178,204,137,200,188,84,21,106,11,160,35,150,+ 216,148,195,115,105,86,50,121,38,19,2,123,44,204,97,38,57,196,55,60,211,248,217,128,+ 150,169,10,204,172,59,16,182,156,179,200,60,236,4,118,168,73,141,69,205,196,109,92,131,+ 148,63,210,204,25,102,6,0,157,193,196,68,32,47,62,28,1,174,46,84,206,88,181,139,+ 188,86,121,227,61,162,110,20,146,32,100,34,137,12,93,174,191,115,242,51,125,225,164,255,+ 56,124,107,13,113,51,48,69,106,24,3,34,203,74,254,88,146,92,175,50,45,106,125,97,+ 7,61,221,54,161,9,61,103,106,191,157,89,60,204,134,7,5,191,225,78,200,184,197,165,+ 215,139,246,10,200,224,180,11,74,169,108,156,131,225,231,178,6,0,78,78,81,28,74,137,+ 181,101,26,174,46,84,206,88,181,139,188,86,121,227,63,115,138,189,134,185,101,64,197,84,+ 114,246,84,5,207,99,53,214,200,13,102,81,28,98,74,157,143,227,86,48,182,101,248,47,+ 117,39,180,9,203,142,238,235,167,116,218,221,80,94,75,106,149,130,7,146,67,116,220,120,+ 204,103,131,248,134,2,231,140,251,54,185,23,88,6,237,107,182,14,114,246,163,36,60,247,+ 238,6,0,162,166,170,22,17,84,103,69,246,174,46,84,206,88,181,139,188,86,121,227,63,+ 118,162,48,24,56,184,21,1,175,207,119,19,133,5,118,101,216,56,118,233,34,29,211,96,+ 23,145,195,112,23,77,234,87,110,126,65,247,55,191,140,66,187,253,71,238,129,183,47,104,+ 178,252,197,170,124,3,218,244,69,80,70,125,212,119,31,135,101,130,145,216,222,143,114,168,+ 71,224,40,12,14,68,54,7,0,171,170,175,68,77,77,14,37,2,247,174,138,160,250,92,+ 133,155,106,23,131,166,51,160,206,79,128,40,16,153,12,240,38,188,233,21,71,226,234,244,+ 83,47,97,19,235,63,40,237,133,71,76,83,76,136,74,220,249,175,78,236,0,200,89,13,+ 213,156,196,62,145,42,84,131,74,142,98,4,181,217,106,208,82,123,78,101,49,74,87,18,+ 47,154,221,252,163,90,190,217,211,121,247,145,33,8,0,124,126,128,6,34,39,47,19,104,+ 78,67,195,58,250,47,97,66,244,207,37,228,33,5,140,151,143,122,7,63,251,172,192,78,+ 6,40,216,227,238,240,130,123,19,127,122,107,201,217,93,135,47,106,209,35,132,105,200,225,+ 243,130,253,160,212,117,146,43,225,239,4,111,231,153,45,244,117,81,112,133,186,249,53,39,+ 222,138,100,255,164,17,154,15,216,26,219,98,216,36,154,1,160,228,18,0,19,24,29,51,+ 57,69,36,61,64,59,24,7,8,15,15,13,31,51,77,41,14,126,102,238,15,113,188,160,+ 17,83,68,32,5,71,90,103,183,218,84,136,123,95,67,38,153,246,124,228,70,230,131,253,+ 9,82,72,76,101,173,106,150,126,91,180,243,129,110,168,100,54,19,7,5,239,203,108,204,+ 42,36,144,94,191,90,121,28,210,97,94,173,173,126,122,207,16,237,159,94,220,120,30,194,+ 204,255,168,26,81,90,73,228,91,248,139,113,178,24,163,37,213,95,52,17,243,157,2,174,+ 158,3,63,16,166,150,123,144,80,175,18,46,89,129,131,241,139,87,233,38,79,192,213,186,+ 31,11,242,124,207,128,204,194,161,23,147,165,196,227,233,223,231,186,66,59,22,220,17,172,+ 96,0,94,66,80,244,234,54,48,242,62,249,61,166,33,16,0,19,25,29,51,64,69,34,+ 27,20,16,27,32,82,63,64,33,56,41,14,122,110,62,15,112,111,220,107,241,138,2,135,+ 174,220,104,31,58,19,200,9,129,91,25,122,115,167,100,124,45,56,236,22,68,61,196,105,+ 233,124,94,37,149,179,246,132,189,109,168,121,157,88,124,127,11,161,133,197,199,206,205,232,+ 71,109,180,17,20,205,169,83,217,178,100,206,43,87,48,33,15,17,138,24,224,237,108,69,+ 41,213,145,115,129,167,150,102,165,181,205,224,30,38,200,168,199,58,120,141,37,218,121,249,+ 137,80,235,0,42,202,7,22,223,45,160,106,246,120,138,238,58,6,164,113,4,122,238,75,+ 231,83,56,241,107,92,13,156,81,192,74,90,234,188,239,82,42,121,188,246,246,75,119,89,+ 24,38,226,42,16,0,19,25,29,24,23,24,16,21,45,45,66,43,38,8,73,93,119,41,+ 14,113,254,6,29,132,148,32,75,16,72,139,246,161,121,127,121,77,254,252,59,55,101,41,+ 150,228,59,154,59,50,35,126,39,22,141,80,129,146,220,98,192,201,142,163,114,177,215,231,+ 116,99,200,60,239,140,147,47,222,148,75,134,224,14,0,111,40,15,15,187,137,86,170,123,+ 75,204,99,4,138,15,59,177,69,13,19,14,192,149,57,58,163,36,80,229,117,92,91,111,+ 114,170,194,212,20,220,230,158,168,53,242,206,95,4,197,255,72,96,89,125,243,219,203,231,+ 168,231,47,80,197,214,103,255,152,167,149,141,34,193,165,124,137,55,71,185,119,44,176,157,+ 80,63,76,40,88,13,114,22,171,235,42,92,186,36,177,198,93,18,0,19,24,29,51,48,+ 59,23,20,10,7,10,46,47,99,62,62,11,29,54,41,14,113,254,6,29,132,148,32,76,+ 218,49,138,56,68,215,6,24,199,194,232,26,7,19,72,125,128,147,165,26,17,40,84,235,+ 194,114,73,213,21,21,136,7,150,20,116,140,138,161,89,206,26,41,31,29,71,14,203,3,+ 48,223,161,61,54,51,147,150,58,212,123,7,118,148,71,203,186,139,125,12,245,146,90,142,+ 250,41,148,182,39,159,228,162,93,202,143,228,60,42,94,51,3,29,148,242,68,33,191,119,+ 39,192,142,9,102,61,136,6,36,229,196,62,72,71,115,193,191,56,139,24,56,4,2,5,+ 95,168,7,110,70,192,11,206,142,143,115,71,5,163,67,193,130,247,152,251,133,50,231,133,+ 6,90,200,105,77,57,114,50,230,91,189,75,163,36,129,194,221,147,15,0,19,22,29,46,+ 44,50,30,28,24,9,51,50,94,65,64,73,41,31,20,179,77,2,234,34,120,69,245,94,+ 9,183,122,151,215,232,191,15,16,7,16,94,3,222,133,242,49,90,249,19,78,199,141,198,+ 144,11,31,98,33,250,109,215,133,95,216,6,7,54,213,190,249,120,132,182,115,177,130,39,+ 2,104,247,163,247,55,217,30,186,1,245,236,79,50,230,191,145,252,117,68,118,186,69,29,+ 153,188,44,236,146,189,14,43,242,68,77,217,161,254,86,194,223,13,200,184,116,123,134,55,+ 58,183,227,9,252,27,194,42,35,13,20,232,67,237,145,25,164,87,206,52,255,63,77,40,+ 141,201,234,246,134,121,251,47,134,236,125,154,87,206,151,147,81,28,54,143,129,108,84,193,+ 222,4,0,1,24,69,100,6,186,147,240,47,107,222,35,242,198,154,240,206,123,201,68,167,+ 192,107,2,231,23,125,162,139,81,197,69,128,179,19,36,184,143,90,63,106,61,115,221,199,+ 146,31,153,30,234,75,217,61,242,111,143,192,36,66,248,151,52,102,22,29,195,90,87,223,+ 166,159,220,220,249,129,217,229,175,223,83,187,196,69,94,43,208,30,9,124,201,141,21,0,+ 0,255,3,12,27,27,18,36,39,43,11,8,19,18,18,20,21,49,78,84,55,71,143,63,+ 4,100,95,43,214,165,165,109,201,57,237,158,27,164,193,105,127,209,39,212,19,122,138,120,+ 239,28,54,26,92,204,154,39,166,51,226,211,225,198,117,2,130,149,230,34,16,177,219,128,+ 4,212,96,137,218,148,145,52,238,231,221,167,241,67,129,135,61,28,234,83,115,206,203,153,+ 33,33,94,155,247,20,94,17,1,84,149,252,29,116,98,125,235,213,117,145,42,54,75,177,+ 73,118,194,150,85,49,13,31,89,43,157,72,113,225,78,102,239,21,48,73,121,242,186,117,+ 20,0,1,0,3,12,28,29,22,16,15,30,23,30,30,54,52,49,37,62,55,39,71,143,+ 63,4,100,64,70,86,176,202,46,198,252,5,82,76,199,128,136,196,161,95,123,206,99,76,+ 225,32,160,216,142,225,39,219,67,223,104,140,105,110,53,240,250,80,183,192,119,2,180,176,+ 135,244,255,167,171,198,191,238,201,119,237,15,187,144,213,250,136,171,247,189,77,63,207,76,+ 111,205,205,78,121,104,205,212,106,14,66,226,205,196,123,122,16,34,228,133,184,173,136,212,+ 202,92,71,254,40,193,226,236,112,75,159,51,189,60,231,124,1,19,226,180,151,128,20,0,+ 1,0,3,12,23,62,58,52,19,20,24,20,53,49,89,55,50,8,14,13,61,129,49,4,+ 100,63,85,110,14,226,7,12,50,78,143,71,34,25,234,112,86,149,169,11,164,208,35,182,+ 20,222,76,150,157,161,14,32,121,62,255,54,108,177,167,234,106,203,93,165,57,175,141,251,+ 177,144,230,209,64,124,119,164,91,191,117,119,178,162,236,44,134,34,161,239,132,2,56,33,+ 164,30,122,45,6,27,94,229,132,73,198,206,105,43,100,200,210,100,155,125,105,104,233,90,+ 224,176,165,199,208,122,2,56,151,163,235,30,232,192,69,49,30,36,178,117,112,32,25,240,+ 170,41,68,216,241,21,0,0,255,3,4,11,12,15,17,47,43,35,7,10,12,22,23,67,+ 100,102,55,8,64,143,63,4,100,157,172,198,139,37,26,158,103,204,154,36,169,214,254,179,+ 251,71,143,203,150,160,134,231,152,48,226,247,179,65,141,237,99,230,200,73,67,52,121,1,+ 86,227,44,94,48,147,62,99,73,222,211,12,220,91,254,7,135,188,31,148,219,213,17,134,+ 50,233,181,11,146,254,240,87,22,70,109,87,127,33,125,111,78,205,143,120,234,215,114,169,+ 95,176,170,98,212,51,64,193,198,114,171,44,93,211,207,30,65,254,61,54,36,202,59,73,+ 247,125,220,20,249,44,183,21,252,24,65,21,0,1,0,6,7,10,9,8,7,12,20,43,+ 38,32,6,8,9,9,71,114,121,55,71,140,207,89,106,83,199,182,62,104,32,41,103,155,+ 37,131,208,232,234,55,179,143,72,104,122,137,137,134,48,100,233,220,207,85,40,172,13,241,+ 200,145,251,233,157,215,170,172,116,26,213,69,93,66,44,73,147,172,41,192,133,60,33,155,+ 180,222,194,190,114,65,135,116,159,243,217,196,202,16,234,65,95,230,230,102,226,175,111,41,+ 198,98,111,116,92,145,236,198,63,103,105,155,18,17,52,101,209,144,240,98,92,121,45,26,+ 188,177,255,242,211,221,243,95,24,25,232,112,146,252,152,77,0,21,0,0,255,3,13,20,+ 28,23,33,34,34,19,12,11,16,18,26,36,37,36,46,67,118,170,63,4,107,133,123,62,+ 93,207,116,111,136,189,216,105,185,0,134,37,67,147,121,180,77,255,171,174,8,188,89,19,+ 60,181,119,79,67,165,210,64,3,225,52,179,24,101,98,162,159,144,9,237,189,149,10,83,+ 93,70,99,66,118,207,130,23,194,146,161,99,215,9,204,185,142,52,220,231,59,248,22,251,+ 149,8,239,224,136,10,4,141,6,171,135,215,60,31,149,58,82,62,133,72,27,169,203,94,+ 163,115,67,206,106,21,0,0,255,3,8,10,10,13,18,24,16,9,7,12,26,25,27,30,+ 75,114,104,55,71,143,63,4,100,158,62,220,166,54,70,73,154,236,102,221,186,67,22,126,+ 124,4,236,4,77,237,113,244,172,212,70,77,17,188,145,59,171,127,142,134,242,20,165,3,+ 135,175,112,120,33,80,1,57,222,91,45,161,73,12,153,105,247,125,2,177,24,6,32,107,+ 33,217,111,29,26,63,73,125,34,80,196,88,194,135,237,32,18,136,81,244,88,211,18,181,+ 76,45,48,42,89,196,31,10,180,222,110,157,56,223,207,235,203,102,19,0,0,255,3,12,+ 28,62,59,47,30,50,46,30,4,21,26,30,55,49,57,63,142,49,4,100,63,85,110,14,+ 226,7,12,50,78,143,72,41,210,252,63,26,224,20,228,9,232,59,99,205,47,91,162,188,+ 122,151,22,21,158,89,224,218,245,79,219,115,225,37,109,236,113,127,54,235,175,206,215,216,+ 48,99,32,5,178,24,93,81,86,66,232,120,16,69,52,211,174,244,36,243,45,36,104,239,+ 11,81,25,203,149,169,23,9,190,35,23,203,200,82,43,199,27,2,178,36,251,214,5,160,+ 64,180,159,165,180,134,128,29,194,29,19,0,0,255,3,12,12,21,17,21,18,25,30,27,+ 22,31,62,67,95,68,55,71,143,63,4,100,127,32,213,118,222,175,79,25,111,185,169,214,+ 10,186,81,25,226,107,223,12,157,96,99,149,204,67,104,150,246,236,172,25,107,252,138,141,+ 86,119,141,72,131,218,249,107,193,194,189,81,120,156,216,119,154,120,92,226,13,40,6,228,+ 212,238,255,157,215,3,24,123,193,19,237,24,245,119,100,190,169,126,112,187,114,112,226,175,+ 66,124,46,180,144,16,196,51,147,73,139,127,232,102,128,205,70,21,153,29,99,203,184,170,+ 78,23,161,235,36,46,26,247,52,106,98,14,44,124,23,46,20,0,1,0,3,12,19,27,+ 19,16,8,8,22,27,29,18,26,27,67,100,103,55,71,143,63,4,100,96,5,12,93,19,+ 71,93,226,66,81,178,215,217,107,17,55,0,23,218,118,56,215,125,151,210,96,104,70,188,+ 156,97,77,47,223,129,57,106,239,230,219,16,236,187,184,208,187,90,60,85,163,8,125,253,+ 129,245,209,163,103,51,245,58,118,199,44,148,57,30,71,148,98,31,90,140,156,248,1,197,+ 105,236,48,149,216,202,234,208,235,35,92,193,196,45,138,248,24,84,220,209,93,14,135,132,+ 91,220,16,68,66,21,196,165,128,21,0,0,255,3,12,23,27,23,40,39,36,8,8,6,+ 6,14,18,65,58,57,47,50,109,151,63,4,100,95,43,214,165,165,109,201,57,237,158,27,+ 164,193,107,162,158,185,235,157,38,253,40,125,223,157,119,77,119,244,208,33,236,110,101,242,+ 0,173,43,179,162,78,80,84,133,127,209,203,238,31,61,39,48,152,221,28,131,171,134,22,+ 249,251,11,213,250,75,99,47,27,2,57,176,57,210,101,72,129,249,18,20,242,95,194,53,+ 158,192,67,201,91,190,4,1,119,186,34,77,186,116,32,83,210,64,188,151,127,151,93,201,+ 220,135,150,73,45,197,226,250,96,1,151,204,153,74,21,0,0,255,3,12,24,27,18,39,+ 38,38,9,8,8,21,23,33,49,90,81,55,10,71,143,63,4,100,95,43,214,165,165,109,+ 202,135,117,163,106,167,77,17,150,83,104,222,77,195,152,136,228,175,3,207,15,248,197,236,+ 196,122,242,233,198,186,242,239,91,22,87,53,199,92,74,36,57,233,73,166,18,161,241,167,+ 0,41,42,252,207,45,70,34,233,38,118,81,220,17,140,166,238,64,177,211,122,115,142,56,+ 79,61,141,176,118,122,227,57,56,31,137,22,163,196,69,116,153,76,249,21,147,203,132,65,+ 8,169,55,237,80,149,47,133,5,82,159,161,152,15,230,51,187,67,123,19,0,0,255,3,+ 12,13,23,17,50,43,41,12,22,25,20,13,48,94,95,55,71,143,63,4,100,126,125,238,+ 118,222,173,199,235,185,30,253,3,104,174,217,170,205,67,79,140,34,226,189,142,63,179,53,+ 22,249,142,109,52,13,139,118,58,163,26,230,105,200,215,245,136,151,20,201,217,139,27,244,+ 215,107,66,252,220,155,20,70,74,157,29,149,54,41,65,126,23,52,183,106,251,121,57,109,+ 180,238,185,79,231,87,217,75,213,143,190,74,154,66,4,161,66,78,16,85,190,70,176,110,+ 76,82,227,71,81,185,210,20,32,138,242,192,79,239,254,122,124,24,195,28,133,69,182,228,+ 62,135,59,169,20,0,1,0,3,12,28,58,52,39,16,22,20,13,4,7,28,28,48,73,+ 80,55,71,143,63,4,100,63,161,103,178,167,8,107,99,103,177,176,176,219,179,249,132,239,+ 221,40,187,1,232,74,97,84,46,64,101,158,242,156,45,30,219,191,31,205,158,83,173,239,+ 62,249,2,37,57,213,29,64,119,128,162,91,67,28,166,98,189,155,114,28,232,209,227,48,+ 146,33,137,204,11,55,188,156,97,241,90,23,255,215,234,58,2,235,236,137,79,12,11,174,+ 225,52,44,143,144,208,29,246,110,65,47,81,212,202,211,192,65,40,196,24,73,187,57,73,+ 53,156,136,171,174,51,73,219,94,203,12,22,0,0,255,3,12,28,29,22,15,14,12,20,+ 23,30,26,27,46,38,48,37,62,55,39,71,143,63,4,100,64,124,163,176,202,47,79,25,+ 111,185,169,214,10,188,23,154,173,192,114,210,77,255,155,75,44,222,2,72,153,100,34,192,+ 36,13,42,60,28,56,127,34,201,0,142,4,107,72,55,95,95,228,236,50,118,237,193,186,+ 203,94,163,125,205,253,14,235,121,187,64,166,34,109,153,78,196,94,10,39,120,128,157,42,+ 99,122,97,175,213,45,29,21,254,181,189,117,75,70,148,8,147,171,253,209,14,23,227,70,+ 63,18,146,135,89,151,180,236,72,51,203,156,163,162,165,32,43,229,176,195,7,192,203,2,+ 51,21,0,0,255,3,11,11,24,18,24,38,41,36,12,14,13,25,53,58,88,53,55,9,+ 71,143,63,4,100,126,180,59,118,222,174,80,6,181,142,250,237,175,163,136,2,104,245,141,+ 74,255,211,138,154,130,85,47,197,251,27,95,54,10,60,184,75,202,183,176,153,21,37,73,+ 120,45,14,168,48,191,178,226,78,62,41,128,213,100,157,136,153,224,1,123,54,105,132,36,+ 139,213,36,227,20,113,196,47,178,203,60,127,88,121,2,177,144,31,125,213,82,65,230,65,+ 189,108,176,52,15,224,221,233,128,19,186,236,118,17,217,250,141,97,122,5,34,202,183,234,+ 137,122,34,49,81,28,175,120,66,68,162,238,183,78,148,245,254,245,20,0,1,0,3,12,+ 28,29,22,16,15,30,23,30,26,27,46,53,64,68,55,39,71,143,63,4,100,64,70,86,+ 176,202,46,198,252,5,82,76,199,128,139,54,61,17,169,55,186,179,140,168,155,144,63,151,+ 51,85,79,136,62,195,43,62,140,215,8,31,238,158,116,27,51,128,232,20,245,96,81,12,+ 200,108,86,72,223,167,194,33,215,193,6,110,210,135,79,186,70,188,31,212,144,162,41,86,+ 138,39,106,130,213,98,250,28,52,134,196,95,107,231,48,79,141,53,23,0,0,254,3,12,+ 28,39,50,35,27,14,25,22,19,27,27,23,6,11,25,37,62,55,39,71,143,63,4,100,+ 63,217,188,176,202,45,198,117,206,195,61,3,104,177,126,120,70,240,36,24,149,69,253,54,+ 165,206,200,133,225,143,47,218,192,18,225,31,231,120,160,140,125,151,227,120,75,198,63,112,+ 195,60,48,56,215,59,133,86,1,217,131,24,76,3,54,219,184,56,140,193,156,16,192,22,+ 50,162,161,206,70,183,207,147,24,93,197,177,195,121,239,134,95,118,12,28,36,122,89,178,+ 22,0,0,255,3,12,28,29,31,29,33,25,18,22,21,14,31,31,32,11,23,37,64,55,+ 102,149,63,4,100,64,16,9,176,202,46,78,184,114,192,68,245,39,189,142,72,197,156,184,+ 104,206,218,74,206,30,13,186,13,72,221,87,185,77,107,216,70,53,167,59,48,101,79,27,+ 30,176,216,239,254,1,228,5,199,228,55,100,137,2,78,239,95,224,138,19,86,201,103,115,+ 248,209,244,7,31,186,238,64,219,176,21,222,5,113,91,88,250,243,99,39,171,139,218,237,+ 151,67,61,23,97,140,145,20,0,1,0,3,12,28,62,56,44,11,8,17,17,17,5,20,+ 21,48,78,84,55,71,143,63,4,100,63,85,110,14,226,7,17,155,70,143,71,34,25,234,+ 112,86,149,169,28,53,159,132,132,47,195,39,116,89,233,156,223,186,197,26,87,173,187,189,+ 68,252,58,152,186,193,60,250,255,225,123,54,111,119,153,140,115,46,210,81,178,238,81,0,+ 93,13,192,30,171,166,230,46,247,90,219,126,42,153,103,211,237,244,250,63,199,36,19,58,+ 79,132,13,89,148,118,197,210,240,99,6,129,39,7,110,223,47,46,136,33,105,57,206,149,+ 22,0,0,255,3,12,28,61,52,39,11,12,18,14,13,4,7,27,27,23,27,73,80,55,+ 71,143,63,4,100,63,161,103,178,167,8,110,23,227,177,176,176,212,196,37,142,191,125,241,+ 106,8,154,11,157,31,6,243,79,6,155,253,223,13,226,76,172,236,138,127,101,40,173,99,+ 77,169,16,195,53,111,219,85,177,38,6,198,81,170,54,193,188,25,159,228,184,218,186,25,+ 105,69,72,120,10,56,76,201,155,38,202,154,143,83,252,53,75,129,155,159,231,19,147,8,+ 10,236,52,235,182,22,0,0,255,3,8,10,10,13,18,24,17,13,7,11,8,21,19,26,+ 30,75,114,104,55,71,143,63,4,100,158,111,118,184,241,70,182,253,19,177,98,216,145,160,+ 198,226,140,205,117,50,6,89,9,172,235,26,86,245,47,20,175,220,247,95,196,69,18,29,+ 167,41,150,9,32,59,43,141,245,204,203,228,39,50,98,123,70,84,202,61,162,5,20,69,+ 121,240,197,58,170,1,26,93,67,87,99,142,176,243,163,120,224,112,208,216,83,183,88,63,+ 214,87,124,47,1,160,2,172,236,101,100,139,187,195,232,119,74,214,34,154,23,167,205,67,+ 68,129,202,217,133,242,4,189,25,124,90,242,20,0,1,0,3,6,11,16,23,51,46,38,+ 5,11,9,26,34,45,49,83,77,55,69,143,63,4,100,126,180,59,118,222,174,81,84,73,+ 142,250,239,224,175,136,6,111,88,77,137,128,144,61,199,197,102,209,238,235,17,166,73,160,+ 145,152,171,134,36,128,104,138,176,58,110,192,196,43,11,82,129,168,225,21,217,145,237,30,+ 62,232,73,34,185,68,85,229,195,75,81,99,180,192,109,85,156,36,163,251,140,254,95,105,+ 111,239,197,205,115,97,93,251,83,62,82,196,94,111,185,20,115,2,163,179,246,76,26,161,+ 132,118,72,179,5,20,63,142,42,88,180,166,182,16,22,0,0,255,3,8,10,10,13,18,+ 24,21,14,13,8,21,19,26,20,26,67,106,104,55,71,143,63,4,100,158,62,220,166,54,+ 70,73,154,236,102,221,186,67,23,43,20,11,79,135,2,211,179,236,174,75,189,14,44,17,+ 218,238,25,239,41,216,38,238,149,10,68,12,105,246,64,90,189,216,224,143,3,66,29,86,+ 110,23,217,101,59,123,250,37,122,68,104,32,144,124,230,159,86,127,137,81,161,9,116,25,+ 113,109,131,140,175,136,72,197,195,121,39,84,205,228,167,0,59,217,124,62,254,236,233,174,+ 178,51,197,200,191,33,164,230,126,169,45,91,234,104,1,201,28,52,143,63,173,12,13,20,+ 0,1,2,9,20,19,24,13,15,7,7,7,9,13,11,8,67,67,69,8,42,137,126,85,+ 33,189,227,70,16,153,244,224,39,240,211,1,170,139,134,195,88,237,154,144,233,217,227,143,+ 253,85,7,178,99,184,103,174,186,108,33,194,89,148,196,77,26,191,167,89,69,70,37,228,+ 23,55,119,64,137,63,244,222,113,122,156,189,129,44,159,192,160,1,92,104,244,150,69,100,+ 129,217,245,23,105,250,238,57,44,125,231,142,140,3,164,143,164,180,217,188,32,11,83,24,+ 69,162,199,175,186,9,80,40,80,128,122,129,146,233,247,109,182,9,58,65,58,230,8,231,+ 210,134,47,201,120,74,48,223,57,157,1,9,56,6,146,4,68,164,105,239,163,161,27,59,+ 147,251,102,3,127,173,73,154,182,33,173,45,119,42,223,231,88,242,214,36,77,106,254,218,+ 30,89,255,85,143,35,134,121,185,248,251,57,255,255,255,222,24,225,33,134,235,88,206,190,+ 147,84,52,132,78,9,0,171,113,151,32,135,237,178,219,15,97,227,61,3,224,98,168,245,+ 44,105,247,116,138,67,241,188,182,87,90,178,234,12,31,155,84,31,109,128,115,147,235,246,+ 84,59,202,248,250,52,93,202,203,144,217,27,224,215,158,168,146,63,229,9,16,239,176,111,+ 147,221,175,15,241,177,91,156,96,189,208,40,236,202,168,223,100,144,31,34,3,248,186,91,+ 61,100,214,198,231,161,82,233,62,106,180,10,102,250,235,169,13,16,112,174,209,58,188,51,+ 195,154,119,74,29,0,136,42,210,151,122,124,13,116,147,131,6,20,187,143,97,63,94,62,+ 197,70,163,49,110,131,219,213,148,62,46,198,126,140,163,230,73,23,46,102,89,203,93,213,+ 175,232,192,236,132,206,175,86,5,145,88,153,100,156,217,135,32,96,194,145,99,170,147,85,+ 223,106,115,247,47,97,160,28,7,200,27,63,52,113,221,29,123,101,193,239,185,252,187,141,+ 227,57,115,233,175,226,5,12,33,64,113,156,201,13,159,229,122,174,58,13,196,189,124,144,+ 69,97,245,37,139,230,59,162,195,236,5,164,129,65,234,103,27,28,216,97,178,34,65,89,+ 194,180,244,20,97,113,15,134,103,163,151,64,156,37,34,69,180,224,10,62,154,46,216,140,+ 110,141,229,243,140,188,56,158,202,129,79,161,232,122,62,159,205,255,193,24,74,158,23,122,+ 206,205,64,126,253,234,50,53,92,34,83,110,250,97,29,17,142,54,162,178,195,72,18,32,+ 10,140,57,189,99,188,211,16,247,246,229,48,214,34,208,106,161,61,90,227,198,60,164,116,+ 34,115,27,176,83,94,4,70,41,116,35,123,152,112,199,95,226,254,171,17,206,244,136,224,+ 104,255,116,212,57,190,172,45,14,8,195,161,147,10,150,20,153,61,247,243,228,143,54,195,+ 4,23,52,55,140,66,35,240,76,60,144,141,11,33,163,215,139,233,216,99,243,174,233,117,+ 105,53,161,173,53,52,176,115,148,190,21,247,230,25,158,162,229,162,188,199,19,235,157,188,+ 28,237,106,72,127,207,94,218,255,55,222,211,138,184,237,215,201,252,114,61,34,62,105,229,+ 98,55,136,178,7,31,199,101,164,157,8,160,50,225,214,153,17,78,49,237,254,2,121,56,+ 63,90,12,2,145,98,11,108,222,50,70,253,21,212,134,208,21,184,107,187,5,47,254,21,+ 219,200,143,240,21,157,166,224,8,21,253,100,154,199,216,167,142,139,122,108,24,98,150,219,+ 224,40,42,226,89,23,148,171,42,32,93,30,82,145,113,112,235,216,95,153,54,133,205,233,+ 219,196,254,250,100,17,150,163,57,163,29,196,64,154,181,146,194,46,250,85,253,159,64,215,+ 150,233,245,175,192,88,83,26,246,200,17,210,241,171,94,84,40,38,142,181,55,195,18,237,+ 254,74,180,137,53,97,205,228,189,222,41,216,170,44,163,174,91,233,243,180,80,235,72,39,+ 83,181,38,44,172,64,163,119,241,182,249,253,34,155,215,231,233,39,131,163,170,46,31,90,+ 49,211,187,183,130,215,111,50,68,105,113,240,240,169,201,128,18,63,196,56,64,95,97,51,+ 140,171,72,131,18,67,225,171,134,186,250,101,52,33,147,124,3,65,135,229,195,103,179,81,+ 171,228,168,131,185,4,91,199,160,60,190,9,47,65,201,170,22,5,111,144,241,103,98,50,+ 250,84,118,7,27,176,214,172,101,201,222,89,21,107,24,132,79,84,7,255,255,255,255,255,+ 151,54,206,196,19,0,1,2,6,9,12,12,9,9,11,45,58,75,80,66,88,49,64,28,+ 28,48,199,108,239,65,29,122,130,84,198,127,133,77,29,77,218,114,34,39,218,121,73,82,+ 64,165,104,183,98,222,218,230,154,151,11,5,145,136,180,115,93,75,200,112,208,124,185,209,+ 95,78,229,160,113,64,138,39,219,72,190,35,79,203,12,241,176,79,247,255,185,166,94,14,+ 90,8,150,95,45,180,130,251,32,100,185,168,73,85,33,40,146,88,64,107,148,30,24,191,+ 60,132,65,250,37,76,61,118,16,0,5,5,10,12,13,19,47,52,46,12,13,29,68,62,+ 88,68,116,58,112,220,216,226,5,190,148,176,93,255,119,154,132,239,135,224,31,52,202,29,+ 185,149,136,185,245,109,241,178,116,228,240,231,204,159,212,70,157,94,213,116,199,32,128,117,+ 133,41,10,230,90,128,200,228,90,254,205,4,79,100,171,115,127,23,0,0,254,3,3,3,+ 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,242,233,228,255,255,232,+ 29,71,185,203,106,187,80,136,129,189,189,255,20,148,222,93,65,120,39,14,33,119,208,208,+ 234,40,244,215,64,125,155,90,93,32,57,244,205,101,19,216,136,234,74,197,155,62,181,103,+ 219,60,225,30,88,86,136,20,8,122,151,100,60,79,69,38,125,177,13,134,105,48,102,80,+ 84,8,170,159,248,191,13,209,11,52,112,58,114,138,107,165,109,76,204,138,65,58,225,220,+ 250,67,89,250,172,204,151,11,231,156,34,24,12,69,155,162,245,26,232,150,16,230,94,224,+ 196,237,101,30,124,38,201,2,62,53,137,44,192,156,114,120,104,122,179,206,177,94,232,174,+ 238,178,126,219,241,29,215,88,134,188,239,224,79,109,192,239,138,213,210,101,237,226,78,239,+ 44,205,5,22,87,241,82,3,103,83,35,217,190,27,52,31,150,10,209,178,224,169,117,89,+ 74,244,39,222,100,241,167,7,121,60,122,113,141,148,15,69,12,202,18,141,255,136,134,73,+ 87,42,211,215,68,37,209,127,75,76,145,69,143,198,33,22,129,210,229,247,117,85,162,229,+ 42,210,218,66,16,90,164,234,183,16,90,20,26,79,179,86,220,123,99,24,7,45,198,142,+ 252,177,217,3,253,49,167,43,134,59,162,95,213,4,118,48,17,52,86,206,113,246,219,57,+ 160,248,162,44,203,219,119,170,17,70,113,65,191,227,205,21,20,102,113,27,213,248,71,95,+ 138,8,124,64,130,101,184,184,192,117,58,134,233,87,196,180,131,32,61,167,242,184,22,220,+ 43,16,59,102,223,152,101,8,170,48,117,160,238,239,68,71,3,71,203,195,70,95,2,135,+ 250,229,211,171,121,154,92,191,21,79,9,72,47,113,215,138,100,217,150,62,11,12,93,244,+ 23,226,137,40,178,160,164,39,181,204,59,89,153,8,204,220,17,106,36,149,238,164,202,8,+ 191,233,120,76,30,63,163,61,20,136,54,132,80,207,192,212,223,181,6,38,152,115,114,22,+ 134,88,19,133,229,244,255,102,4,204,159,145,92,226,100,183,124,115,11,32,217,160,81,71,+ 226,216,39,193,78,75,217,111,195,50,152,129,5,199,133,15,100,224,85,253,119,14,123,118,+ 211,60,81,0,148,43,136,74,148,134,242,90,133,155,206,56,65,15,12,137,42,116,76,61,+ 253,113,194,62,28,62,90,5,197,12,141,48,37,246,249,251,126,160,199,4,53,85,165,136,+ 226,6,111,156,206,11,182,44,118,31,199,200,31,161,240,5,173,107,57,115,172,128,244,17,+ 103,131,83,209,25,143,99,245,98,64,34,50,136,91,234,191,180,142,18,189,149,206,98,102,+ 131,50,194,44,110,203,219,133,99,40,114,2,199,184,148,181,206,227,94,9,110,73,65,68,+ 94,209,114,171,8,69,218,112,140,0,245,32,209,178,252,179,3,211,13,113,220,200,171,145,+ 171,149,1,229,57,206,225,53,125,90,237,240,16,155,215,182,193,124,222,72,201,226,160,77,+ 166,140,163,39,209,105,188,132,80,192,222,37,137,100,145,50,251,254,58,4,50,176,227,164,+ 94,117,225,59,102,111,208,194,173,70,36,44,197,50,86,233,157,19,194,212,112,183,31,78,+ 193,51,26,231,217,46,168,41,75,69,234,225,152,95,54,42,204,73,198,82,68,33,87,77,+ 86,145,127,210,35,106,72,14,255,186,77,155,48,188,141,204,188,136,93,195,172,232,5,125,+ 224,13,83,114,156,4,190,143,51,172,48,245,88,84,3,133,150,231,100,160,178,220,138,35,+ 122,84,64,104,5,9,123,181,101,216,58,115,83,239,186,18,124,225,33,143,17,84,106,55,+ 203,89,221,217,199,218,157,103,171,74,157,103,0,105,197,64,161,52,127,165,71,21,27,125,+ 93,186,2,91,56,66,151,151,53,105,231,245,121,27,233,253,97,0,154,95,141,244,159,9,+ 94,38,104,237,122,48,80,35,237,146,45,52,89,147,35,243,42,30,56,58,135,143,231,200,+ 191,122,2,246,48,169,87,42,143,106,127,133,111,140,81,180,182,222,199,116,102,220,114,37,+ 210,44,222,61,140,75,15,36,42,7,84,105,241,11,145,83,86,21,167,177,169,158,200,1,+ 59,174,127,36,203,215,139,59,223,7,210,77,78,121,174,45,52,137,19,16,4,163,241,193,+ 199,71,211,227,160,142,72,11,247,211,29,26,17,134,163,219,168,252,172,216,165,43,160,188,+ 22,118,232,55,26,159,92,8,97,142,189,110,168,19,29,53,255,91,170,237,51,116,247,88,+ 60,242,231,50,50,189,158,105,174,51,65,197,27,8,209,41,211,218,16,244,64,78,17,102,+ 92,6,146,255,201,73,146,218,151,9,210,170,171,56,137,171,119,185,205,246,60,223,209,82,+ 245,222,118,64,220,177,86,235,88,121,16,174,6,219,251,138,220,74,119,246,175,166,162,247,+ 168,16,88,251,27,212,151,124,38,63,155,105,127,87,53,112,195,242,8,155,50,186,51,3,+ 20,243,111,33,218,1,158,151,119,204,92,101,91,6,254,241,175,95,106,78,154,16,130,229,+ 241,8,110,117,32,218,62,88,220,77,255,143,5,100,88,188,101,169,237,38,217,149,47,86,+ 202,43,134,181,202,96,149,142,125,224,118,156,177,184,167,210,99,186,172,3,15,33,204,226,+ 1,20,210,93,127,238,83,89,14,20,136,36,107,112,189,210,28,103,225,109,137,186,107,141,+ 214,182,138,20,23,53,103,135,201,188,219,209,106,227,234,103,33,154,175,105,26,218,181,251,+ 229,81,23,215,29,251,46,211,42,233,1,115,2,196,12,59,36,21,146,186,149,80,188,181,+ 4,101,48,132,51,77,227,161,24,115,251,114,206,221,193,31,227,120,27,49,106,19,39,164,+ 151,28,147,185,53,136,143,127,165,229,100,245,215,254,26,195,197,119,206,228,201,156,227,5,+ 84,49,138,19,245,138,140,167,219,188,132,42,91,28,88,185,44,253,136,174,208,231,133,59,+ 80,200,172,239,130,188,198,104,193,27,17,199,89,164,225,152,174,103,67,68,248,248,177,190,+ 77,17,110,222,3,19,182,26,109,62,26,219,236,63,123,199,176,210,165,143,161,202,30,121,+ 93,116,93,162,224,202,28,111,251,127,31,89,122,72,217,121,241,234,238,149,200,211,48,54,+ 40,171,225,19,174,10,20,76,198,135,79,20,106,69,230,131,248,76,75,170,93,191,82,47,+ 73,67,172,249,197,233,124,129,122,1,24,166,168,225,127,163,76,154,82,254,98,193,183,25,+ 119,23,225,177,255,33,179,80,162,103,135,203,103,109,72,182,118,81,83,18,113,173,78,252,+ 13,246,63,137,71,238,155,70,188,69,143,172,91,226,37,88,148,51,68,233,66,153,34,93,+ 41,66,24,37,5,198,46,4,34,2,117,126,219,239,29,206,92,198,39,175,207,21,245,40,+ 230,65,251,175,190,150,221,68,197,179,174,128,190,94,254,36,4,32,226,147,169,22,229,18,+ 192,10,149,28,170,82,156,21,112,93,232,228,131,153,37,89,216,146,252,161,166,83,234,5,+ 200,153,103,10,11,228,69,101,63,204,70,148,211,158,71,61,180,193,162,32,38,178,235,7,+ 85,220,35,250,153,136,208,235,62,105,33,247,189,236,187,64,27,43,238,178,220,25,60,237,+ 44,53,147,173,177,168,9,27,126,10,22,145,22,136,205,213,25,83,215,108,224,228,208,222,+ 78,71,2,143,71,7,93,158,246,213,17,109,163,19,90,221,95,16,9,58,156,177,65,113,+ 237,211,143,217,236,5,217,32,72,145,137,22,168,28,245,147,80,132,239,75,30,224,70,48,+ 114,140,186,111,174,73,128,110,90,188,84,111,166,55,147,64,14,167,88,173,14,40,163,19,+ 105,128,235,165,129,82,56,182,248,153,24,180,13,52,170,12,240,95,208,55,189,182,140,80,+ 68,52,26,240,71,182,100,155,155,13,39,65,186,151,171,247,7,33,126,134,209,154,113,97,+ 149,140,6,46,120,230,48,43,192,111,255,181,167,155,252,118,80,247,249,243,218,48,43,65,+ 179,64,97,149,169,163,24,173,178,189,69,19,137,224,236,35,52,189,67,106,144,148,64,78,+ 221,42,150,66,216,40,242,224,63,94,204,46,40,74,205,137,63,78,144,102,49,21,163,144,+ 49,76,237,113,226,95,197,61,38,251,98,82,173,168,20,221,214,165,32,145,48,156,139,78,+ 231,161,0,183,213,217,117,240,67,121,157,230,158,168,5,180,231,175,203,7,76,90,74,217,+ 254,74,17,115,227,51,117,203,61,227,142,162,133,170,39,226,18,235,154,21,53,150,60,90,+ 105,150,61,77,126,89,66,219,137,156,112,121,41,18,194,76,39,247,247,67,97,152,238,100,+ 142,81,225,6,66,14,233,231,203,89,12,243,51,224,206,45,224,121,26,98,75,29,36,237,+ 77,236,97,39,241,211,104,98,88,82,57,190,132,54,90,160,56,112,147,142,72,250,35,4,+ 5,219,222,86,44,195,72,58,130,183,125,229,253,177,92,176,185,114,86,182,150,83,39,115,+ 162,97,69,239,232,147,99,74,40,226,206,252,38,180,93,20,205,202,79,243,34,23,178,196,+ 113,122,107,151,86,224,57,40,36,34,226,140,93,146,227,86,31,186,177,77,63,105,57,34,+ 227,27,89,15,106,221,223,18,237,135,214,78,222,92,128,64,215,199,39,198,145,103,240,48,+ 80,190,28,19,11,63,40,49,122,195,87,39,136,209,91,38,198,84,147,224,89,102,69,163,+ 107,9,117,175,141,106,164,158,125,139,127,139,7,21,200,197,150,211,129,210,129,70,20,93,+ 107,146,144,21,163,18,207,216,197,34,37,105,120,57,79,138,73,26,84,7,41,54,122,156,+ 164,153,141,85,213,122,114,113,50,203,196,61,52,7,116,61,124,185,50,119,254,85,58,169,+ 57,229,144,145,134,181,168,133,185,216,77,108,158,20,252,42,48,213,224,236,224,116,113,50,+ 93,111,79,6,223,109,235,172,187,61,153,130,200,43,114,89,234,64,30,103,73,65,102,6,+ 10,37,192,1,18,200,22,176,147,132,145,24,200,214,196,171,30,239,113,69,177,101,104,246,+ 55,85,64,87,245,208,25,119,161,245,245,80,196,166,56,18,31,184,252,111,69,84,1,178,+ 243,250,87,97,61,201,47,92,84,98,177,190,8,23,217,15,116,74,174,1,38,35,7,107,+ 117,200,230,184,238,94,158,147,108,204,204,119,124,247,20,180,163,192,142,22,139,198,215,78,+ 2,53,133,120,110,28,241,23,27,40,52,138,89,49,52,62,57,105,157,114,93,97,249,213,+ 189,65,249,179,31,117,241,215,97,229,71,154,141,101,97,250,33,221,245,110,31,235,82,48,+ 200,209,40,28,90,14,199,20,44,14,253,87,44,245,236,79,165,190,80,234,43,25,217,58,+ 61,253,184,174,200,89,194,107,139,109,220,45,129,189,189,216,56,38,37,9,68,62,77,204,+ 163,149,22,247,108,166,157,151,228,178,31,106,80,148,157,176,152,231,214,93,193,242,186,166,+ 0,207,136,83,131,173,232,231,97,161,2,110,88,255,49,62,230,43,40,75,174,226,94,238,+ 51,126,117,212,86,96,28,99,145,154,36,197,176,117,4,115,177,149,198,45,230,157,238,193,+ 26,69,88,18,118,244,57,110,53,225,231,253,212,84,27,48,132,91,191,25,58,253,137,251,+ 13,95,141,12,163,103,178,68,212,73,227,122,70,252,187,223,220,68,180,84,133,74,20,93,+ 159,214,23,121,253,2,151,133,242,24,135,75,135,183,128,88,142,21,32,62,215,149,148,87,+ 2,12,248,32,212,170,100,234,1,229,121,55,214,172,245,81,140,9,222,142,156,88,19,196,+ 185,33,143,58,174,74,33,155,48,236,25,11,127,2,131,155,212,120,164,192,138,215,55,255,+ 162,148,96,58,129,15,136,101,135,166,188,240,28,152,220,98,6,234,160,159,254,193,12,118,+ 167,253,5,12,183,84,98,252,243,220,44,73,18,50,90,200,225,246,130,108,213,210,145,175,+ 122,158,201,120,169,213,253,164,0,67,226,241,233,146,132,175,23,8,58,228,9,157,109,209,+ 155,202,61,159,110,75,80,35,51,47,244,82,127,176,96,43,252,216,145,31,144,113,181,167,+ 178,57,254,35,108,117,101,147,138,57,158,117,200,175,176,8,185,192,162,136,187,5,168,118,+ 204,46,215,123,194,200,21,197,106,147,84,168,190,255,192,85,73,142,88,127,17,117,16,217,+ 244,165,67,30,131,6,12,209,226,147,120,137,87,226,4,132,225,54,130,54,94,129,235,86,+ 207,26,60,34,123,114,93,66,130,77,151,225,205,67,80,48,194,40,121,228,201,132,133,86,+ 73,144,134,120,4,246,176,72,37,179,91,147,173,229,33,182,7,148,48,190,155,99,236,27,+ 196,69,7,70,30,61,29,179,149,205,215,97,54,3,229,45,13,210,32,173,32,139,137,64,+ 81,87,176,255,41,236,69,249,185,58,216,177,172,163,133,159,20,45,70,247,27,73,161,180,+ 212,46,149,5,246,30,125,246,152,201,68,32,245,149,208,240,74,198,162,146,244,127,224,26,+ 144,187,16,35,147,174,25,0,132,25,69,180,76,50,178,222,185,143,139,44,69,158,34,77,+ 105,163,228,184,83,76,45,122,194,168,174,207,3,13,11,6,240,145,189,15,67,140,16,52,+ 131,235,30,54,32,1,147,187,216,78,229,192,86,39,141,236,161,49,74,64,233,17,189,254,+ 121,254,0,0,0,0,+};++const uint16_t art_pal[] = {+ 0x0000,0xFFFF,0xFFFD,0xFFFF,0xFFFF,0xFFFF,0xFFDC,0xFF39,0xFED7,0xFF22,0xFE6C,0xFFDF,0xFFDF,0xFFDE,0xF7BF,0xEFDF,0xF7BE,0xE7DF,0xEFBE,0xF79E,0xEF9E,0xEF7F,0xE77E,0xD77F,0xDF3E,0xFF9C,0xF79C,0xEF7D,0xE77E,0xE75D,0xDF5D,0xFF7A,0xF75A,0xEF3A,0xF795,0xEF75,0xFFAF,0xE734,0xF6FC,0xE6FE,0xDF1C,0xDF1C,0xDEFB,0xD6DB,0xD6FD,0xD6DB,0xD6DB,0xD6FD,0xDE9C,0xCE9B,0xF718,0xF6D7,0xE6F8,0xDED9,0xEE98,0xF658,0xDE98,0xF6D5,0xEED4,0xEE73,0xDE75,0xF6AD,0xDEF0,0xF64D,0xC73E,0xC71A,0xCEDD,0xC6BC,0xC6DD,0xCEBA,0xC69B,0xC65B,0xC659,0xCE76,0xCE3D,0xBE3A,0xBE3A,0xC639,0xB71A,0xBEDD,0xB6BE,0xB6B8,0xB67E,0xB65B,0xB67A,0xB677,0x9EBD,0x9E9E,0x9E5C,0x9E57,0x8E9B,0x963C,0x7EBD,0x7E5D,0xEE14,0xEDD6,0xDE12,0xDDD3,0xCE1B,0xC5F8,0xCE14,0xCDB3,0xF60E,0xFDEA,0xF5AD,0xF5AA,0xEDED,0xEDCD,0xE5CB,0xD5CD,0xB619,0xAE19,0xB5D9,0xADB7,0xAD96,0xA596,0xB5D5,0xB5D0,0xFD75,0xED55,0xF4F3,0xEC71,0xE4F3,0xBD56,0xB553,0xB4F7,0xB4F1,0xED4A,0xFD20,0xECCC,0xECC4,0xD54A,0xC52B,0xCCA8,0xB4AC,0x9E1B,0x9DD9,0x8E1C,0xA599,0x8D99,0x85F6,0x9DB6,0x9DB1,0xA575,0x8D73,0x9D38,0x9D35,0x8D36,0x94D6,0x84B6,0x9D30,0x850F,0x9CB0,0x84B1,0x6E1F,0x65DE,0x75D8,0x7579,0x7555,0x74F4,0x6CB6,0x5CD5,0x7CAE,0x7490,0x6CB2,0x4DB7,0x5512,0x4534,0x450F,0x2D3E,0x54B0,0x2CB9,0x04FF,0x04DE,0xFC2F,0xE433,0xF448,0xE446,0xEBD0,0xFB8C,0xE366,0xCC36,0xB42F,0xCC26,0xB448,0xBBB2,0xBBA6,0x8C73,0x7C51,0x7C51,0x7C53,0x8470,0x8432,0x8395,0x9C4D,0xA428,0x8C2C,0x9BCB,0x83CC,0x8B6A,0xFB0B,0xFAEA,0xE30B,0xB30C,0x8B12,0x9B0A,0xFAEA,0xFAAA,0xF2CA,0xEAA9,0xCACD,0xAAAC,0x82C9,0xF288,0xEA88,0xE9E7,0xD24B,0xB268,0xC1E7,0x6435,0x6C52,0x63F7,0x5BD2,0x6C4F,0x63F0,0x6B98,0x63B1,0x6390,0x5BAF,0x6B8D,0x542F,0x53F0,0x53D0,0x53CD,0x5391,0x538E,0x538D,0x3C73,0x4411,0x43B1,0x1458,0x1BD1,0x5B55,0x5B4D,0x534E,0x532E,0x4B4D,0x4B0D,0x4B0C,0x632B,0x4355,0x62EF,0x530D,0x42EF,0x5AAF,0x3A69,+ 0x0000,0xFFFF,0xFFFF,0xFFFF,0xFFDF,0xFFDE,0xFFDD,0xFF79,0xFF36,0xF7DF,0xDFBF,0xF79E,0xEF9F,0xEF9F,0xEF9F,0xEF9F,0xF77B,0xE77E,0xE77F,0xE75E,0xE75F,0xEF3C,0xDF3E,0xC77F,0xFEF6,0xF6D5,0xF6D4,0xF6D4,0xF6D4,0xF6F7,0xF6D4,0xE6FA,0xDED8,0xD6FC,0xC6FC,0xEE93,0xEE72,0xEE72,0xEE72,0xEE72,0xE695,0xEE73,0xEE51,0xDE53,0xE610,0xE610,0xDE11,0xE66E,0xE610,0xE610,0xE5D2,0xDDAE,0xDDAE,0xCE9C,0xBE5B,0xC65A,0xBE5B,0xBE5B,0xBE3A,0xBE3A,0xBE3B,0xBE3B,0xCE79,0xC65A,0xD677,0xDE32,0xD634,0xD634,0xD634,0xD614,0xCDF3,0xCDCE,0xB69A,0xB65B,0xA659,0xB65C,0xA65A,0xBE19,0xADF9,0xADD9,0x9E5A,0x8E3A,0x863A,0x8E19,0x7DD8,0xD5AF,0xD5AF,0xD5AF,0xD5B0,0xD58F,0xD58E,0xCD8E,0xC5AB,0xC5AA,0xC58A,0xC589,0xC589,0xCD6D,0xCD4D,0xCD6E,0xCD4D,0xC52E,0xC4EB,0xC4EB,0xAD98,0xB5B5,0xAD75,0xA596,0xA531,0xB54E,0xB54B,0xBD2D,0xBD0D,0xAD0C,0xAD0E,0xACEC,0xA598,0xA577,0x9576,0x9D58,0x9D56,0xA533,0x9D36,0x9D14,0x7D98,0x7DB8,0x7D97,0x7D97,0x7DB8,0x7597,0x957B,0x9559,0x9559,0x9534,0x8CF7,0x94F6,0x7D77,0x851A,0x7D35,0xD44C,0xBCEC,0xB4AB,0xB48A,0xA4ED,0xACEB,0xACAD,0xB48A,0xAC69,0xA4AE,0xA428,0xCBCB,0x9CCF,0x9CCF,0x9CCF,0xA4CD,0x9CCF,0x9CAD,0x9CAE,0x946D,0x9C4C,0x94F6,0x8CF7,0x8CF6,0x84D9,0x8CD6,0x84B7,0x7C96,0x7C96,0x7C76,0x7C76,0x7C76,0x94B0,0x84B3,0x7C76,0x8470,0x7C76,0x7C75,0x7472,0x8C6E,0x944D,0x8450,0x844F,0x7C54,0x7C50,0x842D,0x7C2F,0x7432,0x7C30,0x7433,0x7433,0x8C0C,0x840C,0x840C,0x8BCA,0x83CB,0x7412,0x73F0,0x7BCC,0x7BAB,0x73AB,0x7BAA,0x734B,0x5CD5,0x5CD5,0x5CD5,0x74DC,0x6CBD,0x647C,0x647B,0x6C9A,0x6493,0x6C72,0x647A,0x645B,0x6C55,0x6C37,0x643A,0x6419,0x5C17,0x5BF8,0x6C15,0x53F1,0x63D4,0x5BD6,0x63B3,0x63B3,0x5BB3,0x5B92,0x63B1,0x6392,0x636E,0x5BF7,0x5BD6,0x5BD7,0x5BB6,0x5BD4,0x5B95,0x5372,0x5B70,0x5B71,0x534E,0x5B4E,0x5B50,0x5B50,0x5331,0x532E,0x532D,0x532F,0x532F,0x532D,0x5310,0x530E,0x530D,0x52EF,0x4ACF,0x4AAF,+ 0x0000,0xFFFF,0xFFFF,0xFFFF,0xF7DF,0xF7DB,0xEFDF,0xEFDF,0xEF9F,0xF79B,0xE7BF,0xE77F,0xDFBE,0xDF9F,0xDF9F,0xDF7F,0xD77F,0xDF7F,0xDF7F,0xDF7F,0xDF7F,0xDF7F,0xCF7E,0xDF5E,0xDF5E,0xD77F,0xD75F,0xD75F,0xD75F,0xCF5E,0xE71D,0xDF1D,0xD73E,0xD71E,0xD6FC,0xCEFD,0xC6FD,0xCEDC,0xD69D,0xDEFB,0xD6DB,0xDE7B,0xC65A,0xEEF7,0xDE77,0xFE6D,0xE68F,0xE5D6,0xF5B3,0xDD97,0xCDF7,0xC594,0xED55,0xE553,0xCD3E,0xD535,0xF60F,0xDE32,0xDE10,0xF60A,0xF5C5,0xED6A,0xE52B,0xD5AF,0xD52C,0xBF3E,0xB6FD,0xAEBA,0xB69B,0xAE9B,0xC65B,0xC658,0xB67B,0xBE3A,0xBE3A,0xBE39,0xB639,0xB618,0xB5DB,0xADD5,0xBD9D,0xAD96,0xA597,0xA596,0xA597,0xBD79,0xAD39,0xAD77,0xA51B,0xAD95,0xB590,0xB532,0xBD0B,0x9F59,0x9EFB,0x969C,0x9E59,0x9658,0x961B,0x8E1C,0x9DF9,0x95F4,0xA5B7,0xA5B7,0x95B8,0x9557,0xA554,0x9537,0x9D10,0x865E,0x7E59,0x7E3D,0x75D8,0x7E4E,0x7558,0x6D9A,0x7518,0x7D71,0x7514,0x6637,0x65BA,0x5555,0x6536,0x3DBC,0x165F,0x3D5D,0x4535,0xE4D2,0xF4CB,0xD4F2,0xCCF4,0xD4D2,0xCCCA,0xB4BD,0xB49D,0xBC92,0xC4ED,0xBC8D,0xDC2F,0xCC51,0xBC56,0xBC2E,0xFBA8,0xDC29,0xB46A,0xB444,0xA4F7,0x9CBA,0x8CDA,0x8C78,0xA4D0,0x9492,0x9C70,0x84B3,0x8470,0xA414,0x9BD4,0xA42C,0xA40B,0x9BCA,0x8C32,0x83D4,0x940C,0x8BCB,0x74F7,0x6CB9,0x74B1,0x7C74,0x6C72,0x5CD6,0x5C77,0x5CD0,0x5C71,0x7C53,0x7452,0x6438,0x7BF4,0x63D5,0x7C50,0x6431,0x73CF,0x63F0,0x4CD7,0x3470,0x2CD3,0x2CCD,0x2490,0x2475,0x0C9C,0x04FF,0x04FF,0x4C13,0x4BB1,0x3432,0x33B1,0x0C5D,0x23D6,0x242B,0x1C0B,0x1BCA,0xF30A,0xD32B,0xF2EA,0xCAA5,0xAB3F,0xAB3A,0xBB6D,0xBB0B,0xF288,0xE247,0xE228,0xD288,0xD248,0xC28C,0xC247,0xA9E6,0xB9E6,0xA33B,0x8355,0x733D,0x7353,0xA32D,0x934B,0x9AEB,0x7B6B,0x7AEB,0xA2DD,0x925C,0x82B0,0x99C9,0xA185,0x6393,0x5B8F,0x634F,0x536E,0x532E,0x5310,0x4B0C,0x5B4B,0x4B51,0x436E,0x4B4D,0x3371,0x132F,0x5AD2,0x4AAF,0x4AF0,0x52CD,0x52EB,0x428B,0x5A79,0x4A16,0x5A4B,0x5A46,0x3A2B,0x3189,+ 0x0000,0xFFFF,0xFFFF,0xFFBD,0xFFBD,0xFFBD,0xFFBD,0xFFBC,0xFFBD,0xFFBC,0xFFBC,0xFF9C,0xFF9C,0xFF9C,0xFF9B,0xFF7B,0xFF3A,0xFF37,0xFF37,0xFF15,0xFEBA,0xFEF8,0xFEF5,0xFED4,0xFEB2,0xFE90,0xFE54,0xFDCF,0xFD75,0xEFFF,0xEFFF,0xEFFF,0xEFBF,0xEF9F,0xEF9E,0xFF7B,0xFF7B,0xE7DF,0xE7DF,0xE7DF,0xDFDF,0xEF7F,0xE77F,0xF77A,0xEF7D,0xEF7D,0xEF5D,0xF759,0xF739,0xE77F,0xE75E,0xE73E,0xE75F,0xE75E,0xE75E,0xDF3E,0xEF3C,0xE73C,0xEF1C,0xEF1A,0xF718,0xE73D,0xDF3E,0xDF1E,0xDF1E,0xEF17,0xEEF7,0xE6DA,0xDF1C,0xDF1E,0xDEFB,0xEE95,0xFE4E,0xE5B0,0xF588,0xD77F,0xD71E,0xD6FD,0xD6FC,0xDEDB,0xD6DB,0xD6BB,0xD6BA,0xD69A,0xD69A,0xCE9B,0xD67A,0xD56C,0xCE9B,0xCE7A,0xC65A,0xBE3A,0xC639,0xBE18,0xCD8F,0xBE37,0xBE19,0xB63A,0xB5F9,0xB5D8,0xB5D8,0xADB7,0xA596,0xA577,0xA577,0x967D,0xA597,0x9D75,0x9575,0x763F,0x4DBF,0x35BF,0x2D7F,0xDD4B,0xF4D3,0xD52A,0xFD23,0xED24,0xE4A2,0xD4E7,0xFD01,0xFD00,0xFCE0,0xFCA2,0xFC30,0xFC65,0xF405,0xDC49,0xDC87,0xD46A,0xCC43,0xAD31,0xA533,0xA557,0x9D16,0x9D36,0x9D14,0x9D16,0x9D16,0x9D16,0x9D16,0xB4B5,0x9515,0xB435,0x9C0F,0xCCC9,0xCCC9,0xCC86,0xCC62,0xCC82,0xCC63,0xC4A8,0x9C6C,0xB428,0xCC23,0xA44B,0x9C2D,0x9C2F,0xF3A9,0xF347,0xDBEB,0xABC4,0xA39A,0x9BAD,0x9B86,0x9BA4,0x9C0D,0x9B8F,0x9B8F,0xF32B,0xFAEA,0xFAEA,0xF28A,0xF1AC,0xE309,0xDAED,0xCAEA,0xC328,0xAB09,0xA30B,0x9AF3,0x92C8,0x9348,0xE289,0xCA09,0xC9C9,0xA2A8,0x9A8B,0xB1C9,0x928B,0x91EA,0x8533,0x94D5,0x8CD6,0x8CD6,0x8CB3,0x84B4,0x8494,0x7C53,0x946D,0x942F,0x93E5,0x6CD5,0x6C94,0x7C53,0x7C51,0x6450,0x63EF,0x5BD0,0x53CF,0x3BD1,0x1D5F,0x14FD,0x04DE,0x3436,0x3BD1,0x1459,0x73B1,0x6BB1,0x7B8E,0x7B2F,0x92EA,0x92EA,0x9348,0x7B26,0x6B87,0x8308,0x7B06,0x7AE7,0x7AE7,0x6AE7,0x63AE,0x6B8F,0x5BB0,0x5B68,0x3395,0x4373,0x532A,0x530D,0x6309,0x4B0C,0x3AF0,0x72CC,0x5ACA,0x5ACA,0x22CA,0x82B7,0x6A4C,0x6A8A,0x71EA,0x620A,0x3A0D,0x22CA,0x3229,0x3229,0x3A0C,+ 0x0000,0xFFFF,0xE79F,0xE77F,0xFFDE,0xF7BF,0xEFBF,0xEF9E,0xDF9E,0xFF9A,0xE79E,0xF7B7,0xF75B,0xEF7E,0xEF7E,0xE77E,0xE75F,0xE75D,0xE75D,0xDF5D,0xDF5E,0xFF37,0xFF35,0xFEF6,0xE73C,0xDF1D,0xDF3D,0xD71E,0xD73D,0xD71C,0xD71E,0xD71B,0xFED8,0xFED4,0xFEB2,0xEEBC,0xDEBD,0xEE94,0xFE90,0xF66E,0xFE4F,0xFE37,0xE63B,0xEE2E,0xF64A,0xFDB4,0xFD75,0xED96,0xEDCD,0xE58B,0xE56A,0xEE0A,0xEE07,0xEDA7,0xFD32,0xDD16,0xDD4A,0xD52A,0xE507,0xFD00,0xDD45,0xCF3D,0xD71D,0xC71D,0xCEDA,0xC6BC,0xC678,0xBE52,0xB67B,0xBE5B,0xBE59,0xBE39,0xC5FA,0xB65C,0xAE39,0xADF8,0xA5D8,0xA5D9,0xB599,0xAD5F,0xB557,0xACF6,0xBD94,0xAD12,0xA596,0xCD69,0xB4E9,0x8EBD,0x7635,0x95DB,0x75FA,0xA598,0xA591,0x8D95,0x6D94,0xA577,0x9D57,0x9556,0x9D55,0x8556,0x5530,0x9D36,0x951A,0x9CF9,0x9514,0xA514,0x9514,0x94EE,0x6D1A,0x7D17,0x5CD5,0x6D0F,0x55EF,0x5510,0x454D,0x54EF,0x44C9,0x3DBF,0x2D7F,0x2D1D,0x04FF,0xFCB0,0xE4D1,0xF450,0xEC8A,0xEC2E,0xEC0D,0xEC0A,0xEBE9,0xF34B,0xE345,0xC476,0x9C58,0xB416,0xAB91,0xAB75,0xD486,0xCC08,0xAC6B,0xB485,0xCB8A,0xBBC0,0xA3C6,0x7CBA,0x7C74,0x8CB0,0x8490,0x7490,0x845A,0x83D6,0x7410,0x73F1,0x6BF0,0x8B9C,0x83B2,0x83EE,0x8BCC,0x7BED,0x8BA9,0x8344,0xFAEA,0xDAE8,0xC30C,0xBAF2,0xBAC1,0xB2EA,0xD268,0xB2A6,0xBA49,0xA986,0xB165,0x932F,0x8AD4,0x92AE,0x7AF4,0x7B2A,0x6AC9,0xAA04,0x824F,0xA261,0x8A20,0x79C3,0x89A4,0x71E7,0x9124,0x8904,0x8124,0x5C99,0x5435,0x5491,0x641A,0x6BD1,0x640F,0x63B0,0x538C,0x638A,0x5B66,0x6B3E,0x5B54,0x5B2E,0x530E,0x5B4D,0x3C37,0x4C8E,0x3CAC,0x4B9C,0x43CE,0x0C37,0x3C49,0x33AD,0x23AE,0x4334,0x3331,0x530C,0x4B0C,0x2B48,0x2B26,0x52B8,0x62D3,0x62AC,0x4AEB,0x52AA,0x428A,0x6309,0x5ACA,0x5305,0x6267,0x42A4,0x3A89,0x4A69,0x3AB6,0x3AB5,0x3AB5,0x32CE,0x3252,0x2A4B,0x3A49,0x22A5,0x6A2F,0x69C8,0x620A,0x4A28,0x41C5,0x4207,0x31E3,0x2A10,0x29F0,0x29EF,0x618A,0x498B,0x5987,0x6180,0x5167,0x5922,0x4105,0x60C3,+ 0x0000,0x31C7,0x3478,0x426A,0x4ACB,0x4B0C,0x4B0C,0x4B0D,0x4B2D,0x532D,0x5BAF,0x7C51,0x7B2D,0x8DDB,0x8CD3,0xADF9,0xB4F4,0xD5D5,0xE6FB,0xFFBE,0xFFBE,0xFFDF,0xFFFF,0xFFFF,+};+const uint16_t art_pal_off[ART_NGROUPS] = {0,256,512,768,1024,1280};+const int16_t art_tmpl_of_group[ART_NGROUPS] = {0,157,211,-1,-1,-1};+const glyph_t font_small[99] = {{0,0,3},{0,1,2},{9,3,4},{36,5,6},{81,3,4},{108,3,4},{135,4,5},{171,1,2},{180,2,3},{198,2,3},{216,3,4},{243,3,4},{270,2,3},{288,3,4},{315,1,2},{324,3,4},{351,3,4},{378,3,4},{405,3,4},{432,3,4},{459,3,4},{486,3,4},{513,3,4},{540,3,4},{567,3,4},{594,3,4},{621,1,2},{630,2,3},{648,3,4},{675,3,4},{702,3,4},{729,3,4},{756,5,6},{801,3,4},{828,3,4},{855,3,4},{882,3,4},{909,3,4},{936,3,4},{963,3,4},{990,3,4},{1017,3,4},{1044,3,4},{1071,3,4},{1098,3,4},{1125,5,6},{1170,3,4},{1197,3,4},{1224,3,4},{1251,3,4},{1278,3,4},{1305,3,4},{1332,3,4},{1359,3,4},{1386,3,4},{1413,5,6},{1458,3,4},{1485,3,4},{1512,3,4},{1539,2,3},{1557,3,4},{1584,2,3},{1602,3,4},{1629,3,4},{1656,2,3},{1674,3,4},{1701,3,4},{1728,3,4},{1755,3,4},{1782,3,4},{1809,3,4},{1836,3,4},{1863,3,4},{1890,1,2},{1899,2,3},{1917,3,4},{1944,1,2},{1953,5,6},{1998,3,4},{2025,3,4},{2052,3,4},{2079,3,4},{2106,3,4},{2133,3,4},{2160,2,3},{2178,3,4},{2205,3,4},{2232,5,6},{2277,3,4},{2304,3,4},{2331,3,4},{2358,2,3},{2376,1,2},{2385,2,3},{2403,4,5},{2439,7,8},{2502,7,8},{2565,7,8},{2628,7,8}};+const uint8_t font_small_bits[337] = {+ 95,6,0,24,64,193,7,5,31,20,92,172,209,17,7,193,17,27,73,108,64,25,224,35,+ 72,16,31,42,56,168,64,192,1,1,32,32,8,16,32,0,2,134,195,128,63,65,254,8,+ 249,3,36,79,146,39,65,146,252,121,128,224,207,147,36,121,254,36,201,19,32,206,3,27,+ 73,108,60,73,242,135,8,32,34,8,40,136,160,64,129,130,8,10,8,2,100,121,224,35,+ 72,151,42,30,252,36,240,243,39,137,13,31,65,130,252,9,226,227,79,146,32,127,18,4,+ 240,17,36,207,31,4,127,130,252,9,18,34,200,143,63,20,198,252,1,2,228,79,128,15,+ 1,252,252,9,224,199,71,16,31,127,18,24,240,17,198,203,159,4,118,140,36,137,17,224,+ 79,128,63,64,254,60,128,243,224,7,16,30,64,126,220,65,112,231,0,158,3,113,146,28,+ 249,19,100,0,7,48,65,254,8,8,32,0,16,32,64,1,4,144,160,130,231,15,17,28,+ 56,136,16,193,65,228,15,14,42,88,8,252,41,128,147,40,191,63,4,240,244,1,216,239,+ 15,4,54,127,248,16,224,67,0,15,31,2,120,112,16,193,193,159,8,14,28,68,248,243,+ 65,64,0,9,21,18,63,136,240,0,194,135,3,24,14,60,128,224,0,194,131,13,4,54,+ 60,129,242,35,67,133,137,143,36,127,146,248,128,128,0,2,2,4,28,188,188,241,194,1,+ 129,129,7,31,124,124,120,96,128,3,135,37,127,150,112,224,128,128,131,143,63,62,56,32,+ 0,+};++const glyph_t font_med[95] = {{0,0,4},{0,2,3},{24,5,6},{84,7,8},{168,5,6},{228,5,6},{288,9,10},{396,2,3},{420,4,5},{468,4,5},{516,5,6},{576,5,6},{636,2,3},{660,5,6},{720,2,3},{744,5,6},{804,5,6},{864,5,6},{924,5,6},{984,5,6},{1044,5,6},{1104,5,6},{1164,5,6},{1224,5,6},{1284,5,6},{1344,5,6},{1404,2,3},{1428,2,3},{1452,5,6},{1512,5,6},{1572,5,6},{1632,5,6},{1692,9,10},{1800,5,6},{1860,5,6},{1920,5,6},{1980,5,6},{2040,5,6},{2100,5,6},{2160,5,6},{2220,5,6},{2280,5,6},{2340,5,6},{2400,5,6},{2460,5,6},{2520,8,9},{2616,5,6},{2676,5,6},{2736,5,6},{2796,7,8},{2880,5,6},{2940,5,6},{3000,5,6},{3060,5,6},{3120,5,6},{3180,8,9},{3276,6,7},{3348,5,6},{3408,5,6},{3468,4,5},{3516,5,6},{3576,4,5},{3624,5,6},{3684,5,6},{3744,0,1},{3744,5,6},{3804,5,6},{3864,5,6},{3924,5,6},{3984,5,6},{4044,5,6},{4104,5,6},{4164,5,6},{4224,2,3},{4248,4,5},{4296,5,6},{4356,2,3},{4380,8,9},{4476,5,6},{4536,5,6},{4596,5,6},{4656,5,6},{4716,5,6},{4776,5,6},{4836,5,6},{4896,5,6},{4956,5,6},{5016,8,9},{5112,6,7},{5184,5,6},{5244,5,6},{5304,5,6},{5364,2,3},{5388,5,6},{5448,5,6}};+const uint8_t font_med_bits[689] = {+ 191,241,27,1,48,0,0,16,0,3,192,3,255,241,31,60,240,31,255,193,3,204,224,13,+ 215,99,15,118,96,6,118,0,3,204,192,12,240,224,31,143,145,25,249,241,15,254,1,27,+ 144,17,0,3,224,63,255,23,96,1,22,96,1,246,127,254,211,0,15,96,0,15,208,0,+ 16,0,1,124,192,7,16,0,24,128,3,1,16,0,1,16,0,1,128,1,24,192,1,31,+ 120,240,0,3,224,15,255,17,24,255,225,15,130,33,24,255,241,31,128,33,28,227,17,31,+ 159,225,24,194,48,28,137,241,31,246,240,0,31,0,1,255,241,31,143,241,24,137,145,31,+ 241,224,15,255,145,24,251,33,15,1,16,31,249,241,1,15,96,15,255,145,24,255,97,15,+ 206,240,29,145,241,31,254,192,24,140,193,24,140,3,3,112,128,15,204,193,24,108,192,6,+ 108,192,6,108,192,24,204,129,15,112,0,3,2,48,0,177,241,0,14,224,7,254,48,28,+ 153,209,27,189,241,27,190,225,25,254,241,31,17,240,31,254,241,31,255,145,24,255,225,15,+ 254,240,31,129,17,24,129,241,31,255,17,24,255,225,15,254,240,31,137,145,24,129,225,31,+ 255,145,0,9,16,0,254,240,31,129,145,31,249,240,31,255,129,0,255,241,31,129,17,24,+ 255,241,31,129,17,12,193,17,24,255,241,15,255,241,31,24,240,31,231,241,15,255,1,24,+ 128,1,24,255,241,31,1,240,7,127,16,0,255,225,31,255,241,31,1,240,31,254,225,15,+ 255,17,24,255,225,15,255,241,31,17,240,1,14,224,15,255,17,24,193,241,15,254,1,24,+ 255,241,31,9,240,31,254,225,24,143,145,24,249,17,15,1,16,0,255,241,31,1,240,15,+ 255,1,24,255,241,15,127,240,15,192,241,15,127,240,15,255,1,24,248,129,31,128,241,31,+ 255,112,30,255,193,3,60,240,31,231,241,0,15,128,31,15,240,0,193,17,31,249,241,24,+ 131,241,127,255,23,96,1,54,0,15,224,1,240,1,28,1,22,96,255,247,127,6,96,0,+ 3,96,0,6,0,24,128,1,24,128,1,24,236,192,31,188,193,31,248,241,31,255,193,24,+ 252,129,15,248,192,31,140,193,24,140,129,15,252,193,24,255,241,31,248,192,31,188,193,27,+ 184,193,0,254,241,31,13,16,0,248,204,223,140,205,255,248,247,31,255,193,0,252,129,31,+ 253,209,31,0,12,192,253,223,127,255,241,31,60,192,31,216,241,31,255,193,31,252,193,0,+ 252,193,31,12,192,31,248,193,31,252,193,0,252,129,31,248,192,31,140,193,31,248,128,255,+ 252,207,24,252,129,15,248,192,31,140,193,255,248,207,31,252,129,0,12,192,0,152,193,27,+ 188,193,31,236,192,0,255,240,31,140,193,24,252,192,31,128,193,31,252,192,7,252,0,28,+ 252,192,7,252,192,31,128,129,31,248,1,24,252,193,15,140,193,28,248,128,15,204,193,24,+ 252,204,223,128,205,255,252,199,28,236,193,31,156,193,24,16,224,63,239,23,96,1,246,127,+ 255,23,96,1,246,126,254,3,1,16,128,0,24,0,3,16,0,+};++const glyph_t font_large[95] = {{0,0,4},{0,2,3},{28,5,6},{98,7,8},{196,6,7},{280,6,7},{364,9,10},{490,2,3},{518,4,5},{574,4,5},{630,5,6},{700,6,7},{784,2,3},{812,6,7},{896,2,3},{924,6,7},{1008,6,7},{1092,6,7},{1176,6,7},{1260,6,7},{1344,6,7},{1428,6,7},{1512,6,7},{1596,6,7},{1680,6,7},{1764,6,7},{1848,2,3},{1876,2,3},{1904,5,6},{1974,6,7},{2058,5,6},{2128,6,7},{2212,9,10},{2338,6,7},{2422,6,7},{2506,6,7},{2590,6,7},{2674,6,7},{2758,6,7},{2842,6,7},{2926,6,7},{3010,6,7},{3094,6,7},{3178,6,7},{3262,6,7},{3346,8,9},{3458,6,7},{3542,6,7},{3626,6,7},{3710,7,8},{3808,6,7},{3892,6,7},{3976,6,7},{4060,6,7},{4144,6,7},{4228,8,9},{4340,7,8},{4438,6,7},{4522,6,7},{4606,4,5},{4662,6,7},{4746,4,5},{4802,6,7},{4886,6,7},{4970,0,1},{4970,6,7},{5054,6,7},{5138,6,7},{5222,6,7},{5306,6,7},{5390,6,7},{5474,6,7},{5558,6,7},{5642,2,3},{5670,4,5},{5726,6,7},{5810,2,3},{5838,8,9},{5950,6,7},{6034,6,7},{6118,6,7},{6202,6,7},{6286,6,7},{6370,6,7},{6454,6,7},{6538,6,7},{6622,6,7},{6706,8,9},{6818,7,8},{6916,6,7},{7000,6,7},{7084,5,6},{7154,2,3},{7182,5,6},{7252,6,7}};+const uint8_t font_large_bits[917] = {+ 255,198,191,49,0,28,0,0,192,0,112,0,96,3,255,199,255,129,13,252,31,255,7,54,+ 128,51,240,13,111,207,219,195,62,48,7,140,1,115,0,14,192,1,56,3,198,0,62,248,+ 31,63,198,156,49,127,252,15,222,7,184,1,102,12,0,7,128,255,243,255,13,96,3,216,+ 0,54,128,253,127,254,207,6,240,1,56,0,31,192,6,0,6,128,1,248,1,126,0,6,+ 128,1,0,6,128,3,6,128,1,96,0,24,0,6,128,1,0,6,128,1,112,0,31,240,+ 1,31,240,1,28,0,254,195,255,49,96,12,24,255,135,255,96,96,24,24,255,199,255,1,+ 96,0,24,6,199,225,49,124,140,27,127,134,143,97,48,28,28,51,198,140,241,127,184,15,+ 63,192,31,0,6,128,1,255,199,255,241,99,252,24,51,198,140,49,127,140,15,254,195,255,+ 49,99,204,24,247,135,249,48,0,12,0,195,199,252,241,7,124,0,238,195,255,49,99,204,+ 24,255,135,251,224,51,252,29,99,198,152,241,127,248,15,24,6,134,129,97,96,56,192,0,+ 120,0,63,224,28,24,6,102,128,25,96,6,152,1,102,128,25,96,24,56,7,252,0,30,+ 0,3,6,192,1,48,110,204,27,63,128,7,192,31,248,15,7,199,156,177,111,108,27,255,+ 134,191,193,103,248,31,255,199,24,48,6,252,31,254,199,255,241,127,204,24,51,198,255,225,+ 61,248,15,255,199,128,49,96,12,24,3,198,255,241,127,12,24,3,198,255,225,63,248,15,+ 255,199,140,49,99,204,24,3,134,255,241,127,204,0,51,192,12,48,0,248,15,255,199,128,+ 49,99,204,31,243,195,255,241,127,192,0,48,192,255,241,127,12,24,3,198,255,241,127,12,+ 24,3,198,192,48,112,12,24,3,198,255,241,63,252,31,255,7,28,128,15,124,31,143,199,+ 255,240,127,0,24,0,6,128,1,96,252,31,255,199,0,240,31,252,7,3,192,255,225,127,+ 252,31,255,199,0,48,0,252,31,254,135,255,240,127,12,24,3,198,255,225,63,252,31,255,+ 199,24,48,6,252,1,62,128,255,240,127,12,24,3,199,255,224,127,0,24,255,199,255,49,+ 3,204,1,255,135,247,225,97,252,24,51,198,140,49,127,140,15,3,192,0,240,127,252,31,+ 3,192,0,240,63,252,31,0,6,128,241,127,252,15,255,193,255,0,112,0,28,255,195,127,+ 240,63,252,31,0,6,252,1,127,0,24,255,199,255,240,120,124,31,248,0,28,128,15,124,+ 31,143,199,7,240,3,192,31,240,199,15,240,1,12,28,195,199,252,241,103,124,24,7,198,+ 255,247,255,13,96,3,216,1,240,1,240,1,240,1,240,1,112,12,96,3,216,255,247,255,+ 49,0,14,192,1,112,0,56,0,12,0,128,1,96,0,24,0,6,128,1,96,96,14,216,+ 7,182,129,109,224,31,240,199,255,241,127,96,24,24,6,254,1,63,192,15,248,7,134,129,+ 97,96,24,24,6,252,128,127,96,24,24,198,255,241,127,192,15,248,7,182,129,109,224,27,+ 240,6,6,224,127,252,31,27,192,6,48,0,192,207,248,55,134,141,97,227,255,240,223,255,+ 241,127,96,0,24,0,254,1,127,236,31,251,7,0,12,0,239,255,251,223,255,241,127,96,+ 3,216,1,254,1,119,252,31,255,7,254,129,127,96,0,248,7,254,129,1,224,31,240,7,+ 254,129,127,96,0,24,0,254,1,127,192,15,248,7,134,129,97,224,31,240,3,252,143,255,+ 99,24,24,6,254,1,63,192,15,248,7,134,129,97,224,255,240,63,254,129,127,192,0,24,+ 0,6,128,1,192,25,248,6,182,129,109,96,31,152,3,6,240,63,252,31,24,6,134,129,+ 97,224,15,248,7,128,1,96,224,31,248,3,126,128,63,0,28,0,7,254,128,31,224,15,+ 248,7,128,1,127,192,31,0,6,254,129,63,96,24,56,7,252,0,30,192,15,56,7,134,+ 129,63,227,223,0,54,128,141,255,227,127,24,7,230,129,125,224,27,120,6,142,1,6,248,+ 63,191,223,0,54,128,253,127,255,223,0,54,128,253,126,254,15,24,0,6,192,0,112,0,+ 56,0,12,128,1,+};++const glyph_t font_large_digits[10] = {{0,5,6},{70,5,6},{140,5,6},{210,5,6},{280,5,6},{350,5,6},{420,5,6},{490,5,6},{560,5,6},{630,5,6}};+const uint8_t font_large_digits_bits[88] = {+ 254,195,255,49,96,252,31,254,131,129,97,96,252,31,255,7,128,97,112,28,30,195,199,159,+ 225,99,24,12,7,199,140,241,127,184,15,63,192,31,0,6,252,31,255,199,143,241,99,204,+ 24,243,199,248,224,63,252,31,51,198,253,97,62,12,0,195,199,252,241,7,124,0,238,195,+ 255,49,99,252,31,238,131,207,240,119,140,25,255,135,255,0,+};+diff --git a/games/balatro/src/assets.h b/games/balatro/src/assets.hnew file mode 100644index 00000000..0f15b40d--- /dev/null+++ b/games/balatro/src/assets.h@@ -0,0 +1,50 @@+/* Generated by tools/mkassets.py: do not edit. */+#ifndef ASSETS_H+#define ASSETS_H+#include <stdint.h>++#define ART_CW 35+#define ART_CH 47+#define ART_NSPRITES 385+#define ART_NGROUPS 6+#define ART_TMPL_JOKER 0+#define ART_TMPL_CONS 157+#define ART_TMPL_VOUCH 211+#define ART_G_JOKER 0+#define ART_G_CONS 1+#define ART_G_VOUCH 2+#define ART_G_DECK 3+#define ART_G_MISC 4+#define ART_G_LOGO 5+#define SPR_TMPL_JOKER 0+#define SPR_J 1+#define SPR_JSOUL 151+#define SPR_TMPL_CONS 157+#define SPR_C 158+#define SPR_SOULGEM 210+#define SPR_TMPL_VOUCH 211+#define SPR_V 212+#define SPR_P 244+#define SPR_E 259+#define SPR_SEAL 269+#define SPR_DEBUFF 273+#define SPR_F 274+#define SPR_B 326+#define SPR_T 357+#define SPR_SHOP 381+#define SPR_STAKE 382+#define SPR_CHIP 383+#define SPR_LOGO 384+typedef struct { uint32_t off : 24, group : 8; uint8_t w, h; } art_sprite_t;+extern const art_sprite_t art_sprites[ART_NSPRITES];+extern const uint8_t art_blob[];+extern const uint16_t art_pal[]; /* the groups' palettes, one after the other */+extern const uint16_t art_pal_off[ART_NGROUPS];+extern const int16_t art_tmpl_of_group[ART_NGROUPS];+typedef struct { uint16_t off; uint8_t w, adv; } glyph_t;+#define FONT_SMALL_H 9+#define FONT_MED_H 12+#define FONT_LARGE_H 14+extern const glyph_t font_small[99], font_med[95], font_large[95], font_large_digits[10];+extern const uint8_t font_small_bits[], font_med_bits[], font_large_bits[], font_large_digits_bits[];+#endifdiff --git a/games/balatro/src/bg.c b/games/balatro/src/bg.cnew file mode 100644index 00000000..e695d573--- /dev/null+++ b/games/balatro/src/bg.c@@ -0,0 +1,294 @@+/* Balatro's animated paint background: its two shaders ('background' in a+ * run, 'splash' on the title screen) evaluated on a coarse grid, then+ * interpolated per pixel and turned into colours through a table. The paint+ * value is smooth, so interpolating it before the colour mapping keeps the+ * sharp colour bands of the original. */+#ifndef PROF_NOINLINE+#define PROF_NOINLINE+#endif+#include "bg.h"+extern uint32_t g_bg_version;+#include <string.h>++#define GW (320 / BG_CELL + 1)+#define GH (240 / BG_CELL + 1)++/* One grid of paint values, refreshed a few rows per frame. Each pass+ * samples the shader a pixel off in a different direction and blends into+ * the grid: over a few passes this averages the paint over each cell, which+ * is what a smaller picture of the original looks like (no aliasing). */+/* In a run the paint value is smooth, so the grid keeps values and colours+ * them per pixel (sharp bands). The title's swirl is much finer: there the+ * grid keeps colours, averaged over each cell, so it stays smooth. */+static union {+ uint8_t v[GH][GW]; /* run: paint value, 0..255 */+ C c[GH][GW]; /* title: colour */+} G_;+#define grid G_.v+#define cgrid G_.c+static int next_row, pass;+static uint8_t drow[2][GW];+static int drow_y = -1;+static float t_real, t_spin;+static C lut[256];+static float colours[3][3], contrast = 1, spin = 0, spin_target = 0;+static int mode; /* 0 run, 1 title */+static int lut_dirty = 1;+static float target[3][3], contrast_target = 1;++/* ------------------------------------------------------------ fast maths */+#define PI 3.14159265f+static float fsin(float x) {+ /* reduce to [-pi, pi] */+ float k = x * (1.0f / (2 * PI));+ k = (float)(int)(k + (k >= 0 ? 0.5f : -0.5f));+ x -= k * 2 * PI;+ /* parabola approximation with a correction (max error ~0.001) */+ float y = 1.27323954f * x - 0.405284735f * x * (x < 0 ? -x : x);+ return 0.225f * (y * (y < 0 ? -y : y) - y) + y;+}+static float fcos(float x) { return fsin(x + PI / 2); }+static float fatan2(float y, float x) {+ float ax = x < 0 ? -x : x, ay = y < 0 ? -y : y;+ float mx = ax > ay ? ax : ay, mn = ax > ay ? ay : ax;+ if (mx == 0) return 0;+ float a = mn / mx, s = a * a;+ float r = ((-0.0464964749f * s + 0.15931422f) * s - 0.327622764f) * s * a + a;+ if (ay > ax) r = PI / 2 - r;+ if (x < 0) r = PI - r;+ return y < 0 ? -r : r;+}+static float fsqrt(float x) { return __builtin_sqrtf(x); }+static float fabsf_(float x) { return x < 0 ? -x : x; }+static float fmaxf_(float a, float b) { return a > b ? a : b; }+static float fminf_(float a, float b) { return a < b ? a : b; }++/* the paint value at a screen point, 0..255 */+static int paint(float sx, float sy) {+ const float diag = 400.f;+ float ux = (sx - 160.f) / diag, uy = (sy - 120.f) / diag;+ float vx, vy, speed;+ if (mode == 0) ux -= 0.12f;+ float len = fsqrt(ux * ux + uy * uy);+ if (mode == 0) {+ float sp = t_spin * 0.5f * 0.2f + 302.2f;+ float ang = fatan2(uy, ux) + sp - 0.5f * 20.f * (spin * len + (1.f - spin));+ vx = len * fcos(ang) * 30.f;+ vy = len * fsin(ang) * 30.f;+ speed = t_real * 2.f;+ } else {+ float s = t_real * 0.4f, ms = fminf_(6.f, s);+ float ang = fatan2(uy, ux) + (2.2f + 0.4f * ms) * len - 1.f - s * 0.05f - ms * s * 0.02f;+ vx = len * fcos(ang) * 30.f;+ vy = len * fsin(ang) * 30.f;+ speed = t_real * 6.f * 0.4f + 1033.f;+ }+ float u2x = vx + vy, u2y = vx + vy;+ for (int i = 0; i < 5; i++) {+ float m = fsin(fmaxf_(vx, vy));+ u2x += m + vx;+ u2y += m + vy;+ vx += 0.5f * fcos(5.1123314f + 0.353f * u2y + speed * 0.131121f);+ vy += 0.5f * fsin(u2x - 0.113f * speed);+ float d = fcos(vx + vy) - fsin(vx * 0.711f - vy);+ vx -= d;+ vy -= d;+ }+ float l = fsqrt(vx * vx + vy * vy), r;+ if (mode == 0) {+ float cm = 0.25f * contrast + 0.5f * spin + 1.2f;+ r = fminf_(2.f, fmaxf_(0.f, l * 0.035f * cm)); /* 0..2 */+ } else {+ r = fminf_(2.f, fmaxf_(-2.f, 1.5f + l * 0.12f - 0.17f * 10.f));+ if (r < 0.2f) r = (r - 0.2f) * 0.6f + 0.2f;+ r = (r + 2.f) * 0.5f; /* -2..2 -> 0..2 */+ }+ int v = (int)(r * 127.5f + 0.5f);+ return v < 0 ? 0 : v > 255 ? 255 : v;+}++static void make_lut(void) {+ for (int i = 0; i < 256; i++) {+ float r = i / 127.5f, out[3];+ if (mode == 0) {+ float cm = 0.25f * contrast + 0.5f * spin + 1.2f;+ float c1p = fmaxf_(0.f, 1.f - cm * fabsf_(1.f - r));+ float c2p = fmaxf_(0.f, 1.f - cm * fabsf_(r));+ float c3p = 1.f - fminf_(1.f, c1p + c2p);+ float k = 0.3f / contrast;+ for (int j = 0; j < 3; j++)+ out[j] = k * colours[0][j] + (1 - k) * (colours[0][j] * c1p + colours[1][j] * c2p + colours[2][j] * c3p);+ } else {+ float s = r * 2.f - 2.f; /* back to -2..2 */+ float c1p = fmaxf_(0.f, 1.f - 2.f * fabsf_(1.f - s));+ float c2p = fmaxf_(0.f, 1.f - 2.f * s);+ float cb = 1.f - fminf_(1.f, c1p + c2p);+ static const float red[3] = {0xFE / 255.f, 0x5F / 255.f, 0x55 / 255.f};+ static const float blue[3] = {0x00, 0x9D / 255.f, 1.f};+ static const float black[3] = {0.6f * 79 / 255.f, 0.6f * 99 / 255.f, 0.6f * 103 / 255.f};+ float fl = fmaxf_(c1p, c2p) * 5.f - 4.4f;+ if (fl < 0) fl = 0;+ for (int j = 0; j < 3; j++) {+ float v = red[j] * c1p + blue[j] * c2p + black[j] * cb;+ out[j] = v * (1 - fl) + fl;+ }+ }+ int R = (int)(fminf_(1.f, fmaxf_(0.f, out[0])) * 255.f + .5f);+ int G = (int)(fminf_(1.f, fmaxf_(0.f, out[1])) * 255.f + .5f);+ int B = (int)(fminf_(1.f, fmaxf_(0.f, out[2])) * 255.f + .5f);+ lut[i] = RGB(R, G, B);+ }+ lut_dirty = 0;+}++void bg_mode(int m) {+ if (m != mode) {+ mode = m;+ lut_dirty = 1;+ bg_reset();+ }+}++static void set3(float d[3], uint32_t hex, float k) {+ d[0] = ((hex >> 16) & 255) / 255.f * k;+ d[1] = ((hex >> 8) & 255) / 255.f * k;+ d[2] = (hex & 255) / 255.f * k;+}++/* Balatro's ease_background_colour: special/tertiary colours are optional (0). */+void bg_colours(uint32_t col, uint32_t special, uint32_t tertiary, float contr, float spin_amount, int instant) {+ if (special && tertiary) {+ set3(target[1], col, 1.f);+ set3(target[0], special, 1.f);+ set3(target[2], tertiary, 1.f);+ } else {+ set3(target[1], col, 1.3f);+ set3(target[2], col, special ? 0.4f : 0.7f);+ if (special) set3(target[0], special, 1.f);+ else set3(target[0], col, 0.9f);+ }+ contrast_target = contr;+ spin_target = spin_amount;+ if (instant) {+ memcpy(colours, target, sizeof colours);+ contrast = contr;+ spin = spin_amount;+ }+ lut_dirty = 1;+}++/* the title's colour for one cell: the average over it (4 samples) */+static C cell_colour(int gx, int gy) {+ static const int8_t o[4][2] = {{-1, -1}, {1, 1}, {1, -1}, {-1, 1}};+ unsigned r = 2, g = 2, b = 2;+ for (int k = 0; k < 4; k++) {+ C c = lut[paint((float)(gx * BG_CELL + o[k][0]), (float)(gy * BG_CELL + o[k][1]))];+ r += c >> 11, g += (c >> 5) & 63, b += c & 31;+ }+ return (C)((r >> 2) << 11 | (g >> 2) << 5 | (b >> 2));+}++void bg_reset(void) {+ next_row = 0;+ if (mode == 1 && t_real < 20) t_real = 20; /* the title's steady state */+ if (lut_dirty) make_lut();+ for (int y = 0; y < GH; y++)+ for (int x = 0; x < GW; x++) {+ if (mode == 1) cgrid[y][x] = cell_colour(x, y);+ else grid[y][x] = (uint8_t)paint((float)(x * BG_CELL), (float)(y * BG_CELL));+ }+ drow_y = -1;+}++/* Advance the animation by dt seconds, computing up to `rows` grid rows. */+void bg_update(float dt, int rows) {+ t_real += dt;+ t_spin += dt * spin;+ /* ease colours like the game (0.6 s) */+ float k = dt / 0.6f * 3.f;+ if (k > 1) k = 1;+ int moving = 0;+ for (int i = 0; i < 3; i++)+ for (int j = 0; j < 3; j++) {+ float d = target[i][j] - colours[i][j];+ if (d > 0.002f || d < -0.002f) moving = 1, colours[i][j] += d * k;+ else colours[i][j] = target[i][j];+ }+ float dc = contrast_target - contrast, ds = spin_target - spin;+ if (dc > 0.01f || dc < -0.01f) moving = 1, contrast += dc * k;+ else contrast = contrast_target;+ if (ds > 0.001f || ds < -0.001f) moving = 1, spin += ds * (dt * 2.f > 1 ? 1 : dt * 2.f);+ else spin = spin_target;+ if (moving) lut_dirty = 1;+ static const int8_t jit[4][2] = {{-1, -1}, {1, 1}, {1, -1}, {-1, 1}};+ int did = rows > 0;+ while (rows-- > 0) {+ float jx = jit[pass & 3][0], jy = jit[pass & 3][1];+ if (mode == 1) {+ /* the title's swirl moves fast: no averaging over time, over space */+ if (lut_dirty) make_lut();+ C *row = cgrid[next_row];+ for (int x = 0; x < GW; x++) row[x] = cell_colour(x, next_row);+ } else {+ uint8_t *row = grid[next_row];+ for (int x = 0; x < GW; x++) {+ int v = paint(x * BG_CELL + jx, next_row * BG_CELL + jy);+ row[x] = (uint8_t)((row[x] * 3 + v + 2) >> 2);+ }+ }+ if (++next_row == GH) next_row = 0, pass++;+ }+ drow_y = -1;+ if (did || lut_dirty) g_bg_version++;+}++/* title: colours interpolated in both directions, the three channels at+ * once (RGB565 spread over 32 bits leaves room for the weights) */+/* (BG_CELL is 4: four pixels per cell below) */+#define SPREAD(c) (((uint32_t)(c) | (uint32_t)(c) << 16) & 0x07E0F81Fu)+static void bg_row_colour(C *dst, int y) {+ int gy = y / BG_CELL, fy = y % BG_CELL;+ const C *r0 = cgrid[gy], *r1 = cgrid[gy + 1 < GH ? gy + 1 : gy];+ uint32_t wa = BG_CELL - fy, wb = fy;+ uint32_t a = SPREAD(r0[0]) * wa + SPREAD(r1[0]) * wb; /* x4 */+ for (int gx = 0; gx < GW - 1; gx++) {+ uint32_t b = SPREAD(r0[gx + 1]) * wa + SPREAD(r1[gx + 1]) * wb;+ uint32_t p0 = a << 2, p1 = a * 3 + b, p2 = (a + b) << 1, p3 = a + b * 3; /* x16 */+ p0 = (p0 >> 4) & 0x07E0F81Fu, p1 = (p1 >> 4) & 0x07E0F81Fu;+ p2 = (p2 >> 4) & 0x07E0F81Fu, p3 = (p3 >> 4) & 0x07E0F81Fu;+ dst[0] = (C)(p0 | p0 >> 16), dst[1] = (C)(p1 | p1 >> 16);+ dst[2] = (C)(p2 | p2 >> 16), dst[3] = (C)(p3 | p3 >> 16);+ dst += 4;+ a = b;+ }+}++PROF_NOINLINE void bg_row(C *dst, int y, int x0, int x1) {+ (void)x1;+ if (lut_dirty) make_lut();+ if (mode == 1) {+ bg_row_colour(dst, y);+ return;+ }+ int gy = y / BG_CELL, fy = y % BG_CELL;+ if (gy != drow_y) {+ int gy1 = gy + 1 < GH ? gy + 1 : gy;+ memcpy(drow[0], grid[gy], GW);+ memcpy(drow[1], grid[gy1], GW);+ drow_y = gy;+ }+ const uint8_t *r0 = drow[0], *r1 = drow[1];+ unsigned wa = BG_CELL - fy, wb = fy;+ int g0 = x0 / BG_CELL; /* cells left of x0 are hidden */+ dst += g0 * BG_CELL;+ unsigned a = r0[g0] * wa + r1[g0] * wb;+ for (int gx = g0; gx < GW - 1; gx++) {+ unsigned b = r0[gx + 1] * wa + r1[gx + 1] * wb;+ int acc = (int)a * BG_CELL, d = (int)b - (int)a;+ for (int k = 0; k < BG_CELL; k++) {+ *dst++ = lut[acc >> 4];+ acc += d;+ }+ a = b;+ }+}diff --git a/games/balatro/src/bg.h b/games/balatro/src/bg.hnew file mode 100644index 00000000..031e8777--- /dev/null+++ b/games/balatro/src/bg.h@@ -0,0 +1,12 @@+#ifndef BG_H+#define BG_H+#include <stdint.h>+#include "gfx.h"++#define BG_CELL 4+void bg_mode(int title);+void bg_colours(uint32_t col, uint32_t special, uint32_t tertiary, float contrast, float spin, int instant);+void bg_reset(void);+void bg_update(float dt, int rows);+void bg_row(C *dst, int y, int x0, int x1);+#endifdiff --git a/games/balatro/src/cons.c b/games/balatro/src/cons.cnew file mode 100644index 00000000..42403885--- /dev/null+++ b/games/balatro/src/cons.c@@ -0,0 +1,339 @@+/* Tarot, Planet and Spectral cards: Card:use_consumeable and+ * Card:can_use_consumeable from card.lua. */+#include "ev.h"+#include "game.h"+#include "jokers.h"+#include "util.h"++void apply_disable_request(void);+void blind_debuff_card(int ci);++static const uint8_t planet_hand[12] = {H_PAIR, H_THREE_KIND, H_FULL_HOUSE, H_FOUR_KIND, H_FLUSH, H_STRAIGHT,+ H_TWO_PAIR, H_STRAIGHT_FLUSH, H_HIGH_CARD, H_FIVE_KIND, H_FLUSH_HOUSE,+ H_FLUSH_FIVE};++/* max selected cards for the card-targeting consumables (0 = none) */+static int max_sel(int id) {+ switch (id) {+ case C_MAGICIAN: case C_EMPRESS: case C_HEIROPHANT: case C_STRENGTH: case C_HANGED_MAN: case C_DEATH: return 2;+ case C_LOVERS: case C_CHARIOT: case C_JUSTICE: case C_DEVIL: case C_TOWER: return 1;+ case C_STAR: case C_MOON: case C_SUN: case C_WORLD: return 3;+ case C_TALISMAN: case C_DEJA_VU: case C_TRANCE: case C_MEDIUM: case C_CRYPTID: case C_AURA: return 1;+ }+ return 0;+}++static int editionless_jokers(int *out) {+ int n = 0;+ for (int i = 0; i < R.njokers; i++)+ if (!R.jokers[i].ed) out[n++] = i;+ return n;+}++/* can_use_consumeable; in_pack: used straight from a booster pack */+int cons_usable(int id, int in_pack) {+ int tmp[MAXJ];+ int hand_ok = R.phase == PH_ROUND || (R.phase == PH_PACK && (R.pack_kind == PK_ARCANA || R.pack_kind == PK_SPECTRAL));+ if (id == C_HERMIT || (id >= C_MERCURY && id <= C_ERIS) || id == C_TEMPERANCE || id == C_BLACK_HOLE) return 1;+ if (id == C_WHEEL_OF_FORTUNE) return editionless_jokers(tmp) > 0;+ if (id == C_ANKH) return R.njokers > 0 && joker_slots() > 1;+ if (id == C_ECTOPLASM || id == C_HEX) return editionless_jokers(tmp) > 0;+ if (id == C_EMPEROR || id == C_HIGH_PRIESTESS) return R.ncons < cons_slots() + (in_pack ? 0 : 1);+ if (id == C_FOOL)+ return (R.ncons < cons_slots() + (in_pack ? 0 : 1)) && R.last_tarot_planet >= 0 && R.last_tarot_planet != C_FOOL;+ if (id == C_JUDGEMENT || id == C_SOUL || id == C_WRAITH) return R.njokers < joker_slots();+ if (!hand_ok) return 0;+ int ms = max_sel(id);+ if (ms) {+ int n = nselected();+ if (id == C_AURA) {+ if (n != 1) return 0;+ for (int i = 0; i < R.nhand; i++)+ if (R.sel[i] && R.cards[R.hand[i]].ed) return 0;+ return 1;+ }+ return n >= (id == C_DEATH ? 2 : 1) && n <= ms;+ }+ if (id == C_FAMILIAR || id == C_GRIM || id == C_INCANTATION || id == C_IMMOLATE || id == C_SIGIL || id == C_OUIJA)+ return R.nhand > 1;+ return 0;+}++int cons_can_use(int idx, int from_pack, int id) {+ (void)idx;+ return cons_usable(id, from_pack);+}++static int sel_cards(uint8_t *out) {+ int n = 0;+ for (int i = 0; i < R.nhand; i++)+ if (R.sel[i]) out[n++] = R.hand[i];+ return n;+}++static void set_card(int ci) {+ blind_debuff_card(ci);+ ev_card_set(ci);+ ev_delay(1);+}++static void notify_added(int n) {+ cx_t cx = {0};+ cx.kind = CX_CARDS_ADDED, cx.bp = -1, cx.n = n;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e = {0};+ jcalc(i, &cx, &e);+ }+}++static void remove_cards(uint8_t *cards, int n, int *glass) {+ int faces = 0, g = 0;+ for (int i = 0; i < n; i++) {+ int ci = cards[i];+ if (card_is_face(ci, 0)) faces++;+ if (R.cards[ci].enh == E_GLASS) g++;+ ev_card(EV_CARD_DESTROY, ci, R.cards[ci].enh == E_GLASS, 0);+ destroy_card(ci);+ }+ cx_t cx = {0};+ /* the glass ones break later in the game (not "shattered" yet): only+ The Hanged Man counts them, through using_consumeable */+ cx.kind = CX_REMOVE_CARDS, cx.bp = -1, cx.nfaces_removed = faces, cx.nglass_removed = 0;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e = {0};+ if (jcalc(i, &cx, &e)) ev_juice(TG_JOKER, i);+ }+ if (glass) *glass = g;+}++static void random_from_hand(uint8_t *out, int k) {+ uint8_t pool[MAXHAND];+ int n = R.nhand;+ for (int i = 0; i < n; i++) pool[i] = R.hand[i];+ for (int i = 0; i < k && n; i++) {+ int r = rng_int(0, n - 1);+ out[i] = pool[r];+ pool[r] = pool[--n];+ }+}++static void destroy_other_jokers(int keep_uid) {+ for (int i = R.njokers - 1; i >= 0; i--)+ if (R.jokers[i].uid != keep_uid) joker_remove(i, 0);+}++/* from: 0 consumable slot, 1 booster pack, 2 bought and used in the shop */+int use_cons_id(int id, int ed, int from) {+ (void)ed, (void)from;+ uint8_t sel[8];+ int ns = sel_cards(sel), glass = 0;+ char t[20];+ ev_delay(2);+ if (id <= C_WORLD) R.tarots_used++;+ if (id >= C_MERCURY && id <= C_ERIS) R.planets_used_mask |= (uint16_t)(1 << (id - C_MERCURY));+ switch (id) {+ case C_MAGICIAN: case C_EMPRESS: case C_HEIROPHANT: case C_LOVERS: case C_CHARIOT: case C_JUSTICE: case C_DEVIL:+ case C_TOWER: {+ int enh = id == C_MAGICIAN ? E_LUCKY : id == C_EMPRESS ? E_MULT : id == C_HEIROPHANT ? E_BONUS : id == C_LOVERS ? E_WILD+ : id == C_CHARIOT ? E_STEEL : id == C_JUSTICE ? E_GLASS : id == C_DEVIL ? E_GOLD : E_STONE;+ for (int i = 0; i < ns; i++) R.cards[sel[i]].enh = (uint8_t)enh, set_card(sel[i]);+ break;+ }+ case C_STAR: case C_MOON: case C_SUN: case C_WORLD: {+ int s = id == C_STAR ? S_DIAMONDS : id == C_MOON ? S_CLUBS : id == C_SUN ? S_HEARTS : S_SPADES;+ for (int i = 0; i < ns; i++) R.cards[sel[i]].suit = (uint8_t)s, set_card(sel[i]);+ break;+ }+ case C_STRENGTH:+ for (int i = 0; i < ns; i++) {+ card_t *c = &R.cards[sel[i]];+ c->rank = (uint8_t)(c->rank == 14 ? 2 : c->rank + 1);+ set_card(sel[i]);+ }+ break;+ case C_DEATH: {+ int right = sel[ns - 1];+ for (int i = 0; i < ns - 1; i++) {+ card_t *c = &R.cards[sel[i]];+ uint8_t f = c->flags;+ *c = R.cards[right];+ c->flags = (uint8_t)((f & (CF_USED | CF_PLAYED_ANTE)) | (R.cards[right].flags & 0));+ set_card(sel[i]);+ }+ break;+ }+ case C_HANGED_MAN: remove_cards(sel, ns, &glass); break;+ case C_TEMPERANCE: {+ int m = 0;+ for (int i = 0; i < R.njokers; i++) m += joker_sell_value(&R.jokers[i]);+ if (m > 50) m = 50;+ R.money += m;+ ev_money();+ break;+ }+ case C_HERMIT: {+ int m = R.money < 0 ? 0 : R.money > 20 ? 20 : R.money;+ R.money += m;+ ev_money();+ break;+ }+ case C_WHEEL_OF_FORTUNE: case C_ECTOPLASM: case C_HEX: {+ int pool[MAXJ], n = editionless_jokers(pool);+ if (id == C_WHEEL_OF_FORTUNE && !prob(4)) {+ ev_message("Nope!");+ break;+ }+ if (!n) break;+ int ji = pool[rng_int(0, n - 1)];+ joker_t *j = &R.jokers[ji];+ j->ed = (uint8_t)(id == C_ECTOPLASM ? ED_NEG : id == C_HEX ? ED_POLY : poll_edition(1, 1, 1));+ if (!j->ed) j->ed = ED_FOIL;+ ev_t *v = ev_push(EV_JOKER_SET);+ if (v) v->a = j->uid, v->b = j->ed, v->c = j->flags;+ if (id == C_HEX) destroy_other_jokers(j->uid);+ if (id == C_ECTOPLASM) {+ R.ecto_minus++;+ R.hand_size_mod -= R.ecto_minus;+ }+ break;+ }+ case C_JUDGEMENT: joker_add(create_joker_id(-1, 0), -1, 0); break;+ case C_SOUL: joker_add(create_joker_id(4, 1), -1, 0); break;+ case C_WRAITH:+ joker_add(create_joker_id(3, 0), -1, 0);+ if (R.money != 0) {+ R.money = 0;+ ev_money();+ }+ break;+ case C_EMPEROR: case C_HIGH_PRIESTESS:+ for (int k = 0; k < 2 && R.ncons < cons_slots(); k++) add_cons(create_cons_id(id == C_EMPEROR ? 0 : 1), 0);+ break;+ case C_FOOL:+ if (R.ncons < cons_slots() && R.last_tarot_planet >= 0) add_cons(R.last_tarot_planet, 0);+ break;+ case C_BLACK_HOLE:+ for (int h = 0; h < NHANDS; h++) level_up(h, 1, -1);+ break;+ case C_FAMILIAR: case C_GRIM: case C_INCANTATION: {+ uint8_t d[1];+ random_from_hand(d, 1);+ remove_cards(d, 1, 0);+ int k = id == C_FAMILIAR ? 3 : id == C_GRIM ? 2 : 4;+ for (int i = 0; i < k; i++) {+ card_t c = random_card();+ if (id == C_FAMILIAR) c.rank = (uint8_t)rng_int(11, 13);+ if (id == C_GRIM) c.rank = 14;+ if (id == C_INCANTATION) c.rank = (uint8_t)rng_int(2, 10);+ c.enh = (uint8_t)random_enhancement(1);+ add_card_to_deck(c, A_HAND);+ }+ notify_added(k);+ sort_hand(R.sort_suit);+ break;+ }+ case C_TALISMAN: case C_DEJA_VU: case C_TRANCE: case C_MEDIUM: {+ int seal = id == C_TALISMAN ? SEAL_GOLD : id == C_DEJA_VU ? SEAL_RED : id == C_TRANCE ? SEAL_BLUE : SEAL_PURPLE;+ if (ns) R.cards[sel[0]].seal = (uint8_t)seal, set_card(sel[0]);+ break;+ }+ case C_AURA:+ if (ns) {+ int e = poll_edition(1, 1, 1);+ R.cards[sel[0]].ed = (uint8_t)(e ? e : ED_FOIL);+ set_card(sel[0]);+ }+ break;+ case C_SIGIL: case C_OUIJA: {+ int s = rng_int(0, 3), r = rng_int(2, 14);+ for (int i = 0; i < R.nhand; i++) {+ card_t *c = &R.cards[R.hand[i]];+ if (id == C_SIGIL) c->suit = (uint8_t)s;+ else c->rank = (uint8_t)r;+ set_card(R.hand[i]);+ }+ if (id == C_OUIJA) R.hand_size_mod -= 1;+ sort_hand(R.sort_suit);+ break;+ }+ case C_IMMOLATE: {+ uint8_t d[5];+ int k = R.nhand < 5 ? R.nhand : 5;+ random_from_hand(d, k);+ remove_cards(d, k, 0);+ R.money += 20;+ ev_money();+ break;+ }+ case C_ANKH: {+ if (!R.njokers) break;+ int ci = rng_int(0, R.njokers - 1);+ joker_t copy = R.jokers[ci];+ destroy_other_jokers(copy.uid);+ if (R.njokers < MAXJ) {+ copy.uid = (uint16_t)joker_new_uid();+ if (copy.ed == ED_NEG) copy.ed = 0;+ copy.flags = 0;+ R.jokers[R.njokers++] = copy;+ joker_on_added(&R.jokers[R.njokers - 1]);+ ev_t *v = ev_push(EV_JOKER_ADD);+ if (v) v->a = copy.uid, v->b = copy.id, v->c = copy.ed, v->d = (int16_t)(R.njokers - 1);+ }+ break;+ }+ case C_CRYPTID:+ if (ns) {+ card_t c = R.cards[sel[0]];+ c.flags &= CF_DOWN;+ for (int i = 0; i < 2; i++) add_card_to_deck(c, A_HAND);+ notify_added(2);+ sort_hand(R.sort_suit);+ }+ break;+ default:+ if (id >= C_MERCURY && id <= C_ERIS) level_up(planet_hand[id - C_MERCURY], 1, -1);+ break;+ }+ /* like the game's deferred event: The Fool copies the card used before it */+ if ((id <= C_WORLD) || (id >= C_MERCURY && id <= C_ERIS)) R.last_tarot_planet = (int8_t)id;+ /* using_consumeable */+ cx_t cx = {0};+ cx.kind = CX_USING_CONS, cx.bp = -1, cx.cons_id = id, cx.nglass_removed = glass;+ cx.cons_set = id <= C_WORLD ? 0 : id <= C_ERIS ? 1 : 2;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e = {0};+ if (jcalc(i, &cx, &e)) {+ ev_juice(TG_JOKER, e.card);+ if (e.msg && e.msg[0]) ev_popup(TG_JOKER, e.card, e.msg, e.col);+ else if (R.jokers[i].id == J_FORTUNE_TELLER) {+ char *p = str_cat(t, "+");+ p = fmt_int(p, R.tarots_used);+ str_cat(p, " Mult");+ ev_popup(TG_JOKER, i, t, PC_MULT);+ } else {+ char *p = str_cat(t, "X");+ p = fmt_short(p, R.jokers[i].x);+ str_cat(p, " Mult");+ ev_popup(TG_JOKER, i, t, PC_MULT);+ }+ }+ }+ for (int i = 0; i < MAXHAND; i++) R.sel[i] = 0;+ apply_disable_request();+ return 1;+}++int use_cons(int idx) {+ if (idx < 0 || idx >= R.ncons) return 0;+ int id = R.cons[idx].id;+ if (!cons_usable(id, 0)) return 0;+ ev_reset();+ int ed = R.cons[idx].ed;+ ev_t *v = ev_push(EV_CONS_REMOVE);+ if (v) v->a = R.cons[idx].uid, v->b = 1;+ for (int i = idx; i < R.ncons - 1; i++) R.cons[i] = R.cons[i + 1];+ R.ncons--;+ use_cons_id(id, ed, 0);+ ev_sync();+ return 1;+}diff --git a/games/balatro/src/data.c b/games/balatro/src/data.cnew file mode 100644index 00000000..189c90d7--- /dev/null+++ b/games/balatro/src/data.c@@ -0,0 +1,682 @@+/* Generated by tools/mkdata.py from Balatro's game data (LocalThunk): do not edit. */+#include "data.h"++const uint8_t text_blob[11206] = {+ 158,0,217,173,0,71,155,253,157,158,0,80,160,159,182,119,105,151,204,128,115,117,105,137,+ 247,211,217,174,222,231,248,100,0,76,239,116,157,158,0,80,160,159,182,119,105,151,10,3,+ 18,128,115,117,105,137,247,211,217,174,222,231,248,100,0,87,114,97,151,102,117,183,158,0,+ 80,160,159,182,119,105,151,10,12,18,128,115,117,105,137,247,211,217,174,222,231,248,100,0,+ 71,108,117,116,146,110,148,131,158,0,80,160,159,182,119,105,151,204,128,115,117,105,137,247,+ 211,217,174,222,231,248,100,0,74,196,108,157,158,0,217,174,242,243,192,240,116,197,162,97,+ 254,0,90,130,157,158,0,217,174,242,243,192,240,116,197,162,97,254,0,77,97,133,158,0,+ 217,174,242,243,192,240,116,197,162,97,254,0,67,114,97,122,157,158,0,217,174,242,243,192,+ 240,116,197,162,97,254,0,68,114,196,183,158,0,217,174,242,243,192,240,116,197,162,97,254,+ 0,83,108,157,158,0,2,166,232,131,242,243,192,240,116,197,162,97,254,0,87,105,108,157,+ 158,0,2,166,232,131,242,243,192,240,116,197,162,97,254,0,67,108,205,219,158,0,2,166,+ 232,131,242,243,192,240,116,197,162,97,254,0,68,205,105,148,131,158,0,2,166,232,131,242,+ 243,192,240,116,197,162,97,254,0,67,114,97,102,116,157,158,0,2,166,232,131,242,243,192,+ 240,116,197,162,97,254,0,72,163,161,158,0,217,174,242,243,192,240,116,197,115,204,128,169,+ 32,102,101,119,219,144,115,0,255,83,116,139,99,105,108,0,180,49,32,220,102,169,32,244,+ 10,101,109,112,116,121,143,158,128,115,108,111,116,10,255,83,116,139,99,105,183,135,99,108,+ 117,100,168,224,215,7,41,0,70,148,114,32,70,233,134,115,0,65,108,108,143,70,108,239,+ 104,181,128,249,4,83,186,97,105,103,104,116,115,128,99,130,32,98,211,109,227,132,119,105,+ 151,143,52,128,144,115,0,77,105,109,101,0,82,101,186,105,103,103,219,163,108,10,198,4,+ 104,153,133,135,156,225,128,97,98,105,108,105,226,181,0,67,155,199,137,67,129,100,0,71,+ 111,32,202,32,146,10,3,45,36,141,165,100,101,98,116,0,67,134,101,109,152,105,163,32,+ 68,228,103,134,0,87,206,143,66,108,135,100,128,200,246,253,241,100,181,186,111,157,255,207,+ 209,114,105,103,104,116,10,130,133,112,134,109,130,189,157,227,133,4,100,148,98,108,211,105,+ 116,131,221,183,118,163,117,132,207,151,200,3,173,10,224,3,43,17,229,173,41,0,66,130,+ 110,134,0,2,166,232,131,102,169,10,244,32,155,109,197,233,156,199,115,144,0,77,121,115,+ 226,99,32,83,117,109,109,105,116,0,217,174,222,204,128,199,115,144,162,155,109,197,233,0,+ 77,129,98,108,132,158,0,65,100,100,131,152,132,4,83,146,110,250,136,138,207,100,167,107,+ 32,222,156,66,108,135,100,128,200,246,253,0,76,111,121,163,116,157,67,129,100,0,215,220,+ 205,134,121,204,128,225,131,243,7,19,0,56,32,66,163,108,0,6,194,165,18,128,99,251,+ 132,102,169,32,244,10,170,159,4,56,128,207,99,155,175,132,97,10,8,84,129,111,234,198,+ 222,231,248,138,171,140,115,137,235,118,132,114,111,172,41,0,77,105,115,112,114,135,116,0,+ 0,68,239,107,0,82,101,186,105,103,103,219,163,183,243,182,135,143,102,135,163,156,225,128,+ 195,236,0,82,97,105,115,159,70,105,115,116,0,65,100,100,131,4,100,148,98,108,250,209,+ 216,107,10,111,102,143,108,111,119,181,234,216,107,159,136,138,104,153,133,165,192,207,173,0,+ 67,235,111,131,209,67,108,111,119,110,0,252,102,155,132,6,82,134,196,108,10,112,219,115,+ 203,112,0,70,105,98,152,154,99,105,0,69,223,32,170,159,4,65,99,101,16,44,156,50,+ 16,44,143,51,16,44,143,53,16,230,169,143,56,128,247,101,162,217,174,222,231,248,100,0,+ 83,116,101,153,32,158,0,71,188,176,215,128,173,10,102,169,32,244,143,83,116,101,153,32,+ 67,129,138,165,237,114,143,102,117,108,183,100,167,107,10,224,180,18,32,229,173,41,0,83,+ 136,157,70,154,101,0,80,160,159,4,102,154,250,144,162,247,132,2,166,232,162,222,231,248,+ 100,0,65,98,115,186,154,137,158,0,217,174,102,169,10,244,143,158,128,136,138,224,3,43,+ 18,229,173,41,0,68,101,160,159,71,114,175,105,102,105,99,175,105,152,0,69,129,110,32,+ 191,141,112,134,143,199,115,144,128,105,102,10,110,111,32,199,115,182,129,132,239,168,98,157,+ 139,133,195,209,236,0,72,238,0,82,101,186,105,103,103,134,10,244,32,243,4,50,16,44,+ 143,51,16,44,143,52,16,230,169,143,53,16,0,80,129,101,105,100,196,105,97,0,65,108,+ 183,182,129,211,240,115,105,100,134,168,4,102,154,250,144,115,0,71,114,111,131,77,105,99,+ 104,153,0,217,173,10,6,18,32,165,19,128,99,251,132,151,105,162,198,200,100,181,186,111,+ 121,168,97,137,139,133,195,236,0,69,118,139,32,83,116,205,139,0,80,160,159,182,119,105,+ 151,156,205,139,128,216,107,32,247,211,217,174,222,231,248,138,171,49,48,230,56,230,54,230,+ 52,230,50,41,0,79,100,133,84,111,100,100,0,80,160,159,182,119,105,151,156,111,100,100,+ 128,216,107,32,247,211,2,166,232,131,222,231,248,138,171,65,230,57,230,55,230,53,230,51,+ 41,0,83,99,104,196,129,0,80,160,159,4,65,99,181,16,10,247,132,2,43,18,128,232,+ 162,130,133,217,173,10,222,231,248,100,0,66,239,135,181,131,67,129,100,0,80,160,159,4,+ 102,154,250,182,235,118,211,177,6,194,165,18,128,99,251,132,146,10,247,132,191,50,128,222,+ 231,248,100,0,83,202,134,110,111,118,97,0,65,100,100,131,209,110,117,109,98,219,195,226,+ 109,181,156,112,149,32,225,128,235,131,98,101,139,10,170,159,151,200,114,117,110,32,207,173,+ 0,82,105,100,132,209,66,239,0,84,164,131,255,103,197,131,217,173,10,112,134,143,240,115,+ 167,117,116,188,250,142,138,170,159,119,105,151,148,137,97,10,115,99,169,233,143,102,154,250,+ 136,138,224,3,43,18,229,173,41,0,83,112,154,132,158,0,6,194,165,18,128,99,251,132,+ 146,10,202,103,114,227,132,108,205,153,32,111,102,10,170,159,4,112,149,32,225,16,0,69,+ 103,103,0,71,197,131,191,141,111,102,156,221,183,118,163,117,250,175,10,139,133,195,236,0,+ 66,184,103,108,129,0,87,206,143,66,108,135,100,128,200,246,253,241,103,97,165,2,166,72,+ 130,100,131,249,4,108,210,132,163,183,199,115,144,115,0,66,150,99,107,98,111,129,100,0,+ 215,220,242,163,108,10,182,104,153,133,165,142,138,129,132,12,18,128,169,143,19,16,0,82,+ 117,110,110,134,0,71,197,131,2,43,18,128,232,162,242,170,159,142,138,240,116,197,131,97,+ 143,83,186,97,105,103,104,116,16,10,224,2,43,17,229,232,115,41,0,73,99,132,67,155,+ 97,109,0,2,166,232,162,2,45,18,128,232,131,102,169,10,205,134,157,192,170,253,0,68,+ 78,65,0,73,102,143,102,105,114,115,137,225,128,195,201,138,235,131,152,108,121,143,49,128,+ 144,230,227,133,97,10,112,134,109,130,139,137,218,112,157,207,100,167,107,10,130,133,100,114,+ 97,119,32,105,137,146,143,225,0,83,112,150,115,104,0,69,118,134,121,143,170,159,136,138,+ 99,190,116,131,165,115,99,169,233,0,66,108,117,132,158,0,2,166,232,131,102,169,32,244,+ 10,155,109,197,233,32,198,135,143,100,167,107,10,224,2,43,18,229,232,115,41,0,83,105,+ 120,151,32,83,139,115,101,0,73,102,143,102,105,114,115,137,225,128,195,201,133,105,162,177,+ 115,233,108,132,4,54,16,230,100,181,186,111,157,105,137,249,99,155,175,132,177,11,83,112,+ 167,186,163,128,136,138,171,140,115,137,235,118,132,114,111,172,41,0,67,152,115,116,153,150,+ 226,152,0,84,164,131,255,103,197,162,215,220,205,134,157,226,109,211,177,9,80,108,130,101,+ 234,198,200,239,168,224,180,18,32,229,173,41,0,72,105,107,134,0,69,118,134,157,170,159,+ 4,144,16,10,112,134,109,130,189,157,103,197,162,2,166,232,131,222,231,248,100,0,70,154,+ 153,181,131,158,0,69,129,110,32,191,141,105,102,254,128,169,10,109,169,132,4,102,154,132,+ 144,115,16,10,129,132,199,115,144,168,97,137,209,115,97,109,132,226,109,101,0,71,155,139,+ 32,158,0,217,174,112,219,192,243,3,45,18,220,112,219,199,115,136,138,224,3,43,19,229,+ 173,41,0,83,202,134,112,210,105,226,152,0,67,155,175,132,177,8,84,129,111,234,198,105,+ 102,10,112,149,32,192,240,116,197,131,130,156,65,99,250,130,133,97,143,83,186,97,105,103,+ 104,116,16,10,171,140,115,137,235,118,132,114,111,172,41,0,84,111,32,68,111,32,76,105,+ 115,116,0,69,129,110,32,191,141,105,102,143,112,149,32,225,16,10,200,97,254,16,241,112,+ 149,32,192,99,142,103,101,162,97,137,139,133,195,236,0,67,97,118,139,199,115,104,0,215,+ 128,173,10,6,18,32,165,19,128,99,251,132,151,105,162,198,200,100,181,186,111,121,168,97,+ 137,139,133,195,236,0,67,129,133,83,104,129,112,0,215,220,242,243,4,112,149,32,225,128,+ 235,131,163,155,227,121,10,98,101,139,32,170,159,151,200,236,0,82,159,67,129,100,0,84,+ 164,131,255,103,197,162,217,174,222,32,130,121,156,66,111,210,116,219,80,238,128,200,115,107,+ 105,112,112,168,224,3,43,18,229,173,41,0,77,227,110,181,115,0,87,206,143,83,109,163,+ 183,66,108,135,100,128,169,143,66,105,103,32,66,108,135,100,16,10,200,246,253,230,103,97,+ 165,215,128,173,10,130,133,4,100,181,186,111,121,128,177,216,100,172,32,158,10,224,180,18,+ 32,229,173,41,0,83,113,117,129,132,158,0,84,164,131,255,103,197,131,2,43,18,128,232,+ 162,242,170,159,192,235,162,101,120,154,116,108,121,143,52,128,144,162,224,2,17,229,232,115,+ 41,0,83,233,130,99,101,0,73,102,143,112,149,32,225,128,200,97,156,17,16,230,99,155,+ 175,132,97,10,216,100,172,32,11,83,112,167,186,163,128,136,138,171,140,115,137,235,118,132,+ 114,111,172,41,0,82,105,102,102,45,82,97,102,102,0,87,206,143,66,108,135,100,128,200,+ 246,253,241,99,155,175,132,4,194,2,67,172,109,152,4,32,158,162,171,140,115,137,235,118,+ 132,114,111,172,41,0,86,97,109,112,105,155,0,84,164,131,255,103,197,131,215,128,173,10,+ 112,219,115,99,169,233,143,69,110,251,159,144,128,170,253,241,155,109,111,118,176,198,4,69,+ 110,251,101,109,178,10,224,180,18,32,229,173,41,0,83,104,169,116,99,117,116,0,65,108,+ 108,111,119,131,4,83,186,97,105,103,104,116,115,128,207,98,211,109,227,132,119,105,151,32,+ 103,97,112,131,111,102,143,49,32,216,107,10,171,101,120,58,143,49,48,32,56,32,54,32,+ 53,32,51,7,41,0,72,196,111,103,114,97,109,0,84,164,131,255,103,197,131,215,128,173,+ 10,205,134,157,226,109,132,97,143,170,233,32,144,16,10,200,227,100,159,207,237,114,32,100,+ 167,107,10,224,180,18,32,229,173,41,0,86,228,97,98,152,100,0,67,155,175,132,177,8,+ 84,129,111,234,136,138,242,192,200,243,119,105,151,32,191,141,169,32,108,181,115,0,66,129,+ 152,0,69,223,143,75,233,16,10,104,153,133,165,142,138,247,176,215,128,173,0,67,108,148,+ 133,57,0,69,129,110,32,191,141,102,169,32,244,156,57,128,165,237,114,143,102,117,108,183,+ 100,167,107,10,97,137,139,133,195,201,138,224,191,18,16,7,41,0,82,111,99,107,101,116,+ 0,69,129,110,32,191,141,97,137,139,133,195,201,138,80,97,237,137,135,99,155,97,115,176,+ 98,157,191,18,16,10,222,143,66,210,131,66,108,135,100,128,200,100,101,102,101,175,253,0,+ 79,98,153,105,115,107,0,84,164,131,255,103,197,131,215,128,173,10,112,134,143,240,115,167,+ 117,116,188,250,192,243,119,105,151,148,137,170,233,32,237,114,10,109,210,137,170,159,4,112,+ 149,32,142,138,224,180,18,32,229,173,41,0,77,105,100,97,131,77,97,115,107,0,65,108,+ 183,170,159,4,102,154,250,144,162,98,167,172,132,4,71,196,100,128,144,162,222,231,248,100,+ 0,76,117,99,104,227,169,0,83,153,183,151,200,198,146,10,199,115,97,98,108,132,209,99,+ 208,178,156,66,210,131,66,108,135,100,16,0,80,203,146,103,114,97,112,104,0,70,105,114,+ 115,137,170,159,4,102,154,211,198,247,176,215,128,173,10,222,231,248,100,0,71,105,102,137,+ 67,129,100,0,65,100,133,191,141,111,102,143,221,183,118,163,117,211,207,205,134,121,143,158,+ 128,249,4,67,152,115,117,109,97,98,108,250,198,175,10,139,133,195,236,0,84,184,116,108,+ 132,66,101,130,0,4,166,192,115,105,122,101,241,155,100,117,99,176,98,121,10,3,18,128,+ 205,134,157,236,0,69,114,210,105,152,0,217,174,102,169,32,244,10,198,98,153,111,119,143,+ 19,16,10,165,237,114,32,102,117,108,183,100,167,107,10,224,3,43,18,229,173,41,0,82,+ 181,134,118,159,80,129,107,233,0,69,223,143,102,154,250,136,138,104,153,133,165,192,235,162,+ 177,6,18,32,165,19,128,99,251,211,207,247,132,191,17,16,0,77,97,105,108,45,73,110,+ 32,82,101,98,175,101,0,69,129,110,32,191,141,102,169,32,244,10,199,115,144,159,4,18,+ 16,230,216,107,10,99,142,103,176,205,134,157,236,0,84,111,32,209,77,111,152,0,69,129,+ 110,32,130,32,101,120,186,177,191,141,111,102,156,135,116,134,181,234,102,169,32,205,134,157,+ 191,53,128,237,10,235,118,132,97,137,139,133,195,236,0,72,163,108,117,99,135,175,105,152,+ 0,6,194,165,18,128,99,251,132,207,99,155,175,211,177,8,84,129,111,234,198,222,32,130,+ 121,156,66,111,210,116,219,80,238,128,200,111,112,139,168,171,140,115,137,235,118,132,114,111,+ 172,41,0,70,169,116,117,110,132,84,153,108,134,0,217,174,112,219,8,84,129,111,116,16,+ 10,198,239,159,151,200,114,117,110,10,224,3,43,18,7,41,0,74,117,103,103,108,134,0,+ 4,166,192,115,105,122,101,0,68,114,117,110,107,129,100,0,217,199,115,136,138,244,32,236,+ 0,83,146,110,132,158,0,71,188,176,2,166,232,131,102,169,10,244,143,83,146,110,132,67,+ 129,138,165,237,114,143,102,117,108,183,100,167,107,10,224,2,43,18,229,232,115,41,0,71,+ 196,100,139,32,158,0,69,129,110,32,191,141,175,10,139,133,195,236,0,76,117,99,107,157,+ 67,175,0,84,164,131,255,103,197,131,215,128,173,10,205,134,157,226,109,132,97,143,76,117,+ 99,107,121,128,136,138,6,115,117,99,99,181,115,102,117,108,108,121,128,186,105,103,103,134,+ 162,224,180,18,32,229,173,41,0,66,97,115,101,98,163,183,67,129,100,0,6,85,110,99,+ 172,109,152,128,158,162,244,32,247,132,215,128,173,0,66,117,108,108,0,2,166,232,131,102,+ 169,10,244,32,191,49,128,237,32,235,118,211,224,2,43,18,229,232,115,41,0,68,105,101,+ 137,67,111,150,0,83,153,183,151,200,198,146,10,99,155,175,132,177,102,155,101,156,17,0,+ 84,114,227,233,32,67,129,100,0,73,102,143,102,105,114,115,137,199,115,144,128,195,201,138,+ 235,131,152,108,121,143,49,128,144,230,100,181,186,111,121,10,105,137,130,133,101,129,110,32,+ 191,17,0,70,150,115,104,32,67,129,100,0,84,164,131,255,103,197,131,217,173,10,112,134,+ 143,114,134,196,108,128,165,209,115,203,112,10,224,3,43,18,229,173,41,0,80,111,112,99,+ 169,110,0,217,173,10,3,45,18,220,112,134,10,201,133,170,253,0,83,112,129,132,84,114,+ 148,115,134,115,0,84,164,131,255,103,197,131,217,173,10,242,170,159,192,240,116,197,162,97,+ 254,10,224,3,43,19,229,173,41,0,65,110,99,105,139,137,158,0,69,223,32,170,159,198,+ 119,105,151,204,128,115,117,105,137,247,101,162,215,220,222,231,248,100,241,115,117,105,137,99,+ 142,103,176,97,137,139,133,195,236,0,82,97,109,139,0,215,128,173,241,108,210,176,180,18,+ 32,128,173,10,112,134,143,144,128,199,115,144,253,0,87,163,107,105,132,84,163,107,105,101,+ 0,69,223,32,170,159,4,49,48,128,169,143,52,10,247,176,2,166,232,131,249,3,43,18,+ 220,222,231,248,100,0,83,153,116,122,134,0,82,101,186,105,103,103,219,163,108,10,182,170,+ 159,102,169,10,209,110,101,120,137,252,225,115,0,67,97,115,116,108,101,0,84,164,131,255,+ 103,197,131,2,166,232,162,112,219,199,115,144,159,4,18,128,144,241,115,117,105,137,99,142,+ 103,176,205,134,157,201,138,224,2,43,19,229,232,115,41,0,83,109,105,108,101,157,70,154,+ 101,0,80,160,159,4,102,154,250,144,162,247,132,217,173,10,222,231,248,100,0,67,97,109,+ 112,102,105,155,0,84,164,131,255,103,197,131,14,88,141,173,10,102,169,32,244,32,198,4,+ 115,196,100,16,230,155,115,101,116,162,222,143,66,210,131,66,108,135,100,128,200,100,101,102,+ 101,175,168,224,180,18,32,229,173,41,0,71,196,100,139,32,84,105,99,107,101,116,0,80,+ 160,159,4,71,196,100,128,144,162,101,129,110,32,191,141,222,231,248,100,0,77,114,46,32,+ 66,152,181,0,80,155,118,178,131,68,101,97,151,10,242,99,193,131,115,248,138,129,132,97,+ 137,108,101,97,115,137,4,50,53,37,10,195,155,113,117,105,155,133,99,193,162,3,221,161,+ 100,181,186,117,99,116,115,16,0,65,99,114,111,98,175,0,215,220,152,143,102,135,163,156,+ 225,128,195,236,0,83,111,99,107,32,130,133,66,239,107,135,0,82,101,186,105,103,103,219,+ 163,108,10,170,159,4,102,154,250,144,115,0,83,119,97,115,104,98,117,99,107,108,134,0,+ 65,100,100,131,209,221,183,118,163,117,211,195,163,183,111,151,219,111,119,110,168,4,158,115,+ 128,207,173,10,224,3,43,17,229,173,41,0,84,114,148,98,227,148,114,0,4,166,192,115,+ 105,122,101,241,2,45,18,128,192,244,32,236,0,67,134,226,102,105,99,175,101,0,87,206,+ 32,201,133,98,101,103,135,115,241,227,133,177,216,100,172,143,170,233,156,144,128,119,105,151,+ 32,177,216,100,172,156,115,101,163,128,207,237,114,32,225,0,83,109,101,129,159,158,0,3,+ 72,101,129,116,115,128,130,133,4,68,105,97,109,152,100,162,99,190,137,97,131,209,115,97,+ 109,132,115,117,105,116,241,12,83,112,227,181,128,130,133,4,67,108,117,98,162,99,190,137,+ 97,131,209,115,97,109,132,115,117,105,116,0,185,114,111,119,98,238,0,215,220,102,169,32,+ 244,156,66,108,135,100,128,115,107,105,112,112,159,151,200,114,117,110,10,224,180,18,32,229,+ 173,41,0,72,130,103,233,32,67,104,227,0,82,101,186,105,103,103,134,143,102,105,114,115,+ 234,243,198,239,159,165,115,99,169,233,156,141,227,199,226,152,163,32,226,109,181,0,82,148,+ 103,104,32,71,101,109,0,80,160,159,182,119,105,151,156,68,105,97,109,152,100,128,115,117,+ 105,137,101,129,110,10,191,141,222,231,248,100,0,66,108,111,111,100,115,146,110,101,0,6,+ 194,165,18,128,99,251,132,102,169,10,170,159,182,119,105,151,10,3,72,101,129,234,115,117,+ 105,137,207,247,211,180,19,32,220,222,231,248,100,0,65,114,114,111,119,104,101,227,0,80,+ 160,159,182,119,105,151,10,12,83,112,227,250,115,117,105,137,247,211,2,166,232,131,222,231,+ 248,100,0,79,110,121,120,32,65,103,175,101,0,80,160,159,182,119,105,151,156,67,108,117,+ 98,128,115,117,105,137,247,211,217,174,222,231,248,100,0,71,150,115,131,158,0,84,164,131,+ 255,103,197,131,215,128,173,10,102,169,32,205,134,121,143,71,150,115,131,67,129,138,151,97,+ 137,200,100,181,186,111,121,168,224,180,18,32,229,173,41,0,83,203,119,109,130,0,4,158,+ 16,230,8,84,129,111,116,16,230,9,80,108,130,101,116,16,241,130,133,11,83,112,167,186,+ 163,128,182,109,97,121,10,97,112,112,101,129,32,109,117,108,226,112,108,132,226,109,181,0,+ 70,108,111,119,219,80,111,116,0,215,220,242,112,149,10,192,240,116,197,131,97,156,68,105,+ 97,109,152,100,128,144,44,143,67,108,117,98,128,144,241,3,72,101,129,234,144,230,130,133,+ 12,83,112,227,250,144,0,66,108,117,101,112,114,135,116,0,67,111,112,105,176,97,98,105,+ 108,105,116,157,111,102,156,158,128,207,209,114,105,103,104,116,0,87,101,132,158,0,84,164,+ 131,255,103,197,162,2,43,18,128,232,131,222,32,244,10,170,159,4,50,128,200,115,248,138,+ 224,2,43,17,229,232,115,41,0,77,134,114,157,65,110,100,121,0,217,199,115,144,162,244,+ 32,236,241,3,18,128,192,115,105,122,101,0,79,111,112,115,33,32,65,108,183,54,115,0,+ 68,148,98,108,176,163,108,143,108,105,115,116,168,6,112,114,111,98,97,98,105,108,105,226,+ 101,162,171,101,120,58,32,6,49,32,165,51,229,45,62,32,6,50,32,165,51,7,41,0,+ 187,73,100,196,0,69,223,32,170,159,4,18,10,111,102,143,19,128,247,101,162,215,220,222,+ 231,248,138,67,129,133,99,142,103,176,205,134,157,236,0,83,101,101,233,32,68,148,98,108,+ 101,0,215,220,242,243,192,235,131,177,115,99,169,233,156,67,108,117,98,128,198,130,133,177,+ 115,99,169,233,10,198,195,130,157,111,151,134,143,115,117,105,116,0,77,175,227,169,0,69,+ 129,110,32,191,141,242,243,192,186,105,103,103,134,131,151,101,156,66,210,131,66,108,135,100,+ 128,97,98,105,108,105,116,121,0,72,105,137,209,82,111,227,0,84,164,131,255,103,197,131,+ 215,128,173,10,102,169,32,205,134,121,143,74,238,16,10,199,115,144,159,151,200,201,138,224,+ 180,18,32,229,173,41,0,187,68,117,111,0,215,220,242,243,192,240,116,197,162,97,254,0,+ 187,84,114,105,111,0,215,220,242,243,192,240,116,197,162,97,254,0,187,70,97,109,105,108,+ 121,0,215,220,242,243,192,240,116,197,162,97,254,0,187,79,114,100,134,0,215,220,242,243,+ 192,240,116,197,162,97,254,0,187,84,114,105,98,101,0,215,220,242,243,192,240,116,197,162,+ 97,254,0,83,116,117,110,116,109,130,0,2,166,232,115,44,156,45,18,128,192,115,105,122,+ 101,0,73,110,118,105,115,105,98,108,132,158,0,65,102,116,134,143,141,236,115,241,221,183,+ 151,200,198,146,156,68,202,108,105,99,175,250,177,216,100,172,32,158,10,214,121,254,7,47,+ 17,41,0,66,114,197,115,146,114,109,0,67,111,112,105,176,209,97,98,105,108,105,116,121,+ 10,195,108,101,102,116,109,210,137,4,158,0,83,175,153,108,105,116,101,0,69,129,110,32,+ 191,141,97,137,139,133,111,102,10,201,133,112,219,117,110,105,113,117,132,9,80,108,130,101,+ 116,10,198,239,159,151,200,114,117,110,10,224,191,18,7,41,0,83,203,111,137,209,77,111,+ 152,0,69,223,143,81,117,101,139,16,10,104,153,133,165,142,138,247,176,217,173,0,68,114,+ 188,134,39,131,76,105,99,139,115,101,0,215,220,242,237,32,235,118,211,97,137,108,101,97,+ 115,137,4,49,54,128,69,110,251,168,182,165,237,114,32,102,117,108,183,100,167,107,10,214,+ 121,254,7,41,0,67,129,146,109,130,99,134,0,67,155,175,132,177,8,84,129,111,234,136,+ 138,222,143,66,108,135,100,128,200,246,168,171,140,115,137,235,118,132,114,111,172,41,0,65,+ 115,186,152,172,134,0,65,108,183,9,80,108,130,101,234,182,249,9,67,153,181,226,163,32,+ 80,238,115,128,135,10,209,115,203,112,32,129,132,4,102,155,101,0,66,184,110,137,158,0,+ 85,112,103,114,227,132,209,108,205,153,32,111,102,10,209,102,105,114,115,137,4,199,115,144,+ 168,112,149,32,192,244,32,236,0,66,111,111,116,115,186,97,112,115,0,217,174,102,169,32,+ 205,134,121,10,191,18,128,237,32,235,118,211,224,3,43,19,229,173,41,0,67,130,105,111,+ 0,84,164,131,255,103,197,131,215,128,173,10,222,32,97,143,102,154,250,136,138,200,100,181,+ 186,111,121,168,224,180,18,32,229,173,41,0,84,114,105,98,148,108,101,116,0,80,160,159,+ 4,75,233,115,128,249,4,81,117,101,139,115,128,244,32,247,211,215,220,222,231,248,100,0,+ 89,169,105,99,107,0,84,164,131,255,103,197,162,215,220,205,134,121,254,229,91,19,93,16,+ 10,182,199,115,144,168,224,180,20,32,229,173,41,0,67,164,218,116,0,68,105,115,97,98,+ 108,176,101,102,102,167,137,111,102,10,205,134,121,143,66,210,131,66,108,135,100,0,80,134,+ 107,101,111,0,67,155,175,176,177,15,78,101,103,175,188,250,218,112,157,111,102,156,49,128,+ 216,100,172,143,240,115,117,109,97,98,108,101,16,10,198,165,237,114,32,112,210,115,181,115,+ 105,152,10,97,137,209,139,133,195,209,4,115,203,112,0,187,70,111,196,0,67,155,175,176,+ 209,150,115,116,10,8,84,129,111,234,169,32,9,80,108,130,101,234,136,138,239,159,100,184,+ 233,32,151,200,114,117,110,10,8,187,70,111,111,183,101,120,99,108,117,100,253,0,187,77,+ 228,105,99,105,130,0,69,110,251,176,4,17,16,10,246,159,182,146,204,115,0,187,72,105,+ 103,104,32,80,114,105,181,116,181,115,0,67,155,175,176,202,32,146,143,17,10,216,100,172,+ 32,9,80,108,130,101,234,144,162,171,140,115,137,235,118,132,114,111,172,41,0,187,69,109,+ 112,155,115,115,0,69,110,251,176,4,17,10,246,159,182,146,204,115,0,187,69,109,112,134,+ 169,0,67,155,175,176,202,32,146,143,17,10,216,100,172,32,8,84,129,111,234,144,162,171,+ 140,115,137,235,118,132,114,111,172,41,0,187,72,105,134,111,112,142,116,0,69,110,251,176,+ 4,17,10,246,159,182,146,204,115,0,187,76,111,118,134,115,0,69,110,251,176,252,246,168,+ 198,135,207,97,204,0,187,67,104,129,105,111,116,0,69,110,251,176,252,246,168,198,135,207,+ 97,204,0,74,239,226,99,101,0,69,110,251,176,252,246,168,198,135,207,97,204,0,187,72,+ 134,109,105,116,0,68,148,98,108,176,109,152,101,121,10,171,77,97,120,32,195,191,17,7,+ 41,0,187,87,104,101,153,32,195,70,169,116,117,110,101,0,6,194,165,18,128,99,251,132,+ 207,227,138,15,70,111,105,108,16,230,15,72,196,111,103,114,97,112,164,99,16,230,169,10,+ 15,80,196,121,99,104,114,172,250,101,199,226,152,10,207,177,216,100,172,143,158,0,83,186,+ 139,103,151,0,73,110,99,155,97,115,176,216,107,32,111,102,10,202,32,146,143,141,246,168,+ 182,98,121,143,49,0,187,72,130,103,159,77,130,0,68,181,186,111,121,131,202,32,146,156,+ 141,246,159,144,115,0,68,101,97,151,0,83,153,167,137,252,144,115,241,240,118,134,137,209,+ 4,108,101,102,234,136,138,135,207,209,4,114,105,103,104,234,136,138,171,68,114,228,32,207,+ 155,129,216,103,101,41,0,84,101,109,112,134,130,99,101,0,71,188,176,209,146,116,163,32,+ 221,108,10,118,163,117,132,195,163,183,99,208,178,10,158,131,171,77,97,120,32,195,191,17,+ 7,41,10,224,191,18,7,41,0,187,68,205,105,108,0,69,110,251,176,252,246,168,198,135,+ 207,97,204,0,187,84,111,119,134,0,69,110,251,176,252,246,168,198,135,207,97,204,0,187,+ 83,116,129,0,67,152,118,134,116,131,202,32,146,156,141,246,159,144,162,146,254,16,0,187,+ 77,111,152,0,67,152,118,134,116,131,202,32,146,156,141,246,159,144,162,146,254,16,0,187,+ 83,117,110,0,67,152,118,134,116,131,202,32,146,156,141,246,159,144,162,146,254,16,0,74,+ 117,100,103,101,109,178,0,67,155,175,176,177,216,100,172,156,158,128,136,138,171,140,115,137,+ 235,118,132,114,111,172,41,0,187,87,169,108,100,0,67,152,118,134,116,131,202,32,146,156,+ 141,246,159,144,162,146,254,16,0,77,134,99,184,121,0,40,4,108,118,108,46,17,41,128,+ 76,205,153,32,202,204,10,3,43,19,220,249,2,43,20,128,99,193,115,0,86,139,239,0,+ 40,4,108,118,108,46,17,41,128,76,205,153,32,202,204,10,3,43,19,220,249,2,43,20,+ 128,99,193,115,0,69,129,151,0,40,4,108,118,108,46,17,41,128,76,205,153,32,202,204,+ 10,3,43,19,220,249,2,43,20,128,99,193,115,0,77,129,115,0,40,4,108,118,108,46,+ 17,41,128,76,205,153,32,202,204,10,3,43,19,220,249,2,43,20,128,99,193,115,0,74,+ 202,105,116,134,0,40,4,108,118,108,46,17,41,128,76,205,153,32,202,204,10,3,43,19,+ 220,249,2,43,20,128,99,193,115,0,83,175,184,110,0,40,4,108,118,108,46,17,41,128,+ 76,205,153,32,202,204,10,3,43,19,220,249,2,43,20,128,99,193,115,0,85,216,239,0,+ 40,4,108,118,108,46,17,41,128,76,205,153,32,202,204,10,3,43,19,220,249,2,43,20,+ 128,99,193,115,0,78,101,112,116,117,110,101,0,40,4,108,118,108,46,17,41,128,76,205,+ 153,32,202,204,10,3,43,19,220,249,2,43,20,128,99,193,115,0,80,108,117,146,0,40,+ 4,108,118,108,46,17,41,128,76,205,153,32,202,204,10,3,43,19,220,249,2,43,20,128,+ 99,193,115,0,80,108,130,101,137,88,0,40,4,108,118,108,46,17,41,128,76,205,153,32,+ 202,204,10,3,43,19,220,249,2,43,20,128,99,193,115,0,67,134,181,0,40,4,108,118,+ 108,46,17,41,128,76,205,153,32,202,204,10,3,43,19,220,249,2,43,20,128,99,193,115,+ 0,69,114,105,115,0,40,4,108,118,108,46,17,41,128,76,205,153,32,202,204,10,3,43,+ 19,220,249,2,43,20,128,99,193,115,0,70,97,109,105,108,105,129,0,68,181,186,111,121,+ 143,49,128,216,100,172,10,198,165,237,114,32,225,230,227,138,252,216,100,172,143,69,110,251,+ 159,102,154,101,156,144,115,128,207,237,114,32,225,0,71,114,105,109,0,68,181,186,111,121,+ 143,49,128,216,100,172,10,198,165,237,114,32,225,241,227,133,252,216,100,172,143,69,110,251,+ 168,4,65,99,181,128,207,237,114,32,225,0,73,110,99,130,116,175,105,152,0,68,181,186,+ 111,121,143,49,128,216,100,172,10,198,165,237,114,32,225,230,227,133,4,17,10,216,100,172,+ 143,69,110,251,159,110,117,109,98,134,168,4,144,115,128,207,237,114,32,225,0,84,163,105,+ 115,109,130,0,65,100,133,97,143,71,196,133,83,101,163,16,10,146,143,49,128,246,168,198,+ 165,237,114,32,225,0,65,184,97,0,65,100,133,15,70,111,105,108,16,230,15,72,196,111,+ 103,114,97,112,164,99,16,241,169,32,15,80,196,121,99,104,114,172,250,101,102,102,167,137,+ 146,156,49,128,246,159,198,165,225,0,87,114,97,105,151,0,67,155,175,176,177,216,100,172,+ 10,3,82,129,101,4,32,158,16,241,115,101,116,131,109,152,101,157,207,191,48,0,83,105,+ 103,105,108,0,67,152,118,134,116,131,163,183,144,162,165,192,207,177,115,233,108,211,216,100,+ 172,143,115,117,105,116,0,79,117,105,106,97,0,67,152,118,134,116,131,163,183,144,162,165,+ 192,207,177,115,233,108,211,216,100,172,143,216,107,10,3,45,49,128,192,115,105,122,101,0,+ 69,99,146,112,150,115,109,0,65,100,133,15,78,101,103,175,188,250,146,10,177,216,100,172,+ 143,158,241,3,45,141,192,115,105,122,101,0,73,109,109,111,150,116,101,0,68,181,186,111,+ 121,131,252,216,100,172,10,182,165,225,241,103,97,165,191,18,0,65,110,107,104,0,67,155,+ 175,132,177,218,112,157,195,97,10,216,100,172,143,158,16,230,100,181,186,111,121,10,163,183,+ 111,151,219,158,115,0,68,101,106,177,86,117,0,65,100,133,177,3,82,159,83,101,163,16,+ 10,146,143,49,128,246,168,198,165,237,114,32,225,0,72,101,120,0,65,100,133,15,80,196,+ 121,99,104,114,172,250,207,97,10,216,100,172,143,158,16,230,100,181,186,111,121,10,163,183,+ 111,151,219,158,115,0,84,216,99,101,0,65,100,133,177,2,66,108,117,132,83,101,163,16,+ 10,146,143,49,128,246,168,198,165,237,114,32,225,0,77,101,199,117,109,0,65,100,133,177,+ 8,80,184,112,108,132,83,101,163,16,10,146,143,49,128,246,168,198,165,237,114,32,225,0,+ 67,114,121,112,226,100,0,67,155,175,132,252,218,112,105,176,111,102,156,49,128,246,159,136,+ 138,165,237,114,32,225,0,187,83,148,108,0,67,155,175,176,97,10,8,76,101,103,139,100,+ 129,121,128,158,10,171,140,115,137,235,118,132,114,111,172,41,0,66,150,99,107,32,72,196,+ 101,0,85,112,103,114,227,132,205,134,121,10,8,112,149,32,142,138,98,121,143,49,128,108,+ 205,153,0,79,118,134,115,146,99,107,0,4,43,49,128,198,115,108,111,116,10,97,118,97,+ 105,150,98,108,132,165,115,203,112,0,67,108,101,129,130,99,132,83,163,101,0,65,108,183,+ 182,130,133,112,238,131,135,10,115,203,112,32,129,132,4,17,37,128,111,102,102,0,72,152,+ 101,0,15,70,111,105,108,16,230,15,72,196,111,103,114,97,112,164,99,16,230,249,15,80,+ 196,121,99,104,114,172,250,144,162,97,112,112,101,129,143,17,88,128,109,169,132,111,102,116,+ 139,0,82,134,196,183,83,184,112,108,239,0,82,134,196,108,131,99,210,116,10,191,141,108,+ 181,115,0,67,114,121,115,116,163,32,66,163,108,0,4,43,49,128,240,115,117,109,97,98,+ 108,132,115,108,111,116,0,84,153,181,218,112,101,0,4,67,153,181,226,163,32,80,238,115,+ 128,163,119,97,121,162,240,116,97,165,209,9,80,108,130,101,116,16,10,198,102,169,32,237,+ 114,32,109,210,116,10,170,159,4,112,149,32,225,0,71,114,97,98,98,134,0,80,134,109,+ 130,189,121,10,103,97,165,2,166,142,138,112,219,236,0,87,97,115,116,101,102,117,108,0,+ 80,134,109,130,189,121,10,103,97,165,217,199,115,136,138,244,32,236,0,84,129,111,137,77,+ 134,99,142,116,0,8,84,129,111,234,182,97,112,112,101,129,156,17,88,128,109,169,132,102,+ 155,113,117,189,121,10,165,209,115,203,112,0,80,108,130,101,137,77,134,99,142,116,0,9,+ 80,108,130,101,234,182,97,112,112,101,129,156,17,88,128,109,169,132,102,155,113,117,189,121,+ 10,165,209,115,203,112,0,83,101,159,77,152,101,121,0,82,97,105,115,132,209,99,97,112,+ 32,152,10,135,116,134,181,137,101,129,110,159,135,10,244,32,201,133,207,191,17,16,0,66,+ 108,130,107,0,7,68,111,176,110,111,151,233,63,0,77,228,105,99,32,84,114,105,99,107,+ 0,4,80,160,233,32,144,115,128,99,130,10,98,132,112,184,99,235,115,168,102,114,172,32,+ 209,4,115,203,112,0,72,105,134,111,103,108,121,112,104,0,4,45,141,65,110,116,101,241,+ 2,45,141,142,138,244,32,236,0,68,105,155,99,146,114,39,131,67,117,116,0,82,134,196,+ 183,66,210,131,66,108,135,138,4,49,128,226,109,132,112,219,65,110,116,101,241,191,141,112,+ 219,114,196,108,0,80,197,137,66,114,239,104,0,4,166,192,115,105,122,101,0,79,118,134,+ 115,146,99,107,32,80,108,239,0,4,43,49,128,198,115,108,111,116,10,97,118,97,105,150,+ 98,108,132,165,115,203,112,0,76,105,113,117,105,100,175,105,152,0,65,108,183,182,130,133,+ 112,238,131,135,10,115,203,112,32,129,132,4,17,37,128,111,102,102,0,71,108,111,119,32,+ 85,112,0,15,70,111,105,108,16,230,15,72,196,111,103,114,97,112,164,99,16,230,249,15,+ 80,196,121,99,104,114,172,250,144,162,97,112,112,101,129,143,17,88,128,109,169,132,111,102,+ 116,139,0,82,134,196,183,71,108,117,116,0,82,134,196,108,131,99,210,116,10,191,141,108,+ 181,115,0,79,109,139,32,71,108,111,98,101,0,11,83,112,167,186,163,128,182,109,97,121,+ 10,97,112,112,101,129,32,165,130,157,111,102,10,209,4,65,114,99,130,177,80,238,115,0,+ 79,98,115,134,118,97,146,114,121,0,9,80,108,130,101,234,182,165,237,114,156,240,115,117,+ 109,97,98,108,250,129,101,177,247,211,215,220,102,169,32,151,101,105,114,10,115,112,167,105,+ 102,105,159,4,112,149,32,225,0,78,154,203,32,84,152,103,0,80,134,109,130,189,121,10,+ 103,97,165,2,166,142,138,112,219,236,0,82,167,121,99,108,172,130,99,121,0,80,134,109,+ 130,189,121,10,103,97,165,217,199,115,136,138,244,32,236,0,84,129,111,137,84,121,218,152,+ 0,8,84,129,111,234,182,97,112,112,101,129,156,17,88,128,109,169,132,102,155,113,117,189,+ 121,10,165,209,115,203,112,0,80,108,130,101,137,84,121,218,152,0,9,80,108,130,101,234,+ 182,97,112,112,101,129,156,17,88,128,109,169,132,102,155,113,117,189,121,10,165,209,115,203,+ 112,0,77,152,101,157,84,155,101,0,82,97,105,115,132,209,99,97,112,32,152,10,135,116,+ 134,181,137,101,129,110,159,135,10,244,32,201,133,207,191,17,16,0,65,110,226,109,175,116,+ 134,0,15,43,49,128,255,83,108,111,116,0,73,108,108,239,105,152,0,4,80,160,233,32,+ 144,115,128,165,115,203,112,10,109,97,157,235,118,132,130,143,69,110,251,101,109,178,16,241,+ 15,69,199,226,152,16,230,130,100,47,169,32,97,143,83,101,163,16,0,80,101,186,111,103,+ 108,121,112,104,0,4,45,141,65,110,116,101,241,3,45,141,199,115,136,138,244,32,236,0,+ 82,101,116,240,0,82,134,196,183,66,210,131,66,108,135,138,4,117,110,108,105,109,105,116,+ 253,128,226,109,181,241,191,141,112,219,114,196,108,0,80,163,101,116,116,101,0,4,166,192,+ 115,105,122,101,0,85,110,99,172,109,152,32,84,228,0,83,203,112,32,235,131,177,102,155,+ 211,6,85,110,99,172,109,152,32,158,0,82,129,132,84,228,0,83,203,112,32,235,131,177,+ 102,155,211,3,82,129,132,158,0,78,101,103,175,188,132,84,228,0,78,101,120,137,98,97,+ 115,132,101,199,226,152,231,203,112,10,255,200,102,155,132,249,98,167,172,176,15,78,101,103,+ 175,188,101,0,70,111,105,183,84,228,0,78,101,120,137,98,97,115,132,101,199,226,152,231,+ 203,112,10,255,200,102,155,132,249,98,167,172,176,15,70,111,105,108,0,72,196,111,103,114,+ 97,112,164,99,32,84,228,0,78,101,120,137,98,97,115,132,101,199,226,152,231,203,112,10,+ 255,200,102,155,132,249,98,167,172,176,15,72,196,111,103,114,97,112,164,99,0,80,196,121,+ 99,104,114,172,132,84,228,0,78,101,120,137,98,97,115,132,101,199,226,152,231,203,112,10,+ 255,200,102,155,132,249,98,167,172,176,15,80,196,121,99,104,114,172,101,0,73,110,118,181,+ 116,109,139,137,84,228,0,65,102,116,219,100,101,102,101,175,233,10,209,66,210,131,66,108,+ 135,100,241,103,97,165,191,17,0,86,148,99,104,219,84,228,0,65,100,100,131,152,132,4,+ 86,148,99,104,134,10,207,209,110,101,120,137,115,203,112,0,66,210,131,84,228,0,82,134,+ 196,108,131,151,101,156,66,210,131,66,108,135,100,0,83,116,130,100,129,133,84,228,0,71,+ 188,176,177,102,155,101,156,77,101,103,177,83,116,130,100,129,133,80,238,0,67,104,129,109,+ 32,84,228,0,71,188,176,177,102,155,211,8,77,101,103,177,65,114,99,130,177,80,238,0,+ 77,101,116,101,169,32,84,228,0,71,188,176,177,102,155,211,9,77,101,103,177,67,153,181,+ 226,163,32,80,238,0,66,117,102,102,111,152,32,84,228,0,71,188,176,177,102,155,101,156,+ 77,101,103,177,66,117,102,102,111,152,32,80,238,0,72,130,100,157,84,228,0,71,188,176,+ 191,141,112,219,243,2,225,128,151,200,114,117,110,10,171,87,105,108,183,247,132,191,18,7,+ 41,0,71,129,98,228,132,84,228,0,71,188,176,191,141,112,219,117,110,239,168,3,199,115,+ 144,128,151,200,114,117,110,10,171,87,105,108,183,247,132,191,18,7,41,0,69,151,134,101,+ 163,32,84,228,0,71,188,176,177,102,155,211,11,83,112,167,186,163,32,80,238,0,67,148,+ 112,152,32,84,228,0,73,110,105,226,163,32,182,249,98,111,210,116,219,112,238,131,165,110,+ 101,120,116,10,115,203,112,32,129,132,102,155,101,0,68,148,98,108,132,84,228,0,71,188,+ 176,177,218,112,157,195,151,211,110,101,120,137,246,159,4,84,228,16,156,68,148,98,108,132,+ 84,228,32,101,120,99,108,117,100,253,0,74,117,103,103,108,132,84,228,0,4,166,192,115,+ 105,122,211,110,101,120,137,236,0,68,54,32,84,228,0,82,134,196,108,131,165,110,101,120,+ 137,115,203,112,10,115,116,129,137,97,137,191,48,0,84,111,112,45,202,32,84,228,0,67,+ 155,175,132,202,32,146,143,17,10,2,67,172,109,152,128,158,162,171,140,115,137,235,118,132,+ 114,111,172,41,0,83,112,101,159,84,228,0,71,188,176,191,141,112,219,115,107,105,112,112,+ 168,66,108,135,133,151,200,114,117,110,10,171,87,105,108,183,247,132,191,18,7,41,0,79,+ 114,98,105,116,163,32,84,228,0,85,112,103,114,227,132,4,17,10,98,121,254,32,108,205,+ 153,115,0,69,240,172,157,84,228,0,68,148,98,108,176,237,114,32,109,152,101,121,10,171,+ 77,97,120,32,195,191,17,7,41,0,83,109,163,183,66,108,135,100,0,0,66,105,103,32,+ 66,108,135,100,0,0,187,79,120,0,80,160,233,32,177,17,10,115,101,116,131,109,152,101,+ 157,207,36,48,0,187,72,148,115,101,0,70,105,114,115,137,192,105,162,100,114,97,119,110,+ 32,102,154,132,100,111,119,110,0,187,67,108,117,98,0,65,108,183,67,108,117,98,32,144,+ 162,129,132,100,101,98,117,102,102,253,0,187,70,105,115,104,0,67,129,100,131,100,114,97,+ 119,110,32,102,154,132,100,111,119,110,10,97,102,116,219,244,32,192,170,253,0,187,87,135,+ 100,111,119,0,65,108,183,68,105,97,109,152,133,144,162,129,132,100,101,98,117,102,102,253,+ 0,187,72,111,147,0,68,105,115,182,50,32,216,100,172,10,182,112,219,192,170,253,0,187,+ 77,130,154,108,101,0,45,49,32,72,130,133,83,105,122,101,0,187,87,163,108,0,69,120,+ 186,177,108,129,103,132,98,108,135,100,0,187,87,104,101,153,0,32,165,55,32,182,103,101,+ 116,10,100,114,97,119,110,32,102,154,132,100,111,119,110,0,187,65,114,109,0,68,167,155,+ 97,115,132,108,205,153,32,111,102,10,170,159,112,149,32,225,0,187,80,115,121,99,164,99,+ 0,140,115,137,112,150,157,53,32,144,115,0,187,71,111,227,0,65,108,183,83,112,227,132,+ 144,162,129,132,100,101,98,117,102,102,253,0,187,87,175,134,0,83,116,129,137,119,105,151,+ 10,48,32,199,115,144,115,0,187,83,134,112,178,0,65,102,116,219,80,150,157,169,32,68,+ 105,115,144,241,163,119,97,121,131,100,114,97,119,32,51,32,144,115,0,187,80,105,108,108,+ 129,0,67,129,100,131,170,159,112,155,118,105,148,115,108,121,10,151,200,65,110,116,132,129,+ 132,100,101,98,117,102,102,253,0,187,69,121,101,0,78,111,32,155,112,101,97,137,142,138,+ 116,121,112,176,151,200,236,0,187,77,148,151,0,80,150,157,152,108,157,49,32,142,138,116,+ 121,112,132,151,200,236,0,187,80,108,130,116,0,65,108,183,102,154,132,144,162,129,132,100,+ 101,98,117,102,102,253,0,187,78,101,253,108,101,0,80,150,157,152,108,157,49,32,225,0,+ 187,72,101,227,0,65,108,183,72,101,129,137,144,162,129,132,100,101,98,117,102,102,253,0,+ 187,84,111,111,151,0,76,210,132,36,49,32,112,134,10,198,170,253,0,187,77,129,107,0,+ 65,108,183,102,154,132,182,129,211,100,114,97,119,110,32,102,154,132,100,111,119,110,0,187,+ 70,108,135,116,0,66,97,115,132,232,131,249,174,129,132,104,163,118,253,0,67,114,105,109,+ 115,152,32,72,101,129,116,0,79,110,132,216,100,172,32,158,10,199,115,97,98,108,159,205,+ 134,157,225,0,67,134,117,108,101,130,32,66,153,108,0,70,169,99,176,49,32,198,146,10,+ 163,119,97,121,131,98,132,246,253,0,65,109,98,219,65,99,169,110,0,70,108,105,112,131,+ 130,133,115,104,117,102,102,108,101,162,163,183,255,144,115,0,86,134,100,130,137,76,101,97,+ 102,0,65,108,183,182,100,101,98,117,102,102,168,117,110,226,183,49,32,158,231,196,100,0,+ 86,105,196,101,137,86,181,221,0,86,134,157,108,129,103,132,98,108,135,100,0,66,152,117,+ 131,67,129,100,0,0,174,67,129,100,0,217,173,0,87,105,108,133,67,129,100,0,67,130,+ 32,98,132,239,168,97,131,130,157,115,117,105,116,0,71,150,115,131,67,129,100,0,215,128,+ 173,10,6,18,32,165,19,128,99,251,132,146,10,100,181,186,111,157,144,0,83,116,101,153,+ 32,67,129,100,0,215,128,173,10,119,164,108,132,151,200,136,138,115,116,97,121,131,165,225,+ 0,83,146,110,132,67,129,100,0,2,166,232,162,110,111,32,216,107,32,169,231,117,105,116,+ 0,71,196,133,67,129,100,0,191,141,242,151,105,162,198,200,104,153,133,165,142,138,97,137,+ 139,133,195,236,0,76,117,99,107,157,67,129,100,0,6,194,165,19,128,99,251,211,102,169,+ 32,3,43,18,128,173,10,6,194,165,21,128,99,251,211,207,119,165,191,20,0,70,111,105,+ 108,0,2,166,99,193,115,0,72,196,111,103,114,97,112,164,99,0,217,173,0,80,196,121,+ 99,104,114,172,101,0,215,128,173,0,78,101,103,175,188,101,0,15,166,158,231,108,111,116,+ 0,71,196,133,83,101,163,0,69,129,110,32,191,51,128,222,32,151,105,162,198,200,243,130,+ 133,115,248,115,0,82,159,83,101,163,0,82,101,186,105,103,103,219,151,105,162,198,4,49,+ 128,226,109,101,0,66,108,117,132,83,101,163,0,67,155,175,176,209,9,80,108,130,101,234,+ 136,138,102,169,32,102,135,163,32,170,159,4,112,149,32,225,16,10,195,201,133,105,102,143,+ 104,153,100,128,165,142,138,171,140,115,137,235,118,132,114,111,172,41,0,80,184,112,108,132,+ 83,101,163,0,67,155,175,176,177,8,84,129,111,234,136,138,222,143,199,115,144,168,171,140,+ 115,137,235,118,132,114,111,172,41,0,65,114,99,130,177,80,238,0,67,203,210,132,252,195,+ 202,32,146,204,8,32,84,129,111,234,182,146,10,98,132,239,159,105,109,109,101,199,175,153,+ 121,0,74,117,109,98,111,32,65,114,99,130,177,80,238,0,67,203,210,132,252,195,202,32,+ 146,204,8,32,84,129,111,234,182,146,10,98,132,239,159,105,109,109,101,199,175,153,121,0,+ 77,101,103,177,65,114,99,130,177,80,238,0,67,203,210,132,252,195,202,32,146,204,8,32,+ 84,129,111,234,182,146,10,98,132,239,159,105,109,109,101,199,175,153,121,0,67,153,181,226,+ 163,32,80,238,0,67,203,210,132,252,195,202,32,146,204,9,32,80,108,130,101,234,182,146,+ 10,98,132,239,159,105,109,109,101,199,175,153,121,0,74,117,109,98,111,32,67,153,181,226,+ 163,32,80,238,0,67,203,210,132,252,195,202,32,146,204,9,32,80,108,130,101,234,182,146,+ 10,98,132,239,159,105,109,109,101,199,175,153,121,0,77,101,103,177,67,153,181,226,163,32,+ 80,238,0,67,203,210,132,252,195,202,32,146,204,9,32,80,108,130,101,234,182,146,10,98,+ 132,239,159,105,109,109,101,199,175,153,121,0,83,116,130,100,129,133,80,238,0,67,203,210,+ 132,252,195,202,32,146,204,4,32,80,160,233,128,182,146,10,227,133,207,237,114,32,100,167,+ 107,0,74,117,109,98,111,32,83,116,130,100,129,133,80,238,0,67,203,210,132,252,195,202,+ 32,146,204,4,32,80,160,233,128,182,146,10,227,133,207,237,114,32,100,167,107,0,77,101,+ 103,177,83,116,130,100,129,133,80,238,0,67,203,210,132,252,195,202,32,146,204,4,32,80,+ 160,233,128,182,146,10,227,133,207,237,114,32,100,167,107,0,66,117,102,102,111,152,32,80,+ 238,0,67,203,210,132,252,195,202,32,146,204,4,32,158,128,144,115,0,74,117,109,98,111,+ 32,66,117,102,102,111,152,32,80,238,0,67,203,210,132,252,195,202,32,146,204,4,32,158,+ 128,144,115,0,77,101,103,177,66,117,102,102,111,152,32,80,238,0,67,203,210,132,252,195,+ 202,32,146,204,4,32,158,128,144,115,0,83,112,167,186,163,32,80,238,0,67,203,210,132,+ 252,195,202,32,146,204,11,32,83,112,167,186,163,128,182,146,10,98,132,239,159,105,109,109,+ 101,199,175,153,121,0,74,117,109,98,111,32,83,112,167,186,163,32,80,238,0,67,203,210,+ 132,252,195,202,32,146,204,11,32,83,112,167,186,163,128,182,146,10,98,132,239,159,105,109,+ 109,101,199,175,153,121,0,77,101,103,177,83,112,167,186,163,32,80,238,0,67,203,210,132,+ 252,195,202,32,146,204,11,32,83,112,167,186,163,128,182,146,10,98,132,239,159,105,109,109,+ 101,199,175,153,121,0,82,159,68,167,107,0,217,199,115,136,138,205,134,157,236,0,+};+const uint8_t text_pairs[128][2] = {{16,32},{97,114},{97,110},{115,32},{101,32},{100,32},{101,114},{105,110},{99,129},{116,32},{100,10},{101,110},{77,117},{17,128},{104,130},{32,4},{136,100},{140,108},{116,111},{111,107},{111,117},{147,134},{108,97},{116,104},{111,110},{101,108},{97,99},{114,101},{10,4},{121,32},{74,149},{101,133},{150,121},{102,32},{115,10},{97,108},{104,105},{135,32},{43,141},{101,99},{101,138},{111,114},{112,160},{7,40},{111,109},{145,116},{145,137},{97,116},{101,131},{97,32},{139,116},{14,32},{179,88},{101,115},{144,131},{108,32},{117,114},{84,104},{116,114},{185,132},{105,118},{178,108},{148,110},{5,36},{142,133},{164,112},{17,32},{111,161},{111,108},{97,135},{136,133},{100,105},{105,131},{114,190},{117,112},{104,111},{156,18},{101,118},{104,139},{146,32},{184,114},{151,132},{111,115},{101,10},{171,67},{212,208},{213,189},{180,194},{114,130},{3,166},{99,111},{134,32},{128,174},{115,153},{119,206},{154,104},{214,157},{142,100},{116,105},{97,100},{97,103},{7,32},{44,32},{32,115},{67,193},{135,103},{116,128},{104,97},{201,100},{121,148},{154,107},{117,115},{99,152},{44,10},{105,161},{170,168},{101,223},{221,167},{245,116},{103,188},{218,155},{130,138},{101,128},{142,99},{4,141},{101,100},{143,18},{158,32}};++static char *expand(char *o, char *end, int c) {+ if (c < 0x80) {+ if (o < end) *o++ = (char)c;+ return o;+ }+ o = expand(o, end, text_pairs[c - 0x80][0]);+ return expand(o, end, text_pairs[c - 0x80][1]);+}++const char *text_get(int idx, int part) {+ static char bufs[4][220];+ static int k;+ char *b = bufs[k = (k + 1) & 3], *o = b;+ const uint8_t *p = text_blob + text_off[idx];+ if (part)+ while (*p++) {}+ while (*p) o = expand(o, b + sizeof bufs[0] - 1, *p++);+ *o = 0;+ return b;+}++const uint16_t text_off[N_TEXTS] = {0,5,33,63,96,128,146,163,180,199,217,236,256,276,297,319,344,392,439,471,496,574,597,624,660,683,736,745,771,816,843,888,935,962,989,1038,1069,1097,1137,1181,1226,1259,1300,1345,1402,1439,1464,1503,1535,1579,1607,1665,1690,1726,1794,1837,1870,1917,1947,2008,2055,2094,2129,2172,2237,2282,2333,2382,2438,2502,2555,2590,2613,2658,2712,2772,2809,2844,2876,2924,2957,2999,3041,3086,3135,3195,3233,3248,3265,3311,3331,3393,3422,3453,3480,3531,3572,3594,3634,3682,3710,3750,3781,3832,3861,3923,3956,4017,4037,4068,4116,4141,4192,4260,4299,4342,4381,4430,4467,4503,4552,4608,4663,4697,4737,4764,4824,4863,4914,4953,4999,5016,5034,5054,5072,5091,5114,5163,5196,5249,5278,5333,5375,5418,5457,5492,5532,5568,5606,5638,5703,5758,5781,5829,5851,5891,5914,5934,5955,5974,6002,6070,6102,6126,6175,6225,6244,6263,6287,6311,6335,6368,6393,6428,6461,6494,6527,6562,6596,6629,6666,6700,6736,6769,6803,6854,6900,6957,6990,7042,7078,7111,7152,7188,7217,7254,7286,7326,7358,7392,7423,7457,7491,7522,7558,7610,7635,7663,7718,7743,7771,7812,7855,7895,7910,7950,7977,8021,8037,8072,8107,8163,8187,8232,8289,8315,8344,8384,8426,8466,8484,8539,8568,8606,8621,8651,8673,8716,8755,8805,8852,8889,8920,8942,8972,9000,9030,9062,9098,9140,9166,9206,9251,9273,9302,9341,9383,9411,9442,9452,9462,9485,9513,9539,9573,9601,9623,9641,9659,9688,9713,9732,9756,9776,9811,9849,9872,9895,9919,9936,9960,9979,10007,10028,10060,10090,10120,10152,10173,10182,10190,10214,10244,10273,10297,10325,10365,10376,10389,10402,10417,10445,10469,10531,10570,10610,10656,10700,10742,10790,10836,10874,10918,10960,10987,11020,11051,11094,11143,11190};+const joker_info_t joker_info[N_JOKER] = {+ {1, 2, 1}, /* Joker */+ {1, 5, 1}, /* Greedy Joker */+ {1, 5, 1}, /* Lusty Joker */+ {1, 5, 1}, /* Wrathful Joker */+ {1, 5, 1}, /* Gluttonous Joker */+ {1, 3, 1}, /* Jolly Joker */+ {1, 4, 1}, /* Zany Joker */+ {1, 4, 1}, /* Mad Joker */+ {1, 4, 1}, /* Crazy Joker */+ {1, 4, 1}, /* Droll Joker */+ {1, 3, 1}, /* Sly Joker */+ {1, 4, 1}, /* Wily Joker */+ {1, 4, 1}, /* Clever Joker */+ {1, 4, 1}, /* Devious Joker */+ {1, 4, 1}, /* Crafty Joker */+ {1, 5, 1}, /* Half Joker */+ {2, 8, 1}, /* Joker Stencil */+ {2, 7, 0}, /* Four Fingers */+ {2, 5, 1}, /* Mime */+ {1, 1, 0}, /* Credit Card */+ {2, 6, 1}, /* Ceremonial Dagger */+ {1, 5, 1}, /* Banner */+ {1, 5, 1}, /* Mystic Summit */+ {2, 6, 1}, /* Marble Joker */+ {2, 5, 1}, /* Loyalty Card */+ {1, 5, 1}, /* 8 Ball */+ {1, 4, 1}, /* Misprint */+ {2, 5, 1}, /* Dusk */+ {1, 5, 1}, /* Raised Fist */+ {1, 4, 0}, /* Chaos the Clown */+ {2, 8, 1}, /* Fibonacci */+ {2, 7, 1}, /* Steel Joker */+ {1, 4, 1}, /* Scary Face */+ {1, 4, 1}, /* Abstract Joker */+ {1, 4, 0}, /* Delayed Gratification */+ {2, 6, 1}, /* Hack */+ {2, 5, 0}, /* Pareidolia */+ {1, 5, 1}, /* Gros Michel */+ {1, 4, 1}, /* Even Steven */+ {1, 4, 1}, /* Odd Todd */+ {1, 4, 1}, /* Scholar */+ {1, 4, 1}, /* Business Card */+ {1, 5, 1}, /* Supernova */+ {1, 6, 1}, /* Ride the Bus */+ {2, 5, 1}, /* Space Joker */+ {1, 4, 0}, /* Egg */+ {2, 6, 1}, /* Burglar */+ {2, 6, 1}, /* Blackboard */+ {1, 5, 1}, /* Runner */+ {1, 5, 1}, /* Ice Cream */+ {3, 8, 1}, /* DNA */+ {1, 3, 0}, /* Splash */+ {1, 5, 1}, /* Blue Joker */+ {2, 6, 0}, /* Sixth Sense */+ {2, 6, 1}, /* Constellation */+ {2, 5, 1}, /* Hiker */+ {1, 4, 1}, /* Faceless Joker */+ {1, 4, 1}, /* Green Joker */+ {1, 4, 1}, /* Superposition */+ {1, 4, 1}, /* To Do List */+ {1, 4, 1}, /* Cavendish */+ {2, 6, 1}, /* Card Sharp */+ {1, 5, 1}, /* Red Card */+ {2, 7, 1}, /* Madness */+ {1, 4, 1}, /* Square Joker */+ {2, 6, 1}, /* Seance */+ {1, 6, 1}, /* Riff-raff */+ {2, 7, 1}, /* Vampire */+ {2, 7, 0}, /* Shortcut */+ {2, 7, 1}, /* Hologram */+ {3, 8, 1}, /* Vagabond */+ {3, 8, 1}, /* Baron */+ {2, 7, 0}, /* Cloud 9 */+ {2, 6, 0}, /* Rocket */+ {3, 8, 1}, /* Obelisk */+ {2, 7, 0}, /* Midas Mask */+ {2, 5, 1}, /* Luchador */+ {1, 5, 1}, /* Photograph */+ {2, 6, 0}, /* Gift Card */+ {2, 6, 0}, /* Turtle Bean */+ {2, 6, 1}, /* Erosion */+ {1, 6, 1}, /* Reserved Parking */+ {1, 4, 1}, /* Mail-In Rebate */+ {2, 5, 0}, /* To the Moon */+ {1, 4, 1}, /* Hallucination */+ {1, 6, 1}, /* Fortune Teller */+ {1, 4, 0}, /* Juggler */+ {1, 4, 0}, /* Drunkard */+ {2, 6, 1}, /* Stone Joker */+ {1, 6, 0}, /* Golden Joker */+ {2, 6, 1}, /* Lucky Cat */+ {3, 8, 1}, /* Baseball Card */+ {2, 6, 1}, /* Bull */+ {2, 6, 1}, /* Diet Cola */+ {2, 6, 0}, /* Trading Card */+ {2, 5, 1}, /* Flash Card */+ {1, 5, 1}, /* Popcorn */+ {2, 6, 1}, /* Spare Trousers */+ {3, 8, 1}, /* Ancient Joker */+ {2, 6, 1}, /* Ramen */+ {1, 4, 1}, /* Walkie Talkie */+ {2, 6, 1}, /* Seltzer */+ {2, 6, 1}, /* Castle */+ {1, 4, 1}, /* Smiley Face */+ {3, 9, 1}, /* Campfire */+ {1, 5, 1}, /* Golden Ticket */+ {2, 5, 0}, /* Mr. Bones */+ {2, 6, 1}, /* Acrobat */+ {2, 6, 1}, /* Sock and Buskin */+ {1, 4, 1}, /* Swashbuckler */+ {2, 6, 0}, /* Troubadour */+ {2, 6, 1}, /* Certificate */+ {2, 7, 0}, /* Smeared Joker */+ {2, 6, 1}, /* Throwback */+ {1, 4, 1}, /* Hanging Chad */+ {2, 7, 1}, /* Rough Gem */+ {2, 7, 1}, /* Bloodstone */+ {2, 7, 1}, /* Arrowhead */+ {2, 7, 1}, /* Onyx Agate */+ {2, 6, 1}, /* Glass Joker */+ {2, 5, 0}, /* Showman */+ {2, 6, 1}, /* Flower Pot */+ {3, 10, 1}, /* Blueprint */+ {3, 8, 1}, /* Wee Joker */+ {2, 7, 0}, /* Merry Andy */+ {2, 4, 0}, /* Oops! All 6s */+ {2, 6, 1}, /* The Idol */+ {2, 6, 1}, /* Seeing Double */+ {2, 7, 1}, /* Matador */+ {3, 8, 1}, /* Hit the Road */+ {3, 8, 1}, /* The Duo */+ {3, 8, 1}, /* The Trio */+ {3, 8, 1}, /* The Family */+ {3, 8, 1}, /* The Order */+ {3, 8, 1}, /* The Tribe */+ {3, 7, 1}, /* Stuntman */+ {3, 8, 0}, /* Invisible Joker */+ {3, 10, 1}, /* Brainstorm */+ {2, 6, 0}, /* Satellite */+ {1, 5, 1}, /* Shoot the Moon */+ {3, 7, 1}, /* Driver's License */+ {2, 6, 1}, /* Cartomancer */+ {2, 8, 0}, /* Astronomer */+ {3, 8, 1}, /* Burnt Joker */+ {2, 7, 1}, /* Bootstraps */+ {4, 20, 1}, /* Caino */+ {4, 20, 1}, /* Triboulet */+ {4, 20, 1}, /* Yorick */+ {4, 20, 0}, /* Chicot */+ {4, 20, 1}, /* Perkeo */+};+const blind_info_t blind_info[N_BLIND] = {+ {3, 2, 0, 0, 0x000000}, /* Small Blind */+ {4, 3, 0, 0, 0x000000}, /* Big Blind */+ {5, 4, 6, 0, 0xB95B08}, /* The Ox */+ {5, 4, 2, 0, 0x5186A8}, /* The House */+ {5, 4, 1, 0, 0xB9CB92}, /* The Club */+ {5, 4, 2, 0, 0x3E85BD}, /* The Fish */+ {5, 4, 1, 0, 0xA9A295}, /* The Window */+ {5, 4, 1, 0, 0xA84024}, /* The Hook */+ {5, 4, 1, 0, 0x575757}, /* The Manacle */+ {5, 8, 2, 0, 0x8A59A5}, /* The Wall */+ {5, 4, 2, 0, 0x50BF7C}, /* The Wheel */+ {5, 4, 2, 0, 0x6865F3}, /* The Arm */+ {5, 4, 1, 0, 0xEFC03C}, /* The Psychic */+ {5, 4, 1, 0, 0xB95C96}, /* The Goad */+ {5, 4, 2, 0, 0xC6E0EB}, /* The Water */+ {5, 4, 5, 0, 0x439A4F}, /* The Serpent */+ {5, 4, 1, 0, 0x7E6752}, /* The Pillar */+ {5, 4, 3, 0, 0x4B71E4}, /* The Eye */+ {5, 4, 2, 0, 0xAE718E}, /* The Mouth */+ {5, 4, 4, 0, 0x709284}, /* The Plant */+ {5, 2, 2, 0, 0x5C6E31}, /* The Needle */+ {5, 4, 1, 0, 0xAC9DB4}, /* The Head */+ {5, 4, 3, 0, 0xB52D2D}, /* The Tooth */+ {5, 4, 2, 0, 0x6A3847}, /* The Mark */+ {5, 4, 2, 0, 0xE56A2F}, /* The Flint */+ {8, 4, 10, 1, 0xAC3232}, /* Crimson Heart */+ {8, 4, 10, 1, 0x009CFD}, /* Cerulean Bell */+ {8, 4, 10, 1, 0xFDA200}, /* Amber Acorn */+ {8, 4, 10, 1, 0x56A786}, /* Verdant Leaf */+ {8, 12, 10, 1, 0x8A71E1}, /* Violet Vessel */+};+const tag_info_t tag_info[N_TAG] = {{0},{0},{2},{0},{0},{0},{0},{0},{0},{2},{0},{2},{2},{2},{2},{2},{0},{0},{0},{0},{2},{0},{2},{0}};+const char *const hand_names[12] = {"Flush Five","Flush House","Five of a Kind","Straight Flush","Four of a Kind","Full House","Flush","Straight","Three of a Kind","Two Pair","Pair","High Card"};diff --git a/games/balatro/src/data.h b/games/balatro/src/data.hnew file mode 100644index 00000000..9f29c39d--- /dev/null+++ b/games/balatro/src/data.h@@ -0,0 +1,35 @@+/* Generated by tools/mkdata.py from Balatro's game data: do not edit. */+#ifndef DATA_H+#define DATA_H+#include <stdint.h>++#define TXT_JOKER 0+#define N_JOKER 150+#define TXT_CONS 150+#define N_CONS 52+#define TXT_VOUCH 202+#define N_VOUCH 32+#define TXT_TAG 234+#define N_TAG 24+#define TXT_BLIND 258+#define N_BLIND 30+#define TXT_EXTRA 288+#define N_EXTRA 32+#define N_TEXTS 320+enum { J_JOKER, J_GREEDY_JOKER, J_LUSTY_JOKER, J_WRATHFUL_JOKER, J_GLUTTENOUS_JOKER, J_JOLLY, J_ZANY, J_MAD, J_CRAZY, J_DROLL, J_SLY, J_WILY, J_CLEVER, J_DEVIOUS, J_CRAFTY, J_HALF, J_STENCIL, J_FOUR_FINGERS, J_MIME, J_CREDIT_CARD, J_CEREMONIAL, J_BANNER, J_MYSTIC_SUMMIT, J_MARBLE, J_LOYALTY_CARD, J_8_BALL, J_MISPRINT, J_DUSK, J_RAISED_FIST, J_CHAOS, J_FIBONACCI, J_STEEL_JOKER, J_SCARY_FACE, J_ABSTRACT, J_DELAYED_GRAT, J_HACK, J_PAREIDOLIA, J_GROS_MICHEL, J_EVEN_STEVEN, J_ODD_TODD, J_SCHOLAR, J_BUSINESS, J_SUPERNOVA, J_RIDE_THE_BUS, J_SPACE, J_EGG, J_BURGLAR, J_BLACKBOARD, J_RUNNER, J_ICE_CREAM, J_DNA, J_SPLASH, J_BLUE_JOKER, J_SIXTH_SENSE, J_CONSTELLATION, J_HIKER, J_FACELESS, J_GREEN_JOKER, J_SUPERPOSITION, J_TODO_LIST, J_CAVENDISH, J_CARD_SHARP, J_RED_CARD, J_MADNESS, J_SQUARE, J_SEANCE, J_RIFF_RAFF, J_VAMPIRE, J_SHORTCUT, J_HOLOGRAM, J_VAGABOND, J_BARON, J_CLOUD_9, J_ROCKET, J_OBELISK, J_MIDAS_MASK, J_LUCHADOR, J_PHOTOGRAPH, J_GIFT, J_TURTLE_BEAN, J_EROSION, J_RESERVED_PARKING, J_MAIL, J_TO_THE_MOON, J_HALLUCINATION, J_FORTUNE_TELLER, J_JUGGLER, J_DRUNKARD, J_STONE, J_GOLDEN, J_LUCKY_CAT, J_BASEBALL, J_BULL, J_DIET_COLA, J_TRADING, J_FLASH, J_POPCORN, J_TROUSERS, J_ANCIENT, J_RAMEN, J_WALKIE_TALKIE, J_SELZER, J_CASTLE, J_SMILEY, J_CAMPFIRE, J_TICKET, J_MR_BONES, J_ACROBAT, J_SOCK_AND_BUSKIN, J_SWASHBUCKLER, J_TROUBADOUR, J_CERTIFICATE, J_SMEARED, J_THROWBACK, J_HANGING_CHAD, J_ROUGH_GEM, J_BLOODSTONE, J_ARROWHEAD, J_ONYX_AGATE, J_GLASS, J_RING_MASTER, J_FLOWER_POT, J_BLUEPRINT, J_WEE, J_MERRY_ANDY, J_OOPS, J_IDOL, J_SEEING_DOUBLE, J_MATADOR, J_HIT_THE_ROAD, J_DUO, J_TRIO, J_FAMILY, J_ORDER, J_TRIBE, J_STUNTMAN, J_INVISIBLE, J_BRAINSTORM, J_SATELLITE, J_SHOOT_THE_MOON, J_DRIVERS_LICENSE, J_CARTOMANCER, J_ASTRONOMER, J_BURNT, J_BOOTSTRAPS, J_CAINO, J_TRIBOULET, J_YORICK, J_CHICOT, J_PERKEO };+enum { C_FOOL, C_MAGICIAN, C_HIGH_PRIESTESS, C_EMPRESS, C_EMPEROR, C_HEIROPHANT, C_LOVERS, C_CHARIOT, C_JUSTICE, C_HERMIT, C_WHEEL_OF_FORTUNE, C_STRENGTH, C_HANGED_MAN, C_DEATH, C_TEMPERANCE, C_DEVIL, C_TOWER, C_STAR, C_MOON, C_SUN, C_JUDGEMENT, C_WORLD, C_MERCURY, C_VENUS, C_EARTH, C_MARS, C_JUPITER, C_SATURN, C_URANUS, C_NEPTUNE, C_PLUTO, C_PLANET_X, C_CERES, C_ERIS, C_FAMILIAR, C_GRIM, C_INCANTATION, C_TALISMAN, C_AURA, C_WRAITH, C_SIGIL, C_OUIJA, C_ECTOPLASM, C_IMMOLATE, C_ANKH, C_DEJA_VU, C_HEX, C_TRANCE, C_MEDIUM, C_CRYPTID, C_SOUL, C_BLACK_HOLE };+enum { V_OVERSTOCK_NORM, V_CLEARANCE_SALE, V_HONE, V_REROLL_SURPLUS, V_CRYSTAL_BALL, V_TELESCOPE, V_GRABBER, V_WASTEFUL, V_TAROT_MERCHANT, V_PLANET_MERCHANT, V_SEED_MONEY, V_BLANK, V_MAGIC_TRICK, V_HIEROGLYPH, V_DIRECTORS_CUT, V_PAINT_BRUSH, V_OVERSTOCK_PLUS, V_LIQUIDATION, V_GLOW_UP, V_REROLL_GLUT, V_OMEN_GLOBE, V_OBSERVATORY, V_NACHO_TONG, V_RECYCLOMANCY, V_TAROT_TYCOON, V_PLANET_TYCOON, V_MONEY_TREE, V_ANTIMATTER, V_ILLUSION, V_PETROGLYPH, V_RETCON, V_PALETTE };+enum { TAG_UNCOMMON, TAG_RARE, TAG_NEGATIVE, TAG_FOIL, TAG_HOLO, TAG_POLYCHROME, TAG_INVESTMENT, TAG_VOUCHER, TAG_BOSS, TAG_STANDARD, TAG_CHARM, TAG_METEOR, TAG_BUFFOON, TAG_HANDY, TAG_GARBAGE, TAG_ETHEREAL, TAG_COUPON, TAG_DOUBLE, TAG_JUGGLE, TAG_D_SIX, TAG_TOP_UP, TAG_SKIP, TAG_ORBITAL, TAG_ECONOMY };+enum { BL_SMALL, BL_BIG, BL_OX, BL_HOUSE, BL_CLUB, BL_FISH, BL_WINDOW, BL_HOOK, BL_MANACLE, BL_WALL, BL_WHEEL, BL_ARM, BL_PSYCHIC, BL_GOAD, BL_WATER, BL_SERPENT, BL_PILLAR, BL_EYE, BL_MOUTH, BL_PLANT, BL_NEEDLE, BL_HEAD, BL_TOOTH, BL_MARK, BL_FLINT, BL_FINAL_HEART, BL_FINAL_BELL, BL_FINAL_ACORN, BL_FINAL_LEAF, BL_FINAL_VESSEL };+extern const uint8_t text_blob[];+extern const uint8_t text_pairs[128][2];+const char *text_get(int idx, int part); /* 0 name, 1 description; decoded */+extern const uint16_t text_off[N_TEXTS];+typedef struct { uint8_t rarity, cost, bp; } joker_info_t;+extern const joker_info_t joker_info[N_JOKER];+typedef struct { uint8_t dollars, mult2, min, showdown; uint32_t colour; } blind_info_t;+extern const blind_info_t blind_info[N_BLIND];+typedef struct { int8_t min_ante; } tag_info_t;+extern const tag_info_t tag_info[N_TAG];+extern const char *const hand_names[12];+#endifdiff --git a/games/balatro/src/draw.c b/games/balatro/src/draw.cnew file mode 100644index 00000000..ca8fd0e4--- /dev/null+++ b/games/balatro/src/draw.c@@ -0,0 +1,669 @@+/* Drawing the game's pieces: panels and buttons in Balatro's style, cards+ * with their enhancements, seals and editions, and the info boxes. */+#include <string.h>+#include "assets.h"+#include "jokers.h"+#include "ui.h"+#include "util.h"++const C popup_col[] = {C_BLUE, C_RED, C_RED, C_MONEY, C_ATTN, C_GREEN, HEXC(0x4CA893), C_TAROT, C_PLANET,+ C_SPECTRAL, C_GREY};++void panel(int x, int y, int w, int h, int r, C c, int emboss) {+ if (emboss) g_rrect(x, y + emboss, w, h, r, darken(c, 13));+ g_rrect(x, y, w, h, r, c);+}++/* a calculator key under a button: small text on a light key */+void keycap(int x, int y, const char *label) {+ int w = g_textw(label, T_SMALL) + 6;+ g_rrect(x - w / 2, y + 1, w, 10, 2, HEXC(0x9AA8AB));+ g_rrect(x - w / 2, y, w, 10, 2, HEXC(0xE8EEEF));+ g_text(label, x - w / 2 + 3, y + 1, T_SMALL, HEXC(0x3A4749));+}++/* a Balatro button: colour, emboss, white outline when focused; the label is+ centred by its capitals. Text size by the caller (F_LABEL, F_NAME...) */+void button(int x, int y, int w, int h, C c, const char *label, int flags, int focused, int enabled) {+ if (!enabled) c = C_INACTIVE;+ if (focused) x += focus_shake;+ if (focused) g_rrect(x - 2, y - 2, w + 4, h + 5, 5, C_WHITE);+ panel(x, y, w, h, 4, c, 2);+ g_text_box(label, x, y, w, h, flags | T_SHADOW, enabled ? C_WHITE : HEXC(0xBBBBBB));+}++/* Balatro keeps its numbers big and only shrinks long ones: large, large+ with condensed digits, medium, condensed medium, small, then a shorter e+ notation */+int text_fit(const char *t, int maxw, int big) {+ /* one step at a time: a pixel narrower, then two pixels lower, ... */+ static const uint16_t steps[5] = {T_LARGE, T_LARGE | T_COND, T_MED, T_MED | T_COND, T_SMALL};+ int i = big & T_LARGE ? 0 : big & T_MED ? 2 : 4;+ for (; i < 5; i++)+ if (g_textw(t, steps[i]) <= maxw) return steps[i];+ return T_SMALL;+}++int num_fit(char *t, double v, int maxw, int big) {+ fmt_commas(t, v);+ int f = text_fit(t, maxw, big);+ if (g_textw(t, f) <= maxw || v < 1000) return f;+ /* 1.2e9 */+ int e = 0;+ double m = v < 0 ? -v : v;+ while (m >= 10) m /= 10, e++;+ for (int dec = 2; dec >= 0; dec--) {+ char *o = t;+ if (v < 0) *o++ = '-';+ long r = (long)(m * (dec == 2 ? 100 : dec == 1 ? 10 : 1) + 0.5);+ int ee = e;+ if (r >= (dec == 2 ? 1000 : dec == 1 ? 100 : 10)) r /= 10, ee++;+ o = fmt_int(o, dec == 2 ? r / 100 : dec == 1 ? r / 10 : r);+ if (dec) {+ *o++ = '.';+ if (dec == 2) *o++ = (char)('0' + r / 10 % 10);+ *o++ = (char)('0' + r % 10);+ }+ *o++ = 'e';+ fmt_int(o, ee);+ f = text_fit(t, maxw, big);+ if (g_textw(t, f) <= maxw) return f;+ }+ return T_SMALL;+}++/* "to earn $$$$" / "Reward: $$$$", centred at cx; the gap before the+ dollars closes up when the row is long (the final bosses' eight) */+void label_dollars(const char *label, int n, int cx, int y, int maxw) {+ char d[12];+ int i = 0;+ for (; i < n && i < 10; i++) d[i] = '$';+ d[i] = 0;+ int lw = g_textw(label, F_LABEL), dw = g_textw(d, F_LABEL), gap = 4;+ while (gap > 2 && lw + gap + dw > maxw) gap--;+ int x = cx - (lw + gap + dw) / 2;+ g_text(label, x, y, F_LABEL, C_WHITE);+ g_text(d, x + lw + gap, y, F_LABEL, C_MONEY);+}++void fmt_money(char *o, int v) {+ if (v < 0) *o++ = '-', v = -v;+ *o++ = '$';+ fmt_int(o, v);+}++/* the price tag over a shop item, x its centre */+void draw_price(int x, int y, int cost, int affordable) {+ char t[12];+ fmt_money(t, cost);+ int w = g_textw(t, T_LARGE) + 10;+ panel(x - w / 2, y, w, 15, 4, C_BLACK, 1);+ g_text_box(t, x - w / 2, y, w, 15, F_VALUE, affordable ? C_MONEY : C_RED);+}++static const uint8_t enh_sprite[9] = {1, 4, 5, 6, 8, 9, 2, 3, 7};+static const uint8_t suit_row[4] = {3, 0, 1, 2};++void draw_card_back(int x, int y, int scale) { g_sprite(SPR_E, x, y, 0, scale); }++void draw_card(const vcard_t *c, int x, int y, int scale, int focused) {+ (void)focused;+ if (c->down) {+ g_sprite(SPR_E, x + 1, y + 2, FX_SHADOW, scale);+ draw_card_back(x, y, scale);+ return;+ }+ int fx = c->ed & 7;+ if (c->flags & CF_DEBUFF) fx |= FX_DIM;+ g_sprite(SPR_E + enh_sprite[c->enh], x + 1, y + 2, FX_SHADOW, scale);+ g_sprite(SPR_E + enh_sprite[c->enh], x, y, fx, scale);+ if (c->enh != E_STONE) g_sprite(SPR_F + suit_row[c->suit & 3] * 13 + c->rank - 2, x, y, fx, scale);+ if (c->seal) g_sprite(SPR_SEAL + c->seal - 1, x, y, 0, scale);+ if (c->flags & CF_DEBUFF) g_sprite(SPR_DEBUFF, x, y, 0, scale);+}++static const uint8_t soul_of[6] = {J_HOLOGRAM, J_CAINO, J_TRIBOULET, J_YORICK, J_CHICOT, J_PERKEO};++void draw_joker_sprite(int id, int ed, int x, int y, int scale, int flags) {+ int fx = (ed & 7) | (flags & (FX_DIM | FX_GREY));+ int spr = SPR_J + id;+ const art_sprite_t *s = &art_sprites[spr];+ if (flags & 0x100) { /* face down */+ g_sprite(SPR_E, x + 1, y + 2, FX_SHADOW, scale);+ g_sprite(SPR_E, x, y, 0, scale);+ return;+ }+ int ox = (CW - s->w) / 2, oy = id == J_WEE ? (CH - s->h) / 2 : 0;+ g_sprite(spr, x + ox + 1, y + oy + 2, FX_SHADOW, scale);+ g_sprite(spr, x + ox, y + oy, fx, scale);+ for (int k = 0; k < 6; k++)+ if (soul_of[k] == id) {+ /* the floating face of the legendary jokers (and Hologram) */+ int bob = (int)((g_time / 90) % 16);+ bob = bob < 8 ? bob / 3 : (16 - bob) / 3;+ g_sprite(SPR_JSOUL + k, x, y - 1 - bob, fx & ~FX_EDMASK, scale);+ }+}++void draw_cons_sprite(int id, int ed, int x, int y, int scale, int flags) {+ int fx = (ed & 7) | (flags & (FX_DIM | FX_GREY));+ g_sprite(SPR_C + id, x + 1, y + 2, FX_SHADOW, scale);+ g_sprite(SPR_C + id, x, y, fx, scale);+ if (id == C_SOUL) {+ int bob = (int)((g_time / 90) % 16);+ bob = bob < 8 ? bob / 3 : (16 - bob) / 3;+ g_sprite(SPR_SOULGEM, x, y - 1 - bob, 0, scale);+ }+}++int item_sprite(const sitem_t *it) {+ switch (it->kind) {+ case IT_JOKER: return SPR_J + it->id;+ case IT_CONS: return SPR_C + it->id;+ case IT_VOUCHER: return SPR_V + it->id;+ case IT_PACK: return SPR_P + it->id;+ }+ return SPR_E + 1;+}++void draw_item(const sitem_t *it, int x, int y, int scale, int flags) {+ switch (it->kind) {+ case IT_JOKER: draw_joker_sprite(it->id, it->ed, x, y, scale, flags); break;+ case IT_CONS: draw_cons_sprite(it->id, it->ed, x, y, scale, flags); break;+ case IT_CARD: {+ vcard_t v = {0};+ v.rank = it->card.rank, v.suit = it->card.suit, v.enh = it->card.enh, v.ed = it->card.ed, v.seal = it->card.seal;+ draw_card(&v, x, y, scale, 0);+ break;+ }+ default:+ g_sprite(item_sprite(it), x + 1, y + 2, FX_SHADOW, scale);+ g_sprite(item_sprite(it), x, y, flags & (FX_DIM | FX_GREY), scale);+ }+}++void draw_blind_chip(int b, int x, int y, int scale) {+ g_sprite(SPR_B + b, x + 1, y + 1, FX_SHADOW, scale);+ g_sprite(SPR_B + b, x, y, 0, scale);+}++/* ------------------------------------------------------------ descriptions */+static char vars[6][24];++static void v_int(int k, long v) { fmt_int(vars[k], v); }+static void v_num(int k, double v) { fmt_short(vars[k], v); }+static void v_str(int k, const char *s) {+ int i = 0;+ for (; s[i] && i < 23; i++) vars[k][i] = s[i];+ vars[k][i] = 0;+}+static const char *hand_name(int h) { return hand_names[h]; }++static int count_used(int enh, int rank9) {+ int n = 0;+ for (int i = 0; i < R.ncards_alloc; i++) {+ if (!(R.cards[i].flags & CF_USED)) continue;+ if (rank9 ? (R.cards[i].enh != E_STONE && R.cards[i].rank == 9) : (enh < 0 ? R.cards[i].enh != E_NONE : R.cards[i].enh == enh)) n++;+ }+ return n;+}++static void joker_vars(int id, const joker_t *j) {+ double p = probs_normal();+ double x = j ? j->x : 1;+ int a = j ? j->a : 0;+ switch (id) {+ case J_JOKER: v_int(0, 4); break;+ case J_GREEDY_JOKER: case J_LUSTY_JOKER: case J_WRATHFUL_JOKER: case J_GLUTTENOUS_JOKER: {+ static const char *const s[4] = {"Diamond", "Heart", "Spade", "Club"};+ v_int(0, 3);+ v_str(1, s[id - J_GREEDY_JOKER]);+ break;+ }+ case J_JOLLY: v_int(0, 8), v_str(1, hand_name(H_PAIR)); break;+ case J_ZANY: v_int(0, 12), v_str(1, hand_name(H_THREE_KIND)); break;+ case J_MAD: v_int(0, 10), v_str(1, hand_name(H_TWO_PAIR)); break;+ case J_CRAZY: v_int(0, 12), v_str(1, hand_name(H_STRAIGHT)); break;+ case J_DROLL: v_int(0, 10), v_str(1, hand_name(H_FLUSH)); break;+ case J_SLY: v_int(0, 50), v_str(1, hand_name(H_PAIR)); break;+ case J_WILY: v_int(0, 100), v_str(1, hand_name(H_THREE_KIND)); break;+ case J_CLEVER: v_int(0, 80), v_str(1, hand_name(H_TWO_PAIR)); break;+ case J_DEVIOUS: v_int(0, 100), v_str(1, hand_name(H_STRAIGHT)); break;+ case J_CRAFTY: v_int(0, 80), v_str(1, hand_name(H_FLUSH)); break;+ case J_HALF: v_int(0, 20), v_int(1, 3); break;+ case J_STENCIL: {+ double s;+ joker_t t = {0};+ t.id = J_STENCIL;+ joker_x_display(&t, &s);+ v_num(0, j ? s : 1);+ break;+ }+ case J_CREDIT_CARD: v_int(0, 20); break;+ case J_CEREMONIAL: v_int(0, a); break;+ case J_BANNER: v_int(0, 30); break;+ case J_MYSTIC_SUMMIT: v_int(0, 15), v_int(1, 0); break;+ case J_LOYALTY_CARD: {+ v_int(0, 4), v_int(1, 5);+ int rem = j ? (5 - 1 - (R.hands_played - j->b)) % 6 : 5;+ if (rem < 0) rem += 6;+ if (rem == 0) v_str(2, "Active!");+ else {+ char *o = fmt_int(vars[2], rem);+ str_cat(o, " remaining");+ }+ break;+ }+ case J_8_BALL: v_num(0, p), v_int(1, 4); break;+ case J_DUSK: v_int(0, 2); break;+ case J_CHAOS: v_int(0, 1); break;+ case J_FIBONACCI: v_int(0, 8); break;+ case J_STEEL_JOKER: v_num(0, 0.2), v_num(1, 1 + 0.2 * count_used(E_STEEL, 0)); break;+ case J_SCARY_FACE: v_int(0, 30); break;+ case J_ABSTRACT: v_int(0, 3), v_int(1, 3 * R.njokers); break;+ case J_DELAYED_GRAT: v_int(0, 2); break;+ case J_HACK: v_int(0, 2); break;+ case J_GROS_MICHEL: v_int(0, 15), v_num(1, p), v_int(2, 6); break;+ case J_EVEN_STEVEN: v_int(0, 4); break;+ case J_ODD_TODD: v_int(0, 31); break;+ case J_SCHOLAR: v_int(0, 4), v_int(1, 20); break;+ case J_BUSINESS: v_num(0, p), v_int(1, 2); break;+ case J_RIDE_THE_BUS: v_int(0, 1), v_int(1, a); break;+ case J_SPACE: v_num(0, p), v_int(1, 4); break;+ case J_EGG: v_int(0, 3); break;+ case J_BURGLAR: v_int(0, 3); break;+ case J_BLACKBOARD: v_int(0, 3), v_str(1, "Spades"), v_str(2, "Clubs"); break;+ case J_RUNNER: v_int(0, a), v_int(1, 15); break;+ case J_ICE_CREAM: v_int(0, j ? a : 100), v_int(1, 5); break;+ case J_BLUE_JOKER: v_int(0, 2), v_int(1, 2 * (R.phase == PH_ROUND ? R.ndeck : 52)); break;+ case J_CONSTELLATION: v_num(0, 0.1), v_num(1, x); break;+ case J_HIKER: v_int(0, 5); break;+ case J_FACELESS: v_int(0, 5), v_int(1, 3); break;+ case J_GREEN_JOKER: v_int(0, 1), v_int(1, 1), v_int(2, a); break;+ case J_TODO_LIST: v_int(0, 4), v_str(1, hand_name(j ? j->c : H_HIGH_CARD)); break;+ case J_CAVENDISH: v_int(0, 3), v_num(1, p), v_int(2, 1000); break;+ case J_CARD_SHARP: v_int(0, 3); break;+ case J_RED_CARD: v_int(0, 3), v_int(1, a); break;+ case J_MADNESS: v_num(0, 0.5), v_num(1, x); break;+ case J_SQUARE: v_int(0, a), v_int(1, 4); break;+ case J_SEANCE: v_str(0, hand_name(H_STRAIGHT_FLUSH)); break;+ case J_RIFF_RAFF: v_int(0, 2); break;+ case J_VAMPIRE: v_num(0, 0.1), v_num(1, x); break;+ case J_HOLOGRAM: v_num(0, 0.25), v_num(1, x); break;+ case J_VAGABOND: v_int(0, 4); break;+ case J_BARON: v_num(0, 1.5); break;+ case J_CLOUD_9: v_int(0, 1), v_int(1, count_used(0, 1)); break;+ case J_ROCKET: v_int(0, j ? a : 1), v_int(1, 2); break;+ case J_OBELISK: v_num(0, 0.2), v_num(1, x); break;+ case J_PHOTOGRAPH: v_int(0, 2); break;+ case J_GIFT: v_int(0, 1); break;+ case J_TURTLE_BEAN: v_int(0, j ? a : 5), v_int(1, 1); break;+ case J_EROSION: {+ int n = 0;+ for (int i = 0; i < R.ncards_alloc; i++) n += (R.cards[i].flags & CF_USED) != 0;+ int d = R.starting_deck - n;+ v_int(0, 4), v_int(1, d > 0 ? 4 * d : 0), v_int(2, R.starting_deck);+ break;+ }+ case J_RESERVED_PARKING: v_int(0, 1), v_num(1, p), v_int(2, 2); break;+ case J_MAIL: v_int(0, 5), v_str(1, rank_names[R.mail_rank]); break;+ case J_TO_THE_MOON: v_int(0, 1); break;+ case J_HALLUCINATION: v_num(0, p), v_int(1, 2); break;+ case J_FORTUNE_TELLER: v_int(0, 1), v_int(1, R.tarots_used); break;+ case J_JUGGLER: v_int(0, 1); break;+ case J_DRUNKARD: v_int(0, 1); break;+ case J_STONE: v_int(0, 25), v_int(1, 25 * count_used(E_STONE, 0)); break;+ case J_GOLDEN: v_int(0, 4); break;+ case J_LUCKY_CAT: v_num(0, 0.25), v_num(1, x); break;+ case J_BASEBALL: v_num(0, 1.5); break;+ case J_BULL: v_int(0, 2), v_int(1, 2 * (R.money > 0 ? R.money : 0)); break;+ case J_DIET_COLA: v_str(0, "Double Tag"); break;+ case J_TRADING: v_int(0, 3); break;+ case J_FLASH: v_int(0, 2), v_int(1, a); break;+ case J_POPCORN: v_int(0, j ? a : 20), v_int(1, 4); break;+ case J_TROUSERS: v_int(0, 2), v_str(1, hand_name(H_TWO_PAIR)), v_int(2, a); break;+ case J_ANCIENT: v_num(0, 1.5), v_str(1, suit_names[R.ancient_suit]); break;+ case J_RAMEN: v_num(0, j ? x : 2), v_num(1, 0.01); break;+ case J_WALKIE_TALKIE: v_int(0, 10), v_int(1, 4); break;+ case J_SELZER: v_int(0, j ? a : 10); break;+ case J_CASTLE: v_int(0, 3), v_str(1, suit_names[R.castle_suit]), v_int(2, a); break;+ case J_SMILEY: v_int(0, 5); break;+ case J_CAMPFIRE: v_num(0, 0.25), v_num(1, x); break;+ case J_TICKET: v_int(0, 4); break;+ case J_ACROBAT: v_int(0, 3); break;+ case J_SOCK_AND_BUSKIN: v_int(0, 2); break;+ case J_SWASHBUCKLER: {+ int s = 0;+ for (int i = 0; i < R.njokers; i++)+ if (&R.jokers[i] != j) s += joker_sell_value(&R.jokers[i]);+ v_int(0, s);+ break;+ }+ case J_TROUBADOUR: v_int(0, 2), v_int(1, 1); break;+ case J_CERTIFICATE: v_int(0, 1); break;+ case J_THROWBACK: v_num(0, 0.25), v_num(1, 1 + R.skips * 0.25); break;+ case J_HANGING_CHAD: v_int(0, 2); break;+ case J_ROUGH_GEM: v_int(0, 1); break;+ case J_BLOODSTONE: v_num(0, p), v_int(1, 2), v_num(2, 1.5); break;+ case J_ARROWHEAD: v_int(0, 50); break;+ case J_ONYX_AGATE: v_int(0, 7); break;+ case J_GLASS: v_num(0, 0.75), v_num(1, x); break;+ case J_FLOWER_POT: v_int(0, 3); break;+ case J_WEE: v_int(0, a), v_int(1, 8); break;+ case J_MERRY_ANDY: v_int(0, 3), v_int(1, -1); break;+ case J_IDOL: v_num(0, 2), v_str(1, rank_names[R.idol_rank]), v_str(2, suit_names_plural[R.idol_suit]); break;+ case J_SEEING_DOUBLE: v_int(0, 2); break;+ case J_MATADOR: v_int(0, 8); break;+ case J_HIT_THE_ROAD: v_num(0, 0.5), v_num(1, x); break;+ case J_DUO: v_num(0, 2), v_str(1, hand_name(H_PAIR)); break;+ case J_TRIO: v_num(0, 3), v_str(1, hand_name(H_THREE_KIND)); break;+ case J_FAMILY: v_num(0, 4), v_str(1, hand_name(H_FOUR_KIND)); break;+ case J_ORDER: v_num(0, 3), v_str(1, hand_name(H_STRAIGHT)); break;+ case J_TRIBE: v_num(0, 2), v_str(1, hand_name(H_FLUSH)); break;+ case J_STUNTMAN: v_int(0, 250), v_int(1, 2); break;+ case J_INVISIBLE: v_int(0, 2), v_int(1, a); break;+ case J_SATELLITE: {+ int n = 0;+ for (int k = 0; k < 12; k++) n += (R.planets_used_mask >> k) & 1;+ v_int(0, 1), v_int(1, n);+ break;+ }+ case J_SHOOT_THE_MOON: v_int(0, 13); break;+ case J_DRIVERS_LICENSE: v_int(0, 3), v_int(1, count_used(-1, 0)); break;+ case J_ASTRONOMER: break;+ case J_BOOTSTRAPS: v_int(0, 2), v_int(1, 5), v_int(2, 2 * (R.money / 5 > 0 ? R.money / 5 : 0)); break;+ case J_CAINO: v_int(0, 1), v_num(1, x); break;+ case J_TRIBOULET: v_int(0, 2); break;+ case J_YORICK: v_int(0, 1), v_int(1, 23), v_int(2, j ? j->b : 23), v_num(3, x); break;+ case J_PERKEO: v_int(0, 1); break;+ case J_OOPS: case J_PAREIDOLIA: case J_SPLASH: case J_SIXTH_SENSE: case J_SUPERPOSITION: case J_SHORTCUT:+ case J_MIDAS_MASK: case J_LUCHADOR: case J_MR_BONES: case J_SMEARED: case J_RING_MASTER: case J_BLUEPRINT:+ case J_BRAINSTORM: case J_CARTOMANCER: case J_BURNT: case J_CHICOT: case J_DNA: case J_MARBLE: case J_MIME:+ case J_RAISED_FIST: case J_MISPRINT: case J_SUPERNOVA: case J_FOUR_FINGERS:+ break;+ }+}++static const uint8_t planet_hand[12] = {H_PAIR, H_THREE_KIND, H_FULL_HOUSE, H_FOUR_KIND, H_FLUSH, H_STRAIGHT,+ H_TWO_PAIR, H_STRAIGHT_FLUSH, H_HIGH_CARD, H_FIVE_KIND, H_FLUSH_HOUSE,+ H_FLUSH_FIVE};+static const uint8_t lchips5[12] = {10, 8, 7, 8, 6, 5, 3, 6, 4, 4, 3, 2}, lmult[12] = {3, 4, 3, 4, 3, 2, 2, 3, 2, 1, 1, 1};++static void cons_vars(int id) {+ static const char *const enh[] = {"Lucky Card", "Mult Card", "Bonus Card", "Wild Card", "Steel Card", "Glass Card",+ "Gold Card", "Stone Card"};+ switch (id) {+ case C_MAGICIAN: v_int(0, 2), v_str(1, enh[0]); break;+ case C_EMPRESS: v_int(0, 2), v_str(1, enh[1]); break;+ case C_HEIROPHANT: v_int(0, 2), v_str(1, enh[2]); break;+ case C_LOVERS: v_int(0, 1), v_str(1, enh[3]); break;+ case C_CHARIOT: v_int(0, 1), v_str(1, enh[4]); break;+ case C_JUSTICE: v_int(0, 1), v_str(1, enh[5]); break;+ case C_DEVIL: v_int(0, 1), v_str(1, enh[6]); break;+ case C_TOWER: v_int(0, 1), v_str(1, enh[7]); break;+ case C_HIGH_PRIESTESS: case C_EMPEROR: v_int(0, 2); break;+ case C_HERMIT: v_int(0, 20); break;+ case C_WHEEL_OF_FORTUNE: v_num(0, probs_normal()), v_int(1, 4); break;+ case C_STRENGTH: case C_HANGED_MAN: case C_DEATH: v_int(0, 2); break;+ case C_TEMPERANCE: {+ int m = 0;+ for (int i = 0; i < R.njokers; i++) m += joker_sell_value(&R.jokers[i]);+ v_int(0, 50), v_int(1, m > 50 ? 50 : m);+ break;+ }+ case C_STAR: v_int(0, 3), v_str(1, "Diamonds"); break;+ case C_MOON: v_int(0, 3), v_str(1, "Clubs"); break;+ case C_SUN: v_int(0, 3), v_str(1, "Hearts"); break;+ case C_WORLD: v_int(0, 3), v_str(1, "Spades"); break;+ case C_FAMILIAR: v_int(0, 3); break;+ case C_GRIM: v_int(0, 2); break;+ case C_INCANTATION: v_int(0, 4); break;+ case C_ECTOPLASM: v_int(0, R.ecto_minus + 1); break;+ case C_IMMOLATE: v_int(0, 5), v_int(1, 20); break;+ case C_CRYPTID: v_int(0, 2); break;+ default:+ if (id >= C_MERCURY && id <= C_ERIS) {+ int h = planet_hand[id - C_MERCURY];+ v_int(0, R.hands[h].level), v_str(1, hand_name(h)), v_int(2, lmult[h]), v_int(3, lchips5[h] * 5);+ }+ }+}++static void other_vars(int kind, int id, const void *extra) {+ (void)extra;+ if (kind == TK_VOUCHER) {+ static const int16_t v[32] = {0, 25, 2, 2, 0, 0, 1, 1, 2, 2, 50, 0, 0, 1, 10, 1,+ 0, 50, 4, 2, 0, 0, 1, 1, 4, 4, 100, 0, 0, 1, 10, 1};+ if (id == V_OBSERVATORY) v_num(0, 1.5);+ else v_int(0, v[id]);+ } else if (kind == TK_TAG) {+ const int orb = extra ? *(const int *)extra : -1;+ switch (id) {+ case TAG_INVESTMENT: v_int(0, 25); break;+ case TAG_HANDY: v_int(0, 1), v_int(1, R.hands_played); break;+ case TAG_GARBAGE: v_int(0, 1), v_int(1, R.unused_discards); break;+ case TAG_JUGGLE: v_int(0, 3); break;+ case TAG_TOP_UP: v_int(0, 2); break;+ case TAG_SKIP: v_int(0, 5), v_int(1, (R.skips + 1) * 5); break;+ case TAG_ORBITAL: v_str(0, orb >= 0 ? hand_name(orb) : "[poker hand]"), v_int(1, 3); break;+ case TAG_ECONOMY: v_int(0, 40); break;+ }+ } else if (kind == TK_BLIND) {+ if (id == BL_OX) v_str(0, hand_name(R.most_played));+ } else if (kind == TK_PACK) {+ static const uint8_t n[5][3] = {{3, 5, 5}, {3, 5, 5}, {3, 5, 5}, {2, 4, 4}, {2, 4, 4}};+ v_int(0, id % 3 == 2 ? 2 : 1), v_int(1, n[id / 3][id % 3]);+ } else if (kind == TK_ENH) {+ switch (id) {+ case E_MULT: v_int(0, 4); break;+ case E_GLASS: v_int(0, 2), v_num(1, probs_normal()), v_int(2, 4); break;+ case E_STEEL: v_num(0, 1.5); break;+ case E_STONE: v_int(0, 50); break;+ case E_GOLD: v_int(0, 3); break;+ case E_LUCKY: v_num(0, probs_normal()), v_int(1, 20), v_int(2, 5), v_int(3, 20), v_int(4, 15); break;+ }+ } else if (kind == TK_EDITION) {+ static const int e[5] = {0, 50, 10, 0, 1};+ if (id == ED_POLY) v_num(0, 1.5);+ else v_int(0, e[id]);+ }+}++/* text index of an item's name/description */+static int text_index(int kind, int id) {+ switch (kind) {+ case TK_JOKER: return TXT_JOKER + id;+ case TK_CONS: return TXT_CONS + id;+ case TK_VOUCHER: return TXT_VOUCH + id;+ case TK_TAG: return TXT_TAG + id;+ case TK_BLIND: return TXT_BLIND + id;+ case TK_ENH: return TXT_EXTRA + id - 1;+ case TK_EDITION: return TXT_EXTRA + 8 + id - 1;+ case TK_SEAL: return TXT_EXTRA + 12 + id - 1;+ case TK_PACK: return TXT_EXTRA + 16 + id;+ }+ return 0;+}++static const char *tname(int kind, int id) { return text_get(text_index(kind, id), 0); }++void desc_text(char *out, int maxlen, int kind, int id, const void *extra) {+ for (int k = 0; k < 6; k++) vars[k][0] = 0;+ if (kind == TK_JOKER) joker_vars(id, (const joker_t *)extra);+ else if (kind == TK_CONS) cons_vars(id);+ else other_vars(kind, id, extra);+ const char *s = text_get(text_index(kind, id), 1);+ int n = 0;+ if (kind == TK_JOKER && id == J_MISPRINT) {+ /* the game shows a random number flickering here */+ char *o = str_cat(out, TC_MULT "+");+ o = fmt_int(o, (long)((g_time / 90) * 7 % 24));+ str_cat(o, TC_RESET " Mult");+ return;+ }+ if (kind == TK_BLIND && id == BL_WHEEL) {+ fmt_short(vars[5], probs_normal());+ for (const char *p = vars[5]; *p && n < maxlen - 1; p++) out[n++] = *p;+ }+ for (; *s && n < maxlen - 1; s++) {+ unsigned char c = (unsigned char)*s;+ if (c >= 0x11 && c <= 0x16) {+ for (const char *p = vars[c - 0x11]; *p && n < maxlen - 1; p++) out[n++] = *p;+ } else+ out[n++] = (char)c;+ }+ out[n] = 0;+}++/* ------------------------------------------------------------ info box */+static const char *const rarity_name[5] = {"", "Common", "Uncommon", "Rare", "Legendary"};+static const C rarity_col[5] = {0, HEXC(0x009DFF), HEXC(0x4BC292), HEXC(0xFE5F55), HEXC(0xB26CBB)};++/* the coloured pill under an info box (rarity, set, edition) */+#define BADGE_H 11+static void badge(int cx, int y, const char *label, C col, int w) {+ panel(cx - w / 2, y, w, BADGE_H, 5, col, 1);+ g_text_box(label, cx - w / 2, y, w, BADGE_H, F_LABEL, C_WHITE);+}++/* box: name, description on white, badges. Anchor: the item's rectangle+ * (x, y top, w width). The box goes below it, or above when there is no room. */+void draw_tooltip_for(int kind, int id, int ed, const void *extra, int ax, int ay, int aw) {+ static char d[200], d2[120];+ const char *name = tname(kind, id);+ char namebuf[40];+ d[0] = 0, d2[0] = 0;+ if (kind == TK_CARD) {+ /* playing card: "+11 chips" and its enhancement / seal */+ const vcard_t *c = (const vcard_t *)extra;+ char *o = namebuf;+ if (c->enh == E_STONE) o = str_cat(o, "Stone Card");+ else {+ o = str_cat(o, rank_names[c->rank]);+ o = str_cat(o, " of ");+ o = str_cat(o, suit_names_plural[c->suit & 3]);+ }+ name = namebuf;+ o = d;+ if (c->flags & CF_DEBUFF) o = str_cat(o, TC_MULT "Debuffed" TC_RESET "\nScores no chips\nand all abilities\nare disabled");+ else {+ if (c->enh != E_STONE) {+ o = str_cat(o, TC_CHIPS "+");+ o = fmt_int(o, card_chip_nominal(c->rank));+ o = str_cat(o, TC_RESET " chips");+ }+ int extra_chips = c->perma + (c->enh == E_BONUS ? 30 : 0);+ if (extra_chips) {+ o = str_cat(o, d[0] ? "\n" TC_CHIPS "+" : TC_CHIPS "+");+ o = fmt_int(o, extra_chips);+ o = str_cat(o, TC_RESET " extra chips");+ }+ if (c->enh && c->enh != E_BONUS) {+ char t[120];+ desc_text(t, sizeof t, TK_ENH, c->enh, 0);+ if (d[0]) o = str_cat(o, "\n");+ o = str_cat(o, t);+ }+ if (c->seal) desc_text(d2, sizeof d2, TK_SEAL, c->seal, 0);+ else if (c->ed) desc_text(d2, sizeof d2, TK_EDITION, c->ed, 0);+ }+ } else {+ desc_text(d, sizeof d, kind, id, extra);+ if (ed) desc_text(d2, sizeof d2, TK_EDITION, ed, 0);+ }+ /* size: the name (medium), the texts (small) on white, the badges */+ int lines = d[0] ? g_lines(d) : 0, lines2 = d2[0] ? g_lines(d2) : 0;+ int w = lines ? g_textw(d, F_TEXT) : 0;+ if (lines2 && g_textw(d2, F_TEXT) > w) w = g_textw(d2, F_TEXT);+ w += 10; /* white box padding */+ int nf = F_NAME;+ if (g_textw(name, T_MED) + 10 > w) w = g_textw(name, T_MED) + 10;+ if (w < 64) w = 64;+ w += 6; /* outer frame */+ const char *bl[3];+ C bc[3];+ int nb = 0;+ /* Blueprint and Brainstorm say whether they can copy their target */+ if (kind == TK_JOKER && (id == J_BLUEPRINT || id == J_BRAINSTORM) && extra) {+ const joker_t *jj = (const joker_t *)extra;+ int me = (int)(jj - R.jokers);+ if (me >= 0 && me < R.njokers) {+ int t = id == J_BRAINSTORM ? 0 : me + 1;+ int ok = t < R.njokers && t != me && joker_info[R.jokers[t].id].bp;+ bl[nb] = ok ? "compatible" : "incompatible", bc[nb++] = ok ? C_GREEN : C_RED;+ }+ }+ if (kind == TK_JOKER) bl[nb] = rarity_name[joker_info[id].rarity], bc[nb++] = rarity_col[joker_info[id].rarity];+ if (kind == TK_CONS) {+ int set = id <= C_WORLD ? 0 : id <= C_ERIS ? 1 : 2;+ bl[nb] = set == 0 ? "Tarot" : set == 1 ? "Planet" : "Spectral";+ bc[nb++] = set == 0 ? C_TAROT : set == 1 ? C_PLANET : C_SPECTRAL;+ }+ if (kind == TK_VOUCHER) bl[nb] = "Voucher", bc[nb++] = HEXC(0xFD682B);+ if (ed && nb < 3) bl[nb] = tname(TK_EDITION, ed), bc[nb++] = ed == ED_NEG ? HEXC(0x2A2A2A) : C_EDITION;+ int bw = 0;+ for (int i = 0; i < nb; i++)+ if (g_textw(bl[i], F_LABEL) + 14 > bw) bw = g_textw(bl[i], F_LABEL) + 14;+ if (bw < 48) bw = 48;+ /* heights: frame 3, name 15, white boxes (lines x 10 + 5), badges 13 each */+ int boxh = lines ? lines * 10 + 5 : 0, boxh2 = lines2 ? lines2 * 10 + 5 : 0;+ int h = 3 + 15 + boxh + (lines2 ? boxh2 + 3 : 0) + (nb ? 3 + nb * (BADGE_H + 2) : 0) + 3;+ int x = ax + aw / 2 - w / 2;+ if (x < SIDE_W + 1) x = SIDE_W + 1;+ if (x + w > 318) x = 318 - w;+ if (x < 2) x = 2;+ int y = ay - h - 4;+ if (y < 1 && ay > 30) {+ /* no room above a card in the middle of the screen: beside it, so its own+ buttons and the panels under it stay visible; never over the sidebar */+ int bx = ax + aw + 4;+ if (bx + w > 318) bx = ax - w - 4;+ if (bx >= SIDE_W + 1) x = bx, y = ay + CH / 2 - h / 2;+ if (y < 1) y = 1; /* else as high as it goes, over the card's top */+ }+ if (x < 2 || y < 1) x = x < 2 ? 2 : x, y = ay + CH + 6;+ if (y + h > 238) y = 238 - h;+ /* grey box with a dark edge, the name, then the texts on white */+ g_rrect(x - 1, y - 1, w + 2, h + 3, 6, HEXC(0x1D2628));+ g_rrect(x, y, w, h, 5, HEXC(0x4F6367));+ g_text_box(name, x, y + 3, w, 15, nf, C_WHITE);+ int yy = y + 3 + 15;+ if (lines) {+ g_rrect(x + 3, yy, w - 6, boxh, 4, C_WHITE);+ g_text(d, x + w / 2, yy + 3, F_TEXT | T_CENTER, C_TEXT_DARK);+ yy += boxh;+ }+ if (lines2) {+ yy += 3;+ g_rrect(x + 3, yy, w - 6, boxh2, 4, C_WHITE);+ g_text(d2, x + w / 2, yy + 3, F_TEXT | T_CENTER, C_TEXT_DARK);+ yy += boxh2;+ }+ if (nb) yy += 3;+ for (int i = 0; i < nb; i++, yy += BADGE_H + 2) badge(x + w / 2, yy, bl[i], bc[i], bw);+}++/* re-flows a text to a width (colour codes kept, lines joined) */+void wrap_text(char *out, int maxlen, const char *in, int width, int flags) {+ char word[48];+ int n = 0, line_w = 0, space_w = g_textw(" x", flags) - g_textw("x", flags);+ const char *p = in;+ while (*p && n < maxlen - 1) {+ while (*p == ' ' || *p == '\n') p++;+ if (!*p) break;+ int k = 0;+ while (*p && *p != ' ' && *p != '\n' && k < 47) word[k++] = *p++;+ word[k] = 0;+ int ww = g_textw(word, flags);+ if (line_w > 0 && line_w + space_w + ww > width) {+ out[n++] = '\n';+ line_w = 0;+ } else if (line_w > 0) {+ out[n++] = ' ';+ line_w += space_w;+ }+ for (int i = 0; i < k && n < maxlen - 1; i++) out[n++] = word[i];+ line_w += ww;+ }+ out[n] = 0;+}diff --git a/games/balatro/src/ev.c b/games/balatro/src/ev.cnew file mode 100644index 00000000..cec7880a--- /dev/null+++ b/games/balatro/src/ev.c@@ -0,0 +1,121 @@+#include "ev.h"+#include "game.h"+#include <string.h>++ev_t evq[MAXEV];+int ev_head, ev_tail;++void ev_reset(void) {+ /* events not shown yet are dropped: the interface resyncs */+ ev_head = ev_tail = 0;+}++ev_t *ev_push(int type) {+ if (ev_tail >= MAXEV - 1) {+ /* full: keep the most important ones by overwriting the last slot with a sync */+ evq[MAXEV - 1].type = EV_SYNC;+ ev_tail = MAXEV;+ return 0;+ }+ ev_t *e = &evq[ev_tail++];+ e->type = (uint8_t)type;+ e->t = e->b = e->c = 0;+ e->a = 0;+ e->d = 0;+ e->txt[0] = 0;+ e->p.w[0] = e->p.w[1] = 0;+ return e;+}++void ev_delay(int tenths) {+ ev_t *e = ev_push(EV_DELAY);+ if (e) e->a = (uint16_t)tenths;+}++double ev_getd(const ev_t *e) {+ double v;+ memcpy(&v, e->p.w, sizeof v);+ return v;+}+void ev_setd(ev_t *e, double v) { memcpy(e->p.w, &v, sizeof v); }++static void copy(ev_t *e, const char *s) {+ int i = 0;+ while (s && s[i]) i++;+ if (i > 11 && i - 5 <= 11 && s[i - 5] == ' ' && s[i - 4] == 'M' && s[i - 1] == 't') {+ /* a number and " Mult" (built in a buffer): keep the number, flag the suffix */+ int k;+ for (k = 0; k < i - 5; k++) e->txt[k] = s[k];+ e->txt[k] = 0;+ e->c |= 1;+ return;+ }+ if (i > 11) {+ /* long texts are constant strings: keep the pointer */+ e->txt[0] = 1;+ e->txt[1] = 0;+ e->p.s = s;+ return;+ }+ for (i = 0; s && s[i]; i++) e->txt[i] = s[i];+ e->txt[i] = 0;+}++static uint16_t target_id(int target, int idx) {+ if (target == TG_JOKER) return (idx >= 0 && idx < R.njokers) ? R.jokers[idx].uid : 0;+ if (target == TG_CONS) return (idx >= 0 && idx < R.ncons) ? R.cons[idx].uid : 0;+ return (uint16_t)idx;+}++void ev_popup(int target, int idx, const char *txt, int colour) {+ ev_t *e = ev_push(EV_POPUP);+ if (!e) return;+ e->t = (uint8_t)target;+ e->a = target_id(target, idx);+ e->b = (uint8_t)colour;+ copy(e, txt);+}++void ev_juice(int target, int idx) {+ ev_t *e = ev_push(EV_JUICE);+ if (!e) return;+ e->t = (uint8_t)target;+ e->a = target_id(target, idx);+}++void ev_hud(double chips, double mult) {+ ev_t *e = ev_push(EV_HUD);+ if (!e) return;+ ev_setd(e, chips);+ memcpy(e->txt, &mult, sizeof mult); /* mult travels in the text field */+}++void ev_money(void) {+ ev_t *e = ev_push(EV_MONEY);+ if (e) e->p.i = R.money;+}++void ev_card(int type, int ci, int b, int c) {+ ev_t *e = ev_push(type);+ if (!e) return;+ e->a = (uint16_t)ci;+ e->b = (uint8_t)b;+ e->c = (uint8_t)c;+}++void ev_card_set(int ci) {+ ev_t *e = ev_push(EV_CARD_SET);+ if (!e) return;+ const card_t *c = &R.cards[ci];+ e->a = (uint16_t)ci;+ e->p.card.rank = c->rank, e->p.card.suit = c->suit, e->p.card.enh = c->enh;+ e->p.card.ed = c->ed, e->p.card.seal = c->seal, e->p.card.flags = c->flags;+ e->p.card.perma = c->perma;+}++void ev_message(const char *s) {+ ev_t *e = ev_push(EV_MESSAGE);+ if (e) e->p.s = s;+}++void ev_sync(void) { ev_push(EV_SYNC); }diff --git a/games/balatro/src/ev.h b/games/balatro/src/ev.hnew file mode 100644index 00000000..cebbf333--- /dev/null+++ b/games/balatro/src/ev.h@@ -0,0 +1,75 @@+/* Events: what the rules did, in order, for the interface to animate. */+#ifndef EV_H+#define EV_H+#include <stdint.h>++enum {+ EV_NONE,+ EV_DELAY, /* a = tenths of a second (scaled by game speed) */+ EV_HUD, /* chips, mult shown in the hand box */+ EV_HANDNAME, /* a = hand (-1 clears), b = level shown */+ EV_ROUNDSCORE, /* v = round score */+ EV_MONEY, /* i = new amount (eased) */+ EV_HANDS, /* a = hands left */+ EV_DISCARDS, /* a = discards left */+ EV_POPUP, /* target (t, a), text (s or kind+value), colour */+ EV_JUICE, /* target (t, a): wiggle/pop */+ EV_CARD_MOVE, /* card a to area b (at the end), c = face down */+ EV_CARD_SET, /* card a takes attributes from payload */+ EV_CARD_DESTROY, /* card a, b = shatter */+ EV_CARD_SELECT, /* card a raised (b = 1) or lowered */+ EV_JOKER_ADD, /* uid, id, ed, position */+ EV_JOKER_REMOVE, /* uid, b = how (0 dissolve, 1 eaten/extinct fall, 2 sold) */+ EV_JOKER_SET, /* uid, ed, flags */+ EV_JOKER_ORDER, /* the logic order, in payload uids (up to 8 per event, a = offset) */+ EV_CONS_ADD, /* uid, id, ed */+ EV_CONS_REMOVE, /* uid */+ EV_LEVELUP, /* a = hand, b = new level, v/w chips/mult */+ EV_MESSAGE, /* big text in the middle: s */+ EV_BLIND_FLASH, /* the blind chip reacts (boss effect triggered) */+ EV_SORT, /* hand re-sorted: sync the visual hand order */+ EV_SYNC, /* everything shown takes the rules' state */+ EV_FLAME, /* score beats the blind: fire on chips x mult */+ EV_SHAKE,+};++/* popup targets */+enum { TG_PLAY, TG_HAND, TG_JOKER, TG_CONS, TG_DECK, TG_BLIND, TG_CENTER };+/* popup colours */+enum { PC_CHIPS, PC_MULT, PC_XMULT, PC_MONEY, PC_ATTN, PC_GREEN, PC_EDITION, PC_TAROT, PC_PLANET, PC_SPECTRAL,+ PC_GREY };++typedef struct {+ uint8_t type, t, b, c;+ uint16_t a;+ int16_t d;+ char txt[12]; /* popup text; longer ones point to a constant string in p.s */+ union {+ uint32_t w[2]; /* a double, copied in and out (no alignment needed) */+ int32_t i;+ const char *s;+ struct {+ uint8_t rank, suit, enh, ed, seal, flags;+ uint16_t perma;+ } card;+ } p;+} ev_t;+double ev_getd(const ev_t *e);+void ev_setd(ev_t *e, double v);++#define MAXEV 320+extern ev_t evq[MAXEV];+extern int ev_head, ev_tail;+void ev_reset(void);+ev_t *ev_push(int type);+void ev_delay(int tenths);+void ev_popup(int target, int idx, const char *txt, int colour);+void ev_popup_num(int target, int idx, const char *prefix, double v, const char *suffix, int colour);+void ev_juice(int target, int idx);+void ev_hud(double chips, double mult);+void ev_money(void);+void ev_card(int type, int ci, int b, int c);+void ev_card_set(int ci);+void ev_message(const char *s);+void ev_sync(void);+#endifdiff --git a/games/balatro/src/flame.c b/games/balatro/src/flame.cnew file mode 100644index 00000000..4d5e3433--- /dev/null+++ b/games/balatro/src/flame.c@@ -0,0 +1,234 @@+/* The fire behind chips and mult when a hand beats the blind: Balatro's+ * flame shader (resources/shaders/flame.fs) worked out on the CPU per+ * pixel cells, with the game's intensity (log5 of the score, minus 2) and+ * its springy easing (G.FUNCS.flame_handler). */+#ifndef PROF_NOINLINE+#define PROF_NOINLINE+#endif+#include "flame.h"+#include <stdint.h>+#include <string.h>+++typedef struct {+ float intensity, real, vel, timer;+} flame_t;+static flame_t fl[2];++static inline float fabsf_(float x) { return x < 0 ? -x : x; }+#define fabsf fabsf_+#define sqrtf __builtin_sqrtf++/* log base 5 of v >= 1 (to about 1e-3), from the bits of the double */+static float log5(double v) {+ uint64_t b;+ memcpy(&b, &v, 8);+ int e = (int)((b >> 52) & 0x7FF) - 1023;+ uint32_t mb = 0x3F800000u | (uint32_t)((b >> 29) & 0x7FFFFF);+ float m;+ memcpy(&m, &mb, 4); /* 1 <= m < 2 */+ float z = (m - 1) / (m + 1), z2 = z * z;+ float ln = 2.f * z * (1.f + z2 * (1.f / 3 + z2 * (1.f / 5 + z2 * (1.f / 7))));+ return (e * 0.69314718f + ln) * 0.62133493f; /* ln(v) / ln 5 */+}++/* sin/cos good to about 1e-3, fast enough for a few thousand cells a frame */+static __attribute__((noinline)) float fcos(float x) {+ const float tp = 1.f / (2.f * 3.14159265f);+ x *= tp;+ float y = x + .25f;+ int k = (int)y;+ if (y < (float)k) k--;+ x -= .25f + (float)k;+ x *= 16.f * (fabsf_(x) - .5f);+ x += .225f * x * (fabsf_(x) - 1.f);+ return x;+}+static inline __attribute__((always_inline)) float fsin(float x) { return fcos(x - 1.5707963f); }++void flame_update(int dt_ms, double earned, double required, int allowed, int calm) {+ float target = 0;+ if (allowed && required > 0 && earned >= required && earned > 1) {+ target = log5(earned) - 2.f;+ if (target < 0) target = 0;+ }+ /* the game's easing, in 60 Hz steps */+ for (int k = 0; k < 2; k++) {+ flame_t *f = &fl[k];+ f->intensity = target;+ int left = dt_ms;+ while (left > 0) {+ int step = left > 17 ? 17 : left;+ left -= step;+ float dt = step / 1000.f;+ float ex = 1.f - 0.4f * dt; /* exp(-0.4 dt) */+ f->timer += dt * (1 + f->intensity * 0.2f);+ if (f->vel < 0) f->vel *= 1 - 10 * dt;+ f->vel = (1 - ex) * (f->intensity - f->real) * dt * 25 + ex * f->vel;+ f->real += f->vel;+ if (calm) f->real -= f->real * 8 * dt + 0.02f; /* the round is over: die down within a second */+ if (f->real < 0) f->real = 0;+ }+ if (f->timer > 2000) f->timer -= 2000;+ }+}++int flame_on(void) { return fl[0].real >= 0.1f || fl[1].real >= 0.1f; }++static C rgb(float r, float g, float b) {+ if (r < 0) r = 0;+ if (g < 0) g = 0;+ if (b < 0) b = 0;+ if (r > 1) r = 1;+ if (g > 1) g = 1;+ if (b > 1) b = 1;+ return (C)(((int)(r * 31.f + .5f) << 11) | ((int)(g * 63.f + .5f) << 5) | (int)(b * 31.f + .5f));+}++/* colour_1: the box colour; colour_2: ((colour + yellow) / 2 + 0.1)^2 */+static const float col1[2][3] = {{0.f, 0.616f, 1.f}, {0.996f, 0.373f, 0.333f}};+static const float col2[2][3] = {{0.36f, 0.824f, 0.36f}, {1.f, 0.618f, 0.1f}};++/* the shader's "smoke" at a point of the sprite (uv in -0.5..0.5); the flame+ shows where it is under 1 */+typedef struct {+ float I, up, scale, sp1, sp2, sp3, sp4, top_cut, damp, w1, w2;+ const float *lt; /* the shader's length term by length, from l0, 8 steps a unit */+ float l0;+} fparams_t;+#define LT_N 193 /* +-12 around the frame's |up|: the lengths stay within 10 of it */++/* 0.3 (cos(0.411 len) + 0.3344 sin(len) - 0.23 cos(len)) */+static float len_term(float len) { return 0.3f * (fcos(len * 0.411f) + 0.3344f * fsin(len) - 0.23f * fcos(len)); }++static float smoke_at(const fparams_t *q, float fx, float fy) {+ if (q->top_cut * 2.f * (fy - 0.5f) * (fy - 0.5f) > 1.02f) return 9.f; /* cut off at the top */+ float wob = 0.01f * fsin(-1.123f * fx + q->w1) * fcos(5.3332f * fy + q->w2);+ float ucx = fx + fx * wob, ucy = fy + fy * wob;+ float svx = ucx * q->scale, svy = ucy * q->scale + q->up;+ float s2x = 0, s2y = 0;+ for (int i = 0; i < 5; i++) {+ float len = sqrtf(svx * svx + svy * svy), p = (len - q->l0) * 8.f, add;+ int n = (int)p;+ if (p >= 0 && n < LT_N - 1) add = q->lt[n] + (q->lt[n + 1] - q->lt[n]) * (p - n);+ else add = len_term(len);+ float nx = s2x + svx + 0.05f * s2y + add, ny = s2y + svy + 0.05f * s2x + add;+ s2x = nx, s2y = ny;+ svx += 0.5f * fcos(fcos(s2y) + q->sp1) * fsin(3.22f + s2x - q->sp2);+ svy += 0.5f * fsin(-s2x * 1.21222f + q->sp3) * fcos(s2y * 0.91213f - q->sp4);+ }+ float dx = svx / q->scale * 5.f, dy = (svy - q->up) / q->scale * 5.f;+ float sm = (sqrtf(dx * dx + dy * dy) + 0.1f * (sqrtf(ucx * ucx + ucy * ucy) - 0.5f)) * q->damp;+ if (sm < 0) sm = 0;+ float e = ucy - 0.5f;+ sm += q->top_cut * 2.f * e * e;+ if (fabsf(fx) > 0.4f) sm += 10.f * (fabsf(fx) - 0.4f);+ return sm;+}++/* The smoke over the whole flame, once a frame, on a grid every 2 pixels+ (g, FLAME_GRID values, 1/2048 units, capped): first every 4 pixels, then+ the points in between only where the flame's edge can pass (elsewhere+ they are blended from their neighbours). */+#define FG 2 /* grid step, pixels */+#define FCAP 65535+static void setup(fparams_t *q, int k) {+ const flame_t *f = &fl[k];+ q->I = f->real > 10 ? 10 : f->real;+ const float id = k ? 91.f : 37.f;+ float t = f->timer;+ /* mod(4 t, 10000) - 5000 + mod(1.781 id, 1000): the timer stays under 2000 */+ q->up = 4.f * t - 5000.f + 1.781f * id;+ q->scale = 7.5f + 3.f / (2.f + 2.f * q->I);+ float speed = (k ? 91.071f : 68.897f) + fsin(t + id) * fcos(t * 0.151f + id); /* mod(20.781 id, 100) */+ q->sp1 = speed * 0.0812f, q->sp2 = speed * 0.1531f, q->sp3 = 0.113785f * speed, q->sp4 = 0.13582f * speed;+ q->top_cut = 2.f - 0.3f * q->I;+ if (q->top_cut < 0) q->top_cut = 0;+ q->damp = 2.f / (2.f + q->I * 0.2f);+ q->w1 = 0.2f * t, q->w2 = 0.931f * t;+}++static inline uint16_t q16(float v) { return v >= 31.f ? FCAP : (uint16_t)(v * 2048.f); }++PROF_NOINLINE void flame_grid(int k, int w, int h, uint16_t *g) {+ if (fl[k].real < 0.1f) return;+ fparams_t q;+ setup(&q, k);+ float lt[LT_N];+ q.l0 = fabsf(q.up) - 12.f;+ if (q.l0 < 0) q.l0 = 0;+ for (int n = 0; n < LT_N; n++) lt[n] = len_term(q.l0 + n * 0.125f);+ q.lt = lt;+ int gc = w / FG + 1, gr = (int)(0.62f * h) / FG + 2;+ if (gc > FLAME_GC) gc = FLAME_GC;+ if (gr > FLAME_GR) gr = FLAME_GR;+ float ix = (float)FG / w, iy = (float)FG / h;+ /* every other point */+ for (int j = 0; j < gr; j += 2)+ for (int i = 0; i < gc; i += 2) g[j * FLAME_GC + i] = q16(smoke_at(&q, i * ix - 0.5f, j * iy - 0.5f));+ /* the others: worked out near the edge (the corners around it between+ 0.75 and 1.35), blended elsewhere */+ for (int j = 0; j < gr; j++)+ for (int i = (j & 1) ? 0 : 1; i < gc; i += (j & 1) ? 1 : 2) {+ int i0 = i & ~1, i1 = i0 + 2 < gc ? i0 + 2 : i0, j0 = j & ~1, j1 = j0 + 2 < gr ? j0 + 2 : j0;+ if (!(i & 1)) i1 = i0;+ if (!(j & 1)) j1 = j0;+ uint32_t a = g[j0 * FLAME_GC + i0], b = g[j0 * FLAME_GC + i1], c = g[j1 * FLAME_GC + i0], d = g[j1 * FLAME_GC + i1];+ uint32_t lo = a < b ? a : b, hi = a < b ? b : a;+ lo = c < lo ? c : lo, hi = c > hi ? c : hi;+ lo = d < lo ? d : lo, hi = d > hi ? d : hi;+ if (lo > 2765 || hi < 1536) g[j * FLAME_GC + i] = (uint16_t)((a + b + c + d) >> 2);+ else g[j * FLAME_GC + i] = q16(smoke_at(&q, i * ix - 0.5f, j * iy - 0.5f));+ }+}++/* Draws rows ya..yb (screen) of flame k whose sprite is at (x, y), w x h,+ from its grid g, blended between the grid points so the edges are as fine+ as single pixels. */+PROF_NOINLINE void flame_rows(int k, int x, int y, int s, int sh, int top, const uint16_t *g, C *strip, int y0, int ya,+ int yb, int cx0, int cx1) {+ const flame_t *f = &fl[k];+ float I = f->real > 10 ? 10 : f->real;+ if (I < 0.1f) return;+ /* rows: in the sprite, on screen, and above uv.y 0.12 (lower, the flame is+ the box's own colour and the box is there) */+ int r0 = ya - y, r1 = yb - y, rmax = (int)(0.62f * sh);+ if (r0 < 0) r0 = 0;+ if (r1 > rmax) r1 = rmax;+ if (r0 >= r1) return;+ int c0 = cx0 - x, c1 = cx1 - x;+ if (c0 < 0) c0 = 0;+ if (c1 > s) c1 = s;+ if (c1 > (FLAME_GC - 1) * FG) c1 = (FLAME_GC - 1) * FG;+ if (c0 >= c1) return;+ const float *c1c = col1[k], *c2c = col2[k];+ float invy = 1.f / sh;+ for (int r = r0; r < r1; r++) {+ int j = r / FG;+ if (j + 1 >= FLAME_GR) break;+ const uint16_t *ra = g + j * FLAME_GC, *rb = ra + FLAME_GC;+ int wy = r - j * FG; /* 0..FG-1 */+ float uy = (r + 0.5f) * invy - 0.5f;+ /* the tips thin out in the last 3 pixels under the top limit */+ int fade = y + r - top < 3 ? (3 - (y + r - top)) * 410 : 0;+ /* the colour at this height (the shader's gradient to colour_2), as a+ table over the smoke (16 steps from 0 to 1) */+ float d = 0.12f - uy, base[3];+ for (int ch = 0; ch < 3; ch++) base[ch] = c1c[ch] * (1 - 0.5f * d) + 2.5f * d * c2c[ch];+ C lut[17];+ for (int n = 0; n <= 16; n++) {+ float m = 1.f + (-2.f + 0.5f * I * (n * (1.f / 16))) * d;+ lut[n] = rgb(base[0] * m, base[1] * m, base[2] * m);+ }+ C *dst = strip + (y + r - y0) * 320 + x;+ for (int cx = c0; cx < c1; cx++) {+ int i = cx / FG, wx = cx - i * FG;+ /* bilinear, in 1/2048 units (FG = 2: weights 0 or 1/2) */+ int a = ra[i], b = rb[i];+ if (wx) a = (a + ra[i + 1]) >> 1, b = (b + rb[i + 1]) >> 1;+ int sm = (wy ? (a + b) >> 1 : a) + fade;+ if (sm > 2048) continue;+ dst[cx] = lut[sm >> 7];+ }+ }+}diff --git a/games/balatro/src/flame.h b/games/balatro/src/flame.hnew file mode 100644index 00000000..a0b7df6a--- /dev/null+++ b/games/balatro/src/flame.h@@ -0,0 +1,14 @@+#ifndef FLAME_H+#define FLAME_H+#include "gfx.h"++/* earned: chips x mult on display; required: the blind's score */+void flame_update(int dt_ms, double earned, double required, int allowed, int calm); /* calm: die down quickly */+int flame_on(void);+/* the smoke grid of a flame w x h, once a frame (FLAME_GR x FLAME_GC values) */+#define FLAME_GC 29 /* up to 56 pixels wide */+#define FLAME_GR 20 /* up to 62% of 60 pixels high */+void flame_grid(int k, int w, int h, uint16_t *g);+void flame_rows(int k, int x, int y, int w, int h, int top, const uint16_t *g, C *strip, int y0, int ya, int yb, int cx0,+ int cx1);+#endifdiff --git a/games/balatro/src/fmath.h b/games/balatro/src/fmath.hnew file mode 100644index 00000000..47b2a90a--- /dev/null+++ b/games/balatro/src/fmath.h@@ -0,0 +1,22 @@+/* Small float helpers for the effects (no libm): sin/cos to about 1e-3. */+#ifndef FMATH_H+#define FMATH_H++static inline __attribute__((always_inline)) float fm_abs(float x) { return x < 0 ? -x : x; }+static inline __attribute__((always_inline)) float fm_floor(float x) {+ int k = (int)x;+ return (float)(x < (float)k ? k - 1 : k);+}+static __attribute__((noinline, unused)) float fm_cos(float x) {+ x *= 1.f / (2.f * 3.14159265f);+ x -= .25f + fm_floor(x + .25f);+ x *= 16.f * (fm_abs(x) - .5f);+ x += .225f * x * (fm_abs(x) - 1.f);+ return x;+}+static inline float fm_sin(float x) { return fm_cos(x - 1.5707963f); }+static inline __attribute__((always_inline)) float fm_sqrt(float x) { return __builtin_sqrtf(x); }+static inline __attribute__((always_inline)) float fm_clamp(float x, float a, float b) {+ return x < a ? a : x > b ? b : x;+}+#endifdiff --git a/games/balatro/src/fx.c b/games/balatro/src/fx.cnew file mode 100644index 00000000..72434cf5--- /dev/null+++ b/games/balatro/src/fx.c@@ -0,0 +1,200 @@+/* The editions, after Balatro's shaders (resources/shaders/foil.fs, holo.fs,+ * polychrome.fs, negative.fs, negative_shine.fs), worked out per pixel of the+ * card art. uv is the position on the card (0..1). On a card this small the+ * shaders' colour would drown the art, so each edition keeps the brightness+ * of the art underneath (only the hue and tint move) and is laid over it a+ * little lighter than in the game. */+#ifndef PROF_NOINLINE+#define PROF_NOINLINE+#endif+#include "fx.h"+#include "fmath.h"++static float T; /* seconds */+++/* ------------------------------------------------------------ colours */+static inline void unpack(C c, float *r, float *g, float *b) {+ *r = (float)(c >> 11) * (1.f / 31), *g = (float)((c >> 5) & 63) * (1.f / 63), *b = (float)(c & 31) * (1.f / 31);+}+static inline C pack(float r, float g, float b) {+ r = fm_clamp(r, 0, 1), g = fm_clamp(g, 0, 1), b = fm_clamp(b, 0, 1);+ return (C)((int)(r * 31.f + .5f) << 11 | (int)(g * 63.f + .5f) << 5 | (int)(b * 31.f + .5f));+}++/* the edition's colour (r, g, b) over the art's (or, og, ob): the art's+ brightness is kept, so its lines and shading stay readable; then the+ edition shows at strength k (0..1) */+static C over_art(float or_, float og, float ob, float r, float g, float b, float k) {+ float d = (.3f * or_ + .59f * og + .11f * ob) - (.3f * r + .59f * g + .11f * b);+ r += d, g += d, b += d;+ return pack(or_ + (r - or_) * k, og + (g - og) * k, ob + (b - ob) * k);+}++/* the shaders' HSL() and RGB() */+static void hsl(float r, float g, float b, float *h, float *s, float *l) {+ float lo = r < g ? (r < b ? r : b) : (g < b ? g : b), hi = r > g ? (r > b ? r : b) : (g > b ? g : b);+ float d = hi - lo, sum = hi + lo;+ *l = .5f * sum, *h = 0, *s = 0;+ if (d <= 0) return;+ *s = *l < .5f ? d / sum : d / (2.f - sum);+ float x = hi == r ? (g - b) / d : hi == g ? (b - r) / d + 2.f : (r - g) / d + 4.f;+ x *= 1.f / 6;+ *h = x - fm_floor(x);+}+static inline float hue(float s, float t, float h) {+ float hs = (h - fm_floor(h)) * 6.f;+ if (hs < 1) return (t - s) * hs + s;+ if (hs < 3) return t;+ if (hs < 4) return (t - s) * (4.f - hs) + s;+ return s;+}+static void rgb(float h, float s, float l, float *r, float *g, float *b) {+ if (s < 0.0001f) {+ *r = *g = *b = l;+ return;+ }+ float t = l < .5f ? s * l + l : -s * l + (s + l), q = 2.f * l - t;+ *r = hue(q, t, h + 1.f / 3), *g = hue(q, t, h), *b = hue(q, t, h - 1.f / 3);+}++/* the moving field of holo.fs and polychrome.fs, at a point scaled by k */+static float field(float u, float v, float k, float t) {+ float x = (u - .5f) * k, y = (v - .5f) * k;+ float x1 = x + 50.f * fm_sin(-t / 143.634f), y1 = y + 50.f * fm_cos(-t / 99.4324f);+ float x2 = x + 50.f * fm_cos(t / 53.1532f), y2 = y + 50.f * fm_cos(t / 61.4532f);+ float x3 = x + 50.f * fm_sin(-t / 87.53218f), y3 = y + 50.f * fm_sin(-t / 49.f);+ return (1.f + fm_cos(fm_sqrt(x1 * x1 + y1 * y1) / 19.483f) ++ fm_sin(fm_sqrt(x2 * x2 + y2 * y2) / 33.155f) * fm_cos(y2 / 15.73f) ++ fm_cos(fm_sqrt(x3 * x3 + y3 * y3) / 27.193f) * fm_sin(x3 / 21.92f)) * .5f;+}++/* ------------------------------------------------------------ editions */+/* Each edition is a pattern over the card (a number per position, slow to+ work out, the same for the 2x2 pixels around it) applied to each pixel's+ colour (quick). */+static float foil_pattern(float u, float v, float seed) {+ float fr = T / 28.f + seed, fg = T;+ float ax = (u - .5f) * (35.f / 47.f), ay = v - .5f, L = fm_sqrt(ax * ax + ay * ay) + 1e-4f;+ float fac = fm_clamp(2.f * fm_sin(L * 90.f + fr * 2.f + 3.f * (1.f + .8f * fm_cos(L * 113.1121f - fr * 3.121f))) - 1.f -+ (5.f - L * 90.f > 0 ? 5.f - L * 90.f : 0),+ 0, 1);+ float rx = fm_cos(fr * .1221f), ry = fm_sin(fr * .3512f);+ float ang = (rx * ax + ry * ay) / (fm_sqrt(rx * rx + ry * ry) * L);+ float fac2 = fm_clamp(5.f * fm_cos(fg * .3f + ang * 3.14f * (2.2f + .9f * fm_sin(fr * 1.65f + .2f * fg))) - 4.f -+ (2.f - L * 20.f > 0 ? 2.f - L * 20.f : 0),+ 0, 1);+ float fac3 = .3f * fm_clamp(2.f * fm_sin(fr * 5.f + u * 3.f + 3.f * (1.f + .5f * fm_cos(fr * 7.f))) - 1.f, -1, 1);+ float fac4 = .3f * fm_clamp(2.f * fm_sin(fr * 6.66f + v * 3.8f + 3.f * (1.f + .5f * fm_cos(fr * 3.414f))) - 1.f, -1, 1);+ float mx = fac > fac2 ? fac : fac2;+ if (fac3 > mx) mx = fac3;+ if (fac4 > mx) mx = fac4;+ if (mx < 0) mx = 0;+ float m = mx + 2.2f * (fac + fac2 + fac3 + fac4);+ return m < 0 ? 0 : m;+}+static C foil(C c, float m) {+ float r, g, b;+ unpack(c, &r, &g, &b);+ float lo = r < g ? (r < b ? r : b) : (g < b ? g : b), hi = r > g ? (r > b ? r : b) : (g > b ? g : b);+ float d = 1.f - lo > .5f ? 1.f - lo : .5f;+ if (d > hi) d = hi;+ float fr_ = r - d + d * m * .3f, fg_ = g - d + d * m * .3f, fb_ = b + d * m * 1.9f;+ float a = .3f + .9f * (m * .1f < .5f ? m * .1f : .5f);+ a *= .8f; /* lighter than the game */+ fr_ = fm_clamp(fr_, 0, 1), fg_ = fm_clamp(fg_, 0, 1), fb_ = fm_clamp(fb_, 0, 1);+ return pack(r + (fr_ - r) * a, g + (fg_ - g) * a, b + (fb_ - b) * a);+}++static float holo_pattern(float u, float v, float seed) {+ float t = T * 8.221f;+ /* the field and the grid at half the game's frequency: the card is small */+ float res = .5f + .5f * fm_cos((T / 28.f + seed) * 2.612f + (field(u, v, 125.f, t) - .5f) * 3.14f);+ const float gs = .79f * .5f;+ float f1 = 7.f * fm_abs(fm_cos(u * gs * 20.f)) - 6.f, f2 = 7.f * fm_cos(v * gs * 45.f + u * gs * 20.f) - 6.f,+ f3 = 7.f * fm_cos(v * gs * 45.f - u * gs * 20.f) - 6.f;+ float fac = f1 > f2 ? f1 : f2;+ if (f3 > fac) fac = f3;+ return res + (fac > 0 ? .5f * fac : 0);+}+static C holo(C c, float shift) {+ float r, g, b, h, s, l;+ unpack(c, &r, &g, &b);+ hsl(.5f * r, .5f * g, .5f * b + .5f, &h, &s, &l);+ float lo = r < g ? (r < b ? r : b) : (g < b ? g : b), hi = r > g ? (r > b ? r : b) : (g > b ? g : b);+ float d = .2f + .3f * (hi - lo) + .1f * hi;+ float hr, hg, hb;+ rgb(h + shift, s * 1.3f > 1 ? 1 : s * 1.3f, l * .6f + .4f, &hr, &hg, &hb);+ float nr = (1 - d) * r + d * hr * .9f, ng = (1 - d) * g + d * hg * .8f, nb = (1 - d) * b + d * hb * 1.2f;+ return over_art(r, g, b, fm_clamp(nr, 0, 1), fm_clamp(ng, 0, 1), fm_clamp(nb, 0, 1), .8f);+}++static float poly_pattern(float u, float v, float seed) {+ float t = T * 3.221f;+ return .5f + .5f * fm_cos((T / 28.f + seed) * 2.612f + (field(u, v, 50.f, t) - .5f) * 3.14f) + T * .04f;+}+static C poly(C c, float shift) {+ float r, g, b, h, s, l;+ unpack(c, &r, &g, &b);+ float lo = r < g ? (r < b ? r : b) : (g < b ? g : b), hi = r > g ? (r > b ? r : b) : (g > b ? g : b);+ float sf = 1.f - (1.1f - (hi - lo) > 0 ? .05f * (1.1f - (hi - lo)) : 0);+ hsl(r * sf, g * sf, b, &h, &s, &l);+ float nr, ng, nb;+ rgb(h + shift, s + .5f < .6f ? s + .5f : .6f, l, &nr, &ng, &nb);+ return over_art(r, g, b, nr, ng, nb, .7f);+}++static float neg_pattern(float u, float v) {+ /* negative_shine: a faint moving light */+ float sh = .5f + .5f * fm_sin(11.f * u + 4.32f * v + T * .43f * 12.f + fm_cos(T * .19f + v * 4.2f - u * 4.f));+ return sh * sh * .12f;+}+static C negative(C c, float sh) {+ float r, g, b, h, s, l;+ unpack(c, &r, &g, &b);+ hsl(r, g, b, &h, &s, &l);+ float nr, ng, nb;+ rgb(.2f - h, s, 1.f - l, &nr, &ng, &nb);+ nr += .8f * 79.f / 255, ng += .8f * 99.f / 255, nb += .8f * 103.f / 255;+ return pack(nr + sh * .6f, ng + sh * .6f, nb + sh);+}++/* the pattern of the current pair of rows, per pair of columns */+static struct {+ int ed, row, sw;+ float seed;+ uint8_t gen;+} key;+static float pat[24];+static uint8_t pat_gen[24];++PROF_NOINLINE C fx_edition(C c, int ed, int sx, int sy, int sw, int sh, float seed) {+ if (key.ed != ed || key.row != (sy >> 1) || key.sw != sw || key.seed != seed) {+ key.ed = ed, key.row = sy >> 1, key.sw = sw, key.seed = seed;+ if (++key.gen == 0) { /* wrapped: forget all */+ for (int k = 0; k < 24; k++) pat_gen[k] = 0;+ key.gen = 1;+ }+ }+ int i = sx >> 1;+ if (i > 23) i = 23;+ if (pat_gen[i] != key.gen) {+ float u = ((float)(sx & ~1) + 1.f) / (float)sw, v = ((float)(sy & ~1) + 1.f) / (float)sh;+ pat[i] = ed == FX_FOIL ? foil_pattern(u, v, seed) : ed == FX_HOLO ? holo_pattern(u, v, seed)+ : ed == FX_POLY ? poly_pattern(u, v, seed) : neg_pattern(u, v);+ pat_gen[i] = key.gen;+ }+ switch (ed) {+ case FX_FOIL: return foil(c, pat[i]);+ case FX_HOLO: return holo(c, pat[i]);+ case FX_POLY: return poly(c, pat[i]);+ case FX_NEG: return negative(c, pat[i]);+ }+ return c;+}++/* a new frame: the patterns move */+void fx_frame(uint32_t ms) {+ T = (float)(ms % 2000000u) / 1000.f;+ key.ed = -1;+}diff --git a/games/balatro/src/fx.h b/games/balatro/src/fx.hnew file mode 100644index 00000000..bcb28730--- /dev/null+++ b/games/balatro/src/fx.h@@ -0,0 +1,9 @@+#ifndef FX_H+#define FX_H+#include "gfx.h"++void fx_frame(uint32_t ms);+/* a pixel of card art with an edition; (sx, sy) in the sprite (sw x sh);+ seed varies the sheen from card to card */+C fx_edition(C c, int ed, int sx, int sy, int sw, int sh, float seed);+#endifdiff --git a/games/balatro/src/game.c b/games/balatro/src/game.cnew file mode 100644index 00000000..cd29b36a--- /dev/null+++ b/games/balatro/src/game.c@@ -0,0 +1,1539 @@+/* The run: helpers, creating cards, blinds, the shop, booster packs and+ * tags (game.lua, common_events.lua, button_callbacks.lua, tag.lua). */+#include "game.h"+#include <eadk.h>+#include <string.h>+#include "ev.h"+#include "jokers.h"+#include "util.h"++run_t R;++const char *const rank_names[15] = {"", "", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King", "Ace"};+const char *const suit_names[4] = {"Spade", "Heart", "Club", "Diamond"};+const char *const suit_names_plural[4] = {"Spades", "Hearts", "Clubs", "Diamonds"};++/* ------------------------------------------------------------------ rng */+static uint32_t rotl(uint32_t x, int k) { return (x << k) | (x >> (32 - k)); }++uint32_t rng_u32(void) {+ uint32_t *s = R.rng;+ uint32_t r = rotl(s[1] * 5, 7) * 9, t = s[1] << 9;+ s[2] ^= s[0];+ s[3] ^= s[1];+ s[1] ^= s[2];+ s[0] ^= s[3];+ s[2] ^= t;+ s[3] = rotl(s[3], 11);+ return r;+}+float rng_f(void) { return (rng_u32() >> 8) * (1.0f / 16777216.0f); }+int rng_int(int a, int b) {+ if (b <= a) return a;+ return a + (int)(rng_u32() % (uint32_t)(b - a + 1));+}++void rng_seed_str(const char *s) {+ uint32_t h = 2166136261u;+ for (int i = 0; s[i]; i++) h = (h ^ (uint8_t)s[i]) * 16777619u;+ for (int i = 0; i < 4; i++) {+ h += 0x9E3779B9u;+ uint32_t z = h;+ z = (z ^ (z >> 16)) * 0x85EBCA6Bu;+ z = (z ^ (z >> 13)) * 0xC2B2AE35u;+ R.rng[i] = z ^ (z >> 16);+ }+ if (!(R.rng[0] | R.rng[1] | R.rng[2] | R.rng[3])) R.rng[0] = 1;+}++void rng_new_seed(void) {+ static const char alphabet[] = "123456789ABCDEFGHIJKLMNPQRSTUVWXYZ";+ uint32_t r = eadk_random() ^ (uint32_t)eadk_timing_millis();+ for (int i = 0; i < 8; i++) {+ r = (r * 1664525u + 1013904223u) ^ eadk_random();+ R.seed[i] = alphabet[(r >> 16) % 34];+ }+ R.seed[8] = 0;+}++float probs_normal(void) {+ float p = 1;+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].id == J_OOPS && !(R.jokers[i].flags & JF_DEBUFF)) p *= 2;+ return p;+}+int prob(float odds) { return rng_f() < probs_normal() / odds; }++/* ------------------------------------------------------------------ queries */+int has_joker(int id) {+ int n = 0;+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].id == id && !(R.jokers[i].flags & JF_DEBUFF)) n++;+ return n;+}+int has_voucher(int v) { return (R.vouchers >> v) & 1; }+int card_chip_nominal(int rank) { return rank == 14 ? 11 : rank > 10 ? 10 : rank; }++int card_get_id(int ci) {+ const card_t *c = &R.cards[ci];+ return c->enh == E_STONE ? -1 : c->rank;+}++int card_is_face(int ci, int from_boss) {+ const card_t *c = &R.cards[ci];+ if ((c->flags & CF_DEBUFF) && !from_boss) return 0;+ int id = card_get_id(ci);+ return (id == 11 || id == 12 || id == 13 || has_joker(J_PAREIDOLIA)) ? 1 : 0;+}++static int red(int s) { return s == S_HEARTS || s == S_DIAMONDS; }++int card_is_suit(int ci, int suit, int bypass_debuff, int flush_calc) {+ const card_t *c = &R.cards[ci];+ if (flush_calc) {+ if (c->enh == E_STONE) return 0;+ if (c->enh == E_WILD && !(c->flags & CF_DEBUFF)) return 1;+ if (has_joker(J_SMEARED) && red(c->suit) == red(suit)) return 1;+ return c->suit == suit;+ }+ if ((c->flags & CF_DEBUFF) && !bypass_debuff) return 0;+ if (c->enh == E_STONE) return 0;+ if (c->enh == E_WILD) return 1;+ if (has_joker(J_SMEARED) && red(c->suit) == red(suit)) return 1;+ return c->suit == suit;+}++int hand_size(void) {+ int n = 8 + R.hand_size_mod + R.temp_handsize;+ n += has_voucher(V_PAINT_BRUSH) + has_voucher(V_PALETTE);+ for (int i = 0; i < R.njokers; i++) {+ joker_t *j = &R.jokers[i];+ if (j->flags & JF_DEBUFF) continue;+ switch (j->id) {+ case J_JUGGLER: n += 1; break;+ case J_TROUBADOUR: n += 2; break;+ case J_TURTLE_BEAN: n += j->a; break;+ case J_MERRY_ANDY: n -= 1; break;+ case J_STUNTMAN: n -= 2; break;+ }+ }+ if (R.phase == PH_ROUND && R.blind == BL_MANACLE && !R.blind_disabled) n -= 1;+ return n < 0 ? 0 : n > MAXHAND ? MAXHAND : n;+}++/* round_resets.hands / discards: the base plus the jokers that change them */+int round_hands(void) {+ int n = R.base_hands;+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].id == J_TROUBADOUR && !(R.jokers[i].flags & JF_DEBUFF)) n -= 1;+ return n < 1 ? 1 : n;+}+int round_discards(void) {+ int n = R.base_discards;+ for (int i = 0; i < R.njokers; i++) {+ if (R.jokers[i].flags & JF_DEBUFF) continue;+ if (R.jokers[i].id == J_DRUNKARD) n += 1;+ if (R.jokers[i].id == J_MERRY_ANDY) n += 3;+ }+ return n < 0 ? 0 : n;+}++int joker_slots(void) {+ int n = R.joker_slots;+ for (int i = 0; i < R.njokers; i++) n += R.jokers[i].ed == ED_NEG;+ return n;+}+int cons_slots(void) {+ int n = R.cons_slots;+ for (int i = 0; i < R.ncons; i++) n += R.cons[i].ed == ED_NEG;+ return n;+}++static int edition_extra(int ed) {+ static const uint8_t e[5] = {0, 2, 3, 5, 5};+ return e[ed & 7];+}+static int cost_of(int base, int ed) {+ int c = (base + edition_extra(ed)) * 2 + 1; /* (base + extra + 0.5) * 2 */+ c = c * (100 - R.discount) / 200;+ return c < 1 ? 1 : c;+}+static int cons_base_cost(int id) { return id >= C_FAMILIAR ? 4 : 3; }+static int is_planet(int id) { return id >= C_MERCURY && id <= C_ERIS; }++int joker_sell_value(const joker_t *j) {+ int c = cost_of(joker_info[j->id].cost, j->ed) / 2;+ return (c < 1 ? 1 : c) + j->extra_value;+}+int cons_sell_value(const cons_t *k) {+ int cost = cost_of(cons_base_cost(k->id), k->ed);+ if (is_planet(k->id) && has_joker(J_ASTRONOMER)) cost = 0;+ int c = cost / 2;+ return (c < 1 ? 1 : c) + k->extra_value;+}++int item_cost(const sitem_t *it) {+ if (it->flags & 1) return 0;+ switch (it->kind) {+ case IT_JOKER: return cost_of(joker_info[it->id].cost, it->ed);+ case IT_CONS:+ if (is_planet(it->id) && has_joker(J_ASTRONOMER)) return 0;+ return cost_of(cons_base_cost(it->id), it->ed);+ case IT_CARD: return cost_of(1, it->card.ed);+ case IT_VOUCHER: return cost_of(10, 0);+ case IT_PACK:+ if (it->id / 3 == PK_CELESTIAL && has_joker(J_ASTRONOMER)) return 0;+ return cost_of(4 + 2 * (it->id % 3), 0);+ }+ return 0;+}++static const uint8_t hand_base[NHANDS][4] = {+ /* s_chips/5, s_mult, l_chips/5, l_mult */+ {32, 16, 10, 3}, {28, 14, 8, 4}, {24, 12, 7, 3}, {20, 8, 8, 4}, {12, 7, 6, 3}, {8, 4, 5, 2},+ {7, 4, 3, 2}, {6, 4, 6, 3}, {6, 3, 4, 2}, {4, 2, 4, 1}, {2, 2, 3, 1}, {1, 1, 2, 1},+};+double hand_chips(int h) {+ double v = hand_base[h][0] * 5.0 + hand_base[h][2] * 5.0 * (R.hands[h].level - 1);+ return v < 0 ? 0 : v;+}+double hand_mult(int h) {+ double v = hand_base[h][1] + (double)hand_base[h][3] * (R.hands[h].level - 1);+ return v < 1 ? 1 : v;+}++void level_up(int h, int amount, int src) {+ int old = R.hands[h].level;+ int lv = R.hands[h].level + amount;+ R.hands[h].level = (int16_t)(lv < 0 ? 0 : lv > 32000 ? 32000 : lv);+ ev_t *v = ev_push(EV_LEVELUP);+ if (v) {+ v->a = (uint16_t)h;+ v->d = R.hands[h].level;+ v->b = (uint8_t)(src >= 0 && src < R.njokers ? 1 : 0);+ v->c = (uint8_t)(src >= 0 && src < R.njokers ? src : 0);+ v->p.i = old;+ }+}++double blind_amount(int ante) {+ static const int amounts[8] = {300, 800, 2000, 5000, 11000, 20000, 35000, 50000};+ if (ante < 1) return 100;+ if (ante <= 8) return amounts[ante - 1];+ /* endless: a*(b+(k*c)^d)^c, then rounded down to 2 significant digits */+ double a = 50000, b = 1.6, k = 0.75, c = ante - 8, d = 1 + 0.2 * (ante - 8);+ /* pow with doubles, by exp/log done with float precision where fine */+ double kc = k * c, base;+ {+ /* (k*c)^d */+ double r = 1, x = kc;+ int di = (int)d;+ double frac = d - di;+ for (int i = 0; i < di; i++) r *= x;+ if (frac > 0) {+ /* x^frac = exp(frac*ln x) */+ double lx = 0, y = x;+ while (y > 2) y /= 2.718281828459045, lx += 1;+ while (y < 0.5) y *= 2.718281828459045, lx -= 1;+ double t = (y - 1) / (y + 1), t2 = t * t, s = 0, p = t;+ for (int i = 1; i < 30; i += 2) s += p / i, p *= t2;+ lx += 2 * s;+ double ex = frac * lx, e = 1, term = 1;+ for (int i = 1; i < 30; i++) term *= ex / i, e += term;+ r *= e;+ }+ base = b + r;+ }+ double amt = a;+ for (int i = 0; i < (int)c; i++) amt *= base;+ if (amt > 1e300) return amt;+ amt = dfloor(amt);+ /* amount - amount % 10^(floor(log10(amount)) - 1) */+ double p = 1;+ while (p * 10 <= amt) p *= 10;+ p /= 10;+ if (p >= 1) amt = amt - (amt - dfloor(amt / p) * p);+ return amt;+}++const char *blind_name(int b) { return text_get(TXT_BLIND + b, 0); }++/* ------------------------------------------------------------------ cards */+card_t random_card(void) {+ card_t c = {0};+ c.rank = (uint8_t)rng_int(2, 14);+ c.suit = (uint8_t)rng_int(0, 3);+ return c;+}++int random_enhancement(int no_stone) {+ for (;;) {+ int e = rng_int(E_BONUS, E_LUCKY);+ if (!(no_stone && e == E_STONE)) return e;+ }+}++void blind_debuff_card(int ci);++/* no free slot left for a new playing card */+static int deck_full(void) {+ if (R.ncards_alloc < MAXCARDS) return 0;+ for (int i = 0; i < R.ncards_alloc; i++)+ if (!(R.cards[i].flags & CF_USED)) return 0;+ return 1;+}++int add_card_to_deck(card_t c, int area) {+ int ci = -1;+ for (int i = 0; i < R.ncards_alloc; i++)+ if (!(R.cards[i].flags & CF_USED)) {+ ci = i;+ break;+ }+ if (ci < 0) {+ if (R.ncards_alloc >= MAXCARDS) return -1;+ ci = R.ncards_alloc++;+ }+ c.flags = (uint8_t)((c.flags & CF_DOWN) | CF_USED);+ R.cards[ci] = c;+ blind_debuff_card(ci);+ if (area == A_HAND && R.nhand < MAXHAND) {+ R.sel[R.nhand] = 0;+ R.hand[R.nhand++] = (uint8_t)ci;+ } else {+ /* into the deck at a random place */+ int p = rng_int(0, R.ndeck);+ for (int i = R.ndeck; i > p; i--) R.deck[i] = R.deck[i - 1];+ R.deck[p] = (uint8_t)ci;+ R.ndeck++;+ area = A_DECK;+ }+ ev_card_set(ci);+ ev_card(EV_CARD_MOVE, ci, area, 0);+ return ci;+}++static void remove_from(uint8_t *arr, uint8_t *n, int ci) {+ for (int i = 0; i < *n; i++)+ if (arr[i] == ci) {+ for (int k = i; k < *n - 1; k++) arr[k] = arr[k + 1];+ (*n)--;+ return;+ }+}++void destroy_card(int ci) {+ remove_from(R.deck, &R.ndeck, ci);+ remove_from(R.discard, &R.ndiscard, ci);+ remove_from(R.play, &R.nplay, ci);+ for (int i = 0; i < R.nhand; i++)+ if (R.hand[i] == ci) {+ for (int k = i; k < R.nhand - 1; k++) R.hand[k] = R.hand[k + 1], R.sel[k] = R.sel[k + 1];+ R.nhand--;+ break;+ }+ R.cards[ci].flags = 0;+}++/* ------------------------------------------------------------------ pools */+static int in_use_joker(int id) {+ /* used_jokers: owned, or shown in the shop or a pack */+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].id == id) return 1;+ for (int i = 0; i < R.nshop; i++)+ if (R.shop[i].kind == IT_JOKER && R.shop[i].id == id) return 1;+ if (R.phase == PH_PACK)+ for (int i = 0; i < R.npack; i++)+ if (R.pack[i].kind == IT_JOKER && R.pack[i].id == id) return 1;+ return 0;+}+static int in_use_cons(int id) {+ for (int i = 0; i < R.ncons; i++)+ if (R.cons[i].id == id) return 1;+ for (int i = 0; i < R.nshop; i++)+ if (R.shop[i].kind == IT_CONS && R.shop[i].id == id) return 1;+ if (R.phase == PH_PACK)+ for (int i = 0; i < R.npack; i++)+ if (R.pack[i].kind == IT_CONS && R.pack[i].id == id) return 1;+ return 0;+}++static int deck_has_enh(int enh) {+ for (int i = 0; i < R.ncards_alloc; i++)+ if ((R.cards[i].flags & CF_USED) && R.cards[i].enh == enh) return 1;+ return 0;+}++int create_joker_id(int rarity, int legendary) {+ if (legendary) rarity = 4;+ if (rarity < 0) {+ float r = rng_f();+ rarity = r > 0.95f ? 3 : r > 0.7f ? 2 : 1;+ }+ int pool[150], n = 0, showman = has_joker(J_RING_MASTER);+ for (int id = 0; id < N_JOKER; id++) {+ if (joker_info[id].rarity != rarity) continue;+ if (!showman && in_use_joker(id)) continue;+ if (id == J_GROS_MICHEL && R.gros_michel_extinct) continue;+ if (id == J_CAVENDISH && !R.gros_michel_extinct) continue;+ if (id == J_STEEL_JOKER && !deck_has_enh(E_STEEL)) continue;+ if (id == J_STONE && !deck_has_enh(E_STONE)) continue;+ if (id == J_LUCKY_CAT && !deck_has_enh(E_LUCKY)) continue;+ if (id == J_TICKET && !deck_has_enh(E_GOLD)) continue;+ if (id == J_GLASS && !deck_has_enh(E_GLASS)) continue;+ pool[n++] = id;+ }+ if (!n) return J_JOKER;+ return pool[rng_int(0, n - 1)];+}++int create_cons_id(int set) {+ int a = set == 0 ? C_FOOL : set == 1 ? C_MERCURY : C_FAMILIAR, b = set == 0 ? C_WORLD : set == 1 ? C_ERIS : C_CRYPTID;+ int pool[24], n = 0, showman = has_joker(J_RING_MASTER);+ static const uint8_t softlock_hand[3] = {H_FIVE_KIND, H_FLUSH_HOUSE, H_FLUSH_FIVE};+ for (int id = a; id <= b; id++) {+ if (!showman && in_use_cons(id)) continue;+ if (id >= C_PLANET_X && id <= C_ERIS && R.hands[softlock_hand[id - C_PLANET_X]].played == 0) continue;+ pool[n++] = id;+ }+ if (!n) return set == 0 ? C_STRENGTH : set == 1 ? C_PLUTO : C_INCANTATION;+ return pool[rng_int(0, n - 1)];+}++/* soulable creation for packs: The Soul / Black Hole replace the card rarely */+static int create_cons_soulable(int set) {+ int showman = has_joker(J_RING_MASTER);+ if ((set == 0 || set == 2) && (showman || !in_use_cons(C_SOUL)) && rng_f() > 0.997f) return C_SOUL;+ if ((set == 1 || set == 2) && (showman || !in_use_cons(C_BLACK_HOLE)) && rng_f() > 0.997f) return C_BLACK_HOLE;+ return create_cons_id(set);+}++int poll_edition(float mod, int no_neg, int guaranteed) {+ float p = rng_f();+ if (guaranteed) {+ if (p > 1 - 0.003f * 25 && !no_neg) return ED_NEG;+ if (p > 1 - 0.006f * 25) return ED_POLY;+ if (p > 1 - 0.02f * 25) return ED_HOLO;+ if (p > 1 - 0.04f * 25) return ED_FOIL;+ return 0;+ }+ float er = R.edition_rate;+ if (p > 1 - 0.003f * mod && !no_neg) return ED_NEG;+ if (p > 1 - 0.006f * er * mod) return ED_POLY;+ if (p > 1 - 0.02f * er * mod) return ED_HOLO;+ if (p > 1 - 0.04f * er * mod) return ED_FOIL;+ return 0;+}++int joker_new_uid(void) { return ++R.next_uid ? R.next_uid : ++R.next_uid; }++void joker_on_added(joker_t *j) {+ (void)j;+ if (j->id == J_CHAOS) R.free_rerolls++;+ if (j->id == J_DRUNKARD) R.discards_left += 1;+ if (j->id == J_MERRY_ANDY) R.discards_left += 3;+ if (j->id == J_CHICOT && R.phase == PH_ROUND && R.blind >= BL_OX && !R.blind_disabled) R.blind_disabled = 2;+}++void joker_add(int id, int ed, int silent) {+ (void)silent;+ if (R.njokers >= MAXJ) return;+ joker_t *j = &R.jokers[R.njokers];+ memset(j, 0, sizeof *j);+ j->id = (uint8_t)id;+ j->uid = (uint16_t)joker_new_uid();+ joker_init(j);+ j->ed = (uint8_t)(ed < 0 ? poll_edition(1, 0, 0) : ed);+ R.njokers++;+ joker_on_added(j);+ ev_t *v = ev_push(EV_JOKER_ADD);+ if (v) v->a = j->uid, v->b = j->id, v->c = j->ed, v->d = (int16_t)(R.njokers - 1);+}++void joker_remove(int idx, int sold) {+ if (idx < 0 || idx >= R.njokers) return;+ joker_t *j = &R.jokers[idx];+ ev_t *v = ev_push(EV_JOKER_REMOVE);+ if (v) v->a = j->uid, v->b = (uint8_t)sold;+ if (!(j->flags & JF_DEBUFF)) {+ if (j->id == J_CHAOS && R.free_rerolls > 0) R.free_rerolls--;+ if (j->id == J_DRUNKARD) R.discards_left = R.discards_left > 1 ? R.discards_left - 1 : 0;+ if (j->id == J_MERRY_ANDY) R.discards_left = R.discards_left > 3 ? R.discards_left - 3 : 0;+ }+ for (int i = idx; i < R.njokers - 1; i++) R.jokers[i] = R.jokers[i + 1];+ R.njokers--;+}++void add_cons(int id, int ed) {+ if (R.ncons >= MAXCONS) return;+ cons_t *c = &R.cons[R.ncons++];+ c->id = (uint8_t)id;+ c->ed = (uint8_t)ed;+ c->uid = (uint16_t)joker_new_uid();+ c->extra_value = 0;+ ev_t *v = ev_push(EV_CONS_ADD);+ if (v) v->a = c->uid, v->b = c->id, v->c = c->ed;+}++static void remove_cons(int idx) {+ ev_t *v = ev_push(EV_CONS_REMOVE);+ if (v) v->a = R.cons[idx].uid;+ for (int i = idx; i < R.ncons - 1; i++) R.cons[i] = R.cons[i + 1];+ R.ncons--;+}++/* ------------------------------------------------------------------ tags */+int tag_for_skip(void) {+ int pool[N_TAG], n = 0;+ for (int t = 0; t < N_TAG; t++)+ if (tag_info[t].min_ante <= R.ante) pool[n++] = t;+ return pool[rng_int(0, n - 1)];+}++static int random_visible_hand(void) {+ int pick[NHANDS], n = 0;+ for (int h = 0; h < NHANDS; h++)+ if (R.hands[h].visible) pick[n++] = h;+ return pick[rng_int(0, n - 1)];+}++static void add_tag_orb(int t, int orb) {+ /* Double Tag copies the next tag (not another Double Tag) */+ int copies = 0;+ for (int i = 0; i < R.ntags; i++)+ if (R.tags[i] == TAG_DOUBLE && t != TAG_DOUBLE) {+ for (int k = i; k < R.ntags - 1; k++) R.tags[k] = R.tags[k + 1], R.tag_orbital[k] = R.tag_orbital[k + 1];+ R.ntags--;+ i--;+ copies++;+ }+ if (R.ntags < MAXTAGS) {+ R.tags[R.ntags] = (uint8_t)t;+ R.tag_orbital[R.ntags++] = (int8_t)orb;+ }+ for (int i = 0; i < copies; i++) {+ ev_popup(TG_CENTER, 0, "Double Tag", PC_ATTN);+ add_tag_orb(t, orb);+ }+}++void add_tag(int t) { add_tag_orb(t, t == TAG_ORBITAL ? random_visible_hand() : -1); }++static void tag_remove(int i) {+ for (int k = i; k < R.ntags - 1; k++) R.tags[k] = R.tags[k + 1], R.tag_orbital[k] = R.tag_orbital[k + 1];+ R.ntags--;+}++/* 'immediate' tags */+static void tags_immediate(void) {+ for (int i = 0; i < R.ntags; i++) {+ int t = R.tags[i], done = 1;+ switch (t) {+ case TAG_TOP_UP:+ for (int k = 0; k < 2; k++)+ if (R.njokers < joker_slots()) joker_add(create_joker_id(1, 0), -1, 0);+ break;+ case TAG_SKIP: R.money += R.skips * 5; break;+ case TAG_GARBAGE: R.money += R.unused_discards; break;+ case TAG_HANDY: R.money += R.hands_played; break;+ case TAG_ECONOMY: R.money += R.money > 40 ? 40 : R.money > 0 ? R.money : 0; break;+ case TAG_ORBITAL: level_up(R.tag_orbital[i] >= 0 ? R.tag_orbital[i] : random_visible_hand(), 3, -1); break;+ default: done = 0;+ }+ if (done) {+ ev_money();+ tag_remove(i);+ i--;+ }+ }+}++/* 'new_blind_choice' tags: returns 1 if one applied (it may open a pack) */+static int tags_new_blind_choice(void) {+ for (int i = 0; i < R.ntags; i++) {+ int t = R.tags[i];+ int pk = -1;+ switch (t) {+ case TAG_CHARM: pk = PK_ARCANA * 3 + 2; break;+ case TAG_METEOR: pk = PK_CELESTIAL * 3 + 2; break;+ case TAG_ETHEREAL: pk = PK_SPECTRAL * 3; break;+ case TAG_STANDARD: pk = PK_STANDARD * 3 + 2; break;+ case TAG_BUFFOON: pk = PK_BUFFOON * 3 + 2; break;+ case TAG_BOSS:+ tag_remove(i);+ R.boss_rerolled = 1;+ {+ int get_new_boss(void);+ R.boss = (uint8_t)get_new_boss();+ }+ return 1;+ default: continue;+ }+ tag_remove(i);+ pack_open(pk / 3, pk % 3, 1);+ return 1;+ }+ return 0;+}++/* ------------------------------------------------------------------ blinds */+int get_new_boss(void) {+ int eligible[N_BLIND], n = 0, min_use = 100;+ int ante = R.ante < 1 ? 1 : R.ante;+ for (int b = BL_OX; b < N_BLIND; b++) {+ const blind_info_t *bi = &blind_info[b];+ int ok;+ if (!bi->showdown) ok = bi->min <= ante && (ante % WIN_ANTE != 0 || R.ante < 2);+ else ok = R.ante % WIN_ANTE == 0 && R.ante >= 2;+ if (ok && R.bosses_used[b] < min_use) min_use = R.bosses_used[b];+ eligible[b] = ok;+ }+ for (int b = BL_OX; b < N_BLIND; b++)+ if (eligible[b] && R.bosses_used[b] == min_use) eligible[n++] = b;+ int boss = n ? eligible[rng_int(0, n - 1)] : BL_HOOK;+ R.bosses_used[boss]++;+ return boss;+}++static void reset_round_cards(void) {+ /* reset_idol_card, reset_mail_rank, reset_ancient_card, reset_castle_card */+ int valid[MAXCARDS], n = 0;+ for (int i = 0; i < R.ncards_alloc; i++)+ if ((R.cards[i].flags & CF_USED) && R.cards[i].enh != E_STONE) valid[n++] = i;+ R.idol_rank = 14, R.idol_suit = S_SPADES, R.mail_rank = 14, R.castle_suit = S_SPADES;+ if (n) {+ int c = valid[rng_int(0, n - 1)];+ R.idol_rank = R.cards[c].rank, R.idol_suit = R.cards[c].suit;+ R.mail_rank = R.cards[valid[rng_int(0, n - 1)]].rank;+ R.castle_suit = R.cards[valid[rng_int(0, n - 1)]].suit;+ }+ int s;+ do s = rng_int(0, 3); while (s == R.ancient_suit);+ R.ancient_suit = (uint8_t)s;+}++static void next_voucher(void) {+ int pool[32], n = 0;+ for (int v = 0; v < 32; v++) {+ if (has_voucher(v)) continue;+ if (v >= 16 && !has_voucher(v - 16)) continue;+ pool[n++] = v;+ }+ R.shop_voucher = n ? (uint8_t)pool[rng_int(0, n - 1)] : (uint8_t)V_BLANK;+}++void blind_debuff_card(int ci) {+ card_t *c = &R.cards[ci];+ c->flags &= (uint8_t)~CF_DEBUFF;+ if (R.phase != PH_ROUND || R.blind_disabled) return;+ int s = -1;+ switch (R.blind) {+ case BL_CLUB: s = S_CLUBS; break;+ case BL_GOAD: s = S_SPADES; break;+ case BL_WINDOW: s = S_DIAMONDS; break;+ case BL_HEAD: s = S_HEARTS; break;+ case BL_PLANT:+ if (card_is_face(ci, 1)) c->flags |= CF_DEBUFF;+ return;+ case BL_PILLAR:+ if (c->flags & CF_PLAYED_ANTE) c->flags |= CF_DEBUFF;+ return;+ case BL_FINAL_LEAF: c->flags |= CF_DEBUFF; return;+ }+ if (s >= 0 && card_is_suit(ci, s, 1, 0)) c->flags |= CF_DEBUFF;+}++void blind_debuff_all(void) {+ for (int i = 0; i < R.ncards_alloc; i++)+ if (R.cards[i].flags & CF_USED) blind_debuff_card(i);+ for (int i = 0; i < R.ncards_alloc; i++)+ if (R.cards[i].flags & CF_USED) ev_card_set(i);+}++/* Blind:disable */+static void blind_disable(void) {+ R.blind_disabled = 1;+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].flags & JF_DOWN) {+ R.jokers[i].flags &= (uint8_t)~JF_DOWN;+ ev_t *v = ev_push(EV_JOKER_SET);+ if (v) v->a = R.jokers[i].uid, v->b = R.jokers[i].ed, v->c = R.jokers[i].flags;+ }+ if (R.blind == BL_WATER) R.discards_left += R.water_sub;+ if (R.blind == BL_WHEEL || R.blind == BL_HOUSE || R.blind == BL_MARK || R.blind == BL_FISH)+ for (int i = 0; i < R.nhand; i++) R.cards[R.hand[i]].flags &= (uint8_t)~CF_DOWN;+ if (R.blind == BL_NEEDLE) R.hands_left += R.needle_sub;+ if (R.blind == BL_WALL) R.blind_chips /= 2;+ if (R.blind == BL_FINAL_BELL)+ for (int i = 0; i < R.ncards_alloc; i++) R.cards[i].flags &= (uint8_t)~CF_FORCED;+ if (R.blind == BL_FINAL_VESSEL) R.blind_chips /= 3;+ if (R.blind == BL_FINAL_HEART)+ for (int i = 0; i < R.njokers; i++) R.jokers[i].flags &= (uint8_t)~JF_DEBUFF;+ blind_debuff_all();+ ev_push(EV_BLIND_FLASH);+ ev_sync();+ if (R.blind == BL_MANACLE) {+ extern void draw_phase(void);+ /* one more card fits in the hand */+ if (R.ndeck && R.nhand < hand_size()) {+ int ci = R.deck[--R.ndeck];+ R.sel[R.nhand] = 0;+ R.hand[R.nhand++] = (uint8_t)ci;+ ev_card(EV_CARD_MOVE, ci, A_HAND, 0);+ sort_hand(R.sort_suit);+ }+ }+}++void apply_disable_request(void) {+ if (R.blind_disabled == 2) blind_disable();+}++static void set_blind(int b) {+ R.blind = (uint8_t)b;+ R.blind_disabled = 0, R.blind_triggered = 0, R.blind_prepped = 1;+ R.blind_hands = 0, R.mouth_hand = -1, R.water_sub = 0, R.needle_sub = 0;+ R.blind_chips = blind_amount(R.ante) * blind_info[b].mult2 / 2.0;+ R.chips = 0;+ if (b == BL_FISH) R.blind_prepped = 0;+ if (b == BL_WATER) {+ R.water_sub = (int8_t)R.discards_left;+ R.discards_left = 0;+ }+ if (b == BL_NEEDLE) {+ R.needle_sub = (int8_t)(round_hands() - 1);+ R.hands_left -= R.needle_sub;+ }+ if (b == BL_FINAL_ACORN && R.njokers) {+ for (int i = 0; i < R.njokers; i++) R.jokers[i].flags |= JF_DOWN;+ for (int i = R.njokers - 1; i > 0; i--) {+ int k = rng_int(0, i);+ joker_t t = R.jokers[i];+ R.jokers[i] = R.jokers[k], R.jokers[k] = t;+ }+ ev_sync();+ }+ blind_debuff_all();+}++void run_start_blind_select(void) {+ R.phase = PH_BLIND_SELECT;+ tags_new_blind_choice();+}++static void shuffle_deck(void) {+ for (int i = R.ndeck - 1; i > 0; i--) {+ int k = rng_int(0, i);+ uint8_t t = R.deck[i];+ R.deck[i] = R.deck[k], R.deck[k] = t;+ }+}++void draw_phase(void);++void blind_select(void) {+ ev_reset();+ int on = R.blind_on;+ R.blind_state[on] = BS_CURRENT;+ R.round++;+ R.phase = PH_ROUND;+ /* new_round */+ R.discards_left = (int16_t)round_discards();+ R.hands_left = (int16_t)round_hands();+ R.hands_played_round = 0, R.discards_used_round = 0, R.reroll_inc = 0;+ for (int h = 0; h < NHANDS; h++) R.hands[h].played_round = 0;+ for (int i = 0; i < R.ncards_alloc; i++) R.cards[i].flags &= (uint8_t)~(CF_DOWN | CF_FORCED);+ R.free_rerolls = (int16_t)has_joker(J_CHAOS);+ set_blind(on == 0 ? BL_SMALL : on == 1 ? BL_BIG : R.boss);+ /* jokers when the blind is set */+ for (int i = 0; i < R.njokers; i++) R.jokers[i].flags &= (uint8_t)~JF_SLICED;+ for (int i = 0; i < R.njokers; i++) {+ if (R.jokers[i].flags & JF_SLICED) continue;+ cx_t cx = {0};+ cx.kind = CX_SETTING_BLIND, cx.bp = -1, cx.boss = R.blind >= BL_OX;+ eff_t e = {0};+ if (jcalc(i, &cx, &e) && (e.has & EF_MSG) && e.msg && e.msg[0]) ev_popup(TG_JOKER, e.card, e.msg, e.col);+ if (R.blind_disabled == 2) blind_disable();+ }+ for (int i = R.njokers - 1; i >= 0; i--)+ if (R.jokers[i].flags & JF_SLICED) joker_remove(i, 0);+ ev_t *v = ev_push(EV_HANDS);+ if (v) v->a = (uint16_t)R.hands_left;+ v = ev_push(EV_DISCARDS);+ if (v) v->a = (uint16_t)R.discards_left;+ shuffle_deck();+ draw_phase();+}++void blind_skip(void) {+ ev_reset();+ int on = R.blind_on;+ if (on > 1) return;+ R.skips++;+ add_tag(R.skip_tag[on]);+ R.blind_state[on] = BS_SKIPPED;+ R.blind_on = (uint8_t)(on + 1);+ R.blind_state[on + 1] = BS_SELECT;+ cx_t cx = {0};+ for (int i = 0; i < R.njokers; i++) {+ cx.kind = CX_SKIP_BLIND, cx.bp = -1;+ eff_t e = {0};+ if (jcalc(i, &cx, &e) && (e.has & EF_MSG)) ev_popup(TG_JOKER, e.card, e.msg, e.col);+ }+ tags_immediate();+ tags_new_blind_choice();+ ev_sync();+}++void boss_reroll(void) {+ ev_reset();+ R.boss_rerolled = 1;+ R.money -= 10;+ R.boss = (uint8_t)get_new_boss();+ ev_money();+ ev_sync();+}++void game_over(void) {+ R.phase = PH_GAMEOVER;+ ev_sync();+}++/* after a won round: blind state, then the cash out numbers */+void blind_defeat(void) {+ int boss = R.blind >= BL_OX;+ /* flip the jokers back */+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].flags & (JF_DOWN | JF_DEBUFF)) {+ R.jokers[i].flags &= (uint8_t)~(JF_DOWN | JF_DEBUFF);+ ev_t *v = ev_push(EV_JOKER_SET);+ if (v) v->a = R.jokers[i].uid, v->b = R.jokers[i].ed, v->c = R.jokers[i].flags;+ }+ /* back to the deck */+ for (int i = 0; i < R.ndiscard; i++) R.deck[R.ndeck++] = R.discard[i];+ for (int i = 0; i < R.nhand; i++) R.deck[R.ndeck++] = R.hand[i];+ for (int i = 0; i < R.nplay; i++) R.deck[R.ndeck++] = R.play[i];+ R.ndiscard = R.nhand = R.nplay = 0;+ for (int i = 0; i < R.ncards_alloc; i++) R.cards[i].flags &= (uint8_t)~(CF_DOWN | CF_FORCED | CF_DEBUFF);+ int won_now = 0;+ R.blind_state[R.blind_on] = BS_DEFEATED;+ if (boss) {+ if (R.ante == WIN_ANTE && !R.won) won_now = 1, R.won = 1;+ R.ante++;+ if (R.ante > R.max_ante_reached) R.max_ante_reached = R.ante;+ next_voucher();+ R.voucher_tag_extra = 0;+ for (int i = 0; i < R.ncards_alloc; i++) R.cards[i].flags &= (uint8_t)~CF_PLAYED_ANTE;+ } else {+ R.blind_on++;+ R.blind_state[R.blind_on] = BS_SELECT;+ }+ R.temp_handsize = 0;+ R.temp_reroll = -1;+ reset_round_cards();+ /* cash out */+ R.cash_blind = blind_info[R.blind].dollars;+ R.cash_hands = R.hands_left;+ int per[MAXJ];+ uint8_t ids[MAXJ];+ R.ncash_joker = (uint8_t)jokers_dollar_bonus(per, ids);+ for (int i = 0; i < R.ncash_joker; i++) R.cash_joker[i] = (int16_t)per[i], R.cash_joker_id[i] = ids[i];+ R.cash_tag = 0;+ if (boss)+ for (int i = 0; i < R.ntags; i++)+ if (R.tags[i] == TAG_INVESTMENT) {+ R.cash_tag = 25;+ tag_remove(i);+ break;+ }+ int interest = 0;+ if (R.money >= 5) {+ int k = R.money / 5, cap = R.interest_cap / 5, amount = 1 + has_joker(J_TO_THE_MOON);+ interest = amount * (k < cap ? k : cap);+ }+ R.cash_interest = (int16_t)interest;+ int total = R.cash_blind + R.cash_hands + R.cash_tag + R.cash_interest;+ for (int i = 0; i < R.ncash_joker; i++) total += R.cash_joker[i];+ R.cash_total = (int16_t)total;+ R.phase = won_now ? PH_WIN : PH_CASHOUT;+ ev_sync();+}++int jokers_dollar_bonus(int *per, uint8_t *ids) {+ int n = 0;+ for (int i = 0; i < R.njokers; i++) {+ joker_t *j = &R.jokers[i];+ if (j->flags & JF_DEBUFF) continue;+ int d = 0;+ switch (j->id) {+ case J_GOLDEN: d = 4; break;+ case J_CLOUD_9: {+ int nines = 0;+ for (int c = 0; c < R.ncards_alloc; c++)+ if ((R.cards[c].flags & CF_USED) && card_get_id(c) == 9) nines++;+ d = nines;+ break;+ }+ case J_ROCKET: d = j->a; break;+ case J_SATELLITE: {+ int p = 0;+ for (int k = 0; k < 12; k++) p += (R.planets_used_mask >> k) & 1;+ d = 1 * p;+ break;+ }+ case J_DELAYED_GRAT:+ if (R.discards_used_round == 0 && R.discards_left > 0) d = R.discards_left * 2;+ break;+ }+ if (d > 0) per[n] = d, ids[n++] = (uint8_t)i;+ }+ return n;+}++void cash_out(void) {+ ev_reset();+ R.chips = 0;+ R.money += R.cash_total;+ ev_money();+ R.hands_left = (int16_t)round_hands();+ R.discards_left = (int16_t)round_discards();+ if (R.blind_state[2] == BS_DEFEATED) {+ R.skip_tag[0] = (uint8_t)tag_for_skip();+ R.skip_tag[1] = (uint8_t)tag_for_skip();+ R.blind_state[0] = BS_SELECT, R.blind_state[1] = BS_UPCOMING, R.blind_state[2] = BS_UPCOMING;+ R.blind_on = 0;+ R.boss = (uint8_t)get_new_boss();+ R.boss_rerolled = 0;+ }+ shop_enter();+}++void continue_endless(void) {+ R.endless = 1;+ R.phase = PH_CASHOUT;+}++/* ------------------------------------------------------------------ shop */+static void calc_reroll(int skip_increment) {+ if (R.free_rerolls < 0) R.free_rerolls = 0;+ if (R.free_rerolls > 0) {+ R.reroll_cost = 0;+ return;+ }+ if (!skip_increment) R.reroll_inc++;+ R.reroll_cost = (int16_t)((R.temp_reroll >= 0 ? R.temp_reroll : R.reroll_base) + R.reroll_inc);+}++static void random_card_item(sitem_t *it, int enhanced) {+ it->kind = IT_CARD;+ it->card = random_card();+ if (enhanced) it->card.enh = (uint8_t)random_enhancement(0);+}++/* store_joker_modify tags on a new shop joker */+static void tags_modify(sitem_t *it) {+ if (it->kind != IT_JOKER || it->ed) return;+ for (int i = 0; i < R.ntags; i++) {+ int t = R.tags[i], ed = t == TAG_FOIL ? ED_FOIL : t == TAG_HOLO ? ED_HOLO : t == TAG_POLYCHROME ? ED_POLY+ : t == TAG_NEGATIVE ? ED_NEG : 0;+ if (!ed) continue;+ it->ed = (uint8_t)ed;+ it->flags |= 1;+ tag_remove(i);+ return;+ }+}++static void shop_card(sitem_t *it) {+ memset(it, 0, sizeof *it);+ it->uid = (uint16_t)joker_new_uid();+ /* store_joker_create tags */+ for (int i = 0; i < R.ntags; i++) {+ int t = R.tags[i];+ if (t == TAG_UNCOMMON || t == TAG_RARE) {+ tag_remove(i);+ int rare_owned = 0, n_rare = 0;+ for (int id = 0; id < N_JOKER; id++) n_rare += joker_info[id].rarity == 3;+ for (int k = 0; k < R.njokers; k++) rare_owned += joker_info[R.jokers[k].id].rarity == 3;+ if (t == TAG_RARE && rare_owned >= n_rare) break;+ it->kind = IT_JOKER;+ it->id = (uint8_t)create_joker_id(t == TAG_RARE ? 3 : 2, 0);+ it->ed = (uint8_t)poll_edition(1, 0, 0);+ it->flags |= 1;+ tags_modify(it);+ return;+ }+ }+ float total = 20 + R.tarot_rate + R.planet_rate + R.playing_card_rate + R.spectral_rate;+ float p = rng_f() * total;+ if ((p -= 20) < 0) {+ it->kind = IT_JOKER;+ it->id = (uint8_t)create_joker_id(-1, 0);+ it->ed = (uint8_t)poll_edition(1, 0, 0);+ tags_modify(it);+ } else if ((p -= R.tarot_rate) < 0) {+ it->kind = IT_CONS, it->id = (uint8_t)create_cons_id(0);+ } else if ((p -= R.planet_rate) < 0) {+ it->kind = IT_CONS, it->id = (uint8_t)create_cons_id(1);+ } else if ((p -= R.playing_card_rate) < 0) {+ random_card_item(it, has_voucher(V_ILLUSION) && rng_f() > 0.6f);+ if (has_voucher(V_ILLUSION) && rng_f() > 0.8f) {+ float e = rng_f();+ it->card.ed = e > 0.85f ? ED_POLY : e > 0.5f ? ED_HOLO : ED_FOIL;+ }+ } else {+ it->kind = IT_CONS, it->id = (uint8_t)create_cons_id(2);+ }+ if (it->kind == IT_JOKER && it->id == J_TODO_LIST) {+ joker_t j = {0};+ j.id = J_TODO_LIST;+ joker_init(&j);+ it->a = j.c;+ }+}++static int pack_pick(void) {+ /* get_pack: the first shop has a Buffoon Pack */+ if (!R.first_shop_buffoon) {+ R.first_shop_buffoon = 1;+ return PK_BUFFOON * 3;+ }+ /* weights by kind and size, as in P_CENTERS */+ static const float w[5][3] = {{4, 2, 0.5f}, {4, 2, 0.5f}, {4, 2, 0.5f}, {1.2f, 0.6f, 0.15f}, {0.6f, 0.3f, 0.07f}};+ float tot = 0;+ for (int k = 0; k < 5; k++)+ for (int s = 0; s < 3; s++) tot += w[k][s];+ float p = rng_f() * tot;+ for (int k = 0; k < 5; k++)+ for (int s = 0; s < 3; s++) {+ p -= w[k][s];+ if (p < 0) return k * 3 + s;+ }+ return 0;+}++void shop_enter(void) {+ ev_reset();+ R.phase = PH_SHOP;+ R.d6 = 0, R.coupon = 0;+ R.temp_reroll = -1;+ /* shop_start: D6 Tag */+ for (int i = 0; i < R.ntags; i++)+ if (R.tags[i] == TAG_D_SIX) {+ tag_remove(i);+ R.temp_reroll = 0;+ R.d6 = 1;+ break;+ }+ R.reroll_inc = 0;+ calc_reroll(1);+ R.nshop = 0;+ for (int i = 0; i < R.shop_jokers_max && i < MAXSHOP; i++) shop_card(&R.shop[R.nshop++]);+ R.nshop_v = 0;+ if (R.shop_voucher != 0xFF) {+ sitem_t *v = &R.shop_v[R.nshop_v++];+ memset(v, 0, sizeof *v);+ v->kind = IT_VOUCHER, v->id = R.shop_voucher, v->uid = (uint16_t)joker_new_uid();+ }+ R.nshop_p = 0;+ for (int i = 0; i < 2; i++) {+ sitem_t *p = &R.shop_p[R.nshop_p++];+ memset(p, 0, sizeof *p);+ p->kind = IT_PACK, p->id = (uint8_t)pack_pick(), p->uid = (uint16_t)joker_new_uid();+ }+ /* voucher_add: Voucher Tag */+ for (int i = 0; i < R.ntags && R.nshop_v < 3; i++)+ if (R.tags[i] == TAG_VOUCHER) {+ tag_remove(i);+ i--;+ int pool[32], n = 0;+ for (int v = 0; v < 32; v++) {+ int in = has_voucher(v) || (v >= 16 && !has_voucher(v - 16));+ for (int k = 0; k < R.nshop_v; k++) in |= R.shop_v[k].id == v;+ if (!in) pool[n++] = v;+ }+ if (!n) continue;+ sitem_t *v = &R.shop_v[R.nshop_v++];+ memset(v, 0, sizeof *v);+ v->kind = IT_VOUCHER, v->id = (uint8_t)pool[rng_int(0, n - 1)], v->uid = (uint16_t)joker_new_uid();+ v->flags = 2; /* not the ante's voucher */+ }+ /* shop_final_pass: Coupon Tag */+ for (int i = 0; i < R.ntags; i++)+ if (R.tags[i] == TAG_COUPON) {+ tag_remove(i);+ R.coupon = 1;+ for (int k = 0; k < R.nshop; k++) R.shop[k].flags |= 1;+ for (int k = 0; k < R.nshop_p; k++) R.shop_p[k].flags |= 1;+ break;+ }+ ev_sync();+}++void shop_leave(void) {+ ev_reset();+ cx_t cx = {0};+ for (int i = 0; i < R.njokers; i++) {+ cx.kind = CX_ENDING_SHOP, cx.bp = -1;+ eff_t e = {0};+ if (jcalc(i, &cx, &e) && (e.has & EF_MSG)) ev_popup(TG_JOKER, e.card, e.msg, e.col);+ }+ R.nshop = R.nshop_p = 0;+ run_start_blind_select();+ ev_sync();+}++static int can_afford(int cost) {+ int bankrupt = -20 * has_joker(J_CREDIT_CARD);+ return cost == 0 || R.money - bankrupt - cost >= 0;+}++int shop_reroll(void) {+ if (!can_afford(R.reroll_cost)) return 0;+ ev_reset();+ if (R.reroll_cost > 0) {+ R.money -= R.reroll_cost;+ ev_money();+ }+ int final_free = R.free_rerolls > 0;+ R.free_rerolls = (int16_t)(R.free_rerolls > 0 ? R.free_rerolls - 1 : 0);+ R.rerolls++;+ calc_reroll(final_free);+ R.nshop = 0;+ for (int i = 0; i < R.shop_jokers_max && i < MAXSHOP; i++) shop_card(&R.shop[R.nshop++]);+ cx_t cx = {0};+ for (int i = 0; i < R.njokers; i++) {+ cx.kind = CX_REROLL, cx.bp = -1;+ eff_t e = {0};+ if (jcalc(i, &cx, &e) && (e.has & EF_MSG)) ev_popup(TG_JOKER, e.card, e.msg, e.col);+ }+ ev_sync();+ return 1;+}++static void redeem(int v) {+ R.vouchers |= 1u << v;+ switch (v) {+ case V_OVERSTOCK_NORM: case V_OVERSTOCK_PLUS:+ R.shop_jokers_max++;+ if (R.phase == PH_SHOP && R.nshop < MAXSHOP) shop_card(&R.shop[R.nshop++]);+ break;+ case V_TAROT_MERCHANT: R.tarot_rate = 4 * 2.4f; break;+ case V_TAROT_TYCOON: R.tarot_rate = 4 * 8; break;+ case V_PLANET_MERCHANT: R.planet_rate = 4 * 2.4f; break;+ case V_PLANET_TYCOON: R.planet_rate = 4 * 8; break;+ case V_HONE: R.edition_rate = 2; break;+ case V_GLOW_UP: R.edition_rate = 4; break;+ case V_MAGIC_TRICK: case V_ILLUSION: R.playing_card_rate = 4; break;+ case V_CRYSTAL_BALL: R.cons_slots++; break;+ case V_CLEARANCE_SALE: R.discount = 25; break;+ case V_LIQUIDATION: R.discount = 50; break;+ case V_REROLL_SURPLUS: case V_REROLL_GLUT:+ R.reroll_base -= 2;+ R.reroll_cost = (int16_t)(R.reroll_cost > 2 ? R.reroll_cost - 2 : 0);+ break;+ case V_SEED_MONEY: R.interest_cap = 50; break;+ case V_MONEY_TREE: R.interest_cap = 100; break;+ case V_GRABBER: case V_NACHO_TONG:+ R.base_hands++;+ R.hands_left++;+ break;+ case V_WASTEFUL: case V_RECYCLOMANCY:+ R.base_discards++;+ R.discards_left++;+ break;+ case V_ANTIMATTER: R.joker_slots++; break;+ case V_HIEROGLYPH:+ R.ante--;+ R.base_hands--;+ R.hands_left--;+ break;+ case V_PETROGLYPH:+ R.ante--;+ R.base_discards--;+ R.discards_left--;+ break;+ }+}++int shop_buy(int area, int idx, int use_now) {+ sitem_t *it = area == 0 ? &R.shop[idx] : area == 1 ? &R.shop_v[idx] : &R.shop_p[idx];+ int cnt = area == 0 ? R.nshop : area == 1 ? R.nshop_v : R.nshop_p;+ if (idx < 0 || idx >= cnt) return 0;+ int cost = item_cost(it);+ if (!can_afford(cost)) return 0;+ if (!use_now) {+ if (it->kind == IT_JOKER && (R.njokers >= joker_slots() + (it->ed == ED_NEG) || R.njokers >= MAXJ)) return 0;+ if (it->kind == IT_CONS && (R.ncons >= cons_slots() + (it->ed == ED_NEG) || R.ncons >= MAXCONS)) return 0;+ }+ if (it->kind == IT_CARD && deck_full()) return 0;+ ev_reset();+ sitem_t copy = *it;+ /* take it out of the shop */+ if (area == 0) {+ for (int i = idx; i < R.nshop - 1; i++) R.shop[i] = R.shop[i + 1];+ R.nshop--;+ } else if (area == 1) {+ for (int i = idx; i < R.nshop_v - 1; i++) R.shop_v[i] = R.shop_v[i + 1];+ R.nshop_v--;+ } else {+ for (int i = idx; i < R.nshop_p - 1; i++) R.shop_p[i] = R.shop_p[i + 1];+ R.nshop_p--;+ }+ if (cost) {+ R.money -= cost;+ ev_money();+ }+ if (copy.kind != IT_PACK) R.cards_bought++;+ switch (copy.kind) {+ case IT_JOKER: {+ joker_t *j = &R.jokers[R.njokers];+ memset(j, 0, sizeof *j);+ j->id = copy.id;+ j->uid = copy.uid;+ joker_init(j);+ if (copy.id == J_TODO_LIST) j->c = (uint8_t)copy.a;+ j->ed = copy.ed;+ R.njokers++;+ joker_on_added(j);+ ev_t *v = ev_push(EV_JOKER_ADD);+ if (v) v->a = j->uid, v->b = j->id, v->c = j->ed, v->d = (int16_t)(R.njokers - 1);+ break;+ }+ case IT_CONS:+ if (use_now) {+ extern int use_cons_id(int id, int ed, int from);+ use_cons_id(copy.id, copy.ed, 2);+ } else {+ cons_t *c = &R.cons[R.ncons++];+ c->id = copy.id, c->ed = copy.ed, c->uid = copy.uid, c->extra_value = 0;+ ev_t *v = ev_push(EV_CONS_ADD);+ if (v) v->a = c->uid, v->b = c->id, v->c = c->ed;+ }+ break;+ case IT_CARD: {+ int ci = add_card_to_deck(copy.card, A_DECK);+ (void)ci;+ cx_t cx = {0};+ cx.kind = CX_CARDS_ADDED, cx.bp = -1, cx.n = 1;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e = {0};+ jcalc(i, &cx, &e);+ }+ break;+ }+ case IT_VOUCHER:+ if (!(copy.flags & 2)) R.shop_voucher = 0xFF;+ redeem(copy.id);+ break;+ case IT_PACK: pack_open(copy.id / 3, copy.id % 3, 0); break;+ }+ ev_sync();+ return 1;+}++/* ------------------------------------------------------------------ packs */+static const uint8_t pack_n[5][3] = {{3, 5, 5}, {3, 5, 5}, {3, 5, 5}, {2, 4, 4}, {2, 4, 4}};++void pack_open(int kind, int size, int from_tag) {+ R.pack_return = R.phase == PH_PACK ? R.pack_return : R.phase;+ R.phase = PH_PACK;+ R.pack_kind = (uint8_t)kind, R.pack_size = (uint8_t)size, R.pack_from_tag = (uint8_t)from_tag;+ R.pack_picks = size == 2 ? 2 : 1;+ R.npack = 0;+ int n = pack_n[kind][size];+ for (int i = 0; i < n; i++) {+ sitem_t *it = &R.pack[R.npack++];+ memset(it, 0, sizeof *it);+ it->uid = (uint16_t)joker_new_uid();+ switch (kind) {+ case PK_ARCANA:+ it->kind = IT_CONS;+ if (has_voucher(V_OMEN_GLOBE) && rng_f() > 0.8f) it->id = (uint8_t)create_cons_soulable(2);+ else it->id = (uint8_t)create_cons_soulable(0);+ break;+ case PK_CELESTIAL:+ it->kind = IT_CONS;+ if (has_voucher(V_TELESCOPE) && i == 0) {+ int best = -1, tally = 0;+ static const uint8_t order[12] = {H_FLUSH_FIVE, H_FLUSH_HOUSE, H_FIVE_KIND, H_STRAIGHT_FLUSH, H_FOUR_KIND,+ H_FULL_HOUSE, H_FLUSH, H_STRAIGHT, H_THREE_KIND, H_TWO_PAIR, H_PAIR,+ H_HIGH_CARD};+ for (int k = 0; k < 12; k++)+ if (R.hands[order[k]].visible && R.hands[order[k]].played > tally) tally = R.hands[order[k]].played, best = order[k];+ static const uint8_t planet_of[12] = {C_ERIS, C_CERES, C_PLANET_X, C_NEPTUNE, C_MARS, C_EARTH, C_JUPITER,+ C_SATURN, C_VENUS, C_URANUS, C_MERCURY, C_PLUTO};+ it->id = (uint8_t)(best >= 0 ? planet_of[best] : create_cons_soulable(1));+ } else+ it->id = (uint8_t)create_cons_soulable(1);+ break;+ case PK_SPECTRAL:+ it->kind = IT_CONS;+ it->id = (uint8_t)create_cons_soulable(2);+ break;+ case PK_STANDARD: {+ random_card_item(it, rng_f() > 0.6f);+ it->card.ed = (uint8_t)poll_edition(2, 1, 0);+ if (rng_f() > 1 - 0.02f * 10) {+ float s = rng_f();+ it->card.seal = s > 0.75f ? SEAL_RED : s > 0.5f ? SEAL_BLUE : s > 0.25f ? SEAL_GOLD : SEAL_PURPLE;+ }+ break;+ }+ case PK_BUFFOON:+ it->kind = IT_JOKER;+ it->id = (uint8_t)create_joker_id(-1, 0);+ it->ed = (uint8_t)poll_edition(1, 0, 0);+ break;+ }+ }+ cx_t cx = {0};+ for (int i = 0; i < R.njokers; i++) {+ cx.kind = CX_OPEN_BOOSTER, cx.bp = -1;+ eff_t e = {0};+ jcalc(i, &cx, &e);+ }+ /* Arcana and Spectral packs let you use cards on your hand */+ if (kind == PK_ARCANA || kind == PK_SPECTRAL) {+ for (int i = R.ndeck - 1; i > 0; i--) {+ int k = rng_int(0, i);+ uint8_t t = R.deck[i];+ R.deck[i] = R.deck[k], R.deck[k] = t;+ }+ int hs = hand_size();+ while (R.nhand < hs && R.ndeck) {+ int ci = R.deck[--R.ndeck];+ R.sel[R.nhand] = 0;+ R.hand[R.nhand++] = (uint8_t)ci;+ ev_card(EV_CARD_MOVE, ci, A_HAND, 0);+ }+ sort_hand(R.sort_suit);+ }+ ev_sync();+}++void pack_close(void) {+ /* the hand goes back into the deck */+ for (int i = 0; i < R.nhand; i++) {+ R.deck[R.ndeck++] = R.hand[i];+ ev_card(EV_CARD_MOVE, R.hand[i], A_DECK, 0);+ }+ R.nhand = 0;+ for (int i = 0; i < MAXHAND; i++) R.sel[i] = 0;+ R.npack = 0;+ R.phase = R.pack_return;+ if (R.phase == PH_BLIND_SELECT) tags_new_blind_choice();+ ev_sync();+}++void pack_skip(void) {+ ev_reset();+ cx_t cx = {0};+ for (int i = 0; i < R.njokers; i++) {+ cx.kind = CX_SKIPPING_BOOSTER, cx.bp = -1;+ eff_t e = {0};+ if (jcalc(i, &cx, &e) && (e.has & EF_MSG)) ev_popup(TG_JOKER, e.card, e.msg, e.col);+ }+ pack_close();+}++int pack_choose(int idx) {+ if (idx < 0 || idx >= R.npack || R.pack_picks <= 0) return 0;+ sitem_t *it = &R.pack[idx];+ if (it->kind == IT_JOKER && ((R.njokers >= joker_slots() && it->ed != ED_NEG) || R.njokers >= MAXJ)) return 0;+ if (it->kind == IT_CARD && deck_full()) return 0;+ if (it->kind == IT_CONS) {+ extern int cons_usable(int id, int in_pack);+ if (!cons_usable(it->id, 1)) return 0;+ }+ ev_reset();+ sitem_t copy = *it;+ for (int i = idx; i < R.npack - 1; i++) R.pack[i] = R.pack[i + 1];+ R.npack--;+ switch (copy.kind) {+ case IT_JOKER: {+ joker_t *j = &R.jokers[R.njokers];+ memset(j, 0, sizeof *j);+ j->id = copy.id, j->uid = copy.uid;+ joker_init(j);+ j->ed = copy.ed;+ R.njokers++;+ joker_on_added(j);+ ev_t *v = ev_push(EV_JOKER_ADD);+ if (v) v->a = j->uid, v->b = j->id, v->c = j->ed, v->d = (int16_t)(R.njokers - 1);+ break;+ }+ case IT_CARD: {+ add_card_to_deck(copy.card, A_DECK);+ cx_t cx = {0};+ cx.kind = CX_CARDS_ADDED, cx.bp = -1, cx.n = 1;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e = {0};+ jcalc(i, &cx, &e);+ }+ break;+ }+ case IT_CONS: {+ extern int use_cons_id(int id, int ed, int from);+ use_cons_id(copy.id, copy.ed, 1);+ break;+ }+ }+ R.pack_picks--;+ if (R.pack_picks <= 0 || R.npack == 0) pack_close();+ else ev_sync();+ return 1;+}++/* ------------------------------------------------------------------ selling, moving */+int sell_joker(int idx) {+ if (idx < 0 || idx >= R.njokers) return 0;+ ev_reset();+ int v = joker_sell_value(&R.jokers[idx]);+ uint16_t uid = R.jokers[idx].uid;+ /* selling_self (Luchador, Diet Cola, Invisible Joker) */+ cx_t cx = {0};+ cx.kind = CX_SELLING_SELF, cx.bp = -1;+ eff_t e = {0};+ int had = jcalc(idx, &cx, &e);+ R.money += v;+ ev_money();+ char t[12];+ t[0] = '$';+ fmt_int(t + 1, v);+ ev_popup(TG_JOKER, idx, t, PC_MONEY);+ if (had && (e.has & EF_MSG)) ev_popup(TG_JOKER, idx, e.msg, e.col);+ /* the index may have moved if a joker was added: find it again */+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].uid == uid) idx = i;+ joker_remove(idx, 2);+ apply_disable_request();+ if (R.phase == PH_ROUND && R.blind == BL_FINAL_LEAF && !R.blind_disabled) blind_disable();+ for (int i = 0; i < R.njokers; i++) {+ cx_t c2 = {0};+ c2.kind = CX_SELLING_CARD, c2.bp = -1;+ eff_t e2 = {0};+ if (jcalc(i, &c2, &e2) && (e2.has & EF_MSG)) ev_popup(TG_JOKER, e2.card, e2.msg, e2.col);+ }+ ev_sync();+ return 1;+}++int sell_cons(int idx) {+ if (idx < 0 || idx >= R.ncons) return 0;+ ev_reset();+ int v = cons_sell_value(&R.cons[idx]);+ R.money += v;+ ev_money();+ remove_cons(idx);+ for (int i = 0; i < R.njokers; i++) {+ cx_t c2 = {0};+ c2.kind = CX_SELLING_CARD, c2.bp = -1;+ eff_t e2 = {0};+ if (jcalc(i, &c2, &e2) && (e2.has & EF_MSG)) ev_popup(TG_JOKER, e2.card, e2.msg, e2.col);+ }+ ev_sync();+ return 1;+}++void move_joker(int from, int to) {+ if (from < 0 || to < 0 || from >= R.njokers || to >= R.njokers || from == to) return;+ joker_t t = R.jokers[from];+ if (from < to)+ for (int i = from; i < to; i++) R.jokers[i] = R.jokers[i + 1];+ else+ for (int i = from; i > to; i--) R.jokers[i] = R.jokers[i - 1];+ R.jokers[to] = t;+}++void move_hand_card(int from, int to) {+ if (from < 0 || to < 0 || from >= R.nhand || to >= R.nhand || from == to) return;+ uint8_t c = R.hand[from], s = R.sel[from];+ if (from < to)+ for (int i = from; i < to; i++) R.hand[i] = R.hand[i + 1], R.sel[i] = R.sel[i + 1];+ else+ for (int i = from; i > to; i--) R.hand[i] = R.hand[i - 1], R.sel[i] = R.sel[i - 1];+ R.hand[to] = c, R.sel[to] = s;+}++int nselected(void) {+ int n = 0;+ for (int i = 0; i < R.nhand; i++) n += R.sel[i] != 0;+ return n;+}++void toggle_select(int pos) {+ if (pos < 0 || pos >= R.nhand) return;+ if (R.cards[R.hand[pos]].flags & CF_FORCED) return; /* Cerulean Bell */+ if (R.sel[pos]) R.sel[pos] = 0;+ else if (nselected() < 5) R.sel[pos] = 1;+}++void sort_hand(int by_suit) {+ /* Balatro: descending by rank (then suit), or by suit (then rank) */+ static const uint8_t suitn[4] = {4, 3, 2, 1};+ for (int a = 0; a < R.nhand; a++)+ for (int b = a + 1; b < R.nhand; b++) {+ const card_t *x = &R.cards[R.hand[a]], *y = &R.cards[R.hand[b]];+ int kx, ky;+ int nx = card_chip_nominal(x->rank) * 10 + (x->rank > 10 ? x->rank - 10 : 0);+ int ny = card_chip_nominal(y->rank) * 10 + (y->rank > 10 ? y->rank - 10 : 0);+ if (by_suit) kx = suitn[x->suit] * 1000 + nx, ky = suitn[y->suit] * 1000 + ny;+ else kx = nx * 10 + suitn[x->suit], ky = ny * 10 + suitn[y->suit];+ if (x->enh == E_STONE) kx = -100000 + kx;+ if (y->enh == E_STONE) ky = -100000 + ky;+ if (ky > kx) {+ uint8_t t = R.hand[a];+ R.hand[a] = R.hand[b], R.hand[b] = t;+ t = R.sel[a], R.sel[a] = R.sel[b], R.sel[b] = t;+ }+ }+ ev_push(EV_SORT);+}++/* ------------------------------------------------------------------ new run */+void run_new(const char *seed) {+ memset(&R, 0, sizeof R);+ if (seed && seed[0]) {+ for (int i = 0; i < 8 && seed[i]; i++) R.seed[i] = seed[i];+ } else+ rng_new_seed();+ rng_seed_str(R.seed);+ R.money = 4;+ R.ante = 1;+ R.round = 0;+ R.base_hands = 4;+ R.base_discards = 3 + 1; /* Red Deck: +1 discard every round */+ R.joker_slots = 5;+ R.cons_slots = 2;+ R.interest_cap = 25;+ R.reroll_base = 5;+ R.shop_jokers_max = 2;+ R.tarot_rate = 4, R.planet_rate = 4, R.spectral_rate = 0, R.playing_card_rate = 0, R.edition_rate = 1;+ R.last_tarot_planet = -1;+ R.temp_reroll = -1;+ R.max_ante_reached = 1;+ for (int h = 0; h < NHANDS; h++) {+ R.hands[h].level = 1;+ R.hands[h].visible = h >= H_STRAIGHT_FLUSH;+ }+ for (int s = 0; s < 4; s++)+ for (int r = 2; r <= 14; r++) {+ card_t c = {0};+ c.rank = (uint8_t)r, c.suit = (uint8_t)s, c.flags = CF_USED;+ R.cards[R.ncards_alloc] = c;+ R.deck[R.ndeck++] = R.ncards_alloc++;+ }+ R.starting_deck = 52;+ R.blind_state[0] = BS_SELECT, R.blind_state[1] = BS_UPCOMING, R.blind_state[2] = BS_UPCOMING;+ R.boss = (uint8_t)get_new_boss();+ R.skip_tag[0] = (uint8_t)tag_for_skip();+ R.skip_tag[1] = (uint8_t)tag_for_skip();+ next_voucher();+ reset_round_cards();+ R.phase = PH_BLIND_SELECT;+ R.hands_left = (int16_t)round_hands();+ R.discards_left = (int16_t)round_discards();+ ev_reset();+ ev_sync();+}diff --git a/games/balatro/src/game.h b/games/balatro/src/game.hnew file mode 100644index 00000000..0ac8d656--- /dev/null+++ b/games/balatro/src/game.h@@ -0,0 +1,264 @@+/* Game state and rules (no drawing). The rules follow Balatro's own code+ * (game.lua, card.lua, blind.lua, tag.lua, state_events.lua), ported to C.+ * Logic runs instantly and records what happened as events (ev.h) that the+ * interface then plays back with animations. */+#ifndef GAME_H+#define GAME_H+#include <stdint.h>+#include "data.h"++#define MAXCARDS 160+#define MAXJ 20+#define MAXCONS 10+#define MAXHAND 30+#define MAXTAGS 12+#define MAXSHOP 6+#define MAXPACK 5+#define NHANDS 12+#define WIN_ANTE 8++/* suits: Balatro's order in 8BitDeck.png rows is H C D S; ours follows the+ * game's sort order (suit_nominal): Spades > Hearts > Clubs > Diamonds */+enum { S_SPADES, S_HEARTS, S_CLUBS, S_DIAMONDS };+enum { E_NONE, E_BONUS, E_MULT, E_WILD, E_GLASS, E_STEEL, E_STONE, E_GOLD, E_LUCKY };+enum { ED_NONE, ED_FOIL, ED_HOLO, ED_POLY, ED_NEG };+enum { SEAL_NONE, SEAL_GOLD, SEAL_RED, SEAL_BLUE, SEAL_PURPLE };+/* poker hands, in Balatro's order (strongest first) */+enum { H_FLUSH_FIVE, H_FLUSH_HOUSE, H_FIVE_KIND, H_STRAIGHT_FLUSH, H_FOUR_KIND, H_FULL_HOUSE, H_FLUSH, H_STRAIGHT,+ H_THREE_KIND, H_TWO_PAIR, H_PAIR, H_HIGH_CARD };++/* card flags */+enum { CF_DEBUFF = 1, CF_DOWN = 2, CF_PLAYED_ANTE = 4, CF_FORCED = 8, CF_USED = 16, CF_SHATTER = 32, CF_DESTROY = 64,+ CF_LUCKY = 128 };+typedef struct {+ uint8_t rank; /* 2..14 */+ uint8_t suit, enh, ed, seal, flags;+ uint16_t perma; /* extra chips (Hiker) */+} card_t;++/* joker flags */+enum { JF_DEBUFF = 1, JF_DOWN = 2, JF_SLICED = 4 };+typedef struct {+ uint8_t id, ed, flags, c;+ uint16_t uid;+ int16_t extra_value;+ int32_t a, b;+ float x;+} joker_t;++typedef struct {+ uint8_t id, ed;+ uint16_t uid;+ int16_t extra_value;+} cons_t;++/* areas */+enum { A_DECK, A_HAND, A_PLAY, A_DISCARD, A_NONE };++/* shop / pack items */+enum { IT_NONE, IT_JOKER, IT_CONS, IT_CARD, IT_VOUCHER, IT_PACK };+typedef struct {+ uint8_t kind, id, ed, flags; /* flags: 1 = couponed (free) */+ card_t card; /* for playing cards */+ int16_t cost;+ uint16_t uid;+ int32_t a, b; /* joker state preset (To Do List hand) */+ float x;+} sitem_t;++/* packs: kind * 3 + size */+enum { PK_ARCANA, PK_CELESTIAL, PK_STANDARD, PK_BUFFOON, PK_SPECTRAL };++/* phases */+enum { PH_BLIND_SELECT, PH_ROUND, PH_CASHOUT, PH_SHOP, PH_PACK, PH_GAMEOVER, PH_WIN };+enum { BS_SELECT, BS_UPCOMING, BS_CURRENT, BS_DEFEATED, BS_SKIPPED };++typedef struct {+ int16_t level;+ int16_t played, played_round;+ uint8_t visible;+} hand_t;++typedef struct {+ /* run */+ char seed[9];+ uint32_t rng[4];+ int32_t money;+ int16_t ante, round;+ uint8_t phase, won, endless;+ uint8_t pack_return; /* phase to go back to after a pack */+ /* blinds */+ uint8_t blind_state[3]; /* small, big, boss */+ uint8_t boss; /* boss blind id for this ante */+ uint8_t skip_tag[2]; /* tags offered for skipping small / big */+ uint8_t boss_rerolled;+ uint8_t bosses_used[N_BLIND];+ uint8_t blind; /* current blind id (valid in round and cashout) */+ uint8_t blind_on; /* 0 small 1 big 2 boss: the one being played / next */+ uint8_t blind_disabled, blind_triggered, blind_prepped;+ uint16_t blind_hands; /* The Eye: bit per hand type used */+ int8_t mouth_hand; /* The Mouth */+ int8_t water_sub, needle_sub;+ double chips; /* round score */+ double blind_chips; /* target */+ /* round */+ int16_t hands_left, discards_left, hands_played_round, discards_used_round;+ int16_t base_hands, base_discards, hand_size_mod, joker_slots, cons_slots;+ int16_t temp_handsize; /* Juggle Tag */+ int16_t ecto_minus;+ uint8_t sort_suit;+ /* economy */+ int16_t interest_cap, discount, reroll_base, reroll_cost, reroll_inc, free_rerolls, temp_reroll;+ int16_t shop_jokers_max;+ float tarot_rate, planet_rate, spectral_rate, playing_card_rate, edition_rate;+ uint32_t vouchers; /* bit per voucher */+ uint8_t shop_voucher; /* voucher offered this ante (0xFF none) */+ uint8_t voucher_tag_extra; /* extra vouchers in the shop from Voucher Tags */+ uint8_t d6, coupon; /* shop tag effects applied */+ /* global counters */+ int32_t hands_played, skips, unused_discards, tarots_used;+ uint16_t planets_used_mask; /* Satellite: distinct planets */+ int16_t starting_deck;+ uint8_t last_hand; /* last poker hand played (for Blue Seal) */+ int8_t last_tarot_planet; /* The Fool (-1 none) */+ uint8_t gros_michel_extinct;+ uint8_t most_played;+ uint8_t first_shop_buffoon;+ uint8_t idol_rank, idol_suit, mail_rank, ancient_suit, castle_suit;+ uint16_t next_uid;+ hand_t hands[NHANDS];+ /* cards */+ card_t cards[MAXCARDS];+ uint8_t ncards_alloc;+ uint8_t deck[MAXCARDS], hand[MAXHAND], play[8], discard[MAXCARDS];+ uint8_t ndeck, nhand, nplay, ndiscard;+ uint8_t sel[MAXHAND]; /* selected (highlighted) cards in hand, by hand position */+ /* jokers and consumables */+ joker_t jokers[MAXJ];+ uint8_t njokers;+ cons_t cons[MAXCONS];+ uint8_t ncons;+ /* tags */+ uint8_t tags[MAXTAGS];+ int8_t tag_orbital[MAXTAGS];+ uint8_t ntags;+ /* shop */+ sitem_t shop[MAXSHOP];+ uint8_t nshop;+ sitem_t shop_v[3];+ uint8_t nshop_v;+ sitem_t shop_p[2];+ uint8_t nshop_p;+ /* pack being opened */+ uint8_t pack_kind, pack_size, pack_picks, pack_from_tag;+ sitem_t pack[MAXPACK];+ uint8_t npack;+ /* round eval (cash out) lines */+ int16_t cash_blind, cash_hands, cash_interest, cash_total;+ int16_t cash_joker[MAXJ];+ uint8_t cash_joker_id[MAXJ], ncash_joker;+ int16_t cash_tag;+ /* stats */+ double best_hand;+ int32_t cards_played, cards_discarded, cards_bought, rerolls;+ int16_t max_ante_reached;+ uint8_t end_marker;+} run_t;++extern run_t R;++/* ------------------------------------------------------------ rng */+void rng_seed_str(const char *s);+void rng_new_seed(void);+uint32_t rng_u32(void);+float rng_f(void); /* [0,1) */+int rng_int(int a, int b); /* [a,b] */+int prob(float odds); /* 1 in odds, scaled by Oops! All 6s */+float probs_normal(void);++/* ------------------------------------------------------------ helpers */+int has_joker(int id); /* count of non-debuffed */+int has_voucher(int v);+int card_chip_nominal(int rank);+int card_is_face(int ci, int from_boss);+int card_get_id(int ci); /* rank or negative for stone */+int card_is_suit(int ci, int suit, int bypass_debuff, int flush_calc);+int hand_size(void);+int joker_slots(void);+int cons_slots(void);+int joker_sell_value(const joker_t *j);+int cons_sell_value(const cons_t *c);+int item_cost(const sitem_t *it);+double hand_chips(int h);+double hand_mult(int h);+void level_up(int h, int amount, int anim_src);+double blind_amount(int ante);+const char *blind_name(int b);++/* ------------------------------------------------------------ flow */+void run_new(const char *seed);+void run_start_blind_select(void);+void blind_select(void); /* play the blind on deck */+void blind_skip(void);+void boss_reroll(void); /* Director's Cut / Retcon */+int play_hand(void); /* selected cards; returns 0 if nothing selected */+int discard_hand(void);+void sort_hand(int by_suit);+void toggle_select(int pos); /* returns via R.sel */+int nselected(void);+void cash_out(void);+void shop_enter(void);+void shop_leave(void);+int shop_reroll(void);+int shop_buy(int area, int idx, int use_now); /* area: 0 shop cards, 1 vouchers, 2 packs */+void pack_open(int kind, int size, int from_tag);+int pack_choose(int idx);+void pack_skip(void);+void pack_close(void);+int sell_joker(int idx);+int sell_cons(int idx);+int use_cons(int idx); /* 0 if it cannot be used now */+int cons_can_use(int idx, int from_pack, int id);+void move_joker(int from, int to);+void move_hand_card(int from, int to);+void continue_endless(void);++/* joker engine (jokers.c) */+void joker_add(int id, int ed, int silent);+void joker_remove(int idx, int sold);+void joker_on_added(joker_t *j);+int joker_new_uid(void);+void jokers_setting_blind(void);+void jokers_first_hand_drawn(void);+void jokers_end_of_round(int *saved);+int jokers_dollar_bonus(int *per, uint8_t *ids);+void jokers_simple_context(int ctx, int arg);+enum { JC_SELL_CARD, JC_REROLL, JC_END_SHOP, JC_SKIP_BLIND, JC_SKIP_BOOSTER, JC_OPEN_BOOSTER, JC_BUY, JC_USE_CONS,+ JC_CARDS_ADDED, JC_CARDS_REMOVED };++/* creation */+int create_joker_id(int rarity_force, int legendary); /* rarity_force: -1 random */+int create_cons_id(int set); /* set: 0 tarot, 1 planet, 2 spectral */+int poll_edition(float mod, int no_neg, int guaranteed);+void add_cons(int id, int ed);+int add_card_to_deck(card_t c, int area); /* returns card index */+void destroy_card(int ci);+card_t random_card(void);+int random_enhancement(int no_stone);+void add_tag(int t);+int tag_for_skip(void);++/* scoring (score.c) */+typedef struct {+ int hand; /* poker hand type */+ uint8_t scoring[8]; /* indices into R.play of scoring cards */+ uint8_t nscoring;+ uint16_t contains; /* bit per hand type contained */+} handinfo_t;+void evaluate_hand(const uint8_t *cards, int n, handinfo_t *hi);+int preview_hand(void); /* poker hand of the selected cards, -1 if none */++extern const char *const rank_names[15];+extern const char *const suit_names[4];+extern const char *const suit_names_plural[4];+#endifdiff --git a/games/balatro/src/gfx.c b/games/balatro/src/gfx.cnew file mode 100644index 00000000..ef03f84d--- /dev/null+++ b/games/balatro/src/gfx.c@@ -0,0 +1,600 @@+/* The renderer: the screen is described each frame as a list of items+ * (rectangles, rounded panels, sprites, text), then drawn strip by strip into+ * a small buffer that is sent to the display. There is no frame buffer. */+#ifndef PROF_NOINLINE+#define PROF_NOINLINE+#endif+#include "gfx.h"+#include <eadk.h>+#include <stddef.h>+#include <string.h>+#include "art.h"+#include "assets.h"+#include "bg.h"+#include "flame.h"+#include "fx.h"++#define SH 16 /* strip height */+#define MAXI 360 /* items per frame */+#define MAXCLIP 16++enum { I_RECT, I_RRECT, I_SHADE, I_SPRITE, I_TEXT, I_HLINE, I_FLAME, I_RSQ };++typedef struct {+ int16_t x, y, w, h;+ uint8_t type, clip;+ uint8_t r; /* radius / text flags high */+ uint8_t fx; /* sprite effects */+ uint16_t a; /* colour / sprite id / alpha */+ uint16_t b; /* sprite scale / text flags */+ const char *s;+} item_t;++static item_t items[MAXI];+static char strbuf[4096]; /* texts are copied: callers reuse their buffers */+static int strpos;+static int nitems;+static int16_t clips[MAXCLIP][4];+static int nclips, cur_clip;+static C strip[320 * SH];+void *g_scratch(int *size) { *size = (int)sizeof strip; return strip; }+static int bg_swirl, bg_cover_x;+void g_bg_cover(int x) { bg_cover_x = x; }+static C bg_solid;+uint32_t g_time;++/* corner coverage for rounded rectangles, 0..32, radius up to 12 */+#define MAXR 12+static uint8_t cov[MAXR + 1][MAXR][MAXR];++C darken(C a, int t) { return mix565(a, 0, t); }+C lighten(C a, int t) { return mix565(a, 0xFFFF, t); }++void g_init(void) {+ for (int r = 1; r <= MAXR; r++)+ for (int y = 0; y < r; y++)+ for (int x = 0; x < r; x++) {+ /* 4x4 supersampling of the quarter circle centred at (r, r) */+ int n = 0;+ for (int sy = 0; sy < 4; sy++)+ for (int sx = 0; sx < 4; sx++) {+ float dx = r - (x + (sx + 0.5f) / 4), dy = r - (y + (sy + 0.5f) / 4);+ if (dx * dx + dy * dy <= (float)r * r) n++;+ }+ cov[r][y][x] = (uint8_t)(n * 2);+ }+}++void g_begin(void) {+ nitems = 0;+ bg_cover_x = 0;+ strpos = 0;+ nclips = 1;+ cur_clip = 0;+ clips[0][0] = 0, clips[0][1] = 0, clips[0][2] = 320, clips[0][3] = 240;+}++void g_clip(int x, int y, int w, int h) {+ if (nclips >= MAXCLIP) return;+ clips[nclips][0] = (int16_t)(x < 0 ? 0 : x);+ clips[nclips][1] = (int16_t)(y < 0 ? 0 : y);+ clips[nclips][2] = (int16_t)(x + w > 320 ? 320 : x + w);+ clips[nclips][3] = (int16_t)(y + h > 240 ? 240 : y + h);+ cur_clip = nclips++;+}+void g_noclip(void) { cur_clip = 0; }++static item_t *add(int type, int x, int y, int w, int h) {+ if (nitems >= MAXI || w <= 0 || h <= 0) return 0;+ const int16_t *c = clips[cur_clip];+ if (x >= c[2] || y >= c[3] || x + w <= c[0] || y + h <= c[1]) return 0;+ item_t *it = &items[nitems++];+ it->type = (uint8_t)type;+ it->x = (int16_t)x, it->y = (int16_t)y, it->w = (int16_t)w, it->h = (int16_t)h;+ it->clip = (uint8_t)cur_clip;+ it->fx = 0, it->r = 0, it->a = 0, it->b = 0, it->s = 0;+ return it;+}++void g_rect(int x, int y, int w, int h, C c) {+ item_t *it = add(I_RECT, x, y, w, h);+ if (it) it->a = c;+}+void g_line_h(int x, int y, int w, C c) { g_rect(x, y, w, 1, c); }+void g_rrect(int x, int y, int w, int h, int r, C c) {+ if (r > MAXR) r = MAXR;+ if (r > w / 2) r = w / 2;+ if (r > h / 2) r = h / 2;+ item_t *it = add(r > 0 ? I_RRECT : I_RECT, x, y, w, h);+ if (it) it->a = c, it->r = (uint8_t)r;+}+void g_shade(int x, int y, int w, int h, int r, int alpha) {+ if (r > MAXR) r = MAXR;+ if (r > w / 2) r = w / 2;+ if (r > h / 2) r = h / 2;+ item_t *it = add(I_SHADE, x, y, w, h);+ if (it) it->a = (uint16_t)alpha, it->r = (uint8_t)r;+}+void g_sprite(int id, int x, int y, int fx, int scale) {+ if (id < 0 || id >= ART_NSPRITES) return;+ const art_sprite_t *s = &art_sprites[id];+ int w = s->w, h = s->h;+ if (scale != 256) {+ int nw = (w * scale + 128) >> 8, nh = (h * scale + 128) >> 8;+ x += (w - nw) / 2, y += (h - nh) / 2;+ w = nw, h = nh;+ }+ item_t *it = add(I_SPRITE, x, y, w, h);+ if (it) it->a = (uint16_t)id, it->fx = (uint8_t)fx, it->b = (uint16_t)scale;+}+/* a square turned by angle (256 = a full turn) around (cx, cy), half side hs */+void g_rsquare(int cx, int cy, int hs, int angle, C c) {+ int R = hs * 3 / 2 + 1;+ item_t *it = add(I_RSQ, cx - R, cy - R, 2 * R + 1, 2 * R + 1);+ if (it) it->a = c, it->r = (uint8_t)hs, it->fx = (uint8_t)angle;+}+PROF_NOINLINE static void draw_rsq(item_t *it, int y0, int ra, int rb, int cx0, int cx1) {+ /* cos and sin of the angle, x256, from a quarter table */+ static const int16_t q[17] = {256, 255, 251, 245, 237, 226, 213, 198, 181, 162, 142, 121, 98, 74, 50, 25, 0};+ /* a square looks the same after a quarter turn: 64 angle steps per quarter */+ int i = (it->fx & 63) >> 2, co = q[i], si = q[16 - i];+ int hs = it->r * 256 + 128, R = it->w / 2, cx = it->x + R, cy = it->y + R;+ int ya = it->y > ra ? it->y : ra, yb = it->y + it->h < rb ? it->y + it->h : rb;+ int xa = it->x > cx0 ? it->x : cx0, xb = it->x + it->w < cx1 ? it->x + it->w : cx1;+ for (int y = ya; y < yb; y++) {+ C *d = strip + (y - y0) * 320;+ int dy = y - cy;+ for (int x = xa; x < xb; x++) {+ int dx = x - cx;+ int u = dx * co + dy * si, v = dy * co - dx * si;+ if (u < 0) u = -u;+ if (v < 0) v = -v;+ if (u <= hs && v <= hs) d[x] = it->a;+ }+ }+}++void g_flame(int k, int x, int y, int w, int h, int top) {+ if (!flame_on()) return;+ item_t *it = add(I_FLAME, x, y, w, h);+ if (it) it->a = (uint16_t)k, it->b = (uint16_t)top;+}+void g_sprite_wh(int id, int x, int y, int w, int h, int fx) {+ item_t *it = add(I_SPRITE, x, y, w, h);+ if (it) it->a = (uint16_t)id, it->fx = (uint8_t)fx, it->b = 0;+}++/* ------------------------------------------------------------------ text */+static const C code_col[17] = {+ 0,+ 0xFFFF, /* 1 white */+ HEXC(0x009DFF), /* 2 chips */+ HEXC(0xFE5F55), /* 3 mult */+ HEXC(0xFF9A00), /* 4 attention */+ HEXC(0xF3B958), /* 5 money */+ HEXC(0x4BC292), /* 6 green */+ HEXC(0x88888A), /* 7 inactive */+ HEXC(0xA782D1), /* 8 tarot */+ HEXC(0x13AFCE), /* 9 planet */+ 0, /* 10 newline */+ HEXC(0x4584FA), /* 11 spectral */+ HEXC(0x4F6367), /* 12 dark text */+ 0, /* 13 */+ 0xFFFF, /* 14 white on red badge */+ HEXC(0x4CA893), /* 15 edition */+ 0, /* 16 reset */+};++/* the three sizes: large (values, titles), medium (names), small (labels, texts) */+static const glyph_t *font(int f) { return (f & T_LARGE) ? font_large : (f & T_MED) ? font_med : font_small; }+static const uint8_t *font_bits(int f) {+ return (f & T_LARGE) ? font_large_bits : (f & T_MED) ? font_med_bits : font_small_bits;+}+static int glyph_rows(int f) { return (f & T_LARGE) ? FONT_LARGE_H : (f & T_MED) ? FONT_MED_H : FONT_SMALL_H; }+int g_cap(int f) { return ((f & T_LARGE) ? 11 : (f & T_MED) ? 9 : 7) * ((f & T_X2) ? 2 : 1); }+int g_pitch(int f) { return ((f & T_LARGE) ? 15 : (f & T_MED) ? 13 : 10) * ((f & T_X2) ? 2 : 1); }++/* the glyph of a character (condensed digits for long numbers) */+static const glyph_t *glyph(int f, unsigned ch, const uint8_t **bits) {+ if ((f & (T_COND | T_LARGE)) == (T_COND | T_LARGE) && ch >= '0' && ch <= '9') {+ *bits = font_large_digits_bits;+ return &font_large_digits[ch - '0'];+ }+ *bits = font_bits(f);+ return &font(f)[ch - 32];+}+/* The condensed medium size: each medium glyph one column narrower (a 2+ pixel stroke on the right becomes 1 pixel; centred stems give up their+ left column instead), for long names and numbers before the small size.+ The column dropped, or -1. */+static int drop_col(int f, unsigned ch, const glyph_t *g) {+ if ((f & (T_COND | T_MED)) != (T_COND | T_MED) || f & T_LARGE) return -1;+ if (ch == 'T' || ch == 'I' || ch == '1') return 0;+ if (ch == 'f' || ch == 't') return 4;+ switch (g->w) {+ case 5: return 3;+ case 6: return 2;+ case 7: return 3;+ case 8: return 4;+ }+ return ch == ' ' ? 99 : -1; /* a narrower space */+}++static int advance(int f, unsigned ch, const glyph_t *g) {+ int a = g->adv;+ if (drop_col(f, ch, g) >= 0) a--;+ if (f & T_TIGHT) a -= ch == ' ' ? 2 : 1;+ if ((f & T_COND) && (ch == ',' || ch == '.')) a--;+ return a;+}++/* width of the text, or of its first line only */+static int textw(const char *s, int f, int one_line) {+ int w = 0, best = 0, badge = 0;+ const uint8_t *bits;+ for (; *s; s++) {+ unsigned char ch = (unsigned char)*s;+ if (ch == '\n') {+ if (badge) w += 2, badge = 0;+ if (w > best) best = w;+ if (one_line) break;+ w = 0;+ continue;+ }+ if (ch < 32) {+ if (ch == 14 && !badge) w += 2, badge = 1;+ else if (badge && ch != 14) w += 2, badge = 0;+ continue;+ }+ if (ch > (f & (T_LARGE | T_MED) ? 126 : 130)) ch = '?';+ w += advance(f, ch, glyph(f, ch, &bits));+ }+ if (badge) w += 2;+ if (w > best) best = w;+ if (best > 0) best--; /* no spacing after the last glyph */+ return best * ((f & T_X2) ? 2 : 1);+}+int g_textw(const char *s, int f) { return textw(s, f, 0); }++int g_lines(const char *s) {+ int n = 1;+ for (; *s; s++) n += *s == '\n';+ return n;+}++void g_text(const char *s, int x, int y, int f, C c) {+ if (!s || !*s) return;+ if (f & T_ROT) {+ /* one line turned: glyph rows go right, the text goes up from y */+ int len = g_textw(s, f & ~T_ROT), n = 0;+ while (s[n]) n++;+ if (strpos + n + 1 > (int)sizeof strbuf) return;+ if (f & T_CENTER) y += len / 2;+ item_t *it = add(I_TEXT, x - 2, y - len - 2, glyph_rows(f) + 4, len + 4);+ if (!it) return;+ char *d = strbuf + strpos;+ for (int i = 0; i <= n; i++) d[i] = s[i];+ strpos += n + 1;+ it->s = d, it->a = c, it->b = (uint16_t)f;+ return;+ }+ int w = g_textw(s, f) + 2;+ if (f & T_CENTER) x -= (w - 2) / 2;+ if (f & T_RIGHT) x -= w - 2;+ int h = g_pitch(f) * (g_lines(s) - 1) + glyph_rows(f) * ((f & T_X2) ? 2 : 1) + 3;+ int n = 0;+ while (s[n]) n++;+ if (strpos + n + 1 > (int)sizeof strbuf) return;+ item_t *it = add(I_TEXT, x - 2, y - 2, w + 4, h + 2);+ if (!it) return;+ char *d = strbuf + strpos;+ for (int i = 0; i <= n; i++) d[i] = s[i];+ strpos += n + 1;+ it->s = d, it->a = c, it->b = (uint16_t)f;+}++/* centred in a box, both ways, by the height of the capitals */+void g_text_box(const char *s, int x, int y, int w, int h, int f, C c) {+ int th = g_cap(f) + g_pitch(f) * (g_lines(s) - 1);+ g_text(s, x + w / 2, y + (h - th + 1) / 2, (f & ~(T_RIGHT)) | T_CENTER, c);+}++static void draw_text_rot(item_t *it, int y0, int ra, int rb, int cx0, int cx1) {+ int f = it->b, gh = glyph_rows(f);+ int x = it->x + 2, pen = it->y + it->h - 2; /* bottom */+ for (const char *s = it->s; *s; s++) {+ unsigned char ch = (unsigned char)*s;+ if (ch < 32 || ch > 126) continue;+ const uint8_t *b;+ const glyph_t *g = glyph(f, ch, &b);+ int dc = drop_col(f, ch, g);+ for (int pass = (f & T_SHADOW) ? 0 : 1; pass < 2; pass++) {+ uint32_t bit = g->off;+ for (int gx = 0; gx < g->w; gx++)+ for (int gy = 0; gy < gh; gy++, bit++) {+ if (gx == dc || !((b[bit >> 3] >> (bit & 7)) & 1)) continue;+ int X = x + gy + (pass ? 0 : 1), Y = pen - 1 - (gx - (dc >= 0 && gx > dc));+ if (Y < ra || Y >= rb || X < cx0 || X >= cx1) continue;+ C *d = strip + (Y - y0) * 320 + X;+ *d = pass ? it->a : shade565(*d, 12);+ }+ }+ pen -= advance(f, ch, g);+ }+}++PROF_NOINLINE static void draw_text(item_t *it, int y0, int ra, int rb, int cx0, int cx1) {+ int y1 = rb;+ int f = it->b;+ if (f & T_ROT) {+ draw_text_rot(it, y0, ra, rb, cx0, cx1);+ return;+ }+ int sc = (f & T_X2) ? 2 : 1, gh = glyph_rows(f), cap = g_cap(f) / sc, pitch = g_pitch(f);+ int x0 = it->x + 2, x = x0, y = it->y + 2;+ int multi = 0;+ for (const char *p = it->s; *p; p++) multi |= *p == '\n';+ C col = it->a, base = it->a;+ int badge = 0;+ /* centred lines: each line is centred on its own */+ int align = (f & (T_CENTER | T_RIGHT)) && multi, total = it->w - 4;+ if (align) {+ int lw = textw(it->s, f, 1);+ x = x0 + ((f & T_RIGHT) ? total - lw : (total - lw) / 2);+ }+ for (const char *s = it->s; *s; s++) {+ unsigned char ch = (unsigned char)*s;+ if (ch == '\n') {+ if (badge) badge = 0;+ y += pitch;+ x = x0;+ if (align) {+ int lw = textw(s + 1, f, 1);+ x = x0 + ((f & T_RIGHT) ? total - lw : (total - lw) / 2);+ }+ continue;+ }+ if (ch < 32) {+ if (badge && ch != 14) x += 2 * sc, badge = 0;+ if (ch == 16) col = base;+ else if (ch == 14) {+ /* red badge behind the following text, until the next code */+ const char *e = s + 1;+ int bw = 0;+ const uint8_t *bb;+ while (*e && (unsigned char)*e >= 32) bw += advance(f, (unsigned char)*e, glyph(f, (unsigned char)*e, &bb)), e++;+ bw = bw * sc + 3;+ int by0 = y - 2, by1 = y + cap * sc + 2;+ for (int yy = by0 > ra ? by0 : ra; yy < by1 && yy < y1; yy++) {+ C *d = strip + (yy - y0) * 320;+ int a = x, b = x + bw;+ if (yy == by0 || yy == by1 - 1) a++, b--;+ for (int xx = a < cx0 ? cx0 : a; xx < b && xx < cx1; xx++) d[xx] = HEXC(0xFE5F55);+ }+ x += 2 * sc;+ col = 0xFFFF;+ badge = 1;+ } else if (code_col[ch]) col = code_col[ch];+ continue;+ }+ if (ch > (f & (T_LARGE | T_MED) ? 126 : 130)) ch = '?';+ const uint8_t *b;+ const glyph_t *g = glyph(f, ch, &b);+ uint32_t bit;+ int dc = drop_col(f, ch, g);+ if (f & (T_SHADOW | T_OUTLINE)) {+ bit = g->off;+ for (int gx = 0; gx < g->w; gx++) {+ if (gx == dc) {+ bit += gh;+ continue;+ }+ for (int gy = 0; gy < gh; gy++, bit++) {+ if (!((b[bit >> 3] >> (bit & 7)) & 1)) continue;+ int px = x + (gx - (dc >= 0 && gx > dc)) * sc, py = y + gy * sc + sc;+ for (int k = 0; k < sc * sc; k++) {+ int X = px + (k % sc), Y = py + (k / sc);+ if (Y >= ra && Y < y1 && X >= cx0 && X < cx1) {+ C *d = strip + (Y - y0) * 320 + X;+ *d = shade565(*d, 12);+ }+ }+ }+ }+ }+ bit = g->off;+ for (int gx = 0; gx < g->w; gx++) {+ if (gx == dc) {+ bit += gh;+ continue;+ }+ for (int gy = 0; gy < gh; gy++, bit++) {+ if (!((b[bit >> 3] >> (bit & 7)) & 1)) continue;+ int px = x + (gx - (dc >= 0 && gx > dc)) * sc, py = y + gy * sc;+ for (int k = 0; k < sc * sc; k++) {+ int X = px + (k % sc), Y = py + (k / sc);+ if (Y >= ra && Y < y1 && X >= cx0 && X < cx1) strip[(Y - y0) * 320 + X] = col;+ }+ }+ }+ x += advance(f, ch, g) * sc;+ }+}++/* ---------------------------------------------------------------- sprites */+static C fx_pixel(C c, int fx, int x, int y, int w, int h, float seed) {+ int ed = fx & FX_EDMASK;+ if (ed) c = fx_edition(c, ed, x, y, w, h, seed);+ if (fx & FX_GREY) {+ int l = ((c >> 11) * 2 + ((c >> 5) & 63) + (c & 31) * 2) / 5;+ c = (C)(l << 11 | (l * 2) << 5 | l);+ }+ if (fx & FX_DIM) c = shade565(c, 14);+ return c;+}++PROF_NOINLINE static void draw_sprite(item_t *it, int y0, int ra, int rb, int cx0, int cx1) {+ int id = it->a;+ const uint8_t *px = art_peek(id);+ if (!px) return;+ const art_sprite_t *s = &art_sprites[id];+ const uint16_t *pal = art_pal + art_pal_off[s->group];+ int w = it->w, h = it->h, sw = s->w, sh = s->h, fx = it->fx;+ int ya = it->y > ra ? it->y : ra, yb = it->y + h < rb ? it->y + h : rb;+ int xa = it->x > cx0 ? it->x : cx0, xb = it->x + w < cx1 ? it->x + w : cx1;+ if (xa >= xb) return;+ int same = (w == sw && h == sh);+ float seed = (float)it->x * 0.013f; /* the sheen differs along the row, the same on a card's layers */+ uint32_t stepx = ((uint32_t)sw << 16) / (uint32_t)w, stepy = ((uint32_t)sh << 16) / (uint32_t)h;+ for (int y = ya; y < yb; y++) {+ int sy = same ? y - it->y : (int)(((uint32_t)(y - it->y) * stepy) >> 16);+ const uint8_t *row = px + sy * sw;+ C *d = strip + (y - y0) * 320;+ if (same && !fx) { /* most sprites: a straight copy */+ const uint8_t *r = row + (xa - it->x);+ for (int x = xa; x < xb; x++, r++)+ if (*r) d[x] = pal[*r];+ continue;+ }+ if (same && fx == FX_SHADOW) { /* card shadows */+ const uint8_t *r = row + (xa - it->x);+ for (int x = xa; x < xb; x++, r++)+ if (*r) d[x] = shade565(d[x], 11);+ continue;+ }+ for (int x = xa; x < xb; x++) {+ int sx = same ? x - it->x : (int)(((uint32_t)(x - it->x) * stepx) >> 16);+ if (fx & FX_FLIPX) sx = sw - 1 - sx;+ int v = row[sx];+ if (!v) continue;+ if (fx & FX_SHADOW) {+ d[x] = shade565(d[x], 11);+ continue;+ }+ if (fx & FX_WHITE) {+ d[x] = 0xFFFF;+ continue;+ }+ d[x] = fx_pixel(pal[v], fx, sx, sy, sw, sh, seed);+ }+ }+}++/* ------------------------------------------------------------------ shapes */+static inline C shade_px(C d, int a) { return shade565(d, a); }++PROF_NOINLINE static void draw_rrect(item_t *it, int y0, int ra, int rb, int cx0, int cx1, int shade) {+ int r = it->r, x = it->x, w = it->w, h = it->h;+ int ya = it->y > ra ? it->y : ra, yb = it->y + h < rb ? it->y + h : rb;+ C c = it->a;+ int xa = x > cx0 ? x : cx0, xb = x + w < cx1 ? x + w : cx1;+ for (int yy = ya; yy < yb; yy++) {+ int j = yy - it->y, cy = -1;+ if (j < r) cy = j;+ else if (j >= h - r) cy = h - 1 - j;+ C *d = strip + (yy - y0) * 320;+ /* the solid middle, then the rounded ends */+ int ma = xa, mb = xb;+ if (cy >= 0) {+ if (ma < x + r) ma = x + r;+ if (mb > x + w - r) mb = x + w - r;+ }+ if (shade)+ for (int xx = ma; xx < mb; xx++) d[xx] = shade_px(d[xx], c);+ else+ for (int xx = ma; xx < mb; xx++) d[xx] = c;+ if (cy < 0) continue;+ for (int side = 0; side < 2; side++) {+ int ea = side ? (mb > xa ? mb : xa) : xa, eb = side ? xb : (ma < xb ? ma : xb);+ for (int xx = ea; xx < eb; xx++) {+ int i = xx - x;+ int cx = i < r ? i : w - 1 - i;+ int a = cov[r][cy][cx];+ if (!a) continue;+ if (shade) d[xx] = shade_px(d[xx], (a * c) >> 5);+ else d[xx] = a == 32 ? c : mix565(d[xx], c, a);+ }+ }+ }+}++PROF_NOINLINE static void draw_rect(item_t *it, int y0, int ra, int rb, int cx0, int cx1) {+ int ya = it->y > ra ? it->y : ra, yb = it->y + it->h < rb ? it->y + it->h : rb;+ int xa = it->x > cx0 ? it->x : cx0, xb = it->x + it->w < cx1 ? it->x + it->w : cx1;+ C c = it->a;+ for (int y = ya; y < yb; y++) {+ C *d = strip + (y - y0) * 320;+ for (int x = xa; x < xb; x++) d[x] = c;+ }+}++void g_bg(int swirl, C solid) {+ bg_swirl = swirl;+ bg_solid = solid;+}++uint32_t g_bg_version; /* changes whenever the background looks different */+static uint32_t last_hash;++static uint32_t frame_hash(void) {+ uint32_t h = 2166136261u ^ g_bg_version;+ const uint8_t *p = (const uint8_t *)items;+ for (int i = 0; i < nitems * (int)sizeof(item_t); i++) {+ if ((i % sizeof(item_t)) >= offsetof(item_t, s)) continue; /* not the pointers */+ h = (h ^ p[i]) * 16777619u;+ }+ for (int i = 0; i < strpos; i++) h = (h ^ (uint8_t)strbuf[i]) * 16777619u;+ for (int i = 0; i < nitems; i++)+ if ((items[i].type == I_SPRITE && (items[i].fx & FX_EDMASK)) || items[i].type == I_FLAME) {+ h ^= g_time / 33; /* animated editions and flames */+ break;+ }+ return h * 31 + (uint32_t)nitems;+}++void g_end(void) {+ /* nothing changed since the last frame: keep the screen as it is */+ uint32_t h = frame_hash();+ if (h == last_hash) return;+ last_hash = h;+ fx_frame(g_time);+ /* where each sprite is used last, so the cache can free it after */+ art_begin_frame();+ for (int i = 0; i < nitems; i++)+ if (items[i].type == I_SPRITE) art_use(items[i].a, items[i].y, items[i].y + items[i].h);+ /* the flames' smoke, once for the frame (on the stack) */+ uint16_t fgrid[2][FLAME_GR * FLAME_GC];+ for (int i = 0; i < nitems; i++)+ if (items[i].type == I_FLAME) flame_grid(items[i].a & 1, items[i].w, items[i].h, fgrid[items[i].a & 1]);+ for (int y0 = 0; y0 < 240; y0 += SH) {+ int y1 = y0 + SH;+ /* the sprites of this strip (decoded now if needed) */+ for (int i = 0; i < nitems; i++) {+ item_t *it = &items[i];+ if (it->type == I_SPRITE && it->y < y1 && it->y + it->h > y0) art_get_at(it->a, y0);+ }+ if (bg_swirl)+ for (int y = y0; y < y1; y++) bg_row(strip + (y - y0) * 320, y, bg_cover_x, 320);+ else+ for (int i = 0; i < 320 * SH; i++) strip[i] = bg_solid;+ for (int i = 0; i < nitems; i++) {+ item_t *it = &items[i];+ if (it->y >= y1 || it->y + it->h <= y0) continue;+ const int16_t *c = clips[it->clip];+ int cy0 = y0 > c[1] ? y0 : c[1], cy1 = y1 < c[3] ? y1 : c[3];+ if (cy0 >= cy1) continue;+ switch (it->type) {+ case I_RECT: draw_rect(it, y0, cy0, cy1, c[0], c[2]); break;+ case I_RRECT: draw_rrect(it, y0, cy0, cy1, c[0], c[2], 0); break;+ case I_SHADE: draw_rrect(it, y0, cy0, cy1, c[0], c[2], 1); break;+ case I_SPRITE: draw_sprite(it, y0, cy0, cy1, c[0], c[2]); break;+ case I_TEXT: draw_text(it, y0, cy0, cy1, c[0], c[2]); break;+ case I_RSQ: draw_rsq(it, y0, cy0, cy1, c[0], c[2]); break;+ case I_FLAME:+ flame_rows(it->a & 1, it->x, it->y, it->w, it->h, it->b, fgrid[it->a & 1], strip, y0, cy0, cy1, c[0], c[2]);+ break;+ }+ }+ eadk_display_push_rect((eadk_rect_t){0, (uint16_t)y0, 320, SH}, strip);+ }+}diff --git a/games/balatro/src/gfx.h b/games/balatro/src/gfx.hnew file mode 100644index 00000000..105d69d5--- /dev/null+++ b/games/balatro/src/gfx.h@@ -0,0 +1,100 @@+#ifndef GFX_H+#define GFX_H+#include <stdint.h>++typedef uint16_t C;+#define RGB(r, g, b) ((C)((((r) & 0xF8) << 8) | (((g) & 0xFC) << 3) | ((b) >> 3)))+#define HEXC(h) RGB(((h) >> 16) & 255, ((h) >> 8) & 255, (h) & 255)++/* text flags. Sizes, after Balatro's hierarchy (all m6x11):+ T_LARGE 11 pixel capitals: values (chips, mult, score, money), titles+ T_MED 9 pixel capitals: names and headings (blind, poker hand, item)+ T_SMALL 7 pixel capitals: labels, buttons, descriptions */+enum {+ T_SMALL = 0,+ T_LARGE = 1,+ T_X2 = 2, /* doubled pixels */+ T_SHADOW = 4, /* dark shadow one pixel below */+ T_CENTER = 8, /* x is the centre */+ T_RIGHT = 16, /* x is the right edge */+ T_OUTLINE = 32, /* dark outline all around */+ T_TIGHT = 64, /* condensed: no gap between letters, narrow spaces */+ T_MED = 128,+ T_COND = 256, /* condensed: large digits, or the whole medium size, one pixel narrower */+ T_ROT = 512 /* turned a quarter left, reading upwards; (x, y) is the bottom left */+};+/* inline colour codes in strings */+#define TC_WHITE "\x01"+#define TC_CHIPS "\x02"+#define TC_MULT "\x03"+#define TC_ATTN "\x04"+#define TC_MONEY "\x05"+#define TC_GREEN "\x06"+#define TC_GREY "\x07"+#define TC_TAROT "\x08"+#define TC_PLANET "\x09"+#define TC_SPECTRAL "\x0B"+#define TC_DARK "\x0C"+#define TC_XMULT "\x0E" /* white on a red badge until the next code */+#define TC_EDITION "\x0F"+#define TC_RESET "\x10" /* back to the item's colour */+/* suit symbols, small size only */+#define SUIT_SPADE "\x7f"+#define SUIT_HEART "\x80"+#define SUIT_CLUB "\x81"+#define SUIT_DIAMOND "\x82"++/* sprite effects */+enum {+ FX_NONE = 0,+ FX_FOIL = 1,+ FX_HOLO = 2,+ FX_POLY = 3,+ FX_NEG = 4,+ FX_EDMASK = 7,+ FX_DIM = 8, /* darkened (debuffed, unaffordable) */+ FX_FLIPX = 16, /* mirrored */+ FX_WHITE = 32, /* flat white (flash) */+ FX_SHADOW = 64, /* flat translucent black (card shadow) */+ FX_GREY = 128, /* desaturated */+};++void g_init(void);+void g_begin(void);+void g_end(void); /* draws the list on screen */+void g_clip(int x, int y, int w, int h);+void g_noclip(void);+void g_rect(int x, int y, int w, int h, C c);+void g_rrect(int x, int y, int w, int h, int r, C c);+void g_shade(int x, int y, int w, int h, int r, int alpha); /* darken, alpha 0..32 */+void g_sprite(int id, int x, int y, int fx, int scale); /* scale: 256 = 1 */+void g_sprite_wh(int id, int x, int y, int w, int h, int fx);+void g_rsquare(int cx, int cy, int hs, int angle, C c); /* angle: 64 = a quarter turn */+void g_flame(int k, int x, int y, int w, int h, int top); /* 0 chips, 1 mult; thins out just under top */+void g_text(const char *s, int x, int y, int flags, C c);+int g_textw(const char *s, int flags);+int g_cap(int flags); /* height of the capitals */+int g_pitch(int flags); /* distance between lines */+int g_lines(const char *s);+void g_text_box(const char *s, int x, int y, int w, int h, int flags, C c); /* centred in the box */+void g_line_h(int x, int y, int w, C c);+void g_bg(int swirl, C solid);+void *g_scratch(int *size); /* the strip buffer, free outside g_end */+extern uint32_t g_time; /* ms, for animated effects */++/* t 0..32 */+static inline __attribute__((always_inline)) C mix565(C a, C b, int t) {+ uint32_t A = (a | (uint32_t)a << 16) & 0x07E0F81F, B = (b | (uint32_t)b << 16) & 0x07E0F81F;+ uint32_t M = ((A * (uint32_t)(32 - t) + B * (uint32_t)t) >> 5) & 0x07E0F81F;+ return (C)(M | M >> 16);+}+/* darker by t/32, the fast way (no multiply per channel pair of the source) */+static inline __attribute__((always_inline)) C shade565(C a, int t) {+ uint32_t A = (a | (uint32_t)a << 16) & 0x07E0F81F;+ uint32_t M = ((A * (uint32_t)(32 - t)) >> 5) & 0x07E0F81F;+ return (C)(M | M >> 16);+}+void g_bg_cover(int x); /* the background is hidden left of x this frame */+C darken(C a, int t); /* t 0..32 of black */+C lighten(C a, int t);+#endifdiff --git a/games/balatro/src/icon.png b/games/balatro/src/icon.pngnew file mode 100644index 00000000..4e045ca0Binary files /dev/null and b/games/balatro/src/icon.png differdiff --git a/games/balatro/src/jokers.c b/games/balatro/src/jokers.cnew file mode 100644index 00000000..37e59706--- /dev/null+++ b/games/balatro/src/jokers.c@@ -0,0 +1,920 @@+/* The 150 Jokers: Card:calculate_joker from Balatro's card.lua, context by+ * context, in the same order, with the same checks. */+#include "jokers.h"+#include "ev.h"++#define J (&R.jokers[ji])+#define ID (R.jokers[ji].id)+#define NOT_BP (!cx->blueprint)+#define HAS(h) (cx->hi && (cx->hi->contains >> (h) & 1))++static const char K_UPGRADE[] = "Upgrade!", K_AGAIN[] = "Again!", K_RESET[] = "Reset", K_SAVED[] = "Saved!",+ K_EATEN[] = "Eaten!", K_EXTINCT[] = "Extinct!", K_SAFE[] = "Safe!", K_MELTED[] = "Melted!",+ K_DRANK[] = "Drank!", K_PLUS_TAROT[] = "+1 Tarot", K_PLUS_SPECTRAL[] = "+1 Spectral",+ K_COPIED[] = "Copied!", K_GOLD[] = "Gold", K_LEVELUP[] = "Level Up!", K_VALUP[] = "Value Up!",+ K_DEBUFFED[] = "Debuffed", K_ACTIVE[] = "Active!";++void joker_init(joker_t *j) {+ j->a = j->b = 0;+ j->c = 0;+ j->x = 1;+ j->extra_value = 0;+ switch (j->id) {+ case J_ICE_CREAM: j->a = 100; break;+ case J_ROCKET: j->a = 1; break;+ case J_TURTLE_BEAN: j->a = 5; break;+ case J_POPCORN: j->a = 20; break;+ case J_RAMEN: j->x = 2; break;+ case J_SELZER: j->a = 10; break;+ case J_YORICK: j->b = 23; break;+ case J_LOYALTY_CARD: j->b = R.hands_played; j->c = 5; break;+ case J_TODO_LIST: {+ /* a random visible hand, not the old one */+ int n = 0, pick[NHANDS];+ for (int h = 0; h < NHANDS; h++)+ if (R.hands[h].visible) pick[n++] = h;+ j->c = (uint8_t)pick[rng_int(0, n - 1)];+ break;+ }+ case J_DUO: j->x = 2; break;+ case J_TRIO: j->x = 3; break;+ case J_FAMILY: j->x = 4; break;+ case J_ORDER: j->x = 3; break;+ case J_TRIBE: j->x = 2; break;+ }+}++/* the poker hand a "type" joker needs, or -1 */+static int jtype(int id) {+ switch (id) {+ case J_JOLLY: case J_SLY: case J_DUO: return H_PAIR;+ case J_ZANY: case J_WILY: case J_TRIO: return H_THREE_KIND;+ case J_MAD: case J_CLEVER: return H_TWO_PAIR;+ case J_CRAZY: case J_DEVIOUS: case J_ORDER: return H_STRAIGHT;+ case J_DROLL: case J_CRAFTY: case J_TRIBE: return H_FLUSH;+ case J_FAMILY: return H_FOUR_KIND;+ }+ return -1;+}++static int cons_room(void) { return R.ncons < cons_slots(); }++static void give_cons(int set) {+ add_cons(create_cons_id(set), 0);+}++static int count_enh(int enh) {+ int n = 0;+ for (int i = 0; i < R.ncards_alloc; i++)+ if ((R.cards[i].flags & CF_USED) && R.cards[i].enh == enh) n++;+ return n;+}++static int count_cards(void) {+ int n = 0;+ for (int i = 0; i < R.ncards_alloc; i++) n += (R.cards[i].flags & CF_USED) != 0;+ return n;+}++/* Joker Stencil's value, as in Card:update */+static double stencil_x(void) {+ double x = joker_slots() - R.njokers;+ for (int i = 0; i < R.njokers; i++)+ if (R.jokers[i].id == J_STENCIL) x += 1;+ return x;+}++static int swash_mult(int ji) {+ int s = 0;+ for (int i = 0; i < R.njokers; i++)+ if (i != ji) s += joker_sell_value(&R.jokers[i]);+ return s;+}++int joker_x_display(const joker_t *j, double *out) {+ switch (j->id) {+ case J_STENCIL: *out = stencil_x(); return 1;+ case J_THROWBACK: *out = 1 + R.skips * 0.25; return 1;+ case J_STEEL_JOKER: *out = 1 + 0.2 * count_enh(E_STEEL); return 1;+ }+ *out = j->x;+ return 0;+}++static int set_eff_x(eff_t *e, double x) {+ e->has |= EF_XMULT;+ e->x = x;+ return 1;+}+static int set_eff_mult(eff_t *e, double m) {+ e->has |= EF_MULT;+ e->mult = m;+ return 1;+}+static int set_eff_chips(eff_t *e, double c) {+ e->has |= EF_CHIPS;+ e->chips = c;+ return 1;+}+static int msg(eff_t *e, const char *m, int col) {+ e->has |= EF_MSG;+ e->msg = m;+ e->col = col;+ return 1;+}++/* is card ci (a playing card) of rank r, ignoring stone cards */+#define CID(ci) card_get_id(ci)++int jcalc(int ji, cx_t *cx, eff_t *e) {+ joker_t *j = J;+ if (j->flags & JF_DEBUFF) return 0;+ int id = j->id;+ if (id == J_BLUEPRINT || id == J_BRAINSTORM) {+ int other = id == J_BRAINSTORM ? 0 : ji + 1;+ if (other < R.njokers && other != ji) {+ cx_t c2 = *cx;+ c2.blueprint = cx->blueprint + 1;+ c2.bp = cx->bp >= 0 ? cx->bp : ji;+ if (c2.blueprint > R.njokers + 1) return 0;+ if (jcalc(other, &c2, e)) {+ e->card = c2.bp;+ return 1;+ }+ }+ return 0;+ }+ e->card = cx->bp >= 0 ? cx->bp : ji;+ switch (cx->kind) {+ case CX_OPEN_BOOSTER:+ if (id == J_HALLUCINATION && cons_room() && prob(2)) {+ give_cons(0);+ return 0; /* the Lua shows no message here */+ }+ return 0;+ case CX_BUYING_CARD: return 0;+ case CX_SELLING_SELF:+ if (id == J_LUCHADOR && R.phase == PH_ROUND && !R.blind_disabled && R.blind >= BL_OX) {+ R.blind_disabled = 2; /* a request: the caller disables the blind */+ return msg(e, "Boss Disabled!", PC_ATTN);+ }+ if (id == J_DIET_COLA) {+ add_tag(TAG_DOUBLE);+ return 0;+ }+ if (id == J_INVISIBLE && j->a >= 2 && NOT_BP) {+ int n = 0, pick[MAXJ];+ for (int i = 0; i < R.njokers; i++)+ if (i != ji) pick[n++] = i;+ if (n > 0 && R.njokers <= joker_slots()) {+ joker_t copy = R.jokers[pick[rng_int(0, n - 1)]];+ if (copy.ed == ED_NEG) copy.ed = 0;+ if (copy.id == J_INVISIBLE) copy.a = 0;+ copy.uid = (uint16_t)joker_new_uid();+ copy.flags = 0;+ if (R.njokers < MAXJ) {+ R.jokers[R.njokers++] = copy;+ joker_on_added(&R.jokers[R.njokers - 1]);+ ev_t *v = ev_push(EV_JOKER_ADD);+ if (v) v->a = copy.uid, v->b = copy.id, v->c = copy.ed, v->d = (int16_t)(R.njokers - 1);+ ev_popup(TG_JOKER, R.njokers - 1, "Duplicated!", PC_ATTN);+ }+ }+ }+ return 0;+ case CX_SELLING_CARD:+ if (id == J_CAMPFIRE && NOT_BP) {+ j->x += 0.25f;+ return msg(e, K_UPGRADE, PC_MULT);+ }+ return 0;+ case CX_REROLL:+ if (id == J_FLASH && NOT_BP) {+ j->a += 2;+ return msg(e, "+2 Mult", PC_MULT); /* a_mult with the new total in the game: show the gain */+ }+ return 0;+ case CX_ENDING_SHOP:+ if (id == J_PERKEO && R.ncons > 0) {+ cons_t c = R.cons[rng_int(0, R.ncons - 1)];+ if (R.ncons < MAXCONS) {+ c.ed = ED_NEG;+ c.uid = (uint16_t)joker_new_uid();+ c.extra_value = 0;+ R.cons[R.ncons++] = c;+ ev_t *v = ev_push(EV_CONS_ADD);+ if (v) v->a = c.uid, v->b = c.id, v->c = c.ed;+ return msg(e, "Duplicated!", PC_ATTN);+ }+ }+ return 0;+ case CX_SKIP_BLIND:+ if (id == J_THROWBACK && NOT_BP) {+ static char t[12];+ double x = 1 + R.skips * 0.25;+ int w = (int)x, f = (int)((x - w) * 100 + 0.5);+ char *p = t;+ *p++ = 'X';+ if (w >= 10) *p++ = (char)('0' + w / 10);+ *p++ = (char)('0' + w % 10);+ if (f) {+ *p++ = '.';+ *p++ = (char)('0' + f / 10);+ if (f % 10) *p++ = (char)('0' + f % 10);+ }+ *p = 0;+ return msg(e, t, PC_MULT);+ }+ return 0;+ case CX_SKIPPING_BOOSTER:+ if (id == J_RED_CARD && NOT_BP) {+ j->a += 3;+ return msg(e, "+3 Mult", PC_MULT);+ }+ return 0;+ case CX_CARDS_ADDED:+ if (id == J_HOLOGRAM && NOT_BP && cx->n > 0) {+ j->x += 0.25f * cx->n;+ return msg(e, "", PC_MULT) & 0; /* the game only shows the new value */+ }+ return 0;+ case CX_FIRST_HAND_DRAWN:+ if (id == J_CERTIFICATE) {+ card_t c = random_card();+ float s = rng_f();+ c.seal = s > 0.75f ? SEAL_RED : s > 0.5f ? SEAL_BLUE : s > 0.25f ? SEAL_GOLD : SEAL_PURPLE;+ add_card_to_deck(c, A_HAND);+ cx_t c2 = {0};+ c2.kind = CX_CARDS_ADDED, c2.bp = -1, c2.n = 1;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e2 = {0};+ jcalc(i, &c2, &e2);+ }+ return 0;+ }+ return 0;+ case CX_SETTING_BLIND:+ if (id == J_CHICOT && NOT_BP && cx->boss) {+ if (!R.blind_disabled) {+ R.blind_disabled = 2; /* disable request */+ return msg(e, "Boss Disabled!", PC_ATTN);+ }+ return 0;+ }+ if (id == J_MADNESS && NOT_BP && !cx->boss) {+ j->x += 0.5f;+ int n = 0, pick[MAXJ];+ for (int i = 0; i < R.njokers; i++)+ if (i != ji && !(R.jokers[i].flags & JF_SLICED)) pick[n++] = i;+ msg(e, "X1.5 Mult", PC_MULT);+ {+ /* show the new total like the game: "X<new> Mult" */+ static char t[16];+ double x = j->x;+ int w = (int)x, f = (int)((x - w) * 10 + 0.5);+ char *p = t;+ *p++ = 'X';+ if (w >= 10) *p++ = (char)('0' + w / 10 % 10);+ *p++ = (char)('0' + w % 10);+ if (f) *p++ = '.', *p++ = (char)('0' + f);+ const char *s = " Mult";+ while (*s) *p++ = *s++;+ *p = 0;+ e->msg = t;+ }+ if (n > 0) R.jokers[pick[rng_int(0, n - 1)]].flags |= JF_SLICED;+ return 1;+ }+ if (id == J_BURGLAR) {+ R.discards_left = 0;+ R.hands_left += 3;+ return msg(e, "+3 Hands", PC_CHIPS);+ }+ if (id == J_RIFF_RAFF && R.njokers < joker_slots()) {+ int k = joker_slots() - R.njokers;+ if (k > 2) k = 2;+ for (int i = 0; i < k; i++) joker_add(create_joker_id(1, 0), -1, 0);+ return msg(e, "+2 Jokers", PC_CHIPS);+ }+ if (id == J_CARTOMANCER && cons_room()) {+ give_cons(0);+ return msg(e, K_PLUS_TAROT, PC_TAROT);+ }+ if (id == J_CEREMONIAL && NOT_BP) {+ if (ji + 1 < R.njokers && !(R.jokers[ji + 1].flags & JF_SLICED)) {+ joker_t *v = &R.jokers[ji + 1];+ j->a += joker_sell_value(v) * 2;+ v->flags |= JF_SLICED;+ static char t[16];+ int m = j->a;+ char *p = t;+ *p++ = '+';+ char d[8];+ int nd = 0;+ do d[nd++] = (char)('0' + m % 10); while (m /= 10);+ while (nd) *p++ = d[--nd];+ const char *s = " Mult";+ while (*s) *p++ = *s++;+ *p = 0;+ return msg(e, t, PC_MULT);+ }+ return 0;+ }+ if (id == J_MARBLE) {+ card_t c = random_card();+ c.enh = E_STONE;+ add_card_to_deck(c, A_DECK);+ cx_t c2 = {0};+ c2.kind = CX_CARDS_ADDED, c2.bp = -1, c2.n = 1;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e2 = {0};+ jcalc(i, &c2, &e2);+ }+ return msg(e, "+1 Stone", PC_CHIPS);+ }+ return 0;+ case CX_DESTROYING_CARD:+ if (NOT_BP && id == J_SIXTH_SENSE && cx->nfull == 1 && CID(cx->full[0]) == 6 && R.hands_played_round == 0) {+ if (cons_room()) {+ give_cons(2);+ msg(e, K_PLUS_SPECTRAL, PC_SPECTRAL);+ }+ e->has |= EF_REMOVE;+ return 1;+ }+ return 0;+ case CX_REMOVE_CARDS:+ if (id == J_CAINO && NOT_BP && cx->nfaces_removed > 0) {+ j->x += cx->nfaces_removed;+ return msg(e, "", PC_MULT);+ }+ if (id == J_GLASS && NOT_BP && cx->nglass_removed > 0) {+ j->x += 0.75f * cx->nglass_removed;+ return msg(e, "", PC_MULT);+ }+ return 0;+ case CX_USING_CONS:+ if (id == J_GLASS && NOT_BP && cx->cons_id == C_HANGED_MAN && cx->nglass_removed > 0) {+ j->x += 0.75f * cx->nglass_removed;+ return msg(e, "", PC_MULT);+ }+ if (id == J_FORTUNE_TELLER && NOT_BP && cx->cons_set == 0) return msg(e, "", PC_MULT);+ if (id == J_CONSTELLATION && NOT_BP && cx->cons_set == 1) {+ j->x += 0.1f;+ return msg(e, "", PC_MULT);+ }+ return 0;+ case CX_DEBUFFED_HAND:+ if (id == J_MATADOR && R.blind_triggered) {+ e->has |= EF_DOLLARS;+ e->dollars = 8;+ return 1;+ }+ return 0;+ case CX_PRE_DISCARD:+ if (id == J_BURNT && R.discards_used_round <= 0 && !cx->hook) {+ handinfo_t hi;+ evaluate_hand(cx->full, cx->nfull, &hi);+ e->has |= EF_LEVELUP;+ e->reps = hi.hand;+ return msg(e, K_LEVELUP, PC_ATTN);+ }+ return 0;+ case CX_DISCARD: {+ int oc = cx->other, last = cx->full[cx->nfull - 1] == oc, deb = R.cards[oc].flags & CF_DEBUFF;+ if (id == J_RAMEN && NOT_BP) {+ if (j->x - 0.01f <= 1) {+ e->has |= EF_REMOVE; /* eaten */+ return msg(e, K_EATEN, PC_ATTN);+ }+ j->x -= 0.01f;+ return msg(e, "-X0.01 Mult", PC_MULT);+ }+ if (id == J_YORICK && NOT_BP) {+ if (j->b <= 1) {+ j->b = 23;+ j->x += 1;+ return msg(e, "", PC_MULT);+ }+ j->b--;+ return 0;+ }+ if (id == J_TRADING && NOT_BP && R.discards_used_round <= 0 && cx->nfull == 1) {+ e->has |= EF_DOLLARS | EF_REMOVE;+ e->dollars = 3;+ return 1;+ }+ if (id == J_CASTLE && !deb && card_is_suit(oc, R.castle_suit, 0, 0) && NOT_BP) {+ j->a += 3;+ return msg(e, K_UPGRADE, PC_CHIPS);+ }+ if (id == J_MAIL && !deb && CID(oc) == R.mail_rank) {+ e->has |= EF_DOLLARS;+ e->dollars = 5;+ return 1;+ }+ if (id == J_HIT_THE_ROAD && !deb && CID(oc) == 11 && NOT_BP) {+ j->x += 0.5f;+ return msg(e, "", PC_MULT);+ }+ if (id == J_GREEN_JOKER && NOT_BP && last) {+ int prev = j->a;+ j->a = j->a - 1 < 0 ? 0 : j->a - 1;+ if (j->a != prev) return msg(e, "-1 Mult", PC_MULT);+ return 0;+ }+ if (id == J_FACELESS && last) {+ int faces = 0;+ for (int i = 0; i < cx->nfull; i++) faces += card_is_face(cx->full[i], 0) != 0;+ if (faces >= 3) {+ e->has |= EF_DOLLARS;+ e->dollars = 5;+ return 1;+ }+ }+ return 0;+ }+ case CX_REP_END_ROUND:+ if (cx->area == A_HAND && id == J_MIME && cx->card_effects) {+ e->has |= EF_REPS;+ e->reps = 1;+ return msg(e, K_AGAIN, PC_ATTN);+ }+ return 0;+ case CX_END_ROUND:+ if (cx->blueprint) return 0;+ if (id == J_CAMPFIRE && R.blind >= BL_OX && j->x > 1) {+ j->x = 1;+ return msg(e, K_RESET, PC_ATTN);+ }+ if (id == J_ROCKET && R.blind >= BL_OX) {+ j->a += 2;+ return msg(e, K_UPGRADE, PC_MONEY);+ }+ if (id == J_TURTLE_BEAN) {+ if (j->a - 1 <= 0) {+ e->has |= EF_REMOVE;+ return msg(e, K_EATEN, PC_ATTN);+ }+ j->a -= 1;+ return msg(e, "-1 Hand Size", PC_ATTN);+ }+ if (id == J_INVISIBLE) {+ j->a++;+ static char t[6];+ if (j->a < 2) {+ t[0] = (char)('0' + j->a), t[1] = '/', t[2] = '2', t[3] = 0;+ return msg(e, t, PC_ATTN);+ }+ return msg(e, K_ACTIVE, PC_ATTN);+ }+ if (id == J_POPCORN) {+ if (j->a - 4 <= 0) {+ e->has |= EF_REMOVE;+ return msg(e, K_EATEN, PC_ATTN);+ }+ j->a -= 4;+ return msg(e, "-4 Mult", PC_MULT);+ }+ if (id == J_TODO_LIST) {+ int n = 0, pick[NHANDS];+ for (int h = 0; h < NHANDS; h++)+ if (R.hands[h].visible && h != j->c) pick[n++] = h;+ if (n) j->c = (uint8_t)pick[rng_int(0, n - 1)];+ return msg(e, K_RESET, PC_ATTN);+ }+ if (id == J_EGG) {+ j->extra_value += 3;+ return msg(e, K_VALUP, PC_MONEY);+ }+ if (id == J_GIFT) {+ for (int i = 0; i < R.njokers; i++) R.jokers[i].extra_value += 1;+ for (int i = 0; i < R.ncons; i++) R.cons[i].extra_value += 1;+ return msg(e, K_VALUP, PC_MONEY);+ }+ if (id == J_HIT_THE_ROAD && j->x > 1) {+ j->x = 1;+ return msg(e, K_RESET, PC_ATTN);+ }+ if (id == J_GROS_MICHEL || id == J_CAVENDISH) {+ if (prob(id == J_CAVENDISH ? 1000 : 6)) {+ if (id == J_GROS_MICHEL) R.gros_michel_extinct = 1;+ e->has |= EF_REMOVE;+ return msg(e, K_EXTINCT, PC_ATTN);+ }+ return msg(e, K_SAFE, PC_ATTN);+ }+ if (id == J_MR_BONES && cx->game_over && R.chips / R.blind_chips >= 0.25) {+ e->has |= EF_SAVED | EF_REMOVE;+ return msg(e, K_SAVED, PC_ATTN);+ }+ return 0;+ case CX_INDIVIDUAL: {+ int oc = cx->other;+ if (cx->area == A_PLAY) {+ if (id == J_HIKER) {+ R.cards[oc].perma += 5;+ return msg(e, K_UPGRADE, PC_CHIPS);+ }+ if (id == J_LUCKY_CAT && (R.cards[oc].flags & CF_LUCKY) && NOT_BP) {+ j->x += 0.25f;+ e->focus = ji;+ return msg(e, K_UPGRADE, PC_MULT);+ }+ if (id == J_WEE && CID(oc) == 2 && NOT_BP) {+ j->a += 8;+ e->focus = ji;+ return msg(e, K_UPGRADE, PC_CHIPS);+ }+ if (id == J_PHOTOGRAPH) {+ int first = -1;+ for (int i = 0; i < cx->hi->nscoring; i++)+ if (card_is_face(R.play[cx->hi->scoring[i]], 0)) {+ first = R.play[cx->hi->scoring[i]];+ break;+ }+ if (oc == first) return set_eff_x(e, 2);+ }+ if (id == J_8_BALL && cons_room()) {+ if (CID(oc) == 8 && prob(4)) {+ give_cons(0);+ return msg(e, K_PLUS_TAROT, PC_TAROT);+ }+ }+ if (id == J_IDOL && CID(oc) == R.idol_rank && card_is_suit(oc, R.idol_suit, 0, 0)) return set_eff_x(e, 2);+ if (id == J_SCARY_FACE && card_is_face(oc, 0)) return set_eff_chips(e, 30);+ if (id == J_SMILEY && card_is_face(oc, 0)) return set_eff_mult(e, 5);+ if (id == J_TICKET && R.cards[oc].enh == E_GOLD) {+ e->has |= EF_DOLLARS;+ e->dollars = 4;+ return 1;+ }+ if (id == J_SCHOLAR && CID(oc) == 14) {+ set_eff_chips(e, 20);+ return set_eff_mult(e, 4);+ }+ if (id == J_WALKIE_TALKIE && (CID(oc) == 10 || CID(oc) == 4)) {+ set_eff_chips(e, 10);+ return set_eff_mult(e, 4);+ }+ if (id == J_BUSINESS && card_is_face(oc, 0) && prob(2)) {+ e->has |= EF_DOLLARS;+ e->dollars = 2;+ return 1;+ }+ if (id == J_FIBONACCI) {+ int r = CID(oc);+ if (r == 2 || r == 3 || r == 5 || r == 8 || r == 14) return set_eff_mult(e, 8);+ }+ if (id == J_EVEN_STEVEN) {+ int r = CID(oc);+ if (r <= 10 && r >= 0 && r % 2 == 0) return set_eff_mult(e, 4);+ }+ if (id == J_ODD_TODD) {+ int r = CID(oc);+ if ((r <= 10 && r >= 0 && r % 2 == 1) || r == 14) return set_eff_chips(e, 31);+ }+ if (id >= J_GREEDY_JOKER && id <= J_GLUTTENOUS_JOKER) {+ static const uint8_t suit[4] = {S_DIAMONDS, S_HEARTS, S_SPADES, S_CLUBS};+ if (card_is_suit(oc, suit[id - J_GREEDY_JOKER], 0, 0)) return set_eff_mult(e, 3);+ }+ if (id == J_ROUGH_GEM && card_is_suit(oc, S_DIAMONDS, 0, 0)) {+ e->has |= EF_DOLLARS;+ e->dollars = 1;+ return 1;+ }+ if (id == J_ONYX_AGATE && card_is_suit(oc, S_CLUBS, 0, 0)) return set_eff_mult(e, 7);+ if (id == J_ARROWHEAD && card_is_suit(oc, S_SPADES, 0, 0)) return set_eff_chips(e, 50);+ if (id == J_BLOODSTONE && card_is_suit(oc, S_HEARTS, 0, 0) && prob(2)) return set_eff_x(e, 1.5);+ if (id == J_ANCIENT && card_is_suit(oc, R.ancient_suit, 0, 0)) return set_eff_x(e, 1.5);+ if (id == J_TRIBOULET && (CID(oc) == 12 || CID(oc) == 13)) return set_eff_x(e, 2);+ return 0;+ }+ if (cx->area == A_HAND) {+ int deb = R.cards[oc].flags & CF_DEBUFF;+ if (id == J_SHOOT_THE_MOON && CID(oc) == 12) {+ if (deb) return msg(e, K_DEBUFFED, PC_MULT);+ e->has |= EF_HMULT;+ e->mult = 13;+ return 1;+ }+ if (id == J_BARON && CID(oc) == 13) {+ if (deb) return msg(e, K_DEBUFFED, PC_MULT);+ return set_eff_x(e, 1.5);+ }+ if (id == J_RESERVED_PARKING && card_is_face(oc, 0) && prob(2)) {+ if (deb) return msg(e, K_DEBUFFED, PC_MULT);+ e->has |= EF_DOLLARS;+ e->dollars = 1;+ return 1;+ }+ if (id == J_RAISED_FIST) {+ int tm = 15, tid = 15, raised = -1;+ for (int i = 0; i < R.nhand; i++) {+ int c = R.hand[i];+ if (tid >= R.cards[c].rank && R.cards[c].enh != E_STONE) {+ tm = card_chip_nominal(R.cards[c].rank);+ tid = R.cards[c].rank;+ raised = c;+ }+ }+ if (raised == oc) {+ if (deb) return msg(e, K_DEBUFFED, PC_MULT);+ e->has |= EF_HMULT;+ e->mult = 2 * tm;+ return 1;+ }+ }+ }+ return 0;+ }+ case CX_REPETITION: {+ int oc = cx->other;+ if (cx->area == A_PLAY) {+ int r = CID(oc);+ if ((id == J_SOCK_AND_BUSKIN && card_is_face(oc, 0)) ||+ (id == J_HANGING_CHAD && oc == R.play[cx->hi->scoring[0]]) ||+ (id == J_DUSK && R.hands_left == 0) || id == J_SELZER ||+ (id == J_HACK && (r == 2 || r == 3 || r == 4 || r == 5))) {+ e->has |= EF_REPS;+ e->reps = id == J_HANGING_CHAD ? 2 : 1;+ return msg(e, K_AGAIN, PC_ATTN);+ }+ }+ if (cx->area == A_HAND && id == J_MIME && cx->card_effects) {+ e->has |= EF_REPS;+ e->reps = 1;+ return msg(e, K_AGAIN, PC_ATTN);+ }+ return 0;+ }+ case CX_OTHER_JOKER:+ if (id == J_BASEBALL && cx->other_joker != ji &&+ joker_info[R.jokers[cx->other_joker].id].rarity == 2) {+ e->has |= EF_XMULT;+ e->x = 1.5;+ return 1;+ }+ return 0;+ case CX_BEFORE:+ if (id == J_TROUSERS && (HAS(H_TWO_PAIR) || HAS(H_FULL_HOUSE)) && NOT_BP) {+ j->a += 2;+ return msg(e, K_UPGRADE, PC_MULT);+ }+ if (id == J_SPACE && prob(4)) {+ e->has |= EF_LEVELUP;+ e->reps = cx->hi->hand;+ return msg(e, K_LEVELUP, PC_ATTN);+ }+ if (id == J_SQUARE && cx->nfull == 4 && NOT_BP) {+ j->a += 4;+ return msg(e, K_UPGRADE, PC_CHIPS);+ }+ if (id == J_RUNNER && HAS(H_STRAIGHT) && NOT_BP) {+ j->a += 15;+ return msg(e, K_UPGRADE, PC_CHIPS);+ }+ if (id == J_MIDAS_MASK && NOT_BP) {+ int n = 0;+ for (int i = 0; i < cx->hi->nscoring; i++) {+ int c = R.play[cx->hi->scoring[i]];+ if (card_is_face(c, 0)) {+ n++;+ R.cards[c].enh = E_GOLD;+ ev_card_set(c);+ }+ }+ if (n) return msg(e, K_GOLD, PC_MONEY);+ return 0;+ }+ if (id == J_VAMPIRE && NOT_BP) {+ int n = 0;+ for (int i = 0; i < cx->hi->nscoring; i++) {+ int c = R.play[cx->hi->scoring[i]];+ if (R.cards[c].enh != E_NONE && !(R.cards[c].flags & CF_DEBUFF)) {+ n++;+ R.cards[c].enh = E_NONE;+ ev_card_set(c);+ }+ }+ if (n) {+ j->x += 0.1f * n;+ return msg(e, "", PC_MULT);+ }+ return 0;+ }+ if (id == J_TODO_LIST && cx->hi->hand == j->c) {+ e->has |= EF_DOLLARS;+ e->dollars = 4;+ return 1;+ }+ if (id == J_DNA && R.hands_played_round == 0 && cx->nfull == 1) {+ card_t c = R.cards[cx->full[0]];+ c.flags &= CF_DOWN;+ add_card_to_deck(c, A_HAND);+ cx_t c2 = {0};+ c2.kind = CX_CARDS_ADDED, c2.bp = -1, c2.n = 1;+ for (int i = 0; i < R.njokers; i++) {+ eff_t e2 = {0};+ jcalc(i, &c2, &e2);+ }+ return msg(e, K_COPIED, PC_CHIPS);+ }+ if (id == J_RIDE_THE_BUS && NOT_BP) {+ int faces = 0;+ for (int i = 0; i < cx->hi->nscoring; i++) faces |= card_is_face(R.play[cx->hi->scoring[i]], 0);+ if (faces) {+ int last = j->a;+ j->a = 0;+ if (last > 0) return msg(e, K_RESET, PC_ATTN);+ } else+ j->a += 1;+ return 0;+ }+ if (id == J_OBELISK && NOT_BP) {+ int reset = 1, h = cx->hi->hand, more = R.hands[h].played;+ for (int k = 0; k < NHANDS; k++)+ if (k != h && R.hands[k].played >= more && R.hands[k].visible) reset = 0;+ if (reset) {+ if (j->x > 1) {+ j->x = 1;+ return msg(e, K_RESET, PC_ATTN);+ }+ } else+ j->x += 0.2f;+ return 0;+ }+ if (id == J_GREEN_JOKER && NOT_BP) {+ j->a += 1;+ return msg(e, "+1 Mult", PC_MULT);+ }+ return 0;+ case CX_AFTER:+ if (id == J_ICE_CREAM && NOT_BP) {+ if (j->a - 5 <= 0) {+ e->has |= EF_REMOVE;+ return msg(e, K_MELTED, PC_CHIPS);+ }+ j->a -= 5;+ return msg(e, "-5", PC_CHIPS);+ }+ if (id == J_SELZER && NOT_BP) {+ if (j->a - 1 <= 0) {+ e->has |= EF_REMOVE;+ return msg(e, K_DRANK, PC_ATTN);+ }+ j->a -= 1;+ static char t[4];+ t[0] = (char)('0' + j->a % 10);+ t[1] = 0;+ return msg(e, t, PC_ATTN);+ }+ return 0;+ case CX_MAIN: {+ if (id == J_LOYALTY_CARD) {+ int rem = (5 - 1 - (R.hands_played - j->b)) % (5 + 1);+ if (rem < 0) rem += 6;+ if (NOT_BP) j->c = (uint8_t)rem;+ if (rem == 5) return set_eff_x(e, 4);+ return 0;+ }+ int t = jtype(id);+ double x = j->x;+ if (id == J_STENCIL) x = stencil_x();+ if (id == J_THROWBACK) x = 1 + R.skips * 0.25;+ if (id == J_CAINO) x = 1; /* Caino uses its own value below */+ if (id != J_SEEING_DOUBLE && x > 1 && (t < 0 || HAS(t)) && id != J_STEEL_JOKER) return set_eff_x(e, x);+ switch (id) {+ case J_JOLLY: case J_ZANY: case J_MAD: case J_CRAZY: case J_DROLL:+ if (HAS(t)) return set_eff_mult(e, id == J_JOLLY ? 8 : (id == J_MAD || id == J_DROLL) ? 10 : 12);+ return 0;+ case J_SLY: case J_WILY: case J_CLEVER: case J_DEVIOUS: case J_CRAFTY:+ if (HAS(t)) return set_eff_chips(e, id == J_SLY ? 50 : (id == J_CLEVER || id == J_CRAFTY) ? 80 : 100);+ return 0;+ case J_HALF: return cx->nfull <= 3 ? set_eff_mult(e, 20) : 0;+ case J_ABSTRACT: return set_eff_mult(e, 3 * R.njokers);+ case J_ACROBAT: return R.hands_left == 0 ? set_eff_x(e, 3) : 0;+ case J_MYSTIC_SUMMIT: return R.discards_left == 0 ? set_eff_mult(e, 15) : 0;+ case J_MISPRINT: return set_eff_mult(e, rng_int(0, 23));+ case J_BANNER: return R.discards_left > 0 ? set_eff_chips(e, 30 * R.discards_left) : 0;+ case J_STUNTMAN: return set_eff_chips(e, 250);+ case J_MATADOR:+ if (R.blind_triggered) {+ e->has |= EF_DOLLARS;+ e->dollars = 8;+ return 1;+ }+ return 0;+ case J_SUPERNOVA: return set_eff_mult(e, R.hands[cx->hi->hand].played);+ case J_CEREMONIAL: return j->a > 0 ? set_eff_mult(e, j->a) : 0;+ case J_VAGABOND:+ if (cons_room() && R.money <= 4) {+ give_cons(0);+ return msg(e, K_PLUS_TAROT, PC_TAROT);+ }+ return 0;+ case J_SUPERPOSITION:+ if (cons_room()) {+ int aces = 0;+ for (int i = 0; i < cx->hi->nscoring; i++) aces += CID(R.play[cx->hi->scoring[i]]) == 14;+ if (aces >= 1 && HAS(H_STRAIGHT)) {+ give_cons(0);+ return msg(e, K_PLUS_TAROT, PC_TAROT);+ }+ }+ return 0;+ case J_SEANCE:+ if (cons_room() && HAS(H_STRAIGHT_FLUSH)) {+ give_cons(2);+ return msg(e, K_PLUS_SPECTRAL, PC_SPECTRAL);+ }+ return 0;+ case J_FLOWER_POT: {+ int s[4] = {0, 0, 0, 0};+ static const uint8_t order[4] = {S_HEARTS, S_DIAMONDS, S_SPADES, S_CLUBS};+ for (int pass = 0; pass < 2; pass++)+ for (int i = 0; i < cx->hi->nscoring; i++) {+ int c = R.play[cx->hi->scoring[i]];+ if ((R.cards[c].enh == E_WILD) != pass) continue;+ for (int k = 0; k < 4; k++)+ if (card_is_suit(c, order[k], !pass, 0) && s[k] == 0) {+ s[k] = 1;+ break;+ }+ }+ return (s[0] && s[1] && s[2] && s[3]) ? set_eff_x(e, 3) : 0;+ }+ case J_SEEING_DOUBLE: {+ int s[4] = {0, 0, 0, 0}; /* H D S C */+ for (int i = 0; i < cx->hi->nscoring; i++) {+ int c = R.play[cx->hi->scoring[i]];+ if (R.cards[c].enh == E_WILD) continue;+ s[0] += card_is_suit(c, S_HEARTS, 0, 0) != 0;+ s[1] += card_is_suit(c, S_DIAMONDS, 0, 0) != 0;+ s[2] += card_is_suit(c, S_SPADES, 0, 0) != 0;+ s[3] += card_is_suit(c, S_CLUBS, 0, 0) != 0;+ }+ for (int i = 0; i < cx->hi->nscoring; i++) {+ int c = R.play[cx->hi->scoring[i]];+ if (R.cards[c].enh != E_WILD) continue;+ if (card_is_suit(c, S_CLUBS, 0, 0) && s[3] == 0) s[3]++;+ else if (card_is_suit(c, S_DIAMONDS, 0, 0) && s[1] == 0) s[1]++;+ else if (card_is_suit(c, S_SPADES, 0, 0) && s[2] == 0) s[2]++;+ else if (card_is_suit(c, S_HEARTS, 0, 0) && s[0] == 0) s[0]++;+ }+ return ((s[0] || s[1] || s[2]) && s[3]) ? set_eff_x(e, 2) : 0;+ }+ case J_WEE: return set_eff_chips(e, j->a);+ case J_CASTLE: return j->a > 0 ? set_eff_chips(e, j->a) : 0;+ case J_BLUE_JOKER: return R.ndeck > 0 ? set_eff_chips(e, 2 * R.ndeck) : 0;+ case J_EROSION: {+ int d = R.starting_deck - count_cards();+ return d > 0 ? set_eff_mult(e, 4 * d) : 0;+ }+ case J_SQUARE: return set_eff_chips(e, j->a);+ case J_RUNNER: return set_eff_chips(e, j->a);+ case J_ICE_CREAM: return set_eff_chips(e, j->a);+ case J_STONE: {+ int n = count_enh(E_STONE);+ return n > 0 ? set_eff_chips(e, 25 * n) : 0;+ }+ case J_STEEL_JOKER: {+ int n = count_enh(E_STEEL);+ return n > 0 ? set_eff_x(e, 1 + 0.2 * n) : 0;+ }+ case J_BULL: return R.money > 0 ? set_eff_chips(e, 2 * R.money) : 0;+ case J_DRIVERS_LICENSE: {+ int n = 0;+ for (int i = 0; i < R.ncards_alloc; i++)+ if ((R.cards[i].flags & CF_USED) && R.cards[i].enh != E_NONE) n++;+ return n >= 16 ? set_eff_x(e, 3) : 0;+ }+ case J_BLACKBOARD: {+ int black = 0;+ for (int i = 0; i < R.nhand; i++)+ black += card_is_suit(R.hand[i], S_CLUBS, 0, 1) || card_is_suit(R.hand[i], S_SPADES, 0, 1);+ return black == R.nhand ? set_eff_x(e, 3) : 0;+ }+ case J_STENCIL: return (joker_slots() - R.njokers) > 0 ? set_eff_x(e, x) : 0;+ case J_SWASHBUCKLER: {+ int m = swash_mult(ji);+ return m > 0 ? set_eff_mult(e, m) : 0;+ }+ case J_JOKER: return set_eff_mult(e, 4);+ case J_TROUSERS: case J_RIDE_THE_BUS: case J_FLASH: case J_POPCORN: case J_GREEN_JOKER: case J_RED_CARD:+ return j->a > 0 ? set_eff_mult(e, j->a) : 0;+ case J_FORTUNE_TELLER: return R.tarots_used > 0 ? set_eff_mult(e, R.tarots_used) : 0;+ case J_GROS_MICHEL: return set_eff_mult(e, 15);+ case J_CAVENDISH: return set_eff_x(e, 3);+ case J_CARD_SHARP: return R.hands[cx->hi->hand].played_round > 1 ? set_eff_x(e, 3) : 0;+ case J_BOOTSTRAPS: {+ int k = R.money / 5;+ return k >= 1 ? set_eff_mult(e, 2 * k) : 0;+ }+ case J_CAINO: return j->x > 1 ? set_eff_x(e, j->x) : 0;+ }+ return 0;+ }+ }+ return 0;+}diff --git a/games/balatro/src/jokers.h b/games/balatro/src/jokers.hnew file mode 100644index 00000000..c5b9f754--- /dev/null+++ b/games/balatro/src/jokers.h@@ -0,0 +1,46 @@+#ifndef JOKERS_H+#define JOKERS_H+#include "game.h"++/* contexts, as in Card:calculate_joker */+enum {+ CX_OPEN_BOOSTER, CX_BUYING_CARD, CX_SELLING_SELF, CX_SELLING_CARD, CX_REROLL, CX_ENDING_SHOP, CX_SKIP_BLIND,+ CX_SKIPPING_BOOSTER, CX_CARDS_ADDED, CX_FIRST_HAND_DRAWN, CX_SETTING_BLIND, CX_DESTROYING_CARD,+ CX_REMOVE_CARDS, CX_USING_CONS, CX_DEBUFFED_HAND, CX_PRE_DISCARD, CX_DISCARD, CX_END_ROUND, CX_REP_END_ROUND,+ CX_INDIVIDUAL, CX_REPETITION, CX_OTHER_JOKER, CX_BEFORE, CX_AFTER, CX_MAIN+};++typedef struct {+ int kind;+ int blueprint; /* copy depth */+ int bp; /* the joker showing the effect (Blueprint/Brainstorm), -1 */+ int other; /* other playing card */+ int area; /* A_PLAY or A_HAND */+ int other_joker;+ const handinfo_t *hi;+ const uint8_t *full; int nfull; /* played (or discarded) cards */+ int card_effects; /* Mime: the held card had effects */+ int game_over;+ int boss; /* setting_blind: the blind is a boss */+ int cons_set, cons_id;+ int n; /* cards added */+ int nfaces_removed, nglass_removed;+ int hook; /* discard caused by The Hook */+} cx_t;++enum { EF_CHIPS = 1, EF_MULT = 2, EF_XMULT = 4, EF_DOLLARS = 8, EF_REPS = 16, EF_HMULT = 32, EF_MSG = 64,+ EF_LEVELUP = 128, EF_REMOVE = 256, EF_SAVED = 512 };+typedef struct {+ int has;+ double chips, mult, x;+ int dollars, reps;+ const char *msg;+ int col;+ int card; /* joker index shown (after Blueprint) */+ int focus; /* the message goes on this joker (Wee Joker) */+} eff_t;++int jcalc(int ji, cx_t *cx, eff_t *e);+void joker_init(joker_t *j);+int joker_x_display(const joker_t *j, double *out); /* current values for descriptions */+#endifdiff --git a/games/balatro/src/libc.c b/games/balatro/src/libc.cnew file mode 100644index 00000000..e9ee8a9d--- /dev/null+++ b/games/balatro/src/libc.c@@ -0,0 +1,38 @@+/* Minimal replacements for the few libc routines the app needs: much+ * smaller than newlib's speed-optimized versions. */+#include <stddef.h>++#define EXPORT __attribute__((used, externally_visible))++EXPORT void *memcpy(void *d, const void *s, size_t n) {+ char *o = d;+ const char *i = s;+ while (n--) *o++ = *i++;+ return d;+}++EXPORT void *memmove(void *d, const void *s, size_t n) {+ char *o = d;+ const char *i = s;+ if (o < i) return memcpy(d, s, n);+ while (n--) o[n] = i[n];+ return d;+}++EXPORT void *memset(void *d, int c, size_t n) {+ char *o = d;+ while (n--) *o++ = c;+ return d;+}++EXPORT size_t strlen(const char *s) {+ const char *e = s;+ while (*e) e++;+ return e - s;+}++EXPORT char *strcpy(char *d, const char *s) {+ char *o = d;+ while ((*o++ = *s++)) {}+ return d;+}diff --git a/games/balatro/src/main.c b/games/balatro/src/main.cnew file mode 100644index 00000000..223c6347--- /dev/null+++ b/games/balatro/src/main.c@@ -0,0 +1,1653 @@+/* Balatro for NumWorks: the app, its screens and controls. */+#include <eadk.h>+#include <string.h>+#include "../../common/epsilon_app.h"+#include "../../common/jump.h"+#include "art.h"+#include "assets.h"+#include "bg.h"+#include "ev.h"+#include "jokers.h"+#include "save.h"+#include "ui.h"+#include "util.h"++#ifdef __ELF__+const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name"))) = "Balatro";+const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level"))) = 0;+#endif++static np_jump_t leave;+static int in_game, has_save;++/* ------------------------------------------------------------ input */+enum { K_LEFT, K_UP, K_DOWN, K_RIGHT, K_OK, K_BACK, K_HOME, K_ONOFF = 8, K_SHIFT = 12, K_ALPHA, K_XNT, K_VAR,+ K_TOOLBOX, K_BACKSPACE, K_EXE = 52 };+static uint64_t keys, prev_keys;+static int rep_key = -1, rep_t;+static int pressed[64];+static int buf_key[4], buf_age[4], nbuf; /* presses kept while busy */++static void quit_now(void) {+ if (in_game) save_write(R.phase != PH_GAMEOVER);+ else save_write(has_save);+ np_jump(leave);+}++static void poll_input(int dt) {+ prev_keys = keys;+ keys = eadk_keyboard_scan();+ if ((keys >> K_HOME) & 1 || (keys >> K_ONOFF) & 1) quit_now();+ memset(pressed, 0, sizeof pressed);+ for (int k = 0; k < 53; k++)+ if (((keys >> k) & 1) && !((prev_keys >> k) & 1)) {+ pressed[k] = 1;+ if (k <= K_RIGHT) rep_key = k, rep_t = 330;+ }+ if (rep_key >= 0) {+ if (!((keys >> rep_key) & 1)) rep_key = -1;+ else if ((rep_t -= dt) <= 0) {+ pressed[rep_key] = 1;+ rep_t = 90;+ }+ }+}+static int held(int k) { return (keys >> k) & 1; }++/* ------------------------------------------------------------ screens */+enum { SCR_TITLE, SCR_GAME };+enum { OV_NONE, OV_OPTIONS, OV_RUNINFO, OV_DECK, OV_CREDITS, OV_HELP, OV_SETUP, OV_CONFIRM_NEW };+static int screen = SCR_TITLE, overlay = OV_NONE, ov_sel, ov_tab;+static int title_sel;+static int menu_open = -1, menu_sel; /* action menu on the focused item */+static int deny_t; /* "can't" feedback */++enum { Z_HAND = 1, Z_JOKERS, Z_CONS, Z_BTN, Z_DECK, Z_SHOP, Z_BOTTOM, Z_SHOPBTN, Z_PACK, Z_SKIP };+static int zone = Z_HAND, zi;+static int focus_time, last_zone, last_zi; /* how long the focus stayed put */++extern void layout_cards(int dt, int show_hand, int hand_y);+extern void draw_jokers_row(int focus_j, int focus_c, int sel_j, int sel_c);+extern void draw_hand_cards(int focus_h);+extern void draw_play_cards(void);+extern void draw_deck_pile(int focused);+extern void draw_popups(void);+extern int ui_hand_x(int i, int n);+extern int blind_debuffs_hand(void);+extern int cons_usable(int id, int in_pack);++static void deny(void) { deny_t = 300; }+static void autosave(void) { save_write(R.phase != PH_GAMEOVER); }++static void bg_for_phase(void) {+ if (screen == SCR_TITLE) {+ bg_mode(1);+ return;+ }+ bg_mode(0);+ if (R.phase == PH_PACK) {+ switch (R.pack_kind) {+ case PK_ARCANA: bg_colours(0x8867A5, 0x2C3536, 0, 1.5f, 0, 0); break;+ case PK_SPECTRAL: bg_colours(0x4584FA, 0x2C3536, 0, 2, 0, 0); break;+ case PK_STANDARD: bg_colours(0x2C3536, 0xFE5F55, 0, 3, 0, 0); break;+ case PK_BUFFOON: bg_colours(0xFF9A00, 0x374244, 0, 2, 0, 0); break;+ default: bg_colours(0x374244, 0, 0, 3, 0, 0);+ }+ return;+ }+ int b = -1;+ if (R.phase == PH_ROUND || R.phase == PH_CASHOUT) b = R.blind;+ if (R.phase == PH_BLIND_SELECT) b = R.blind_on == 2 ? R.boss : BL_SMALL;+ if (R.phase == PH_SHOP) b = BL_SMALL;+ if (R.won && R.phase != PH_ROUND) {+ bg_colours(0x4F6367, 0, 0, 1, 0, 0);+ return;+ }+ if (b < BL_OX) bg_colours(0x50846E, 0, 0, 1, 0, 0);+ else if (blind_info[b].showdown) bg_colours(0x009DFF, 0xFE5F55, 0x21282A, 3, 0.5f, 0);+ else {+ uint32_t c = blind_info[b].colour;+ /* lighten(mix(boss, black, 0.3), 0.1) */+ int r = ((c >> 16) & 255) * 3 / 10 + 0x37 * 7 / 10, g = ((c >> 8) & 255) * 3 / 10 + 0x42 * 7 / 10,+ bl = (c & 255) * 3 / 10 + 0x44 * 7 / 10;+ r += (255 - r) / 10, g += (255 - g) / 10, bl += (255 - bl) / 10;+ bg_colours((uint32_t)(r << 16 | g << 8 | bl), c, 0, 2, R.phase == PH_ROUND ? 0.25f : 0, 0);+ }+}++/* ------------------------------------------------------------ title */+static int title_t;+#define LOGO_CARD 316 /* the Ace fills the logo's height, as in the game */++static void draw_title(void) {+ int lx = 160 - 106, ly = 14 + (title_t < 600 ? (600 - title_t) / 30 : 0);+ g_sprite(SPR_LOGO, lx, ly, 0, 256);+ /* the Ace of Spades standing in for the logo's A, floating gently */+ int bob = (int)((g_time / 140) % 24);+ bob = bob < 12 ? bob / 4 : (24 - bob) / 4;+ int cx = 160 - CW / 2, cy = ly + 46 - bob;+ g_sprite(SPR_E + 1, cx + 2, cy + 3 + bob, FX_SHADOW, LOGO_CARD);+ g_sprite(SPR_E + 1, cx, cy, 0, LOGO_CARD);+ g_sprite(SPR_F + 3 * 13 + 12, cx, cy, 0, LOGO_CARD);+ /* buttons, like the main menu (they make way for an open panel) */+ if (overlay) return;+ static const char *const lbl[4] = {"PLAY", "OPTIONS", "QUIT", "CREDITS"};+ static const C col[4] = {C_BLUE, C_ORANGE, C_RED, C_GREEN};+ g_rrect(20, 195, 280, 42, 7, HEXC(0x1A2224));+ g_rrect(21, 196, 278, 40, 6, HEXC(0x3A5055));+ g_rrect(23, 198, 274, 36, 5, HEXC(0x2B3A3D));+ for (int i = 0; i < 4; i++) {+ int bw = i == 0 ? 80 : 58, bx = i == 0 ? 30 : 116 + (i - 1) * 60;+ button(bx, 204, bw, 24, col[i], lbl[i], i == 0 ? T_LARGE : T_MED, title_sel == i, 1);+ }+}++/* ------------------------------------------------------------ overlays */+static void big_panel(int x, int y, int w, int h) {+ g_shade(0, 0, 320, 240, 0, 14);+ g_rrect(x - 2, y - 2, w + 4, h + 6, 7, HEXC(0x1A2224));+ g_rrect(x, y, w, h, 6, HEXC(0x3A5055));+ g_rrect(x + 3, y + 3, w - 6, h - 6, 5, HEXC(0x2B3A3D));+}++/* a panel's title, large, in the top 20 pixels of the panel */+static void panel_title(const char *t, int x, int y, int w) { g_text_box(t, x, y + 3, w, 20, F_TITLE, C_WHITE); }++static void tab_button(int x, int y, int w, const char *label, int on) {+ if (on) g_rect(x + w / 2 - 3, y - 4, 6, 3, C_RED);+ button(x, y, w, 15, on ? C_RED : HEXC(0x8C3B35), label, F_LABEL, 0, 1);+}++/* a deck or stake row: dark box, art on the left, name over a white box */+static void setup_row(int y, int h, int bh) {+ g_rrect(62, y + 1, 196, h, 5, HEXC(0x1A2224));+ g_rrect(61, y, 196, h, 5, HEXC(0x1F2B2D));+ g_rrect(106, y + 3, 148, h - 6, 4, HEXC(0x3A4B4E));+ g_rrect(109, y + h - 4 - bh, 142, bh, 3, C_WHITE);+}++static void draw_setup(void) {+ big_panel(30, 10, 260, 214);+ int ntabs = has_save ? 2 : 1;+ tab_button(ntabs == 1 ? 128 : 94, 20, 64, "New Run", ov_tab == 0);+ if (ntabs == 2) tab_button(162, 20, 64, "Continue", ov_tab == 1);+ char t[64];+ /* the deck: name, then its text or the run's numbers on white */+ int bh = ov_tab == 0 ? 25 : 45;+ setup_row(42, 68, bh);+ g_sprite(SPR_E, 69, 53, FX_SHADOW, 256);+ g_sprite(SPR_E, 67, 51, 0, 256);+ int wy = 42 + 68 - 4 - bh; /* the white box */+ g_text_box("Red Deck", 106, 45, 148, wy - 45, F_NAME, C_WHITE);+ if (ov_tab == 0)+ g_text_box(TC_MULT "+1" TC_RESET " discard\nevery round", 109, wy, 142, bh, F_TEXT, C_TEXT_DARK);+ else {+ static const char *const lab[4] = {"Round", "Ante", "Money", "Best Hand"};+ for (int i = 0; i < 4; i++) {+ int yy = wy + 3 + i * 10;+ g_text(lab[i], 170, yy, F_TEXT | T_RIGHT, C_TEXT_DARK);+ g_text(":", 173, yy, F_TEXT, C_TEXT_DARK);+ C c = i == 0 ? C_RED : i == 1 ? C_BLUE : i == 2 ? C_MONEY : C_RED;+ if (i == 0) fmt_int(t, R.round);+ else if (i == 1) fmt_int(t, R.ante);+ else if (i == 2) fmt_money(t, R.money);+ else fmt_commas(t, R.best_hand);+ g_text(t, 178, yy, F_TEXT, c);+ }+ }+ /* the stake */+ setup_row(115, 38, 19);+ g_sprite(SPR_STAKE, 76, 126, 0, 256);+ g_text_box("White Stake", 106, 117, 148, 13, F_NAME, C_WHITE);+ g_text_box("Base Difficulty", 109, 130, 142, 19, F_TEXT, C_TEXT_DARK);+ if (ov_tab == 0) {+ char *o = str_cat(t, "Wins " TC_ATTN);+ o = fmt_int(o, S.wins);+ o = str_cat(o, TC_WHITE " Best Ante " TC_ATTN);+ o = fmt_int(o, S.best_ante > 0 ? S.best_ante : 0);+ o = str_cat(o, TC_WHITE " Best Hand " TC_MULT);+ fmt_commas(o, S.best_hand);+ } else {+ char *o = str_cat(t, "Seed " TC_ATTN);+ str_cat(o, R.seed);+ }+ g_text(t, 160, 159, F_LABEL | T_CENTER, C_WHITE);+ button(106, 172, 108, 24, C_BLUE, ov_tab == 0 ? "PLAY" : "CONTINUE", T_LARGE, ov_sel == 0, 1);+ button(38, 202, 244, 16, C_ORANGE, "Back", T_MED, ov_sel == 1, 1);+}++static const char help_lines[] =+ TC_ATTN "Arrows" TC_RESET " move between cards, Jokers, buttons\n"+ TC_ATTN "OK" TC_RESET " select a card, or pick a Joker/item and\n"+ " choose " TC_GREEN "Sell" TC_RESET ", " TC_MULT "Use" TC_RESET ", " TC_MONEY "Buy" TC_RESET "...\n"+ TC_ATTN "EXE" TC_RESET " " TC_CHIPS "Play Hand" TC_RESET " " TC_ATTN "DEL" TC_RESET " " TC_MULT "Discard" TC_RESET "\n"+ TC_ATTN "shift" TC_RESET " sort the hand by rank or suit\n"+ TC_ATTN "alpha" TC_RESET " + " TC_ATTN "left/right" TC_RESET " move a Joker or card\n"+ TC_ATTN "toolbox" TC_RESET " Run Info " TC_ATTN "var" TC_RESET " view deck\n"+ TC_ATTN "back" TC_RESET " back / Options " TC_ATTN "home" TC_RESET " save, quit\n"+ "Hold " TC_ATTN "OK" TC_RESET " or " TC_ATTN "EXE" TC_RESET " to speed up scoring.\n"+ "\n"+ "Play poker hands: score = " TC_CHIPS "Chips" TC_RESET " x " TC_MULT "Mult" TC_RESET ".\n"+ "Beat each Blind's score before your\n"+ "hands run out. Buy Jokers in the shop\n"+ "and beat the Ante 8 Boss Blind to win!";++static void draw_help(void) {+ big_panel(10, 6, 300, 228);+ panel_title("How to play", 10, 6, 300);+ g_rrect(18, 30, 284, 172, 4, HEXC(0x1F2B2D));+ g_text(help_lines, 160 - g_textw(help_lines, F_TEXT) / 2, 30 + (172 - g_lines(help_lines) * 10 + 3) / 2, F_TEXT, C_WHITE);+ button(120, 208, 80, 18, C_ORANGE, "Back", T_MED, 1, 1);+}++static void draw_credits(void) {+ big_panel(12, 10, 296, 220);+ panel_title("Credits", 12, 10, 296);+ g_rrect(20, 34, 280, 166, 4, HEXC(0x1F2B2D));+ g_text("Inspired by " TC_ATTN "Balatro" TC_RESET " by LocalThunk.\n"+ "Not affiliated with LocalThunk or Playstack.\n\n"+ "Card, Joker and interface art adapted\n"+ "from Balatro by LocalThunk.\n"+ "Rules and card texts follow the game.\n"+ "Font: " TC_ATTN "m6x11" TC_RESET " by Daniel Linssen.\n\n"+ "Made by " TC_ATTN "Mason Chen" TC_RESET " as part of NumPlay.\n\n"+ "Please support the original game!",+ 160, 53, F_TEXT | T_CENTER, C_WHITE);+ button(120, 206, 80, 18, C_ORANGE, "Back", T_MED, 1, 1);+}++enum { OPT_CONTINUE, OPT_SPEED, OPT_HELP, OPT_NEWRUN, OPT_MAINMENU, OPT_BACK };+static const char *const opt_items[6] = {"Continue", "Game Speed", "How to Play", "New Run", "Main Menu", "Back"};+static const uint8_t opt_game[5] = {OPT_CONTINUE, OPT_SPEED, OPT_HELP, OPT_NEWRUN, OPT_MAINMENU};+static const uint8_t opt_title[3] = {OPT_SPEED, OPT_HELP, OPT_BACK};+static int opt_count(void) { return in_game ? 5 : 3; }+static int opt_id(int i) { return in_game ? opt_game[i] : opt_title[i]; }+static int opt_index(int id) {+ for (int i = 0; i < opt_count(); i++)+ if (opt_id(i) == id) return i;+ return 0;+}++static void draw_options(void) {+ int n = opt_count(), h = 32 + n * 28, y0 = 120 - h / 2;+ big_panel(70, y0, 180, h);+ panel_title("Options", 70, y0, 180);+ static const char *const sp[4] = {"0.5", "1", "2", "4"};+ for (int i = 0; i < n; i++) {+ int id = opt_id(i), y = y0 + 28 + i * 28;+ C c = id == OPT_CONTINUE ? C_BLUE : id == OPT_SPEED || id == OPT_BACK ? C_ORANGE : id == OPT_HELP ? C_GREEN : C_RED;+ if (id == OPT_SPEED) {+ char t[24];+ char *o = str_cat(t, "Game Speed < ");+ o = str_cat(o, sp[S.speed & 3]);+ str_cat(o, " >");+ button(84, y, 152, 21, c, t, T_MED, ov_sel == i, 1);+ } else+ button(84, y, 152, 21, c, opt_items[id], T_MED, ov_sel == i, 1);+ }+}++static void draw_confirm_new(void) {+ big_panel(60, 70, 200, 100);+ panel_title("New run?", 60, 70, 200);+ g_text_box("The current run will be lost.", 60, 96, 200, 16, F_LABEL, HEXC(0xDDDDDD));+ button(80, 126, 70, 24, C_RED, "Yes", T_MED, ov_sel == 0, 1);+ button(170, 126, 70, 24, C_BLUE, "No", T_MED, ov_sel == 1, 1);+}++/* Run Info: poker hands, blinds, vouchers */+static void draw_run_info(void) {+ char t[40];+ big_panel(6, 4, 308, 232);+ static const char *const tabs[3] = {"Poker Hands", "Blinds", "Vouchers"};+ for (int i = 0; i < 3; i++) tab_button(40 + i * 82, 12, 76, tabs[i], ov_tab == i);+ if (ov_tab == 0) {+ static const uint8_t order[12] = {H_FLUSH_FIVE, H_FLUSH_HOUSE, H_FIVE_KIND, H_STRAIGHT_FLUSH, H_FOUR_KIND,+ H_FULL_HOUSE, H_FLUSH, H_STRAIGHT, H_THREE_KIND, H_TWO_PAIR, H_PAIR,+ H_HIGH_CARD};+ int y = 34;+ for (int k = 0; k < 12; k++) {+ int h = order[k];+ if (!R.hands[h].visible) continue;+ int lv = R.hands[h].level;+ static const uint32_t lvc[7] = {0xEFEFEF, 0x95ACFF, 0x65EFAF, 0xFAE37E, 0xFFC052, 0xF87D75, 0xCAA0EF};+ C lc = HEXC(lvc[lv < 1 ? 0 : lv > 7 ? 6 : lv - 1]);+ /* lvl | name | chips X mult | # played, as in the game */+ g_rrect(14, y, 292, 16, 4, HEXC(0xDDE4E6));+ g_rrect(16, y + 2, 34, 12, 3, lc);+ fmt_int(str_cat(t, "lvl."), lv);+ g_text_box(t, 16, y + 2, 34, 12, F_TEXT, C_TEXT_DARK);+ g_text(hand_names[h], 56, y + 3, T_MED, C_TEXT_DARK);+ g_rrect(172, y + 2, 42, 12, 3, C_BLUE);+ fmt_commas(t, hand_chips(h));+ g_text(t, 211, y + 3, text_fit(t, 38, T_MED) | T_RIGHT | T_SHADOW, C_WHITE);+ g_text("X", 219, y + 3, T_MED | T_CENTER, C_RED);+ g_rrect(224, y + 2, 42, 12, 3, C_RED);+ fmt_commas(t, hand_mult(h));+ g_text(t, 227, y + 3, text_fit(t, 38, T_MED) | T_SHADOW, C_WHITE);+ g_text("#", 276, y + 3, T_MED, C_ATTN);+ fmt_int(t, R.hands[h].played);+ g_text(t, 301, y + 3, T_MED | T_RIGHT, C_TEXT_DARK);+ y += 18;+ }+ } else if (ov_tab == 1) {+ /* the columns end together, under the boss's text */+ static char bd[80], bd2[96];+ desc_text(bd, sizeof bd, TK_BLIND, R.boss, 0);+ wrap_text(bd2, sizeof bd2, bd, 78, F_TEXT);+ int colh = 131 + g_lines(bd2) * 10 + 5 + 4 - 34;+ for (int k = 0; k < 3; k++) {+ int b = k == 0 ? BL_SMALL : k == 1 ? BL_BIG : R.boss;+ int x = 16 + k * 98, w = 92;+ C main = k == 0 ? mix565(C_BLACK, C_BLUE, 19) : k == 1 ? mix565(C_BLACK, C_ORANGE, 19) : HEXC(blind_info[b].colour);+ g_rrect(x, 34, w, colh, 5, mix565(main, C_BLACK, 16));+ g_rrect(x + 3, 37, w - 6, 15, 3, readable(main, 0));+ g_text_box(blind_name(b), x + 3, 37, w - 6, 15, text_fit(blind_name(b), w - 12, T_MED) | T_SHADOW, C_WHITE);+ draw_blind_chip(b, x + w / 2 - 13, 57, 256);+ g_rrect(x + 4, 88, w - 8, 38, 3, HEXC(0x1D2B2C));+ g_text("Score at least", x + w / 2, 91, F_LABEL | T_CENTER, C_WHITE);+ char n[24];+ int f = num_fit(n, blind_amount(R.ante) * blind_info[b].mult2 / 2, w - 14, T_LARGE);+ g_text(n, x + w / 2, 101 + (11 - g_cap(f) + 1) / 2, f | T_CENTER | T_SHADOW, C_RED);+ label_dollars("Reward:", blind_info[b].dollars, x + w / 2, 116, w - 12);+ if (b >= BL_OX) {+ g_rrect(x + 4, 131, w - 8, g_lines(bd2) * 10 + 5, 3, C_WHITE);+ g_text(bd2, x + w / 2, 134, F_TEXT | T_CENTER, C_TEXT_DARK);+ }+ }+ } else {+ int n = 0;+ for (int v = 0; v < 32; v++)+ if (has_voucher(v)) {+ int x = 20 + (n % 7) * 41, y = 36 + (n / 7) * 52;+ g_sprite(SPR_V + v, x, y, 0, 256);+ n++;+ }+ if (!n) g_text_box("No Vouchers redeemed yet", 6, 100, 308, 30, F_NAME, C_WHITE);+ }+ g_text("left/right: tabs back: close", 160, 225, F_TEXT | T_CENTER, HEXC(0xBBBBBB));+}++/* View Deck: the cards by suit */+static void draw_deck_view(void) {+ char t[24];+ big_panel(4, 4, 312, 232);+ tab_button(96, 12, 62, "Remaining", ov_tab == 0);+ tab_button(162, 12, 62, "Full Deck", ov_tab == 1);+ static const uint8_t suit_order[4] = {S_SPADES, S_HEARTS, S_CLUBS, S_DIAMONDS};+ int counts[4] = {0};+ for (int s = 0; s < 4; s++) {+ int y = 34 + s * 49;+ int list[MAXCARDS], n = 0;+ for (int r = 14; r >= 2; r--)+ for (int i = 0; i < R.ncards_alloc; i++) {+ const card_t *c = &R.cards[i];+ if (!(c->flags & CF_USED) || c->suit != suit_order[s] || c->rank != r) continue;+ int in_deck = 0;+ for (int k = 0; k < R.ndeck; k++) in_deck |= R.deck[k] == i;+ if (ov_tab == 0 && !in_deck && R.phase == PH_ROUND) continue;+ list[n++] = i;+ }+ counts[s] = n;+ int step = n > 1 ? (244 - CW) / (n - 1) : 0;+ if (step > 18) step = 18;+ for (int k = 0; k < n; k++) {+ vcard_t v = {0};+ const card_t *c = &R.cards[list[k]];+ v.rank = c->rank, v.suit = c->suit, v.enh = c->enh, v.ed = c->ed, v.seal = c->seal;+ draw_card(&v, 66 + k * step, y, 256, 0);+ }+ }+ static const char *const sn[4] = {SUIT_SPADE, SUIT_HEART, SUIT_CLUB, SUIT_DIAMOND};+ static const C sc[4] = {HEXC(0x3C4368), HEXC(0xF03464), HEXC(0x235955), HEXC(0xF06B3F)};+ g_rrect(10, 32, 50, 196, 4, HEXC(0x1F2B2D));+ for (int s = 0; s < 4; s++) {+ int y = 34 + s * 49 + 16;+ g_rrect(14, y + 1, 15, 15, 3, HEXC(0x0E181A));+ g_rrect(14, y, 15, 15, 3, C_WHITE);+ g_text(sn[s], 18, y + 4, T_SMALL, sc[s]);+ fmt_int(t, counts[s]);+ g_text_box(t, 30, y, 28, 15, F_VALUE, C_WHITE);+ }+}++/* ------------------------------------------------------------ helpers */+static int hand_focus(void) { return zone == Z_HAND ? zi : -1; }++/* Play Hand, Sort Hand (Rank, Suit), Discard: under the hand, keys below */+#define BTN_Y 205+static void round_buttons(int show) {+ if (!show) return;+ int n = nselected();+ int can_play = n > 0 && n <= 5 && !ui_busy(), can_disc = n > 0 && R.discards_left > 0 && !ui_busy();+ int f = zone == Z_BTN ? zi : -1;+ const int px = HAND_X, pw = 52, sx = px + pw + 4, sw = 59, dx = sx + sw + 4, dw = 52;+ button(px, BTN_Y, pw, 22, C_BLUE, "Play Hand", F_LABEL, f == 0, can_play);+ keycap(px + pw / 2, 229, "exe");+ panel(sx, BTN_Y - 1, sw, 23, 4, HEXC(0x4F6367), 0);+ g_text("Sort Hand", sx + sw / 2, BTN_Y + 1, F_LABEL | T_CENTER, C_WHITE);+ button(sx + 3, BTN_Y + 10, 25, 11, C_ORANGE, "Rank", F_LABEL, f == 1, 1);+ button(sx + sw - 28, BTN_Y + 10, 25, 11, C_ORANGE, "Suit", F_LABEL, f == 2, 1);+ keycap(sx + sw / 2, 229, "shift");+ button(dx, BTN_Y, dw, 22, C_RED, "Discard", F_LABEL, f == 3, can_disc);+ keycap(dx + dw / 2, 229, "del");+}++static void draw_focus_tooltip(void) {+ if (ui_busy()) return;+ if (zone == Z_JOKERS && zi < V.njokers && menu_open < 0) {+ vitem_t *v = &V.jokers[zi];+ if (v->flags & JF_DOWN) return;+ const joker_t *j = zi < R.njokers ? &R.jokers[zi] : 0;+ draw_tooltip_for(TK_JOKER, v->id, v->ed, j, (int)v->x, (int)v->y, CW);+ } else if (zone == Z_CONS && zi < V.ncons && menu_open < 0) {+ vitem_t *v = &V.cons[zi];+ draw_tooltip_for(TK_CONS, v->id, v->ed, 0, (int)v->x, (int)v->y, CW);+ } else if (zone == Z_HAND && zi < V.nhand) {+ vcard_t *c = &V.cards[V.hand[zi]];+ if (c->down) return;+ int special = c->enh || c->seal || c->ed || (c->flags & CF_DEBUFF) || c->perma;+ if (special || focus_time > 700) draw_tooltip_for(TK_CARD, 0, 0, c, (int)c->x, (int)c->y - 4, CW);+ }+}++static int menu_items(int *kinds) {+ int n = 0;+ if (zone == Z_JOKERS) kinds[n++] = 1; /* sell */+ if (zone == Z_CONS) {+ kinds[n++] = 2; /* use */+ kinds[n++] = 1; /* sell */+ }+ return n;+}++static void draw_menu(void) {+ if (menu_open < 0 || (zone != Z_JOKERS && zone != Z_CONS)) return;+ int kinds[4], n = menu_items(kinds);+ vitem_t *v = zone == Z_JOKERS ? &V.jokers[menu_open] : &V.cons[menu_open];+ /* on the card's right edge, as in the game (its left edge at the screen's+ right), so the rows and panels under the card stay clear */+ const int bw = 32;+ int x = (int)v->x + CW - 3, y = ROW_Y + (n > 1 ? 3 : 10);+ if (x + bw > 318) x = (int)v->x - bw + 3;+ char t[20];+ for (int i = 0; i < n; i++) {+ int yy = y + i * 19;+ if (kinds[i] == 1) {+ int val = zone == Z_JOKERS ? joker_sell_value(&R.jokers[menu_open]) : cons_sell_value(&R.cons[menu_open]);+ fmt_money(str_cat(t, "SELL\n"), val);+ button(x, yy, bw, 22, C_GREEN, t, F_LABEL, menu_sel == i, 1);+ } else+ button(x, yy, bw, 15, C_RED, "USE", F_LABEL, menu_sel == i, cons_usable(R.cons[menu_open].id, 0));+ if (kinds[i] == 2) y -= 1;+ }+}++static void clamp_focus(void) {+ if (zone == Z_HAND && zi >= V.nhand) zi = V.nhand - 1;+ if (zone == Z_JOKERS && zi >= V.njokers) zi = V.njokers - 1;+ if (zone == Z_CONS && zi >= V.ncons) zi = V.ncons - 1;+ if (zi < 0) zi = 0;+ if (zone == Z_JOKERS && V.njokers == 0) zone = V.ncons ? Z_CONS : (R.phase == PH_SHOP ? Z_SHOPBTN : Z_HAND), zi = 0;+ if (zone == Z_CONS && V.ncons == 0) zone = V.njokers ? Z_JOKERS : (R.phase == PH_SHOP ? Z_SHOPBTN : Z_HAND), zi = 0;+ if (zone == Z_HAND && V.nhand == 0 && R.phase == PH_ROUND) zone = Z_BTN, zi = 0;+}++static int nearest_hand(int x) {+ int best = 0, bd = 9999;+ for (int i = 0; i < V.nhand; i++) {+ int d = ui_hand_x(i, V.nhand) - x;+ if (d < 0) d = -d;+ if (d < bd) bd = d, best = i;+ }+ return best;+}++static int item_x(int z, int i) {+ if (z == Z_JOKERS && i < V.njokers) return (int)V.jokers[i].x;+ if (z == Z_CONS && i < V.ncons) return (int)V.cons[i].x;+ if (z == Z_HAND && i < V.nhand) return ui_hand_x(i, V.nhand);+ return 160;+}++/* left/right within the jokers and consumables row */+static int row_nav(void) {+ if (zone != Z_JOKERS && zone != Z_CONS) return 0;+ int n = zone == Z_JOKERS ? V.njokers : V.ncons;+ if (pressed[K_LEFT]) {+ if (zi > 0) zi--;+ else if (zone == Z_CONS && V.njokers) zone = Z_JOKERS, zi = V.njokers - 1;+ return 1;+ }+ if (pressed[K_RIGHT]) {+ if (zi < n - 1) zi++;+ else if (zone == Z_JOKERS && V.ncons) zone = Z_CONS, zi = 0;+ return 1;+ }+ return 0;+}++static void up_to_row(int x) {+ if (!V.njokers && !V.ncons) return;+ int best = 0, bd = 9999, bz = V.njokers ? Z_JOKERS : Z_CONS;+ for (int i = 0; i < V.njokers; i++) {+ int d = (int)V.jokers[i].x - x;+ if (d < 0) d = -d;+ if (d < bd) bd = d, best = i, bz = Z_JOKERS;+ }+ for (int i = 0; i < V.ncons; i++) {+ int d = (int)V.cons[i].x - x;+ if (d < 0) d = -d;+ if (d < bd) bd = d, best = i, bz = Z_CONS;+ }+ zone = bz, zi = best;+}++static void menu_input(void) {+ int kinds[4], n = menu_items(kinds);+ if (pressed[K_UP] && menu_sel > 0) menu_sel--;+ if (pressed[K_DOWN] && menu_sel < n - 1) menu_sel++;+ if (pressed[K_BACK] || pressed[K_LEFT] || pressed[K_RIGHT]) {+ menu_open = -1;+ return;+ }+ if (pressed[K_OK] || pressed[K_EXE]) {+ int ok = 0, k = kinds[menu_sel];+ if (zone == Z_JOKERS && k == 1) ok = sell_joker(menu_open);+ if (zone == Z_CONS && k == 1) ok = sell_cons(menu_open);+ if (zone == Z_CONS && k == 2) ok = use_cons(menu_open);+ if (!ok) deny();+ else autosave();+ menu_open = -1;+ }+}++static void move_focused(int dir) {+ if (zone == Z_JOKERS) {+ int to = zi + dir;+ if (to >= 0 && to < R.njokers) {+ move_joker(zi, to);+ vitem_t t = V.jokers[zi];+ V.jokers[zi] = V.jokers[to], V.jokers[to] = t;+ zi = to;+ autosave();+ }+ } else if (zone == Z_HAND) {+ int to = zi + dir;+ if (to >= 0 && to < R.nhand) {+ move_hand_card(zi, to);+ uint8_t t = V.hand[zi];+ V.hand[zi] = V.hand[to], V.hand[to] = t;+ zi = to;+ autosave();+ }+ }+}++static void do_sort(int by_suit) {+ R.sort_suit = (uint8_t)by_suit;+ sort_hand(R.sort_suit);+ ev_reset();+ ui_sync_all(0);+ autosave();+}++/* ------------------------------------------------------------ round */+static void round_input(void) {+ if (menu_open >= 0) {+ menu_input();+ return;+ }+ if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT])) {+ move_focused(pressed[K_LEFT] ? -1 : 1);+ return;+ }+ if (pressed[K_EXE]) {+ if (!play_hand()) deny();+ else zone = Z_HAND, autosave();+ return;+ }+ if (pressed[K_BACKSPACE]) {+ if (!discard_hand()) deny();+ else autosave();+ return;+ }+ if (pressed[K_SHIFT]) {+ do_sort(!R.sort_suit);+ return;+ }+ if (row_nav()) return;+ switch (zone) {+ case Z_HAND:+ if (pressed[K_LEFT] && zi > 0) zi--;+ if (pressed[K_RIGHT]) {+ if (zi < V.nhand - 1) zi++;+ else zone = Z_DECK;+ }+ if (pressed[K_UP]) up_to_row(item_x(Z_HAND, zi));+ if (pressed[K_DOWN]) zone = Z_BTN, zi = nselected() ? 0 : 1;+ if (pressed[K_OK] && zi < R.nhand) {+ int before = R.sel[zi];+ toggle_select(zi);+ if (before == R.sel[zi]) deny();+ V.cards[R.hand[zi]].raise = R.sel[zi];+ autosave();+ }+ if (pressed[K_BACK]) {+ if (nselected()) {+ for (int i = 0; i < R.nhand; i++)+ if (!(R.cards[R.hand[i]].flags & CF_FORCED)) R.sel[i] = 0, V.cards[R.hand[i]].raise = 0;+ } else+ overlay = OV_OPTIONS, ov_sel = 0;+ }+ break;+ case Z_DECK:+ if (pressed[K_LEFT]) zone = Z_HAND, zi = V.nhand - 1;+ if (pressed[K_UP]) up_to_row(300);+ if (pressed[K_DOWN]) zone = Z_BTN, zi = 3;+ if (pressed[K_OK]) overlay = OV_DECK, ov_tab = 0;+ if (pressed[K_BACK]) overlay = OV_OPTIONS, ov_sel = 0;+ break;+ case Z_JOKERS: case Z_CONS:+ if (pressed[K_DOWN]) zone = Z_HAND, zi = nearest_hand(item_x(zone, zi));+ if (pressed[K_OK]) menu_open = zi, menu_sel = 0;+ if (pressed[K_BACK]) zone = Z_HAND, zi = 0;+ break;+ case Z_BTN:+ if (pressed[K_LEFT] && zi > 0) zi--;+ if (pressed[K_RIGHT]) {+ if (zi < 3) zi++;+ else zone = Z_DECK;+ }+ if (pressed[K_UP]) zone = Z_HAND, zi = nearest_hand(HAND_X + 26 + zi * 57);+ if (pressed[K_OK]) {+ if (zi == 0) {+ if (!play_hand()) deny();+ else zone = Z_HAND, autosave();+ } else if (zi == 3) {+ if (!discard_hand()) deny();+ else autosave();+ } else+ do_sort(zi == 2);+ }+ if (pressed[K_BACK]) overlay = OV_OPTIONS, ov_sel = 0;+ break;+ default: zone = Z_HAND, zi = 0;+ }+ clamp_focus();+}++static void draw_round(int dt, int show_buttons) {+ layout_cards(dt, 1, HAND_Y);+ draw_sidebar();+ int fj = zone == Z_JOKERS ? zi : -1, fc = zone == Z_CONS ? zi : -1;+ draw_jokers_row(fj, fc, zone == Z_JOKERS ? menu_open : -1, zone == Z_CONS ? menu_open : -1);+ g_shade(HAND_X - 4, HAND_Y - 7, HAND_W + 8, CH + 15, 5, 7);+ draw_deck_pile(zone == Z_DECK);+ draw_play_cards();+ draw_hand_cards(hand_focus());+ char t[12];+ char *o = fmt_int(t, V.nhand);+ *o++ = '/';+ fmt_int(o, hand_size());+ g_text(t, HAND_X + HAND_W / 2, HAND_Y + CH + 3, F_LABEL | T_CENTER, C_WHITE);+ if (show_buttons) round_buttons(!ui_busy() || V.nplay == 0);+ /* the selected hand, shown in the hand box before playing it */+ if (!ui_busy() && R.phase == PH_ROUND) {+ int h = preview_hand();+ if (h >= 0) {+ V.hand_name = (int16_t)h, V.hand_level = R.hands[h].level;+ V.chips = hand_chips(h), V.mult = hand_mult(h);+ if (blind_debuffs_hand()) V.chips = 0, V.mult = 0;+ } else+ V.hand_name = -1, V.chips = 0, V.mult = 0;+ V.flame = 0;+#ifndef __ELF__+ /* simulator only: BALATRO_PREVIEW=hand shows that hand (screenshots) */+ extern char *getenv(const char *);+ const char *pv = getenv("BALATRO_PREVIEW");+ if (pv) {+ int ph = 0;+ while (*pv >= '0' && *pv <= '9') ph = ph * 10 + *pv++ - '0';+ ph %= NHANDS;+ V.hand_name = (int16_t)ph, V.hand_level = R.hands[ph].level, V.chips = hand_chips(ph), V.mult = hand_mult(ph);+ }+#endif+ }+ draw_menu();+ draw_popups();+ draw_focus_tooltip();+}++/* ------------------------------------------------------------ blind select */+static int bs_buttons(int *kind) {+ int n = 0;+ kind[n++] = 0; /* select */+ if (R.blind_on < 2) kind[n++] = 1; /* skip */+ if (R.blind_on == 2 && (has_voucher(V_RETCON) || (has_voucher(V_DIRECTORS_CUT) && !R.boss_rerolled))) kind[n++] = 2;+ return n;+}++static void draw_blind_select(int dt) {+ layout_cards(dt, 0, HAND_Y);+ draw_sidebar();+ draw_jokers_row(zone == Z_JOKERS ? zi : -1, zone == Z_CONS ? zi : -1, zone == Z_JOKERS ? menu_open : -1,+ zone == Z_CONS ? menu_open : -1);+ int kinds[3];+ bs_buttons(kinds);+ int tip_tag = -1, tip_x = 0, tip_y = 0;+ /* three columns filling the play area, the one to play raised and outlined */+ const int w = (AREA_W - 6) / 3, y = 66;+ for (int k = 0; k < 3; k++) {+ int b = k == 0 ? BL_SMALL : k == 1 ? BL_BIG : R.boss;+ int x = AREA_X + k * (w + 3);+ int on = k == R.blind_on;+ int st = R.blind_state[k];+ int yy = y + (on ? 0 : 12);+ C main = k == 0 ? mix565(C_BLACK, C_BLUE, 19) : k == 1 ? mix565(C_BLACK, C_ORANGE, 19) : HEXC(blind_info[b].colour);+ if (st == BS_DEFEATED || st == BS_SKIPPED) main = C_BLACK;+ g_rrect(x - 2, yy - 2, w + 4, 184, 7, on ? C_WHITE : HEXC(0x1D2628));+ g_rrect(x, yy, w, 180, 6, mix565(main, C_BLACK, 16));+ const char *lab = st == BS_SELECT ? "Select" : st == BS_DEFEATED ? "Defeated" : st == BS_SKIPPED ? "Skipped" : "Upcoming";+ int focused = on && zone == Z_BTN && kinds[zi] == 0;+ button(x + 5, yy + 4, w - 10, 16, on ? C_ORANGE : HEXC(0x4F6367), lab, F_LABEL, focused, on);+ /* the name: medium, smaller when it is long (the game shrinks it too) */+ g_rrect(x + 1, yy + 24, w - 2, 15, 3, readable(main, 0));+ const char *nm = blind_name(b);+ g_text_box(nm, x + 1, yy + 24, w - 2, 15, text_fit(nm, w - 4, T_MED) | T_SHADOW, C_WHITE);+ draw_blind_chip(b, x + w / 2 - 13, yy + 43, 256);+ int dy = yy + 72;+ if (b >= BL_OX) {+ static char d[80], d2[96];+ desc_text(d, sizeof d, TK_BLIND, b, 0);+ wrap_text(d2, sizeof d2, d, w - 8, F_TEXT);+ g_text(d2, x + w / 2, dy, F_LABEL | T_CENTER, C_WHITE);+ dy += g_lines(d2) * 10 + 2;+ }+ g_rrect(x + 2, dy, w - 4, 38, 3, HEXC(0x1D2B2C));+ g_text("Score at least", x + w / 2, dy + 3, F_LABEL | T_CENTER, C_WHITE);+ char n[24];+ int f = num_fit(n, blind_amount(R.ante) * blind_info[b].mult2 / 2, w - 12, T_LARGE);+ g_text(n, x + w / 2, dy + 13 + (11 - g_cap(f) + 1) / 2, f | T_CENTER | T_SHADOW, C_RED);+ label_dollars("Reward:", blind_info[b].dollars, x + w / 2, dy + 28, w - 8);+ dy += 42;+ if (k < 2) {+ g_text("or", x + w / 2, dy, F_LABEL | T_CENTER, C_WHITE);+ int sf = on && zone == Z_BTN && kinds[zi] == 1;+ int tag = R.skip_tag[k];+ if (st == BS_SKIPPED || st == BS_DEFEATED) g_sprite(SPR_T + tag, x + w / 2 - 9, dy + 10, FX_GREY, 256);+ else {+ button(x + 4, dy + 11, w - 29, 17, on ? C_RED : HEXC(0x7A2F2A), "Skip Blind", F_LABEL, sf, on);+ g_sprite(SPR_T + tag, x + w - 23, dy + 10, on ? 0 : FX_DIM, 256);+ }+ if (sf) tip_tag = tag, tip_x = x + w - 23, tip_y = dy + 10;+ } else if (on && (has_voucher(V_RETCON) || (has_voucher(V_DIRECTORS_CUT) && !R.boss_rerolled))) {+ int rf = zone == Z_BTN && kinds[zi] == 2;+ button(x + 4, dy + 2, w - 8, 24, C_RED, "Reroll Boss\n$10", F_LABEL, rf, R.money >= 10);+ }+ }+ draw_menu();+ draw_popups();+ if (!ui_busy() && tip_tag >= 0) {+ int orb = -1;+ draw_tooltip_for(TK_TAG, tip_tag, 0, &orb, tip_x, tip_y, 19);+ }+ if (zone == Z_JOKERS || zone == Z_CONS) draw_focus_tooltip();+}++static void blind_select_input(void) {+ int kinds[3], nb = bs_buttons(kinds);+ if (zone == Z_JOKERS || zone == Z_CONS) {+ if (menu_open >= 0) {+ menu_input();+ return;+ }+ if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT])) {+ move_focused(pressed[K_LEFT] ? -1 : 1);+ return;+ }+ if (row_nav()) return;+ if (pressed[K_DOWN] || pressed[K_BACK]) zone = Z_BTN, zi = 0;+ if (pressed[K_OK]) menu_open = zi, menu_sel = 0;+ clamp_focus();+ return;+ }+ zone = Z_BTN;+ if (zi >= nb) zi = nb - 1;+ if (pressed[K_DOWN] || pressed[K_RIGHT]) zi = (zi + 1) % nb;+ if (pressed[K_LEFT]) zi = (zi + nb - 1) % nb;+ if (pressed[K_UP]) {+ if (zi == 0 && (V.njokers || V.ncons)) zone = V.njokers ? Z_JOKERS : Z_CONS, zi = 0;+ else zi = (zi + nb - 1) % nb;+ }+ if (pressed[K_BACK]) overlay = OV_OPTIONS, ov_sel = 0;+ if (pressed[K_OK] || pressed[K_EXE]) {+ if (kinds[zi] == 0) {+ blind_select();+ zone = Z_HAND, zi = 0;+ } else if (kinds[zi] == 1) {+ blind_skip();+ zi = 0;+ if (R.phase == PH_PACK) zone = Z_PACK;+ } else if (R.money >= 10)+ boss_reroll();+ else+ deny();+ autosave();+ }+}++/* ------------------------------------------------------------ cash out */+static int cash_t;++static void dollar_row(char *t, int n) {+ for (int i = 0; i < n && i < 12; i++) *t++ = '$';+ *t = 0;+}++/* the round's earnings, one row at a time as in the game: a big number or+ name on the left, its text, and the dollars on the right */+static void draw_cashout(int dt) {+ layout_cards(dt, 0, HAND_Y);+ draw_sidebar();+ draw_jokers_row(-1, -1, -1, -1);+ char t[48];+ int x = AREA_X + 3, w = AREA_W - 6, y = 64;+ cash_t += dt;+ /* the panel wraps its rows, as in the game */+ int ph = 40 + 33 + (R.cash_hands > 0) * 16 + R.ncash_joker * 16 + (R.cash_tag ? 18 : 0) + (R.cash_interest ? 16 : 0) + 6;+ if (ph > 174) ph = 174;+ g_rrect(x - 2, y - 2, w + 4, ph + 4, 7, HEXC(0x1A2224));+ g_rrect(x, y, w, ph, 6, HEXC(0x3A5055));+ g_rrect(x + 3, y + 3, w - 6, ph - 6, 5, HEXC(0x2B3A3D));+ fmt_money(str_cat(t, "Cash Out: "), R.cash_total);+ button(x + 10, y + 8, w - 20, 24, C_ORANGE, t, T_LARGE, 1, 1);+ int yy = y + 40, appear = 250;+ const int lx = x + 8, rx = x + w - 8;+ if (cash_t < appear) goto done;+ draw_blind_chip(R.blind, lx - 2, yy, 256);+ g_text("Score at least", lx + 28, yy + 1, F_LABEL, C_WHITE);+ {+ char n[24];+ int f = num_fit(n, R.blind_chips, rx - 40 - (lx + 42), T_LARGE);+ g_sprite(SPR_CHIP, lx + 28, yy + 12, 0, 256);+ g_text(n, lx + 42, yy + 12 + (11 - g_cap(f) + 1) / 2, f | T_SHADOW, C_RED);+ }+ dollar_row(t, R.cash_blind);+ g_text(t, rx, yy + 10, F_NAME | T_RIGHT, C_MONEY);+ yy += 31;+ for (int d = lx; d < rx; d += 4) g_rect(d, yy - 2, 2, 1, HEXC(0x6A7D80));+ yy += 2;+ /* rows: 15 pixels each */+ if (R.cash_hands > 0) {+ if (cash_t < (appear += 300)) goto done;+ fmt_int(t, R.cash_hands);+ g_text(t, lx, yy, F_VALUE, C_BLUE);+ g_text("Remaining Hands ($1 each)", lx + 3 + g_textw(t, T_LARGE), yy + 4, F_LABEL, C_WHITE);+ dollar_row(t, R.cash_hands);+ g_text(t, rx, yy + 2, F_NAME | T_RIGHT, C_MONEY);+ yy += 16;+ }+ for (int k = 0; k < R.ncash_joker; k++) {+ if (cash_t < (appear += 300)) goto done;+ int ji = R.cash_joker_id[k];+ if (ji < R.njokers) g_text(text_get(TXT_JOKER + R.jokers[ji].id, 0), lx, yy + 2, F_NAME, C_ATTN);+ dollar_row(t, R.cash_joker[k]);+ g_text(t, rx, yy + 2, F_NAME | T_RIGHT, C_MONEY);+ yy += 16;+ }+ if (R.cash_tag) {+ if (cash_t < (appear += 300)) goto done;+ g_sprite(SPR_T + TAG_INVESTMENT, lx - 2, yy - 2, 0, 256);+ g_text("Defeat the Boss Blind", lx + 20, yy + 4, F_LABEL, C_WHITE);+ dollar_row(t, R.cash_tag);+ g_text(t, rx, yy + 2, F_NAME | T_RIGHT, C_MONEY);+ yy += 18;+ }+ if (R.cash_interest) {+ if (cash_t < (appear += 300)) goto done;+ int amt = 1 + has_joker(J_TO_THE_MOON);+ fmt_int(t, R.cash_interest);+ g_text(t, lx, yy, F_VALUE, C_ATTN);+ int tx = lx + 3 + g_textw(t, T_LARGE);+ char *o = fmt_int(t, amt);+ o = str_cat(o, " interest per $5 (");+ o = fmt_int(o, R.interest_cap / 5 * amt);+ str_cat(o, " max)");+ g_text(t, tx, yy + 4, F_LABEL, C_WHITE);+ dollar_row(t, R.cash_interest);+ g_text(t, rx, yy + 2, F_NAME | T_RIGHT, C_MONEY);+ yy += 16;+ }+done:+ draw_popups();+}++/* ------------------------------------------------------------ shop */+#define SHOP_X AREA_X+#define SHOP_Y 62+#define SHOP_W AREA_W++/* the shop cards, centred in their dark box (x + 68 .. right - 6) */+static int shop_item_x(int i, int n) {+ int area = SHOP_W - 74 - 8, step = n > 1 ? (area - CW) / (n - 1) : 0;+ if (step > CW + 10) step = CW + 10;+ int total = step * (n - 1) + CW;+ return SHOP_X + 68 + 4 + (area - total) / 2 + i * step;+}+static int bottom_n(void) { return R.nshop_v + R.nshop_p; }+/* vouchers in the left box (x + 4 .. + 92), packs in the right one */+static int bottom_x(int i) {+ if (i < R.nshop_v) return R.nshop_v == 1 ? SHOP_X + 4 + 50 - CW / 2 : SHOP_X + 22 + i * 24;+ int np = R.nshop_p, bx = SHOP_X + 96, bw = SHOP_W - 100;+ int step = CW + 12, total = step * (np - 1) + CW;+ return bx + (bw - total) / 2 + (i - R.nshop_v) * step;+}+static sitem_t *bottom_item(int i) { return i < R.nshop_v ? &R.shop_v[i] : &R.shop_p[i - R.nshop_v]; }+static int affordable(int cost) { return cost == 0 || R.money + 20 * has_joker(J_CREDIT_CARD) >= cost; }++static void draw_shop(int dt) {+ layout_cards(dt, 0, HAND_Y);+ draw_sidebar();+ int fj = zone == Z_JOKERS ? zi : -1, fc = zone == Z_CONS ? zi : -1;+ draw_jokers_row(fj, fc, zone == Z_JOKERS ? menu_open : -1, zone == Z_CONS ? menu_open : -1);+ int x = SHOP_X, y = SHOP_Y, w = SHOP_W;+ g_rrect(x - 1, y - 1, w + 2, 180, 7, HEXC(0x1A2224));+ g_rrect(x, y, w, 178, 6, C_RED);+ g_rrect(x + 2, y + 2, w - 4, 174, 5, HEXC(0x3B4B4E));+ char t[24];+ int fb = zone == Z_SHOPBTN ? zi : -1;+ button(x + 6, y + 6, 58, 36, C_RED, "Next\nRound", F_LABEL, fb == 0, 1);+ /* Reroll: the word small, the price large */+ int ok = affordable(R.reroll_cost);+ button(x + 6, y + 46, 58, 36, C_GREEN, "", F_LABEL, fb == 1, ok);+ int sx = x + 6 + (fb == 1 ? focus_shake : 0);+ g_text("Reroll", sx + 29, y + 50, F_LABEL | T_CENTER, ok ? C_WHITE : HEXC(0xBBBBBB));+ fmt_money(t, R.reroll_cost);+ g_text(t, sx + 29, y + 62, F_VALUE | T_CENTER, ok ? C_WHITE : HEXC(0xBBBBBB));+ g_shade(x + 68, y + 6, w - 74, 76, 4, 10);+ for (int i = 0; i < R.nshop; i++) {+ int ix = shop_item_x(i, R.nshop), iy = y + 27;+ int f = zone == Z_SHOP && zi == i;+ draw_item(&R.shop[i], ix, iy - (f ? 4 : 0) - (menu_open == i && zone == Z_SHOP ? 3 : 0), 256, 0);+ }+ for (int i = 0; i < R.nshop; i++) { /* price tags stay on top of a lifted card */+ int cost = item_cost(&R.shop[i]);+ draw_price(shop_item_x(i, R.nshop) + CW / 2, y + 8, cost, affordable(cost));+ }+ /* the voucher box, its name along the left edge as in the game */+ g_shade(x + 4, y + 88, 88, 84, 4, 10);+ char *o = str_cat(t, "ANTE ");+ o = fmt_int(o, R.ante);+ str_cat(o, " VOUCHER");+ g_text(t, x + 9, y + 130, T_SMALL | T_ROT | T_CENTER, HEXC(0x7D8E91));+ g_shade(x + 96, y + 88, w - 100, 84, 4, 10);+ for (int i = 0; i < bottom_n(); i++) {+ sitem_t *it = bottom_item(i);+ int ix = bottom_x(i), iy = y + 111;+ int f = zone == Z_BOTTOM && zi == i;+ draw_item(it, ix, iy - (f ? 4 : 0) - (menu_open == i && zone == Z_BOTTOM ? 3 : 0), 256, 0);+ }+ for (int i = 0; i < bottom_n(); i++) {+ int cost = item_cost(bottom_item(i));+ draw_price(bottom_x(i) + CW / 2, y + 92, cost, affordable(cost));+ }+ if (menu_open >= 0 && (zone == Z_SHOP || zone == Z_BOTTOM)) {+ sitem_t *it = zone == Z_SHOP ? &R.shop[menu_open] : bottom_item(menu_open);+ int ix = zone == Z_SHOP ? shop_item_x(menu_open, R.nshop) : bottom_x(menu_open);+ int iy = zone == Z_SHOP ? y + 27 + CH - 4 : y + 111 + CH - 14;+ const char *lab = it->kind == IT_VOUCHER ? "REDEEM" : it->kind == IT_PACK ? "OPEN" : "BUY";+ button(ix - 4, iy, 43, 15, C_GREEN, lab, F_LABEL, menu_sel == 0, affordable(item_cost(it)));+ if (it->kind == IT_CONS)+ button(ix - 4, iy + 18, 43, 22, C_RED, "BUY\n& USE", F_LABEL, menu_sel == 1, cons_usable(it->id, 1));+ }+ draw_menu();+ draw_popups();+ if (!ui_busy() && menu_open < 0) {+ if (zone == Z_SHOP && zi < R.nshop) {+ sitem_t *it = &R.shop[zi];+ int ix = shop_item_x(zi, R.nshop);+ if (it->kind == IT_JOKER) {+ joker_t j = {0};+ j.id = it->id;+ joker_init(&j);+ if (it->id == J_TODO_LIST) j.c = (uint8_t)it->a;+ draw_tooltip_for(TK_JOKER, it->id, it->ed, &j, ix, y + 27, CW);+ } else if (it->kind == IT_CONS)+ draw_tooltip_for(TK_CONS, it->id, it->ed, 0, ix, y + 27, CW);+ else if (it->kind == IT_CARD) {+ vcard_t v = {0};+ v.rank = it->card.rank, v.suit = it->card.suit, v.enh = it->card.enh, v.ed = it->card.ed, v.seal = it->card.seal;+ draw_tooltip_for(TK_CARD, 0, 0, &v, ix, y + 27, CW);+ }+ } else if (zone == Z_BOTTOM && zi < bottom_n()) {+ sitem_t *it = bottom_item(zi);+ draw_tooltip_for(it->kind == IT_VOUCHER ? TK_VOUCHER : TK_PACK, it->id, 0, 0, bottom_x(zi), y + 111, CW);+ } else if (zone == Z_JOKERS || zone == Z_CONS)+ draw_focus_tooltip();+ }+}++static void shop_input(void) {+ if (menu_open >= 0 && (zone == Z_JOKERS || zone == Z_CONS)) {+ menu_input();+ return;+ }+ if (menu_open >= 0) {+ sitem_t *it = zone == Z_SHOP ? &R.shop[menu_open] : bottom_item(menu_open);+ int n = it->kind == IT_CONS ? 2 : 1;+ if (pressed[K_UP] && menu_sel > 0) menu_sel--;+ if (pressed[K_DOWN] && menu_sel < n - 1) menu_sel++;+ if (pressed[K_BACK] || pressed[K_LEFT] || pressed[K_RIGHT]) menu_open = -1;+ else if (pressed[K_OK] || pressed[K_EXE]) {+ int area = zone == Z_SHOP ? 0 : menu_open < R.nshop_v ? 1 : 2;+ int idx = zone == Z_SHOP || menu_open < R.nshop_v ? menu_open : menu_open - R.nshop_v;+ if (menu_sel == 1 && !cons_usable(it->id, 1)) deny();+ else if (!shop_buy(area, idx, menu_sel == 1)) deny();+ else {+ autosave();+ if (R.phase == PH_PACK) zone = Z_PACK, zi = 0;+ }+ menu_open = -1;+ }+ return;+ }+ if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT]) && zone == Z_JOKERS) {+ move_focused(pressed[K_LEFT] ? -1 : 1);+ return;+ }+ if (pressed[K_BACK]) {+ if (zone != Z_SHOPBTN) zone = Z_SHOPBTN, zi = 0;+ else overlay = OV_OPTIONS, ov_sel = 0;+ return;+ }+ if (row_nav()) return;+ switch (zone) {+ case Z_SHOPBTN:+ if (pressed[K_UP]) {+ if (zi > 0) zi--;+ else up_to_row(120);+ }+ if (pressed[K_DOWN]) {+ if (zi < 1) zi++;+ else if (bottom_n()) zone = Z_BOTTOM, zi = 0;+ }+ if (pressed[K_RIGHT]) {+ if ((zi == 0 || !bottom_n()) && R.nshop) zone = Z_SHOP, zi = 0;+ else if (bottom_n()) zone = Z_BOTTOM, zi = 0;+ }+ if (pressed[K_OK] || pressed[K_EXE]) {+ if (zi == 0) {+ shop_leave();+ zone = R.phase == PH_PACK ? Z_PACK : Z_BTN, zi = 0;+ autosave();+ } else if (!shop_reroll()) deny();+ else autosave();+ }+ break;+ case Z_SHOP:+ if (pressed[K_LEFT]) {+ if (zi > 0) zi--;+ else zone = Z_SHOPBTN, zi = 0;+ }+ if (pressed[K_RIGHT] && zi < R.nshop - 1) zi++;+ if (pressed[K_UP]) up_to_row(item_x(Z_SHOP, 0));+ if (pressed[K_DOWN]) {+ if (bottom_n()) zone = Z_BOTTOM, zi = R.nshop_v < bottom_n() ? R.nshop_v : 0;+ else zone = Z_SHOPBTN, zi = 1;+ }+ if ((pressed[K_OK] || pressed[K_EXE]) && zi < R.nshop) menu_open = zi, menu_sel = 0;+ if (!R.nshop) zone = Z_SHOPBTN, zi = 0;+ break;+ case Z_BOTTOM:+ if (pressed[K_LEFT]) {+ if (zi > 0) zi--;+ else zone = Z_SHOPBTN, zi = 1;+ }+ if (pressed[K_RIGHT] && zi < bottom_n() - 1) zi++;+ if (pressed[K_UP]) {+ if (R.nshop) zone = Z_SHOP, zi = 0;+ else zone = Z_SHOPBTN, zi = 1;+ }+ if ((pressed[K_OK] || pressed[K_EXE]) && zi < bottom_n()) menu_open = zi, menu_sel = 0;+ if (!bottom_n()) zone = Z_SHOPBTN, zi = 0;+ break;+ case Z_JOKERS: case Z_CONS:+ if (pressed[K_DOWN]) zone = R.nshop ? Z_SHOP : Z_SHOPBTN, zi = 0;+ if (pressed[K_OK]) menu_open = zi, menu_sel = 0;+ break;+ default: zone = Z_SHOPBTN, zi = 0;+ }+ clamp_focus();+}++/* ------------------------------------------------------------ packs */+static int pack_x(int i) {+ int n = R.npack, area = AREA_W, step = n > 1 ? (area - CW) / (n - 1) : 0;+ if (step > CW + 8) step = CW + 8;+ int total = step * (n - 1) + CW;+ return AREA_X + (area - total) / 2 + i * step;+}++static void draw_pack(int dt) {+ int with_hand = R.pack_kind == PK_ARCANA || R.pack_kind == PK_SPECTRAL;+ layout_cards(dt, with_hand, HAND_Y + 18);+ draw_sidebar();+ draw_jokers_row(zone == Z_JOKERS ? zi : -1, zone == Z_CONS ? zi : -1, zone == Z_JOKERS ? menu_open : -1,+ zone == Z_CONS ? menu_open : -1);+ static const char *const names[5] = {"Arcana Pack", "Celestial Pack", "Standard Pack", "Buffoon Pack",+ "Spectral Pack"};+ static const char *const sizes[3] = {"", "Jumbo ", "Mega "};+ int py = 70;+ for (int i = 0; i < R.npack; i++) {+ int f = zone == Z_PACK && zi == i;+ draw_item(&R.pack[i], pack_x(i), py - (f ? 5 : 0), 256, 0);+ }+ /* the pack's name and how many to choose, Skip on the right */+ int bw = 170, bx = AREA_X + (AREA_W - bw) / 2, by = with_hand ? 132 : 138, bh = 28;+ panel(bx, by, bw, bh, 5, HEXC(0x2F3A3C), 2);+ char t[32];+ char *o = str_cat(t, sizes[R.pack_size]);+ str_cat(o, names[R.pack_kind]);+ g_text(t, bx + 6, by + 4, text_fit(t, bw - 56, T_MED) | T_SHADOW, C_WHITE);+ o = str_cat(t, "Choose ");+ fmt_int(o, R.pack_picks);+ g_text(t, bx + 6, by + 17, F_LABEL, C_WHITE);+ button(bx + bw - 42, by + 6, 36, 16, C_RED, "Skip", F_LABEL, zone == Z_SKIP, 1);+ if (with_hand) draw_hand_cards(hand_focus());+ draw_menu();+ draw_popups();+ if (!ui_busy() && menu_open < 0) {+ if (zone == Z_PACK && zi < R.npack) {+ sitem_t *it = &R.pack[zi];+ int ix = pack_x(zi);+ int ok = it->kind != IT_CONS || cons_usable(it->id, 1);+ if (it->kind == IT_JOKER && R.njokers >= joker_slots() && it->ed != ED_NEG) ok = 0;+ button(ix - 4, py + CH - 3, 43, 15, it->kind == IT_CONS ? C_RED : C_GREEN, it->kind == IT_CONS ? "USE" : "SELECT",+ F_LABEL, 1, ok);+ if (it->kind == IT_JOKER) {+ joker_t j = {0};+ j.id = it->id;+ joker_init(&j);+ draw_tooltip_for(TK_JOKER, it->id, it->ed, &j, ix, py, CW);+ } else if (it->kind == IT_CONS)+ draw_tooltip_for(TK_CONS, it->id, it->ed, 0, ix, py, CW);+ else {+ vcard_t v = {0};+ v.rank = it->card.rank, v.suit = it->card.suit, v.enh = it->card.enh, v.ed = it->card.ed, v.seal = it->card.seal;+ draw_tooltip_for(TK_CARD, 0, 0, &v, ix, py, CW);+ }+ } else+ draw_focus_tooltip();+ }+}++static void pack_input(void) {+ int with_hand = R.pack_kind == PK_ARCANA || R.pack_kind == PK_SPECTRAL;+ if (menu_open >= 0) {+ menu_input();+ return;+ }+ if (pressed[K_BACK]) {+ zone = Z_SKIP;+ return;+ }+ if (row_nav()) return;+ switch (zone) {+ case Z_PACK:+ if (pressed[K_LEFT] && zi > 0) zi--;+ if (pressed[K_RIGHT] && zi < R.npack - 1) zi++;+ if (pressed[K_DOWN]) zone = Z_SKIP;+ if (pressed[K_UP]) up_to_row(item_x(Z_PACK, zi));+ if (pressed[K_OK] || pressed[K_EXE]) {+ if (!pack_choose(zi)) deny();+ else {+ autosave();+ if (R.phase != PH_PACK) zone = R.phase == PH_SHOP ? Z_SHOPBTN : Z_BTN, zi = 0;+ }+ }+ break;+ case Z_HAND:+ if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT])) {+ move_focused(pressed[K_LEFT] ? -1 : 1);+ break;+ }+ if (pressed[K_LEFT] && zi > 0) zi--;+ if (pressed[K_RIGHT] && zi < V.nhand - 1) zi++;+ if (pressed[K_UP]) zone = Z_SKIP;+ if (pressed[K_OK] && zi < R.nhand) {+ toggle_select(zi);+ V.cards[R.hand[zi]].raise = R.sel[zi];+ }+ break;+ case Z_SKIP:+ if (pressed[K_UP]) zone = Z_PACK, zi = 0;+ if (pressed[K_DOWN] && with_hand) zone = Z_HAND, zi = 0;+ if (pressed[K_OK] || pressed[K_EXE]) {+ pack_skip();+ autosave();+ zone = R.phase == PH_SHOP ? Z_SHOPBTN : R.phase == PH_PACK ? Z_PACK : Z_BTN, zi = 0;+ }+ break;+ case Z_JOKERS: case Z_CONS:+ if (pressed[K_DOWN]) zone = Z_PACK, zi = 0;+ if (pressed[K_OK]) menu_open = zi, menu_sel = 0;+ break;+ default: zone = Z_PACK, zi = 0;+ }+ clamp_focus();+}++/* ------------------------------------------------------------ game over / win */+static const char *const quips_lose[] = {"Better luck\nnext time!", "Don't give up!", "So close!", "The house\nalways wins..."};+static const char *const quips_win[] = {"You did it!", "Unbelievable!", "A true\ncard shark!"};++static void stat_row(int x, int w, int y, const char *label, const char *value, C col) {+ g_text(label, x + 14, y + 2, F_LABEL, C_WHITE);+ g_text(value, x + w - 14, y, text_fit(value, w / 2, T_MED) | T_RIGHT | T_SHADOW, col);+}++static void draw_end(int win) {+ char t[40];+ draw_sidebar();+ draw_jokers_row(-1, -1, -1, -1);+ int x = AREA_X, w = AREA_W;+ big_panel(x, 20, w, 216);+ g_text_box(win ? "YOU WIN!" : "GAME OVER", x, 26, w, 26, T_LARGE | T_X2 | T_SHADOW, win ? C_ATTN : C_RED);+ draw_joker_sprite(J_JOKER, 0, x + 12, 56, 256, 0);+ const char *q = win ? quips_win[R.round % 3] : quips_lose[R.round % 4];+ panel(x + 54, 60, 104, 28, 5, C_WHITE, 1);+ g_rect(x + 50, 70, 5, 4, C_WHITE);+ g_text_box(q, x + 54, 60, 104, 28, F_TEXT, C_TEXT_DARK);+ char *o = str_cat(t, "Ante " TC_ATTN);+ o = fmt_int(o, win ? WIN_ANTE : R.ante);+ o = str_cat(o, TC_WHITE " Round " TC_ATTN);+ fmt_int(o, R.round);+ g_text(t, x + 106, 93, F_LABEL | T_CENTER, C_WHITE);+ int yy = 106;+ g_rrect(x + 8, yy - 3, w - 16, 88, 4, HEXC(0x1F2B2D));+ fmt_commas(t, R.best_hand);+ stat_row(x, w, yy, "Best Hand", t, C_RED);+ int mp = 0;+ for (int h = 0; h < NHANDS; h++)+ if (R.hands[h].played > R.hands[mp].played) mp = h;+ stat_row(x, w, yy + 12, "Most Played Hand", R.hands[mp].played ? hand_names[mp] : "-", C_ATTN);+ fmt_int(t, R.cards_played);+ stat_row(x, w, yy + 24, "Cards Played", t, C_BLUE);+ fmt_int(t, R.cards_discarded);+ stat_row(x, w, yy + 36, "Cards Discarded", t, C_RED);+ fmt_int(t, R.cards_bought);+ stat_row(x, w, yy + 48, "Cards Purchased", t, C_MONEY);+ fmt_int(t, R.rerolls);+ stat_row(x, w, yy + 60, "Times Rerolled", t, C_GREEN);+ stat_row(x, w, yy + 72, "Seed", R.seed, C_WHITE);+ if (win) {+ int bw = (w - 16 - 8) / 3;+ button(x + 8, 196, bw, 30, C_ORANGE, "Endless\nMode", T_MED, ov_sel == 0, 1);+ button(x + 12 + bw, 196, bw, 30, C_BLUE, "New\nRun", T_MED, ov_sel == 1, 1);+ button(x + 16 + 2 * bw, 196, bw, 30, C_RED, "Main\nMenu", T_MED, ov_sel == 2, 1);+ } else {+ int bw = (w - 16 - 6) / 2;+ button(x + 8, 196, bw, 30, C_BLUE, "New Run", T_MED, ov_sel == 0, 1);+ button(x + 14 + bw, 196, bw, 30, C_RED, "Main Menu", T_MED, ov_sel == 1, 1);+ }+}++static void start_new_run(void) {+ run_new(0);+ S.runs++;+ ev_reset();+ memset(&V, 0, sizeof V);+ ui_sync_all(1);+ V.hand_name = -1;+ zone = Z_BTN, zi = 0;+ in_game = 1, has_save = 1;+ screen = SCR_GAME;+ overlay = OV_NONE;+ autosave();+}++static void continue_run(void) {+ ev_reset();+ memset(&V, 0, sizeof V);+ ui_sync_all(1);+ V.hand_name = -1;+ zone = R.phase == PH_ROUND ? Z_HAND : R.phase == PH_SHOP ? Z_SHOPBTN : R.phase == PH_PACK ? Z_PACK : Z_BTN;+ zi = 0;+ in_game = 1;+ screen = SCR_GAME;+ overlay = OV_NONE;+}++static void to_title(void) {+ if (in_game) save_write(R.phase != PH_GAMEOVER);+ has_save = in_game ? R.phase != PH_GAMEOVER : has_save;+ in_game = 0;+ screen = SCR_TITLE;+ overlay = OV_NONE;+ title_sel = 0, title_t = 0;+}++static void end_input(int win) {+ int n = win ? 3 : 2;+ if (pressed[K_LEFT] || pressed[K_UP]) ov_sel = (ov_sel + n - 1) % n;+ if (pressed[K_RIGHT] || pressed[K_DOWN]) ov_sel = (ov_sel + 1) % n;+ if (pressed[K_OK] || pressed[K_EXE]) {+ int a = win ? ov_sel : ov_sel + 1;+ if (a == 0) {+ continue_endless();+ ev_reset();+ ui_sync_all(0);+ zone = Z_BTN, zi = 0;+ autosave();+ } else if (a == 1)+ start_new_run();+ else {+ if (!win) {+ in_game = 0, has_save = 0;+ save_write(0);+ }+ to_title();+ }+ }+}++/* ------------------------------------------------------------ overlays input */+static void overlay_input(void) {+ switch (overlay) {+ case OV_OPTIONS:+ {+ int n = opt_count();+ if (ov_sel >= n) ov_sel = 0;+ if (pressed[K_UP]) ov_sel = (ov_sel + n - 1) % n;+ if (pressed[K_DOWN]) ov_sel = (ov_sel + 1) % n;+ }+ if (opt_id(ov_sel) == OPT_SPEED && (pressed[K_LEFT] || pressed[K_RIGHT])) {+ S.speed = (uint8_t)((S.speed + (pressed[K_RIGHT] ? 1 : 3)) % 4);+ save_write(in_game ? R.phase != PH_GAMEOVER : has_save);+ }+ if (pressed[K_BACK]) overlay = OV_NONE;+ if (pressed[K_OK] || pressed[K_EXE]) {+ switch (opt_id(ov_sel)) {+ case OPT_CONTINUE: case OPT_BACK: overlay = OV_NONE; break;+ case OPT_SPEED:+ S.speed = (uint8_t)((S.speed + 1) % 4);+ save_write(in_game ? R.phase != PH_GAMEOVER : has_save);+ break;+ case OPT_HELP: overlay = OV_HELP; break;+ case OPT_NEWRUN: overlay = OV_CONFIRM_NEW, ov_sel = 1; break;+ case OPT_MAINMENU: to_title(); break;+ }+ }+ break;+ case OV_CONFIRM_NEW:+ if (pressed[K_LEFT] || pressed[K_RIGHT]) ov_sel ^= 1;+ if (pressed[K_BACK]) overlay = OV_OPTIONS, ov_sel = opt_index(OPT_NEWRUN);+ if (pressed[K_OK] || pressed[K_EXE]) {+ if (ov_sel == 0) start_new_run();+ else overlay = OV_OPTIONS, ov_sel = opt_index(OPT_NEWRUN);+ }+ break;+ case OV_RUNINFO:+ if (pressed[K_LEFT]) ov_tab = (ov_tab + 2) % 3;+ if (pressed[K_RIGHT]) ov_tab = (ov_tab + 1) % 3;+ if (pressed[K_BACK] || pressed[K_OK] || pressed[K_TOOLBOX]) overlay = OV_NONE;+ break;+ case OV_DECK:+ if (pressed[K_LEFT] || pressed[K_RIGHT]) ov_tab ^= 1;+ if (pressed[K_BACK] || pressed[K_OK] || pressed[K_VAR]) overlay = OV_NONE;+ break;+ case OV_HELP:+ if (pressed[K_BACK] || pressed[K_OK] || pressed[K_EXE]) overlay = OV_OPTIONS, ov_sel = opt_index(OPT_HELP);+ break;+ case OV_CREDITS:+ if (pressed[K_BACK] || pressed[K_OK] || pressed[K_EXE]) overlay = OV_NONE;+ break;+ case OV_SETUP:+ if ((pressed[K_LEFT] || pressed[K_RIGHT]) && has_save) ov_tab ^= 1;+ if (pressed[K_UP] || pressed[K_DOWN]) ov_sel ^= 1;+ if (pressed[K_BACK]) overlay = OV_NONE;+ else if (pressed[K_OK] || pressed[K_EXE]) {+ if (ov_sel == 1) overlay = OV_NONE;+ else if (ov_tab == 1 && has_save) continue_run();+ else start_new_run();+ }+ break;+ }+}++static void draw_overlay(void) {+ switch (overlay) {+ case OV_OPTIONS: draw_options(); break;+ case OV_RUNINFO: draw_run_info(); break;+ case OV_DECK: draw_deck_view(); break;+ case OV_HELP: draw_help(); break;+ case OV_CREDITS: draw_credits(); break;+ case OV_SETUP: draw_setup(); break;+ case OV_CONFIRM_NEW: draw_confirm_new(); break;+ }+}++/* ------------------------------------------------------------ main */+static int quit(void) {+ save_write(in_game ? R.phase != PH_GAMEOVER : has_save);+ return np_app_end();+}++#ifdef TEST_PHASE+/* test builds only (make EXTRA=-DTEST_PHASE=...): start in a prepared state */+static void test_preset(void) {+ run_new("TESTSEED");+ R.money = 40;+ static const uint8_t j[5] = {J_JOKER, J_FIBONACCI, J_BLUEPRINT, J_BARON, J_HOLOGRAM};+ for (int i = 0; i < 5; i++) joker_add(j[i], i == 1 ? ED_POLY : i == 3 ? ED_FOIL : 0, 1);+ add_cons(C_CHARIOT, 0);+ add_cons(C_JUPITER, 0);+#ifdef TEST_LEVEL+ for (int h = 0; h < NHANDS; h++) R.hands[h].level = TEST_LEVEL;+#endif+ if (TEST_PHASE == 1) shop_enter();+ if (TEST_PHASE == 2) pack_open(PK_ARCANA, 2, 0);+ if (TEST_PHASE == 3) blind_select();+ ev_reset();+ has_save = 1;+ continue_run();+}+#endif++#ifndef __ELF__+#include <stdlib.h>+/* simulator only: BALATRO_TEST starts a prepared run (for screenshots) */+static void test_setup(void) {+ const char *t = getenv("BALATRO_TEST");+ if (!t) return;+ run_new(getenv("BALATRO_SEED") ? getenv("BALATRO_SEED") : "TESTSEED");+ R.money = atoi(t) > 0 ? atoi(t) : 50;+ const char *j = getenv("BALATRO_JOKERS");+ while (j && *j) {+ int id = atoi(j), ed = 0;+ while (*j && *j != ',') {+ if (*j == 'f') ed = ED_FOIL;+ if (*j == 'h') ed = ED_HOLO;+ if (*j == 'p') ed = ED_POLY;+ if (*j == 'n') ed = ED_NEG;+ j++;+ }+ joker_add(id, ed, 1);+ if (*j) j++;+ }+ const char *c = getenv("BALATRO_CONS");+ while (c && *c) {+ add_cons(atoi(c), 0);+ while (*c && *c != ',') c++;+ if (*c) c++;+ }+ const char *lv = getenv("BALATRO_LEVEL");+ if (lv)+ for (int h = 0; h < NHANDS; h++) R.hands[h].level = (int16_t)atoi(lv);+ const char *an = getenv("BALATRO_ANTE");+ if (an) R.ante = (int16_t)atoi(an);+ const char *bo = getenv("BALATRO_BLINDON");+ if (bo) {+ R.blind_on = (uint8_t)atoi(bo);+ for (int k = 0; k < R.blind_on; k++) R.blind_state[k] = BS_DEFEATED;+ R.blind_state[R.blind_on] = BS_SELECT;+ }+ const char *bs = getenv("BALATRO_BOSS");+ if (bs) R.boss = (uint8_t)atoi(bs);+ const char *ph = getenv("BALATRO_PHASE");+ if (ph && *ph == 's') shop_enter();+ if (ph && *ph == 'p') pack_open(atoi(ph + 1) / 3, atoi(ph + 1) % 3, 0);+ if (ph && *ph == 'r') blind_select();+ /* BALATRO_HAND=13S,13H,...: the first cards in hand (rank 2-14, suit SHCD) */+ const char *hd = getenv("BALATRO_HAND");+ for (int i = 0; hd && *hd && i < R.nhand; i++) {+ card_t *c = &R.cards[R.hand[i]];+ c->rank = (uint8_t)atoi(hd);+ while (*hd >= '0' && *hd <= '9') hd++;+ c->suit = (uint8_t)(*hd == 'H' ? S_HEARTS : *hd == 'C' ? S_CLUBS : *hd == 'D' ? S_DIAMONDS : S_SPADES);+ while (*hd && *hd != ',') hd++;+ if (*hd) hd++;+ }+ ev_reset();+ has_save = 1;+ continue_run();+}+#endif++int main(void) {+ np_app_begin();+ if (np_save_jump(leave)) return quit();+ g_init();+ art_flush();+ has_save = save_read();+ bg_mode(1);+ bg_reset();+#ifndef __ELF__+ test_setup();+#endif+#ifdef TEST_PHASE+ test_preset();+#endif+ uint64_t last = eadk_timing_millis();+ int last_phase = -1, last_blind = -1, last_screen = -1, last_won = -1;+ for (;;) {+ uint64_t now = eadk_timing_millis();+ int dt = (int)(now - last);+ if (dt > 100) dt = 100;+ if (dt < 0) dt = 0;+ last = now;+ g_time = (uint32_t)now;+ poll_input(dt);+ if (held(K_OK) || held(K_EXE)) ui_hold_ms += dt;+ else ui_hold_ms = 0;+ if (deny_t > 0) deny_t -= dt;+ if (zone != last_zone || zi != last_zi) focus_time = 0, last_zone = zone, last_zi = zi;+ else focus_time += dt;+ focus_shake = deny_t > 0 ? ((deny_t / 50) & 1 ? 2 : -2) : 0;+ if (screen == SCR_GAME && R.phase == PH_WIN && last_phase != PH_WIN && last_phase >= 0) {+ S.wins++;+ save_write(1);+ }+ if (screen != last_screen || (screen == SCR_GAME && (R.phase != last_phase || R.blind != last_blind || R.won != last_won))) {+ bg_for_phase();+ last_phase = R.phase, last_blind = R.blind, last_won = R.won;+ cash_t = 0;+ last_screen = screen;+ }+ g_begin();+ g_bg(1, 0);+ if (screen == SCR_TITLE) {+ title_t += dt;+ draw_title();+ if (overlay) {+ overlay_input();+ draw_overlay();+ } else {+ if (pressed[K_LEFT]) title_sel = (title_sel + 3) % 4;+ if (pressed[K_RIGHT]) title_sel = (title_sel + 1) % 4;+ if (pressed[K_BACK]) return quit();+ if (pressed[K_OK] || pressed[K_EXE]) {+ if (title_sel == 0) overlay = OV_SETUP, ov_tab = has_save ? 1 : 0, ov_sel = 0;+ else if (title_sel == 1) overlay = OV_OPTIONS, ov_sel = 0;+ else if (title_sel == 3) overlay = OV_CREDITS;+ else return quit();+ }+ }+ } else {+ ui_update(dt);+ int busy = ui_busy();+ /* taps made while cards are still moving are kept (a few, briefly) and+ played back one per frame as soon as the game is ready; never+ Play/Discard, never a key still held down */+ static const uint8_t bufk[6] = {K_LEFT, K_UP, K_DOWN, K_RIGHT, K_OK, K_SHIFT};+ if (busy && !overlay) {+ for (int i = 0; i < nbuf; i++) buf_age[i] += dt;+ for (int i = 0; i < 6; i++)+ if (pressed[bufk[i]]) {+ if (nbuf == 4) {+ for (int k = 0; k < 3; k++) buf_key[k] = buf_key[k + 1], buf_age[k] = buf_age[k + 1];+ nbuf--;+ }+ buf_key[nbuf] = bufk[i], buf_age[nbuf++] = 0;+ }+ } else if (nbuf) {+ int k = buf_key[0];+ if (!overlay && buf_age[0] < 700 && !held(k)) pressed[k] = 1;+ for (int i = 0; i < nbuf - 1; i++) buf_key[i] = buf_key[i + 1], buf_age[i] = buf_age[i + 1];+ nbuf--;+ if (overlay) nbuf = 0;+ }+ if (overlay) {+ overlay_input();+ } else if (!busy) {+ if (pressed[K_TOOLBOX]) overlay = OV_RUNINFO, ov_tab = 0;+ else if (pressed[K_VAR]) overlay = OV_DECK, ov_tab = 0;+ else switch (R.phase) {+ case PH_BLIND_SELECT: blind_select_input(); break;+ case PH_ROUND: round_input(); break;+ case PH_CASHOUT:+ if (pressed[K_OK] || pressed[K_EXE]) {+ cash_out();+ zone = Z_SHOPBTN, zi = 0;+ autosave();+ } else if (pressed[K_BACK])+ overlay = OV_OPTIONS, ov_sel = 0;+ break;+ case PH_SHOP: shop_input(); break;+ case PH_PACK: pack_input(); break;+ case PH_GAMEOVER: end_input(0); break;+ case PH_WIN: end_input(1); break;+ }+ }+ switch (R.phase) {+ case PH_BLIND_SELECT:+ if (busy && V.nhand) draw_round(dt, 0);+ else draw_blind_select(dt);+ break;+ case PH_ROUND: draw_round(dt, 1); break;+ case PH_CASHOUT:+ if (busy) draw_round(dt, 0);+ else draw_cashout(dt);+ break;+ case PH_SHOP: draw_shop(dt); break;+ case PH_PACK: draw_pack(dt); break;+ case PH_GAMEOVER:+ if (busy) draw_round(dt, 0);+ else draw_end(0);+ break;+ case PH_WIN:+ if (busy) draw_round(dt, 0);+ else draw_end(1);+ break;+ }+ if (S.best_ante < R.max_ante_reached) S.best_ante = R.max_ante_reached;+ if (R.best_hand > S.best_hand) S.best_hand = R.best_hand;+ draw_overlay();+ }+ bg_update(dt / 1000.f, overlay == OV_RUNINFO || overlay == OV_DECK ? 0 : screen == SCR_TITLE ? (overlay ? 2 : 8) : 6);+ g_end();+ uint64_t spent = eadk_timing_millis() - now;+ if (spent < 30) eadk_timing_msleep((uint32_t)(30 - spent));+ }+}diff --git a/games/balatro/src/save.c b/games/balatro/src/save.cnew file mode 100644index 00000000..9f12694b--- /dev/null+++ b/games/balatro/src/save.c@@ -0,0 +1,128 @@+/* The save: one record, balatro.sav. A header, the settings and lifetime+ * stats, then the run (only the used parts of its arrays), and a checksum.+ * Anything that does not check out is ignored. */+#include <stddef.h>+#include <string.h>+#include "../../common/epsilon_app.h"+#include "../../common/epsilon_files.h"+#include "game.h"+#include "save.h"++static const char NAME[] = "balatro.sav";+#define MAGIC 0xBA+#define VERSION 1+settings_t S = {1, 0, 0, 0, 0, 0};++#include "gfx.h"+static uint8_t *buf;+static int bufsize;+static int pos, len, reading, bad;++static void blk(void *p, int n) {+ if (bad || n < 0) return;+ if (pos + n > bufsize || (reading && pos + n > len)) {+ bad = 1;+ return;+ }+ if (reading) memcpy(p, buf + pos, (size_t)n);+ else memcpy(buf + pos, p, (size_t)n);+ pos += n;+}+#define F(x) blk(&R.x, (int)sizeof R.x)+#define A(x, n, max) \+ do { \+ if ((n) > (max)) bad = 1; \+ blk(R.x, (int)sizeof R.x[0] * (n)); \+ } while (0)++static void sync_run(void) {+ blk(&R, (int)offsetof(run_t, cards));+ F(ncards_alloc);+ A(cards, R.ncards_alloc, MAXCARDS);+ F(ndeck);+ A(deck, R.ndeck, MAXCARDS);+ F(nhand);+ A(hand, R.nhand, MAXHAND);+ A(sel, R.nhand, MAXHAND);+ F(nplay);+ A(play, R.nplay, 8);+ F(ndiscard);+ A(discard, R.ndiscard, MAXCARDS);+ F(njokers);+ A(jokers, R.njokers, MAXJ);+ F(ncons);+ A(cons, R.ncons, MAXCONS);+ F(ntags);+ A(tags, R.ntags, MAXTAGS);+ A(tag_orbital, R.ntags, MAXTAGS);+ F(nshop);+ A(shop, R.nshop, MAXSHOP);+ F(nshop_v);+ A(shop_v, R.nshop_v, 3);+ F(nshop_p);+ A(shop_p, R.nshop_p, 2);+ F(pack_kind), F(pack_size), F(pack_picks), F(pack_from_tag);+ F(npack);+ A(pack, R.npack, MAXPACK);+ blk(&R.cash_blind, (int)(offsetof(run_t, end_marker) - offsetof(run_t, cash_blind)));+}++static uint32_t sum(const uint8_t *p, int n) {+ uint32_t h = 2166136261u;+ for (int i = 0; i < n; i++) h = (h ^ p[i]) * 16777619u;+ return h;+}++void save_write(int with_run) {+ buf = g_scratch(&bufsize);+ pos = 0, reading = 0, bad = 0;+ uint8_t head[3] = {MAGIC, VERSION, (uint8_t)(with_run ? 1 : 0)};+ blk(head, 3);+ blk(&S, (int)sizeof S);+ if (with_run) sync_run();+ if (bad) return;+ uint32_t h = sum(buf, pos);+ blk(&h, 4);+ if (bad) return;+ ef_write(NAME, buf, (uint32_t)pos);+}++/* returns 1 if a run was restored into R */+int save_read(void) {+ uint32_t n = 0;+ const uint8_t *p = ef_read(NAME, &n);+ buf = g_scratch(&bufsize);+ if (!p || n < 3 + sizeof S + 4 || n > (uint32_t)bufsize) return 0;+ memcpy(buf, p, n);+ len = (int)n;+ uint32_t h;+ memcpy(&h, buf + n - 4, 4);+ if (buf[0] != MAGIC || buf[1] != VERSION || sum(buf, (int)n - 4) != h) return 0;+ pos = 3, reading = 1, bad = 0;+ settings_t s2;+ blk(&s2, (int)sizeof s2);+ if (bad) return 0;+ if (s2.speed > 3) s2.speed = 1;+ S = s2;+ if (!buf[2]) return 0;+ memset(&R, 0, sizeof R);+ sync_run();+ if (bad || pos != len - 4 || R.phase > PH_WIN || R.njokers > MAXJ || R.ncons > MAXCONS) {+ memset(&R, 0, sizeof R);+ return 0;+ }+ /* indices must point at used cards */+ for (int i = 0; i < R.ndeck; i++)+ if (R.deck[i] >= R.ncards_alloc) bad = 1;+ for (int i = 0; i < R.nhand; i++)+ if (R.hand[i] >= R.ncards_alloc) bad = 1;+ for (int i = 0; i < R.nplay; i++)+ if (R.play[i] >= R.ncards_alloc) bad = 1;+ for (int i = 0; i < R.ndiscard; i++)+ if (R.discard[i] >= R.ncards_alloc) bad = 1;+ if (bad || R.ncards_alloc > MAXCARDS) {+ memset(&R, 0, sizeof R);+ return 0;+ }+ return 1;+}diff --git a/games/balatro/src/save.h b/games/balatro/src/save.hnew file mode 100644index 00000000..8bc727f7--- /dev/null+++ b/games/balatro/src/save.h@@ -0,0 +1,14 @@+#ifndef SAVE_H+#define SAVE_H+#include <stdint.h>+typedef struct {+ uint8_t speed; /* 0: x0.5, 1: x1, 2: x2, 3: x4 */+ uint8_t pad;+ int16_t best_ante;+ int32_t wins, runs;+ double best_hand;+} settings_t;+extern settings_t S;+void save_write(int with_run);+int save_read(void);+#endifdiff --git a/games/balatro/src/score.c b/games/balatro/src/score.cnew file mode 100644index 00000000..078878d2--- /dev/null+++ b/games/balatro/src/score.c@@ -0,0 +1,1012 @@+/* Poker hands and the round: playing, scoring, discarding, drawing and the+ * end of the round, following state_events.lua (evaluate_play, end_round,+ * evaluate_round) and misc_functions.lua (evaluate_poker_hand). */+#include "ev.h"+#include "game.h"+#include "jokers.h"+#include "util.h"++/* ------------------------------------------------------------ poker hands */+static int nominal_order(int ci) {+ /* get_nominal(): rank chips, then suit, then face; stones last */+ const card_t *c = &R.cards[ci];+ static const uint8_t suitn[4] = {4, 3, 2, 1}; /* S H C D */+ int v = card_chip_nominal(c->rank) * 1000 + suitn[c->suit] * 10 + (c->rank > 10 ? c->rank - 10 : 0);+ if (c->enh == E_STONE) v = card_chip_nominal(c->rank) * 1000 - suitn[c->suit] * 10000;+ return v;+}++/* groups of exactly `num` cards of the same rank, highest rank first */+static int x_same(const uint8_t *cards, int n, int num, uint8_t out[][5], int *outn) {+ int cnt = 0;+ for (int r = 14; r >= 2; r--) {+ int k = 0, idx[8];+ for (int i = 0; i < n; i++)+ if (card_get_id(cards[i]) == r) idx[k++] = i;+ if (k == num) {+ for (int i = 0; i < k; i++) out[cnt][i] = (uint8_t)idx[i];+ outn[cnt++] = k;+ }+ }+ return cnt;+}++void evaluate_hand(const uint8_t *cards, int n, handinfo_t *hi) {+ int ff = has_joker(J_FOUR_FINGERS) ? 1 : 0, need = 5 - ff;+ uint8_t g5[4][5], g4[4][5], g3[4][5], g2[4][5];+ int n5[4], n4[4], n3[4], n2[4];+ int c5 = x_same(cards, n, 5, g5, n5), c4 = x_same(cards, n, 4, g4, n4);+ int c3 = x_same(cards, n, 3, g3, n3), c2 = x_same(cards, n, 2, g2, n2);+ /* flush */+ uint8_t fl[8];+ int nfl = 0;+ if (n <= 5 && n >= need) {+ static const uint8_t order[4] = {S_SPADES, S_HEARTS, S_CLUBS, S_DIAMONDS};+ for (int s = 0; s < 4 && !nfl; s++) {+ int k = 0;+ uint8_t t[8];+ for (int i = 0; i < n; i++)+ if (card_is_suit(cards[i], order[s], 0, 1)) t[k++] = (uint8_t)i;+ if (k >= need) {+ for (int i = 0; i < k; i++) fl[i] = t[i];+ nfl = k;+ }+ }+ }+ /* straight */+ uint8_t st[16];+ int nst = 0;+ if (n <= 5 && n >= need) {+ int can_skip = has_joker(J_SHORTCUT) != 0, len = 0, straight = 0, skipped = 0, k = 0;+ uint8_t t[16];+ for (int j = 1; j <= 14; j++) {+ int r = j == 1 ? 14 : j, any = 0;+ for (int i = 0; i < n; i++)+ if (card_get_id(cards[i]) == r) any = 1;+ if (any) {+ len++;+ skipped = 0;+ for (int i = 0; i < n; i++)+ if (card_get_id(cards[i]) == r && k < 16) t[k++] = (uint8_t)i;+ } else if (can_skip && !skipped && j != 14) {+ skipped = 1;+ } else {+ len = 0;+ skipped = 0;+ if (!straight) k = 0;+ if (straight) break;+ }+ if (len >= need) straight = 1;+ }+ if (straight)+ for (int i = 0; i < k; i++) st[nst++] = t[i];+ }+ uint16_t has = 0;+ int best = -1;+ uint8_t sc[16];+ int nsc = 0;+#define SET(h, arr, cnt) \+ do { \+ has |= 1 << (h); \+ if (best < 0) { \+ best = (h); \+ for (int q = 0; q < (cnt); q++) sc[nsc++] = (arr)[q]; \+ } \+ } while (0)+ if (c5 && nfl) SET(H_FLUSH_FIVE, g5[0], n5[0]);+ if (c3 && c2 && nfl) {+ uint8_t t[5];+ int k = 0;+ for (int i = 0; i < n3[0]; i++) t[k++] = g3[0][i];+ for (int i = 0; i < n2[0]; i++) t[k++] = g2[0][i];+ SET(H_FLUSH_HOUSE, t, k);+ }+ if (c5) SET(H_FIVE_KIND, g5[0], n5[0]);+ if (nfl && nst) {+ uint8_t t[16];+ int k = 0;+ for (int i = 0; i < nfl; i++) t[k++] = fl[i];+ for (int i = 0; i < nst; i++) {+ int in = 0;+ for (int q = 0; q < nfl; q++) in |= fl[q] == st[i];+ if (!in && k < 16) t[k++] = st[i];+ }+ SET(H_STRAIGHT_FLUSH, t, k);+ }+ if (c4) SET(H_FOUR_KIND, g4[0], n4[0]);+ if (c3 && c2) {+ uint8_t t[5];+ int k = 0;+ for (int i = 0; i < n3[0]; i++) t[k++] = g3[0][i];+ for (int i = 0; i < n2[0]; i++) t[k++] = g2[0][i];+ SET(H_FULL_HOUSE, t, k);+ }+ if (nfl) SET(H_FLUSH, fl, nfl);+ if (nst) SET(H_STRAIGHT, st, nst);+ if (c3) SET(H_THREE_KIND, g3[0], n3[0]);+ if (c2 == 2 || (c3 == 1 && c2 == 1)) {+ uint8_t t[5];+ int k = 0;+ for (int i = 0; i < n2[0]; i++) t[k++] = g2[0][i];+ if (c2 == 2)+ for (int i = 0; i < n2[1]; i++) t[k++] = g2[1][i];+ else+ for (int i = 0; i < n3[0]; i++) t[k++] = g3[0][i];+ SET(H_TWO_PAIR, t, k);+ }+ if (c2) SET(H_PAIR, g2[0], n2[0]);+ if (n > 0) {+ int hi_i = 0;+ for (int i = 1; i < n; i++)+ if (nominal_order(cards[i]) > nominal_order(cards[hi_i])) hi_i = i;+ uint8_t t[1] = {(uint8_t)hi_i};+ SET(H_HIGH_CARD, t, 1);+ }+#undef SET+ /* larger groups contain the smaller ones */+ if (has >> H_FIVE_KIND & 1) has |= 1 << H_FOUR_KIND;+ if (has >> H_FOUR_KIND & 1) has |= 1 << H_THREE_KIND;+ if (has >> H_THREE_KIND & 1) has |= 1 << H_PAIR;+ hi->hand = best < 0 ? H_HIGH_CARD : best;+ hi->contains = has;+ /* scoring cards in play order, without duplicates */+ hi->nscoring = 0;+ for (int i = 0; i < n; i++) {+ int in = 0;+ for (int q = 0; q < nsc; q++) in |= sc[q] == i;+ if (in) hi->scoring[hi->nscoring++] = (uint8_t)i;+ }+}++int preview_hand(void) {+ uint8_t cards[8];+ int n = 0;+ for (int i = 0; i < R.nhand && n < 5; i++)+ if (R.sel[i]) cards[n++] = R.hand[i];+ if (!n) return -1;+ handinfo_t hi;+ evaluate_hand(cards, n, &hi);+ return hi.hand;+}++/* ------------------------------------------------------------ helpers */+static double chips, mult;++static void hud(void) { ev_hud(chips, mult); }++static void text_num(char *o, const char *pre, double v, const char *suf) {+ o = str_cat(o, pre);+ o = fmt_short(o, v);+ str_cat(o, suf);+}++static const char *j_msg(int ji, eff_t *e) {+ /* the default message of an effect without its own text */+ static char t[20];+ if (e->msg && e->msg[0]) return e->msg;+ joker_t *j = &R.jokers[ji];+ double x;+ joker_x_display(j, &x);+ if (j->id == J_FORTUNE_TELLER) {+ text_num(t, "+", R.tarots_used, " Mult");+ return t;+ }+ text_num(t, "X", j->id == J_CAINO ? j->x : x, " Mult");+ return t;+}++/* shows an effect message (on a joker, or on a card) */+static void show_msg(int target, int idx, eff_t *e) {+ if (!(e->has & EF_MSG)) return;+ const char *m = (target == TG_JOKER) ? j_msg(idx, e) : e->msg;+ if (!m || !m[0]) return;+ ev_popup(target, idx, m, e->col);+}++static void money(int d) {+ R.money += d;+ ev_money();+}++void apply_disable_request(void);++static int run_simple(int kind, cx_t *base) {+ int any = 0;+ for (int i = 0; i < R.njokers; i++) {+ cx_t cx = *base;+ cx.kind = kind;+ cx.bp = -1;+ eff_t e = {0};+ if (jcalc(i, &cx, &e)) {+ any = 1;+ int who = e.card;+ if (e.has & EF_MSG) show_msg(TG_JOKER, e.focus ? e.focus : who, &e);+ if (e.has & EF_DOLLARS) {+ char t[12];+ t[0] = '$';+ fmt_int(t + 1, e.dollars);+ money(e.dollars);+ ev_popup(TG_JOKER, who, t, PC_MONEY);+ }+ if (e.has & EF_LEVELUP) level_up(e.reps, 1, who);+ }+ }+ return any;+}++/* removes the jokers marked for removal during an effect loop */+static void remove_marked(uint8_t *mark) {+ for (int i = R.njokers - 1; i >= 0; i--)+ if (mark[i]) joker_remove(i, 0);+}++/* ------------------------------------------------------------ draw */+static int stay_flipped(int ci) {+ if (R.blind_disabled) return 0;+ switch (R.blind) {+ case BL_WHEEL: return prob(7);+ case BL_HOUSE: return R.hands_played_round == 0 && R.discards_used_round == 0;+ case BL_MARK: return card_is_face(ci, 1);+ case BL_FISH: return R.blind_prepped;+ }+ return 0;+}++static void draw_to_hand(int n) {+ for (int i = 0; i < n && R.ndeck > 0 && R.nhand < MAXHAND; i++) {+ int ci = R.deck[--R.ndeck];+ R.cards[ci].flags &= (uint8_t)~CF_DOWN;+ if (stay_flipped(ci)) R.cards[ci].flags |= CF_DOWN;+ R.sel[R.nhand] = 0;+ R.hand[R.nhand++] = (uint8_t)ci;+ ev_card(EV_CARD_MOVE, ci, A_HAND, (R.cards[ci].flags & CF_DOWN) ? 1 : 0);+ }+ sort_hand(R.sort_suit);+}++void blind_debuff_all(void);++static void drawn_to_hand(void) {+ if (!R.blind_disabled) {+ if (R.blind == BL_FINAL_BELL) {+ int any = 0;+ for (int i = 0; i < R.nhand; i++) any |= (R.cards[R.hand[i]].flags & CF_FORCED) != 0;+ if (!any && R.nhand) {+ for (int i = 0; i < R.nhand; i++) R.sel[i] = 0;+ int p = rng_int(0, R.nhand - 1);+ R.cards[R.hand[p]].flags |= CF_FORCED;+ R.sel[p] = 1;+ ev_card(EV_CARD_SELECT, R.hand[p], 1, 0);+ }+ }+ if (R.blind == BL_FINAL_HEART && R.blind_prepped && R.njokers) {+ int pick[MAXJ], n = 0;+ for (int i = 0; i < R.njokers; i++) {+ if (!(R.jokers[i].flags & JF_DEBUFF) || R.njokers < 2) pick[n++] = i;+ R.jokers[i].flags &= (uint8_t)~JF_DEBUFF;+ }+ if (n) R.jokers[pick[rng_int(0, n - 1)]].flags |= JF_DEBUFF;+ for (int i = 0; i < R.njokers; i++) {+ ev_t *v = ev_push(EV_JOKER_SET);+ if (v) v->a = R.jokers[i].uid, v->b = R.jokers[i].ed, v->c = R.jokers[i].flags;+ }+ }+ }+ R.blind_prepped = 0;+}++void end_round(void);+/* G.STATE = DRAW_TO_HAND */+void draw_phase(void) {+ for (int i = 0; i < R.ntags; i++)+ if (R.tags[i] == TAG_JUGGLE) {+ R.temp_handsize += 3;+ ev_popup(TG_CENTER, 0, "+3 Hand Size", PC_ATTN);+ for (int k = i; k < R.ntags - 1; k++) R.tags[k] = R.tags[k + 1], R.tag_orbital[k] = R.tag_orbital[k + 1];+ R.ntags--;+ i--;+ }+ int space = hand_size() - R.nhand;+ if (R.blind == BL_SERPENT && !R.blind_disabled && (R.hands_played_round > 0 || R.discards_used_round > 0)) space = 3;+ if (space > R.ndeck) space = R.ndeck;+ if (space > 0) draw_to_hand(space);+ if (R.hands_played_round == 0 && R.discards_used_round == 0) {+ cx_t cx = {0};+ run_simple(CX_FIRST_HAND_DRAWN, &cx);+ }+ drawn_to_hand();+ ev_sync();+ /* no cards left at all: the round ends (lost unless the score is reached) */+ if (R.nhand < 1 && R.ndeck < 1 && R.phase == PH_ROUND) end_round();+}++/* ------------------------------------------------------------ playing */+static int card_has_effect_held(int ci) {+ /* eval_card for a held card: steel (h_x_mult) */+ return !(R.cards[ci].flags & CF_DEBUFF) && R.cards[ci].enh == E_STEEL;+}++static void score_played_card(int ci, handinfo_t *hi, cx_t *base) {+ card_t *c = &R.cards[ci];+ if (c->flags & CF_DEBUFF) {+ R.blind_triggered = 1;+ ev_popup(TG_PLAY, ci, "Debuffed", PC_MULT);+ return;+ }+ /* repetitions: red seal, then jokers */+ int nreps = 1;+ struct {+ int src_joker, src_card;+ const char *msg;+ } reps[24];+ reps[0].src_joker = -1;+ if (c->seal == SEAL_RED) {+ reps[nreps].src_joker = -1, reps[nreps].src_card = ci, reps[nreps].msg = "Again!";+ nreps++;+ }+ for (int j = 0; j < R.njokers; j++) {+ cx_t cx = *base;+ cx.kind = CX_REPETITION, cx.area = A_PLAY, cx.other = ci, cx.bp = -1;+ eff_t e = {0};+ if (jcalc(j, &cx, &e) && (e.has & EF_REPS))+ for (int h = 0; h < e.reps && nreps < 24; h++) {+ reps[nreps].src_joker = e.card, reps[nreps].src_card = -1, reps[nreps].msg = e.msg;+ nreps++;+ }+ }+ for (int r = 0; r < nreps; r++) {+ if (r > 0) {+ if (reps[r].src_joker >= 0) ev_popup(TG_JOKER, reps[r].src_joker, "Again!", PC_ATTN);+ else ev_popup(TG_PLAY, reps[r].src_card, "Again!", PC_ATTN);+ }+ c->flags &= (uint8_t)~CF_LUCKY;+ /* the card's own effects: chips, mult, x_mult, dollars, edition */+ int chip_bonus = c->enh == E_STONE ? 50 + c->perma : card_chip_nominal(c->rank) + (c->enh == E_BONUS ? 30 : 0) + c->perma;+ char t[20];+ if (chip_bonus > 0) {+ chips += chip_bonus;+ text_num(t, "+", chip_bonus, "");+ ev_juice(TG_PLAY, ci);+ ev_popup(TG_PLAY, ci, t, PC_CHIPS);+ hud();+ }+ int m = 0;+ if (c->enh == E_MULT) m = 4;+ if (c->enh == E_LUCKY && prob(5)) {+ m = 20;+ c->flags |= CF_LUCKY;+ }+ if (m) {+ mult += m;+ text_num(t, "+", m, " Mult");+ ev_popup(TG_PLAY, ci, t, PC_MULT);+ hud();+ }+ int pd = 0;+ if (c->seal == SEAL_GOLD) pd += 3;+ if (c->enh == E_LUCKY && prob(15)) {+ pd += 20;+ c->flags |= CF_LUCKY;+ }+ if (pd) {+ money(pd);+ t[0] = '$';+ fmt_int(t + 1, pd);+ ev_popup(TG_PLAY, ci, t, PC_MONEY);+ }+ if (c->enh == E_GLASS) {+ mult *= 2;+ ev_popup(TG_PLAY, ci, "X2 Mult", PC_XMULT);+ hud();+ }+ if (c->ed) {+ if (c->ed == ED_FOIL) chips += 50, ev_popup(TG_PLAY, ci, "+50", PC_EDITION);+ if (c->ed == ED_HOLO) mult += 10, ev_popup(TG_PLAY, ci, "+10 Mult", PC_EDITION);+ if (c->ed == ED_POLY) mult *= 1.5, ev_popup(TG_PLAY, ci, "X1.5 Mult", PC_EDITION);+ hud();+ }+ /* jokers on this card */+ for (int j = 0; j < R.njokers; j++) {+ cx_t cx = *base;+ cx.kind = CX_INDIVIDUAL, cx.area = A_PLAY, cx.other = ci, cx.bp = -1;+ eff_t e = {0};+ if (!jcalc(j, &cx, &e)) continue;+ int who = e.card;+ if (e.has & EF_CHIPS) {+ chips += e.chips;+ ev_juice(TG_JOKER, who);+ text_num(t, "+", e.chips, "");+ ev_popup(TG_PLAY, ci, t, PC_CHIPS);+ hud();+ }+ if (e.has & EF_MULT) {+ mult += e.mult;+ ev_juice(TG_JOKER, who);+ text_num(t, "+", e.mult, " Mult");+ ev_popup(TG_PLAY, ci, t, PC_MULT);+ hud();+ }+ if (e.has & EF_DOLLARS) {+ money(e.dollars);+ ev_juice(TG_JOKER, who);+ t[0] = '$';+ fmt_int(t + 1, e.dollars);+ ev_popup(TG_PLAY, ci, t, PC_MONEY);+ }+ if (e.has & EF_MSG) {+ ev_juice(TG_JOKER, who);+ if (e.focus) ev_popup(TG_JOKER, e.focus, e.msg, e.col);+ else ev_popup(TG_PLAY, ci, e.msg, e.col);+ }+ if (e.has & EF_XMULT) {+ mult *= e.x;+ ev_juice(TG_JOKER, who);+ text_num(t, "X", e.x, " Mult");+ ev_popup(TG_PLAY, ci, t, PC_XMULT);+ hud();+ }+ }+ }+}++static void score_held_card(int ci, cx_t *base) {+ card_t *c = &R.cards[ci];+ int nreps = 1, src[24];+ char t[20];+ for (int r = 0; r < nreps; r++) {+ if (r > 0) {+ if (src[r] >= 0) ev_popup(TG_JOKER, src[r], "Again!", PC_ATTN);+ else ev_popup(TG_HAND, ci, "Again!", PC_ATTN);+ }+ int own = card_has_effect_held(ci), any = own;+ eff_t effs[MAXJ];+ int ne = 0;+ for (int j = 0; j < R.njokers; j++) {+ cx_t cx = *base;+ cx.kind = CX_INDIVIDUAL, cx.area = A_HAND, cx.other = ci, cx.bp = -1;+ eff_t e = {0};+ if (jcalc(j, &cx, &e)) effs[ne++] = e, any = 1;+ }+ if (r == 0) {+ if (c->seal == SEAL_RED && !(c->flags & CF_DEBUFF) && any && nreps < 24) src[nreps++] = -1;+ for (int j = 0; j < R.njokers; j++) {+ cx_t cx = *base;+ cx.kind = CX_REPETITION, cx.area = A_HAND, cx.other = ci, cx.bp = -1, cx.card_effects = any;+ eff_t e = {0};+ if (jcalc(j, &cx, &e) && (e.has & EF_REPS))+ for (int h = 0; h < e.reps && nreps < 24; h++) src[nreps++] = e.card;+ }+ }+ if (own) {+ mult *= 1.5;+ ev_juice(TG_HAND, ci);+ ev_popup(TG_HAND, ci, "X1.5 Mult", PC_XMULT);+ hud();+ }+ for (int k = 0; k < ne; k++) {+ eff_t *e = &effs[k];+ ev_juice(TG_JOKER, e->card);+ if (e->has & EF_DOLLARS) {+ money(e->dollars);+ t[0] = '$';+ fmt_int(t + 1, e->dollars);+ ev_popup(TG_HAND, ci, t, PC_MONEY);+ }+ if (e->has & EF_HMULT) {+ mult += e->mult;+ text_num(t, "+", e->mult, " Mult");+ ev_popup(TG_HAND, ci, t, PC_MULT);+ hud();+ }+ if (e->has & EF_XMULT) {+ mult *= e->x;+ text_num(t, "X", e->x, " Mult");+ ev_popup(TG_HAND, ci, t, PC_XMULT);+ hud();+ }+ if ((e->has & EF_MSG) && !(e->has & (EF_DOLLARS | EF_HMULT | EF_XMULT))) ev_popup(TG_HAND, ci, e->msg, e->col);+ }+ }+}++/* The Hook: two random cards from the hand are discarded */+static void discard_cards(const uint8_t *cards, int n, int hook);++static int debuff_hand(handinfo_t *hi, int check) {+ if (R.blind_disabled) return 0;+ int h = hi->hand, trig = 0;+ switch (R.blind) {+ case BL_PSYCHIC: trig = R.nplay < 5; break;+ case BL_EYE:+ trig = (R.blind_hands >> h) & 1;+ if (!check) R.blind_hands |= (uint16_t)(1 << h);+ break;+ case BL_MOUTH:+ trig = R.mouth_hand >= 0 && R.mouth_hand != h;+ if (!check) R.mouth_hand = (int8_t)h;+ break;+ case BL_ARM:+ if (R.hands[h].level > 1) {+ R.blind_triggered = 1;+ if (!check) {+ ev_push(EV_BLIND_FLASH);+ level_up(h, -1, -1);+ }+ }+ return 0;+ case BL_OX:+ if (h == R.most_played) {+ R.blind_triggered = 1;+ if (!check) {+ ev_push(EV_BLIND_FLASH);+ R.money = 0;+ ev_money();+ }+ }+ return 0;+ default: return 0;+ }+ R.blind_triggered = trig;+ return trig;+}++int blind_debuffs_hand(void) {+ uint8_t cards[8];+ int n = 0;+ for (int i = 0; i < R.nhand && n < 5; i++)+ if (R.sel[i]) cards[n++] = R.hand[i];+ if (!n) return 0;+ handinfo_t hi;+ evaluate_hand(cards, n, &hi);+ int save_t = R.blind_triggered, np = R.nplay;+ R.nplay = (uint8_t)n;+ int r = (R.blind == BL_EYE || R.blind == BL_MOUTH || R.blind == BL_PSYCHIC) ? debuff_hand(&hi, 1) : 0;+ R.nplay = (uint8_t)np;+ R.blind_triggered = (uint8_t)save_t;+ return r;+}++void end_round(void);++int play_hand(void) {+ int n = nselected();+ if (n <= 0 || n > 5) return 0;+ ev_reset();+ R.blind_triggered = 0;+ /* move the selected cards to the play area, in hand order */+ R.nplay = 0;+ int w = 0;+ for (int i = 0; i < R.nhand; i++) {+ int ci = R.hand[i];+ if (R.sel[i]) {+ R.play[R.nplay++] = (uint8_t)ci;+ R.cards[ci].flags |= CF_PLAYED_ANTE;+ R.cards[ci].flags &= (uint8_t)~(CF_DOWN | CF_FORCED);+ ev_card(EV_CARD_MOVE, ci, A_PLAY, 0);+ } else {+ R.hand[w] = (uint8_t)ci;+ R.sel[w++] = 0;+ }+ }+ R.nhand = (uint8_t)w;+ for (int i = 0; i < MAXHAND; i++) R.sel[i] = 0;+ R.cards_played += R.nplay;+ R.hands_left--;+ ev_t *v = ev_push(EV_HANDS);+ if (v) v->a = (uint16_t)R.hands_left;+ ev_delay(3);+ /* the blind reacts to the play (Blind:press_play) */+ if (!R.blind_disabled) {+ if (R.blind == BL_HOOK && R.nhand) {+ uint8_t pool[MAXHAND], pick[2];+ int np = 0, k = 0;+ for (int i = 0; i < R.nhand; i++) pool[np++] = R.hand[i];+ for (int i = 0; i < 2 && np; i++) {+ int r = rng_int(0, np - 1);+ pick[k++] = pool[r];+ pool[r] = pool[--np];+ }+ ev_push(EV_BLIND_FLASH);+ discard_cards(pick, k, 1);+ R.blind_triggered = 1;+ }+ if (R.blind == BL_FINAL_HEART && R.njokers) R.blind_triggered = 1, R.blind_prepped = 1;+ if (R.blind == BL_FISH) R.blind_prepped = 1;+ if (R.blind == BL_TOOTH) {+ ev_push(EV_BLIND_FLASH);+ for (int i = 0; i < R.nplay; i++) {+ R.money -= 1;+ ev_money();+ ev_popup(TG_PLAY, R.play[i], "-$1", PC_MULT);+ }+ R.blind_triggered = 1;+ }+ }+ /* ---- evaluate_play */+ handinfo_t hi;+ evaluate_hand(R.play, R.nplay, &hi);+ int h = hi.hand;+ R.hands[h].played++;+ R.hands[h].played_round++;+ R.last_hand = (uint8_t)h;+ R.hands[h].visible = 1;+ /* every played card scores with Splash; stone cards always do */+ if (has_joker(J_SPLASH)) {+ hi.nscoring = 0;+ for (int i = 0; i < R.nplay; i++) hi.scoring[hi.nscoring++] = (uint8_t)i;+ } else {+ for (int i = 0; i < R.nplay; i++)+ if (R.cards[R.play[i]].enh == E_STONE) {+ int in = 0;+ for (int q = 0; q < hi.nscoring; q++) in |= hi.scoring[q] == i;+ if (!in) hi.scoring[hi.nscoring++] = (uint8_t)i;+ }+ /* play order */+ for (int a = 0; a < hi.nscoring; a++)+ for (int b = a + 1; b < hi.nscoring; b++)+ if (hi.scoring[b] < hi.scoring[a]) {+ uint8_t t = hi.scoring[a];+ hi.scoring[a] = hi.scoring[b], hi.scoring[b] = t;+ }+ }+ for (int i = 0; i < hi.nscoring; i++) {+ ev_t *s = ev_push(EV_CARD_SELECT); /* raise the scoring cards */+ if (s) s->a = R.play[hi.scoring[i]], s->b = 2;+ }+ v = ev_push(EV_HANDNAME);+ if (v) v->a = (uint16_t)h, v->d = R.hands[h].level;+ chips = hand_chips(h), mult = hand_mult(h);+ hud();+ ev_delay(3);+ uint8_t full[8];+ for (int i = 0; i < R.nplay; i++) full[i] = R.play[i];+ cx_t base = {0};+ base.hi = &hi, base.full = full, base.nfull = R.nplay, base.bp = -1, base.other_joker = -1;+ if (!debuff_hand(&hi, 0)) {+ /* before */+ run_simple(CX_BEFORE, &base);+ chips = hand_chips(h), mult = hand_mult(h);+ if (!R.blind_disabled && R.blind == BL_FLINT) {+ R.blind_triggered = 1;+ double m2 = (double)(long long)(mult * 0.5 + 0.5), c2 = (double)(long long)(chips * 0.5 + 0.5);+ mult = m2 < 1 ? 1 : m2;+ chips = c2 < 0 ? 0 : c2;+ ev_push(EV_BLIND_FLASH);+ }+ hud();+ /* scoring cards, left to right */+ for (int i = 0; i < hi.nscoring; i++) score_played_card(R.play[hi.scoring[i]], &hi, &base);+ ev_delay(3);+ /* cards held in hand */+ for (int i = 0; i < R.nhand; i++) score_held_card(R.hand[i], &base);+ /* jokers (and consumables), left to right */+ char t[20];+ int nj = R.njokers;+ for (int i = 0; i < nj + R.ncons; i++) {+ int is_j = i < nj;+ int ed = is_j ? R.jokers[i].ed : R.cons[i - nj].ed;+ int deb = is_j && (R.jokers[i].flags & JF_DEBUFF);+ int tg = is_j ? TG_JOKER : TG_CONS, idx = is_j ? i : i - nj;+ if (!deb && ed == ED_FOIL) {+ chips += 50;+ ev_juice(tg, idx);+ ev_popup(tg, idx, "+50", PC_EDITION);+ hud();+ }+ if (!deb && ed == ED_HOLO) {+ mult += 10;+ ev_juice(tg, idx);+ ev_popup(tg, idx, "+10 Mult", PC_EDITION);+ hud();+ }+ eff_t e = {0};+ int got = 0;+ if (is_j) {+ cx_t cx = base;+ cx.kind = CX_MAIN;+ got = jcalc(i, &cx, &e);+ } else if (R.cons[idx].id >= C_MERCURY && R.cons[idx].id <= C_ERIS && has_voucher(V_OBSERVATORY)) {+ static const uint8_t ph[12] = {H_PAIR, H_THREE_KIND, H_FULL_HOUSE, H_FOUR_KIND, H_FLUSH, H_STRAIGHT,+ H_TWO_PAIR, H_STRAIGHT_FLUSH, H_HIGH_CARD, H_FIVE_KIND, H_FLUSH_HOUSE,+ H_FLUSH_FIVE};+ if (ph[R.cons[idx].id - C_MERCURY] == h) {+ e.has = EF_XMULT, e.x = 1.5, e.card = idx;+ got = 1;+ }+ }+ if (got) {+ int who = is_j ? e.card : idx;+ if (e.has & EF_MULT) {+ mult += e.mult;+ text_num(t, "+", e.mult, " Mult");+ ev_juice(tg, who);+ ev_popup(tg, who, t, PC_MULT);+ }+ if (e.has & EF_CHIPS) {+ chips += e.chips;+ text_num(t, "+", e.chips, "");+ ev_juice(tg, who);+ ev_popup(tg, who, t, PC_CHIPS);+ }+ if (e.has & EF_XMULT) {+ mult *= e.x;+ text_num(t, "X", e.x, " Mult");+ ev_juice(tg, who);+ ev_popup(tg, who, t, PC_XMULT);+ }+ if (e.has & EF_DOLLARS) {+ money(e.dollars);+ t[0] = '$';+ fmt_int(t + 1, e.dollars);+ ev_juice(tg, who);+ ev_popup(tg, who, t, PC_MONEY);+ }+ if ((e.has & EF_MSG) && !(e.has & (EF_MULT | EF_CHIPS | EF_XMULT | EF_DOLLARS))) {+ ev_juice(tg, who);+ show_msg(tg, who, &e);+ }+ hud();+ }+ /* jokers reacting to this joker (Baseball Card) */+ for (int k = 0; k < R.njokers; k++) {+ if (!is_j) break;+ cx_t cx = base;+ cx.kind = CX_OTHER_JOKER, cx.other_joker = i;+ eff_t e2 = {0};+ if (jcalc(k, &cx, &e2) && (e2.has & EF_XMULT)) {+ mult *= e2.x;+ text_num(t, "X", e2.x, " Mult");+ ev_juice(TG_JOKER, i);+ ev_popup(TG_JOKER, e2.card, t, PC_XMULT);+ hud();+ }+ }+ if (!deb && ed == ED_POLY) {+ mult *= 1.5;+ ev_juice(tg, idx);+ ev_popup(tg, idx, "X1.5 Mult", PC_EDITION);+ hud();+ }+ }+ /* destroyed cards: Sixth Sense, glass */+ int nfaces = 0, nglass = 0, ndest = 0;+ for (int i = 0; i < hi.nscoring; i++) {+ int ci = R.play[hi.scoring[i]], d = 0;+ for (int j = 0; j < R.njokers && !d; j++) {+ cx_t cx = base;+ cx.kind = CX_DESTROYING_CARD, cx.other = ci;+ eff_t e = {0};+ if (jcalc(j, &cx, &e) && (e.has & EF_REMOVE)) {+ d = 1;+ if (e.has & EF_MSG) ev_popup(TG_JOKER, e.card, e.msg, e.col);+ }+ }+ if (R.cards[ci].enh == E_GLASS && !(R.cards[ci].flags & CF_DEBUFF) && prob(4)) d = 2;+ if (d) {+ R.cards[ci].flags |= d == 2 ? CF_SHATTER : CF_DESTROY;+ ndest++;+ if (card_is_face(ci, 0)) nfaces++;+ if (d == 2) nglass++;+ }+ }+ if (ndest) {+ cx_t cx = base;+ cx.nfaces_removed = nfaces, cx.nglass_removed = nglass;+ run_simple(CX_REMOVE_CARDS, &cx);+ }+ } else {+ chips = 0, mult = 0;+ ev_push(EV_BLIND_FLASH);+ ev_message("Not Allowed!");+ hud();+ run_simple(CX_DEBUFFED_HAND, &base);+ }+ double score = dfloor(chips * mult);+ if (score > R.best_hand) R.best_hand = score;+ if (score >= R.blind_chips - R.chips && score > 0) ev_push(EV_FLAME);+ R.chips += score;+ ev_delay(8);+ v = ev_push(EV_ROUNDSCORE);+ if (v) ev_setd(v, R.chips);+ ev_delay(3);+ /* after */+ {+ uint8_t mark[MAXJ] = {0};+ for (int i = 0; i < R.njokers; i++) {+ cx_t cx = base;+ cx.kind = CX_AFTER;+ eff_t e = {0};+ if (jcalc(i, &cx, &e)) {+ show_msg(TG_JOKER, e.card, &e);+ if (e.has & EF_REMOVE) mark[i] = 1;+ }+ }+ remove_marked(mark);+ }+ /* played cards go to the discard pile; destroyed ones are gone */+ uint8_t played[8];+ int np = R.nplay;+ for (int i = 0; i < np; i++) played[i] = R.play[i];+ for (int i = 0; i < np; i++) {+ int ci = played[i];+ if (R.cards[ci].flags & (CF_SHATTER | CF_DESTROY)) {+ ev_card(EV_CARD_DESTROY, ci, (R.cards[ci].flags & CF_SHATTER) ? 1 : 0, 0);+ destroy_card(ci);+ } else {+ R.discard[R.ndiscard++] = (uint8_t)ci;+ ev_card(EV_CARD_MOVE, ci, A_DISCARD, 0);+ }+ }+ R.nplay = 0;+ R.hands_played++;+ R.hands_played_round++;+ v = ev_push(EV_HANDNAME);+ if (v) v->a = 0xFFFF;+ if (R.chips >= R.blind_chips || R.hands_left < 1) end_round();+ else draw_phase();+ return 1;+}++/* ------------------------------------------------------------ discarding */+static void discard_cards(const uint8_t *cards, int n, int hook) {+ cx_t base = {0};+ base.full = cards, base.nfull = n, base.bp = -1, base.hook = hook, base.other_joker = -1;+ run_simple(CX_PRE_DISCARD, &base);+ int nd = 0, nfaces = 0, nglass = 0;+ uint8_t mark[MAXJ] = {0};+ for (int i = 0; i < n; i++) {+ int ci = cards[i], removed = 0;+ /* purple seal */+ if (R.cards[ci].seal == SEAL_PURPLE && !(R.cards[ci].flags & CF_DEBUFF) && R.ncons < cons_slots()) {+ add_cons(create_cons_id(0), 0);+ ev_popup(TG_HAND, ci, "+1 Tarot", PC_TAROT);+ }+ for (int j = 0; j < R.njokers; j++) {+ cx_t cx = base;+ cx.kind = CX_DISCARD, cx.other = ci;+ eff_t e = {0};+ if (!jcalc(j, &cx, &e)) continue;+ if (e.has & EF_REMOVE) {+ if (R.jokers[j].id == J_RAMEN) mark[j] = 1;+ else removed = 1;+ }+ if (e.has & EF_DOLLARS) {+ char t[12];+ t[0] = '$';+ fmt_int(t + 1, e.dollars);+ money(e.dollars);+ ev_popup(TG_JOKER, e.card, t, PC_MONEY);+ } else+ show_msg(TG_JOKER, e.card, &e);+ }+ /* take it out of the hand */+ for (int k = 0; k < R.nhand; k++)+ if (R.hand[k] == ci) {+ for (int q = k; q < R.nhand - 1; q++) R.hand[q] = R.hand[q + 1], R.sel[q] = R.sel[q + 1];+ R.nhand--;+ break;+ }+ R.cards[ci].flags &= (uint8_t)~(CF_FORCED | CF_DOWN);+ if (removed) {+ if (card_is_face(ci, 0)) nfaces++;+ if (R.cards[ci].enh == E_GLASS) nglass++, R.cards[ci].flags |= CF_SHATTER;+ ev_card(EV_CARD_DESTROY, ci, R.cards[ci].enh == E_GLASS, 0);+ destroy_card(ci);+ nd++;+ } else {+ R.discard[R.ndiscard++] = (uint8_t)ci;+ ev_card(EV_CARD_MOVE, ci, A_DISCARD, 0);+ }+ }+ remove_marked(mark);+ if (nd) {+ cx_t cx = base;+ cx.nfaces_removed = nfaces, cx.nglass_removed = nglass;+ run_simple(CX_REMOVE_CARDS, &cx);+ }+ R.cards_discarded += n;+}++int discard_hand(void) {+ int n = nselected();+ if (n <= 0 || R.discards_left <= 0) return 0;+ ev_reset();+ uint8_t cards[8];+ int k = 0;+ for (int i = 0; i < R.nhand && k < 5; i++)+ if (R.sel[i]) cards[k++] = R.hand[i];+ for (int i = 0; i < MAXHAND; i++) R.sel[i] = 0;+ discard_cards(cards, k, 0);+ R.discards_left--;+ R.discards_used_round++;+ ev_t *v = ev_push(EV_DISCARDS);+ if (v) v->a = (uint16_t)R.discards_left;+ draw_phase();+ return 1;+}++/* ------------------------------------------------------------ end of round */+void blind_defeat(void);+void game_over(void);++void end_round(void) {+ int game_over_ = R.chips < R.blind_chips;+ int saved = 0;+ /* jokers at the end of the round */+ {+ uint8_t mark[MAXJ] = {0};+ for (int i = 0; i < R.njokers; i++) {+ cx_t cx = {0};+ cx.kind = CX_END_ROUND, cx.bp = -1, cx.game_over = game_over_;+ eff_t e = {0};+ if (jcalc(i, &cx, &e)) {+ if (e.has & EF_SAVED) saved = 1;+ show_msg(TG_JOKER, e.card, &e);+ if (e.has & EF_REMOVE) mark[i] = 1;+ }+ }+ remove_marked(mark);+ }+ if (saved) {+ game_over_ = 0;+ ev_message("Saved by Mr. Bones");+ }+ if (game_over_) {+ ev_delay(5);+ game_over();+ return;+ }+ R.unused_discards += R.discards_left;+ if (R.blind >= BL_OX) {+ int best = H_HIGH_CARD, played = -1;+ for (int k = 0; k < NHANDS; k++)+ if (R.hands[k].played > played) played = R.hands[k].played, best = k;+ R.most_played = (uint8_t)best;+ }+ /* held cards: gold cards pay, blue seals make planets */+ for (int i = 0; i < R.nhand; i++) {+ int ci = R.hand[i];+ card_t *c = &R.cards[ci];+ int nreps = 1, src[16];+ for (int r = 0; r < nreps; r++) {+ if (r > 0) {+ if (src[r] >= 0) ev_popup(TG_JOKER, src[r], "Again!", PC_ATTN);+ else ev_popup(TG_HAND, ci, "Again!", PC_ATTN);+ }+ int any = 0;+ if (!(c->flags & CF_DEBUFF)) {+ if (c->enh == E_GOLD) {+ money(3);+ ev_popup(TG_HAND, ci, "$3", PC_MONEY);+ any = 1;+ }+ if (c->seal == SEAL_BLUE && R.ncons < cons_slots()) {+ static const uint8_t planet_of[12] = {C_ERIS, C_CERES, C_PLANET_X, C_NEPTUNE, C_MARS, C_EARTH, C_JUPITER,+ C_SATURN, C_VENUS, C_URANUS, C_MERCURY, C_PLUTO};+ add_cons(planet_of[R.last_hand], 0);+ ev_popup(TG_HAND, ci, "+1 Planet", PC_PLANET);+ any = 1;+ }+ }+ if (r == 0) {+ if (c->seal == SEAL_RED && !(c->flags & CF_DEBUFF) && any) src[nreps++] = -1;+ for (int j = 0; j < R.njokers; j++) {+ cx_t cx = {0};+ cx.kind = CX_REP_END_ROUND, cx.area = A_HAND, cx.other = ci, cx.bp = -1, cx.card_effects = any;+ eff_t e = {0};+ if (jcalc(j, &cx, &e) && (e.has & EF_REPS))+ for (int k = 0; k < e.reps && nreps < 16; k++) src[nreps++] = e.card;+ }+ }+ }+ }+ ev_delay(3);+ /* hand to the discard pile, then everything back in the deck */+ for (int i = 0; i < R.nhand; i++) {+ R.discard[R.ndiscard++] = R.hand[i];+ R.cards[R.hand[i]].flags &= (uint8_t)~(CF_DOWN | CF_FORCED);+ ev_card(EV_CARD_MOVE, R.hand[i], A_DISCARD, 0);+ }+ R.nhand = 0;+ blind_defeat();+}diff --git a/games/balatro/src/ui.c b/games/balatro/src/ui.cnew file mode 100644index 00000000..681351a1--- /dev/null+++ b/games/balatro/src/ui.c@@ -0,0 +1,766 @@+/* The interface core: the visual state, playing back the rules' events with+ * Balatro's timing and animations, the HUD sidebar and the card areas. */+#include "ui.h"+#include <eadk.h>+#include <string.h>+#include "assets.h"+#include "bg.h"+#include "ev.h"+#include "jokers.h"+#include "save.h"+#include "util.h"+#include "flame.h"++vis_t V;++/* ------------------------------------------------------------ popups */+typedef struct {+ char txt[20];+ uint8_t col, tgt;+ uint16_t id;+ int16_t t, life;+ int16_t x, y;+} popup_t;+static popup_t pops[10];+static int popup_over(int x0, int y0, int x1, int y1);+static char banner[40];+static int banner_t;+static int wait_ms;+static int levelup_t, levelup_len, levelup_hand, levelup_level, levelup_old;+static int shake;++int ui_hold_ms;++float speed_factor(void) {+ static const float sp[4] = {0.5f, 1, 2, 4};+ float f = sp[S.speed & 3];+ if (ui_hold_ms > 300) f *= 3; /* holding OK or EXE speeds things up */+ return f;+}++int ui_busy(void) { return ev_head < ev_tail || wait_ms > 0 || levelup_t > 0; }++/* ------------------------------------------------------------ sync */+static void card_from_logic(int ci) {+ vcard_t *v = &V.cards[ci];+ const card_t *c = &R.cards[ci];+ v->rank = c->rank, v->suit = c->suit, v->enh = c->enh, v->ed = c->ed, v->seal = c->seal, v->flags = c->flags;+ v->perma = c->perma;+ v->down = (c->flags & CF_DOWN) != 0;+}++static void item_from_joker(vitem_t *v, const joker_t *j) {+ v->uid = j->uid, v->id = j->id, v->ed = j->ed, v->flags = j->flags;+}++void ui_sync_all(int instant) {+ /* the areas */+ for (int i = 0; i < R.ncards_alloc; i++) {+ vcard_t *v = &V.cards[i];+ card_from_logic(i);+ int area = A_NONE;+ if (R.cards[i].flags & CF_USED) area = A_DECK;+ uint8_t old = v->area;+ v->area = (uint8_t)area;+ if (instant || old == A_NONE) v->x = DECK_X, v->y = DECK_Y;+ v->fade = 0, v->shatter = 0;+ }+ V.nhand = R.nhand;+ for (int i = 0; i < R.nhand; i++) {+ V.hand[i] = R.hand[i];+ V.cards[R.hand[i]].area = A_HAND;+ V.cards[R.hand[i]].raise = R.sel[i] ? 1 : 0;+ }+ V.nplay = R.nplay;+ for (int i = 0; i < R.nplay; i++) V.play[i] = R.play[i], V.cards[R.play[i]].area = A_PLAY;+ for (int i = 0; i < R.ndiscard; i++) V.cards[R.discard[i]].area = A_DISCARD;+ /* jokers and consumables, keeping positions of the ones still there */+ vitem_t old[MAXJ + 4];+ int nold = V.njokers;+ memcpy(old, V.jokers, sizeof old);+ V.njokers = R.njokers;+ for (int i = 0; i < R.njokers; i++) {+ vitem_t *v = &V.jokers[i];+ float x = JOKER_X + JOKER_W / 2, y = -CH;+ for (int k = 0; k < nold; k++)+ if (old[k].uid == R.jokers[i].uid) x = old[k].x, y = old[k].y;+ memset(v, 0, sizeof *v);+ item_from_joker(v, &R.jokers[i]);+ v->x = x, v->y = y;+ }+ vitem_t oldc[MAXCONS + 2];+ int noldc = V.ncons;+ memcpy(oldc, V.cons, sizeof oldc);+ V.ncons = R.ncons;+ for (int i = 0; i < R.ncons; i++) {+ vitem_t *v = &V.cons[i];+ float x = CONS_X + CONS_W / 2, y = -CH;+ for (int k = 0; k < noldc; k++)+ if (oldc[k].uid == R.cons[i].uid) x = oldc[k].x, y = oldc[k].y;+ memset(v, 0, sizeof *v);+ v->uid = R.cons[i].uid, v->id = R.cons[i].id, v->ed = R.cons[i].ed;+ v->x = x, v->y = y;+ }+ V.money_target = R.money;+ if (instant) V.money = R.money;+ V.hands = R.hands_left, V.discards = R.discards_left;+ V.score_target = R.chips;+ if (instant) V.score = R.chips;+ V.deck_count = R.ndeck;+}++/* ------------------------------------------------------------ targets */+static vitem_t *find_joker_v(int uid) {+ for (int i = 0; i < V.njokers; i++)+ if (V.jokers[i].uid == uid) return &V.jokers[i];+ return 0;+}+static vitem_t *find_cons_v(int uid) {+ for (int i = 0; i < V.ncons; i++)+ if (V.cons[i].uid == uid) return &V.cons[i];+ return 0;+}++static void target_pos(int tgt, int id, int *x, int *y) {+ *x = 160, *y = 100;+ /* jokers and consumables: on the card's lower edge (the game's 'bm');+ playing cards: over it */+ if (tgt == TG_JOKER) {+ vitem_t *v = find_joker_v(id);+ if (v) *x = (int)v->x + CW / 2, *y = (int)v->y + CH - 3;+ } else if (tgt == TG_CONS) {+ vitem_t *v = find_cons_v(id);+ if (v) *x = (int)v->x + CW / 2, *y = (int)v->y + CH - 3;+ } else if (tgt == TG_PLAY || tgt == TG_HAND) {+ if (id < MAXCARDS) *x = (int)V.cards[id].x + CW / 2, *y = (int)V.cards[id].y - 8;+ } else if (tgt == TG_CENTER) {+ *x = SIDE_W + (320 - SIDE_W) / 2, *y = 100;+ }+}++static void add_popup(const ev_t *e) {+ int slot = 0;+ for (int i = 0; i < 10; i++)+ if (pops[i].t <= 0) {+ slot = i;+ break;+ } else if (pops[i].t < pops[slot].t)+ slot = i;+ popup_t *p = &pops[slot];+ const char *src = (e->txt[0] == 1 && !e->txt[1]) ? e->p.s : e->txt;+ int n = 0;+ while (src[n] && n < 15) p->txt[n] = src[n], n++;+ p->txt[n] = 0;+ if (e->c & 1) {+ static const char suf[] = " Mult";+ for (int k = 0; suf[k] && n < 19; k++) p->txt[n++] = suf[k];+ p->txt[n] = 0;+ }+ p->col = e->b, p->tgt = e->t, p->id = e->a;+ p->life = p->t = 850;+ int x, y;+ target_pos(e->t, e->a, &x, &y);+ p->x = (int16_t)x, p->y = (int16_t)y;+ /* one popup at a time in a place: a neighbour's older one makes way */+ int w = g_textw(p->txt, T_MED) + 8;+ for (int i = 0; i < 10; i++) {+ popup_t *q = &pops[i];+ if (q == p || q->t <= 0) continue;+ int dx = q->x - x, dy = q->y - y, qw = g_textw(q->txt, T_MED) + 8;+ if (dx < 0) dx = -dx;+ if (dy < 0) dy = -dy;+ if (dy < 16 && 2 * dx < w + qw + 4) q->t = 0;+ }+}++static void juice(int tgt, int id) {+ if (tgt == TG_JOKER) {+ vitem_t *v = find_joker_v(id);+ if (v) v->juice = 12;+ } else if (tgt == TG_CONS) {+ vitem_t *v = find_cons_v(id);+ if (v) v->juice = 12;+ } else if (id < MAXCARDS)+ V.cards[id].juice = 12;+}++/* ------------------------------------------------------------ playback */+static void remove_from_list(uint8_t *arr, uint8_t *n, int ci) {+ for (int i = 0; i < *n; i++)+ if (arr[i] == ci) {+ for (int k = i; k < *n - 1; k++) arr[k] = arr[k + 1];+ (*n)--;+ return;+ }+}++static void play_event(ev_t *e) {+ float sp = speed_factor();+ switch (e->type) {+ case EV_DELAY: wait_ms = (int)(e->a * 100 / sp); break;+ case EV_HUD: {+ double m;+ memcpy(&m, e->txt, sizeof m);+ V.chips = ev_getd(e), V.mult = m;+ break;+ }+ case EV_HANDNAME:+ if (e->a == 0xFFFF) V.hand_name = -1, V.chips = 0, V.mult = 0, V.flame = 0;+ else V.hand_name = (int16_t)e->a, V.hand_level = e->d;+ break;+ case EV_ROUNDSCORE:+ V.score_target = ev_getd(e);+ wait_ms = (int)(350 / sp);+ break;+ case EV_MONEY: V.money_target = e->p.i; break;+ case EV_HANDS: V.hands = (int16_t)e->a; break;+ case EV_DISCARDS: V.discards = (int16_t)e->a; break;+ case EV_POPUP:+ add_popup(e);+ juice(e->t, e->a);+ wait_ms = (int)(480 / sp);+ break;+ case EV_JUICE: juice(e->t, e->a); break;+ case EV_CARD_MOVE: {+ int ci = e->a;+ vcard_t *v = &V.cards[ci];+ remove_from_list(V.hand, &V.nhand, ci);+ remove_from_list(V.play, &V.nplay, ci);+ if (v->area == A_DECK && V.deck_count > 0 && e->b != A_DECK) V.deck_count--;+ if (v->area != A_DECK && e->b == A_DECK) V.deck_count++;+ if (v->area == A_NONE || v->area == A_DECK) v->x = DECK_X, v->y = DECK_Y;+ v->area = e->b;+ v->down = e->c;+ v->raise = 0;+ if (e->b == A_HAND && V.nhand < MAXHAND) V.hand[V.nhand++] = (uint8_t)ci;+ if (e->b == A_PLAY && V.nplay < 8) V.play[V.nplay++] = (uint8_t)ci;+ wait_ms = (int)(70 / sp);+ break;+ }+ case EV_CARD_SET: {+ vcard_t *v = &V.cards[e->a];+ v->rank = e->p.card.rank, v->suit = e->p.card.suit, v->enh = e->p.card.enh;+ v->ed = e->p.card.ed, v->seal = e->p.card.seal, v->flags = e->p.card.flags, v->perma = e->p.card.perma;+ v->juice = 10;+ break;+ }+ case EV_CARD_DESTROY: {+ vcard_t *v = &V.cards[e->a];+ remove_from_list(V.hand, &V.nhand, e->a);+ remove_from_list(V.play, &V.nplay, e->a);+ v->area = A_NONE;+ v->fade = 20;+ v->shatter = e->b;+ wait_ms = (int)(200 / sp);+ break;+ }+ case EV_CARD_SELECT:+ V.cards[e->a].raise = e->b;+ if (e->b == 2) wait_ms = (int)(60 / sp);+ break;+ case EV_JOKER_ADD: {+ if (V.njokers >= MAXJ + 4) break;+ int pos = e->d < 0 ? V.njokers : (e->d > V.njokers ? V.njokers : e->d);+ for (int i = V.njokers; i > pos; i--) V.jokers[i] = V.jokers[i - 1];+ vitem_t *v = &V.jokers[pos];+ memset(v, 0, sizeof *v);+ v->uid = e->a, v->id = e->b, v->ed = e->c;+ v->x = JOKER_X + JOKER_W / 2 - CW / 2, v->y = 60;+ v->juice = 12;+ V.njokers++;+ wait_ms = (int)(200 / sp);+ break;+ }+ case EV_JOKER_REMOVE:+ for (int i = 0; i < V.njokers; i++)+ if (V.jokers[i].uid == e->a) {+ for (int k = i; k < V.njokers - 1; k++) V.jokers[k] = V.jokers[k + 1];+ V.njokers--;+ break;+ }+ wait_ms = (int)(150 / sp);+ break;+ case EV_JOKER_SET: {+ vitem_t *v = find_joker_v(e->a);+ if (v) v->ed = e->b, v->flags = e->c, v->juice = 12;+ break;+ }+ case EV_CONS_ADD: {+ if (V.ncons >= MAXCONS + 2) break;+ vitem_t *v = &V.cons[V.ncons++];+ memset(v, 0, sizeof *v);+ v->uid = e->a, v->id = e->b, v->ed = e->c;+ v->x = CONS_X + CONS_W / 2 - CW / 2, v->y = 60;+ v->juice = 12;+ wait_ms = (int)(150 / sp);+ break;+ }+ case EV_CONS_REMOVE:+ for (int i = 0; i < V.ncons; i++)+ if (V.cons[i].uid == e->a) {+ for (int k = i; k < V.ncons - 1; k++) V.cons[k] = V.cons[k + 1];+ V.ncons--;+ break;+ }+ break;+ case EV_LEVELUP:+ levelup_hand = e->a, levelup_level = e->d, levelup_old = e->p.i;+ levelup_len = levelup_t = (int)(1300 / sp);+ V.hand_name = (int16_t)e->a, V.hand_level = e->d;+ if (e->b) {+ int uid = e->c < R.njokers ? R.jokers[e->c].uid : 0;+ juice(TG_JOKER, uid);+ }+ break;+ case EV_MESSAGE: {+ const char *s = e->p.s;+ int i = 0;+ for (; s && s[i] && i < 39; i++) banner[i] = s[i];+ banner[i] = 0;+ banner_t = 1400;+ wait_ms = (int)(1000 / sp);+ break;+ }+ case EV_BLIND_FLASH: V.blind_flash = 16; break;+ case EV_SORT: break;+ case EV_FLAME: V.flame = 1; break;+ case EV_SYNC: break;+ }+}++static float ease(float cur, float target, int dt) {+ float k = dt * 0.012f;+ if (k > 1) k = 1;+ return cur + (target - cur) * k;+}++void ui_update(int dt) {+ float sp = speed_factor();+ /* events */+ if (levelup_t > 0) {+ levelup_t -= dt;+ /* old values first, then the new ones pop in */+ int newer = levelup_t < levelup_len * 6 / 10;+ int save = R.hands[levelup_hand].level;+ R.hands[levelup_hand].level = (int16_t)(newer ? levelup_level : levelup_old);+ V.chips = hand_chips(levelup_hand), V.mult = hand_mult(levelup_hand);+ R.hands[levelup_hand].level = (int16_t)save;+ V.hand_name = (int16_t)levelup_hand;+ }+ if (wait_ms > 0) wait_ms -= dt;+ while (wait_ms <= 0 && levelup_t <= 0 && ev_head < ev_tail) play_event(&evq[ev_head++]);+ if (ev_head >= ev_tail && wait_ms <= 0 && levelup_t <= 0 && ev_tail > 0) {+ ev_head = ev_tail = 0;+ /* everything shown: the display follows the rules again */+ ui_sync_all(0);+ if (R.phase != PH_ROUND) V.hand_name = -1, V.chips = 0, V.mult = 0;+ }+ /* popups and effects */+ for (int i = 0; i < 10; i++)+ if (pops[i].t > 0) pops[i].t -= (int16_t)(dt * (sp > 2 ? 2 : sp));+ if (banner_t > 0) banner_t -= dt;+ if (shake > 0) shake--;+ if (V.blind_flash) V.blind_flash--;+ /* the fire: while chips x mult on display beats the blind */+ flame_update(dt, V.chips * V.mult, R.blind_chips, levelup_t <= 0 && R.phase != PH_PACK && R.phase != PH_SHOP &&+ R.phase != PH_BLIND_SELECT && V.hand_name >= 0,+ R.phase == PH_CASHOUT && !ui_busy());+ /* money and score ease */+ if (V.money != V.money_target) {+ int d = V.money_target - V.money;+ int step = d / 4;+ if (!step) step = d > 0 ? 1 : -1;+ V.money += step;+ }+ if (V.score != V.score_target) {+ double d = V.score_target - V.score;+ V.score += d * (dt * 0.008 > 1 ? 1 : dt * 0.008);+ if (d > -1 && d < 1) V.score = V.score_target;+ if (V.score_target - V.score < V.score_target * 0.002) V.score = V.score_target;+ }+ /* juice timers */+ for (int i = 0; i < V.njokers; i++)+ if (V.jokers[i].juice) V.jokers[i].juice--;+ for (int i = 0; i < V.ncons; i++)+ if (V.cons[i].juice) V.cons[i].juice--;+ for (int i = 0; i < R.ncards_alloc; i++) {+ vcard_t *c = &V.cards[i];+ if (c->juice) c->juice--;+ if (c->fade) c->fade--;+ }+}++/* juice: a quick pop in size */+static int juice_scale(int j) {+ static const int16_t s[13] = {256, 262, 270, 278, 286, 292, 296, 300, 296, 288, 278, 268, 260};+ return j > 0 && j < 13 ? s[12 - j] : 256;+}++/* ------------------------------------------------------------ sidebar */+/* Laid out like the game's HUD (create_UIBox_HUD): one panel down the left+ edge with the blind's colour along its right side; boxes on a 3 pixel grid;+ the two bottom columns end on the same line. */+#define SB_X 3 /* content left */+#define SB_W 97 /* content width */+#define SB_FILL HEXC(0x2F3A3C) /* BOSS_DARK, as the game shows it */+#define SB_CELL HEXC(0x1B2628) /* BOSS_MAIN */+#define SB_HAND HEXC(0x182325)+#define SB_BLACK HEXC(0x1D2B2D)+#define SB_EMBOSS HEXC(0x0E181A)++static int shown_phase(void) { return R.phase == PH_PACK ? R.pack_return : R.phase; }++static C blind_main(void) {+ if (shown_phase() == PH_SHOP) return mix565(C_RED, C_BLACK, 3);+ int b = R.phase == PH_ROUND || R.phase == PH_CASHOUT || R.phase == PH_WIN || R.phase == PH_GAMEOVER ? R.blind : -1;+ if (R.phase == PH_PACK) return mix565(C_WHITE, C_BLACK, 3);+ if (b < 0) return C_BLACK;+ if (b == BL_SMALL) return mix565(C_BLACK, C_BLUE, 19);+ if (b == BL_BIG) return mix565(C_BLACK, C_ORANGE, 19);+ return HEXC(blind_info[b].colour);+}++/* pale boss colours (The Water, The Club...) darkened until white labels+ read on them */+C readable(C c, int base) {+ int l = ((c >> 11) * 2 * 77 + ((c >> 5) & 63) * 150 + (c & 31) * 2 * 29) >> 8; /* 0..63 */+ int t = base + (l > 34 ? (l - 34) / 2 : 0);+ return darken(c, t > 20 ? 20 : t);+}++/* a box of the HUD with the game's emboss (a darker edge under it) */+static void cell(int x, int y, int w, int h, C c) {+ g_rrect(x, y + 1, w, h, 3, SB_EMBOSS);+ g_rrect(x, y, w, h, 3, c);+}++/* a number, as large as fits in the width, centred at cx, capitals from y */+static void num_at(double v, int cx, int y, int w, int h, int big, C col, int align) {+ char t[32];+ int f = num_fit(t, v, w, big);+ int yy = y + (h - g_cap(f) + 1) / 2;+ g_text(t, cx, yy, f | T_SHADOW | align, col);+}++void draw_sidebar(void) {+ char t[32];+ C main = blind_main();+ int boss = (R.phase == PH_ROUND || R.phase == PH_CASHOUT) && R.blind >= BL_OX;+ C fill = boss ? mix565(SB_BLACK, main, 7) : SB_FILL; /* mix(blind, black, 0.2) */+ C cellc = boss ? readable(main, 4) : SB_CELL;+ /* the panel, its dark edge and the blind's colour */+ g_rect(0, 0, SIDE_W - 2, 240, fill);+ g_bg_cover(SIDE_W - 2);+ g_rect(SIDE_W - 2, 0, 1, 240, SB_EMBOSS);+ g_rect(SIDE_W - 1, 0, 1, 240, main);+ int in_round = R.phase == PH_ROUND || R.phase == PH_GAMEOVER || R.phase == PH_WIN ||+ (R.phase == PH_CASHOUT && ui_busy()); /* the blind leaves once it is beaten */+ /* top: the blind (y 3..64) */+ if (R.phase == PH_CASHOUT && !in_round) {+ } else if (shown_phase() == PH_SHOP) {+ /* the sign in a box framed in red, as in the game */+ g_rrect(SB_X, 4, SB_W, 62, 4, SB_EMBOSS);+ g_rrect(SB_X, 3, SB_W, 62, 4, C_RED);+ g_rrect(SB_X + 2, 5, SB_W - 4, 58, 3, SB_BLACK);+ g_sprite(SPR_SHOP, SB_X + (SB_W - 72) / 2, 7, 0, 256);+ g_text("Improve your run!", SB_X + SB_W / 2, 50, F_LABEL | T_CENTER, C_WHITE);+ } else if (in_round) {+ int b = R.blind;+ cell(SB_X, 3, SB_W, 62, SB_BLACK);+ g_rrect(SB_X + 1, 4, SB_W - 2, 15, 3, readable(main, 0));+ g_text_box(blind_name(b), SB_X + 1, 4, SB_W - 2, 15, text_fit(blind_name(b), SB_W - 8, T_MED) | T_SHADOW, C_WHITE);+ g_rrect(SB_X + 1, 20, SB_W - 2, 44, 3, mix565(main, SB_BLACK, 19)); /* mix(blind, black, 0.4) */+ int flash = V.blind_flash & 2;+ draw_blind_chip(b, SB_X + 4, 29 + (flash ? -2 : 0), 256);+ /* score at least / chips / to earn */+ int bx = SB_X + 31, bw = SB_W - 33;+ cell(bx, 23, bw, 38, SB_BLACK);+ g_text("Score at least", bx + bw / 2, 26, F_LABEL | T_CENTER, C_WHITE);+ char n[24];+ int f = num_fit(n, R.blind_chips, bw - 19, T_LARGE);+ int tw = g_textw(n, f) + 14, x0 = bx + (bw - tw) / 2;+ g_sprite(SPR_CHIP, x0, 36, 0, 256);+ g_text(n, x0 + 14, 36 + (11 - g_cap(f) + 1) / 2, f | T_SHADOW, C_RED);+ label_dollars("to earn", blind_info[b].dollars, bx + bw / 2, 51, bw - 4);+ } else {+ cell(SB_X, 3, SB_W, 62, SB_BLACK);+ g_text_box("Choose your\nnext Blind", SB_X, 3, SB_W, 62, F_NAME, C_WHITE);+ }+ /* round score (y 68..88) */+ cell(SB_X, 68, SB_W, 21, cellc);+ g_text("Round\nscore", SB_X + 13, 70, F_LABEL | T_CENTER, C_WHITE);+ g_rrect(SB_X + 25, 70, SB_W - 27, 17, 3, fill);+ {+ char n[24];+ int f = num_fit(n, V.score, SB_W - 27 - 20, T_LARGE);+ int tw = g_textw(n, f) + 14, x0 = SB_X + 25 + (SB_W - 27 - tw) / 2;+ g_sprite(SPR_CHIP, x0, 73, 0, 256);+ g_text(n, x0 + 14, 73 + (11 - g_cap(f) + 1) / 2, f | T_SHADOW, C_WHITE);+ }+ /* poker hand, chips x mult (y 92..139) */+ int hy = 92;+ cell(SB_X, hy, SB_W, 48, SB_HAND);+ if (V.hand_name >= 0) {+ int lv = levelup_t > 0 ? (levelup_t < levelup_len * 6 / 10 ? levelup_level : levelup_old) : V.hand_level;+ const char *hn = hand_names[V.hand_name];+ char *o = str_cat(t, "lvl.");+ fmt_int(o, lv);+ int lw = g_textw(t, F_LABEL);+ /* long names are narrower, as in the game (hand_text_UI_set) */+ int fl = text_fit(hn, SB_W - 6 - 3 - lw, T_MED);+ int total = g_textw(hn, fl) + 3 + lw;+ int x0 = SB_X + (SB_W - total) / 2, base = hy + 5 + 9; /* capitals end on one line */+ g_text(hn, x0, base - g_cap(fl), fl | T_SHADOW, C_WHITE);+ g_text(t, x0 + total - lw, base - 7, F_LABEL, levelup_t > 0 ? C_ATTN : C_WHITE);+ }+ int by = hy + 21, bh = 21, cw = 42;+ int cx0 = SB_X + 2, mx0 = SB_X + SB_W - 2 - cw;+ cell(cx0, by, cw, bh, C_BLUE);+ cell(mx0, by, cw, bh, C_RED);+ /* the flames stand on the boxes (the game's 2.5 unit sprite, bottom+ aligned) and rise a little over the panel's top edge, as in the game */+ g_clip(SB_X - 2, hy - 5, SB_W + 4, 48 + 5);+ g_flame(0, cx0 + cw / 2 - 27, hy - 5, 54, by + bh - hy + 5, hy - 5);+ g_flame(1, mx0 + cw / 2 - 27, hy - 5, 54, by + bh - hy + 5, hy - 5);+ g_noclip();+ num_at(V.chips, cx0 + cw - 2, by, cw - 4, bh, T_LARGE, C_WHITE, T_RIGHT);+ g_text("X", SB_X + SB_W / 2, by + 5, T_LARGE | T_CENTER | T_SHADOW, C_RED);+ num_at(V.mult, mx0 + 2, by, cw - 4, bh, T_LARGE, C_WHITE, 0);+ /* buttons and counters (y 143..235): two columns ending on one line */+ int y0 = 143, lw = 30, rx = SB_X + lw + 2, rw = SB_W - lw - 2, hw = 30, dw = rw - hw - 2;+ cell(SB_X, y0, lw, 45, C_RED);+ g_text_box("Run\nInfo", SB_X, y0, lw, 45, F_LABEL, C_WHITE);+ cell(SB_X, y0 + 48, lw, 45, C_ORANGE);+ g_text_box("Options", SB_X, y0 + 48, lw, 45, F_LABEL, C_WHITE);+ static const char *const lab[4] = {"Hands", "Discards", "Ante", "Round"};+ for (int k = 0; k < 4; k++) {+ int x = k & 1 ? rx + hw + 2 : rx, w = k & 1 ? dw : hw, y = k < 2 ? y0 : y0 + 64;+ cell(x, y, w, 29, cellc);+ g_text(lab[k], x + w / 2, y + 2, F_LABEL | T_CENTER, C_WHITE);+ g_rrect(x + 2, y + 12, w - 4, 15, 3, fill);+ if (k == 2) {+ /* ante: "2" and a small "/8" */+ fmt_int(t, R.ante);+ char w8[8];+ fmt_int(str_cat(w8, "/"), WIN_ANTE);+ int aw = g_textw(t, T_LARGE), sw = g_textw(w8, F_LABEL), ax = x + (w - aw - sw - 1) / 2;+ g_text(t, ax, y + 14, F_VALUE, C_ATTN);+ g_text(w8, ax + aw + 1, y + 18, F_LABEL, C_WHITE);+ } else {+ int v = k == 0 ? V.hands : k == 1 ? V.discards : R.round;+ num_at(v, x + w / 2, y + 12, w - 6, 15, T_LARGE, k == 0 ? C_BLUE : k == 1 ? C_RED : C_ATTN, T_CENTER);+ }+ }+ cell(rx, y0 + 32, rw, 29, cellc);+ g_rrect(rx + 2, y0 + 34, rw - 4, 25, 3, fill);+ /* tags waiting to be used, small, at the left of the money box */+ int nt = R.ntags < 3 ? R.ntags : 3, tx = rx + 4;+ for (int i = 0; i < nt; i++, tx += 11) g_sprite(SPR_T + R.tags[i], tx - 2, y0 + 39, 0, 192);+ if (nt) tx += 3;+ else tx = rx + 2;+ fmt_money(t, V.money);+ int mw = rx + rw - 2 - tx;+ g_text_box(t, tx, y0 + 34, mw, 25, text_fit(t, mw - 6, T_LARGE) | T_SHADOW, V.money < 0 ? C_RED : C_MONEY);+}++/* ------------------------------------------------------------ areas */+int ui_hand_x(int i, int n) {+ int step = n > 1 ? (HAND_W - CW) / (n - 1) : 0;+ if (step > CW + 2) step = CW + 2;+ int total = step * (n - 1) + CW;+ return HAND_X + (HAND_W - total) / 2 + i * step;+}++void layout_cards(int dt, int show_hand, int hand_y) {+ /* targets */+ for (int i = 0; i < V.nhand; i++) {+ vcard_t *c = &V.cards[V.hand[i]];+ int x = ui_hand_x(i, V.nhand);+ int arc = (2 * i - (V.nhand - 1)) * (2 * i - (V.nhand - 1)) / 16;+ c->tx = (int16_t)x;+ c->ty = (int16_t)(hand_y + arc / 2 - (c->raise ? 12 : 0) + (show_hand ? 0 : 90));+ }+ for (int i = 0; i < V.nplay; i++) {+ vcard_t *c = &V.cards[V.play[i]];+ int step = CW + 3, total = step * (V.nplay - 1) + CW;+ c->tx = (int16_t)(SIDE_W + (320 - SIDE_W - total) / 2 + i * step);+ c->ty = (int16_t)(PLAY_Y - (c->raise == 2 ? 10 : 0));+ }+ for (int i = 0; i < R.ncards_alloc; i++) {+ vcard_t *c = &V.cards[i];+ if (c->area == A_DECK) c->tx = DECK_X, c->ty = DECK_Y;+ if (c->area == A_DISCARD) c->tx = 330, c->ty = HAND_Y - 20;+ if (c->area == A_HAND || c->area == A_PLAY || c->area == A_DECK || c->area == A_DISCARD) {+ c->x = ease(c->x, c->tx, dt);+ c->y = ease(c->y, c->ty, dt);+ }+ }+ /* jokers */+ int n = V.njokers;+ for (int i = 0; i < n; i++) {+ int step = n > 1 ? (JOKER_W - CW) / (n - 1) : 0;+ if (step > CW + 2) step = CW + 2;+ int total = step * (n - 1) + CW;+ int x = JOKER_X + (JOKER_W - total) / 2 + i * step;+ V.jokers[i].x = ease(V.jokers[i].x, x, dt);+ V.jokers[i].y = ease(V.jokers[i].y, ROW_Y, dt);+ }+ n = V.ncons;+ for (int i = 0; i < n; i++) {+ int step = n > 1 ? (CONS_W - CW) / (n - 1) : 0;+ if (step > CW + 2) step = CW + 2;+ int total = step * (n - 1) + CW;+ int x = CONS_X + (CONS_W - total) / 2 + i * step;+ V.cons[i].x = ease(V.cons[i].x, x, dt);+ V.cons[i].y = ease(V.cons[i].y, ROW_Y, dt);+ }+}++/* focus: which zone and index (screens set these) */+int focus_zone = 0, focus_idx = 0, focus_shake;+enum { FZ_HAND = 1, FZ_JOKERS, FZ_CONS };++void draw_jokers_row(int focus_j, int focus_c, int sel_j, int sel_c) {+ char t[8];+ g_shade(JOKER_X - 2, ROW_Y - 2, JOKER_W + 4, CH + 4, 5, 9);+ g_shade(CONS_X - 2, ROW_Y - 2, CONS_W + 4, CH + 4, 5, 9);+ char *o = fmt_int(t, R.njokers);+ *o++ = '/';+ fmt_int(o, joker_slots());+ if (!popup_over(JOKER_X - 1, ROW_Y + CH + 3, JOKER_X + g_textw(t, F_LABEL) + 1, ROW_Y + CH + 12))+ g_text(t, JOKER_X, ROW_Y + CH + 4, F_LABEL, C_WHITE);+ o = fmt_int(t, R.ncons);+ *o++ = '/';+ fmt_int(o, cons_slots());+ if (!popup_over(CONS_X + CONS_W - g_textw(t, F_LABEL) - 1, ROW_Y + CH + 3, CONS_X + CONS_W + 1, ROW_Y + CH + 12))+ g_text(t, CONS_X + CONS_W, ROW_Y + CH + 4, F_LABEL | T_RIGHT, C_WHITE);+ for (int pass = 0; pass < 2; pass++)+ for (int i = 0; i < V.njokers; i++) {+ vitem_t *j = &V.jokers[i];+ int f = i == focus_j;+ if (f != pass) continue;+ int lift = f ? 3 : 0;+ if (i == sel_j) lift = 7;+ int fl = (j->flags & JF_DEBUFF) ? FX_DIM : 0;+ if (j->flags & JF_DOWN) fl |= 0x100;+ int sx = f ? focus_shake : 0;+ draw_joker_sprite(j->id, j->ed, (int)j->x + sx, (int)j->y - lift, juice_scale(j->juice), fl);+ if (j->flags & JF_DEBUFF) g_sprite(SPR_DEBUFF, (int)j->x + sx, (int)j->y - lift, 0, 256);+ }+ for (int pass = 0; pass < 2; pass++)+ for (int i = 0; i < V.ncons; i++) {+ vitem_t *c = &V.cons[i];+ int f = i == focus_c;+ if (f != pass) continue;+ int lift = f ? 3 : 0;+ if (i == sel_c) lift = 7;+ draw_cons_sprite(c->id, c->ed, (int)c->x + (f ? focus_shake : 0), (int)c->y - lift, juice_scale(c->juice), 0);+ }+}++void draw_hand_cards(int focus_h) {+ for (int pass = 0; pass < 2; pass++)+ for (int i = 0; i < V.nhand; i++) {+ int f = i == focus_h;+ if (f != pass) continue;+ vcard_t *c = &V.cards[V.hand[i]];+ int x = (int)c->x + (f ? focus_shake : 0), y = (int)c->y - (f ? 4 : 0), sc = juice_scale(c->juice);+ if (f && sc == 256 && !V.nplay) g_rrect(x - 2, y - 2, CW + 4, CH + 4, 4, C_FOCUS); /* the D-pad cursor */+ draw_card(c, x, y, sc, f);+ }+}++void draw_play_cards(void) {+ for (int i = 0; i < V.nplay; i++) {+ vcard_t *c = &V.cards[V.play[i]];+ draw_card(c, (int)c->x, (int)c->y, juice_scale(c->juice), 0);+ }+ /* cards being destroyed */+ for (int i = 0; i < R.ncards_alloc; i++) {+ vcard_t *c = &V.cards[i];+ if (c->area != A_NONE || !c->fade) continue;+ if (c->shatter) {+ /* glass breaking: pieces flying out */+ int k = 20 - c->fade;+ for (int p = 0; p < 6; p++) {+ int px = (int)c->x + 6 + (p % 3) * 10 + (p % 3 - 1) * k, py = (int)c->y + 8 + (p / 3) * 18 + k * k / 6;+ g_rrect(px, py, 7, 9, 1, HEXC(0xC9E6EE));+ }+ } else {+ /* dissolving */+ int sc = 256 - (20 - c->fade) * 6;+ draw_card(c, (int)c->x, (int)c->y, sc, 0);+ if (c->fade < 12) g_sprite(SPR_E + 1, (int)c->x, (int)c->y, FX_WHITE, sc);+ }+ }+}++void draw_deck_pile(int focused) {+ char t[12];+ int n = V.deck_count;+ if (n > 0) {+ int layers = n > 40 ? 3 : n > 20 ? 2 : 1;+ for (int k = layers - 1; k >= 0; k--) {+ g_sprite(SPR_E, DECK_X + k + 1, DECK_Y + k + 2, FX_SHADOW, 256);+ g_sprite(SPR_E, DECK_X + k, DECK_Y - k - (focused ? 3 : 0), 0, 256);+ }+ }+ int total = 0;+ for (int i = 0; i < R.ncards_alloc; i++) total += (R.cards[i].flags & CF_USED) != 0;+ char *o = fmt_int(t, n);+ *o++ = '/';+ fmt_int(o, total);+ g_text(t, DECK_X + CW, DECK_Y + CH + 5, F_LABEL | T_RIGHT, C_WHITE);+}++/* where popup i is this frame: centre, text size, square's half side */+static void popup_geo(const popup_t *p, int *x, int *y, int *f, int *hs) {+ int age = p->life - p->t;+ target_pos(p->tgt, p->id, x, y);+ *y -= age > 500 ? (age - 500) / 40 : 0;+ /* chips and money in the large size, mult and messages a size down (0.7) */+ *f = p->col == PC_CHIPS || p->col == PC_MONEY ? T_LARGE : T_MED;+ *hs = (age < 150 ? 11 - age / 38 : 7) - (*f == T_MED);+ int tw = g_textw(p->txt, *f);+ if (*x < AREA_X + tw / 2) *x = AREA_X + tw / 2;+ if (*x > 318 - tw / 2) *x = 318 - tw / 2;+}++/* a popup covers part of this box: the counters under the rows make way */+static int popup_over(int x0, int y0, int x1, int y1) {+ for (int i = 0; i < 10; i++) {+ const popup_t *p = &pops[i];+ if (p->t <= 0) continue;+ int x, y, f, hs;+ popup_geo(p, &x, &y, &f, &hs);+ int hw = g_textw(p->txt, f) / 2 + 2, hh = g_cap(f) / 2 + 3;+ if (hs * 3 / 2 + 1 > hw) hw = hs * 3 / 2 + 1;+ if (hs * 3 / 2 + 1 > hh) hh = hs * 3 / 2 + 1;+ if (x + hw > x0 && x - hw < x1 && y + hh > y0 && y - hh < y1) return 1;+ }+ return 0;+}++/* the game's score texts: big white text over a small spinning square of+ the effect's colour (attention_text with a backdrop) */+void draw_popups(void) {+ for (int i = 0; i < 10; i++) {+ popup_t *p = &pops[i];+ if (p->t <= 0) continue;+ int age = p->life - p->t;+ int x, y, f, hs;+ popup_geo(p, &x, &y, &f, &hs);+ C col = popup_col[p->col % 11];+ if (p->col == PC_EDITION) col = HEXC(0x4CA893);+ g_rsquare(x, y, hs, age / 6, col);+ g_text(p->txt, x, y - g_cap(f) / 2, f | T_SHADOW | T_CENTER, C_WHITE);+ }+ if (banner_t > 0) {+ int x = AREA_X + AREA_W / 2, w = g_textw(banner, T_LARGE) + 20;+ panel(x - w / 2, 86, w, 21, 5, C_RED, 2);+ g_text_box(banner, x - w / 2, 86, w, 21, F_VALUE, C_WHITE);+ }+}++/* level up display (planets, Space Joker, Burnt Joker, Orbital Tag) */+int ui_levelup_active(void) { return levelup_t > 0; }diff --git a/games/balatro/src/ui.h b/games/balatro/src/ui.hnew file mode 100644index 00000000..8a927acb--- /dev/null+++ b/games/balatro/src/ui.h@@ -0,0 +1,122 @@+#ifndef UI_H+#define UI_H+#include <stdint.h>+#include "game.h"+#include "gfx.h"++/* palette (G.C in globals.lua) */+#define C_BLACK HEXC(0x374244)+#define C_L_BLACK HEXC(0x4F6367)+#define C_GREY HEXC(0x5F7377)+#define C_RED HEXC(0xFE5F55)+#define C_BLUE HEXC(0x009DFF)+#define C_GREEN HEXC(0x4BC292)+#define C_ORANGE HEXC(0xFDA200)+#define C_GOLD HEXC(0xEAC058)+#define C_MONEY HEXC(0xF3B958)+#define C_ATTN HEXC(0xFF9A00)+#define C_PURPLE HEXC(0x8867A5)+#define C_WHITE 0xFFFF+#define C_TEXT_DARK HEXC(0x4F6367)+#define C_PANEL HEXC(0x3A4B4E)+#define C_DARK HEXC(0x1E2B2D)+#define C_TAROT HEXC(0xA782D1)+#define C_PLANET HEXC(0x13AFCE)+#define C_SPECTRAL HEXC(0x4584FA)+#define C_EDITION HEXC(0x4CA893)+#define C_INACTIVE HEXC(0x666666)+#define C_FOCUS HEXC(0xFF9A00)++/* layout */+#define SIDE_W 104+#define CW 35+#define CH 47+#define JOKER_X 108+#define JOKER_W 143+#define CONS_X 256+#define CONS_W 61+#define ROW_Y 4+#define PLAY_Y 72+#define HAND_Y 146+#define HAND_X 108+#define HAND_W 171+#define DECK_X 283+#define DECK_Y 176+#define AREA_X (SIDE_W + 3) /* the play area, right of the sidebar */+#define AREA_W (317 - AREA_X)++/* type roles (see gfx.h): one size per role on every screen */+#define F_VALUE (T_LARGE | T_SHADOW) /* numbers: chips, mult, score, money, counters */+#define F_TITLE (T_LARGE | T_SHADOW) /* panel titles */+#define F_NAME (T_MED | T_SHADOW) /* names: blind, poker hand, item, pack */+#define F_LABEL (T_SMALL | T_SHADOW) /* labels and button texts on colour */+#define F_TEXT T_SMALL /* descriptions on white */++/* visual state */+typedef struct {+ float x, y;+ int16_t tx, ty;+ uint8_t area, rank, suit, enh, ed, seal, flags, raise;+ uint16_t perma;+ uint8_t juice, fade, shatter, down;+} vcard_t;++typedef struct {+ uint16_t uid;+ uint8_t id, ed, flags, juice, dying, sold;+ float x, y;+} vitem_t;++typedef struct {+ vcard_t cards[MAXCARDS];+ uint8_t hand[MAXHAND], nhand;+ uint8_t play[8], nplay;+ vitem_t jokers[MAXJ + 4];+ uint8_t njokers;+ vitem_t cons[MAXCONS + 2];+ uint8_t ncons;+ int32_t money, money_target;+ int16_t hands, discards;+ double score, score_target, chips, mult;+ int16_t hand_name, hand_level;+ uint8_t flame, blind_flash;+ int16_t deck_count;+} vis_t;+extern vis_t V;++/* focus */+extern int focus_zone, focus_idx;+extern int focus_shake; /* x offset of the focused element when an action is refused */++/* drawing helpers (draw.c) */+void panel(int x, int y, int w, int h, int r, C c, int emboss);+void button(int x, int y, int w, int h, C c, const char *label, int flags, int focused, int enabled);+void keycap(int x, int y, const char *label);+void draw_card(const vcard_t *c, int x, int y, int scale, int focused);+void draw_card_back(int x, int y, int scale);+void draw_joker_sprite(int id, int ed, int x, int y, int scale, int flags);+void draw_cons_sprite(int id, int ed, int x, int y, int scale, int flags);+void draw_item(const sitem_t *it, int x, int y, int scale, int flags);+void draw_tooltip_for(int kind, int id, int ed, const void *extra, int ax, int ay, int aw);+void draw_price(int x, int y, int cost, int affordable);+void draw_blind_chip(int b, int x, int y, int scale);+int item_sprite(const sitem_t *it);+void desc_text(char *out, int maxlen, int kind, int id, const void *extra);+void fmt_money(char *o, int v);+void label_dollars(const char *label, int n, int cx, int y, int maxw);+int num_fit(char *t, double v, int maxw, int big); /* formats v, returns the largest size that fits */+int text_fit(const char *t, int maxw, int big); /* largest of big, medium, small that fits */+void wrap_text(char *out, int maxlen, const char *in, int width, int flags);+extern const C popup_col[];+enum { TK_JOKER, TK_CONS, TK_VOUCHER, TK_PACK, TK_TAG, TK_BLIND, TK_CARD, TK_EDITION, TK_SEAL, TK_ENH };++/* sidebar and common parts (ui.c) */+void draw_sidebar(void);+C readable(C c, int base); /* a blind's colour, darkened when white text would not read on it */+void draw_areas(int show_hand, int show_play);+int ui_busy(void);+void ui_sync_all(int instant);+void ui_update(int dt);+float speed_factor(void);+extern int ui_hold_ms; /* how long OK or EXE has been held */+#endifdiff --git a/games/balatro/src/util.c b/games/balatro/src/util.cnew file mode 100644index 00000000..295c03d9--- /dev/null+++ b/games/balatro/src/util.c@@ -0,0 +1,93 @@+#include "util.h"++int str_len(const char *s) {+ int n = 0;+ while (s[n]) n++;+ return n;+}++char *str_cat(char *o, const char *s) {+ while (*s) *o++ = *s++;+ *o = 0;+ return o;+}++char *fmt_int(char *o, long v) {+ char t[24];+ int n = 0;+ if (v < 0) *o++ = '-', v = -v;+ do t[n++] = (char)('0' + v % 10); while (v /= 10);+ while (n) *o++ = t[--n];+ *o = 0;+ return o;+}++double dfloor(double v) {+ if (v >= 9.2e18 || v <= -9.2e18) return v;+ long long i = (long long)v;+ if ((double)i > v) i--;+ return (double)i;+}++/* integer with thousands separators */+static char *commas_ll(char *o, unsigned long long v) {+ char t[32];+ int n = 0, k = 0;+ do {+ if (k && k % 3 == 0) t[n++] = ',';+ t[n++] = (char)('0' + v % 10);+ k++;+ } while (v /= 10);+ while (n) *o++ = t[--n];+ *o = 0;+ return o;+}++char *fmt_commas(char *o, double v) {+ if (v != v || v > 1.7e308) return str_cat(o, "naneinf");+ if (v < 0) {+ *o++ = '-';+ v = -v;+ }+ if (v >= 1e11) {+ int e = 0;+ double m = v;+ while (m >= 10) m /= 10, e++;+ long r = (long)(m * 1000 + 0.5);+ if (r >= 10000) r /= 10, e++;+ o = fmt_int(o, r / 1000);+ *o++ = '.';+ *o++ = (char)('0' + r / 100 % 10);+ *o++ = (char)('0' + r / 10 % 10);+ *o++ = (char)('0' + r % 10);+ *o++ = 'e';+ return fmt_int(o, e);+ }+ if (v == dfloor(v)) return commas_ll(o, (unsigned long long)v);+ int dec = v >= 100 ? 0 : v >= 10 ? 1 : 2;+ double scale = dec == 0 ? 1 : dec == 1 ? 10 : 100;+ unsigned long long r = (unsigned long long)(v * scale + 0.5);+ o = commas_ll(o, (unsigned long long)(r / (unsigned long long)scale));+ if (dec) {+ *o++ = '.';+ if (dec == 2) *o++ = (char)('0' + r / 10 % 10);+ *o++ = (char)('0' + r % 10);+ *o = 0;+ }+ return o;+}++char *fmt_short(char *o, double v) {+ if (v < 0) *o++ = '-', v = -v;+ if (!(v < 1e6)) return fmt_commas(o, v); /* big values: 1,234,567 or 1.234e30 */+ long r = (long)(v * 100 + 0.5);+ o = fmt_int(o, r / 100);+ int f = (int)(r % 100);+ if (f) {+ *o++ = '.';+ *o++ = (char)('0' + f / 10);+ if (f % 10) *o++ = (char)('0' + f % 10);+ *o = 0;+ }+ return o;+}diff --git a/games/balatro/src/util.h b/games/balatro/src/util.hnew file mode 100644index 00000000..98767cfd--- /dev/null+++ b/games/balatro/src/util.h@@ -0,0 +1,11 @@+#ifndef UTIL_H+#define UTIL_H+#include <stdint.h>++char *fmt_int(char *o, long v); /* plain integer */+char *fmt_commas(char *o, double v); /* Balatro's number_format */+char *fmt_short(char *o, double v); /* Lua's tostring for small values: 1.5, 2, 0.25 */+char *str_cat(char *o, const char *s);+int str_len(const char *s);+double dfloor(double v);+#endifdiff --git a/games/balatro/tools/faces.py b/games/balatro/tools/faces.pynew file mode 100644index 00000000..0b6659c0--- /dev/null+++ b/games/balatro/tools/faces.py@@ -0,0 +1,115 @@+"""Playing card faces at the calculator's card size (35x47).++Face cards (J, Q, K) are Balatro's 8-bit deck art scaled down. The corner+indices and the pips are redrawn pixel by pixel instead, because at half size+the originals blur: pips sit where the original ones do (halved), turned+upside down in the lower half like on the real cards."""+import numpy as np+from PIL import Image++W, H = 35, 47+SUITS = "HCDS" # rows of 8BitDeck.png: Hearts, Clubs, Diamonds, Spades+COL = {"H": (0xF0, 0x34, 0x64), "C": (0x23, 0x59, 0x55), "D": (0xF0, 0x6B, 0x3F), "S": (0x3C, 0x43, 0x68)}++PIP = {+ "H": [".#.#.", "#####", "#####", ".###.", "..#.."],+ "D": ["..#..", ".###.", "#####", ".###.", "..#.."],+ "S": ["..#..", ".###.", "#####", "#####", "..#.."],+ "C": [".###.", ".###.", "#####", "#####", "..#.."],+}+# small corner suit marks (5x4 would blur the shapes; keep 5x5)+RANKS = {+ "2": ["###", "..#", "###", "#..", "###"],+ "3": ["###", "..#", ".##", "..#", "###"],+ "4": ["#.#", "#.#", "###", "..#", "..#"],+ "5": ["###", "#..", "###", "..#", "###"],+ "6": ["###", "#..", "###", "#.#", "###"],+ "7": ["###", "..#", "..#", ".#.", ".#."],+ "8": ["###", "#.#", "###", "#.#", "###"],+ "9": ["###", "#.#", "###", "..#", "###"],+ "10": ["#.###", "#.#.#", "#.#.#", "#.#.#", "#.###"],+ "J": ["..#", "..#", "..#", "#.#", "###"],+ "Q": ["###", "#.#", "#.#", "###", "..#"],+ "K": ["#.#", "#.#", "##.", "#.#", "#.#"],+ "A": [".#.", "#.#", "###", "#.#", "#.#"],+}+RANK_NAMES = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"]+++def stamp(img, pat, x, y, col, flip=False):+ rows = pat[::-1] if flip else pat+ for j, r in enumerate(rows):+ for i, ch in enumerate(r):+ if ch == "#" and 0 <= x + i < W and 0 <= y + j < H:+ img[y + j, x + i] = (*col, 255)+++def pip_centers(cell):+ """Centers of the pips of a 1x number card (ignoring the corner indices)."""+ from scipy import ndimage+ a = cell[:, :, 3] > 128+ a[:, :13] = False+ a[:, 58:] = False+ lab, n = ndimage.label(a)+ out = []+ for k in range(1, n + 1):+ ys, xs = np.nonzero(lab == k)+ if len(ys) < 12:+ continue+ out.append(((xs.min() + xs.max()) / 2, (ys.min() + ys.max()) / 2))+ return out+++def corner(img, rank, suit):+ col = COL[suit]+ g = RANKS[rank]+ stamp(img, g, 2, 2, col)+ stamp(img, PIP[suit], 1 if len(g[0]) < 5 else 1, 8, col)+ # the same, upside down, bottom right+ gw = len(g[0])+ stamp(img, [r[::-1] for r in g], W - 2 - gw, H - 2 - 5, col, flip=True)+ stamp(img, [r[::-1] for r in PIP[suit]], W - 6, H - 8 - 5, col, flip=True)+++def make_faces(deck_png):+ D = np.array(Image.open(deck_png).convert("RGBA"))+ faces = []+ for suit_row, suit in enumerate(SUITS):+ for r, rank in enumerate(RANK_NAMES):+ cell = D[suit_row * 95:(suit_row + 1) * 95, r * 71:(r + 1) * 71]+ img = np.zeros((H, W, 4), np.uint8)+ if rank in "JQK":+ small = np.array(Image.fromarray(cell).resize((W, H), Image.BOX))+ small[small[:, :, 3] < 110] = 0+ small[:, :, 3] = np.where(small[:, :, 3] > 0, 255, 0)+ img = small+ # clear the blurred corner indices, then redraw them+ img[0:14, 0:7] = 0+ img[H - 14:H, W - 7:W] = 0+ elif rank == "A":+ # the big pip: scaled down and made crisp+ a = cell[:, :, 3].astype(float)+ sm = np.array(Image.fromarray(a.astype(np.uint8)).resize((W, H), Image.BOX))+ sm[0:14, 0:8] = 0+ sm[H - 14:, W - 8:] = 0+ img[sm > 100] = (*COL[suit], 255)+ else:+ for cx, cy in pip_centers(cell):+ x = int(round(cx / 2 - 2.25))+ y = int(round(cy / 2 - 2.25))+ stamp(img, PIP[suit], x, y, COL[suit], flip=cy > 47.5)+ corner(img, rank, suit)+ faces.append(Image.fromarray(img, "RGBA"))+ return faces+++if __name__ == "__main__":+ import sys+ faces = make_faces(sys.argv[1])+ base = Image.open(sys.argv[2]).convert("RGBA").crop((71, 0, 142, 95)).resize((W, H), Image.BOX)+ sheet = Image.new("RGBA", (13 * 37, 4 * 49), (60, 90, 80, 255))+ for i, f in enumerate(faces):+ c = base.copy()+ c.alpha_composite(f)+ sheet.alpha_composite(c, ((i % 13) * 37, (i // 13) * 49))+ sheet.resize((sheet.width * 3, sheet.height * 3), Image.NEAREST).save(sys.argv[3])diff --git a/games/balatro/tools/font_small.py b/games/balatro/tools/font_small.pynew file mode 100644index 00000000..0303ce88--- /dev/null+++ b/games/balatro/tools/font_small.py@@ -0,0 +1,110 @@+"""The small font: m6x11's shapes redrawn 3 pixels wide (7 pixel capitals,+5 pixel lowercase), for labels and card texts. Rows 0-6 are the capital+height, 7-8 the descenders. '#' is ink."""++_ = ""+GLYPHS = {+ " ": [_],+ "!": ["#", "#", "#", "#", "#", ".", "#"],+ '"': ["#.#", "#.#"],+ "#": [_, ".#.#.", "#####", ".#.#.", "#####", ".#.#."],+ "$": [".#.", "###", "#..", "###", "..#", "###", ".#."],+ "%": ["#.#", "..#", "..#", ".#.", "#..", "#..", "#.#"],+ "&": [".#..", "#.#.", "#.#.", ".#..", "#.##", "#.#.", ".#.#"],+ "'": ["#", "#"],+ "(": [".#", "#.", "#.", "#.", "#.", "#.", ".#"],+ ")": ["#.", ".#", ".#", ".#", ".#", ".#", "#."],+ "*": [_, "#.#", ".#.", "###", ".#.", "#.#"],+ "+": [_, _, ".#.", "###", ".#.", _],+ ",": [_, _, _, _, _, _, ".#", "#."],+ "-": [_, _, _, "###"],+ ".": [_, _, _, _, _, _, "#"],+ "/": ["..#", "..#", ".#.", ".#.", ".#.", "#..", "#.."],+ "0": ["###", "#.#", "#.#", "#.#", "#.#", "#.#", "###"],+ "1": [".#.", "##.", ".#.", ".#.", ".#.", ".#.", "###"],+ "2": ["###", "..#", "..#", "###", "#..", "#..", "###"],+ "3": ["###", "..#", "..#", ".##", "..#", "..#", "###"],+ "4": ["#.#", "#.#", "#.#", "###", "..#", "..#", "..#"],+ "5": ["###", "#..", "#..", "###", "..#", "..#", "###"],+ "6": ["###", "#..", "#..", "###", "#.#", "#.#", "###"],+ "7": ["###", "..#", "..#", "..#", ".#.", ".#.", ".#."],+ "8": [".#.", "#.#", "#.#", ".#.", "#.#", "#.#", ".#."],+ "9": ["###", "#.#", "#.#", "###", "..#", "..#", "###"],+ ":": [_, _, "#", _, _, _, "#"],+ ";": [_, _, ".#", _, _, _, ".#", "#."],+ "<": [_, "..#", ".#.", "#..", ".#.", "..#"],+ "=": [_, _, "###", _, "###"],+ ">": [_, "#..", ".#.", "..#", ".#.", "#.."],+ "?": ["###", "..#", "..#", ".##", ".#.", _, ".#."],+ "@": [".###.", "#...#", "#.###", "#.#.#", "#.###", "#....", ".###."],+ "A": [".#.", "#.#", "#.#", "###", "#.#", "#.#", "#.#"],+ "B": ["##.", "#.#", "#.#", "##.", "#.#", "#.#", "##."],+ "C": [".##", "#..", "#..", "#..", "#..", "#..", ".##"],+ "D": ["##.", "#.#", "#.#", "#.#", "#.#", "#.#", "##."],+ "E": ["###", "#..", "#..", "##.", "#..", "#..", "###"],+ "F": ["###", "#..", "#..", "##.", "#..", "#..", "#.."],+ "G": [".##", "#..", "#..", "#.#", "#.#", "#.#", ".##"],+ "H": ["#.#", "#.#", "#.#", "###", "#.#", "#.#", "#.#"],+ "I": ["###", ".#.", ".#.", ".#.", ".#.", ".#.", "###"],+ "J": ["###", "..#", "..#", "..#", "..#", "#.#", ".#."],+ "K": ["#.#", "#.#", "##.", "#..", "##.", "#.#", "#.#"],+ "L": ["#..", "#..", "#..", "#..", "#..", "#..", "###"],+ "M": ["####.", "#.#.#", "#.#.#", "#.#.#", "#.#.#", "#...#", "#...#"],+ "N": ["##.", "#.#", "#.#", "#.#", "#.#", "#.#", "#.#"],+ "O": [".#.", "#.#", "#.#", "#.#", "#.#", "#.#", ".#."],+ "P": ["##.", "#.#", "#.#", "##.", "#..", "#..", "#.."],+ "Q": [".#.", "#.#", "#.#", "#.#", "#.#", "##.", ".##"],+ "R": ["##.", "#.#", "#.#", "##.", "#.#", "#.#", "#.#"],+ "S": [".##", "#..", "#..", ".#.", "..#", "..#", "##."],+ "T": ["###", ".#.", ".#.", ".#.", ".#.", ".#.", ".#."],+ "U": ["#.#", "#.#", "#.#", "#.#", "#.#", "#.#", "###"],+ "V": ["#.#", "#.#", "#.#", "#.#", ".#.", ".#.", ".#."],+ "W": ["#...#", "#...#", "#.#.#", "#.#.#", "#.#.#", "#.#.#", ".#.#."],+ "X": ["#.#", "#.#", "#.#", ".#.", "#.#", "#.#", "#.#"],+ "Y": ["#.#", "#.#", "#.#", ".#.", ".#.", ".#.", ".#."],+ "Z": ["###", "..#", "..#", ".#.", "#..", "#..", "###"],+ "[": ["##", "#.", "#.", "#.", "#.", "#.", "##"],+ "\\": ["#..", "#..", ".#.", ".#.", ".#.", "..#", "..#"],+ "]": ["##", ".#", ".#", ".#", ".#", ".#", "##"],+ "^": [".#.", "#.#"],+ "_": [_, _, _, _, _, _, _, "###"],+ "`": ["#.", ".#"],+ "a": [_, _, "##.", "..#", ".##", "#.#", ".##"],+ "b": ["#..", "#..", "##.", "#.#", "#.#", "#.#", "##."],+ "c": [_, _, ".##", "#..", "#..", "#..", ".##"],+ "d": ["..#", "..#", ".##", "#.#", "#.#", "#.#", ".##"],+ "e": [_, _, ".#.", "#.#", "###", "#..", ".##"],+ "f": [".##", ".#.", "###", ".#.", ".#.", ".#.", ".#."],+ "g": [_, _, ".##", "#.#", "#.#", "#.#", ".##", "..#", "##."],+ "h": ["#..", "#..", "##.", "#.#", "#.#", "#.#", "#.#"],+ "i": ["#", _, "#", "#", "#", "#", "#"],+ "j": [".#", _, ".#", ".#", ".#", ".#", ".#", ".#", "#."],+ "k": ["#..", "#..", "#.#", "#.#", "##.", "#.#", "#.#"],+ "l": ["#", "#", "#", "#", "#", "#", "#"],+ "m": [_, _, "####.", "#.#.#", "#.#.#", "#.#.#", "#.#.#"],+ "n": [_, _, "##.", "#.#", "#.#", "#.#", "#.#"],+ "o": [_, _, ".#.", "#.#", "#.#", "#.#", ".#."],+ "p": [_, _, "##.", "#.#", "#.#", "#.#", "##.", "#..", "#.."],+ "q": [_, _, ".##", "#.#", "#.#", "#.#", ".##", "..#", "..#"],+ "r": [_, _, "#.#", "##.", "#..", "#..", "#.."],+ "s": [_, _, ".##", "#..", ".#.", "..#", "##."],+ "t": ["#.", "#.", "##", "#.", "#.", "#.", ".#"],+ "u": [_, _, "#.#", "#.#", "#.#", "#.#", ".##"],+ "v": [_, _, "#.#", "#.#", "#.#", ".#.", ".#."],+ "w": [_, _, "#...#", "#.#.#", "#.#.#", "#.#.#", ".#.#."],+ "x": [_, _, "#.#", "#.#", ".#.", "#.#", "#.#"],+ "y": [_, _, "#.#", "#.#", "#.#", "#.#", ".##", "..#", "##."],+ "z": [_, _, "###", "..#", ".#.", "#..", "###"],+ "{": [".#", "#.", "#.", "##", "#.", "#.", ".#"],+ "|": ["#", "#", "#", "#", "#", "#", "#"],+ "}": ["#.", ".#", ".#", "##", ".#", ".#", "#."],+ "~": [_, _, _, ".#.#", "#.#."],+ # the four suits, after the ASCII range (codes 127-130)+ "\x7f": ["...#...", "..###..", ".#####.", "#######", ".##.##.", "...#...", "..###.."],+ "\x80": [".##.##.", "#######", "#######", ".#####.", "..###..", "...#..."],+ "\x81": ["..###..", "..###..", "##.#.##", "#######", "##.#.##", "...#...", "..###.."],+ "\x82": ["...#...", "..###..", ".#####.", "#######", ".#####.", "..###..", "...#..."],+}+SUITS = "\x7f\x80\x81\x82" # spades, hearts, clubs, diamonds+HEIGHT = 9+CAP = 7diff --git a/games/balatro/tools/icon.py b/games/balatro/tools/icon.pynew file mode 100644index 00000000..dc4a302f--- /dev/null+++ b/games/balatro/tools/icon.py@@ -0,0 +1,63 @@+#!/usr/bin/env python3+"""Makes src/icon.png: the Joker card over the title screen's paint swirl (the same shader as src/bg.c)."""+import os+import numpy as np+from PIL import Image+ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")+def paint(sx, sy, mode, t, spin=0.0, contrast=1.0, W=320, H=240):+ diag=np.hypot(W,H)+ ux=(sx-W/2)/diag; uy=(sy-H/2)/diag+ if mode==0: ux=ux-0.12+ ln=np.hypot(ux,uy)+ if mode==0:+ sp=0*0.1+302.2+ ang=np.arctan2(uy,ux)+sp-0.5*20*(spin*ln+(1-spin))+ speed=t*2+ else:+ s=t*0.4; ms=min(6,s)+ ang=np.arctan2(uy,ux)+(2.2+0.4*ms)*ln-1-s*0.05-ms*s*0.02+ speed=t*6*0.4+1033+ vx=ln*np.cos(ang)*30; vy=ln*np.sin(ang)*30+ u2x=vx+vy; u2y=vx+vy+ for i in range(5):+ m=np.sin(np.maximum(vx,vy))+ u2x=u2x+m+vx; u2y=u2y+m+vy+ vx=vx+0.5*np.cos(5.1123314+0.353*u2y+speed*0.131121)+ vy=vy+0.5*np.sin(u2x-0.113*speed)+ d=np.cos(vx+vy)-np.sin(vx*0.711-vy)+ vx=vx-d; vy=vy-d+ l=np.hypot(vx,vy)+ if mode==0:+ cm=0.25*contrast+0.5*spin+1.2+ return np.clip(l*0.035*cm,0,2)+ r=np.clip(1.5+l*0.12-0.17*min(10,t*1.2-4),-2,2)+ r=np.where(r<0.2,(r-0.2)*0.6+0.2,r)+ return r+def colorize(r, mode, c1=(0x50,0x84,0x6e)):+ if mode==1:+ c1p=np.maximum(0,1-2*np.abs(1-r)); c2p=np.maximum(0,1-2*r); cb=1-np.minimum(1,c1p+c2p)+ red=np.array([0xFE,0x5F,0x55])/255; blue=np.array([0,0x9D,0xFF])/255; black=0.6*np.array([79,99,103])/255+ out=c1p[...,None]*red+c2p[...,None]*blue+cb[...,None]*black+ fl=np.maximum(np.maximum(c1p,c2p)*5-4.4,0)[...,None]+ out=out*(1-fl)+fl+ else:+ c=np.array(c1)/255; C=c*0.9; L=np.minimum(c*1.3,1); D=c*0.7+ cm=0.25*1+1.2+ c1p=np.maximum(0,1-cm*np.abs(1-r)); c2p=np.maximum(0,1-cm*np.abs(r)); c3p=1-np.minimum(1,c1p+c2p)+ k=0.3+ out=k*C+(1-k)*(C*c1p[...,None]+L*c2p[...,None]+D*c3p[...,None])+ return (np.clip(out,0,1)*255).astype(np.uint8)+from PIL import Image, ImageDraw+W,H=55,56+yy,xx=np.mgrid[0:240,0:320].astype(float)+bg=colorize(paint(xx,yy,1,24.0),1)+bgim=Image.fromarray(bg).crop((160-60,120-61,160+60,120+61)).resize((W,H),Image.BOX).convert('RGBA')+J=Image.open(os.path.join(ROOT, 'assets', 'Jokers.png')).convert('RGBA').crop((0,0,71,95))+card=J.resize((36,48),Image.BOX)+rot=card.rotate(-8,resample=Image.BICUBIC,expand=True)+sh=Image.new('RGBA',rot.size,(0,0,0,0)); a=np.array(rot)[:,:,3]; sh.putalpha(Image.fromarray((a*0.45).astype(np.uint8)))+bgim.alpha_composite(sh,((W-rot.width)//2+2,(H-rot.height)//2+3))+bgim.alpha_composite(rot,((W-rot.width)//2,(H-rot.height)//2))+mask=Image.new('L',(W,H),0); ImageDraw.Draw(mask).rounded_rectangle((0,0,W-1,H-1),radius=6,fill=255)+out=Image.new('RGBA',(W,H),(0,0,0,0)); out.paste(bgim,(0,0),mask)+out.save(os.path.join(ROOT, 'src', 'icon.png'))diff --git a/games/balatro/tools/mkassets.py b/games/balatro/tools/mkassets.pynew file mode 100644index 00000000..564808c9--- /dev/null+++ b/games/balatro/tools/mkassets.py@@ -0,0 +1,395 @@+#!/usr/bin/env python3+"""Builds src/assets.c and src/assets.h from the PNGs in assets/.++Art: Balatro's 1x textures scaled down to the calculator's card size (35x47)+with a box filter, reduced to a few dozen colours per sprite and to one+255-colour palette per group, then coded with tools/rc.py.+Fonts: m6x11plus (Daniel Linssen) at its native size, a medium size made from+it, and a small 3-wide version drawn after it (tools/font_small.py).++Usage: mkassets.py [--check]"""+import os+import sys++import numpy as np+from PIL import Image, ImageDraw, ImageFont++sys.path.insert(0, os.path.dirname(__file__))+import faces # noqa: E402+import rc # noqa: E402++ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")+A = os.path.join(ROOT, "assets")+CW, CH = 35, 47+MAXCOL = 24 # colours per sprite+++def sheet(name):+ return Image.open(os.path.join(A, name)).convert("RGBA")+++def cell(im, x, y, w=71, h=95):+ return im.crop((x * w, y * h, x * w + w, y * h + h))+++def card(im, x, y):+ return cell(im, x, y).resize((CW, CH), Image.BOX)+++def crisp_alpha(img, thr=128):+ a = np.array(img)+ a[:, :, 3] = np.where(a[:, :, 3] >= thr, 255, 0)+ return Image.fromarray(a, "RGBA")+++# ------------------------------------------------------------------ sprites+# order in P_CENTERS (1..150) -> atlas position (x, y)+JOKER_POS = [+ (0, 0), (6, 1), (7, 1), (8, 1), (9, 1), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (0, 14), (1, 14), (2, 14), (3, 14),+ (4, 14), (7, 0), (2, 5), (6, 6), (4, 1), (5, 1), (5, 5), (1, 2), (2, 2), (3, 2), (4, 2), (0, 5), (6, 2), (4, 7),+ (8, 2), (1, 0), (1, 5), (7, 2), (2, 3), (3, 3), (4, 3), (5, 2), (6, 3), (7, 6), (8, 3), (9, 3), (0, 4), (1, 4),+ (2, 4), (1, 6), (3, 5), (0, 10), (1, 10), (2, 10), (3, 10), (4, 10), (5, 10), (6, 10), (7, 10), (8, 10), (9, 10),+ (0, 11), (1, 11), (2, 11), (3, 11), (4, 11), (5, 11), (6, 11), (7, 11), (8, 11), (9, 11), (0, 12), (1, 12), (2, 12),+ (3, 12), (4, 12), (5, 12), (6, 12), (7, 12), (8, 12), (9, 12), (0, 13), (1, 13), (2, 13), (3, 13), (4, 13), (5, 13),+ (6, 13), (7, 13), (8, 13), (9, 13), (7, 5), (0, 1), (1, 1), (9, 0), (9, 2), (5, 14), (6, 14), (7, 14), (8, 14),+ (9, 14), (0, 15), (1, 15), (4, 15), (7, 15), (2, 15), (8, 15), (3, 15), (9, 15), (6, 15), (5, 15), (5, 3), (3, 4),+ (2, 1), (3, 1), (9, 5), (0, 2), (8, 8), (4, 6), (5, 7), (9, 6), (9, 7), (0, 8), (1, 8), (2, 8), (1, 3), (6, 5),+ (0, 6), (0, 3), (0, 0), (8, 0), (5, 6), (6, 7), (4, 4), (4, 5), (8, 5), (5, 4), (6, 4), (7, 4), (8, 4), (9, 4),+ (8, 6), (1, 7), (7, 7), (8, 7), (2, 6), (0, 7), (7, 3), (2, 7), (3, 7), (9, 8), (3, 8), (4, 8), (5, 8), (6, 8),+ (7, 8),+]+# Shorter cards (the game shows only the top of their cell), and Wee Joker, the Joker art at 70%+CROP = {15: 28, 64: 35, 77: 39}+WEE = 123+SOUL_POS = [(2, 9), (3, 9), (4, 9), (5, 9), (6, 9), (7, 9)] # Hologram, Canio, Triboulet, Yorick, Chicot, Perkeo++TAROT_POS = [(i, 0) for i in range(10)] + [(i, 1) for i in range(10)] + [(0, 2), (1, 2)]+PLANET_POS = [(0, 3), (1, 3), (2, 3), (3, 3), (4, 3), (5, 3), (6, 3), (7, 3), (8, 3), (9, 2), (8, 2), (3, 2)]+SPECTRAL_POS = [(i, 4) for i in range(10)] + [(i, 5) for i in range(6)] + [(2, 2), (9, 3)]+VOUCHER_POS = [(0, 0), (3, 0), (4, 0), (0, 2), (2, 2), (3, 2), (5, 0), (6, 0), (1, 0), (2, 0), (1, 2), (7, 0), (4, 2),+ (5, 2), (6, 2), (7, 2)]+VOUCHER_POS += [(x, y + 1) for (x, y) in VOUCHER_POS]+# kinds: Arcana, Celestial, Standard, Buffoon, Spectral; sizes normal, jumbo, mega+BOOSTER_POS = [[(0, 0), (0, 2), (2, 2)], [(0, 1), (0, 3), (2, 3)], [(0, 6), (0, 7), (2, 7)], [(0, 8), (2, 8), (3, 8)],+ [(0, 4), (2, 4), (3, 4)]]+# Enhancers.png: back, base, stone, gold, bonus, mult, wild, lucky, glass, steel+ENH_POS = [(0, 0), (1, 0), (5, 0), (6, 0), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1)]+SEAL_POS = [(2, 0), (5, 4), (6, 4), (4, 4)] # Gold, Red, Blue, Purple+BLIND_ROWS = 31 # BlindChips.png rows (first frame of each), 34x34+TAG_POS = [(0, 0), (1, 0), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2), (2, 2), (3, 2), (4, 2),+ (1, 3), (2, 3), (3, 3), (4, 0), (5, 0), (5, 1), (5, 3), (4, 1), (0, 3), (5, 2), (4, 3)]+++def collect():+ """[(group, name, RGBA image)]"""+ out = []+ J = sheet("Jokers.png")+ for i, (x, y) in enumerate(JOKER_POS):+ im = card(J, x, y)+ if i in CROP:+ im = im.crop((0, 0, CW, CROP[i]))+ if i == WEE:+ im = cell(J, x, y).resize((25, 33), Image.BOX)+ out.append(("joker", f"J{i}", im))+ for i, (x, y) in enumerate(SOUL_POS):+ out.append(("joker", f"JSOUL{i}", card(J, x, y)))+ T = sheet("Tarots.png")+ for i, (x, y) in enumerate(TAROT_POS + PLANET_POS + SPECTRAL_POS):+ out.append(("cons", f"C{i}", card(T, x, y)))+ E = sheet("Enhancers.png")+ out.append(("cons", "SOULGEM", card(E, 0, 1)))+ V = sheet("Vouchers.png")+ for i, (x, y) in enumerate(VOUCHER_POS):+ out.append(("vouch", f"V{i}", card(V, x, y)))+ B = sheet("boosters.png")+ for k, row in enumerate(BOOSTER_POS):+ for s, (x, y) in enumerate(row):+ out.append(("vouch", f"P{k}_{s}", card(B, x, y)))+ for i, (x, y) in enumerate(ENH_POS):+ out.append(("deck", f"E{i}", card(E, x, y)))+ for i, (x, y) in enumerate(SEAL_POS):+ out.append(("deck", f"SEAL{i}", card(E, x, y)))+ out.append(("deck", "DEBUFF", card(E, 4, 0)))+ for i, f in enumerate(faces.make_faces(os.path.join(A, "8BitDeck.png"))):+ out.append(("deck", f"F{i}", f))+ BC = sheet("BlindChips.png")+ for r in range(BLIND_ROWS):+ out.append(("misc", f"B{r}", cell(BC, 0, r, 34, 34).resize((26, 26), Image.BOX)))+ TG = sheet("tags.png")+ for i, (x, y) in enumerate(TAG_POS):+ out.append(("misc", f"T{i}", cell(TG, x, y, 34, 34).resize((19, 19), Image.BOX)))+ logo = sheet("balatro.png")+ out.append(("logo", "LOGO", logo.resize((212, 138), Image.BOX)))+ sign = cell(sheet("ShopSignAnimation.png"), 0, 0, 113, 57)+ out.append(("misc", "SHOP", sign.resize((72, 36), Image.BOX)))+ chips = sheet("chips.png")+ out.append(("misc", "STAKE", chips.crop((0, 0, 29, 29)).resize((15, 15), Image.BOX)))+ out.append(("misc", "CHIP", chips.crop((0, 0, 29, 29)).resize((11, 11), Image.BOX))) # beside numbers+ return out+++def quantize_local(img, k):+ a = np.array(img)+ al = a[:, :, 3]+ rgb = Image.fromarray(np.ascontiguousarray(a[:, :, :3]))+ q = rgb.quantize(k, method=Image.MEDIANCUT, dither=Image.NONE).convert("RGB")+ return np.array(q), al+++def build_group(items, ncol=255):+ """Returns palette (list of rgb), [index arrays]."""+ locs = [quantize_local(im, MAXCOL) for (_, _, im) in items]+ pix = np.concatenate([rgb[al >= 128] for rgb, al in locs])+ uniq = np.unique(pix, axis=0)+ if len(uniq) <= ncol:+ pal = [tuple(c) for c in uniq]+ else:+ img = Image.fromarray(pix.reshape(1, -1, 3).astype(np.uint8))+ q = img.quantize(ncol, method=Image.MEDIANCUT, dither=Image.NONE)+ p = q.getpalette()[:3 * ncol]+ pal = [tuple(p[i:i + 3]) for i in range(0, len(p), 3)]+ P = np.array(pal, np.int32)+ out = []+ for rgb, al in locs:+ flat = rgb.reshape(-1, 3).astype(np.int32)+ d = ((flat[:, None, :] - P[None, :, :]) ** 2).sum(-1)+ idx = d.argmin(1).reshape(rgb.shape[:2]) + 1+ idx[al < 128] = 0+ # at most 64 distinct values per sprite for the coder+ out.append(idx)+ return pal, out+++def template(arrs):+ st = np.stack([a for a in arrs if a.shape == (CH, CW)])+ t = np.zeros(st.shape[1:], np.int32)+ for y in range(st.shape[1]):+ for x in range(st.shape[2]):+ v, c = np.unique(st[:, y, x], return_counts=True)+ t[y, x] = v[c.argmax()]+ return t+++def rgb565(c):+ r, g, b = (int(v) for v in c)+ return (r >> 3) << 11 | (g >> 2) << 5 | b >> 3+++# ------------------------------------------------------------------ fonts+# Three sizes of m6x11 (Daniel Linssen), for Balatro's type hierarchy:+# large m6x11 at its native size (11 pixel capitals): values, titles+# medium the same shapes 9 pixels high and 5 wide: names, headings+# small the shapes redrawn 3 pixels wide (7 pixel capitals): labels, texts+# plus condensed digits of the large size for long numbers. (The condensed+# medium, one column narrower, is made from the medium glyphs as they are+# drawn: see src/gfx.c.)+def glyphs_large():+ f = ImageFont.truetype(os.path.join(A, "m6x11plus.ttf"), 16)+ out = {}+ for c in range(32, 127):+ ch = chr(c)+ im = Image.new("L", (16, 20), 0)+ ImageDraw.Draw(im).text((0, 0), ch, font=f, fill=255)+ a = np.array(im)[3:17] > 127+ cols = np.nonzero(a.any(0))[0]+ gw = (cols.max() + 1) if len(cols) else 0+ adv = int(f.getlength(ch))+ if ch == " ":+ adv = 4+ out[ch] = (max(adv, gw + 1), a[:, :gw])+ return out, 14+++def narrow(m):+ """One column less: remove a column whose ink never belongs to a+ two pixel wide stroke, preferring the middle."""+ w = m.shape[1]+ for c in (w // 2, w // 2 - 1, w // 2 + 1, w // 2 - 2, w // 2 + 2):+ if c <= 0 or c >= w - 1:+ continue+ ok = True+ for r in range(m.shape[0]):+ if not m[r, c]:+ continue+ run_l = c+ while run_l > 0 and m[r, run_l - 1]:+ run_l -= 1+ run_r = c+ while run_r < w - 1 and m[r, run_r + 1]:+ run_r += 1+ if run_r - run_l + 1 == 2:+ ok = False+ break+ if ok:+ return np.delete(m, c, axis=1)+ return np.delete(m, w // 2, axis=1)+++def glyphs_medium():+ big, _ = glyphs_large()+ out = {}+ for ch, (adv, m) in big.items():+ m = np.delete(m, [1, 5], axis=0) # the doubled top bar and middle row+ if m.shape[1] == 6 or (m.shape[1] == 7 and ch in "xXvVyY"):+ m = narrow(m)+ adv -= 1+ out[ch] = (adv, m)+ return out, 12+++def glyphs_large_digits():+ """Condensed digits (5 wide) and punctuation for long numbers."""+ big, _ = glyphs_large()+ out = {}+ for ch in "0123456789":+ adv, m = big[ch]+ out[ch] = (adv - 1, narrow(m))+ return out+++def glyphs_small():+ import font_small+ out = {}+ for ch, rows in font_small.GLYPHS.items():+ w = max(len(r) for r in rows)+ m = np.zeros((font_small.HEIGHT, w), bool)+ for y, r in enumerate(rows):+ for x, v in enumerate(r):+ m[y, x] = v == "#"+ out[ch] = (w + 1 if ch != " " else 3, m)+ return out, font_small.HEIGHT+++def pack_font(gl, h, chars=None):+ """Glyph table: per char (offset, width, advance); column-major bits."""+ bits = []+ table = []+ for ch in (chars or [chr(c) for c in range(32, 127)]):+ adv, m = gl[ch]+ w = m.shape[1]+ table.append((len(bits), w, adv))+ for x in range(w):+ for y in range(h):+ bits.append(1 if (y < m.shape[0] and m[y, x]) else 0)+ data = bytearray((len(bits) + 7) // 8)+ for i, b in enumerate(bits):+ if b:+ data[i >> 3] |= 1 << (i & 7)+ return table, bytes(data)+++# ------------------------------------------------------------------ output+GROUPS = ["joker", "cons", "vouch", "deck", "misc", "logo"]+TEMPLATED = {"joker", "cons", "vouch"}+++def carr(name, data, typ="uint8_t", per=24):+ s = f"const {typ} {name}[{len(data)}] = {{\n"+ for i in range(0, len(data), per):+ s += " " + ",".join(str(v) for v in data[i:i + per]) + ",\n"+ return s + "};\n"+++def main():+ check = "--check" in sys.argv+ items = collect()+ blob = bytearray()+ sprites = [] # (off, w, h, group)+ pals = []+ tmpls = {}+ names = []+ total_by_group = {}+ for gi, g in enumerate(GROUPS):+ its = [it for it in items if it[0] == g]+ pal, arrs = build_group(its)+ pals.append(pal)+ tm = None+ if g in TEMPLATED:+ tm = template(arrs)+ tmpls[g] = len(sprites) # the template is coded as an extra sprite, before the group+ data = rc.encode_sprite(tm.tolist(), CW, CH)+ sprites.append((len(blob), CW, CH, gi))+ names.append(f"TMPL_{g.upper()}")+ blob += data+ start = len(blob)+ for (grp, name, im), arr in zip(its, arrs):+ h, w = arr.shape+ if len(set(arr.flatten().tolist())) > 256:+ raise SystemExit(f"{name}: too many colours")+ t = tm.tolist() if tm is not None and w == CW else None+ data = rc.encode_sprite(arr.tolist(), w, h, t)+ if check:+ back = rc.decode_sprite(data, w, h, t)+ assert back == arr.tolist(), name+ sprites.append((len(blob), w, h, gi))+ names.append(name)+ blob += data+ total_by_group[g] = len(blob) - start+ blob += bytes(4) # the decoder may read a few bytes ahead+ # fonts+ fs, hs = glyphs_small()+ fm, hm = glyphs_medium()+ fl, hl = glyphs_large()+ ts, ds = pack_font(fs, hs, [chr(c) for c in range(32, 131)])+ tm, dm = pack_font(fm, hm)+ tl, dl = pack_font(fl, hl)+ tc, dc = pack_font(glyphs_large_digits(), hl, "0123456789")++ h = ["/* Generated by tools/mkassets.py: do not edit. */", "#ifndef ASSETS_H", "#define ASSETS_H",+ "#include <stdint.h>", ""]+ h.append(f"#define ART_CW {CW}\n#define ART_CH {CH}")+ h.append(f"#define ART_NSPRITES {len(sprites)}\n#define ART_NGROUPS {len(GROUPS)}")+ for g, i in tmpls.items():+ h.append(f"#define ART_TMPL_{g.upper()} {i}")+ for gi, g in enumerate(GROUPS):+ h.append(f"#define ART_G_{g.upper()} {gi}")+ # first index of each named family+ fam = {}+ for i, n in enumerate(names):+ key = n.rstrip("0123456789_")+ fam.setdefault(key, i)+ for k, v in fam.items():+ h.append(f"#define SPR_{k} {v}")+ h.append("typedef struct { uint32_t off : 24, group : 8; uint8_t w, h; } art_sprite_t;")+ h.append("extern const art_sprite_t art_sprites[ART_NSPRITES];")+ h.append("extern const uint8_t art_blob[];")+ h.append("extern const uint16_t art_pal[]; /* the groups' palettes, one after the other */")+ h.append("extern const uint16_t art_pal_off[ART_NGROUPS];")+ h.append("extern const int16_t art_tmpl_of_group[ART_NGROUPS];")+ h.append("typedef struct { uint16_t off; uint8_t w, adv; } glyph_t;")+ h.append(f"#define FONT_SMALL_H {hs}\n#define FONT_MED_H {hm}\n#define FONT_LARGE_H {hl}")+ h.append("extern const glyph_t font_small[99], font_med[95], font_large[95], font_large_digits[10];")+ h.append("extern const uint8_t font_small_bits[], font_med_bits[], font_large_bits[], font_large_digits_bits[];")+ h.append("#endif")+ c = ["/* Generated by tools/mkassets.py from Balatro's art (LocalThunk) and the m6x11 font"+ " (Daniel Linssen): do not edit. */", '#include "assets.h"', ""]+ c.append("const art_sprite_t art_sprites[ART_NSPRITES] = {")+ for off, w, hh, g in sprites:+ c.append(f" {{{off}, {g}, {w}, {hh}}},")+ c.append("};")+ c.append(carr("art_blob", blob))+ # each palette only as long as it is used (entry 0 is transparent)+ c.append("const uint16_t art_pal[] = {")+ offs, n = [], 0+ for pal in pals:+ vals = [0] + [rgb565(p) for p in pal]+ offs.append(n)+ n += len(vals)+ c.append(" " + ",".join(f"0x{v:04X}" for v in vals) + ",")+ c.append("};")+ c.append("const uint16_t art_pal_off[ART_NGROUPS] = {" + ",".join(map(str, offs)) + "};")+ c.append("const int16_t art_tmpl_of_group[ART_NGROUPS] = {" ++ ",".join(str(tmpls.get(g, -1)) for g in GROUPS) + "};")+ for nm, tab, data in (("font_small", ts, ds), ("font_med", tm, dm), ("font_large", tl, dl),+ ("font_large_digits", tc, dc)):+ c.append(f"const glyph_t {nm}[{len(tab)}] = {{" + ",".join(f"{{{o},{w},{a}}}" for o, w, a in tab) + "};")+ c.append(carr(nm + "_bits", data))+ open(os.path.join(ROOT, "src", "assets.h"), "w").write("\n".join(h) + "\n")+ open(os.path.join(ROOT, "src", "assets.c"), "w").write("\n".join(c) + "\n")+ print(f"sprites {len(sprites)}, art {len(blob)} bytes:",+ ", ".join(f"{g} {n}" for g, n in total_by_group.items()),+ f"| fonts {len(ds) + len(dm) + len(dl) + len(dc)} bytes, palettes {2 * sum(len(p) + 1 for p in pals)}")+++if __name__ == "__main__":+ main()diff --git a/games/balatro/tools/mkdata.py b/games/balatro/tools/mkdata.pynew file mode 100644index 00000000..98f95f4a--- /dev/null+++ b/games/balatro/tools/mkdata.py@@ -0,0 +1,328 @@+#!/usr/bin/env python3+"""Builds src/data.c and src/data.h (names, prices, rarities, descriptions)+from Balatro's own game data: game.lua and localization/en-us.lua.++Usage: mkdata.py PATH_TO_BALATRO_SOURCE++Descriptions keep the game's wording and colours. Colour tags become the+control codes of src/gfx.h, and #n# placeholders become bytes 0x11+n-1, filled+in at run time."""+import os+import re+import sys++ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")+++# ------------------------------------------------------------------ lua+class Lua:+ def __init__(self, s):+ self.s = s+ self.i = 0++ def ws(self):+ s = self.s+ while self.i < len(s):+ if s[self.i] in " \t\r\n,;":+ self.i += 1+ elif s.startswith("--", self.i):+ while self.i < len(s) and s[self.i] != "\n":+ self.i += 1+ else:+ break++ def value(self):+ self.ws()+ s = self.s+ c = s[self.i]+ if c == "{":+ return self.table()+ if c in "\"'":+ q = c+ self.i += 1+ out = []+ while s[self.i] != q:+ if s[self.i] == "\\":+ self.i += 1+ out.append({"n": "\n", "t": "\t"}.get(s[self.i], s[self.i]))+ else:+ out.append(s[self.i])+ self.i += 1+ self.i += 1+ return "".join(out)+ m = re.compile(r"-?\d+(\.\d+)?").match(s, self.i)+ if m:+ self.i = m.end()+ return float(m.group()) if "." in m.group() else int(m.group())+ m = re.compile(r"[A-Za-z_][A-Za-z_0-9.]*").match(s, self.i)+ self.i = m.end()+ w = m.group()+ return {"true": True, "false": False, "nil": None}.get(w, w)++ def table(self):+ self.i += 1+ d, arr = {}, []+ while True:+ self.ws()+ if self.s[self.i] == "}":+ self.i += 1+ break+ m = re.compile(r"([A-Za-z_][A-Za-z_0-9]*)\s*=(?!=)").match(self.s, self.i)+ if m:+ self.i = m.end()+ d[m.group(1)] = self.value()+ continue+ m = re.compile(r"\[\s*(\"[^\"]*\"|'[^']*'|\d+)\s*\]\s*=").match(self.s, self.i)+ if m:+ self.i = m.end()+ k = m.group(1)+ d[k.strip("\"'") if k[0] in "\"'" else int(k)] = self.value()+ continue+ arr.append(self.value())+ if arr and not d:+ return arr+ if arr:+ d["_"] = arr+ return d+++def centers(game_lua):+ """P_CENTERS / P_TAGS / P_BLINDS entries, one per line: key -> dict of simple fields."""+ out = {}+ for line in game_lua.split("\n"):+ m = re.match(r"\s*([a-z]+_[a-z0-9_]+)\s*=\s*(\{.*\}),?\s*$", line)+ if not m:+ continue+ body = m.group(2)+ body = re.sub(r"HEX\('([0-9a-fA-F]+)'\)", r"'\1'", body)+ body = re.sub(r"localize\('([a-z_]+)'\)", r"'\1'", body)+ body = body.replace("9.6/4", "2.4").replace("32/4", "8")+ body = re.sub(r"G\.[A-Za-z_.]+", "0", body)+ try:+ v = Lua(body).value()+ if isinstance(v, dict):+ out[m.group(1)] = v+ except Exception:+ pass+ return out+++# ------------------------------------------------------------------ text+CODES = {+ "mult": "\x03", "red": "\x03", "chips": "\x02", "blue": "\x02", "attention": "\x04", "important": "\x04",+ "filter": "\x04", "orange": "\x04", "money": "\x05", "gold": "\x05", "yellow": "\x05", "green": "\x06",+ "inactive": "\x07", "tarot": "\x08", "purple": "\x08", "legendary": "\x08", "planet": "\x09",+ "spectral": "\x0B", "dark_edition": "\x0F", "edition": "\x0F", "white": "\x01", "clubs": "\x04",+ "hearts": "\x03", "diamonds": "\x04", "spades": "\x0C", "grey": "\x07", "joy_spades": "\x04",+ "voucher": "\x04", "rare": "\x03", "uncommon": "\x06", "common": "\x02",+}+++def conv(line):+ def tag(m):+ body = m.group(1)+ if body == "":+ return "\x10"+ parts = dict(p.split(":", 1) for p in body.split(",") if ":" in p)+ if parts.get("X") in ("mult", "red"):+ return "\x0E"+ if "X" in parts:+ return "\x04"+ if "V" in parts:+ return "\x04"+ c = parts.get("C")+ if c is None:+ return ""+ return CODES.get(c, "\x04")+ line = re.sub(r"\{([^}]*)\}", tag, line)+ line = re.sub(r"#(\d)#", lambda m: chr(0x10 + int(m.group(1))), line)+ return line+++def cstr(s):+ out = []+ for ch in s:+ o = ord(ch)+ if ch == "\\" or ch == '"':+ out.append("\\" + ch)+ elif o < 32 or o > 126:+ out.append(f"\\x{o:02X}\"\"")+ else:+ out.append(ch)+ return '"' + "".join(out) + '"'+++TEXT_GET = r"""+static char *expand(char *o, char *end, int c) {+ if (c < 0x80) {+ if (o < end) *o++ = (char)c;+ return o;+ }+ o = expand(o, end, text_pairs[c - 0x80][0]);+ return expand(o, end, text_pairs[c - 0x80][1]);+}++const char *text_get(int idx, int part) {+ static char bufs[4][220];+ static int k;+ char *b = bufs[k = (k + 1) & 3], *o = b;+ const uint8_t *p = text_blob + text_off[idx];+ if (part)+ while (*p++) {}+ while (*p) o = expand(o, b + sizeof bufs[0] - 1, *p++);+ *o = 0;+ return b;+}+"""+++def main():+ src = sys.argv[1]+ game = open(os.path.join(src, "game.lua")).read()+ loc = Lua(open(os.path.join(src, "localization", "en-us.lua")).read().split("return", 1)[1]).value()+ C = centers(game)+ D = loc["descriptions"]+ misc = loc["misc"]++ jokers = sorted([(v["order"], k, v) for k, v in C.items() if k.startswith("j_") and "order" in v])+ tarots = sorted([(v["order"], k, v) for k, v in C.items() if v.get("set") == "Tarot" and k.startswith("c_")])+ planets = sorted([(v["order"], k, v) for k, v in C.items() if v.get("set") == "Planet" and k.startswith("c_")])+ spectrals = sorted([(v["order"], k, v) for k, v in C.items() if v.get("set") == "Spectral" and k.startswith("c_")])+ vouchers = sorted([(v["order"], k, v) for k, v in C.items() if v.get("set") == "Voucher" and k.startswith("v_")])+ tags = sorted([(v["order"], k, v) for k, v in C.items() if k.startswith("tag_") and "order" in v])+ blinds = [(k, v) for k, v in C.items() if k.startswith("bl_")]+ blinds.sort(key=lambda kv: kv[1]["pos"]["y"])+ assert len(jokers) == 150 and len(tarots) == 22 and len(planets) == 12 and len(spectrals) == 18+ assert len(vouchers) == 32 and len(tags) == 24 and len(blinds) == 30, (len(vouchers), len(tags), len(blinds))+ # vouchers in sprite order: 16 base ones by order, then the upgrade of each+ base = [x for x in vouchers if x[0] % 2 == 1]+ up = [x for x in vouchers if x[0] % 2 == 0]+ vouchers = base + up++ texts = [] # (name, description)++ def desc(cat, key):+ e = D[cat][key]+ lines = e.get("text", [])+ return e["name"], "\n".join(conv(l) for l in lines)++ rows = []+ for o, k, v in jokers:+ n, t = desc("Joker", k)+ rows.append(("J", k, n, t, v))+ for grp, cat in ((tarots, "Tarot"), (planets, "Planet"), (spectrals, "Spectral")):+ for o, k, v in grp:+ n, t = desc(cat, k)+ rows.append(("C", k, n, t, v))+ for o, k, v in vouchers:+ n, t = desc("Voucher", k)+ rows.append(("V", k, n, t, v))+ for o, k, v in tags:+ n, t = desc("Tag", k)+ rows.append(("T", k, n, t, v))+ for k, v in blinds:+ n, t = desc("Blind", k)+ rows.append(("B", k, n, t, v))+ extra = [("Enhanced", k) for k in ["m_bonus", "m_mult", "m_wild", "m_glass", "m_steel", "m_stone", "m_gold",+ "m_lucky"]]+ extra += [("Edition", k) for k in ["e_foil", "e_holo", "e_polychrome", "e_negative"]]+ extra += [("Other", k) for k in ["gold_seal", "red_seal", "blue_seal", "purple_seal"]]+ extra += [("Other", k) for k in ["p_arcana_normal", "p_arcana_jumbo", "p_arcana_mega", "p_celestial_normal",+ "p_celestial_jumbo", "p_celestial_mega", "p_standard_normal",+ "p_standard_jumbo", "p_standard_mega", "p_buffoon_normal",+ "p_buffoon_jumbo", "p_buffoon_mega", "p_spectral_normal",+ "p_spectral_jumbo", "p_spectral_mega"]]+ extra += [("Back", "b_red")]+ for cat, k in extra:+ n, t = desc(cat, k)+ rows.append(("X", k, n, t, {}))++ # string blob, compressed with byte pair encoding (codes 0x80..0xFF)+ raw = [(r[2] + "\0" + r[3] + "\0").encode("latin1") for r in rows]+ pairs = []+ seqs = [list(x) for x in raw]+ for code in range(0x80, 0x100):+ counts = {}+ for sq in seqs:+ for i in range(len(sq) - 1):+ if sq[i] and sq[i + 1]:+ counts[(sq[i], sq[i + 1])] = counts.get((sq[i], sq[i + 1]), 0) + 1+ if not counts:+ break+ best = max(counts, key=counts.get)+ if counts[best] < 3:+ break+ pairs.append(best)+ for k, sq in enumerate(seqs):+ out, i = [], 0+ while i < len(sq):+ if i + 1 < len(sq) and (sq[i], sq[i + 1]) == best:+ out.append(code)+ i += 2+ else:+ out.append(sq[i])+ i += 1+ seqs[k] = out+ blob = b"".join(bytes(x) for x in seqs)+ offs = []+ pos = 0+ for sq in seqs:+ offs.append(pos)+ pos += len(sq)+ h = ["/* Generated by tools/mkdata.py from Balatro's game data: do not edit. */", "#ifndef DATA_H",+ "#define DATA_H", "#include <stdint.h>", ""]+ idx = 0+ for tag, name in (("J", "JOKER"), ("C", "CONS"), ("V", "VOUCH"), ("T", "TAG"), ("B", "BLIND"), ("X", "EXTRA")):+ n = sum(1 for r in rows if r[0] == tag)+ h.append(f"#define TXT_{name} {idx}\n#define N_{name} {n}")+ idx += n+ h.append(f"#define N_TEXTS {idx}")+ def ename(k, pre):+ return pre + re.sub(r"^(j|c|v|tag|bl)_", "", k).upper()+ for pre, lst in (("J_", [k for o, k, v in jokers]), ("C_", [k for o, k, v in tarots + planets + spectrals]),+ ("V_", [k for o, k, v in vouchers]), ("TAG_", [k for o, k, v in tags]),+ ("BL_", [k for k, v in blinds])):+ h.append("enum { " + ", ".join(ename(k, pre) for k in lst) + " };")+ h.append("extern const uint8_t text_blob[];")+ h.append("extern const uint8_t text_pairs[128][2];")+ h.append("const char *text_get(int idx, int part); /* 0 name, 1 description; decoded */")+ h.append("extern const uint16_t text_off[N_TEXTS];")+ h.append("typedef struct { uint8_t rarity, cost, bp; } joker_info_t;")+ h.append("extern const joker_info_t joker_info[N_JOKER];")+ h.append("typedef struct { uint8_t dollars, mult2, min, showdown; uint32_t colour; } blind_info_t;")+ h.append("extern const blind_info_t blind_info[N_BLIND];")+ h.append("typedef struct { int8_t min_ante; } tag_info_t;")+ h.append("extern const tag_info_t tag_info[N_TAG];")+ h.append("extern const char *const hand_names[12];")+ h.append("#endif")+ c = ["/* Generated by tools/mkdata.py from Balatro's game data (LocalThunk): do not edit. */",+ '#include "data.h"', ""]+ c.append("const uint8_t text_blob[%d] = {" % len(blob))+ for i in range(0, len(blob), 24):+ c.append(" " + ",".join(str(v) for v in blob[i:i + 24]) + ",")+ c.append("};")+ c.append("const uint8_t text_pairs[128][2] = {" + ",".join("{%d,%d}" % p for p in pairs) + "};")+ c.append(TEXT_GET)+ c.append("const uint16_t text_off[N_TEXTS] = {" + ",".join(map(str, offs)) + "};")+ c.append("const joker_info_t joker_info[N_JOKER] = {")+ for o, k, v in jokers:+ c.append(f" {{{v['rarity']}, {v['cost']}, {1 if v.get('blueprint_compat') else 0}}}, /* {v['name']} */")+ c.append("};")+ c.append("const blind_info_t blind_info[N_BLIND] = {")+ for k, v in blinds:+ boss = v.get("boss") or {}+ col = int(v.get("boss_colour", "0"), 16) if v.get("boss_colour") else 0+ c.append(f" {{{v['dollars']}, {int(v['mult'] * 2)}, {boss.get('min', 0)}, {1 if boss.get('showdown') else 0},"+ f" 0x{col:06X}}}, /* {v['name']} */")+ c.append("};")+ c.append("const tag_info_t tag_info[N_TAG] = {" + ",".join(+ f"{{{v.get('min_ante') or 0}}}" for o, k, v in tags) + "};")+ hands = ["Flush Five", "Flush House", "Five of a Kind", "Straight Flush", "Four of a Kind", "Full House", "Flush",+ "Straight", "Three of a Kind", "Two Pair", "Pair", "High Card"]+ c.append("const char *const hand_names[12] = {" + ",".join(cstr(misc["poker_hands"][x]) for x in hands) + "};")+ open(os.path.join(ROOT, "src", "data.h"), "w").write("\n".join(h) + "\n")+ open(os.path.join(ROOT, "src", "data.c"), "w").write("\n".join(c) + "\n")+ print("texts", len(rows), "bytes", pos, "(raw", sum(len(x) for x in raw), ") pairs", len(pairs))++if __name__ == "__main__":+ main()diff --git a/games/balatro/tools/rc.py b/games/balatro/tools/rc.pynew file mode 100644index 00000000..3e5210c7--- /dev/null+++ b/games/balatro/tools/rc.py@@ -0,0 +1,223 @@+"""The sprite coder, mirrored by src/art.c.++Each sprite is coded on its own (so any one can be decoded on demand) with a+binary range coder (the one LZMA uses) and a small context model made for+pixel art. Pixels are palette indices (0 = transparent), row by row. For each+pixel, in order, a flag says whether it equals:+ 1. the group template at the same place (the common card frame), if any;+ 2. the pixel to the left; 3. the pixel above; 4. the pixel above right;+and otherwise its index in the sprite's local palette follows, bit by bit.+Candidates equal to an earlier one are skipped. Contexts are small tuples of+equalities between the neighbours."""++PROB_BITS = 11+PROB_INIT = 1 << (PROB_BITS - 1)+SHIFT = 4+TOP = 1 << 24+++class Encoder:+ def __init__(self):+ self.low = 0+ self.range = 0xFFFFFFFF+ self.cache = 0+ self.cache_size = 1+ self.out = bytearray()++ def _shift_low(self):+ if self.low < 0xFF000000 or self.low >= 1 << 32:+ carry = self.low >> 32+ temp = self.cache+ while True:+ self.out.append((temp + carry) & 0xFF)+ temp = 0xFF+ self.cache_size -= 1+ if self.cache_size == 0:+ break+ self.cache = (self.low >> 24) & 0xFF+ self.cache_size += 1+ self.low = (self.low << 8) & 0xFFFFFFFF++ def bit(self, probs, i, b):+ p = probs[i]+ bound = (self.range >> PROB_BITS) * p+ if b == 0:+ self.range = bound+ probs[i] = p + (((1 << PROB_BITS) - p) >> SHIFT)+ else:+ self.low += bound+ self.range -= bound+ probs[i] = p - (p >> SHIFT)+ while self.range < TOP:+ self.range = (self.range << 8) & 0xFFFFFFFF+ self._shift_low()++ def direct(self, v, n):+ for k in range(n - 1, -1, -1):+ self.range >>= 1+ if (v >> k) & 1:+ self.low += self.range+ while self.range < TOP:+ self.range = (self.range << 8) & 0xFFFFFFFF+ self._shift_low()++ def finish(self):+ for _ in range(5):+ self._shift_low()+ # the first byte is always 0 in LZMA's scheme: drop it (the decoder starts past it)+ return bytes(self.out[1:])+++# context slots+C_T, C_L, C_U, C_R, C_LIT = 0, 16, 32, 36, 40+NPROBS = C_LIT + 256+++def nbits(n):+ b = 0+ while (1 << b) < n:+ b += 1+ return b+++def encode_sprite(pix, w, h, tmpl=None):+ """pix: list of rows of global indices (0..255). Returns bytes."""+ e = Encoder()+ probs = [PROB_INIT] * NPROBS+ pal = sorted(set(v for row in pix for v in row))+ e.direct(len(pal) - 1, 8)+ for v in pal:+ e.direct(v, 8)+ lb = nbits(len(pal))+ loc = {v: i for i, v in enumerate(pal)}+ for y in range(h):+ for x in range(w):+ p = pix[y][x]+ L = pix[y][x - 1] if x > 0 else -1+ U = pix[y - 1][x] if y > 0 else -1+ UL = pix[y - 1][x - 1] if x > 0 and y > 0 else -1+ UR = pix[y - 1][x + 1] if y > 0 and x < w - 1 else -1+ seen = []+ if tmpl is not None:+ t = tmpl[y][x]+ lt = (tmpl[y][x - 1] == L) if x > 0 else 1+ ut = (tmpl[y - 1][x] == U) if y > 0 else 1+ ctx = C_T + (lt | ut << 1 | (t == L) << 2 | (t == U) << 3)+ e.bit(probs, ctx, p == t)+ if p == t:+ continue+ seen.append(t)+ if L >= 0 and L not in seen:+ ctx = C_L + ((U == L) | (UL == L) << 1 | (UR == U) << 2 | (UL == U) << 3)+ e.bit(probs, ctx, p == L)+ if p == L:+ continue+ seen.append(L)+ if U >= 0 and U not in seen:+ ctx = C_U + ((UL == U) | (UR == U) << 1)+ e.bit(probs, ctx, p == U)+ if p == U:+ continue+ seen.append(U)+ if UR >= 0 and UR not in seen:+ e.bit(probs, C_R, p == UR)+ if p == UR:+ continue+ seen.append(UR)+ s = loc[p]+ node = 1+ for k in range(lb - 1, -1, -1):+ b = (s >> k) & 1+ e.bit(probs, C_LIT + node, b)+ node = node * 2 + b+ return e.finish()+++class Decoder:+ """Only for checking the encoder in Python."""++ def __init__(self, data):+ self.d = data+ self.i = 0+ self.range = 0xFFFFFFFF+ self.code = 0+ for _ in range(4):+ self.code = (self.code << 8) | self._byte()++ def _byte(self):+ b = self.d[self.i] if self.i < len(self.d) else 0+ self.i += 1+ return b++ def bit(self, probs, i):+ p = probs[i]+ bound = (self.range >> PROB_BITS) * p+ if self.code < bound:+ self.range = bound+ probs[i] = p + (((1 << PROB_BITS) - p) >> SHIFT)+ b = 0+ else:+ self.code -= bound+ self.range -= bound+ probs[i] = p - (p >> SHIFT)+ b = 1+ while self.range < TOP:+ self.range = (self.range << 8) & 0xFFFFFFFF+ self.code = ((self.code << 8) | self._byte()) & 0xFFFFFFFF+ return b++ def direct(self, n):+ v = 0+ for _ in range(n):+ self.range >>= 1+ b = 1 if self.code >= self.range else 0+ if b:+ self.code -= self.range+ v = v << 1 | b+ while self.range < TOP:+ self.range = (self.range << 8) & 0xFFFFFFFF+ self.code = ((self.code << 8) | self._byte()) & 0xFFFFFFFF+ return v+++def decode_sprite(data, w, h, tmpl=None):+ d = Decoder(data)+ probs = [PROB_INIT] * NPROBS+ n = d.direct(8) + 1+ pal = [d.direct(8) for _ in range(n)]+ lb = nbits(n)+ pix = [[0] * w for _ in range(h)]+ for y in range(h):+ for x in range(w):+ L = pix[y][x - 1] if x > 0 else -1+ U = pix[y - 1][x] if y > 0 else -1+ UL = pix[y - 1][x - 1] if x > 0 and y > 0 else -1+ UR = pix[y - 1][x + 1] if y > 0 and x < w - 1 else -1+ seen = []+ v = None+ if tmpl is not None:+ t = tmpl[y][x]+ lt = (tmpl[y][x - 1] == L) if x > 0 else 1+ ut = (tmpl[y - 1][x] == U) if y > 0 else 1+ if d.bit(probs, C_T + (lt | ut << 1 | (t == L) << 2 | (t == U) << 3)):+ v = t+ seen.append(t)+ if v is None and L >= 0 and L not in seen:+ if d.bit(probs, C_L + ((U == L) | (UL == L) << 1 | (UR == U) << 2 | (UL == U) << 3)):+ v = L+ seen.append(L)+ if v is None and U >= 0 and U not in seen:+ if d.bit(probs, C_U + ((UL == U) | (UR == U) << 1)):+ v = U+ seen.append(U)+ if v is None and UR >= 0 and UR not in seen:+ if d.bit(probs, C_R):+ v = UR+ seen.append(UR)+ if v is None:+ node = 1+ for _ in range(lb):+ node = node * 2 + d.bit(probs, C_LIT + node)+ v = pal[node - (1 << lb)]+ pix[y][x] = v+ return pixdiff --git a/games/buckshot/.gitignore b/games/buckshot/.gitignorenew file mode 100644index 00000000..ab21ce1d--- /dev/null+++ b/games/buckshot/.gitignore@@ -0,0 +1,5 @@+output/+__pycache__/+# Scenes and sprites rendered from the original game: inputs of tools/pack.py,+# kept out of the repository. src/assets.c holds the art the app uses.+assets/diff --git a/games/buckshot/Makefile b/games/buckshot/Makefilenew file mode 100644index 00000000..e1e53c8c--- /dev/null+++ b/games/buckshot/Makefile@@ -0,0 +1,68 @@+# Buckshot: Buckshot Roulette for the NumWorks calculator (part of NumPlay).+# make build output/buckshot.nwa+# make run install on a connected calculator+# make check link the app like the calculator does, print the installed size+# make sim output/buckshot.nwb for the Epsilon simulator+# make assets rebuild src/assets.c from assets/ (tools/pack.py)+Q ?= @+CC = arm-none-eabi-gcc+NWLINK = npx --yes -- [email protected]+BUILD_DIR = output+SRC = src/main.c src/game.c src/scene.c src/anim.c src/story.c src/gfx.c src/pixcode.c src/assets.c src/font.c src/libc.c+HDR = $(wildcard src/*.h)++CFLAGS = -std=c99 $(shell $(NWLINK) eadk-cflags-device)+CFLAGS += -Os -Wall -fno-math-errno -fno-tree-loop-distribute-patterns -fno-reorder-functions -flto-partition=one+CFLAGS += -flto -fno-fat-lto-objects -fwhole-program -fvisibility=internal+LDFLAGS = -Wl,--relocatable -nostartfiles --specs=nano.specs+LDFLAGS += -Wl,-e,main -Wl,-u,eadk_app_name -Wl,-u,eadk_app_icon -Wl,-u,eadk_api_level+LDFLAGS += -Wl,--gc-sections -flinker-output=nolto-rel++.PHONY: build run check sim assets clean+build: $(BUILD_DIR)/buckshot.nwa++run: $(BUILD_DIR)/buckshot.nwa+ @echo "INSTALL $<"+ $(Q) $(NWLINK) install-nwa $<++check: $(BUILD_DIR)/buckshot.nwa+ $(Q) $(NWLINK) nwa-bin $< $(BUILD_DIR)/buckshot.bin+ @echo "BIN $(BUILD_DIR)/buckshot.bin: $$(wc -c < $(BUILD_DIR)/buckshot.bin) bytes"++$(BUILD_DIR)/buckshot.nwa: $(SRC) $(HDR) $(BUILD_DIR)/icon.o+ @echo "LD $@"+ $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(SRC) $(BUILD_DIR)/icon.o -o $@+ $(Q) arm-none-eabi-strip --strip-unneeded $@+ $(Q) arm-none-eabi-size $@++$(BUILD_DIR)/icon.o: src/icon.png | $(BUILD_DIR)+ @echo "ICON $<"+ $(Q) $(NWLINK) png-icon-o $< $@++$(BUILD_DIR):+ $(Q) mkdir -p $@++assets:+ python3 tools/pack.py++sim: $(BUILD_DIR)/buckshot.nwb+$(BUILD_DIR)/buckshot.nwb: $(SRC) $(HDR) ../../launcher/sim/sim.c | $(BUILD_DIR)+ $(Q) cc -std=c99 -O2 -fPIC $(shell $(NWLINK) eadk-cflags-simulator) -shared -undefined dynamic_lookup \+ $(filter-out src/libc.c,$(SRC)) ../../launcher/sim/sim.c -o $@++clean:+ $(Q) rm -rf $(BUILD_DIR)++# NumPlay launcher: the game as a module (see ../../tools/npmodule.py) for the+# calculator, and as a relocatable object for the simulator build.+.PHONY: module sim-module+module: $(BUILD_DIR)/module.o+$(BUILD_DIR)/module.o: $(SRC) $(HDR) | $(BUILD_DIR)+ $(Q) $(CC) $(CFLAGS) -Wl,--relocatable -nostartfiles -nostdlib -Wl,-e,main -flinker-output=nolto-rel $(SRC) -o $@++sim-module: $(BUILD_DIR)/sim-module.o+$(BUILD_DIR)/sim-module.o: $(SRC) $(HDR) | $(BUILD_DIR)+ $(Q) mkdir -p $(BUILD_DIR)/sim+ $(Q) for f in $(basename $(notdir $(filter-out src/libc.c,$(SRC)))); do cc -std=c99 -O2 -fPIC $(shell $(NWLINK) eadk-cflags-simulator) \+ -Dmain=np_buckshot_main -c src/$$f.c -o $(BUILD_DIR)/sim/$$f.o || exit 1; done+ $(Q) ld -r $(BUILD_DIR)/sim/*.o -exported_symbol _np_buckshot_main -o $@diff --git a/games/buckshot/README.md b/games/buckshot/README.mdnew file mode 100644index 00000000..b9e92f87--- /dev/null+++ b/games/buckshot/README.md@@ -0,0 +1,79 @@+> **Buckshot Roulette is part of [NumPlay](../../README.md)**, every NumWorks game in one app. Get it with all the others, or on its own as `BuckshotRoulette.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).++<p align="center">+ <img src="docs/icon.png" width="84" alt="Buckshot Roulette icon">+</p>++<h1 align="center">Buckshot Roulette</h1>++<p align="center">+ <b>Buckshot Roulette for the NumWorks N0120 calculator.</b><br>+ You, the Dealer, and a shotgun loaded in a hidden order.+</p>++<p align="center">+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/BuckshotRoulette.nwa"><b>Download BuckshotRoulette.nwa</b></a>+ · <a href="#controls">Controls</a>+</p>++<p align="center">+ <img src="docs/hero.gif" width="640" alt="The magnifying glass, a shot at the Dealer, and his turn">+</p>++## Highlights++* **The whole game:** wake up in the bathroom, walk to the club's back room, sign the waiver and face the Dealer over three rounds. Lose in round 1 or 2 and the defibrillator brings you back. Lose in round 3 and you are dead.+* **Every item:** hand saw, magnifying glass, beer, cigarettes and handcuffs, plus the burner phone, inverter, adrenaline and expired medicine in Double or Nothing.+* **The real rules:** the same loads, charges, item limits and wire cuts as the original, and a Dealer who decides the way he does there.+* **Double or Nothing:** pop the pills after beating the game once. Keep doubling your winnings or walk away. Your best run is kept.+* **The original's look:** every picture is rendered from the game's own scenes, with its dithered, low-color style. The Dealer looms over the table, and every item he or you use plays out with the game's own animations, down to him turning the barrel on you.+* **Pick up where you left off:** quit at any time and continue the same turn later. What is done is done: quitting in the middle of a shot never takes it back.++<table>+ <tr>+ <td align="center"><img src="docs/title.png" width="390" alt="Title"><br><sub>Title</sub></td>+ <td align="center"><img src="docs/waiver.png" width="390" alt="Signing the waiver"><br><sub>Please sign the waiver</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/shells.png" width="390" alt="The load"><br><sub>The shells of each load, shown before they go in</sub></td>+ <td align="center"><img src="docs/items.png" width="390" alt="Items on the table"><br><sub>Your items, his, and both sides' charges at the top</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/aim.png" width="390" alt="Aiming"><br><sub>Up for the Dealer, Down for yourself</sub></td>+ <td align="center"><img src="docs/dealer.png" width="390" alt="The Dealer aiming at you"><br><sub>His turn: the barrel turned on you</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/glass.png" width="390" alt="The Dealer using the magnifying glass"><br><sub>Every item he uses, as in the game</sub></td>+ <td align="center"><img src="docs/charges.png" width="390" alt="Charges"><br><sub>The charge display</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/ending.png" width="390" alt="The briefcase"><br><sub>Win, and the cash comes down onto the table</sub></td>+ <td align="center"><img src="docs/heaven.png" width="390" alt="Heaven"><br><sub>Lose the final round and it is over</sub></td>+ </tr>+</table>++## How to play++The shotgun holds a mix of live (red) and blank (blue) shells, loaded in a hidden order. On your turn, use as many items as you like, then take the shotgun and shoot the Dealer or yourself. A live shell costs a charge. Shooting yourself with a blank keeps your turn. Whoever runs out of charges loses the round.++In round 3 the defibrillators are cut once you are down to your last charges: no more healing, and the next hit is fatal.++## Controls++| Key | Action |+|---|---|+| Arrows | Move between your items and the shotgun; go up to the Dealer's items to read them |+| OK or EXE | Use the item, pick up the shotgun, fire |+| Up / Down | With the shotgun: aim at the Dealer / at yourself |+| Letter keys (with or without Alpha) or arrows | Type your name on the waiver (EXE signs) |+| Back | Pause menu (resume, or back to the main menu) |+| Home | Save and quit |++## Credits++Inspired by Buckshot Roulette by Mike Klubnika. Not affiliated with Mike Klubnika or Critical Reflex.++* Every picture is rendered from Buckshot Roulette's own scenes, models and textures, which are the work of Mike Klubnika, through the Open Buckshot Roulette project (1503Dev).+* Fonts: Fake Receipt by Ray Larabie (Typodermic Fonts) and Dot Matrix by Dionaea.++Made by Mason Chen as part of NumPlay.diff --git a/games/buckshot/docs/aim.png b/games/buckshot/docs/aim.pngnew file mode 100644index 00000000..b70e617aBinary files /dev/null and b/games/buckshot/docs/aim.png differdiff --git a/games/buckshot/docs/charges.png b/games/buckshot/docs/charges.pngnew file mode 100644index 00000000..4dcd6217Binary files /dev/null and b/games/buckshot/docs/charges.png differdiff --git a/games/buckshot/docs/dealer.png b/games/buckshot/docs/dealer.pngnew file mode 100644index 00000000..cff12868Binary files /dev/null and b/games/buckshot/docs/dealer.png differdiff --git a/games/buckshot/docs/ending.png b/games/buckshot/docs/ending.pngnew file mode 100644index 00000000..51292b6eBinary files /dev/null and b/games/buckshot/docs/ending.png differdiff --git a/games/buckshot/docs/glass.png b/games/buckshot/docs/glass.pngnew file mode 100644index 00000000..cf9d1e3eBinary files /dev/null and b/games/buckshot/docs/glass.png differdiff --git a/games/buckshot/docs/heaven.png b/games/buckshot/docs/heaven.pngnew file mode 100644index 00000000..293db36cBinary files /dev/null and b/games/buckshot/docs/heaven.png differdiff --git a/games/buckshot/docs/hero.gif b/games/buckshot/docs/hero.gifnew file mode 100644index 00000000..81f5b201Binary files /dev/null and b/games/buckshot/docs/hero.gif differdiff --git a/games/buckshot/docs/icon.png b/games/buckshot/docs/icon.pngnew file mode 100644index 00000000..bdc5e72dBinary files /dev/null and b/games/buckshot/docs/icon.png differdiff --git a/games/buckshot/docs/items.png b/games/buckshot/docs/items.pngnew file mode 100644index 00000000..f85ffb20Binary files /dev/null and b/games/buckshot/docs/items.png differdiff --git a/games/buckshot/docs/shells.png b/games/buckshot/docs/shells.pngnew file mode 100644index 00000000..a92a5295Binary files /dev/null and b/games/buckshot/docs/shells.png differdiff --git a/games/buckshot/docs/shot.png b/games/buckshot/docs/shot.pngnew file mode 100644index 00000000..d11635d3Binary files /dev/null and b/games/buckshot/docs/shot.png differdiff --git a/games/buckshot/docs/title.png b/games/buckshot/docs/title.pngnew file mode 100644index 00000000..d11635d3Binary files /dev/null and b/games/buckshot/docs/title.png differdiff --git a/games/buckshot/docs/waiver.png b/games/buckshot/docs/waiver.pngnew file mode 100644index 00000000..33bf2e8fBinary files /dev/null and b/games/buckshot/docs/waiver.png differdiff --git a/games/buckshot/src/anim.c b/games/buckshot/src/anim.cnew file mode 100644index 00000000..62e143ca--- /dev/null+++ b/games/buckshot/src/anim.c@@ -0,0 +1,468 @@+/* The animations of the match: key frames rendered from the original's own+ * animations (the player's hands in the table view, the Dealer's in his+ * view), timed like the original. Every action is already settled in the+ * match state when its animation plays (see game.c). */+#include "scene.h"+#include "story.h"+#include <eadk.h>++static void frame(int ms) {+ table_show();+ pause_ms(ms);+}++/* the player's hands: a picture over the table, the shotgun off the table */+static void p_pose(int img, int ms) {+ T.pose = img;+ T.pose_dy = 0;+ frame(ms);+}++/* ... brought up from below the table first */+static void p_raise(int img, int ms) {+ static const int8_t dy[4] = {72, 36, 14, 4};+ T.pose = img;+ for (int k = 0; k < 4; k++) {+ T.pose_dy = dy[k];+ frame(40);+ }+ T.pose_dy = 0;+ frame(ms);+}++static void p_done(void) {+ T.pose = T.pose2 = -1;+ T.pose_dy = 0;+ T.gun_on_table = 1;+}++/* the Dealer's hands, in his view */+static void d_pose(int img, int ms) {+ T.d.pose = img;+ frame(ms);+}++static void d_done(void) {+ view_dealer();+}++static void careful(void) {+ if (G.hp[0] == 1 && !G.wire[0] && !G.careful_said) {+ G.careful_said = 1;+ view_dealer();+ say("CAREFUL, NOW ...", 2500);+ }+}++/* after a change of charges: look at the display */+static void show_charges(void) {+ health_view(-1, 1400);+ careful();+}++/* the screen goes dark: hit by a live round */+static void player_down(int ended) {+ gfx_light(256, 0, 200);+ gfx_present();+ pause_ms(90);+ gfx_light(0, 0, 0);+ gfx_present();+ pause_ms(ended ? 2400 : 1600);+ if (ended) {+ gfx_light(256, 0, 0);+ return;+ }+ view_dealer();+ table_draw();+ fade_to(0, 256, 700);+ show_charges();+}++/* the Dealer is thrown back into the dark */+static void dealer_down(int ended) {+ view_dealer();+ T.gun_on_table = 0;+ for (int k = 0; k < 2; k++) {+ T.d.alone = IMG_D_FLY0 + k;+ frame(60);+ }+ T.d.alone = -1;+ T.d.gone = 1;+ frame(ended ? 1500 : 1200);+ T.gun_on_table = 1;+ if (ended) return;+ anim_dealer_return();+ show_charges();+}++void anim_dealer_return(void) {+ view_dealer();+ for (int k = 3; k >= 0; k--) {+ T.d.gone = 0;+ T.d.dim = k > 2 ? 3 : k;+ T.d.dy = k * 2;+ frame(k == 3 ? 300 : 200);+ }+ view_dealer();+ frame(400);+}++void anim_dealer_arrives(const char *line) {+ table_reset();+ view_dealer();+ T.d.gone = 1;+ table_draw();+ fade_to(0, 256, 600);+ pause_ms(500);+ anim_dealer_return();+ pause_ms(900);+ if (line) say(line, 2300);+}++/* ----------------------------------------------------------------- items */++static void player_item(int it, const act_t *a) {+ view_table();+ T.gun_on_table = it != IT_SAW && it != IT_GLASS && it != IT_BEER;+ switch (it) {+ case IT_SAW:+ p_raise(IMG_P_SAW0, 600);+ p_pose(IMG_P_SAW1, 1000);+ p_done();+ frame(400); /* the barrel, sawn off */+ break;+ case IT_GLASS:+ p_raise(IMG_P_MAG0, 500);+ p_pose(IMG_P_MAG, 500);+ T.pose2 = a->live ? IMG_P_MAG_L : IMG_P_MAG_B;+ frame(2200);+ p_done();+ frame(200);+ break;+ case IT_BEER:+ T.gun_on_table = 1;+ p_raise(IMG_P_BEER0, 600);+ p_pose(IMG_P_BEER1, 1000);+ T.gun_on_table = 0;+ p_pose(IMG_P_RACK, 350);+ T.pose2 = a->live ? IMG_P_EJECT_L : IMG_P_EJECT_B;+ frame(1000);+ p_done();+ frame(300);+ break;+ case IT_CIGS:+ p_raise(IMG_P_CIG0, 600);+ p_pose(IMG_P_CIG1, 1400);+ p_done();+ show_charges();+ break;+ case IT_CUFFS:+ /* the Dealer holds out his wrists */+ frame(300);+ view_dealer();+ T.d.pose = IMG_D_GETCUFF;+ frame(800);+ T.d.pose = IMG_D_CUFFED;+ frame(900);+ view_table();+ frame(300);+ break;+ case IT_MEDS:+ p_raise(IMG_P_MED0, 600);+ p_pose(IMG_P_MED1, 1000);+ p_done();+ if (a->good) {+ show_charges();+ } else {+ table_draw();+ gfx_light(256, 0, 160);+ gfx_shake(2, 1);+ gfx_present();+ pause_ms(250);+ gfx_shake(0, 0);+ gfx_present();+ pause_ms(500);+ gfx_light(256, 0, 0);+ if (a->dead) {+ player_down(1);+ return;+ }+ show_charges();+ }+ break;+ case IT_PHONE:+ p_raise(IMG_P_PHONE0, 450);+ T.pose = IMG_P_PHONE1;+ say(a->text, 3000);+ p_done();+ frame(200);+ break;+ case IT_INVERT:+ p_raise(IMG_P_INV1, 1300);+ p_done();+ frame(200);+ break;+ case IT_ADREN:+ p_raise(IMG_P_ADR0, 600);+ p_pose(IMG_P_ADR1, 800);+ p_done();+ break;+ }+}++static void dealer_item(int it, const act_t *a) {+ view_dealer();+ switch (it) {+ case IT_SAW:+ T.gun_on_table = 1;+ d_pose(IMG_D_SAW0, 700);+ T.gun_on_table = 0;+ d_pose(IMG_D_SAW1, 500);+ d_pose(IMG_D_SAW2, 700);+ d_done();+ frame(400);+ break;+ case IT_GLASS:+ d_pose(IMG_D_MAG0, 600);+ d_pose(IMG_D_MAG1, 900);+ say("VERY INTERESTING ...", 1800);+ d_done();+ break;+ case IT_BEER:+ d_pose(IMG_D_BEER0, 700);+ d_pose(IMG_D_BEER1, 1000);+ d_done();+ T.pose2 = a->live ? IMG_D_EJECT_L : IMG_D_EJECT_B;+ frame(900);+ T.pose2 = -1;+ frame(300);+ break;+ case IT_CIGS:+ d_pose(IMG_D_CIG0, 800);+ d_pose(IMG_D_CIG1, 1300);+ d_done();+ frame(200);+ show_charges();+ break;+ case IT_CUFFS:+ d_pose(IMG_D_CUFFS0, 600);+ d_pose(IMG_D_CUFFS1, 600);+ d_done();+ /* your wrists */+ view_table();+ frame(200);+ for (int k = 0; k < 4; k++) {+ gfx_shake(0, k & 1 ? 2 : 0);+ frame(120);+ }+ gfx_shake(0, 0);+ frame(400);+ view_dealer();+ break;+ case IT_MEDS:+ d_pose(IMG_D_MED0, 900);+ d_pose(IMG_D_MED1, 1100);+ if (!a->good) {+ if (a->dead) {+ T.d.pose = -1;+ T.d.alone = IMG_D_MEDFALL;+ frame(250);+ T.d.alone = -1;+ T.d.gone = 1;+ frame(1500);+ return;+ }+ gfx_shake(3, 0);+ frame(90);+ gfx_shake(-2, 1);+ frame(90);+ gfx_shake(0, 0);+ }+ d_done();+ frame(300);+ show_charges();+ break;+ case IT_PHONE:+ d_pose(IMG_D_PHONE0, 600);+ d_pose(IMG_D_PHONE1, 1700);+ d_done();+ break;+ case IT_INVERT:+ d_pose(IMG_D_INV0, 700);+ d_pose(IMG_D_INV1, 900);+ d_done();+ break;+ case IT_ADREN:+ d_pose(IMG_D_ADR0, 600);+ d_pose(IMG_D_ADR1, 700);+ d_done();+ break;+ }+ frame(250);+}++void anim_item(int side, int it, const act_t *a) {+ if (side) dealer_item(it, a);+ else player_item(it, a);+}++/* ---------------------------------------------------------------- shotgun */++int anim_player_aim(void) {+ view_table();+ T.gun_on_table = 0;+ T.pose = IMG_P_HOLD;+ T.lbl = 1;+ for (;;) {+ T.hint = "UP: DEALER DOWN: YOU OK: FIRE";+ table_show();+ int k;+ while ((k = idle_key()) < 0) {}+ if (k == KEY_UP) T.lbl = 1;+ else if (k == KEY_DOWN) T.lbl = 2;+ else if (k == KEY_BACK) app_pause_menu();+ else if (IS_OK(k)) break;+ }+ int self = T.lbl == 2;+ T.lbl = 0;+ T.hint = 0;+ return self;+}++void anim_player_shot(int self, int live, int dmg, int ended) {+ (void)dmg;+ if (self) {+ /* the barrel turned to you */+ view_table();+ T.gun_on_table = 0;+ p_pose(dmg == 2 ? IMG_P_AIMS_SAW : IMG_P_AIMS, 1700);+ } else {+ view_dealer();+ T.gun_on_table = 0;+ p_pose(dmg == 2 ? IMG_P_AIMD_SAW : IMG_P_AIMD, 1600);+ }+ if (live) {+ flash(1, 1);+ p_done();+ if (self) player_down(ended);+ else dealer_down(ended);+ return;+ }+ /* click */+ pause_ms(700);+ view_table();+ T.gun_on_table = 0;+ p_pose(IMG_P_RACK, 300);+ T.pose2 = IMG_P_EJECT_B;+ frame(600);+ p_done();+ frame(300);+}++static void zaim_draw(void) { gfx_plate(IMG_PL_ZAIM); }++void anim_dealer_shot(int self, int live, int dmg, int ended) {+ view_dealer();+ T.gun_on_table = 0;+ d_pose(IMG_D_GUN_LIFT, 220);+ d_pose(IMG_D_GUN_LOAD, 800);+ if (self) {+ /* the barrel under his own chin */+ d_pose(IMG_D_GUN_AIMS0, 300);+ d_pose(dmg == 2 ? IMG_D_GUN_AIMS_SAW : IMG_D_GUN_AIMS, 1900);+ } else {+ /* the barrel turned to you, then up close */+ d_pose(IMG_D_GUN_AIMP0, 300);+ d_pose(IMG_D_GUN_AIMP, 500);+ zaim_draw();+ gfx_present();+ redraw = zaim_draw;+ pause_ms(1700);+ }+ if (live) {+ flash(1, 1);+ if (self) {+ dealer_down(ended);+ } else {+ T.d.pose = IMG_D_GUN_LOAD;+ player_down(ended);+ }+ if (!ended) {+ view_dealer();+ frame(300);+ }+ return;+ }+ /* click */+ pause_ms(700);+ d_pose(self ? IMG_D_GUN_RACKS : IMG_D_GUN_RACK, 500);+ T.pose2 = IMG_D_EJECT_B;+ frame(700);+ T.pose2 = -1;+ d_done();+ frame(400);+}++void anim_player_cuffed(int broke) {+ view_table();+ for (int k = 0; k < 4; k++) {+ gfx_shake(0, k & 1 ? 2 : 0);+ frame(160);+ }+ gfx_shake(0, 0);+ frame(broke ? 400 : 200);+}++void anim_dealer_cuffed(int broke) {+ view_dealer();+ frame(500);+ for (int k = 0; k < 4; k++) {+ T.d.dy = k & 1;+ gfx_shake(k & 1 ? 1 : -1, 0);+ frame(170);+ }+ gfx_shake(0, 0);+ T.d.dy = 0;+ if (broke) {+ T.d.pose = IMG_D_GETCUFF;+ frame(500);+ d_done();+ }+ frame(400);+}++void anim_wire_cut(int side, int say_it) {+ view_dealer();+ frame(1200);+ if (say_it) say("ARE YOU READY?", 3000);+ wire_cut(side);+}++void anim_god_waiver(void) {+ T.hint = 0;+ view_table();+ T.pose = IMG_P_GOD;+ frame(2800);+ T.pose = -1;+}++/* ---------------------------------------------------------------- loading */++void anim_dealer_load(int n, int told, int fast) {+ view_dealer();+ frame(300);+ T.gun_on_table = 0;+ d_pose(IMG_D_GUN_LIFT, 220);+ d_pose(IMG_D_GUN_LOAD, 700);+ if (told >= 0) say(told == 0 ? "I INSERT THE SHELLS\nIN AN UNKNOWN ORDER." : "THEY ENTER THE CHAMBER\nIN A HIDDEN SEQUENCE.", 3000);+ for (int i = 0; i < n; i++) {+ d_pose(IMG_D_GUN_LOAD1, fast ? 110 : 200);+ d_pose(IMG_D_GUN_LOAD, fast ? 60 : 120);+ }+}++void anim_dealer_rack(void) {+ d_pose(IMG_D_GUN_RACK, 800);+ d_done();+ frame(400);+}diff --git a/games/buckshot/src/assets.c b/games/buckshot/src/assets.cnew file mode 100644index 00000000..13eaa55e--- /dev/null+++ b/games/buckshot/src/assets.c@@ -0,0 +1,7158 @@+/* Generated by tools/pack.py from assets/: do not edit. */+#include "assets.h"+const img_t art_img[IMG_COUNT + 1] = {+ {0, 0, 320, 240, 0},+ {0, 0, 320, 240, 7117},+ {0, 0, 320, 240, 12254},+ {0, 0, 320, 240, 17067},+ {0, 0, 320, 240, 26412},+ {0, 0, 320, 240, 35411},+ {0, 0, 320, 240, 39708},+ {0, 0, 320, 240, 48628},+ {0, 0, 320, 240, 51217},+ {0, 0, 320, 240, 56602},+ {0, 0, 320, 240, 62239},+ {0, 0, 320, 240, 65716},+ {14, 18, 128, 67, 68901},+ {0, 105, 320, 135, 69436},+ {0, 153, 320, 62, 71953},+ {107, 116, 76, 121, 73511},+ {107, 120, 76, 117, 74227},+ {83, 90, 144, 150, 74928},+ {51, 120, 93, 120, 76383},+ {120, 62, 73, 18, 77018},+ {139, 65, 37, 23, 77198},+ {128, 8, 59, 60, 77449},+ {129, 10, 58, 59, 78072},+ {129, 12, 58, 59, 78675},+ {129, 10, 58, 59, 78072},+ {17, 158, 44, 51, 79274},+ {63, 160, 44, 51, 79274},+ {5, 202, 44, 37, 79748},+ {58, 203, 44, 37, 79748},+ {205, 160, 44, 51, 79274},+ {251, 159, 44, 51, 79274},+ {231, 203, 44, 37, 79748},+ {285, 203, 44, 37, 79748},+ {72, 103, 38, 21, 80067},+ {99, 103, 38, 21, 80067},+ {53, 118, 50, 27, 80265},+ {84, 118, 50, 27, 80265},+ {180, 103, 38, 21, 80067},+ {208, 104, 38, 21, 80067},+ {180, 118, 50, 27, 80265},+ {213, 118, 50, 27, 80265},+ {24, 158, 46, 52, 80499},+ {68, 159, 46, 52, 80499},+ {0, 200, 53, 40, 80917},+ {54, 200, 53, 40, 80917},+ {207, 158, 46, 52, 80499},+ {251, 157, 46, 52, 80499},+ {224, 200, 53, 40, 80917},+ {276, 199, 53, 40, 80917},+ {70, 81, 194, 43, 81347},+ {92, 82, 194, 43, 81347},+ {55, 119, 47, 28, 81569},+ {87, 119, 47, 28, 81569},+ {174, 83, 194, 43, 81347},+ {202, 83, 194, 43, 81347},+ {184, 120, 47, 28, 81569},+ {217, 120, 47, 28, 81569},+ {2, 80, 97, 147, 81813},+ {52, 83, 97, 147, 81813},+ {-29, 104, 75, 128, 83109},+ {24, 116, 75, 128, 83109},+ {192, 86, 97, 147, 81813},+ {246, 79, 97, 147, 81813},+ {234, 112, 75, 128, 83109},+ {274, 57, 75, 128, 83109},+ {78, 81, 35, 35, 84261},+ {111, 83, 35, 35, 84261},+ {57, 92, 39, 63, 84587},+ {94, 89, 39, 63, 84587},+ {177, 81, 35, 35, 84261},+ {206, 80, 35, 35, 84261},+ {180, 79, 39, 63, 84587},+ {210, 83, 39, 63, 84587},+ {19, 156, 49, 49, 85108},+ {67, 157, 49, 49, 85108},+ {-5, 207, 53, 35, 85531},+ {48, 206, 53, 35, 85531},+ {205, 158, 49, 49, 85108},+ {251, 157, 49, 49, 85108},+ {226, 205, 53, 35, 85531},+ {278, 203, 53, 35, 85531},+ {82, 102, 24, 20, 85830},+ {110, 102, 24, 20, 85830},+ {67, 116, 28, 28, 85958},+ {99, 116, 28, 28, 85958},+ {189, 102, 24, 20, 85830},+ {217, 102, 24, 20, 85830},+ {194, 115, 28, 28, 85958},+ {226, 115, 28, 28, 85958},+ {16, 159, 54, 50, 86134},+ {61, 159, 54, 50, 86134},+ {-6, 199, 63, 39, 86740},+ {40, 201, 63, 39, 86740},+ {201, 160, 54, 50, 86134},+ {247, 159, 54, 50, 86134},+ {215, 201, 63, 39, 86740},+ {265, 200, 63, 39, 86740},+ {79, 105, 30, 19, 87276},+ {106, 105, 30, 19, 87276},+ {65, 120, 37, 24, 87464},+ {95, 120, 37, 24, 87464},+ {191, 104, 30, 19, 87276},+ {215, 106, 30, 19, 87276},+ {192, 121, 37, 24, 87464},+ {224, 120, 37, 24, 87464},+ {15, 155, 57, 51, 87697},+ {62, 156, 57, 51, 87697},+ {-6, 200, 65, 38, 88540},+ {43, 202, 65, 38, 88540},+ {200, 157, 57, 51, 87697},+ {246, 156, 57, 51, 87697},+ {214, 202, 65, 38, 88540},+ {267, 201, 65, 38, 88540},+ {77, 102, 29, 22, 89299},+ {105, 102, 29, 22, 89299},+ {61, 118, 39, 27, 89518},+ {93, 118, 39, 27, 89518},+ {185, 102, 29, 22, 89299},+ {211, 102, 29, 22, 89299},+ {188, 117, 39, 27, 89518},+ {220, 117, 39, 27, 89518},+ {21, 163, 42, 38, 89844},+ {68, 164, 42, 38, 89844},+ {-3, 212, 45, 27, 90189},+ {51, 213, 45, 27, 90189},+ {207, 165, 42, 38, 89844},+ {253, 164, 42, 38, 89844},+ {229, 213, 45, 27, 90189},+ {283, 210, 45, 27, 90189},+ {79, 105, 21, 17, 90402},+ {107, 105, 21, 17, 90402},+ {64, 121, 26, 21, 90516},+ {95, 120, 26, 21, 90516},+ {194, 103, 21, 17, 90402},+ {215, 105, 21, 17, 90402},+ {192, 120, 26, 21, 90516},+ {224, 120, 26, 21, 90516},+ {9, 153, 69, 55, 90663},+ {56, 154, 69, 55, 90663},+ {-16, 194, 62, 44, 91230},+ {36, 195, 62, 44, 91230},+ {194, 154, 69, 55, 90663},+ {240, 153, 69, 55, 90663},+ {208, 196, 62, 44, 91230},+ {263, 195, 62, 44, 91230},+ {73, 99, 39, 25, 91673},+ {101, 99, 39, 25, 91673},+ {57, 116, 49, 30, 91909},+ {89, 116, 49, 30, 91909},+ {181, 100, 39, 25, 91673},+ {209, 100, 39, 25, 91673},+ {186, 115, 49, 30, 91909},+ {217, 117, 49, 30, 91909},+ {18, 158, 53, 48, 92188},+ {66, 159, 53, 48, 92188},+ {-7, 203, 58, 36, 92844},+ {45, 204, 58, 36, 92844},+ {204, 160, 53, 48, 92188},+ {250, 159, 53, 48, 92188},+ {217, 204, 58, 36, 92844},+ {271, 203, 58, 36, 92844},+ {78, 102, 27, 20, 93421},+ {105, 102, 27, 20, 93421},+ {62, 119, 34, 26, 93608},+ {94, 119, 34, 26, 93608},+ {186, 102, 27, 20, 93421},+ {213, 102, 27, 20, 93421},+ {189, 119, 34, 26, 93608},+ {222, 118, 34, 26, 93608},+ {30, 151, 59, 30, 93888},+ {70, 151, 59, 30, 93888},+ {0, 173, 75, 43, 94233},+ {47, 173, 75, 43, 94233},+ {189, 152, 59, 30, 93888},+ {228, 152, 59, 30, 93888},+ {194, 173, 75, 43, 94233},+ {242, 173, 75, 43, 94233},+ {30, 152, 57, 30, 94644},+ {72, 152, 57, 30, 94644},+ {0, 174, 72, 44, 94993},+ {48, 174, 72, 44, 94993},+ {192, 153, 57, 30, 94644},+ {232, 153, 57, 30, 94644},+ {197, 175, 72, 44, 94993},+ {247, 175, 72, 44, 94993},+ {42, 119, 51, 50, 95458},+ {90, 122, 51, 50, 95458},+ {2, 136, 61, 95, 95985},+ {59, 130, 61, 95, 95985},+ {186, 118, 51, 50, 95458},+ {226, 117, 51, 50, 95458},+ {186, 115, 61, 95, 95985},+ {231, 120, 61, 95, 95985},+ {46, 148, 34, 30, 96959},+ {87, 148, 34, 30, 96959},+ {20, 171, 42, 42, 97170},+ {69, 171, 42, 42, 97170},+ {202, 147, 34, 30, 96959},+ {242, 147, 34, 30, 96959},+ {212, 169, 42, 42, 97170},+ {260, 169, 42, 42, 97170},+ {42, 151, 45, 31, 97463},+ {81, 151, 45, 31, 97463},+ {14, 176, 58, 39, 97833},+ {60, 176, 58, 39, 97833},+ {201, 152, 45, 31, 97463},+ {240, 152, 45, 31, 97463},+ {208, 177, 58, 39, 97833},+ {256, 177, 58, 39, 97833},+ {37, 151, 45, 29, 98355},+ {78, 151, 45, 29, 98355},+ {6, 174, 61, 42, 98776},+ {54, 173, 61, 42, 98776},+ {195, 151, 45, 29, 98355},+ {234, 151, 45, 29, 98355},+ {199, 172, 61, 42, 98776},+ {247, 172, 61, 42, 98776},+ {43, 154, 30, 23, 99464},+ {84, 154, 30, 23, 99464},+ {16, 178, 37, 32, 99654},+ {64, 178, 37, 32, 99654},+ {202, 154, 30, 23, 99464},+ {241, 154, 30, 23, 99464},+ {210, 177, 37, 32, 99654},+ {258, 177, 37, 32, 99654},+ {32, 147, 60, 34, 99908},+ {72, 147, 60, 34, 99908},+ {2, 170, 75, 49, 100313},+ {50, 170, 75, 49, 100313},+ {190, 148, 60, 34, 99908},+ {230, 148, 60, 34, 99908},+ {196, 170, 75, 49, 100313},+ {245, 171, 75, 49, 100313},+ {39, 151, 41, 29, 100851},+ {79, 151, 41, 29, 100851},+ {11, 175, 54, 41, 101205},+ {59, 175, 54, 41, 101205},+ {196, 151, 41, 29, 100851},+ {237, 151, 41, 29, 100851},+ {204, 174, 54, 41, 101205},+ {253, 174, 54, 41, 101205},+ {130, 164, 69, 76, 101759},+ {130, 178, 65, 62, 102393},+ {118, 24, 78, 77, 102957},+ {106, 93, 99, 24, 103856},+ {136, 64, 48, 9, 104143},+ {106, 23, 99, 105, 104222},+ {80, 24, 125, 93, 105744},+ {106, 23, 99, 100, 107140},+ {106, 23, 99, 99, 108506},+ {118, 24, 87, 92, 109850},+ {106, 19, 103, 210, 110726},+ {106, 23, 102, 98, 112737},+ {106, 24, 143, 112, 114158},+ {106, 24, 99, 111, 115556},+ {106, 65, 99, 52, 116778},+ {106, 24, 99, 107, 117335},+ {106, 24, 105, 99, 118800},+ {105, 24, 87, 113, 120404},+ {85, 24, 107, 150, 121718},+ {106, 23, 115, 129, 123485},+ {106, 23, 108, 167, 125230},+ {101, 23, 97, 157, 127255},+ {106, 23, 108, 115, 129143},+ {106, 24, 99, 109, 130714},+ {106, 40, 79, 77, 132097},+ {106, 23, 92, 94, 132892},+ {104, 24, 101, 113, 134235},+ {106, 83, 111, 157, 135166},+ {106, 88, 111, 152, 136258},+ {106, 77, 99, 163, 137338},+ {106, 63, 99, 177, 138216},+ {106, 77, 99, 163, 139253},+ {106, 37, 99, 203, 140316},+ {106, 63, 99, 177, 138216},+ {106, 77, 99, 163, 141455},+ {106, 54, 99, 186, 142528},+ {45, 75, 186, 165, 143703},+ {106, 31, 99, 86, 146181},+ {106, 44, 99, 73, 146731},+ {121, 111, 12, 28, 147090},+ {121, 111, 12, 28, 147183},+ {108, 18, 212, 222, 147251},+ {108, 18, 212, 222, 149351},+ {98, 54, 123, 92, 151385},+ {69, 61, 181, 160, 151920},+ {69, 17, 181, 204, 153724},+ {0, 0, 316, 240, 156506},+ {128, 122, 64, 22, 158775},+ {173, 80, 128, 160, 159280},+ {173, 166, 38, 68, 160841},+ {0, 0, 320, 240, 161197},+ {67, 0, 197, 240, 163210},+ {0, 0, 320, 240, 172769},+ {104, 92, 94, 61, 216225},+ {50, 92, 148, 85, 216591},+ {138, 64, 97, 176, 175691},+ {134, 83, 92, 157, 176906},+ {62, 0, 258, 240, 177433},+ {105, 96, 91, 134, 180143},+ {12, 0, 295, 129, 182226},+ {96, 60, 99, 140, 186161},+ {110, 106, 79, 134, 187796},+ {177, 34, 53, 162, 189260},+ {154, 54, 85, 152, 190926},+ {99, 76, 136, 109, 192613},+ {57, 88, 173, 82, 195063},+ {154, 73, 37, 131, 197114},+ {163, 83, 49, 126, 197861},+ {64, 36, 225, 204, 198644},+ {224, 52, 27, 28, 202288},+ {224, 52, 27, 28, 202444},+ {14, 91, 294, 79, 202547},+ {23, 126, 18, 37, 203305},+ {45, 126, 18, 37, 203505},+ {67, 126, 18, 37, 203699},+ {88, 126, 19, 38, 203888},+ {110, 126, 19, 37, 204082},+ {132, 126, 18, 37, 204270},+ {281, 126, 18, 37, 204459},+ {259, 126, 18, 37, 204662},+ {237, 126, 19, 37, 204851},+ {215, 126, 19, 38, 205041},+ {194, 126, 18, 37, 205234},+ {172, 126, 18, 37, 205422},+ {23, 126, 18, 33, 205617},+ {44, 126, 19, 33, 205816},+ {281, 126, 18, 33, 206010},+ {259, 126, 18, 33, 206210},+ {94, 92, 120, 74, 206406},+ {104, 143, 12, 13, 207889},+ {146, 143, 13, 13, 207927},+ {189, 143, 13, 13, 207965},+ {178, 92, 36, 40, 208004},+ {104, 143, 12, 13, 207889},+ {146, 143, 13, 13, 207927},+ {189, 143, 13, 13, 207965},+ {165, 87, 135, 82, 208322},+ {18, 90, 134, 77, 209713},+ {283, 126, 24, 25, 210741},+ {281, 132, 5, 5, 210835},+ {283, 133, 4, 5, 210853},+ {285, 135, 3, 4, 210867},+ {286, 137, 4, 4, 210879},+ {287, 138, 5, 4, 210894},+ {289, 140, 4, 4, 210910},+ {301, 151, 4, 5, 210926},+ {299, 149, 4, 4, 210944},+ {297, 148, 4, 4, 210960},+ {295, 145, 5, 5, 210975},+ {294, 143, 5, 5, 210991},+ {291, 142, 5, 5, 211008},+ {95, 113, 49, 50, 211027},+ {95, 113, 49, 50, 211545},+ {117, 104, 46, 43, 212007},+ {117, 104, 46, 43, 212390},+ {138, 94, 44, 40, 212794},+ {138, 94, 44, 40, 213136},+ {151, 86, 47, 39, 213495},+ {151, 86, 47, 39, 213809},+ {171, 79, 43, 34, 214155},+ {171, 77, 43, 36, 214429},+ {180, 72, 46, 32, 214723},+ {180, 71, 46, 33, 214984},+ {197, 66, 40, 29, 215258},+ {197, 66, 40, 29, 215471},+ {209, 61, 40, 27, 215694},+ {208, 61, 41, 27, 215909},+ {90, 142, 17, 18, 216120},+ {0, 0, 0, 0, 216901},+};+const uint32_t art_pal[PAL_COUNT] = {0x0,0x0,0xffffff,0x929292,0x242424,0xdb2424,0x2449db,0xdbffdb,0xffdb6d,0x24,0x240000,0x2400,0x240024,0x2424,0x242400,0x490024,0x492400,0x6d0024,0x242449,0x4924,0x492424,0x4949,0x244924,0x492449,0x6d2424,0x244949,0x6d2449,0x494924,0x246d24,0x494949,0x6d4924,0x922449,0x246d49,0x496d24,0x6d4949,0x496d49,0x924949,0x6d6d49,0x92496d,0xb64949,0x6d6d6d,0x499249,0x926d49,0xb6496d,0x49926d,0x926d6d,0x6d9249,0x6d926d,0xb66d6d,0x92926d,0xdb6d6d,0x6db66d,0xb6926d,0x92b66d,0xb69292,0xdb926d,0x92b692,0xb6b66d,0xdb9292,0xb6b692,0xb6b6b6,0x92db92,0xdbb692,0xdbb6b6,0xb6db92,0xffb692,0xb6dbb6,0xffb6b6,0xdbdb92,0xdbdbb6,0xdbdbdb,0xffdbb6,0xdbffb6,0xffdbdb,0xffffb6,0xffffdb};+const int16_t slot_rect[2][8][4] = {{{10,154,70,51},{60,156,67,51},{-3,210,54,33},{30,204,84,39},{202,155,55,55},{250,156,51,50},{223,202,59,41},{260,76,63,167}},{{79,99,30,26},{105,99,34,25},{64,113,34,34},{94,112,38,35},{181,98,38,26},{208,98,38,26},{187,114,42,30},{216,112,46,33}}};+const int16_t dslot_rect[8][4] = {{43,145,40,36},{82,145,46,35},{17,168,48,48},{64,166,50,50},{193,144,51,36},{231,145,52,36},{202,168,61,46},{248,169,63,45}};+const uint8_t art_data[] = {+4,225,95,233,153,31,142,71,34,40,143,156,103,87,232,232,135,231,184,144,57,228,63,3,113,86,234,20,225,234,136,123,+60,206,207,12,233,189,64,174,40,179,52,245,154,226,93,250,79,240,252,71,154,116,132,107,246,134,34,25,15,224,84,114,+126,28,238,44,136,238,246,66,197,186,236,155,50,194,240,57,106,249,118,202,154,210,69,190,92,115,180,29,3,0,14,169,+136,145,33,70,26,243,149,8,8,232,229,63,11,179,18,14,102,137,42,43,67,12,90,169,128,220,118,243,64,89,138,49,+142,175,194,245,75,251,113,70,116,207,170,228,208,70,173,240,54,80,57,25,198,95,60,53,114,77,223,186,242,1,237,175,+152,238,94,244,244,193,224,49,255,131,68,226,19,81,48,19,210,112,100,140,141,95,214,213,94,171,160,46,209,103,139,22,+143,69,119,199,149,247,1,43,153,234,64,183,106,111,130,125,187,161,163,151,40,99,212,82,71,179,195,129,143,64,67,245,+197,213,240,40,31,84,145,224,105,181,88,226,215,51,187,9,242,78,13,83,127,117,16,228,45,91,41,180,137,217,35,124,+161,93,214,239,185,244,156,110,217,193,167,181,187,128,151,206,29,111,164,51,133,37,178,203,195,33,198,145,75,66,31,51,+198,151,166,16,213,26,31,216,171,21,229,222,15,237,76,228,231,75,230,251,145,248,159,243,254,158,149,164,127,86,13,105,+164,103,5,134,62,60,149,99,216,203,185,179,255,140,77,82,139,22,17,147,57,77,62,255,55,44,236,103,174,238,92,18,+249,194,154,62,102,194,254,146,86,17,139,164,171,77,63,171,48,145,53,60,58,102,79,164,194,68,153,48,125,116,21,245,+185,21,115,250,184,176,112,22,63,181,74,100,25,56,143,92,171,62,174,78,12,50,71,203,210,239,180,207,186,192,108,20,+98,192,8,119,195,195,31,207,162,227,180,120,158,3,40,141,37,154,132,137,132,248,181,159,122,200,68,13,231,95,23,48,+240,69,162,82,194,27,229,72,155,230,4,64,148,125,85,100,183,223,196,52,92,155,97,47,39,41,23,176,143,221,95,144,+108,217,106,104,10,247,205,28,106,184,28,8,7,169,236,134,211,34,78,63,241,100,154,144,121,120,197,80,32,94,194,193,+121,20,231,233,216,252,133,126,222,215,73,65,158,231,170,136,78,110,148,34,120,56,237,202,136,47,183,119,30,233,144,206,+75,111,215,11,146,214,248,157,50,182,63,100,25,66,98,213,104,188,83,213,71,87,235,34,46,245,81,109,25,31,95,248,+182,55,36,71,171,81,82,119,173,108,55,136,180,242,51,236,76,55,62,87,123,222,156,79,2,22,13,26,4,62,37,116,+209,194,213,47,200,154,168,201,11,186,228,99,17,218,244,203,81,241,16,125,231,143,164,204,102,138,12,194,85,250,126,19,+169,130,146,28,51,179,3,148,239,71,45,172,252,63,97,81,194,236,163,20,62,235,227,249,183,44,130,143,109,37,145,18,+29,42,207,200,248,205,84,182,140,146,234,248,135,133,42,104,19,229,94,192,144,255,242,152,141,79,19,113,34,101,77,123,+16,22,170,176,61,114,166,0,143,198,127,2,218,173,82,16,111,190,117,89,12,68,15,197,114,69,55,202,231,54,137,94,+167,183,239,136,40,127,225,132,90,234,35,219,16,17,72,172,171,43,9,243,196,84,188,229,233,32,245,116,9,46,45,137,+152,157,16,65,7,207,88,171,92,165,54,246,113,250,122,172,131,47,102,91,121,247,238,220,209,237,106,175,135,207,200,78,+108,236,80,126,120,188,233,122,103,67,234,204,84,206,247,185,133,237,41,222,207,44,2,131,113,75,238,7,20,42,190,203,+97,156,201,61,116,75,87,208,159,97,219,235,86,143,231,242,235,173,222,178,23,223,235,164,242,127,195,224,104,184,44,232,+100,236,233,155,254,216,189,228,155,157,83,254,49,219,185,162,79,101,124,32,17,122,212,191,135,132,150,38,111,90,219,134,+174,123,21,185,84,106,144,119,98,4,139,119,116,191,123,18,223,171,29,183,187,1,52,94,158,94,82,81,81,177,253,76,+84,255,117,231,79,236,251,161,73,31,113,201,188,74,100,250,19,86,158,239,10,124,63,87,149,211,10,111,192,51,172,129,+79,79,38,124,210,34,224,60,59,117,111,162,216,167,138,156,128,64,10,80,201,70,216,62,37,211,82,3,47,146,175,236,+89,122,29,143,31,240,234,72,249,66,92,82,7,128,137,77,5,38,156,245,114,15,128,182,216,34,38,253,126,188,185,68,+200,126,17,178,176,32,171,149,69,114,153,120,155,101,28,213,54,0,188,158,128,98,168,229,230,40,141,81,108,20,16,76,+165,199,43,176,185,121,95,159,33,193,92,143,252,5,43,66,132,217,160,6,129,222,187,209,128,147,108,10,93,153,98,228,+130,205,50,29,24,235,17,43,79,198,35,160,25,86,93,173,162,117,182,227,49,79,158,189,158,42,48,98,56,249,200,6,+32,122,89,39,255,223,2,204,193,225,36,228,186,51,57,194,46,109,123,132,128,214,106,76,186,81,36,129,246,155,112,240,+142,110,111,90,139,149,118,63,197,178,148,160,30,155,52,12,235,248,172,172,250,223,121,57,213,72,20,32,42,66,199,128,+251,220,210,252,197,127,225,173,133,178,250,101,174,160,167,255,201,125,230,113,84,7,98,133,102,148,13,62,4,78,26,83,+11,114,30,150,150,205,247,6,178,176,78,138,97,252,108,152,34,192,47,13,224,9,184,254,54,27,70,173,181,27,46,217,+62,141,93,3,49,126,191,43,164,254,211,175,67,26,61,217,81,47,69,170,161,233,100,66,78,13,169,53,217,240,63,161,+253,51,223,140,226,217,60,124,155,108,48,69,121,171,184,43,13,239,82,181,171,39,111,182,82,107,242,105,211,198,197,12,+44,66,107,84,164,50,89,208,224,185,251,53,16,250,186,219,114,36,106,148,61,27,131,116,205,59,28,15,188,89,218,16,+146,93,25,129,126,200,237,84,38,202,194,47,112,51,19,56,214,140,155,16,64,61,28,142,203,163,244,82,233,49,119,130,+229,88,54,223,212,214,95,179,26,87,246,99,143,243,58,111,216,166,35,233,98,253,168,29,179,230,18,61,45,154,122,173,+21,248,245,48,15,216,184,28,142,145,173,252,243,58,178,37,104,206,91,105,235,226,154,6,146,221,33,191,67,195,119,67,+105,186,203,153,85,194,56,17,135,174,224,4,226,51,116,123,24,85,113,14,3,170,184,127,3,90,220,236,38,46,165,31,+155,183,240,232,82,144,153,0,70,86,239,72,57,26,98,64,145,162,184,207,254,236,155,109,243,120,47,153,99,108,206,104,+176,126,160,3,125,216,188,183,226,58,188,154,146,138,32,26,29,205,0,40,151,232,184,45,233,146,90,114,93,60,163,37,+239,251,143,135,166,118,147,105,41,193,210,180,149,209,238,79,97,24,230,233,91,46,241,250,185,217,10,8,134,144,120,206,+229,113,49,206,98,84,150,207,214,204,59,57,65,51,174,115,40,164,157,49,171,14,116,119,67,3,199,32,122,53,145,130,+196,247,42,63,18,26,177,13,120,164,50,43,181,215,173,30,91,69,166,147,51,208,239,217,5,235,233,148,156,54,249,160,+38,116,72,86,218,200,249,145,154,169,212,6,63,230,227,100,170,227,4,87,137,145,58,53,195,247,39,189,217,225,18,51,+137,6,141,70,164,2,169,220,25,233,125,184,66,95,49,225,79,79,48,78,112,166,251,176,158,222,159,250,2,171,212,83,+220,172,186,97,132,133,246,108,105,152,155,73,250,150,219,190,64,83,241,105,124,159,158,11,83,136,12,157,66,166,146,253,+76,35,34,210,133,200,186,18,142,196,23,252,39,204,97,220,126,116,112,192,129,182,100,231,190,25,17,0,201,221,81,128,+191,8,225,101,169,62,218,158,125,159,53,152,112,63,233,185,213,231,220,96,167,139,42,179,161,148,37,16,170,230,130,29,+80,169,212,177,234,5,99,135,110,93,200,237,102,185,230,147,181,165,85,101,182,77,155,214,4,173,90,102,219,117,59,9,+155,247,191,177,154,150,164,172,231,38,250,214,122,0,134,48,30,161,10,133,107,24,251,197,119,162,67,166,213,140,51,177,+159,194,210,176,105,194,29,31,122,50,140,253,8,208,67,6,176,236,40,203,254,106,244,30,136,41,167,156,51,199,228,220,+220,60,175,6,98,231,141,76,184,246,166,241,93,186,226,169,86,137,6,112,87,196,168,138,166,62,82,169,186,236,143,237,+58,248,89,37,183,186,145,204,128,167,40,22,60,204,117,61,33,163,173,20,203,24,99,224,100,178,134,130,200,81,31,201,+47,14,243,135,2,230,198,235,37,197,174,211,253,81,15,222,150,75,22,26,208,229,95,146,75,104,47,140,39,100,223,163,+114,214,216,229,96,89,68,13,110,206,172,232,41,251,197,47,197,121,63,186,251,250,233,68,253,19,115,71,228,123,145,88,+47,87,157,81,17,72,28,40,247,246,181,14,148,58,186,10,186,170,110,58,23,227,250,97,97,216,140,105,94,57,159,231,+198,172,205,144,207,43,33,126,243,139,142,79,96,46,121,129,74,218,203,110,78,26,17,147,200,115,147,247,25,168,250,112,+232,202,71,15,79,58,77,228,210,59,192,105,156,193,225,5,64,225,204,28,20,171,3,183,109,144,98,144,197,154,199,41,+169,238,64,205,185,147,141,18,110,34,177,176,30,119,175,5,171,191,1,5,117,139,146,41,152,240,141,154,80,157,92,14,+198,8,152,253,201,95,137,18,230,136,161,36,207,206,143,74,87,228,96,47,174,142,52,100,69,160,48,106,240,11,225,106,+231,91,50,241,2,102,18,123,46,197,170,85,120,208,93,235,101,231,10,47,19,45,199,107,178,186,74,194,37,50,65,82,+65,218,189,201,71,251,68,66,201,153,178,153,75,98,82,100,23,14,69,205,77,119,51,171,211,241,180,51,37,211,205,235,+43,45,252,29,8,234,10,125,92,96,200,236,129,83,75,1,18,104,41,132,196,35,227,0,37,150,225,169,185,232,91,189,+125,149,238,238,127,250,134,12,148,84,160,78,186,3,94,102,74,122,41,226,225,219,123,1,193,214,153,208,156,98,172,146,+218,80,72,169,181,70,216,158,137,59,189,22,63,168,198,149,57,85,111,237,97,160,252,0,205,254,203,116,80,180,64,100,+118,92,49,217,122,185,106,248,153,61,240,254,140,11,155,218,220,153,57,21,140,125,60,90,97,159,179,126,125,137,139,103,+206,91,174,110,208,219,36,3,253,55,236,184,108,222,34,67,0,167,111,176,225,56,75,113,249,254,5,31,24,14,166,249,+124,3,127,244,189,36,107,26,24,61,88,251,33,40,77,113,24,82,58,154,113,217,40,123,54,41,118,18,232,146,186,162,+173,84,137,30,41,243,25,201,239,110,150,3,233,171,18,222,45,212,112,191,184,95,241,235,202,133,43,74,69,142,224,51,+124,206,251,232,204,241,152,227,169,198,10,155,4,37,153,93,68,77,201,211,39,167,5,199,119,240,215,99,33,249,162,176,+87,185,209,170,181,147,111,9,20,244,118,64,219,155,74,227,136,164,216,39,190,120,146,240,179,7,52,98,43,152,217,141,+20,232,43,4,151,109,141,191,210,132,152,57,66,75,41,80,121,213,7,120,132,14,243,223,99,57,247,38,42,197,132,14,+112,173,185,52,102,29,119,140,94,81,152,214,82,137,199,135,224,39,133,107,6,185,142,160,188,166,212,64,71,10,215,255,+6,39,199,242,150,105,221,232,97,67,227,224,47,132,33,94,146,3,197,41,149,22,77,51,87,159,240,141,164,96,113,155,+135,235,40,121,162,183,153,171,200,129,13,85,248,64,187,78,55,48,32,53,86,255,120,23,22,135,242,230,243,243,223,172,+235,141,251,156,25,109,254,220,244,26,57,94,21,154,107,71,238,205,120,82,166,232,66,42,224,110,252,73,126,205,165,116,+1,240,20,184,99,209,127,156,98,96,110,245,220,141,217,124,163,1,124,13,105,173,223,213,167,105,129,238,51,152,153,130,+10,66,24,209,200,3,202,115,41,156,220,194,123,153,140,100,142,110,163,92,25,113,103,189,13,168,248,33,20,252,192,243,+159,135,185,137,202,119,144,68,8,207,215,242,105,123,64,203,87,175,128,255,160,138,109,101,148,118,170,112,252,204,126,140,+156,105,74,54,230,11,25,134,132,8,222,40,239,57,125,99,191,53,227,144,40,165,141,8,56,215,242,29,241,13,44,24,+71,67,142,157,116,197,151,120,254,150,8,143,120,194,148,12,181,35,240,56,91,79,167,235,61,10,230,223,50,190,142,40,+17,186,2,229,221,70,34,105,157,235,52,163,228,66,90,59,196,0,43,37,253,49,4,129,137,149,168,226,62,236,201,22,+229,199,7,224,222,232,254,15,171,192,12,78,250,37,19,233,138,174,67,222,251,112,124,40,114,93,122,147,235,244,34,121,+188,4,66,140,46,96,164,196,80,3,31,19,92,27,116,129,89,165,162,124,38,238,216,134,15,86,66,67,121,18,6,196,+13,56,211,254,39,102,157,172,220,178,115,60,78,48,120,9,126,159,224,209,187,58,134,42,187,219,172,40,225,206,36,231,+215,78,36,141,32,43,173,45,178,5,101,173,229,27,62,234,174,229,90,52,145,137,197,118,211,38,47,139,76,178,135,87,+79,182,214,2,229,217,236,89,157,153,75,73,71,67,176,100,72,215,235,225,111,31,74,57,234,127,63,202,206,136,4,237,+159,224,107,120,109,143,135,38,231,19,202,94,70,21,175,181,43,41,27,242,143,51,26,151,146,126,61,188,145,192,87,109,+77,81,155,207,98,197,214,58,117,215,155,222,220,236,3,141,193,213,110,18,202,62,137,20,238,118,98,176,185,141,234,186,+193,176,98,1,207,145,116,102,172,175,130,247,87,182,5,250,8,74,102,97,81,125,62,159,136,197,205,115,214,99,86,131,+101,23,44,150,46,198,171,224,78,138,64,236,39,92,205,172,53,112,35,238,19,182,81,113,79,201,195,16,14,121,141,204,+3,170,238,111,142,49,179,93,234,179,132,83,12,94,233,40,117,164,44,43,140,192,228,249,240,97,180,55,104,35,115,225,+55,137,115,155,155,95,130,231,228,53,80,167,46,107,241,45,159,14,94,116,61,220,198,148,55,200,213,187,78,1,68,255,+136,9,90,158,73,104,87,84,112,171,169,172,160,23,38,140,187,26,152,205,128,103,67,114,151,9,101,228,147,100,84,2,+160,160,140,248,128,4,81,170,123,199,107,157,0,65,187,153,143,57,179,109,209,79,4,55,77,126,54,194,81,233,140,121,+201,95,83,140,112,103,190,227,87,247,250,122,198,249,230,93,197,171,226,78,14,246,56,248,79,108,253,187,25,143,109,97,+148,187,136,192,226,128,182,89,196,129,134,74,67,254,28,192,200,169,94,160,239,81,78,83,53,252,180,30,50,152,194,237,+183,161,42,66,173,54,210,195,60,236,47,68,27,92,53,171,17,145,196,214,240,6,52,197,68,128,1,117,172,29,141,176,+228,36,164,65,93,122,247,185,39,205,174,121,140,251,43,226,189,121,142,175,222,31,192,103,106,115,67,5,88,239,164,169,+188,75,95,71,71,185,7,6,139,100,78,33,69,67,218,175,60,187,136,251,174,133,250,56,252,135,9,147,57,184,128,253,+188,240,57,21,226,28,5,3,190,28,168,25,234,196,169,107,218,48,197,217,230,212,47,148,159,227,115,181,64,224,138,178,+18,120,81,27,86,64,19,151,38,54,118,57,239,107,23,12,101,109,80,164,237,66,193,55,251,36,58,200,180,0,86,94,+103,32,87,205,110,58,225,130,31,122,163,240,30,72,213,181,109,147,205,211,74,199,122,81,240,175,132,255,190,0,195,56,+75,240,133,37,208,173,114,181,153,218,58,240,217,1,30,15,174,230,139,12,81,97,193,142,227,45,47,74,254,27,44,67,+131,70,253,12,62,108,39,121,239,75,225,62,37,85,215,192,67,147,253,108,6,112,109,218,137,193,229,179,122,180,105,191,+58,165,135,68,76,40,44,168,235,131,129,224,219,167,75,244,155,253,105,8,14,130,226,200,144,101,169,224,62,135,53,248,+18,4,124,34,94,138,123,21,6,123,175,14,102,164,33,203,127,70,227,39,104,216,85,85,85,198,98,139,181,211,7,137,+61,121,228,115,120,243,97,94,156,120,220,91,212,68,132,187,80,74,91,124,119,15,241,78,83,69,221,63,122,23,45,240,+12,179,8,58,12,234,169,229,187,83,188,156,142,126,247,164,57,175,216,4,14,126,38,194,231,216,238,98,32,204,239,182,+154,39,40,93,38,237,71,178,135,142,179,245,148,168,225,203,187,66,170,18,44,160,110,225,102,28,98,154,38,99,226,78,+23,1,220,187,231,145,70,123,24,203,96,21,136,141,213,46,117,199,21,154,242,124,154,59,54,67,55,177,251,57,181,178,+249,254,226,141,59,224,12,151,47,50,27,63,49,243,232,179,50,151,101,126,49,148,67,252,12,130,194,253,244,60,121,254,+86,4,180,34,70,42,32,86,249,190,0,19,145,50,28,125,64,71,199,96,48,124,14,39,148,28,143,120,12,92,173,215,+236,86,7,1,112,79,137,145,86,158,18,73,203,73,106,22,183,163,3,70,10,235,87,17,247,217,93,214,168,69,215,36,+214,171,1,127,130,194,63,90,252,243,104,183,46,58,251,128,198,243,164,50,143,215,125,81,56,245,77,144,210,73,140,96,+224,55,213,52,13,209,246,109,34,49,146,82,19,3,87,113,52,51,166,152,20,40,42,194,182,3,145,237,9,116,42,165,+88,210,116,63,170,149,160,90,84,184,209,147,229,16,129,36,34,209,153,70,76,208,75,85,36,144,113,150,219,206,151,139,+110,118,200,33,35,12,119,109,188,234,15,107,225,162,172,153,243,180,119,167,7,64,14,92,247,116,114,0,124,88,114,172,+60,174,191,20,103,150,11,202,169,231,75,91,246,194,213,106,244,80,207,179,20,93,79,30,114,139,239,108,116,152,63,44,+52,124,72,221,160,88,85,102,83,229,194,131,107,160,57,222,116,100,18,102,66,217,64,170,16,174,147,209,219,41,187,182,+215,243,65,208,151,183,196,233,210,244,136,51,219,7,171,58,12,68,55,164,73,201,244,12,245,224,137,46,229,4,137,205,+30,224,67,52,73,202,204,224,84,28,249,98,102,170,174,242,199,25,120,226,201,121,37,11,247,173,84,180,84,102,159,119,+35,170,228,188,43,218,59,141,85,171,249,69,59,61,155,48,141,166,179,125,109,118,175,29,14,182,56,36,220,112,208,182,+195,27,25,208,50,102,37,115,11,104,16,36,253,187,254,32,64,166,254,219,79,36,121,156,38,61,239,128,91,243,162,66,+67,198,208,134,80,11,132,84,198,101,241,204,38,78,1,118,205,53,90,6,63,180,226,3,155,188,50,26,175,152,59,20,+10,59,30,22,153,216,0,243,51,20,181,209,213,60,22,46,207,123,247,172,47,83,41,4,99,153,43,203,39,255,105,214,+138,250,87,153,58,159,99,109,240,155,220,50,85,133,216,251,16,132,107,38,122,244,210,183,52,238,171,107,37,105,12,56,+100,82,239,145,208,193,82,242,138,25,188,223,139,53,222,132,164,159,246,23,184,84,243,121,5,174,185,241,235,89,39,72,+106,209,67,181,116,43,69,251,37,97,211,166,70,181,216,1,32,207,17,95,87,191,101,81,58,216,128,198,185,15,109,21,+121,212,232,174,199,40,230,21,164,64,52,168,229,92,197,4,35,44,112,93,81,76,209,254,153,105,222,73,21,59,237,64,+43,78,59,53,194,161,195,118,38,36,208,96,40,49,206,174,96,32,145,46,9,42,126,242,35,113,139,33,209,82,150,192,+161,74,154,183,207,51,193,135,56,147,249,215,50,93,161,13,221,42,184,146,229,224,91,192,23,222,255,183,18,116,228,36,+14,96,35,6,158,213,205,200,106,89,229,250,47,228,35,247,167,124,80,119,226,10,229,178,221,190,45,70,23,138,61,148,+118,98,224,216,152,85,44,90,136,1,130,110,132,50,119,125,185,110,8,126,107,96,139,27,44,27,162,230,30,158,15,186,+137,200,136,193,130,190,148,75,15,111,17,149,137,234,182,121,59,50,50,9,135,56,47,190,73,249,216,68,2,153,198,100,+21,100,243,225,221,42,7,155,241,73,175,64,127,130,44,58,3,135,93,84,115,134,128,129,56,68,83,250,187,123,243,126,+10,217,21,249,32,209,125,198,94,167,157,179,242,67,56,198,82,213,94,213,83,107,79,137,23,216,78,69,26,131,89,22,+22,75,218,84,39,11,47,0,55,225,250,186,75,148,113,232,116,237,21,255,18,192,110,2,4,125,12,168,225,67,67,153,+11,74,98,74,109,162,233,90,70,32,65,184,65,12,60,60,170,234,120,56,87,125,10,163,124,197,50,45,82,3,105,138,+206,101,178,12,210,64,185,238,182,204,154,78,50,40,88,140,52,176,210,154,152,215,167,137,242,158,117,151,126,205,24,221,+233,202,188,188,226,25,40,248,3,115,111,160,78,118,140,235,194,197,71,200,184,134,16,63,85,146,122,119,27,167,158,78,+162,11,218,168,52,195,235,13,29,222,211,215,45,185,197,144,114,162,99,156,34,221,3,136,147,252,76,92,122,190,46,197,+162,243,251,181,70,250,250,220,13,132,99,188,39,97,56,152,148,186,74,46,29,38,102,229,83,105,239,124,189,172,28,62,+38,132,195,210,66,190,61,29,89,13,65,59,107,60,85,180,47,238,158,237,235,18,163,68,240,223,216,82,134,234,248,87,+251,22,67,90,208,110,112,76,153,110,3,212,39,24,184,238,150,182,125,6,167,219,161,50,180,113,21,163,193,185,145,50,+76,227,36,211,30,115,171,98,70,78,44,13,88,45,209,81,151,115,203,114,123,1,253,89,250,70,77,101,215,59,245,184,+183,38,53,220,148,136,25,251,108,188,111,55,156,43,6,194,66,164,1,14,34,101,109,68,235,32,139,148,118,177,101,153,+46,147,214,207,202,130,19,115,94,86,190,96,149,150,57,154,120,42,242,51,165,11,46,96,222,57,92,20,42,149,42,213,+249,54,88,30,99,188,52,108,240,183,222,50,110,86,4,116,21,154,226,30,179,243,77,147,110,243,231,66,56,69,105,97,+90,247,208,161,2,253,112,156,252,162,247,87,239,70,33,65,38,128,91,52,11,20,236,3,54,129,171,244,241,238,172,130,+183,217,165,212,75,111,114,109,215,222,65,188,88,104,177,140,66,106,119,231,122,178,205,106,160,45,79,157,180,70,144,24,+31,67,233,116,238,161,190,224,182,205,208,3,66,225,29,70,2,38,131,161,233,179,170,97,200,84,139,28,106,22,11,161,+85,85,239,5,243,44,109,31,193,8,232,83,248,136,137,41,165,231,75,88,137,177,165,170,172,205,182,17,255,54,71,163,+182,55,8,125,226,76,205,213,166,138,95,8,89,118,121,250,103,194,170,187,242,217,109,23,75,143,168,188,242,48,191,66,+186,13,75,216,30,79,139,248,197,98,247,131,215,220,211,168,215,189,222,251,165,243,11,80,42,196,59,29,173,40,201,45,+216,109,12,87,223,234,182,146,205,255,217,125,93,177,198,89,98,19,121,161,121,45,173,179,28,147,182,165,114,211,160,51,+192,43,95,68,123,56,148,139,162,244,252,91,9,141,241,129,111,175,207,183,37,245,244,23,37,170,81,210,213,164,240,201,+236,176,61,157,152,182,233,63,65,115,132,106,21,183,82,48,136,14,18,186,38,92,131,119,245,178,188,20,190,56,184,210,+17,67,187,20,169,91,88,214,6,45,225,82,99,62,3,120,44,124,57,226,158,33,212,193,182,168,134,117,5,21,125,145,+67,217,227,246,193,241,196,192,221,226,8,83,98,185,94,237,62,154,96,179,4,245,21,253,137,118,221,5,191,222,177,167,+163,105,118,210,189,216,5,118,238,232,192,33,190,127,195,69,243,8,55,155,139,213,89,110,15,37,172,90,13,184,221,175,+225,207,164,159,89,216,144,89,8,3,91,91,163,102,5,103,60,46,232,235,74,18,132,29,179,11,234,167,91,44,193,169,+11,80,207,105,123,5,82,213,60,97,220,40,198,73,235,145,222,197,19,38,46,92,92,128,123,181,224,12,16,151,149,14,+50,15,231,33,150,195,113,235,119,98,146,148,28,159,39,248,3,162,16,229,180,175,125,217,72,12,145,30,159,51,252,202,+5,229,50,201,171,146,122,84,64,77,89,98,116,20,61,253,73,177,96,160,249,160,139,78,199,110,90,156,120,11,239,239,+243,244,87,208,93,13,52,144,95,58,120,201,235,230,241,127,93,61,128,171,248,48,128,225,11,103,33,60,123,202,174,95,+2,247,249,79,165,117,54,29,95,250,220,39,44,99,67,53,199,157,168,184,185,153,199,234,235,32,138,155,164,76,234,165,+41,76,215,210,118,41,158,58,119,205,197,125,98,29,109,223,70,56,98,17,186,100,191,42,224,193,25,100,182,151,71,84,+144,135,172,105,179,121,15,64,33,197,14,142,26,65,58,142,160,20,144,139,43,103,185,195,84,181,194,2,217,242,197,59,+47,204,173,247,224,215,77,163,189,168,52,230,13,230,42,249,115,234,236,159,163,36,126,236,190,207,131,127,222,119,239,93,+84,195,242,213,230,170,106,30,191,197,242,224,106,86,245,238,27,20,216,45,225,225,19,90,45,108,178,160,132,174,185,154,+214,36,85,253,226,244,245,153,93,77,170,250,120,133,220,159,33,150,174,49,59,110,62,33,186,211,98,238,138,161,135,249,+116,230,231,109,71,153,3,235,130,2,46,106,75,11,13,188,99,83,96,182,58,173,108,23,181,69,187,85,217,137,203,115,+38,229,150,162,78,106,123,41,81,96,16,127,252,60,82,189,57,119,215,15,80,89,197,229,229,143,253,34,247,31,115,109,+35,27,95,213,85,238,110,73,179,133,197,234,122,82,148,142,221,115,186,44,163,36,211,231,113,19,237,228,165,124,89,36,+62,153,199,151,192,140,217,56,8,126,13,150,217,216,141,201,3,177,143,248,108,118,111,86,101,118,185,123,121,135,154,27,+19,72,98,152,178,239,8,166,143,16,5,215,237,16,240,233,215,211,79,25,91,128,171,130,136,66,222,22,31,18,48,144,+11,138,234,150,189,247,255,251,147,28,160,42,134,149,186,57,144,75,83,15,84,73,117,96,206,207,159,143,99,181,61,240,+215,74,43,97,104,62,231,158,180,244,218,220,208,116,49,132,56,153,227,221,45,13,88,203,172,70,161,200,29,132,37,162,+63,188,84,166,88,76,78,71,205,136,77,14,54,219,177,11,6,207,168,168,123,76,54,123,197,118,17,228,144,240,17,49,+10,70,136,238,3,248,20,102,35,86,42,136,52,44,224,241,28,175,146,248,79,112,160,135,158,200,130,173,22,129,230,0,+92,202,216,223,212,165,165,221,193,42,135,213,51,5,95,146,60,51,177,147,104,223,12,54,91,19,125,21,151,71,194,78,+55,215,31,10,110,240,198,30,115,77,234,40,212,103,6,250,30,30,247,87,211,191,9,161,225,192,109,235,221,20,21,86,+12,61,144,91,208,242,168,114,244,199,43,222,255,186,161,49,119,10,33,0,53,173,95,23,8,189,14,6,46,84,75,46,+56,180,121,15,75,180,170,153,195,171,109,206,41,6,18,81,182,8,143,155,163,119,8,217,219,19,118,57,213,93,219,190,+61,59,221,15,57,41,50,171,154,146,121,63,166,241,87,61,110,250,45,213,30,60,188,53,58,165,4,89,79,194,1,118,+61,135,102,102,30,239,54,6,19,111,35,232,205,5,122,178,43,107,27,60,121,19,76,79,121,233,130,23,219,11,20,96,+190,15,115,101,102,237,244,86,215,41,99,244,57,229,73,241,101,208,9,184,176,112,253,92,165,170,0,205,162,127,128,196,+117,240,31,49,202,130,177,108,27,238,76,145,64,202,90,154,95,185,34,238,185,155,186,94,99,105,94,42,173,20,49,243,+160,42,189,41,78,176,141,126,59,212,171,124,252,55,72,93,111,30,27,82,227,90,158,21,197,52,122,198,29,140,241,222,+95,138,4,182,146,135,39,53,4,224,209,253,139,178,196,246,127,25,98,230,85,155,145,107,44,22,90,235,36,183,42,252,+232,214,91,73,48,244,32,32,159,5,111,156,221,92,241,5,156,227,7,11,201,194,79,44,148,14,186,66,249,94,8,156,+63,140,188,102,176,247,219,124,240,129,181,234,31,249,23,222,37,95,64,242,63,133,22,229,48,187,180,201,211,169,6,242,+103,189,189,71,238,210,130,179,52,171,50,130,216,249,82,212,148,223,12,84,119,80,183,151,61,24,161,0,157,116,215,77,+231,217,241,126,175,29,77,215,19,52,173,57,33,119,211,164,61,38,86,158,8,53,33,229,131,90,143,144,182,67,239,199,+175,27,221,214,235,222,128,109,40,151,253,228,164,172,34,245,201,176,119,173,238,202,169,6,161,6,174,6,53,220,104,211,+117,47,249,116,117,17,37,111,198,99,161,165,108,22,253,106,106,150,232,175,144,98,202,185,169,119,147,130,165,185,181,219,+144,255,213,65,200,8,23,85,98,64,33,42,210,170,254,101,83,182,172,241,168,165,89,249,194,183,212,163,99,115,186,233,+252,254,181,37,49,165,183,169,58,129,40,56,99,195,149,156,241,101,77,228,132,86,221,207,165,252,140,205,146,228,230,184,+168,163,194,194,147,184,56,188,211,253,233,77,246,167,96,67,202,91,109,212,83,52,55,130,114,129,59,78,131,53,8,162,+0,125,105,210,30,243,34,62,14,241,253,12,142,161,111,49,153,32,61,105,14,103,201,207,88,234,64,91,245,93,218,250,+173,135,255,88,77,72,213,187,246,42,80,31,20,189,181,235,175,30,84,80,97,251,248,157,255,160,138,214,244,12,64,175,+4,235,66,150,72,145,123,193,131,179,104,152,131,4,11,103,74,199,16,111,84,211,94,251,182,228,38,59,46,192,166,118,+241,180,14,201,236,68,98,79,116,135,191,106,12,246,24,97,134,141,72,37,119,245,84,202,191,211,79,5,122,85,112,14,+89,144,190,105,121,88,75,149,164,115,131,224,35,35,230,219,77,156,238,147,148,94,184,23,20,215,131,154,231,101,117,236,+143,60,53,2,188,95,195,179,166,110,198,94,67,239,30,23,140,182,133,148,114,75,205,30,59,208,157,40,70,110,207,23,+216,229,72,42,179,220,163,245,203,43,208,135,106,213,213,234,212,84,133,21,132,45,229,69,1,89,50,47,113,58,114,173,+54,229,133,122,133,133,28,29,219,225,178,46,194,107,76,94,182,81,143,235,96,184,76,115,136,17,205,193,60,109,102,96,+170,4,144,44,61,210,179,22,234,38,250,181,181,252,161,168,248,0,215,124,79,57,179,174,232,235,78,96,255,104,229,209,+237,241,194,25,234,19,165,61,216,233,244,143,31,0,186,113,69,77,233,193,140,60,216,213,229,25,117,171,162,177,49,250,+88,160,160,166,82,13,146,73,27,167,103,171,38,0,53,75,149,142,28,91,110,47,157,49,130,161,111,28,88,201,133,26,+167,207,239,0,81,0,7,136,2,123,50,115,136,198,104,159,76,226,194,153,168,27,96,247,113,158,51,181,218,220,159,70,+52,87,214,35,106,89,207,196,161,138,89,166,111,39,102,221,68,146,148,79,2,107,169,161,154,234,14,107,66,115,191,21,+243,132,73,103,227,183,247,19,236,75,120,213,161,242,153,102,41,228,210,75,45,185,174,135,121,55,245,81,103,156,32,41,+121,5,227,118,213,6,127,235,185,2,71,67,57,14,197,33,202,159,191,185,19,223,100,79,163,39,242,193,21,165,149,90,+215,211,175,233,28,104,156,52,222,97,87,114,57,111,127,188,92,77,214,157,132,73,68,95,179,175,115,198,130,236,193,113,+86,16,221,207,155,113,205,45,93,29,17,81,81,67,132,243,130,216,164,140,159,143,31,198,18,137,166,202,141,74,207,250,+237,154,149,42,11,23,9,187,161,156,190,50,101,72,17,29,109,108,67,153,0,182,49,47,37,17,50,219,115,82,131,51,+167,76,127,59,19,91,156,0,254,34,172,249,123,208,174,132,53,144,12,181,153,142,246,44,98,28,234,41,173,250,249,189,+59,30,86,134,177,79,68,95,73,33,133,163,184,238,167,78,109,190,108,216,16,177,229,76,159,37,239,141,173,224,178,92,+212,16,241,20,56,90,110,234,139,51,153,178,200,56,83,97,154,14,128,196,173,19,251,165,214,197,158,140,64,38,241,253,+240,124,20,190,62,10,29,59,89,236,255,115,221,99,244,220,132,16,34,246,110,156,200,51,36,32,32,147,32,212,80,120,+178,182,99,125,131,239,225,28,142,181,88,131,85,129,227,119,224,240,237,174,69,253,159,28,212,41,13,82,227,245,216,78,+154,7,192,251,26,138,11,67,153,65,191,18,156,155,90,29,212,7,127,234,231,172,240,161,223,215,231,19,241,221,124,101,+96,133,196,81,44,253,89,14,159,90,110,28,54,81,171,230,199,47,58,232,88,177,249,209,102,9,91,37,32,44,96,135,+86,191,97,180,163,87,44,144,106,206,207,184,60,133,205,149,149,186,35,47,255,239,134,151,172,172,146,19,171,23,139,128,+112,113,34,8,113,192,125,193,18,18,82,150,78,140,20,33,202,30,84,213,121,107,22,67,144,244,246,145,147,176,247,254,+113,79,44,200,163,181,106,42,71,29,45,50,2,87,110,230,138,244,8,246,175,203,211,15,104,190,61,195,183,208,114,125,+242,125,69,142,252,232,146,220,61,129,128,93,12,197,143,114,138,149,65,75,5,241,166,216,188,216,173,208,127,84,244,136,+37,112,146,250,63,107,3,195,54,66,186,162,42,212,152,215,197,145,2,20,2,14,186,119,100,137,32,30,178,57,79,126,+105,92,166,84,88,175,72,246,46,81,65,206,18,208,75,104,7,67,11,254,238,24,128,88,239,48,35,182,161,72,191,40,+103,23,41,55,210,231,43,94,186,72,7,226,94,94,200,225,162,150,230,254,156,47,211,217,203,40,166,189,42,172,166,58,+136,185,33,220,85,76,203,223,130,71,23,250,212,160,213,196,33,90,115,164,175,44,230,169,162,126,196,50,180,136,234,90,+147,237,195,173,112,3,164,21,129,82,117,229,15,228,1,214,103,55,43,31,176,144,143,150,66,130,185,245,208,97,242,185,+252,223,65,114,15,115,211,164,240,193,126,114,209,53,75,156,151,180,67,3,246,163,75,135,123,53,37,59,219,122,93,165,+223,102,139,105,58,171,211,245,86,126,202,215,205,75,152,165,94,48,174,200,178,149,151,119,65,120,149,160,152,6,145,75,+228,116,146,72,212,36,245,154,173,152,241,85,120,160,231,0,110,238,157,82,47,176,75,229,74,76,138,71,83,166,216,63,+88,187,28,150,190,148,233,70,162,56,60,144,242,188,121,46,88,158,83,159,154,231,246,190,68,162,163,110,22,24,60,227,+131,90,80,85,157,134,38,168,191,191,113,52,7,83,204,20,222,1,235,220,109,37,27,59,241,34,8,93,5,151,191,9,+181,108,86,98,168,81,137,144,62,218,209,137,107,196,12,149,26,57,222,202,97,126,179,178,175,74,182,195,68,104,188,114,+108,131,169,84,153,25,116,186,66,43,104,190,202,140,60,234,5,143,120,206,145,2,44,127,204,197,91,49,242,178,255,210,+47,11,129,161,227,161,119,145,139,22,143,149,85,160,205,127,199,216,250,202,129,42,156,253,96,223,89,0,72,222,103,203,+228,201,184,240,171,16,225,16,201,167,208,147,73,31,220,146,55,122,126,225,98,79,249,115,159,117,224,90,47,17,114,243,+241,217,136,155,139,149,71,30,179,128,71,116,17,232,199,44,174,175,172,90,96,25,109,43,60,141,108,60,125,120,88,88,+91,239,35,131,180,253,72,35,117,233,17,137,196,128,0,209,81,166,114,212,67,80,69,189,39,236,170,165,31,14,143,49,+71,112,210,150,171,34,139,111,101,156,168,0,205,194,231,77,96,156,173,158,34,106,63,213,81,241,239,122,108,57,16,79,+249,240,62,97,176,11,3,41,83,172,80,41,121,31,29,53,253,229,233,82,40,119,47,132,206,194,171,5,130,48,205,65,+1,9,184,71,72,110,196,117,31,34,94,209,26,106,76,213,0,9,132,89,115,189,110,43,80,51,30,242,181,214,85,32,+255,125,190,187,164,115,77,109,32,66,231,139,25,7,139,212,150,86,139,197,94,189,248,88,55,94,89,250,225,66,9,167,+142,164,143,144,83,101,63,73,31,48,56,108,9,50,157,50,190,152,174,225,13,52,141,82,62,34,96,88,210,44,174,110,+160,138,207,4,111,48,253,160,67,16,158,20,240,16,131,181,87,60,41,17,138,2,87,231,15,9,14,3,129,98,206,137,+229,137,12,109,232,149,33,193,157,160,106,64,185,226,63,113,145,232,214,178,220,43,166,95,111,162,86,61,101,235,239,32,+248,121,237,76,255,46,97,63,6,8,228,113,171,132,58,31,105,223,196,255,204,225,84,26,140,97,126,229,90,19,155,106,+8,104,24,166,106,250,173,94,11,215,24,49,126,142,246,157,114,187,126,60,180,236,213,227,221,41,75,18,99,247,142,150,+102,134,22,248,18,72,0,247,159,95,81,230,3,118,119,152,148,79,24,175,251,24,173,40,17,216,112,20,163,153,29,116,+88,143,185,161,36,175,124,45,124,39,100,158,36,139,209,176,181,204,31,91,236,243,35,65,53,100,133,224,69,23,95,51,+31,206,127,209,249,45,171,138,165,225,98,150,213,32,33,146,137,64,175,168,187,108,228,180,100,113,14,22,159,175,126,26,+96,158,86,113,249,192,75,219,207,204,244,138,97,211,69,186,65,198,24,230,113,254,144,73,145,31,183,176,175,44,97,73,+218,81,155,135,247,221,236,20,45,116,211,87,100,95,56,5,201,205,5,200,173,135,142,236,106,102,217,43,63,87,217,107,+139,126,64,163,30,10,62,48,42,115,147,101,158,225,115,159,200,139,126,183,131,53,24,41,248,252,171,156,183,244,183,62,+114,126,73,35,156,95,75,228,72,98,61,248,37,150,30,245,135,44,49,49,229,194,221,42,202,249,27,167,103,155,4,155,+102,106,2,50,103,157,14,67,192,6,176,54,136,127,236,41,22,214,199,156,145,238,214,193,27,145,251,108,188,52,140,134,+224,188,116,150,254,95,203,29,116,234,58,159,224,159,104,172,218,188,162,108,250,241,245,232,159,55,154,123,243,92,127,229,+154,123,213,207,250,164,238,123,48,44,210,51,90,225,53,50,135,61,249,205,200,155,110,210,230,160,182,220,24,2,161,19,+107,32,95,248,21,189,220,94,238,185,239,122,212,229,38,217,87,33,118,1,57,27,19,223,178,108,196,164,174,213,124,78,+93,189,45,168,178,129,176,155,27,21,182,197,21,33,217,2,66,99,29,65,48,110,225,64,153,1,87,149,113,136,234,107,+88,216,208,143,20,22,130,217,180,169,240,215,246,179,215,158,145,210,44,35,52,84,65,147,219,46,36,86,36,181,158,81,+46,85,45,98,71,111,157,193,102,211,108,158,231,157,111,49,221,22,215,60,138,120,50,161,88,182,140,61,51,117,16,225,+112,131,55,20,79,47,171,73,169,56,234,185,22,206,22,138,45,210,204,173,163,223,157,60,104,220,96,193,213,109,24,238,+183,181,52,214,37,156,96,147,111,185,210,81,176,114,126,4,70,189,77,56,98,197,132,197,99,155,57,31,69,147,254,173,+212,28,155,9,224,43,223,185,118,218,83,112,137,162,186,7,49,242,176,110,143,81,61,239,153,2,30,10,55,212,100,209,+132,163,217,26,160,227,59,217,112,69,242,215,44,41,136,215,226,246,172,118,223,237,107,18,76,252,185,203,222,8,25,17,+183,27,7,236,36,146,197,64,126,161,33,5,231,7,220,11,242,20,39,71,187,172,6,89,238,176,9,111,250,216,200,203,+74,45,36,108,25,168,136,39,131,101,25,164,11,73,89,134,127,110,145,122,21,194,135,106,209,109,195,74,214,144,27,253,+211,50,236,110,131,232,120,192,35,130,132,54,93,196,239,42,246,116,220,161,121,30,49,183,154,174,129,144,56,182,6,114,+100,249,234,111,158,243,84,100,104,178,64,29,86,193,76,175,5,107,110,60,254,190,110,215,97,174,52,70,223,213,106,44,+103,90,16,209,210,105,159,30,181,12,10,55,3,10,91,21,143,165,2,185,247,145,45,79,182,119,152,251,22,108,13,65,+163,197,78,44,162,91,209,229,17,148,217,148,61,248,217,123,215,80,87,145,146,200,61,218,108,157,99,3,54,58,231,58,+96,42,169,166,58,117,110,34,120,204,38,81,158,0,143,147,233,34,230,204,25,168,127,78,244,208,219,74,167,89,94,50,+142,247,129,17,4,41,138,153,79,15,157,184,192,241,230,248,126,235,61,138,52,123,199,195,65,101,158,74,78,209,4,195,+49,30,231,118,161,168,234,42,175,107,174,210,197,112,203,34,80,78,88,235,35,24,196,62,115,234,74,188,3,59,145,16,+150,64,205,166,216,10,59,208,92,205,191,74,52,160,82,166,70,109,95,133,105,78,110,7,7,64,171,25,100,180,31,112,+196,4,57,7,26,170,155,149,251,226,223,28,149,164,235,231,99,250,57,36,61,129,74,219,11,226,156,147,64,86,54,61,+235,37,106,234,240,105,253,210,5,53,39,44,218,24,8,166,94,154,8,102,212,40,82,212,3,165,170,198,128,146,16,129,+98,78,110,255,217,8,254,100,114,129,93,164,135,87,217,63,199,31,154,70,106,214,23,56,153,174,239,189,229,128,243,104,+17,11,231,72,68,196,123,189,135,201,161,160,0,20,34,171,123,55,3,60,134,223,173,9,221,11,117,252,113,126,246,137,+121,155,122,228,86,52,126,248,148,145,63,191,191,178,104,90,106,98,9,0,84,93,186,162,11,15,4,46,135,115,196,240,+41,44,133,107,1,101,153,88,246,160,131,171,150,160,135,216,179,185,236,123,155,102,32,39,184,254,156,159,170,91,16,104,+242,196,212,247,172,38,182,179,82,180,159,183,88,5,186,136,206,219,26,19,220,8,251,60,165,113,95,251,81,89,94,243,+78,34,165,195,123,54,71,159,125,189,173,132,136,40,243,130,59,146,223,18,209,115,251,2,253,188,43,242,83,88,221,199,+65,228,79,214,96,46,112,34,51,28,195,243,134,251,114,91,120,77,76,193,245,21,14,161,133,110,104,72,202,174,218,227,+62,239,201,136,251,35,83,208,103,155,73,35,137,228,71,226,204,104,184,89,96,123,206,19,114,12,214,170,169,64,181,24,+41,190,1,184,143,164,253,100,8,173,30,150,234,133,143,91,221,19,249,81,205,18,22,2,185,253,165,128,49,42,196,246,+86,13,177,28,115,180,148,211,8,203,128,20,110,26,122,164,97,239,54,71,154,115,174,175,144,139,6,154,87,173,217,4,+8,159,22,72,34,33,37,207,75,244,88,250,81,214,198,178,19,185,122,245,97,164,54,11,157,147,215,109,31,163,45,121,+203,45,88,213,156,53,11,83,179,27,199,128,140,175,22,254,239,45,130,18,163,169,201,68,203,207,246,189,140,77,143,128,+193,197,247,126,102,114,64,243,241,93,212,116,0,206,176,140,129,245,150,209,121,114,94,60,61,19,168,36,175,153,201,133,+171,187,248,192,183,41,89,70,225,224,128,19,133,86,13,154,236,20,80,210,214,165,241,13,156,231,245,91,133,49,11,196,+127,136,184,95,181,51,157,145,9,156,24,1,201,139,223,118,239,66,229,221,58,188,134,99,228,172,77,76,175,57,60,37,+135,2,22,14,128,117,211,255,207,62,114,92,42,224,196,48,37,97,221,187,113,140,199,252,121,7,186,174,8,218,124,218,+97,237,189,135,109,45,153,247,99,209,12,140,52,222,43,217,234,219,102,51,199,69,213,163,95,217,22,109,42,96,161,195,+108,100,75,182,54,218,89,62,223,164,224,108,208,123,99,31,117,11,13,71,87,15,14,28,234,54,144,109,124,32,177,14,+239,76,129,178,165,217,253,75,40,192,83,100,251,153,199,213,102,182,139,51,111,53,140,121,219,20,119,53,185,193,236,113,+126,183,180,11,82,13,58,170,65,174,124,51,201,245,164,69,202,11,60,167,242,225,48,144,158,19,178,72,55,70,122,154,+21,66,196,135,217,225,250,161,100,2,73,57,110,9,213,55,190,11,42,165,55,241,141,117,190,4,24,255,105,99,217,147,+190,114,183,215,76,33,123,154,108,49,171,188,98,188,63,168,72,87,222,132,137,98,67,222,77,99,155,130,241,117,111,225,+179,131,1,29,134,26,21,218,234,52,84,230,138,61,213,178,221,236,209,106,250,32,24,2,103,144,56,237,27,119,178,242,+234,243,33,113,205,130,203,61,155,168,22,109,227,42,94,83,153,52,217,208,98,127,14,115,52,48,162,16,149,162,225,167,+217,195,34,145,223,245,252,255,72,38,98,246,208,0,101,42,136,95,165,43,223,125,180,188,31,183,196,138,236,166,143,108,+24,189,196,107,34,202,200,219,174,120,76,225,23,33,4,153,109,11,166,137,236,213,215,8,168,182,147,131,47,98,1,204,+177,243,143,198,94,94,159,250,238,174,61,211,32,91,133,236,29,154,136,239,182,146,239,54,90,56,155,213,138,114,156,81,+128,177,199,237,103,26,156,167,37,242,223,3,143,147,211,233,64,184,183,216,161,82,234,10,223,4,41,4,84,195,84,14,+165,30,255,149,211,15,48,152,209,214,99,123,185,38,221,168,115,87,18,133,64,175,221,17,232,51,55,240,58,235,43,201,+87,75,78,177,40,246,185,171,64,171,234,214,103,163,100,211,46,247,138,131,149,213,118,146,121,138,210,146,244,82,255,60,+188,77,169,103,67,121,235,29,89,91,166,24,17,102,141,200,170,12,34,241,215,237,179,87,62,107,243,105,92,34,187,5,+72,138,200,197,46,102,112,104,73,115,112,211,213,28,193,240,66,220,142,101,135,49,134,219,214,99,67,171,229,48,139,51,+188,179,19,218,173,90,244,36,49,175,24,41,235,141,185,23,63,50,20,34,3,165,83,173,0,171,84,182,246,76,216,164,+96,80,8,112,88,249,64,242,67,193,167,62,197,62,209,116,69,136,28,121,223,210,146,209,219,34,141,222,100,105,85,76,+201,189,21,244,192,205,200,160,245,110,176,181,223,106,84,87,233,140,38,220,28,251,199,158,170,121,167,67,63,204,215,222,+170,192,83,35,71,173,160,108,251,120,106,179,183,172,5,105,151,176,117,115,116,106,78,213,194,202,6,195,34,165,77,49,+124,95,164,33,49,250,7,234,57,117,113,158,255,170,169,30,252,71,249,188,140,101,235,69,222,202,105,208,159,213,16,210,+138,45,74,250,15,135,104,241,87,230,187,163,89,177,194,128,60,187,65,180,134,15,143,233,223,217,119,3,50,240,238,107,+240,157,220,28,146,8,111,142,227,100,213,184,11,48,105,110,178,240,124,45,182,184,220,244,119,169,43,24,220,148,55,92,+37,40,109,35,144,9,92,140,238,203,96,113,77,226,111,53,76,247,202,42,182,106,218,100,168,96,44,245,185,67,135,70,+160,200,127,176,194,136,174,60,194,207,159,92,160,58,133,80,222,238,217,80,159,145,194,136,1,89,114,66,188,177,240,6,+104,126,224,207,90,190,145,13,108,5,131,130,231,186,35,201,221,60,83,103,172,90,184,59,123,9,241,159,37,101,187,133,+192,189,139,171,17,0,189,130,183,51,113,221,124,237,33,238,180,133,189,154,149,243,41,94,42,238,165,118,217,193,186,235,+250,67,86,145,31,28,160,100,34,89,208,113,188,76,21,229,85,92,55,188,82,174,215,255,78,217,229,52,224,133,157,121,+10,220,187,96,97,187,239,231,90,166,180,4,230,151,67,122,104,249,253,29,121,72,149,173,252,140,28,164,55,124,159,32,+1,159,254,136,215,128,50,218,6,112,43,53,168,171,242,194,206,72,14,200,228,222,169,163,142,45,180,251,210,10,62,150,+27,128,108,220,44,154,29,12,235,249,231,83,219,178,221,21,131,150,162,81,12,209,210,78,254,96,221,125,10,69,121,111,+124,17,245,70,168,171,129,9,201,55,192,58,62,4,101,215,223,217,214,109,231,84,77,83,184,134,17,31,24,127,229,122,+48,30,153,26,132,85,228,131,239,123,174,207,59,141,190,55,163,90,80,15,245,193,5,199,205,59,194,68,28,37,109,34,+197,62,91,222,175,36,175,160,236,157,61,181,6,112,76,187,173,76,66,164,96,226,60,25,191,72,128,92,222,238,18,102,+247,24,16,49,240,225,137,74,106,166,249,255,91,64,91,254,159,191,6,113,9,74,135,83,52,113,54,108,63,185,152,122,+232,1,25,60,143,76,217,205,213,220,117,144,71,119,41,235,211,70,37,144,123,77,70,195,111,169,227,114,48,191,136,230,+68,250,254,252,40,36,194,70,74,60,78,159,180,146,16,249,128,100,229,82,24,126,118,147,188,24,211,245,57,178,155,107,+215,23,94,252,183,57,142,67,5,100,113,54,161,23,146,142,46,45,52,191,172,244,74,4,206,131,85,48,151,151,43,150,+69,207,94,41,185,119,17,164,27,38,157,104,248,196,46,238,163,29,174,125,86,230,91,1,10,226,37,211,42,20,30,36,+16,5,155,196,117,8,12,177,172,177,18,15,73,234,65,103,17,20,88,92,58,85,34,195,26,231,19,37,121,139,217,2,+152,181,140,244,151,219,209,141,186,227,127,223,22,235,45,115,53,223,157,32,29,17,92,171,72,237,127,117,234,26,6,207,+168,140,130,8,80,10,61,133,63,255,154,62,192,128,122,99,150,68,117,224,254,76,58,28,13,122,123,138,138,16,203,170,+55,174,42,62,172,118,49,124,218,220,140,11,15,74,197,17,82,81,196,177,16,151,149,37,202,191,38,239,24,65,60,65,+61,30,25,96,152,255,165,234,26,202,37,12,29,165,205,153,187,54,196,188,126,66,16,248,58,6,91,230,27,180,205,225,+192,216,166,125,65,250,249,122,139,4,148,254,224,12,19,131,80,212,104,67,83,112,204,231,148,123,132,148,57,218,29,6,+196,51,94,34,169,6,185,199,11,163,147,91,7,85,60,131,89,147,158,149,249,109,61,21,199,121,230,88,169,136,76,136,+242,200,23,145,112,149,132,209,253,43,17,221,220,189,119,206,130,77,187,178,153,43,26,213,248,237,85,9,117,156,192,51,+209,53,65,3,131,73,84,64,108,105,247,63,49,203,102,114,98,114,127,227,181,113,51,107,128,234,235,7,90,59,222,113,+181,97,178,35,126,21,26,22,247,180,164,122,157,77,115,141,0,255,95,64,102,17,124,110,30,8,168,38,159,114,93,207,+63,135,169,135,121,29,226,194,51,136,23,19,45,35,227,148,231,66,237,62,47,225,58,161,91,199,52,57,132,68,129,214,+65,134,103,111,186,171,111,156,79,23,82,153,127,112,82,133,247,13,204,83,239,182,17,36,52,15,146,76,125,46,105,115,+66,237,30,162,251,151,15,112,181,128,137,24,82,148,215,84,204,96,148,206,180,81,198,196,44,36,170,134,235,197,100,16,+50,122,127,20,39,131,188,211,214,177,88,44,243,152,159,70,222,70,117,218,243,69,207,157,164,39,237,251,2,232,53,159,+22,178,255,3,4,28,77,88,110,48,81,216,99,130,227,148,137,162,83,4,160,91,252,79,140,176,53,13,43,197,57,36,+106,121,237,44,75,188,199,126,226,181,177,121,86,132,248,217,6,184,93,65,172,107,12,241,138,207,241,106,218,56,101,105,+241,18,83,45,132,138,189,123,78,4,234,215,2,121,70,158,63,132,38,181,164,126,149,28,195,39,110,76,94,82,178,17,+158,189,103,144,93,60,75,53,122,137,144,133,55,251,180,24,24,137,194,237,137,241,214,167,151,142,36,107,243,210,15,204,+107,26,120,79,108,206,228,77,177,111,100,107,145,0,140,47,129,99,57,40,71,18,132,136,183,32,97,158,72,38,247,139,+107,204,31,2,152,229,175,33,148,131,128,177,184,53,239,24,70,199,148,50,232,68,244,131,196,248,54,89,190,195,171,36,+243,31,224,168,161,120,6,252,150,98,230,18,248,186,239,126,192,91,156,219,5,234,208,83,57,125,221,156,52,106,103,171,+188,24,2,138,253,121,108,201,79,159,27,179,191,144,248,123,131,125,186,244,109,152,42,148,216,180,55,141,103,239,233,110,+253,176,183,53,132,64,23,250,166,73,87,23,101,165,189,14,241,46,112,185,29,217,219,222,144,77,41,2,210,169,237,189,+86,7,210,98,71,112,249,139,6,173,183,251,99,174,211,158,250,241,21,222,229,29,221,117,218,15,101,241,117,199,80,76,+215,175,192,196,153,87,118,77,114,101,115,176,242,90,199,161,183,30,133,25,107,11,203,5,113,235,7,181,96,124,60,147,+143,166,94,199,215,128,88,23,67,214,210,12,154,5,147,124,190,108,211,179,94,27,65,127,169,134,174,163,135,135,39,236,+90,137,68,94,59,32,154,69,174,176,190,114,44,188,54,82,241,0,107,72,135,192,38,194,64,228,207,17,60,132,193,192,+47,95,175,20,43,88,18,101,86,125,192,211,216,190,82,242,212,184,33,174,87,150,7,110,121,6,155,119,110,214,153,231,+164,90,188,236,132,113,139,204,164,205,202,70,117,34,160,222,120,245,14,84,9,172,197,46,201,94,26,21,78,83,155,57,+127,144,37,208,26,231,80,201,52,31,197,125,187,202,227,99,130,223,168,200,246,205,66,95,30,97,123,66,14,170,40,202,+209,164,46,174,201,26,215,117,16,107,55,36,240,227,167,90,28,28,179,6,147,83,59,247,142,129,224,12,179,100,89,149,+63,156,87,115,199,157,183,203,222,84,83,81,150,34,57,150,40,11,163,12,197,85,163,54,107,9,37,234,121,72,210,220,+72,225,80,245,0,197,32,35,217,109,39,143,88,203,177,34,159,163,198,113,239,229,12,193,114,214,56,190,34,12,246,66,+176,27,246,99,252,252,67,165,40,95,197,44,242,151,184,251,150,40,178,232,97,33,152,194,48,48,63,120,60,198,128,40,+4,203,41,44,136,30,255,119,254,165,66,125,221,195,238,158,115,250,189,158,171,122,142,107,68,99,129,200,75,213,109,23,+232,29,197,189,61,135,26,128,200,4,110,189,209,47,119,163,81,10,104,29,51,2,58,208,37,115,135,73,25,0,20,251,+234,157,243,110,232,138,89,47,34,186,232,22,73,13,98,201,31,222,151,27,56,19,158,25,165,150,116,139,56,66,242,129,+16,219,237,254,110,38,162,104,205,47,222,199,210,150,92,1,125,118,93,104,137,237,145,53,173,235,187,32,66,96,84,169,+68,177,97,72,46,176,14,66,30,213,191,164,69,42,203,45,54,64,239,241,173,21,116,64,139,6,171,211,91,89,248,99,+82,26,215,119,211,222,74,8,38,182,74,172,205,254,172,146,58,109,47,118,105,205,138,61,99,254,182,58,69,168,224,72,+19,7,98,193,240,182,47,183,140,254,178,190,63,151,26,164,202,47,163,6,12,106,41,188,63,22,190,121,38,184,220,75,+107,128,168,95,55,187,76,110,148,252,3,85,98,164,19,242,195,99,219,183,66,99,8,37,65,89,169,87,46,184,128,62,+245,82,134,213,242,98,114,186,109,96,67,211,162,61,178,190,90,8,205,180,190,149,212,218,18,105,220,247,132,91,23,63,+135,47,179,176,15,202,136,33,243,143,101,169,44,217,98,242,198,13,44,196,125,168,39,128,210,116,41,158,66,222,117,250,+41,186,125,218,117,106,253,36,213,12,82,118,27,213,80,59,7,226,13,33,33,15,243,214,40,188,113,62,65,234,229,67,+51,88,7,183,36,106,209,22,127,153,195,203,177,107,220,48,82,231,198,230,65,154,147,242,213,109,138,111,27,229,207,23,+242,185,0,197,94,137,74,43,76,231,118,104,13,204,31,252,53,99,120,80,34,22,222,42,185,9,35,43,127,159,40,233,+102,13,5,244,21,6,231,41,7,68,140,57,130,57,200,203,156,88,131,21,157,202,176,19,152,110,167,227,14,136,82,113,+109,197,157,95,227,252,161,16,109,147,29,121,211,27,53,207,86,79,101,165,217,254,245,243,181,181,92,213,207,252,167,126,+22,172,180,25,187,23,249,223,202,172,232,142,41,197,33,104,117,109,90,51,31,144,70,21,243,241,174,196,117,8,72,153,+59,217,76,166,29,90,32,72,245,51,211,244,128,125,17,125,236,76,133,173,197,36,151,236,217,237,53,133,15,160,197,4,+55,189,144,6,190,194,231,77,46,249,154,186,6,64,108,73,95,127,78,208,236,68,238,125,175,101,162,62,5,70,6,39,+52,158,193,111,108,217,24,216,22,157,167,98,114,83,121,116,16,132,210,88,56,83,184,242,83,233,174,69,132,46,112,234,+254,152,27,236,17,26,137,70,56,43,26,138,51,75,241,235,107,235,148,125,63,190,83,138,166,89,45,126,91,245,237,32,+107,253,192,127,31,184,192,88,130,62,81,36,211,141,104,21,96,222,17,139,170,4,228,120,239,83,40,167,63,84,189,143,+160,59,162,196,218,48,149,153,138,68,83,71,198,211,152,90,10,106,228,88,254,106,175,16,240,74,193,167,155,193,6,127,+177,7,104,33,45,30,205,128,30,57,142,40,67,86,183,67,66,143,232,213,246,71,87,12,64,179,229,199,96,228,91,189,+150,23,234,185,158,199,188,206,14,246,140,209,73,190,236,189,114,210,182,163,224,6,251,108,78,61,4,108,10,125,100,139,+223,41,160,5,52,16,7,93,74,210,76,236,208,216,101,49,222,110,42,0,245,9,94,233,190,226,121,179,118,137,44,196,+149,135,38,168,236,90,35,141,91,226,87,193,212,178,246,226,78,100,159,55,181,242,35,43,43,98,77,153,18,119,71,211,+230,91,173,57,74,7,42,255,40,203,148,59,98,55,36,193,5,93,48,252,166,180,215,26,97,193,205,145,239,19,134,101,+86,146,1,121,151,46,242,69,141,61,183,46,119,4,14,241,249,193,181,133,208,42,192,78,209,172,87,73,77,25,39,48,+1,217,189,5,37,1,210,229,193,98,86,101,229,120,251,112,255,3,212,151,58,35,241,23,48,253,95,21,168,230,174,186,+2,95,150,42,247,171,149,93,180,198,239,229,111,63,199,45,42,173,163,66,33,114,223,120,80,79,136,170,35,152,235,129,+52,193,134,186,181,105,1,142,183,13,150,113,229,141,137,30,13,21,75,147,159,158,40,64,145,124,130,2,211,169,67,111,+68,83,214,135,250,150,1,199,64,243,91,144,77,244,62,116,55,185,213,2,134,172,15,152,254,162,173,32,215,72,12,229,+236,170,21,117,56,159,208,206,168,246,40,37,85,36,233,220,172,201,6,23,34,89,11,54,236,196,105,158,230,115,159,8,+176,241,11,224,254,113,20,30,0,135,82,23,67,118,149,41,233,144,109,118,229,175,12,208,40,50,118,156,54,173,3,66,+177,193,128,54,174,50,58,144,21,129,138,56,212,167,205,93,84,118,106,41,162,242,209,232,234,229,33,250,120,170,239,175,+236,216,159,108,219,23,170,22,130,231,1,5,91,54,18,153,128,173,208,98,168,13,226,201,254,91,135,3,152,96,181,130,+71,244,98,108,115,42,49,91,254,177,25,92,29,15,137,196,60,219,122,12,4,99,66,86,122,112,249,22,32,55,18,220,+185,67,8,22,48,51,105,135,119,185,80,231,100,146,3,194,103,65,124,89,154,184,198,148,254,169,183,72,87,150,104,16,+95,148,147,215,153,251,75,253,74,143,28,166,221,211,27,61,149,68,234,62,193,28,235,206,254,13,25,165,165,219,108,217,+17,222,66,58,63,111,59,81,86,111,89,19,168,106,77,88,245,96,228,156,45,189,124,81,155,93,124,148,170,119,115,138,+239,165,240,1,238,211,220,194,217,130,165,234,189,129,174,95,114,196,199,83,235,125,252,135,100,189,2,39,250,62,115,240,+225,190,100,137,200,236,20,154,211,145,144,246,19,58,33,160,180,121,251,146,185,204,44,189,92,14,225,22,230,106,209,95,+224,59,134,193,211,119,66,251,137,162,116,92,221,14,92,4,24,181,60,215,99,247,114,121,187,126,1,144,240,180,78,78,+217,67,147,253,68,14,80,16,235,90,25,30,219,140,125,18,203,30,60,237,79,58,125,253,254,111,159,242,194,147,239,52,+185,22,192,9,53,157,159,168,249,143,127,148,129,43,4,208,182,87,49,89,134,153,88,67,104,180,0,150,153,104,28,218,+63,97,132,236,47,84,173,3,196,68,93,233,218,130,139,104,52,119,235,169,12,193,14,137,31,20,63,64,131,212,41,241,+1,125,38,128,58,18,200,191,175,63,126,174,188,232,212,109,155,203,3,1,154,169,106,245,105,94,171,242,137,12,110,159,+8,201,59,23,51,189,189,219,55,168,2,198,167,203,48,26,10,195,152,228,202,162,239,60,206,111,103,10,62,96,64,70,+58,180,249,228,45,228,55,188,29,8,218,253,19,178,86,177,39,99,30,91,245,93,178,38,187,226,56,197,180,147,213,197,+27,149,184,27,0,203,68,60,174,144,0,205,236,216,108,251,133,110,45,168,122,203,51,9,241,68,197,154,49,245,170,67,+208,51,129,22,39,188,38,92,14,232,112,60,196,152,187,252,201,28,166,229,97,222,135,212,32,231,106,217,128,215,76,207,+157,77,30,161,91,20,62,61,92,227,153,94,88,42,109,50,6,244,222,12,170,215,4,108,89,168,217,13,121,13,56,186,+185,127,50,191,147,136,178,54,121,105,69,58,180,119,230,227,30,34,143,80,151,163,115,188,51,44,32,32,242,132,99,166,+88,190,252,70,184,255,156,101,18,201,151,155,73,255,30,226,174,63,202,237,255,111,34,51,5,133,113,70,246,242,235,157,+3,22,25,38,12,71,37,141,88,168,21,162,58,180,144,194,114,67,106,165,44,161,29,81,19,209,101,179,219,41,189,199,+164,145,45,35,248,144,18,145,138,243,195,54,43,51,42,165,200,81,204,61,26,21,163,146,1,120,55,131,80,61,141,96,+135,91,33,91,220,212,178,148,119,142,131,115,65,225,4,138,165,85,192,190,37,81,159,43,11,199,2,76,41,70,223,250,+249,243,230,60,211,235,31,88,127,125,88,211,167,231,71,27,201,33,44,89,107,80,194,65,164,213,17,226,187,114,248,208,+66,6,133,183,4,208,98,75,181,253,52,25,100,191,223,191,79,19,26,125,189,195,251,110,35,156,183,177,20,198,83,175,+219,227,202,245,113,183,69,227,131,253,85,38,232,83,119,43,161,77,84,64,40,42,127,27,231,152,125,30,14,233,138,208,+252,41,186,80,222,72,117,110,117,131,128,125,110,171,113,63,23,160,197,211,149,232,164,232,33,5,26,178,48,62,43,177,+12,31,198,97,229,28,180,166,63,225,164,229,220,201,84,84,106,188,173,197,56,175,5,23,204,154,106,135,146,246,29,74,+217,230,229,131,225,42,192,246,252,246,87,58,208,252,20,201,141,247,13,68,56,146,140,97,145,192,143,197,102,113,17,181,+246,89,207,114,110,39,177,250,199,12,168,61,34,126,225,163,174,185,211,143,47,185,14,78,69,251,54,15,133,131,146,102,+181,51,183,202,151,125,129,175,36,214,163,12,29,203,42,117,222,226,234,10,240,242,154,186,249,124,32,3,26,112,140,64,+114,21,248,158,2,156,32,99,175,52,70,8,73,102,181,167,7,146,7,219,138,85,41,202,248,64,194,109,70,126,62,189,+234,213,172,66,222,175,5,241,247,219,21,213,57,146,147,135,187,37,98,93,103,157,186,11,31,240,63,182,9,242,102,24,+56,110,57,52,39,103,5,112,247,220,150,227,113,105,240,19,241,145,209,224,194,112,67,120,170,18,174,53,219,142,180,9,+9,111,121,183,42,114,236,126,111,39,151,46,46,165,37,86,64,158,139,138,165,117,158,6,35,227,55,157,34,20,96,51,+132,214,197,219,117,122,124,197,4,58,174,220,121,214,27,55,164,168,17,149,64,132,86,228,111,27,164,32,25,98,102,30,+118,163,58,45,118,92,127,114,22,216,235,78,3,121,112,216,54,7,35,63,195,14,110,208,164,139,166,229,105,185,255,159,+44,154,139,144,202,175,157,122,241,45,156,131,95,191,180,34,128,111,246,116,178,144,171,62,98,231,177,172,35,149,21,15,+129,58,252,25,4,220,177,152,94,42,70,174,121,61,252,162,40,195,136,40,115,11,154,152,158,104,45,177,183,86,127,75,+100,29,237,50,241,87,146,79,61,36,205,172,93,120,68,254,1,3,248,184,107,114,57,122,75,226,134,16,229,221,112,107,+11,127,180,114,180,22,29,135,122,216,181,75,97,232,49,43,142,208,82,209,166,120,182,8,77,197,201,15,16,185,130,30,+3,241,221,30,235,253,89,26,134,169,36,188,53,227,179,229,213,83,228,29,226,109,207,213,201,62,234,25,28,238,83,2,+161,173,255,97,203,132,176,92,226,92,109,153,133,211,102,111,162,202,248,34,39,188,12,224,231,203,86,155,193,63,158,154,+229,115,184,246,138,119,153,111,102,14,129,168,217,246,203,24,217,51,66,197,87,132,116,40,61,205,23,183,66,212,119,82,+95,81,6,254,173,72,72,164,229,210,107,162,122,203,60,26,35,111,233,49,61,22,191,255,133,164,7,209,216,137,28,28,+90,172,51,143,224,162,78,177,247,235,214,117,145,59,104,161,0,166,64,31,172,27,223,146,89,253,49,199,30,5,49,90,+245,69,60,64,187,28,178,36,25,134,61,174,136,107,102,96,173,199,192,158,234,246,220,244,215,142,143,94,37,127,187,173,+142,162,178,245,100,99,119,197,206,109,194,72,87,46,56,206,241,70,138,202,200,134,196,133,118,144,22,91,69,72,23,229,+245,241,97,196,83,145,84,198,46,189,118,167,198,43,247,241,159,210,165,37,9,5,95,185,12,230,132,184,56,27,72,127,+165,97,173,65,39,237,60,124,44,42,133,229,237,159,84,61,32,249,94,191,160,233,170,249,108,200,99,51,251,166,213,88,+115,61,9,44,6,98,226,139,219,54,35,223,10,199,208,34,77,251,252,230,132,79,80,25,157,76,136,27,206,104,163,158,+138,215,110,225,129,188,217,1,181,99,233,24,105,102,147,165,160,119,10,63,102,117,202,149,140,208,9,170,63,16,45,140,+36,236,160,115,240,91,30,204,77,220,154,40,252,146,231,159,250,79,240,166,118,12,253,216,176,69,247,3,169,202,60,140,+229,129,253,246,81,83,19,181,72,46,214,132,224,20,52,34,192,182,29,85,46,104,243,181,181,201,220,131,194,140,186,225,+65,38,180,23,183,85,224,15,70,73,93,75,175,0,159,119,29,192,214,173,101,210,1,72,174,96,137,196,125,148,49,21,+37,250,240,175,206,91,135,130,28,48,74,97,14,146,220,167,242,137,157,104,135,71,209,237,181,198,168,214,232,236,238,54,+193,149,202,89,69,104,170,12,72,189,30,142,248,37,106,148,37,133,70,202,26,22,119,5,107,226,79,118,43,253,19,3,+160,250,7,195,188,0,73,17,101,189,75,99,202,131,16,237,166,189,252,177,67,137,96,78,49,63,117,157,232,207,40,221,+57,71,60,12,134,22,59,91,246,191,175,167,107,225,214,224,233,182,173,11,104,166,166,238,145,114,140,5,196,240,28,174,+14,66,80,140,25,208,106,117,7,71,48,238,182,172,228,10,224,49,106,104,14,63,129,10,6,192,38,185,211,50,180,188,+214,118,235,117,149,54,175,19,206,188,57,145,215,3,75,109,189,169,17,133,121,224,161,108,234,217,25,241,52,56,207,19,+14,215,96,88,138,81,170,146,36,166,153,164,158,200,79,146,83,189,119,51,176,128,240,192,199,141,236,239,172,200,63,3,+126,231,215,32,88,247,202,19,129,50,151,45,108,225,32,230,233,175,71,84,210,111,230,124,11,226,153,219,160,16,166,186,+47,59,150,56,163,52,48,59,24,165,113,34,161,16,81,246,1,178,194,71,98,34,40,114,36,37,84,206,236,44,8,171,+48,105,253,51,135,17,202,15,80,97,73,119,182,170,239,196,95,219,90,201,116,207,83,202,184,33,166,46,11,13,42,100,+188,13,193,151,149,95,202,91,241,127,109,209,45,209,60,158,142,244,58,237,109,25,19,92,113,8,134,22,63,7,148,58,+133,47,173,166,168,174,248,55,151,179,79,104,119,236,151,42,175,5,206,211,221,11,122,232,35,201,218,49,129,90,179,211,+222,111,248,10,1,164,64,87,190,19,67,111,209,102,53,209,175,150,0,139,182,34,163,58,153,172,31,120,153,64,220,14,+68,54,34,82,133,72,181,74,254,23,71,86,199,115,94,169,132,191,143,33,64,8,12,123,99,19,109,30,163,129,81,195,+206,228,248,17,48,133,19,97,32,233,29,63,40,14,59,115,35,235,194,169,6,180,123,142,204,199,148,189,75,192,81,112,+11,80,93,55,66,83,40,249,74,208,15,16,57,61,217,69,179,3,32,175,237,187,93,251,184,83,133,75,58,112,150,222,+131,151,55,94,206,75,241,87,203,39,140,29,68,89,216,7,136,28,149,208,77,79,89,84,216,177,234,102,30,26,19,233,+38,83,9,220,56,239,59,212,111,115,245,211,196,202,131,26,67,224,48,59,205,90,11,60,90,147,100,249,202,228,56,121,+8,72,106,220,170,67,251,24,164,108,35,42,247,72,134,35,199,74,228,2,150,78,16,75,93,248,214,114,5,7,20,230,+76,164,205,143,101,175,174,93,57,21,180,165,97,83,208,57,238,29,78,197,84,244,32,200,4,209,84,214,233,116,215,206,+89,182,69,1,220,226,125,4,43,75,231,45,77,30,119,170,240,127,56,48,134,27,202,170,142,158,49,69,242,179,102,33,+194,3,212,60,108,21,162,96,7,124,9,214,77,18,218,180,29,80,85,98,78,11,30,91,234,208,117,199,167,162,38,21,+190,147,171,129,198,149,122,104,209,191,159,115,237,93,91,29,190,219,144,171,244,125,206,159,111,160,198,141,26,95,25,213,+53,147,90,199,173,232,112,234,184,115,170,100,107,148,167,72,41,140,23,152,45,95,249,5,110,89,195,75,178,177,169,149,+146,137,164,50,41,202,223,87,139,158,198,27,44,23,29,15,142,169,58,31,181,18,85,254,46,31,199,198,49,13,177,52,+30,131,248,219,159,244,140,69,41,197,120,22,50,86,246,236,21,54,201,252,57,11,95,161,212,148,210,26,84,202,246,69,+173,100,129,121,140,196,119,41,221,34,229,112,20,182,243,97,242,9,208,246,180,47,132,1,59,137,101,167,136,10,113,171,+241,78,182,204,7,142,74,65,48,217,72,24,236,176,150,15,237,124,236,246,92,92,42,117,133,15,31,46,30,112,82,59,+127,8,55,53,229,25,171,35,127,32,114,58,143,93,210,239,107,110,126,32,177,48,175,196,9,52,66,127,182,188,49,22,+23,84,21,205,252,39,187,246,81,147,124,160,108,84,191,204,2,20,216,121,146,112,168,30,85,233,221,82,247,4,22,214,+2,172,101,127,237,219,126,99,177,71,154,228,178,251,85,210,119,158,53,248,48,148,79,147,144,243,54,167,209,155,147,94,+238,77,244,52,86,49,142,54,78,164,27,165,52,35,156,136,189,79,160,253,153,186,139,42,160,132,213,195,7,21,33,195,+65,177,33,66,50,200,202,78,140,133,154,181,101,204,2,116,43,38,156,164,16,72,249,101,165,201,246,178,230,134,166,232,+46,31,133,41,57,153,76,2,106,107,148,87,219,16,249,135,109,99,222,14,63,214,196,148,191,143,112,37,233,162,104,128,+87,152,61,196,245,231,226,102,112,246,185,251,169,54,224,255,185,15,195,154,235,64,191,192,224,20,59,141,119,109,78,52,+235,125,240,55,70,198,152,226,93,91,179,200,99,185,20,76,163,175,173,8,222,11,58,182,11,174,129,69,124,137,38,52,+60,32,215,140,103,218,208,240,8,189,167,163,100,67,74,100,33,250,48,5,159,147,53,70,110,82,149,227,55,15,185,181,+252,251,236,205,235,181,81,130,160,201,184,96,53,25,98,75,207,218,108,73,228,18,112,116,214,92,144,96,194,161,148,131,+17,68,230,173,252,147,81,125,189,44,206,111,88,72,38,10,71,62,26,35,11,161,172,237,95,19,217,136,38,54,131,144,+202,105,56,48,6,226,199,40,56,9,248,39,253,27,149,58,240,30,7,155,77,165,78,44,186,127,174,75,164,161,174,217,+45,179,254,94,168,86,64,70,217,126,86,49,221,118,20,127,94,112,38,197,115,211,48,93,224,204,219,137,156,232,171,147,+145,125,131,67,83,52,44,181,204,11,228,218,84,55,121,183,24,60,60,182,169,0,86,166,23,191,205,185,234,202,185,250,+197,163,25,241,184,209,29,250,210,38,111,231,208,253,237,118,165,119,144,78,204,42,182,83,196,108,187,17,169,150,226,229,+213,33,174,33,203,15,61,118,119,201,147,124,15,244,133,146,106,49,187,242,107,21,19,35,76,3,223,114,136,117,171,130,+126,32,66,140,109,78,111,101,99,92,178,87,55,181,125,234,90,155,195,55,255,56,112,53,58,163,216,73,96,217,84,79,+160,190,23,100,54,190,209,179,179,244,92,243,181,112,14,125,150,119,16,105,247,147,227,247,54,204,92,57,115,103,130,199,+177,115,168,166,9,236,29,42,234,7,2,22,175,111,179,62,251,175,24,164,58,140,121,246,113,210,128,38,66,7,18,28,+163,195,156,204,87,93,214,201,248,92,109,232,153,34,166,79,176,5,31,45,190,46,102,235,122,247,80,54,56,126,146,107,+165,166,169,236,152,191,151,150,16,177,186,113,103,211,163,64,25,211,55,141,112,33,45,180,250,183,43,5,131,126,37,31,+211,96,75,84,105,221,242,14,83,220,22,125,167,143,148,91,247,180,45,198,116,54,33,96,230,172,129,106,114,54,120,149,+180,32,226,12,151,136,245,108,169,177,4,101,191,151,117,73,0,114,150,17,73,211,141,238,90,151,46,141,153,66,38,61,+112,49,169,38,132,203,85,251,115,11,34,29,238,155,253,209,244,118,229,35,215,251,190,179,1,248,122,183,159,80,178,16,+81,203,102,227,170,137,255,254,55,105,86,248,135,216,207,254,228,113,202,211,177,176,122,251,63,14,36,96,242,153,52,120,+124,102,119,69,7,252,21,148,118,216,50,227,133,31,201,54,58,139,151,17,28,236,86,90,28,80,163,191,162,96,169,89,+179,182,198,119,33,62,195,59,132,77,144,97,48,224,96,181,184,174,90,52,150,182,252,105,224,13,7,21,127,29,158,38,+155,143,119,22,249,102,114,118,170,205,64,128,18,240,131,12,230,134,40,50,90,214,205,83,255,184,234,44,217,135,74,73,+239,211,188,91,145,130,157,62,165,243,129,145,123,59,36,163,12,103,26,33,98,238,111,43,103,81,225,22,67,221,81,27,+22,119,112,203,141,104,54,201,214,121,107,108,213,198,18,199,161,221,132,234,49,229,70,219,75,187,136,20,189,71,23,126,+75,208,69,63,239,238,94,193,53,6,230,245,194,115,1,23,33,83,39,70,135,129,88,218,179,139,25,78,19,142,108,36,+227,21,58,113,93,7,34,30,226,115,165,62,136,143,90,121,119,60,67,154,190,27,143,138,225,156,58,235,25,93,112,232,+204,202,221,33,87,12,15,112,110,192,130,138,33,18,123,155,142,160,92,105,23,243,223,75,234,26,245,235,29,205,95,38,+60,181,77,58,82,232,234,190,161,66,168,223,75,173,242,217,115,39,182,7,193,71,182,89,112,160,90,252,125,227,37,225,+176,194,218,154,58,156,132,200,251,154,192,24,188,19,234,238,177,107,112,173,227,215,70,113,12,30,147,56,243,100,41,226,+236,63,208,52,130,36,92,70,41,181,153,4,255,245,101,227,126,154,103,199,119,15,33,43,9,128,97,248,95,31,173,85,+52,93,45,94,1,241,84,56,84,239,188,138,132,3,58,150,9,249,204,120,143,61,163,181,101,121,99,59,8,165,212,219,+13,210,15,250,193,156,148,222,32,55,198,111,64,172,0,43,221,126,105,34,230,41,134,152,91,194,215,70,200,127,153,80,+120,54,230,126,93,108,211,188,198,150,41,33,183,215,235,252,196,128,28,219,133,156,98,14,42,253,246,240,38,204,10,113,+70,155,7,247,64,66,51,219,76,3,190,147,15,99,112,90,199,33,119,131,149,105,228,5,108,171,203,7,19,130,185,54,+131,51,100,80,239,33,60,70,189,209,238,11,27,173,60,120,208,212,16,5,142,105,1,234,24,191,118,150,72,76,44,219,+79,198,199,173,198,86,195,201,87,179,208,217,226,130,64,107,58,173,128,202,203,100,98,31,112,31,58,58,233,109,1,203,+250,124,95,88,104,32,155,70,74,210,121,157,178,215,3,198,64,113,116,45,87,219,227,167,82,61,148,23,244,146,237,177,+237,118,145,159,143,92,18,250,212,230,133,224,220,104,159,117,172,116,89,158,58,150,77,122,235,189,58,91,185,170,180,66,+92,168,203,14,119,0,43,109,249,170,244,57,124,236,167,21,141,102,16,254,67,120,126,221,152,62,111,141,232,4,95,202,+242,231,214,229,146,211,76,120,106,64,120,48,82,90,157,38,35,16,84,172,252,211,94,31,216,159,137,39,76,158,247,9,+192,241,29,60,235,65,201,214,234,230,208,183,40,54,226,180,87,88,242,65,100,254,165,154,116,51,175,74,247,80,68,42,+172,109,120,119,159,28,97,167,239,157,82,34,25,195,126,129,136,67,5,110,209,183,238,134,239,219,166,14,153,175,196,141,+190,95,145,5,205,232,130,95,72,112,166,18,15,61,195,206,230,210,28,14,197,88,146,23,119,29,143,110,249,67,197,238,+28,52,139,181,124,64,211,164,218,113,90,172,150,64,239,69,34,212,134,165,5,86,197,130,121,94,83,12,237,197,25,48,+199,218,223,175,50,64,79,6,121,181,92,157,104,254,200,18,203,171,9,82,201,254,37,207,169,130,109,170,11,54,186,27,+146,210,31,80,114,26,193,202,70,174,14,31,21,117,55,241,64,205,12,246,25,78,193,243,157,35,116,179,132,171,98,125,+7,17,194,140,9,150,157,217,21,90,35,23,3,207,206,248,109,100,235,90,123,226,33,30,231,201,18,132,96,112,208,62,+147,52,170,50,180,161,95,207,111,44,164,35,116,51,109,224,33,78,90,189,255,112,137,105,94,107,154,215,41,87,70,35,+26,253,3,229,219,163,69,48,245,159,76,31,253,90,199,240,244,55,192,81,239,29,83,26,64,226,177,56,117,175,59,168,+204,25,199,97,213,104,116,159,89,193,169,26,76,152,232,211,166,1,121,98,103,166,196,48,48,232,199,50,126,3,11,120,+175,241,159,204,96,131,236,158,209,130,49,253,174,29,89,205,118,115,72,139,188,241,203,244,212,16,26,21,142,176,243,207,+53,29,164,106,67,108,145,242,23,221,17,177,73,20,162,106,233,97,101,9,73,9,93,200,16,80,195,122,12,136,230,184,+73,207,245,192,114,29,82,98,252,211,8,98,200,136,123,197,246,155,201,51,100,245,184,2,224,55,46,248,22,20,119,200,+25,94,122,113,98,249,126,53,49,88,70,151,47,130,201,154,9,114,4,149,97,128,226,220,64,230,60,41,179,205,188,144,+101,84,156,108,181,32,194,145,147,245,83,159,134,4,80,154,46,172,194,105,190,74,106,81,139,219,13,146,53,210,207,176,+224,18,138,57,124,111,3,124,145,235,170,198,206,58,215,90,227,84,227,123,155,217,92,119,194,45,91,249,207,21,168,97,+120,60,60,27,157,70,203,24,185,91,15,250,60,233,220,118,86,39,54,188,92,133,73,190,23,209,218,146,243,190,232,19,+117,17,64,146,85,158,144,79,163,210,27,77,158,134,113,210,255,41,87,21,116,234,57,119,126,110,52,22,187,185,0,45,+227,202,249,178,104,44,149,85,201,98,21,176,120,173,209,248,182,56,127,142,128,159,120,230,185,191,147,81,119,192,238,44,+52,81,245,120,76,208,53,89,15,28,110,35,210,241,3,36,18,206,231,216,142,181,63,151,50,142,236,109,170,79,163,243,+28,188,178,67,191,106,210,145,216,79,16,232,55,249,155,76,126,41,167,168,159,65,222,132,182,140,250,238,184,198,45,112,+130,245,220,57,75,200,250,239,221,137,172,75,14,49,160,191,143,176,67,238,11,101,36,218,95,224,252,87,26,206,149,174,+30,6,75,239,186,120,232,32,153,100,252,161,170,139,92,239,87,245,55,204,88,243,121,128,204,235,209,246,213,197,185,167,+204,153,12,103,193,132,202,221,229,168,176,173,98,110,61,175,207,140,147,44,252,88,147,222,202,63,111,180,199,20,67,151,+133,20,245,51,67,81,41,11,135,79,147,86,62,5,75,180,212,135,84,253,21,142,70,72,21,43,144,178,16,162,32,209,+66,204,241,145,189,149,246,8,45,91,214,191,34,60,41,207,162,125,93,38,124,125,252,241,12,81,18,253,61,200,166,113,+3,20,130,220,151,187,81,184,6,15,87,159,169,246,229,14,160,224,33,49,166,48,49,22,129,0,21,82,166,216,59,237,+136,67,188,103,176,64,69,233,160,177,105,4,226,89,241,105,152,34,7,9,17,57,12,229,23,37,17,106,133,86,49,35,+164,210,231,54,247,30,168,121,56,161,159,5,120,2,241,224,209,194,148,77,232,76,19,251,26,51,78,212,199,183,39,48,+49,68,185,61,32,233,151,183,33,55,50,194,167,24,217,58,19,232,14,21,145,146,154,145,171,79,194,48,3,190,73,42,+221,225,48,162,2,83,237,192,60,69,152,50,22,220,121,117,162,194,239,144,225,83,36,102,16,40,207,169,91,140,124,89,+87,224,61,16,94,239,80,236,236,200,198,142,174,199,178,170,117,35,2,141,180,156,36,206,50,182,127,162,35,230,93,224,+122,181,90,13,137,16,109,181,136,231,245,159,173,10,193,150,204,207,235,205,233,103,37,73,66,255,205,55,199,58,23,69,+78,116,89,203,54,117,225,194,239,255,58,136,177,222,35,108,187,17,225,9,147,156,2,231,45,100,166,227,207,175,62,3,+225,82,28,85,186,240,44,195,146,249,1,243,136,104,111,181,245,55,148,169,217,240,145,8,242,161,149,50,232,202,109,123,+131,239,254,116,58,19,245,180,237,207,245,106,84,114,192,190,61,253,83,6,215,183,177,119,53,118,24,243,35,192,237,180,+235,191,224,136,60,252,194,144,194,66,6,230,137,119,82,58,65,143,76,201,175,134,201,169,195,105,7,223,48,205,182,50,+189,92,45,95,4,63,121,222,108,82,248,31,186,167,19,204,60,41,235,146,178,90,239,132,137,121,27,93,213,139,55,254,+172,102,70,85,104,20,130,227,229,220,63,64,215,156,24,37,160,81,145,25,190,123,146,83,186,185,233,160,129,54,185,248,+90,161,29,156,61,252,173,37,131,232,23,212,103,144,76,60,5,64,212,235,217,143,241,173,47,63,187,99,241,9,235,194,+237,89,210,206,14,123,228,194,155,185,127,35,100,21,161,27,247,44,80,46,148,252,211,43,117,15,74,78,3,0,39,18,+105,65,57,250,174,71,53,140,166,21,249,53,89,221,91,249,99,44,152,64,155,26,124,221,204,42,41,9,20,164,88,173,+175,4,223,153,121,34,70,226,204,86,110,208,164,37,87,28,155,44,130,176,166,171,197,51,181,195,16,6,104,131,92,171,+193,55,2,142,171,51,70,23,171,172,124,15,209,155,164,86,194,53,4,22,190,115,95,162,246,138,116,33,87,174,58,135,+157,158,146,72,63,45,98,170,49,158,39,245,75,113,249,232,55,191,61,57,122,95,164,249,86,123,159,228,220,110,107,121,+51,61,70,126,236,25,73,129,79,125,74,71,173,238,109,47,4,79,176,237,173,123,105,117,1,181,42,126,109,117,251,30,+14,20,7,117,184,238,134,72,162,153,37,112,72,42,57,152,46,243,79,189,122,44,250,189,16,72,103,63,54,249,237,51,+172,67,101,229,255,55,156,186,146,147,126,24,92,166,137,175,146,27,140,13,25,246,24,210,121,221,25,222,146,100,243,188,+86,41,254,64,76,240,9,23,119,40,198,97,80,184,79,211,187,208,76,158,92,19,226,173,249,212,35,254,140,245,51,148,+140,39,138,214,226,233,197,129,140,145,248,244,210,202,144,2,164,177,95,195,117,237,6,88,88,8,146,140,66,155,109,103,+192,131,73,35,52,173,136,111,254,63,225,175,132,147,192,69,240,208,160,217,106,99,190,0,214,20,231,145,43,169,226,158,+14,241,56,185,36,129,81,229,76,164,60,118,186,202,6,78,40,93,155,1,166,193,117,157,184,162,236,10,68,249,28,186,+115,203,63,217,198,42,67,170,149,95,213,26,204,116,76,244,225,86,245,236,174,19,232,84,183,235,99,252,21,37,112,145,+251,188,17,150,135,100,60,219,38,232,17,203,158,108,168,12,190,238,213,127,206,113,20,98,226,105,133,88,31,111,36,25,+179,227,217,80,128,39,73,211,66,2,23,73,101,142,236,174,92,73,3,83,76,87,231,241,114,68,247,41,110,184,138,156,+222,247,232,218,62,166,178,50,27,243,180,146,253,88,176,170,238,199,16,240,216,129,188,110,205,200,37,80,227,91,28,179,+108,121,211,23,232,90,67,152,205,190,239,242,250,215,102,53,153,125,225,199,85,12,230,32,170,132,36,107,178,255,109,170,+244,121,241,159,112,221,167,2,43,30,63,138,243,7,61,37,99,173,199,92,121,115,199,57,166,200,226,39,133,24,163,62,+115,192,23,51,217,238,149,7,94,215,104,238,40,211,67,31,244,248,57,2,6,215,128,193,2,128,22,218,86,247,4,5,+117,143,209,111,103,191,128,191,235,131,162,37,128,188,198,60,141,94,115,28,215,15,31,243,7,139,32,214,54,128,87,168,+252,207,55,213,123,27,65,90,221,250,100,189,7,224,62,244,20,249,190,134,11,217,47,167,36,96,169,169,190,243,140,77,+231,211,195,212,82,208,132,199,230,211,77,121,22,24,209,243,118,92,61,34,70,132,189,26,120,48,48,222,251,224,116,34,+172,147,45,132,221,91,99,239,69,189,30,197,242,49,63,139,142,39,177,2,75,161,226,127,160,148,126,88,32,245,158,223,+138,155,97,136,150,66,116,163,86,51,150,241,233,103,176,157,66,85,6,105,156,188,247,46,66,226,247,199,250,213,139,0,+87,65,141,134,39,176,176,243,132,66,104,140,54,220,210,158,159,126,174,188,245,219,235,156,168,56,90,45,80,133,228,152,+76,84,103,134,234,34,12,215,96,120,93,38,84,95,84,184,213,45,248,42,60,96,222,154,234,28,76,204,102,58,196,49,+77,26,218,97,105,75,183,63,211,173,210,86,137,179,108,254,74,136,30,96,123,239,63,155,214,10,13,97,98,252,216,130,+82,39,11,80,104,78,235,184,42,170,9,64,216,197,22,37,170,55,154,215,21,92,81,91,237,102,208,195,251,106,161,80,+230,205,187,121,67,70,43,218,33,215,207,57,192,63,192,192,105,86,15,82,56,251,30,52,210,232,231,97,179,232,137,56,+249,230,43,69,68,48,199,59,233,16,154,1,234,175,201,42,202,184,211,60,234,216,23,30,115,16,52,52,70,146,33,200,+145,14,99,84,129,153,137,221,93,139,78,235,93,167,52,101,159,79,216,27,138,185,31,21,223,41,185,155,51,83,212,33,+119,124,40,94,107,205,158,132,202,183,217,115,0,163,50,16,51,178,215,84,21,65,212,207,24,144,187,111,156,4,127,170,+175,152,14,102,145,248,91,100,213,150,34,192,10,6,117,138,164,199,48,98,21,47,221,195,214,211,201,84,12,142,53,174,+87,190,102,78,123,32,11,31,47,235,227,160,37,215,166,213,90,150,121,58,72,247,245,223,161,124,133,79,178,4,168,243,+205,29,118,189,31,173,227,141,218,247,229,106,0,98,213,179,64,235,225,237,211,213,79,188,129,62,196,75,84,235,219,9,+29,101,130,108,205,206,15,178,87,236,220,121,215,126,251,140,111,38,132,98,30,116,240,92,146,24,203,50,35,142,126,139,+89,10,181,177,94,164,196,174,241,124,109,152,137,179,141,225,97,4,27,174,27,53,62,136,59,23,41,180,59,250,110,66,+27,6,171,109,112,200,236,34,126,0,214,235,231,171,81,158,255,6,168,183,31,50,121,50,34,231,251,213,114,152,163,144,+193,133,34,171,237,34,26,161,209,16,160,113,164,143,64,255,199,218,128,74,30,191,242,176,56,39,91,203,16,31,96,235,+16,214,9,241,188,112,157,23,132,26,200,166,154,183,192,94,197,138,227,137,58,78,248,118,25,191,249,216,43,74,211,16,+172,236,159,124,162,254,26,141,68,153,153,89,220,6,154,254,250,149,154,197,229,161,171,153,110,158,231,68,64,211,126,77,+76,6,188,123,166,1,199,79,175,255,140,164,14,129,189,231,20,173,94,29,119,80,23,118,31,9,254,119,212,11,28,166,+57,6,242,146,17,225,228,254,207,3,127,115,246,192,203,179,221,243,203,108,230,196,210,27,249,47,155,30,24,237,25,217,+161,34,181,43,159,154,192,87,249,189,185,32,234,169,217,231,243,85,22,237,151,53,42,210,120,2,93,195,81,171,127,234,+237,87,163,239,1,247,224,20,131,31,177,245,168,253,44,14,76,111,128,11,147,144,103,78,239,142,67,164,168,120,120,126,+218,204,17,37,48,32,160,81,7,230,32,166,149,232,241,212,146,9,111,128,202,248,101,74,163,81,107,246,232,19,118,58,+17,229,133,132,39,205,105,173,12,231,44,175,145,65,242,77,91,94,129,102,19,153,181,123,81,107,12,236,194,89,95,119,+55,142,177,78,92,111,227,141,60,112,223,174,59,199,168,44,150,1,11,17,119,253,242,8,104,14,211,39,205,76,83,236,+83,166,180,45,84,187,60,92,205,154,75,188,60,50,0,74,171,132,188,126,219,155,65,114,107,112,133,161,57,50,163,240,+164,107,197,196,213,125,150,130,218,141,203,25,185,155,21,98,140,130,203,218,119,244,216,74,143,175,246,213,35,105,131,57,+201,4,204,104,190,235,146,61,139,95,204,183,24,241,3,110,163,60,109,53,6,148,89,196,136,56,104,203,175,167,91,46,+255,177,90,71,215,219,176,37,31,146,82,252,164,222,185,232,168,58,219,168,243,153,11,41,131,158,119,91,162,162,35,22,+127,248,152,76,145,115,196,193,67,113,132,78,57,77,93,115,11,199,140,245,222,50,41,10,176,58,131,210,246,220,168,234,+16,103,182,142,215,236,191,182,65,84,219,35,229,84,252,65,216,245,42,124,85,214,190,182,193,39,7,124,111,128,206,175,+149,88,74,185,73,3,190,182,21,75,255,43,67,108,169,252,149,144,215,57,131,68,109,85,115,113,154,147,94,192,121,159,+153,205,144,36,20,103,210,236,29,200,81,245,201,219,87,38,192,118,71,82,206,57,72,49,105,42,203,255,52,183,238,120,+33,64,90,30,244,31,93,203,79,25,38,85,252,111,12,36,190,7,212,235,94,68,226,181,135,223,46,67,107,243,124,125,+119,238,89,130,109,234,231,78,159,36,108,42,65,106,65,131,149,33,67,17,177,41,139,143,157,223,126,179,90,199,191,237,+123,145,172,128,116,177,52,49,252,136,22,5,69,131,69,46,216,131,249,173,32,244,54,192,16,232,141,83,208,99,133,251,+95,194,37,174,88,242,206,131,3,165,98,20,116,170,213,237,94,240,247,60,105,124,238,141,33,173,186,240,249,64,217,62,+84,157,111,113,3,131,168,171,74,240,201,68,57,246,243,235,105,224,137,168,94,134,173,44,246,245,0,162,107,23,177,220,+133,71,160,1,32,200,222,89,160,35,106,68,53,32,166,252,48,42,237,0,169,25,154,42,153,26,58,201,105,186,42,214,+85,90,230,66,33,170,16,39,218,136,82,52,251,134,131,200,87,57,87,142,145,26,202,137,218,182,38,153,43,28,93,169,+161,81,232,141,229,50,142,128,74,177,33,61,178,191,125,69,172,72,181,93,41,195,155,25,143,209,45,121,160,193,253,26,+121,178,25,203,141,57,241,156,132,253,235,188,134,65,81,242,231,119,112,246,26,72,99,15,36,250,125,189,194,142,210,38,+143,164,120,16,118,111,48,153,26,42,0,233,78,17,99,20,233,75,137,38,20,211,92,6,224,169,55,74,39,42,21,187,+175,248,111,55,226,70,5,179,189,244,76,16,135,23,39,144,109,148,64,199,77,235,121,50,16,247,49,50,24,117,43,43,+22,115,54,153,128,244,224,113,11,152,29,209,249,167,182,28,121,58,247,105,6,255,110,125,149,245,228,210,140,131,102,241,+178,235,251,149,186,164,209,166,128,142,67,46,79,178,97,186,237,154,127,63,196,127,80,166,152,187,11,212,106,59,58,209,+253,30,15,98,180,173,131,56,196,2,248,224,51,142,51,190,67,110,221,27,238,207,98,147,50,240,62,89,85,60,123,6,+252,91,56,112,52,232,104,86,13,185,190,240,21,81,208,170,252,241,145,28,160,50,191,186,59,90,91,120,244,167,207,23,+123,239,195,205,25,89,133,72,42,211,219,81,90,110,203,209,158,190,188,73,133,132,141,176,38,41,114,177,33,138,166,158,+158,44,85,82,178,134,6,71,26,229,185,254,230,183,97,47,82,120,26,221,33,54,55,148,66,7,194,174,176,239,32,227,+87,124,20,224,153,213,190,42,50,143,159,35,158,40,12,103,32,101,102,62,29,101,138,77,209,54,189,69,55,20,239,147,+54,19,231,90,183,183,230,65,194,170,161,98,125,50,9,90,5,11,208,69,159,247,23,136,217,61,11,78,107,84,170,8,+118,8,122,82,143,250,233,117,189,165,44,128,145,198,139,111,38,42,160,245,38,223,125,217,45,149,98,9,45,23,99,211,+149,97,76,56,241,238,184,205,225,205,193,3,77,99,97,4,198,220,120,23,218,131,238,71,139,79,99,117,241,58,44,26,+222,178,100,1,240,107,10,147,38,78,188,133,16,61,29,222,94,145,222,105,82,230,245,128,72,91,71,36,129,193,112,174,+213,59,66,102,106,79,156,237,175,118,6,179,19,85,163,192,214,53,98,71,143,18,46,25,116,153,205,194,200,130,54,247,+159,142,99,46,117,55,214,31,110,187,103,103,229,198,169,234,25,144,150,237,158,200,104,253,193,57,237,47,222,134,130,72,+229,42,227,247,197,145,155,130,172,97,140,137,147,142,198,163,199,215,109,126,191,171,7,60,13,243,126,228,197,106,121,120,+128,126,45,240,179,25,224,207,88,174,218,192,200,12,166,71,28,170,193,6,40,86,197,166,25,205,77,74,134,24,90,37,+175,43,163,149,114,33,26,209,170,73,39,185,231,98,56,144,117,192,96,164,65,25,226,13,173,178,193,6,43,153,231,83,+51,60,172,133,145,198,144,69,220,238,172,225,205,48,177,153,153,19,249,36,140,215,219,99,68,200,236,4,10,163,10,67,+67,94,252,56,93,111,119,188,238,44,62,0,92,240,38,247,176,15,6,230,60,169,222,226,73,100,187,32,190,61,43,118,+226,167,11,45,92,148,185,146,38,101,86,161,24,123,31,176,81,157,146,198,28,239,252,77,219,231,200,96,12,83,182,166,+244,202,193,206,2,48,202,9,6,15,2,200,207,121,68,123,54,200,3,97,144,164,189,162,165,160,236,25,128,239,231,232,+174,52,26,84,70,170,140,207,186,74,65,252,86,243,185,147,175,144,43,107,134,195,73,200,233,106,99,97,210,73,178,149,+55,138,27,55,123,226,118,189,61,79,139,82,191,172,151,54,83,240,214,75,120,179,234,86,108,153,250,245,90,168,40,173,+191,235,140,72,79,74,162,237,119,15,125,130,238,80,181,200,221,167,184,167,177,26,77,225,211,176,163,27,229,187,125,247,+204,83,124,192,184,46,93,112,59,134,231,36,120,245,4,169,234,136,143,27,86,242,10,245,156,143,147,142,241,97,32,26,+94,64,139,118,254,143,174,131,88,128,15,229,38,180,252,26,1,208,63,100,158,195,246,223,69,226,125,25,81,148,134,229,+242,68,181,2,78,199,33,233,247,207,155,223,168,238,131,229,96,39,157,205,52,183,86,11,144,252,42,213,67,247,19,71,+143,32,227,108,138,46,169,103,110,32,136,165,183,145,109,112,154,53,225,253,88,191,232,184,0,23,86,34,88,72,128,99,+36,169,175,104,71,35,190,24,73,65,52,122,50,210,2,15,41,142,202,11,93,240,93,116,220,167,132,190,253,241,32,108,+78,214,233,13,139,109,220,177,106,177,225,139,168,108,148,29,119,95,46,197,99,132,175,194,93,244,69,112,129,187,71,119,+141,74,248,159,122,248,131,85,236,40,226,120,241,77,222,130,65,78,241,50,90,7,224,243,3,225,110,133,221,4,183,97,+5,196,220,157,91,255,225,84,51,244,13,41,29,77,214,61,110,117,34,59,140,156,21,240,154,199,3,80,8,81,207,160,+142,31,15,47,92,245,246,224,47,42,51,149,241,218,35,204,54,48,126,207,43,155,227,255,216,127,177,66,156,130,188,69,+7,137,101,215,94,157,203,218,102,208,73,36,166,45,18,82,107,7,31,47,201,132,5,68,233,94,208,152,50,156,94,249,+171,61,209,134,248,252,168,195,68,173,218,216,96,102,96,193,96,143,70,95,19,9,102,242,102,243,132,171,44,43,42,59,+157,144,62,157,200,177,50,166,204,78,208,152,157,116,210,236,127,8,220,203,188,179,167,127,169,73,202,224,181,213,214,203,+41,20,160,112,106,13,30,80,17,180,107,102,141,203,69,60,149,133,230,68,91,28,228,40,227,71,2,197,216,152,171,53,+88,58,249,135,28,85,211,16,85,164,117,187,37,199,43,59,226,201,104,250,74,73,237,152,180,124,243,252,107,142,164,243,+166,231,174,94,55,220,97,228,134,177,184,176,111,7,98,217,110,201,244,58,124,31,105,188,138,139,120,116,249,238,225,152,+239,34,156,223,124,148,251,18,193,1,120,56,54,107,209,177,33,115,34,89,162,5,197,166,95,98,210,12,68,56,190,192,+115,142,189,170,251,173,99,89,180,133,121,11,253,114,228,229,240,23,125,187,169,224,41,67,142,156,11,105,111,144,216,236,+113,55,53,250,189,10,111,20,117,195,142,95,165,220,135,94,164,71,239,22,65,235,106,170,202,212,124,240,252,211,181,12,+37,211,168,230,245,74,1,93,41,191,35,46,140,244,45,246,25,53,244,62,190,178,110,62,1,255,59,115,228,139,43,72,+83,42,116,57,101,234,65,222,102,234,35,194,101,207,22,32,247,116,212,8,229,145,13,26,3,244,2,93,69,21,149,133,+227,18,77,92,37,164,108,12,144,210,193,163,58,138,131,201,182,251,67,186,28,1,247,24,173,123,202,45,9,233,71,147,+69,159,64,150,141,34,113,228,20,173,49,133,72,77,220,138,232,178,31,197,35,132,126,144,181,127,152,114,1,69,236,49,+10,228,168,45,166,45,186,234,187,215,251,176,72,222,42,243,116,92,209,181,82,175,149,9,49,165,91,42,30,156,204,35,+226,13,121,141,184,44,147,224,231,22,255,0,43,141,97,62,98,128,16,214,241,17,203,149,167,63,8,149,96,27,119,83,+57,183,13,246,220,132,60,187,246,113,71,134,113,205,200,55,252,227,72,180,38,187,74,81,102,162,179,186,129,82,140,18,+204,144,118,15,72,21,80,70,208,242,87,46,56,200,234,9,91,248,149,201,229,98,8,139,254,160,192,145,93,110,41,248,+224,68,14,23,242,92,80,29,206,49,111,27,223,197,169,84,240,165,226,42,66,23,149,244,86,164,205,116,166,100,211,121,+51,113,255,7,168,6,152,88,43,58,215,222,104,157,62,221,227,14,232,214,194,166,208,15,81,51,155,180,201,173,178,53,+138,114,105,134,163,199,119,178,192,114,2,137,147,29,46,24,198,225,83,138,62,28,117,111,199,20,202,32,147,16,182,133,+198,172,215,26,109,29,119,78,89,194,116,24,172,69,84,78,85,101,178,109,126,193,21,213,16,75,156,24,213,20,127,179,+130,129,178,226,122,35,76,49,174,37,151,90,143,241,54,4,245,66,242,142,14,126,159,22,117,206,228,45,211,175,198,13,+235,127,134,199,33,17,145,18,53,119,49,183,212,20,50,22,128,214,6,152,172,222,167,172,160,175,190,11,221,32,95,234,+242,140,181,45,208,69,25,159,0,241,35,210,150,233,225,150,108,9,186,82,18,156,3,53,25,69,230,161,174,163,207,91,+56,172,219,53,74,230,18,22,16,131,138,44,225,38,114,122,86,17,211,183,189,213,202,238,205,184,149,8,9,54,252,50,+29,5,220,204,27,71,216,202,43,123,129,100,2,164,197,255,73,163,30,2,245,102,233,5,90,164,9,246,47,20,23,27,+59,149,242,102,109,254,92,31,41,119,185,91,87,68,207,169,3,205,113,45,167,76,204,142,66,85,55,13,29,52,159,235,+183,177,109,68,139,6,79,244,221,92,247,85,248,80,29,81,164,168,110,227,54,237,183,121,68,181,106,116,156,32,133,209,+95,225,2,142,167,84,25,115,187,98,133,255,3,173,86,67,206,195,164,100,85,106,213,153,101,158,248,140,42,176,85,173,+83,157,95,65,200,13,176,81,21,222,100,239,10,228,111,203,141,15,156,249,207,123,168,201,114,108,237,48,58,42,72,190,+209,13,65,88,233,188,93,235,187,128,86,241,101,114,212,35,24,235,57,110,146,219,253,162,34,36,151,53,71,171,153,27,+104,93,184,245,137,184,113,82,116,14,182,40,117,138,27,98,170,196,22,137,132,202,138,136,169,13,60,204,130,197,30,101,+169,167,236,164,13,191,8,13,216,74,160,102,46,243,98,4,19,64,108,234,163,215,237,227,67,217,105,123,82,7,92,116,+226,136,214,70,233,226,41,77,77,223,58,217,124,103,90,147,237,92,20,255,117,114,190,185,1,203,113,67,11,156,193,7,+235,242,5,120,232,41,108,73,38,132,31,174,105,191,96,79,22,29,220,232,15,36,229,76,121,150,242,35,163,190,150,217,+201,9,245,182,247,233,154,9,170,132,38,102,111,225,187,132,10,243,188,9,123,139,176,249,36,168,252,149,194,125,49,79,+43,119,147,105,54,177,21,227,42,159,219,32,93,186,18,67,22,182,76,22,118,83,238,200,139,16,92,79,102,114,130,116,+77,245,83,213,200,73,164,155,63,83,34,168,120,178,191,174,44,248,253,138,8,87,130,131,171,141,26,127,36,69,234,206,+179,252,37,254,137,120,39,15,77,129,178,219,58,190,159,111,176,123,116,118,109,94,134,204,115,66,115,72,150,33,69,24,+202,195,235,107,100,42,106,112,197,70,43,244,217,152,15,46,222,60,93,102,107,146,231,189,74,88,201,215,9,177,221,226,+253,234,181,206,124,69,7,22,214,56,95,81,94,218,181,194,89,150,17,169,166,120,93,64,178,104,156,221,136,147,3,18,+214,168,188,6,2,241,237,44,104,119,100,61,136,233,228,248,206,253,195,237,88,193,152,154,207,176,238,87,67,59,213,161,+164,236,88,3,3,197,46,22,239,92,126,241,173,89,86,150,142,198,151,80,24,118,2,157,229,22,216,253,102,121,75,183,+144,172,19,149,61,148,11,208,140,174,135,97,12,57,132,59,69,39,29,163,110,37,112,28,223,50,140,111,206,84,31,27,+168,3,152,195,247,207,108,170,44,241,251,112,226,135,235,44,85,45,74,54,131,198,6,126,134,2,206,135,38,182,112,245,+5,137,199,125,220,110,9,63,90,96,56,49,187,4,80,143,173,87,62,247,251,173,86,29,178,49,157,56,121,103,123,186,+87,179,234,237,62,195,242,74,179,74,196,213,185,11,98,97,77,114,12,179,114,100,137,74,233,134,6,23,169,122,46,254,+26,234,156,189,137,121,192,65,128,178,94,239,104,62,248,226,64,110,112,108,131,123,71,53,233,108,199,245,82,137,218,24,+233,40,235,128,16,138,21,69,94,46,240,37,185,170,2,141,55,239,107,69,6,244,85,1,61,211,182,169,225,17,144,76,+1,66,185,160,82,67,93,204,204,1,0,54,158,252,91,164,130,253,253,96,142,232,61,96,62,54,99,39,32,68,149,196,+218,62,36,46,167,43,70,228,221,149,27,112,62,205,251,113,167,26,237,159,154,94,209,103,64,9,103,76,184,31,35,6,+86,69,22,219,173,110,199,245,82,172,70,184,97,96,241,172,28,100,69,26,200,40,52,226,163,31,112,149,173,77,12,147,+233,245,126,99,84,152,98,14,172,177,239,134,32,229,26,112,1,242,190,34,229,9,167,213,69,208,82,150,13,190,127,124,+19,34,135,24,40,22,87,111,231,11,84,16,168,112,218,225,74,49,38,245,230,6,100,240,61,97,28,98,124,144,93,132,+7,94,183,197,86,150,37,94,169,78,163,2,251,38,166,146,156,18,56,249,156,174,100,140,150,30,139,151,161,49,72,25,+42,212,237,38,162,183,172,246,79,197,54,167,239,103,236,17,121,44,242,82,7,81,70,171,25,58,95,173,27,194,136,226,+216,134,249,135,254,182,139,34,171,189,17,226,170,40,170,32,216,213,221,254,182,195,142,187,162,146,58,219,214,205,100,115,+218,143,84,30,221,21,161,92,216,42,42,199,80,207,101,9,84,39,74,1,7,219,124,127,44,13,16,179,139,35,39,144,+18,183,44,216,66,142,41,137,222,75,244,219,96,227,181,168,178,131,178,139,217,159,147,39,202,88,219,137,8,190,196,100,+62,76,158,185,169,57,133,238,228,62,241,234,207,16,235,232,151,136,51,109,136,248,204,221,34,217,117,142,142,218,159,225,+223,181,135,232,0,241,160,191,85,140,15,199,184,207,38,116,180,37,65,106,68,249,156,139,179,175,243,90,168,72,71,153,+73,39,105,172,85,183,190,25,200,188,1,167,98,0,71,127,73,50,155,39,170,3,117,115,72,153,134,157,81,32,115,140,+52,140,95,120,6,209,249,49,68,121,72,32,199,166,135,243,151,138,226,236,0,22,48,170,225,160,139,103,45,175,231,8,+246,218,116,141,86,243,249,170,99,226,244,117,172,52,47,126,194,24,133,53,143,220,218,163,170,200,68,25,70,14,116,237,+155,182,142,154,158,247,90,225,166,126,81,242,1,72,27,169,106,188,194,195,198,141,73,174,116,208,201,136,41,43,187,210,+112,8,227,31,51,100,73,79,216,61,104,193,193,239,99,146,106,191,134,64,45,178,181,37,226,207,53,68,93,229,90,97,+81,186,227,106,162,164,158,35,137,118,111,66,58,133,195,125,74,171,27,158,171,246,151,153,16,195,20,41,213,61,163,188,+140,104,43,22,132,203,242,23,161,160,88,165,142,234,22,163,57,120,120,158,179,227,77,30,70,37,108,85,175,158,73,147,+72,18,225,55,144,62,161,101,39,210,35,47,224,104,191,153,0,45,146,250,112,137,176,67,194,86,252,197,49,12,35,184,+164,135,136,222,163,17,196,212,127,120,252,103,104,220,96,235,125,194,255,12,185,111,194,250,122,246,194,30,71,130,144,86,+117,70,44,15,106,249,42,243,198,186,250,44,247,254,24,178,154,59,225,196,18,164,69,174,94,9,45,21,64,243,71,218,+92,105,117,111,226,125,199,55,83,231,201,54,105,215,46,221,165,193,36,74,208,248,56,28,6,189,241,95,19,59,218,133,+236,188,83,248,209,92,158,69,54,15,106,127,20,203,138,163,130,232,168,88,167,110,167,155,142,16,120,147,86,77,156,206,+96,244,54,52,157,144,132,230,44,243,77,105,205,21,52,22,1,43,38,97,148,54,114,12,112,71,175,136,164,179,54,45,+101,123,28,142,214,149,37,8,150,244,51,8,225,230,70,126,199,215,29,58,225,27,6,128,111,130,109,240,140,183,63,232,+5,11,70,125,18,77,252,132,77,35,216,73,95,180,191,31,207,102,36,160,2,191,37,44,86,129,56,90,85,102,4,50,+70,34,95,49,4,0,119,130,15,245,64,94,7,250,61,61,61,80,167,179,159,212,193,65,119,231,113,154,145,217,143,254,+20,105,232,221,57,149,233,154,241,183,248,133,206,55,160,57,42,233,169,5,70,103,233,20,116,164,90,211,106,90,1,226,+170,209,116,224,219,246,181,185,29,163,62,194,49,207,80,137,81,84,41,204,145,152,63,208,1,107,76,172,99,21,80,236,+35,20,164,47,243,177,15,220,60,202,219,57,179,202,19,128,60,152,213,47,22,58,107,79,142,246,66,77,10,196,226,117,+205,66,202,73,89,154,196,148,209,10,185,169,56,10,215,177,96,55,19,13,217,159,153,197,86,253,139,176,121,254,146,111,+187,111,53,147,166,104,179,25,229,174,186,231,71,71,206,122,52,149,132,163,183,199,193,47,68,45,229,131,117,109,40,232,+111,94,160,240,165,128,70,139,235,184,98,201,136,63,121,16,225,83,30,4,192,219,224,109,78,88,123,47,117,75,140,150,+122,2,191,95,100,121,222,225,25,1,86,103,241,192,66,167,238,182,17,236,152,171,37,247,181,200,107,69,17,225,50,116,+105,87,102,178,186,22,56,117,90,83,233,185,52,198,230,2,105,112,35,106,218,141,233,172,245,132,170,75,58,127,159,147,+16,122,224,87,120,37,32,219,247,170,62,142,68,62,165,27,199,158,160,81,228,167,46,37,54,244,19,150,94,149,50,199,+103,240,137,230,42,56,82,249,254,37,93,244,75,212,86,66,30,117,239,195,82,196,61,173,182,32,23,156,11,151,191,170,+241,219,176,94,29,155,205,67,165,36,188,63,198,43,177,116,48,104,151,182,66,17,81,226,63,227,84,55,51,33,26,86,+192,61,34,106,96,154,244,243,86,152,253,53,75,204,55,85,8,234,35,191,174,73,131,188,4,163,210,196,53,88,254,148,+252,170,71,213,55,193,32,93,161,166,115,28,247,98,210,132,118,52,114,216,193,155,228,52,192,45,8,122,16,160,156,50,+173,80,31,231,225,67,118,153,80,97,92,17,66,199,137,95,14,203,67,176,188,249,190,69,123,213,131,36,78,212,59,116,+245,76,248,157,39,98,83,56,73,65,142,87,149,188,6,230,170,219,105,100,73,150,236,148,128,111,109,24,142,35,34,231,+81,235,239,182,101,71,165,18,173,248,191,186,26,179,200,212,221,158,122,44,90,215,12,89,234,51,167,18,208,219,231,247,+231,249,131,184,104,253,163,61,225,53,157,143,82,0,86,85,99,6,0,21,121,233,210,132,209,214,168,87,60,83,177,29,+3,10,143,120,218,141,251,137,118,238,1,73,252,248,2,185,76,181,140,179,56,117,38,39,128,43,182,40,246,182,188,254,+176,177,149,56,60,250,232,133,99,82,77,88,239,187,204,76,222,55,211,56,128,16,119,48,132,86,139,217,148,143,230,134,+105,0,231,36,140,31,211,255,153,15,55,43,123,129,220,210,140,127,38,121,69,62,84,72,99,205,238,154,76,100,244,76,+24,84,86,72,27,25,194,230,176,207,140,62,118,157,207,198,135,204,224,22,136,112,71,105,255,19,68,36,166,107,122,149,+4,108,71,215,198,12,25,84,166,101,210,220,30,89,2,51,91,216,148,118,156,201,235,241,5,82,229,242,106,9,254,166,+21,174,107,41,249,0,3,61,26,34,209,44,130,80,3,183,184,221,127,83,193,11,87,95,155,169,185,207,221,44,23,53,+22,77,15,63,236,126,64,21,112,120,196,150,180,130,38,171,126,188,35,70,94,197,189,148,164,88,201,192,247,171,241,251,+194,137,205,13,83,196,169,30,92,106,156,160,170,14,144,232,4,202,12,195,196,165,204,129,223,94,255,208,37,51,239,126,+125,160,48,60,198,200,54,164,0,85,71,246,108,137,189,104,238,183,64,165,208,240,116,18,185,53,254,241,34,107,67,40,+16,73,248,190,79,165,35,198,72,234,15,108,172,80,243,209,107,47,187,210,82,80,219,107,93,113,178,22,108,203,198,210,+251,51,197,159,159,28,61,1,90,182,191,222,10,103,251,29,114,219,143,209,29,21,103,163,220,187,101,17,73,51,118,121,+179,220,145,119,171,237,143,170,52,84,158,59,122,122,77,18,47,158,9,28,32,161,44,86,38,84,147,11,145,162,119,192,+191,189,109,93,109,236,21,128,3,247,145,7,190,206,130,114,152,162,112,207,9,139,20,19,129,201,97,156,200,181,208,81,+210,146,7,239,223,39,43,106,250,14,47,63,22,178,151,113,233,195,93,206,143,181,239,219,207,223,180,50,233,61,246,78,+234,169,118,2,95,27,162,75,241,59,42,85,107,11,23,99,172,217,134,219,168,194,24,255,49,71,244,21,196,136,237,192,+27,30,102,190,26,146,49,201,184,8,93,244,89,90,149,46,7,167,7,89,98,155,185,94,77,143,159,153,247,45,101,64,+167,188,162,98,49,221,100,204,229,192,162,219,207,199,247,204,44,186,235,170,100,81,172,225,219,188,100,1,27,234,42,119,+186,20,73,58,148,135,162,23,203,90,17,141,140,75,112,97,170,213,247,74,236,178,27,163,121,46,152,174,140,181,175,58,+183,133,226,51,97,129,102,190,169,30,57,92,85,207,241,99,248,92,207,167,140,62,207,65,90,6,55,240,77,68,9,197,+104,205,19,198,247,222,213,125,185,224,145,236,70,188,99,27,65,145,141,162,52,206,65,232,78,61,244,21,121,133,89,41,+194,11,126,179,219,246,117,99,123,198,30,128,115,157,198,230,16,94,215,192,25,250,246,242,228,48,234,113,164,20,225,139,+244,164,49,147,1,25,231,156,238,212,224,139,142,130,34,108,95,231,189,17,128,25,152,183,232,56,63,171,224,143,174,146,+68,3,248,234,28,164,224,17,19,95,115,78,124,254,148,154,152,144,66,31,54,131,160,235,167,229,242,255,239,149,92,160,+195,106,94,24,51,211,47,145,210,78,230,172,27,162,181,158,235,227,254,66,89,216,142,25,74,60,228,37,122,61,249,51,+162,63,8,17,216,49,55,155,187,206,53,27,107,72,70,29,138,36,58,141,186,154,158,164,44,2,110,139,124,74,130,243,+232,153,51,136,114,102,88,92,89,147,255,81,61,73,207,117,0,168,152,178,221,142,19,117,240,13,234,36,55,239,11,231,+105,78,36,137,234,214,95,238,167,42,226,75,130,118,120,144,30,37,102,45,7,204,183,89,146,248,181,157,36,242,211,217,+11,40,221,164,145,138,236,70,13,176,28,133,0,46,251,222,72,178,195,228,28,236,246,99,13,29,18,151,165,2,153,193,+229,144,227,210,108,166,181,79,144,161,227,79,211,80,242,154,132,250,215,12,251,159,108,101,190,124,238,47,240,55,65,227,+43,11,167,155,251,70,49,104,148,165,192,111,241,67,134,65,123,21,126,229,100,32,94,96,159,102,25,177,197,18,149,178,+27,206,108,53,16,68,78,192,218,233,22,207,28,16,165,58,140,212,218,247,71,50,35,226,110,119,62,98,252,69,236,42,+110,214,87,71,183,110,92,223,194,131,173,236,163,195,226,11,69,34,11,204,236,79,73,136,183,61,193,100,7,97,214,222,+223,137,240,130,44,162,180,34,221,25,202,241,110,183,9,163,110,199,141,70,71,136,71,202,98,93,9,18,97,144,126,165,+180,167,109,169,6,144,155,253,45,62,20,19,107,185,136,200,41,230,91,191,85,211,18,88,59,83,30,55,253,156,47,157,+155,249,63,93,176,0,56,38,51,144,208,123,218,204,48,32,27,96,177,19,10,134,170,249,161,96,231,155,41,138,187,213,+154,249,224,20,78,10,247,72,212,76,136,53,240,125,27,147,242,86,213,121,71,33,43,220,211,4,36,182,84,41,233,221,+224,34,180,207,45,39,63,144,135,101,179,176,208,72,44,37,145,252,240,144,175,101,249,72,191,36,188,212,79,194,103,34,+212,73,43,177,9,81,250,139,144,94,56,37,173,124,162,12,178,206,168,230,255,42,66,132,155,114,108,26,105,246,199,24,+248,172,127,41,142,212,6,165,34,201,179,54,54,50,80,123,13,223,21,106,188,7,53,129,86,237,15,23,84,212,94,86,+227,129,45,59,232,223,184,227,202,71,23,123,225,238,236,246,55,133,13,91,109,127,83,21,191,224,65,156,207,185,188,157,+130,78,140,49,201,211,252,145,52,158,229,115,91,48,58,247,188,97,98,151,253,40,177,109,133,118,142,173,155,173,189,56,+8,123,58,107,107,85,80,27,3,184,174,164,108,6,21,137,49,139,44,16,151,139,248,108,129,47,136,233,237,118,73,117,+132,250,166,17,118,169,17,56,11,251,104,212,22,122,82,53,238,123,233,61,159,9,13,78,150,232,76,188,164,80,218,121,+4,127,107,74,214,110,10,217,134,247,103,44,199,104,136,209,176,193,17,177,140,19,171,209,81,130,94,88,232,165,228,115,+81,221,116,195,80,18,53,100,157,166,224,155,197,75,52,225,81,118,49,20,90,140,226,123,123,86,146,124,163,176,64,59,+138,28,87,55,253,150,100,105,189,203,136,47,151,215,153,20,4,103,32,162,186,254,45,247,135,249,146,24,1,216,129,47,+46,16,171,90,1,177,155,14,166,150,236,90,173,128,8,116,245,57,158,68,121,228,196,6,67,107,15,1,87,179,198,73,+99,72,237,169,136,234,230,150,210,32,3,69,199,57,237,183,104,98,93,237,17,177,160,231,37,134,69,243,30,10,254,158,+40,79,77,168,71,155,193,131,248,237,224,163,4,253,104,82,233,215,157,75,106,50,199,65,105,227,64,90,149,182,165,42,+117,46,65,210,39,64,114,166,116,203,7,98,158,163,124,5,210,239,108,51,254,165,93,205,5,28,71,230,72,124,130,131,+26,39,212,31,115,29,127,167,200,122,199,72,87,141,3,177,53,105,140,162,204,136,31,50,32,56,168,45,221,1,161,190,+110,105,127,186,15,95,205,42,12,106,176,40,72,64,254,88,197,32,236,227,86,151,131,65,196,177,9,43,67,28,204,130,+215,91,90,227,200,53,93,192,195,24,155,218,232,84,158,184,13,60,182,58,159,166,7,54,221,223,69,192,41,197,195,64,+124,215,40,88,37,196,247,247,255,20,117,208,132,179,37,89,32,192,90,243,247,49,175,126,196,5,71,104,102,139,179,238,+178,53,249,41,221,23,236,208,73,226,69,55,121,115,245,2,221,35,219,27,178,191,44,97,165,170,227,205,70,117,188,116,+75,88,193,149,13,180,84,146,4,15,60,188,30,68,39,250,187,50,103,170,24,55,234,9,55,175,212,200,165,24,104,155,+223,97,229,87,206,235,54,249,228,89,56,54,96,165,123,30,252,154,148,89,44,88,239,150,88,51,163,207,73,236,133,203,+96,169,177,236,44,27,9,222,22,125,0,9,220,69,9,36,122,204,40,65,56,212,210,146,46,187,35,186,37,92,206,224,+137,45,24,29,228,195,36,140,109,186,113,210,170,5,33,96,139,186,221,91,146,178,158,95,32,38,63,24,187,240,15,195,+176,127,20,140,8,73,169,142,155,248,210,50,223,253,114,16,157,81,58,247,194,77,119,40,178,197,67,77,112,112,190,109,+194,128,178,226,89,216,59,134,14,41,196,156,78,246,172,46,229,104,16,228,101,134,39,125,25,3,183,86,170,195,76,191,+23,64,23,169,241,242,165,181,70,32,197,163,42,57,210,104,227,126,179,192,227,170,180,5,226,211,191,127,174,133,83,155,+73,208,49,40,211,204,189,215,204,220,32,130,73,78,71,229,70,152,112,149,243,147,91,228,60,106,181,102,252,165,163,50,+96,46,245,223,123,73,248,74,179,238,0,137,72,112,182,24,167,83,14,222,166,152,21,110,103,22,153,66,153,235,68,9,+191,79,216,88,17,42,64,253,108,87,180,248,222,152,26,177,63,131,110,94,151,180,5,236,41,175,59,79,83,183,223,144,+252,45,25,58,34,151,10,164,187,182,196,69,97,95,96,131,163,94,49,60,6,9,104,162,89,251,43,146,0,202,202,45,+165,140,52,141,17,207,202,246,178,110,223,49,197,208,51,173,35,111,144,112,252,19,36,204,72,37,66,156,227,126,83,216,+226,161,178,45,250,123,56,129,108,232,251,229,10,71,103,121,251,213,202,220,21,218,152,150,22,236,152,179,23,135,150,145,+127,171,142,156,54,101,221,54,78,159,178,91,201,238,193,54,90,23,87,211,18,55,208,214,75,46,122,82,174,92,14,68,+67,89,114,108,10,22,21,114,33,59,82,151,8,208,185,131,199,48,241,181,126,69,195,131,10,245,33,162,110,154,210,193,+53,98,160,120,7,33,183,193,70,105,7,209,159,67,78,192,7,155,119,233,43,188,241,39,193,19,83,132,119,213,27,123,+45,164,59,238,54,43,14,221,184,140,116,83,138,206,51,245,245,181,81,34,97,81,131,237,185,146,115,255,226,209,61,94,+36,188,180,208,195,14,187,245,46,240,51,67,26,11,6,36,230,243,1,228,106,211,96,29,55,42,242,25,169,49,196,105,+85,116,146,245,101,182,255,8,202,72,72,86,55,4,120,251,151,227,82,69,163,20,110,90,200,215,23,19,201,208,141,15,+16,100,15,89,66,83,246,36,77,244,148,248,93,40,27,192,227,173,73,203,223,184,184,199,221,91,2,229,22,73,116,174,+236,127,112,212,151,120,219,170,222,239,83,40,204,251,228,245,180,121,88,208,218,184,105,101,74,175,109,32,107,200,232,49,+26,58,141,62,141,129,1,224,151,200,214,186,204,183,206,182,251,42,120,63,91,57,246,188,121,220,35,83,232,34,99,113,+65,210,142,22,133,217,217,117,171,150,204,79,2,101,241,114,49,161,23,46,100,15,65,236,184,230,126,205,208,158,54,205,+198,99,129,210,36,112,248,103,35,3,51,212,18,81,23,16,209,93,238,195,71,39,204,233,236,245,96,59,233,228,61,77,+63,180,247,150,69,75,212,217,7,28,253,185,185,226,7,198,164,87,55,202,78,166,234,101,63,12,108,235,110,215,157,156,+106,142,94,247,247,129,46,34,68,141,27,104,159,153,126,131,193,10,64,175,41,47,26,162,97,72,108,195,28,21,77,103,+37,158,174,5,218,78,201,197,97,205,95,40,60,26,217,225,201,4,11,219,130,195,96,189,31,117,220,63,31,147,24,110,+217,245,237,45,60,6,142,143,51,42,47,145,11,167,223,155,62,169,155,71,218,54,219,253,252,50,251,113,143,13,41,79,+31,245,155,70,209,8,9,9,227,155,87,212,249,65,146,191,5,185,95,250,57,143,78,121,132,153,38,145,149,98,228,68,+217,25,40,100,50,6,165,14,101,55,30,235,140,197,1,91,10,16,145,105,4,29,45,241,6,120,136,243,175,41,205,101,+147,32,174,122,98,238,147,135,113,165,4,152,203,158,70,50,133,130,234,253,114,237,247,104,245,63,126,114,211,127,233,83,+189,83,78,47,26,149,37,8,82,138,146,181,172,230,229,254,202,192,163,185,172,248,209,238,161,111,5,52,8,14,47,91,+250,35,147,241,43,29,239,46,26,0,125,128,169,189,5,114,227,194,2,21,141,102,233,39,64,230,155,36,168,116,209,253,+5,58,53,153,70,5,85,5,246,17,7,66,135,30,15,191,152,127,80,230,58,134,145,171,58,107,199,141,219,40,49,130,+91,39,123,41,226,239,114,141,203,159,9,68,212,71,163,95,158,127,233,157,216,128,143,20,226,21,40,30,205,181,181,182,+86,46,240,205,25,190,173,103,118,66,55,140,17,181,195,39,192,205,122,3,160,148,238,244,180,80,169,187,138,105,187,161,+96,240,228,31,93,246,145,217,138,202,59,184,216,38,110,199,207,62,3,94,102,236,254,17,193,45,129,112,67,57,68,132,+98,170,36,181,137,22,34,140,173,125,33,207,240,122,83,30,169,198,128,79,238,118,123,205,49,147,215,30,58,61,194,23,+32,210,178,204,207,152,32,202,14,103,198,161,94,78,12,151,77,57,233,69,233,211,68,148,164,205,80,201,149,190,101,109,+111,176,100,244,80,238,97,146,167,43,99,17,225,92,253,78,42,74,94,88,106,63,105,247,8,193,225,152,113,37,17,133,+109,152,165,227,82,123,12,70,139,70,134,163,142,60,158,155,172,154,58,128,132,1,192,49,28,187,69,231,29,234,62,62,+72,82,52,214,246,36,163,39,169,177,52,100,68,4,171,172,82,161,99,52,79,255,123,51,91,215,162,66,139,212,166,170,+101,114,179,83,223,199,92,216,157,160,169,225,157,142,185,51,34,66,55,103,229,4,120,110,178,160,35,50,205,110,146,209,+124,196,165,16,59,98,158,117,26,243,85,133,164,80,94,238,17,218,139,7,190,111,74,215,157,78,31,89,209,135,221,26,+46,209,242,121,149,192,69,77,225,107,178,192,73,85,186,160,18,19,65,158,81,19,236,250,63,100,204,83,113,36,252,82,+178,70,17,45,157,248,137,34,88,44,125,233,1,232,39,136,226,36,127,62,99,196,154,29,189,170,198,207,69,95,149,88,+76,51,61,191,244,172,1,132,247,127,217,122,109,45,82,36,118,102,211,97,125,5,238,64,252,199,94,177,226,79,122,204,+115,221,48,195,137,77,230,192,59,81,139,85,185,59,169,57,52,214,211,180,165,76,77,82,139,65,60,43,87,214,245,35,+26,3,47,42,132,185,165,137,24,229,135,238,168,3,170,132,166,81,130,94,36,62,21,66,223,181,171,30,164,21,186,22,+244,96,125,167,16,171,15,26,6,144,125,120,207,74,91,165,70,122,150,238,52,131,75,37,209,237,227,19,62,148,186,222,+250,148,34,56,12,252,48,153,0,56,81,95,254,95,30,150,70,139,112,175,235,109,251,136,212,117,234,66,188,148,238,149,+31,189,236,196,165,143,117,1,234,21,203,86,23,65,218,82,161,8,230,161,7,64,127,47,6,242,187,25,191,165,160,70,+185,84,17,216,154,199,25,141,189,233,236,86,37,113,57,109,199,161,46,74,134,79,220,108,97,79,118,175,225,137,134,192,+119,180,224,169,93,111,141,16,53,228,58,5,196,49,149,137,85,194,225,30,82,163,145,90,199,194,5,82,125,177,174,90,+210,200,147,212,65,116,83,1,62,23,151,54,28,250,20,83,236,233,5,5,21,5,237,163,99,226,206,135,25,55,239,28,+37,149,198,221,126,207,35,94,98,58,146,58,39,131,15,164,66,147,161,52,14,157,136,24,179,127,85,52,87,180,198,231,+112,43,189,113,74,117,65,71,83,25,199,68,241,81,180,136,103,105,156,70,68,47,219,122,205,112,234,169,168,216,132,1,+16,130,132,26,228,251,195,175,136,209,221,107,29,75,243,118,84,197,223,159,22,195,163,94,95,205,106,115,58,218,198,159,+78,216,221,140,139,3,109,217,202,54,242,82,41,118,68,246,18,184,196,180,242,136,23,166,244,14,213,234,173,148,253,251,+12,140,184,45,203,155,141,55,99,32,155,32,14,167,192,91,176,25,51,179,98,9,111,3,169,8,63,177,8,186,196,111,+129,10,147,101,114,114,128,82,85,78,229,0,32,5,137,199,210,232,228,234,81,199,155,215,222,156,235,13,222,206,231,158,+202,76,214,132,127,182,149,238,253,157,115,229,126,181,193,246,12,149,139,110,14,232,213,2,143,144,166,104,56,112,104,154,+252,164,192,190,203,32,234,220,195,78,65,89,31,14,143,151,81,78,49,197,50,87,95,53,255,109,129,99,45,11,121,212,+122,77,140,41,113,110,143,147,35,142,18,211,54,64,178,162,131,182,247,144,160,111,27,173,166,69,35,76,25,18,131,83,+44,34,130,176,230,91,150,181,97,70,19,144,118,180,250,19,36,172,37,203,179,80,179,243,105,255,224,211,142,100,108,237,+86,228,40,5,195,86,108,59,193,77,234,89,54,155,186,157,201,30,36,88,132,168,242,30,174,15,161,130,125,151,168,140,+159,83,244,176,65,167,71,221,222,101,133,43,54,120,33,5,136,206,149,35,153,207,76,154,218,3,231,87,181,96,158,150,+167,254,149,170,76,163,17,124,127,179,161,209,97,107,60,113,103,233,104,94,184,97,252,19,175,165,81,59,234,252,224,127,+202,52,22,181,81,178,62,83,149,210,216,231,238,75,54,112,53,181,9,37,188,5,220,130,35,18,190,124,239,115,195,101,+106,86,255,3,205,13,219,153,139,11,158,35,48,146,193,70,129,163,20,203,71,128,120,62,192,110,244,12,223,94,221,212,+227,43,139,12,163,235,127,117,67,78,254,159,236,197,45,22,166,253,88,45,245,164,121,226,173,160,133,173,79,197,108,77,+143,35,200,180,144,10,89,84,198,93,44,88,157,248,32,24,215,123,59,104,54,246,157,184,127,34,44,181,33,44,194,37,+128,159,12,89,75,163,160,83,126,143,134,115,52,20,173,149,198,253,136,51,66,139,195,6,40,153,95,40,26,178,24,175,+74,14,229,143,24,221,222,175,148,170,226,25,55,115,122,66,233,251,2,26,241,87,5,154,1,61,89,69,7,30,4,87,+150,39,79,20,130,1,88,166,253,227,221,163,195,187,160,9,65,169,72,220,170,145,76,196,141,195,144,219,73,58,69,184,+108,121,64,8,172,26,84,253,185,199,197,212,9,219,63,146,219,250,201,105,108,125,31,139,25,224,176,129,236,246,71,47,+31,242,95,200,28,138,58,183,230,104,114,236,89,6,187,41,176,239,142,243,241,200,9,145,168,81,224,15,184,243,1,22,+66,91,141,61,163,67,198,219,47,61,18,240,8,230,177,15,13,88,24,134,79,134,191,111,238,91,159,14,28,163,195,235,+15,87,37,34,255,46,110,230,72,24,85,99,252,154,70,149,92,43,236,3,14,93,240,212,175,167,175,240,53,117,143,172,+34,149,246,195,182,203,236,218,62,116,6,182,154,185,48,195,233,84,203,105,62,220,69,1,68,101,194,87,101,241,163,94,+156,160,192,109,125,211,217,84,30,230,199,183,119,16,214,99,166,9,112,143,239,153,16,60,132,120,166,42,172,147,180,199,+27,154,1,49,13,198,113,57,239,33,222,71,182,47,184,246,91,23,135,228,132,243,207,76,149,120,75,1,124,196,212,139,+220,54,78,89,91,51,139,129,50,99,109,50,209,94,247,171,31,137,194,241,121,171,53,81,169,96,158,22,205,6,18,50,+142,52,18,51,84,91,89,180,108,195,174,214,5,11,123,68,17,123,79,232,38,148,242,65,157,70,191,69,90,171,210,156,+120,187,197,90,129,163,180,148,27,54,103,237,28,217,224,247,143,67,233,27,56,147,135,250,138,145,101,38,55,133,135,47,+82,80,160,66,234,31,17,169,172,74,140,151,98,141,113,32,220,180,160,165,216,153,162,43,67,214,205,39,137,92,189,46,+186,213,103,187,60,191,119,237,206,85,101,74,61,130,199,201,213,219,159,164,178,117,121,202,106,252,245,22,165,30,184,108,+134,46,30,63,208,239,236,199,247,110,204,11,239,177,175,71,163,114,226,236,56,134,155,108,130,122,193,10,104,134,66,28,+30,103,248,201,227,127,74,90,194,167,96,111,205,212,149,152,229,171,93,222,28,16,74,110,78,149,177,173,195,169,248,48,+217,187,250,179,240,53,228,158,190,147,61,11,172,19,142,153,78,53,101,150,64,189,77,106,199,161,249,212,253,203,174,255,+13,38,230,172,189,170,146,159,208,176,26,56,189,1,106,193,19,253,234,193,182,129,224,30,187,188,202,84,138,46,63,165,+177,5,242,199,179,140,208,52,37,7,79,204,71,85,43,99,196,219,62,244,189,147,151,38,130,184,6,201,23,53,18,106,+35,240,188,71,34,77,159,50,50,74,91,250,123,240,129,255,99,145,18,8,185,206,237,244,160,72,120,230,14,249,196,187,+27,65,185,244,193,170,87,12,234,127,57,177,240,74,255,50,127,25,26,48,156,151,193,208,192,145,165,74,101,143,103,133,+175,240,142,82,99,161,151,246,94,46,217,9,218,236,25,190,157,108,47,93,48,124,119,124,88,140,91,18,72,76,225,154,+212,238,165,150,44,183,93,137,74,105,166,14,31,236,250,153,179,11,97,28,227,254,121,193,239,123,62,182,57,99,48,40,+213,128,77,230,80,89,140,207,53,248,80,46,41,126,40,100,23,108,19,87,147,47,196,66,169,196,208,108,126,31,149,121,+95,109,156,193,108,175,61,9,3,238,115,32,67,173,205,203,226,226,45,93,84,62,79,52,172,227,110,19,163,189,10,140,+28,72,132,143,9,139,162,69,172,180,67,149,67,180,55,48,7,213,204,142,84,174,113,121,174,247,131,33,253,180,40,114,+240,219,39,114,116,22,225,134,116,85,27,182,114,49,51,178,181,6,122,171,81,207,73,124,5,43,112,126,193,98,156,165,+2,195,33,67,16,130,96,233,19,24,128,140,191,72,136,223,143,211,235,49,91,70,115,122,40,233,35,189,20,46,125,107,+59,221,241,157,122,110,22,22,98,204,226,138,43,151,19,18,40,2,7,7,40,137,80,149,149,170,22,108,143,40,45,241,+9,38,255,181,234,111,25,22,235,162,174,187,248,116,212,112,121,32,9,222,122,135,227,168,62,84,152,62,99,36,131,181,+187,85,112,227,207,107,138,211,61,36,196,197,32,191,190,100,31,61,97,60,88,17,8,12,206,212,204,216,74,179,40,75,+8,96,142,222,42,151,229,29,19,169,246,60,204,240,88,203,252,50,32,214,234,72,30,28,49,73,93,15,93,213,135,179,+213,68,140,101,27,51,84,42,18,180,168,15,88,199,131,197,99,7,210,154,48,249,80,134,249,69,236,23,188,228,255,26,+127,152,185,7,255,80,162,32,135,103,239,117,228,27,215,20,165,248,122,158,175,77,11,65,32,92,207,142,241,236,120,51,+198,131,226,83,75,107,54,224,118,131,78,234,44,44,23,98,99,132,191,63,155,150,138,67,52,33,170,25,10,63,27,69,+151,6,74,194,185,39,202,71,160,131,85,119,86,94,194,54,248,40,238,58,168,63,101,129,127,98,145,24,58,161,99,194,+58,86,240,45,218,12,90,110,209,239,55,52,253,39,193,210,82,110,52,224,110,85,239,35,117,32,150,117,123,51,103,212,+194,65,95,148,15,142,32,227,251,219,202,8,94,173,138,127,214,90,225,191,123,238,157,236,58,43,237,56,86,169,23,126,+178,188,46,238,60,193,252,131,192,15,183,26,6,208,24,242,20,193,115,115,173,163,26,123,36,146,10,80,241,80,96,28,+68,171,172,128,22,201,125,131,63,44,67,42,55,61,247,0,147,194,185,143,51,217,6,188,243,142,218,158,210,66,113,17,+53,156,26,108,170,251,192,108,189,41,77,51,176,191,169,138,134,87,45,67,21,71,195,22,61,56,206,111,165,241,103,138,+82,234,234,18,78,193,70,108,245,220,146,56,250,167,117,12,129,102,129,26,174,66,222,245,50,80,24,13,100,205,143,212,+15,125,81,38,14,112,9,7,187,35,126,18,130,189,160,157,233,82,153,0,215,186,108,100,70,125,62,61,4,141,22,22,+146,253,243,225,252,98,208,35,4,27,98,190,102,140,115,211,146,30,175,172,245,26,30,130,217,78,6,156,92,40,203,249,+218,46,153,188,246,50,198,190,91,222,39,80,112,62,3,67,226,246,245,33,97,192,13,214,79,95,234,12,12,129,103,110,+5,241,228,134,43,54,42,98,195,68,179,179,158,125,235,169,139,93,101,156,37,40,42,195,35,143,130,235,128,136,46,120,+78,20,140,172,34,9,76,34,106,26,183,202,125,238,222,147,235,69,2,235,25,0,0,254,215,152,125,128,136,237,143,52,+163,190,98,141,134,27,47,46,178,64,71,145,235,203,204,203,162,246,117,114,21,184,155,84,8,99,153,58,178,89,254,76,+86,162,24,36,46,193,202,191,219,28,52,71,108,117,37,247,147,74,156,63,149,4,4,208,211,121,211,148,207,5,49,37,+141,148,252,70,192,170,208,226,192,239,20,122,91,216,30,176,81,182,176,207,193,153,47,64,52,242,157,212,236,234,1,32,+247,100,73,236,189,238,168,135,37,142,75,108,168,159,27,243,202,157,194,85,91,238,132,190,42,46,253,59,226,126,70,56,+102,165,139,142,252,67,208,59,52,167,106,172,244,35,66,229,44,176,24,254,220,204,49,209,39,244,151,112,5,189,195,171,+124,242,112,173,117,169,108,231,131,113,92,49,173,186,243,188,154,229,94,29,238,52,218,177,57,198,74,7,19,31,145,87,+153,245,155,113,249,238,77,65,4,87,9,107,245,184,123,88,25,88,76,19,166,27,148,171,73,211,154,46,124,228,134,49,+60,46,230,111,92,109,131,170,136,156,9,104,140,25,96,12,185,96,50,23,82,89,171,183,177,223,98,226,108,234,94,125,+39,28,201,235,93,1,172,27,63,177,121,193,15,197,37,135,125,150,113,82,97,171,222,21,213,155,38,34,32,206,177,187,+236,28,200,169,23,187,90,25,147,179,42,240,3,90,225,54,46,191,4,2,133,205,5,161,185,174,217,147,106,237,67,88,+56,40,27,0,101,21,73,223,131,141,77,85,61,63,229,59,177,86,219,144,234,154,164,95,170,108,65,1,178,121,227,0,+0,117,121,29,59,84,255,81,31,117,218,25,215,166,47,87,17,81,67,83,202,123,24,99,4,80,104,154,217,191,162,26,+211,6,92,35,224,82,97,219,169,42,55,2,59,108,211,221,101,245,117,201,86,119,164,32,59,238,104,36,29,140,103,199,+185,184,106,157,239,195,48,146,116,122,128,206,23,152,215,235,214,73,162,185,31,203,246,26,170,123,116,199,140,183,175,1,+23,14,215,22,41,187,212,244,154,29,34,229,29,40,192,89,88,225,186,136,6,26,85,66,43,7,185,72,125,253,16,252,+251,126,21,180,172,207,131,225,198,142,96,25,22,171,16,173,110,30,103,7,99,187,56,89,193,77,102,179,160,229,38,95,+244,16,110,150,181,144,131,181,199,210,195,223,10,144,206,227,210,86,105,223,11,162,173,144,41,217,76,52,247,82,104,167,+179,33,185,140,86,42,220,17,180,134,179,188,142,230,178,106,171,137,220,41,252,7,23,99,251,136,30,134,54,37,227,190,+142,205,125,14,48,203,4,207,89,238,87,158,39,185,210,163,43,245,158,81,24,197,22,106,180,230,222,127,248,74,52,140,+213,211,185,206,19,193,21,114,252,238,100,254,20,102,212,116,190,156,53,37,53,59,46,174,185,237,14,168,83,119,219,140,+245,77,59,237,128,92,255,148,254,53,73,193,24,169,241,16,76,2,37,2,247,10,116,229,193,103,96,191,117,29,222,62,+18,230,175,60,249,17,240,38,58,59,3,175,228,202,64,247,49,185,10,248,113,2,233,188,204,244,21,254,247,248,63,225,+176,80,92,215,95,159,162,116,228,216,47,50,88,180,141,169,1,133,2,237,172,34,249,165,203,197,197,7,161,89,184,93,+223,133,69,184,126,32,50,167,240,226,197,76,243,89,197,196,16,198,90,44,245,201,45,32,220,78,225,220,55,155,180,48,+178,129,35,253,214,133,250,91,92,32,171,57,167,198,143,170,58,179,50,150,141,184,144,209,119,6,87,192,196,146,148,213,+179,146,214,104,228,255,209,90,6,170,33,200,82,97,229,215,68,193,35,1,145,138,109,8,158,188,54,148,218,168,110,21,+124,96,114,128,160,155,43,7,51,3,82,217,225,23,231,45,91,2,54,19,37,130,18,163,129,216,209,127,26,153,156,137,+101,118,203,84,182,195,92,57,9,171,215,187,148,6,110,24,182,199,70,9,221,242,241,221,49,113,245,125,195,245,230,226,+255,100,8,230,72,152,51,115,19,139,21,78,248,86,255,158,154,247,142,23,139,112,156,89,215,234,245,11,117,117,1,36,+225,10,247,173,89,172,234,73,68,36,68,254,48,147,253,93,50,245,182,251,135,51,231,187,99,123,97,150,37,107,149,216,+121,103,12,220,220,239,137,52,47,165,113,107,247,193,20,26,56,224,200,150,154,36,101,231,45,198,167,167,167,224,169,21,+102,130,243,62,61,112,121,147,190,138,239,174,115,87,112,100,59,249,186,163,56,151,74,84,17,112,89,169,166,255,138,238,+39,204,187,241,40,175,22,234,142,168,133,229,176,167,173,102,1,190,62,53,106,166,186,18,107,168,150,11,154,32,24,188,+94,200,219,239,232,245,71,169,153,6,191,242,79,143,197,102,3,50,113,51,5,244,96,160,37,19,187,118,116,116,45,131,+162,68,32,58,144,107,132,226,168,22,204,139,43,194,37,17,8,90,216,160,52,180,127,168,139,242,7,13,177,90,96,128,+105,61,47,54,232,105,42,18,181,222,187,111,106,172,246,48,106,225,94,21,85,199,136,186,111,149,176,228,9,20,65,163,+155,232,46,176,84,196,43,13,34,53,216,24,74,133,145,89,180,92,135,170,99,218,41,39,130,63,231,243,38,250,52,25,+208,235,71,96,47,114,201,245,165,241,210,49,65,255,87,141,113,213,24,200,240,189,239,56,50,66,16,41,7,251,125,63,+82,32,1,139,102,118,246,121,42,0,60,99,130,85,180,188,11,245,225,210,120,129,174,27,56,27,18,90,137,200,107,26,+214,70,95,101,30,131,227,128,194,224,132,84,112,251,172,7,65,254,52,50,204,119,129,182,251,128,4,91,124,173,15,248,+43,118,170,109,113,122,32,54,176,61,28,12,43,249,230,63,91,8,58,73,229,119,203,102,17,138,118,214,78,93,122,118,+67,128,121,156,54,76,176,184,239,34,222,124,23,193,9,64,58,220,250,127,90,95,142,96,180,182,191,124,185,150,34,81,+225,235,225,223,10,2,11,61,2,98,169,250,183,45,244,119,188,233,195,181,86,15,254,123,63,54,181,68,108,92,85,214,+19,44,21,248,59,166,78,147,241,148,20,38,56,44,208,59,80,53,190,250,247,95,49,143,97,185,38,145,148,237,195,83,+205,8,231,219,73,83,96,5,149,64,152,38,218,170,58,60,216,3,2,180,75,23,12,102,179,218,56,114,63,98,9,198,+232,185,172,206,20,253,41,90,46,190,164,61,28,137,4,189,156,197,143,75,47,135,79,77,7,198,1,40,31,227,201,158,+83,240,242,135,153,250,65,169,76,209,42,32,211,153,6,157,120,18,164,118,156,68,175,220,249,186,237,238,244,159,48,232,+23,147,190,196,159,66,217,8,253,69,93,211,82,25,27,225,92,136,49,217,211,8,9,227,48,35,86,207,82,232,181,74,+203,159,12,30,203,97,221,171,194,49,49,38,90,63,208,4,174,54,127,47,30,118,124,190,130,222,254,72,145,97,108,140,+205,222,249,207,127,87,47,58,155,225,201,151,169,242,0,222,19,212,189,180,221,106,171,59,216,66,5,164,176,84,218,205,+50,150,212,19,184,114,22,158,127,119,254,124,51,85,207,125,72,210,118,183,235,56,165,192,219,118,222,28,12,88,199,93,+252,126,112,65,77,94,125,15,42,134,143,191,98,16,32,78,148,183,23,195,98,2,76,151,152,98,169,142,204,9,49,145,+11,191,176,151,136,162,24,54,165,45,234,9,174,189,254,226,9,47,157,160,190,226,151,249,242,236,177,180,73,147,83,69,+114,115,15,107,224,47,238,3,18,7,21,241,126,240,208,176,187,99,181,35,65,164,205,55,12,83,133,15,165,47,8,74,+235,121,161,44,83,11,46,242,226,136,159,175,38,212,224,26,183,78,27,165,25,233,105,200,211,130,31,202,169,186,64,147,+119,138,201,135,241,230,199,173,206,27,15,164,18,100,127,176,117,96,56,150,69,35,76,65,179,96,162,193,215,227,83,234,+126,51,176,217,118,124,86,102,6,132,205,74,143,40,116,104,19,16,86,233,97,92,147,189,103,191,252,18,201,57,210,188,+77,85,107,209,249,11,134,134,16,143,229,49,160,248,30,249,80,12,254,49,164,187,106,188,100,115,221,100,196,119,70,103,+229,172,50,165,179,115,35,19,222,250,195,200,96,132,66,247,195,114,175,193,187,200,158,72,183,99,119,117,174,201,241,136,+217,100,180,118,49,147,3,3,173,12,182,188,166,248,127,14,80,63,160,223,200,81,250,16,108,193,80,71,38,22,143,96,+129,86,199,102,182,103,23,181,146,252,21,111,47,189,177,138,186,63,33,2,149,195,11,10,2,158,44,84,69,97,162,146,+163,231,122,146,115,142,166,31,74,111,102,80,209,109,152,34,37,224,60,113,129,56,126,196,198,85,94,136,220,110,207,136,+143,239,77,114,242,251,102,28,248,186,49,48,88,201,148,178,17,41,201,99,155,8,225,154,211,57,15,38,11,234,131,241,+211,7,11,86,184,93,99,245,195,117,198,47,57,138,213,148,129,20,69,175,82,135,200,210,116,174,156,136,234,197,228,230,+159,133,233,255,84,203,236,95,120,27,67,117,16,12,86,134,204,46,192,188,221,208,182,60,52,84,41,156,98,163,32,35,+9,138,185,58,228,120,209,74,137,234,180,237,109,73,21,19,111,146,61,14,13,174,28,4,199,239,155,3,24,1,93,29,+164,115,67,183,62,140,89,30,209,138,128,51,28,122,1,239,121,31,75,229,164,36,22,149,10,32,119,168,62,224,240,78,+163,202,6,195,189,168,18,243,114,69,117,115,203,207,227,166,50,45,150,46,143,241,33,41,135,84,248,199,24,233,110,88,+38,191,216,90,211,105,223,230,146,203,126,81,170,192,182,218,125,137,95,172,170,21,174,123,92,181,237,193,109,82,142,68,+202,14,4,48,66,5,51,16,160,68,103,17,136,15,178,84,211,221,51,153,154,174,182,174,149,81,14,81,146,120,253,147,+69,221,193,208,60,234,229,71,194,63,56,227,51,211,67,143,222,106,54,127,197,124,58,201,10,104,180,203,159,209,34,141,+98,132,92,225,162,135,126,68,155,102,178,176,183,161,42,23,162,114,225,87,3,69,178,159,109,155,58,205,158,11,134,216,+40,184,150,163,113,176,82,34,70,154,189,155,151,156,255,237,153,236,56,63,191,124,209,94,174,255,116,245,120,31,83,185,+137,10,63,64,201,249,36,45,169,9,17,169,172,224,159,58,119,78,16,186,207,254,196,7,46,231,132,163,131,134,117,167,+160,150,24,11,143,123,144,173,194,32,218,235,248,0,225,225,158,48,229,99,119,197,118,142,87,51,140,125,138,238,154,170,+220,156,56,180,4,100,151,191,220,86,8,202,173,38,51,121,192,181,208,218,30,19,46,191,49,64,140,29,125,90,137,236,+214,85,46,102,76,154,70,205,118,60,233,149,84,209,71,225,132,125,142,92,53,240,205,70,38,56,41,98,242,206,77,151,+214,144,233,195,91,94,190,51,93,140,133,120,227,51,36,61,223,252,123,241,61,112,156,39,192,116,23,40,233,27,104,231,+2,53,78,44,75,31,235,91,248,151,32,162,50,27,152,36,36,37,201,4,132,109,19,74,182,148,9,186,187,76,172,200,+42,251,81,169,42,87,171,8,32,174,62,59,231,98,156,59,54,179,112,35,49,169,198,139,106,12,228,78,103,41,241,200,+79,127,165,211,164,103,159,206,234,7,214,70,142,102,213,177,178,187,161,86,248,109,50,181,129,119,4,11,16,33,251,72,+42,128,25,154,27,158,169,122,143,250,52,35,195,51,185,6,134,218,115,125,42,96,218,109,21,115,248,36,114,179,92,57,+86,83,203,77,242,247,140,234,110,132,9,48,36,249,225,223,81,252,15,198,176,72,157,6,131,29,0,178,14,190,95,181,+93,219,110,8,9,197,108,129,92,227,19,132,139,61,104,81,134,163,199,166,130,41,73,84,37,122,133,104,170,205,2,73,+178,94,113,105,155,133,30,163,53,13,96,104,255,252,14,166,54,163,200,232,111,229,142,22,115,255,50,141,54,104,149,75,+41,11,190,132,94,89,122,219,219,223,155,98,168,249,157,29,166,117,80,203,182,199,72,38,250,249,141,209,13,151,162,245,+124,149,37,115,11,59,5,72,167,187,47,217,113,12,153,154,195,138,187,197,64,98,59,1,82,130,243,192,97,238,136,56,+129,8,253,224,220,21,56,100,64,57,172,236,109,124,78,200,106,166,95,206,255,57,177,22,127,165,211,62,86,185,0,28,+134,65,26,147,58,173,195,151,196,37,86,235,79,169,55,63,190,238,125,225,238,219,225,203,107,11,140,99,205,141,163,177,+2,70,223,144,219,82,46,214,23,27,40,102,114,172,190,189,21,98,241,203,100,153,71,45,179,114,71,40,203,190,23,165,+208,117,224,35,87,205,253,3,235,63,160,34,125,84,144,190,221,13,78,109,212,32,120,185,9,77,181,32,117,42,60,142,+248,251,65,181,1,169,156,40,245,155,145,81,136,5,198,160,161,170,46,23,229,178,96,222,240,223,92,48,231,59,87,60,+29,214,82,181,89,88,232,12,181,201,206,94,178,33,46,10,209,202,73,102,177,109,67,94,86,94,166,33,148,233,75,219,+250,89,66,89,171,84,113,20,155,187,244,99,223,235,31,48,206,230,113,108,103,28,72,72,76,96,128,4,206,2,4,35,+244,24,164,189,124,54,182,171,58,99,145,51,214,201,250,28,5,89,180,145,178,175,223,172,160,246,249,37,87,201,25,222,+61,35,185,146,213,171,17,247,218,235,86,94,120,253,216,90,204,214,87,184,75,11,208,209,226,250,199,194,149,12,78,218,+187,163,186,63,5,29,60,94,7,133,205,206,170,184,160,94,156,1,160,126,253,181,239,7,157,70,122,35,38,213,220,82,+65,234,164,140,134,238,13,179,81,29,88,196,53,42,12,163,91,156,4,37,67,198,211,177,64,127,19,80,251,75,235,130,+97,159,134,12,90,30,254,174,150,104,135,227,57,222,86,249,192,219,94,95,242,93,246,177,120,31,218,191,166,63,162,58,+189,6,47,141,248,30,123,205,74,133,13,241,248,6,38,181,177,0,235,68,145,61,71,99,207,247,95,90,184,56,230,73,+38,158,214,105,175,185,219,38,193,111,80,178,158,254,216,181,137,119,211,255,144,19,219,8,80,248,102,45,213,237,168,217,+81,80,87,138,142,126,164,215,99,29,146,227,11,248,218,245,51,131,185,61,86,228,76,67,147,134,111,69,40,125,87,186,+47,87,200,136,180,209,190,52,233,141,132,52,83,214,232,209,233,180,108,102,235,199,88,228,238,215,136,55,135,79,14,132,+25,167,238,197,64,2,60,30,255,51,151,99,57,22,9,48,227,107,52,94,199,64,147,78,52,157,244,25,104,156,96,201,+252,46,226,50,69,43,57,84,217,71,187,240,82,22,82,240,128,223,249,163,1,6,241,20,94,100,19,185,149,127,28,88,+172,75,46,39,113,20,135,116,81,50,122,66,249,124,207,200,208,156,6,221,136,73,15,13,99,176,5,42,124,126,135,205,+181,37,120,109,62,203,185,250,9,139,130,225,251,163,5,8,26,210,83,34,8,63,169,10,169,97,59,68,167,19,93,145,+62,241,214,10,23,241,152,105,96,21,65,242,114,187,44,22,179,209,81,11,1,135,145,77,131,200,130,143,194,101,111,59,+98,78,247,47,113,106,96,42,76,10,203,127,250,154,68,239,210,56,128,244,56,112,79,136,208,49,62,168,239,230,180,8,+170,110,168,20,170,89,143,23,43,5,202,172,77,251,152,4,187,222,179,18,4,4,186,173,245,135,11,135,184,115,75,242,+53,1,99,184,230,191,70,208,138,168,223,81,48,117,190,173,212,20,106,72,118,134,90,172,217,179,177,54,206,50,118,136,+97,146,154,72,126,235,13,154,22,44,44,62,204,14,241,111,2,5,125,82,74,145,77,72,29,85,14,16,118,104,162,188,+166,186,165,215,70,167,196,155,52,213,91,12,157,195,131,253,172,20,4,182,77,205,203,51,152,100,187,112,91,160,107,204,+180,184,233,28,102,36,101,142,46,210,89,16,238,27,25,245,77,119,199,181,177,119,112,42,96,20,150,140,218,225,178,124,+53,36,120,18,204,172,78,59,83,23,48,214,156,224,251,118,0,51,234,7,154,68,91,41,61,39,45,161,201,242,253,76,+42,132,146,225,127,67,227,160,129,177,201,247,1,29,33,192,181,150,130,59,205,200,88,136,244,32,207,95,183,172,236,236,+96,73,247,70,5,208,174,239,155,72,248,153,182,8,228,84,175,152,197,91,223,83,233,184,128,203,194,126,0,28,58,210,+230,240,14,199,15,8,161,99,163,187,47,2,136,144,3,199,175,81,215,112,154,178,157,214,130,153,196,255,224,237,106,64,+185,221,53,114,179,36,119,64,96,191,148,194,52,209,244,10,208,112,85,187,229,134,88,150,82,243,74,92,113,11,81,201,+155,39,8,184,172,235,77,150,255,9,107,248,202,169,153,91,22,24,212,56,122,13,138,183,55,19,197,47,47,29,163,13,+115,92,171,84,78,98,237,150,151,152,155,82,252,93,16,254,24,60,131,10,205,212,11,148,207,176,14,124,223,230,2,26,+40,213,144,74,35,162,171,107,178,79,71,126,116,122,135,201,47,13,11,70,117,215,172,118,140,75,254,163,250,101,52,97,+23,222,137,175,40,85,180,183,87,156,124,66,97,31,17,144,85,131,191,226,128,153,103,129,204,186,203,170,120,63,127,95,+236,21,82,200,251,250,14,210,161,94,101,244,17,56,52,192,119,164,244,246,176,128,0,216,40,88,252,82,141,112,55,169,+220,143,112,40,210,230,177,222,223,137,214,98,165,67,141,46,229,165,208,119,134,150,186,216,113,238,33,45,94,159,47,99,+46,115,248,40,122,29,214,121,163,85,39,96,228,81,187,117,139,99,37,252,134,189,104,111,47,159,94,8,74,217,98,34,+200,112,169,19,64,168,197,27,118,221,231,13,53,180,5,240,128,61,116,8,139,214,165,46,220,202,49,180,133,128,146,209,+216,4,210,74,46,217,205,92,119,243,151,103,216,216,193,70,225,145,78,131,106,158,67,68,11,12,187,198,238,54,223,213,+230,115,78,239,57,86,159,156,161,205,32,152,120,32,50,215,227,40,212,152,204,68,0,80,41,103,223,68,145,194,141,107,+224,185,137,31,3,21,77,72,186,75,78,55,225,55,38,75,174,33,119,80,227,128,148,12,254,27,73,60,97,232,103,250,+14,254,228,206,98,120,193,146,118,56,237,155,205,179,89,193,195,5,188,67,34,40,209,3,26,137,233,87,144,209,60,29,+105,80,191,85,51,9,190,215,218,211,37,176,5,42,215,130,246,242,109,56,246,195,176,180,163,63,11,35,17,246,83,202,+201,0,152,14,96,67,44,178,248,101,24,62,161,111,127,13,253,137,77,92,70,29,20,223,210,125,25,116,173,181,84,146,+13,133,176,198,87,40,244,11,127,26,51,224,98,164,205,123,133,188,75,194,38,241,157,212,234,23,167,204,197,14,12,242,+168,124,75,148,38,76,75,207,70,114,7,106,31,7,215,215,224,92,181,240,162,179,250,95,90,1,244,153,99,77,199,145,+63,135,118,130,144,83,106,114,236,162,155,76,121,24,171,194,103,8,133,152,104,91,24,98,165,225,13,184,218,139,137,10,+172,60,37,38,52,206,6,221,79,111,197,19,27,187,6,101,185,7,98,48,16,56,220,235,173,246,33,41,65,110,102,232,+97,36,141,221,80,101,159,202,42,28,218,62,250,27,96,37,127,243,112,255,127,0,73,67,221,172,195,224,222,118,43,114,+172,151,117,217,186,167,214,214,71,84,236,219,135,41,219,86,233,201,82,3,105,237,224,250,107,120,185,125,104,165,182,124,+202,102,103,218,37,201,54,102,244,57,80,253,68,241,156,59,80,93,137,33,79,245,50,2,214,123,242,174,151,48,100,21,+63,243,83,241,30,67,127,254,236,186,62,121,64,118,60,184,81,159,134,204,253,55,217,111,167,122,105,69,42,102,25,189,+57,137,8,21,57,234,182,35,224,179,151,50,126,125,78,77,123,80,104,49,93,126,11,120,215,166,15,173,57,255,65,11,+116,127,198,37,76,67,200,210,214,194,228,62,1,10,50,67,109,6,191,42,59,92,222,176,167,249,190,124,122,223,222,226,+72,88,87,48,169,36,157,199,67,201,100,143,65,66,184,189,99,149,24,225,175,106,118,60,20,8,33,56,247,109,201,208,+39,109,221,190,221,106,211,178,147,135,222,88,170,76,231,222,55,102,211,26,106,26,134,224,163,125,133,188,174,80,73,202,+150,36,146,87,180,19,143,176,52,178,44,172,27,74,165,48,143,254,27,101,125,78,197,243,79,1,60,31,182,45,145,214,+125,79,4,166,75,11,63,119,243,254,24,217,171,240,230,174,57,244,252,75,167,92,27,135,232,107,195,33,234,76,104,0,+183,128,94,31,200,177,235,77,108,252,79,241,37,200,2,255,163,97,207,57,54,97,40,228,52,239,114,18,24,182,244,83,+157,188,254,161,106,75,102,121,212,206,153,132,59,141,178,44,143,50,167,201,14,169,195,218,45,129,3,210,138,16,100,189,+197,113,70,224,49,81,222,198,131,209,117,104,99,43,177,27,29,34,231,108,64,136,185,17,86,220,189,245,157,115,63,90,+165,120,69,113,16,193,26,227,38,84,0,155,110,101,250,0,155,235,97,167,181,147,202,178,45,114,170,144,1,25,49,116,+83,88,247,203,53,171,205,153,92,195,90,170,176,3,83,102,69,144,228,96,83,245,44,207,197,134,155,209,235,217,215,241,+154,177,100,245,163,226,98,44,151,234,206,230,111,233,209,147,85,252,145,234,34,26,159,46,116,129,251,155,89,224,204,46,+167,237,183,248,251,143,209,246,22,75,62,139,210,85,180,137,76,248,32,124,75,199,139,249,200,13,190,61,1,112,226,221,+51,83,2,136,136,19,142,14,85,132,120,190,182,251,161,155,123,123,134,20,255,213,47,192,204,47,214,42,20,12,31,31,+202,24,138,177,77,231,7,93,95,189,133,81,37,71,42,49,202,214,225,44,187,214,89,68,40,153,253,216,138,83,253,69,+189,246,198,77,223,60,192,93,18,38,234,175,23,139,203,134,142,129,212,57,20,93,32,253,111,59,165,106,139,74,143,21,+61,239,159,183,199,231,5,186,105,201,207,184,226,229,51,61,60,81,19,21,247,80,183,144,12,76,156,0,208,21,55,40,+100,19,73,236,89,135,26,101,175,189,65,94,70,134,250,223,156,92,22,85,137,74,158,37,94,98,2,9,21,134,246,227,+98,205,12,180,224,207,46,243,246,204,136,14,90,49,132,30,109,46,80,209,178,226,93,136,187,155,43,110,31,41,41,122,+200,29,239,235,62,225,91,93,50,116,178,191,95,231,169,54,243,42,202,135,200,129,173,194,76,119,218,87,127,195,211,186,+15,193,101,247,200,229,153,119,241,114,57,163,134,107,16,231,56,243,63,186,79,104,108,208,32,217,181,24,166,63,144,217,+76,66,160,205,84,89,21,155,167,14,6,109,235,227,25,182,196,32,207,84,240,138,43,254,229,193,210,244,32,146,194,102,+20,177,188,122,56,124,197,154,232,94,63,61,89,187,116,26,129,170,141,40,252,199,117,61,5,166,35,122,104,24,59,60,+150,255,88,221,173,237,32,39,96,222,186,60,149,60,244,59,39,157,173,245,128,110,22,102,199,97,166,107,173,112,12,114,+210,26,39,109,186,20,79,217,170,83,7,54,212,27,2,224,53,108,70,206,110,248,160,132,43,176,166,42,74,54,71,251,+247,105,152,65,66,241,103,19,58,219,230,180,99,190,41,29,13,52,221,16,57,198,144,40,10,117,163,94,93,203,122,186,+25,40,134,37,163,139,26,172,241,217,195,188,92,104,27,45,6,19,73,0,187,197,116,19,96,58,93,25,147,145,149,141,+102,183,76,177,43,81,185,41,185,19,129,229,248,1,27,249,144,16,24,195,193,214,78,12,21,45,210,82,231,125,135,126,+50,255,115,193,0,20,151,175,164,97,61,151,158,129,142,166,200,176,140,247,216,67,93,204,39,201,45,39,135,86,221,204,+108,11,100,16,164,197,40,181,241,250,227,182,42,30,234,205,242,37,188,90,197,222,5,67,63,173,164,191,171,91,226,239,+197,99,243,147,129,65,255,59,29,7,188,204,202,114,120,169,73,105,160,47,232,231,195,216,62,143,85,188,84,193,253,79,+14,219,36,211,105,125,10,27,195,238,138,177,163,25,124,59,204,176,153,101,171,172,3,200,138,154,19,214,190,73,115,220,+81,38,1,106,34,114,254,22,2,84,192,237,92,57,255,235,73,251,105,41,147,46,199,134,88,140,211,200,185,231,131,228,+82,143,106,116,165,64,96,27,230,150,182,215,196,121,28,22,140,231,239,39,253,166,216,244,44,138,107,93,35,80,47,75,+53,237,7,187,50,177,184,30,19,172,92,90,237,16,101,13,251,3,180,181,233,39,51,130,179,60,182,34,167,47,175,139,+56,10,52,42,228,30,201,158,214,218,143,5,146,114,159,158,217,58,191,160,122,116,160,191,170,202,96,22,12,137,41,204,+210,5,189,37,132,209,238,3,11,23,187,181,174,94,151,91,51,106,220,241,172,142,69,205,133,60,1,171,60,138,186,9,+69,105,8,25,91,184,222,7,31,21,7,90,207,222,225,31,96,140,178,129,170,82,12,38,33,194,194,17,95,8,103,169,+112,123,202,184,184,159,31,187,28,140,161,181,82,225,90,193,243,244,222,47,53,61,155,4,144,159,65,50,78,73,4,6,+243,123,98,250,183,181,77,196,246,164,43,24,34,63,128,122,86,96,182,205,76,149,80,177,67,23,164,6,37,212,212,214,+205,239,127,248,2,8,76,63,234,91,238,195,148,132,35,227,210,199,239,41,105,168,52,80,146,65,5,179,255,56,176,220,+176,125,116,209,217,21,170,247,53,166,247,165,199,158,143,27,41,185,31,149,86,222,251,226,112,94,75,251,66,146,3,178,+91,87,97,17,131,85,232,204,52,106,131,174,1,106,218,35,71,95,175,54,174,182,195,228,53,231,157,78,218,58,116,242,+51,240,168,18,234,249,68,190,32,222,172,74,99,110,240,164,78,49,21,192,14,106,72,110,219,68,215,100,89,16,59,112,+186,235,140,0,137,111,122,249,170,147,169,92,190,158,222,153,228,24,239,230,193,99,169,86,62,42,218,82,156,5,103,160,+51,208,189,234,214,59,136,96,124,79,124,99,197,56,121,27,50,135,82,197,65,103,219,252,194,36,65,227,225,7,62,147,+253,163,72,128,86,0,25,208,235,250,52,43,8,96,80,222,101,167,215,217,209,215,182,51,60,6,94,187,69,58,254,230,+175,101,14,106,228,141,2,44,168,6,201,198,79,204,58,150,122,203,115,104,111,65,197,18,178,228,31,161,22,153,77,184,+201,161,224,100,154,228,240,178,152,2,185,43,25,148,144,220,32,71,227,232,178,136,5,139,20,208,248,68,113,117,150,51,+204,135,211,246,239,128,22,179,60,12,129,121,73,33,17,241,169,74,21,255,79,188,220,95,44,139,71,174,43,249,131,8,+172,97,242,89,223,88,88,133,85,142,234,117,74,238,210,233,70,94,53,108,243,121,198,47,80,141,251,85,149,13,63,103,+230,224,138,160,94,71,21,145,100,112,48,173,161,80,25,183,222,248,126,72,65,252,184,43,193,155,227,222,62,79,114,148,+144,158,200,206,112,139,90,221,108,115,28,139,125,100,73,110,111,8,119,235,7,181,176,40,209,17,192,231,47,26,220,30,+204,185,127,182,225,43,122,43,202,172,192,175,65,94,214,52,97,33,245,40,51,242,33,192,77,20,135,198,220,114,157,68,+19,128,18,151,215,90,184,18,150,129,20,101,89,1,36,105,157,243,203,97,16,105,199,14,73,43,253,209,230,51,7,124,+255,90,34,168,170,35,135,52,238,142,248,93,133,232,129,46,20,27,200,152,155,202,218,49,112,250,98,61,1,17,162,154,+3,110,148,230,225,28,34,131,171,149,23,143,2,109,218,238,102,63,92,134,19,58,51,215,160,82,46,195,169,96,193,119,+67,211,240,206,102,45,162,208,10,62,137,192,37,36,203,30,19,227,71,34,215,242,216,239,21,212,87,107,138,243,103,142,+245,74,250,106,72,52,137,207,216,10,180,56,237,206,100,236,195,249,205,164,236,11,91,214,50,206,14,179,155,46,28,162,+185,84,231,12,153,75,108,30,168,236,229,187,89,72,174,181,105,231,0,58,243,70,163,162,5,91,79,161,98,142,69,243,+92,55,164,84,101,80,233,19,185,65,227,211,49,134,214,212,32,116,2,240,106,223,51,185,5,10,83,190,34,209,104,23,+129,86,115,83,152,155,84,126,152,103,181,128,68,28,26,78,119,142,244,120,16,139,51,101,68,43,76,163,69,154,251,73,+83,182,90,169,17,23,21,1,171,222,48,177,169,183,97,217,221,196,244,211,65,176,211,190,131,58,94,109,117,40,185,155,+143,147,240,64,192,16,95,68,227,6,109,34,216,98,124,235,160,216,38,208,212,199,16,72,253,241,77,226,218,36,3,208,+101,111,118,152,232,148,19,88,125,184,82,92,59,230,164,65,103,182,107,192,212,84,150,147,87,207,108,38,30,52,213,164,+247,110,167,242,131,58,109,19,234,236,255,113,80,47,118,68,253,70,11,188,190,121,212,236,51,180,124,198,131,109,223,169,+237,89,36,194,215,87,63,208,186,103,84,85,254,200,136,38,221,45,221,142,46,226,252,182,173,156,239,233,155,79,254,130,+236,123,150,228,32,210,97,250,190,29,74,20,24,213,144,169,213,241,89,229,146,156,130,52,19,233,0,92,120,85,60,212,+249,28,125,111,65,111,239,100,234,111,26,39,29,250,80,1,91,173,135,238,242,246,172,26,42,239,0,26,168,248,121,9,+135,67,173,22,56,45,13,184,151,168,245,59,46,148,61,77,55,14,175,175,122,189,89,148,51,113,237,149,237,71,62,228,+252,109,97,242,143,140,170,55,31,137,41,181,32,157,53,77,190,90,97,99,152,12,165,53,89,79,164,126,145,216,136,123,+18,46,197,27,101,147,204,204,100,12,252,10,209,6,157,198,72,160,101,39,183,252,137,2,74,18,23,89,40,217,139,90,+47,125,226,151,127,240,159,122,106,171,94,135,61,130,43,204,23,246,57,165,138,32,245,172,250,163,164,67,226,180,98,237,+174,126,157,228,109,125,129,168,130,230,13,171,64,82,2,13,28,101,155,136,75,202,3,141,158,136,81,243,74,180,4,233,+100,190,11,211,66,127,96,68,18,62,112,143,108,135,240,205,64,15,189,7,67,191,238,29,76,117,131,54,47,194,171,141,+231,80,37,155,66,154,122,135,190,10,168,161,241,51,226,205,250,154,173,184,167,151,59,111,243,40,2,43,252,99,164,104,+237,154,56,227,169,155,57,215,124,226,118,96,216,93,78,184,198,114,195,205,156,113,11,22,37,225,78,211,247,92,235,193,+203,45,252,117,228,210,182,212,109,55,232,218,161,70,69,190,169,92,164,189,196,157,237,120,77,85,225,145,60,24,204,112,+163,53,62,224,31,26,157,14,79,114,200,79,70,182,232,151,76,42,222,121,215,32,33,106,116,50,156,36,17,212,62,39,+135,170,207,60,197,64,43,213,99,106,193,84,247,6,85,117,142,188,22,157,205,206,124,255,119,24,164,215,26,59,182,214,+81,208,237,32,85,159,233,183,165,141,197,112,149,113,157,169,122,165,236,142,134,0,82,164,146,189,216,106,213,251,64,220,+47,193,85,185,45,231,131,11,148,83,254,147,149,207,146,99,153,209,131,209,225,206,41,65,39,173,250,69,119,139,202,144,+18,171,194,27,168,37,163,208,63,226,0,207,182,36,184,32,239,239,144,11,95,77,40,157,12,173,240,106,17,59,142,105,+195,82,56,222,146,74,251,14,170,245,161,111,135,113,183,241,229,197,40,84,98,41,207,222,243,65,216,233,28,245,161,176,+179,91,244,115,149,111,34,153,45,24,100,110,201,96,124,210,2,120,183,10,212,84,173,77,46,138,42,186,141,33,20,83,+148,207,228,115,9,10,10,38,94,117,192,8,130,51,93,207,34,204,221,7,52,23,30,255,95,84,48,180,252,108,86,23,+121,207,126,253,74,72,31,247,78,27,53,115,134,229,111,250,202,228,87,191,20,120,103,251,191,216,223,96,46,17,43,226,+139,11,155,204,93,107,210,145,167,181,56,154,89,164,153,220,178,44,111,70,56,218,43,27,201,40,225,239,65,159,159,239,+224,10,0,201,3,140,60,209,244,17,131,37,175,219,96,3,179,253,3,171,4,96,26,167,222,241,178,93,206,18,173,243,+186,0,94,218,209,15,128,1,238,47,67,51,49,58,218,81,15,230,255,139,41,174,69,206,166,124,146,63,198,164,180,101,+69,192,102,2,135,57,241,83,122,13,237,164,255,136,174,106,85,45,48,3,207,13,21,178,54,135,241,138,51,101,5,106,+64,137,77,236,0,146,193,88,102,122,200,5,115,136,3,250,74,226,242,145,149,187,252,153,81,207,74,153,104,208,215,172,+104,103,53,10,48,236,117,51,40,247,137,84,97,35,176,254,80,238,103,61,155,196,239,166,145,203,237,237,91,146,185,215,+141,222,198,199,83,87,225,187,200,234,182,90,19,237,16,168,221,106,239,225,73,211,231,39,165,177,131,25,22,140,195,234,+67,92,20,111,100,109,31,33,79,252,197,150,184,158,176,186,236,129,20,23,63,220,203,73,127,32,174,58,127,50,127,18,+91,168,16,65,161,237,70,113,208,186,26,203,60,211,70,155,75,246,228,2,148,235,109,148,234,161,206,5,96,252,166,91,+13,61,97,160,255,235,30,173,36,79,212,51,24,123,134,248,44,10,107,229,134,252,204,210,63,12,222,58,130,175,209,249,+252,128,221,86,36,178,61,42,181,111,228,58,179,235,7,245,0,96,129,101,35,253,84,36,184,87,207,143,107,209,255,143,+26,15,229,74,235,16,255,195,83,100,19,172,54,204,74,72,253,251,105,13,251,110,137,23,244,115,227,197,39,63,54,13,+151,237,237,65,27,153,238,175,134,150,135,248,100,133,176,217,79,184,19,18,192,112,86,147,237,117,154,94,21,73,167,166,+113,108,70,81,172,89,127,118,193,35,54,148,131,101,245,193,133,45,170,244,210,237,79,245,225,82,61,226,140,74,222,46,+86,244,240,41,82,171,197,89,250,133,118,22,98,60,101,46,233,250,74,176,206,179,253,76,79,5,32,132,205,219,214,231,+40,240,177,253,240,87,28,162,103,7,105,203,10,206,21,155,248,181,207,148,80,169,160,105,168,252,123,220,41,43,106,226,+205,47,69,2,23,198,98,19,204,24,52,48,189,185,250,24,156,147,239,198,79,96,94,219,7,251,225,80,170,241,141,148,+188,121,234,24,25,232,31,163,231,185,13,172,225,214,187,95,197,2,97,177,27,58,55,18,202,129,182,123,213,157,20,45,+29,158,24,208,245,198,71,110,210,74,142,4,18,79,138,225,233,239,207,52,2,97,175,209,244,25,249,172,118,173,248,198,+6,143,80,58,81,15,133,114,165,47,247,215,170,160,255,90,242,2,142,134,120,135,156,144,117,232,71,150,70,196,164,129,+114,12,237,139,135,219,40,222,197,53,90,79,183,182,9,109,188,21,191,200,237,8,168,237,181,97,36,56,198,150,244,248,+252,148,211,22,101,203,220,107,120,60,51,117,17,188,178,188,124,59,44,42,32,239,81,183,113,114,115,198,142,58,206,0,+23,199,118,174,192,10,70,205,109,198,152,215,44,224,210,138,88,115,186,34,122,255,106,136,51,150,16,44,140,247,187,254,+248,7,54,223,127,248,242,10,42,75,2,100,145,224,182,105,177,142,126,224,123,1,141,179,124,252,139,70,231,173,159,17,+149,150,92,3,244,55,231,78,69,166,147,173,41,222,20,79,110,116,208,15,146,39,129,162,36,221,162,74,131,233,245,205,+125,249,98,174,124,206,74,58,227,108,203,104,37,72,2,230,25,44,252,48,96,91,219,27,107,250,195,87,81,235,39,103,+207,113,49,44,183,99,64,45,92,106,95,207,229,239,177,67,117,185,100,82,184,229,47,132,32,139,113,129,154,102,36,227,+3,165,125,92,37,19,92,85,47,166,222,2,236,226,197,92,45,104,198,60,49,30,145,47,104,26,243,244,96,46,0,55,+198,21,230,223,25,177,213,158,148,235,233,64,220,233,149,47,3,247,132,157,61,189,135,82,39,137,43,130,201,159,241,111,+193,103,130,115,136,175,125,49,135,33,72,158,72,52,214,71,87,97,133,129,114,55,148,103,142,230,73,241,71,108,226,253,+163,119,62,164,179,140,207,172,32,215,122,139,30,41,244,108,218,14,167,220,170,140,197,243,97,77,53,248,148,87,148,177,+240,76,171,69,54,113,71,27,13,250,221,87,64,3,255,159,170,0,72,124,224,103,175,240,115,125,117,239,143,35,118,159,+35,250,81,60,68,41,155,177,200,169,115,20,120,81,140,52,154,202,210,102,47,37,96,97,5,21,17,183,190,5,201,238,+246,167,25,163,91,5,119,103,155,175,61,67,30,166,40,197,146,159,231,104,99,85,92,17,116,59,149,243,71,137,240,254,+62,222,63,180,46,147,79,150,63,112,123,220,162,178,154,53,185,196,6,188,249,21,215,83,127,203,67,102,12,9,180,245,+30,186,94,119,225,252,89,213,57,83,164,103,173,57,21,167,180,3,12,147,143,188,213,66,168,65,188,242,125,101,151,179,+243,130,187,135,198,234,80,188,135,252,144,103,254,173,173,241,147,73,234,184,167,72,42,101,167,184,216,78,219,208,88,39,+84,227,207,157,2,50,209,72,110,132,89,106,205,188,200,143,96,121,74,21,9,30,172,122,128,200,168,89,114,184,249,133,+96,36,8,146,33,229,234,202,8,204,172,164,13,87,48,81,248,85,84,207,193,69,51,71,151,135,115,131,239,248,37,150,+50,83,239,216,198,110,48,252,128,80,223,202,77,214,132,182,220,127,106,70,131,58,140,84,102,179,41,99,124,61,32,100,+95,1,139,161,2,22,162,177,131,113,178,243,201,111,221,63,220,234,14,157,132,253,226,161,238,90,118,14,138,248,227,65,+118,224,2,26,152,84,221,39,231,29,134,252,196,0,238,53,92,95,148,155,243,139,208,251,117,200,243,8,217,156,114,164,+78,144,59,215,162,166,191,36,76,222,236,93,16,67,64,210,59,60,227,143,23,213,5,19,211,106,92,50,126,143,242,175,+76,114,224,238,79,92,224,129,231,137,218,200,137,165,150,183,166,219,227,110,214,101,189,50,146,111,21,29,243,14,246,215,+247,86,65,50,169,232,94,64,105,200,11,157,81,86,116,33,133,103,34,6,248,11,193,95,131,147,81,90,253,253,199,101,+176,51,217,58,173,126,55,145,184,65,50,39,197,232,237,240,2,86,173,165,187,104,220,138,13,32,216,154,202,184,124,128,+49,6,27,123,166,23,99,120,219,65,44,31,60,51,145,8,94,231,249,19,179,52,224,131,253,148,123,200,182,105,40,13,+162,41,30,115,67,99,20,194,2,145,84,232,17,211,35,103,248,198,71,179,160,121,145,255,232,66,0,99,116,245,217,70,+55,123,31,106,252,188,140,130,178,201,162,192,123,28,180,169,188,85,227,182,120,123,107,84,191,220,201,149,30,92,18,41,+148,6,18,134,249,215,131,79,56,251,200,21,79,17,160,156,109,173,145,73,9,198,225,199,249,151,245,109,223,213,121,165,+174,239,125,72,193,52,147,198,8,203,152,129,155,114,11,209,247,222,196,216,228,59,151,106,81,45,227,178,30,224,151,130,+40,12,175,225,240,89,206,88,123,40,111,121,222,7,125,115,213,245,207,240,187,14,183,67,158,88,57,81,118,50,194,244,+105,219,205,242,203,177,88,51,220,83,140,227,205,143,189,30,177,148,16,96,246,112,105,133,232,57,102,183,102,128,47,119,+101,180,251,218,61,38,36,33,208,67,178,141,85,220,239,230,224,31,46,128,222,219,43,186,70,160,78,228,125,83,26,122,+46,241,244,171,205,223,135,138,17,205,191,191,54,77,80,34,82,187,109,135,71,248,249,222,242,95,9,3,153,161,96,222,+94,108,176,243,163,177,93,22,170,24,228,109,97,126,71,118,76,226,174,247,127,65,33,21,73,73,159,69,121,212,168,50,+96,191,91,247,67,35,128,213,212,103,113,32,230,246,250,3,100,92,198,203,91,234,81,156,96,30,28,75,134,158,185,233,+226,238,98,210,50,146,194,183,127,45,13,127,150,215,220,4,150,120,77,120,51,166,156,138,207,181,154,65,24,143,221,212,+35,50,219,139,195,111,105,135,255,238,93,98,115,118,76,164,182,204,0,248,239,233,41,32,99,160,236,26,4,210,82,61,+127,209,94,145,67,51,235,249,132,135,232,156,185,112,156,92,137,36,161,112,55,240,165,97,19,143,19,235,42,98,52,123,+172,98,51,140,77,54,70,82,158,28,134,31,118,3,115,108,226,181,156,226,183,140,185,234,21,147,111,165,1,255,240,128,+163,130,117,9,168,19,226,205,135,57,181,229,127,62,233,164,182,62,48,100,106,20,49,90,216,82,217,127,230,125,38,38,+141,29,28,255,124,146,201,50,81,179,20,51,110,81,243,22,74,60,88,130,14,107,64,79,226,114,219,185,178,34,115,179,+236,173,66,184,177,125,138,19,44,252,131,56,194,15,233,165,104,160,151,252,109,46,179,140,129,126,223,224,198,63,46,65,+125,161,240,28,176,214,247,89,115,57,99,6,164,66,140,13,122,221,120,228,41,8,105,137,106,166,54,245,100,203,154,157,+84,233,112,74,136,157,163,104,136,58,238,2,47,165,31,247,236,161,67,149,166,80,240,19,180,247,40,237,20,89,92,76,+76,210,127,225,70,174,138,179,214,239,186,169,111,197,247,68,171,3,174,38,191,239,196,187,12,224,150,37,132,138,226,108,+13,54,106,222,29,164,170,213,230,230,126,183,68,113,250,210,93,144,180,165,0,173,208,239,19,142,216,236,255,201,85,221,+95,153,63,15,91,55,113,62,157,62,130,119,45,95,99,150,166,127,124,16,69,144,16,31,137,30,28,64,216,57,245,247,+31,132,43,215,114,46,56,14,86,243,229,49,190,93,250,253,171,23,254,141,39,123,89,13,220,169,66,73,172,223,211,230,+62,18,211,165,137,159,222,105,251,19,14,73,189,139,124,255,39,142,4,60,110,23,108,157,78,182,2,71,5,44,147,101,+26,139,147,140,15,195,26,83,14,191,210,77,13,148,227,204,240,21,85,193,241,1,244,189,177,86,120,60,202,251,203,112,+188,226,155,128,215,100,32,173,6,38,37,60,122,206,58,11,223,97,34,26,207,140,16,216,110,182,220,171,45,145,245,109,+7,88,27,167,135,1,155,209,240,178,58,79,33,3,172,196,234,222,7,240,145,170,54,253,92,159,101,185,232,155,228,25,+246,238,74,177,116,127,248,208,147,159,215,202,238,229,171,175,73,31,29,19,3,13,165,112,138,27,19,194,59,232,21,124,+59,162,73,55,13,22,153,139,126,76,207,223,33,48,21,34,63,2,204,78,116,253,70,131,247,125,242,241,214,238,207,200,+153,193,43,173,19,58,233,47,35,120,152,225,78,189,45,138,98,53,148,100,48,60,119,87,127,153,18,145,71,222,158,229,+89,166,147,1,145,48,93,49,191,80,72,241,108,226,108,215,41,244,205,67,167,114,92,231,204,23,35,154,74,0,172,239,+228,215,187,113,10,207,55,178,90,103,23,82,254,235,208,80,178,110,64,225,93,33,238,93,157,224,131,5,170,53,121,159,+142,57,18,124,26,93,243,198,26,211,249,67,11,236,26,220,249,249,43,156,135,214,6,193,60,44,231,37,40,224,106,246,+14,214,215,103,151,185,163,7,217,100,34,82,49,48,131,152,98,97,246,174,77,115,170,8,124,159,165,178,250,209,55,210,+245,195,33,14,70,58,21,66,137,23,178,51,223,60,235,203,91,131,37,63,113,231,68,101,71,148,245,240,48,57,151,191,+171,124,150,44,237,188,38,53,182,85,99,203,166,103,157,52,253,25,117,204,52,98,182,231,148,46,28,100,37,180,189,171,+67,193,126,99,42,81,198,185,19,109,126,0,117,139,59,113,134,16,208,255,132,49,251,73,208,38,65,193,146,40,28,238,+161,67,92,166,37,246,71,156,117,148,61,13,34,49,140,64,127,58,78,241,56,83,232,138,16,241,250,83,181,20,192,242,+63,159,51,50,63,240,81,131,96,113,154,37,36,26,162,247,17,194,35,200,9,190,102,157,213,103,224,236,218,57,72,238,+37,10,100,224,164,190,168,172,0,42,230,10,32,171,160,33,129,168,93,213,161,6,105,176,82,116,38,11,39,125,255,215,+249,74,152,164,193,128,204,128,17,36,224,166,104,56,152,74,120,172,23,34,25,67,65,205,146,7,151,228,36,13,195,245,+41,101,204,17,159,129,7,121,137,70,103,95,158,60,96,40,66,157,159,20,19,237,241,4,140,18,245,87,58,211,103,184,+125,125,133,89,28,68,68,47,127,109,75,139,99,201,51,119,208,25,156,45,155,199,156,234,32,36,173,207,69,93,90,41,+32,22,211,99,36,225,25,52,143,161,89,31,18,186,174,62,164,5,82,103,177,228,240,216,4,211,254,128,90,227,52,60,+131,120,112,64,211,133,117,100,91,163,253,97,106,82,237,142,45,153,221,95,225,74,204,36,29,151,109,242,247,249,44,149,+111,140,119,218,247,90,81,221,73,98,119,97,80,113,251,4,7,12,170,167,235,3,25,16,97,133,96,145,200,15,167,80,+225,167,8,216,173,133,99,219,129,175,77,170,194,62,125,244,199,100,183,54,203,217,68,145,166,56,246,177,17,85,201,96,+60,18,116,122,177,3,91,81,226,181,159,132,26,129,40,231,213,79,244,88,62,238,50,179,190,21,211,68,61,87,98,102,+197,207,7,55,55,83,250,94,49,193,132,46,131,5,9,63,48,212,231,80,101,76,155,36,190,145,64,171,217,61,198,67,+227,101,195,154,155,212,183,8,20,148,147,224,125,225,172,116,167,60,181,23,152,131,149,170,75,180,45,42,98,208,163,57,+23,250,121,170,17,237,101,33,112,158,240,152,140,170,21,245,114,218,45,93,66,225,70,9,69,29,66,14,36,28,186,235,+155,43,111,79,155,136,132,37,243,189,23,219,2,246,201,214,100,118,144,108,0,1,252,104,67,103,159,160,117,76,119,72,+131,103,175,32,223,139,196,45,140,115,225,74,90,116,174,223,167,125,200,102,22,70,82,200,245,220,236,2,17,141,149,131,+183,237,139,122,215,95,9,216,26,178,78,16,189,133,209,131,147,84,92,52,155,13,154,61,0,66,178,195,71,32,202,127,+245,101,45,37,69,205,96,188,67,205,57,16,8,54,64,30,20,24,62,250,103,193,7,105,62,104,109,93,138,214,104,69,+107,124,55,214,190,145,94,7,151,147,48,131,22,68,227,191,6,39,160,251,16,32,16,64,24,151,86,165,225,255,127,204,+171,5,219,132,79,150,41,195,97,115,2,201,16,26,175,200,140,255,116,0,223,51,253,235,213,105,19,119,71,190,226,204,+143,218,74,229,121,145,244,229,157,221,215,172,15,176,54,23,222,80,128,64,125,0,238,65,166,121,53,108,135,210,157,90,+147,126,197,227,182,188,245,84,111,114,85,64,154,119,233,54,152,169,54,171,38,13,46,73,62,80,122,82,38,133,7,1,+211,231,205,32,227,234,170,3,60,248,103,35,118,141,51,2,249,221,70,219,65,236,71,40,142,35,88,115,45,193,16,116,+20,76,233,208,133,238,108,50,93,236,39,222,168,164,26,7,65,69,212,206,254,224,61,22,142,57,161,55,135,105,44,112,+149,12,80,150,184,66,18,174,156,135,99,178,90,67,89,109,212,161,16,149,165,71,16,220,178,217,96,190,64,10,138,63,+80,233,89,221,84,128,101,101,39,166,94,22,61,5,193,188,160,220,85,233,128,90,234,36,94,188,154,240,223,79,132,45,+169,21,155,233,177,203,44,144,0,244,129,255,249,66,142,105,46,111,41,125,239,7,121,129,238,138,228,134,166,190,123,83,+84,109,59,18,140,23,68,241,225,24,234,193,39,59,20,85,124,124,64,183,125,40,127,211,126,82,210,16,131,76,5,34,+128,216,51,100,67,139,235,247,85,129,53,72,105,214,170,232,219,196,189,164,199,2,105,60,37,225,57,220,14,146,51,87,+173,175,10,117,178,97,170,144,66,26,228,76,187,126,104,138,7,214,46,235,246,70,169,45,253,70,115,53,225,181,100,182,+144,211,9,99,221,71,253,91,115,185,36,235,144,29,79,238,15,7,205,185,204,223,255,113,220,195,157,18,66,248,47,126,+28,78,79,198,249,55,253,248,175,132,235,22,250,227,202,12,187,255,120,231,0,173,11,31,145,49,105,124,29,146,225,252,+95,166,203,222,222,98,22,214,232,103,194,99,67,39,44,250,41,131,150,158,147,196,116,134,170,144,151,167,34,14,92,107,+215,59,226,171,75,161,203,58,76,6,104,239,95,48,144,204,198,22,89,111,190,157,42,116,151,39,12,145,81,180,133,206,+35,156,235,89,237,142,130,89,44,33,216,114,253,31,35,163,63,76,29,8,12,191,126,190,104,0,150,248,47,66,192,7,+35,94,53,150,236,154,126,205,159,69,252,190,67,217,86,24,230,95,179,200,120,174,241,147,95,85,144,73,93,247,211,45,+60,140,13,88,177,111,203,39,36,92,135,22,142,86,6,204,207,12,94,59,134,207,204,68,204,74,129,102,177,50,61,248,+116,143,22,38,9,51,198,164,69,179,122,124,244,127,231,88,106,162,192,50,156,197,107,217,32,142,16,30,115,123,42,28,+94,170,200,192,45,78,33,123,216,168,221,224,177,223,23,236,99,60,150,67,137,59,120,224,235,87,252,4,105,79,59,227,+34,117,63,99,218,121,23,220,171,8,90,245,207,89,121,49,213,72,148,45,83,22,17,109,143,156,7,128,195,48,190,56,+204,98,182,200,159,145,75,206,181,148,11,68,54,16,206,170,3,9,176,56,38,55,33,217,220,134,136,84,131,193,180,143,+251,6,188,66,220,234,196,38,42,37,72,182,49,113,150,15,136,78,63,108,199,88,35,134,67,147,208,82,192,178,97,205,+208,187,52,247,224,225,212,79,44,140,35,27,151,167,28,226,34,164,71,20,57,212,22,64,57,179,136,84,191,65,65,40,+252,196,225,51,145,208,49,83,143,212,42,199,126,85,174,212,173,137,246,126,114,35,8,198,4,13,64,4,26,107,9,239,+67,212,64,48,143,170,158,222,185,94,228,158,169,212,63,91,96,163,19,136,44,123,139,243,255,244,93,133,9,83,89,214,+47,129,206,101,46,245,214,146,141,43,182,207,168,5,115,253,82,203,153,168,50,107,252,69,23,17,138,128,17,202,241,158,+172,1,158,138,26,13,191,183,140,80,149,167,107,160,0,117,223,142,236,101,186,80,52,54,68,192,106,170,49,122,251,31,+127,102,91,143,100,151,135,155,68,159,98,251,46,168,183,223,107,181,157,106,187,251,100,173,199,16,4,146,214,54,180,127,+122,215,21,190,129,82,123,157,214,52,161,178,146,100,126,219,67,76,180,238,35,115,20,11,241,114,45,78,244,14,81,182,+107,252,126,32,231,88,254,2,83,195,140,190,154,26,127,96,224,221,133,26,83,9,188,213,87,14,135,187,225,58,204,106,+43,143,141,177,76,214,74,242,62,198,16,177,48,162,72,112,55,247,46,138,56,168,145,57,13,115,197,66,137,120,212,203,+103,93,198,74,91,156,194,124,154,230,127,50,63,111,42,116,138,223,27,215,62,132,133,164,240,19,82,126,15,64,157,55,+218,46,16,187,152,89,122,152,7,222,142,139,217,172,38,46,219,157,178,247,149,117,90,141,62,228,86,206,105,44,139,18,+152,67,95,19,210,208,119,215,158,43,39,19,82,231,122,214,119,251,234,11,238,108,37,135,255,232,43,76,216,94,43,59,+162,61,33,113,246,154,182,74,181,160,35,144,103,146,171,147,79,251,24,20,162,181,221,86,166,247,164,102,85,8,114,104,+29,40,72,148,128,53,4,227,59,154,198,121,208,118,192,74,216,107,178,191,126,200,49,134,172,25,167,88,124,207,120,190,+164,109,66,41,181,11,59,47,169,224,158,164,220,192,160,26,154,244,107,23,233,112,52,95,121,129,121,19,63,28,65,249,+8,203,128,183,181,215,78,103,245,130,116,36,199,84,200,141,7,104,157,15,83,164,52,171,172,110,246,70,33,39,113,90,+211,68,117,199,214,180,255,36,145,197,32,30,3,138,146,5,86,192,13,172,148,17,18,22,116,175,15,63,195,183,159,110,+90,122,92,93,82,184,143,134,107,179,116,243,68,61,1,20,56,20,12,214,251,12,231,222,101,240,175,192,203,113,252,214,+92,160,27,188,211,44,15,152,202,72,229,191,36,6,13,230,135,127,44,210,165,19,24,118,79,180,148,180,166,164,213,227,+156,240,22,99,183,184,80,64,222,118,176,169,203,82,163,192,184,185,17,102,12,182,76,223,44,113,182,244,168,45,23,34,+142,207,57,255,54,1,33,131,218,162,45,238,86,199,16,108,32,168,108,52,109,104,202,112,14,145,85,216,121,70,201,30,+23,57,9,192,97,225,1,237,116,123,171,76,186,233,18,160,15,117,198,129,87,104,200,81,205,72,99,149,31,170,249,192,+180,27,193,180,201,57,150,240,227,179,23,139,200,111,250,135,133,232,251,103,146,64,42,79,179,64,87,28,135,206,191,107,+230,234,233,122,229,162,182,137,247,233,208,95,236,28,174,108,219,21,164,5,155,242,45,203,36,158,15,229,12,15,207,164,+78,43,128,1,35,49,131,91,167,134,227,240,46,172,77,103,187,104,196,180,132,222,118,179,118,20,58,128,214,224,176,191,+22,121,40,218,213,0,250,52,247,10,10,149,156,86,24,207,51,253,154,92,90,4,190,105,72,20,222,86,233,24,168,25,+81,236,204,21,214,211,71,201,236,90,202,14,42,147,42,144,129,79,116,81,98,221,235,83,88,255,138,178,216,73,223,160,+50,106,165,241,111,3,51,43,156,194,117,21,28,63,85,209,40,212,226,67,101,49,40,31,43,110,136,114,120,77,63,246,+196,123,17,24,100,79,69,183,173,115,172,98,50,251,227,132,47,118,21,53,218,48,127,159,177,93,214,173,46,198,108,155,+130,148,183,126,233,207,232,245,192,120,96,162,181,47,132,11,210,139,1,223,47,199,15,29,128,242,93,232,143,123,185,42,+144,16,113,3,118,173,104,154,93,225,45,103,96,76,156,245,197,118,61,2,13,189,41,51,137,180,173,72,175,65,246,238,+148,133,146,199,139,195,118,144,175,166,70,14,47,76,61,239,130,34,200,52,105,229,158,230,113,6,141,104,235,52,16,153,+11,38,59,22,121,49,136,164,25,42,201,166,64,172,13,21,202,232,192,55,12,250,91,71,33,222,75,75,138,83,85,176,+22,79,241,201,16,190,235,5,16,19,149,243,193,89,39,53,34,91,46,148,35,125,52,229,10,61,215,80,165,62,213,185,+232,74,42,15,22,200,92,188,242,60,162,26,85,2,44,103,93,49,247,72,145,123,39,71,34,135,25,250,54,91,47,78,+91,39,191,67,228,213,30,108,80,72,118,210,193,74,241,158,12,49,155,10,213,237,192,11,26,202,196,124,176,230,236,133,+188,30,172,165,97,158,164,133,112,241,29,136,250,74,177,233,81,100,75,78,233,32,76,242,21,75,14,11,133,218,48,130,+28,206,113,28,19,33,228,116,146,134,53,98,114,145,165,94,20,46,196,217,63,119,70,55,89,217,109,0,33,250,30,226,+186,111,58,66,187,106,83,138,247,98,252,212,199,108,151,140,123,243,229,61,88,23,146,86,91,22,73,1,227,114,12,116,+112,145,121,247,32,122,10,189,199,148,62,88,86,93,161,30,166,149,108,179,211,232,55,18,201,176,101,238,163,58,173,51,+223,160,159,94,157,120,64,148,186,142,219,135,225,91,98,131,35,42,125,47,41,36,31,221,152,38,174,236,156,9,74,79,+99,109,244,182,158,183,95,165,122,12,185,97,168,193,180,16,213,240,67,165,104,49,204,228,65,47,246,215,230,176,160,45,+159,65,73,218,23,106,49,104,122,230,99,215,205,233,96,247,175,2,180,227,10,3,46,218,237,58,254,19,142,97,152,241,+174,218,250,11,247,45,128,138,225,235,223,78,146,168,39,243,229,59,195,93,140,213,4,114,216,150,162,120,62,57,171,230,+123,15,36,92,30,206,45,11,41,114,103,55,244,229,215,254,79,177,14,240,52,47,180,185,30,68,3,237,201,68,1,89,+99,154,57,127,80,10,203,81,220,44,20,156,109,176,34,239,33,239,96,142,221,82,15,247,142,209,104,29,182,19,184,13,+225,39,115,115,133,112,195,44,6,102,195,138,239,52,167,142,170,13,80,84,179,60,39,214,236,140,101,248,235,210,194,180,+187,156,198,219,249,110,74,9,90,201,155,64,70,159,221,141,1,140,242,17,54,187,51,19,3,117,43,178,171,130,197,163,+84,42,69,94,158,78,31,211,236,203,19,128,207,227,81,252,229,247,73,146,132,213,223,13,146,168,134,64,38,48,141,197,+26,36,128,79,11,142,7,79,44,52,111,74,4,133,1,252,159,112,11,78,50,31,153,80,51,57,252,142,156,51,42,149,+239,128,238,167,207,230,113,213,74,134,64,31,163,141,109,156,147,30,213,252,206,170,233,155,38,255,31,244,91,193,246,37,+160,101,92,116,230,71,136,203,245,118,203,170,249,181,15,122,159,17,104,163,106,145,124,23,114,20,240,115,110,40,145,202,+54,95,236,185,162,157,181,198,106,10,244,50,4,112,24,211,114,170,138,22,206,230,16,237,234,110,169,203,84,186,49,166,+93,68,198,92,114,213,190,118,169,41,123,168,92,215,136,248,166,106,189,208,210,80,241,117,17,231,50,180,19,171,234,170,+11,170,132,77,111,223,224,164,60,21,211,47,178,171,78,39,222,125,138,148,251,192,29,69,201,197,197,38,189,24,79,24,+182,20,250,197,174,49,196,240,126,45,79,219,32,159,104,73,162,218,40,172,65,0,64,210,144,197,38,116,206,205,40,164,+32,113,197,31,98,76,149,143,251,51,101,230,162,12,16,192,143,195,159,6,238,154,67,70,44,100,198,111,3,30,181,230,+219,41,158,243,229,56,106,199,254,155,27,226,134,174,224,166,223,72,52,127,107,44,102,208,79,192,188,61,62,172,158,208,+39,108,242,137,169,224,158,7,225,81,39,173,224,85,96,252,159,44,27,217,127,231,199,48,7,112,31,52,81,162,86,214,+200,131,106,7,137,21,126,196,119,123,44,0,246,124,122,191,123,53,188,79,0,204,125,203,107,217,172,128,231,8,100,40,+55,0,1,73,163,108,45,120,33,180,120,126,48,13,50,96,114,142,213,131,97,7,122,116,192,122,197,17,138,138,12,24,+239,9,92,201,52,39,18,194,211,18,3,1,200,171,111,131,163,117,179,100,108,67,137,56,48,171,11,61,61,190,193,208,+17,3,245,165,17,178,70,80,211,107,128,161,103,114,133,207,21,230,139,165,195,17,227,95,3,243,50,203,3,83,174,216,+195,207,43,59,194,185,53,211,28,107,253,97,139,204,14,110,155,107,174,141,199,255,222,152,184,186,14,6,115,132,108,189,+48,217,230,102,27,175,49,126,228,249,181,208,7,32,178,218,192,203,207,73,109,129,156,48,103,207,29,68,116,194,110,112,+49,224,157,6,183,13,162,169,96,69,15,234,35,48,220,163,23,93,196,41,231,113,93,64,148,48,89,17,60,140,214,124,+235,138,113,61,245,242,146,159,195,152,203,110,65,139,61,67,49,43,193,209,82,160,118,176,88,166,240,126,141,57,33,148,+24,193,74,227,219,6,87,213,101,223,196,30,0,42,228,225,202,101,70,219,214,169,180,228,226,243,30,17,214,57,135,22,+129,147,122,151,141,235,159,46,99,81,159,7,231,254,249,159,234,4,129,90,4,30,137,7,171,111,84,74,71,159,34,232,+49,191,51,30,123,243,28,50,12,79,15,92,2,150,38,249,222,168,229,81,5,99,87,92,87,164,41,39,105,22,58,41,+74,152,29,227,246,240,124,195,138,237,235,3,254,77,219,82,38,80,104,191,82,176,27,126,74,214,120,98,132,208,149,37,+1,20,54,1,94,110,201,169,27,144,2,84,28,2,108,154,157,158,127,106,200,249,196,123,1,182,55,42,151,138,130,210,+8,77,103,184,195,109,176,228,250,25,74,175,60,182,19,176,73,13,133,32,192,78,219,188,216,44,230,135,152,168,173,159,+92,17,224,156,84,137,53,79,234,147,56,120,189,164,160,131,51,36,160,138,124,114,189,72,146,201,195,171,145,153,152,160,+73,236,87,24,113,201,235,96,85,37,17,236,200,183,89,76,87,125,50,213,248,25,216,231,82,0,140,75,229,106,71,156,+85,13,221,50,144,98,165,239,162,196,76,199,243,185,57,171,105,13,100,103,115,233,36,238,88,7,196,154,211,131,238,146,+194,254,198,59,235,28,48,98,57,190,251,196,24,121,79,74,247,74,240,71,133,215,65,30,134,142,204,38,82,238,156,222,+205,241,25,88,205,93,37,211,118,255,87,124,59,78,124,144,203,7,190,50,114,198,161,2,99,182,228,148,168,17,83,145,+116,199,118,23,97,109,112,112,63,244,15,62,250,15,57,148,96,49,20,8,229,92,251,127,115,59,94,125,201,25,65,76,+184,81,223,100,187,138,5,103,103,228,132,206,169,77,224,141,63,197,204,135,104,10,232,21,163,133,75,118,44,164,82,172,+78,42,15,253,167,24,166,111,200,109,155,21,76,114,253,251,94,247,51,48,127,167,246,157,75,75,98,147,236,84,138,78,+25,215,155,209,243,211,121,151,154,61,115,96,152,253,149,199,216,89,127,61,212,23,12,210,84,135,41,250,68,213,74,21,+66,183,169,16,176,222,119,225,163,21,31,53,189,247,165,92,238,174,221,13,40,155,202,216,151,112,204,143,253,118,223,210,+168,100,173,25,111,136,223,157,78,37,26,131,57,112,9,226,227,97,136,54,243,25,17,76,217,233,99,222,28,125,245,215,+162,254,105,9,114,9,55,228,90,224,4,168,69,219,70,59,179,86,14,86,75,227,204,184,95,88,215,182,23,37,42,169,+116,147,160,187,188,158,215,141,28,174,174,4,201,190,239,136,184,92,79,236,181,146,163,245,150,100,219,180,17,67,95,142,+240,193,210,207,212,129,44,84,173,157,94,80,66,43,172,93,32,236,51,229,7,162,246,66,48,140,70,117,103,200,79,197,+216,164,135,139,197,88,103,58,12,186,224,40,251,38,194,98,93,171,116,77,31,189,48,100,52,22,153,83,62,6,157,116,+130,234,16,86,94,187,123,167,177,231,51,70,174,115,75,188,12,239,251,208,88,241,8,43,167,216,4,78,127,253,178,177,+102,37,7,79,190,47,188,98,65,73,154,28,248,224,254,2,191,128,42,154,140,23,14,191,72,215,177,196,89,200,189,246,+177,78,122,193,178,248,238,201,155,252,219,129,190,81,14,58,172,191,18,141,33,126,243,182,202,44,22,1,202,46,240,179,+204,57,192,212,184,229,30,150,227,53,171,254,25,228,144,253,124,98,69,105,58,250,230,128,209,60,124,232,40,24,91,130,+226,224,62,143,83,159,143,74,248,175,87,242,118,88,30,16,9,254,78,161,112,205,96,15,129,231,156,69,196,164,139,176,+225,215,124,235,49,128,45,105,125,219,4,191,98,231,158,187,228,225,123,43,232,116,118,201,38,45,158,249,47,118,64,224,+184,72,72,20,242,192,121,183,210,176,69,238,248,49,17,245,156,139,49,228,217,92,32,33,60,106,172,244,90,146,206,81,+75,172,156,56,140,168,154,137,58,142,55,206,253,250,117,71,80,130,31,190,122,6,0,206,201,181,42,192,85,123,17,56,+7,2,155,255,119,243,106,31,151,5,156,202,31,49,77,70,1,140,50,51,180,74,86,28,231,160,127,65,99,187,144,187,+154,88,34,184,132,152,247,40,58,37,113,91,67,4,221,250,232,254,150,218,213,2,120,153,209,15,249,97,92,93,2,235,+249,203,116,83,255,98,251,250,91,208,50,103,46,212,170,219,194,189,143,135,35,218,47,125,62,180,158,80,70,143,66,25,+251,59,109,79,111,217,18,141,113,107,2,27,7,39,175,161,62,156,115,99,116,16,169,60,181,16,253,210,94,14,39,171,+9,70,69,138,244,199,221,82,233,127,144,74,66,247,166,110,75,83,253,68,147,31,41,47,231,32,85,120,247,227,135,105,+103,23,91,124,57,178,166,184,98,29,7,147,41,75,36,33,239,43,43,36,113,81,24,242,93,5,31,198,244,128,165,47,+104,217,158,233,62,47,217,170,128,72,165,57,99,235,194,196,103,93,171,125,212,238,43,190,109,61,158,30,204,52,161,161,+194,149,120,235,225,94,2,166,121,255,252,197,206,152,139,143,65,126,76,51,125,30,80,211,58,163,168,180,15,38,29,175,+13,57,84,148,139,183,59,63,134,185,165,37,130,203,7,168,34,230,171,90,110,80,148,73,111,39,51,82,17,59,9,236,+157,15,105,22,110,97,8,112,30,158,166,122,196,43,130,4,51,215,173,30,192,220,150,110,128,23,190,176,180,105,36,151,+237,113,53,241,248,205,240,8,240,39,82,122,105,175,194,251,47,92,89,195,225,30,147,254,128,43,175,60,44,214,57,187,+170,70,249,26,37,10,116,123,14,161,254,238,186,18,8,69,8,50,255,197,131,66,206,31,162,75,94,10,17,213,117,210,+100,181,8,203,140,74,1,13,0,94,130,162,196,209,216,28,184,98,70,68,42,255,138,226,121,17,184,120,31,7,72,245,+147,17,19,94,183,25,148,89,232,1,215,153,165,186,211,92,120,83,248,108,178,137,208,109,187,137,115,112,166,223,72,233,+68,221,195,10,4,29,186,93,27,235,11,220,232,255,254,167,57,176,204,159,129,150,207,94,237,223,62,59,230,14,106,115,+15,244,73,116,199,29,93,193,90,108,124,245,243,26,67,9,23,145,155,1,236,238,17,120,208,42,144,195,122,131,172,15,+91,149,80,69,15,75,83,181,0,239,156,84,94,210,148,20,102,162,196,205,63,63,253,118,107,69,138,185,98,60,251,97,+147,102,121,36,27,172,101,166,235,63,34,119,233,158,55,130,54,187,1,191,201,118,150,97,239,243,106,153,6,207,251,231,+180,71,153,85,88,42,213,249,147,103,105,129,193,33,105,160,2,125,59,170,30,186,97,167,178,15,145,65,16,196,183,122,+181,69,243,86,253,125,78,30,246,42,78,117,22,249,52,195,171,185,42,246,117,175,213,236,144,123,183,233,43,120,197,228,+89,83,90,138,216,18,128,236,111,187,27,158,11,39,206,86,172,171,202,42,229,198,14,151,14,26,18,248,225,97,48,229,+41,39,64,49,231,205,156,167,245,221,139,215,61,182,86,215,203,186,201,142,177,99,223,54,125,139,80,33,23,56,223,9,+198,164,198,71,109,43,133,124,36,147,94,16,64,246,26,165,41,22,202,42,41,30,79,204,27,76,175,69,237,82,120,21,+231,115,138,47,189,179,88,20,152,128,102,160,50,19,141,78,60,39,241,167,182,115,101,87,72,244,103,106,101,132,242,134,+108,71,222,239,109,85,189,59,40,99,34,51,186,46,244,155,66,182,98,94,29,68,158,218,242,232,40,25,46,149,139,178,+95,5,122,107,182,6,68,45,69,104,65,83,60,30,119,165,238,152,164,43,105,249,42,131,23,124,60,75,55,72,205,94,+153,87,149,92,97,255,238,93,120,67,238,206,31,91,219,178,72,0,33,47,189,67,44,42,71,95,2,133,58,96,166,239,+157,61,248,75,201,136,12,33,66,47,174,208,21,117,90,81,189,42,187,238,253,249,82,166,170,85,249,126,2,235,6,191,+122,19,23,84,116,136,212,135,38,246,160,109,113,205,64,76,166,41,6,192,172,77,116,210,125,195,110,0,93,29,6,13,+140,12,214,107,203,59,101,44,39,0,209,0,183,50,163,131,26,231,135,122,153,77,141,235,114,156,199,201,119,79,170,114,+69,254,96,197,255,157,150,129,249,31,242,221,236,162,174,121,238,254,13,242,8,200,53,227,77,84,100,231,52,215,166,62,+31,33,97,202,139,249,66,111,244,73,104,90,212,13,189,177,238,128,82,77,90,242,184,219,224,163,189,244,123,8,67,110,+101,44,144,0,180,235,7,30,207,6,65,226,84,228,128,234,121,24,139,77,181,51,112,158,65,147,188,220,24,99,9,99,+214,18,233,46,162,149,153,75,54,137,169,77,227,234,247,92,170,150,179,161,88,127,145,229,9,168,69,179,88,121,61,220,+123,132,90,79,33,224,149,46,244,233,72,215,86,103,134,9,153,230,42,161,53,75,242,98,246,125,205,108,117,118,67,181,+82,19,132,44,207,84,189,22,227,56,214,194,117,167,121,2,163,221,241,62,175,18,247,185,96,104,253,232,31,93,51,239,+30,229,102,96,191,248,173,82,196,248,116,6,6,248,103,209,195,127,99,1,130,100,112,39,146,97,237,5,197,114,128,5,+21,240,239,4,97,2,180,82,243,132,216,78,62,242,225,200,194,31,196,64,58,208,147,125,83,61,33,151,101,105,14,176,+163,31,181,39,39,155,32,99,161,37,169,77,230,113,5,155,253,246,162,249,9,127,3,198,159,19,255,252,247,123,143,171,+119,71,198,161,123,114,234,146,4,196,145,4,229,180,145,31,18,233,228,11,53,13,154,111,195,177,164,125,16,166,102,59,+245,37,8,193,35,64,175,3,149,95,157,189,162,161,95,7,50,198,179,59,205,49,32,248,213,29,127,234,126,201,53,194,+204,63,197,14,185,100,66,15,23,195,255,103,89,33,137,183,221,107,104,39,91,188,118,220,107,36,127,247,197,133,158,129,+36,180,188,244,194,172,195,91,108,113,38,25,208,178,40,36,198,116,147,190,208,232,239,99,97,41,223,214,113,0,118,188,+137,63,70,118,230,183,19,228,209,22,25,105,108,150,69,41,104,135,111,167,234,84,33,7,39,179,222,219,92,7,253,62,+50,94,162,181,232,254,156,188,143,175,219,109,14,132,154,193,3,198,255,61,142,218,63,147,64,211,255,83,91,4,182,150,+200,14,117,209,241,79,130,167,131,192,106,233,136,90,76,187,75,216,82,125,179,243,215,42,22,45,38,67,221,253,66,144,+205,31,32,79,137,132,10,115,234,214,189,5,52,94,97,132,197,155,222,236,249,46,83,152,65,226,136,108,133,0,45,144,+222,136,197,44,253,0,217,255,38,242,161,254,143,37,237,6,24,113,71,235,236,82,204,197,120,23,202,216,152,83,226,32,+199,226,227,150,249,122,137,199,120,116,72,67,206,114,46,64,136,255,208,13,178,60,151,203,211,66,238,66,96,69,97,201,+82,156,136,188,59,157,228,27,61,173,21,255,115,209,226,218,216,220,125,88,164,117,131,190,213,64,207,219,42,179,196,255,+111,196,207,20,11,184,7,8,168,134,101,108,65,230,198,22,21,30,119,39,236,179,43,112,118,19,86,135,102,40,11,77,+200,135,206,199,183,253,33,184,150,0,128,175,202,68,78,158,235,130,129,82,255,135,200,165,103,155,220,140,70,200,68,140,+181,213,18,38,12,180,178,94,91,21,171,200,90,0,231,147,101,140,242,233,197,133,56,131,39,120,173,123,180,121,71,152,+154,243,195,246,49,148,202,84,161,200,19,14,110,184,19,68,144,118,227,107,53,53,147,167,116,224,185,237,240,164,214,40,+28,149,245,53,208,175,150,87,149,43,49,74,134,86,245,206,51,122,155,67,80,73,225,58,254,212,187,98,116,157,56,251,+165,236,18,32,191,148,184,28,139,9,10,190,33,133,21,24,166,176,37,3,217,136,53,182,17,76,189,202,74,185,6,103,+128,179,86,94,172,202,55,116,116,217,127,228,12,131,238,201,39,2,143,59,27,98,53,219,178,177,222,10,71,27,108,62,+226,187,121,34,138,18,141,25,237,2,169,250,171,2,139,115,141,253,207,77,213,215,160,81,0,193,63,18,140,150,2,145,+225,198,190,6,49,133,193,151,108,96,130,146,238,197,217,172,91,41,112,31,158,165,46,196,171,255,82,179,77,216,59,53,+246,162,151,14,108,209,160,236,229,149,33,231,27,118,182,4,7,206,98,139,51,220,99,137,22,7,9,202,44,140,44,112,+75,58,134,44,186,158,47,1,25,159,12,197,36,116,230,250,164,232,216,105,60,33,230,138,132,1,236,10,197,218,13,197,+92,31,232,126,47,197,247,151,22,223,149,202,183,57,114,114,207,156,37,196,8,95,125,106,244,207,178,224,34,246,189,103,+235,173,3,157,234,90,60,209,113,28,189,79,114,161,144,216,112,245,163,164,158,43,222,77,4,99,29,155,123,50,14,79,+195,114,103,72,2,149,53,44,30,162,198,30,227,158,75,189,188,127,78,72,204,180,252,13,220,107,1,160,66,173,121,68,+139,132,131,23,194,69,116,233,25,183,109,38,171,135,252,188,171,127,187,207,157,91,13,203,26,117,58,240,187,47,31,201,+111,55,164,33,227,165,140,33,165,110,29,88,52,233,86,162,86,226,143,47,254,186,227,45,152,21,158,8,114,149,167,123,+71,79,95,109,174,10,167,140,61,128,200,28,176,72,173,204,69,52,221,35,185,249,36,110,9,123,162,206,89,85,118,233,+210,4,107,197,125,244,222,218,209,57,164,111,89,55,31,6,88,235,188,89,4,187,246,11,35,209,89,237,138,219,89,25,+13,87,49,153,17,190,79,208,220,53,223,55,2,180,195,41,168,101,62,60,159,18,79,32,178,246,155,112,126,157,15,124,+253,122,104,19,113,16,34,146,79,97,48,199,25,172,182,40,132,152,144,51,139,252,213,92,110,72,230,34,181,11,169,108,+205,98,35,92,199,243,107,246,142,136,145,126,214,176,144,185,179,197,78,96,214,140,68,14,125,198,26,218,143,206,39,195,+217,243,121,37,80,95,9,105,30,84,230,39,21,244,62,35,52,237,190,212,128,142,158,173,252,212,58,180,107,232,232,214,+127,75,191,17,159,210,206,213,229,26,81,246,202,27,101,6,154,118,148,123,146,89,58,70,90,182,248,249,228,243,194,75,+90,193,225,212,10,105,103,234,208,17,94,195,51,45,166,111,205,150,113,105,201,77,42,207,49,53,6,16,108,137,190,4,+35,45,249,196,199,216,23,31,76,125,38,172,59,165,253,64,195,220,233,235,202,32,25,109,253,176,97,132,13,105,254,145,+140,131,122,85,56,204,212,181,248,199,139,175,191,136,189,165,156,97,141,176,192,11,243,231,54,142,190,156,46,13,137,12,+222,217,97,210,224,22,145,159,146,143,56,142,38,169,67,226,140,194,223,122,128,200,183,219,76,63,189,251,126,32,219,94,+27,238,165,112,45,97,8,164,162,171,203,238,161,114,210,40,74,53,60,6,82,206,193,2,84,99,15,99,141,141,66,187,+180,134,121,202,184,95,124,215,238,6,181,44,129,224,164,218,44,158,102,188,242,161,34,209,95,165,204,46,252,229,208,208,+0,207,192,79,155,183,119,246,16,117,159,224,118,213,39,68,45,115,183,161,49,84,99,251,183,115,147,1,191,1,96,181,+164,160,71,153,111,187,136,143,0,184,240,183,162,247,207,52,105,127,253,93,14,219,128,1,93,122,0,157,207,202,63,212,+58,38,233,29,22,11,214,16,95,38,183,201,72,230,189,148,55,80,70,136,174,241,155,41,183,188,135,208,150,88,25,212,+180,232,37,10,78,124,100,210,17,8,237,175,197,47,159,238,197,116,232,253,57,45,32,88,226,40,220,136,58,34,79,231,+65,217,35,231,66,88,42,41,242,183,20,47,93,161,142,218,197,3,4,168,129,63,29,158,165,142,86,53,129,47,167,118,+98,255,63,181,54,232,209,88,166,13,144,244,191,12,84,199,23,93,203,76,45,172,187,140,166,24,123,37,94,205,97,9,+47,234,200,32,226,125,11,87,72,87,128,27,3,67,244,205,33,136,88,104,156,53,27,97,36,146,57,119,89,9,75,153,+77,14,155,33,100,188,132,45,139,139,205,49,110,7,110,225,140,81,94,191,92,195,144,215,87,248,124,135,253,210,70,120,+105,237,211,101,170,175,135,67,7,101,180,122,110,142,155,10,130,253,145,224,190,119,230,218,8,127,101,244,104,120,42,186,+44,54,5,137,169,60,5,126,69,231,107,91,35,28,197,232,79,211,186,92,240,72,134,245,155,84,135,247,231,109,83,200,+188,6,118,131,170,225,39,21,27,122,108,214,68,213,55,236,49,5,206,246,189,232,191,227,49,201,174,184,239,151,56,157,+66,203,253,84,238,88,253,187,127,160,129,198,82,180,186,216,146,124,246,50,50,0,80,151,84,144,105,235,77,228,192,231,+47,166,254,140,237,254,180,243,232,10,129,225,185,143,248,230,196,221,198,148,179,55,245,247,203,32,192,56,12,58,118,74,+194,198,92,118,255,184,202,132,166,208,86,167,123,176,4,245,185,159,13,138,187,148,114,172,177,217,164,21,14,34,252,113,+210,28,116,151,160,201,197,29,193,141,237,191,229,237,164,202,23,14,191,12,71,10,35,43,43,172,242,70,226,32,195,130,+180,221,123,205,116,3,233,195,111,170,173,91,241,7,1,31,176,176,119,86,171,23,219,123,153,221,237,98,14,53,225,67,+210,154,115,174,214,141,91,228,18,194,108,249,12,129,3,21,141,82,218,16,215,239,215,55,35,75,179,251,86,147,66,202,+76,77,192,126,178,151,144,254,103,208,211,156,224,237,119,112,19,131,37,222,46,170,221,26,183,141,37,181,65,13,218,241,+141,77,150,122,132,129,74,67,122,165,113,82,51,135,108,147,127,94,16,126,25,209,149,29,191,34,110,222,151,200,219,135,+71,211,42,10,179,113,41,158,119,152,108,215,46,194,135,122,148,65,38,179,82,141,168,197,194,157,141,89,132,149,227,168,+30,5,35,107,208,250,40,229,196,217,98,130,1,118,142,244,206,41,86,143,246,128,101,112,126,224,49,201,9,168,6,133,+152,13,95,165,130,43,219,178,155,11,46,49,122,207,34,84,51,36,167,76,118,233,95,21,31,196,241,96,135,118,33,97,+119,161,26,199,79,129,143,26,85,23,197,235,1,12,225,11,151,81,22,254,126,109,124,220,166,56,9,149,145,133,66,191,+4,142,58,131,250,92,216,103,175,248,150,199,183,177,166,230,14,63,210,237,2,79,15,35,88,45,17,65,39,61,62,193,+155,202,125,233,133,250,95,205,30,255,201,154,120,131,140,70,28,208,5,65,219,156,87,163,180,23,142,58,22,75,70,238,+42,13,198,106,252,254,142,15,217,153,18,170,70,139,172,150,72,59,215,146,172,171,19,102,148,21,56,192,110,255,203,73,+154,9,240,60,168,150,168,164,59,133,118,174,172,246,72,17,191,70,79,226,96,129,106,134,78,225,64,100,228,223,123,26,+184,150,19,176,254,240,77,130,14,191,95,220,175,215,197,9,35,173,234,112,167,20,222,143,135,206,146,66,107,7,12,11,+126,187,126,168,36,185,182,244,246,60,90,221,36,155,226,105,147,30,101,80,56,80,199,53,204,134,163,100,178,49,223,232,+209,168,199,90,107,186,27,222,204,215,132,102,42,238,16,88,152,217,174,244,151,84,30,196,36,79,75,173,175,102,13,93,+55,16,96,238,106,70,104,2,119,215,231,225,217,95,149,182,219,60,30,211,35,159,212,66,220,179,141,73,233,33,12,107,+29,185,212,77,48,37,38,145,253,148,5,179,171,121,32,249,184,237,253,72,235,102,232,245,181,33,178,230,145,233,44,158,+196,137,119,161,23,148,151,205,178,131,238,114,110,209,45,61,40,115,108,64,133,156,216,44,102,79,76,86,171,62,68,35,+5,178,252,51,38,1,113,216,31,86,50,179,204,158,4,83,58,73,69,40,165,16,180,176,165,106,41,2,106,236,223,237,+85,37,127,87,173,94,230,139,163,62,198,97,210,82,73,29,17,43,34,71,193,15,184,68,107,226,84,108,85,149,163,158,+248,213,169,134,208,57,237,168,118,50,145,4,68,60,98,191,195,71,232,246,159,200,40,135,132,234,25,157,159,22,170,26,+27,234,157,89,148,244,66,251,240,92,153,90,27,11,132,193,111,29,163,156,240,121,246,97,163,150,76,174,55,238,74,89,+255,119,112,224,3,220,13,64,240,232,163,181,19,198,176,191,115,244,241,100,66,34,19,123,58,243,106,78,189,138,118,239,+190,103,38,25,9,52,3,59,225,91,169,179,201,254,35,26,4,169,79,163,20,255,239,38,64,132,197,211,68,6,204,179,+249,5,152,243,28,8,82,25,229,196,193,33,251,232,234,252,89,152,154,100,174,235,137,182,237,153,158,28,250,238,242,141,+164,226,50,99,44,115,103,65,11,198,195,77,252,142,48,10,169,221,123,202,220,117,16,73,199,168,87,233,59,142,161,148,+201,124,232,215,14,167,33,217,92,116,187,166,123,120,205,229,109,255,61,210,132,209,78,90,168,41,156,221,234,70,234,84,+234,139,29,231,125,127,48,18,94,185,134,248,179,230,85,18,177,192,195,197,185,253,7,195,78,90,187,158,241,22,106,175,+110,8,116,1,228,61,33,149,86,171,166,38,125,60,214,134,124,225,224,206,227,11,130,159,133,1,150,218,167,244,15,98,+71,153,234,59,62,96,32,56,71,158,68,204,192,88,247,243,1,137,46,196,151,185,141,65,254,165,142,5,152,166,215,183,+19,222,202,66,147,162,68,239,232,108,73,224,63,162,110,47,218,182,140,28,201,60,178,156,21,92,208,107,192,25,243,211,+69,71,230,33,21,27,42,240,23,180,68,80,177,133,74,85,48,223,145,232,25,173,45,243,189,73,200,220,91,197,213,183,+78,107,123,188,217,4,57,17,190,100,244,207,2,117,107,105,55,111,201,90,255,52,132,185,129,22,134,16,23,235,123,249,+213,43,149,244,192,121,167,247,222,8,225,222,147,98,201,165,147,137,236,87,236,153,67,155,95,118,240,235,141,129,32,77,+186,247,69,52,241,53,198,61,9,141,78,211,3,128,3,162,37,150,28,85,95,154,62,252,179,15,69,144,139,73,42,205,+125,144,200,101,95,216,254,46,118,210,241,143,17,146,115,254,70,64,125,152,99,234,250,113,214,214,149,204,239,240,128,29,+63,73,186,187,204,96,22,131,206,62,156,32,46,86,135,4,219,140,10,92,181,155,236,252,80,120,192,118,98,230,141,189,+199,217,163,103,165,190,192,169,34,253,91,120,81,11,65,81,198,89,234,24,5,96,246,159,136,151,31,41,83,113,60,187,+74,109,252,62,126,61,205,111,180,52,136,162,157,91,91,82,122,209,223,166,42,206,10,125,81,6,161,4,19,232,20,46,+74,220,125,184,139,146,87,250,243,87,5,44,120,192,7,84,185,198,12,233,58,59,247,62,20,207,139,174,92,59,204,220,+8,31,78,203,82,23,254,64,34,17,68,220,5,161,85,122,103,24,74,139,86,130,79,79,58,229,54,72,157,170,55,151,+220,38,50,37,10,248,211,47,51,180,209,140,25,232,150,136,64,210,234,84,67,213,199,131,244,127,182,128,220,51,16,17,+52,216,173,72,49,194,36,233,231,123,54,251,238,55,209,58,203,52,179,120,254,156,85,43,232,241,199,43,101,142,112,126,+220,49,80,79,10,191,41,48,198,115,173,78,137,106,209,173,104,79,96,107,50,43,125,80,24,186,62,16,123,173,113,176,+255,24,100,83,199,235,12,26,152,156,85,58,156,238,243,21,243,31,214,75,28,184,67,199,186,138,56,221,100,246,192,85,+219,220,7,161,60,28,99,162,116,57,30,196,77,106,188,90,236,41,156,109,77,88,153,133,124,68,115,254,50,175,69,90,+0,233,148,99,130,204,132,175,29,136,182,109,20,235,195,102,184,20,95,2,212,0,192,144,14,233,100,151,220,69,131,189,+191,91,242,26,231,44,40,236,148,217,60,207,60,122,200,92,127,96,96,76,125,32,77,193,193,111,174,211,68,77,249,15,+207,238,128,41,184,142,28,106,9,175,13,3,254,251,117,32,114,75,18,124,117,61,12,217,112,130,157,141,92,252,131,177,+254,255,233,52,67,112,155,32,155,82,214,203,23,184,49,112,195,16,52,169,120,42,74,148,101,245,247,166,69,78,214,12,+158,22,23,70,1,169,119,120,119,242,235,67,31,26,49,105,32,89,201,184,19,114,232,157,221,152,196,59,196,243,12,75,+197,26,239,196,126,20,177,112,60,124,26,27,89,88,151,150,254,167,159,193,6,37,192,82,74,57,61,120,5,205,109,152,+17,143,31,59,165,69,147,142,144,227,196,35,47,30,135,79,214,25,1,154,248,145,81,113,165,29,240,163,243,194,117,192,+51,87,26,18,90,44,66,169,97,75,72,200,19,18,169,45,204,9,174,164,95,8,165,191,109,255,227,88,175,111,60,135,+172,13,38,125,65,162,153,148,223,46,19,41,126,114,205,90,163,41,164,176,151,99,66,97,50,49,233,204,147,28,118,70,+235,3,111,83,123,172,50,108,4,162,184,119,35,248,152,242,43,62,154,49,137,135,204,153,155,229,164,31,190,32,92,10,+193,188,133,81,77,2,221,75,70,228,81,79,48,146,34,11,223,251,186,226,6,181,235,239,209,175,250,170,178,38,2,141,+26,28,89,88,128,248,159,115,44,161,147,174,191,213,71,31,105,102,192,213,203,107,98,80,68,37,20,190,21,152,112,191,+211,174,33,159,148,108,151,43,87,176,17,39,46,123,176,86,120,21,69,91,164,96,187,179,112,24,195,24,172,11,66,238,+108,60,207,18,41,161,212,160,144,11,162,143,71,165,53,119,18,216,193,241,170,78,134,241,54,47,104,87,203,70,58,229,+27,210,200,146,29,28,46,131,143,249,41,41,114,44,209,61,187,173,71,212,199,210,163,101,178,3,161,156,172,3,15,230,+39,30,44,72,55,120,158,167,197,179,56,200,96,192,47,121,194,17,102,121,205,168,169,214,110,205,67,126,11,135,70,95,+29,192,214,175,76,75,117,48,6,52,198,125,75,158,61,114,253,60,86,6,38,93,9,117,252,227,15,205,109,112,116,91,+144,113,111,200,107,206,223,129,158,220,205,73,99,194,186,161,235,184,133,173,222,17,182,170,125,121,127,133,3,246,61,75,+189,145,55,30,109,72,54,178,91,172,157,77,91,104,78,237,146,102,221,200,141,181,154,138,155,214,81,102,151,186,141,252,+215,229,170,169,90,105,236,62,221,110,64,214,209,2,174,73,41,187,230,3,253,20,67,192,238,201,232,126,11,187,197,246,+61,198,89,102,82,170,193,62,38,164,122,251,174,157,155,121,234,71,76,252,61,64,82,100,13,192,77,82,56,177,37,38,+211,163,168,98,209,12,227,212,61,223,130,68,248,245,207,49,38,221,87,134,233,134,91,112,8,114,31,201,213,194,43,227,+205,131,229,193,135,160,12,164,0,19,50,188,33,0,160,182,147,92,164,90,223,173,186,229,197,191,148,144,151,194,180,196,+242,15,169,8,124,181,131,208,187,216,253,144,181,53,225,117,238,40,99,27,97,76,106,81,21,242,200,57,115,45,138,98,+132,1,37,86,105,37,149,36,218,156,241,130,47,36,218,247,250,182,20,152,191,113,208,198,94,153,17,204,103,131,61,128,+224,61,181,49,27,239,5,186,120,3,12,4,119,156,181,189,224,242,10,21,16,82,5,180,13,79,143,51,203,125,255,221,+176,202,20,170,37,122,60,99,218,30,230,67,38,36,129,41,253,74,25,39,24,162,183,137,58,192,59,235,175,31,6,6,+144,69,213,234,125,185,153,111,94,52,163,40,85,27,19,40,4,186,222,124,203,218,133,138,15,169,175,215,157,77,100,1,+253,208,112,58,7,251,69,101,187,28,98,11,79,208,121,19,149,111,141,58,248,140,161,234,0,176,230,101,249,132,158,127,+192,149,234,45,85,8,165,232,136,96,113,20,90,10,21,51,196,252,177,124,23,55,198,187,156,39,179,19,130,244,232,53,+250,15,144,64,71,179,153,210,180,121,180,233,222,50,219,2,1,162,160,74,225,114,88,193,80,247,80,189,103,132,9,125,+45,2,197,123,111,43,220,222,11,57,59,144,218,140,135,98,235,172,241,16,148,68,220,15,34,26,166,241,98,196,118,41,+142,56,36,87,130,135,133,241,159,139,190,62,35,143,210,54,163,25,82,141,173,27,45,228,140,34,243,98,119,82,225,230,+77,171,130,87,251,15,223,169,133,39,36,136,132,137,237,200,149,191,31,236,105,214,121,53,253,72,45,184,148,135,34,197,+32,162,197,228,17,114,53,118,99,30,78,188,54,232,176,180,101,161,116,247,184,74,193,48,216,89,37,112,39,58,118,70,+75,81,135,247,41,32,13,40,192,128,36,163,81,93,24,158,171,81,113,3,169,219,194,7,194,192,238,72,254,215,88,223,+26,117,206,114,128,193,239,91,227,94,140,212,113,104,210,58,3,113,162,141,61,47,250,130,59,178,71,98,169,178,89,192,+9,227,115,131,47,42,118,162,158,49,56,65,128,166,86,132,103,183,8,109,87,206,28,81,68,114,61,77,83,214,229,243,+77,50,182,91,170,143,231,11,181,95,117,208,10,253,151,27,19,229,162,65,47,181,131,58,125,84,93,5,65,43,157,168,+115,37,174,138,233,149,225,113,117,118,113,249,156,32,230,246,166,190,144,31,78,252,83,24,239,30,58,253,252,80,248,194,+143,14,32,145,182,111,24,75,128,188,176,85,159,89,31,165,236,253,190,50,64,134,60,91,234,242,33,185,61,171,143,87,+87,110,63,104,180,67,97,77,136,50,116,157,159,161,5,243,198,162,202,7,159,123,28,245,195,123,26,93,62,37,145,251,+200,36,158,18,64,154,82,51,177,137,117,229,205,81,28,155,160,203,233,147,124,0,240,56,111,15,182,93,150,132,74,58,+50,55,165,203,54,103,51,197,133,40,131,187,220,56,155,73,198,199,23,117,31,235,5,15,204,119,72,113,61,89,236,176,+154,158,157,128,211,152,253,39,171,209,54,117,60,211,180,170,9,198,175,131,35,215,71,55,185,1,126,193,242,22,255,191,+33,34,65,73,211,56,222,82,126,138,137,193,77,20,0,5,198,64,183,238,126,213,38,140,81,40,30,195,99,86,150,67,+74,223,39,167,227,45,175,43,217,169,43,12,13,29,56,189,147,61,108,61,6,195,243,14,60,47,253,7,145,180,164,80,+103,135,176,20,76,87,70,204,205,114,108,46,177,166,121,206,249,216,59,151,126,179,36,148,183,137,184,195,53,39,1,156,+15,39,228,147,190,116,209,84,94,93,113,244,176,159,240,243,15,113,213,57,71,9,66,72,117,235,144,182,83,46,123,178,+57,53,24,38,38,88,216,109,159,250,251,141,105,216,138,175,221,129,227,150,159,176,138,76,49,44,85,176,13,133,101,202,+24,152,162,6,110,139,145,39,251,79,206,71,243,38,131,5,227,108,58,252,37,134,128,17,196,68,55,139,31,37,78,172,+158,149,88,159,69,125,171,251,202,211,46,27,132,17,88,96,52,50,228,188,101,134,214,114,192,91,29,214,29,189,154,217,+164,6,236,148,211,24,231,115,111,45,221,157,92,26,117,162,205,60,39,234,149,149,103,161,128,94,76,46,36,121,126,239,+74,254,131,211,43,0,28,57,18,224,204,67,128,255,17,150,224,80,154,179,163,30,248,135,96,245,152,195,101,205,219,38,+117,6,150,244,171,48,174,58,144,202,149,181,44,196,252,167,136,21,187,139,252,204,194,213,224,85,74,5,85,163,246,104,+64,38,224,90,166,187,18,205,183,137,200,231,253,191,208,29,33,168,186,251,115,124,160,17,41,18,195,60,19,47,228,218,+14,101,253,18,57,17,90,246,199,210,93,132,165,191,67,248,156,84,14,148,29,93,114,127,167,120,195,23,78,195,24,218,+214,195,22,100,39,156,67,155,0,0,12,34,155,176,250,88,221,211,89,44,175,118,151,105,35,143,164,48,188,22,166,121,+242,3,94,195,0,119,140,167,241,229,37,106,134,99,172,196,146,45,162,141,243,82,55,102,46,116,73,26,206,16,120,157,+202,169,115,13,213,245,68,192,113,159,119,237,239,204,247,5,42,227,203,189,165,119,223,42,96,172,212,204,198,132,75,9,+252,39,61,1,132,255,27,231,73,57,137,243,112,104,217,158,117,254,31,18,130,39,183,21,162,244,33,27,33,76,227,208,+200,108,167,201,12,133,188,73,35,162,144,48,106,183,235,213,120,151,184,184,88,36,188,205,213,8,42,59,187,181,98,194,+139,95,235,125,77,76,121,161,164,143,65,68,72,219,222,248,195,58,70,83,240,106,181,127,251,213,198,123,47,191,74,215,+42,42,236,99,88,196,223,167,102,121,188,199,131,204,132,227,81,224,178,111,196,1,28,90,25,76,19,183,16,23,78,177,+128,172,226,158,212,85,233,14,137,255,126,19,67,46,68,60,126,122,245,152,178,98,204,56,184,209,45,222,212,70,172,181,+36,101,58,188,237,121,105,58,91,211,46,93,185,234,102,57,198,194,58,209,81,251,160,202,102,60,211,121,203,161,222,164,+197,182,206,102,35,195,255,231,166,2,136,7,182,185,192,162,28,3,159,25,200,35,211,241,180,154,102,157,222,229,185,223,+203,67,136,235,101,201,250,179,69,87,186,32,53,199,194,245,151,189,124,72,177,1,133,155,26,84,38,81,77,42,193,27,+17,54,27,164,232,183,130,12,23,36,127,219,221,40,170,119,194,217,90,172,86,231,84,110,176,42,129,130,232,193,130,193,+236,135,139,118,111,211,208,254,180,44,32,231,240,34,219,253,92,26,158,113,205,118,186,245,235,20,137,78,25,143,122,187,+168,196,246,94,229,151,215,198,177,1,250,237,237,29,172,24,41,95,37,245,244,96,236,187,230,216,238,251,154,195,73,240,+3,189,155,185,58,43,219,184,49,101,6,132,214,156,99,140,116,65,15,127,118,221,251,171,69,192,34,48,33,4,108,130,+67,178,252,53,248,8,108,197,8,170,32,159,79,219,76,56,196,213,232,160,55,176,2,233,118,144,215,213,121,219,121,108,+203,126,145,164,184,67,97,167,124,169,167,175,111,193,11,234,10,118,131,94,70,139,42,200,234,196,71,223,158,23,148,49,+158,31,250,235,205,83,97,202,40,99,25,195,139,130,36,154,86,179,234,98,237,214,193,85,24,239,14,226,114,3,211,249,+88,90,154,213,47,111,233,168,188,121,43,22,101,207,36,123,45,75,51,227,217,248,68,31,255,41,37,238,24,38,25,81,+68,4,116,84,39,238,7,212,50,187,208,226,159,160,41,207,107,234,222,93,103,36,120,118,231,63,58,60,212,64,77,59,+95,135,160,252,171,46,41,173,30,218,156,219,134,88,4,125,192,252,8,112,182,202,113,132,76,233,214,154,89,140,23,13,+124,26,218,173,234,97,177,38,202,166,185,103,55,196,44,188,247,162,8,67,243,87,26,220,200,90,189,102,171,198,225,78,+252,206,31,134,123,223,58,94,32,101,16,205,158,108,253,225,41,39,171,90,71,248,143,39,158,209,112,19,157,55,123,123,+93,149,239,33,84,155,60,40,245,56,12,19,116,148,105,123,190,139,107,1,60,106,190,90,22,230,56,191,254,108,4,10,+2,30,81,87,232,221,227,59,4,86,142,42,45,235,165,185,114,250,54,170,81,169,158,224,219,121,122,231,158,50,32,248,+234,43,52,85,113,172,215,105,36,45,109,201,233,162,159,151,99,181,247,17,190,170,142,174,21,80,144,161,183,143,27,94,+206,241,33,74,183,244,253,67,230,148,74,77,42,143,188,214,87,13,213,217,44,168,17,213,1,95,62,27,226,213,134,69,+236,130,241,28,75,176,163,114,7,246,212,90,31,244,129,91,165,203,37,17,145,203,75,209,35,109,239,226,98,120,240,29,+181,125,81,23,190,92,23,119,36,27,112,91,34,151,128,90,57,168,147,249,217,35,103,245,198,169,171,80,169,152,165,230,+5,49,188,152,157,243,157,206,22,119,5,164,139,198,148,35,194,46,201,179,130,233,174,48,197,19,184,151,131,103,23,6,+210,187,53,101,220,147,101,136,126,61,113,83,32,109,141,99,193,244,190,179,20,115,23,206,117,195,49,70,56,107,60,233,+69,232,166,173,3,244,75,213,107,197,145,87,186,243,155,247,232,217,145,153,45,96,77,249,3,54,34,83,1,113,10,59,+222,207,7,233,58,15,75,4,71,203,72,126,92,4,58,236,146,248,126,157,226,164,124,134,85,244,62,222,35,215,138,24,+222,66,229,57,77,198,239,193,6,129,14,128,209,212,122,3,146,119,188,71,186,192,180,236,252,76,25,115,241,159,16,147,+234,234,125,224,243,165,30,150,173,54,42,248,143,217,200,216,116,39,50,173,175,206,34,154,245,56,84,115,138,82,55,59,+98,203,76,57,216,98,225,99,53,88,31,118,231,193,12,63,98,19,106,30,100,31,219,242,75,7,221,190,244,56,48,253,+254,87,97,42,34,228,230,12,159,162,214,163,173,200,63,55,178,15,221,58,250,100,218,47,217,7,221,76,132,197,254,132,+157,43,76,67,113,70,212,226,42,161,42,23,19,35,166,236,93,24,45,66,252,85,174,25,26,139,84,175,99,52,164,208,+81,173,238,33,139,140,213,180,133,10,19,136,81,61,65,219,216,230,224,115,204,197,97,1,131,188,30,230,42,169,164,47,+75,180,169,27,42,130,84,23,97,158,237,252,187,154,0,146,20,139,59,228,65,103,119,8,135,198,45,244,4,239,187,64,+80,73,66,34,61,149,235,66,78,32,8,28,17,28,11,182,25,78,88,49,182,227,37,100,44,243,173,78,75,196,48,122,+209,123,184,163,129,60,243,2,33,153,97,43,106,252,220,96,129,20,137,53,61,206,219,41,97,224,71,118,239,59,41,144,+231,142,251,60,156,127,202,138,114,181,99,117,185,133,1,130,237,81,221,252,146,146,164,65,116,162,122,36,214,160,246,241,+205,165,58,219,212,229,186,180,89,138,183,183,99,107,194,33,79,219,108,98,202,187,83,109,81,209,54,241,163,32,197,199,+115,198,143,210,89,25,4,74,128,82,192,82,220,94,76,189,177,251,248,226,146,244,40,39,213,173,176,17,102,181,222,47,+212,230,81,93,252,134,88,4,117,34,101,13,234,218,224,88,107,190,18,121,31,9,254,208,50,54,195,218,91,59,202,116,+48,97,126,81,202,167,217,156,125,78,24,100,16,29,15,75,54,93,112,117,176,47,182,162,247,98,186,15,192,204,68,152,+157,86,1,28,139,85,223,71,135,19,175,211,150,225,42,227,174,89,184,96,39,207,153,227,116,241,98,103,169,60,43,246,+206,190,88,119,55,176,148,176,214,211,27,0,254,82,235,194,240,224,37,136,164,140,161,137,110,39,187,74,36,57,176,225,+244,90,127,246,109,212,158,81,198,66,213,171,209,171,6,98,73,107,234,176,100,190,36,1,166,16,207,1,248,42,236,213,+190,116,123,71,126,36,251,23,186,74,127,222,151,109,114,156,191,208,64,146,126,66,174,86,19,69,170,235,79,48,28,179,+68,242,14,81,100,16,111,242,113,127,244,145,221,236,160,74,74,158,96,159,221,214,44,28,201,204,86,92,1,232,111,96,+105,146,110,4,80,129,100,251,58,120,250,78,92,204,254,61,77,9,212,206,218,73,178,190,216,193,66,122,108,217,177,122,+80,179,90,41,237,141,9,4,110,203,208,6,167,214,211,20,12,85,97,84,96,195,179,99,15,25,172,220,24,103,89,128,+182,194,91,230,175,27,33,142,193,8,37,129,73,199,242,48,131,61,226,85,123,84,208,101,46,162,59,30,155,70,146,72,+134,124,104,121,254,180,190,201,71,76,33,111,209,163,46,80,21,205,189,192,144,218,250,209,29,244,170,215,149,221,217,149,+41,126,58,199,228,48,30,115,185,64,64,89,54,156,161,157,55,215,23,124,157,137,44,64,17,22,167,206,245,192,36,30,+25,176,241,162,119,142,128,237,82,218,199,208,110,255,90,10,130,132,7,41,106,240,255,143,99,49,10,94,36,114,105,74,+38,152,244,56,189,7,176,57,104,122,81,253,150,60,47,175,50,123,115,85,76,170,187,223,125,77,247,218,62,231,249,236,+116,111,241,87,122,79,0,1,52,33,188,214,17,80,12,42,128,105,7,39,32,92,93,206,96,244,218,60,91,26,5,216,+242,225,18,185,109,237,73,178,247,30,77,217,129,221,155,110,20,141,231,177,62,164,189,245,86,151,229,190,139,226,196,206,+37,212,60,132,167,46,83,203,163,222,76,211,145,89,243,115,30,185,171,67,134,155,59,158,120,133,116,203,196,137,199,128,+75,116,236,9,105,197,80,143,48,193,15,240,230,169,185,179,54,239,241,144,82,98,173,141,105,104,230,96,167,217,88,47,+135,92,118,77,126,134,81,226,217,95,166,156,247,135,96,46,13,140,190,230,13,1,70,68,103,122,96,0,185,143,43,131,+183,228,199,232,101,247,23,30,67,197,242,234,202,223,246,45,56,246,109,131,14,210,62,139,1,207,71,232,233,61,10,36,+223,228,93,90,254,162,150,114,173,23,206,154,232,23,199,152,97,125,249,225,102,46,219,123,40,168,121,40,64,137,110,30,+226,84,56,251,108,29,207,77,119,164,27,48,91,120,49,26,18,143,46,139,21,0,195,28,54,182,71,114,38,50,110,24,+205,185,56,104,2,23,40,76,162,231,149,1,150,158,66,81,150,197,90,101,6,72,48,7,183,23,134,181,40,76,60,144,+122,108,48,59,47,95,213,185,192,126,19,23,142,184,235,42,198,203,17,209,19,130,218,138,205,218,47,44,117,102,72,174,+174,26,212,31,19,255,185,14,174,149,25,68,64,222,252,55,84,30,246,209,169,232,168,221,215,76,52,10,102,27,154,195,+3,113,51,105,38,120,220,17,43,49,176,194,10,127,50,161,2,40,243,84,194,216,24,196,218,219,248,111,20,98,165,96,+125,212,70,52,143,174,231,52,51,106,70,58,206,198,253,122,12,74,18,88,111,169,111,71,226,29,223,26,138,88,127,206,+63,98,124,177,121,136,211,92,61,77,184,232,218,65,229,220,92,222,128,136,65,47,245,188,3,30,6,130,179,155,201,180,+142,193,149,161,41,155,4,215,255,252,150,63,211,216,126,118,193,58,94,253,164,12,215,219,96,157,101,226,81,103,4,17,+173,80,211,240,247,33,250,172,242,19,223,68,68,109,184,64,234,245,25,48,163,26,219,21,150,160,53,74,100,195,44,44,+49,50,95,63,112,103,245,76,50,55,26,215,157,164,231,38,246,237,146,13,8,241,151,191,185,103,255,186,150,218,56,34,+98,80,36,195,120,158,167,31,252,194,252,123,180,79,147,106,62,195,218,201,173,11,168,255,0,130,43,30,247,43,159,25,+161,244,6,221,91,31,130,71,253,77,53,130,10,161,34,39,193,177,141,55,235,219,208,212,118,100,188,227,146,210,209,61,+221,112,201,159,55,253,35,7,184,134,251,152,161,171,24,97,30,18,161,56,135,33,4,225,11,15,127,166,175,137,19,98,+148,3,232,95,89,133,124,45,229,45,170,111,91,71,167,204,181,219,36,113,70,176,243,129,83,109,9,130,249,213,237,112,+248,80,31,96,212,82,137,32,214,109,154,187,175,240,129,9,136,166,125,136,16,48,18,196,82,108,141,225,39,222,134,40,+182,130,196,175,248,97,175,49,119,239,22,238,191,172,178,223,155,99,187,47,17,201,98,46,131,28,17,67,190,17,142,17,+42,173,7,237,62,159,127,97,190,167,47,39,75,39,150,209,113,215,36,175,126,192,67,160,108,19,158,62,77,25,52,177,+68,40,240,154,92,141,97,86,126,174,238,193,178,190,210,32,158,148,48,217,198,188,110,22,106,235,72,45,192,53,217,226,+112,10,16,61,173,225,73,177,143,235,200,48,234,11,99,101,130,50,40,131,200,108,2,8,229,61,13,106,181,171,157,31,+167,207,156,133,102,212,196,213,67,77,210,59,85,213,124,16,145,148,144,194,157,114,32,105,6,72,202,161,241,4,149,246,+104,147,57,149,4,46,158,124,149,140,6,235,111,223,168,3,240,111,83,183,187,214,221,102,46,171,70,144,103,62,68,131,+123,77,46,234,217,95,41,253,22,234,192,29,167,45,128,112,68,243,142,77,144,248,47,214,135,144,32,47,211,180,82,204,+133,111,105,230,83,73,208,180,118,124,201,196,112,172,173,201,180,200,223,148,123,47,45,168,156,245,212,243,43,254,100,204,+35,153,3,83,221,195,184,223,153,67,204,217,255,197,194,13,61,69,235,77,10,123,25,4,234,147,98,160,148,38,36,143,+251,211,99,180,68,216,156,100,181,210,184,59,90,251,93,245,245,182,141,48,137,193,101,136,189,25,241,100,114,105,60,88,+205,96,188,205,221,229,176,242,62,124,252,193,15,157,169,104,44,71,233,226,54,192,86,248,213,20,208,208,234,130,151,173,+81,238,175,72,197,130,77,143,167,222,112,110,109,116,173,235,66,115,25,15,91,55,229,23,72,16,152,207,247,213,17,91,+223,39,92,116,216,38,246,161,7,215,241,185,134,26,164,44,71,127,33,145,146,99,133,229,36,53,194,138,174,95,243,208,+156,101,100,171,136,191,172,75,16,240,22,12,66,153,63,34,114,180,177,88,158,218,45,5,220,49,215,83,239,28,197,129,+46,57,23,139,41,44,179,194,199,152,118,108,255,23,52,162,95,195,144,121,28,54,143,182,69,67,181,170,194,150,182,52,+177,118,224,23,128,133,82,5,99,116,110,149,3,250,149,143,103,37,80,14,48,96,44,10,106,49,5,248,152,235,190,231,+204,47,209,137,143,226,156,117,252,206,232,37,222,164,94,5,215,248,215,60,166,57,241,142,192,9,156,100,155,73,102,55,+114,171,116,225,101,247,125,236,209,222,130,58,63,148,103,89,108,209,180,162,185,245,104,144,222,54,107,87,112,175,238,92,+99,78,163,50,78,121,145,202,12,74,63,137,182,34,174,203,224,26,104,124,236,138,134,72,2,63,81,28,224,58,6,255,+41,12,254,217,144,80,61,230,242,126,66,141,183,236,238,111,178,253,159,129,47,209,148,158,9,102,177,194,91,48,221,79,+177,83,214,169,241,5,44,240,21,129,56,238,2,89,181,222,65,221,25,139,52,236,66,179,28,225,239,10,177,83,154,120,+94,68,209,184,167,118,156,106,215,233,130,3,18,175,94,115,53,69,55,125,122,92,184,173,225,168,234,216,143,183,150,203,+75,159,72,28,64,195,174,102,133,66,237,242,93,44,195,67,9,57,209,230,235,142,183,16,0,32,7,143,173,50,150,1,+166,116,179,42,1,157,117,99,80,155,141,98,18,230,161,81,72,55,52,130,143,210,201,130,221,61,23,101,102,132,207,101,+174,174,106,75,156,163,58,131,180,93,244,192,60,101,212,66,117,20,200,47,131,127,115,89,56,83,145,164,38,201,154,156,+213,202,194,155,152,179,236,3,127,249,100,66,47,188,194,21,155,159,211,176,137,161,158,229,145,21,87,179,247,167,183,142,+250,197,204,111,196,74,209,44,244,180,131,189,49,150,93,119,81,55,161,72,58,155,69,212,68,94,76,184,112,155,57,29,+165,5,123,164,230,229,238,143,23,252,206,29,0,162,48,251,179,195,186,84,76,52,250,62,82,103,155,253,25,187,203,127,+144,156,186,166,97,181,26,149,62,194,230,224,14,167,232,74,139,120,71,207,223,81,4,149,249,75,178,67,32,255,17,74,+180,43,229,26,249,249,59,81,137,210,240,169,98,85,22,61,65,113,84,204,189,181,115,191,243,37,169,95,68,20,218,187,+161,15,56,104,53,134,41,77,63,170,18,118,120,71,79,209,183,206,194,151,169,14,74,200,131,49,58,136,244,129,30,242,+174,250,202,81,149,154,248,113,103,150,181,72,154,61,242,200,180,255,75,124,174,211,112,5,40,140,130,14,49,24,255,251,+150,126,121,200,166,237,19,217,154,35,69,64,84,238,35,100,81,21,178,63,220,154,85,53,126,180,59,82,54,214,99,212,+68,87,245,161,151,148,75,244,255,253,242,254,114,156,18,44,188,42,240,115,236,25,214,8,242,208,53,188,227,202,25,9,+58,93,127,13,149,39,40,197,13,46,218,16,98,113,206,199,3,191,194,137,42,236,13,203,167,122,250,81,236,188,170,246,+186,155,159,25,22,117,144,151,87,62,197,205,91,73,157,153,189,238,248,170,190,29,228,111,249,33,211,13,96,69,197,143,+4,202,182,153,151,108,65,36,151,246,229,72,245,84,239,88,122,155,55,117,236,58,147,233,211,120,140,185,238,203,209,224,+79,131,154,24,239,136,142,153,248,11,246,91,118,230,110,237,133,154,212,56,159,186,210,216,170,47,217,107,245,94,76,214,+162,113,102,122,141,54,192,79,21,73,191,62,95,70,76,169,32,19,100,21,8,199,40,2,99,120,8,67,20,60,237,37,+2,81,73,123,74,85,26,191,22,103,47,224,109,132,167,213,152,50,236,158,204,62,46,187,64,130,180,90,44,255,1,149,+194,39,146,68,60,155,114,38,124,23,45,53,48,45,213,232,123,118,151,12,80,196,161,222,106,1,251,167,125,67,246,199,+130,177,190,74,42,91,250,4,125,114,138,156,208,114,26,37,147,33,14,197,209,64,217,250,38,204,83,33,250,189,75,137,+140,255,197,209,67,208,45,106,137,234,109,236,37,232,96,46,96,58,64,87,8,75,182,117,199,115,23,51,211,150,215,248,+212,112,138,187,34,165,138,174,148,59,85,188,6,90,180,242,233,60,22,193,226,112,230,190,112,52,122,5,161,224,141,174,+191,237,75,26,176,22,87,128,225,103,238,119,12,231,148,85,104,205,82,187,76,187,151,62,231,8,29,121,42,100,95,221,+204,90,37,47,84,92,52,145,5,42,20,53,28,120,247,32,7,76,55,26,19,121,37,235,67,150,173,14,73,157,57,236,+225,222,28,148,116,94,252,24,49,100,33,177,154,246,193,57,84,15,3,71,70,148,104,82,145,246,184,80,39,126,62,176,+158,194,21,170,183,75,9,209,167,68,50,221,169,109,78,142,36,0,165,70,199,63,167,205,187,130,98,192,205,93,28,70,+182,154,151,108,75,3,129,91,248,48,66,95,191,186,176,39,173,222,101,174,191,183,163,64,166,83,64,88,172,16,14,81,+90,204,130,170,222,197,21,103,170,238,188,19,227,251,205,108,13,39,16,130,84,196,42,32,93,194,48,3,138,119,128,23,+209,243,227,65,89,47,49,162,189,212,44,91,34,228,34,9,105,39,89,75,79,19,155,203,44,166,210,235,39,39,123,191,+6,184,69,37,187,150,151,92,242,223,143,218,52,69,191,99,251,42,69,82,134,207,78,38,130,71,134,16,57,121,55,144,+156,151,177,152,49,44,202,49,82,207,158,84,7,162,167,128,146,246,211,94,231,38,154,142,44,183,243,142,175,68,93,1,+17,141,244,8,173,174,58,186,189,136,207,194,164,199,150,28,213,42,48,200,148,243,115,33,139,30,109,197,33,32,125,23,+36,141,41,63,133,202,72,25,28,139,213,211,161,227,138,129,225,41,26,229,98,123,3,192,36,103,193,41,196,39,212,228,+162,195,223,176,174,240,21,67,70,60,199,236,174,179,66,232,81,162,19,117,75,190,15,251,123,120,35,191,10,20,174,75,+132,200,163,39,144,119,112,103,221,106,240,112,124,182,191,138,34,61,190,228,169,106,207,164,199,76,24,1,143,119,121,231,+5,226,14,109,179,135,155,39,227,185,174,56,134,235,130,13,138,249,55,9,119,234,128,239,110,164,91,73,228,3,180,108,+132,132,105,45,118,57,101,220,243,160,137,188,10,92,185,79,238,175,206,226,210,25,135,107,182,24,142,27,228,189,205,32,+50,34,131,17,231,254,218,30,182,154,226,134,145,114,113,71,249,65,243,136,134,134,66,64,59,155,233,162,97,67,188,82,+47,153,121,184,242,184,211,130,241,32,209,143,50,224,87,87,193,172,209,76,19,40,247,73,141,168,143,190,230,6,139,220,+32,221,101,240,148,9,246,250,40,121,197,101,218,140,89,69,22,193,105,7,164,224,105,159,137,74,230,118,247,149,154,30,+203,206,101,140,113,81,143,188,241,10,114,0,249,47,138,122,192,205,20,99,20,58,29,90,201,103,12,76,108,201,204,99,+118,146,43,173,100,36,251,20,141,123,222,160,102,6,207,180,210,231,156,78,128,28,142,103,82,220,233,85,13,88,84,102,+100,235,178,84,196,205,248,19,10,245,142,30,160,110,149,72,239,72,166,184,45,166,206,204,174,43,71,157,221,78,83,101,+74,34,105,113,29,188,165,250,116,168,50,203,8,196,159,245,2,59,177,73,51,32,27,86,127,141,137,254,241,15,251,98,+57,212,215,54,97,42,117,228,90,207,25,230,80,150,18,170,191,200,230,151,174,240,7,95,201,204,175,49,180,166,50,62,+68,221,228,91,88,114,174,225,11,170,147,171,225,106,58,82,174,161,248,124,21,149,25,160,122,135,144,0,181,236,163,6,+249,219,199,206,76,18,30,244,170,186,222,193,214,169,174,75,6,157,143,161,53,214,126,130,56,192,147,97,41,199,29,204,+141,24,249,146,57,223,130,24,71,178,27,155,79,239,218,213,221,160,99,194,166,156,188,96,49,12,173,58,195,105,120,150,+37,190,236,185,38,147,31,97,209,218,226,190,117,111,187,21,252,40,167,11,96,55,88,46,163,9,140,213,0,247,103,182,+211,88,240,67,65,95,113,228,147,108,9,8,226,94,138,189,105,91,182,8,211,188,211,53,146,245,207,153,218,88,80,110,+176,242,215,159,112,66,155,22,49,82,174,38,240,187,224,190,117,22,112,112,240,171,37,132,28,7,214,63,179,103,44,189,+145,0,178,41,239,144,3,189,156,31,178,126,223,145,16,100,41,89,28,30,130,55,231,142,117,28,78,79,151,25,70,71,+71,201,181,37,43,156,106,249,227,92,68,239,120,57,50,40,192,233,35,226,55,21,164,39,154,66,158,195,26,47,133,79,+234,240,225,188,129,250,32,162,6,71,149,197,182,174,206,33,168,248,110,217,196,182,96,53,8,251,232,86,3,33,171,4,+94,113,167,9,224,53,164,8,210,63,216,229,144,255,38,231,159,105,47,54,155,151,6,246,254,175,18,35,163,32,178,141,+175,69,94,64,38,124,77,95,165,78,75,151,226,61,108,2,145,87,36,132,135,87,217,197,7,108,155,29,9,82,125,251,+147,225,198,94,221,154,82,237,175,154,7,146,150,29,12,228,88,43,219,22,79,211,214,156,42,205,5,227,209,195,232,234,+73,192,175,181,178,203,86,195,113,122,103,107,13,205,116,109,64,49,189,70,89,66,99,182,70,24,98,9,140,95,203,198,+54,177,10,110,60,29,112,213,186,122,218,88,17,47,153,216,216,183,195,29,20,226,78,17,239,81,4,94,221,63,151,179,+97,89,25,186,148,147,211,229,144,221,7,10,213,255,17,150,236,228,207,153,218,252,36,228,216,189,92,106,133,91,200,86,+201,103,194,7,172,164,74,214,254,49,13,48,205,175,80,221,85,197,120,102,144,148,17,165,53,60,209,224,135,156,163,3,+194,223,106,15,190,58,160,197,226,107,70,58,222,224,61,213,244,158,206,81,191,31,80,152,214,25,143,192,19,23,238,51,+26,132,31,115,49,151,130,171,185,191,115,70,224,169,25,23,40,194,77,67,124,83,162,253,124,185,246,219,8,171,97,241,+184,18,19,206,189,181,74,93,58,155,170,115,54,186,210,234,148,138,236,164,191,80,91,217,128,188,100,44,127,107,56,253,+62,218,94,252,103,95,75,67,154,71,214,142,56,249,131,35,180,100,129,66,168,10,87,55,92,135,188,111,74,174,13,63,+220,82,217,127,54,242,56,149,4,4,50,250,181,9,205,4,147,227,192,191,102,153,192,233,102,76,222,106,81,87,202,98,+86,188,2,244,191,245,21,132,30,158,129,80,37,136,208,95,222,66,171,111,240,168,31,214,0,120,27,255,223,186,116,215,+115,46,49,250,81,178,244,97,6,168,133,156,15,56,131,251,57,3,5,73,249,63,147,220,134,248,102,29,208,46,36,218,+12,240,40,50,185,172,205,7,43,113,25,138,160,70,232,12,110,53,220,154,185,95,157,116,154,26,242,240,153,187,192,106,+77,20,180,252,113,130,234,184,246,138,183,179,22,252,103,98,104,183,173,250,169,233,68,199,209,238,204,11,109,29,211,253,+26,19,45,170,201,215,174,93,61,35,223,234,251,126,90,92,180,206,253,102,233,96,40,116,7,124,130,63,116,218,241,89,+81,33,232,225,84,38,181,87,32,6,97,129,108,156,137,15,231,101,19,162,173,57,21,70,54,65,179,22,122,236,32,102,+179,148,24,219,14,86,180,202,9,244,91,166,158,2,65,56,94,72,147,203,57,101,234,231,63,222,134,18,211,175,61,242,+133,42,181,25,224,54,104,198,43,177,84,235,201,41,79,180,127,42,12,29,98,78,8,146,106,39,120,72,107,183,146,106,+224,217,146,87,141,25,87,85,157,101,112,125,191,207,12,194,71,31,187,116,204,40,16,42,255,150,82,37,85,211,40,43,+166,126,15,74,13,254,141,54,242,140,225,120,99,99,89,47,250,82,159,174,59,60,53,242,229,24,171,161,125,22,216,31,+245,246,191,239,145,151,251,214,8,232,197,47,204,249,146,160,153,192,3,69,243,54,94,105,233,111,157,71,88,172,126,192,+209,149,31,241,43,161,64,105,82,248,213,151,24,72,231,248,102,232,206,252,196,134,252,187,79,102,210,55,152,11,213,148,+25,81,174,106,201,175,119,41,174,178,154,140,185,160,153,246,99,114,251,185,136,255,192,4,37,149,227,34,70,219,84,37,+232,89,6,3,241,154,231,198,206,216,13,145,107,19,72,94,126,214,98,156,55,99,167,58,184,231,117,112,171,11,215,159,+229,51,99,222,35,234,224,65,40,243,70,5,48,90,99,18,55,135,113,134,213,14,31,34,81,55,237,197,164,46,127,216,+163,53,161,248,76,40,56,233,86,130,18,90,26,217,25,40,59,147,140,95,216,133,9,64,92,232,129,116,4,69,207,131,+125,176,172,79,118,222,33,98,61,202,237,68,172,79,17,184,38,226,122,30,29,89,242,254,25,104,49,168,218,95,24,43,+165,205,234,121,79,238,113,78,20,17,26,41,112,13,166,52,50,39,56,132,130,83,203,55,198,66,160,141,103,7,50,101,+100,213,157,169,158,152,26,174,78,147,64,215,35,50,206,127,229,90,219,29,194,170,116,225,166,104,36,35,159,144,199,150,+168,225,212,189,43,223,175,100,111,182,126,221,149,179,238,24,138,159,230,150,12,60,3,171,191,249,32,189,113,89,60,163,+59,205,189,250,139,185,89,46,224,147,11,211,156,6,18,248,70,79,227,134,252,70,120,182,206,157,39,114,19,108,100,74,+190,136,77,171,155,82,60,0,105,152,69,105,119,49,17,37,177,29,28,201,24,29,10,223,204,112,183,198,208,14,147,157,+132,255,37,86,32,3,133,238,134,199,155,147,178,114,173,253,247,126,146,62,194,14,221,130,81,44,29,147,246,238,157,199,+218,91,169,235,237,182,227,2,115,15,250,31,38,172,254,242,199,151,164,122,228,11,123,10,149,182,193,199,77,93,111,31,+123,124,228,135,3,66,45,52,71,203,118,35,75,184,40,122,70,195,229,97,55,44,24,118,178,42,9,134,117,183,24,66,+19,29,80,164,17,95,158,93,232,210,181,69,220,125,148,123,88,156,150,27,33,24,69,42,186,173,130,82,199,100,54,60,+55,39,149,4,166,204,247,63,222,255,233,143,180,97,57,210,159,48,48,208,3,180,86,8,12,255,156,211,63,149,21,192,+204,192,224,245,254,13,253,29,179,200,170,38,79,172,93,227,65,45,172,100,53,141,150,79,42,50,26,126,232,26,139,112,+223,255,233,251,121,132,255,183,155,66,83,49,149,254,14,80,28,18,210,86,84,198,166,107,160,156,137,36,91,214,217,17,+157,247,169,37,187,221,247,90,159,191,240,125,121,51,175,61,92,4,67,201,122,253,107,143,178,97,189,202,131,31,105,218,+211,93,177,233,41,164,15,29,171,55,8,8,160,40,94,93,186,107,218,8,218,4,135,251,197,12,239,213,227,6,254,209,+98,169,229,45,152,186,227,77,153,205,146,22,216,6,202,34,216,140,79,199,93,237,249,148,11,190,106,175,162,146,92,118,+0,236,140,43,104,207,64,180,233,13,200,23,7,238,138,176,148,109,1,243,171,142,7,227,35,173,89,173,247,20,205,146,+208,180,73,81,1,114,157,188,93,181,67,199,158,154,236,47,123,200,24,145,218,80,70,233,133,49,228,196,32,157,150,221,+202,121,91,44,46,240,95,146,71,240,37,15,68,132,248,56,254,250,144,37,104,107,222,38,235,64,154,150,211,14,183,243,+8,28,65,104,96,15,100,16,37,0,9,119,173,243,134,148,24,190,84,88,51,7,101,88,39,108,242,142,130,234,149,62,+45,227,71,148,93,160,6,47,40,41,209,19,183,86,199,247,98,144,71,62,212,11,51,172,7,105,1,66,179,14,23,123,+94,122,83,53,90,15,90,220,46,87,139,110,9,235,55,161,173,86,120,89,54,215,222,186,203,23,206,136,193,188,167,243,+163,6,158,98,37,57,241,154,2,100,117,126,236,88,87,221,174,127,188,126,8,202,178,177,167,155,185,12,176,19,197,4,+206,209,40,59,188,196,5,124,9,98,169,36,125,229,169,36,131,70,121,191,64,173,115,126,6,101,2,232,228,134,135,51,+126,120,73,80,87,197,169,1,113,112,224,131,110,1,182,228,131,74,23,148,21,84,71,135,138,68,220,133,176,89,181,25,+156,84,121,125,115,50,254,255,0,42,95,76,184,118,167,9,91,248,161,168,133,103,234,105,46,125,187,27,64,104,35,106,+165,199,125,253,63,104,24,250,179,93,57,114,204,15,74,196,176,8,110,129,104,146,149,161,61,10,228,161,213,58,68,109,+66,26,33,125,234,219,146,245,162,149,71,239,236,239,191,7,64,72,59,31,234,116,192,209,235,8,74,254,29,230,209,105,+42,43,141,236,242,41,187,236,156,176,18,138,135,251,218,19,110,3,165,229,14,181,10,79,56,253,65,187,172,224,212,112,+59,99,149,248,127,244,96,244,137,53,75,127,158,90,222,239,96,129,164,16,252,90,152,91,130,171,207,73,97,194,15,237,+106,247,92,16,77,25,168,239,57,42,69,246,229,177,106,230,196,160,80,3,182,34,43,93,240,40,15,205,169,3,239,89,+5,156,31,95,119,130,234,30,207,56,18,148,176,216,213,126,144,185,14,189,115,225,180,239,245,147,233,212,106,35,191,171,+18,200,199,212,229,141,37,254,188,254,210,27,251,155,58,220,6,87,76,24,186,192,216,56,5,40,103,255,251,167,217,175,+229,242,75,16,70,65,116,24,238,187,171,92,124,222,200,207,130,225,185,98,216,122,84,159,161,161,147,37,35,52,4,228,+97,166,173,130,222,114,233,138,157,176,94,252,121,98,192,16,133,45,65,254,245,222,39,217,237,144,0,116,156,171,149,16,+88,143,220,38,3,27,46,158,46,142,209,224,39,209,214,41,94,137,194,160,165,17,128,11,125,118,118,134,5,121,169,131,+225,31,20,14,200,249,57,159,105,69,9,66,189,108,208,254,26,87,159,203,92,45,153,233,126,145,65,239,50,194,56,101,+198,201,112,103,32,198,201,128,211,92,177,95,161,231,73,118,219,165,157,140,116,209,70,101,179,213,120,38,253,124,119,126,+62,17,136,209,33,148,177,152,252,19,86,59,12,92,5,36,234,190,82,146,133,73,208,252,49,214,39,95,175,15,192,158,+149,153,62,190,77,18,209,34,61,223,26,181,152,45,14,34,219,129,210,170,22,250,66,174,82,48,203,83,98,113,17,187,+20,4,50,20,159,232,160,183,157,40,129,201,232,63,174,63,110,132,12,187,71,201,252,51,160,50,34,1,215,24,81,27,+148,48,99,154,36,94,175,89,129,160,163,227,154,121,141,103,33,237,196,84,207,141,170,6,73,251,156,145,15,180,26,42,+104,228,111,132,109,132,132,52,232,180,143,241,48,32,92,45,135,209,90,53,114,251,162,196,68,34,207,179,69,182,1,46,+140,195,93,117,52,66,221,95,24,29,251,253,229,212,221,80,90,88,245,168,194,111,171,136,10,32,35,114,192,60,195,72,+239,80,129,183,8,241,91,229,229,205,144,230,238,96,98,144,98,90,141,170,9,215,210,88,85,0,95,232,104,25,110,67,+123,11,6,128,214,209,168,215,233,249,26,192,37,49,34,226,121,32,128,101,186,151,12,132,168,105,79,4,130,6,244,80,+190,72,233,5,97,182,57,202,69,211,110,27,166,117,207,185,221,173,136,2,195,150,108,126,153,92,131,149,124,200,14,64,+165,31,165,20,82,233,165,203,1,224,64,102,102,25,0,123,236,123,68,205,123,76,131,215,115,160,12,101,185,5,13,31,+179,135,168,240,161,202,2,14,160,172,160,233,96,189,240,173,131,76,234,149,179,99,156,138,41,214,229,55,252,26,73,218,+40,68,229,224,185,144,152,157,225,2,178,160,150,202,0,97,208,73,132,169,209,165,184,5,105,132,208,166,12,88,15,209,+251,52,171,130,76,113,159,243,7,65,146,214,175,85,222,214,162,127,159,201,72,151,104,216,30,92,6,206,222,236,198,19,+66,154,106,225,190,23,151,254,252,28,248,37,16,24,18,244,137,158,192,97,223,78,223,139,140,150,219,161,87,16,133,108,+182,232,106,216,144,165,216,54,59,139,34,247,91,29,249,140,130,158,232,86,64,86,197,128,125,115,94,41,11,99,168,81,+74,140,118,177,163,32,83,239,136,218,116,113,61,138,86,178,32,23,115,226,166,176,131,54,246,123,79,217,230,134,188,7,+108,176,133,1,152,61,238,10,233,85,119,147,2,193,253,235,101,174,187,166,72,126,157,133,110,183,11,88,127,63,129,219,+162,125,226,17,45,132,51,105,117,65,185,146,236,144,107,2,230,147,5,175,30,49,37,238,234,207,246,15,13,166,171,114,+175,133,124,226,106,63,163,157,147,82,251,149,16,11,193,9,166,6,148,139,172,178,219,226,70,143,217,31,103,158,179,218,+52,73,90,252,163,65,207,233,29,201,75,214,35,132,97,184,17,79,30,11,226,204,98,67,65,235,176,69,25,81,250,59,+12,3,220,67,56,165,6,226,101,24,35,179,4,41,250,116,84,7,162,145,88,209,11,159,90,177,192,47,206,138,118,57,+31,86,22,207,101,202,78,120,155,195,197,132,137,52,140,120,6,96,185,212,219,250,36,216,150,221,221,21,180,45,121,83,+155,103,97,72,12,201,82,66,212,209,210,60,165,61,135,34,93,239,97,180,213,1,180,79,33,182,157,218,61,80,201,92,+64,234,38,235,228,154,212,67,179,130,68,233,202,8,5,50,200,204,169,84,43,91,214,129,161,224,41,44,185,1,102,120,+118,85,169,119,54,10,184,40,6,27,229,60,45,227,18,183,155,16,5,204,196,118,99,192,7,227,20,162,201,150,142,20,+238,194,159,39,204,182,162,1,139,156,171,158,180,107,114,78,67,201,206,122,58,85,147,239,255,23,245,35,222,102,47,91,+27,58,166,110,240,179,11,78,70,204,178,29,63,186,113,230,55,116,74,122,29,104,216,42,155,117,245,91,220,79,16,139,+136,237,24,44,101,78,36,25,153,78,214,108,215,224,244,139,57,149,163,164,70,195,23,197,246,114,191,194,219,83,179,183,+139,87,68,97,59,242,196,254,159,154,175,29,79,143,137,126,135,27,77,167,139,208,186,248,62,200,163,69,26,254,178,195,+243,20,220,62,78,117,232,228,163,20,130,244,155,201,21,152,213,248,179,121,204,247,223,96,193,152,130,171,222,9,8,104,+129,83,66,207,115,66,221,227,132,146,142,191,162,109,56,86,125,37,143,62,41,206,93,117,117,28,182,132,238,144,109,130,+87,95,36,217,145,76,74,183,20,73,170,4,87,134,222,173,20,16,14,123,249,240,181,11,10,129,73,6,240,72,152,128,+219,178,115,58,155,135,224,181,136,48,29,162,45,184,182,249,71,226,115,24,212,105,46,250,157,71,33,40,84,205,194,58,+46,188,84,177,116,27,110,132,175,206,187,249,247,172,176,252,46,92,83,245,187,46,8,63,157,165,129,15,107,102,244,104,+175,115,242,158,149,229,241,124,22,199,68,27,37,178,164,173,234,167,210,140,131,79,39,98,140,119,145,112,48,66,15,27,+111,181,94,85,33,69,183,8,102,49,9,152,14,10,41,246,98,137,238,33,26,115,178,149,243,84,183,141,75,49,182,151,+174,16,220,206,229,38,206,29,37,139,218,211,153,143,31,43,64,105,159,4,137,68,76,129,15,205,47,31,251,248,116,203,+91,226,241,198,24,228,192,252,26,122,11,75,245,120,200,103,210,133,19,253,50,23,154,90,211,193,196,72,236,115,241,117,+208,20,73,27,144,192,24,96,245,178,224,136,142,114,190,246,24,132,56,126,122,178,196,232,202,191,195,254,27,17,209,246,+58,39,159,170,34,37,209,15,79,37,138,30,193,128,200,237,146,137,44,213,230,117,228,250,59,215,18,201,146,166,236,51,+152,196,21,175,80,245,237,31,122,17,232,67,70,177,38,182,168,106,226,110,53,242,160,226,12,214,138,193,151,232,95,198,+16,98,228,144,205,192,138,172,193,172,130,70,229,160,110,147,227,133,28,2,72,108,54,92,108,157,154,228,162,12,183,190,+113,145,228,53,159,176,181,77,93,187,161,227,200,54,185,37,130,235,96,216,97,127,19,29,38,183,92,134,244,28,237,90,+245,141,93,66,241,114,175,123,139,208,54,71,4,134,46,200,38,54,188,186,246,196,96,217,22,97,245,92,104,112,83,204,+213,100,223,21,1,129,116,43,152,162,154,111,8,37,166,233,193,118,83,88,0,212,31,187,68,67,105,93,211,231,62,218,+118,95,252,213,153,26,133,198,53,255,28,241,107,237,228,12,242,98,229,224,234,54,99,178,188,189,69,7,7,234,68,132,+175,12,69,230,252,31,65,244,190,75,27,10,186,126,95,68,38,135,226,101,7,23,6,179,124,111,155,115,116,81,35,214,+53,174,157,30,29,42,182,227,97,125,71,248,241,161,147,253,192,236,184,182,69,78,58,221,58,178,33,186,93,28,57,226,+254,123,214,230,194,3,168,193,255,134,15,153,161,221,214,79,32,255,8,199,115,27,148,41,192,209,227,169,12,157,140,226,+242,49,181,105,11,0,7,82,53,69,237,225,88,9,162,51,191,210,39,209,103,96,147,179,168,28,123,173,81,29,97,83,+157,145,122,63,54,82,199,232,219,140,227,140,9,159,106,102,239,8,249,198,17,34,144,164,227,146,1,6,6,174,226,156,+161,179,202,87,158,199,234,155,195,231,199,95,214,117,172,93,215,16,202,150,121,19,74,159,94,52,72,98,191,83,254,125,+128,19,186,61,186,210,0,20,142,199,247,36,254,167,165,93,13,76,187,49,170,3,103,252,50,206,111,96,6,162,133,243,+249,109,75,148,12,188,55,123,169,178,120,146,165,221,253,71,2,119,46,162,237,93,4,172,244,173,251,193,197,232,84,93,+193,154,118,181,242,169,167,92,179,203,13,181,112,103,12,223,110,135,169,18,225,54,125,224,144,57,226,101,133,119,130,119,+237,115,242,227,22,151,36,184,141,88,9,127,144,9,188,25,64,171,55,197,197,8,247,94,36,165,188,91,204,133,15,160,+56,8,104,54,63,201,181,55,21,236,253,73,158,114,113,252,17,45,78,191,81,16,25,1,72,85,12,143,193,198,212,100,+203,54,226,254,109,61,131,16,200,100,194,238,56,199,220,114,212,124,197,239,125,149,234,179,9,244,209,53,120,0,45,16,+220,191,28,75,22,255,231,175,213,185,83,75,81,55,155,113,98,85,28,5,168,71,39,248,232,27,76,74,228,146,4,122,+16,14,246,36,108,92,5,207,178,65,205,1,251,122,98,195,223,172,3,26,98,252,12,152,178,90,233,224,150,222,145,15,+127,232,39,57,95,35,223,237,9,204,106,245,34,35,211,14,44,94,12,105,240,100,207,105,71,29,180,12,128,86,166,65,+23,97,177,114,51,211,39,189,196,91,216,3,83,177,126,11,10,68,202,51,254,250,84,201,237,93,32,70,86,180,88,113,+216,174,144,100,91,190,254,92,126,152,21,88,22,159,189,101,171,41,110,38,134,249,122,36,75,1,186,189,88,151,220,8,+30,122,224,101,141,39,22,25,139,48,149,33,99,146,20,11,24,223,118,248,226,33,60,15,156,78,144,204,200,91,50,238,+25,199,227,50,19,105,69,35,204,239,204,47,40,122,3,221,138,100,188,155,219,160,124,240,129,196,111,5,234,51,52,200,+213,249,51,181,40,50,199,88,45,35,193,94,2,107,6,220,137,209,158,177,157,206,177,99,8,28,188,91,32,1,91,112,+84,220,118,234,91,195,194,117,34,117,39,106,3,193,232,14,131,66,119,89,192,140,44,189,199,246,69,86,194,109,63,143,+210,123,80,64,158,0,37,211,46,47,27,191,224,168,186,128,92,86,87,0,67,144,143,102,40,30,70,5,123,81,141,45,+186,111,228,71,83,102,226,19,22,163,236,49,45,52,196,250,95,10,227,234,70,77,216,208,182,126,174,62,250,175,151,184,+109,56,71,159,143,95,205,201,0,162,187,206,130,145,226,80,16,182,118,117,239,18,12,27,145,190,123,165,113,151,239,194,+247,147,11,194,130,243,219,221,94,252,123,147,221,180,106,233,180,176,10,169,171,199,74,140,37,58,208,139,248,190,65,253,+41,253,203,15,156,45,123,140,178,28,229,26,16,31,131,218,89,2,234,144,150,212,194,77,25,129,37,45,239,227,129,3,+17,153,67,135,186,121,93,177,229,222,62,148,195,206,116,122,103,253,122,246,72,85,253,97,50,162,151,16,9,88,102,13,+197,8,139,84,103,85,63,219,15,74,99,190,237,2,178,92,30,197,180,181,199,159,237,94,157,61,248,97,244,184,116,244,+22,96,113,52,45,140,249,246,18,206,107,180,195,15,85,110,131,217,253,10,53,197,130,142,249,131,203,75,226,255,90,241,+175,22,219,192,164,168,221,173,221,74,77,66,133,73,67,183,77,10,249,6,242,235,49,56,165,36,70,202,24,135,177,99,+216,231,238,71,125,135,148,180,142,165,116,182,134,79,212,115,35,95,18,145,228,178,254,136,139,221,28,73,127,251,5,68,+67,5,192,68,147,87,71,126,190,46,92,250,215,125,180,185,161,242,104,58,43,32,36,225,82,25,13,202,129,127,213,160,+73,165,194,99,110,169,140,174,187,168,7,22,94,207,247,35,231,220,137,148,112,62,184,210,171,242,108,29,39,26,186,99,+101,50,109,131,187,236,57,226,227,134,125,81,86,176,210,244,213,141,119,103,58,156,227,178,159,93,134,103,201,152,245,113,+233,95,116,149,100,208,210,161,176,114,179,236,79,194,32,86,151,15,191,125,225,167,157,151,225,216,255,33,226,13,28,204,+173,170,32,137,2,239,242,251,1,48,167,67,116,97,123,148,245,18,11,74,185,246,215,203,240,121,148,94,187,77,198,15,+131,1,150,83,177,175,23,62,74,88,218,144,250,173,195,171,252,87,152,78,49,125,240,116,15,59,158,112,7,199,94,217,+242,54,11,50,157,194,96,113,221,22,62,104,3,193,28,222,114,109,109,140,239,26,14,97,72,20,2,180,155,121,94,154,+219,118,164,161,108,115,239,72,105,20,167,104,17,204,226,140,217,87,128,217,66,144,107,166,207,28,91,211,26,10,67,10,+218,32,150,86,229,226,244,214,129,146,187,194,126,179,12,6,219,34,9,1,32,39,252,137,89,37,61,195,193,142,152,228,+237,229,138,157,106,105,246,106,136,66,93,0,10,66,99,221,213,22,187,181,78,25,204,203,94,172,224,86,52,218,247,205,+181,233,244,214,83,185,206,237,72,15,246,51,98,86,154,138,80,222,61,214,93,119,70,58,3,171,244,24,104,154,47,76,+9,146,35,241,71,201,91,209,146,223,0,101,221,41,242,216,155,118,82,139,116,82,214,156,47,85,9,24,197,76,71,43,+130,44,159,182,148,42,0,253,5,236,20,54,106,236,232,108,62,119,111,29,128,235,227,93,129,245,92,75,163,55,99,220,+74,155,41,99,234,19,65,243,83,119,7,52,68,24,165,187,160,224,184,92,5,74,35,177,255,246,106,231,205,125,81,112,+110,87,89,211,169,106,106,61,141,156,155,185,136,248,137,50,189,36,101,140,115,199,237,215,66,253,197,78,71,105,115,110,+225,236,21,32,47,180,107,176,226,242,83,94,179,80,221,22,136,11,163,254,96,170,85,187,139,189,151,117,77,140,75,22,+186,142,162,136,13,86,89,72,140,15,181,0,109,82,58,96,184,204,13,23,108,164,161,173,6,0,29,130,149,177,34,34,+38,106,93,196,39,54,91,71,10,40,55,227,86,224,189,122,17,121,133,40,241,231,84,139,92,13,60,40,206,54,34,189,+247,16,128,49,107,136,228,27,233,46,209,13,214,139,207,174,249,57,96,145,23,118,12,244,146,101,133,212,138,141,98,192,+147,106,80,196,37,68,187,67,125,174,70,104,0,172,104,214,89,64,199,2,244,64,150,206,96,223,218,31,97,196,171,145,+19,226,37,27,69,97,48,210,237,129,184,23,161,134,171,149,181,175,245,63,133,243,125,237,128,30,154,73,34,95,251,6,+155,136,82,135,30,166,181,44,33,185,252,213,160,100,245,44,96,237,234,92,74,145,55,127,59,20,199,196,182,2,89,140,+148,114,167,173,30,244,112,96,89,187,187,220,238,124,63,168,185,154,70,193,86,190,0,3,4,83,222,192,255,177,79,138,+124,5,221,40,216,52,14,78,42,164,27,50,169,248,123,124,104,69,26,215,193,187,251,88,139,234,204,48,33,47,238,167,+255,164,211,235,147,187,77,163,140,252,38,104,132,165,188,117,71,25,14,150,226,216,68,31,129,217,220,138,226,138,187,142,+34,200,44,89,22,68,254,6,65,193,215,40,41,203,222,52,187,240,205,233,90,213,193,17,8,133,212,37,79,64,251,58,+236,9,248,213,92,214,238,233,94,183,205,240,37,6,188,149,147,253,232,95,78,93,111,185,224,213,108,118,235,141,38,234,+77,173,10,227,51,130,4,111,188,233,97,143,6,165,134,204,41,170,35,165,112,58,152,22,122,28,172,161,61,252,232,41,+199,169,107,8,93,123,169,150,96,15,109,221,252,117,196,80,2,142,249,47,95,47,104,244,195,221,82,227,24,220,42,152,+1,199,210,157,88,44,9,85,173,107,62,152,154,100,127,38,198,107,145,181,11,117,187,199,73,69,6,112,198,227,205,13,+225,203,233,30,23,119,104,108,88,99,76,72,78,166,82,80,28,245,206,101,80,171,255,75,188,6,192,101,118,45,15,127,+204,38,110,62,106,10,232,219,181,212,202,75,82,163,235,87,69,130,139,135,88,5,65,157,233,179,75,212,230,113,158,189,+193,250,49,154,174,77,153,184,174,233,17,191,129,5,213,123,59,121,140,233,151,47,104,152,149,107,190,133,155,61,40,218,+182,120,159,63,113,194,144,227,11,240,68,116,27,73,151,37,47,230,1,6,96,135,180,177,14,4,244,205,244,20,25,57,+156,78,196,2,194,91,165,44,167,169,199,223,183,224,82,44,74,148,148,53,229,175,126,180,120,74,72,184,62,178,217,24,+160,157,18,231,216,169,74,61,208,88,157,116,179,124,64,33,109,197,166,121,94,174,219,1,221,228,70,138,215,163,116,90,+136,50,125,98,41,160,129,154,21,50,49,56,59,206,38,66,72,176,176,234,64,80,178,252,46,217,6,116,154,82,89,170,+167,11,122,79,78,253,109,120,182,165,223,230,12,235,6,94,23,215,58,140,95,179,238,227,19,11,211,203,213,84,90,98,+85,55,31,245,219,108,9,191,33,205,115,54,219,50,241,49,228,39,246,76,168,101,50,123,123,164,76,230,35,1,17,148,+97,162,242,252,17,9,197,199,141,170,56,83,86,135,242,142,192,228,68,157,135,232,123,211,250,90,199,215,200,30,230,212,+25,120,191,162,10,83,128,114,1,112,212,215,20,210,193,143,229,116,213,0,220,142,89,145,5,255,67,22,221,243,150,175,+149,62,124,149,136,177,219,145,78,106,79,42,18,222,233,81,179,242,196,199,214,159,215,49,208,45,65,9,173,218,204,160,+188,171,139,145,103,125,226,111,51,72,189,2,187,145,16,59,225,78,69,163,73,140,68,68,34,199,160,53,241,95,251,136,+126,164,210,130,31,25,41,225,255,81,104,16,73,113,25,230,35,23,194,218,161,91,122,249,47,21,122,93,240,9,145,61,+74,31,187,11,209,66,188,6,182,24,239,97,166,245,135,96,201,154,54,75,225,99,210,221,233,114,149,110,24,131,10,174,+85,137,232,237,82,82,80,30,60,233,46,218,57,88,228,116,51,246,6,110,46,108,191,219,21,49,91,161,48,0,116,4,+255,245,20,202,242,61,101,228,28,39,9,249,227,156,48,103,11,102,100,156,113,206,105,36,95,9,30,218,12,147,129,73,+225,46,165,179,167,182,69,168,32,86,92,165,119,236,92,177,145,6,203,135,77,56,129,70,159,86,173,180,140,129,227,228,+75,253,195,132,228,137,120,254,138,14,194,117,116,42,160,162,143,74,153,240,40,18,185,230,69,109,234,169,154,216,4,127,+218,236,56,253,243,113,171,128,143,146,25,33,63,252,145,140,227,220,144,59,235,148,124,23,252,214,55,58,91,250,7,17,+237,143,120,218,236,132,99,185,81,229,87,40,67,220,137,55,228,171,90,166,60,211,173,24,60,217,51,12,253,130,102,4,+175,230,194,213,103,85,116,45,156,221,252,22,108,3,146,107,121,204,202,252,151,37,125,93,178,79,105,202,55,219,115,113,+149,188,48,13,62,17,215,153,136,54,55,53,237,119,21,118,71,68,55,146,203,39,153,34,37,154,149,15,115,80,31,50,+81,45,124,65,180,121,145,210,156,11,57,166,115,167,176,48,165,5,169,173,47,194,203,121,116,37,193,161,242,156,108,174,+1,178,73,55,198,98,170,131,114,177,249,248,150,227,168,104,122,138,121,248,20,143,222,180,77,13,184,127,188,45,129,205,+144,177,207,96,53,197,57,147,77,5,5,161,174,251,191,0,246,232,114,2,249,71,128,195,37,92,58,166,240,131,187,26,+219,24,48,7,182,44,75,197,120,33,97,24,255,127,206,124,8,179,193,64,46,70,162,211,180,20,5,79,204,141,46,109,+3,130,150,214,98,208,9,212,85,194,71,192,197,0,125,206,124,48,63,157,152,113,87,143,29,99,74,5,44,3,37,61,+1,195,155,193,179,115,25,167,125,74,58,86,159,5,182,169,190,28,207,199,97,141,183,152,71,26,88,252,28,137,194,2,+51,162,159,96,211,3,24,20,92,95,34,68,116,21,75,25,132,20,84,61,124,65,215,115,121,2,121,211,241,79,85,15,+21,134,240,179,206,5,104,45,211,90,172,41,97,67,187,36,128,230,234,245,148,197,164,114,224,47,220,190,159,47,127,50,+89,2,17,46,128,245,150,197,217,169,168,191,150,194,36,70,242,9,196,163,235,7,145,187,232,254,243,9,190,14,156,97,+8,4,65,47,9,195,106,191,233,191,45,108,41,247,112,205,47,49,241,223,230,195,24,153,206,87,39,77,96,238,89,91,+193,31,180,111,45,187,181,28,109,56,234,100,195,132,89,125,215,118,35,117,4,237,50,206,191,27,254,190,238,169,99,149,+48,116,208,30,193,251,117,65,221,248,189,136,236,94,149,81,237,25,92,208,255,123,170,61,152,176,192,224,4,253,144,41,+96,193,9,171,244,20,166,183,202,35,231,222,181,57,127,119,219,79,193,64,146,146,100,69,72,204,87,151,206,115,254,86,+217,22,231,255,116,71,99,162,10,202,176,239,200,108,66,209,196,76,191,66,37,33,225,179,100,230,52,5,188,125,128,190,+72,239,184,91,150,181,20,43,3,192,103,193,70,146,218,18,100,60,155,55,35,100,24,250,216,199,244,185,91,98,105,104,+239,172,74,40,107,139,77,151,145,192,40,33,100,226,32,145,87,86,131,183,41,191,69,8,10,41,208,225,101,118,193,58,+173,220,46,233,94,138,60,218,242,220,141,252,38,191,120,137,14,65,123,186,104,60,185,43,255,208,68,105,16,128,61,93,+144,27,98,178,200,2,91,68,112,240,146,149,79,163,130,49,202,241,145,97,60,159,127,66,58,7,206,6,250,126,125,24,+128,74,143,43,255,80,211,83,45,207,0,223,4,83,207,104,1,182,166,219,132,165,57,102,40,164,209,255,126,118,199,183,+210,250,111,70,40,37,179,179,134,135,159,107,34,134,196,156,219,154,126,45,192,255,116,184,57,224,209,118,57,61,231,63,+56,152,216,136,0,148,75,223,11,185,101,26,180,47,158,51,58,95,170,103,253,224,150,215,74,199,191,178,134,238,229,219,+179,159,35,90,128,35,218,172,98,187,209,74,145,110,62,179,47,79,7,68,189,90,150,37,229,229,228,39,101,11,157,41,+32,119,158,254,191,122,73,169,12,128,136,121,53,120,140,68,193,104,113,105,114,33,15,57,202,183,61,0,127,96,202,113,+186,140,123,181,68,174,55,88,47,130,150,54,71,116,10,148,90,179,160,226,176,22,21,183,212,105,160,101,58,39,139,209,+21,122,112,105,194,17,183,128,69,223,255,207,6,32,140,201,92,229,68,44,208,225,69,241,116,199,183,206,170,83,168,68,+225,107,213,143,73,50,71,19,37,50,194,91,75,104,69,17,254,121,226,110,173,254,175,15,54,129,73,45,54,213,115,203,+166,205,145,26,247,58,49,208,121,132,144,100,56,142,209,251,237,245,129,141,129,140,214,229,133,231,183,23,73,193,78,74,+18,30,211,183,143,169,125,250,133,198,130,177,227,155,103,14,75,124,138,103,33,52,152,169,55,127,106,151,35,94,62,93,+96,32,54,233,59,98,51,248,83,75,120,201,11,60,14,122,203,85,180,199,43,204,197,67,243,232,234,145,1,228,255,215,+218,202,252,62,67,144,199,75,14,7,34,88,0,31,153,42,98,32,39,211,63,53,104,136,244,174,43,126,242,6,67,17,+255,98,238,128,47,127,252,175,220,15,58,220,207,72,154,50,133,7,17,119,248,245,181,68,31,135,159,61,131,38,100,253,+219,97,74,158,185,113,156,47,18,119,101,127,37,138,123,171,120,167,103,93,18,3,27,64,32,162,65,198,168,41,148,53,+244,96,195,142,17,52,247,34,170,50,183,6,198,250,212,84,231,74,236,38,72,241,83,13,134,120,52,236,9,88,196,78,+245,249,54,100,213,189,54,115,203,246,198,58,254,166,85,137,90,68,8,233,77,143,138,117,240,174,133,137,41,237,199,183,+223,46,176,116,14,206,4,158,217,81,77,23,41,50,83,27,215,137,225,187,162,39,125,152,25,38,50,51,121,246,5,37,+139,46,44,59,101,254,203,79,252,226,36,196,136,196,37,234,201,94,150,10,69,110,101,142,65,101,128,254,105,168,86,47,+237,73,101,171,144,248,150,135,20,205,49,105,238,245,98,189,43,122,84,253,22,1,212,79,161,30,93,100,5,54,120,5,+212,113,201,31,75,45,249,8,89,136,218,12,147,168,59,37,57,19,106,158,147,252,67,255,73,63,106,42,105,234,37,193,+159,106,16,3,35,21,159,193,129,31,87,111,42,110,255,205,237,141,142,38,24,24,140,102,44,68,24,84,182,72,92,161,+86,53,162,129,91,216,129,86,141,50,193,50,137,21,135,37,215,249,116,84,63,210,144,254,81,95,144,180,133,234,77,217,+185,212,86,25,102,113,113,150,45,169,70,2,98,237,194,106,60,153,146,184,38,51,180,67,112,30,86,1,237,229,190,146,+52,158,238,150,113,198,226,204,3,190,110,112,42,173,111,110,214,48,170,7,239,1,174,240,185,145,81,61,130,60,120,45,+49,214,225,237,77,176,31,129,201,128,110,47,61,232,129,31,142,198,88,134,42,249,51,234,167,111,4,142,169,71,237,54,+87,211,14,124,58,39,185,192,61,121,153,79,208,136,140,109,217,155,130,161,233,127,54,1,236,51,82,179,78,211,45,212,+237,1,247,121,9,139,12,220,240,199,55,227,64,90,107,28,233,68,60,64,5,83,224,169,169,48,63,86,112,193,175,212,+118,32,121,177,194,171,190,71,227,2,118,44,98,90,66,72,224,159,153,128,93,62,161,104,132,169,206,242,118,122,214,74,+119,101,173,241,54,162,107,175,142,251,36,178,74,210,38,104,153,137,102,179,37,144,147,138,19,140,94,153,88,19,152,167,+25,168,49,5,41,27,210,49,41,244,118,35,58,180,114,198,14,126,21,202,51,117,168,208,147,73,135,224,32,117,29,233,+35,109,151,135,48,70,232,167,116,196,118,6,236,115,51,206,143,115,116,200,239,220,168,7,103,185,51,43,231,191,6,171,+246,222,79,167,162,150,20,128,211,253,191,186,168,224,219,100,17,75,122,57,59,29,249,57,24,93,236,221,89,176,40,231,+29,168,243,166,136,68,90,60,46,58,110,244,162,251,209,0,107,53,170,165,125,229,0,254,211,25,92,160,152,10,103,59,+193,45,159,105,173,254,56,251,40,123,22,30,94,34,182,200,94,180,9,8,7,129,149,98,146,63,175,141,68,70,240,98,+7,233,158,220,153,128,27,66,214,82,65,159,46,170,236,156,48,204,115,154,38,30,20,61,24,48,109,162,211,92,197,120,+232,5,148,236,111,154,96,222,94,99,40,116,109,67,206,65,112,61,253,72,29,125,48,198,237,83,168,125,20,110,17,56,+218,178,202,166,154,223,29,131,213,4,79,165,196,228,44,11,241,37,251,12,59,46,96,141,162,198,6,94,37,53,121,185,+211,126,174,152,5,109,181,187,197,231,168,152,169,45,164,51,161,135,222,55,240,48,156,199,110,33,111,182,38,255,122,60,+207,184,133,231,100,195,97,42,163,28,216,115,86,175,204,254,205,219,51,103,96,233,247,211,98,47,147,232,30,73,34,134,+0,163,131,15,29,45,168,103,253,120,238,145,190,37,153,215,120,206,116,165,246,244,84,237,10,237,107,36,214,150,206,158,+236,33,79,141,144,105,153,96,179,154,13,65,240,184,181,76,103,36,167,185,91,180,40,9,207,5,139,172,23,200,190,15,+114,115,79,158,152,21,240,39,65,112,64,144,21,123,151,181,30,90,121,16,252,69,137,1,155,223,239,100,158,50,88,251,+203,229,105,135,222,185,217,12,178,3,238,58,194,171,95,83,15,151,168,113,204,253,195,155,141,47,48,1,173,203,8,238,+138,84,9,117,101,81,223,209,83,170,111,115,89,82,67,108,255,206,97,182,108,231,181,14,166,173,183,213,241,113,10,191,+41,180,212,147,94,37,161,0,223,246,45,29,226,140,99,191,211,16,126,146,208,238,152,202,80,97,240,21,62,143,137,69,+131,216,16,168,2,169,245,201,127,65,243,47,103,157,211,47,159,178,252,53,255,196,230,221,99,31,133,24,180,126,123,128,+49,206,201,165,42,222,7,212,45,63,56,30,37,239,76,11,211,102,26,93,239,29,40,127,143,139,139,41,19,226,95,74,+135,229,229,166,84,173,192,189,133,174,197,235,50,161,18,12,17,26,107,238,158,183,179,208,6,233,48,79,67,6,22,224,+141,3,184,137,235,42,222,9,150,231,163,162,83,187,12,74,181,82,253,43,207,80,177,77,96,146,183,138,238,240,160,124,+165,98,117,29,228,227,111,191,66,202,1,210,155,79,208,163,155,3,153,134,123,39,41,150,144,133,30,17,143,98,68,195,+251,227,77,226,4,126,98,42,14,254,121,120,99,255,78,106,73,42,215,82,239,83,90,76,176,27,53,11,34,16,241,219,+131,183,234,112,163,200,9,30,239,96,105,0,62,179,103,45,52,129,162,223,11,211,86,221,181,232,239,52,131,151,177,31,+101,39,155,206,182,39,28,193,227,80,8,34,63,133,244,18,186,111,53,104,180,184,130,56,12,215,189,83,131,162,36,52,+72,218,121,22,89,14,16,243,248,79,64,76,45,41,32,83,121,43,26,241,7,252,193,201,73,123,246,128,146,127,80,235,+127,93,112,224,254,156,81,125,119,37,176,141,82,239,109,30,224,15,155,49,11,45,12,154,240,138,81,237,248,93,15,214,+122,246,23,35,153,192,47,69,23,41,87,231,159,143,108,14,165,204,84,44,186,71,22,16,10,41,183,190,209,29,48,7,+202,94,190,190,11,248,30,181,157,87,146,44,28,105,235,187,164,130,2,1,82,10,98,240,25,47,102,174,56,138,46,202,+96,190,223,199,204,49,103,113,40,73,69,223,206,168,227,206,119,123,66,204,220,58,65,228,128,149,103,108,80,130,33,28,+192,109,126,211,124,175,146,227,36,152,233,132,20,222,57,157,63,245,147,59,161,183,222,144,3,114,118,91,239,152,201,25,+191,242,110,189,18,120,136,114,133,145,187,210,132,36,26,152,238,226,177,9,69,173,161,56,199,94,207,10,152,27,4,204,+61,210,109,235,249,239,92,197,80,7,185,174,15,75,15,46,169,69,67,7,148,12,18,253,92,209,127,128,35,74,241,215,+109,208,169,178,205,146,112,235,121,241,167,66,23,254,246,247,141,139,100,252,162,105,146,245,219,96,234,115,110,25,138,115,+99,218,66,229,165,131,202,36,238,235,120,18,41,3,141,113,80,33,95,32,222,154,188,196,88,247,147,22,86,44,97,235,+75,124,47,37,148,245,183,137,132,235,230,243,30,80,139,152,172,42,133,8,103,174,72,245,62,48,171,50,222,124,92,61,+57,228,189,103,76,215,154,225,104,205,50,186,95,10,197,187,105,219,116,156,78,219,230,207,242,39,68,8,143,254,224,61,+176,1,232,168,170,190,199,144,212,87,3,106,163,157,8,58,100,149,89,159,220,186,177,114,164,182,124,114,220,28,151,132,+170,241,232,81,81,1,216,239,101,131,202,47,179,185,178,218,228,7,47,175,230,147,191,190,30,227,134,168,223,181,137,197,+8,152,117,201,42,67,90,237,189,129,226,167,176,38,236,97,62,160,94,83,58,198,35,241,56,254,108,28,245,14,196,84,+163,243,248,72,7,42,248,103,169,47,253,81,106,91,134,128,189,213,124,65,232,54,100,176,236,130,225,22,22,193,122,156,+99,195,77,225,66,211,85,76,38,246,216,219,141,29,151,143,210,27,112,153,240,253,132,197,15,58,198,129,41,22,34,223,+53,150,61,101,237,186,203,113,200,231,195,72,17,241,174,90,58,177,18,144,62,64,242,228,219,144,2,70,249,240,116,248,+71,13,92,48,165,112,129,71,185,56,111,222,31,19,41,26,94,217,187,156,80,159,98,15,107,145,59,141,69,162,137,161,+208,78,130,148,66,41,116,75,41,205,227,177,208,29,113,116,5,42,191,168,175,172,161,104,156,149,108,172,209,131,139,51,+22,44,85,9,254,86,209,12,65,185,192,228,49,250,87,158,230,251,241,235,191,49,153,0,75,22,235,176,218,173,244,47,+36,175,49,0,219,96,220,154,130,226,26,171,71,172,179,98,183,164,155,19,140,110,110,41,40,114,194,199,0,28,97,103,+123,136,133,82,208,255,75,113,181,254,186,68,55,37,132,212,41,12,41,118,227,73,39,177,123,132,151,74,35,84,74,211,+164,9,143,147,227,31,73,95,204,239,30,109,215,217,169,124,101,89,131,222,172,111,226,255,166,61,78,71,168,101,99,193,+255,13,48,105,141,70,146,211,116,106,86,7,177,242,45,216,237,132,247,172,98,174,165,164,181,206,72,199,238,235,77,131,+145,224,5,84,82,5,120,227,198,141,247,140,11,73,77,152,91,174,200,219,159,128,41,137,63,36,240,169,164,175,222,196,+201,187,152,191,111,121,156,123,67,93,88,10,230,63,200,36,108,234,93,241,197,69,165,8,11,146,190,170,157,57,94,35,+67,251,0,215,231,227,215,124,102,79,115,115,186,247,72,115,24,109,236,223,103,75,94,33,233,14,192,123,30,89,94,243,+180,217,180,6,142,208,24,57,249,174,198,3,124,127,61,138,147,77,186,139,58,36,55,85,22,157,78,200,160,176,63,91,+52,9,174,185,182,173,47,153,238,31,199,115,33,110,42,203,71,38,230,67,76,86,217,171,237,90,120,246,81,112,93,237,+103,30,29,104,147,213,28,221,24,254,54,207,147,77,191,33,185,78,163,85,14,254,181,24,112,64,160,103,185,227,209,56,+60,53,239,92,180,196,58,203,190,28,133,207,184,57,237,14,44,220,60,62,206,239,48,7,165,221,195,231,237,60,141,37,+158,220,206,65,200,29,99,246,80,235,26,216,41,19,50,90,1,9,210,4,246,73,180,174,5,118,92,196,105,180,236,80,+27,212,7,11,42,142,114,206,190,28,89,158,152,21,228,33,212,171,230,152,125,47,57,153,226,86,141,18,153,108,101,123,+142,144,143,174,75,181,56,134,142,73,43,248,77,249,146,205,63,157,215,236,79,67,130,114,198,232,247,10,191,172,29,144,+156,170,127,92,10,109,69,79,84,183,164,6,16,174,21,175,68,172,179,248,207,132,222,148,75,193,56,22,238,30,153,86,+152,166,243,33,10,152,144,204,147,236,113,149,187,136,88,77,231,86,22,54,163,100,179,86,32,97,11,117,7,24,120,90,+220,42,68,116,65,210,252,138,10,84,173,105,59,68,87,202,161,149,92,207,68,116,146,111,191,123,162,200,194,66,207,101,+52,112,153,129,80,14,123,213,74,72,106,203,175,77,119,242,249,78,125,218,240,87,63,118,212,84,207,98,112,237,77,252,+237,156,186,56,47,82,173,107,48,20,6,90,9,50,46,136,109,69,21,119,165,120,151,179,205,242,213,171,252,119,222,208,+8,250,171,118,71,124,210,220,240,217,110,116,17,212,104,136,194,183,73,38,77,210,76,10,97,2,116,122,185,160,83,88,+3,69,155,250,215,176,81,255,82,134,151,135,33,116,182,127,252,156,45,51,8,235,226,203,92,149,195,30,108,222,32,36,+197,202,60,195,76,246,202,196,111,216,163,153,206,97,227,33,164,245,131,231,61,76,42,160,249,28,20,102,143,126,151,47,+128,144,216,49,10,150,30,22,91,90,37,173,255,172,170,111,184,64,45,174,186,107,59,160,251,73,14,45,45,144,140,175,+155,179,199,38,83,17,174,18,147,30,206,102,72,148,162,222,75,227,43,74,191,12,199,235,135,151,192,94,79,61,188,231,+21,227,127,251,156,251,173,160,220,247,191,250,127,140,109,61,116,116,233,19,180,15,152,223,190,212,179,167,175,170,144,242,+206,155,158,195,22,13,193,162,231,76,30,38,140,43,35,138,225,54,189,142,219,135,223,6,100,178,31,69,200,78,105,18,+57,46,15,17,133,43,126,118,75,184,7,217,64,143,170,30,129,38,243,144,185,4,144,139,28,155,141,68,140,16,50,112,+18,154,144,47,84,47,31,173,60,71,91,121,48,244,42,181,53,64,38,163,162,209,53,99,67,130,120,229,237,51,115,72,+134,154,127,205,253,159,193,170,143,47,2,234,114,97,212,22,255,141,178,54,226,213,44,187,61,126,23,241,116,183,57,97,+153,54,234,118,196,214,119,65,207,120,58,138,114,32,215,187,150,215,54,96,105,154,29,28,225,215,13,224,145,47,99,24,+40,230,214,88,40,115,86,150,120,117,59,24,54,54,110,85,107,95,44,111,75,97,4,129,195,196,174,45,220,206,155,43,+250,253,61,44,193,109,195,248,126,164,254,73,121,188,178,122,44,26,6,112,205,21,69,39,157,69,136,60,52,18,229,195,+22,84,192,80,218,117,79,213,1,238,85,172,141,218,15,48,105,197,173,64,249,204,229,104,195,205,145,144,117,201,223,113,+165,19,122,148,173,21,141,85,252,30,80,247,43,183,80,202,51,111,165,160,27,232,0,123,20,72,207,24,43,90,26,134,+152,118,44,174,49,24,18,83,139,110,206,1,255,244,67,140,0,10,170,128,186,222,61,91,2,0,35,114,13,118,74,88,+26,118,134,244,35,107,125,6,162,8,247,206,31,187,51,117,146,250,120,98,243,93,60,132,246,162,121,191,213,11,79,117,+181,117,124,197,1,168,33,124,173,213,249,135,94,50,187,205,254,10,58,21,61,108,127,151,146,160,48,215,47,186,75,235,+137,126,165,146,225,123,68,5,121,251,223,190,109,139,130,210,29,91,222,82,212,101,148,63,230,201,52,131,217,148,192,39,+109,133,150,157,231,115,95,206,233,238,119,99,112,160,172,66,56,142,92,18,162,80,217,170,214,85,218,223,204,170,99,223,+137,11,69,137,60,23,102,41,147,14,227,89,132,85,85,245,57,73,174,177,248,227,72,234,252,47,241,185,222,198,80,47,+249,84,4,177,216,230,111,85,197,194,159,218,39,0,165,7,9,232,205,49,4,56,64,169,67,52,165,209,238,214,72,51,+60,35,18,236,35,178,81,220,125,32,185,127,190,120,47,241,72,59,236,59,187,218,136,49,116,50,24,16,47,147,70,204,+54,177,198,39,80,171,123,224,1,48,150,106,224,4,99,246,109,250,237,70,211,165,167,187,156,123,52,111,49,29,185,74,+187,139,77,143,11,208,24,84,45,159,161,178,28,60,86,243,74,70,138,252,153,94,44,239,47,197,190,188,136,193,11,75,+167,53,6,185,244,0,60,108,30,223,223,238,98,172,144,244,77,50,31,129,105,194,123,47,243,31,54,122,57,159,13,161,+88,247,142,187,53,20,137,171,216,76,59,186,52,34,207,115,31,29,118,234,194,203,177,90,40,64,205,15,191,75,197,187,+62,77,246,99,47,134,66,29,12,241,215,189,88,130,238,67,254,229,188,185,74,88,154,218,217,49,127,101,239,38,125,155,+123,128,206,173,202,80,154,1,218,241,122,63,205,53,51,32,186,240,26,120,79,173,162,55,138,162,101,169,157,113,24,125,+200,99,80,137,199,187,95,57,187,10,96,18,246,162,125,239,123,138,99,210,200,152,244,93,149,255,231,70,117,11,220,78,+6,84,83,213,48,29,75,153,152,154,215,183,177,163,43,145,115,215,30,156,6,110,128,240,43,83,158,40,94,36,192,73,+135,185,238,116,161,94,112,99,12,75,101,146,183,29,108,255,246,209,245,66,72,26,89,39,110,208,151,58,112,22,200,139,+169,167,118,29,184,70,157,224,194,144,196,185,248,203,116,216,98,207,211,119,87,167,243,202,124,123,96,190,208,110,121,210,+27,206,34,194,71,236,120,85,124,95,0,191,89,32,205,74,106,133,246,67,153,140,85,179,143,185,119,12,188,42,124,82,+0,52,222,82,109,70,128,79,43,31,4,200,64,182,192,106,233,5,168,127,157,226,36,43,110,212,139,53,196,144,5,68,+157,44,8,199,230,19,6,141,173,168,174,5,184,31,2,14,52,238,67,145,115,77,240,207,69,122,220,204,236,113,161,252,+98,201,41,109,232,92,189,70,161,23,188,194,164,188,155,215,236,67,232,188,241,195,132,213,64,144,253,88,184,126,61,157,+111,3,233,80,34,101,121,40,191,25,182,222,97,52,244,117,42,238,94,12,140,48,164,239,217,228,48,145,85,252,35,1,+240,148,133,86,85,3,252,164,22,202,112,120,54,151,88,4,219,140,211,62,76,54,43,227,61,42,72,166,227,196,251,242,+158,7,53,163,39,23,193,170,171,95,27,169,189,49,248,102,48,103,165,186,172,185,59,83,44,88,10,37,181,55,1,185,+95,246,20,7,38,20,12,78,34,222,206,45,146,103,238,77,161,25,19,175,154,147,116,194,175,193,122,100,81,195,249,29,+83,103,138,35,94,83,190,188,124,38,87,84,223,55,160,33,147,18,152,132,208,151,150,233,172,137,99,60,167,24,84,229,+237,172,146,213,154,203,224,5,191,241,161,175,177,41,13,97,236,34,122,220,48,115,123,162,66,62,87,250,101,14,183,212,+116,175,38,96,191,83,220,178,125,224,218,61,41,117,74,61,78,226,190,23,131,201,145,5,248,54,170,75,201,160,128,151,+151,96,179,162,186,159,53,161,111,109,51,186,225,113,226,224,95,124,4,94,205,228,18,119,10,169,5,62,138,154,144,57,+138,200,156,19,78,207,184,250,167,170,134,191,217,226,23,97,234,142,14,120,138,177,121,20,211,97,157,55,1,148,246,206,+172,40,110,217,137,230,124,251,49,194,49,236,45,53,53,94,38,22,255,122,221,75,221,179,34,68,108,46,26,218,44,71,+14,189,225,65,206,14,60,227,90,174,106,252,135,137,121,223,146,255,50,236,100,229,229,90,74,102,182,146,93,48,211,174,+195,55,113,63,107,103,177,10,219,79,90,198,138,55,60,210,49,34,149,165,127,196,53,187,150,161,104,64,30,50,147,142,+186,176,61,169,27,244,196,70,235,63,148,242,131,239,194,170,8,138,195,140,161,127,158,2,219,198,236,39,38,126,132,122,+222,69,194,253,102,215,192,85,27,18,63,40,79,163,158,13,98,178,51,96,104,158,85,173,128,172,242,182,221,84,111,227,+187,47,178,160,233,185,130,250,221,200,28,162,2,102,134,9,115,150,70,200,136,245,7,28,254,251,12,75,234,80,102,198,+146,20,130,109,247,141,148,165,123,254,177,3,13,185,43,144,124,144,112,93,143,51,58,47,193,27,41,166,40,225,128,22,+92,203,103,47,47,48,30,171,171,216,173,248,6,217,160,242,1,64,61,164,178,240,202,161,210,155,78,127,84,182,152,8,+140,138,144,120,103,83,207,29,52,68,95,179,110,233,54,164,242,78,182,225,129,137,215,97,154,79,184,128,168,152,130,130,+36,177,132,0,51,15,157,189,199,135,242,65,217,31,56,226,170,127,68,235,163,11,134,31,79,100,180,133,121,254,42,179,+227,38,180,168,172,43,247,112,223,121,226,107,187,12,99,199,155,123,123,137,54,205,164,193,0,232,81,104,100,94,22,71,+177,152,211,85,240,87,113,166,111,89,85,208,80,100,200,237,154,137,251,230,158,134,150,31,29,55,100,116,202,57,117,110,+77,123,9,69,201,148,221,237,72,62,198,53,238,188,28,245,83,19,84,27,228,175,164,17,14,79,134,159,165,204,177,75,+76,118,253,83,152,4,249,7,109,248,167,145,161,74,105,3,42,52,48,97,1,208,218,141,242,30,177,217,22,127,104,183,+146,158,251,25,94,149,244,81,192,226,91,194,171,204,193,247,109,220,113,214,32,130,22,113,149,141,254,36,69,240,82,12,+175,169,155,48,85,189,138,78,93,128,90,140,78,81,35,89,81,238,104,26,181,188,224,15,37,223,242,177,80,184,251,135,+117,73,170,62,194,59,118,253,133,42,126,31,119,39,239,103,253,126,55,205,243,216,94,84,161,104,234,22,88,86,214,211,+255,33,46,106,53,128,163,77,60,242,93,94,171,200,31,63,141,124,67,170,84,239,72,117,30,154,213,111,18,232,230,110,+32,39,225,233,209,235,42,110,124,195,24,128,194,148,115,139,128,240,198,99,126,85,238,240,62,124,241,68,136,30,186,144,+236,72,117,249,45,137,73,62,78,55,6,136,76,209,57,136,17,213,172,99,82,128,244,47,73,136,123,211,105,42,165,18,+55,244,154,234,201,160,83,148,25,182,192,28,101,156,127,111,71,248,245,69,251,26,124,74,164,24,24,1,110,43,243,144,+219,202,195,150,18,92,108,168,220,200,12,81,213,18,148,113,238,210,106,116,55,151,1,148,127,240,23,192,84,214,9,237,+246,112,69,202,152,189,3,170,80,131,129,47,4,156,12,10,24,199,48,228,190,218,242,231,182,154,150,2,146,20,113,216,+44,195,113,135,46,166,230,103,133,22,187,99,173,127,237,25,90,242,168,72,122,47,0,84,0,231,27,112,104,161,22,63,+219,16,175,236,133,208,70,2,185,95,132,237,178,200,82,191,125,165,17,155,208,114,208,101,131,124,79,140,121,186,114,226,+216,178,203,128,219,164,8,238,86,19,106,76,69,221,241,172,42,241,79,71,149,254,218,185,57,109,78,65,230,185,64,71,+81,106,103,91,4,126,102,179,53,133,156,16,137,32,37,38,195,7,81,192,151,187,82,227,89,212,179,3,180,130,193,167,+218,74,242,80,65,26,188,135,52,66,95,134,132,58,76,190,74,40,104,117,23,39,27,175,122,74,180,1,20,42,104,228,+157,6,67,131,245,102,168,239,147,1,54,105,103,207,57,89,101,72,68,224,144,177,35,207,133,197,235,165,149,56,210,30,+252,174,222,15,76,235,113,160,204,164,171,49,254,217,162,140,96,128,33,185,180,109,138,174,87,184,45,243,128,55,125,7,+242,85,71,36,171,217,171,170,138,165,22,241,46,197,63,115,129,192,116,200,14,127,143,23,61,206,240,218,184,74,220,255,+135,108,184,70,94,169,195,74,20,103,170,2,254,61,241,169,167,127,87,195,191,65,127,23,13,166,149,212,88,101,123,132,+0,129,129,189,57,237,97,234,229,252,195,9,164,204,222,46,232,112,147,128,196,113,132,80,226,168,160,39,53,176,254,237,+199,228,31,88,165,179,217,238,109,105,251,55,60,222,21,248,234,152,91,182,173,224,215,211,239,184,180,196,196,198,248,186,+47,31,119,90,35,14,63,243,27,215,169,187,237,105,234,102,172,30,135,142,5,58,51,17,77,240,173,216,55,25,56,39,+234,36,140,104,221,186,46,69,30,135,75,199,245,235,123,181,69,247,88,45,65,94,117,242,7,221,245,148,147,107,142,255,+64,73,54,2,204,214,149,84,122,74,245,158,96,18,19,50,56,182,84,202,164,8,154,85,231,244,51,137,166,177,204,179,+18,169,74,231,33,134,200,200,227,137,211,200,211,1,131,200,62,119,40,164,30,136,12,238,219,67,168,110,99,248,169,255,+68,66,163,63,205,194,240,156,137,196,241,223,152,55,25,246,182,66,248,33,131,222,232,227,204,102,216,193,58,73,102,220,+29,68,71,218,114,86,179,75,122,141,228,47,122,213,41,220,211,73,106,117,91,100,189,151,172,249,171,140,19,205,254,8,+182,39,192,198,18,93,187,48,171,123,198,227,218,32,126,195,187,61,155,211,247,131,26,237,32,182,47,172,123,130,224,94,+96,50,181,136,11,233,246,195,197,120,201,241,231,90,84,55,199,111,237,153,199,113,151,208,123,137,70,8,111,97,214,152,+71,22,21,196,71,26,73,60,208,137,246,117,57,116,250,175,155,133,52,63,144,135,130,21,57,214,202,150,106,63,195,18,+207,249,23,221,55,244,92,151,216,147,200,43,168,158,224,202,219,251,227,106,20,254,181,131,252,166,253,40,249,80,11,229,+193,242,44,158,6,255,250,179,23,106,135,172,2,156,158,81,239,60,15,138,25,57,209,221,174,213,137,41,79,11,40,58,+6,101,10,91,75,88,160,197,184,159,156,37,106,19,249,58,117,4,95,132,82,214,65,116,214,138,189,142,96,17,89,65,+110,105,138,136,99,38,210,252,212,118,7,237,240,120,159,196,22,148,232,178,104,177,210,44,63,210,55,181,31,27,23,88,+96,210,220,243,92,107,17,46,165,8,199,104,221,18,141,103,137,228,166,189,183,190,173,60,121,193,144,48,108,33,56,248,+169,74,133,196,150,86,139,242,190,182,70,209,17,72,232,153,254,165,186,52,249,11,180,193,36,132,48,64,238,234,255,50,+90,251,100,46,237,146,194,74,197,86,194,84,211,199,95,106,225,78,187,150,236,80,81,28,233,76,10,121,54,127,32,150,+69,249,231,35,106,254,252,139,4,194,245,40,82,235,24,41,145,127,69,92,18,72,2,52,183,236,228,151,59,213,150,40,+218,60,51,113,43,51,57,62,82,41,66,175,6,104,47,102,88,36,155,30,94,125,212,211,56,145,211,165,10,111,51,1,+234,160,186,190,16,155,235,61,75,101,34,233,214,194,194,171,243,67,16,132,89,203,136,76,153,206,34,84,80,130,9,52,+2,231,134,158,65,37,202,44,217,2,12,108,244,210,129,137,210,105,240,173,37,166,166,92,72,90,152,148,233,86,208,145,+174,76,48,156,154,195,54,159,154,110,253,208,41,154,106,157,40,231,30,224,144,99,128,194,56,2,234,182,81,69,121,249,+238,1,192,143,103,53,38,34,217,162,186,204,217,96,132,151,96,177,150,64,93,155,37,235,66,167,211,126,205,86,178,251,+212,217,156,172,17,41,204,144,200,74,103,197,97,232,67,133,88,93,203,12,182,23,198,207,77,137,108,56,53,116,50,129,+221,126,184,33,197,17,129,116,83,129,97,235,80,125,123,149,61,177,158,33,29,127,249,89,93,132,237,193,252,18,104,132,+28,164,99,236,123,53,39,115,155,123,10,183,243,0,36,0,247,222,207,184,155,248,215,151,20,90,171,186,110,123,65,201,+97,253,128,126,85,86,56,55,62,119,187,173,196,172,252,186,44,2,236,155,61,63,165,112,169,20,244,251,186,251,37,21,+17,60,77,167,123,71,103,26,214,131,210,204,42,183,49,88,248,190,98,181,15,88,42,218,238,230,41,219,255,253,191,17,+86,193,165,67,187,255,55,94,154,55,200,35,184,43,194,119,38,1,202,57,180,41,224,168,154,233,13,37,71,96,181,46,+16,237,210,96,7,229,35,237,237,139,14,249,106,183,79,19,166,5,179,38,83,189,152,42,104,38,114,116,243,126,129,151,+30,85,201,230,1,73,251,178,47,202,246,21,33,140,214,71,248,149,25,107,15,77,29,94,224,223,224,5,35,82,77,5,+61,228,121,80,230,64,175,118,211,11,75,186,19,216,26,214,213,62,102,115,76,238,219,172,146,188,47,84,30,182,83,10,+165,243,93,22,224,25,234,99,199,14,137,9,192,224,225,50,228,202,13,234,253,138,30,225,200,64,116,118,152,158,225,126,+137,197,169,241,237,16,17,90,16,100,19,20,253,80,170,9,130,91,81,29,32,8,86,246,62,112,133,236,139,68,254,208,+189,3,224,162,144,38,175,195,141,166,138,141,157,46,147,54,76,58,54,117,174,245,217,37,231,81,141,73,121,69,115,36,+195,44,84,21,102,149,34,149,36,235,223,70,55,49,136,151,163,3,25,81,240,69,144,164,133,215,70,184,47,64,82,255,+229,165,136,187,131,248,50,227,148,178,82,18,13,167,57,230,231,202,71,23,158,63,78,247,11,99,110,145,149,178,165,38,+153,228,0,71,230,92,12,43,93,87,104,163,156,55,59,10,20,222,192,119,94,153,236,30,68,21,6,135,95,206,145,242,+249,19,231,148,18,22,251,113,82,159,187,24,95,114,186,210,234,178,226,192,35,24,12,134,31,134,252,207,63,161,239,252,+9,182,181,250,176,50,214,95,93,181,177,108,104,36,209,19,168,42,54,63,147,142,86,218,65,100,100,255,191,213,38,16,+144,89,236,232,85,6,183,103,190,67,98,65,93,75,145,39,14,16,26,161,241,14,102,131,242,109,48,118,128,218,68,82,+156,218,209,225,169,108,215,103,210,221,115,244,5,126,80,32,228,145,221,77,78,183,18,222,192,173,240,64,98,119,16,13,+149,3,207,76,173,44,77,195,25,208,189,68,179,9,224,0,224,112,137,49,215,77,125,91,238,228,88,179,14,55,14,27,+213,142,168,99,0,172,229,109,161,111,137,99,71,132,122,94,75,7,26,180,5,98,23,138,227,79,156,150,73,35,121,130,+246,200,62,111,232,241,232,51,209,213,116,14,39,188,164,230,47,152,97,144,3,138,214,162,76,95,82,83,140,50,187,15,+166,48,250,202,30,65,24,143,212,136,237,242,248,33,204,145,45,190,165,245,35,253,15,27,93,131,240,181,71,12,132,172,+74,131,48,173,197,180,124,17,60,88,137,91,34,119,7,160,101,102,78,28,222,132,15,117,242,142,61,54,187,81,63,147,+209,220,151,35,82,114,237,224,164,66,159,251,118,1,26,132,191,238,52,27,74,132,236,70,54,252,146,14,34,37,58,8,+100,111,66,116,209,20,119,143,2,166,178,54,61,1,188,144,208,4,136,39,63,116,10,218,224,220,38,53,92,243,179,245,+125,211,163,149,255,53,221,252,174,135,189,60,187,234,23,65,74,96,220,246,212,9,82,139,43,124,181,109,80,247,234,1,+124,58,89,150,137,90,67,125,80,85,66,21,50,208,171,146,83,86,58,127,226,60,250,17,178,194,33,98,168,216,186,224,+110,17,152,188,126,163,8,45,170,115,30,128,13,178,192,167,72,190,118,52,123,189,82,205,89,31,223,205,112,115,223,49,+111,23,247,17,39,22,167,109,137,160,46,0,204,239,48,47,220,64,217,159,251,52,163,125,67,228,199,66,60,18,49,42,+255,255,255,247,238,172,125,75,33,246,158,190,114,59,207,78,72,151,155,215,198,198,142,152,130,144,68,149,3,195,177,198,+69,189,199,18,46,49,37,197,235,184,29,248,96,87,98,193,209,12,113,199,244,112,192,235,31,175,89,240,219,97,252,232,+176,133,98,79,232,159,55,82,227,178,49,70,235,211,226,48,151,218,101,80,120,45,20,166,9,63,17,90,239,145,7,73,+16,137,104,205,159,87,196,154,149,44,194,247,249,78,70,164,164,91,57,102,50,169,164,31,252,163,38,223,158,89,86,158,+42,233,124,250,212,196,65,68,7,137,251,124,39,72,75,243,178,242,217,43,247,239,42,51,172,255,239,91,213,210,148,210,+90,50,227,248,144,248,20,11,130,231,253,88,116,225,67,36,155,141,110,108,61,145,0,121,29,185,200,139,180,98,71,158,+77,209,63,75,65,1,228,85,170,206,115,182,50,47,33,168,83,4,23,107,164,118,157,7,130,105,33,175,153,120,143,145,+220,47,121,89,243,28,24,120,231,193,92,141,116,139,192,130,9,251,77,22,98,249,190,150,105,36,222,181,139,202,2,169,+188,23,161,35,94,225,26,242,121,135,5,3,192,143,180,140,238,150,194,109,208,29,153,221,39,197,30,145,243,212,48,177,+147,216,75,188,54,10,195,43,60,141,120,121,166,242,19,204,239,116,189,114,63,131,220,58,246,40,158,181,64,195,36,88,+162,202,158,103,62,204,116,41,55,100,130,174,28,233,189,60,200,29,91,247,34,229,172,127,222,89,153,132,157,47,154,255,+150,248,17,158,15,215,29,37,104,110,223,201,199,168,243,222,57,119,177,165,150,182,72,171,215,44,205,44,187,82,35,88,+145,136,225,53,208,234,62,44,15,86,139,4,197,246,202,188,167,209,114,102,110,123,89,251,30,251,201,150,229,128,166,30,+191,169,108,159,50,179,128,175,89,226,95,150,70,17,181,248,35,8,165,50,132,228,163,109,227,127,150,81,98,29,67,207,+141,28,219,222,200,203,116,52,12,26,252,222,75,123,196,68,87,221,78,74,34,88,16,161,194,87,101,225,25,164,162,43,+167,220,222,91,151,239,15,106,218,230,240,169,80,171,131,18,76,203,249,127,33,135,110,203,105,48,168,91,133,139,42,134,+255,183,51,110,164,180,47,93,186,125,25,49,108,201,4,160,218,116,148,41,113,232,106,34,6,67,198,146,229,141,71,144,+145,61,13,1,247,242,120,60,59,59,214,70,120,102,186,189,26,74,65,21,254,145,32,162,237,120,43,83,226,16,70,163,+170,163,73,195,175,119,129,119,153,250,57,129,208,113,103,95,250,192,211,87,184,250,19,69,255,38,152,88,173,194,115,74,+71,34,85,158,4,237,142,190,40,113,237,60,90,102,181,55,69,240,71,41,82,74,26,150,46,108,193,150,211,100,206,130,+182,122,150,45,127,187,155,192,89,105,27,181,216,16,203,103,252,42,102,6,21,23,169,69,40,209,234,186,100,139,204,4,+231,23,67,234,202,66,0,29,237,194,72,242,94,37,198,254,138,193,104,129,147,58,51,181,148,40,85,58,137,165,167,222,+107,32,176,147,196,132,191,114,131,229,142,220,71,80,198,197,214,53,136,207,231,154,30,49,123,252,93,75,60,189,86,70,+94,89,166,8,59,24,33,48,31,73,77,88,151,229,244,154,21,0,154,154,172,80,25,234,13,81,68,110,11,184,84,191,+74,237,198,91,39,47,138,214,183,168,34,211,27,132,36,140,49,35,246,166,196,8,238,9,94,62,247,20,241,101,168,225,+64,136,5,229,14,147,243,82,149,27,125,23,61,194,142,223,11,150,156,208,119,151,108,188,115,216,81,81,71,34,158,50,+41,197,17,12,167,21,255,52,175,150,61,67,161,157,6,0,56,180,131,53,67,248,165,174,179,75,150,110,125,85,237,161,+28,163,222,193,134,37,194,34,31,72,22,33,34,237,157,14,210,9,60,60,226,250,132,142,104,46,34,127,148,181,77,86,+210,152,103,44,185,237,219,238,25,197,71,182,58,73,180,155,191,11,122,187,222,131,171,232,57,80,219,217,106,58,51,117,+127,244,39,229,98,101,103,115,80,87,254,35,188,75,193,73,209,136,214,83,99,231,60,112,117,34,146,177,10,55,79,172,+139,166,54,240,38,215,15,29,198,69,120,93,142,101,191,34,171,162,230,157,132,222,6,125,172,130,251,83,111,226,130,82,+41,109,115,122,209,202,151,61,146,28,204,251,43,175,46,0,139,76,100,15,233,1,87,44,2,74,120,248,23,217,112,91,+108,136,94,37,175,41,76,207,147,112,61,216,41,117,93,28,117,34,143,7,245,84,61,248,237,22,65,160,220,141,21,53,+115,164,93,160,235,124,249,186,237,195,82,207,129,248,251,211,200,213,152,195,66,218,222,39,202,19,154,187,230,31,99,172,+18,218,154,145,245,161,73,230,37,127,80,200,209,237,36,174,137,207,30,215,213,124,190,122,24,72,131,242,73,10,101,251,+192,72,58,94,125,11,234,81,150,193,238,119,46,241,26,232,241,250,114,226,72,105,192,7,230,235,166,5,56,165,119,214,+19,116,117,160,60,239,231,198,238,19,7,12,208,186,134,0,96,174,21,199,74,39,66,43,187,122,104,38,74,105,116,192,+255,255,146,2,98,60,97,187,204,2,194,2,251,136,5,92,214,154,52,154,74,99,2,89,237,212,18,182,178,57,145,112,+103,203,62,97,116,132,230,80,5,10,147,171,55,105,110,28,68,142,238,191,225,73,77,205,46,248,228,59,245,135,18,22,+252,215,196,14,121,158,99,25,216,44,169,165,143,127,18,100,31,230,195,20,119,56,1,95,115,218,185,89,49,87,5,99,+61,24,19,55,248,193,144,237,219,60,65,142,199,119,228,236,40,244,107,244,165,174,81,49,68,24,223,218,233,77,132,253,+122,172,185,153,138,81,165,50,110,220,213,152,56,219,39,167,58,205,65,50,238,72,150,19,146,3,128,38,22,130,181,207,+89,167,136,51,65,155,216,202,13,181,34,239,121,140,119,42,115,115,116,182,83,225,202,234,216,248,31,196,246,89,237,0,+252,66,88,70,103,248,248,8,211,34,75,23,4,23,97,245,81,20,25,95,50,54,90,123,123,105,9,45,243,252,185,119,+108,125,219,39,66,175,59,102,209,228,13,68,43,54,184,3,238,246,186,128,79,199,101,175,245,198,147,145,107,106,214,48,+2,216,8,235,63,221,227,10,76,61,179,245,38,85,208,87,13,234,6,66,161,67,84,92,199,185,154,112,168,13,140,11,+94,228,183,136,121,26,105,242,193,61,182,244,25,25,128,47,157,2,72,80,227,94,63,135,76,35,12,186,45,183,80,188,+61,48,133,62,252,105,133,51,117,55,43,0,49,62,28,43,236,68,221,39,78,202,64,56,250,155,254,234,1,241,6,104,+23,231,181,240,158,27,237,149,165,15,71,186,173,241,153,210,35,206,125,5,172,227,167,239,9,198,100,255,28,56,146,88,+65,110,119,124,135,92,56,103,134,255,47,156,253,141,27,92,133,16,156,139,88,215,196,68,170,225,88,215,175,109,170,242,+234,120,50,146,79,242,149,120,210,92,114,221,137,6,37,112,68,240,101,101,11,163,75,235,176,128,158,216,154,121,68,254,+197,109,128,78,155,215,203,238,204,51,201,54,169,183,185,209,194,132,216,29,12,175,34,61,31,225,195,188,125,166,32,4,+105,186,104,33,45,79,59,171,62,187,88,239,46,1,69,106,103,221,236,163,30,69,144,190,237,248,30,233,19,30,124,94,+10,169,113,211,211,180,91,132,168,75,88,116,185,3,86,105,59,255,253,199,74,249,125,160,157,76,205,118,158,44,227,185,+13,252,243,240,141,203,170,23,39,63,241,201,109,243,138,14,189,33,197,197,39,248,218,1,245,231,85,110,27,13,15,233,+132,44,159,114,215,125,90,26,123,175,113,6,25,26,166,182,139,62,94,187,105,128,92,0,94,134,147,222,8,172,81,236,+165,235,204,64,170,151,155,246,21,148,140,51,129,105,244,99,147,190,217,241,47,119,82,140,169,66,237,51,53,205,127,23,+32,2,218,73,99,157,253,29,152,103,252,101,156,178,155,217,84,4,44,65,143,72,150,89,208,211,93,191,32,127,254,167,+71,254,248,237,24,51,240,244,90,250,177,59,182,104,20,220,156,82,240,222,24,89,224,117,219,201,185,242,52,222,77,70,+147,60,111,10,65,74,8,53,250,91,182,196,112,113,43,220,0,214,54,203,65,25,69,167,218,244,153,1,76,94,47,28,+105,195,191,84,4,253,4,45,71,3,94,181,162,64,205,185,252,194,65,208,2,104,119,229,189,127,57,75,94,136,110,200,+238,251,220,44,246,151,104,62,125,249,207,183,163,161,190,10,96,102,122,104,169,198,213,162,58,129,196,136,138,97,162,38,+100,219,208,107,178,112,93,128,191,56,108,77,82,52,176,166,129,107,203,215,114,171,164,173,137,170,195,191,200,164,87,158,+7,30,52,227,206,76,246,89,7,245,49,202,124,98,175,29,139,251,234,245,227,23,58,83,93,6,158,136,233,81,141,178,+236,107,150,38,106,112,131,12,89,17,184,125,249,175,198,164,40,40,128,201,248,83,30,130,38,15,59,155,2,178,236,115,+194,88,189,215,191,17,146,231,8,106,38,98,44,93,168,55,51,62,129,1,125,1,224,63,67,249,248,180,173,112,140,239,+38,157,170,210,20,137,196,36,196,116,50,204,14,101,158,112,152,193,73,30,225,172,8,120,145,183,51,15,59,5,223,73,+231,116,80,169,185,17,195,205,43,6,162,73,74,159,104,167,114,132,39,199,183,201,110,27,150,215,14,177,188,75,155,226,+188,244,91,244,76,63,138,189,44,107,104,18,74,64,166,235,11,23,223,124,63,41,185,168,154,112,230,238,31,9,146,95,+172,15,23,163,90,97,192,54,110,35,172,5,188,177,104,153,246,115,179,137,178,154,11,109,156,135,14,214,189,179,156,47,+142,162,233,140,238,158,116,93,75,166,222,150,248,88,178,51,64,240,226,113,172,231,135,38,65,189,175,38,250,177,66,236,+34,128,25,94,55,190,204,189,39,96,221,213,182,196,125,210,106,21,245,252,171,156,185,41,102,191,33,68,216,3,142,250,+186,65,5,250,59,32,246,153,170,55,253,67,192,35,151,247,45,16,108,225,47,128,183,173,1,144,189,85,4,112,227,97,+83,164,231,45,79,191,104,47,127,213,43,15,107,190,165,246,169,187,174,178,247,141,233,192,30,92,74,24,34,207,131,171,+62,181,239,56,159,205,101,240,129,98,198,250,147,150,87,243,13,181,106,246,96,148,173,78,147,87,44,37,32,58,219,254,+143,166,41,190,194,45,33,172,137,163,161,72,140,34,54,27,161,135,171,218,218,216,163,10,18,248,62,44,194,103,124,1,+96,236,114,221,173,50,234,200,165,117,134,100,236,206,118,95,80,107,43,248,9,14,99,20,232,222,126,45,130,154,141,49,+114,139,145,232,3,87,94,134,90,59,15,185,199,68,52,88,246,34,57,0,237,41,67,42,22,134,24,230,161,7,70,76,+93,229,108,36,24,145,200,120,238,109,62,24,191,12,176,89,145,171,204,76,96,157,40,125,255,156,40,68,78,120,201,233,+71,215,247,36,181,151,165,75,58,60,143,226,78,179,48,69,154,111,42,122,116,140,224,38,214,190,129,140,60,45,200,234,+3,158,206,249,195,205,186,232,199,73,128,133,58,97,93,215,251,254,244,204,38,44,166,101,252,250,111,197,30,60,151,209,+60,8,80,168,11,54,80,217,245,182,173,174,20,101,253,252,211,238,75,85,146,24,24,179,233,164,31,222,149,77,213,8,+78,147,236,250,155,207,239,83,89,113,11,78,246,36,17,17,88,117,178,101,2,16,45,78,191,28,236,230,108,213,142,38,+41,181,136,50,161,192,56,153,55,98,120,83,94,239,75,178,191,49,232,89,190,213,140,219,148,97,254,113,248,243,75,86,+233,177,168,247,164,154,83,33,159,172,184,94,168,133,117,31,58,106,138,96,118,52,245,37,78,233,98,110,7,126,149,82,+218,57,38,186,135,14,41,35,132,187,178,224,122,190,195,224,175,180,22,194,7,68,172,58,206,94,227,8,52,183,244,71,+177,200,242,35,27,248,148,144,155,88,168,63,75,172,254,169,167,52,169,150,255,151,102,249,46,204,115,67,220,72,154,24,+105,114,164,78,36,249,252,121,180,208,204,219,210,57,198,77,198,171,43,161,145,72,113,201,162,109,114,199,79,74,223,47,+22,145,176,10,249,55,183,250,117,5,50,235,244,243,16,39,96,242,47,26,111,136,11,231,155,56,84,154,150,93,61,58,+61,79,230,49,241,229,220,74,254,153,140,93,53,138,113,186,50,210,88,87,223,168,246,221,156,73,90,187,28,8,74,65,+29,113,113,92,160,136,190,29,154,84,64,21,9,167,201,46,120,22,184,205,202,184,138,91,193,29,14,64,233,195,164,65,+238,27,201,46,125,35,95,115,211,24,142,173,240,242,44,100,193,145,134,95,81,152,151,36,56,93,28,114,143,26,79,153,+130,134,109,163,66,242,156,102,182,45,144,179,143,187,152,194,62,128,180,97,218,200,88,139,162,47,215,78,42,194,107,172,+170,33,22,119,34,170,68,83,24,44,234,55,60,113,126,61,117,188,216,244,63,18,18,176,190,194,55,130,97,156,164,85,+207,237,46,224,222,84,115,141,87,164,113,114,231,34,108,166,46,120,87,31,111,27,98,147,184,136,200,78,22,80,168,120,+212,214,183,184,97,66,17,125,202,218,107,214,36,102,47,71,60,253,204,59,136,97,175,250,114,215,228,122,106,219,161,147,+69,112,10,209,244,185,76,106,22,148,97,36,180,191,69,11,173,160,145,224,70,64,39,8,221,51,7,12,45,101,181,229,+176,58,96,89,145,178,34,114,168,52,36,178,234,139,9,192,79,190,28,60,180,16,228,151,147,149,131,230,209,63,63,110,+171,200,106,158,130,108,24,237,36,85,23,251,204,72,150,88,116,229,35,33,204,87,152,195,83,142,69,206,66,3,129,50,+83,14,99,210,125,15,176,32,209,244,88,205,20,190,93,201,213,227,97,216,85,134,179,89,214,246,72,21,53,130,150,180,+101,74,13,109,181,190,79,227,214,103,31,220,35,228,224,160,36,230,10,199,69,200,105,227,121,54,183,34,119,120,89,67,+125,14,217,56,169,36,151,251,82,212,138,71,175,118,206,237,14,36,68,30,98,178,77,134,170,55,94,110,8,39,237,109,+162,8,27,33,231,21,250,255,253,70,17,168,183,14,113,114,235,11,25,182,178,77,160,136,45,97,184,205,220,16,254,110,+18,178,113,5,10,64,223,112,170,178,87,49,211,58,166,195,1,11,55,252,94,54,3,250,201,174,70,204,45,208,215,129,+63,234,76,219,237,48,250,24,231,38,99,79,181,206,202,72,28,91,202,169,74,17,61,15,20,250,25,234,76,15,17,11,+247,230,170,247,228,166,160,79,236,50,236,167,46,175,175,203,218,170,67,3,10,251,245,231,36,42,114,49,87,156,239,164,+178,34,47,214,122,105,179,13,220,157,197,178,111,100,194,115,96,135,155,239,138,169,15,40,215,45,210,90,63,177,2,38,+82,226,172,103,128,22,74,152,6,29,2,95,133,118,155,85,158,55,237,2,2,48,48,141,49,29,14,93,193,177,83,227,+237,28,88,145,62,16,255,252,103,193,103,30,10,189,43,237,44,20,160,68,89,214,65,235,145,23,162,81,238,19,79,18,+12,79,89,249,89,211,177,84,152,204,40,41,154,223,2,234,95,227,77,23,234,206,212,167,136,143,147,236,192,122,5,246,+99,176,28,252,126,83,138,81,117,103,129,195,135,58,40,192,2,15,195,28,20,104,133,196,195,190,49,47,196,85,166,176,+21,114,120,28,50,100,121,136,228,120,126,114,113,53,222,62,87,117,237,205,146,65,178,65,12,17,206,150,0,93,88,168,+198,58,189,196,105,227,104,125,236,197,201,250,122,156,170,208,11,54,250,137,64,219,139,49,187,229,179,23,222,235,248,62,+197,185,100,136,39,214,96,180,94,192,212,233,104,204,75,172,182,94,234,59,220,28,242,14,206,26,38,21,230,84,29,92,+209,110,250,184,95,164,74,34,114,222,199,192,248,167,73,90,135,240,167,9,216,33,130,177,29,42,122,225,214,30,70,6,+155,106,230,91,98,34,59,161,237,245,175,19,121,86,223,223,231,148,89,148,19,149,106,197,147,234,141,35,134,10,23,2,+249,90,233,248,46,162,91,25,184,19,0,143,239,103,74,4,134,190,71,10,143,1,159,104,21,255,145,32,246,96,125,108,+87,3,72,120,91,228,117,1,187,243,49,69,115,200,111,37,166,14,7,0,223,131,108,220,112,26,224,171,157,88,138,135,+24,195,78,22,218,244,172,3,189,22,76,254,83,230,62,164,119,114,165,158,85,98,115,41,248,131,226,41,127,106,101,236,+138,218,53,123,88,97,105,58,122,30,56,218,44,159,255,211,168,225,141,232,150,163,191,206,254,20,150,238,224,155,152,206,+9,76,153,158,47,214,189,245,109,134,70,191,15,7,92,8,95,164,212,58,33,155,244,159,161,96,53,119,83,40,129,119,+202,119,215,28,67,200,99,45,3,238,146,149,45,181,41,146,68,34,187,208,50,138,168,30,182,43,220,218,35,79,83,181,+63,32,7,105,196,117,243,155,75,127,31,171,240,228,241,184,9,4,31,20,165,48,254,169,115,149,141,223,65,49,210,137,+71,84,183,180,217,40,222,0,7,201,236,248,205,228,194,174,24,194,248,78,175,89,57,113,187,169,18,213,13,79,99,11,+119,202,3,225,222,61,66,250,132,3,39,219,165,129,115,202,54,128,255,255,253,52,37,165,236,130,138,113,96,5,239,173,+89,25,232,175,193,178,223,123,135,93,227,141,181,117,142,58,53,229,92,91,73,108,252,79,99,157,237,219,171,93,44,1,+103,188,197,59,237,131,68,95,66,206,23,72,224,159,99,64,121,133,28,160,185,172,18,29,53,177,84,152,46,58,46,5,+111,139,67,51,158,242,128,113,122,240,163,182,165,254,26,222,84,27,186,81,185,58,171,13,133,150,200,26,80,145,111,25,+42,215,193,12,172,195,40,130,167,75,90,165,29,226,9,80,138,230,16,127,212,100,235,192,26,236,229,121,118,154,141,151,+44,90,176,37,191,63,108,132,204,109,73,43,53,144,50,115,124,142,47,87,243,72,181,8,5,255,12,153,60,230,152,151,+98,116,167,232,170,22,118,173,61,2,67,65,203,248,182,158,8,205,177,87,254,242,0,155,182,209,38,24,234,123,11,170,+175,203,130,156,149,81,20,3,110,48,247,210,133,237,221,5,151,175,187,24,93,87,216,15,36,0,110,62,242,243,231,91,+203,215,70,103,40,229,94,134,138,201,122,10,61,33,1,121,26,229,200,26,147,174,90,54,181,117,0,99,91,100,202,220,+94,197,207,165,163,104,21,74,239,136,99,231,138,133,16,210,9,146,123,157,104,52,81,57,13,100,206,87,116,247,12,227,+90,4,179,211,68,131,232,231,211,166,228,25,30,176,84,35,87,123,195,221,98,39,37,147,205,142,206,148,112,164,10,40,+132,7,28,220,226,139,226,208,83,98,128,34,114,29,64,160,71,40,85,236,134,152,34,175,130,85,8,120,63,227,182,252,+146,6,148,87,24,163,123,130,24,200,75,133,189,188,23,173,144,43,207,13,218,211,133,57,134,28,74,246,52,167,180,113,+158,8,31,229,11,5,191,192,114,231,123,156,19,121,208,89,223,111,182,180,165,171,133,18,143,255,128,210,36,99,213,151,+73,229,180,223,43,104,91,79,244,21,151,248,130,141,118,74,142,0,152,212,145,168,100,250,152,117,49,233,117,125,13,200,+66,145,216,27,105,130,60,189,196,173,71,173,4,26,122,67,85,200,126,192,156,40,222,243,15,95,199,38,96,95,127,61,+136,151,3,222,229,144,153,48,77,43,114,112,152,150,204,75,206,142,197,240,218,33,195,161,41,93,228,247,102,214,97,15,+120,51,242,34,45,133,21,34,54,100,58,150,143,70,125,210,40,10,214,138,7,125,86,115,87,235,245,179,134,39,74,79,+86,78,179,103,72,172,23,84,213,75,192,85,10,145,23,141,3,34,36,97,164,82,84,233,9,52,23,231,5,10,213,54,+94,91,39,194,101,70,39,4,174,102,65,118,10,148,27,112,208,179,88,246,144,182,6,69,87,42,4,234,238,113,117,184,+202,181,98,95,8,113,154,125,59,9,11,53,132,116,200,184,188,210,86,43,96,67,166,162,12,38,95,4,138,96,60,126,+114,223,110,137,244,201,163,44,255,208,159,52,193,213,231,67,232,33,191,2,114,133,2,83,139,203,209,122,129,35,71,229,+74,52,16,178,62,240,184,179,160,107,224,218,159,7,18,247,255,253,68,219,138,122,68,124,34,5,93,126,100,146,119,217,+57,103,124,54,78,64,249,81,241,89,113,148,247,254,67,208,254,223,232,30,113,162,36,207,68,43,37,126,215,68,88,211,+128,41,255,180,117,183,132,89,39,58,107,149,77,148,154,131,120,116,11,186,69,228,222,130,78,183,92,51,16,179,211,255,+166,242,133,213,232,4,187,207,188,21,31,241,203,108,9,231,155,18,30,105,7,164,212,36,221,247,44,149,243,105,224,143,+185,66,133,118,5,179,188,160,37,96,137,117,208,207,176,83,13,121,195,78,85,118,224,198,90,79,175,152,2,78,219,94,+11,178,144,189,7,190,245,120,176,91,215,7,51,65,155,239,134,185,145,158,222,19,131,62,189,246,35,87,76,73,69,60,+107,41,130,97,114,75,101,141,218,187,117,243,133,185,234,84,30,145,45,126,10,105,232,120,166,164,124,90,205,9,43,238,+21,218,239,160,104,109,238,198,52,56,135,187,218,102,133,89,33,13,35,163,146,109,217,205,9,47,153,235,208,201,83,124,+45,255,176,242,177,141,22,164,94,191,78,70,51,186,60,253,250,205,89,119,177,177,23,90,228,62,250,183,5,10,68,6,+130,134,118,119,68,131,169,147,18,217,96,87,120,77,25,221,137,100,152,86,187,138,34,198,44,100,32,142,198,171,149,30,+255,64,86,152,59,10,117,10,121,46,75,187,65,62,42,75,135,209,16,117,76,254,231,40,47,222,48,245,141,78,106,77,+37,234,67,2,105,250,177,118,218,134,163,88,239,20,44,199,186,156,219,50,213,230,185,146,238,242,52,229,144,187,24,33,+39,193,54,237,37,128,191,108,253,155,175,63,14,153,87,103,223,3,178,37,16,230,203,118,242,63,171,246,24,220,251,218,+219,213,32,179,0,62,19,81,57,154,218,218,113,103,6,218,85,93,57,112,64,80,40,99,119,171,251,27,126,243,139,68,+83,205,132,143,245,165,12,176,36,29,192,241,8,186,52,105,185,79,1,226,18,210,161,160,223,244,243,143,241,140,56,78,+104,207,87,137,146,204,24,253,199,138,123,234,7,98,7,111,4,186,250,20,148,233,107,200,17,122,144,159,164,7,43,193,+39,95,4,243,120,55,140,196,213,252,246,58,167,204,206,254,156,5,250,108,8,7,159,96,107,69,189,251,184,205,80,205,+74,96,171,219,94,138,153,64,13,28,140,223,80,200,148,85,176,154,134,14,107,92,168,187,55,15,196,213,15,228,103,185,+113,233,84,98,249,202,207,173,95,192,214,227,6,37,101,155,121,49,176,131,161,96,108,69,67,79,71,51,70,218,43,221,+192,177,81,140,47,112,145,132,131,198,255,123,145,71,7,229,226,207,32,40,243,165,26,178,34,16,49,67,2,146,140,138,+168,207,166,125,77,36,51,7,36,63,136,206,171,166,44,112,143,11,180,115,46,171,157,133,67,79,75,3,186,209,134,238,+148,35,114,74,212,152,8,148,11,76,79,244,235,110,41,189,190,95,150,174,145,122,255,15,189,37,90,160,181,85,99,195,+251,51,46,161,56,35,93,113,132,50,124,131,215,126,34,150,101,9,49,126,129,74,118,6,137,74,181,90,126,19,56,173,+150,159,192,111,138,230,244,150,123,111,65,40,175,46,173,195,130,77,239,147,80,97,204,203,112,123,34,52,238,57,240,21,+138,249,104,170,150,132,74,157,183,111,61,62,237,54,200,163,29,160,238,0,74,34,235,11,183,226,201,43,12,108,203,153,+222,14,79,109,124,244,68,13,203,189,99,249,85,183,66,214,237,80,34,176,239,170,65,146,106,102,242,11,97,238,54,238,+197,3,227,111,146,213,30,166,60,30,246,187,174,148,144,205,125,55,125,103,77,211,195,153,18,4,69,253,244,23,163,34,+190,133,48,70,96,87,179,178,249,24,146,204,25,192,180,208,112,204,125,215,90,242,187,87,6,121,235,148,105,50,103,1,+116,78,152,85,86,38,104,121,38,32,45,241,33,188,171,54,92,167,118,129,199,41,11,77,232,255,7,255,86,70,139,222,+71,145,128,130,113,225,114,29,232,33,45,125,167,3,100,61,241,157,90,70,140,44,254,159,87,100,53,145,138,104,240,237,+152,9,166,61,192,81,62,95,79,110,144,117,22,150,193,27,223,234,228,35,198,71,44,200,119,51,252,72,181,187,120,210,+187,33,153,35,144,240,143,83,127,229,197,108,4,104,16,119,31,117,220,235,72,40,52,59,243,140,253,158,53,97,36,112,+33,200,134,113,6,77,79,163,145,202,180,69,221,247,94,82,155,103,46,28,92,83,208,143,119,138,14,104,76,248,134,53,+63,7,2,187,130,206,252,139,203,254,58,211,33,169,85,158,99,244,139,65,227,221,187,124,87,185,68,18,50,120,72,29,+41,0,95,73,88,151,230,147,223,93,42,3,46,102,48,129,208,247,188,232,219,250,71,153,241,95,20,170,204,1,98,249,+42,245,33,176,212,63,247,200,64,40,210,232,187,173,5,244,210,153,61,83,80,35,56,93,6,54,170,250,38,150,79,74,+81,198,67,120,100,8,172,181,136,133,147,247,143,204,23,100,247,12,182,45,240,141,33,183,185,215,224,250,200,239,116,203,+93,206,127,88,177,138,1,76,2,117,11,118,39,27,207,6,200,40,137,206,144,248,46,210,179,197,37,192,183,96,32,245,+131,178,121,199,86,65,158,110,248,237,118,34,25,58,241,66,72,34,244,149,206,183,142,189,168,111,123,128,162,157,160,164,+132,116,109,12,175,11,54,115,26,171,96,182,73,27,119,138,185,168,121,218,13,129,228,16,107,12,118,238,52,77,2,88,+173,119,229,203,56,121,147,189,219,89,121,149,191,233,212,235,51,205,6,121,10,182,64,84,22,67,58,82,168,122,119,174,+237,186,216,244,67,128,51,187,100,59,135,6,15,19,162,121,227,54,16,253,105,105,137,217,89,19,112,146,220,107,90,246,+69,170,209,51,114,0,200,149,164,95,155,172,181,142,35,33,52,190,233,16,174,15,131,221,65,127,102,41,235,66,153,73,+70,254,108,245,111,242,63,51,239,114,236,108,237,181,40,61,19,190,38,73,250,26,7,132,165,137,233,243,118,244,161,105,+72,138,127,98,201,221,222,115,70,137,98,185,226,156,230,138,33,37,142,90,197,98,53,21,246,139,244,20,73,239,159,18,+195,115,123,231,149,56,204,70,114,235,172,149,205,15,139,94,215,165,188,123,29,112,176,99,184,16,72,224,21,184,94,255,+252,203,176,173,235,27,131,124,31,107,181,81,101,199,195,81,171,194,196,19,201,232,178,254,113,43,108,148,50,117,7,121,+13,179,42,2,4,7,14,199,132,75,13,53,64,15,141,215,115,81,107,4,163,212,35,92,8,251,227,79,39,122,166,106,+98,58,71,44,161,139,142,50,190,150,200,242,37,105,227,152,199,75,102,58,217,44,233,189,9,14,48,250,121,113,137,248,+115,34,211,107,233,224,162,66,46,20,182,43,249,207,140,21,214,87,38,230,89,143,163,76,15,213,147,235,37,249,159,90,+34,113,216,132,136,201,193,164,16,214,216,170,146,38,65,248,179,115,17,249,205,168,59,44,51,221,239,0,155,25,60,147,+126,11,189,39,225,228,148,1,93,119,63,170,211,55,92,33,248,161,200,147,238,186,7,28,160,12,224,199,4,223,49,138,+149,6,9,55,141,48,191,76,187,154,193,99,135,1,140,147,5,216,167,4,255,91,208,22,185,227,12,18,201,97,126,89,+156,210,108,56,40,94,5,83,159,119,217,65,99,124,61,219,212,35,6,172,192,10,77,112,88,118,162,163,91,33,247,112,+123,156,233,62,78,36,34,102,211,144,58,103,200,150,121,141,253,7,9,13,53,17,232,104,139,104,130,208,35,57,236,26,+84,228,3,63,78,188,115,9,249,60,93,237,99,63,174,15,249,215,45,43,101,24,198,248,218,22,27,172,26,199,219,103,+63,239,114,11,157,83,120,223,136,86,146,10,227,149,57,241,29,46,100,65,211,97,39,186,26,238,80,198,78,60,204,127,+213,223,63,114,30,175,131,228,146,230,107,235,81,61,10,126,20,125,41,148,20,13,249,198,164,13,39,207,23,170,150,109,+52,194,119,27,251,171,26,72,211,48,15,219,99,101,97,18,252,109,16,37,65,250,49,64,20,172,201,80,65,7,181,101,+69,192,172,95,193,243,123,117,118,103,176,106,59,169,160,70,180,64,6,108,253,225,212,21,164,2,196,192,202,186,87,205,+206,99,104,104,68,125,33,248,111,12,232,134,154,221,96,0,132,225,80,220,219,142,233,139,228,160,240,97,23,108,85,193,+78,230,4,84,126,102,122,88,189,165,167,152,46,70,96,80,217,23,133,115,40,156,101,232,160,25,88,183,21,94,90,72,+8,216,145,65,255,250,192,31,212,163,113,80,14,46,108,81,157,181,235,117,100,104,139,43,162,185,199,96,31,34,111,68,+117,90,47,204,171,23,70,107,113,47,51,213,136,10,28,93,170,64,136,157,54,208,164,144,213,157,209,212,78,35,210,100,+95,194,254,105,41,31,173,16,12,243,118,211,13,28,43,74,59,208,108,39,18,141,203,38,77,184,38,221,69,216,217,114,+108,163,236,234,167,30,79,217,66,68,176,233,251,151,5,203,160,52,206,220,24,48,17,21,184,0,255,253,2,144,170,228,+178,181,45,148,58,143,168,98,57,53,238,69,193,186,92,89,149,35,46,15,75,170,85,41,227,74,39,51,14,118,96,206,+186,29,48,250,235,200,201,56,43,39,183,182,190,154,90,68,194,212,245,202,158,43,55,157,17,255,38,107,189,102,24,91,+14,82,100,231,194,246,114,108,104,135,43,195,97,66,61,153,196,57,40,136,27,219,235,181,216,5,101,64,97,138,92,253,+210,205,204,113,89,171,205,154,29,204,80,169,71,200,228,138,135,45,42,170,50,176,200,207,82,26,105,153,89,24,101,234,+4,50,5,0,171,253,183,230,123,188,111,205,133,197,4,4,140,206,79,56,4,181,193,179,68,9,81,230,25,112,137,20,+203,40,170,250,165,130,0,26,66,64,34,9,240,184,255,188,208,190,39,19,198,197,179,159,231,17,209,113,94,83,52,129,+166,36,152,85,212,30,187,135,135,53,66,249,75,217,45,64,201,138,119,29,201,101,34,68,143,5,232,129,154,254,66,86,+7,66,83,180,5,2,6,199,243,39,27,227,188,117,83,195,38,139,95,7,61,66,152,109,59,4,100,85,112,77,57,121,+117,3,203,42,226,246,32,220,134,6,166,155,245,146,187,162,158,120,178,194,229,141,58,119,72,187,10,91,217,22,6,216,+239,82,37,25,75,33,66,141,39,87,183,2,47,54,222,15,220,158,21,136,210,160,159,207,216,233,65,3,33,170,133,120,+162,153,248,153,203,179,95,37,24,63,154,173,136,38,118,116,95,143,125,216,133,42,54,125,128,113,102,138,131,22,92,171,+5,104,27,22,132,91,144,102,46,1,225,102,211,109,215,77,118,99,225,141,210,35,228,240,231,176,175,57,149,169,223,50,+12,44,177,9,110,82,231,87,26,194,32,53,24,66,139,2,171,209,25,251,115,155,219,223,20,254,35,73,89,228,90,146,+126,176,96,118,11,94,99,225,197,255,243,126,228,136,177,223,177,27,125,55,231,235,71,160,200,100,251,142,138,185,65,144,+63,108,33,0,34,56,66,223,206,0,46,209,157,221,231,122,151,158,172,203,12,80,202,210,221,139,208,20,57,205,15,233,+253,252,203,25,140,187,91,183,42,12,58,242,194,57,253,233,14,82,136,46,212,162,30,46,52,115,52,173,176,19,211,114,+157,127,111,21,222,169,166,102,184,158,58,178,251,151,143,204,9,9,127,163,197,141,235,77,13,186,152,111,105,153,5,126,+225,52,143,194,141,32,176,170,205,109,44,15,134,188,89,119,148,186,182,102,77,5,86,211,213,40,19,133,215,141,219,166,+174,74,197,66,32,244,26,95,233,190,147,33,201,164,245,205,125,149,152,79,87,122,205,56,180,254,236,96,240,104,79,88,+100,187,236,6,108,82,79,77,32,162,45,4,100,81,32,87,110,189,236,145,239,235,146,81,3,142,112,105,175,245,203,57,+17,187,141,209,117,197,32,164,81,37,98,47,75,48,181,154,169,110,167,48,131,130,247,162,26,57,243,21,132,91,227,50,+255,171,137,155,136,146,83,183,147,16,199,116,8,239,199,245,73,169,217,236,157,231,105,43,172,148,79,201,60,188,24,100,+182,107,72,102,101,206,45,199,135,36,145,171,220,0,148,175,16,193,84,112,26,227,223,185,83,14,174,136,20,74,194,126,+158,71,195,200,230,105,218,34,203,208,29,180,80,29,194,110,205,35,233,48,113,111,230,184,223,55,164,112,44,210,142,224,+3,102,203,76,224,72,228,13,180,254,180,179,211,0,105,213,11,128,17,210,143,186,206,43,96,41,74,28,187,167,199,78,+47,232,150,221,112,214,69,201,63,234,46,156,254,161,29,82,4,93,1,62,192,130,133,107,12,88,171,92,221,158,100,162,+132,114,179,164,255,164,243,108,61,1,188,43,249,230,235,156,49,62,156,61,232,51,166,81,31,177,152,218,11,63,170,202,+252,60,29,118,240,161,168,97,22,165,9,137,86,19,191,31,226,227,211,117,8,113,70,189,229,157,164,108,167,182,234,44,+132,73,190,20,20,89,30,85,250,242,85,228,216,174,141,38,142,25,195,217,230,214,8,184,2,175,102,122,88,34,253,39,+186,56,30,215,106,230,94,169,243,69,247,181,197,49,150,128,78,149,10,50,25,226,39,211,8,10,32,83,44,59,213,248,+123,120,6,95,184,27,237,27,80,94,241,38,61,22,230,123,14,24,230,101,52,47,236,108,124,228,116,204,195,171,224,98,+156,68,29,105,33,233,163,44,194,131,80,43,211,98,154,51,239,197,231,62,130,244,144,48,40,114,122,237,43,128,87,123,+55,203,88,102,97,51,229,140,183,120,9,182,218,188,193,27,98,187,231,193,93,10,216,125,255,235,240,245,116,188,130,4,+241,54,174,62,152,114,229,59,14,105,191,132,108,60,255,130,131,168,141,84,129,35,147,162,43,176,90,216,47,186,247,144,+77,115,136,42,114,234,185,65,51,231,136,79,19,205,59,140,137,18,45,181,234,165,35,177,149,157,227,12,98,203,242,156,+166,22,175,45,148,160,78,104,2,18,241,82,176,23,131,20,128,210,238,172,35,2,133,239,218,231,75,28,70,177,204,151,+204,169,172,254,120,181,39,92,103,50,18,103,163,32,127,40,153,61,218,77,248,133,137,166,175,138,179,145,143,25,161,142,+235,101,32,178,54,212,155,80,189,49,144,150,64,125,31,52,19,231,156,174,36,130,10,248,4,201,38,226,207,251,138,25,+36,147,86,156,248,110,233,250,79,92,239,242,133,93,3,171,24,110,225,204,179,47,196,196,244,231,69,164,117,106,75,51,+237,251,71,128,107,87,200,45,200,76,108,125,18,207,93,81,90,146,105,94,48,232,235,126,216,57,2,13,249,38,197,173,+38,119,180,10,0,88,30,4,59,141,28,134,84,35,39,46,125,205,193,101,131,165,115,239,36,210,203,195,176,19,197,149,+4,114,243,42,192,149,70,74,13,151,15,68,147,211,35,161,208,124,124,250,84,50,247,248,133,234,71,236,45,15,226,112,+33,210,26,191,18,93,87,7,90,247,22,190,24,110,193,94,26,56,139,238,164,142,196,75,66,171,18,82,142,158,122,162,+221,176,85,144,185,238,68,192,189,99,57,217,89,54,73,28,110,25,130,61,9,177,166,129,210,180,63,44,53,103,164,38,+211,161,122,250,204,182,118,247,52,146,139,0,191,204,1,145,150,118,94,255,91,122,124,199,163,206,195,12,254,52,9,146,+105,124,199,147,150,242,10,10,14,177,203,82,40,57,34,217,110,36,30,187,156,95,29,131,32,75,166,97,242,221,60,26,+14,9,20,176,255,91,13,22,32,193,171,233,190,59,145,37,254,21,174,82,26,122,148,53,186,161,158,143,132,69,21,114,+122,87,47,20,45,102,61,108,173,172,198,16,47,105,7,48,175,25,72,237,37,134,157,49,24,232,226,118,22,9,121,17,+252,147,180,9,173,19,1,140,78,2,57,32,180,225,191,89,226,171,156,247,112,148,255,148,143,224,231,196,66,163,115,201,+14,101,48,220,208,57,193,215,144,101,123,32,49,227,105,112,231,8,163,67,90,221,11,173,63,44,101,200,166,169,192,246,+124,130,2,81,71,151,217,30,225,220,118,247,45,130,124,105,132,229,168,252,120,165,76,3,99,222,243,132,49,61,157,188,+232,217,192,117,70,85,131,245,213,41,129,200,18,234,0,68,115,140,211,255,229,126,119,202,207,17,59,239,9,80,248,88,+54,57,129,185,181,206,51,112,157,201,220,19,127,161,212,69,192,53,79,12,207,140,254,51,231,83,77,98,65,81,159,9,+140,243,91,171,220,248,29,230,160,54,84,213,253,132,105,137,45,44,160,213,139,92,64,127,45,14,101,162,44,103,20,206,+159,77,80,161,151,78,251,238,78,246,56,57,225,36,88,170,191,144,23,170,227,161,224,76,30,183,59,4,198,0,161,38,+150,111,161,87,254,123,175,43,152,169,237,196,236,97,150,155,212,84,71,185,130,70,157,122,22,34,145,63,78,215,82,13,+14,196,171,92,98,86,149,53,5,64,31,141,66,47,62,118,23,13,161,96,164,199,166,197,12,104,218,173,217,37,139,211,+141,143,187,186,190,56,131,200,46,36,140,214,185,219,91,186,195,155,238,171,140,180,215,134,204,91,193,100,130,149,21,190,+7,243,196,36,155,242,136,113,56,225,32,156,115,111,218,122,42,128,201,111,116,210,68,199,249,136,230,170,59,75,88,34,+236,228,195,78,101,219,99,159,33,206,124,206,201,178,78,21,106,123,109,125,126,246,139,240,186,243,205,23,144,157,221,149,+126,60,88,9,71,128,111,58,136,23,232,196,106,104,138,122,177,184,182,114,111,68,134,16,76,223,16,62,25,31,125,105,+252,151,64,5,120,168,88,199,172,115,189,66,17,28,174,20,64,144,215,38,221,255,178,123,15,134,197,158,170,163,192,192,+253,216,212,33,3,34,131,87,176,40,105,90,65,88,214,8,212,62,167,193,54,234,188,194,28,162,190,202,42,252,150,126,+76,105,217,16,231,47,124,124,226,185,73,46,247,143,145,140,170,188,154,93,80,95,198,247,59,233,27,204,100,167,17,220,+94,66,29,146,239,253,200,112,255,147,204,64,162,228,10,216,67,21,136,81,219,222,220,238,204,212,83,248,19,72,173,68,+127,73,36,45,26,201,141,164,96,206,92,76,20,16,1,7,46,65,79,29,229,170,139,66,173,148,7,211,100,161,37,255,+98,8,109,114,250,171,98,174,181,209,59,187,35,101,237,188,34,158,181,117,251,71,70,13,129,57,96,43,38,179,52,155,+81,203,176,93,179,120,191,231,47,151,77,202,32,84,66,205,127,144,133,43,229,248,0,103,93,108,127,243,177,93,233,51,+104,196,120,86,91,135,142,10,11,250,72,234,156,254,141,159,201,141,117,113,245,110,128,13,191,112,16,121,200,145,19,251,+81,10,75,206,201,244,42,184,56,140,236,41,36,56,152,160,238,207,224,239,244,108,50,244,90,118,71,197,125,155,184,201,+201,190,58,153,164,215,14,244,30,102,255,249,133,147,34,45,79,198,204,67,73,248,107,242,218,145,243,185,209,247,120,157,+150,11,213,116,59,125,86,51,148,173,50,24,222,28,9,238,40,17,83,147,33,119,184,147,68,232,91,187,192,163,142,115,+171,244,80,167,255,214,69,89,136,106,113,92,18,237,182,101,13,79,52,83,160,98,75,82,182,138,125,127,43,114,67,72,+46,60,4,180,143,217,59,137,162,206,13,103,119,6,139,18,144,222,254,170,242,177,89,35,250,132,36,196,119,99,87,7,+113,137,193,246,204,69,20,138,28,197,20,50,99,203,39,100,52,145,49,5,59,153,114,171,3,233,28,145,182,73,207,254,+219,163,188,238,133,170,145,213,144,179,31,66,248,92,94,251,255,173,188,120,178,87,200,29,162,131,173,46,132,214,172,229,+242,64,75,159,189,190,140,13,159,52,212,207,5,188,55,54,13,255,45,156,38,152,78,76,94,208,43,182,125,140,3,114,+92,1,85,126,104,46,224,45,19,27,9,48,55,103,60,203,78,134,19,9,243,29,182,222,105,132,244,30,122,59,51,89,+252,42,136,82,230,99,59,14,59,166,11,190,116,161,30,52,78,185,150,44,165,99,68,38,83,36,132,6,165,3,97,81,+10,73,137,186,16,76,172,66,137,128,59,52,21,118,168,42,46,124,233,202,32,227,120,206,18,232,206,201,173,210,175,252,+121,59,192,2,183,170,217,135,75,141,139,226,196,221,186,88,157,210,162,236,163,191,53,218,38,189,48,48,225,252,255,43,+77,82,191,4,1,193,83,216,78,227,11,18,114,48,11,209,162,99,52,67,147,76,176,150,244,9,62,108,65,26,32,60,+15,115,63,72,175,25,41,112,185,146,151,198,25,137,209,55,77,91,35,15,196,180,11,216,87,58,215,229,154,58,164,112,+78,55,155,223,119,41,132,8,59,250,185,58,164,139,236,78,213,91,104,183,50,4,206,100,1,221,110,9,122,150,218,95,+65,17,93,43,126,198,13,8,123,37,245,213,72,129,129,140,9,18,108,49,193,228,213,216,8,45,15,56,154,218,68,213,+73,84,58,234,255,246,21,93,145,120,186,104,11,119,9,238,154,135,88,34,196,147,121,225,106,53,102,245,200,201,3,78,+218,85,135,132,161,184,110,118,139,63,37,92,106,156,195,174,96,99,142,29,70,218,228,209,110,120,249,234,79,114,49,12,+188,251,29,191,178,210,177,155,230,68,72,251,214,14,229,81,224,74,140,227,248,87,10,117,163,50,108,23,91,82,215,77,+81,172,169,172,138,89,20,199,22,152,190,42,4,126,204,67,155,173,41,224,20,15,109,101,67,193,131,243,75,240,18,162,+34,60,244,114,225,98,179,255,34,114,209,136,126,8,64,24,121,5,218,228,213,219,94,206,4,38,118,51,226,76,218,26,+90,43,14,4,19,115,101,208,212,185,78,26,15,23,200,73,218,53,239,61,222,7,57,68,243,92,129,55,17,188,22,38,+140,58,43,132,128,101,25,61,84,92,104,4,173,224,45,233,66,244,33,179,34,221,62,101,138,206,8,238,153,255,193,253,+228,119,48,237,235,234,237,77,146,160,125,215,73,30,212,212,115,21,14,242,111,144,179,57,114,107,209,63,37,232,233,204,+49,80,81,218,154,4,176,223,29,196,68,1,121,178,185,193,58,59,240,174,103,10,139,102,142,183,39,187,142,62,64,41,+193,152,117,5,236,53,218,233,49,176,115,107,188,241,244,119,89,178,216,155,87,66,147,22,200,147,100,99,17,242,149,14,+76,7,176,255,247,122,156,19,74,68,204,137,37,90,120,92,60,113,60,109,239,81,118,82,166,123,22,81,13,192,108,3,+225,113,186,191,182,116,93,102,43,92,247,130,119,16,159,201,200,165,4,162,39,169,123,26,227,81,190,40,2,133,52,108,+65,26,60,5,123,10,160,69,162,174,233,30,39,97,55,253,16,124,199,69,187,184,37,207,194,63,25,171,71,101,70,1,+27,180,89,14,89,165,239,58,16,96,42,42,241,150,195,63,85,167,28,116,149,21,40,19,174,90,215,86,64,68,32,48,+228,110,165,54,45,253,189,16,161,223,255,109,248,72,84,225,42,3,119,122,29,4,47,34,190,10,116,101,81,154,184,183,+195,24,30,228,17,5,100,93,210,166,64,37,184,152,17,27,18,202,47,98,109,252,127,116,131,246,200,225,71,61,215,83,+193,149,166,187,73,218,151,130,189,255,250,254,193,168,227,75,255,135,62,153,60,18,201,151,111,110,214,189,149,21,166,152,+190,28,126,238,173,183,131,5,9,241,210,65,12,214,116,82,106,243,243,6,129,82,223,180,30,222,113,168,19,141,46,194,+0,162,151,62,128,143,166,140,65,61,19,201,131,255,130,240,108,66,226,144,222,184,62,28,130,252,97,171,29,131,94,252,+109,50,156,239,246,69,148,182,251,176,113,176,172,63,173,98,210,1,248,10,232,164,177,226,243,144,116,145,73,97,63,22,+47,189,36,114,54,17,145,38,49,220,220,37,165,67,242,240,196,196,81,227,90,249,120,155,5,64,207,24,39,1,52,245,+35,83,136,50,250,27,246,96,181,121,62,121,116,223,203,115,104,168,9,205,8,189,119,78,61,163,153,50,234,58,190,245,+197,6,75,77,34,28,52,164,90,53,19,36,77,5,38,51,188,237,159,59,103,178,10,160,242,140,120,127,64,50,87,163,+84,191,83,69,251,167,103,140,128,127,186,67,75,34,123,177,149,77,141,255,194,183,235,187,171,70,5,244,133,219,202,217,+83,159,207,25,178,136,168,117,130,183,202,72,132,208,94,157,179,60,141,52,194,156,157,139,54,93,144,223,226,99,205,133,+54,141,158,228,48,150,81,50,211,71,165,116,147,31,50,171,206,18,170,143,244,17,33,224,181,39,61,196,40,142,99,42,+195,208,100,187,237,91,251,180,145,143,65,90,140,13,141,19,78,94,118,155,140,5,161,111,148,136,129,18,241,194,22,81,+76,181,61,189,51,138,80,42,167,19,218,52,37,115,62,55,10,223,128,187,109,87,61,19,118,102,53,29,48,121,125,203,+7,63,22,248,76,237,53,1,241,3,22,240,207,84,102,127,109,164,45,121,3,168,78,187,201,253,196,250,79,217,239,221,+49,209,95,132,124,91,0,55,41,206,245,198,119,229,25,73,164,16,68,15,96,191,52,222,81,230,64,206,254,77,169,42,+76,221,145,236,113,12,106,112,71,7,217,212,35,138,30,128,204,219,28,245,118,71,103,46,28,94,205,62,103,16,56,193,+245,144,59,94,78,12,134,120,52,181,143,7,17,5,22,146,90,0,191,13,231,33,157,185,23,219,82,14,114,106,40,135,+92,143,30,212,124,97,151,121,80,164,159,218,104,26,1,22,124,150,205,204,57,193,160,155,142,6,67,249,34,177,97,57,+155,143,63,247,20,69,123,103,128,92,19,191,152,192,231,157,91,66,160,226,183,148,195,178,43,170,231,250,30,235,112,208,+193,44,87,134,178,123,64,233,25,7,76,95,7,11,139,254,85,25,232,193,70,205,206,87,108,136,193,92,36,228,194,142,+164,38,151,193,174,72,103,127,148,138,240,24,149,231,59,158,175,10,73,134,93,13,93,173,22,80,41,7,70,125,35,2,+39,166,140,195,12,17,226,32,20,249,69,72,140,151,44,49,8,110,180,81,101,255,233,248,42,129,121,50,227,154,193,247,+169,188,181,153,173,39,102,179,156,52,98,173,113,173,175,98,158,174,23,63,35,150,80,98,146,62,145,206,19,23,216,239,+63,111,64,239,76,218,196,122,235,123,12,4,54,133,190,80,76,76,229,246,110,175,223,153,148,100,188,178,221,47,179,0,+102,251,139,87,158,181,164,34,143,169,165,149,9,124,73,8,93,208,2,193,127,142,178,201,71,35,153,180,204,40,26,66,+6,232,167,118,194,135,154,238,41,125,234,89,80,225,160,227,204,164,83,39,191,249,178,208,43,177,63,43,215,244,221,200,+161,128,110,78,24,219,202,64,188,241,225,164,55,234,187,254,205,68,40,147,76,14,54,66,213,45,243,67,165,56,158,82,+150,199,127,216,163,59,16,140,83,161,167,234,168,96,82,155,98,153,153,218,29,242,127,252,252,53,194,245,62,223,152,244,+202,8,48,218,198,221,146,126,121,36,227,175,105,14,184,160,91,89,201,209,92,221,213,4,217,37,7,24,214,83,236,65,+204,16,154,191,79,153,162,226,170,26,243,249,247,174,17,97,133,146,128,162,217,99,240,45,212,20,159,133,228,7,238,105,+109,176,123,95,195,150,5,252,132,37,161,54,243,161,193,161,60,1,124,101,181,61,229,85,90,249,63,144,111,205,216,130,+138,195,141,193,233,117,211,76,225,229,153,40,94,68,48,198,21,139,189,49,159,86,123,146,202,183,0,239,54,101,164,19,+63,248,63,16,164,225,34,164,127,88,194,224,216,124,225,0,186,157,176,213,65,247,103,13,206,219,39,189,199,76,120,143,+59,36,123,69,79,170,234,94,2,145,211,70,210,152,74,171,255,252,202,196,242,60,86,117,77,105,224,91,236,82,217,34,+28,130,61,33,207,220,113,103,55,146,40,4,88,132,157,117,1,14,50,154,149,23,58,16,187,183,172,45,189,116,17,221,+231,108,94,255,254,76,157,12,247,241,8,242,152,159,182,19,230,148,91,120,219,140,131,242,30,31,172,6,75,206,104,182,+156,39,113,249,149,46,119,51,218,10,165,124,16,182,76,46,53,28,44,193,234,135,141,62,169,245,161,208,116,81,34,102,+7,39,145,189,228,91,191,228,68,153,5,101,24,119,169,3,248,52,196,57,78,124,34,166,135,39,202,186,184,152,213,153,+159,127,137,170,31,182,189,181,239,9,246,64,206,110,68,134,44,131,251,105,145,104,226,228,89,6,159,170,38,144,226,47,+143,39,230,83,249,87,50,34,1,114,255,245,53,80,158,131,30,182,202,206,133,84,75,14,200,67,206,72,55,133,153,135,+243,45,83,10,80,159,195,182,53,249,159,196,34,202,193,87,217,60,229,147,32,199,150,222,249,122,27,41,41,161,156,31,+202,133,130,110,128,229,231,19,81,193,197,242,191,220,35,238,141,171,65,155,67,246,183,157,90,244,176,7,190,25,162,104,+185,255,250,254,188,169,174,247,22,133,211,241,139,94,71,103,241,65,55,125,51,52,241,150,225,63,2,81,161,181,93,201,+40,137,106,55,165,117,128,135,216,198,243,195,236,141,112,19,232,15,245,28,216,64,204,4,188,80,5,191,15,164,210,253,+9,186,177,7,238,218,255,73,88,178,210,237,4,180,29,17,126,34,228,86,163,215,146,228,53,51,155,178,225,137,84,107,+1,39,205,200,207,157,224,168,254,63,193,30,11,176,33,81,227,115,241,248,100,118,233,254,144,82,12,191,153,224,49,208,+24,174,210,189,124,220,230,96,74,39,64,254,32,120,7,54,253,122,225,222,221,72,91,182,193,54,72,107,129,180,220,104,+239,159,168,129,89,58,53,45,38,58,98,137,252,62,76,118,234,183,29,145,150,247,241,204,202,40,196,208,94,21,197,190,+17,38,189,74,38,130,221,207,114,165,1,100,143,180,246,99,6,114,75,195,217,101,246,71,149,216,197,144,117,70,37,244,+105,119,60,83,4,156,82,191,97,253,29,227,245,116,7,217,80,181,232,132,216,255,253,125,145,44,195,18,113,200,72,231,+230,38,23,177,255,180,106,115,171,16,7,228,2,129,74,167,57,246,54,201,67,189,181,130,52,151,75,7,136,132,125,247,+196,157,174,224,39,254,255,200,20,50,151,148,76,58,18,184,133,59,124,183,131,243,200,28,5,220,75,116,168,30,238,216,+248,205,158,42,190,227,113,175,107,3,166,225,202,114,141,149,232,77,228,29,205,25,52,8,152,15,8,166,75,159,117,233,+53,70,179,57,222,218,147,115,10,97,210,141,133,115,15,205,36,41,74,195,101,117,92,91,23,244,35,166,119,157,243,119,+13,88,34,119,70,44,209,213,169,247,247,136,112,99,193,214,139,20,181,143,124,209,23,143,21,223,22,247,8,184,196,37,+121,226,218,189,154,121,228,168,187,197,21,212,163,221,46,18,170,99,165,29,237,56,241,233,192,228,209,26,180,176,29,63,+39,44,64,48,78,179,202,87,155,252,255,107,31,2,255,18,165,44,92,133,27,206,239,186,41,24,18,135,147,139,57,247,+89,242,205,106,204,162,12,62,2,188,206,69,221,33,9,153,87,96,64,90,21,241,89,192,188,58,32,188,82,18,201,94,+75,249,185,46,209,56,35,159,233,44,181,6,141,170,3,8,23,13,122,109,100,158,198,216,21,21,3,74,245,56,49,150,+239,211,30,135,253,215,222,116,14,48,41,157,255,86,253,57,111,253,61,74,32,26,66,30,92,182,182,10,12,153,94,122,+193,151,77,50,67,173,137,182,168,33,200,110,237,47,149,50,131,215,11,210,174,101,56,242,33,86,170,106,45,162,81,193,+82,251,86,28,112,237,201,124,46,54,106,82,91,154,181,142,38,132,224,149,48,189,72,225,119,7,116,68,127,231,44,74,+94,221,59,221,178,179,74,123,51,137,236,56,227,179,73,39,164,110,85,176,95,66,72,173,126,43,136,73,48,39,89,18,+181,15,222,79,32,17,21,174,188,40,119,169,60,36,67,153,35,234,38,220,175,208,193,125,74,89,129,156,219,22,169,209,+121,221,21,173,96,32,66,216,196,235,128,22,50,135,150,66,23,73,226,113,73,137,176,3,10,158,210,81,134,88,177,145,+243,104,61,253,91,42,130,107,97,53,171,181,28,58,37,228,20,195,76,115,49,237,21,182,113,11,46,158,215,234,165,240,+20,122,143,36,207,14,140,72,146,220,106,231,13,105,143,240,75,12,178,212,165,152,113,159,127,95,231,38,191,125,186,23,+241,123,233,146,137,235,46,136,5,235,235,126,243,80,44,167,111,205,23,110,233,24,45,178,70,131,11,197,89,238,157,17,+171,184,235,254,55,57,205,186,120,27,253,140,31,34,32,55,191,135,70,73,24,60,112,30,221,132,242,199,8,6,241,161,+133,105,76,136,145,223,115,157,117,125,43,130,104,143,121,164,11,63,178,252,230,194,160,238,198,78,166,105,74,69,34,40,+173,17,185,248,99,152,236,169,208,118,245,48,100,171,48,189,26,243,107,147,251,46,227,187,180,221,57,247,68,88,224,119,+14,54,34,42,203,36,123,141,126,14,74,132,211,147,4,251,69,50,74,15,30,224,20,143,16,177,13,202,10,86,164,5,+55,195,36,138,52,232,207,238,7,143,27,35,241,34,225,105,109,120,21,127,17,131,74,93,188,152,45,221,207,190,177,51,+64,7,25,200,172,255,214,132,123,165,194,210,50,220,9,237,249,140,242,166,139,222,30,44,105,219,54,234,228,35,84,241,+219,101,91,90,165,108,30,191,190,177,91,205,108,203,207,180,63,198,187,165,236,204,13,170,75,68,191,45,89,93,191,115,+245,217,35,238,110,189,200,18,97,253,66,23,70,91,91,37,245,71,179,106,219,154,30,196,217,73,186,54,245,105,177,213,+49,83,123,218,117,161,231,159,67,183,210,58,105,157,95,212,195,218,142,152,18,68,159,14,134,15,220,246,99,58,15,250,+240,9,219,42,165,205,86,249,128,97,140,130,215,95,83,60,57,3,80,39,252,173,215,118,146,124,70,196,209,218,23,162,+254,5,80,203,47,172,3,207,125,68,81,166,250,29,214,74,78,54,96,218,76,241,173,63,206,56,44,247,2,71,177,18,+96,98,191,108,204,134,240,81,192,252,123,186,123,171,212,23,245,225,11,184,64,207,92,208,193,43,119,17,231,234,73,214,+35,126,86,183,225,59,120,163,108,9,63,111,20,1,69,157,97,121,72,50,61,112,197,46,119,177,174,164,82,171,24,46,+149,42,107,93,200,242,39,166,29,99,208,168,155,247,159,100,4,135,71,217,107,195,213,121,142,173,50,43,249,242,98,240,+53,248,99,127,127,239,179,11,111,49,239,81,250,106,99,10,180,82,237,129,140,206,146,146,243,69,30,144,248,115,93,150,+144,249,69,228,103,235,229,33,155,253,47,204,224,176,110,44,156,218,67,49,187,14,88,187,212,224,160,59,251,221,126,29,+202,67,248,230,233,219,120,235,241,21,201,66,213,111,244,20,89,191,137,108,152,204,169,45,159,23,139,62,194,162,182,134,+149,39,81,249,14,91,115,185,234,205,78,208,208,60,104,107,83,66,158,141,47,41,168,65,33,146,117,102,187,162,126,225,+195,33,144,153,120,29,239,139,111,152,207,249,50,56,49,60,105,107,56,67,123,114,102,165,184,172,164,217,203,30,2,170,+224,221,180,200,23,146,236,159,202,237,140,142,98,225,133,0,123,130,45,143,23,240,171,140,173,224,203,238,139,42,43,64,+54,37,173,169,147,167,161,10,233,3,32,34,90,217,198,135,150,187,236,64,41,79,169,213,243,234,230,55,219,171,235,54,+137,212,94,79,13,248,175,168,147,125,135,9,202,159,241,83,53,142,121,59,160,60,90,235,7,231,126,76,23,231,123,73,+143,162,222,5,79,255,245,192,77,36,30,171,40,100,145,198,12,121,34,242,250,184,48,81,235,186,244,69,83,57,210,205,+222,116,39,38,21,215,111,22,176,164,19,134,131,43,104,56,28,22,181,233,241,9,253,112,31,32,213,221,206,24,213,33,+12,213,19,18,145,252,19,16,35,50,92,193,221,190,36,83,22,74,226,11,9,169,124,171,219,30,35,253,65,9,217,237,+119,47,238,59,67,52,183,109,143,175,94,49,196,40,204,251,5,200,18,229,8,136,209,231,159,102,194,72,28,194,93,230,+246,39,227,93,214,216,102,63,183,63,49,42,30,193,133,249,207,41,84,26,160,115,157,135,68,208,111,232,90,135,192,203,+111,82,145,184,45,124,55,155,174,63,177,13,198,110,210,239,226,93,1,24,123,167,94,180,45,56,124,18,70,97,125,90,+229,102,99,96,226,35,227,151,235,12,245,147,249,252,215,150,178,248,141,58,14,125,215,167,251,120,110,213,210,22,42,177,+215,89,150,134,226,123,81,194,195,204,32,157,123,16,250,109,216,244,170,37,10,27,245,245,164,196,215,215,238,152,143,163,+53,242,236,120,197,102,47,135,35,112,249,77,251,71,222,119,69,219,22,119,238,104,200,250,230,209,234,81,245,170,129,209,+232,10,52,106,109,177,227,206,44,181,32,210,2,145,179,27,118,190,10,128,105,226,118,113,29,141,44,82,82,196,200,102,+115,112,226,159,255,88,43,192,50,40,2,1,92,2,64,64,145,116,2,225,153,118,207,149,46,87,54,21,47,162,145,181,+243,101,21,144,6,144,108,9,155,59,162,173,142,199,100,40,254,67,101,31,239,174,109,20,197,206,71,87,233,198,160,32,+251,81,218,179,169,110,47,233,163,245,249,87,180,136,132,41,114,161,190,194,59,104,180,38,97,161,16,200,55,57,240,127,+195,14,189,139,132,0,214,201,243,101,149,177,180,97,101,121,123,22,125,205,39,220,235,227,215,207,240,114,115,109,102,188,+156,220,1,62,25,39,198,72,12,74,14,31,22,170,76,108,59,23,176,252,120,163,129,158,18,254,250,161,229,120,62,161,+133,168,240,180,206,133,88,229,20,56,16,56,64,168,221,90,177,130,237,92,87,18,73,123,247,140,5,2,130,190,60,94,+117,115,234,76,173,156,199,206,221,182,169,21,59,91,130,41,143,254,19,43,223,209,195,5,126,205,30,37,215,83,187,68,+255,247,177,76,121,90,186,20,214,45,112,174,108,11,220,75,1,191,66,238,181,27,217,7,0,117,103,157,95,235,166,152,+244,76,116,189,47,241,195,45,119,162,139,248,102,130,72,219,5,237,156,153,11,8,97,175,215,222,149,166,153,205,191,52,+51,247,190,9,85,208,150,22,22,63,129,40,238,100,140,149,8,237,198,10,245,45,118,213,174,128,83,114,116,247,31,99,+86,215,94,13,151,217,143,159,111,173,109,109,255,173,110,46,213,223,31,188,13,29,119,171,116,132,3,41,242,125,179,58,+25,255,7,214,68,149,40,74,239,47,58,213,78,7,95,184,125,217,247,231,230,132,5,18,175,68,204,170,91,49,220,22,+212,193,151,230,88,172,80,8,185,191,3,180,223,106,30,148,133,173,7,32,132,52,225,116,107,179,112,182,133,175,255,61,+113,79,114,127,181,163,253,186,52,82,132,47,96,225,127,89,194,186,108,26,33,237,224,151,212,11,6,214,51,229,80,252,+194,79,81,99,141,201,2,180,231,197,86,71,99,156,186,98,224,39,204,93,199,129,214,231,146,76,236,192,38,214,190,53,+74,185,61,31,90,38,108,247,38,9,39,224,251,76,89,169,40,254,169,1,171,129,247,146,118,21,202,0,42,115,229,148,+184,69,82,34,205,26,140,70,208,235,118,14,123,38,98,94,4,246,153,218,155,107,9,42,244,2,226,58,100,105,214,35,+106,33,133,197,239,227,134,205,224,252,134,170,151,124,148,204,173,138,96,135,246,5,80,106,42,56,86,233,175,47,125,113,+239,96,152,164,4,215,41,208,141,12,70,35,25,251,42,170,37,42,219,216,140,95,217,117,55,154,235,69,221,46,104,255,+173,32,20,114,39,168,215,59,190,7,253,27,150,33,97,110,255,111,76,129,87,166,12,218,166,146,5,231,25,40,7,60,+84,149,14,217,73,73,240,82,230,163,140,205,46,87,94,31,8,201,252,158,230,114,177,82,22,135,10,39,89,108,149,167,+207,161,104,162,120,233,1,222,7,49,178,134,18,230,64,237,202,24,120,74,196,244,51,228,89,188,241,58,43,4,200,120,+34,241,23,227,195,25,94,236,210,227,101,107,27,167,82,45,153,12,19,8,193,86,239,109,182,210,124,65,84,211,247,72,+128,233,211,167,208,108,125,38,225,161,81,236,209,20,251,135,255,146,191,230,243,125,24,246,121,63,188,163,87,176,241,153,+86,86,74,194,62,107,240,78,146,24,179,241,111,20,108,254,148,74,195,242,171,175,175,82,197,175,224,110,138,77,250,229,+3,101,112,1,157,104,77,158,247,141,167,243,201,152,123,60,29,155,240,248,152,55,0,192,132,31,49,247,183,46,53,19,+150,84,17,219,91,245,73,8,79,141,173,220,59,123,96,180,250,33,148,253,20,253,146,203,13,94,191,26,204,199,13,155,+185,89,142,1,144,226,189,148,107,187,207,42,224,35,187,144,119,210,136,192,135,67,163,11,230,169,254,57,99,161,147,36,+35,99,26,161,187,195,131,199,112,73,178,13,131,81,124,250,174,117,62,71,147,215,69,254,52,30,12,201,212,152,38,213,+109,191,37,198,34,110,91,55,194,40,249,245,52,206,195,103,94,63,229,62,236,188,249,214,1,69,87,249,80,107,249,155,+83,111,22,25,54,235,173,15,151,151,162,190,172,206,247,208,127,116,93,227,221,165,83,166,199,27,154,94,102,106,184,31,+191,78,160,80,79,74,191,219,231,167,221,239,178,75,97,56,105,184,218,210,121,203,57,69,58,156,183,198,59,156,53,95,+137,254,211,84,28,5,151,185,62,155,239,218,222,30,191,86,19,46,152,237,160,132,108,66,128,42,17,246,109,238,96,177,+204,144,227,225,112,126,229,235,147,154,49,2,202,161,49,229,119,180,218,255,109,6,248,203,190,49,254,178,218,63,17,21,+115,215,164,85,113,218,67,16,178,78,136,130,81,95,96,167,190,54,226,29,99,86,68,22,20,172,147,204,31,10,16,65,+146,228,48,145,1,202,191,132,1,199,58,74,106,63,27,156,232,142,223,106,138,126,16,220,157,30,69,147,185,245,235,239,+15,248,44,237,109,90,56,169,253,51,7,255,211,43,61,93,43,155,233,162,229,38,248,128,153,233,158,33,133,150,243,43,+247,221,85,81,82,68,3,150,53,8,240,232,88,243,143,194,35,44,201,53,167,4,138,154,113,46,225,9,82,183,122,170,+60,131,150,198,101,103,151,202,252,160,75,108,254,157,242,192,23,14,102,148,6,35,127,21,247,90,50,150,30,132,86,7,+48,213,1,127,220,77,76,168,66,65,113,226,157,12,186,246,73,247,39,112,18,176,211,214,32,213,42,107,107,44,33,27,+178,167,193,54,215,141,39,6,5,194,193,60,5,203,144,46,170,34,221,66,243,141,218,58,58,244,225,29,154,53,172,9,+79,92,67,7,220,177,143,52,10,198,96,50,38,164,43,161,90,169,143,182,38,103,85,57,138,41,123,133,208,159,116,147,+188,57,217,197,103,255,45,49,14,119,205,111,233,189,241,198,252,34,231,114,17,118,198,92,212,225,126,74,66,84,255,140,+0,26,107,186,208,74,150,55,78,235,182,78,173,192,167,52,60,11,166,210,17,105,197,79,233,107,212,119,169,231,110,209,+52,107,188,215,47,159,116,143,87,121,172,186,56,72,53,239,57,63,190,21,75,194,158,194,148,137,0,70,157,114,241,180,+61,102,231,1,8,168,141,74,107,194,194,189,254,21,43,100,226,148,150,33,216,11,178,34,6,192,215,75,240,13,165,119,+195,207,211,5,127,82,112,166,19,79,157,43,110,70,194,29,174,125,69,74,3,198,41,91,110,125,242,16,92,118,178,31,+211,62,96,251,3,212,252,87,167,147,102,239,37,42,17,148,31,144,153,89,6,118,225,7,195,0,98,232,37,98,15,132,+86,148,88,105,47,8,0,189,5,195,161,158,235,144,197,208,207,44,238,52,243,49,0,27,89,124,226,252,113,14,142,86,+78,156,118,192,55,31,150,227,224,27,37,179,200,41,213,71,227,115,172,189,74,155,16,84,114,162,135,181,7,241,38,166,+27,119,233,190,80,199,201,181,3,178,28,84,184,73,221,12,205,228,5,9,62,6,17,133,9,196,62,104,162,77,51,245,+211,159,154,196,93,136,217,219,136,155,161,115,154,1,148,168,51,220,222,191,25,115,244,197,88,109,134,5,80,196,11,255,+103,49,84,216,102,145,52,222,158,58,186,96,127,91,117,58,217,70,255,153,255,214,189,246,88,90,43,152,79,46,16,52,+110,216,135,222,137,78,217,49,246,139,226,118,59,229,139,195,238,134,191,210,101,214,65,167,229,133,49,51,70,111,201,243,+62,230,34,47,249,165,238,35,173,159,20,180,219,23,251,109,82,46,237,172,147,94,145,168,235,243,48,70,128,160,193,108,+224,165,85,19,67,40,43,244,33,58,136,214,140,234,206,158,3,85,220,41,169,123,245,153,92,207,247,187,47,70,49,136,+230,235,204,23,15,53,252,114,156,196,186,3,10,2,196,209,162,64,66,102,192,199,210,218,187,61,145,90,147,222,213,151,+98,103,43,31,23,199,200,160,73,32,36,230,235,117,9,135,128,196,4,236,241,96,124,202,175,212,3,160,222,63,215,123,+104,41,216,174,182,118,172,228,63,75,188,32,111,158,118,94,54,83,64,120,15,118,79,80,107,155,120,158,240,237,69,53,+254,170,59,111,13,39,139,38,242,100,45,92,220,236,244,234,82,192,75,82,141,219,15,226,214,1,149,152,63,110,193,79,+219,97,105,227,89,12,149,143,10,84,202,233,51,215,15,248,67,193,152,142,54,232,36,218,254,88,220,52,121,161,158,242,+59,83,240,81,52,173,101,168,53,105,164,158,174,11,207,120,165,184,211,31,251,142,139,240,180,223,248,137,246,159,111,5,+207,12,46,135,156,196,252,199,48,129,224,189,49,131,153,112,171,47,199,48,178,90,78,25,190,194,114,170,27,210,203,68,+10,158,164,44,140,98,240,115,63,188,127,135,185,59,179,172,206,119,36,43,15,200,137,120,180,250,46,203,16,29,129,196,+121,42,69,164,161,253,137,195,73,180,217,201,144,59,71,222,196,255,107,30,163,135,40,207,23,254,223,192,6,148,193,167,+197,39,209,202,63,8,219,237,91,64,120,163,153,100,4,65,224,83,82,88,114,166,205,187,173,251,100,255,226,175,14,236,+234,42,230,62,122,164,208,189,163,203,226,170,86,97,139,77,26,150,208,141,71,31,18,237,75,75,106,216,13,80,168,137,+245,139,119,99,42,200,207,14,199,192,123,60,2,34,244,23,75,55,160,185,197,19,10,207,60,111,24,25,222,31,17,22,+230,194,91,123,138,101,217,154,77,136,181,95,15,194,200,40,247,61,234,45,81,64,139,182,183,75,210,251,167,64,227,235,+53,2,191,94,49,221,6,196,37,145,34,244,200,205,230,121,84,39,129,31,95,53,90,241,203,205,199,254,164,170,194,16,+58,97,156,180,167,14,192,5,228,145,135,9,107,71,200,20,183,111,150,101,223,37,222,221,41,151,89,222,252,191,246,140,+58,170,248,125,147,5,251,78,198,198,57,238,13,86,171,71,113,203,224,143,255,134,29,19,150,242,245,242,196,69,8,82,+188,81,182,153,140,64,114,140,85,79,36,247,110,48,19,79,240,47,165,45,223,16,27,106,212,235,96,154,143,89,54,134,+197,22,254,19,209,2,223,8,161,41,143,235,200,162,148,63,10,70,17,3,12,241,72,215,98,185,223,237,85,60,171,71,+16,106,54,98,235,102,34,13,71,250,185,248,165,149,91,149,82,110,73,163,39,178,252,181,61,79,223,88,211,146,222,228,+8,92,218,181,102,155,255,19,200,46,134,20,192,106,11,241,182,160,108,132,93,79,52,232,236,28,240,49,91,101,36,205,+57,44,7,120,158,241,75,30,60,11,32,203,135,46,120,62,22,90,218,183,204,62,123,17,57,199,44,71,172,30,225,54,+206,168,255,134,116,202,231,218,239,217,68,196,200,100,181,106,194,98,155,136,253,251,63,187,170,7,117,65,232,80,206,183,+167,119,5,208,220,86,36,6,84,185,174,252,64,111,42,147,95,67,5,174,223,248,19,242,163,96,109,216,38,142,4,254,+158,46,142,226,79,108,250,20,110,213,190,20,15,84,62,251,75,51,4,107,139,45,216,193,135,148,122,133,254,111,239,37,+58,32,24,139,206,219,93,5,212,29,174,63,143,100,89,211,145,175,33,132,73,142,96,134,158,221,39,238,239,134,251,167,+9,250,40,22,172,83,39,189,142,242,80,127,174,242,17,40,83,134,241,45,41,180,70,163,224,68,97,252,69,120,93,100,+26,118,195,130,40,122,135,77,218,165,189,175,244,39,128,222,121,170,13,211,219,214,213,187,248,216,23,203,98,212,153,124,+253,0,30,215,52,164,57,119,81,111,226,97,234,122,173,251,8,214,67,117,72,240,101,246,39,219,57,154,134,46,106,47,+15,137,238,230,168,114,47,200,43,109,131,95,145,72,30,195,1,212,12,190,129,196,255,240,253,96,34,92,53,215,51,77,+224,115,121,12,126,6,73,147,191,61,181,21,137,167,133,232,138,155,157,114,171,157,193,191,38,217,158,77,182,224,95,245,+9,210,73,215,62,49,167,156,177,204,196,8,67,140,169,158,149,53,125,167,123,206,186,129,84,250,70,79,7,10,186,2,+47,252,180,236,140,207,171,178,124,127,163,249,100,251,235,163,183,100,92,162,230,225,51,175,14,145,195,124,19,103,84,203,+238,147,70,255,60,36,87,203,183,147,86,43,183,137,27,34,171,160,204,214,61,75,39,232,217,69,75,88,158,161,75,76,+180,98,119,250,0,164,105,60,82,94,218,201,17,210,122,100,138,107,243,137,133,119,235,183,15,56,245,44,92,3,184,212,+29,48,153,80,153,35,222,42,149,130,84,100,37,155,4,46,223,75,240,119,66,148,5,59,200,47,31,158,157,165,208,68,+137,154,41,217,116,144,248,48,243,244,182,87,203,169,72,174,72,223,32,229,145,159,215,190,220,103,128,111,7,15,209,113,+13,179,212,181,36,83,243,78,238,199,226,111,110,29,71,58,239,134,11,199,105,176,183,100,1,41,32,32,8,250,125,186,+102,132,174,208,65,104,53,245,100,131,180,0,254,154,76,136,110,39,85,108,134,15,69,201,72,13,161,163,133,57,180,16,+70,232,26,111,137,44,230,103,234,224,137,104,226,228,96,227,13,183,58,48,194,218,112,216,17,179,227,52,15,141,130,115,+162,69,18,104,62,245,97,22,134,232,64,244,223,213,220,203,169,197,38,76,203,72,88,18,161,99,22,83,126,23,35,191,+166,227,126,159,204,183,52,6,150,39,104,109,24,98,217,179,43,43,232,45,17,140,74,110,16,185,126,33,26,252,191,76,+188,135,131,197,182,76,12,54,59,229,146,18,115,34,195,68,163,40,127,40,206,34,201,133,104,187,172,110,251,200,107,33,+70,150,130,43,216,226,199,98,35,220,80,250,103,177,189,232,58,149,51,226,62,1,80,44,201,28,131,252,11,201,111,239,+96,128,139,68,56,143,165,77,167,14,215,4,15,50,233,133,229,223,153,230,60,24,114,11,198,220,193,72,155,86,188,196,+139,224,100,97,173,161,74,209,100,253,163,45,160,90,224,13,188,152,194,22,107,22,224,235,242,142,183,76,46,98,27,167,+180,254,36,56,35,128,65,95,86,154,100,198,49,198,249,82,233,242,91,18,87,112,92,181,57,235,106,245,77,129,7,144,+188,53,109,108,107,37,86,99,27,205,140,233,20,140,60,69,164,199,107,195,134,5,255,45,25,228,156,140,216,118,192,51,+172,215,253,112,82,105,179,69,106,66,110,67,136,91,28,202,162,113,207,38,255,247,122,133,32,107,188,202,212,64,158,95,+133,63,115,225,68,91,92,1,42,255,244,0,73,85,178,197,118,227,3,178,12,159,171,214,116,215,242,55,9,244,22,246,+205,133,10,225,240,134,232,189,9,13,9,131,37,132,122,1,19,198,220,96,243,6,34,60,47,76,34,192,142,77,75,182,+93,249,16,101,233,141,74,99,90,22,108,239,178,28,113,175,115,62,41,30,182,21,175,38,227,236,26,148,210,78,251,182,+229,198,175,93,82,160,159,136,236,149,49,246,39,156,212,115,111,170,232,209,219,155,174,69,78,21,79,242,249,36,108,206,+226,17,237,125,213,67,116,121,185,148,149,224,191,255,240,120,11,33,172,212,225,108,201,167,225,9,178,248,63,161,139,145,+251,139,59,143,140,15,56,20,108,151,66,167,254,65,86,52,193,0,222,192,97,41,24,233,76,40,48,21,65,91,154,93,+201,167,51,42,199,119,86,11,107,117,75,37,62,85,58,22,151,177,58,18,104,69,194,87,27,61,114,23,188,72,102,191,+138,136,105,210,103,195,167,20,233,157,66,248,4,55,99,93,194,95,91,93,89,196,187,121,114,140,195,22,107,10,37,95,+213,212,112,117,103,218,237,209,7,203,60,159,19,163,214,51,96,198,172,156,235,0,125,246,16,214,237,95,92,82,161,142,+130,130,187,105,88,254,243,175,74,234,163,28,230,4,100,26,14,107,17,116,140,124,101,127,115,206,35,201,226,88,196,56,+54,232,99,0,3,230,223,97,70,88,11,92,67,253,122,32,57,125,12,50,108,252,234,41,180,142,156,216,13,91,202,112,+100,177,41,168,92,211,71,35,170,12,8,64,102,30,96,44,39,77,121,182,173,191,230,40,210,228,196,4,230,245,4,142,+167,183,242,222,54,30,206,185,249,104,129,26,4,217,169,236,3,1,11,234,48,194,196,248,136,229,206,11,9,57,104,152,+65,230,69,38,36,242,122,86,3,112,90,55,149,10,75,74,157,19,77,71,12,128,31,248,115,142,103,43,108,5,146,81,+154,147,133,189,253,226,59,19,186,92,240,113,6,228,98,102,36,113,66,16,189,69,102,220,188,253,57,213,110,36,71,172,+126,190,220,6,218,145,109,252,201,171,185,159,43,254,252,240,7,158,6,201,51,32,163,75,27,128,207,138,75,44,157,225,+78,192,46,136,154,60,69,57,204,141,119,242,255,126,97,40,213,17,111,150,98,48,182,215,25,22,241,216,169,118,38,253,+223,64,130,220,166,246,192,221,27,78,120,106,167,173,102,47,184,43,84,120,6,252,181,91,17,88,8,117,158,47,25,247,+201,184,164,29,215,174,153,90,39,132,240,149,84,6,247,102,131,85,90,37,164,60,102,207,155,138,179,10,233,176,12,233,+75,157,15,33,152,159,113,131,186,105,0,229,37,208,255,200,246,185,54,238,33,13,239,9,14,121,238,97,193,85,82,94,+160,52,68,71,113,119,213,38,145,67,100,39,188,144,166,170,12,195,40,5,89,11,66,212,53,73,91,51,98,92,62,88,+167,165,41,168,105,204,101,114,118,64,17,249,89,134,110,228,13,45,250,17,170,131,102,239,234,168,143,216,167,26,247,254,+199,21,179,255,138,250,131,207,255,243,232,168,138,169,26,152,62,237,184,194,52,103,121,179,110,164,59,99,198,255,102,33,+167,193,16,181,190,136,191,109,75,105,132,131,8,107,215,52,74,35,80,27,82,110,217,49,254,131,154,35,206,59,137,129,+148,44,108,215,138,60,211,229,96,231,155,55,182,232,200,126,75,217,25,196,151,117,108,56,157,95,58,138,68,231,251,51,+161,6,101,194,151,202,7,36,200,41,160,252,116,149,42,140,125,90,252,72,139,198,114,46,153,10,19,228,100,90,245,169,+31,251,26,38,234,142,123,144,49,90,67,133,173,69,32,117,129,174,92,180,71,247,240,163,65,59,157,132,94,238,127,97,+42,56,233,31,213,242,104,145,128,63,149,40,202,198,217,53,63,220,70,189,246,166,2,40,29,81,0,130,74,50,162,48,+39,34,86,30,94,145,8,25,9,227,107,53,229,33,117,114,224,21,202,140,239,43,33,220,168,39,62,234,243,2,108,104,+173,69,141,167,104,144,138,0,25,115,99,229,147,187,109,203,87,254,198,245,225,100,194,137,136,128,169,102,199,179,113,44,+103,182,38,189,43,51,72,193,49,201,13,232,105,36,38,254,245,11,233,222,49,141,214,45,232,127,120,90,27,118,66,191,+189,150,4,177,70,220,223,237,238,52,101,202,99,69,85,202,16,95,67,97,77,204,95,237,110,82,108,139,12,120,78,11,+134,46,170,220,135,17,225,216,225,21,78,217,98,233,250,113,215,134,210,60,203,138,71,179,249,216,75,70,121,187,207,94,+168,97,123,35,163,118,153,210,84,177,56,158,139,235,248,212,34,250,23,33,65,138,180,176,32,97,197,185,74,153,159,108,+145,199,227,239,116,212,116,39,198,214,95,24,193,17,46,192,253,224,79,22,199,156,83,208,138,15,99,46,173,175,131,222,+33,84,86,32,25,67,38,4,156,81,51,150,154,150,103,195,26,145,190,190,66,87,179,80,100,230,244,50,161,62,141,74,+58,250,47,8,50,142,244,236,121,224,162,85,219,199,243,218,0,65,253,122,141,75,238,178,53,11,80,139,197,132,182,141,+121,20,175,79,110,115,177,113,240,125,222,75,219,16,2,9,1,153,136,116,152,0,128,66,122,73,140,11,194,49,130,210,+186,6,221,147,160,141,172,182,8,4,182,82,80,166,199,165,107,29,255,1,156,38,236,190,201,202,175,130,13,204,150,64,+92,186,82,127,167,119,33,83,208,26,248,70,98,122,104,170,224,62,91,38,197,30,43,138,226,23,214,255,76,232,192,41,+44,145,194,117,202,93,122,235,235,137,127,130,235,25,226,208,1,21,45,132,29,174,207,169,207,180,152,192,54,34,47,239,+248,118,22,231,222,163,99,167,104,140,99,101,69,3,124,245,182,182,229,99,49,252,6,160,157,194,112,39,69,214,152,88,+249,212,78,67,78,177,235,98,71,145,187,221,238,230,238,172,101,98,90,247,76,133,177,88,195,217,28,165,196,114,51,14,+104,231,129,35,142,204,180,170,80,0,41,203,13,239,21,209,94,30,221,147,140,241,229,130,191,30,248,6,14,192,121,67,+110,159,241,107,85,50,228,82,8,159,65,226,224,139,90,112,161,247,194,215,141,156,245,131,89,13,100,232,83,224,109,130,+36,58,75,111,181,189,76,134,20,136,33,38,33,93,156,141,199,208,145,173,144,107,12,87,121,130,138,230,180,35,178,178,+160,70,41,254,89,107,55,99,38,234,97,233,161,179,220,208,228,172,126,15,129,76,57,156,140,192,172,116,26,235,39,1,+102,42,232,156,200,26,78,41,96,158,74,26,116,47,123,198,99,25,210,227,140,22,8,0,237,228,180,43,125,38,223,208,+102,139,190,67,199,46,58,7,150,56,169,15,159,125,210,211,204,207,28,143,62,114,177,131,199,92,96,162,50,249,181,250,+245,174,211,196,13,92,124,214,97,253,242,5,77,237,64,215,176,87,233,166,135,28,82,74,77,149,154,182,17,137,138,144,+85,214,3,21,84,249,172,193,87,7,232,201,160,88,158,75,228,16,232,207,1,179,10,54,203,83,74,173,192,196,50,231,+251,231,47,180,3,113,175,154,172,154,152,30,255,197,173,110,62,216,55,81,235,62,98,216,135,171,180,206,224,143,99,101,+116,208,91,198,11,61,25,73,204,86,109,40,192,239,74,120,178,70,38,62,2,35,202,77,201,80,83,226,57,139,168,87,+21,167,64,80,48,124,202,210,242,99,46,41,26,209,114,201,66,69,244,115,144,141,76,18,149,210,57,53,214,175,167,61,+129,34,195,63,186,6,250,43,31,163,194,90,31,8,36,242,166,70,202,150,105,230,223,99,82,220,130,76,155,30,99,90,+89,203,187,123,155,241,98,105,188,42,173,204,231,116,95,210,254,44,7,148,122,82,164,86,88,110,79,181,255,155,64,91,+117,130,80,92,62,138,51,98,206,167,50,15,243,251,113,117,84,97,145,185,139,167,133,99,58,232,129,63,182,186,102,249,+10,113,218,38,171,175,8,196,76,92,114,137,177,209,26,164,138,177,150,200,53,106,255,22,251,70,17,139,165,46,0,21,+81,95,98,207,42,34,206,32,6,64,139,69,86,195,254,40,34,111,38,201,101,176,70,47,95,23,137,81,208,100,244,172,+215,196,115,205,216,46,142,3,124,123,113,100,219,236,99,199,30,203,105,60,46,238,6,144,19,94,23,200,88,150,201,177,+201,18,120,106,248,184,235,82,86,190,220,255,218,50,81,11,11,7,119,100,242,44,184,7,30,18,69,210,71,203,94,178,+95,87,166,91,141,94,223,198,122,14,154,43,76,64,125,49,48,38,92,226,29,245,95,104,61,159,31,22,68,10,123,128,+225,177,143,172,34,49,197,20,208,232,255,30,231,201,207,182,137,28,78,31,126,212,34,230,206,58,145,150,26,174,150,151,+22,247,147,98,219,52,139,86,211,141,229,211,84,73,152,44,215,78,225,58,219,96,117,172,0,255,35,44,249,180,71,45,+237,8,172,169,133,252,23,76,201,95,154,41,243,232,5,221,196,212,36,50,148,131,92,224,133,230,168,223,220,50,161,25,+203,151,80,214,67,5,20,199,187,94,82,164,137,101,162,80,2,138,146,251,121,120,56,178,144,139,222,7,64,110,124,10,+33,140,62,57,50,166,153,194,174,50,248,20,20,101,34,67,140,79,213,122,92,225,34,153,61,55,38,232,157,39,203,162,+67,7,252,124,114,87,91,237,129,69,7,140,251,112,38,96,243,47,71,124,54,201,44,119,215,206,0,52,93,223,221,15,+69,57,202,89,246,244,14,131,138,230,172,150,174,245,182,57,89,177,219,203,206,217,105,228,24,193,247,142,184,4,172,218,+156,156,113,103,27,74,133,113,148,35,95,24,197,53,128,196,24,221,204,22,186,131,40,41,132,133,16,183,16,22,72,187,+141,133,253,198,4,215,180,188,56,159,242,0,15,118,51,170,239,203,92,37,13,239,220,11,59,179,39,43,199,84,225,172,+91,70,74,244,114,2,165,90,178,214,54,247,230,226,252,1,145,87,209,20,187,108,231,132,208,104,182,73,43,85,252,10,+221,185,91,146,164,154,240,171,21,235,129,90,113,124,161,252,47,4,150,38,216,40,77,226,163,90,204,172,15,171,110,144,+47,126,248,165,130,164,45,55,126,24,130,45,85,46,46,191,67,229,85,128,95,62,96,102,217,196,75,41,66,91,129,120,+102,195,62,196,218,69,173,90,130,11,46,65,68,173,113,136,69,38,76,146,14,243,1,82,228,72,252,230,115,127,192,167,+145,194,176,167,213,145,192,23,243,13,17,149,218,71,42,97,41,188,208,197,135,195,186,100,52,111,10,251,163,13,18,54,+216,204,144,95,60,6,40,190,159,16,189,12,115,39,236,185,146,58,236,13,238,195,204,143,155,19,174,42,84,113,229,212,+250,248,164,76,88,235,195,75,221,143,187,8,54,81,59,91,151,111,4,5,73,147,177,47,193,99,169,0,223,37,196,159,+209,237,163,50,129,165,77,46,171,203,99,84,157,132,122,248,109,23,76,68,16,172,52,24,195,83,253,12,119,138,6,74,+146,136,39,21,6,201,30,172,112,238,52,185,201,24,220,170,102,14,201,255,240,216,110,101,138,49,205,222,155,176,178,112,+104,93,170,145,145,161,39,36,136,251,47,147,173,240,128,4,124,243,74,243,102,98,142,241,175,134,84,198,13,24,96,90,+145,139,10,107,189,254,36,208,144,180,6,141,252,81,128,18,155,171,238,57,144,169,186,56,44,251,45,235,199,216,59,96,+108,136,28,89,95,117,177,249,25,210,59,140,212,92,168,123,167,166,31,239,136,233,201,145,9,49,35,9,72,73,102,119,+53,144,131,163,241,81,128,142,14,185,193,128,248,21,94,197,126,240,167,161,211,142,247,188,36,80,34,178,183,45,98,7,+95,147,23,1,64,36,103,89,203,61,42,129,224,167,97,59,181,6,152,100,38,128,237,133,132,169,24,17,80,236,225,27,+210,133,89,27,197,191,122,27,209,4,190,223,143,237,251,244,201,28,243,82,249,86,101,206,100,72,122,2,141,101,187,51,+167,73,178,23,225,25,46,164,216,89,202,29,131,3,255,246,207,13,97,183,84,182,136,74,116,89,190,244,98,188,165,165,+68,89,147,26,113,160,245,38,30,52,219,120,17,181,218,78,166,162,188,50,44,100,26,54,216,56,226,231,64,226,206,250,+140,105,32,92,102,207,198,173,43,13,125,124,157,67,247,13,240,216,206,12,49,190,85,122,101,255,43,15,164,86,188,41,+249,22,234,207,230,221,111,52,215,33,167,39,159,96,92,25,222,148,160,3,44,222,177,52,138,168,179,83,15,118,21,80,+55,100,23,62,241,170,34,104,94,35,178,59,7,234,11,164,47,15,35,156,48,12,137,141,158,76,216,212,154,12,65,39,+126,177,7,165,222,65,101,245,195,42,239,88,218,69,5,50,195,172,54,66,122,225,138,176,154,111,72,31,24,33,98,189,+60,193,221,227,31,59,199,231,163,240,153,22,86,193,85,251,147,93,111,123,67,206,7,130,19,69,236,251,140,84,198,22,+123,138,215,106,9,140,11,232,109,30,33,114,84,248,32,85,133,105,135,37,47,4,122,165,204,108,208,118,193,249,210,120,+243,140,38,245,107,179,61,238,146,165,178,239,84,134,39,189,254,39,139,102,209,29,3,177,244,61,25,6,108,43,230,251,+238,58,196,205,62,171,26,14,119,61,17,65,98,136,117,85,46,113,117,35,62,30,89,33,241,250,73,118,66,213,246,139,+1,218,49,34,147,82,64,196,126,171,39,29,126,114,6,182,193,198,91,121,255,192,231,11,126,76,78,76,7,138,46,147,+84,127,137,123,240,220,225,223,208,111,252,135,112,232,232,96,67,144,115,210,45,210,36,197,28,231,185,105,145,125,93,6,+10,185,164,171,142,13,42,43,229,54,54,28,117,254,104,18,248,5,110,88,12,155,49,11,4,173,94,169,43,126,155,190,+54,16,117,10,7,127,135,155,213,146,115,189,101,1,60,99,130,188,203,157,52,169,48,197,48,15,144,196,104,217,108,152,+137,162,145,229,102,18,172,58,180,50,0,241,64,141,200,161,128,90,206,244,92,235,34,27,231,69,125,142,73,118,27,37,+134,181,186,195,98,45,105,26,24,53,113,23,242,13,168,8,163,85,117,93,25,70,253,74,251,112,202,61,228,213,3,6,+254,60,63,184,110,133,45,226,73,97,177,226,14,149,92,252,152,124,63,102,222,52,245,208,181,178,216,236,147,60,251,131,+216,134,0,131,194,247,190,240,34,205,188,201,191,200,163,65,236,51,255,115,121,156,65,114,145,25,114,246,177,158,173,17,+92,163,104,12,101,12,86,113,16,166,208,155,6,179,99,246,191,247,243,218,253,98,18,119,140,206,11,166,241,29,208,197,+91,66,158,251,113,47,109,162,62,11,52,132,156,211,12,54,191,164,250,243,188,212,172,118,51,214,69,189,228,224,76,69,+74,102,111,203,34,48,88,143,170,19,243,254,178,28,155,178,14,103,81,59,247,127,250,59,137,24,248,92,102,37,222,41,+114,106,63,152,48,24,53,142,73,204,168,192,135,255,81,250,70,93,22,125,69,210,239,138,185,152,16,113,151,199,79,251,+128,57,45,68,93,246,200,249,45,91,170,115,170,141,74,82,155,206,70,165,14,153,121,81,166,196,20,149,142,188,231,80,+72,167,108,122,58,61,125,111,128,85,173,172,9,248,71,119,59,175,240,113,122,251,74,51,162,189,177,67,37,42,222,167,+154,87,95,11,81,154,161,135,48,95,198,216,12,23,38,87,112,230,107,110,219,68,135,238,49,146,241,154,144,179,135,111,+93,77,228,187,159,29,11,67,43,201,238,204,15,66,227,187,185,54,207,217,10,97,138,234,63,24,63,170,113,63,128,123,+50,247,10,74,190,144,240,84,53,91,218,194,203,102,157,49,130,173,14,35,141,239,22,103,150,252,147,21,54,115,117,220,+253,114,109,139,245,89,178,96,127,30,9,50,248,135,116,172,65,0,227,0,102,211,199,4,43,177,175,244,26,165,27,218,+90,144,255,84,2,102,46,92,46,153,89,43,77,124,226,118,47,66,52,11,193,58,6,115,27,171,205,53,169,116,138,72,+63,240,71,45,90,239,191,225,67,143,231,166,37,58,66,206,40,133,160,242,215,4,252,202,170,160,191,108,162,87,12,60,+51,135,55,204,165,146,160,15,163,184,168,105,46,242,27,72,127,39,187,235,183,113,238,190,50,208,99,25,189,18,12,26,+1,26,95,225,160,69,54,254,180,102,200,9,207,148,240,161,201,240,224,70,255,178,99,178,27,88,228,59,235,159,157,209,+85,12,100,108,173,125,7,167,167,88,26,38,215,252,177,254,144,100,135,105,82,255,157,189,106,120,238,41,65,68,105,71,+54,48,0,164,173,246,208,168,48,240,33,84,226,55,241,195,164,233,98,204,20,136,139,23,240,159,179,249,87,3,61,208,+103,99,219,10,224,6,178,32,46,250,224,38,30,4,49,3,148,58,6,237,53,172,87,185,79,206,145,7,154,150,46,166,+147,140,212,16,40,48,208,136,186,120,225,4,250,100,26,199,55,151,93,109,95,145,95,231,201,223,85,196,235,223,93,196,+102,84,192,222,81,15,217,255,193,207,121,144,16,6,173,143,44,206,94,236,57,243,132,221,57,33,108,210,7,38,120,21,+221,129,106,137,253,137,39,210,86,67,11,16,96,242,3,250,41,119,68,197,67,103,82,87,18,123,38,233,144,147,32,208,+22,18,75,114,101,15,78,69,228,93,153,48,22,238,22,217,85,230,56,137,42,140,223,99,22,228,231,114,109,237,48,149,+102,3,203,40,154,137,162,14,210,163,229,123,161,224,80,166,14,47,67,212,80,122,224,46,137,244,110,135,121,90,56,33,+228,155,140,177,219,26,168,146,172,127,159,243,127,181,72,126,165,236,82,131,71,247,118,247,59,45,217,7,129,185,4,252,+101,130,57,236,24,115,40,214,132,179,189,72,100,134,128,131,180,99,246,139,37,136,84,131,159,50,179,109,124,225,188,245,+72,117,71,187,137,82,233,221,154,186,120,255,200,156,88,104,180,214,104,58,76,146,181,211,251,217,83,192,140,35,210,241,+127,224,62,170,2,40,181,33,204,227,97,224,106,213,133,75,247,14,223,70,102,0,3,86,53,174,44,75,60,25,128,192,+183,213,149,82,184,188,248,223,56,141,211,11,29,37,113,172,4,166,224,112,10,51,101,244,237,55,62,194,233,115,67,60,+10,189,191,167,29,69,150,229,119,64,191,122,92,85,201,67,48,155,157,50,60,118,64,81,149,163,5,132,133,38,90,91,+225,96,151,37,56,45,69,78,103,82,74,125,100,82,47,153,24,5,246,46,155,233,73,152,184,145,200,138,144,27,234,247,+176,167,184,116,184,212,159,33,88,204,111,219,229,124,177,10,23,72,146,35,119,93,57,225,153,210,245,97,31,197,103,195,+157,149,202,243,128,192,65,245,58,146,21,20,244,169,39,77,227,45,105,45,103,191,224,104,205,208,236,88,204,113,6,47,+7,29,130,135,204,27,38,248,31,52,209,230,222,88,196,71,10,10,211,4,20,27,236,237,141,41,90,124,39,98,63,156,+13,193,1,255,202,189,148,103,80,152,66,85,242,9,147,133,107,216,29,66,225,246,119,0,168,67,244,82,66,124,161,164,+41,3,92,230,51,94,215,199,65,185,77,114,6,222,241,251,53,109,234,124,117,3,47,241,16,194,147,22,95,13,175,67,+169,185,42,229,89,39,221,39,30,0,105,122,138,237,106,152,178,209,27,158,70,22,192,103,51,147,107,167,244,111,57,0,+173,115,184,104,147,131,134,194,38,207,102,58,8,32,101,81,204,117,199,191,15,172,43,177,59,33,239,148,205,166,253,95,+236,201,208,7,215,98,100,245,126,149,231,68,178,202,95,67,250,236,153,185,80,57,14,131,125,48,190,154,138,18,165,98,+239,192,98,166,79,156,124,164,237,240,191,215,247,130,10,227,240,77,190,66,179,86,147,170,208,170,51,22,91,241,81,29,+184,179,219,199,200,196,196,98,235,215,255,94,214,157,4,54,228,5,202,206,31,28,100,137,5,54,54,161,52,9,74,5,+48,75,214,138,38,10,42,133,79,219,6,176,97,30,96,209,206,232,91,74,198,159,104,175,124,115,39,101,1,240,135,107,+15,108,16,196,104,115,180,183,36,184,118,145,176,241,210,15,38,211,33,102,255,64,80,100,178,215,138,86,97,190,129,208,+220,78,55,81,210,222,235,11,94,19,196,225,8,93,165,189,25,62,247,150,146,222,225,221,248,121,223,187,66,143,178,26,+108,164,227,22,233,81,187,192,127,118,96,125,38,105,29,168,162,90,171,93,222,238,98,216,175,132,24,163,182,252,38,132,+168,124,111,163,228,248,171,167,144,50,221,175,165,49,178,205,151,116,85,47,164,93,249,90,62,226,82,150,104,14,199,13,+181,237,231,4,19,10,53,246,157,53,112,39,109,42,7,172,132,23,193,38,146,42,100,217,83,131,43,117,24,43,179,192,+68,47,237,247,47,51,165,219,99,173,240,130,12,175,150,98,209,209,199,88,31,143,19,219,213,181,49,183,22,113,232,44,+99,220,146,223,160,36,136,155,243,108,225,69,217,169,208,169,4,167,169,180,131,202,5,65,149,125,111,146,153,254,23,39,+111,79,183,27,133,205,130,223,231,221,38,27,38,231,211,103,107,205,43,196,165,154,105,251,59,184,129,71,144,169,129,243,+89,224,91,167,108,146,163,48,248,8,3,44,188,16,194,22,123,214,168,175,40,5,43,250,176,208,245,147,100,193,139,253,+183,123,112,60,212,64,219,122,238,103,202,171,15,144,192,229,238,30,113,28,178,25,128,243,216,255,247,100,22,244,105,36,+120,164,240,223,74,0,17,91,79,140,244,82,127,174,164,104,47,233,223,229,241,39,129,227,133,20,58,217,43,234,24,154,+186,9,40,219,80,28,14,121,83,240,153,4,176,243,197,144,230,49,172,110,210,130,111,38,19,255,115,239,53,122,55,96,+227,140,114,63,226,164,243,21,94,6,160,63,185,104,203,120,218,140,87,229,86,148,118,226,219,121,140,183,115,234,24,94,+200,190,241,139,246,92,30,70,45,186,32,160,250,10,39,83,243,19,44,114,222,58,70,10,237,29,161,34,204,106,229,204,+2,206,32,166,151,249,237,16,205,117,166,89,205,221,220,159,206,131,38,122,251,112,187,84,67,74,247,219,140,206,200,198,+164,167,158,72,191,135,240,59,196,233,49,169,14,23,150,114,115,186,178,172,19,242,130,59,139,110,5,14,94,159,63,93,+153,7,0,154,34,118,130,191,147,150,12,134,234,173,51,223,183,229,103,4,230,131,77,112,170,58,201,124,130,154,151,244,+76,202,0,153,164,255,250,129,110,101,206,31,168,76,129,31,92,222,250,95,68,160,46,23,225,243,229,90,172,116,147,12,+78,144,59,141,131,6,217,201,32,74,58,28,42,69,105,48,19,217,223,39,239,243,209,0,225,136,192,94,35,245,61,92,+164,69,187,64,42,44,178,206,101,246,163,37,187,181,79,2,135,161,103,56,9,151,75,44,76,51,57,165,178,91,154,31,+209,203,130,232,204,248,240,38,168,31,146,244,31,77,122,248,236,15,178,24,21,26,240,97,142,17,223,31,51,171,94,60,+168,32,97,222,97,158,107,109,97,21,183,9,159,104,40,132,69,128,235,114,22,131,119,18,111,6,70,43,168,150,6,38,+226,12,33,45,192,212,87,64,159,157,161,223,173,53,118,55,85,235,7,160,187,208,41,127,91,46,195,246,147,136,161,176,+184,157,203,100,224,248,219,200,61,12,255,98,103,167,119,131,192,252,19,8,246,193,12,96,237,84,136,141,245,253,49,118,+162,160,159,80,207,80,85,211,8,220,174,143,156,177,232,51,2,129,160,64,17,214,34,187,244,112,152,220,127,128,47,155,+81,63,217,154,118,192,112,97,221,252,63,100,105,205,84,114,112,17,59,96,97,55,239,141,13,175,204,235,255,233,248,39,+244,79,61,52,183,243,34,139,204,213,85,5,14,219,229,25,52,251,185,65,158,104,44,2,247,179,31,209,158,145,86,181,+14,6,117,41,190,236,171,103,110,93,38,5,55,173,49,54,163,76,156,149,12,60,211,222,21,225,25,131,43,4,147,210,+239,145,97,211,246,111,164,66,138,120,131,145,241,169,153,178,178,65,226,226,250,162,128,120,24,17,118,21,21,233,231,229,+19,61,71,240,79,119,148,244,205,202,116,166,83,45,95,99,207,74,131,235,137,3,16,161,124,253,17,80,71,146,227,154,+96,166,32,23,17,118,187,119,13,50,111,154,246,158,174,22,135,193,232,111,16,33,199,146,42,113,11,254,113,30,233,42,+250,246,8,29,7,77,228,92,204,22,189,14,50,121,91,99,49,150,72,15,66,144,118,139,190,206,159,116,133,60,73,200,+60,166,168,233,77,234,227,57,128,7,113,87,15,61,95,201,90,31,203,141,217,112,139,7,213,135,82,200,139,236,234,23,+241,243,185,35,214,206,199,166,102,81,63,123,230,182,54,81,213,168,148,166,5,243,152,74,231,182,222,39,198,160,125,199,+250,97,97,119,47,50,41,107,127,65,224,71,94,50,79,254,152,69,130,89,125,250,133,126,127,198,253,0,75,71,3,63,+236,117,27,232,158,106,252,159,248,17,52,27,118,246,108,33,61,105,101,60,19,251,223,88,184,224,137,142,110,157,119,149,+99,172,210,15,184,55,224,245,87,37,29,229,187,43,11,155,158,22,203,29,62,120,232,202,38,212,194,142,241,240,146,5,+229,234,37,37,114,198,179,101,119,38,166,102,20,240,240,114,97,252,88,132,217,21,146,243,112,9,238,99,140,82,43,247,+153,212,225,132,37,115,150,203,161,202,110,181,23,232,10,86,161,2,241,24,3,69,138,229,159,163,145,233,167,191,204,191,+114,204,168,214,30,137,130,103,96,96,38,173,114,255,201,151,143,20,149,60,46,94,145,50,6,84,230,247,85,2,252,253,+152,214,164,207,21,48,23,20,33,9,192,33,220,8,120,108,218,212,36,94,33,97,91,23,230,217,239,45,215,45,93,118,+0,115,82,90,41,79,195,141,139,222,111,82,110,165,39,91,205,173,54,123,38,11,18,93,165,52,232,122,250,33,227,162,+118,224,102,195,10,138,77,215,76,94,144,140,213,10,58,168,29,186,255,235,46,17,85,159,39,155,183,97,93,107,86,75,+1,95,32,27,41,185,103,108,226,83,135,121,81,100,200,34,59,117,158,182,121,39,58,181,252,237,5,240,220,247,190,197,+111,196,122,104,246,98,12,105,53,220,254,93,183,185,129,24,71,78,173,12,87,193,232,54,31,254,202,31,152,235,100,213,+51,85,71,175,35,68,253,75,40,111,109,126,26,142,115,231,211,158,132,16,144,69,13,51,224,117,104,190,88,40,229,134,+255,244,153,47,119,174,60,246,96,151,175,124,255,213,75,62,204,189,65,41,58,96,1,214,173,153,11,80,71,110,195,253,+131,125,122,189,215,77,49,254,112,143,172,116,37,194,251,236,87,90,27,4,38,83,88,23,46,105,28,140,163,196,208,57,+41,50,207,220,217,228,93,179,95,151,83,126,226,250,80,153,127,138,84,72,108,183,156,28,250,234,191,14,201,90,217,46,+221,49,145,167,19,11,14,142,220,92,236,59,59,176,144,80,83,112,247,170,118,143,103,152,65,60,253,158,174,249,17,248,+91,124,169,83,127,12,29,39,224,255,26,7,240,199,229,69,7,233,234,99,148,207,42,156,140,113,8,193,185,251,91,116,+121,218,17,64,118,39,191,97,9,30,38,199,93,173,237,109,169,82,108,233,253,155,117,66,244,111,227,17,89,205,174,137,+173,153,112,67,222,156,13,205,58,24,238,124,97,29,212,35,29,109,108,187,245,210,120,255,190,245,212,93,188,84,212,213,+77,244,40,76,164,47,174,16,7,90,105,26,184,12,130,53,162,16,86,181,86,232,228,9,67,132,14,86,18,79,146,177,+164,76,84,33,53,138,174,57,129,212,114,9,61,97,82,89,225,117,206,154,198,241,199,219,116,38,166,136,238,111,198,140,+223,153,13,38,180,96,219,157,72,156,25,11,233,216,187,38,139,195,111,163,106,83,192,24,156,157,205,181,89,147,74,120,+237,25,164,28,249,136,218,224,11,220,209,34,162,188,16,205,94,208,118,4,37,172,175,157,132,111,144,158,183,3,171,197,+162,2,44,170,120,183,252,158,56,90,137,98,187,140,226,21,16,149,133,253,52,221,32,189,128,38,253,5,143,52,202,43,+132,146,141,119,125,236,147,106,254,104,245,196,254,209,98,209,251,106,234,63,251,198,233,191,249,213,204,90,165,213,178,67,+10,169,92,144,243,228,90,38,3,62,45,155,9,43,97,124,231,63,119,71,89,98,231,18,98,100,156,226,185,116,8,213,+84,243,87,39,232,178,142,122,232,62,60,13,196,207,90,99,103,95,173,59,66,154,246,36,212,94,206,70,129,145,64,217,+213,212,145,119,176,151,135,207,65,151,146,99,242,224,107,6,69,250,211,156,5,88,246,244,163,24,229,84,49,91,104,170,+111,236,154,4,145,119,64,225,143,95,254,77,212,165,249,112,39,24,216,79,151,170,8,117,232,61,177,133,249,118,8,28,+26,177,202,251,5,170,66,254,95,6,39,200,1,175,55,157,19,133,206,139,59,204,158,225,109,92,97,250,21,238,116,207,+26,179,135,83,234,178,143,36,68,37,123,186,213,255,236,146,213,11,106,13,163,15,121,151,132,145,210,220,121,192,71,4,+221,44,241,123,211,98,133,237,15,207,102,174,27,154,232,216,67,221,130,49,242,179,185,1,212,26,155,83,145,83,80,211,+249,175,195,151,135,46,235,16,237,217,107,132,124,51,68,230,246,208,41,212,184,43,81,211,52,154,78,35,105,202,11,111,+57,26,72,29,59,56,8,248,57,199,96,81,84,137,104,27,159,164,184,167,40,31,222,44,53,166,141,46,138,227,179,11,+118,1,222,92,182,250,148,46,208,191,50,110,226,51,92,123,234,119,9,224,233,180,76,12,76,255,204,11,190,189,51,96,+253,56,142,80,19,233,209,32,158,32,62,230,25,215,144,211,205,150,205,238,133,83,69,128,180,161,189,34,172,139,135,227,+85,70,248,202,192,91,255,65,253,110,173,48,47,84,216,177,206,18,20,33,208,238,126,167,97,123,192,238,154,110,11,195,+52,206,95,71,125,191,125,208,117,23,99,227,92,20,87,198,110,198,141,105,50,217,102,246,96,51,163,167,59,178,136,74,+239,93,152,125,52,77,5,47,252,89,231,97,89,184,204,97,180,210,50,75,200,94,203,88,172,168,31,109,158,45,213,145,+215,61,77,66,25,59,171,249,103,150,236,131,222,164,92,239,1,226,141,125,223,75,33,198,86,53,2,157,38,190,111,32,+245,239,150,215,235,184,220,90,143,219,170,228,61,142,21,114,238,165,232,44,58,232,0,40,41,14,226,173,248,241,89,93,+9,131,34,157,61,131,79,179,152,19,227,139,106,53,177,108,14,104,194,75,167,225,56,69,47,179,125,146,41,250,179,177,+135,152,116,90,156,202,53,29,52,108,75,236,183,164,158,163,162,108,35,45,25,97,68,45,194,151,19,120,31,95,250,21,+76,251,142,40,18,30,192,239,246,233,140,12,136,234,50,156,110,162,234,254,46,254,196,55,89,90,185,203,207,131,186,102,+25,3,104,169,91,226,123,118,31,241,94,26,160,75,18,235,13,138,126,53,185,39,185,75,79,5,60,127,55,246,173,213,+255,250,254,131,98,44,234,88,123,47,56,215,151,43,65,180,146,222,235,144,212,122,224,223,85,183,157,216,86,170,84,214,+198,199,248,212,215,69,109,201,104,127,204,199,37,147,8,9,75,210,127,245,246,130,39,182,127,118,57,144,132,127,222,86,+208,188,11,134,65,98,125,246,15,234,100,69,186,118,149,153,35,171,74,149,220,247,123,160,109,229,254,72,8,134,175,83,+249,43,193,128,117,193,14,60,11,230,166,87,161,74,9,95,73,68,30,210,112,155,207,104,157,121,101,239,73,74,91,1,+104,191,188,197,79,242,18,53,50,209,186,31,227,54,170,57,134,154,218,6,172,66,224,207,11,182,44,105,182,229,139,254,+19,22,180,19,86,66,5,122,8,131,56,221,128,187,158,145,28,229,17,54,13,95,247,147,160,96,148,158,243,36,50,77,+106,209,111,69,241,19,9,52,165,165,162,241,102,200,144,183,217,31,153,42,145,235,250,111,228,219,157,213,249,6,186,235,+5,139,33,212,163,176,116,225,142,19,52,219,189,204,204,156,206,175,101,127,49,123,68,196,124,145,180,71,112,0,132,253,+82,229,15,233,34,254,58,130,111,41,61,185,184,246,222,177,72,125,136,168,74,62,111,20,32,49,82,113,19,126,56,40,+32,32,82,71,122,230,25,237,13,95,78,167,185,64,221,191,37,214,152,181,213,190,46,254,3,165,70,218,60,230,123,44,+53,2,111,104,4,36,255,82,226,175,0,29,163,0,226,3,194,164,247,195,46,214,223,236,145,255,253,45,202,122,5,37,+241,110,6,74,99,241,14,123,26,19,206,125,22,20,177,140,9,8,209,137,146,15,229,249,21,250,229,87,135,196,169,120,+80,17,240,214,233,7,79,175,93,187,168,85,134,90,140,5,7,108,175,54,202,233,77,233,114,244,8,2,20,92,41,230,+117,192,231,252,180,252,228,223,244,35,0,231,153,31,237,252,188,72,106,17,137,161,125,124,219,73,142,156,230,92,138,206,+191,89,245,109,117,116,83,249,133,238,159,80,198,233,248,21,195,106,15,93,68,14,87,189,209,0,79,26,128,11,91,159,+174,163,99,100,196,117,49,140,42,206,215,39,242,68,14,32,145,15,163,28,221,90,24,9,202,189,231,65,50,186,162,84,+138,35,114,9,221,75,110,134,0,41,94,33,141,84,60,102,56,54,212,127,70,127,23,7,99,255,173,207,81,96,68,213,+145,50,70,160,223,214,101,238,191,238,7,40,43,48,203,147,174,192,254,45,138,244,172,220,69,155,6,65,87,163,122,122,+82,91,67,186,203,219,194,4,41,26,63,192,14,221,99,48,148,59,208,81,90,177,129,9,13,242,56,139,13,191,130,130,+80,108,46,225,53,137,32,51,26,154,107,4,211,166,122,175,209,0,230,76,122,108,190,50,161,81,143,13,218,108,187,39,+73,122,32,117,32,39,72,97,235,2,190,104,66,107,92,182,157,166,152,60,174,6,72,54,80,219,47,201,153,92,169,76,+56,172,87,236,35,255,185,51,170,230,210,170,252,213,25,123,206,112,119,147,183,40,118,120,67,195,121,135,64,106,98,215,+206,115,10,103,171,0,226,215,74,12,225,30,106,88,146,88,55,21,253,172,49,52,131,201,133,121,192,93,116,237,118,172,+159,103,146,119,86,165,147,76,42,142,101,218,189,107,219,14,175,216,40,98,255,252,100,10,221,204,24,211,31,77,39,96,+119,167,73,57,67,241,17,231,4,56,212,76,63,227,87,36,130,34,21,98,30,78,165,173,92,141,89,0,40,132,63,221,+109,163,236,65,204,234,32,44,232,252,137,107,92,7,85,33,1,46,228,46,63,30,26,79,179,73,16,131,69,223,228,69,+225,30,239,95,61,169,71,26,137,224,83,238,211,128,87,82,4,102,126,141,178,115,156,118,50,38,102,4,229,33,204,231,+160,0,173,81,117,38,145,60,42,6,100,139,108,137,39,70,162,194,200,249,113,140,131,200,201,35,13,194,242,248,143,147,+149,33,94,133,151,242,139,28,224,139,180,47,244,222,241,247,67,190,83,163,81,181,164,241,19,206,218,95,191,171,87,122,+235,206,99,112,6,239,23,237,85,81,16,2,251,169,227,241,142,40,135,60,54,200,184,122,108,131,49,33,135,30,224,58,+217,6,170,73,30,97,178,115,216,64,14,95,73,209,157,8,120,125,92,132,9,103,67,180,81,192,33,31,25,193,25,26,+17,219,141,254,202,134,230,70,250,5,131,109,123,135,17,159,196,120,219,235,18,194,179,171,48,51,173,250,93,234,130,149,+27,57,60,239,36,206,3,33,197,184,159,37,43,247,171,70,203,232,65,32,86,212,252,242,52,109,193,209,168,77,92,93,+148,242,189,21,209,231,177,136,42,114,186,211,82,3,182,151,88,82,211,182,42,86,60,43,67,80,99,95,25,22,125,148,+242,23,90,54,64,93,108,191,23,165,97,36,244,102,153,158,219,255,253,38,162,153,182,214,111,108,13,153,154,90,117,34,+73,31,37,165,77,171,201,229,86,102,139,75,74,147,153,199,136,97,19,14,146,7,140,47,96,56,231,5,156,184,118,8,+5,184,19,129,236,176,89,172,38,227,192,111,40,115,215,58,148,20,1,104,79,118,240,154,143,7,123,114,25,253,210,220,+150,102,207,55,34,122,25,134,29,189,118,0,107,14,139,73,168,207,39,0,83,79,66,26,51,173,157,197,213,137,170,211,+204,115,130,115,250,217,94,205,84,158,43,140,61,244,172,6,163,151,134,42,145,164,183,52,50,52,134,222,19,178,66,119,+244,32,90,241,188,74,170,162,210,232,40,35,218,145,41,170,26,197,1,68,156,92,1,60,167,103,104,196,53,94,61,96,+203,197,76,194,156,134,86,138,79,177,134,242,142,200,205,23,213,162,180,72,27,148,91,49,46,0,3,197,244,4,71,22,+16,38,18,51,220,39,250,122,142,51,75,252,39,226,255,82,221,115,217,53,238,68,110,63,214,125,151,9,4,96,196,26,+183,110,242,68,231,121,83,226,216,202,65,108,89,71,116,178,183,148,236,148,186,6,55,197,130,9,134,149,216,216,49,165,+124,41,199,39,210,95,237,75,75,214,126,157,155,37,75,178,195,151,61,214,199,83,145,112,119,98,17,20,131,188,16,191,+254,241,145,187,59,36,169,192,74,180,228,141,185,63,40,35,191,208,104,201,158,119,114,114,96,7,220,110,97,9,14,219,+58,186,161,0,143,251,242,153,43,39,57,165,64,54,61,239,19,155,82,147,252,80,220,250,193,232,254,156,197,178,12,127,+89,111,34,110,17,95,1,55,135,135,135,11,168,109,61,239,56,10,163,175,60,32,208,102,234,252,147,220,26,123,48,63,+250,73,145,247,13,144,185,189,82,25,174,155,31,247,197,193,208,188,121,59,116,149,120,170,82,103,133,233,107,59,245,153,+180,110,64,169,137,43,184,215,97,231,188,234,78,222,172,129,210,217,217,25,62,2,111,251,5,130,153,153,24,129,1,234,+215,162,254,162,94,204,167,180,37,239,174,241,179,6,165,148,67,73,228,184,41,21,97,204,63,16,6,194,103,141,124,249,+219,123,78,96,55,243,230,214,59,50,61,141,197,80,254,130,196,201,209,0,236,245,197,177,196,145,66,155,250,124,217,29,+7,59,14,103,204,32,34,242,141,43,159,118,185,72,155,188,212,68,48,4,107,206,31,109,18,103,240,28,121,94,92,202,+84,223,166,92,21,143,114,229,194,251,153,155,167,101,238,182,131,114,156,43,101,31,27,127,141,158,255,233,219,21,69,216,+113,25,168,188,140,148,112,102,132,233,235,192,207,185,245,44,253,126,73,138,214,132,69,224,159,191,66,104,250,210,171,73,+90,113,104,247,51,86,65,57,158,212,122,132,172,57,46,15,137,234,40,195,102,99,240,27,203,226,58,241,138,192,56,151,+216,152,105,166,192,25,234,183,8,135,142,1,7,95,125,122,103,201,16,149,91,220,126,244,72,93,77,102,47,84,2,9,+66,72,78,205,91,211,19,123,185,246,126,73,123,102,162,126,225,138,223,173,11,63,134,109,9,115,133,134,241,184,124,85,+169,28,91,140,112,104,190,42,236,67,150,78,71,6,194,35,97,28,187,251,160,80,165,149,39,187,242,227,31,49,41,233,+98,229,73,31,126,61,205,24,174,76,50,37,20,113,226,207,115,143,102,174,131,166,195,143,146,163,220,204,33,136,20,176,+47,89,95,99,14,161,36,39,237,222,231,155,100,189,9,150,16,156,24,134,121,252,7,14,182,34,73,130,195,89,23,226,+30,183,193,36,193,78,242,59,240,115,99,71,177,208,87,232,107,15,199,117,182,166,8,155,166,116,90,36,40,141,130,0,+216,143,150,85,254,121,202,17,228,219,226,57,222,81,36,250,28,160,29,30,73,7,94,177,157,230,225,61,154,242,106,67,+161,30,1,105,24,143,112,30,13,28,182,47,113,13,56,141,140,54,60,96,97,31,116,84,70,245,14,251,166,208,127,245,+153,174,254,113,60,245,147,195,145,64,127,89,196,194,152,83,204,43,140,89,39,249,91,218,15,36,237,41,183,189,89,117,+27,255,57,144,189,117,225,37,107,145,92,120,167,0,138,47,117,44,32,165,130,107,183,118,48,149,111,28,175,174,176,64,+71,28,241,120,230,253,189,173,123,235,213,145,195,189,156,164,88,255,243,133,235,2,217,172,221,164,152,158,16,161,145,239,+72,29,209,254,252,125,98,140,5,155,138,125,79,248,147,203,62,58,135,187,88,67,69,26,161,165,54,173,35,211,227,231,+31,12,81,42,130,236,169,136,93,218,80,106,145,157,224,196,230,161,111,29,140,43,126,41,205,6,130,176,194,190,44,22,+237,121,197,96,60,145,28,135,207,167,111,74,199,126,186,212,187,86,239,195,169,236,116,75,238,218,217,102,147,253,157,247,+243,248,100,192,56,85,119,36,157,7,247,169,11,191,21,253,220,83,84,141,183,86,85,26,87,200,172,204,114,0,203,33,+127,97,38,246,69,116,154,93,180,254,27,21,84,41,158,169,3,4,232,112,192,99,197,74,117,89,93,155,154,25,96,218,+30,98,10,247,84,128,95,153,97,192,193,15,117,152,23,151,70,103,242,77,194,208,94,168,223,247,196,93,71,210,215,176,+26,177,31,22,218,14,250,64,191,2,222,204,218,39,78,207,113,182,58,100,247,50,255,135,113,108,67,151,100,175,223,54,+145,218,133,38,243,199,229,75,81,64,69,108,9,32,29,36,187,71,108,11,82,23,46,143,43,192,52,184,142,169,165,25,+37,253,241,205,138,101,78,251,174,31,164,153,85,73,192,50,189,21,1,81,19,222,174,48,107,67,57,248,84,42,156,111,+119,30,132,226,227,231,220,192,250,22,112,239,153,10,169,218,75,153,205,169,16,38,139,55,112,27,7,249,234,18,42,230,+54,88,60,236,72,187,132,193,98,217,198,199,47,99,57,27,182,52,108,147,153,255,77,220,17,109,208,70,5,144,213,34,+165,92,7,249,13,152,123,116,68,191,159,12,73,220,190,2,164,149,245,209,233,49,127,192,92,87,41,38,227,41,162,184,+94,41,52,29,68,0,18,70,68,159,129,156,119,45,68,120,16,121,82,36,189,206,164,88,100,68,144,75,152,3,186,95,+193,117,55,4,110,108,126,82,227,210,150,202,166,8,35,243,110,170,110,116,205,52,30,247,1,50,201,150,219,164,204,27,+53,52,166,47,51,14,84,90,192,105,230,141,60,22,110,162,179,39,164,160,226,205,75,159,67,66,187,145,56,174,111,200,+53,245,81,37,128,129,69,247,68,119,25,3,34,75,106,71,191,47,150,175,87,232,103,126,19,235,72,209,79,235,254,150,+130,130,163,237,179,5,241,249,84,237,222,53,62,224,48,135,156,195,168,212,25,146,142,54,110,181,243,52,46,33,249,119,+118,212,36,24,97,186,127,137,223,227,184,156,19,174,202,99,120,90,7,187,65,212,53,35,190,196,1,75,122,174,93,182,+17,113,104,67,54,23,162,153,185,113,224,80,5,163,189,172,222,185,104,45,43,27,60,0,1,199,14,111,177,220,182,126,+65,78,35,20,222,228,20,160,236,12,151,253,2,88,158,253,160,37,92,86,118,227,111,206,125,37,101,82,68,1,238,31,+38,178,191,147,58,218,46,83,199,35,67,58,27,138,66,82,92,153,132,194,72,156,193,155,76,37,128,165,174,49,112,248,+219,127,202,99,68,7,253,227,25,87,148,133,105,165,33,98,249,85,207,114,32,46,86,52,194,248,58,163,32,93,151,109,+2,170,68,224,1,27,121,244,250,76,138,230,195,171,41,205,232,68,8,112,34,248,195,114,70,90,9,56,46,166,245,218,+131,39,23,96,245,143,248,88,23,7,165,239,2,170,17,135,105,216,208,117,169,11,116,11,106,43,246,69,220,173,36,22,+144,228,33,87,242,117,140,203,15,180,110,34,252,57,40,119,237,204,27,117,100,127,198,20,251,227,5,110,177,95,111,169,+21,243,169,76,182,17,112,187,138,211,120,246,206,10,136,96,199,1,176,213,216,8,231,124,74,67,103,132,165,87,183,156,+205,67,55,14,137,202,201,87,186,239,157,81,61,169,54,208,79,124,0,166,82,246,203,94,219,158,120,114,107,114,205,201,+94,202,49,11,212,209,226,239,248,171,33,20,21,11,154,214,235,127,179,226,211,54,97,249,10,175,184,76,115,21,206,69,+200,207,131,111,63,23,77,209,183,29,111,211,183,170,127,126,158,234,100,211,145,182,142,7,46,217,208,177,78,94,153,90,+222,233,140,99,247,95,85,131,97,83,207,87,51,57,74,151,190,94,156,207,203,227,168,246,24,249,72,222,72,205,30,255,+236,112,116,47,239,45,46,133,77,206,70,101,42,191,153,121,130,177,244,252,253,157,2,234,166,122,170,32,159,254,67,82,+45,99,209,109,164,254,61,227,240,34,136,179,21,114,215,178,113,90,205,102,74,177,13,61,15,168,156,36,126,14,154,171,+127,53,151,184,225,137,37,70,154,106,174,90,217,109,47,127,145,162,69,146,196,241,188,27,47,234,188,147,173,225,205,116,+26,232,77,173,109,45,5,60,229,5,245,214,86,224,92,227,62,220,226,67,240,32,110,125,36,85,192,235,226,207,189,150,+76,5,96,192,138,232,123,110,16,196,16,230,233,119,68,63,76,88,135,23,11,65,241,230,141,123,239,106,122,104,234,206,+46,54,108,21,212,129,163,44,106,122,32,239,229,225,220,12,198,26,172,7,214,39,60,203,22,164,104,22,127,118,115,140,+201,89,131,127,245,213,115,194,101,30,129,203,149,152,227,80,58,182,255,156,138,23,239,16,249,102,71,114,189,221,104,60,+30,201,217,240,61,91,152,10,229,187,58,62,44,203,43,83,252,221,178,42,10,189,108,252,75,242,20,106,246,92,225,159,+42,54,137,219,150,62,180,110,28,107,10,216,106,32,182,76,250,217,1,64,156,61,158,250,84,19,4,154,89,88,6,103,+46,103,15,19,67,78,1,16,210,148,57,247,133,177,77,116,82,165,232,246,25,253,219,66,1,145,9,88,121,86,248,187,+220,168,183,18,165,42,17,23,242,240,218,134,209,70,120,233,43,59,190,64,43,138,57,200,95,136,190,184,151,54,208,255,+110,243,100,177,170,44,169,239,109,65,192,154,117,187,218,242,13,0,240,31,127,204,33,230,97,138,146,230,230,204,211,26,+161,86,19,235,44,248,144,93,176,30,78,158,27,190,210,143,255,84,234,237,167,201,67,17,62,167,147,176,12,24,165,158,+146,129,52,84,240,132,4,9,240,100,203,82,120,40,92,31,206,118,103,146,4,200,241,142,106,34,103,122,52,30,219,165,+208,144,94,98,73,255,121,30,64,85,120,29,16,183,64,12,165,186,140,27,122,50,59,52,116,176,52,204,111,67,217,253,+236,188,246,68,117,132,65,151,244,169,167,61,82,14,255,184,76,30,30,159,111,187,57,255,244,247,84,230,122,125,23,147,+141,128,220,175,46,94,187,106,195,51,143,252,53,38,248,97,51,64,154,93,154,42,66,48,196,2,183,25,227,100,214,185,+210,254,51,37,254,41,83,238,201,3,202,75,99,158,125,71,157,116,64,46,132,174,170,136,97,236,196,1,226,163,9,8,+243,249,62,111,246,214,89,230,61,106,3,6,81,43,248,12,87,216,24,239,251,155,254,61,237,32,151,137,208,106,181,49,+213,9,31,155,70,3,194,207,73,234,52,76,254,112,106,71,183,41,109,186,246,30,196,25,123,129,202,136,67,109,112,237,+76,108,124,35,222,104,169,194,103,28,86,24,156,112,5,209,239,128,231,0,185,229,38,218,114,128,108,124,21,186,44,65,+245,55,155,199,7,249,139,102,190,82,237,149,46,134,16,174,9,168,111,231,183,209,109,95,38,150,237,245,21,213,223,44,+146,181,90,152,92,97,34,113,245,200,189,94,87,43,77,116,145,54,131,185,235,35,47,24,5,36,46,221,208,148,183,221,+120,72,229,123,173,170,217,9,210,59,9,38,42,139,145,151,150,63,120,234,175,187,9,249,185,169,110,174,216,4,205,73,+49,141,167,1,230,67,124,142,196,198,132,231,189,71,38,43,122,218,59,240,23,184,11,131,200,241,37,79,88,185,32,80,+19,203,173,170,241,228,104,212,71,239,147,83,34,80,48,167,96,197,149,230,82,87,73,55,22,191,177,174,251,99,216,141,+247,174,70,107,23,146,216,128,188,207,80,84,88,203,219,127,248,145,2,236,17,198,191,8,34,170,218,117,228,195,61,20,+211,135,179,172,218,206,217,164,235,255,251,1,240,98,119,130,67,241,58,205,77,168,30,203,65,94,201,143,104,153,16,134,+24,189,42,9,179,123,69,160,160,249,233,223,45,62,26,242,68,180,22,120,25,238,126,123,6,4,232,214,197,62,165,210,+129,99,236,174,51,43,27,133,127,180,96,104,118,133,255,58,247,66,214,186,24,78,140,32,27,69,144,241,182,141,146,137,+90,122,39,61,157,234,219,60,171,93,239,54,125,252,173,196,232,0,116,105,75,8,236,135,80,41,149,58,210,15,220,233,+215,25,21,160,61,191,175,194,237,152,132,135,170,74,234,177,102,13,253,4,219,66,42,180,220,141,151,242,112,35,228,200,+160,147,44,133,251,22,171,25,250,155,184,121,220,205,188,22,242,71,57,114,213,98,65,92,172,19,199,7,13,11,193,46,+161,17,212,154,91,218,111,75,78,135,90,120,39,208,135,210,234,139,74,186,48,205,86,133,98,129,183,91,225,178,228,201,+2,40,132,209,20,127,174,180,230,169,96,101,8,3,69,234,200,23,135,64,19,141,200,34,117,150,45,58,108,54,149,114,+195,100,47,216,62,145,254,92,175,205,98,178,83,125,5,20,11,148,47,46,213,163,38,60,253,108,147,200,107,233,248,7,+247,198,132,176,91,133,100,13,145,30,75,168,174,79,9,118,157,55,0,224,34,32,141,166,167,243,19,161,238,95,42,194,+79,188,142,172,212,48,195,179,142,23,26,166,68,172,45,94,201,233,25,174,129,204,81,112,171,238,22,135,131,95,100,241,+32,140,185,117,151,63,117,126,21,155,177,243,88,177,17,41,46,209,246,55,160,26,73,11,33,11,108,235,190,56,125,236,+235,220,79,39,249,203,149,9,119,46,200,45,166,127,163,144,79,188,254,29,45,200,43,118,107,176,93,174,132,126,167,37,+212,133,65,159,5,17,195,215,89,186,108,168,117,140,121,197,157,111,116,48,132,103,114,241,210,155,61,154,203,170,61,69,+101,194,203,118,91,178,99,162,46,157,33,196,61,81,243,21,1,162,95,143,68,64,249,200,24,31,90,98,61,226,102,232,+241,143,213,108,135,133,249,97,164,83,125,163,243,239,161,167,157,124,122,60,83,45,199,239,163,152,155,78,70,154,255,239,+165,246,128,102,219,37,114,156,2,121,99,148,5,12,190,33,64,244,14,255,248,24,228,19,213,116,206,166,239,131,149,121,+238,57,228,94,69,78,68,107,31,63,172,54,131,66,154,210,156,184,141,0,129,130,73,229,1,2,95,238,97,155,110,170,+233,175,19,96,214,193,70,135,208,15,110,22,233,237,252,77,59,237,4,90,232,235,12,45,217,203,167,191,187,119,252,230,+250,44,33,117,29,246,185,168,34,189,163,73,199,226,151,120,167,133,84,157,188,37,90,171,1,109,132,9,67,236,41,96,+136,141,150,103,162,71,130,105,98,34,245,227,166,226,84,69,221,1,21,122,197,205,184,106,104,249,177,25,144,35,22,133,+89,94,28,36,76,78,222,201,188,205,216,80,196,147,158,220,248,40,249,46,216,129,254,49,166,114,199,200,195,215,71,222,+110,52,81,206,220,190,53,172,214,152,125,141,215,43,210,143,82,60,40,127,254,2,127,255,168,197,173,193,27,119,131,239,+236,106,20,17,101,116,237,105,178,239,25,120,97,140,132,100,133,179,117,90,139,88,26,123,135,17,103,124,88,56,248,246,+183,119,76,62,4,110,254,105,37,103,111,151,163,190,158,35,120,136,243,78,39,63,100,174,122,34,69,180,106,114,6,168,+125,100,202,103,159,167,43,194,229,100,70,167,62,46,41,101,16,57,20,125,50,199,244,195,165,217,205,172,178,127,157,226,+245,86,173,16,104,95,212,76,177,220,181,144,159,89,137,185,92,0,91,186,70,238,151,117,120,26,229,95,163,203,21,52,+6,135,255,177,51,21,26,185,62,187,7,117,174,32,246,62,128,198,194,222,64,89,158,195,161,53,171,73,69,139,72,52,+183,85,175,182,173,46,118,125,246,197,67,193,38,48,78,151,178,102,87,215,157,177,108,107,240,119,117,135,154,195,240,13,+104,191,25,24,152,226,51,182,64,91,201,36,39,49,78,234,234,3,142,57,251,64,217,192,255,252,98,201,47,55,242,2,+163,83,47,41,232,88,121,115,199,66,55,14,78,155,248,191,242,207,164,48,200,159,42,246,127,58,193,109,187,104,85,152,+194,24,170,50,103,80,175,114,180,132,8,53,201,131,111,27,245,216,124,30,12,179,139,56,18,130,153,129,219,46,52,133,+162,39,90,188,32,210,20,97,20,74,164,132,78,212,230,254,146,102,240,157,231,238,100,239,42,251,17,45,128,127,3,220,+50,143,255,231,223,101,132,94,121,123,99,56,12,201,255,79,60,15,95,78,48,52,99,83,45,179,65,84,116,225,149,253,+194,121,223,53,217,222,80,140,116,142,39,226,171,152,119,196,230,212,176,189,68,87,89,107,123,127,82,8,47,162,52,120,+120,194,184,80,60,45,94,228,163,75,176,59,156,183,53,235,143,223,213,230,159,109,88,194,246,134,90,128,155,215,103,146,+230,92,100,32,32,251,199,179,24,246,196,43,85,149,98,44,95,127,162,78,73,3,255,249,72,189,233,2,205,66,189,18,+57,203,41,197,189,114,108,50,62,201,116,247,93,33,21,199,212,60,44,165,167,246,195,253,210,250,62,23,87,122,172,84,+104,120,50,213,251,230,161,38,106,166,203,70,42,152,67,117,153,240,166,139,66,252,247,59,222,75,220,213,147,16,109,216,+88,18,27,129,54,234,237,247,35,166,107,209,63,129,177,128,60,127,249,66,161,64,126,246,37,178,51,92,136,26,152,194,+207,15,49,13,214,232,133,185,63,32,251,216,226,225,216,41,36,210,236,88,9,161,137,16,148,118,160,225,175,87,9,245,+40,14,18,8,206,173,220,3,211,53,205,157,166,15,42,61,92,120,32,184,16,159,122,111,86,155,27,154,111,253,54,207,+255,135,220,111,19,39,98,64,77,120,63,29,37,159,190,198,186,197,50,46,35,54,206,59,1,240,6,85,244,177,84,69,+83,119,77,23,248,11,199,98,229,207,172,62,240,125,49,155,28,199,157,110,211,16,252,183,85,196,131,38,135,156,64,3,+12,100,106,174,131,44,226,212,175,52,157,172,140,164,14,177,28,28,110,8,213,49,169,167,4,230,137,49,228,115,91,21,+137,157,78,153,40,117,65,106,1,224,86,61,56,201,3,112,245,231,219,147,57,42,155,107,77,152,46,77,21,47,114,94,+42,255,113,60,12,125,165,99,248,93,203,73,75,149,37,222,103,117,57,228,132,84,239,79,142,113,7,84,147,245,211,27,+113,247,47,8,13,70,33,183,83,172,48,100,142,150,6,67,36,144,124,160,187,238,150,254,171,226,126,16,71,244,206,79,+91,46,245,220,148,232,2,117,120,47,156,229,225,126,180,144,230,24,106,5,21,206,45,1,173,86,103,45,185,45,182,114,+150,109,171,109,20,15,188,238,204,3,62,241,251,244,44,112,100,12,246,104,113,62,65,254,7,18,23,24,109,208,194,99,+16,35,12,86,102,175,134,200,52,221,87,6,34,48,215,225,187,158,91,137,212,80,91,253,197,247,52,61,149,35,243,56,+142,228,220,161,122,21,29,246,255,213,70,137,34,242,35,228,29,82,107,71,171,179,148,219,82,229,165,221,155,49,124,168,+78,113,135,10,136,239,73,249,120,26,172,50,148,168,17,175,205,241,218,73,3,17,230,45,167,120,41,177,177,207,238,174,+202,209,205,112,76,14,226,144,120,112,124,2,167,21,44,123,74,153,2,59,215,66,206,21,237,70,74,244,60,164,240,189,+158,29,17,9,173,168,183,116,161,107,198,206,11,153,49,61,126,77,210,240,69,19,26,244,164,241,180,6,61,183,52,115,+151,24,116,79,50,52,145,172,28,62,62,106,224,35,9,17,211,186,53,172,73,100,76,151,22,69,8,192,201,134,143,114,+95,84,37,201,248,170,135,4,39,149,130,79,210,38,133,237,163,110,158,88,194,133,145,5,31,161,224,103,183,241,159,151,+145,188,229,140,249,144,255,242,172,43,241,3,70,138,28,254,99,33,156,244,8,47,16,0,173,228,78,15,244,196,74,241,+225,193,162,101,134,110,187,101,173,26,23,1,66,160,202,206,192,70,229,133,255,10,207,199,236,79,36,57,164,81,129,248,+120,112,113,154,144,87,61,5,129,67,24,14,68,73,81,44,46,65,61,40,53,62,204,207,54,48,192,44,195,103,145,95,+88,108,192,118,40,58,19,130,200,180,216,176,126,107,129,231,50,106,224,144,211,82,210,238,118,59,130,181,117,33,138,19,+230,242,230,29,135,49,132,23,174,225,191,253,27,33,138,227,230,129,216,219,142,164,92,81,232,136,237,107,211,76,138,37,+3,179,151,167,191,178,221,167,167,103,173,117,24,171,55,214,1,252,107,224,137,144,216,254,3,138,148,6,39,86,26,238,+44,140,163,25,161,0,140,151,190,141,64,55,178,185,64,37,135,32,230,50,43,255,37,139,40,194,194,43,207,157,243,28,+117,253,94,184,178,171,36,246,205,156,219,235,60,110,94,85,66,242,17,179,57,47,182,41,249,213,204,208,62,209,72,101,+121,22,218,23,255,252,93,44,78,143,196,95,114,173,149,19,145,153,162,212,149,227,153,13,7,110,46,76,167,8,75,192,+244,16,220,19,9,110,66,87,204,0,27,22,239,69,123,121,169,225,254,40,140,4,160,254,119,170,10,34,74,49,95,14,+206,12,0,91,243,145,22,126,68,210,43,18,19,146,171,60,142,144,214,246,212,176,235,101,58,119,233,155,54,108,198,69,+175,63,64,104,138,89,5,83,109,112,178,246,141,231,57,95,170,13,104,223,184,202,52,139,82,138,156,209,107,199,178,22,+171,118,77,13,250,9,143,246,16,10,222,58,54,82,64,26,108,26,169,206,83,232,121,255,161,0,190,212,194,59,227,201,+90,144,242,203,96,26,231,219,164,34,174,223,110,236,175,159,31,178,203,241,241,125,207,189,14,69,99,154,136,231,53,111,+24,21,37,114,231,178,35,241,95,115,217,187,86,79,86,14,241,83,150,202,241,244,93,31,18,103,62,54,22,161,153,179,+133,157,228,135,251,223,174,221,11,163,95,210,126,199,208,113,143,102,79,81,116,65,230,94,183,238,132,130,161,101,226,204,+146,74,204,202,225,242,147,37,212,7,239,200,91,48,91,89,205,4,155,142,249,13,178,137,175,68,30,107,55,253,22,74,+185,189,108,249,78,50,118,17,108,217,219,170,28,194,104,39,49,168,233,80,240,20,179,166,166,67,107,213,148,235,108,170,+116,168,4,45,58,241,194,43,118,53,45,246,9,57,186,178,150,30,247,157,72,195,182,240,229,44,145,250,238,226,134,33,+170,123,123,169,205,120,153,220,174,185,183,192,171,198,8,72,189,187,89,165,249,163,226,188,239,117,154,38,128,160,28,25,+14,189,187,179,91,168,12,138,121,91,191,133,17,70,226,124,175,242,195,177,183,254,88,131,169,255,253,23,31,18,114,7,+223,139,89,137,145,107,93,240,117,129,248,82,235,171,71,206,103,214,120,166,106,106,212,6,226,176,78,244,81,158,82,87,+243,65,34,82,117,218,159,29,16,123,241,189,223,222,179,15,161,185,96,215,253,229,99,60,169,59,171,69,234,123,187,110,+19,228,32,231,254,220,215,237,27,93,92,242,66,45,217,117,174,236,245,222,244,124,249,224,96,228,123,100,35,97,112,175,+60,235,41,40,193,229,239,147,19,141,249,238,83,39,121,247,77,33,216,181,174,195,237,116,205,135,114,82,152,133,35,31,+124,98,204,110,43,34,12,224,235,175,115,132,228,144,118,59,50,30,92,216,107,255,239,249,7,22,6,231,114,178,233,84,+147,106,117,141,207,171,78,217,0,160,81,172,137,207,72,113,97,107,178,157,43,34,15,195,215,164,14,231,53,243,98,220,+139,214,121,151,182,132,14,157,86,127,21,206,20,38,108,18,62,41,102,194,250,214,93,170,18,3,204,215,9,148,212,33,+49,12,52,49,167,100,147,14,107,44,180,58,130,41,54,17,127,101,26,179,60,162,54,59,133,134,181,36,185,144,223,163,+215,104,81,239,3,211,189,70,3,178,132,186,10,33,249,171,240,140,243,13,238,103,0,119,142,81,200,48,161,96,137,149,+8,5,213,43,117,219,196,116,65,186,152,127,74,54,223,134,17,43,175,44,139,220,214,77,140,27,249,31,188,91,32,135,+216,105,71,251,155,218,23,160,95,182,2,142,238,69,239,8,224,45,246,149,9,76,33,83,36,157,81,254,97,47,215,243,+172,214,27,66,199,254,248,193,1,248,59,93,229,187,155,184,54,155,73,23,195,72,70,184,54,54,72,179,54,107,221,73,+108,155,22,51,54,249,98,147,240,121,165,69,94,253,60,204,83,72,187,209,83,237,218,122,88,155,170,39,169,254,33,29,+48,119,232,147,176,252,195,122,240,214,90,214,204,39,69,108,182,109,202,129,106,153,231,252,212,237,3,101,229,249,178,229,+131,86,192,28,213,182,119,12,158,65,60,142,37,203,235,193,29,107,205,66,176,227,164,182,206,196,9,18,153,196,35,166,+49,163,221,217,37,234,116,164,212,231,160,169,247,153,96,11,104,21,189,214,75,163,95,188,75,68,8,89,196,137,160,13,+243,50,61,102,146,56,228,19,41,73,215,192,40,134,154,99,217,65,88,255,247,121,235,247,48,165,15,80,160,7,165,29,+216,59,5,180,151,228,189,1,249,133,63,106,38,68,236,166,145,98,62,147,40,81,190,234,235,39,187,222,64,120,47,73,+244,32,3,129,224,108,208,95,25,47,76,141,167,21,159,137,126,106,146,151,180,214,52,138,1,40,206,243,45,232,122,93,+126,216,89,54,72,218,221,68,195,234,73,106,254,153,230,38,197,75,106,171,13,70,146,54,230,52,150,220,241,38,232,36,+221,7,229,234,199,91,36,205,114,176,198,197,191,141,84,234,135,35,174,143,154,188,107,70,126,136,109,130,228,245,126,248,+48,251,223,16,184,247,6,183,49,40,128,228,163,59,221,198,32,198,187,205,71,109,54,80,105,71,198,163,218,210,89,223,+25,174,242,29,100,210,215,68,30,171,116,235,205,23,31,110,186,181,8,244,158,227,147,137,164,157,10,76,141,127,170,86,+104,186,61,187,189,148,209,15,2,17,14,167,28,74,165,7,191,180,43,153,17,59,218,55,18,57,13,50,83,91,224,201,+61,72,204,47,253,159,12,83,15,146,217,118,31,25,112,102,142,153,106,39,231,221,158,225,191,108,165,147,228,185,233,165,+177,29,94,10,94,41,93,218,42,146,113,222,94,141,128,248,166,74,52,123,244,54,149,202,83,5,98,229,40,115,217,253,+12,60,179,12,184,244,71,185,42,17,180,35,161,225,116,86,129,153,150,176,44,12,179,203,203,173,77,142,232,93,210,32,+241,137,169,232,176,123,143,25,239,181,133,121,68,11,161,114,97,112,173,188,106,255,249,139,135,189,111,23,172,37,61,31,+152,129,248,101,187,120,221,38,100,187,10,33,109,128,145,107,196,169,215,19,32,161,221,50,26,227,232,243,90,157,15,80,+62,161,75,231,147,173,204,159,41,0,94,140,40,109,210,215,100,182,54,97,126,89,73,194,250,50,33,25,142,16,130,116,+14,194,208,65,189,153,79,221,84,144,237,154,166,171,9,41,11,203,212,242,151,101,140,224,85,183,199,140,90,65,57,22,+209,16,35,43,254,57,245,84,77,1,255,193,50,47,110,191,80,240,130,47,82,61,255,162,203,39,45,248,13,159,118,198,+176,23,68,221,102,159,45,3,233,188,5,214,114,89,185,124,8,200,26,253,215,79,115,23,213,10,139,110,137,7,136,178,+228,158,51,61,134,3,60,167,100,201,9,81,160,101,111,252,12,19,186,77,49,224,133,39,210,202,28,48,198,46,219,108,+5,99,208,43,65,162,243,252,217,220,200,167,52,126,91,144,62,58,193,36,155,10,59,253,188,114,139,116,144,133,137,241,+15,154,18,168,159,177,160,35,93,233,168,222,245,174,219,235,238,97,109,9,15,99,37,44,122,235,108,17,109,164,111,254,+99,52,238,93,37,34,34,122,67,247,106,241,224,216,217,158,66,238,14,29,75,71,49,182,123,21,52,221,11,88,236,28,+250,217,236,62,56,160,57,131,97,239,179,53,66,194,64,136,178,197,24,133,62,131,42,53,102,142,234,147,198,159,144,2,+201,151,170,187,59,89,254,18,124,33,15,229,76,124,16,66,213,166,233,10,164,46,84,123,68,65,181,60,14,150,227,208,+142,86,192,0,145,112,58,62,37,220,133,118,14,250,213,139,47,118,65,12,166,44,251,178,220,100,255,107,185,61,154,152,+165,246,248,76,89,111,217,71,33,40,155,83,158,58,185,142,53,152,245,158,178,215,252,148,174,3,16,65,162,84,103,230,+203,61,240,255,240,0,110,126,126,233,90,69,15,25,224,50,188,87,201,58,109,193,102,183,172,135,33,211,84,69,177,150,+72,27,107,64,200,14,20,50,78,21,178,155,240,210,59,26,127,241,6,68,170,239,104,37,188,16,84,223,117,89,160,219,+75,73,194,229,234,234,94,18,201,245,112,243,29,106,61,201,250,10,138,31,88,150,95,52,5,206,162,250,67,231,104,33,+24,19,25,94,112,9,34,182,169,147,218,167,122,60,98,11,5,129,49,199,125,25,82,27,55,214,134,69,152,67,239,255,+253,13,93,238,187,154,56,32,106,210,152,147,107,109,189,163,18,32,221,38,34,192,186,207,13,132,120,209,68,38,151,192,+14,137,151,168,154,94,124,49,186,103,0,250,153,31,188,229,129,69,104,243,105,222,175,16,129,162,89,0,181,56,78,180,+146,214,50,238,217,146,231,1,153,11,236,189,107,24,77,27,57,218,125,215,56,131,48,74,22,43,42,216,187,125,150,243,+17,101,12,94,90,167,141,28,229,89,97,87,231,250,133,34,80,80,136,125,115,122,135,142,135,158,160,22,211,106,154,38,+155,133,39,211,159,57,247,155,99,33,135,191,254,64,43,103,47,210,45,85,57,120,37,139,175,94,25,3,123,72,58,108,+29,148,15,48,93,135,12,170,37,145,97,157,122,139,207,241,50,179,56,63,231,61,202,220,48,63,14,10,117,247,212,40,+219,20,110,249,147,166,194,31,84,223,246,82,205,172,159,92,80,18,122,63,26,203,121,34,81,163,200,126,164,204,59,93,+78,135,182,203,83,192,26,86,206,105,0,103,109,33,210,198,6,108,19,10,244,61,14,56,13,19,211,188,252,15,31,161,+211,8,218,105,247,164,35,63,117,89,105,8,21,60,13,96,31,92,147,126,68,44,176,102,240,76,205,176,221,253,34,23,+83,223,41,99,41,186,30,193,216,36,82,88,75,164,38,131,239,19,68,174,113,158,22,17,108,133,38,62,36,61,56,226,+106,168,29,115,140,51,2,182,114,54,115,129,9,119,199,215,81,187,27,75,57,153,159,243,127,160,255,65,173,40,126,230,+98,214,168,164,109,75,194,3,248,227,37,163,167,100,40,192,159,79,162,176,21,209,166,61,209,174,183,253,78,189,24,35,+63,243,214,114,185,222,184,177,29,203,126,165,167,111,163,249,180,198,151,168,15,76,22,43,111,169,210,95,93,179,80,195,+107,255,4,114,99,198,113,242,9,230,3,36,106,172,85,198,82,111,100,193,247,170,186,231,211,161,113,79,198,254,24,0,+127,14,230,180,223,202,23,181,229,62,102,190,135,223,99,21,111,61,151,197,109,52,85,189,99,114,117,66,52,106,195,79,+101,197,244,50,14,169,51,210,104,142,97,241,167,114,176,197,181,134,40,131,99,24,201,220,1,88,18,178,217,169,132,47,+236,149,78,21,194,65,76,189,52,46,67,162,25,238,219,104,107,20,245,46,159,222,217,196,139,12,1,82,107,218,252,50,+207,94,149,112,11,153,252,252,137,29,144,70,84,126,248,87,194,74,149,119,169,84,191,149,85,117,114,82,112,206,179,35,+209,196,255,20,164,181,213,51,153,141,189,186,20,74,155,83,50,111,148,2,103,231,255,249,49,99,35,232,124,246,191,113,+181,90,107,178,87,51,185,49,18,17,249,110,34,242,197,228,165,164,43,26,75,138,39,10,223,255,252,23,104,245,60,111,+96,118,151,95,123,110,242,177,214,154,78,51,162,129,33,123,84,181,247,68,5,225,13,5,153,82,0,223,170,22,206,18,+232,215,225,32,123,235,3,23,195,60,48,81,137,146,64,184,191,166,36,241,195,22,116,35,181,228,90,110,174,177,86,47,+234,223,118,212,232,177,6,51,119,96,194,235,130,252,167,37,216,44,17,4,238,176,190,115,114,107,24,232,254,162,255,3,+77,185,4,62,227,47,42,234,197,46,206,144,27,72,146,122,23,136,225,74,212,90,16,124,199,47,49,151,36,251,157,32,+246,99,230,151,171,97,137,133,86,105,22,114,236,250,147,67,220,42,115,48,19,77,185,138,182,83,169,200,206,39,253,41,+186,107,65,197,31,12,231,65,224,169,155,221,208,151,192,195,134,33,77,191,57,241,28,170,10,142,68,17,233,166,23,33,+241,70,240,129,234,30,0,144,201,236,217,108,120,227,203,241,154,245,22,211,229,228,184,246,235,90,35,17,176,143,64,203,+202,146,169,108,79,193,88,172,37,187,35,136,199,65,7,85,70,164,43,42,229,45,33,206,164,7,100,24,43,155,71,255,+38,21,75,123,14,106,25,181,206,166,160,58,152,68,44,0,171,152,163,219,213,154,138,12,209,224,8,75,112,211,31,179,+80,70,203,50,76,222,178,219,28,37,101,122,147,208,148,170,18,150,38,58,127,163,149,111,212,27,249,15,8,85,88,149,+24,38,244,125,173,121,55,216,58,156,193,225,99,136,72,119,128,56,208,124,239,41,247,245,132,154,141,242,104,45,88,72,+224,145,214,137,153,82,229,159,195,112,67,56,198,62,125,64,214,70,224,224,158,217,241,97,164,119,93,163,63,35,87,20,+52,203,236,228,217,79,244,206,248,51,37,11,164,161,63,138,231,3,139,106,35,189,69,63,120,93,130,11,186,139,158,96,+105,63,7,142,146,203,187,120,97,90,96,172,200,2,4,129,225,253,167,159,106,203,206,232,139,34,1,53,9,255,243,247,+30,134,91,20,42,17,172,62,209,253,250,72,158,141,137,94,58,234,213,31,112,46,146,67,22,39,18,196,130,95,227,252,+94,164,232,32,212,23,55,214,174,79,173,64,25,125,136,225,121,7,70,21,169,138,245,25,57,204,186,29,66,0,184,25,+173,119,61,150,69,237,243,247,235,71,87,143,177,146,161,188,130,187,36,87,5,203,20,173,100,113,29,56,180,18,164,35,+70,214,248,40,67,125,79,248,144,161,59,194,118,255,249,203,147,51,212,244,235,22,22,237,40,183,56,245,227,220,229,177,+241,203,159,211,125,195,6,49,116,239,123,42,216,14,137,141,14,204,209,245,11,24,213,32,244,74,69,190,237,70,127,161,+173,190,18,142,70,211,145,104,238,163,143,243,55,205,84,222,99,59,121,112,81,20,157,119,234,236,79,45,214,115,79,36,+31,85,62,175,58,33,191,253,253,64,247,185,138,142,123,153,89,46,177,194,241,191,239,90,194,222,136,241,17,206,141,80,+57,63,194,227,44,104,135,120,241,11,252,45,33,88,197,23,225,213,249,71,16,225,94,81,165,149,134,202,154,180,22,219,+17,119,171,233,184,204,138,104,119,67,171,65,165,189,61,225,85,187,249,209,205,135,124,9,63,203,94,22,200,148,23,126,+132,49,177,135,203,252,221,1,145,197,221,27,67,128,226,67,145,106,72,28,155,14,89,98,144,197,35,19,129,139,73,150,+205,120,165,239,179,175,122,204,5,130,76,47,108,28,200,45,219,225,38,140,17,250,248,124,123,10,192,10,198,191,232,246,+141,242,141,188,9,219,207,223,7,236,200,131,57,131,43,11,108,32,162,142,1,126,69,82,213,164,95,54,180,113,137,176,+163,233,21,167,219,250,39,178,75,228,158,99,111,87,119,133,27,161,234,86,94,126,126,234,93,135,19,119,145,33,80,250,+199,227,46,116,208,236,142,82,250,129,151,47,191,173,108,194,129,116,10,31,188,65,81,43,104,48,108,4,56,130,27,21,+243,126,72,140,157,167,62,242,143,130,36,93,18,99,83,69,52,60,203,85,119,149,211,204,130,113,223,89,157,244,173,250,+193,174,54,118,222,124,115,76,0,198,44,184,135,95,215,61,71,163,30,224,232,31,247,149,237,163,210,191,47,159,179,13,+195,9,64,176,42,36,6,120,189,194,166,97,4,43,203,94,62,151,88,98,173,53,99,4,166,159,80,97,201,150,97,96,+132,118,150,209,54,147,38,55,46,60,43,154,34,198,252,115,89,62,189,64,222,29,55,18,238,229,176,1,134,200,22,101,+56,67,53,95,65,150,170,248,254,87,31,3,137,187,183,189,196,2,0,127,117,226,36,179,235,166,174,23,150,13,20,172,+186,5,61,83,60,171,129,227,143,74,75,28,248,27,197,189,231,230,21,57,156,133,17,188,161,38,75,53,32,76,173,196,+59,132,246,2,205,27,217,29,232,130,212,18,36,253,13,57,138,107,146,255,218,112,86,36,87,61,188,194,130,40,247,23,+240,6,176,110,192,213,184,231,152,255,95,246,210,125,224,178,214,97,65,93,136,237,254,185,115,3,138,213,6,70,191,207,+229,105,27,49,177,17,188,147,82,46,106,154,164,82,155,232,108,85,230,106,157,115,25,94,183,102,56,225,127,27,130,184,+240,166,48,47,4,216,28,31,221,77,21,44,130,157,1,111,153,160,171,35,52,63,33,25,64,64,228,87,3,52,27,80,+143,83,154,86,228,180,105,187,117,107,16,161,234,133,128,234,236,44,35,162,68,168,87,16,207,5,13,42,115,156,177,141,+124,2,41,203,48,2,81,242,104,167,31,195,207,32,223,167,182,167,134,159,21,166,227,179,5,131,106,187,147,69,164,104,+197,193,234,152,84,162,111,17,249,55,154,154,82,91,145,33,47,86,229,117,192,12,5,70,154,10,216,196,138,221,2,71,+146,64,110,146,22,19,194,10,7,157,168,111,209,2,183,146,199,240,0,169,233,183,117,251,209,120,14,88,215,189,153,23,+250,237,188,102,46,79,127,10,179,172,39,198,153,115,121,53,254,246,254,101,246,253,74,186,217,246,62,105,237,163,212,37,+181,150,149,87,87,32,179,162,230,18,184,234,219,137,2,219,140,61,182,44,161,17,38,142,69,164,234,69,41,244,170,4,+253,232,255,132,79,155,126,109,91,239,168,190,74,62,140,166,220,87,150,245,80,50,54,130,222,159,253,132,142,93,97,50,+14,235,176,134,116,233,254,123,88,114,139,130,120,202,139,170,255,253,125,56,244,173,165,254,80,236,217,188,136,187,23,179,+69,18,223,249,35,193,186,44,115,77,175,0,197,138,134,63,2,59,20,55,62,151,5,201,212,63,247,42,237,195,253,237,+251,12,141,93,75,6,68,230,52,96,113,231,192,22,100,136,237,204,217,112,88,32,123,120,4,111,254,39,168,80,219,37,+94,156,100,181,238,17,49,91,21,87,55,38,160,225,22,131,134,5,9,52,18,231,194,152,44,135,191,237,152,93,73,169,+136,253,178,116,94,225,177,238,56,61,16,203,252,84,67,227,26,38,241,151,100,34,35,88,107,254,62,154,125,136,204,50,+96,135,251,173,31,85,52,158,12,89,93,115,54,191,114,253,83,66,141,38,20,76,0,225,216,144,67,53,245,238,145,215,+71,186,184,250,61,217,6,214,67,254,255,192,226,203,102,52,44,53,189,103,22,100,141,158,247,146,250,210,84,70,174,22,+177,220,55,44,254,119,105,168,138,151,81,107,72,141,56,17,242,29,230,176,252,152,158,193,21,244,158,97,3,84,179,91,+77,195,18,195,99,43,80,58,236,106,72,227,148,82,31,76,217,59,72,202,68,112,12,248,71,152,124,228,153,214,164,122,+252,45,127,15,40,219,150,69,242,75,190,11,64,124,201,222,141,17,235,83,209,67,58,50,194,62,214,99,162,122,183,139,+142,210,98,100,11,32,185,35,65,190,151,171,116,195,70,11,255,236,178,122,136,61,102,203,122,43,16,49,42,89,110,215,+133,206,48,99,11,109,168,220,195,143,163,140,252,104,21,195,127,224,40,184,1,240,22,58,127,77,198,49,40,140,255,251,+241,217,197,53,213,109,221,73,242,6,81,196,52,8,156,92,236,254,179,39,209,197,248,224,222,85,40,193,120,43,100,135,+85,84,233,24,203,103,206,244,42,225,99,154,158,241,189,134,130,177,16,79,206,238,163,249,148,52,207,142,64,186,132,174,+110,142,115,199,239,141,167,206,52,132,132,43,249,156,70,19,57,151,179,0,236,220,34,23,198,118,61,105,111,135,222,83,+149,140,162,28,207,23,46,210,116,130,156,229,16,228,10,83,41,209,253,82,76,169,71,160,129,205,246,218,44,38,210,209,+70,49,127,56,30,125,107,201,13,245,224,27,145,21,143,93,25,79,92,165,102,55,203,213,253,94,43,54,220,138,171,244,+120,59,128,217,109,27,72,58,43,233,243,118,40,188,207,36,200,97,197,179,175,66,199,241,71,169,229,210,175,253,225,205,+242,222,125,133,154,183,192,245,70,146,80,126,75,208,116,20,158,124,186,146,150,115,62,31,188,39,228,58,69,5,94,212,+242,171,175,190,194,37,198,173,86,221,86,9,177,28,140,184,247,67,224,163,123,77,58,161,144,154,109,12,184,237,35,162,+93,57,128,81,214,153,175,26,210,39,180,60,7,175,19,198,159,186,119,97,140,153,206,42,57,138,41,151,99,180,88,201,+247,98,50,157,166,130,86,32,206,91,180,82,168,149,16,199,195,137,116,99,59,187,111,136,22,114,210,115,155,14,0,196,+145,58,15,234,11,95,56,94,7,249,183,144,157,239,193,41,86,167,149,153,23,92,96,116,32,219,39,246,162,251,217,140,+248,73,208,44,205,191,80,81,135,71,14,110,249,222,220,1,83,45,126,102,206,110,114,236,208,201,160,247,207,225,161,125,+115,203,130,171,29,113,83,28,3,114,117,64,185,162,120,48,7,5,26,109,165,196,136,182,188,238,162,127,28,117,198,108,+90,95,210,164,79,45,233,219,240,96,76,218,38,125,9,54,52,89,234,40,254,219,99,229,179,205,219,203,164,155,123,76,+128,192,123,32,249,235,102,226,93,42,200,131,90,49,87,128,30,226,75,37,189,134,110,122,79,127,97,197,152,95,108,154,+247,95,184,64,15,188,104,146,85,103,146,129,28,140,238,21,114,141,177,76,126,113,146,167,170,163,200,77,176,76,247,82,+161,117,6,33,250,6,151,67,238,18,100,89,58,62,160,66,243,188,63,104,123,92,15,181,31,93,12,231,215,172,57,57,+104,71,188,207,210,248,70,175,225,202,218,143,18,211,227,61,139,90,94,180,192,218,248,137,129,239,189,114,199,102,49,226,+250,59,199,162,15,188,110,111,117,247,15,240,180,173,144,199,99,2,9,131,247,120,158,116,60,19,226,208,242,199,97,132,+249,127,167,39,91,159,22,9,129,70,187,145,121,49,198,47,208,170,216,61,215,160,83,177,122,179,205,192,27,123,158,163,+37,62,8,75,111,231,142,27,105,120,33,54,77,9,28,194,148,107,225,126,191,220,138,26,105,242,247,168,155,112,96,191,+79,240,133,92,216,214,71,13,32,76,227,224,172,14,229,182,68,110,183,249,27,34,123,3,8,241,14,125,98,195,8,23,+71,232,191,72,19,151,98,71,9,206,250,124,123,147,43,160,24,15,117,94,89,39,129,84,57,224,102,161,118,13,223,102,+8,43,208,222,11,34,230,119,128,239,173,127,17,49,111,196,115,93,101,188,84,117,237,114,52,143,158,219,32,164,134,226,+85,163,248,74,164,9,5,228,156,173,251,48,11,47,20,76,218,1,251,126,168,108,92,111,43,40,133,86,188,242,193,81,+44,98,103,115,66,81,129,242,100,1,208,240,18,89,251,126,83,9,52,191,174,70,92,111,165,188,253,12,109,26,93,111,+253,117,238,244,145,150,231,19,165,10,229,204,66,238,137,111,119,72,167,187,8,220,32,250,207,241,68,104,197,149,229,205,+197,7,238,34,251,60,78,17,15,150,67,161,218,116,47,201,213,239,60,78,211,158,62,187,113,201,53,33,6,8,91,239,+122,210,84,145,40,127,122,63,232,174,250,116,230,16,149,113,69,48,6,139,255,183,6,206,91,227,10,128,103,61,182,142,+231,229,27,193,40,143,37,237,137,98,151,61,182,43,79,8,204,123,135,18,143,33,133,197,193,175,23,160,97,216,107,188,+22,18,253,132,195,150,192,254,67,55,255,218,218,121,69,233,36,5,58,82,75,16,69,14,74,199,70,219,222,202,19,211,+174,187,39,187,74,16,11,181,58,140,199,127,145,110,170,121,161,99,181,103,119,188,93,27,118,14,227,73,165,142,61,169,+214,185,174,109,104,57,103,41,28,174,240,76,81,208,244,24,145,169,58,214,141,32,250,178,36,9,104,45,214,143,34,194,+207,133,38,48,109,3,189,46,74,130,155,110,107,141,215,220,202,147,228,120,41,245,188,101,229,105,149,1,44,125,50,200,+124,41,113,143,224,13,73,9,161,181,113,142,118,121,229,254,17,182,137,73,44,214,239,25,89,23,154,54,13,38,31,95,+185,163,6,218,81,200,218,67,196,68,84,254,173,115,240,162,60,164,4,79,128,244,131,13,37,34,170,64,161,3,115,187,+86,251,227,32,238,170,105,78,89,177,28,178,40,19,117,110,251,68,200,79,25,162,170,84,37,143,248,135,40,94,251,117,+61,58,160,107,60,1,53,144,169,55,194,30,174,9,39,181,189,220,77,0,5,233,16,175,88,176,174,152,218,170,138,121,+97,12,173,209,103,168,172,195,188,247,14,183,192,152,251,106,94,66,180,146,142,239,205,227,252,255,155,194,79,242,238,112,+177,126,30,56,59,254,51,33,65,204,119,248,244,204,101,117,122,37,53,231,71,172,62,41,124,47,183,212,68,69,68,89,+74,217,218,209,187,221,64,38,140,48,247,71,202,58,120,84,27,183,76,160,237,144,36,164,160,192,47,104,103,234,97,232,+195,226,42,211,201,94,150,94,151,183,103,60,204,30,126,136,156,61,90,223,179,128,171,148,6,186,52,199,220,182,156,131,+212,72,134,40,138,90,16,78,23,201,208,237,245,200,105,115,96,208,105,245,13,224,5,90,237,79,53,45,110,20,132,97,+199,214,224,201,53,167,57,19,82,6,116,49,67,210,192,164,91,56,76,34,216,119,250,70,123,104,69,208,103,225,128,176,+18,77,26,225,201,73,125,214,96,115,44,197,180,75,210,77,55,146,205,156,121,225,120,188,214,104,224,239,67,20,100,100,+171,115,66,251,150,176,83,205,88,242,156,134,131,80,210,155,153,184,250,68,188,32,182,6,173,231,128,198,176,157,115,112,+81,233,39,163,87,86,65,252,108,97,121,113,166,146,216,84,7,22,240,123,9,188,5,193,198,34,217,211,60,13,69,22,+5,79,235,93,33,62,100,235,95,112,64,71,72,86,219,45,255,253,88,166,82,236,143,45,129,111,192,212,80,71,215,148,+159,219,246,117,154,25,195,75,231,163,8,36,175,179,210,141,73,178,188,51,164,40,194,180,13,157,148,72,216,65,1,99,+130,27,211,240,235,118,102,30,198,67,41,129,56,172,125,84,166,167,70,250,23,97,38,110,252,50,0,52,163,191,174,133,+225,63,250,138,114,18,29,194,149,58,111,89,23,38,91,162,100,77,53,171,130,223,254,197,92,167,220,201,3,102,111,115,+172,140,44,78,26,112,227,85,196,12,201,249,10,156,41,183,38,235,82,145,253,217,21,126,51,238,36,245,232,11,186,9,+181,198,81,161,123,170,46,169,55,151,117,55,94,165,218,149,1,252,207,251,33,57,40,125,40,12,164,223,81,30,168,81,+194,94,102,204,50,77,225,196,84,217,149,204,218,33,92,244,253,80,231,141,56,160,157,181,159,173,3,127,133,94,212,204,+7,48,141,233,96,209,227,203,206,70,193,33,14,81,160,155,167,121,112,21,64,71,242,171,250,219,98,89,202,17,41,172,+34,61,86,249,208,253,254,56,54,156,20,135,59,173,57,92,238,198,10,30,110,171,20,141,239,215,162,117,172,72,113,140,+143,204,77,39,191,229,171,74,93,194,59,156,0,160,213,45,128,113,79,119,175,108,84,155,180,23,5,235,45,57,218,141,+197,56,206,168,249,235,121,75,214,250,133,174,180,38,216,98,23,148,23,131,34,26,172,173,31,119,125,208,127,34,164,158,+232,105,75,106,209,36,92,51,184,67,8,45,113,111,246,218,73,79,120,85,64,25,29,209,177,78,249,4,217,25,0,34,+47,213,165,20,68,91,89,15,53,37,231,122,186,77,228,231,92,70,239,95,253,74,178,240,6,99,124,175,68,187,39,220,+162,145,162,232,51,194,208,183,49,79,211,64,7,206,232,235,124,212,163,40,23,47,241,78,81,32,193,242,36,59,242,68,+31,85,234,135,202,246,241,11,48,44,119,167,120,110,185,78,139,105,76,173,191,213,208,218,19,183,15,138,56,27,139,90,+24,64,31,87,44,169,1,127,83,11,145,132,165,4,198,99,30,82,0,188,121,69,17,175,52,76,220,68,243,252,35,6,+209,149,59,115,138,184,189,147,55,92,75,182,183,110,230,171,64,200,173,148,7,83,242,170,176,46,226,232,227,106,223,4,+230,127,11,201,90,106,186,5,124,73,50,44,188,27,172,128,242,231,157,23,64,130,70,35,195,40,180,24,134,30,100,155,+134,140,21,106,50,6,253,1,62,196,237,157,28,160,40,153,8,179,116,114,111,170,9,228,146,189,234,19,180,90,28,64,+20,226,168,47,204,113,226,231,196,32,166,250,252,140,55,198,221,106,218,205,7,39,0,22,173,55,206,158,17,47,108,230,+235,5,107,102,16,214,240,79,173,49,144,224,103,125,90,101,84,186,248,170,177,28,194,175,231,146,115,200,133,158,178,173,+122,156,65,73,229,12,69,125,149,197,248,64,88,13,237,128,69,77,207,127,123,9,247,206,221,167,28,212,180,219,145,32,+113,145,131,191,232,0,148,18,170,63,213,221,2,49,101,101,100,220,68,251,23,11,10,20,215,145,215,255,97,158,237,62,+11,17,224,83,126,170,31,60,73,143,136,13,66,174,148,48,14,118,174,249,169,191,238,241,158,147,48,63,129,127,189,90,+185,172,141,107,100,184,14,167,178,13,113,227,125,134,66,232,76,227,111,99,121,214,201,115,79,172,34,197,11,116,183,21,+111,191,0,147,143,29,31,42,6,32,98,219,25,186,98,246,242,192,72,255,8,86,14,114,183,212,93,72,18,143,141,91,+41,113,104,139,116,190,76,55,75,79,171,163,12,218,206,30,93,139,70,119,255,32,79,153,208,91,42,90,36,73,218,41,+97,132,42,191,174,182,62,145,242,95,207,52,157,35,181,136,112,245,237,248,34,213,160,197,158,13,182,162,73,161,37,161,+126,37,125,146,140,69,173,177,128,59,189,118,66,171,209,150,61,85,77,174,226,234,66,205,128,127,234,238,219,112,160,252,+181,21,32,251,108,233,58,31,157,136,116,161,136,158,149,96,254,35,151,198,16,65,96,232,36,226,162,233,237,255,29,232,+150,136,61,163,196,205,19,89,207,117,34,218,240,5,58,98,125,7,32,19,224,43,10,59,66,28,203,22,204,59,208,88,+107,39,100,1,115,231,146,195,88,0,156,139,95,43,91,148,87,160,111,242,234,206,197,53,171,183,66,65,232,201,154,141,+3,167,215,181,243,225,207,10,54,130,124,9,71,111,89,213,165,131,215,175,39,65,55,115,233,101,3,182,24,109,130,2,+33,173,2,23,6,108,246,245,202,20,68,48,10,127,174,77,136,101,232,47,89,61,154,65,121,56,106,250,252,12,47,197,+207,56,97,116,106,255,106,113,237,222,149,225,10,124,234,59,73,47,237,144,107,101,113,18,155,225,250,138,243,109,102,137,+253,238,216,14,24,71,203,164,203,147,49,239,229,166,91,18,36,119,62,124,36,47,121,108,65,141,108,80,129,208,197,134,+102,14,195,155,115,158,131,161,132,148,110,111,0,18,186,231,106,160,134,164,195,187,103,126,220,158,114,6,60,74,213,133,+77,109,44,50,94,96,128,100,35,249,169,102,147,236,73,137,214,68,241,27,15,89,239,85,175,34,4,127,109,61,125,221,+185,80,213,9,113,236,5,144,208,207,78,26,162,179,252,12,180,28,4,224,129,157,121,96,6,165,114,222,1,113,118,217,+133,121,230,157,111,68,116,216,214,189,213,171,243,31,96,60,192,21,242,123,152,181,124,216,89,210,201,145,160,193,235,200,+174,186,241,208,214,214,70,227,224,149,51,32,20,213,41,68,216,183,79,140,63,67,22,81,74,18,24,83,247,43,34,188,+99,99,210,98,214,29,71,44,235,51,205,13,143,101,98,17,196,182,230,150,158,203,81,204,206,146,138,171,180,43,19,246,+245,122,20,188,161,161,249,87,148,157,56,54,178,217,31,247,128,43,183,125,23,169,106,139,156,96,135,176,202,118,187,102,+92,8,80,135,35,112,71,131,139,151,74,32,223,160,148,67,69,185,12,183,184,175,29,88,11,231,242,3,250,94,82,77,+43,103,161,96,255,252,69,118,112,26,133,161,135,90,181,110,4,192,128,117,250,39,57,218,247,230,162,110,254,26,116,6,+127,190,148,91,165,129,0,14,178,46,5,165,156,200,233,255,235,208,33,76,253,92,22,31,203,222,20,234,128,189,104,4,+97,118,9,244,230,0,148,128,164,66,47,225,107,252,2,91,213,12,92,61,174,222,84,47,217,15,233,31,79,168,241,184,+23,167,200,60,234,184,167,6,137,245,131,84,66,22,94,65,49,128,199,167,12,0,203,55,206,83,8,3,217,100,218,198,+182,179,240,217,116,185,183,181,231,247,175,47,136,55,208,77,132,205,198,228,129,118,98,159,39,254,80,1,171,80,184,229,+1,24,115,248,151,225,16,191,248,124,99,211,163,178,57,54,41,114,39,211,193,206,59,29,129,7,246,163,226,162,100,37,+56,168,202,62,149,250,52,188,174,161,253,247,85,56,109,106,55,139,210,187,125,228,9,111,1,120,111,3,240,169,154,149,+114,108,0,36,53,18,74,94,94,74,251,162,98,46,24,6,148,180,188,200,153,94,155,64,21,194,73,6,207,218,77,172,+23,11,22,58,198,3,38,3,84,111,10,126,16,217,146,63,93,182,33,249,248,173,52,72,164,168,59,82,21,176,32,255,+197,69,42,158,211,155,105,205,168,185,196,32,160,219,65,84,159,22,54,23,42,188,249,125,195,142,184,70,36,224,115,32,+232,45,112,94,61,72,57,177,104,151,240,168,232,240,251,242,162,77,40,218,216,8,238,118,169,70,164,238,180,165,250,200,+167,252,215,187,203,83,250,175,122,26,109,164,210,26,195,187,82,70,127,224,224,110,225,147,172,127,76,73,187,135,127,148,+120,16,162,229,178,65,255,128,75,48,147,100,109,98,137,124,140,11,168,66,5,190,119,205,19,198,251,187,86,8,29,72,+44,42,13,133,223,189,207,216,200,182,34,195,165,156,65,155,61,48,110,2,239,40,22,166,21,177,159,171,38,154,128,106,+242,23,48,34,163,109,129,147,145,161,50,158,22,237,112,25,197,126,218,124,47,121,218,100,196,176,229,57,94,255,205,34,+107,115,114,162,57,146,107,19,127,78,53,34,42,242,17,127,151,62,220,215,116,210,231,177,247,129,226,224,145,149,38,155,+168,213,229,78,245,234,46,71,51,234,146,121,107,241,218,72,4,93,124,210,237,217,215,142,174,250,56,183,199,57,173,36,+227,48,101,105,206,192,10,106,4,74,194,19,174,255,29,106,61,83,68,29,247,63,79,122,52,51,101,209,154,172,194,106,+180,141,194,38,80,60,86,75,217,213,114,51,19,178,144,178,227,167,108,184,123,175,180,96,226,9,60,53,217,42,60,22,+228,115,217,221,72,189,227,7,223,71,22,39,33,80,210,75,208,109,28,117,130,34,63,246,156,187,19,236,237,155,99,160,+225,109,18,37,249,95,171,177,159,130,40,87,48,53,18,11,89,158,3,131,43,18,153,254,238,186,194,171,113,31,241,13,+202,248,28,37,30,24,253,229,68,24,34,45,224,64,233,5,36,194,59,173,11,217,171,40,181,20,128,224,65,88,103,14,+90,114,177,227,194,190,125,252,137,151,72,144,250,164,70,89,159,44,57,36,248,98,225,210,210,124,34,190,207,163,43,136,+229,222,114,162,171,79,152,184,65,148,217,203,145,195,196,195,127,157,214,61,158,34,233,229,81,64,133,83,213,159,162,83,+183,75,72,86,63,186,111,5,86,215,139,64,188,174,215,225,190,126,204,167,186,183,9,184,59,80,135,93,152,185,141,57,+46,156,121,228,124,225,197,180,61,130,183,143,69,11,120,208,250,222,147,131,148,124,45,77,123,224,92,112,16,107,160,243,+185,84,252,169,161,47,49,157,117,213,143,201,97,123,207,134,99,37,232,59,30,184,110,112,125,130,238,173,134,122,197,137,+0,91,127,128,116,118,238,43,148,243,4,65,220,9,90,3,134,174,212,161,193,251,92,132,132,182,111,109,65,162,84,85,+209,103,15,119,23,147,212,60,6,125,178,87,28,182,82,132,28,190,52,198,186,31,127,223,32,154,40,91,83,63,19,140,+249,4,2,68,176,89,12,74,253,76,165,137,185,69,192,27,24,105,240,185,192,191,129,11,107,36,142,112,39,141,198,43,+184,128,127,163,72,107,9,164,114,205,101,27,86,46,195,157,15,192,50,37,115,10,56,45,249,147,83,169,117,39,31,208,+229,7,7,75,140,66,118,36,35,201,0,171,208,231,120,221,245,84,230,9,244,246,94,158,247,57,39,85,95,142,188,83,+130,85,230,239,222,39,218,38,245,57,15,111,95,33,195,245,72,208,15,149,216,98,216,50,197,16,98,230,26,34,162,94,+188,229,170,118,166,193,186,133,168,71,77,98,73,163,138,248,230,82,99,154,39,100,100,120,143,101,41,144,82,153,242,22,+15,5,123,131,107,153,195,227,9,73,172,199,99,210,160,254,233,230,85,50,177,249,71,4,221,186,81,61,243,32,82,28,+235,148,254,22,24,61,191,110,62,38,97,44,49,24,184,207,11,68,120,120,222,108,55,3,40,69,241,28,106,96,65,6,+143,22,14,108,86,218,186,211,49,196,151,162,161,207,116,232,72,244,130,96,154,54,23,213,233,197,73,46,202,120,239,24,+142,110,62,93,102,108,1,161,117,145,60,66,110,88,119,41,223,100,61,196,154,71,224,181,193,156,88,244,72,217,87,153,+55,238,99,133,209,9,167,157,98,215,204,189,210,174,142,181,144,28,132,142,59,219,126,91,174,132,27,104,185,133,235,254,+103,26,15,207,14,35,43,10,209,188,217,240,21,98,248,97,78,169,31,245,142,251,169,216,72,83,41,118,171,207,225,217,+78,118,186,140,119,168,63,115,191,96,220,80,234,209,22,69,241,236,68,109,203,137,98,182,177,246,153,104,64,51,35,64,+118,200,198,178,187,110,48,25,213,234,140,43,2,143,124,92,55,26,22,138,150,245,188,62,130,42,201,219,145,176,231,248,+98,72,113,121,181,119,123,133,162,85,233,145,233,229,121,185,87,190,37,100,130,170,116,155,225,88,255,252,92,171,232,112,+222,108,53,62,225,59,97,155,143,188,208,0,58,218,16,109,229,254,100,75,172,179,178,226,105,245,156,71,205,7,138,37,+36,159,25,243,170,71,104,155,112,179,226,207,181,61,199,88,110,218,17,181,202,65,152,227,225,138,53,60,164,156,134,171,+17,126,193,173,47,217,147,183,165,151,170,102,198,186,15,195,8,96,99,246,102,99,215,95,43,155,238,222,112,115,53,244,+171,245,100,132,46,135,19,255,132,13,61,62,235,138,64,10,113,176,216,120,203,200,41,108,114,67,107,228,252,233,74,105,+90,128,125,16,21,228,66,1,143,99,224,196,19,250,230,186,130,87,77,114,195,95,169,28,203,39,237,167,209,162,112,3,+122,29,244,78,220,247,216,64,171,115,179,153,208,248,73,132,245,182,190,189,162,242,90,195,9,177,218,50,125,6,219,45,+240,160,14,202,33,245,78,128,217,16,26,176,55,14,163,91,150,235,174,208,108,18,74,182,207,132,196,28,126,194,132,115,+200,145,89,19,222,82,58,77,219,245,119,84,187,105,210,96,84,154,33,194,157,95,159,5,155,77,85,247,41,252,68,197,+79,165,233,48,147,113,98,105,195,237,55,250,43,203,27,204,30,41,217,142,234,250,212,147,170,193,219,90,53,58,46,137,+8,146,88,210,128,59,80,233,247,37,182,173,8,49,151,44,60,109,66,185,132,11,75,4,55,227,6,238,146,252,98,19,+7,252,189,14,116,5,88,247,103,41,67,15,61,172,30,145,230,186,46,225,46,161,32,225,108,243,79,152,23,45,205,198,+152,151,68,22,21,0,236,94,227,191,20,243,116,184,65,50,10,47,238,125,59,108,196,196,13,127,39,15,229,184,200,79,+68,7,226,19,161,138,218,134,114,211,124,50,45,148,209,81,200,103,24,225,35,214,160,96,167,66,242,195,252,18,245,2,+243,204,69,49,169,103,244,21,204,67,70,253,255,22,118,212,172,165,104,179,209,116,129,200,177,205,139,23,32,43,177,117,+233,17,55,48,104,187,49,94,7,224,96,244,209,230,160,74,109,41,191,15,253,220,72,204,73,18,211,17,31,85,91,10,+74,152,215,83,8,47,48,10,146,134,150,246,19,136,154,29,174,203,210,58,189,238,120,41,191,88,41,238,50,150,185,174,+170,34,16,95,29,121,249,120,37,96,170,35,14,47,137,248,23,211,120,89,181,62,211,42,250,202,33,34,216,29,173,52,+66,72,15,7,250,230,155,250,190,43,177,51,245,70,121,114,57,167,40,91,226,204,189,167,148,28,245,188,12,204,101,48,+22,187,33,148,178,188,88,179,155,218,72,118,156,76,207,23,39,191,190,117,189,55,180,112,144,0,189,221,1,181,194,10,+240,167,130,89,6,248,228,159,207,3,44,100,246,21,231,164,180,71,125,19,115,168,147,157,178,77,118,171,165,253,165,109,+16,189,66,11,49,76,183,128,254,232,163,196,29,17,172,222,15,55,220,185,163,188,30,2,160,67,229,168,123,226,213,228,+252,46,135,35,186,22,16,216,153,27,227,23,201,94,61,97,150,58,109,202,60,193,42,228,15,226,10,127,214,128,85,223,+166,209,241,94,208,75,161,235,227,172,76,228,244,69,71,240,32,147,20,124,202,79,251,108,35,143,21,193,15,93,172,69,+199,136,191,240,217,232,8,219,65,160,46,61,202,158,27,196,214,154,130,104,58,213,166,180,234,39,116,8,178,14,111,146,+136,253,219,14,74,171,124,178,174,124,199,9,230,212,91,119,161,95,96,94,246,23,240,80,151,235,150,65,155,123,29,88,+224,43,33,63,30,132,28,156,200,233,255,144,153,55,183,247,145,131,87,94,86,215,197,188,14,15,202,124,129,204,188,49,+79,242,49,31,182,126,246,94,113,33,111,195,10,29,221,113,230,90,31,156,152,64,110,188,172,9,191,8,207,115,62,7,+209,63,182,235,4,248,181,8,46,164,237,74,189,55,112,216,104,66,35,148,172,217,142,106,108,193,149,161,98,114,152,110,+47,196,74,109,218,197,200,98,114,251,121,163,198,159,22,78,143,56,3,210,21,158,245,232,192,178,80,138,171,80,49,64,+231,40,193,203,133,115,246,68,152,182,140,46,196,156,77,27,207,76,22,207,168,44,23,37,199,39,152,47,9,111,135,9,+94,144,153,29,240,227,175,247,206,144,189,225,13,99,27,97,74,65,206,27,87,10,58,236,187,46,81,251,65,216,78,114,+43,141,65,46,212,220,18,116,165,151,116,196,26,235,189,124,190,216,101,159,140,32,187,25,167,80,175,152,179,247,212,127,+47,199,78,89,248,31,173,239,139,91,6,232,243,150,220,42,178,167,134,251,55,112,79,184,85,27,28,36,175,93,102,223,+118,209,189,126,40,27,218,196,235,105,196,53,216,110,225,233,7,218,62,120,149,60,57,48,133,123,0,130,50,136,47,249,+239,161,13,54,157,64,157,58,221,58,213,51,100,237,131,26,123,148,235,202,212,104,129,199,151,85,121,126,2,181,147,17,+193,62,132,208,9,180,75,101,246,253,65,99,27,41,234,113,234,79,196,209,229,80,83,251,81,151,95,103,155,5,66,214,+241,136,234,92,60,45,12,24,33,220,6,87,118,84,70,11,243,116,227,224,8,97,60,82,244,220,60,9,119,137,253,43,+125,114,132,255,192,153,161,220,81,145,180,43,255,139,80,126,5,68,127,110,97,247,175,186,118,148,180,225,60,214,246,129,+5,61,117,163,139,40,226,253,45,33,147,214,93,141,167,137,0,121,224,172,99,85,152,86,163,72,205,106,223,35,181,174,+104,244,240,192,226,234,1,246,215,56,9,61,208,26,156,118,134,4,102,131,157,84,133,24,41,183,54,195,10,56,225,54,+14,176,144,195,180,192,246,4,206,236,234,255,39,38,188,118,199,157,56,42,152,4,6,195,253,158,131,0,189,116,16,185,+29,57,138,65,39,36,149,236,201,226,143,93,196,80,165,248,189,168,83,221,117,229,5,18,162,97,255,249,203,194,205,221,+133,152,16,203,144,179,231,1,24,20,134,38,99,76,247,170,70,6,161,172,152,123,250,78,159,202,232,253,70,222,250,239,+82,240,0,190,236,40,251,190,57,159,235,254,34,136,7,52,85,58,34,169,4,156,128,189,89,161,249,148,229,236,131,59,+241,191,128,83,114,207,90,134,93,186,42,139,138,242,88,235,36,149,147,251,231,109,202,106,222,118,202,149,223,217,26,24,+207,252,216,122,153,43,5,89,159,86,165,243,75,188,175,45,108,221,41,180,130,130,109,249,135,204,145,221,148,77,106,148,+50,63,162,84,144,124,135,212,68,89,25,52,223,175,213,112,2,102,235,249,163,47,36,45,146,48,12,164,0,143,216,233,+169,219,30,44,46,192,56,171,209,155,236,206,66,110,44,170,198,63,34,178,247,40,22,174,168,15,252,57,0,186,52,238,+45,82,172,176,205,140,34,55,239,153,221,53,124,67,137,113,201,211,69,40,94,209,7,209,196,45,60,67,22,43,114,119,+15,82,235,244,43,221,164,107,29,159,227,69,231,195,41,141,30,216,178,239,247,181,153,179,145,236,247,131,169,197,167,193,+73,83,166,68,212,203,199,176,153,13,29,112,94,49,185,36,230,127,165,123,190,43,68,243,236,48,143,134,33,198,136,58,+64,231,131,179,158,67,178,191,149,222,225,162,82,207,79,128,74,229,97,142,82,171,117,161,143,193,31,216,35,61,105,250,+192,177,62,252,197,215,246,120,131,253,156,166,35,236,194,88,248,158,23,198,58,72,165,107,99,35,93,108,142,95,39,91,+21,22,152,197,202,226,18,52,8,157,82,152,2,90,124,59,199,182,101,212,238,219,148,92,76,145,2,59,54,254,122,211,+136,51,221,88,148,194,174,134,250,244,103,7,40,119,123,86,127,211,48,9,207,201,8,189,35,137,70,246,133,134,12,110,+178,14,184,244,173,10,139,200,50,181,131,94,60,74,123,75,100,128,191,52,56,174,188,148,96,201,96,120,41,172,142,57,+111,92,20,187,108,21,8,217,61,207,198,136,248,144,149,58,146,215,179,170,103,5,126,34,72,3,225,168,24,143,244,243,+82,157,125,190,132,51,186,58,0,217,149,153,202,122,250,229,17,56,0,247,247,10,17,67,208,252,201,4,57,255,94,146,+185,29,177,133,92,45,97,233,28,33,89,18,32,29,207,75,216,106,215,173,163,181,233,82,88,79,51,112,164,158,157,237,+136,57,202,53,246,179,44,138,166,83,52,118,226,46,199,157,38,63,96,21,255,204,192,227,168,110,198,77,3,154,120,236,+204,243,252,154,235,48,75,64,72,121,236,162,211,140,88,225,211,80,42,100,79,240,164,177,244,211,159,143,179,17,109,180,+198,242,180,197,47,20,210,237,240,4,67,43,244,226,236,77,20,29,13,11,113,122,42,30,233,3,246,133,154,90,244,87,+78,156,207,149,40,44,160,98,233,75,199,14,101,41,101,101,253,243,112,174,35,68,7,20,48,84,203,125,163,127,157,60,+253,69,139,182,244,50,61,50,73,97,34,175,235,234,228,191,24,7,94,188,25,228,20,12,43,4,242,234,62,79,199,238,+117,55,176,1,15,4,252,145,14,52,84,54,66,127,82,232,47,197,179,88,48,183,225,124,35,83,199,200,148,85,75,98,+152,103,163,212,193,234,159,20,12,164,8,106,237,227,218,130,155,134,92,211,67,161,3,66,39,63,253,74,247,250,44,89,+45,53,21,167,93,113,115,235,159,43,234,180,88,99,185,202,51,87,206,116,109,36,239,221,166,136,18,202,253,149,244,187,+168,135,230,47,241,52,195,86,206,121,221,27,54,88,27,190,98,129,70,194,148,108,196,180,211,209,34,194,184,57,195,43,+106,64,20,4,247,238,230,189,70,85,101,78,50,10,150,111,229,84,219,31,228,131,5,92,47,128,15,77,196,130,105,205,+18,106,186,246,7,243,255,251,38,9,134,164,73,94,236,232,60,227,19,192,75,105,201,11,187,159,232,143,27,243,31,83,+68,203,102,137,173,147,20,115,28,129,201,159,172,8,55,124,216,7,254,229,193,173,236,150,160,114,176,180,25,89,102,180,+29,203,162,18,14,161,87,224,103,160,30,103,248,213,250,161,161,49,149,85,25,112,155,27,12,95,164,35,94,168,239,227,+157,0,127,208,180,237,83,127,234,4,76,13,159,168,167,241,47,191,147,141,151,119,21,233,68,187,26,156,145,133,122,49,+79,78,170,81,37,143,171,242,251,241,238,234,197,35,137,230,244,201,247,126,30,153,53,154,97,239,151,97,198,103,48,92,+78,103,133,97,84,144,93,48,234,117,191,87,196,246,236,77,239,181,61,123,250,97,74,184,23,169,25,23,6,41,2,30,+211,116,159,153,160,33,6,190,168,119,138,43,254,69,113,83,178,120,207,39,229,134,247,116,196,192,171,18,131,155,33,43,+211,65,91,77,231,97,124,152,99,244,158,57,82,117,152,176,247,128,8,10,0,4,103,150,151,109,21,199,13,122,39,163,+63,67,191,25,11,238,43,84,84,19,214,204,22,176,65,175,28,20,240,84,60,41,206,104,240,225,59,67,72,32,205,190,+43,59,254,182,96,166,11,21,240,159,57,92,79,198,222,97,86,235,154,155,134,180,73,131,110,189,192,20,126,94,94,77,+142,24,218,157,219,191,182,118,154,227,228,225,51,111,11,68,120,192,249,220,191,12,241,92,70,181,242,56,200,138,165,7,+190,198,102,2,184,105,130,248,132,88,115,235,133,86,61,188,124,73,234,35,108,177,252,136,170,208,245,116,78,48,157,27,+113,176,129,111,241,197,6,255,231,189,95,152,207,114,181,216,248,17,168,60,160,45,157,213,92,60,48,101,99,12,69,196,+187,66,47,122,43,213,189,29,135,15,240,240,156,193,55,159,232,235,36,96,32,80,99,180,164,106,9,40,243,99,129,26,+147,255,190,0,238,166,213,235,102,196,121,15,5,47,126,111,18,170,209,170,13,96,82,120,135,171,254,19,115,239,255,116,+144,58,185,58,59,25,59,126,198,234,212,45,124,23,71,3,77,243,204,212,137,179,64,42,75,59,97,52,88,81,182,56,+85,65,95,250,82,62,49,173,218,217,167,77,215,253,8,135,161,174,188,255,135,164,124,173,98,22,166,105,32,29,121,166,+174,44,241,139,78,131,110,2,15,114,87,109,242,116,235,177,75,199,121,183,95,73,198,78,24,206,185,208,192,147,246,247,+229,54,78,185,155,45,127,15,155,81,63,152,57,7,246,19,72,222,31,74,231,197,141,95,145,140,122,214,88,18,236,163,+8,94,168,132,16,234,77,189,47,30,117,166,207,9,157,104,74,159,199,90,231,181,99,127,39,195,144,11,103,198,121,190,+85,249,158,124,251,2,212,212,69,231,89,169,180,35,13,207,19,218,124,233,12,232,224,223,236,36,21,126,93,25,32,144,+136,157,186,29,170,167,85,230,254,202,85,56,57,20,224,135,80,131,230,227,33,59,154,122,76,0,125,203,208,208,205,164,+85,240,209,244,54,187,14,20,90,224,206,66,156,142,128,164,60,141,72,213,173,4,190,114,173,94,58,223,112,117,227,242,+224,188,126,23,239,82,138,155,192,88,43,138,206,13,248,51,176,215,47,187,223,106,201,116,5,78,22,57,152,58,87,9,+241,14,72,30,160,77,237,122,192,236,26,38,235,236,128,131,49,121,111,21,13,165,210,67,253,98,199,211,45,167,233,77,+107,65,98,56,181,127,124,126,148,179,187,126,79,123,175,231,86,189,196,28,19,205,130,33,112,183,107,193,61,147,211,54,+124,18,132,202,18,51,173,28,137,191,199,7,239,106,76,40,35,253,12,29,156,116,172,25,97,173,60,35,114,194,96,120,+219,112,95,166,81,203,170,164,9,221,255,18,224,45,255,0,12,175,17,34,0,227,106,57,168,64,50,204,100,44,111,41,+93,0,168,246,208,68,237,2,205,80,166,28,78,40,109,222,213,82,65,125,249,86,21,130,120,252,150,78,54,125,216,207,+106,221,70,178,154,49,166,196,232,29,208,103,35,131,59,155,175,138,115,176,141,105,115,169,95,218,127,233,109,244,180,200,+105,174,241,53,152,9,151,106,145,252,45,69,107,78,154,41,52,184,107,67,167,181,54,145,128,60,83,72,26,204,252,25,+56,172,228,121,130,85,46,103,100,196,146,59,148,252,171,141,172,110,41,239,218,252,31,192,129,238,21,128,67,152,142,89,+231,158,30,131,141,144,158,149,179,174,17,48,198,217,125,175,250,22,184,244,130,253,223,218,18,87,230,243,166,140,138,205,+242,122,223,40,232,209,149,67,240,122,245,249,218,151,234,139,218,28,172,32,14,76,198,10,246,242,56,199,169,119,126,231,+206,86,121,150,177,174,184,94,173,60,2,42,208,47,135,231,17,28,172,157,160,205,229,77,168,241,224,157,38,238,1,82,+120,246,37,96,177,45,10,37,157,185,182,10,174,105,23,223,253,204,13,84,43,129,127,15,194,186,115,237,124,236,240,205,+152,164,179,102,103,202,177,255,75,23,139,196,244,59,244,0,200,248,44,158,220,52,10,30,115,102,202,80,255,133,97,204,+37,236,47,133,152,246,221,106,226,226,154,215,237,208,23,204,208,191,245,93,139,213,147,158,136,63,146,162,215,86,118,115,+0,45,88,138,167,176,198,195,98,57,189,65,9,69,211,225,35,147,9,27,247,34,192,222,119,223,234,40,184,85,236,173,+85,44,176,31,236,59,82,29,171,21,74,66,201,199,227,50,227,51,161,148,160,252,89,165,161,59,72,92,8,149,65,63,+150,146,136,74,48,247,73,250,182,255,245,250,240,111,252,210,197,230,130,206,10,5,207,223,186,213,198,183,182,84,232,52,+156,60,71,190,24,48,1,56,18,215,241,249,125,41,226,52,221,223,56,88,227,173,24,79,131,3,235,116,184,244,62,251,+112,196,51,92,222,166,43,167,53,175,127,151,231,68,210,28,156,238,203,218,234,107,246,203,228,152,104,177,17,31,67,67,+250,36,205,31,255,2,57,78,174,65,244,168,142,29,147,255,159,37,74,150,80,145,202,226,238,36,174,123,108,156,124,223,+3,71,40,151,225,228,241,222,163,212,146,164,72,194,8,194,210,117,160,73,113,206,77,6,69,104,85,188,252,83,144,154,+185,2,53,186,244,78,94,150,15,238,133,224,63,115,226,29,185,121,24,147,138,100,191,142,103,177,179,189,60,4,5,124,+80,29,4,195,241,89,92,77,80,203,48,70,46,49,244,27,107,177,47,128,87,93,165,20,91,23,203,208,212,20,150,134,+250,87,246,183,181,164,225,33,41,159,13,63,238,135,245,40,112,101,124,39,168,209,150,78,138,31,154,181,4,80,40,163,+128,235,16,242,71,102,183,45,201,212,63,31,251,252,138,143,231,30,183,174,28,204,161,189,90,77,218,3,222,96,249,219,+21,174,208,23,170,163,151,209,243,224,36,23,4,43,234,64,209,121,99,58,111,69,235,184,52,104,171,76,190,21,116,35,+11,35,125,233,225,222,162,206,155,246,179,179,127,48,72,116,57,171,63,218,122,36,203,243,6,156,160,176,31,197,202,231,+85,111,85,64,230,222,184,154,195,97,112,18,35,90,66,115,204,33,19,20,20,11,6,107,47,227,141,45,115,168,134,0,+124,80,248,151,243,208,106,49,182,16,244,170,5,195,22,84,203,180,87,48,113,37,202,238,212,209,241,98,100,52,143,133,+162,225,29,208,164,146,175,26,177,252,7,72,196,74,140,132,247,35,77,200,54,129,118,152,52,100,29,0,249,11,135,118,+18,75,78,77,65,224,206,175,85,130,61,81,208,140,96,46,92,232,93,165,160,26,202,204,49,164,213,219,68,224,89,212,+14,32,147,38,41,190,82,48,246,11,207,73,64,104,35,50,40,138,99,219,156,41,140,47,161,136,78,212,1,0,137,133,+191,83,84,144,160,177,167,238,54,179,169,247,36,134,70,55,117,217,151,156,148,214,188,12,214,35,248,83,212,245,241,190,+137,89,109,201,169,226,172,121,168,252,252,14,122,208,245,218,110,251,171,199,209,86,82,109,25,54,167,44,217,81,154,111,+234,200,16,25,173,214,142,185,42,26,160,93,57,134,108,130,102,115,178,191,91,54,228,197,106,156,219,97,114,119,212,130,+231,156,141,198,32,199,118,145,166,173,108,242,223,18,254,252,252,237,14,16,176,49,87,85,38,152,217,158,187,82,192,6,+236,84,80,200,31,137,98,85,217,161,172,156,98,18,169,39,182,41,144,32,229,69,255,211,62,151,161,250,95,244,45,30,+157,16,123,110,64,184,61,220,170,74,40,137,22,222,242,113,237,18,206,40,130,45,228,103,99,184,108,164,160,150,130,218,+164,167,8,198,121,194,223,230,12,72,130,242,53,48,119,188,142,225,129,191,188,19,142,226,225,43,103,230,9,211,79,112,+36,255,251,134,210,119,5,251,107,42,221,208,213,114,103,33,254,182,216,103,38,158,199,72,11,83,180,67,100,185,52,203,+179,9,211,81,86,35,4,141,160,47,193,72,50,69,70,252,96,236,22,61,33,19,241,49,145,209,255,125,171,188,235,84,+115,233,228,211,220,241,126,156,233,25,241,134,209,197,168,78,21,127,76,252,12,165,80,89,205,164,25,104,46,1,35,182,+223,90,9,58,115,21,60,159,72,4,56,215,30,180,9,61,81,85,133,163,220,156,227,80,216,70,206,152,50,236,225,157,+80,132,228,175,11,229,74,180,30,199,41,143,31,235,251,11,152,201,233,106,192,59,24,77,39,196,50,109,146,90,67,164,+208,245,16,6,7,210,172,249,138,186,6,194,176,27,178,194,147,167,162,168,183,9,4,142,125,24,88,249,17,72,202,182,+32,22,160,156,213,7,17,78,82,13,37,131,125,157,27,17,134,223,17,187,15,89,95,102,54,188,56,251,85,108,56,41,+215,30,172,1,58,93,229,201,61,112,211,150,208,224,23,197,183,200,77,45,113,223,6,43,234,46,90,206,114,140,201,120,+252,69,27,171,87,7,148,29,26,135,95,40,167,149,27,164,86,47,31,174,126,97,50,7,119,166,215,250,157,146,198,210,+22,61,254,61,70,106,75,53,38,38,116,52,41,13,184,254,11,74,177,62,205,144,30,177,122,225,64,124,13,166,249,28,+104,21,185,75,157,92,163,142,233,66,226,200,145,182,220,104,127,250,70,211,62,107,114,205,58,4,124,61,225,221,134,187,+161,133,23,10,148,137,140,178,241,14,228,105,255,23,146,2,147,152,57,94,129,251,90,229,9,206,150,13,157,12,13,252,+89,204,72,51,37,204,38,6,138,207,62,223,198,1,253,135,248,230,196,238,232,95,147,72,81,202,152,223,108,24,192,63,+100,217,26,205,61,177,54,181,12,189,140,25,214,188,45,91,15,61,165,68,6,176,241,73,6,168,42,68,86,157,34,163,+71,130,60,120,2,17,76,216,74,223,40,93,31,28,50,191,30,223,158,210,183,250,186,223,51,229,105,171,162,201,143,109,+254,170,180,5,99,81,27,236,45,198,248,20,111,229,108,109,3,56,66,76,42,76,243,163,147,135,151,159,235,126,38,161,+125,29,232,131,45,123,161,41,181,86,233,14,80,196,138,172,241,49,143,205,45,84,215,99,193,113,233,203,148,59,138,92,+30,191,80,13,11,134,87,158,62,197,61,253,38,197,4,70,141,31,8,163,163,178,19,8,231,15,77,169,91,45,55,49,+49,76,100,104,221,246,75,233,78,191,31,93,62,197,100,173,241,9,241,175,125,21,78,243,120,157,15,178,163,178,190,45,+198,35,50,2,216,39,31,252,77,226,224,181,90,253,200,201,139,43,186,236,226,235,241,230,95,241,78,157,74,105,183,68,+178,211,51,229,97,139,92,40,88,106,134,234,73,95,116,244,154,229,179,205,43,23,112,106,219,53,126,119,210,75,83,8,+116,135,60,93,152,197,38,220,32,239,222,143,69,141,124,87,238,128,60,11,86,155,18,12,44,27,167,211,41,4,38,182,+57,6,180,82,216,27,127,45,235,126,21,205,147,102,73,33,104,0,133,60,28,160,164,103,192,70,26,211,113,210,228,121,+226,73,35,255,8,204,52,157,21,49,32,44,32,174,51,56,41,251,155,9,15,123,254,170,97,77,43,33,80,133,32,3,+45,41,216,169,38,177,71,6,142,95,83,160,48,116,104,152,34,88,22,161,42,25,27,233,25,78,55,177,52,21,90,154,+181,28,9,13,105,193,190,59,10,95,189,53,165,36,136,215,2,218,145,111,218,221,216,112,141,215,205,32,112,59,63,186,+49,98,18,185,140,55,17,124,144,72,99,211,56,8,242,218,29,49,26,118,22,205,156,121,150,64,25,153,81,14,124,66,+78,204,170,136,245,75,66,236,14,226,22,47,206,51,63,36,254,225,68,203,145,47,205,73,231,22,145,191,10,11,65,148,+152,12,250,201,182,159,45,110,232,84,192,159,179,203,217,92,51,29,139,226,76,30,125,255,255,153,221,93,111,226,95,249,+132,32,36,196,220,94,199,230,70,51,210,13,184,224,77,111,160,43,72,80,141,204,201,168,24,71,192,220,104,129,239,184,+240,179,222,226,103,196,55,197,97,248,97,178,83,199,52,206,95,63,21,235,184,88,4,28,13,251,3,59,195,120,195,110,+118,251,198,169,105,244,230,190,57,222,250,216,220,97,169,30,244,141,28,148,135,149,176,154,232,147,31,107,141,67,176,13,+238,106,233,193,45,177,165,18,197,30,223,79,110,254,42,77,150,179,237,198,110,195,215,122,85,104,104,220,241,250,193,164,+6,122,247,85,14,25,86,39,20,167,121,255,193,132,96,129,12,66,27,156,234,239,92,248,251,11,150,32,96,209,231,69,+10,15,35,51,192,60,159,12,123,152,70,135,182,200,51,70,154,187,100,80,76,61,232,127,93,204,20,79,62,228,180,225,+212,65,255,38,167,10,91,208,197,116,72,2,90,155,251,79,254,91,35,9,96,213,24,36,113,189,249,66,200,155,14,251,+252,225,253,1,54,243,57,56,11,60,164,158,160,247,130,198,177,37,171,25,222,149,2,75,38,140,133,125,47,96,193,123,+191,16,215,74,87,219,143,199,131,190,97,157,34,103,117,94,161,56,87,191,87,26,30,44,141,115,12,217,237,218,132,147,+97,40,178,211,18,108,131,93,41,54,89,14,218,209,109,185,139,207,201,98,137,146,176,105,189,95,4,22,3,187,35,39,+221,151,155,137,6,22,118,67,144,163,215,14,126,89,119,165,115,231,117,186,229,66,171,246,52,238,111,36,56,184,144,253,+6,89,185,216,95,72,151,126,107,64,165,6,49,71,30,251,191,125,7,204,70,246,157,25,67,213,252,19,114,75,2,152,+141,226,192,93,141,187,254,39,72,146,224,252,158,18,150,111,168,195,81,184,98,0,245,201,173,180,29,93,196,198,1,73,+37,128,30,124,132,130,162,132,169,90,11,46,30,42,143,215,239,72,110,41,240,131,171,43,82,131,7,152,61,58,145,18,+41,112,40,166,16,77,28,2,110,226,222,176,120,99,7,86,80,9,216,85,220,84,184,137,14,147,134,133,227,160,162,138,+212,94,238,22,89,135,29,124,170,67,38,7,241,194,255,251,211,24,123,131,200,176,63,180,252,107,28,73,48,128,60,44,+216,166,178,69,162,144,53,219,252,15,107,55,159,79,131,26,5,113,29,116,180,211,209,123,222,219,170,97,126,194,147,41,+82,36,27,20,36,110,18,46,218,140,162,142,82,171,66,74,17,232,45,31,56,219,192,134,46,176,90,121,33,201,242,134,+246,121,127,129,53,101,16,98,146,162,64,90,125,43,69,251,222,180,75,58,135,60,90,155,165,16,184,73,184,242,23,34,+183,5,116,81,56,185,208,16,215,158,153,207,211,107,156,93,37,99,138,204,55,53,97,44,57,212,197,84,166,236,22,112,+181,167,60,196,123,106,201,187,135,78,251,149,146,245,30,116,83,130,156,234,249,32,96,183,159,153,34,47,213,14,229,26,+71,167,229,34,88,126,242,176,153,66,62,151,148,85,252,106,23,190,36,146,169,175,105,124,114,235,20,104,68,180,153,126,+164,219,34,189,38,156,163,72,115,56,56,126,194,92,186,242,23,171,123,115,244,58,158,14,208,229,146,16,76,125,87,201,+8,8,206,20,3,238,38,113,82,209,45,92,73,177,67,37,198,206,225,229,88,81,108,205,224,199,155,95,88,214,141,94,+16,165,11,212,14,226,111,72,199,253,35,205,250,109,102,185,62,179,174,45,155,150,23,35,74,165,129,116,64,168,188,113,+8,28,67,217,22,101,150,145,27,213,141,249,220,95,167,70,78,58,127,80,184,31,105,51,255,182,56,142,56,185,14,188,+181,131,55,148,221,17,54,28,59,42,212,160,108,86,13,144,124,211,224,32,210,93,179,221,240,130,125,65,123,180,254,246,+202,214,71,94,70,59,55,21,69,78,203,127,80,163,182,10,189,180,90,120,162,67,94,217,158,186,89,35,247,91,225,141,+217,93,243,69,108,40,181,134,2,31,210,188,100,3,9,79,27,134,205,105,179,202,43,36,241,158,5,214,15,43,121,198,+165,249,108,189,104,1,226,191,74,229,205,207,233,24,211,183,109,207,109,114,106,63,104,10,53,242,169,107,178,33,140,168,+59,115,149,219,76,94,211,28,127,169,107,13,99,178,20,253,87,148,171,20,167,30,45,6,43,193,203,1,46,202,99,27,+43,62,88,149,218,245,147,105,121,191,143,97,70,59,107,221,177,27,14,154,170,160,166,97,122,68,47,64,74,112,7,72,+161,157,96,245,62,140,66,4,67,41,174,158,68,106,226,151,176,18,146,71,159,255,214,169,159,73,39,154,239,191,55,52,+14,195,241,61,181,154,202,80,7,112,27,38,142,225,65,182,23,194,76,20,56,27,120,60,171,74,62,81,85,59,45,127,+70,135,234,142,36,7,238,129,240,91,39,232,75,128,9,143,213,174,214,241,182,225,150,178,187,72,80,222,149,37,8,2,+76,85,20,102,190,71,7,44,36,97,66,163,102,244,109,144,56,160,74,199,81,181,248,9,75,180,139,251,225,169,113,23,+174,186,220,45,78,199,7,239,196,153,92,10,16,216,107,139,199,4,231,63,88,213,212,143,36,237,251,104,110,135,184,222,+112,46,141,119,207,192,44,47,163,40,188,246,76,67,242,18,13,139,172,203,141,164,213,170,224,137,28,26,59,52,171,83,+148,247,179,92,102,86,45,76,207,209,26,184,127,85,9,1,123,20,49,105,115,248,173,42,77,1,141,182,132,174,60,44,+45,242,136,202,132,157,87,89,36,181,160,18,142,57,46,106,231,194,99,224,25,91,219,113,182,161,121,250,38,16,189,250,+144,46,43,125,100,149,216,112,142,59,206,245,32,53,121,249,44,119,248,159,99,1,198,232,32,115,20,187,136,28,175,83,+200,166,244,189,109,230,187,221,232,27,120,178,134,239,194,71,190,138,247,206,193,204,134,36,59,185,118,127,49,199,171,76,+174,178,91,82,16,198,107,28,228,22,31,1,247,1,194,226,11,5,144,173,206,172,108,38,143,164,4,133,29,45,28,253,+180,70,189,120,130,253,139,222,107,80,43,39,219,180,204,240,98,77,109,126,175,206,163,253,95,78,16,254,22,56,247,181,+210,220,210,14,246,54,69,238,194,115,250,81,204,52,246,229,169,171,237,142,140,141,88,114,173,44,253,80,12,82,118,127,+207,142,146,43,205,195,142,206,33,34,203,179,46,239,195,130,229,232,38,190,108,70,175,247,99,145,110,216,251,53,182,251,+170,73,81,131,60,27,214,188,148,254,180,193,147,190,122,165,248,223,156,86,208,245,115,231,184,119,92,36,217,125,7,101,+166,145,7,34,182,12,238,155,210,162,98,45,233,48,143,95,127,110,93,86,113,55,133,239,242,46,50,160,69,250,187,197,+59,116,163,205,133,76,139,242,25,65,41,251,97,70,237,201,133,149,23,6,215,17,105,41,192,203,87,254,198,11,27,97,+230,243,20,52,144,194,118,243,31,244,178,237,5,218,16,252,90,137,209,124,81,93,8,100,135,103,250,161,117,146,89,130,+1,109,112,196,20,171,174,153,60,103,68,222,138,128,79,39,54,135,131,120,145,216,221,171,44,44,239,167,55,201,224,75,+5,77,140,72,87,247,65,195,83,70,233,14,177,227,12,154,187,66,0,47,161,96,110,51,150,215,251,178,103,7,72,177,+137,155,147,234,50,81,50,18,84,219,67,245,155,76,11,91,150,15,0,229,214,60,253,72,236,205,193,12,62,205,159,215,+88,22,124,114,178,178,12,70,118,130,223,231,77,67,197,196,154,101,125,185,65,204,121,17,60,41,244,89,95,97,53,250,+148,225,239,120,64,162,83,251,208,80,25,160,22,188,147,62,123,221,139,81,145,28,149,231,182,210,96,140,104,142,44,144,+200,43,198,223,173,158,79,19,2,165,136,98,223,150,188,241,7,180,23,82,198,40,146,173,153,18,3,159,77,71,252,218,+218,9,28,237,138,155,240,77,101,72,16,225,59,29,188,201,147,7,133,74,106,105,86,70,40,52,40,182,220,242,26,140,+185,230,10,63,238,67,115,68,238,113,221,27,120,175,187,30,218,196,18,35,132,21,9,175,17,164,115,79,129,158,84,3,+108,107,128,73,86,192,155,135,125,21,105,143,169,43,3,63,129,187,148,111,159,69,107,147,93,201,252,122,159,149,244,160,+68,126,184,83,255,251,244,23,56,43,103,224,136,150,154,215,40,19,215,89,134,98,14,220,29,152,255,9,48,113,198,187,+229,164,159,131,124,26,61,236,130,44,11,183,85,39,20,103,242,168,76,181,181,14,32,126,98,155,92,8,200,69,100,143,+68,199,226,71,184,123,214,104,130,201,111,94,252,229,209,247,87,132,136,251,123,107,38,133,106,60,85,20,156,42,90,142,+76,230,53,122,136,161,251,235,44,84,129,232,80,30,54,142,12,163,188,61,18,54,27,74,22,99,210,200,87,86,219,231,+86,192,235,16,54,179,170,136,106,48,35,47,91,110,233,101,121,82,5,117,25,140,64,151,253,236,253,236,182,91,102,77,+38,54,81,40,23,240,60,41,253,72,136,159,203,74,188,201,121,89,183,218,119,45,88,78,236,178,2,176,227,89,247,188,+253,110,1,207,134,92,46,2,7,20,74,197,113,143,162,246,75,150,138,234,17,62,34,132,203,227,26,14,128,101,147,135,+228,140,96,178,180,69,233,225,2,151,57,124,197,12,40,231,109,163,174,118,246,76,206,72,168,6,70,65,194,150,105,227,+214,42,51,7,177,59,223,177,241,160,237,18,229,101,76,246,206,69,205,161,81,221,3,204,215,47,59,57,99,48,64,216,+144,213,141,194,138,141,50,79,1,174,8,58,148,90,149,241,128,3,55,254,104,243,88,233,97,55,99,194,69,86,117,246,+242,89,96,190,185,66,19,79,41,102,87,211,75,175,105,254,104,81,204,46,115,141,124,39,235,19,224,54,24,244,194,161,+0,199,1,134,206,144,236,55,145,102,74,44,208,211,93,187,190,79,164,13,218,94,227,73,105,64,137,209,231,100,223,104,+216,141,165,139,40,139,81,76,176,54,212,91,91,57,129,114,101,52,92,128,232,219,10,209,109,109,173,213,72,64,9,64,+245,216,46,202,179,90,92,132,106,246,83,255,98,159,32,201,27,19,163,125,227,122,137,126,47,25,113,244,222,216,159,4,+170,237,215,44,75,244,150,210,238,205,210,189,237,111,142,110,30,166,9,246,180,32,127,133,82,157,187,111,127,116,239,14,+241,193,230,190,46,227,77,181,111,6,61,236,137,244,12,122,186,48,192,97,198,147,75,223,43,225,188,251,125,55,66,188,+77,1,17,42,94,59,187,69,29,96,68,71,141,175,172,187,100,203,35,128,236,150,142,208,10,52,3,247,109,22,70,244,+73,198,18,137,61,18,250,46,104,149,37,33,17,240,77,133,23,169,108,152,81,197,88,111,168,190,150,3,91,67,136,139,+214,255,120,236,149,146,133,161,103,111,244,223,70,123,219,248,97,78,158,10,252,19,227,2,125,60,42,149,160,151,238,223,+120,224,142,152,153,197,212,78,121,149,205,176,0,21,23,173,106,8,11,110,237,211,91,230,131,252,196,20,60,61,184,171,+207,171,185,231,185,244,254,20,126,178,158,184,113,245,224,111,94,3,208,209,74,248,66,175,223,177,175,235,83,190,215,243,+224,242,230,101,156,133,74,253,4,221,1,5,65,63,104,50,137,186,222,78,219,139,74,147,109,231,191,25,46,76,115,193,+18,17,103,237,20,237,137,105,205,28,202,153,200,122,232,15,144,228,102,200,19,159,101,195,114,203,96,97,247,164,206,97,+242,8,123,197,194,17,181,118,56,135,240,66,200,2,205,33,197,94,63,66,144,188,109,162,87,47,201,243,3,219,84,215,+81,179,91,28,168,168,161,205,37,124,74,187,158,10,203,14,26,50,255,184,127,82,199,55,180,156,60,24,59,100,252,212,+225,211,159,104,13,159,20,222,198,175,16,169,71,206,13,75,118,239,253,123,2,101,13,134,62,208,25,56,203,35,192,164,+150,19,126,22,152,197,220,77,67,146,131,226,48,19,22,113,139,139,28,18,124,217,198,55,121,240,139,178,17,99,16,99,+58,88,17,0,90,97,56,6,117,237,233,183,33,104,239,162,57,214,193,16,6,153,108,134,105,0,56,47,245,160,39,239,+220,110,151,123,79,176,255,207,211,137,79,13,222,29,16,210,236,93,68,223,177,247,194,237,239,22,178,51,237,234,227,64,+175,86,214,36,228,221,44,114,27,141,240,140,75,19,220,182,213,95,155,142,241,170,38,12,213,231,1,88,124,63,60,242,+193,181,37,143,24,62,153,114,90,23,82,14,45,91,152,90,119,248,130,122,28,236,0,245,244,127,176,123,175,204,111,136,+88,254,124,228,188,110,247,127,44,205,45,94,34,107,110,224,106,238,70,91,250,76,188,125,80,88,27,196,214,243,13,69,+35,182,69,176,150,160,175,12,150,155,51,125,169,18,148,3,40,140,44,135,70,236,116,26,193,88,14,206,220,89,159,176,+243,241,89,120,86,224,176,223,228,49,139,24,251,26,248,37,99,183,204,112,108,26,52,108,84,196,198,195,131,210,61,183,+33,24,128,80,149,30,0,126,166,201,17,54,42,244,170,40,227,232,231,103,98,39,249,245,119,128,77,79,254,15,185,200,+241,214,220,227,246,86,36,113,14,135,213,70,207,89,15,211,228,152,179,207,242,106,202,31,171,138,143,206,27,134,185,100,+188,27,79,41,106,236,10,12,219,160,252,152,232,5,150,25,11,50,127,179,135,243,44,78,138,134,144,159,69,161,83,90,+228,75,149,84,107,93,193,62,0,255,235,243,172,209,92,247,207,55,181,243,121,100,40,177,80,146,236,214,209,91,195,190,+55,45,21,102,191,50,88,100,127,238,255,252,25,47,74,125,123,197,26,245,203,70,149,171,161,108,156,248,104,16,247,110,+31,2,64,163,188,27,46,142,149,98,190,190,145,9,79,227,22,1,67,81,100,191,129,146,245,7,55,201,113,165,39,237,+16,172,228,99,114,215,207,205,239,182,173,230,143,166,89,35,186,177,193,253,22,25,230,165,196,99,126,245,102,185,201,130,+76,172,218,219,250,175,242,36,220,200,177,56,157,129,160,106,23,215,212,19,117,97,249,47,101,212,206,57,207,244,45,199,+14,17,227,210,55,136,109,182,182,218,185,75,164,230,81,148,28,81,198,215,92,225,90,173,114,23,3,132,103,79,56,247,+217,55,201,76,236,180,211,4,36,218,18,73,83,3,28,192,237,1,64,248,184,59,151,50,254,55,170,9,53,158,160,28,+62,42,190,72,48,157,126,177,92,117,236,71,98,114,106,150,7,157,168,29,164,162,45,198,25,5,74,156,80,222,194,117,+6,1,155,128,3,92,249,97,195,53,132,38,162,238,167,207,12,219,234,249,94,62,40,102,183,254,60,10,52,222,53,184,+20,123,161,188,155,82,112,60,207,32,109,138,105,125,7,197,104,195,50,138,183,250,226,5,81,148,56,128,251,178,232,41,+115,78,225,42,71,155,240,118,118,217,171,166,206,227,1,226,203,170,159,128,201,34,1,122,106,230,157,115,255,105,85,118,+170,190,113,192,47,173,84,114,125,73,18,80,12,141,197,156,118,231,10,68,119,21,9,70,1,216,38,144,37,82,161,69,+53,238,59,125,63,123,250,0,157,22,71,130,23,251,122,160,158,181,239,41,46,227,227,64,200,102,112,106,194,133,8,163,+109,218,86,84,255,176,136,200,195,205,229,23,8,216,110,131,159,222,198,116,119,25,2,174,241,40,208,180,252,131,1,105,+116,181,7,93,88,75,17,90,144,182,73,33,54,220,100,53,150,132,156,209,83,45,31,245,109,209,124,75,68,47,253,16,+208,230,137,239,253,197,75,76,164,17,175,36,46,44,208,85,62,142,53,213,36,105,219,139,51,235,247,245,93,40,136,92,+202,97,111,111,32,127,147,88,248,177,69,120,127,179,128,44,209,30,145,63,246,69,155,175,166,122,133,242,28,239,169,202,+161,11,220,109,211,29,101,90,129,163,225,182,177,64,164,243,55,210,156,177,174,158,203,33,39,139,17,101,106,116,73,170,+80,75,51,138,68,123,120,202,152,163,189,232,191,251,112,196,49,17,214,68,72,182,29,255,252,44,37,56,255,196,17,226,+154,215,0,23,233,43,170,239,196,181,120,18,16,153,178,10,240,192,70,106,191,62,107,210,36,48,189,243,41,210,151,2,+180,185,46,81,11,158,207,181,42,225,88,72,225,97,52,232,79,36,52,158,151,125,77,147,80,131,104,136,99,168,255,248,+247,127,141,124,9,36,87,121,19,126,87,63,102,225,99,112,146,138,131,170,126,33,186,186,86,61,179,217,102,13,20,64,+208,16,133,193,73,148,181,121,224,96,161,215,46,196,188,62,245,200,39,139,214,185,71,242,170,224,87,184,248,161,188,168,+189,3,198,141,232,203,234,175,64,202,94,247,108,12,112,125,82,70,233,220,122,222,191,40,57,78,255,202,241,13,46,255,+2,110,250,38,242,188,150,23,25,130,153,36,81,47,216,239,67,74,218,23,5,237,147,14,81,140,34,252,248,17,101,76,+135,63,230,123,95,39,238,16,161,208,80,240,60,38,48,15,221,116,185,37,111,58,40,78,87,0,54,85,136,158,233,219,+122,152,102,125,123,36,189,211,100,195,89,163,173,98,247,9,20,198,213,37,195,77,229,87,90,115,17,129,248,200,119,157,+196,77,38,29,161,27,161,24,43,59,86,181,220,66,248,166,154,187,67,162,21,127,212,30,117,16,217,206,244,87,224,158,+173,11,181,35,213,197,199,235,125,191,33,68,225,152,189,36,1,33,130,145,228,91,166,12,6,181,122,23,137,2,116,12,+77,6,99,247,104,42,204,206,150,56,250,92,220,40,139,133,252,100,152,175,2,241,34,162,54,238,153,175,128,22,253,124,+200,229,33,49,167,109,193,126,69,202,167,156,75,7,153,199,110,193,6,120,186,172,252,203,70,35,96,170,154,157,7,27,+40,104,129,226,48,81,34,168,120,161,237,120,53,198,157,253,177,248,53,239,121,13,235,78,128,223,65,12,236,101,107,215,+88,240,12,23,55,5,233,76,70,93,177,3,76,75,197,116,108,39,14,235,150,203,192,64,100,245,112,140,64,186,197,31,+43,166,164,72,133,21,166,91,68,25,61,154,159,48,32,24,100,239,238,216,10,208,118,243,188,70,254,208,166,173,122,143,+54,28,189,184,214,19,154,9,217,103,217,225,108,58,150,27,20,222,202,249,105,151,40,105,237,156,60,22,90,224,52,149,+162,181,176,71,219,176,147,252,185,90,74,222,95,148,55,92,178,15,204,59,199,169,206,179,100,244,195,241,189,128,65,153,+109,119,21,211,222,206,69,255,123,89,38,188,124,230,107,95,81,145,90,74,119,131,152,228,1,38,25,22,103,59,20,33,+240,172,181,69,214,239,45,158,140,2,165,121,100,77,25,92,17,48,191,157,82,123,79,243,124,35,27,117,72,76,131,203,+153,216,207,156,236,64,204,253,165,97,174,16,37,65,28,44,200,181,185,45,133,128,252,96,143,69,118,237,78,0,162,171,+186,66,49,207,55,83,231,3,192,89,124,122,197,114,233,69,69,243,97,110,233,97,161,68,142,43,168,137,174,79,182,244,+152,74,6,230,186,152,21,41,216,203,55,189,151,53,4,158,96,123,94,39,41,130,199,148,227,216,160,119,245,169,56,98,+186,37,63,26,251,216,8,35,247,223,70,5,198,218,116,139,163,240,251,148,119,152,200,142,42,244,153,251,182,40,34,79,+250,19,114,183,130,131,159,245,151,61,146,92,3,119,214,107,68,42,203,71,219,61,75,53,100,84,113,116,242,17,174,112,+87,41,142,98,148,184,116,40,245,169,82,23,177,209,76,159,71,158,194,182,140,6,196,228,111,60,240,71,102,81,104,119,+236,74,115,71,96,20,241,116,12,204,88,111,215,241,70,170,232,81,56,163,24,13,243,163,2,144,14,205,78,26,233,81,+0,214,3,57,134,172,252,204,184,255,70,23,143,138,200,2,82,84,224,190,51,80,42,121,252,89,196,225,83,253,16,52,+89,192,116,19,111,213,244,101,10,66,250,142,7,199,164,185,90,238,153,209,141,97,218,135,10,221,171,55,83,227,82,63,+69,210,19,223,45,6,87,215,226,65,153,90,242,140,30,35,148,187,219,64,209,105,237,204,107,90,230,164,51,81,98,4,+204,175,238,246,157,22,138,39,30,54,7,72,39,107,65,233,215,34,130,44,83,145,21,186,218,235,99,63,196,34,244,132,+35,97,223,25,225,110,181,134,159,73,5,158,98,63,184,215,220,46,75,248,14,140,211,7,202,13,142,234,103,89,216,50,+79,37,248,2,73,165,82,252,105,232,113,31,91,14,34,210,113,25,197,2,30,7,40,60,100,174,20,220,249,151,24,186,+17,14,156,216,50,173,95,124,167,231,37,145,212,70,183,215,158,210,250,196,244,162,11,206,113,216,178,75,228,225,1,53,+31,117,90,55,138,79,196,46,54,210,167,184,176,228,218,108,42,193,43,200,186,159,239,183,50,220,124,180,205,202,7,58,+80,51,30,164,191,172,138,210,179,189,6,107,72,97,211,169,124,26,49,68,100,26,249,98,247,5,34,19,45,218,8,199,+68,22,245,44,195,105,80,153,227,46,242,200,148,13,177,98,70,178,164,246,241,68,165,193,114,70,211,125,147,232,219,143,+118,242,33,120,136,239,143,84,112,182,131,10,78,185,12,195,95,240,12,204,24,40,250,84,5,165,205,140,20,250,91,111,+189,61,147,75,85,121,146,236,211,54,11,11,235,90,102,116,166,107,53,104,47,118,110,187,11,19,175,80,22,111,171,129,+201,35,188,138,87,110,32,100,212,33,169,108,170,155,34,126,152,151,224,37,130,227,250,150,151,143,88,10,189,8,177,126,+180,253,42,124,91,219,46,79,144,121,60,255,32,36,78,245,114,164,79,34,202,137,129,214,199,226,64,37,48,188,201,27,+225,97,27,188,135,104,43,200,100,181,235,201,88,212,48,73,67,40,79,109,173,231,212,236,63,1,203,91,45,241,109,235,+50,127,160,228,3,247,104,113,102,147,227,138,37,162,79,126,44,181,112,41,142,145,97,144,212,179,170,251,163,226,137,7,+165,142,213,237,247,156,207,164,127,192,247,238,238,188,19,148,106,252,201,96,112,131,45,139,59,129,99,224,93,169,32,59,+185,67,117,10,108,75,184,102,37,127,116,89,3,26,229,202,165,45,195,219,162,37,161,149,118,103,54,30,161,34,237,42,+151,28,184,82,101,143,192,65,161,96,132,32,31,173,209,6,98,129,167,19,106,10,189,57,164,91,181,53,250,195,79,109,+123,117,144,128,28,146,30,38,151,68,165,83,79,239,248,8,255,252,44,45,186,33,168,171,122,13,15,231,67,10,124,150,+144,119,199,200,123,85,235,23,47,224,84,118,214,227,250,228,105,4,174,88,238,163,101,87,29,165,175,47,176,159,13,227,+176,107,80,255,28,110,63,105,38,107,133,45,251,155,138,45,50,83,202,181,56,210,190,38,189,238,184,224,158,210,38,210,+141,109,216,170,20,53,197,63,56,27,243,63,243,224,193,70,79,26,138,224,107,53,141,160,136,23,190,52,184,165,38,33,+236,88,175,8,215,96,13,128,93,210,22,116,200,25,156,238,247,245,117,106,119,26,233,50,211,55,190,167,23,92,31,199,+221,168,40,132,187,198,20,152,134,73,22,82,95,73,227,56,103,4,57,115,61,252,167,28,57,104,136,40,8,205,52,148,+105,222,162,202,38,72,227,37,26,137,67,91,61,192,113,231,161,78,140,140,17,130,176,182,37,183,62,102,160,16,135,62,+244,86,187,21,168,246,118,22,158,140,190,60,45,194,127,19,43,226,247,196,42,172,121,87,224,135,159,204,73,108,98,210,+235,175,135,226,71,149,6,243,176,232,46,219,215,32,34,160,106,74,6,131,235,147,16,204,245,39,242,88,220,76,10,142,+133,84,111,201,221,161,44,138,72,174,87,246,143,21,255,200,65,176,101,171,70,158,157,191,140,231,80,49,220,152,75,150,+102,55,93,247,80,240,178,193,169,86,224,133,33,61,22,18,69,226,82,76,162,136,225,131,225,208,134,40,107,241,118,209,+115,1,244,254,222,4,79,227,143,224,112,91,191,94,189,200,73,67,27,101,255,118,172,58,55,166,200,38,4,237,132,69,+57,198,255,176,51,91,210,21,92,145,231,52,141,79,255,11,3,104,23,213,190,131,41,1,184,92,193,214,238,232,186,246,+124,177,174,119,174,153,102,215,13,72,100,109,87,190,165,251,11,209,35,160,214,26,5,156,233,63,217,170,4,163,187,18,+142,159,89,205,246,118,31,107,181,64,55,219,68,83,170,49,215,251,211,63,158,48,16,132,52,2,64,248,42,67,104,74,+78,219,4,154,24,203,138,65,36,120,113,117,148,225,213,3,211,73,158,35,64,6,39,5,192,49,95,23,121,16,175,23,+28,214,244,123,104,97,99,75,56,169,92,143,108,25,33,7,82,178,136,233,149,107,72,180,210,20,52,198,105,234,156,228,+227,46,110,200,167,63,213,19,81,189,216,99,157,113,192,123,67,241,219,204,221,35,226,195,82,124,235,61,56,189,179,240,+60,71,84,255,28,1,3,73,120,44,206,42,0,67,238,239,215,86,138,150,27,77,57,77,199,52,249,223,224,228,3,204,+136,229,68,180,230,250,158,69,130,132,208,69,203,25,253,188,228,100,215,128,48,49,176,74,40,206,52,48,57,111,26,161,+206,197,194,201,151,118,82,33,165,64,244,19,85,237,144,117,251,200,98,253,55,43,195,53,111,120,22,139,29,124,94,2,+147,119,70,193,166,6,180,223,42,16,8,58,217,224,113,150,77,88,199,139,34,157,74,160,49,238,164,55,8,78,18,245,+35,213,47,222,167,44,225,42,22,229,222,186,145,163,36,232,112,128,243,88,43,20,90,9,28,104,27,204,86,193,92,67,+230,199,195,215,26,120,40,217,95,225,187,92,27,176,24,140,127,113,122,191,131,251,179,182,249,146,14,13,130,20,140,237,+109,213,179,88,129,41,214,209,86,133,245,13,202,157,39,217,75,162,30,218,223,255,200,178,78,56,239,54,126,71,73,77,+57,76,94,55,159,97,25,126,26,228,20,87,135,132,78,161,4,133,136,157,233,110,122,183,143,97,167,107,226,204,132,47,+15,192,30,61,2,117,19,109,75,117,71,214,213,21,26,170,161,180,49,112,44,83,122,38,82,215,94,185,46,114,7,136,+110,47,52,199,214,85,2,67,60,20,48,49,93,255,210,12,198,66,230,65,41,73,109,127,134,68,216,184,26,117,56,2,+161,103,121,101,209,132,223,205,156,220,234,27,157,48,67,89,134,163,224,180,34,227,89,168,176,7,66,25,139,0,223,226,+153,138,111,96,70,49,6,223,232,222,12,133,228,47,103,71,66,162,123,49,247,134,155,111,3,216,237,37,226,59,232,122,+100,65,91,113,29,131,32,36,123,146,163,76,26,254,80,168,252,143,176,119,52,108,55,13,32,220,109,176,192,192,195,49,+119,212,114,218,242,139,47,126,29,50,232,34,121,9,128,91,8,128,30,98,41,86,90,191,193,107,3,187,136,49,205,11,+60,113,203,139,76,112,160,60,198,160,100,234,121,150,179,205,35,102,205,56,40,227,173,13,77,19,121,69,179,91,236,37,+90,198,139,174,141,54,198,111,167,219,243,101,77,167,7,212,122,116,6,146,123,207,107,255,138,45,253,103,57,171,61,241,+124,144,82,6,86,133,189,253,128,23,110,168,199,50,232,16,133,33,146,87,131,207,22,70,213,195,41,87,162,9,212,81,+69,68,105,98,233,42,41,203,214,132,52,129,84,128,41,219,120,158,26,18,175,168,193,27,12,50,124,244,100,62,227,97,+64,37,15,79,59,93,214,243,82,224,205,246,0,27,175,116,109,133,216,224,129,97,24,86,131,111,229,57,120,170,75,99,+18,178,72,142,44,33,206,238,132,244,163,61,130,16,100,30,5,37,92,183,104,66,157,173,5,39,182,137,238,225,75,187,+54,2,216,135,247,8,76,235,36,36,241,249,111,96,2,214,229,164,189,170,38,207,84,45,136,117,40,157,242,2,34,142,+4,179,235,69,105,255,59,111,181,98,222,61,43,198,173,99,125,126,45,5,151,87,95,119,77,216,29,20,181,14,126,7,+205,211,178,210,92,7,189,198,134,197,81,150,130,213,194,62,220,47,141,185,54,198,13,82,176,74,255,72,47,241,10,108,+245,234,168,53,19,10,102,214,218,30,178,32,219,50,156,154,155,109,88,100,59,106,121,60,249,41,131,216,182,59,252,40,+101,192,121,40,133,245,107,43,174,88,49,21,23,206,138,223,101,103,204,87,152,170,33,212,19,187,244,157,88,160,80,138,+38,233,195,146,55,116,28,251,74,225,138,107,57,60,127,86,185,128,157,18,188,23,154,66,52,188,175,97,193,185,24,42,+56,4,133,240,132,253,61,242,130,205,141,190,191,146,240,116,29,131,211,66,159,194,27,246,220,181,120,14,48,60,72,233,+127,182,182,76,58,62,133,27,63,36,82,197,147,70,26,29,146,164,211,245,27,250,78,203,106,91,254,210,159,146,53,236,+4,95,36,191,53,104,177,4,9,25,53,60,22,105,135,46,36,242,230,129,115,177,235,244,54,253,88,57,191,24,57,176,+0,198,76,27,161,233,69,161,252,159,160,246,136,54,219,97,158,77,7,26,205,254,165,186,8,218,206,229,132,170,181,219,+74,1,161,20,195,144,161,254,43,76,162,157,189,71,254,10,194,27,76,194,8,1,194,59,114,2,11,237,119,92,245,159,+207,171,86,67,164,121,6,158,91,46,81,81,2,140,86,100,130,13,163,187,54,186,237,126,155,229,167,220,201,204,175,143,+147,70,169,97,0,159,107,30,204,187,254,140,106,73,137,36,130,196,86,250,255,251,172,70,136,159,101,74,49,156,77,109,+182,84,222,0,248,128,180,204,16,246,150,175,76,65,194,16,113,254,232,155,38,191,188,99,126,128,116,151,162,9,31,215,+190,226,55,153,12,124,190,145,250,227,45,185,146,104,119,153,131,81,63,48,242,189,2,106,228,236,120,167,34,114,0,177,+55,239,34,162,229,47,60,209,244,226,89,35,234,209,41,123,111,137,171,96,54,204,207,220,85,81,116,136,174,109,88,54,+233,152,5,158,81,119,68,73,69,19,87,52,105,138,148,224,72,241,75,251,158,41,156,242,54,20,163,92,121,164,26,89,+67,146,5,234,104,208,104,41,4,2,213,222,47,120,63,164,160,157,23,16,84,13,188,47,116,180,98,67,119,114,215,209,+79,58,250,106,129,11,45,120,67,126,13,143,51,128,66,56,225,126,36,175,186,118,223,134,58,212,109,83,102,113,165,75,+1,243,141,4,119,138,182,104,126,206,5,170,112,38,203,229,63,140,19,143,80,89,202,17,84,79,188,215,8,182,74,155,+180,34,17,243,142,226,87,150,239,10,83,45,7,182,232,27,8,201,254,94,14,156,151,82,155,31,142,137,176,99,99,181,+127,99,55,155,171,21,23,187,73,212,227,27,25,24,135,130,73,57,133,64,121,203,16,162,29,52,253,49,100,47,82,234,+219,209,158,80,113,211,161,145,168,167,189,121,56,227,109,179,17,26,121,237,198,100,1,109,175,51,214,226,30,201,35,158,+190,13,214,47,177,239,5,112,248,152,7,249,24,105,221,143,48,125,71,47,67,7,147,99,171,104,150,50,146,111,254,117,+145,38,108,92,32,105,44,127,198,110,174,0,16,71,154,59,202,110,142,200,84,66,97,71,84,214,54,121,77,14,68,92,+159,71,137,32,11,49,154,135,182,35,192,187,29,246,82,185,201,244,0,58,10,238,208,37,18,229,96,50,105,22,215,90,+100,212,16,35,193,214,214,225,143,227,71,224,190,133,145,99,53,7,224,242,47,232,75,135,25,214,157,186,244,88,90,89,+43,12,242,180,249,149,106,37,187,80,250,127,52,43,146,116,84,94,108,230,252,99,58,180,96,8,175,112,204,7,2,137,+37,67,40,233,111,59,143,85,128,123,77,33,134,49,179,63,155,166,68,243,122,144,136,106,232,79,7,156,10,182,159,93,+183,166,227,126,23,15,227,165,179,56,196,94,131,42,220,121,104,216,216,163,132,165,136,220,210,55,233,72,153,221,209,22,+241,152,49,187,57,213,177,169,202,90,103,250,248,205,145,119,151,82,21,229,247,242,12,5,215,71,61,13,20,241,95,191,+168,213,17,221,22,198,18,159,153,112,69,252,83,200,43,67,183,46,60,138,217,193,208,221,141,86,45,57,107,89,56,24,+231,6,95,106,133,142,137,25,96,165,233,81,178,209,219,245,206,77,198,245,137,152,75,224,254,206,250,249,121,41,72,76,+5,114,27,105,79,49,192,234,231,173,125,254,54,159,25,225,111,201,8,185,186,5,117,145,154,26,142,94,68,54,89,202,+131,224,244,73,21,154,102,101,37,45,243,161,58,188,247,99,147,26,21,76,183,107,177,35,212,124,250,72,63,252,147,144,+108,83,214,89,250,23,40,252,217,15,31,58,170,87,153,190,19,254,80,214,67,160,74,218,79,71,137,120,22,79,43,75,+240,194,186,186,225,186,100,31,237,139,175,122,64,143,100,61,227,226,98,127,214,10,145,187,22,121,243,30,69,95,177,172,+166,40,210,208,161,147,56,181,92,201,77,63,57,108,203,133,30,124,68,125,152,185,186,66,152,122,220,94,189,39,85,239,+77,24,195,184,125,75,134,92,200,47,248,249,15,12,203,242,59,240,200,241,95,85,183,107,65,54,110,207,171,109,99,50,+175,116,9,27,81,229,67,4,177,167,217,246,138,154,90,158,220,99,127,60,177,195,99,73,169,240,1,173,109,212,242,255,+37,206,142,134,115,230,233,144,0,205,46,185,124,150,41,219,246,88,54,60,24,203,182,194,43,70,8,96,189,85,102,126,+19,154,14,155,27,149,120,7,1,236,63,145,103,193,9,83,243,122,80,142,107,96,112,216,175,86,15,103,10,251,149,29,+150,141,42,96,186,198,47,156,185,221,253,185,109,102,103,0,133,75,21,9,143,105,86,217,154,120,232,121,64,102,253,176,+58,78,190,83,135,243,225,61,151,80,169,166,239,20,132,142,103,144,220,226,247,133,247,255,190,242,112,175,77,73,77,251,+51,166,4,227,10,191,55,6,174,118,92,44,0,58,241,39,122,21,118,202,140,251,18,17,213,120,159,115,68,5,198,57,+73,233,120,88,175,198,170,186,6,219,110,221,12,212,140,15,177,208,234,127,156,180,225,137,120,14,97,164,144,85,254,107,+38,40,253,159,166,127,10,60,146,119,164,108,151,49,81,5,88,135,14,117,106,208,244,208,113,112,24,153,43,6,176,67,+229,220,5,155,184,41,229,64,190,228,126,71,126,155,42,117,233,255,188,222,133,152,64,242,164,59,110,195,243,8,194,58,+17,253,60,215,123,117,177,77,235,158,154,3,48,171,36,137,188,215,157,174,165,142,156,24,78,205,190,161,43,87,149,127,+66,206,171,9,83,60,103,73,5,123,175,152,156,25,9,11,61,152,35,107,170,98,28,39,27,20,217,35,252,213,224,77,+92,47,183,72,236,10,50,223,41,156,1,215,245,39,213,27,151,219,214,36,53,76,95,89,221,40,114,142,14,55,166,218,+223,200,216,244,251,51,205,145,53,10,13,225,233,183,13,231,180,153,102,133,160,20,48,189,59,54,151,17,218,90,197,147,+13,125,245,178,127,175,225,42,253,235,48,60,110,134,178,190,186,46,166,200,187,187,129,150,251,9,63,70,133,214,28,148,+201,4,6,36,62,86,208,104,217,193,178,160,84,254,137,61,101,29,223,230,156,114,255,253,20,74,159,218,47,194,88,212,+108,246,229,197,54,218,250,201,99,135,112,180,32,131,10,133,25,95,246,181,147,251,3,30,198,140,228,216,157,220,253,72,+27,207,236,125,120,220,54,219,218,198,51,34,15,233,189,106,85,138,34,81,184,212,85,97,48,96,171,134,228,126,235,93,+165,153,204,176,241,190,41,82,154,32,180,104,198,249,16,192,224,126,239,175,235,125,132,232,147,64,170,105,138,182,188,78,+56,83,94,0,89,248,247,78,172,144,48,0,242,210,69,144,83,35,52,30,181,98,208,18,252,123,111,240,85,129,81,128,+123,198,247,216,37,20,211,157,168,63,159,117,162,253,213,102,9,9,42,87,106,35,182,176,162,196,153,82,237,32,143,132,+231,28,105,61,221,208,9,166,28,107,26,205,213,155,69,87,249,86,194,73,159,204,192,91,24,152,138,230,32,63,4,46,+198,159,127,66,90,109,106,187,236,203,142,229,255,213,214,112,63,131,27,33,8,20,120,236,109,26,155,148,249,56,142,174,+42,96,2,137,54,149,131,165,212,59,183,200,242,248,99,180,126,17,140,46,88,21,7,96,24,177,100,249,150,227,47,254,+1,193,116,59,192,236,133,196,143,244,117,154,177,224,124,227,95,218,244,177,186,140,137,19,175,148,237,147,248,66,45,222,+111,59,163,198,169,112,35,54,102,136,21,109,207,92,170,213,167,254,163,144,167,227,31,232,117,22,173,240,234,51,6,222,+11,153,232,106,250,222,128,177,51,221,29,108,42,191,162,106,128,222,30,127,186,178,159,250,135,114,60,253,79,219,140,219,+162,45,148,226,150,81,185,245,112,42,196,189,108,252,0,171,206,231,221,64,202,249,74,6,250,86,63,127,58,130,70,139,+3,19,214,99,7,72,152,176,127,15,13,253,103,88,239,34,112,142,219,126,86,21,179,27,242,122,225,152,222,94,171,200,+52,239,65,218,132,207,145,166,53,33,65,142,101,172,229,84,182,63,12,47,161,211,154,213,12,231,52,183,227,173,228,192,+254,55,161,70,207,77,31,18,99,175,44,167,210,195,86,19,249,6,113,148,217,12,246,110,105,134,216,208,196,116,67,221,+181,205,37,235,53,111,119,146,4,154,26,133,129,37,192,122,249,135,5,21,112,135,198,175,175,79,218,16,220,133,112,222,+26,207,39,66,62,184,176,232,63,7,228,157,235,219,245,145,229,138,211,99,237,26,37,96,174,59,140,230,169,23,103,42,+18,168,88,74,132,91,148,49,252,227,229,94,181,40,20,141,66,138,170,105,229,109,187,24,235,18,177,176,6,170,84,26,+117,60,84,87,27,220,78,228,142,9,231,58,15,67,85,88,147,135,120,95,99,27,216,247,85,174,179,126,226,210,215,202,+169,226,173,164,72,19,63,41,157,4,128,76,142,51,44,149,28,28,179,104,76,109,48,32,67,179,10,191,76,68,103,212,+145,183,124,145,234,39,146,151,252,235,75,255,100,47,228,62,38,182,157,40,227,51,166,52,173,240,64,205,65,175,20,53,+217,117,69,222,183,132,27,143,180,220,245,193,34,140,209,90,47,138,1,104,108,37,86,81,74,36,245,184,105,31,11,103,+0,29,47,153,118,70,60,171,183,103,107,203,109,41,209,194,7,64,162,114,28,79,183,88,78,146,95,67,27,45,32,59,+86,1,15,135,130,23,223,197,3,163,156,172,84,73,123,87,72,97,128,148,6,196,176,207,4,83,15,149,108,133,232,230,+145,215,200,77,61,102,222,2,63,46,38,86,233,30,113,173,165,102,201,185,12,218,216,120,192,233,58,60,98,149,51,217,+217,160,188,63,2,212,81,151,213,1,105,76,56,32,104,170,227,15,212,164,27,10,235,1,206,39,26,239,132,123,97,169,+191,67,222,184,203,185,220,70,155,75,55,215,39,227,81,208,138,73,191,140,28,129,204,170,215,65,99,132,39,113,239,46,+49,36,144,218,188,2,16,16,138,230,146,236,101,90,214,57,165,190,130,104,173,79,200,214,225,102,113,156,136,138,245,120,+190,116,164,230,21,155,58,199,228,134,163,162,209,91,6,128,188,129,88,161,83,191,249,5,56,5,90,170,209,190,179,13,+184,175,59,174,1,217,130,44,187,28,253,219,45,170,50,18,21,143,196,208,181,155,6,185,245,97,236,188,198,212,255,62,+99,91,153,7,85,202,0,175,191,196,28,127,191,211,102,78,35,110,35,160,7,160,152,186,209,133,242,91,115,143,247,110,+186,3,31,65,212,77,163,131,166,27,119,196,127,9,36,14,49,139,173,210,254,135,247,241,4,203,120,9,102,34,210,201,+125,52,255,208,42,246,159,51,93,67,223,84,209,119,23,235,80,120,132,193,0,217,31,248,110,37,140,181,106,115,199,163,+158,200,18,89,244,147,95,193,7,63,68,72,26,64,211,170,124,73,153,173,65,219,238,20,61,42,136,4,108,27,66,45,+206,146,52,129,179,177,133,125,215,25,218,191,242,215,4,21,78,76,249,232,28,133,147,205,3,67,67,20,87,157,116,217,+102,14,108,178,111,15,77,45,105,109,34,132,164,166,250,236,124,146,34,82,114,111,89,73,198,136,68,66,71,236,109,42,+135,9,8,63,202,88,26,97,8,77,11,119,27,227,43,61,250,75,144,170,62,74,43,161,192,55,108,195,217,42,183,165,+213,91,8,130,177,219,139,215,187,34,73,7,163,110,99,110,215,114,38,187,118,251,57,235,61,141,124,223,119,164,70,190,+108,187,39,245,117,99,175,222,236,11,121,132,84,21,133,18,50,95,72,40,82,106,124,46,37,97,225,101,231,75,176,193,+190,111,251,177,179,25,83,107,69,48,255,70,43,78,64,222,14,47,213,173,35,22,100,46,204,14,80,232,249,12,139,150,+40,219,99,160,137,42,71,175,254,83,196,90,214,132,55,140,79,70,240,199,108,243,209,39,215,100,114,62,28,22,59,182,+224,74,25,240,217,37,98,88,6,105,109,50,219,81,189,163,226,77,0,141,75,223,158,219,14,12,53,97,200,68,195,64,+121,135,168,57,14,31,15,76,56,147,151,128,255,100,156,208,171,36,237,107,150,27,26,230,126,178,241,253,112,157,143,45,+32,172,155,112,116,10,81,37,134,166,142,246,69,126,242,51,84,111,198,12,76,113,151,0,164,159,245,111,101,195,242,57,+13,213,181,41,139,69,62,184,164,10,40,106,96,81,62,60,252,98,74,207,17,84,82,250,158,162,181,95,134,1,172,94,+152,139,234,172,16,191,137,131,78,62,132,188,100,39,215,88,186,94,74,178,176,35,122,232,167,79,122,250,60,5,203,48,+27,97,167,182,85,239,232,50,32,8,142,157,23,1,217,86,105,47,203,149,226,182,195,129,3,177,64,77,18,164,53,204,+150,133,151,1,124,197,102,87,31,111,221,152,149,28,113,193,166,194,132,157,5,175,10,170,90,248,114,64,32,32,79,85,+230,92,174,189,83,212,58,251,63,232,14,243,5,182,41,199,19,229,242,120,202,232,169,105,225,155,178,173,20,202,109,96,+21,165,17,29,63,250,107,49,236,136,58,209,148,4,50,14,58,139,204,190,3,143,63,80,71,78,241,139,37,232,125,139,+200,27,23,192,81,11,183,97,8,94,44,250,146,49,34,106,9,245,218,238,39,121,215,93,87,50,196,86,24,47,138,47,+134,193,203,99,140,202,200,123,122,155,127,162,49,94,28,27,240,73,202,130,115,1,162,112,158,161,142,237,162,187,73,120,+236,217,92,76,114,76,26,191,76,124,159,157,81,235,244,53,153,176,0,207,90,125,57,140,165,156,231,128,109,145,191,237,+209,237,32,57,199,38,36,194,186,223,148,152,54,176,211,168,156,84,32,47,51,10,221,238,222,83,85,191,43,241,80,179,+233,25,68,6,157,101,201,17,101,74,173,159,175,61,9,231,189,124,217,139,11,105,98,232,255,115,233,154,22,255,252,71,+37,134,84,48,154,6,189,60,91,47,208,232,190,48,29,236,196,114,123,144,165,177,234,228,84,228,65,82,158,128,243,188,+107,88,74,249,10,104,72,115,150,227,118,252,78,18,139,62,157,252,103,60,155,190,14,73,229,25,3,55,134,202,40,116,+77,180,81,225,4,170,111,112,90,241,39,144,10,211,12,132,79,126,76,102,120,162,219,195,75,48,181,21,93,218,18,19,+115,131,29,128,151,44,194,175,109,11,181,161,234,242,248,152,225,164,55,101,35,75,92,180,39,79,115,206,35,71,190,181,+241,64,223,74,223,162,107,42,142,233,74,154,4,28,115,82,213,120,74,1,239,46,184,97,131,53,249,254,113,81,213,117,+59,59,39,25,119,72,40,16,80,45,208,148,81,204,209,48,71,43,176,56,79,87,68,165,181,84,34,3,36,40,208,222,+1,235,54,82,118,46,75,0,116,28,213,193,16,169,228,249,9,17,212,122,124,156,98,137,133,57,60,46,209,66,47,45,+250,185,3,184,136,88,178,173,81,215,52,31,214,253,206,75,137,49,96,79,138,254,244,217,110,51,115,238,18,123,147,57,+87,5,9,143,43,126,33,127,47,193,47,226,90,59,238,31,37,48,61,46,20,126,165,33,30,39,230,187,204,205,87,59,+118,85,219,151,23,32,247,35,60,25,55,113,58,225,204,174,35,43,162,166,96,254,251,30,22,21,231,109,41,155,193,120,+100,177,31,245,8,162,74,56,50,59,136,111,234,254,134,95,148,157,17,133,249,124,64,223,64,81,11,176,198,250,246,133,+181,74,188,247,31,152,100,107,117,77,33,67,115,161,95,198,108,77,211,155,183,69,20,67,129,176,40,176,172,32,191,184,+39,197,63,249,27,28,182,223,107,138,56,154,47,177,97,53,168,191,179,207,196,30,173,229,48,152,172,208,214,151,132,223,+244,29,78,36,17,59,231,75,113,66,145,63,122,151,33,18,157,85,234,154,233,231,152,65,44,238,109,168,178,118,73,56,+192,159,188,142,60,209,61,203,68,20,218,41,94,12,220,228,240,12,138,118,63,183,155,70,13,219,145,55,155,71,247,168,+98,67,35,64,19,189,149,157,179,227,94,122,182,65,56,152,162,64,48,92,208,184,62,77,50,224,11,108,249,80,27,87,+118,36,224,233,198,61,248,155,31,186,137,249,122,33,224,100,162,180,178,127,189,46,233,156,200,185,124,205,160,90,135,60,+255,73,221,106,252,30,150,250,36,224,21,152,236,159,26,241,30,45,54,164,52,27,168,188,214,10,36,128,9,159,40,60,+141,240,210,244,166,7,175,18,126,234,190,128,51,150,150,184,34,228,81,223,19,91,23,206,18,198,253,216,100,225,70,54,+177,99,160,146,251,178,187,115,25,146,3,244,76,179,123,77,249,78,224,20,98,108,249,195,206,154,80,184,229,123,15,245,+237,69,121,201,248,211,88,177,192,76,59,35,26,38,170,105,16,91,29,174,125,32,137,254,107,244,71,64,26,110,254,143,+216,151,228,197,102,103,190,191,111,164,27,77,85,48,169,43,147,2,239,183,136,115,249,90,84,209,85,17,151,31,235,61,+248,58,110,17,174,242,190,153,93,174,169,213,212,232,156,156,54,178,57,88,39,251,232,92,138,145,189,178,251,165,135,137,+226,218,34,244,68,7,25,11,56,125,226,210,188,56,249,119,84,185,61,32,150,26,200,226,88,153,183,250,169,37,106,197,+67,178,188,12,110,170,181,109,230,187,215,12,80,61,15,186,193,194,3,157,215,255,30,99,22,169,162,194,228,233,46,140,+128,3,203,124,196,83,86,223,146,187,134,210,212,235,183,123,252,242,137,77,15,213,205,187,77,125,22,111,17,10,204,140,+130,165,111,176,134,214,236,80,76,23,66,227,79,232,30,41,186,57,20,201,201,202,199,105,126,160,162,217,55,22,108,163,+211,74,221,199,251,151,191,173,51,126,1,132,198,159,78,84,237,158,234,55,211,189,15,242,7,156,241,194,145,72,165,154,+33,142,221,50,123,203,224,171,105,34,95,107,201,48,23,128,183,20,168,39,38,110,169,74,250,98,109,63,20,129,73,139,+104,186,29,114,161,238,194,233,206,135,103,205,8,105,155,64,94,81,99,190,239,88,237,173,84,32,65,69,31,162,220,239,+110,81,164,5,130,177,188,137,217,178,167,57,204,174,71,18,255,20,157,190,85,248,75,58,70,134,253,53,42,146,133,114,+90,90,114,214,199,161,119,211,4,247,180,132,130,183,247,125,59,90,98,1,225,53,15,69,127,37,82,49,28,8,59,176,+72,91,244,44,58,66,33,161,176,155,141,101,62,10,59,225,171,177,46,108,69,216,18,151,99,87,225,176,253,78,32,210,+230,183,26,59,117,229,115,154,51,102,186,3,83,206,224,112,49,200,184,27,69,120,193,204,191,6,234,92,78,174,92,92,+61,145,21,254,49,133,174,194,171,35,176,68,153,60,118,37,26,27,228,97,153,23,81,178,150,186,17,141,116,67,96,92,+139,209,192,225,177,107,68,236,112,111,233,137,156,110,38,20,164,76,200,150,132,230,153,2,201,53,227,161,213,182,208,108,+88,146,13,157,70,75,25,79,178,210,56,192,28,201,150,117,170,164,164,36,146,57,253,61,35,95,18,169,175,80,5,235,+73,107,247,102,96,253,48,151,136,231,253,52,53,153,155,175,86,198,255,224,115,208,86,65,183,152,160,175,240,116,212,43,+64,202,141,196,38,75,140,90,248,129,157,60,177,44,214,147,191,183,172,213,225,16,218,44,251,98,46,153,247,18,63,213,+47,30,231,187,121,162,147,239,4,161,233,245,173,152,216,57,60,64,33,213,229,62,215,58,119,127,208,110,61,169,163,206,+196,133,23,118,156,76,224,101,216,158,19,151,193,66,255,188,247,2,151,167,178,183,59,202,111,49,10,193,11,123,91,42,+203,240,56,56,198,179,61,93,255,112,140,170,107,247,7,253,180,147,67,246,253,77,215,201,185,62,102,102,230,148,186,220,+205,54,84,252,75,216,35,80,247,96,10,76,2,139,41,213,218,245,128,38,167,250,196,158,179,140,146,123,16,209,100,218,+19,75,138,16,9,92,46,168,212,102,149,26,243,186,44,171,251,143,15,106,227,25,33,173,97,202,9,139,180,150,206,158,+81,127,224,108,92,191,40,81,33,221,237,209,31,131,59,242,32,109,158,115,52,0,60,117,156,27,207,82,105,189,9,244,+219,250,174,4,6,204,8,33,209,19,41,139,91,92,88,147,175,112,124,101,88,140,84,94,5,40,174,79,146,129,69,187,+252,166,127,108,22,255,130,29,216,221,111,83,41,221,245,89,125,47,38,53,6,193,33,47,21,25,165,210,49,201,79,200,+22,180,240,54,184,5,54,140,229,148,87,189,8,78,210,224,84,165,160,233,119,4,214,67,243,81,209,158,74,109,20,9,+19,172,14,141,227,109,224,57,253,251,175,130,189,16,163,96,146,46,157,74,24,200,2,114,117,180,21,46,111,140,11,47,+23,42,192,222,24,125,217,47,248,36,248,166,197,1,116,54,176,96,193,167,5,31,164,221,198,139,58,133,129,192,242,88,+148,25,179,232,173,139,58,1,175,44,37,93,146,250,62,133,108,38,174,246,82,68,190,35,42,176,127,144,71,228,66,118,+20,230,170,7,145,250,185,115,53,77,209,245,186,138,245,142,217,195,50,91,215,25,56,31,5,101,81,199,51,22,60,218,+250,218,94,57,233,21,82,99,96,64,147,22,199,171,95,55,250,174,99,38,25,72,194,192,238,141,112,174,133,247,72,90,+166,216,214,171,155,116,90,88,179,82,147,116,83,62,255,28,72,0,156,8,227,26,145,9,82,166,116,30,220,238,209,21,+54,164,20,5,200,58,104,50,100,44,244,19,70,99,255,252,71,37,134,83,121,128,167,14,207,229,78,22,111,131,45,189,+90,104,56,244,161,68,159,145,239,58,171,232,103,52,71,52,139,244,162,239,225,210,64,7,242,234,67,53,136,204,176,247,+214,222,236,156,77,70,103,97,61,184,34,139,197,54,97,226,161,206,201,115,50,147,88,218,163,231,170,112,63,61,112,111,+121,182,182,176,119,104,139,165,60,17,137,236,90,154,132,79,190,29,114,101,16,81,32,123,191,239,65,104,184,205,232,1,+84,180,125,146,80,225,231,109,57,143,145,222,198,171,89,239,75,147,226,186,189,27,9,63,6,61,121,242,155,157,86,175,+69,135,100,65,12,97,215,126,37,162,90,144,173,128,43,98,40,141,238,36,186,86,170,130,80,175,156,212,188,173,42,66,+104,127,142,129,23,54,43,117,165,4,146,50,31,199,226,56,38,205,41,185,246,204,229,246,48,107,157,166,153,217,181,94,+218,47,105,202,235,55,131,232,156,167,59,237,37,147,32,59,85,47,38,137,155,234,169,237,8,96,118,11,248,117,170,150,+198,125,26,120,119,234,17,232,236,206,191,156,164,227,185,82,149,153,161,36,77,146,150,1,136,182,115,206,99,15,56,9,+106,148,62,124,49,232,95,157,38,243,44,194,20,187,48,185,104,201,155,64,28,1,11,66,110,84,171,49,82,165,219,128,+36,57,205,132,39,93,254,186,181,172,114,95,153,224,171,126,28,97,185,29,98,65,69,201,222,19,198,84,138,148,87,246,+96,221,12,80,97,230,209,216,150,57,145,165,34,193,120,189,246,168,198,196,194,21,214,201,149,249,41,34,26,3,78,12,+229,66,11,161,13,154,207,0,214,82,128,112,112,187,34,64,114,148,104,140,133,50,178,232,115,0,75,165,175,10,195,233,+217,254,51,63,137,35,210,210,124,153,202,250,84,180,135,210,51,75,175,151,130,46,135,195,202,78,54,211,97,6,18,210,+224,5,211,177,122,13,138,16,199,187,36,232,27,27,143,130,151,47,96,132,53,101,207,235,119,195,14,243,217,180,16,168,+247,11,122,154,120,67,132,12,93,168,36,111,176,4,254,76,28,61,241,110,204,218,27,182,80,174,204,51,173,222,159,254,+233,132,140,120,252,213,40,154,146,253,53,183,51,105,219,3,39,53,61,80,153,195,127,244,175,195,228,125,208,22,4,54,+199,230,91,76,49,124,34,0,57,198,55,33,246,148,12,49,151,228,243,157,109,254,26,85,189,117,84,5,205,102,188,234,+236,81,129,28,16,50,37,157,105,57,199,151,49,54,197,9,36,187,58,197,22,51,69,2,229,189,121,125,176,62,110,191,+192,40,178,12,132,126,102,199,115,181,169,63,206,115,58,152,90,9,160,210,25,17,119,30,104,68,131,184,13,128,161,159,+125,253,150,91,6,35,0,238,242,72,108,16,154,69,224,24,95,9,28,187,69,12,25,45,31,52,174,118,179,173,18,86,+208,167,232,118,153,100,140,226,250,175,77,163,218,192,43,16,93,211,250,86,47,164,9,14,61,45,225,28,76,156,3,200,+2,20,27,40,214,16,209,122,193,202,83,125,62,38,129,77,206,229,26,138,64,215,161,12,128,73,12,158,25,150,253,100,+75,230,72,205,207,36,24,255,146,102,116,187,35,128,42,76,23,178,246,1,220,20,23,89,194,97,116,194,245,229,9,38,+134,140,198,47,57,227,58,248,134,137,53,133,47,111,30,238,66,65,221,107,92,10,175,158,14,248,123,79,21,84,246,59,+99,87,125,242,201,23,53,44,41,107,199,87,121,226,248,181,154,145,109,217,52,176,61,33,62,171,198,82,18,59,68,244,+91,218,196,94,224,107,61,32,158,189,113,61,53,250,53,122,71,207,126,12,135,245,56,42,128,85,114,41,4,238,181,216,+125,237,45,142,99,206,244,51,97,0,137,197,134,101,217,162,73,51,221,209,113,60,40,204,56,190,211,232,238,24,182,98,+219,82,222,202,145,53,113,11,64,90,70,186,147,118,153,253,192,219,129,103,108,93,209,181,198,198,238,136,39,249,13,170,+35,189,215,51,109,132,171,79,186,78,197,202,198,233,236,149,12,180,106,6,188,163,78,7,163,21,93,234,49,225,120,238,+141,7,50,199,160,33,194,153,34,28,128,58,119,193,31,76,204,117,245,40,81,99,251,30,191,151,206,11,201,112,86,16,+226,116,152,243,80,143,22,244,175,105,38,26,191,49,236,186,244,165,173,119,37,116,3,21,35,52,199,229,185,197,15,53,+237,6,246,87,17,138,65,22,65,9,112,115,50,105,196,66,70,41,235,124,21,37,240,32,9,60,168,179,115,24,144,37,+173,123,103,136,24,196,156,196,210,17,237,188,41,205,225,76,149,152,178,36,10,242,174,199,241,15,3,105,255,96,201,186,+210,123,18,38,100,34,70,99,182,147,107,31,220,169,227,136,178,174,222,87,195,146,130,172,2,223,84,254,235,125,106,28,+54,190,48,12,245,197,180,224,126,53,60,1,87,30,6,110,189,121,144,75,19,30,60,112,72,135,101,13,177,135,15,78,+206,83,46,247,122,243,163,205,99,72,155,141,21,88,130,59,154,35,126,226,1,32,22,83,186,111,128,160,223,244,182,163,+198,52,57,210,155,64,7,79,0,165,188,5,74,108,119,93,242,218,64,96,117,179,97,164,166,143,104,87,227,2,119,148,+14,243,5,152,246,133,106,207,111,74,207,149,224,145,188,101,2,159,160,93,159,186,250,231,129,16,102,32,8,102,205,169,+215,208,66,24,112,90,56,189,14,126,146,65,20,25,123,136,112,78,195,170,62,230,166,66,212,204,146,106,111,214,148,117,+220,67,47,58,212,117,236,103,12,190,79,160,12,39,36,134,221,89,209,244,195,236,31,22,2,73,43,86,138,111,32,209,+66,5,11,179,66,218,17,160,124,254,170,54,207,160,149,180,70,51,171,50,49,167,166,225,23,97,46,224,34,186,78,227,+223,181,75,120,156,77,95,239,199,194,251,98,197,18,64,109,236,122,1,234,176,145,205,33,218,70,244,121,218,107,36,110,+53,9,52,188,30,29,52,148,8,144,165,25,33,147,122,71,17,170,188,80,218,251,197,116,150,68,175,134,171,175,91,73,+31,105,59,151,143,189,100,168,173,148,105,138,80,140,140,36,179,121,168,140,33,223,165,139,235,237,172,195,115,68,68,94,+118,205,159,248,150,174,219,34,17,66,140,74,179,33,96,213,5,4,63,233,119,255,102,183,142,180,128,154,18,136,170,116,+144,18,158,225,125,72,58,163,163,244,61,83,208,36,221,246,226,37,95,133,220,251,40,154,127,58,125,242,140,35,113,9,+247,209,73,158,79,195,211,109,59,217,187,74,235,15,201,233,198,77,177,176,41,161,10,229,241,38,248,210,38,122,54,117,+69,156,86,232,183,50,155,193,30,203,255,190,106,80,106,103,104,156,194,244,246,16,99,132,161,41,211,61,69,126,22,80,+199,175,139,230,144,68,249,162,218,34,11,206,82,175,46,135,222,139,40,50,216,105,238,17,26,56,78,238,231,208,125,70,+183,82,233,201,229,147,67,235,249,178,96,187,161,104,120,27,24,149,197,246,24,128,156,62,0,208,105,66,176,1,77,68,+193,118,1,77,111,65,239,72,122,91,16,239,84,95,127,19,112,162,187,37,146,121,42,118,103,83,60,173,99,189,15,49,+14,122,78,139,18,73,92,11,215,101,171,4,175,245,147,109,96,128,237,148,188,27,50,106,63,72,122,201,233,41,70,155,+13,62,99,251,133,185,215,219,39,48,88,160,36,134,108,121,216,8,42,183,129,97,105,46,247,163,210,152,63,236,92,158,+41,115,198,123,14,60,114,186,102,193,190,96,84,227,9,173,250,154,247,136,83,171,225,236,45,163,59,57,186,231,229,6,+33,158,211,14,244,117,152,6,31,100,159,136,192,207,180,241,131,57,232,162,99,192,241,128,189,93,205,144,212,121,100,41,+253,202,47,89,202,224,78,1,14,28,147,3,33,141,48,131,96,86,40,237,9,228,180,75,56,106,58,11,146,16,191,251,+52,101,74,232,233,82,46,137,167,96,203,166,181,66,151,166,75,138,156,75,227,1,184,214,183,49,134,94,219,166,148,66,+161,210,229,162,231,23,243,21,46,5,34,130,186,15,177,99,230,234,50,80,234,230,41,141,136,128,190,183,102,157,48,243,+42,65,112,205,69,180,46,91,255,202,28,150,87,145,158,195,45,176,0,69,130,220,162,118,3,204,35,199,223,0,113,28,+127,237,187,245,137,239,179,188,2,192,169,235,24,24,254,126,129,135,156,93,79,101,132,186,231,100,128,0,169,60,74,89,+253,219,0,242,213,210,223,185,20,52,251,152,19,239,100,242,96,65,221,207,87,210,35,212,34,77,182,146,242,129,148,209,+40,178,113,15,114,167,74,180,52,15,20,126,242,107,229,247,27,58,204,154,8,127,106,246,107,104,100,195,56,200,17,155,+173,88,68,35,255,106,239,141,3,29,119,57,169,49,186,40,186,103,7,251,233,243,159,255,252,114,10,162,163,237,5,16,+226,79,64,199,14,149,139,177,68,247,8,38,67,213,82,160,92,9,221,77,181,174,136,255,226,115,205,97,216,35,149,119,+66,215,143,231,117,151,174,193,109,106,31,87,90,213,192,163,58,4,71,81,117,241,7,83,134,81,135,23,76,60,65,135,+93,148,174,55,63,109,31,28,16,61,167,144,12,195,71,238,65,146,33,131,149,31,180,186,44,214,76,227,99,98,36,106,+150,44,245,109,138,122,37,168,135,15,212,121,3,234,0,246,118,154,72,180,214,164,132,160,37,17,124,229,200,160,232,213,+161,28,177,40,108,139,51,28,223,129,7,1,245,142,217,157,117,209,40,131,213,244,152,16,4,126,255,41,127,89,184,202,+238,129,16,104,185,181,223,193,179,12,82,31,162,96,19,143,60,219,42,170,52,81,216,24,152,75,67,40,116,218,100,170,+246,64,23,51,228,35,231,98,75,110,200,129,44,241,36,7,220,171,103,189,168,37,40,106,106,205,29,111,248,1,70,122,+190,102,102,46,90,211,120,53,199,175,103,5,138,193,224,166,201,233,8,65,184,166,67,222,109,76,79,86,178,56,192,112,+168,60,190,112,180,5,172,241,216,230,171,26,124,71,135,198,80,8,240,160,162,153,181,107,11,82,106,30,12,251,240,212,+62,126,155,250,119,91,11,20,8,23,164,255,133,247,228,12,185,26,80,42,255,232,33,210,64,115,40,248,216,175,169,127,+16,195,67,216,103,17,196,19,136,171,207,8,15,253,159,52,129,5,145,120,47,71,255,32,236,204,109,112,127,75,56,30,+154,18,53,213,232,199,60,77,77,32,18,192,206,150,224,198,209,105,209,105,220,21,169,100,19,31,245,189,43,56,176,28,+219,214,119,119,93,101,200,255,133,194,141,96,43,38,216,74,104,223,95,54,119,62,57,231,84,240,149,229,201,111,172,104,+1,3,65,122,212,77,22,165,97,124,155,123,49,94,138,236,103,225,40,254,152,201,63,88,181,116,143,49,45,92,73,85,+100,156,39,72,213,187,50,85,224,19,149,5,79,26,190,194,219,54,123,173,105,164,106,51,47,135,77,28,225,144,199,111,+43,85,16,245,179,122,43,55,66,80,13,8,93,128,129,84,170,141,109,6,113,48,2,182,9,40,137,221,83,210,217,18,+137,34,135,75,7,132,85,139,20,191,54,34,144,7,145,140,37,69,225,105,79,254,95,110,3,74,59,104,154,61,42,66,+80,85,171,53,68,130,20,233,172,167,34,148,170,188,254,195,208,177,255,129,98,14,244,128,6,200,34,216,92,141,80,77,+126,127,7,90,177,234,115,168,139,207,186,76,224,112,68,73,214,222,250,119,224,111,193,170,155,217,65,22,105,84,223,38,+94,93,8,232,204,64,198,165,44,137,129,131,115,19,35,46,224,112,230,106,178,147,128,121,65,178,241,71,156,205,195,229,+44,150,206,234,215,167,243,93,21,27,81,174,152,142,95,208,9,66,18,201,58,51,119,62,188,59,12,109,120,19,252,34,+32,200,131,214,97,125,227,11,242,135,92,195,83,118,81,62,231,116,14,195,60,251,180,72,239,0,186,218,160,141,118,128,+136,18,29,67,202,185,20,251,23,175,193,90,255,229,240,15,215,196,187,3,243,203,121,249,74,210,9,235,20,167,133,38,+20,63,13,149,8,90,75,91,81,184,96,110,50,214,253,125,159,131,219,231,4,216,130,136,76,215,128,22,99,40,229,76,+188,3,33,40,190,37,198,214,162,170,96,171,46,149,23,244,227,154,125,141,64,2,184,4,113,169,104,132,96,173,240,173,+1,12,116,34,208,25,12,74,121,28,50,104,131,42,232,96,188,101,216,137,40,97,245,106,233,97,92,169,226,230,22,142,+5,175,129,35,144,233,130,246,244,143,247,175,72,182,218,27,174,14,215,223,37,162,15,115,30,115,235,38,135,132,211,189,+51,249,114,28,63,195,252,190,188,233,84,113,119,88,60,246,126,42,210,154,158,115,169,173,132,170,178,173,130,219,82,67,+142,30,245,250,0,125,119,139,196,189,164,96,255,247,218,234,28,190,130,54,10,176,190,255,217,39,145,37,252,93,128,176,+199,71,207,161,124,123,63,21,249,154,83,151,15,46,182,108,70,106,166,227,236,133,167,25,63,178,246,102,215,173,56,183,+252,7,240,178,249,47,134,81,17,0,11,159,237,74,119,33,129,215,239,127,92,250,242,54,151,231,220,184,28,91,43,18,+50,236,60,153,112,103,91,223,5,155,64,115,103,95,93,191,165,231,111,181,6,196,160,50,13,103,186,187,167,19,135,120,+160,144,42,69,145,34,75,112,163,96,127,84,200,72,103,169,102,103,71,26,179,186,241,71,70,53,91,106,200,201,10,8,+225,161,242,27,34,197,71,147,175,151,37,21,241,172,159,227,46,41,42,147,49,187,111,42,148,95,237,176,79,6,242,144,+239,136,227,218,65,20,18,9,67,54,205,220,73,25,221,177,75,29,61,218,230,219,147,33,170,225,130,212,126,67,169,226,+179,128,64,164,33,88,33,24,130,205,154,187,151,133,18,184,128,117,63,188,101,94,164,134,207,83,101,21,237,48,65,28,+217,232,216,153,185,110,85,107,97,152,135,240,101,165,100,75,153,222,54,231,251,240,193,236,95,30,30,83,9,252,118,63,+68,18,56,2,178,182,25,60,116,194,169,157,107,145,105,59,68,24,175,86,82,251,85,226,181,140,116,49,211,2,138,33,+177,95,85,4,71,232,115,71,201,155,132,168,221,140,189,29,167,168,3,91,244,103,47,203,162,183,128,197,22,99,253,176,+187,16,144,180,250,231,37,172,244,202,45,201,45,37,120,208,11,186,181,30,165,19,246,251,54,184,68,130,84,101,180,145,+69,15,122,170,86,104,208,151,0,148,242,75,127,111,10,70,198,246,44,148,85,165,87,192,179,138,17,53,182,18,187,223,+75,3,181,182,210,173,252,1,163,163,130,180,198,185,5,236,7,107,122,229,244,79,121,115,230,192,17,137,25,112,9,169,+67,154,172,235,204,198,212,215,221,90,127,27,31,30,6,239,83,246,255,116,126,111,202,194,210,172,129,0,28,241,131,201,+181,224,21,109,48,181,74,224,116,216,119,102,148,41,48,28,158,191,29,76,78,52,125,124,249,185,123,102,62,160,82,151,+4,160,204,11,160,220,154,125,75,3,138,145,158,52,250,154,218,182,196,238,11,28,230,243,57,71,110,238,150,144,28,197,+152,120,58,90,70,73,69,99,40,69,98,162,28,100,90,59,149,133,139,205,184,181,87,217,73,37,86,41,69,151,188,27,+7,90,237,131,226,164,164,207,233,220,57,163,13,90,40,3,63,59,167,12,22,124,85,209,28,241,89,219,196,205,115,14,+253,136,163,115,85,140,85,238,70,176,162,23,3,25,18,235,165,107,49,6,113,75,164,136,238,184,4,124,6,184,145,185,+7,250,59,221,162,252,221,252,45,185,61,56,70,47,152,20,204,137,239,165,78,184,216,66,115,37,53,31,93,30,2,164,+37,246,81,153,94,116,215,67,225,213,37,55,52,140,99,51,131,86,176,37,236,144,113,66,206,248,212,218,177,27,123,227,+236,157,30,234,88,98,58,84,214,140,244,234,85,65,138,8,163,170,120,153,97,73,73,110,104,148,241,194,247,38,245,69,+59,218,216,2,132,201,238,203,48,71,217,42,187,36,80,227,23,174,198,176,91,1,193,136,168,9,224,68,249,252,58,143,+74,0,230,212,163,149,67,157,145,232,94,16,68,206,190,11,3,251,157,32,64,24,198,225,30,156,182,57,118,115,126,120,+90,128,33,128,4,100,164,182,81,138,177,23,51,251,184,8,224,86,122,36,171,250,186,22,80,51,188,184,23,121,146,86,+112,2,47,181,54,251,33,54,253,248,59,253,161,172,44,66,216,104,45,85,139,69,176,7,17,113,210,162,36,90,31,103,+57,31,167,7,208,30,187,7,8,113,252,176,88,25,94,151,217,56,63,77,146,152,36,82,167,139,200,186,78,88,241,84,+43,249,139,13,203,78,12,61,74,247,19,232,110,106,20,29,179,168,51,86,44,152,60,230,207,119,100,131,177,105,94,151,+107,229,54,73,73,140,234,26,176,37,23,159,46,16,167,146,87,79,158,39,195,183,146,2,14,150,206,38,174,160,32,173,+91,228,78,172,200,196,211,231,241,183,46,60,179,190,142,224,199,92,30,109,169,101,7,255,251,241,217,199,90,207,136,143,+52,138,231,199,173,184,109,213,5,85,38,152,191,219,48,98,59,12,231,123,78,227,61,97,181,169,252,61,233,36,86,121,+40,26,111,84,199,185,255,246,47,245,250,150,61,16,121,61,88,152,31,24,202,50,66,93,36,226,114,209,243,229,127,57,+47,138,236,251,214,137,236,58,147,248,92,144,65,182,163,79,156,80,70,191,208,128,153,157,120,11,254,51,23,29,117,253,+46,31,185,147,189,212,149,112,41,156,58,133,210,112,122,31,234,79,180,75,221,102,190,183,73,125,215,207,69,253,145,106,+63,95,237,56,250,72,43,94,150,40,81,26,83,8,151,126,28,97,202,113,151,225,181,64,178,128,111,111,113,4,153,99,+132,249,154,73,23,181,98,182,47,88,1,170,111,27,141,165,220,99,61,130,239,22,130,64,99,62,99,121,53,245,103,0,+230,195,216,228,61,39,215,253,191,152,213,247,187,5,214,93,245,171,40,88,172,87,210,0,214,154,103,67,35,164,123,140,+3,130,169,142,221,174,77,34,184,43,133,63,157,30,184,156,94,242,186,59,21,185,113,76,49,85,206,169,216,47,126,147,+123,33,64,193,175,233,109,95,193,207,4,178,57,24,43,217,165,89,78,62,65,139,88,170,142,94,12,201,99,95,19,207,+116,231,198,230,18,187,192,178,201,1,137,73,242,2,165,253,19,125,191,249,223,50,192,95,31,72,122,114,185,174,255,249,+253,61,120,148,159,1,76,17,244,245,138,175,203,177,44,28,212,122,51,35,182,68,174,107,208,172,13,6,101,211,221,85,+86,71,206,168,255,203,69,38,127,191,112,103,212,217,238,42,119,55,130,162,27,113,70,137,139,90,236,81,143,2,235,210,+188,115,92,231,39,43,51,213,224,204,68,11,6,148,38,141,27,152,85,92,15,51,111,238,97,138,160,135,186,29,129,148,+15,238,203,62,15,101,145,221,71,122,149,73,223,86,172,79,118,94,159,72,31,99,4,91,165,210,66,54,169,4,9,81,+92,59,222,248,247,252,192,103,35,179,84,40,255,112,127,52,172,48,23,58,222,110,175,104,185,77,60,222,18,134,141,61,+59,71,166,252,18,81,203,146,24,75,67,130,153,198,100,21,218,19,156,2,232,230,205,134,1,95,171,74,71,60,7,129,+177,90,75,88,195,215,93,93,54,143,218,145,232,35,159,131,194,6,210,249,33,156,171,117,47,182,236,107,130,148,135,55,+187,30,166,87,117,168,94,137,195,130,47,75,44,175,12,172,57,123,128,229,196,33,105,154,151,235,136,175,33,9,101,16,+215,160,211,192,147,213,178,205,84,165,112,89,146,173,174,96,28,178,212,52,214,47,164,195,60,254,50,26,0,69,240,47,+181,66,196,30,156,213,239,248,63,250,239,173,211,5,35,71,1,123,1,75,76,123,87,73,40,227,69,205,219,144,19,190,+17,29,41,57,92,44,190,79,53,69,245,37,43,202,149,181,152,224,208,131,4,59,16,58,221,198,253,214,33,64,97,77,+201,124,82,70,124,165,114,213,88,217,54,223,133,216,18,170,90,239,234,71,101,209,14,43,228,134,136,61,180,195,136,51,+2,116,69,200,219,154,34,71,149,142,149,207,71,152,107,235,83,84,221,71,79,190,207,141,17,220,218,189,138,250,65,209,+252,185,102,178,1,70,87,46,89,78,183,82,174,137,150,62,235,234,217,190,47,144,46,89,23,196,47,247,120,45,213,182,+214,211,250,50,242,193,10,58,113,17,210,127,96,210,65,47,222,4,193,158,154,211,253,123,15,167,132,151,9,47,77,209,+173,60,177,74,164,59,60,106,74,151,252,56,253,154,246,66,136,34,146,27,148,223,85,147,6,56,22,249,4,24,44,25,+231,165,96,178,236,85,216,7,93,57,0,45,54,96,157,55,79,62,211,159,99,168,148,125,11,84,97,97,90,111,231,228,+113,45,30,191,47,90,225,235,246,96,85,50,248,129,156,25,206,175,179,70,114,181,150,15,60,137,192,65,101,96,101,5,+13,59,108,147,199,186,91,142,46,102,174,178,66,187,5,71,157,37,68,33,46,57,162,196,62,82,60,224,117,110,122,99,+150,143,209,102,103,227,233,242,123,8,85,172,60,94,222,91,15,223,207,20,186,14,100,137,151,179,172,119,198,151,150,60,+185,239,68,62,151,123,75,157,50,116,166,241,94,203,29,146,234,183,167,153,253,5,137,131,68,61,128,241,146,36,94,130,+120,114,139,233,112,169,20,254,194,161,202,189,182,226,232,166,109,26,55,209,34,221,127,252,59,203,235,25,90,249,121,251,+53,127,197,104,199,202,97,125,234,5,34,127,174,248,161,7,152,146,165,98,57,58,110,19,117,147,56,146,178,164,163,54,+166,0,237,117,31,193,17,111,19,240,131,158,234,18,189,178,102,210,128,10,97,10,235,172,28,137,97,28,83,150,142,1,+175,24,148,228,7,99,149,83,178,9,54,75,16,44,162,230,86,49,114,115,52,118,252,101,193,150,35,153,103,73,212,81,+205,90,91,138,98,251,246,231,65,31,17,219,197,135,67,95,234,7,185,54,250,31,8,175,40,42,254,9,63,110,106,155,+161,237,14,234,214,253,141,141,24,153,102,235,103,232,89,26,119,30,254,72,230,131,161,226,94,7,110,76,165,65,17,133,+254,96,64,196,212,33,49,25,35,223,86,72,128,219,68,174,121,221,225,245,132,106,99,229,221,21,140,234,113,227,47,3,+190,169,244,79,54,243,215,124,43,42,41,218,76,113,101,39,225,59,34,95,92,147,32,209,85,216,177,70,184,35,12,225,+146,17,84,197,92,217,108,96,21,31,252,51,171,118,98,162,122,190,231,8,135,253,136,92,201,114,14,31,255,202,107,39,+37,133,241,251,110,84,103,161,90,236,92,166,137,28,242,244,23,90,139,154,17,197,24,212,242,230,117,198,130,42,19,254,+173,29,153,223,131,164,134,49,111,106,120,13,126,164,241,58,13,38,171,9,57,56,179,192,201,21,246,242,199,105,60,84,+227,51,89,50,191,182,177,84,142,11,108,83,2,96,39,154,151,37,232,7,139,209,9,140,46,148,78,62,140,52,70,101,+223,204,193,0,66,249,242,187,20,80,142,149,183,11,132,10,184,123,158,135,65,98,190,242,43,86,86,219,110,54,109,143,+245,240,25,206,99,131,60,24,141,163,144,140,68,185,200,128,163,243,105,224,199,87,210,66,115,43,1,135,90,32,14,5,+130,50,182,184,99,164,5,228,186,85,21,92,40,109,136,191,21,157,114,124,222,98,98,236,33,235,144,38,185,233,69,45,+229,101,159,200,132,170,106,12,152,175,232,242,150,72,223,29,246,152,26,186,26,17,6,144,220,251,84,128,33,220,100,27,+1,156,135,240,60,103,251,224,125,247,139,99,208,122,238,221,51,79,19,155,212,105,207,83,156,206,121,60,147,94,98,145,+65,101,180,15,92,138,40,58,250,212,159,116,150,252,244,158,181,42,143,152,140,248,206,77,164,148,255,252,16,64,240,231,+207,246,139,143,152,70,95,151,42,173,56,207,79,219,111,14,128,194,46,44,170,219,175,230,82,233,169,212,58,103,63,40,+186,61,17,151,97,88,15,19,62,207,161,5,0,20,165,78,50,76,170,146,9,118,30,233,21,226,78,101,169,93,218,231,+174,223,194,63,52,142,89,89,182,30,100,68,251,165,102,180,240,247,160,207,198,13,164,37,181,83,21,32,189,141,142,32,+3,76,193,65,140,105,117,189,108,152,24,40,67,51,158,34,39,15,50,124,251,74,160,191,120,151,28,54,94,91,151,183,+252,71,245,18,117,83,13,166,144,250,87,44,212,128,223,100,253,85,153,81,246,168,2,99,217,89,248,185,243,215,82,206,+14,220,23,39,67,182,21,249,167,40,138,219,218,83,15,232,77,244,183,149,170,212,9,234,85,218,226,27,25,9,231,38,+155,159,22,230,194,57,77,5,97,192,215,231,189,155,70,47,32,204,45,186,66,234,220,18,88,32,101,115,33,187,242,121,+53,222,18,155,198,186,215,75,43,248,146,52,26,40,209,146,50,12,99,67,188,146,204,99,239,170,116,112,186,2,203,123,+150,154,209,252,243,102,222,195,185,52,7,245,197,137,131,105,17,73,57,56,43,246,218,181,56,127,217,225,136,74,34,26,+180,197,99,86,199,45,180,152,68,164,7,49,230,91,22,63,10,154,140,56,236,29,100,125,164,154,143,2,215,192,223,195,+132,253,173,127,25,188,63,121,61,70,142,210,109,231,105,230,59,75,156,172,238,144,24,212,221,240,228,1,45,120,115,81,+39,221,97,180,38,104,106,249,145,139,185,30,174,155,54,22,99,22,164,171,33,78,131,95,115,162,208,192,60,229,63,7,+205,221,132,90,138,249,52,22,231,163,89,115,233,158,201,103,26,29,146,199,58,251,143,164,30,235,227,226,219,176,173,217,+89,251,163,117,210,250,136,141,231,52,121,250,217,76,160,143,67,183,241,254,128,217,135,166,85,115,96,105,55,221,88,97,+194,100,15,31,90,194,184,4,177,110,129,56,4,201,171,61,46,235,54,16,248,54,164,198,253,145,222,98,57,232,93,47,+49,174,96,255,165,88,96,192,188,225,127,162,115,95,133,82,131,228,49,89,156,45,150,39,67,46,220,2,212,66,134,125,+43,47,164,221,10,154,129,191,103,171,47,227,1,206,39,154,250,137,4,103,63,201,252,201,25,149,183,254,99,171,154,245,+196,191,134,36,208,171,115,233,133,115,140,171,254,29,239,115,195,6,34,210,36,117,204,14,249,250,224,16,17,92,50,28,+97,30,132,75,31,31,100,120,64,148,238,31,104,164,199,214,143,31,219,167,174,187,206,42,157,127,24,52,55,141,180,148,+149,102,5,225,69,197,124,213,109,88,187,15,3,210,38,225,208,119,62,41,6,82,106,204,39,143,155,158,47,6,109,62,+93,220,237,144,176,172,150,48,81,246,171,14,94,243,119,142,175,56,155,33,81,153,103,8,253,245,88,117,137,67,142,132,+200,250,206,208,106,9,243,91,125,104,142,204,83,245,78,83,139,150,222,202,34,27,37,206,122,95,223,20,117,236,245,32,+108,212,57,105,0,198,96,121,154,110,89,239,119,155,158,110,159,30,228,251,21,12,30,142,188,66,48,202,57,151,28,90,+110,189,222,111,87,54,227,68,77,25,104,46,105,242,228,76,10,38,221,57,32,152,106,205,170,170,15,201,46,204,161,67,+117,73,19,181,112,167,173,229,190,137,18,55,169,186,96,156,150,88,187,116,137,235,67,22,92,104,203,107,151,101,150,24,+26,207,80,92,128,233,152,236,104,91,27,152,253,86,46,242,201,28,221,83,213,17,8,181,32,76,25,96,112,155,201,203,+243,97,48,209,8,168,235,117,113,140,73,201,92,25,26,242,1,154,95,242,118,242,184,111,195,93,155,135,103,67,184,33,+193,32,60,74,66,96,51,39,184,67,136,63,62,57,231,26,42,193,87,248,191,241,57,153,6,185,175,228,197,127,83,34,+152,117,119,150,147,130,144,58,21,138,31,31,148,181,31,10,226,142,45,68,153,97,20,254,45,133,235,51,128,64,214,50,+85,243,115,86,75,38,213,183,75,213,11,189,149,208,31,67,185,12,237,36,128,127,13,84,248,90,3,186,247,182,54,189,+97,108,95,237,179,28,202,84,196,165,249,98,111,35,152,153,156,17,254,254,235,40,206,173,150,160,246,37,41,23,151,193,+91,81,114,105,22,224,245,8,61,238,161,55,142,189,133,158,207,201,204,187,120,8,79,175,56,4,98,225,60,87,125,222,+179,7,186,42,214,112,27,63,103,24,25,239,204,113,187,41,147,43,235,178,154,47,205,224,255,170,205,47,39,55,244,49,+197,158,62,108,34,127,110,178,51,99,7,183,253,138,93,108,131,122,249,135,213,141,0,31,76,208,66,145,74,246,203,41,+65,127,127,129,47,89,21,156,239,57,255,1,28,201,106,45,35,174,5,46,92,182,240,27,164,244,252,38,228,111,101,1,+175,188,120,207,253,170,223,68,254,193,9,118,151,163,236,234,199,75,120,153,46,12,220,184,161,150,206,239,35,63,163,152,+162,239,175,183,99,115,102,12,144,234,155,79,138,107,215,161,39,27,49,241,235,45,3,238,156,100,8,151,156,195,12,157,+54,65,43,135,228,17,108,196,53,66,206,15,184,230,182,65,156,233,167,213,29,224,139,194,30,0,91,110,23,236,76,139,+138,188,128,246,212,116,168,241,125,17,204,227,50,48,134,54,157,178,253,255,214,115,184,114,245,159,41,248,38,147,58,228,+121,171,133,214,191,113,139,240,229,205,178,51,251,242,80,72,211,158,136,235,227,254,64,139,165,223,74,202,105,38,27,242,+246,20,2,65,182,253,110,138,186,179,223,65,95,237,111,164,158,138,130,184,80,160,108,176,149,251,56,44,80,236,209,197,+30,39,107,14,60,30,0,142,182,214,151,255,5,49,237,228,80,161,37,79,163,7,210,46,76,195,135,249,182,115,247,30,+218,193,94,2,85,110,13,115,170,247,218,132,41,245,72,220,46,103,146,15,183,81,241,42,155,59,192,131,59,151,23,213,+238,255,250,239,26,159,17,38,182,26,10,169,111,229,71,170,225,135,66,36,107,108,44,176,0,111,139,31,145,26,255,76,+114,149,9,68,253,8,87,78,176,174,91,139,44,129,165,132,223,165,228,13,76,129,40,124,131,243,85,32,230,9,61,222,+20,244,141,174,240,45,2,245,210,186,144,51,85,123,172,148,102,18,248,231,159,182,36,18,16,193,97,188,168,236,92,243,+134,96,215,15,203,130,135,63,135,214,194,187,104,198,119,101,109,209,96,127,73,224,176,67,219,44,70,121,229,69,211,189,+180,133,101,227,1,83,107,111,199,187,4,101,107,219,98,175,227,245,215,168,180,159,184,215,193,56,214,217,104,14,251,128,+46,188,93,159,174,70,154,183,145,222,179,85,113,27,202,179,105,223,125,161,212,178,126,149,117,81,161,169,209,220,115,161,+73,170,43,185,219,199,245,251,23,90,99,188,141,65,64,78,117,207,88,58,110,204,201,176,194,17,157,87,166,220,241,180,+50,127,182,65,186,16,16,113,97,154,29,248,143,23,0,142,82,121,114,2,250,42,42,190,83,250,53,231,149,128,212,92,+54,250,133,152,166,239,202,164,207,221,239,186,17,96,121,152,249,26,154,82,155,117,13,162,188,50,17,228,150,216,185,66,+29,163,183,148,93,237,54,216,1,226,142,213,181,198,184,113,24,88,99,167,160,198,58,86,45,81,220,145,190,190,197,61,+217,132,59,46,210,13,231,86,158,202,74,201,252,147,5,251,61,31,236,55,112,157,159,194,120,234,165,58,15,47,37,184,+217,62,117,196,12,130,50,159,2,196,172,52,232,18,169,4,151,108,245,191,251,172,101,169,87,202,87,33,226,239,96,72,+244,91,60,183,101,160,26,191,251,201,0,141,126,224,36,178,23,36,215,75,127,140,200,179,39,104,242,129,181,31,149,177,+208,27,128,194,148,30,10,30,41,206,59,227,221,206,24,140,74,187,186,218,12,148,68,180,121,238,34,64,206,233,25,18,+99,127,167,101,4,91,66,85,86,141,189,251,178,188,21,237,201,180,53,155,216,3,30,12,133,235,235,216,3,223,145,170,+246,100,144,9,113,83,7,126,154,76,201,164,106,132,30,108,7,229,99,0,42,169,79,194,217,147,172,25,143,72,66,169,+65,212,224,177,179,100,43,2,179,82,42,37,49,187,234,164,22,43,30,44,50,21,143,211,219,81,167,79,1,177,137,63,+56,121,18,71,165,10,135,117,187,15,148,129,90,192,49,99,106,152,184,155,54,95,246,12,196,19,114,86,206,212,206,179,+167,211,234,151,127,148,169,227,251,181,209,189,210,83,237,247,117,13,195,172,247,112,172,137,179,142,216,41,229,189,184,217,+45,126,97,21,208,143,0,58,61,80,147,35,76,0,83,150,104,209,148,6,247,177,24,190,60,199,96,39,247,139,185,199,+181,106,65,29,206,239,207,9,93,237,63,182,100,103,227,167,162,152,58,142,223,46,74,156,222,53,131,234,73,129,254,147,+52,226,76,216,180,184,77,248,122,102,136,56,14,8,141,97,51,43,123,15,71,22,19,63,125,166,162,182,25,93,157,215,+222,221,78,184,168,200,52,115,123,61,184,95,168,7,228,86,164,119,245,188,204,88,191,237,5,125,65,228,4,205,87,141,+105,15,1,254,126,1,52,109,103,174,74,131,33,77,84,32,219,149,138,191,76,215,73,86,140,101,51,80,48,136,153,138,+42,181,184,5,246,95,151,115,142,136,150,70,83,203,201,13,26,41,146,148,196,150,225,61,168,68,108,197,255,252,69,98,+154,177,15,107,146,230,227,134,17,118,210,163,72,177,63,170,92,237,223,99,218,171,181,170,193,103,19,59,71,153,203,116,+110,221,117,42,240,106,34,172,179,115,136,102,84,155,205,245,194,35,210,17,21,18,216,40,156,159,32,138,72,103,52,35,+224,22,21,35,39,203,204,240,92,212,148,72,184,80,26,165,72,105,129,103,43,4,182,67,243,146,93,109,159,167,148,214,+119,166,132,23,100,164,144,55,114,10,82,10,185,233,124,189,91,18,3,107,29,213,98,146,148,191,63,142,235,68,231,174,+122,13,209,42,94,75,208,186,81,228,9,207,201,249,240,70,243,59,115,143,207,184,130,188,169,63,62,31,180,64,40,156,+79,205,234,10,27,224,189,52,2,4,1,165,207,133,37,28,71,214,37,129,94,118,242,196,236,242,103,147,1,3,249,180,+172,235,175,112,255,125,239,27,49,141,180,236,98,242,2,178,7,203,141,126,18,97,203,187,177,149,72,113,87,226,3,45,+103,237,51,31,174,13,243,75,102,182,142,239,56,189,141,150,1,160,30,40,231,180,196,215,254,93,215,91,103,24,77,171,+73,234,10,245,169,231,108,28,214,174,54,233,140,31,39,43,31,252,233,210,169,87,169,1,31,12,193,83,37,140,144,50,+122,197,55,240,232,177,38,124,122,94,8,166,189,226,117,10,223,121,193,235,202,159,109,30,131,251,250,183,49,59,0,102,+148,127,254,56,254,242,112,247,220,186,236,241,90,149,97,160,228,116,12,78,202,50,250,102,171,10,150,167,193,129,209,135,+161,237,93,119,229,108,177,73,124,159,10,137,98,96,164,146,164,7,158,120,97,136,95,80,206,205,169,54,132,109,75,8,+222,93,247,59,252,63,223,35,133,118,252,85,3,231,9,197,46,66,51,249,78,36,83,21,213,89,233,229,254,201,169,245,+139,91,198,26,105,129,153,246,222,109,245,184,91,55,147,10,173,207,205,9,170,146,30,234,129,186,218,178,75,103,209,208,+127,148,185,130,220,133,67,175,169,146,98,149,237,128,21,77,101,173,86,211,1,187,53,81,41,229,61,213,110,55,93,248,+34,98,132,175,102,249,26,247,77,213,254,94,19,100,38,177,167,11,62,171,206,210,7,224,42,34,229,34,102,30,109,83,+189,0,202,118,221,85,63,109,225,103,196,232,189,74,235,249,125,171,83,252,245,118,244,152,222,254,29,108,107,180,237,27,+105,124,233,171,7,196,195,231,103,99,37,241,183,92,118,24,92,83,225,246,51,174,177,94,92,51,235,110,75,239,143,19,+50,200,16,50,202,18,60,163,178,244,191,176,39,71,210,237,236,62,55,203,107,98,203,10,206,6,141,220,68,150,116,3,+192,238,94,176,245,65,98,104,218,251,27,14,165,93,110,232,46,3,204,171,120,36,45,222,161,5,158,170,246,219,90,125,+248,6,8,17,27,121,254,44,2,165,131,219,207,34,1,133,192,71,237,56,71,253,42,124,69,54,97,237,76,8,82,74,+165,30,94,249,98,159,169,236,54,40,43,202,26,16,205,171,149,3,171,199,9,29,150,206,93,176,143,46,163,21,135,27,+124,199,127,30,249,189,233,213,38,153,18,87,110,116,201,57,12,87,195,157,221,81,141,243,135,62,55,169,25,218,248,70,+105,6,254,170,47,213,156,182,77,148,152,43,70,227,5,167,1,79,155,219,102,165,102,106,247,51,148,178,203,187,41,67,+230,15,182,202,131,49,188,65,162,211,22,43,88,224,118,22,220,148,67,192,67,9,118,71,7,126,170,108,233,249,165,118,+149,82,132,200,75,100,169,70,236,166,134,230,229,117,232,71,167,160,248,12,91,244,245,181,127,92,89,252,116,60,216,6,+23,174,234,204,164,217,116,206,27,175,122,104,247,183,66,229,135,158,167,35,10,10,210,115,222,156,72,138,34,47,226,197,+23,142,185,246,180,48,191,36,170,130,157,125,154,51,7,5,132,7,80,35,106,180,176,12,203,240,230,137,193,140,39,102,+45,80,221,191,166,197,145,99,101,19,111,37,129,131,154,252,25,112,89,85,238,243,211,18,66,116,214,209,15,125,106,164,+249,118,93,28,62,35,235,14,65,7,120,35,49,35,248,115,70,100,31,104,181,91,190,131,175,244,0,205,145,200,109,177,+51,174,81,115,225,45,209,134,234,89,45,104,92,241,109,247,1,51,225,112,181,249,133,14,48,136,211,164,25,57,61,80,+241,176,233,151,167,225,192,104,149,1,169,254,116,94,104,135,41,42,217,125,55,157,46,181,57,95,80,92,84,177,184,68,+108,39,232,243,93,226,201,162,150,183,4,101,156,180,252,200,179,132,213,64,174,47,223,68,26,220,177,21,209,17,251,248,+88,8,158,127,93,112,41,33,107,124,111,32,19,54,162,206,244,180,70,44,165,231,205,182,32,113,11,16,46,117,237,100,+93,157,0,68,87,50,40,39,2,195,246,221,194,197,96,56,104,107,241,167,156,174,194,51,239,129,182,96,91,127,126,61,+80,97,65,108,7,78,254,27,115,38,193,89,3,82,23,55,252,80,86,206,184,191,82,1,54,196,109,148,141,57,220,0,+116,129,10,13,237,136,38,44,28,159,71,236,44,206,229,120,227,182,190,89,136,198,131,71,147,21,12,90,57,172,162,228,+74,116,239,238,48,101,19,198,7,221,120,24,230,39,190,203,79,133,171,104,136,41,245,116,118,143,154,221,16,31,109,70,+121,185,82,38,77,133,234,31,75,72,140,233,122,229,122,68,151,71,4,84,76,49,20,70,16,91,22,2,169,204,85,252,+180,189,8,51,167,81,169,219,229,198,88,157,255,137,33,104,0,198,82,60,147,132,168,16,215,178,182,73,211,131,204,194,+214,193,146,37,11,186,6,16,246,73,205,213,57,39,130,241,174,166,36,125,3,109,99,108,61,226,53,85,193,30,250,55,+213,197,180,219,250,246,190,165,209,233,0,96,32,6,103,208,154,16,130,43,77,221,47,27,162,139,100,255,252,92,204,2,+16,107,174,222,212,33,79,182,208,255,255,186,76,144,255,144,236,81,83,241,82,107,105,234,93,61,229,41,149,33,81,36,+106,126,131,139,31,222,104,20,215,44,108,178,190,89,176,154,226,176,76,222,195,25,153,98,179,126,168,250,209,102,187,13,+217,83,151,178,161,117,120,63,23,229,172,221,112,98,175,240,25,186,36,53,142,51,108,128,213,93,235,80,10,17,120,220,+102,242,25,80,206,175,151,203,105,24,92,87,197,127,28,27,121,81,197,58,81,115,208,176,175,116,186,191,252,192,243,73,+153,69,141,11,181,164,180,190,2,20,112,15,64,114,131,177,160,100,49,229,194,12,80,100,251,104,125,132,190,103,27,119,+33,156,239,191,8,107,246,215,251,169,48,223,68,142,145,214,52,140,197,37,50,64,253,103,212,161,115,190,139,195,155,161,+3,59,80,159,27,49,210,167,255,192,153,215,90,252,202,139,170,203,17,123,205,237,44,204,147,18,9,16,248,77,27,164,+75,147,85,43,226,200,95,173,44,240,195,157,61,152,128,33,218,148,77,190,72,52,152,7,70,68,144,233,102,96,118,129,+244,162,196,83,216,105,58,65,106,216,234,238,76,105,75,195,210,85,246,234,104,185,59,144,139,136,78,70,250,207,95,223,+22,118,63,186,79,177,146,196,251,128,235,89,241,38,141,160,11,156,217,227,68,87,128,70,66,241,8,230,237,246,242,223,+3,117,173,227,32,6,115,224,123,16,116,43,34,32,18,95,2,251,66,254,141,144,216,117,148,29,24,27,20,178,1,181,+112,255,123,200,92,202,156,98,93,43,46,3,74,78,218,92,224,255,126,125,175,195,136,161,158,153,146,61,30,16,119,106,+6,180,253,255,159,251,193,14,50,244,189,129,154,247,242,248,196,163,195,31,42,101,59,214,244,22,115,6,23,53,12,139,+118,197,31,220,197,51,158,166,36,102,16,149,107,181,230,177,201,23,10,209,176,50,54,194,30,251,21,239,61,41,151,96,+142,195,57,3,83,63,219,179,208,54,250,99,218,213,122,254,80,203,101,219,94,32,226,232,52,250,86,50,91,9,186,53,+73,243,31,177,95,202,21,108,88,142,134,234,104,176,56,231,200,148,166,60,133,165,81,93,157,39,242,200,230,114,104,246,+27,30,51,22,52,92,18,43,2,77,29,91,104,243,166,72,84,93,150,246,7,64,62,205,87,123,19,172,62,42,207,114,+223,143,187,199,15,148,134,198,90,236,179,9,198,115,13,42,188,171,160,114,77,191,95,23,117,13,111,233,120,63,201,56,+106,222,235,101,229,36,154,255,80,147,206,158,219,10,51,100,37,184,86,251,153,79,12,239,96,103,100,33,211,122,228,203,+124,180,243,87,188,37,48,230,178,72,203,241,164,33,225,208,222,144,255,235,107,18,58,177,46,193,5,58,115,232,102,113,+2,117,14,68,10,54,158,58,200,54,150,229,49,210,46,9,174,135,28,7,87,198,83,95,24,122,33,154,22,93,7,228,+2,106,221,168,162,51,238,206,124,60,255,252,63,129,224,169,119,182,233,252,202,88,113,152,2,195,173,216,122,227,132,185,+35,65,119,138,72,246,248,48,99,54,51,101,149,170,210,135,223,248,151,47,7,244,234,53,209,172,46,16,125,80,165,123,+61,196,233,43,208,199,92,20,243,0,53,92,204,196,196,34,64,172,223,224,37,225,203,23,158,158,114,79,36,196,145,226,+162,225,118,100,194,216,128,6,28,143,143,182,142,174,8,207,199,224,101,6,187,146,86,108,235,133,158,138,253,91,33,87,+154,70,15,224,126,194,128,210,76,192,69,212,55,3,137,72,21,138,199,166,72,189,93,31,253,141,213,151,92,60,182,238,+74,120,208,164,234,136,82,11,228,5,25,43,248,217,187,4,183,157,160,111,174,254,13,246,43,68,223,69,108,178,175,139,+236,114,35,85,67,89,110,10,9,184,183,121,191,95,8,168,168,6,161,4,16,84,60,141,177,106,88,14,45,162,105,53,+118,240,215,24,10,129,241,206,56,86,155,68,150,22,81,136,242,209,23,141,90,166,119,92,92,131,228,132,144,117,255,252,+18,50,106,189,245,233,47,241,8,57,172,13,3,81,65,229,205,91,167,56,130,70,168,104,214,151,251,248,213,68,97,209,+149,50,112,199,253,68,221,208,199,53,220,8,70,65,145,111,220,132,189,42,138,33,55,184,93,238,121,198,230,35,241,140,+204,235,183,214,94,128,20,155,191,38,252,242,29,93,8,8,7,121,172,209,178,236,208,25,10,146,240,46,22,119,120,65,+140,191,137,206,252,27,21,230,165,226,200,192,93,89,82,98,54,196,122,247,232,16,239,95,184,105,162,188,151,102,4,61,+242,80,22,167,247,161,103,47,12,213,115,72,165,15,41,228,45,77,114,94,73,12,21,228,232,104,147,98,213,105,28,94,+128,174,137,192,190,137,240,18,231,108,69,117,103,151,20,167,36,113,147,144,57,44,64,196,162,65,198,187,35,89,243,182,+25,236,27,243,99,204,116,121,108,72,228,2,249,48,14,107,57,120,5,178,190,97,159,73,75,185,224,96,150,153,32,51,+40,249,131,252,229,165,50,40,126,254,67,108,131,194,161,115,33,53,41,24,219,161,66,216,54,126,22,79,237,90,151,236,+228,40,175,225,123,113,204,136,13,120,120,84,110,41,151,208,8,186,238,223,3,73,62,208,179,123,31,110,199,121,170,121,+18,115,55,4,229,176,171,193,193,242,49,192,131,115,12,159,111,188,27,121,214,80,136,213,180,19,53,55,151,135,27,76,+209,106,40,13,203,253,254,255,53,178,6,234,101,230,128,165,136,80,231,14,201,30,100,141,222,211,70,187,107,159,20,104,+57,67,86,191,98,86,165,240,246,72,159,247,237,63,232,52,210,139,85,240,184,59,88,199,31,24,139,216,94,150,3,176,+138,64,82,215,170,29,235,169,101,234,109,45,95,80,0,245,97,162,124,118,156,32,227,194,165,250,180,228,187,13,222,193,+72,248,92,22,31,108,192,187,174,231,237,24,183,62,247,100,178,201,165,126,189,45,66,72,147,136,108,235,178,212,253,196,+46,49,164,222,61,124,201,25,246,5,240,237,197,170,55,165,33,51,164,248,165,53,241,96,64,105,73,50,26,31,17,148,+60,117,90,173,142,33,4,108,242,210,106,18,111,78,52,207,14,181,155,227,166,247,190,143,107,236,54,123,18,163,229,23,+199,115,46,147,15,177,98,65,49,47,30,131,88,253,55,52,196,190,180,74,132,196,111,146,90,49,201,202,134,70,154,137,+44,120,113,36,112,66,147,198,104,193,221,152,254,156,117,252,165,162,147,176,68,11,80,68,252,61,82,18,69,240,71,53,+25,231,144,189,159,175,167,47,201,120,23,218,22,41,149,162,123,249,206,142,137,122,98,91,9,206,167,16,27,142,136,253,+126,72,121,110,72,25,144,190,7,229,153,231,74,197,196,143,165,131,50,10,75,125,218,77,144,119,176,148,125,129,243,190,+181,123,239,149,153,90,56,169,191,141,1,248,239,16,209,53,153,83,104,252,209,37,3,91,114,37,104,72,165,203,193,82,+30,86,132,88,29,204,186,183,69,193,71,186,165,121,68,151,109,231,218,251,45,255,57,113,186,255,250,214,189,160,43,242,+235,55,164,56,237,59,100,29,214,93,52,221,247,40,2,121,59,234,29,100,105,102,102,6,193,24,247,178,229,106,62,61,+212,45,109,215,172,196,136,210,7,99,137,230,219,129,107,6,223,107,146,31,148,237,123,205,93,155,245,97,30,255,245,158,+225,50,51,129,161,106,23,0,247,230,79,196,194,97,31,241,149,182,57,6,145,101,178,189,51,157,40,84,234,235,43,223,+65,29,232,217,100,32,126,200,75,250,193,5,114,9,194,234,42,147,40,157,82,161,150,240,48,187,223,23,220,141,78,0,+0,212,253,113,106,24,116,195,68,121,56,125,211,117,237,198,150,16,184,9,205,93,204,209,248,152,250,107,76,251,189,53,+52,246,227,233,15,172,65,29,64,3,44,136,3,171,84,130,36,154,196,180,220,20,12,45,179,72,166,42,148,167,249,82,+192,224,77,220,175,148,241,201,13,65,115,193,104,152,71,63,192,161,112,196,129,56,254,40,219,4,134,15,0,38,110,53,+74,224,55,45,157,58,250,154,246,96,37,200,153,137,204,197,183,87,8,134,154,63,207,215,5,109,175,205,136,176,127,230,+241,53,25,162,19,206,77,79,88,52,22,55,109,83,92,45,248,24,216,25,224,136,22,69,21,131,226,148,133,206,153,173,+183,100,105,107,27,16,194,147,239,104,25,23,239,43,110,202,53,119,75,89,245,7,126,237,233,205,252,154,97,215,86,5,+181,54,140,245,186,98,78,66,87,87,230,25,168,57,11,224,57,255,206,239,155,208,138,107,170,18,30,157,121,29,150,117,+114,113,226,156,255,224,242,144,212,43,27,106,197,70,26,244,102,41,221,38,179,206,210,145,138,159,165,9,71,58,245,166,+0,111,255,253,43,156,175,244,152,218,139,82,100,254,225,123,114,146,214,215,118,174,247,167,190,9,158,150,15,29,52,179,+74,167,254,85,86,120,168,219,164,90,142,110,3,122,56,59,65,66,176,11,138,90,162,68,8,54,220,195,240,149,30,145,+83,186,147,186,5,144,120,20,40,92,247,162,92,25,5,239,198,33,196,24,12,43,241,108,62,32,81,167,186,106,55,255,+108,82,95,152,167,23,106,53,61,174,75,49,193,179,56,178,0,59,178,18,18,91,112,3,136,135,163,76,43,226,108,195,+233,198,212,84,221,195,101,138,37,127,157,176,33,64,174,118,166,202,18,84,93,10,63,158,46,135,200,247,48,172,250,227,+121,120,225,228,116,195,13,91,0,191,177,66,189,95,106,87,107,57,79,129,150,32,131,211,97,161,183,187,18,87,186,29,+98,208,141,133,205,138,158,69,157,26,170,95,182,191,167,115,213,105,52,209,58,109,180,198,154,42,115,140,112,121,191,36,+123,129,250,180,98,0,41,64,167,200,112,155,160,223,22,27,184,120,94,105,183,136,174,152,255,54,26,179,23,111,10,249,+122,73,191,59,255,98,149,41,7,146,143,251,188,65,95,38,12,63,86,246,40,106,119,4,91,57,35,86,97,122,127,0,+220,214,81,153,11,163,65,191,195,173,18,117,45,35,107,234,15,40,134,200,104,218,188,171,5,211,73,174,71,137,6,206,+162,101,91,166,112,23,218,197,126,34,216,39,128,75,88,126,192,242,37,95,79,23,55,98,39,111,214,93,140,165,190,82,+63,77,35,155,229,146,60,188,175,155,18,25,239,243,120,222,38,236,154,36,22,58,54,165,6,241,146,207,191,44,93,144,+66,221,17,54,88,15,209,127,50,224,238,236,24,95,144,234,125,169,137,106,127,141,6,230,176,84,101,161,63,202,69,233,+246,50,27,111,66,246,137,148,174,121,253,20,140,189,227,19,219,128,43,210,233,88,74,196,118,127,204,68,113,134,80,117,+106,22,33,153,78,81,21,160,211,113,186,49,48,33,152,212,179,142,166,107,123,214,35,29,47,111,240,141,24,121,98,109,+170,29,239,216,35,32,61,187,180,253,171,128,90,1,111,58,162,235,20,46,144,209,88,52,252,178,86,26,166,186,254,143,+232,8,196,135,59,13,77,219,210,117,75,203,100,100,111,145,115,254,191,230,154,213,194,157,20,57,52,6,15,29,170,100,+158,86,66,218,79,46,24,160,83,250,211,116,215,142,98,45,170,220,61,6,171,83,163,57,56,213,37,210,189,19,32,222,+219,195,94,99,81,112,110,98,12,199,239,238,83,19,166,103,92,5,74,63,123,14,53,15,244,215,6,102,180,222,113,100,+252,246,20,63,120,26,172,50,83,183,50,24,212,62,158,169,250,94,162,228,145,201,120,77,93,251,115,207,149,118,182,65,+130,116,242,55,175,147,105,146,126,73,91,35,9,211,47,96,163,146,220,191,76,124,20,181,48,102,204,254,220,56,247,87,+80,139,51,218,47,102,175,17,98,162,85,179,184,172,210,196,241,201,23,243,17,69,102,112,15,131,142,187,166,164,12,140,+67,222,133,206,223,15,84,140,210,206,58,244,194,210,141,149,192,185,165,254,178,98,234,118,73,169,245,6,115,195,32,205,+24,186,192,76,253,219,225,122,163,183,12,65,22,90,163,112,249,24,191,15,187,39,82,253,48,164,5,56,25,218,71,196,+2,239,30,157,170,239,84,98,49,247,210,123,39,149,249,196,203,99,0,247,52,137,150,186,160,209,113,222,54,35,179,129,+227,208,112,7,95,21,16,132,24,123,217,192,210,238,64,226,14,145,26,95,107,130,99,64,2,135,144,179,20,32,18,126,+162,1,9,37,71,250,225,83,31,28,130,240,163,112,59,234,123,112,8,215,77,143,42,241,73,146,124,132,1,125,181,125,+224,115,28,152,88,111,56,103,52,53,142,216,210,252,38,143,248,251,176,156,167,96,81,44,11,73,125,32,206,122,128,132,+153,144,52,72,198,157,162,140,223,40,136,27,133,137,24,7,95,73,242,24,106,190,69,203,136,58,178,10,15,67,195,187,+37,50,94,87,101,75,218,5,187,148,147,241,35,55,21,227,253,35,118,9,85,234,168,253,126,139,239,47,20,145,105,234,+133,202,151,86,3,113,192,162,108,44,58,152,226,132,134,176,218,32,117,149,116,130,18,182,132,8,184,70,160,201,10,36,+214,41,10,182,238,114,135,13,48,105,39,44,188,111,195,51,160,130,224,250,129,18,26,65,139,17,116,236,143,5,176,228,+76,111,83,139,90,109,43,113,99,7,21,17,8,162,223,155,157,124,206,112,123,159,198,238,240,67,34,119,176,138,61,119,+25,241,156,23,230,238,156,130,234,157,183,10,187,64,237,84,241,99,224,223,4,93,86,229,71,82,255,252,169,244,208,225,+179,245,63,250,239,126,99,186,217,3,182,73,238,122,99,27,252,170,163,140,12,62,154,219,136,149,112,30,254,25,95,68,+145,217,150,112,69,235,135,53,244,128,126,26,11,147,203,12,116,15,233,56,9,99,92,231,208,237,63,193,107,66,14,149,+208,166,194,176,7,177,65,137,90,82,127,141,32,201,198,164,187,5,108,136,185,116,84,103,115,74,6,36,228,216,22,248,+160,233,165,9,149,199,174,120,103,172,205,175,36,78,21,117,165,161,99,250,146,42,148,38,235,70,145,193,167,73,14,132,+10,230,4,186,41,218,47,73,204,13,30,21,27,17,163,146,113,150,31,104,150,8,129,61,197,111,215,115,0,93,56,9,+57,83,210,165,116,219,55,162,27,107,65,185,49,25,136,19,140,36,41,22,144,68,199,124,125,178,41,35,191,12,53,219,+78,122,28,218,85,199,69,56,37,188,39,17,148,1,98,68,136,171,229,196,112,162,17,4,71,1,140,228,92,117,236,192,+117,128,233,83,144,29,98,92,200,84,118,152,206,177,30,143,88,193,245,172,42,183,64,113,199,148,102,50,162,132,244,142,+181,239,52,137,243,11,233,223,15,10,177,53,204,137,93,151,131,184,44,50,14,4,14,21,71,133,248,2,79,194,227,25,+146,254,76,235,45,239,219,137,1,62,191,50,255,210,203,135,135,133,36,17,214,99,38,232,143,75,23,25,130,117,21,2,+231,158,20,89,23,68,81,175,180,199,186,206,185,223,55,73,69,67,185,191,95,175,31,135,67,130,92,218,194,91,130,30,+65,210,89,137,16,213,105,130,206,97,218,128,249,172,217,188,247,12,189,25,101,105,82,153,202,68,235,197,244,187,148,210,+122,163,28,69,54,193,6,100,183,45,113,110,186,90,100,113,167,243,112,112,28,183,130,58,231,255,49,134,50,163,130,127,+112,114,118,78,98,110,245,249,200,71,224,158,25,9,57,242,134,89,129,16,119,202,62,227,95,176,76,201,79,63,139,41,+142,102,33,77,199,150,246,42,147,166,93,137,108,68,2,226,224,67,132,30,148,79,17,21,228,66,142,133,128,117,61,136,+85,220,255,9,41,148,0,250,29,98,197,158,170,156,53,63,158,177,4,10,188,194,66,105,146,136,166,95,149,226,70,129,+89,48,247,11,67,202,196,188,9,154,97,0,28,131,116,1,187,55,228,1,165,206,242,191,98,112,89,46,4,48,25,103,+161,60,38,164,248,77,138,186,47,161,22,45,227,53,80,175,178,189,247,131,106,92,236,154,25,75,160,81,54,117,212,41,+168,31,93,59,148,204,221,63,93,150,25,127,106,146,201,225,208,34,8,140,132,167,132,106,135,217,87,170,137,0,48,88,+249,5,91,128,209,201,102,95,93,14,95,83,239,163,195,135,198,230,244,10,71,66,119,97,211,51,198,20,139,151,58,175,+226,66,109,192,41,16,224,242,72,170,225,16,178,120,225,252,29,228,37,135,110,68,20,211,58,241,199,80,43,84,164,30,+225,238,171,186,127,253,100,43,96,234,190,59,76,191,169,144,15,145,253,243,110,96,168,172,230,213,108,55,131,138,237,87,+131,161,249,217,90,247,116,228,238,47,16,82,96,124,80,25,141,165,118,30,124,164,201,221,184,159,139,140,83,251,190,1,+237,152,59,3,94,230,118,54,219,221,243,168,231,2,21,230,125,159,173,149,127,195,196,202,30,213,86,32,253,181,117,91,+172,181,176,114,9,140,137,227,173,76,104,202,171,61,73,31,24,212,20,126,16,176,166,77,195,232,58,65,66,171,24,136,+143,148,249,224,4,216,150,33,220,233,43,248,47,22,84,4,215,127,154,100,232,149,55,193,176,158,205,187,139,15,232,77,+4,183,119,119,72,214,69,16,130,55,87,57,11,211,153,177,6,112,1,146,126,46,83,110,6,232,160,225,27,150,48,120,+98,139,202,134,177,113,221,185,255,253,22,105,183,132,130,186,54,98,245,155,240,228,104,98,251,85,110,208,30,73,41,213,+195,177,90,162,252,198,102,67,3,39,232,188,158,43,190,138,195,50,22,213,11,150,69,229,127,109,219,130,152,12,252,173,+150,111,101,74,41,122,67,226,151,251,148,63,94,164,26,14,114,198,236,149,25,90,115,254,63,118,240,154,94,242,95,107,+36,62,189,42,222,191,105,153,118,254,242,14,188,97,173,37,143,94,215,48,79,34,201,118,136,174,112,232,20,8,6,244,+209,206,172,135,185,73,222,115,64,177,114,202,144,161,228,96,191,234,6,33,75,251,83,104,193,58,158,185,251,243,174,134,+81,95,68,85,26,243,135,24,12,129,210,59,14,144,48,11,152,39,131,124,150,57,120,206,210,159,28,130,27,159,190,162,+5,131,220,224,247,182,166,154,28,206,165,88,140,135,31,109,42,75,192,27,243,113,169,227,124,247,248,224,114,121,243,38,+44,120,219,226,87,135,254,118,114,131,146,79,210,151,236,27,163,24,247,158,66,46,23,191,78,16,27,229,235,22,126,137,+202,73,150,36,17,129,94,82,171,75,255,15,13,201,193,237,151,16,210,103,43,192,40,17,39,128,80,12,140,192,127,134,+0,152,227,211,203,54,119,221,48,75,72,218,183,3,177,120,176,221,85,185,78,6,137,149,213,73,171,56,89,42,207,47,+112,29,238,36,152,140,198,54,29,159,128,224,88,127,191,28,69,58,157,119,230,66,69,22,63,248,69,10,173,16,213,137,+63,233,100,108,254,84,106,86,65,147,94,183,86,87,52,117,55,52,178,54,34,228,79,185,228,191,168,214,142,137,75,107,+68,79,50,2,223,194,37,183,97,124,56,118,71,62,88,134,232,199,178,246,97,54,71,219,8,72,105,2,97,237,166,87,+88,120,169,86,202,168,55,67,122,227,156,78,209,196,209,62,73,16,101,80,91,208,87,128,96,232,155,30,67,111,85,102,+113,131,36,5,244,155,248,52,30,169,115,253,34,96,177,18,28,105,206,41,232,76,70,240,226,185,70,174,226,33,215,129,+7,136,250,200,106,61,139,147,18,32,174,143,158,188,21,231,204,237,151,177,227,1,21,46,64,164,39,123,33,71,88,43,+42,254,184,184,248,192,174,130,254,49,211,23,58,91,28,221,177,92,91,194,208,69,239,56,4,119,190,97,248,217,206,5,+6,3,187,215,73,212,119,249,176,243,119,180,127,136,213,124,204,187,29,216,216,201,60,160,143,32,219,143,195,110,91,121,+224,29,169,255,209,222,170,15,58,136,178,76,126,43,58,69,148,202,190,93,29,174,25,143,119,222,89,185,114,93,24,30,+59,164,48,143,134,237,100,113,40,91,212,113,59,138,155,175,69,15,85,237,85,202,62,85,224,102,138,36,72,145,64,45,+173,219,101,235,61,152,163,198,210,191,227,17,83,38,48,81,55,118,88,207,136,237,22,48,188,199,30,190,43,234,177,175,+255,155,15,13,31,99,81,179,203,108,36,63,64,50,78,95,124,28,29,95,194,168,116,246,162,198,47,38,112,178,146,70,+176,175,100,8,148,210,160,239,234,37,203,73,221,230,37,199,36,255,246,6,159,117,108,11,251,217,36,138,38,87,8,62,+252,67,5,165,162,139,212,125,160,187,33,198,41,37,142,50,100,61,44,101,105,114,159,50,238,25,36,241,32,5,68,194,+253,103,246,152,153,82,87,153,183,212,185,142,14,190,214,117,150,54,22,57,128,162,140,104,144,187,157,25,123,81,128,59,+73,37,249,140,100,54,71,83,129,172,209,210,114,119,183,203,183,11,138,183,66,226,168,36,121,226,223,30,224,89,122,9,+5,102,130,191,209,68,154,212,143,99,241,172,111,71,180,184,125,170,29,43,181,3,126,237,203,130,85,48,90,13,138,214,+182,101,226,248,118,233,181,18,212,109,11,208,30,109,222,246,171,37,7,67,24,206,194,197,44,61,79,251,115,133,254,165,+11,133,230,191,105,176,10,86,16,218,161,151,143,233,174,115,108,203,40,21,175,45,204,179,40,64,207,10,200,3,232,55,+219,126,22,23,208,27,10,38,176,31,136,101,44,48,191,9,216,238,116,83,111,118,15,123,99,126,227,10,82,207,106,71,+238,74,16,39,69,206,46,96,77,130,172,175,166,65,195,230,213,86,226,250,249,186,77,250,171,66,82,140,192,185,239,174,+180,132,49,73,69,215,131,146,38,147,207,74,6,103,106,136,120,207,87,2,142,27,126,163,29,164,190,50,151,0,84,112,+75,41,46,93,136,99,197,158,70,177,134,141,56,206,173,58,177,240,41,77,46,255,252,169,244,208,225,179,245,63,250,249,+52,46,120,82,113,102,227,117,75,173,19,139,147,114,30,103,179,14,93,0,31,160,61,96,78,238,4,207,194,158,104,38,+91,223,169,5,44,165,160,73,53,130,137,200,75,203,141,109,148,90,199,56,89,117,74,92,64,164,237,114,243,238,133,132,+75,195,119,162,249,78,144,70,133,6,90,45,35,130,137,71,56,243,119,97,104,85,1,150,161,236,71,1,239,44,46,188,+183,74,86,208,74,172,129,145,192,79,169,0,0,67,203,115,100,91,197,219,214,39,216,58,12,228,232,165,83,56,32,174,+104,102,164,196,129,56,220,150,149,17,111,86,142,79,5,68,248,202,136,255,105,71,94,244,162,179,93,171,133,249,40,59,+214,96,239,100,181,15,138,197,111,97,29,152,71,239,76,62,140,130,241,219,34,61,97,78,155,246,196,173,214,218,114,57,+109,65,67,85,176,1,145,205,55,90,225,72,18,165,153,120,100,246,207,154,115,17,147,233,45,60,217,153,107,42,125,107,+90,208,3,103,148,55,179,36,166,226,197,152,167,77,225,88,193,71,120,61,52,48,67,91,209,173,21,224,83,90,198,69,+62,206,59,111,71,110,155,76,126,110,88,133,92,15,15,54,174,86,125,104,62,92,85,217,132,110,57,189,29,137,7,105,+182,157,24,248,175,192,80,254,27,110,188,22,25,95,54,202,6,156,246,47,119,93,149,241,79,195,188,77,80,215,116,151,+83,169,213,86,113,249,7,34,196,225,227,165,17,135,202,82,152,238,118,66,113,60,232,3,219,83,142,124,134,98,134,209,+199,230,191,86,235,180,100,39,217,74,154,191,113,108,127,166,184,82,60,131,30,75,219,25,70,252,52,253,119,219,108,224,+90,221,27,142,31,3,242,168,14,29,143,176,108,162,21,76,17,116,68,2,95,184,154,192,28,6,118,63,171,33,244,128,+159,6,164,53,221,110,87,141,247,141,53,145,97,128,171,16,238,32,227,67,14,28,26,128,86,134,194,104,174,185,234,157,+62,131,62,214,195,114,68,29,224,179,224,216,198,77,173,207,171,89,225,17,227,30,31,244,45,212,99,108,34,120,235,69,+76,40,239,11,77,53,45,145,121,38,209,23,219,158,158,77,120,86,234,36,11,1,60,163,61,192,25,223,143,214,181,53,+39,227,130,162,230,40,242,181,109,147,141,235,172,164,3,215,148,5,2,190,127,240,189,199,105,204,110,123,87,225,61,70,+6,26,192,102,243,115,199,179,197,140,17,79,37,149,221,102,224,28,46,163,13,15,155,25,139,226,56,69,219,177,13,25,+119,43,179,197,93,241,3,220,215,156,159,101,73,186,138,188,195,34,175,142,18,127,252,27,0,205,53,97,124,246,14,237,+53,164,90,251,50,144,214,112,199,176,113,241,25,139,202,96,107,253,125,181,9,67,79,15,67,35,168,189,106,159,72,40,+42,133,61,120,45,162,57,218,48,146,91,161,117,123,107,121,239,145,210,17,197,174,216,241,26,45,240,235,221,171,4,2,+237,53,182,210,112,131,10,181,250,113,73,61,159,235,142,11,250,45,137,43,26,48,11,199,176,4,203,24,158,36,42,245,+140,118,199,92,211,107,39,13,160,66,154,97,122,217,137,0,252,76,159,5,216,237,216,217,131,204,106,102,160,54,85,150,+5,81,23,218,182,133,123,188,173,3,18,228,140,196,251,117,74,15,109,164,43,225,68,242,124,82,252,124,199,57,198,247,+59,248,147,174,144,35,123,46,178,35,75,155,21,11,145,240,150,76,87,32,240,41,21,54,14,79,213,10,95,57,56,160,+223,61,254,162,213,254,183,209,153,203,57,146,98,55,14,251,171,91,174,110,170,80,114,229,199,78,227,241,32,76,126,209,+57,3,90,83,244,200,254,59,79,122,107,161,95,69,93,83,86,210,70,87,20,168,229,27,103,6,29,174,7,170,73,182,+222,197,223,122,7,90,29,212,163,47,251,91,123,114,78,125,94,79,46,125,60,217,148,87,122,80,193,241,103,93,56,192,+194,219,82,13,112,179,63,107,228,82,211,135,43,159,163,177,225,65,99,6,44,59,51,169,38,139,14,163,34,5,101,142,+50,138,154,213,246,135,40,148,62,149,18,203,16,112,149,30,207,107,28,25,77,226,199,3,50,209,213,4,6,83,41,133,+45,239,80,35,148,197,17,195,172,253,205,99,166,203,31,120,70,83,196,197,10,34,77,62,108,59,116,42,132,181,191,147,+241,212,197,49,113,248,195,177,73,167,86,30,255,59,35,113,52,40,199,46,180,191,49,223,171,95,72,62,152,227,187,55,+200,7,132,194,244,172,80,157,206,95,221,122,14,118,51,133,156,0,105,217,97,20,90,225,33,22,56,120,255,253,116,120,+135,159,174,11,53,221,224,49,223,229,112,247,220,179,88,77,186,214,139,72,72,173,87,22,171,4,15,237,247,237,71,220,+89,234,30,39,18,41,48,4,223,218,87,212,59,3,241,75,24,207,134,217,46,137,34,253,70,178,29,94,192,136,49,79,+142,202,17,35,112,248,155,208,87,13,114,99,26,253,248,57,250,47,227,17,189,120,60,126,190,11,94,33,84,153,91,10,+127,152,219,49,52,188,98,231,166,64,48,120,25,156,78,245,215,210,77,143,101,147,92,34,7,248,124,19,32,23,97,236,+163,173,231,138,70,160,101,98,254,234,178,36,171,97,162,165,8,9,238,130,229,225,29,130,63,2,36,99,155,115,129,227,+52,51,22,71,14,139,24,161,132,228,205,56,138,83,95,223,234,145,8,229,236,83,245,209,129,77,130,186,226,204,194,152,+102,71,49,16,215,34,41,209,11,24,69,103,22,201,100,130,0,252,215,48,173,244,31,124,248,89,97,2,218,166,83,41,+126,200,45,237,15,123,248,252,67,230,99,71,168,142,151,73,49,178,190,100,146,93,139,38,237,49,37,40,138,41,166,88,+74,209,203,105,186,171,38,103,151,18,184,34,27,229,191,160,165,70,91,2,175,102,139,72,39,114,197,85,60,109,233,153,+10,100,229,69,54,71,33,219,204,42,212,161,172,196,169,148,108,149,129,223,68,43,72,74,89,220,64,92,234,119,98,182,+144,101,62,70,15,63,227,183,135,126,51,75,42,21,93,92,164,237,26,34,50,242,110,214,254,202,160,144,15,94,245,64,+45,158,117,96,213,63,144,10,152,5,35,84,111,176,14,165,201,8,84,150,95,30,217,20,251,183,230,50,31,254,244,187,+28,133,210,107,40,188,79,255,233,220,34,98,231,225,109,32,247,132,199,222,30,159,130,125,61,225,251,67,180,45,81,23,+13,146,113,214,44,226,6,245,89,59,21,204,131,149,53,164,235,116,129,109,98,57,249,4,156,70,67,244,35,249,179,192,+141,57,240,47,104,118,113,75,179,118,222,253,99,207,233,254,171,177,58,43,213,228,153,0,42,147,164,30,145,21,208,189,+145,13,72,110,141,124,155,59,218,249,195,41,196,33,141,29,200,0,126,168,42,8,195,151,112,91,207,187,146,125,73,189,+200,163,37,238,0,35,250,25,105,132,181,226,75,224,194,87,168,21,53,66,188,105,29,71,188,106,70,7,98,173,78,208,+105,84,111,95,196,61,109,230,29,125,238,199,220,27,191,168,241,78,118,63,124,212,71,116,25,169,32,142,128,15,46,155,+39,128,142,162,42,122,2,19,74,152,30,32,229,86,131,206,92,123,37,113,14,202,226,161,232,237,189,59,71,19,166,201,+126,235,58,60,255,144,93,111,93,180,62,159,27,182,121,5,76,37,166,104,218,89,158,162,195,5,188,136,184,237,212,208,+183,127,190,109,76,5,217,195,80,206,64,53,146,99,127,162,181,111,119,245,123,58,46,140,137,68,159,232,31,5,55,87,+70,211,101,148,65,254,249,199,226,200,73,16,68,159,137,248,78,12,85,212,229,248,193,141,207,187,3,90,69,187,208,8,+69,237,142,90,17,201,224,196,246,151,166,29,154,51,132,251,117,2,210,14,62,182,69,189,123,163,118,90,213,176,224,139,+120,195,161,60,243,171,55,225,138,32,45,232,75,172,200,124,195,190,67,47,193,64,128,152,214,239,160,175,121,213,11,141,+253,65,49,63,81,1,43,209,226,188,124,33,255,129,126,251,214,81,182,93,214,215,85,15,255,52,149,179,222,109,104,50,+21,78,254,86,207,55,50,223,197,116,0,189,226,64,164,13,15,65,218,63,153,224,78,78,236,112,179,183,0,225,51,91,+148,196,192,63,68,128,183,82,234,234,84,195,227,211,172,7,110,34,58,31,60,208,210,76,55,205,55,30,174,246,87,60,+151,12,176,30,194,29,28,92,56,250,125,119,43,152,8,218,87,52,237,178,86,115,173,234,252,30,13,213,8,121,237,164,+111,124,144,105,104,11,149,137,100,38,85,188,176,139,191,77,118,23,32,44,6,43,129,23,64,168,103,113,186,150,205,11,+229,10,97,179,224,180,227,210,195,134,24,12,88,183,22,157,202,176,56,138,75,223,16,31,166,66,133,90,163,150,172,66,+213,98,176,143,96,183,44,212,184,102,138,26,88,242,82,198,76,76,153,232,41,167,190,107,142,224,143,160,127,236,107,31,+74,99,137,14,10,75,126,234,12,232,93,150,60,164,174,154,223,43,51,174,214,33,244,43,251,189,2,36,148,21,5,191,+239,223,65,45,89,66,204,20,197,25,116,39,226,227,160,91,45,186,51,73,10,18,189,104,60,102,61,247,91,242,58,241,+138,29,163,112,110,77,175,137,12,8,0,70,28,108,250,123,16,60,43,250,10,140,196,251,70,150,17,139,8,27,169,115,+140,106,134,146,158,173,137,137,44,110,5,233,225,221,217,175,217,111,85,132,87,7,248,171,106,91,165,158,6,66,237,131,+159,8,124,182,176,214,77,31,118,122,23,40,28,243,99,255,252,169,244,208,225,179,251,102,58,191,182,253,6,139,41,158,+77,220,97,235,237,232,208,78,154,104,44,241,145,26,166,199,31,106,241,121,178,53,167,138,143,4,156,235,113,51,213,46,+54,12,23,194,220,237,125,238,147,185,150,51,137,62,105,48,130,59,119,158,65,147,49,59,96,90,209,109,237,26,29,225,+56,206,232,125,2,140,37,193,142,228,34,206,199,128,226,100,58,146,135,138,141,78,56,171,39,3,191,22,40,167,212,122,+64,235,3,237,45,192,136,106,30,61,185,64,72,46,55,112,223,180,11,172,246,198,63,225,110,164,106,24,146,229,66,180,+80,2,231,237,146,92,16,74,143,156,117,22,252,213,107,17,123,208,82,92,82,213,152,200,173,126,41,106,231,239,66,26,+122,154,120,44,187,75,248,79,132,70,191,144,89,168,146,119,37,166,233,36,200,160,55,214,6,44,9,120,10,137,153,160,+140,244,175,180,203,55,193,42,72,39,73,93,30,18,113,46,94,217,212,112,70,131,136,123,21,122,228,253,5,225,120,230,+105,35,145,161,254,10,213,10,52,204,100,122,253,175,217,51,139,232,151,7,11,238,22,81,13,46,33,94,200,130,168,99,+28,193,14,223,95,203,186,174,69,110,3,18,208,60,123,87,213,171,237,36,160,140,73,183,93,92,250,9,249,92,235,31,+94,229,232,214,46,12,132,165,82,108,147,107,96,137,39,210,29,192,56,54,101,15,236,7,234,111,109,4,209,79,222,234,+138,169,97,34,69,91,94,66,123,58,110,92,161,46,159,156,169,11,219,27,81,77,41,38,103,32,88,28,204,60,233,68,+201,100,50,127,66,163,51,140,81,44,88,121,253,15,207,15,117,214,73,22,173,224,187,241,30,221,117,2,246,93,137,63,+207,51,144,51,175,92,178,55,102,182,78,249,113,49,105,97,9,111,161,5,228,178,150,85,251,252,156,141,39,206,240,68,+239,232,196,87,114,119,190,34,238,104,97,178,144,101,116,46,34,21,194,37,153,228,55,98,202,86,81,133,166,255,243,110,+238,11,38,155,185,120,94,13,234,115,141,91,41,44,131,199,236,33,126,59,120,0,19,108,224,101,65,82,48,4,96,76,+231,69,63,228,196,195,185,252,245,34,210,181,193,47,1,1,162,110,69,167,79,107,109,163,120,104,117,237,157,168,24,198,+30,248,188,65,141,81,103,62,84,55,199,10,174,175,34,116,202,166,252,60,9,159,1,200,50,232,11,195,181,234,212,36,+69,200,10,51,127,195,148,52,216,68,87,9,174,78,220,57,105,34,192,221,113,20,200,49,45,100,53,74,58,195,210,170,+43,210,160,213,119,161,70,64,81,60,34,5,32,180,92,185,224,158,36,46,237,246,88,243,226,246,168,55,51,8,70,2,+4,149,39,37,101,251,72,155,55,250,190,138,237,143,96,84,242,103,114,99,18,194,82,74,142,55,114,239,125,71,60,19,+132,147,150,252,48,82,217,3,171,1,40,170,68,211,42,53,68,246,219,62,233,253,244,50,198,68,105,216,139,154,109,233,+225,123,142,58,195,206,200,32,230,17,163,178,121,7,222,213,28,88,70,237,40,237,186,154,70,46,73,188,91,192,111,36,+208,203,125,245,129,215,139,47,68,142,164,8,27,222,125,222,206,247,100,183,61,232,37,84,248,74,183,233,36,37,206,87,+243,103,136,22,168,202,116,213,40,127,173,7,103,130,74,188,186,205,198,53,45,127,214,94,251,64,136,223,85,84,1,31,+167,167,109,47,77,26,37,193,204,115,29,157,55,17,213,117,245,217,238,51,83,134,49,197,34,94,226,103,100,148,209,32,+185,101,11,92,195,174,34,112,204,219,5,57,43,47,24,183,220,213,178,90,237,53,240,127,32,61,200,229,110,133,66,123,+6,26,117,22,236,34,7,46,46,3,184,168,162,71,219,254,122,43,76,224,41,108,203,105,217,56,15,213,229,35,100,105,+229,74,113,31,21,30,197,84,196,170,28,248,219,156,18,145,233,96,7,223,246,248,193,128,54,35,78,5,219,200,14,71,+69,75,35,46,114,117,198,65,3,126,211,206,3,244,232,86,223,246,209,143,221,34,124,254,89,50,175,13,94,108,201,218,+172,129,22,93,90,221,24,221,118,97,84,36,91,11,35,230,87,217,86,27,120,47,240,96,101,201,151,21,29,242,153,49,+77,1,146,24,130,105,237,136,18,11,165,141,238,152,44,27,155,182,185,157,54,108,217,191,161,249,126,97,25,76,201,151,+29,197,193,241,182,133,128,63,134,148,241,27,255,196,241,226,98,124,39,224,35,149,20,218,0,20,70,119,254,57,224,203,+217,154,46,0,44,74,165,107,135,142,41,12,110,116,170,246,86,176,57,51,107,88,64,127,82,63,120,27,52,105,143,92,+255,253,134,232,239,144,150,133,25,113,240,192,74,110,210,71,38,50,107,161,108,116,21,131,143,206,82,37,23,44,191,129,+43,3,20,144,200,252,200,136,155,46,214,5,228,190,9,107,163,179,118,85,14,134,89,105,211,184,202,94,28,20,246,184,+169,9,90,231,73,142,188,121,128,151,251,84,55,236,9,145,23,77,162,47,17,126,206,193,132,83,195,199,53,21,103,232,+236,110,168,73,82,80,50,88,28,76,191,192,54,239,231,17,87,60,104,59,146,123,55,68,123,105,77,58,249,145,54,84,+12,159,179,237,85,69,195,1,114,100,82,46,221,245,34,129,48,54,105,239,200,208,59,70,233,222,24,71,68,11,45,202,+181,67,247,230,145,110,229,173,68,145,41,0,48,99,203,165,11,10,114,185,33,157,131,228,153,241,156,31,230,120,243,198,+250,139,242,197,51,23,80,132,180,150,177,190,83,10,27,219,51,181,11,157,128,239,122,195,213,82,144,57,69,85,90,157,+6,201,120,94,18,74,149,37,79,127,188,67,199,97,69,93,211,1,50,6,233,37,216,63,157,216,50,150,100,212,71,216,+53,231,105,48,63,193,103,22,62,251,69,89,241,122,54,191,118,220,65,84,41,1,223,141,72,203,1,5,11,223,192,211,+1,224,98,78,51,38,48,69,77,188,95,37,221,69,5,66,155,24,29,145,59,185,91,38,248,227,107,149,157,88,192,255,+91,16,94,82,167,220,56,79,69,130,247,4,190,162,87,225,199,54,39,237,64,223,77,81,135,210,198,253,70,46,141,125,+8,251,172,132,158,5,140,193,46,29,177,208,7,68,211,97,141,121,73,65,113,242,81,211,116,6,206,40,91,91,108,87,+221,7,194,130,204,222,214,172,205,59,216,211,95,110,7,8,42,206,212,144,33,242,242,208,44,209,67,228,184,200,175,60,+185,35,181,52,254,40,151,214,105,16,124,80,104,203,77,179,246,127,55,142,247,92,60,114,104,24,15,34,133,254,183,234,+52,94,250,152,247,80,175,127,37,92,97,143,126,43,66,221,147,240,153,65,145,148,95,223,114,95,212,11,103,253,30,157,+176,226,157,249,41,173,137,225,189,223,51,24,235,205,222,188,198,62,184,216,210,191,93,27,109,14,82,8,25,97,243,92,+122,176,19,224,23,115,8,102,27,111,190,8,165,131,10,35,53,235,5,254,249,239,45,111,85,238,192,24,174,223,218,138,+236,71,200,65,251,227,162,158,76,122,208,118,60,233,230,213,244,95,239,156,40,129,197,234,127,238,124,60,140,216,251,116,+135,79,13,20,7,102,206,198,227,3,83,137,107,35,10,168,59,53,233,54,176,30,233,100,47,8,175,0,222,181,16,46,+71,247,227,38,49,121,155,86,226,81,154,180,89,24,117,56,107,247,246,220,192,242,199,237,27,16,133,233,95,45,121,242,+212,47,151,229,77,71,0,240,99,162,15,96,11,111,75,255,53,111,215,18,7,194,165,229,136,131,200,230,38,60,107,68,+142,10,100,135,219,46,125,88,167,121,2,2,199,130,103,32,81,189,81,175,234,163,67,125,9,173,42,40,184,241,132,203,+134,140,220,224,242,248,51,212,48,139,250,71,170,123,216,30,179,202,199,122,125,125,231,99,245,152,49,92,85,64,245,53,+108,65,146,22,181,227,34,63,75,89,51,20,28,225,118,173,50,71,105,138,179,177,192,116,11,230,91,205,69,221,209,31,+159,250,132,192,229,223,250,133,196,251,219,181,184,27,195,170,180,20,116,92,247,217,14,83,45,211,206,80,41,76,148,95,+222,146,255,199,234,8,79,102,6,222,239,56,61,102,19,80,231,252,16,168,0,81,19,139,143,9,136,127,166,96,237,198,+40,28,61,96,115,138,201,115,88,22,197,132,144,247,157,49,106,43,113,97,54,197,214,194,53,162,81,81,209,209,173,219,+143,183,167,210,70,220,170,164,214,155,101,216,175,188,11,34,3,164,57,28,69,94,201,169,17,190,193,199,93,129,184,106,+75,230,190,49,102,229,127,180,198,17,48,216,183,110,169,143,178,48,180,198,235,137,108,95,5,222,101,69,50,88,228,199,+176,86,145,88,248,116,29,60,239,165,136,91,74,251,56,220,9,57,16,135,31,7,18,156,68,177,70,80,167,30,82,22,+146,28,75,7,121,70,251,169,131,254,25,89,106,224,223,50,2,51,36,243,174,155,243,227,161,158,157,79,51,189,3,102,+163,16,242,207,67,73,40,151,139,195,198,45,199,50,136,161,42,49,30,11,111,31,67,124,148,99,211,54,60,131,89,21,+72,163,166,20,192,42,50,10,97,30,161,227,55,173,226,0,235,132,79,123,122,118,253,206,73,44,223,234,53,211,164,55,+135,42,192,101,51,231,62,130,90,8,238,223,74,90,91,139,74,4,133,84,109,174,177,186,177,236,236,175,220,127,73,244,+175,198,218,152,27,179,112,185,253,39,45,13,186,95,41,206,106,252,55,119,199,77,19,12,0,20,51,74,190,49,181,68,+61,214,161,57,176,164,102,165,105,198,191,11,201,248,113,225,77,48,129,36,181,59,91,86,7,132,53,228,138,24,226,9,+47,119,115,25,148,91,4,215,90,75,107,198,52,99,113,127,135,210,70,23,229,15,162,255,253,205,50,14,175,179,11,136,+247,109,99,54,213,217,78,5,202,62,172,169,86,189,123,231,20,146,63,106,155,192,31,117,176,150,219,108,88,191,232,89,+183,227,35,85,246,105,38,202,246,11,94,136,35,28,52,52,106,40,56,200,125,78,253,21,46,170,97,188,201,253,79,7,+146,34,116,15,233,53,254,210,18,45,47,191,196,253,98,70,15,205,157,198,188,109,15,51,78,93,205,104,197,208,103,85,+176,203,1,42,112,133,138,59,136,117,61,60,84,201,84,190,203,11,247,234,135,70,203,200,238,72,152,64,227,3,84,214,+9,219,86,174,129,149,103,97,249,16,86,226,120,252,115,209,58,107,247,105,117,199,55,93,208,140,155,8,65,95,201,211,+81,238,128,101,105,178,189,194,255,116,34,198,100,181,68,179,205,147,193,181,203,34,109,62,11,207,184,95,67,81,99,50,+244,38,26,240,170,186,203,75,192,201,233,149,63,198,133,207,45,22,204,143,230,47,103,178,133,220,96,24,166,238,169,119,+243,120,68,103,254,62,70,23,14,74,49,188,231,138,1,1,134,226,27,186,139,201,25,45,198,204,68,190,47,249,214,111,+176,172,188,37,60,40,133,164,77,24,93,36,129,204,24,252,239,124,65,247,84,190,41,173,204,55,140,7,27,151,41,215,+19,88,251,219,219,169,108,99,83,235,192,175,67,134,104,175,174,8,31,88,138,177,251,131,78,183,73,254,59,57,217,16,+247,229,115,77,220,70,98,93,201,193,185,37,114,1,89,61,149,1,174,195,28,243,220,244,68,91,107,144,51,190,246,128,+46,145,183,207,60,26,242,187,113,248,234,245,172,139,230,64,71,177,203,137,56,8,184,167,54,218,132,79,52,168,176,130,+152,35,114,34,214,60,214,53,9,177,254,91,21,44,226,190,103,36,141,133,152,195,38,143,166,56,88,239,177,198,155,196,+123,3,59,200,51,122,169,28,226,139,108,252,206,47,75,90,112,83,153,158,238,2,3,224,183,93,67,37,234,113,51,110,+210,199,67,189,25,92,188,167,190,38,241,58,176,44,208,66,149,1,114,253,234,99,150,168,57,238,155,167,113,224,230,176,+130,138,122,112,187,49,254,250,159,33,212,250,237,240,115,144,223,217,123,18,66,155,195,113,104,18,183,31,250,70,66,96,+203,169,109,194,170,3,27,21,204,173,109,112,192,134,77,203,130,101,115,163,57,63,166,106,18,137,76,244,229,49,3,153,+151,132,105,230,96,219,42,14,119,208,13,243,229,49,131,242,121,226,48,231,53,182,182,100,10,2,179,7,237,206,23,219,+39,188,145,195,107,172,69,137,255,54,67,208,28,165,106,159,200,113,207,152,99,105,105,6,135,40,189,147,2,169,139,55,+193,107,217,223,221,149,219,59,240,30,237,18,252,95,177,81,146,164,246,226,133,180,194,88,15,136,20,1,255,170,227,45,+154,242,91,229,230,183,179,210,232,200,16,65,184,193,51,180,251,198,213,44,30,140,1,72,225,122,12,253,50,231,124,185,+43,142,117,129,64,135,111,84,200,35,147,148,74,80,170,79,23,239,231,201,1,194,64,234,216,110,109,107,191,127,231,39,+163,225,147,4,228,83,98,139,79,226,2,19,14,178,158,126,88,35,28,25,50,56,102,192,172,79,136,205,190,238,44,84,+1,168,116,72,118,172,225,221,129,116,51,187,186,89,121,60,145,84,175,88,153,129,94,83,173,30,255,40,247,157,29,225,+62,180,18,72,185,14,195,156,23,191,34,40,138,66,121,83,151,143,117,138,144,21,239,196,200,0,157,204,48,29,47,187,+225,63,68,115,78,165,182,183,124,255,220,5,237,12,48,71,0,20,250,225,144,218,24,111,96,185,75,11,143,10,20,18,+82,177,48,75,26,162,137,163,135,137,141,112,223,78,95,54,227,236,225,189,209,183,109,115,225,95,108,123,169,155,96,80,+101,40,81,40,187,235,72,157,62,110,220,233,166,62,152,56,116,168,162,72,170,94,4,95,60,36,54,170,36,234,137,50,+214,35,58,79,252,159,247,98,7,254,156,196,138,0,247,49,10,61,80,81,66,61,182,148,225,13,215,176,6,98,219,237,+43,120,74,104,86,247,149,93,79,15,0,88,103,53,244,202,19,249,200,89,113,72,113,199,127,215,87,60,190,151,193,237,+255,78,80,170,119,243,149,190,128,209,105,34,126,39,7,231,220,68,245,213,244,19,68,90,64,122,198,122,142,231,252,10,+143,92,37,135,38,26,72,232,150,185,198,167,45,166,202,197,155,10,113,134,147,36,179,176,59,118,164,10,23,57,122,128,+89,38,136,5,198,181,26,215,167,153,165,228,69,3,247,2,126,63,44,94,103,166,52,120,202,92,196,209,5,178,64,83,+100,188,106,31,2,228,228,223,84,167,10,44,141,16,248,49,235,226,107,212,40,123,41,211,118,85,232,247,202,161,165,110,+0,243,253,127,3,202,228,253,139,121,140,191,36,250,29,117,138,209,12,77,102,168,198,32,110,63,102,69,122,204,246,172,+178,140,205,30,83,166,207,78,61,235,79,231,17,36,210,33,11,47,217,62,243,80,184,240,146,37,27,70,139,42,250,143,+22,217,58,57,116,105,125,93,101,166,200,140,214,81,6,233,26,177,98,132,71,117,35,165,150,59,229,95,167,167,253,36,+148,51,73,220,144,199,63,116,104,230,36,0,184,202,72,218,9,68,38,232,74,18,14,98,33,93,19,245,29,244,23,9,+235,135,98,33,251,236,129,42,255,199,186,167,68,222,101,186,157,183,190,142,76,35,150,154,130,187,169,92,74,190,244,89,+91,123,9,25,163,43,3,221,250,59,109,90,4,233,101,109,62,239,59,190,174,102,9,129,98,120,38,240,139,24,118,154,+129,252,89,251,228,146,158,243,89,38,217,7,44,51,167,200,80,235,201,121,157,208,136,20,174,158,210,10,255,133,63,26,+159,82,204,28,108,200,134,110,202,91,234,206,216,238,180,14,184,194,163,136,37,153,211,69,185,122,149,42,156,174,169,227,+138,106,178,27,63,38,133,121,159,200,172,101,206,171,52,65,179,232,185,120,206,65,132,202,172,196,68,3,68,138,235,79,+72,207,196,123,114,153,27,130,7,138,30,53,184,35,182,213,200,17,88,163,78,142,125,231,241,151,245,97,247,213,78,142,+162,15,176,113,18,151,221,56,167,85,111,91,0,236,1,84,157,238,244,121,83,124,17,105,193,42,217,114,234,220,189,35,+208,245,186,255,110,133,244,88,92,28,37,73,22,21,11,14,195,179,1,249,186,35,122,109,222,208,201,11,51,110,219,82,+157,169,156,219,128,98,191,79,111,145,71,33,130,117,69,159,134,63,80,58,6,154,72,226,5,152,186,100,159,121,160,27,+61,27,81,253,191,3,197,89,228,108,16,160,183,237,57,88,34,33,199,163,225,41,209,97,251,51,229,204,9,5,227,2,+70,135,224,252,40,52,59,86,248,160,122,225,241,174,178,43,49,84,101,139,125,45,62,252,87,144,157,148,179,65,158,118,+103,232,32,214,233,198,238,52,165,50,216,154,15,26,88,69,201,249,7,84,63,113,174,201,7,139,184,136,74,134,55,246,+64,113,56,7,164,223,37,215,14,216,54,206,225,32,226,58,32,84,227,167,164,29,46,222,92,217,25,100,134,248,42,219,+138,194,144,239,85,5,2,212,140,176,143,109,203,68,45,228,168,205,91,149,121,31,108,59,202,110,187,151,72,115,167,17,+136,91,249,83,69,150,238,177,126,22,152,253,102,252,143,249,79,219,111,233,181,154,106,251,40,88,240,171,100,126,227,130,+182,21,205,203,211,66,165,47,199,223,45,32,177,133,206,155,70,187,221,181,197,140,104,124,101,254,59,208,26,111,37,219,+247,69,250,25,45,170,139,234,20,47,254,233,16,4,202,237,106,71,253,112,168,191,86,81,228,165,67,56,223,42,110,200,+247,120,39,67,151,181,113,15,21,95,230,164,176,26,202,28,193,176,114,244,192,223,89,233,208,205,193,167,78,10,106,163,+163,32,229,84,193,143,173,169,249,210,110,199,234,207,80,4,95,79,225,138,24,21,40,11,158,44,123,251,186,226,213,185,+73,99,147,69,97,106,58,4,140,221,71,117,251,6,15,224,249,52,184,171,214,92,8,5,129,55,104,63,114,23,195,122,+192,105,16,163,213,9,239,120,87,78,25,87,156,71,1,162,197,195,150,85,250,242,49,116,69,116,140,20,144,47,142,125,+98,166,41,29,143,27,255,118,75,98,214,241,112,73,187,225,252,9,86,240,70,57,75,20,27,236,237,230,54,11,245,128,+234,237,190,127,73,96,3,126,9,221,116,67,252,5,225,229,191,111,245,64,241,24,75,161,39,194,75,33,239,145,85,53,+0,57,46,232,24,106,131,192,89,238,79,129,120,70,15,196,87,146,63,248,58,95,120,106,75,71,236,212,143,122,60,154,+15,20,114,153,79,201,54,226,226,30,46,8,77,66,134,69,106,45,79,6,6,39,255,199,3,126,249,7,53,193,58,178,+126,243,142,30,79,175,72,72,190,118,185,223,116,193,68,116,208,130,6,130,170,223,160,17,64,169,76,221,122,214,201,113,+46,248,105,124,151,150,219,147,138,153,202,106,105,215,89,93,231,73,161,188,17,203,125,196,186,114,239,12,178,220,2,96,+151,239,69,39,109,180,41,12,28,161,128,176,122,52,138,142,204,183,230,166,211,110,226,105,53,223,208,16,104,54,69,198,+194,121,159,250,244,52,175,8,37,191,236,201,87,125,252,55,207,185,234,154,98,249,13,30,19,100,231,169,190,93,228,197,+47,17,189,153,181,37,144,17,104,180,130,58,20,62,32,193,194,152,190,110,116,196,243,34,51,14,242,106,245,157,224,42,+119,130,131,86,79,7,5,136,244,174,158,70,192,160,65,62,10,28,177,215,155,79,158,26,28,3,1,249,80,63,213,175,+64,225,6,152,199,207,83,219,168,162,121,109,48,70,30,40,227,179,47,20,170,144,61,81,209,253,252,130,30,217,145,61,+151,254,93,73,1,132,68,76,106,162,119,250,252,40,202,228,69,204,63,126,136,66,80,201,120,71,90,6,38,124,47,142,+50,132,240,211,32,117,148,199,75,110,193,199,236,40,243,198,3,161,135,248,132,85,13,223,176,107,206,60,177,189,182,179,+201,236,114,203,26,94,82,156,207,85,221,62,100,87,243,232,123,136,210,0,19,71,128,36,10,215,165,92,58,78,193,49,+248,1,77,72,221,73,255,166,158,9,165,109,142,118,142,212,163,39,210,72,196,8,90,151,179,34,236,208,220,119,246,173,+229,4,239,78,5,10,49,208,26,169,188,104,165,79,99,206,173,109,11,177,237,181,5,27,70,134,219,75,219,106,250,99,+39,111,42,211,45,189,94,93,97,184,86,24,5,180,185,239,49,10,11,193,226,190,178,70,0,128,92,58,75,88,76,79,+54,19,228,68,75,234,10,16,25,49,91,203,140,149,96,193,114,128,106,37,111,14,17,221,179,4,31,141,230,45,103,151,+137,28,58,184,191,255,251,39,3,180,95,155,227,9,36,11,54,168,164,179,10,87,23,21,177,65,254,137,54,186,192,219,+166,46,69,170,60,11,200,250,36,244,112,141,130,189,74,159,68,42,108,199,151,93,219,183,87,192,185,165,213,95,132,163,+191,140,102,149,34,47,123,197,72,221,26,29,6,46,187,186,226,191,107,138,213,77,127,81,237,226,69,168,147,229,186,227,+68,92,116,65,98,4,50,28,176,115,141,120,104,160,132,79,87,250,47,171,142,130,194,252,39,142,93,193,81,115,122,59,+117,220,116,173,29,253,178,190,13,11,177,250,51,33,196,156,131,13,175,171,234,218,232,241,156,54,228,154,15,137,170,216,+124,151,201,67,7,111,103,26,219,154,114,87,190,211,20,190,235,18,188,103,40,17,253,253,83,141,152,6,110,91,43,250,+108,53,244,227,189,221,104,23,28,34,233,46,199,86,81,226,98,76,204,165,225,41,250,22,169,213,146,16,188,209,95,206,+209,147,171,174,24,226,122,238,27,112,211,246,224,23,203,246,128,41,109,48,193,27,182,130,124,9,214,126,109,245,167,210,+209,64,236,61,225,70,100,98,232,68,236,164,140,87,233,23,190,84,8,187,139,179,116,30,115,139,252,113,238,176,173,78,+254,241,54,134,51,29,236,100,73,151,38,194,85,144,194,28,91,28,195,209,239,125,205,21,14,228,46,118,204,159,113,234,+67,94,172,57,3,18,42,47,100,17,147,0,160,235,134,143,199,134,229,93,9,103,78,102,248,82,236,47,30,188,226,194,+45,155,39,207,62,236,96,79,251,38,183,51,156,182,168,129,251,143,214,168,46,178,82,91,79,218,103,234,96,52,179,134,+222,249,58,65,148,225,24,149,57,102,20,99,157,2,63,112,79,169,123,233,179,12,43,135,10,133,53,38,228,91,231,41,+235,2,185,34,211,190,124,123,207,170,30,1,188,93,21,40,169,129,3,175,253,229,240,185,247,232,129,227,36,232,214,3,+252,202,127,72,26,88,117,210,134,96,179,146,82,86,49,219,174,195,219,224,208,40,73,144,59,103,5,253,82,118,250,93,+87,25,22,140,164,27,181,99,229,195,55,33,15,109,92,78,203,212,117,159,149,72,182,43,209,95,150,110,155,2,44,39,+104,16,182,197,207,48,65,200,163,206,23,175,241,113,149,58,86,230,58,40,137,20,1,71,178,82,100,53,35,162,244,70,+38,95,80,187,135,147,208,72,195,137,156,255,252,115,108,245,47,63,237,252,24,213,30,99,12,78,134,53,161,7,44,68,+236,71,28,160,17,84,39,100,63,107,227,107,218,36,40,138,141,116,22,150,177,46,64,27,48,63,42,19,12,175,120,47,+64,94,101,107,183,157,120,83,88,216,181,211,213,115,216,215,20,113,222,95,49,233,20,38,162,210,1,51,15,25,52,254,+242,171,158,39,5,21,132,18,63,172,29,98,184,71,114,49,2,162,150,223,219,14,43,157,85,216,0,74,223,26,245,223,+184,11,140,208,154,165,64,149,149,36,30,181,86,128,25,15,1,100,172,217,84,92,220,72,205,172,193,149,184,212,146,137,+164,135,28,26,119,83,55,50,251,117,191,84,211,38,152,191,110,124,5,191,35,208,58,129,140,66,140,172,160,190,70,82,+222,118,108,35,12,62,179,238,8,201,56,91,186,227,241,211,106,187,100,212,173,240,212,43,184,71,240,204,123,31,12,12,+227,8,65,100,189,126,203,198,144,88,200,195,16,31,215,81,58,125,47,170,198,4,154,159,174,143,248,190,159,73,14,136,+133,34,54,229,82,140,173,150,12,11,135,191,17,7,43,174,128,38,213,56,130,133,92,32,137,142,145,28,237,241,63,241,+91,203,103,229,47,108,178,104,76,175,10,28,245,32,8,37,210,50,151,219,8,232,135,0,51,137,125,178,31,73,138,50,+68,235,102,98,234,44,8,112,127,48,123,244,138,175,2,133,14,100,244,235,210,171,46,247,242,52,71,65,144,143,194,208,+19,253,117,200,156,233,10,13,57,10,197,181,140,82,23,96,78,62,222,134,200,82,198,214,215,219,211,60,196,191,99,53,+60,226,150,25,221,102,119,116,48,58,177,213,8,157,129,33,169,78,13,122,234,148,154,71,242,74,72,250,27,242,57,11,+108,51,178,132,164,20,116,242,72,170,210,248,170,5,22,248,20,241,147,231,238,185,218,161,232,84,234,163,243,45,6,236,+9,112,144,227,150,213,46,53,131,159,174,79,237,54,146,222,134,200,82,198,214,215,219,211,60,196,191,99,53,60,226,150,+25,221,102,119,127,158,120,89,178,75,34,187,141,28,169,76,159,152,42,147,215,235,162,209,129,67,131,230,190,242,23,55,+248,76,64,202,147,238,100,191,54,64,128,190,21,121,160,170,139,108,206,255,253,127,179,144,32,189,14,169,229,255,242,40,+130,172,13,208,179,127,255,239,99,143,69,54,176,58,86,159,217,222,247,2,168,139,124,23,204,149,82,95,45,228,249,94,+218,127,193,117,15,74,236,255,59,46,173,99,59,243,76,31,186,205,214,219,206,89,118,179,221,121,232,210,81,208,158,114,+170,156,160,45,57,204,205,131,205,83,255,226,233,138,108,46,44,249,76,4,15,213,199,157,162,5,237,244,245,227,204,228,+75,111,9,79,86,228,111,245,216,84,57,145,233,157,35,196,215,195,180,197,205,101,26,216,129,70,79,156,239,14,59,46,+147,70,122,26,151,197,193,228,17,217,46,21,174,167,71,129,112,169,143,108,178,83,48,135,171,15,54,16,148,114,111,181,+218,202,1,252,79,111,189,107,205,84,50,206,219,181,168,72,152,91,30,172,135,30,196,189,235,144,99,108,197,122,200,11,+227,109,211,119,180,47,26,56,225,53,51,190,107,185,95,131,141,28,177,128,111,211,148,182,11,6,241,64,242,121,200,97,+194,214,149,110,141,77,164,182,194,230,231,0,238,3,165,208,29,183,62,104,71,112,17,61,114,6,49,221,218,49,89,184,+185,55,237,111,149,177,211,13,58,230,75,103,245,102,99,14,143,91,16,103,136,135,123,48,191,81,228,203,48,116,155,246,+233,66,55,174,147,123,199,115,28,233,211,180,188,221,177,40,115,168,222,135,61,23,49,110,123,57,69,32,94,184,9,21,+245,19,24,238,93,10,246,122,134,0,70,98,7,220,42,99,51,72,135,27,58,128,177,225,74,56,99,176,13,144,51,93,+219,233,207,43,82,165,112,49,131,221,235,178,143,204,115,224,25,86,235,250,144,230,164,40,60,108,41,60,48,208,80,249,+57,48,24,87,67,210,30,54,154,220,133,212,115,131,7,115,249,2,149,170,106,168,166,42,95,166,194,74,25,151,12,93,+57,178,80,19,233,70,30,32,135,240,233,242,81,249,167,11,94,103,193,222,185,171,7,32,129,164,114,127,251,13,168,235,+191,124,56,13,197,181,198,80,184,68,243,252,255,246,145,192,212,44,62,45,124,132,217,60,243,217,161,110,101,41,89,98,+10,234,44,78,231,80,82,104,93,189,104,156,130,83,100,142,101,173,247,137,242,24,83,199,216,237,91,169,31,222,173,61,+184,119,71,202,163,162,22,24,245,137,178,244,108,65,196,80,159,131,21,42,210,13,237,66,64,28,169,63,209,248,83,198,+242,84,192,254,179,81,226,139,179,219,141,94,90,26,205,203,228,89,40,179,71,159,149,39,93,142,217,135,115,24,123,48,+112,19,150,235,240,49,203,172,249,2,160,162,0,156,13,30,156,53,186,111,121,16,173,162,225,248,43,72,236,141,183,136,+0,20,227,22,132,5,135,148,251,149,132,114,252,4,10,141,154,46,48,198,95,17,226,228,85,57,105,135,237,125,238,167,+9,253,11,219,20,146,57,178,46,35,44,102,202,83,89,7,71,149,24,11,122,170,119,240,22,69,125,71,134,225,198,248,+157,119,22,171,246,8,145,4,3,221,51,125,205,231,234,223,132,254,248,225,235,219,210,181,53,135,242,78,157,236,15,222,+109,65,187,30,127,20,56,255,75,221,194,106,244,224,101,100,205,100,146,103,95,121,43,94,12,148,145,8,98,209,254,60,+103,102,57,21,132,71,232,248,71,59,212,44,3,205,168,143,172,35,251,29,37,16,75,192,35,147,22,216,255,26,95,169,+1,136,75,126,98,104,183,91,167,76,134,49,31,90,240,233,136,95,102,208,141,59,137,160,230,63,10,239,111,174,88,134,+210,229,183,243,41,218,28,13,125,121,176,131,218,130,40,87,233,154,88,192,158,88,106,23,54,118,242,126,252,101,190,81,+140,85,76,95,53,250,178,219,112,20,95,224,140,96,89,93,135,17,21,146,28,239,74,23,21,175,91,94,225,77,112,44,+147,253,7,140,209,171,199,82,241,85,117,215,128,206,199,191,65,119,33,54,40,158,92,21,135,88,111,246,228,157,183,145,+209,154,236,249,123,97,4,247,171,16,156,1,2,213,50,177,183,167,43,169,253,150,197,161,130,212,222,98,248,228,178,42,+130,252,108,212,72,228,5,61,34,58,82,156,156,103,220,25,217,211,208,79,223,97,132,220,235,37,86,157,3,84,148,174,+173,121,89,54,154,193,192,162,182,205,79,222,253,9,227,156,179,119,83,35,4,8,60,36,177,24,54,114,164,14,229,25,+26,196,192,32,228,144,1,157,89,67,253,211,205,87,153,161,196,220,122,72,59,72,228,18,245,218,4,20,41,79,28,236,+79,214,108,9,60,167,36,96,32,163,22,163,164,201,7,135,173,122,142,25,229,129,130,203,52,105,181,104,67,175,55,78,+164,166,111,135,169,147,66,164,243,107,115,220,163,241,255,154,133,58,93,43,201,156,214,199,76,48,13,155,189,42,49,17,+133,108,124,115,156,105,219,113,18,245,142,217,247,10,226,80,193,70,81,195,35,86,36,149,97,177,15,77,2,55,2,173,+142,47,42,207,172,213,187,48,223,144,157,41,149,58,180,159,15,133,232,171,241,226,126,111,81,122,181,238,58,146,51,98,+197,21,46,48,67,194,221,149,153,18,143,85,181,39,140,161,183,21,173,55,13,157,250,82,9,91,235,149,136,21,69,68,+4,197,252,5,91,195,219,230,193,1,192,51,182,141,145,186,137,109,146,250,147,206,163,146,12,169,158,2,52,159,147,29,+132,190,79,175,183,77,41,225,73,223,139,67,188,194,225,25,65,93,125,131,234,58,115,130,233,115,90,209,74,68,174,149,+78,158,232,199,228,192,139,139,159,161,22,243,88,30,189,62,196,7,30,119,176,242,196,76,1,8,142,222,20,174,32,174,+49,12,164,94,200,199,165,123,111,213,200,25,21,181,18,33,161,147,34,6,227,7,172,168,133,216,202,133,95,230,38,227,+204,127,77,61,101,234,22,128,46,130,189,235,23,100,71,3,128,158,108,12,97,95,132,24,234,97,113,72,64,145,62,171,+127,134,184,116,211,7,56,183,233,251,43,154,236,92,134,160,30,188,202,149,22,153,207,55,190,218,116,44,247,16,167,113,+105,172,176,218,255,46,178,46,151,233,208,232,17,231,29,198,74,244,219,194,254,24,108,17,252,201,137,25,193,182,137,1,+164,10,133,51,130,108,75,70,21,24,194,145,36,4,122,38,144,225,57,134,127,139,176,235,10,117,134,103,8,50,161,152,+160,148,229,253,168,61,118,110,93,97,75,126,159,111,32,222,221,186,237,248,42,215,59,127,29,33,103,41,156,24,106,181,+205,75,108,46,155,91,172,172,52,81,97,106,47,32,254,78,207,73,243,218,212,198,86,22,134,244,226,254,123,176,163,218,+62,40,152,224,183,221,2,232,206,179,6,74,122,196,225,109,18,80,238,118,137,227,183,87,78,212,35,148,83,50,253,190,+242,184,245,173,7,163,37,173,94,241,5,202,41,232,219,245,74,3,21,194,118,72,237,85,189,4,189,151,233,153,237,216,+183,100,52,206,106,189,89,191,79,199,255,27,192,168,152,249,98,166,196,62,147,223,63,130,206,72,213,55,134,88,27,109,+52,147,184,132,233,127,223,176,225,159,22,114,105,126,171,86,72,211,138,208,49,129,34,61,50,146,97,37,174,3,179,53,+109,177,40,3,145,66,207,61,95,237,158,52,86,71,103,87,186,164,203,222,46,227,130,185,141,112,218,164,89,233,118,230,+172,164,107,236,159,226,41,60,209,146,73,64,110,6,207,204,203,197,40,61,60,1,139,235,9,124,3,179,88,255,109,114,+124,0,79,152,28,9,29,205,13,241,229,235,52,220,62,164,11,245,18,178,139,27,131,53,229,145,163,240,174,6,223,244,+79,184,29,54,84,126,5,106,172,72,111,148,168,249,38,169,35,3,39,57,192,245,187,55,242,63,31,202,12,37,7,171,+71,117,221,33,239,104,103,206,118,116,82,161,160,245,217,251,110,120,182,151,3,60,146,16,212,84,213,83,143,32,142,161,+196,11,224,231,22,155,114,14,112,60,212,199,79,146,104,22,238,139,89,38,238,51,176,182,176,212,108,186,139,143,44,97,+223,26,234,89,38,49,184,92,191,66,63,3,138,162,252,61,55,223,32,210,57,245,227,195,42,52,231,58,59,226,122,213,+107,72,38,200,20,67,174,47,24,121,210,107,251,230,174,214,32,170,71,57,180,214,214,61,238,249,102,138,78,157,111,222,+211,107,167,165,152,146,168,37,13,57,79,5,201,110,97,176,251,72,91,153,107,247,176,131,11,225,4,161,6,221,203,7,+204,218,116,50,235,69,218,208,149,214,73,149,78,249,100,100,56,8,93,173,99,205,229,182,5,245,131,59,66,183,155,198,+117,227,101,93,49,135,120,140,190,182,115,195,250,92,182,194,111,244,212,29,167,205,227,218,127,71,85,43,89,48,241,242,+109,98,182,153,132,75,32,44,45,69,62,185,62,219,44,253,164,145,164,218,86,162,102,228,163,45,180,197,251,167,250,11,+234,117,85,113,211,157,175,72,168,34,114,207,193,85,242,26,242,35,169,210,43,119,186,148,129,22,105,164,41,181,172,30,+56,115,10,125,201,48,9,199,105,2,59,30,143,151,156,16,206,53,37,48,116,162,236,183,58,30,34,133,95,102,36,123,+165,216,236,163,193,69,187,255,253,127,179,144,32,189,14,169,229,255,242,40,130,172,13,208,179,127,255,239,99,143,69,54,+176,58,86,159,217,222,247,2,168,139,124,23,204,149,82,95,45,228,249,94,218,127,193,117,15,74,236,255,59,46,173,99,+59,243,76,31,186,205,214,219,206,89,118,179,221,121,232,210,81,208,158,114,170,156,160,45,57,204,205,131,205,83,255,226,+233,138,108,46,44,249,76,4,15,213,199,157,162,5,237,244,245,227,204,228,75,111,9,79,86,228,111,245,216,84,57,145,+233,157,35,196,215,195,180,197,205,101,26,216,129,70,79,156,239,14,59,46,147,70,122,26,151,197,193,228,17,217,46,21,+174,167,71,129,112,169,143,108,178,83,48,135,171,15,54,16,148,114,111,181,218,202,1,252,79,111,189,107,205,84,50,206,+219,181,168,72,152,91,30,172,135,30,196,189,235,144,99,108,197,122,200,11,227,109,211,119,180,47,26,56,225,53,51,190,+107,185,95,131,141,28,177,128,111,211,148,182,11,6,241,64,242,121,200,97,194,214,149,110,141,77,164,182,194,230,231,0,+238,3,165,208,29,183,62,104,71,112,17,61,114,6,49,221,218,49,89,184,185,55,237,111,149,177,211,13,58,230,75,103,+245,102,99,14,143,91,16,103,136,135,123,48,191,81,228,203,48,116,155,246,233,66,55,174,147,123,199,115,28,233,211,180,+188,221,177,40,115,168,222,135,61,23,49,110,123,57,69,32,94,184,9,21,245,19,24,238,93,10,246,122,134,0,70,98,+7,220,42,99,51,72,135,27,58,128,177,225,74,56,99,176,13,144,51,93,219,233,207,43,82,165,112,49,131,221,235,178,+143,204,115,224,25,86,235,250,144,230,164,40,60,108,41,60,48,208,80,249,57,48,24,87,67,210,30,54,154,220,133,212,+115,131,7,115,249,2,149,170,106,168,166,42,95,166,194,74,25,151,12,93,57,178,80,19,233,70,30,32,135,240,233,242,+81,249,167,11,94,103,193,222,185,171,7,32,129,164,114,127,251,13,168,235,191,124,56,13,197,181,198,80,184,68,243,252,+255,246,145,192,212,44,62,45,124,132,217,60,243,217,161,110,101,41,89,98,10,234,44,78,231,80,82,104,93,189,104,156,+130,83,100,142,101,173,247,137,242,24,83,199,216,237,91,169,31,222,173,61,184,119,71,202,163,162,22,24,245,137,178,244,+108,65,196,80,159,131,21,42,210,13,237,66,64,28,169,63,209,248,83,198,242,84,192,254,179,81,226,139,179,219,141,94,+90,26,205,203,228,89,40,179,71,159,149,39,93,142,217,135,115,24,123,48,112,19,150,235,240,49,203,172,249,2,160,162,+0,156,13,30,156,53,186,111,121,16,173,162,225,248,43,72,236,141,183,136,0,20,227,22,132,5,135,148,251,149,132,114,+252,4,10,141,154,46,48,198,95,17,226,228,85,57,105,135,237,125,238,167,9,253,11,219,20,146,57,178,46,35,44,102,+202,83,89,7,71,149,24,11,122,170,119,240,22,69,125,71,134,225,198,248,157,119,22,171,246,8,145,4,3,221,51,125,+205,231,234,223,132,254,248,225,235,219,210,181,53,135,242,78,157,236,15,222,109,65,187,30,127,20,56,255,75,221,194,106,+244,224,101,100,205,100,146,103,95,121,43,94,12,148,145,8,98,209,254,60,103,102,57,21,132,71,232,248,71,59,212,44,+3,205,168,143,172,35,251,29,37,16,75,192,35,147,22,216,255,26,95,169,1,136,75,126,98,104,183,91,167,76,134,49,+31,90,240,233,136,95,102,208,141,59,137,160,230,63,10,239,111,174,88,134,210,229,183,243,41,218,28,13,125,121,176,131,+218,130,40,87,233,154,88,192,158,88,106,23,54,118,242,126,252,101,190,81,140,85,76,95,53,250,178,219,112,20,95,224,+140,96,89,93,135,17,21,146,28,239,74,23,21,175,91,94,225,77,112,44,147,253,7,140,209,171,199,82,241,85,117,215,+128,206,199,191,65,119,33,54,217,92,3,171,168,64,124,228,74,16,107,43,240,147,16,50,100,62,164,97,246,219,67,110,+92,203,3,153,208,124,87,35,142,61,137,186,39,51,217,116,215,151,150,51,243,68,80,9,203,221,7,74,64,236,141,118,+248,232,149,60,32,98,47,180,24,133,30,43,205,167,149,200,80,131,18,41,184,15,134,51,78,255,215,49,197,158,172,165,+194,174,139,220,53,145,133,162,110,8,118,143,30,185,92,231,222,153,209,73,16,12,106,229,215,182,53,247,44,108,74,93,+128,249,2,244,9,247,127,88,106,65,174,213,41,194,241,105,166,95,145,153,128,116,218,146,217,172,157,204,249,174,248,209,+79,4,23,222,241,105,218,44,19,182,178,205,66,28,166,159,13,72,70,226,150,120,134,12,186,131,34,27,22,226,90,73,+197,42,198,60,192,23,113,12,4,20,113,45,240,118,207,145,110,75,117,84,222,29,191,42,207,61,145,152,51,203,62,221,+242,178,227,132,116,151,89,122,217,90,5,155,251,113,220,138,144,65,216,88,72,207,228,242,217,118,119,65,226,214,238,129,+191,254,211,223,245,101,81,74,115,249,162,49,36,12,134,21,29,44,222,12,162,189,215,181,189,195,61,18,192,41,52,6,+155,216,50,150,71,229,135,158,136,10,221,244,73,199,66,243,173,163,207,29,81,136,196,58,84,165,24,157,10,216,151,111,+105,28,39,47,217,159,91,93,38,229,78,132,198,75,159,107,141,243,81,171,102,156,174,29,28,159,217,235,249,1,147,5,+198,18,19,100,7,50,152,184,169,16,7,128,225,99,253,119,240,160,93,214,235,106,197,169,20,44,129,205,61,71,191,183,+161,43,80,168,49,90,89,52,241,48,162,17,133,43,18,57,87,207,132,129,27,195,222,29,218,121,187,206,61,190,63,136,+107,95,156,185,148,58,29,83,78,125,105,128,40,39,202,186,42,208,101,212,37,92,169,164,69,204,85,85,117,8,173,156,+218,23,144,4,212,14,9,186,27,62,30,180,74,6,94,180,129,12,185,209,213,20,196,141,245,179,15,118,235,90,37,71,+230,176,181,54,162,212,61,144,28,235,230,96,3,255,236,222,235,149,46,214,82,120,211,152,154,25,131,160,229,81,12,87,+61,92,10,36,217,194,28,21,207,185,244,26,40,140,2,227,203,203,236,225,183,46,0,12,141,65,221,247,163,50,168,59,+16,198,187,43,32,73,233,183,83,82,88,100,174,230,98,181,138,14,19,37,8,173,92,207,245,220,252,169,249,161,62,248,+83,247,58,78,193,194,78,92,55,97,183,16,192,112,92,13,119,4,87,250,248,243,123,141,81,71,246,4,22,201,133,29,+8,212,245,209,227,104,14,62,45,38,121,107,196,24,253,14,145,150,74,105,167,130,163,149,27,192,85,5,137,215,121,102,+157,144,213,226,225,224,121,51,194,210,214,155,114,72,251,231,40,62,229,221,84,127,184,22,57,152,120,216,81,27,125,160,+231,130,58,241,78,183,115,231,165,104,64,195,217,58,216,123,125,86,162,46,68,105,191,99,133,164,190,28,125,206,177,28,+30,153,180,107,21,240,221,65,72,239,172,28,102,132,95,138,67,219,217,38,176,12,177,12,236,34,51,65,158,243,254,202,+240,1,228,50,99,146,35,83,85,120,22,198,181,217,161,164,37,148,12,46,107,101,5,189,130,212,120,58,68,219,254,136,+84,255,2,123,255,126,131,16,244,23,101,22,228,109,173,196,96,246,17,230,157,183,192,248,132,176,53,132,158,59,222,19,+26,28,209,122,137,164,191,28,13,110,107,7,175,135,120,57,182,112,160,55,163,43,221,71,155,170,48,142,203,4,19,215,+53,215,202,209,249,25,120,183,205,92,227,147,11,166,4,32,90,209,89,63,26,187,221,237,247,200,223,7,70,128,96,189,+213,156,175,107,245,194,11,7,135,223,82,53,148,85,1,115,47,46,252,166,175,222,38,213,27,103,171,226,158,221,24,24,+87,117,247,40,108,38,212,212,174,90,205,52,215,181,148,153,187,244,135,227,162,147,53,9,126,17,10,222,195,208,156,248,+215,88,140,241,80,80,114,109,102,150,100,73,219,222,214,213,67,226,73,96,35,53,182,154,195,182,151,214,239,43,241,242,+112,3,9,38,21,97,195,159,156,95,153,119,134,206,72,203,186,164,84,202,212,201,13,8,128,116,123,71,4,238,64,52,+186,91,31,249,138,173,241,8,17,74,67,17,241,196,252,251,252,254,193,191,202,208,222,226,65,183,75,43,201,174,253,134,+178,152,192,156,252,167,51,30,210,239,226,103,235,145,204,6,70,51,147,146,135,195,131,40,208,43,178,228,100,219,73,107,+249,154,140,214,249,236,242,117,165,29,49,243,244,103,236,178,219,232,117,255,127,97,163,237,3,210,125,77,255,142,167,130,+112,0,122,249,91,82,54,28,2,13,221,242,168,233,85,125,105,85,183,136,19,24,33,34,37,63,215,220,75,47,35,107,+157,29,231,98,119,179,26,60,110,89,222,245,246,163,172,202,168,61,34,64,158,69,68,60,151,255,252,212,154,194,188,207,+169,226,51,154,143,84,170,119,69,199,93,117,106,113,24,100,63,197,215,127,209,163,145,174,184,204,89,213,72,120,174,28,+187,156,159,147,90,220,128,178,13,154,18,39,42,114,100,66,132,105,112,163,72,183,217,224,66,80,73,12,252,251,161,78,+238,21,195,162,92,182,8,33,123,39,102,197,118,135,226,59,207,190,39,180,121,227,217,189,112,220,181,175,155,106,32,208,+1,129,112,176,227,184,249,236,145,155,28,77,41,48,153,50,223,223,200,150,149,194,94,112,219,10,43,120,220,151,118,177,+118,93,228,92,189,138,247,246,225,32,61,85,149,252,15,50,165,160,204,197,0,243,101,101,34,102,50,190,226,94,63,251,+164,109,165,92,237,209,64,175,230,93,60,166,123,92,228,33,79,58,204,232,156,19,122,28,109,110,103,64,135,198,189,248,+189,241,40,155,61,64,65,10,170,182,73,197,134,61,215,82,48,7,49,232,242,4,82,91,223,236,25,16,217,65,230,123,+108,79,54,47,147,2,127,90,242,215,225,177,81,135,241,143,240,113,138,187,169,112,31,113,98,187,70,70,211,39,111,220,+129,98,74,130,67,92,218,103,241,18,71,164,39,103,189,214,195,169,43,28,179,190,44,174,18,117,168,78,96,201,252,153,+154,102,104,228,24,31,237,168,25,231,250,34,62,151,168,234,2,215,107,227,37,73,116,173,184,131,200,70,35,129,23,117,+113,122,216,36,135,75,205,242,83,99,73,90,30,192,124,184,24,33,148,187,124,177,91,65,90,46,41,81,66,170,141,173,+48,67,64,5,210,239,0,125,145,175,85,88,20,72,224,185,94,160,216,156,224,44,190,105,144,118,214,13,232,184,94,249,+27,226,149,117,168,177,117,169,43,229,194,102,8,101,232,153,102,144,87,80,192,134,86,59,73,50,202,109,28,134,198,136,+136,85,151,176,205,173,38,80,74,166,124,83,171,210,233,100,89,25,216,53,30,33,86,83,28,227,76,62,197,201,147,122,+34,252,181,34,163,42,163,35,91,248,211,11,39,182,100,154,105,146,69,187,140,247,226,134,22,119,251,94,26,94,230,242,+128,248,43,109,41,169,27,26,34,244,231,221,149,20,64,108,246,139,168,89,56,73,237,240,21,69,73,216,96,129,221,62,+96,63,248,64,36,153,154,109,233,39,240,109,160,144,64,143,255,253,122,159,231,118,235,50,107,92,178,122,242,44,141,248,+247,32,38,184,12,86,130,130,103,23,219,16,69,120,30,242,121,74,190,156,80,241,41,105,116,26,48,238,120,16,75,38,+206,55,15,71,63,132,57,86,132,41,47,196,147,41,139,59,63,147,7,183,171,168,172,238,98,84,154,33,82,97,124,31,+165,161,102,19,3,167,1,15,236,109,219,128,231,191,91,32,218,244,59,53,75,70,79,89,219,231,29,0,244,202,200,67,+92,255,185,220,144,17,224,191,196,42,238,103,179,115,130,242,186,117,77,207,194,51,183,147,18,239,220,220,133,227,171,81,+3,127,211,32,210,43,230,30,196,67,247,158,49,108,39,109,209,29,74,28,136,55,251,62,181,230,224,166,180,72,118,6,+7,149,0,119,179,162,31,121,177,232,226,141,157,77,53,8,147,169,96,171,25,69,171,209,188,190,140,116,225,195,72,218,+95,197,51,67,224,240,5,146,112,132,176,64,15,250,254,249,246,111,66,99,40,224,220,5,181,121,166,248,210,243,72,214,+116,246,17,121,220,115,62,191,44,232,171,104,247,104,138,201,35,14,101,131,90,130,152,108,62,141,55,38,230,209,17,151,+166,13,188,25,131,129,107,187,84,121,253,89,34,212,65,155,74,190,165,225,248,84,5,133,5,224,57,32,146,118,104,246,+24,206,100,226,196,99,131,125,19,187,48,89,255,232,200,244,225,116,132,11,20,52,155,117,221,68,92,239,65,30,205,63,+166,166,7,103,254,74,216,55,57,246,114,29,249,157,82,254,130,6,151,145,123,34,64,174,113,31,157,198,251,20,134,172,+86,196,239,26,111,56,169,246,236,131,128,139,89,147,147,225,175,28,7,192,189,161,235,15,73,143,43,5,191,12,36,178,+189,239,115,96,11,241,245,250,187,161,37,232,106,80,50,40,135,119,222,30,103,99,169,107,237,187,81,202,26,213,71,183,+120,219,104,187,80,185,142,99,181,45,32,0,18,240,170,175,88,95,202,4,246,121,169,126,73,114,205,176,53,63,8,148,+253,157,14,64,140,194,19,235,117,245,83,97,10,57,72,52,249,247,155,2,196,203,143,177,51,163,182,215,75,122,249,189,+117,3,213,118,72,155,84,243,110,39,215,105,19,202,233,87,61,245,236,17,187,151,58,148,195,102,213,35,198,97,113,140,+29,19,60,84,98,218,190,97,180,12,14,28,59,124,30,108,91,128,77,242,188,143,97,142,184,123,94,56,95,255,201,64,+100,142,177,185,203,229,140,86,169,191,210,161,41,216,192,41,223,219,154,162,216,174,99,10,159,243,78,142,122,96,77,157,+100,42,16,125,51,238,192,239,138,128,248,202,190,97,128,25,196,236,53,28,216,203,92,212,96,124,59,119,89,133,179,81,+239,125,56,139,176,188,32,86,101,88,143,240,190,205,136,43,171,188,93,53,122,181,41,7,124,56,230,99,33,13,56,178,+195,235,52,192,59,72,211,148,147,189,246,78,245,94,69,104,151,47,227,7,56,143,46,138,211,235,123,231,203,97,107,144,+171,157,123,228,28,227,42,86,222,146,98,18,192,60,205,23,166,191,126,51,93,203,210,103,158,171,15,186,137,203,29,219,+173,238,135,232,187,147,153,174,2,217,252,192,147,168,141,56,150,91,8,161,183,97,211,188,251,159,16,68,20,155,196,86,+167,213,62,191,147,170,240,44,188,209,221,38,78,211,97,172,120,76,100,133,195,61,147,62,167,142,246,206,154,25,79,55,+196,188,234,113,13,121,133,57,228,253,11,4,103,103,63,88,76,197,91,102,40,62,121,69,194,249,97,204,232,161,138,156,+114,220,108,57,117,236,133,69,133,78,211,241,62,175,102,49,172,99,90,191,46,108,18,120,18,79,250,204,158,180,80,173,+99,216,36,208,192,7,1,114,118,31,94,141,65,199,211,169,54,144,109,23,16,100,210,190,18,97,4,3,112,225,96,11,+222,66,174,164,179,180,178,168,206,202,153,162,92,99,253,138,1,187,25,227,43,209,254,17,241,111,124,211,135,161,10,159,+23,169,177,147,6,59,10,196,218,15,133,198,235,150,111,41,90,204,105,11,199,184,31,245,225,51,211,47,59,95,146,22,+186,235,151,63,31,228,2,93,88,143,130,136,107,162,68,43,95,98,254,17,204,201,216,41,179,36,84,245,217,206,145,93,+240,244,12,209,43,178,126,48,48,110,53,44,4,201,33,150,134,185,10,193,26,64,115,6,169,252,178,194,38,163,138,32,+128,222,34,97,209,250,78,251,209,153,110,7,45,20,12,136,193,134,253,139,51,164,123,136,43,92,210,145,221,206,11,186,+22,224,68,119,43,240,25,40,109,95,30,160,180,20,175,198,1,50,37,66,196,173,254,91,229,18,165,161,100,158,83,106,+38,239,239,191,199,29,205,107,255,231,153,0,16,21,40,44,165,21,40,234,38,153,24,152,232,210,0,15,88,205,155,27,+173,105,201,223,251,62,33,174,9,211,112,52,28,75,252,15,242,185,119,145,133,251,128,120,232,217,195,94,197,80,26,35,+170,142,122,251,221,188,203,136,62,34,52,35,18,50,195,19,183,212,209,26,27,65,60,75,248,90,90,117,143,250,0,230,+218,210,94,189,171,227,3,242,43,96,221,56,94,196,73,224,2,113,86,97,74,142,247,117,250,8,195,51,59,192,194,32,+2,69,71,96,36,37,73,116,158,199,66,68,45,91,162,48,74,151,252,115,209,50,123,100,99,50,163,166,253,63,165,219,+37,60,118,171,193,33,7,108,137,112,34,10,182,101,61,55,217,253,59,237,178,97,7,124,54,73,106,103,98,177,134,231,+120,32,67,83,34,24,154,112,7,115,43,120,83,70,228,209,241,34,178,229,67,93,51,160,183,224,174,174,115,248,36,64,+13,248,149,223,226,171,160,141,219,149,38,191,141,33,147,43,22,208,162,57,226,171,113,65,249,34,183,39,127,133,92,226,+199,186,56,49,240,40,184,66,2,23,74,227,212,148,157,15,22,249,219,213,130,159,93,86,165,160,48,244,90,33,122,230,+69,210,239,113,99,181,148,82,197,136,186,98,102,9,157,13,57,21,220,152,154,176,50,44,220,95,240,26,79,94,27,197,+255,246,180,52,81,41,214,89,35,187,66,195,121,158,63,99,11,188,107,84,118,158,166,39,104,208,180,205,104,205,220,254,+83,170,47,192,56,253,18,99,197,220,47,192,216,38,53,139,189,25,160,47,219,186,192,126,3,122,222,111,80,105,169,18,+43,194,0,175,57,40,16,95,98,122,178,181,97,89,235,172,157,96,193,134,86,79,103,49,81,117,227,90,198,159,25,213,+5,157,149,240,180,150,149,225,16,193,185,177,68,132,220,237,230,253,198,132,207,250,52,71,170,237,135,103,163,215,183,244,+37,72,166,175,112,61,104,178,58,251,101,120,213,30,63,12,77,99,96,185,236,75,50,137,144,47,114,109,101,104,181,168,+89,80,242,145,48,70,182,153,163,189,193,232,197,38,165,228,98,239,190,101,177,191,97,232,244,238,79,249,113,197,48,77,+144,98,7,116,183,123,117,221,155,249,196,42,38,179,12,139,159,198,60,11,155,245,253,161,68,76,18,188,187,88,23,238,+99,91,38,64,244,100,53,67,212,36,247,146,143,113,86,249,35,180,57,51,207,118,86,162,19,191,153,181,193,212,30,43,+226,239,11,43,103,203,189,151,176,47,220,244,35,123,137,89,118,25,83,146,69,108,51,228,13,121,131,133,48,34,11,5,+179,74,69,12,66,65,91,135,99,134,64,210,250,179,92,222,65,95,169,106,172,232,249,218,157,212,30,67,244,25,43,131,+229,225,5,221,124,90,125,119,162,132,204,58,45,250,96,197,24,4,14,234,186,69,5,186,103,138,44,115,254,77,10,73,+182,110,100,103,254,186,226,80,162,61,22,117,223,151,69,28,60,165,88,208,158,44,44,83,87,65,53,32,88,53,95,117,+219,80,114,184,83,109,29,63,254,57,121,22,111,183,36,181,46,31,225,246,45,59,170,22,207,140,85,109,255,253,244,208,+241,109,153,204,56,147,48,81,139,218,62,126,209,32,168,215,249,158,54,124,85,191,48,36,150,198,163,133,79,242,191,122,+166,186,93,199,213,66,58,29,214,65,46,60,80,162,111,208,187,212,11,219,94,85,151,24,27,200,170,87,12,30,44,13,+248,56,234,216,206,9,19,53,84,98,120,174,111,252,154,154,111,180,152,157,82,21,25,219,245,117,184,5,212,184,88,192,+169,2,51,95,195,92,158,109,193,52,82,169,111,40,6,134,65,39,169,8,48,210,73,7,161,225,239,241,61,214,78,70,+185,123,153,241,22,130,156,182,165,67,123,30,237,2,81,113,244,20,160,114,241,104,31,44,189,233,121,114,4,79,95,130,+0,65,136,170,134,146,176,242,34,211,219,155,178,154,189,84,174,35,38,199,153,250,87,205,168,229,100,165,54,59,65,22,+140,223,144,196,1,223,164,10,99,200,119,193,9,239,151,54,34,151,205,107,122,137,192,44,84,245,25,55,144,185,240,170,+73,45,94,34,74,42,128,210,109,60,149,177,153,229,183,45,154,171,211,216,36,178,52,24,194,199,230,80,159,13,208,100,+45,99,211,235,3,68,97,44,28,63,48,71,214,131,78,7,36,36,228,217,218,215,63,80,170,210,1,32,61,137,137,19,+78,167,228,88,46,189,103,156,181,107,100,59,232,50,44,236,143,86,88,180,15,86,39,119,28,84,14,242,68,120,142,250,+211,247,45,174,94,132,212,96,235,51,183,221,54,158,216,202,55,123,113,244,12,83,232,150,210,175,244,6,3,227,26,241,+160,59,120,132,255,159,52,76,236,223,234,192,24,12,68,75,41,119,26,74,137,65,39,217,53,221,194,53,60,248,1,161,+225,140,130,62,226,79,44,39,22,60,101,87,121,126,33,124,105,52,60,128,182,40,6,97,199,79,8,127,153,150,186,16,+186,47,62,230,85,129,100,117,42,23,23,220,85,112,128,206,148,222,165,148,199,180,241,10,73,188,179,1,167,224,97,30,+62,217,175,227,95,94,17,151,26,88,182,85,86,128,4,120,190,230,170,26,75,145,190,175,17,79,249,147,54,4,153,239,+109,251,233,60,207,60,59,141,229,34,51,225,108,231,45,236,225,123,225,65,44,96,181,176,176,250,163,69,126,113,92,83,+97,185,134,91,77,197,171,208,185,118,233,112,111,8,8,191,136,139,183,145,180,165,100,245,98,78,81,146,181,75,128,216,+222,234,121,70,51,216,241,135,95,198,169,74,114,226,86,166,26,42,247,79,76,49,110,41,223,238,24,35,185,151,187,188,+232,1,199,116,10,192,158,163,16,4,119,85,116,74,36,90,176,16,103,12,193,93,82,19,17,167,252,144,120,113,194,2,+22,154,122,128,182,78,46,232,212,24,206,4,131,208,8,243,4,34,59,167,48,199,97,102,221,186,67,215,37,210,132,176,+73,233,155,7,86,179,199,61,115,182,156,184,137,143,48,3,94,68,61,139,32,29,179,43,49,33,3,79,191,201,32,153,+221,57,136,209,169,201,22,172,254,101,20,36,61,96,101,221,185,254,193,195,13,245,30,37,187,99,54,52,71,5,209,233,+230,240,84,232,189,163,242,173,226,177,19,236,123,181,6,6,221,90,62,2,46,4,122,205,90,187,211,198,227,156,51,3,+38,214,18,25,7,148,173,187,60,39,165,87,198,59,155,171,25,146,102,173,51,161,144,168,241,11,255,41,24,195,240,191,+6,103,105,192,209,39,87,238,8,107,250,180,52,77,128,127,116,254,5,107,127,31,112,71,169,239,252,116,136,76,228,140,+50,140,33,2,201,46,109,67,23,121,7,221,99,10,213,153,104,233,220,4,89,86,36,163,2,62,120,92,133,51,194,131,+44,227,149,79,20,132,186,158,180,148,208,156,207,78,78,24,152,31,37,40,224,102,147,169,92,15,44,153,70,241,29,132,+105,250,166,237,53,144,73,154,6,12,75,160,224,168,200,146,211,200,36,184,196,0,20,205,243,183,204,29,25,189,184,146,+146,101,148,232,40,255,117,160,30,66,58,0,235,179,153,48,80,191,57,63,66,127,103,16,47,51,52,64,179,44,119,109,+156,47,156,20,103,116,210,172,234,244,69,235,182,161,195,204,230,160,55,167,222,64,152,43,119,133,189,21,66,148,255,63,+53,78,122,54,170,170,200,252,146,240,188,128,191,31,24,16,189,235,213,210,233,221,25,150,182,131,68,251,249,43,11,142,+142,128,151,194,253,169,127,150,86,58,246,231,27,121,235,234,104,195,224,115,17,227,209,28,24,11,125,4,55,122,160,217,+64,128,186,189,244,14,98,198,37,112,38,90,76,113,147,78,198,6,22,13,220,18,211,241,117,45,56,42,60,226,174,201,+213,174,32,251,231,94,254,204,236,97,65,59,153,187,234,214,45,92,44,29,24,163,246,42,253,144,246,146,97,182,199,87,+134,188,11,222,209,7,231,245,70,141,200,140,232,230,5,106,45,160,74,90,131,206,25,47,4,223,86,69,3,105,241,54,+31,133,189,193,108,235,22,9,198,6,91,56,89,56,108,253,81,230,191,147,127,222,203,109,151,79,192,6,172,109,221,21,+21,126,231,58,0,198,89,217,244,178,28,169,220,231,73,59,70,124,4,224,86,168,16,175,26,113,13,74,70,250,1,235,+139,50,76,18,252,192,158,61,201,41,13,197,134,18,129,44,145,95,229,175,183,149,5,154,197,149,11,20,40,13,148,205,+149,147,103,216,196,14,55,49,135,4,220,110,35,141,167,33,219,3,185,65,2,248,166,147,115,245,176,225,31,246,101,136,+4,117,158,169,6,77,192,156,192,232,217,45,106,77,18,97,207,170,65,93,7,123,75,158,191,131,119,109,197,45,67,67,+78,222,71,95,194,85,55,39,55,251,148,190,126,39,160,139,219,14,250,21,72,203,45,103,154,74,247,250,94,209,187,158,+210,0,228,179,41,196,104,243,185,242,64,4,38,242,145,89,247,33,199,49,101,6,91,230,146,112,45,125,70,76,227,86,+20,111,122,255,79,22,196,45,64,96,41,176,214,42,75,133,203,226,54,134,59,207,116,34,77,146,242,97,218,125,58,111,+221,202,74,31,241,161,77,148,193,109,56,104,72,45,241,36,230,211,238,82,83,51,250,30,226,248,251,159,27,94,15,163,+209,150,235,29,144,108,129,196,149,233,221,91,145,6,106,160,142,174,137,27,71,16,35,242,146,156,172,64,220,61,63,49,+130,80,191,144,165,91,86,6,142,202,149,153,82,148,77,125,38,107,2,178,19,17,183,155,139,90,127,46,145,206,247,41,+20,142,224,49,95,11,227,72,64,49,190,37,50,162,94,6,175,79,160,117,40,17,14,97,1,80,24,9,131,235,118,172,+115,189,211,127,209,33,96,180,45,168,5,193,139,130,54,35,162,207,254,243,224,189,80,135,235,8,186,33,106,207,81,160,+166,244,200,205,195,248,221,159,194,0,55,150,189,128,185,12,26,12,71,174,243,71,91,29,233,110,239,15,174,172,171,21,+194,195,147,176,60,18,4,6,141,56,43,215,240,106,54,165,242,116,175,93,197,0,124,163,252,51,40,200,75,87,163,86,+28,254,43,117,239,42,95,21,97,109,236,165,151,68,150,16,52,10,222,209,148,14,190,163,114,24,160,200,0,17,109,18,+253,133,254,123,221,58,209,39,158,161,53,75,237,175,217,130,102,80,225,142,81,164,132,110,105,166,241,134,164,122,190,189,+212,229,199,210,128,191,44,235,191,144,55,93,153,141,180,79,8,15,96,205,210,160,213,180,166,76,255,164,254,83,247,139,+74,55,143,226,211,127,16,69,90,33,60,3,180,90,236,59,157,248,148,24,90,226,115,62,28,125,187,185,101,51,222,125,+125,165,112,41,210,141,225,198,10,167,200,212,107,170,72,86,218,71,93,149,52,243,168,198,187,79,223,122,88,243,30,239,+187,40,29,175,7,32,60,244,5,244,203,158,31,21,29,56,223,239,101,224,3,241,52,139,118,135,21,37,233,77,13,0,+254,191,102,79,114,146,118,221,135,187,84,16,122,213,14,215,233,102,0,172,155,210,63,233,3,179,204,27,128,252,92,127,+205,131,80,90,180,43,196,42,17,121,223,241,88,194,30,254,163,153,51,27,153,15,241,197,18,138,52,5,21,194,5,216,+71,26,39,0,27,102,40,231,32,51,62,184,212,202,184,115,1,111,149,50,5,201,58,224,230,199,199,165,170,43,53,59,+208,194,22,240,166,112,62,253,172,83,152,186,191,10,121,58,204,172,242,128,69,12,40,3,175,219,242,214,130,218,97,220,+252,117,220,32,215,244,32,53,1,252,65,55,189,241,196,104,64,48,10,61,92,156,25,192,204,235,155,212,181,147,184,142,+167,140,232,92,200,213,243,76,129,180,27,46,223,151,132,80,127,24,151,235,255,38,101,152,175,79,62,189,23,41,96,153,+2,229,216,135,16,58,250,152,52,168,46,141,34,87,216,23,54,60,101,87,105,144,142,26,217,4,169,52,132,202,184,76,+53,189,72,146,144,221,56,130,101,48,68,57,161,167,240,75,25,66,225,105,248,88,107,16,207,218,20,131,37,25,158,95,+37,48,22,160,213,113,144,149,241,163,24,154,35,109,133,95,207,90,1,65,2,94,65,236,211,181,127,47,198,63,60,180,+179,220,76,53,17,71,98,196,114,206,239,94,133,124,205,171,166,237,29,138,200,176,153,39,130,224,144,225,137,102,63,25,+131,76,189,156,102,76,1,231,4,236,30,155,34,226,210,184,162,7,246,70,96,16,99,17,202,188,158,227,230,64,227,31,+152,75,132,107,197,124,233,22,207,59,132,146,255,146,213,185,153,123,222,147,11,225,198,178,220,98,34,21,219,28,220,3,+84,93,223,101,171,245,6,82,249,147,108,102,43,54,37,226,185,33,18,97,20,193,147,137,61,137,144,186,248,103,13,216,+33,45,113,70,89,90,19,17,4,38,143,176,97,93,196,221,198,117,6,54,203,179,248,196,58,43,237,51,89,255,9,185,+105,115,222,234,192,237,158,170,162,156,51,39,137,107,38,14,235,240,186,85,80,200,83,110,81,59,48,114,30,190,122,87,+46,217,142,216,249,39,238,197,215,42,22,159,228,81,11,132,174,108,238,102,179,28,228,9,47,227,238,31,197,42,214,42,+158,109,114,140,128,200,166,228,74,77,1,227,176,122,164,8,129,168,183,13,81,166,7,246,32,1,130,112,5,190,214,245,+240,208,8,58,242,208,227,212,1,26,85,92,84,181,12,22,15,169,77,238,161,3,236,4,244,116,243,176,202,210,102,133,+3,201,74,164,229,250,85,42,3,38,234,158,240,130,141,23,182,59,149,82,78,191,104,96,90,56,148,151,182,102,243,162,+163,87,58,225,98,231,33,109,43,98,238,13,51,237,141,57,89,97,152,210,30,22,198,131,223,87,218,49,58,200,168,5,+145,67,38,83,245,105,23,121,78,114,15,115,163,229,205,55,221,8,131,180,148,136,233,211,130,38,9,244,203,30,97,172,+109,65,216,137,60,66,165,50,15,6,160,77,78,2,195,92,4,169,9,229,91,100,210,87,252,76,192,160,150,181,28,103,+62,234,140,101,39,248,226,173,170,87,71,72,36,227,196,50,161,170,39,29,0,179,217,144,238,22,40,195,20,39,222,240,+178,131,155,118,18,167,141,246,168,177,212,52,65,244,115,230,183,255,107,84,179,23,38,65,223,27,249,25,167,31,101,69,+69,191,165,206,17,120,251,144,20,156,176,120,59,226,206,180,176,130,202,111,228,153,190,56,219,31,100,196,246,112,211,190,+7,11,252,4,254,214,194,249,165,13,26,14,254,124,7,232,114,32,170,22,67,167,217,131,255,99,169,133,207,24,226,216,+221,176,15,19,115,215,174,24,241,175,255,148,128,68,246,80,211,164,254,238,160,228,200,111,161,188,122,246,201,52,116,246,+95,225,25,32,205,89,197,99,163,205,10,71,190,47,83,121,165,171,82,103,128,241,112,167,224,174,29,63,131,25,82,67,+38,206,58,152,229,225,10,183,132,252,97,16,107,152,220,206,176,151,118,81,211,202,9,232,104,227,11,100,125,68,21,176,+240,81,230,34,7,125,12,118,103,182,169,17,142,11,147,162,2,78,130,112,166,40,133,125,231,180,250,252,173,21,7,198,+179,111,123,213,17,245,240,91,200,31,51,2,74,233,79,125,77,26,66,113,109,40,210,212,22,69,4,245,134,71,73,99,+138,175,44,93,164,231,160,14,230,243,46,117,192,31,12,206,189,59,220,132,195,253,233,64,44,11,85,103,234,233,185,202,+141,175,96,250,27,125,111,46,233,216,9,3,194,166,226,192,201,22,22,206,22,95,148,172,8,25,96,162,186,98,160,57,+28,131,123,182,15,71,239,178,202,172,20,157,184,120,10,189,36,37,179,51,212,76,227,197,205,72,57,59,222,209,159,172,+227,160,100,30,149,79,170,77,74,88,71,169,92,28,2,40,62,144,205,149,122,182,148,125,238,118,127,24,37,110,108,158,+68,198,192,171,141,204,40,155,120,183,247,212,85,12,243,23,9,166,132,85,87,3,110,53,67,246,5,86,2,234,158,180,+183,254,196,28,191,22,95,214,0,173,149,189,136,11,25,128,34,81,218,187,22,28,183,217,179,216,139,165,238,186,139,67,+71,164,221,175,130,72,214,70,17,204,16,189,168,8,198,83,75,39,22,245,66,59,10,180,194,153,75,51,243,214,18,203,+33,33,202,37,126,10,92,181,135,159,15,50,82,173,183,161,19,247,10,80,142,45,221,63,233,31,162,164,52,61,25,214,+245,99,17,241,79,105,133,33,115,5,10,53,212,130,237,51,141,75,95,163,180,177,103,189,203,250,112,103,5,111,5,7,+40,230,87,51,205,168,31,172,181,110,122,118,231,23,64,96,163,190,79,195,61,23,122,95,246,82,250,6,132,252,98,173,+61,92,123,107,246,170,217,119,113,71,107,125,10,58,197,91,131,61,89,215,106,142,66,198,243,225,48,46,192,5,18,204,+124,174,100,78,213,121,43,145,32,195,197,2,111,211,38,153,108,8,181,73,248,232,168,135,82,115,208,171,174,68,234,103,+231,135,161,130,8,80,247,220,100,78,57,20,10,129,182,64,173,124,184,110,50,133,155,171,112,132,103,54,84,253,81,159,+69,179,231,69,98,166,97,238,43,98,83,110,7,252,27,161,13,126,14,207,226,16,20,126,92,177,15,25,67,249,210,229,+56,162,85,252,173,26,241,72,134,150,65,147,160,176,180,210,51,25,77,0,52,96,24,168,57,149,102,140,234,145,6,93,+150,98,22,88,183,177,161,241,54,206,29,123,49,180,218,48,147,13,39,76,24,11,232,147,77,217,3,58,223,254,106,127,+10,69,74,103,30,11,70,62,85,72,145,130,219,4,70,250,179,102,245,152,241,112,212,207,120,11,177,239,167,86,187,36,+249,156,111,113,129,16,97,139,206,118,199,149,58,115,216,169,191,255,155,166,58,239,243,49,56,30,157,204,117,11,22,240,+195,153,247,169,241,0,133,75,191,40,22,192,167,68,237,61,83,215,10,94,52,64,26,122,238,109,255,130,56,9,44,169,+99,163,209,228,122,232,128,166,92,176,51,171,96,152,31,117,165,255,13,229,89,19,153,22,30,88,234,29,191,20,244,194,+79,235,22,124,40,52,212,229,110,53,175,41,51,170,107,171,248,193,9,155,58,8,42,143,115,233,19,163,28,208,30,70,+225,109,197,15,55,4,185,88,86,86,12,64,153,45,157,211,9,219,73,170,96,243,141,20,159,94,96,26,110,217,32,197,+41,208,70,89,127,192,30,228,164,7,139,68,106,211,238,117,232,7,235,75,173,186,167,1,19,231,173,119,31,140,139,108,+51,61,1,115,205,156,166,130,5,177,217,238,105,164,24,241,203,235,237,87,61,232,28,72,255,175,219,101,101,251,98,197,+188,124,111,239,142,20,161,69,57,210,40,84,149,208,89,38,231,174,191,207,178,106,116,181,81,187,150,149,236,124,157,128,+104,163,194,185,118,12,35,133,236,21,231,130,88,239,201,1,193,99,130,138,105,250,24,69,217,68,67,152,119,111,235,76,+92,241,26,174,142,24,62,64,152,37,10,65,141,83,156,170,185,239,162,213,61,86,106,21,138,174,197,236,105,32,127,135,+47,31,133,184,84,59,191,146,198,176,24,191,182,150,190,123,26,137,254,1,12,206,195,36,65,62,229,64,104,154,73,239,+112,204,31,182,125,212,72,43,232,97,239,89,192,172,179,186,106,121,203,22,155,34,7,53,221,130,250,94,75,35,208,7,+59,66,237,227,183,98,218,86,31,27,197,227,202,15,154,39,153,43,157,91,174,195,204,96,142,143,20,233,83,82,89,31,+222,72,239,195,48,192,158,176,239,36,7,180,167,58,141,180,124,13,127,60,133,205,197,137,174,67,139,248,162,1,51,55,+8,179,0,205,62,77,120,216,158,111,103,234,53,234,193,91,210,26,222,114,96,164,38,241,113,123,194,111,116,36,6,66,+96,205,235,252,239,197,135,153,44,58,157,64,132,53,194,241,70,198,242,195,86,40,131,98,197,42,223,27,33,53,160,146,+17,31,129,208,20,125,217,251,177,174,164,212,119,118,91,220,84,104,241,9,21,238,41,126,58,49,143,39,151,149,95,200,+73,146,205,5,196,130,52,51,120,90,84,132,247,188,183,101,61,202,105,133,157,34,106,234,117,194,178,251,57,208,161,227,+244,213,6,198,27,110,160,92,180,115,20,122,99,148,226,86,54,167,128,37,199,14,125,128,237,61,5,72,74,140,21,99,+102,249,133,110,203,51,145,0,3,248,173,241,238,9,221,31,25,24,141,217,69,207,176,24,49,149,180,103,54,168,87,223,+183,82,168,240,139,98,243,4,13,246,242,125,148,219,51,43,85,229,172,167,17,37,217,103,19,152,169,220,59,108,7,133,+83,217,133,144,143,183,128,203,50,189,132,123,53,251,245,131,48,21,18,215,95,171,93,185,58,160,9,225,175,121,41,183,+30,229,58,35,70,141,47,195,51,131,219,73,43,50,237,193,232,127,201,190,7,160,67,139,211,193,244,27,104,126,129,82,+92,44,33,188,25,85,101,134,99,186,239,97,55,92,204,154,86,150,93,242,104,239,137,180,21,31,123,49,47,168,154,68,+237,223,235,93,200,153,125,208,125,153,215,87,231,6,169,141,203,190,215,124,240,3,14,186,70,207,128,42,245,222,48,225,+64,242,18,178,7,84,233,130,91,47,216,148,213,176,18,251,238,159,80,222,21,79,200,241,28,245,230,243,82,219,72,163,+197,52,209,140,53,204,53,216,6,187,205,205,190,77,249,242,26,54,168,120,130,23,180,222,202,160,20,95,74,243,107,246,+129,119,217,201,223,84,202,192,24,179,81,253,244,170,62,101,194,49,65,62,118,160,123,162,247,133,140,71,10,52,156,155,+63,65,69,116,194,142,173,203,205,191,42,2,57,218,237,224,80,39,4,144,11,122,255,12,187,23,67,239,33,42,169,30,+85,86,151,145,159,52,155,109,44,86,195,206,57,176,200,176,87,87,179,248,76,142,60,163,174,129,75,186,137,93,216,108,+158,203,221,244,67,6,172,94,142,3,212,119,136,1,73,171,54,118,10,49,244,241,55,138,158,87,70,92,21,91,223,0,+140,218,215,42,43,129,172,138,178,255,90,41,229,14,234,202,132,154,170,54,49,150,182,126,91,45,201,65,210,105,105,87,+232,175,150,129,18,125,245,109,71,46,242,230,147,137,229,85,28,247,230,208,50,64,111,221,87,119,147,149,88,249,120,39,+249,79,41,232,16,167,37,5,237,195,139,144,196,219,137,47,4,70,43,114,145,2,240,73,220,25,233,33,26,167,116,214,+173,95,81,94,61,74,40,120,78,137,127,246,249,232,192,110,105,147,101,102,179,38,178,131,197,215,129,32,187,92,120,178,+202,163,160,14,100,60,250,9,130,67,77,43,48,2,146,207,70,154,29,234,115,3,232,228,134,177,126,213,188,188,240,96,+191,153,196,38,188,193,173,11,77,79,206,116,113,178,225,132,232,99,55,208,79,67,151,143,232,210,14,127,236,124,0,149,+176,103,110,72,123,159,250,28,182,144,146,104,6,6,71,218,246,178,79,236,251,154,99,127,197,138,147,84,156,50,81,93,+28,117,119,199,212,11,167,105,214,178,56,177,242,100,207,103,234,19,130,60,33,138,145,3,42,83,34,231,199,43,183,41,+148,189,161,44,132,210,129,58,43,54,9,143,15,231,125,157,107,105,114,68,112,160,107,145,187,190,143,139,254,87,216,210,+153,180,177,85,206,62,128,235,134,83,251,95,27,5,74,199,242,229,151,236,59,23,227,228,78,144,188,77,131,141,133,103,+214,4,108,25,92,92,159,59,85,140,85,254,218,62,78,5,47,5,11,251,194,167,56,217,204,224,186,43,45,40,168,232,+100,204,149,103,222,75,125,78,3,218,118,172,63,251,185,84,146,36,146,251,147,89,109,121,33,38,50,253,126,5,211,189,+156,150,127,89,162,162,65,125,115,55,30,104,20,82,9,70,59,92,57,200,148,23,229,93,93,220,211,163,183,110,87,245,+141,164,82,86,60,250,115,134,63,176,139,77,100,217,196,60,175,162,80,23,5,136,30,187,185,219,221,133,175,41,32,201,+67,63,93,151,88,127,222,246,35,80,101,103,237,44,167,74,77,79,20,167,157,116,218,232,129,135,180,69,246,230,122,93,+110,197,189,156,77,149,64,186,111,244,106,11,22,227,179,28,221,158,143,249,8,15,233,105,55,201,160,103,132,72,184,34,+184,238,167,198,151,53,172,167,111,112,71,131,40,159,145,114,63,157,142,172,128,7,139,29,104,122,179,173,133,207,10,86,+100,160,85,84,90,168,75,244,93,213,82,93,13,29,48,76,175,137,167,14,236,65,217,169,88,187,243,197,174,104,145,235,+68,180,57,129,92,48,129,94,238,63,8,98,59,238,217,176,57,214,158,174,43,19,43,191,210,253,54,131,67,127,223,34,+140,57,162,119,251,92,195,37,110,87,94,189,101,140,193,211,220,121,227,96,69,16,165,31,65,33,86,1,246,89,28,17,+226,128,81,219,252,106,241,119,220,217,99,100,141,3,222,148,36,146,215,231,125,205,172,89,105,69,132,147,239,142,59,110,+71,239,194,42,65,7,47,9,137,220,33,148,25,250,157,236,22,237,38,71,238,26,186,116,65,193,208,221,113,217,170,21,+119,19,62,32,99,235,127,80,12,116,216,72,149,215,11,12,242,53,244,67,238,100,104,250,49,194,85,165,247,204,227,4,+179,238,99,183,9,194,11,49,187,76,160,163,161,209,176,121,86,120,255,191,85,137,33,146,193,168,147,194,190,242,197,252,+178,16,34,55,162,205,164,207,172,227,59,167,120,162,246,82,109,35,141,84,218,144,218,58,162,56,224,135,32,153,58,40,+180,25,228,243,0,233,3,153,190,205,40,181,68,24,116,86,145,163,235,207,206,105,34,176,5,71,214,4,76,49,153,52,+239,235,62,91,230,55,228,112,234,203,156,42,251,255,232,94,181,179,52,195,232,98,200,26,178,238,69,67,164,97,150,220,+65,171,215,242,235,212,131,233,195,130,239,160,95,53,144,0,177,75,219,193,239,14,145,148,152,189,160,177,188,15,143,192,+169,43,126,99,155,231,251,212,200,254,41,5,64,35,127,45,213,140,246,76,169,32,3,42,145,112,134,66,78,124,110,6,+43,105,142,27,239,125,204,223,189,235,19,35,112,149,110,36,32,253,126,156,131,181,40,148,237,79,40,1,48,139,187,182,+104,210,61,102,118,212,30,142,150,16,189,184,248,125,127,158,115,188,130,80,18,71,126,217,26,219,58,150,13,21,188,32,+128,92,240,173,135,93,124,203,147,208,146,93,23,52,32,84,217,44,219,6,107,213,3,122,151,231,210,117,103,13,10,64,+45,179,120,168,112,186,35,74,93,35,75,12,56,102,151,126,49,90,163,203,219,86,178,239,71,130,64,176,242,222,245,98,+116,24,236,47,127,189,84,210,92,201,244,125,88,192,138,71,87,230,139,35,144,197,139,69,36,156,107,28,180,192,129,225,+116,219,247,195,77,96,95,150,147,100,77,81,121,242,152,16,59,144,60,140,112,22,200,208,143,10,59,231,217,255,210,174,+75,149,145,13,45,127,96,216,69,225,20,11,73,61,76,133,19,234,168,3,171,42,120,10,154,75,42,2,70,92,115,100,+192,54,227,250,54,116,157,2,190,193,124,156,95,147,112,120,124,44,200,174,80,248,70,224,116,42,96,173,122,11,205,87,+168,248,230,153,12,253,196,69,125,239,10,129,163,198,114,39,247,180,70,32,129,45,220,152,76,45,140,145,28,113,211,183,+246,70,157,218,135,190,213,221,164,47,174,77,189,0,235,0,255,253,79,210,63,50,36,56,31,142,41,191,204,162,102,192,+241,96,228,189,121,199,69,161,55,56,10,72,202,65,86,89,117,137,56,143,224,230,122,172,104,179,69,126,74,40,249,201,+126,71,122,101,141,0,255,9,172,122,188,10,54,167,251,103,228,245,179,63,105,141,49,189,57,109,42,178,64,86,173,154,+192,185,108,8,84,129,151,61,76,38,68,128,87,11,147,134,34,93,109,71,151,117,35,225,198,93,186,223,11,35,180,173,+23,224,188,219,84,129,92,209,11,224,140,20,228,109,177,16,34,202,49,193,18,121,73,31,93,171,7,52,93,94,2,141,+122,68,117,61,9,249,39,34,176,116,92,233,28,175,131,106,8,253,84,209,106,88,197,252,232,208,161,237,235,248,251,34,+93,7,182,187,202,189,52,220,107,202,120,9,2,211,44,42,206,244,186,91,62,134,231,37,99,55,65,72,193,169,250,201,+132,190,37,81,102,7,211,60,46,106,151,92,230,75,61,176,83,0,58,234,0,128,156,188,12,27,1,220,192,168,171,145,+229,242,25,221,157,136,67,136,101,42,110,103,174,70,238,134,114,75,69,84,157,57,150,77,102,146,144,110,140,237,51,96,+52,236,27,204,203,67,12,156,91,107,18,228,55,41,95,77,131,174,2,141,218,190,159,32,142,195,195,196,215,208,4,188,+25,209,172,168,216,111,39,137,36,223,155,180,49,154,68,39,130,142,214,0,161,228,253,166,231,66,150,34,93,46,243,194,+90,215,167,144,175,68,92,72,179,82,208,254,207,171,139,210,200,148,178,175,156,108,57,71,0,229,209,76,201,199,0,95,+214,190,69,160,217,100,92,99,78,126,3,54,162,152,205,110,238,84,186,152,144,203,152,178,136,142,124,40,117,70,20,35,+115,124,51,86,184,44,44,230,84,170,76,240,41,147,140,237,94,8,55,44,233,186,181,239,79,127,180,213,228,225,177,151,+135,246,112,152,248,23,93,44,66,117,68,110,26,153,112,251,48,132,191,146,178,41,180,191,137,159,105,159,252,56,54,13,+231,5,97,34,0,28,68,168,100,242,73,45,105,41,22,166,12,66,51,62,159,11,230,159,246,95,122,197,85,127,79,131,+172,5,132,184,135,213,169,42,21,73,76,72,221,157,103,187,34,114,122,130,122,237,29,0,8,198,156,227,6,34,217,117,+11,238,37,188,132,51,231,178,127,90,60,89,65,228,183,159,43,83,160,176,154,93,184,171,233,71,49,40,209,124,158,0,+235,220,76,248,187,210,142,231,237,93,188,240,87,84,107,245,44,242,198,123,64,1,193,232,48,76,64,107,106,98,64,47,+2,1,154,90,20,92,159,254,162,209,32,161,107,129,113,110,17,198,203,11,183,53,126,215,61,78,18,58,8,24,134,182,+244,140,169,177,56,231,238,79,32,93,47,158,135,155,100,8,220,184,114,117,236,107,120,75,176,228,0,224,202,40,24,33,+91,124,204,186,185,203,184,88,149,4,25,79,12,4,45,8,158,155,192,219,176,133,238,72,23,166,70,229,228,88,215,191,+255,108,69,245,202,209,207,197,12,84,4,52,197,2,169,245,165,85,0,182,201,207,244,214,114,47,114,15,114,74,229,59,+164,58,31,12,102,55,40,129,100,83,102,99,187,51,251,25,185,151,236,133,33,47,227,159,241,241,32,100,139,103,113,207,+118,191,107,13,24,227,219,138,91,94,85,182,159,61,92,76,93,255,194,103,244,187,209,250,190,86,39,61,97,250,69,218,+244,134,179,17,74,94,86,101,143,216,148,157,113,119,165,152,97,54,121,135,170,44,172,38,113,238,226,110,154,190,89,56,+58,179,113,250,26,224,140,125,81,87,186,93,85,154,144,84,133,142,193,251,115,192,207,86,114,185,103,125,100,163,158,206,+246,130,19,48,221,165,46,153,216,149,186,93,177,100,249,200,165,73,167,116,0,226,93,251,240,247,101,197,58,142,48,7,+137,32,90,127,53,46,192,255,78,213,210,157,241,104,195,70,156,198,90,80,82,227,96,167,178,152,82,255,48,203,210,201,+124,212,22,67,134,118,122,245,245,71,16,27,40,99,95,111,126,23,101,18,172,184,196,169,21,50,54,38,43,160,121,187,+30,48,114,211,170,47,33,176,248,112,127,168,194,190,104,179,45,28,120,69,226,36,51,3,4,24,104,95,30,116,51,207,+95,95,164,167,226,70,13,123,157,7,138,211,192,55,6,142,30,251,58,75,235,3,219,4,144,165,150,46,14,198,248,225,+97,84,97,61,180,220,18,221,152,203,15,193,116,68,79,62,177,75,39,13,105,17,128,230,245,120,144,143,173,87,69,169,+142,45,127,115,215,239,109,141,116,255,235,153,48,249,55,72,246,19,108,182,172,27,255,46,180,162,43,113,180,23,243,230,+127,162,161,22,139,194,166,162,98,74,129,12,112,2,45,226,91,29,20,171,146,222,211,25,5,53,2,149,29,46,176,224,+131,65,237,167,52,133,145,36,232,135,187,189,254,231,241,175,123,16,174,201,63,64,51,218,51,9,77,78,30,127,39,224,+149,49,201,8,112,220,160,99,98,130,97,146,164,178,11,252,194,139,238,223,93,196,167,209,39,39,49,8,111,132,29,238,+220,44,12,236,40,48,29,108,12,152,239,2,30,107,202,217,149,242,176,117,237,38,165,41,239,121,220,3,101,58,90,255,+174,138,114,20,57,119,35,135,171,149,106,110,219,127,117,54,116,112,219,148,7,86,119,12,103,225,48,34,44,102,196,29,+38,123,136,152,51,84,105,31,207,81,68,248,254,192,243,202,139,125,103,231,245,213,50,237,219,105,75,232,47,124,20,184,+123,32,116,149,247,121,34,55,253,186,52,238,120,47,243,139,254,48,210,149,105,86,251,13,150,124,252,34,233,178,223,171,+42,221,91,82,94,62,113,191,3,129,149,32,21,54,50,139,68,106,45,76,239,189,6,138,22,206,250,121,55,230,48,91,+132,96,153,7,126,154,54,184,94,212,123,23,203,243,126,197,240,230,40,175,11,233,97,110,175,143,216,243,156,144,215,46,+245,25,16,38,84,207,68,224,201,135,26,204,164,194,7,46,84,13,28,179,78,247,58,65,59,8,105,7,230,9,26,251,+224,38,80,32,232,128,60,226,109,153,239,89,212,134,196,171,6,35,86,90,229,150,145,112,120,191,178,216,190,149,212,28,+222,27,160,110,76,230,62,198,34,165,194,123,18,58,222,109,3,43,233,222,149,59,206,139,107,215,199,252,199,87,188,174,+170,14,199,169,73,215,72,226,209,35,47,132,73,187,203,104,62,211,157,218,19,238,247,221,235,7,218,147,159,184,148,87,+219,149,170,53,44,19,5,31,170,234,244,52,21,87,128,236,34,113,64,92,139,40,187,246,16,92,114,199,252,111,50,213,+56,12,69,10,155,217,77,249,84,194,153,247,17,233,65,217,73,215,204,57,11,251,36,203,128,122,133,136,116,39,191,215,+110,13,12,155,67,11,0,152,140,255,226,50,189,187,155,136,201,235,77,100,31,201,213,133,114,33,223,11,113,233,83,53,+108,111,206,210,190,39,246,198,208,65,10,106,242,199,154,183,215,113,37,180,153,56,249,7,232,202,111,167,201,147,81,180,+59,226,66,25,51,76,24,37,32,193,198,247,118,127,167,138,52,18,177,223,117,61,123,234,235,136,111,206,133,245,37,157,+200,238,69,1,29,125,180,128,231,165,253,46,202,87,123,16,88,170,202,45,99,117,132,114,19,131,86,152,45,106,195,145,+94,136,86,65,38,43,225,153,64,143,228,208,1,251,235,197,166,124,134,158,228,143,249,212,53,228,30,72,171,36,155,35,+153,82,249,90,24,62,18,116,58,180,122,95,166,112,141,97,153,127,8,123,0,142,61,210,224,217,202,33,18,181,183,32,+222,109,112,16,244,157,92,255,207,244,140,125,236,116,249,84,135,206,28,66,238,217,217,33,57,200,39,118,234,160,176,194,+189,17,5,92,233,0,181,46,10,131,62,85,59,16,54,61,7,15,105,120,227,158,138,79,242,61,246,101,14,209,77,118,+176,240,40,100,206,16,79,194,208,57,143,101,91,50,232,163,64,29,19,155,239,126,44,239,240,224,142,171,42,64,7,168,+146,212,85,2,232,197,250,41,142,250,242,112,199,57,135,191,163,243,68,64,68,128,196,130,10,5,228,60,74,172,49,221,+32,8,186,182,187,220,211,109,82,102,133,182,75,211,59,20,4,4,72,210,48,146,235,92,73,183,52,1,226,133,34,224,+36,169,234,121,27,122,208,29,33,72,182,181,230,4,245,134,71,73,99,146,126,111,75,180,140,154,13,215,192,245,41,23,+165,185,195,70,240,92,145,2,85,119,190,15,200,140,73,140,122,195,160,39,78,76,57,141,19,50,52,201,103,132,149,101,+236,201,27,126,88,187,207,140,114,155,109,85,13,242,252,226,52,168,109,155,127,218,28,60,169,82,132,0,75,86,149,164,+43,145,10,125,76,180,60,144,247,251,182,27,68,81,252,254,78,121,195,197,230,90,187,7,156,201,114,199,178,18,45,248,+47,63,135,180,80,117,127,190,195,254,221,253,109,112,95,230,98,193,34,77,74,83,57,107,84,144,248,2,147,84,140,123,+42,99,218,16,189,182,186,58,244,235,58,249,82,73,65,136,73,65,131,202,253,79,114,81,130,54,16,181,97,241,52,244,+26,142,84,82,168,52,252,99,37,85,111,168,251,198,15,120,188,28,25,30,200,94,55,252,134,77,45,114,180,92,106,47,+154,134,124,89,97,8,11,83,193,180,132,97,159,178,104,4,96,214,23,200,4,226,104,117,214,64,32,177,40,150,213,54,+87,36,97,154,168,57,246,126,114,134,87,229,231,224,46,68,165,162,118,222,133,166,8,23,134,56,160,129,127,103,68,150,+175,50,210,200,143,203,106,203,115,112,206,177,133,108,68,199,43,234,22,31,73,217,63,18,82,214,85,176,45,30,59,209,+128,44,19,89,241,26,238,145,204,116,160,136,91,233,165,39,248,2,59,142,225,58,75,21,133,226,135,169,12,239,232,2,+123,144,220,175,139,56,1,219,218,159,23,130,183,205,112,251,93,32,199,196,208,249,78,85,12,81,137,239,206,133,45,95,+101,152,185,63,159,177,230,128,88,39,66,59,57,21,58,55,115,4,188,207,21,243,47,126,204,21,158,228,242,55,126,9,+215,32,47,69,67,246,241,134,64,73,19,29,177,20,231,214,179,238,90,168,45,88,148,189,78,147,123,59,21,253,153,206,+204,110,154,173,218,91,247,226,184,65,165,52,59,82,26,84,15,181,240,63,93,192,249,129,231,104,241,177,6,24,87,83,+35,21,72,153,59,35,66,202,172,172,19,44,29,152,14,254,140,136,30,29,115,9,154,147,175,239,17,214,220,248,234,134,+188,40,227,33,148,76,67,122,249,84,240,172,168,154,181,15,176,123,68,43,227,104,33,199,173,115,43,225,21,47,59,192,+129,251,216,244,13,11,89,114,30,224,102,226,100,213,158,126,119,52,159,213,136,182,167,226,212,189,218,19,90,136,14,140,+106,134,22,68,139,7,231,180,86,164,123,56,0,193,36,214,36,20,44,145,190,18,249,191,243,98,110,219,247,8,240,67,+93,192,133,39,6,55,40,214,246,2,47,76,117,67,48,208,140,227,102,151,176,98,24,191,194,19,229,62,156,21,8,224,+25,138,253,220,223,183,141,102,179,139,164,140,72,50,27,186,18,28,250,244,215,120,116,229,37,204,210,43,7,33,150,192,+183,246,115,211,119,200,7,69,172,59,229,69,161,83,94,12,5,32,146,248,198,14,90,99,255,83,111,44,210,103,254,212,+187,162,121,72,14,13,108,106,111,218,70,253,154,120,250,131,181,151,164,162,117,115,144,48,27,98,124,7,109,246,112,147,+79,52,199,8,16,41,57,123,87,25,23,103,71,48,146,90,216,148,207,252,175,223,3,52,230,130,67,11,245,180,94,222,+14,150,26,225,21,106,123,16,74,43,219,67,128,102,161,156,81,254,171,65,17,205,126,218,126,25,141,69,8,110,98,165,+76,182,219,48,108,171,255,122,208,97,163,113,18,223,123,70,100,29,43,164,66,42,95,115,62,145,88,147,139,78,69,253,+233,115,64,227,206,105,205,68,234,138,12,103,239,245,11,120,173,21,172,150,137,229,165,147,146,142,216,215,37,148,75,218,+120,117,108,207,162,140,218,190,150,3,241,61,205,91,200,28,74,181,171,180,7,130,50,184,181,61,75,225,182,177,23,9,+51,146,222,160,78,238,167,208,119,56,239,151,55,44,226,175,2,138,193,40,203,133,141,184,53,176,152,203,63,13,32,240,+31,236,237,80,205,71,85,138,199,35,47,153,211,13,101,93,148,250,190,254,127,255,238,150,132,65,204,178,138,237,239,10,+111,36,4,99,69,33,199,178,254,216,216,98,130,146,28,171,244,34,211,36,72,201,17,73,113,30,156,118,117,195,245,97,+138,216,21,144,55,245,106,170,185,184,252,150,171,163,38,20,190,7,204,208,235,105,235,158,212,56,96,115,65,164,133,118,+122,178,150,48,57,100,70,160,216,221,138,226,122,143,154,101,39,191,38,107,41,165,196,97,113,149,118,90,96,37,245,249,+133,122,248,153,57,237,167,50,231,141,8,36,54,245,130,240,183,179,247,255,17,126,70,240,69,146,224,227,249,190,200,216,+41,158,14,0,104,93,30,223,16,37,194,152,27,111,86,117,101,80,168,185,212,28,1,93,138,199,156,110,130,182,97,101,+132,54,51,83,62,51,84,119,189,68,72,26,17,64,135,142,122,148,239,65,210,148,243,130,25,35,184,93,109,191,216,45,+84,15,90,226,23,236,78,120,145,155,192,29,151,68,20,209,191,124,215,50,100,114,78,122,61,242,226,122,219,129,3,92,+69,124,31,78,176,197,251,196,166,181,214,245,130,124,120,99,157,17,12,135,242,217,135,147,80,159,198,97,43,235,177,161,+146,158,70,0,31,79,172,154,120,144,1,129,151,181,92,47,216,176,117,191,116,157,64,254,226,60,67,30,205,33,186,193,+13,151,108,149,117,184,52,123,89,202,203,4,12,151,146,167,79,221,28,133,166,204,127,106,84,244,160,223,170,31,48,143,+77,196,177,162,150,39,0,123,251,10,193,208,191,239,172,163,247,17,93,48,115,48,178,82,40,130,45,161,156,242,30,237,+13,18,119,235,48,48,137,112,193,2,191,215,164,91,231,191,29,152,76,88,57,11,227,13,254,228,67,137,158,4,159,130,+109,144,224,178,34,251,124,26,126,231,124,92,33,230,149,55,5,37,186,184,48,24,142,123,187,238,203,161,134,198,56,64,+209,97,233,111,123,248,237,151,144,215,73,84,208,113,43,165,84,79,248,232,245,117,173,197,205,5,184,82,122,217,154,2,+48,96,105,23,167,116,77,165,104,17,181,17,153,226,105,28,18,39,115,254,24,219,180,228,13,244,89,4,140,143,100,22,+71,84,146,246,51,10,200,158,229,180,12,131,38,112,171,20,63,188,182,160,16,174,162,20,201,255,101,119,107,205,163,0,+210,77,142,5,155,183,5,139,41,21,232,25,183,113,209,107,78,62,240,161,88,134,246,171,163,117,84,88,163,248,27,158,+161,178,103,212,157,56,136,39,168,176,156,157,179,131,34,8,41,207,96,162,114,228,205,228,241,147,52,74,170,162,62,252,+162,130,193,96,253,22,193,211,92,109,37,189,86,127,234,43,157,203,96,112,160,30,86,229,0,120,250,78,199,197,198,159,+10,86,90,230,247,204,135,147,11,176,254,72,191,229,187,120,230,209,79,234,23,64,10,232,92,46,192,177,54,158,122,48,+83,126,106,212,250,0,176,40,48,50,179,102,254,47,43,161,85,238,99,108,19,76,167,175,182,234,116,103,53,176,234,189,+110,195,145,222,187,219,95,203,92,218,162,130,77,42,142,118,114,28,173,218,44,206,229,244,114,228,110,231,158,213,127,208,+153,86,24,165,102,182,110,64,244,187,183,16,247,252,39,192,211,16,27,114,201,139,100,41,95,141,137,116,251,103,92,103,+181,250,88,151,100,230,106,10,188,45,182,61,183,69,253,122,130,16,104,10,56,160,127,158,203,207,12,215,29,25,82,17,+14,234,43,72,193,106,82,99,50,23,201,42,104,151,65,202,124,5,69,112,152,215,54,248,62,92,213,62,149,12,1,126,+195,88,163,220,211,221,216,117,129,92,35,192,112,180,216,102,28,217,79,240,65,121,5,86,89,151,57,122,100,244,202,107,+208,156,64,249,49,243,41,120,68,95,158,2,80,239,80,25,98,23,5,178,146,20,91,43,155,46,15,101,203,241,130,122,+27,26,87,155,191,149,51,64,17,248,121,7,23,14,168,230,213,71,59,177,11,160,201,151,222,137,40,194,235,187,170,102,+121,99,156,95,135,115,187,163,142,226,126,9,4,239,178,0,82,165,163,154,28,19,155,10,50,92,26,252,137,93,160,43,+138,15,245,201,148,35,57,106,26,31,217,245,207,29,244,58,220,67,208,113,14,73,127,119,108,111,193,161,1,110,230,163,+227,3,145,41,188,37,24,129,171,150,215,210,118,241,13,231,243,236,157,68,94,64,142,226,82,105,104,101,24,181,144,234,+175,125,109,191,107,26,120,179,133,125,140,241,75,163,255,62,132,43,143,176,14,209,120,94,192,214,104,30,107,1,22,126,+133,87,115,80,66,85,254,96,54,44,78,124,93,78,229,72,222,188,125,6,78,147,57,18,62,24,67,39,136,33,89,52,+33,57,142,251,78,93,43,47,247,8,255,154,95,124,123,2,141,163,23,148,95,57,220,200,114,181,212,214,141,213,104,132,+93,244,163,68,144,36,150,165,149,123,100,106,212,42,125,30,128,211,92,170,27,125,246,16,163,74,92,202,200,69,213,104,+173,227,45,5,57,54,247,228,97,3,117,99,34,43,130,79,221,243,161,200,129,233,177,168,217,9,206,89,200,26,135,35,+146,103,160,172,54,49,72,53,74,66,38,194,4,115,37,10,192,75,237,203,172,43,206,62,53,98,201,165,172,82,85,101,+43,189,161,135,229,129,243,227,48,38,56,131,73,21,228,94,208,110,221,61,216,89,44,246,215,92,196,46,190,149,80,242,+134,222,141,81,225,63,23,21,148,210,248,71,180,12,51,245,162,188,211,21,163,155,42,172,80,56,104,123,211,77,92,247,+53,44,50,162,114,62,245,122,111,14,2,5,175,180,206,83,235,40,58,9,197,249,247,96,73,53,167,175,174,196,197,59,+178,253,32,43,91,46,30,253,226,106,81,104,254,8,160,198,2,206,148,47,251,104,186,56,224,221,184,137,1,229,41,69,+171,158,175,105,140,74,214,115,105,167,111,185,104,18,12,7,245,46,215,200,17,184,23,40,42,146,4,3,114,13,34,12,+168,156,149,79,234,144,157,39,155,139,41,108,216,82,221,208,229,26,182,108,173,82,38,47,255,21,170,200,216,37,22,43,+125,59,175,111,53,12,51,111,109,209,22,107,53,33,6,49,174,253,117,239,89,171,81,162,56,226,2,148,34,216,63,224,+39,209,207,244,61,247,178,11,157,7,70,71,11,112,121,165,217,53,52,104,107,199,118,164,56,208,55,242,127,206,26,155,+181,35,161,35,67,217,117,74,255,99,142,232,68,153,19,69,233,245,174,125,249,227,200,61,233,218,227,141,254,24,130,62,+115,138,234,205,219,27,4,132,20,28,200,145,170,150,164,43,64,52,22,34,91,238,34,189,68,135,61,158,2,255,252,84,+185,0,176,138,171,141,134,47,227,249,17,212,142,75,9,187,46,172,230,183,11,249,53,168,40,206,144,147,49,58,236,5,+41,193,167,129,243,106,64,35,248,20,131,172,45,233,79,41,226,210,111,40,17,214,39,0,196,158,237,104,80,164,130,123,+252,122,14,161,156,225,30,223,68,219,24,69,126,93,6,9,37,11,189,114,85,155,87,36,27,150,233,209,201,237,96,27,+173,25,241,150,41,128,74,55,137,24,118,133,110,213,146,214,157,206,162,132,44,51,77,20,7,245,143,177,34,150,157,27,+21,135,164,138,136,33,133,135,5,51,27,93,210,98,201,224,213,238,204,51,145,206,79,122,249,82,72,205,209,235,255,44,+163,165,51,213,85,8,188,137,149,17,77,72,109,133,46,112,182,113,19,203,49,76,226,32,90,44,156,9,230,109,126,67,+148,12,154,239,247,193,131,11,5,229,147,36,137,75,134,224,67,65,114,143,156,158,78,168,222,205,239,133,208,164,159,223,+205,67,76,203,241,197,99,16,99,18,80,2,2,34,34,168,159,234,168,140,117,216,198,214,37,134,229,225,136,42,29,13,+34,146,144,71,27,76,41,148,32,128,223,77,5,128,247,94,224,250,182,73,179,65,237,208,148,51,243,244,99,135,187,69,+188,102,147,159,205,126,219,219,40,195,9,205,58,178,204,39,210,123,32,50,54,18,188,189,68,245,217,156,197,131,86,179,+164,44,197,138,11,14,2,43,34,62,129,148,125,80,178,128,178,87,63,39,207,157,172,179,81,108,82,222,30,168,230,49,+42,41,110,92,67,92,197,232,48,201,137,72,254,98,86,75,158,229,222,73,24,120,170,227,155,96,177,59,139,195,77,220,+209,221,129,185,18,79,197,224,174,16,205,254,234,68,40,81,173,184,62,138,56,231,158,120,205,128,109,206,6,134,208,137,+23,247,154,252,112,103,11,102,207,29,62,149,151,183,76,190,47,32,29,109,85,100,62,45,15,146,185,142,188,20,192,161,+41,93,154,191,62,60,2,169,100,47,255,85,111,164,30,245,131,108,199,38,149,224,80,166,92,220,78,217,140,217,131,120,+133,28,18,217,249,65,31,67,118,227,124,135,77,200,74,207,122,69,89,94,124,32,12,151,167,113,253,222,163,121,18,93,+184,193,104,30,46,31,168,124,59,121,77,232,118,68,114,185,124,214,7,216,47,209,185,11,195,217,54,37,193,18,95,108,+35,173,211,82,133,33,238,222,30,124,238,112,254,226,178,153,114,204,33,249,64,204,83,199,76,249,108,253,131,198,86,168,+117,249,135,43,27,24,13,15,54,234,220,66,206,233,255,79,177,190,248,22,170,104,69,243,127,64,185,42,161,86,122,196,+170,188,33,59,60,201,174,212,227,138,140,9,221,172,108,137,102,251,203,105,64,251,36,119,243,208,121,180,166,120,142,167,+237,137,95,175,253,55,206,187,77,131,66,37,193,117,152,229,147,105,165,72,237,56,69,104,181,148,89,47,77,32,143,230,+8,235,9,114,171,97,229,133,39,27,242,232,81,69,63,148,189,51,95,157,1,115,38,112,61,101,245,54,216,74,55,172,+236,201,22,51,215,103,124,155,181,62,78,91,212,75,64,252,184,118,17,177,214,119,191,61,25,140,80,102,2,132,198,56,+12,25,74,132,190,114,204,120,130,59,226,200,170,170,212,0,198,99,255,67,86,106,50,164,228,100,12,122,151,253,119,146,+112,30,174,89,14,0,209,133,88,142,247,95,137,132,172,214,157,69,222,255,151,231,126,29,36,189,15,4,191,100,4,36,+135,207,12,48,248,125,102,173,129,241,236,199,98,160,146,21,201,162,16,239,189,152,105,160,222,41,118,70,138,172,218,245,+140,192,114,200,25,6,30,55,123,13,108,72,153,8,125,213,227,148,133,155,80,26,89,187,53,29,31,14,5,38,185,165,+209,76,140,163,25,148,103,142,85,108,94,190,194,78,199,200,80,153,20,190,136,10,64,81,47,122,184,13,192,212,206,57,+235,171,52,81,159,231,72,114,86,143,56,193,86,237,147,157,136,87,245,55,138,112,52,104,132,138,40,253,144,52,14,180,+60,209,113,224,215,99,202,135,78,129,234,198,212,102,146,225,59,109,81,111,23,202,53,248,23,110,41,240,167,221,131,28,+85,253,120,158,71,2,202,70,174,21,104,129,237,245,90,18,255,189,113,166,136,16,21,242,144,236,15,97,232,144,112,216,+83,80,85,88,69,62,94,144,4,209,38,214,14,148,78,79,80,217,140,70,93,81,207,177,84,103,89,176,31,180,252,197,+124,180,193,29,42,107,174,60,45,38,223,26,153,157,102,201,35,19,42,110,96,242,60,158,58,219,50,232,128,10,160,2,+123,137,190,95,129,62,218,195,172,177,36,79,31,234,49,232,66,139,24,169,249,54,168,89,226,44,121,36,47,103,158,105,+201,190,185,90,37,56,141,78,61,25,205,143,216,175,46,138,183,179,116,130,127,148,42,222,126,133,182,225,210,91,226,235,+31,128,184,178,250,223,129,156,189,113,77,38,227,147,133,97,52,177,6,178,10,88,46,87,232,93,168,87,45,80,89,97,+36,202,69,187,202,145,234,51,239,80,141,210,222,145,250,141,186,106,174,191,89,209,109,50,232,123,57,50,51,22,227,87,+176,146,101,246,110,89,161,3,101,69,203,113,74,69,243,248,158,83,220,32,254,36,56,198,51,254,38,56,35,48,63,119,+114,113,195,126,40,240,114,10,107,101,154,207,122,72,8,213,50,59,165,22,236,244,59,69,176,197,183,237,3,92,230,68,+230,156,87,80,212,184,117,104,114,242,112,20,114,146,254,250,126,242,0,174,144,212,20,25,62,34,150,51,196,10,113,60,+129,214,25,184,218,191,210,24,237,148,87,3,241,176,104,127,169,132,215,44,69,12,245,231,57,103,105,183,179,155,31,36,+40,79,95,173,250,195,234,184,151,72,80,206,144,144,150,224,59,201,122,4,22,199,117,186,148,209,41,160,49,251,117,90,+85,227,58,251,236,15,192,83,211,161,74,57,212,233,85,106,3,19,12,207,91,185,75,28,125,13,97,190,50,89,50,196,+129,84,19,93,238,255,48,185,243,237,26,12,114,253,176,1,134,164,146,86,86,187,226,173,103,238,104,178,70,126,148,105,+93,169,218,76,182,123,111,174,119,28,171,249,4,106,108,228,187,207,131,159,18,215,228,88,176,213,102,69,52,223,136,249,+49,22,88,207,215,32,164,82,251,125,155,225,27,82,1,105,204,252,134,23,101,205,148,217,32,204,86,70,122,26,117,201,+156,89,136,63,231,140,96,231,198,229,248,71,97,134,144,40,83,142,116,126,154,184,137,34,114,153,46,158,157,163,122,54,+183,97,140,136,12,95,183,12,57,14,218,35,60,142,118,35,31,97,237,212,42,58,91,151,168,195,55,173,97,40,174,70,+89,28,81,144,5,215,231,126,247,59,175,231,67,172,1,17,229,155,122,133,194,215,19,87,133,60,19,240,120,224,92,225,+72,79,47,152,73,78,29,182,29,33,5,176,111,176,164,229,4,128,213,154,122,49,166,135,143,78,163,191,180,166,245,83,+198,158,121,163,139,211,243,104,192,98,79,199,39,116,187,156,239,11,201,209,142,170,188,62,101,150,202,168,16,29,83,237,+119,152,94,192,160,137,159,71,211,18,108,154,34,59,117,169,50,188,232,227,239,221,161,12,117,112,127,135,77,218,11,157,+89,135,151,45,200,184,85,205,122,135,33,168,191,43,178,239,67,236,160,186,242,133,74,83,37,200,212,68,14,24,147,110,+147,70,130,145,247,137,49,71,218,219,125,96,102,38,231,98,42,242,93,187,103,190,140,228,242,11,3,238,61,62,217,124,+9,244,8,148,45,97,56,169,48,174,205,214,73,43,68,53,125,86,86,129,102,200,155,67,236,90,180,123,121,204,184,254,+145,57,34,109,4,109,84,237,239,61,208,82,221,34,25,3,76,156,197,130,139,34,93,124,95,197,59,105,95,36,185,10,+154,254,1,70,134,211,102,212,183,41,98,167,5,7,121,183,124,154,176,50,96,22,238,181,220,42,130,239,99,149,248,247,+31,74,21,92,61,205,147,130,203,252,166,192,149,192,204,78,251,26,154,35,157,149,58,19,120,83,120,116,99,4,69,174,+129,245,34,39,214,225,15,0,205,223,81,17,140,21,43,83,141,15,138,15,163,229,204,72,108,135,65,185,63,20,244,159,+138,94,195,91,97,23,14,152,111,4,88,41,210,98,216,182,192,4,218,86,208,186,66,79,231,78,70,199,15,254,38,82,+217,233,128,205,41,67,115,1,70,169,29,234,236,67,119,212,161,124,17,235,177,218,132,35,69,91,130,196,30,153,85,38,+186,140,231,31,144,6,242,249,223,72,82,108,147,169,115,238,170,187,61,76,197,89,144,104,66,76,123,3,143,63,148,45,+248,83,229,62,197,22,245,127,102,226,111,149,156,232,71,154,153,34,129,109,194,93,199,152,56,5,94,248,234,142,255,24,+240,170,210,252,143,133,237,131,86,56,93,90,61,204,226,211,245,190,95,201,126,162,10,26,50,230,230,15,164,48,77,248,+147,7,35,35,216,106,104,15,113,224,73,194,3,84,26,31,126,28,46,174,47,32,213,70,94,219,249,130,222,173,129,46,+197,82,157,122,186,199,202,134,157,132,212,7,25,95,39,171,94,57,187,152,27,135,169,255,62,251,60,70,248,229,160,121,+232,29,123,176,136,170,128,61,33,232,45,21,221,142,108,170,101,144,15,249,85,87,0,159,212,244,22,222,52,103,190,9,+153,79,163,182,13,229,80,203,25,23,171,24,37,197,205,200,114,211,249,47,84,177,61,12,83,145,213,40,189,253,81,114,+66,181,49,69,154,1,230,123,67,66,145,54,184,189,196,178,66,38,184,124,102,8,217,235,147,212,185,246,228,199,13,133,+216,179,128,85,19,62,52,25,108,3,234,209,241,179,128,248,148,15,75,214,115,16,35,123,99,227,197,240,48,130,188,109,+213,238,183,32,151,234,191,34,79,135,165,27,73,5,183,151,105,137,206,51,149,132,76,12,64,173,225,147,63,174,187,236,+59,173,42,91,24,210,147,153,78,188,66,234,28,141,180,184,159,137,128,231,232,216,249,169,179,80,30,233,123,117,78,191,+115,1,195,112,112,180,24,162,53,242,0,219,194,39,243,38,161,189,37,14,11,16,219,179,50,50,177,205,177,47,116,243,+11,159,122,89,233,13,163,95,209,146,216,132,79,6,36,71,188,52,154,61,28,131,11,52,158,230,106,105,38,252,152,140,+237,202,69,200,154,7,202,164,108,204,231,202,161,168,205,232,8,214,144,194,114,18,189,85,49,248,78,231,136,9,222,118,+99,190,196,111,204,215,95,74,49,250,165,126,252,0,152,38,52,103,241,26,78,107,91,162,6,197,204,89,49,128,43,247,+216,106,164,236,139,224,62,55,51,1,211,206,17,129,20,147,217,93,90,103,100,107,214,190,198,61,136,230,249,125,201,23,+231,88,71,138,97,211,242,41,2,21,76,45,96,58,101,190,108,13,51,97,48,200,101,122,19,185,244,53,200,1,195,76,+219,81,82,154,210,107,118,98,198,103,189,130,156,246,129,129,160,84,161,5,45,197,235,14,181,186,21,122,220,6,1,170,+197,89,187,19,215,69,87,19,193,225,137,35,7,122,137,45,122,26,33,46,98,166,252,16,205,71,190,140,237,171,10,129,+55,176,239,231,246,126,54,180,252,220,195,103,121,99,233,132,230,122,134,59,92,253,243,247,7,187,73,67,11,61,71,77,+151,255,53,54,11,193,153,153,137,181,228,224,36,218,78,72,22,127,62,225,6,36,227,132,13,89,56,254,52,254,87,29,+244,193,255,55,143,129,48,188,247,172,132,253,58,11,188,124,5,88,254,58,132,26,105,235,119,72,87,74,85,223,212,81,+198,143,243,41,27,165,144,87,169,195,55,165,217,130,106,15,223,105,30,14,190,179,189,130,27,31,171,96,3,247,133,109,+13,83,246,165,58,119,205,59,98,141,238,163,116,200,232,196,74,155,90,203,194,13,11,82,64,94,224,231,131,29,208,87,+126,161,160,123,23,139,66,166,106,244,180,103,21,44,76,219,1,46,95,217,233,166,230,200,252,57,242,191,13,139,2,125,+32,95,89,136,247,207,16,53,203,160,110,226,78,113,109,9,77,75,101,114,109,73,172,16,182,211,191,225,27,140,37,238,+75,46,170,50,7,174,129,95,15,39,116,251,55,208,193,113,213,133,196,94,243,74,44,239,123,110,172,183,58,185,8,228,+229,87,236,228,112,186,49,145,144,181,181,31,228,250,200,254,247,152,156,226,212,192,63,99,207,112,0,67,10,197,37,185,+237,245,160,13,228,142,134,34,9,116,26,130,221,84,158,22,50,182,115,245,88,174,190,235,149,88,196,165,203,66,1,251,+129,143,108,183,70,156,254,34,114,169,37,210,227,152,75,187,231,104,132,117,172,206,163,216,59,20,244,100,236,29,36,172,+12,9,148,245,64,188,125,173,31,124,233,64,88,72,32,61,48,146,103,31,167,34,68,250,175,252,152,151,176,35,113,72,+179,220,102,50,243,182,146,231,71,41,154,92,2,227,155,0,36,96,206,111,135,16,186,246,133,126,241,232,36,146,89,240,+159,21,61,22,89,255,95,28,84,206,244,228,182,218,55,81,28,96,242,221,211,156,20,25,247,94,170,91,16,42,177,41,+231,53,94,14,103,195,235,141,92,171,72,249,67,211,80,200,203,105,56,129,73,173,161,240,113,171,39,79,101,83,249,30,+104,129,181,9,102,251,170,7,156,66,255,134,67,110,220,73,78,220,147,15,15,222,62,86,251,105,140,252,167,150,147,162,+141,199,180,222,159,62,228,42,57,201,152,90,172,139,6,219,83,137,4,39,93,132,155,205,156,77,246,149,26,207,110,241,+120,92,152,216,185,114,238,120,150,115,98,93,187,107,184,230,93,176,139,120,239,7,229,172,126,7,209,215,74,204,196,198,+120,179,80,40,56,136,17,9,109,48,207,24,252,71,60,32,22,196,171,153,241,99,106,43,17,92,185,13,119,162,164,17,+151,62,61,28,182,65,134,116,151,147,207,170,25,135,116,83,181,191,122,100,214,31,52,148,231,76,15,225,246,249,158,44,+13,248,149,46,62,212,237,2,212,179,83,8,112,130,206,4,212,161,177,238,212,162,0,21,200,93,9,26,152,199,198,79,+180,169,253,104,153,81,35,46,196,163,139,233,81,131,47,197,177,83,120,108,233,62,55,76,109,146,199,246,2,148,232,93,+66,159,238,113,157,245,139,0,11,70,23,86,142,253,48,188,0,25,0,80,39,150,112,229,231,111,53,168,49,6,144,189,+217,49,185,77,219,94,104,167,37,71,47,168,52,110,118,233,143,107,224,35,218,107,185,194,249,42,236,107,190,35,56,143,+32,94,230,46,69,164,218,196,126,168,19,12,19,37,7,164,210,78,251,148,190,231,23,90,131,93,45,69,151,115,87,80,+148,150,126,4,146,149,188,50,220,64,231,183,118,100,17,16,235,46,206,149,123,79,145,31,108,96,163,7,222,118,212,120,+22,41,50,132,206,138,11,88,246,114,12,210,146,41,113,177,217,158,187,202,214,185,234,192,240,97,116,135,91,181,5,130,+247,221,64,11,39,205,197,42,16,168,140,189,204,189,252,200,18,27,144,252,155,232,2,222,18,13,68,42,188,152,199,194,+212,128,154,190,245,206,13,7,162,179,25,94,223,26,30,215,41,57,34,37,59,198,88,126,220,131,72,46,68,164,204,36,+123,187,127,250,132,115,240,254,255,37,221,28,115,138,245,98,73,128,249,11,252,18,148,140,254,157,244,177,24,37,150,117,+128,7,77,23,135,33,10,216,42,160,179,219,93,158,217,107,189,216,187,133,169,187,189,4,113,74,172,30,158,15,6,89,+197,69,13,129,209,75,169,236,238,48,227,220,63,210,184,63,13,168,8,101,143,123,104,243,230,121,226,65,118,211,18,168,+252,237,93,69,110,65,233,41,67,34,83,10,250,171,163,190,143,161,124,68,87,185,225,81,189,55,71,125,241,241,245,40,+250,148,69,183,136,41,55,79,6,196,20,213,81,14,72,230,93,185,35,64,133,61,239,3,77,41,11,251,149,29,55,176,+71,211,26,139,206,75,241,33,50,62,76,144,95,68,210,215,65,142,209,204,169,118,165,212,25,57,237,70,6,245,155,226,+135,206,237,223,181,129,173,140,253,177,85,186,63,135,58,127,163,29,127,43,116,243,157,252,129,225,88,71,161,149,138,78,+46,65,199,166,173,56,25,128,30,19,102,113,121,212,89,237,129,211,92,173,222,198,197,15,3,210,82,221,35,198,200,9,+36,153,200,34,130,206,4,169,84,187,25,150,132,137,88,194,166,25,243,35,20,117,254,78,217,175,234,220,238,213,24,63,+97,168,14,247,145,230,217,231,35,108,190,96,45,191,242,38,87,182,219,146,227,61,33,96,41,67,58,125,81,150,85,92,+222,170,201,87,93,79,234,250,167,253,239,29,151,4,44,223,55,132,215,19,100,108,235,157,152,56,40,76,205,212,106,158,+240,119,248,185,100,201,200,111,27,151,171,28,171,246,4,156,176,231,192,98,64,248,189,48,241,180,86,228,120,6,154,109,+207,118,139,236,165,132,81,247,221,121,1,39,34,86,79,238,60,106,80,93,22,66,141,42,245,54,64,196,33,38,158,61,+86,167,63,38,169,27,132,64,66,36,223,124,10,39,177,21,97,21,243,97,28,43,10,219,202,100,146,188,75,246,205,29,+174,7,154,42,195,27,18,110,186,118,32,132,85,244,17,131,232,105,67,183,72,10,132,223,241,223,45,47,55,249,207,175,+22,183,238,127,73,147,204,56,210,242,135,75,30,141,127,243,184,240,77,153,58,46,104,109,34,253,28,234,181,244,168,115,+149,181,86,220,219,173,229,103,120,210,35,93,11,192,104,54,114,6,45,120,248,115,59,4,119,7,186,63,200,239,118,240,+254,80,200,121,77,199,133,115,183,166,40,252,3,19,192,118,198,222,155,17,214,131,19,252,72,149,32,65,209,86,187,186,+108,133,195,222,175,88,36,128,4,103,1,161,99,6,15,42,16,38,212,40,251,216,8,26,39,183,245,97,111,228,185,144,+209,94,250,98,31,2,188,45,183,238,142,149,97,255,224,172,225,207,184,201,97,151,154,55,124,121,165,108,48,91,148,2,+33,82,208,250,0,208,250,136,192,178,157,25,2,58,19,197,0,17,250,180,23,251,82,201,18,203,145,66,156,159,50,62,+44,112,52,77,192,89,47,88,99,149,196,194,213,245,214,195,205,231,62,78,127,157,247,124,59,165,195,45,194,206,67,6,+160,57,18,223,177,213,15,97,120,67,181,160,164,10,159,175,168,227,105,3,208,6,27,200,111,58,184,33,13,153,140,191,+160,14,164,245,28,148,189,164,12,224,207,240,147,131,9,18,76,231,78,72,212,24,218,63,244,102,7,167,243,165,171,24,+73,247,5,9,153,4,200,161,191,128,7,89,232,233,137,88,58,81,64,39,16,201,145,42,203,148,0,40,12,124,52,7,+139,165,80,139,194,68,37,61,7,142,66,128,120,55,253,197,105,21,213,220,46,118,244,221,46,146,45,167,151,4,193,216,+179,199,128,105,129,246,6,171,226,180,126,115,188,47,103,103,170,84,245,141,26,132,124,124,47,217,217,215,15,247,6,245,+210,13,118,149,124,208,110,81,131,169,145,168,16,119,170,200,53,205,254,243,109,183,184,24,115,46,251,221,129,38,227,80,+27,204,173,44,125,4,161,79,46,76,102,142,146,88,165,136,54,141,133,131,122,173,235,127,61,239,96,42,203,204,27,111,+203,101,245,106,161,160,44,138,251,235,177,120,201,165,178,239,60,202,40,127,189,211,136,86,86,159,46,155,170,241,140,165,+129,181,200,58,220,165,70,205,91,177,242,11,233,135,49,187,166,194,75,97,221,197,8,253,95,64,87,62,16,32,56,210,+176,44,51,106,13,26,119,32,100,88,15,228,194,40,218,241,101,29,72,68,30,94,241,102,70,81,105,148,41,88,62,113,+101,37,178,207,79,146,91,244,58,143,245,43,128,252,35,14,87,206,93,237,201,47,48,188,151,58,111,234,205,241,65,200,+11,121,59,119,38,172,108,3,237,28,34,62,86,219,246,131,130,89,106,126,195,177,228,153,241,225,101,182,54,34,139,84,+196,70,100,89,31,64,178,240,234,174,91,176,232,166,25,81,60,38,94,120,97,216,178,18,80,42,104,77,204,225,220,225,+112,98,132,210,58,68,162,70,104,166,3,154,0,101,230,240,232,197,20,238,74,250,244,147,68,229,176,19,181,30,101,114,+42,56,7,88,154,70,163,169,96,247,212,31,71,224,159,168,153,125,37,172,25,78,114,60,126,168,78,77,156,185,144,36,+124,18,68,32,198,150,0,219,109,112,8,163,101,89,245,102,66,222,152,97,232,27,52,208,20,132,75,102,18,56,97,143,+173,63,227,51,3,24,228,57,90,121,114,130,252,79,164,250,140,141,67,84,149,227,44,53,165,162,186,179,195,3,238,84,+51,9,45,116,168,133,130,187,250,238,150,112,180,168,167,140,118,71,139,59,250,21,145,221,44,127,144,178,81,201,109,242,+250,117,131,60,107,189,179,1,254,56,139,148,115,139,222,255,5,52,185,196,16,191,95,236,68,164,149,4,133,89,141,235,+110,39,177,27,204,211,11,254,54,24,234,26,127,48,55,110,211,246,18,68,157,151,219,181,83,180,40,73,187,142,39,5,+102,92,193,144,210,230,142,1,59,91,110,238,145,199,79,216,107,216,79,182,26,21,203,144,83,6,79,68,61,56,113,250,+187,50,66,140,242,247,28,148,134,143,85,246,85,176,198,134,166,252,38,136,49,42,123,102,196,32,23,180,17,10,60,58,+103,137,102,11,144,19,97,157,105,191,168,156,116,114,35,98,111,40,195,93,59,53,82,253,84,167,208,192,132,60,18,159,+157,98,45,64,201,219,66,97,5,150,211,221,145,116,219,82,96,67,189,212,89,136,16,15,63,10,2,92,76,250,54,191,+176,245,133,68,253,31,159,138,75,201,157,156,219,246,16,125,52,218,93,93,16,176,50,112,179,185,240,191,85,90,209,183,+108,68,183,232,199,70,130,187,199,77,11,97,12,145,241,159,227,171,120,43,7,207,247,109,218,209,131,100,140,106,245,206,+182,133,90,113,238,69,104,87,120,250,130,39,195,18,227,131,125,52,228,207,64,152,24,174,239,4,152,50,83,49,72,113,+214,227,63,231,163,68,28,185,226,207,26,217,169,137,74,200,79,82,20,44,102,96,188,27,242,127,128,141,113,191,92,207,+96,232,170,223,67,45,1,62,117,67,168,215,241,48,186,40,178,67,23,25,11,182,223,166,198,100,172,2,18,247,105,215,+203,44,71,229,222,8,193,83,88,63,119,180,229,100,244,53,148,61,115,68,158,227,239,236,123,201,205,77,171,185,150,223,+229,75,158,40,215,74,124,115,98,103,109,35,91,199,67,217,218,10,85,63,162,139,246,68,194,50,209,123,180,163,34,151,+110,195,139,136,142,221,48,47,81,49,143,133,134,152,192,0,0,141,193,35,248,9,98,224,6,140,203,121,123,247,185,172,+87,86,226,177,148,134,230,240,207,227,122,60,235,89,3,2,123,233,227,165,52,24,150,208,39,140,179,131,12,245,99,247,+152,108,227,83,153,2,200,173,83,14,85,101,78,3,129,196,207,137,55,63,66,218,108,199,48,7,17,125,26,18,129,148,+72,7,46,94,159,188,110,38,68,145,205,27,200,109,215,111,93,150,238,160,244,46,72,44,85,231,158,8,114,200,195,152,+218,2,45,231,125,17,152,42,19,3,177,216,255,13,254,205,238,112,214,133,247,196,202,13,137,239,246,4,36,36,124,252,+170,66,55,124,202,70,97,189,125,61,219,239,158,167,138,195,188,147,95,110,148,237,160,82,18,114,212,29,224,20,181,188,+83,121,191,58,123,186,159,149,178,238,175,237,61,219,232,121,53,51,98,166,168,178,37,46,199,171,203,172,188,245,89,228,+132,159,171,33,166,127,150,224,14,44,112,87,254,231,152,182,16,233,169,10,137,240,9,202,17,225,194,96,183,205,153,173,+69,75,85,9,78,206,56,163,126,177,46,217,158,209,250,200,53,51,233,8,248,27,15,133,193,178,66,245,176,138,52,132,+137,71,65,136,60,180,7,211,196,44,236,89,11,56,174,66,20,5,185,130,148,59,168,75,23,227,51,67,173,137,228,177,+123,35,10,141,63,65,221,189,236,218,129,112,6,249,144,144,205,47,160,56,98,149,109,153,4,29,43,109,92,47,220,229,+17,6,206,238,99,88,96,76,4,227,140,127,54,160,75,84,54,155,202,131,229,73,159,97,77,239,17,54,33,71,153,170,+166,126,74,203,109,127,106,170,193,213,144,78,1,22,201,199,133,135,138,198,4,202,140,118,154,61,56,122,5,82,37,41,+87,134,165,235,223,251,140,40,238,232,154,119,104,47,106,6,190,185,84,106,202,126,211,86,65,247,239,96,243,151,91,108,+127,111,77,250,93,111,84,70,47,164,40,152,243,46,8,184,79,219,230,167,189,149,133,198,224,187,32,141,2,33,109,119,+150,70,236,134,79,160,212,176,210,96,168,219,94,156,237,139,175,96,81,153,36,223,147,183,206,52,239,74,45,61,240,182,+175,110,41,112,73,54,174,13,12,26,118,114,211,126,250,236,84,72,188,10,66,36,209,214,34,248,241,235,141,130,243,207,+73,58,209,204,232,216,20,78,196,200,190,178,116,205,24,52,74,53,26,33,180,19,120,92,6,189,182,15,214,83,190,53,+220,154,52,248,133,30,167,101,147,123,9,129,192,211,191,38,122,19,30,144,153,68,99,39,4,78,83,224,30,99,176,85,+158,24,122,26,226,12,180,88,44,250,246,67,4,29,252,80,20,187,174,4,171,156,153,141,248,168,37,128,43,87,96,57,+76,24,18,150,15,192,67,206,138,254,130,149,62,201,70,59,24,125,101,44,170,95,252,127,7,116,22,93,203,37,73,89,+207,14,240,128,253,6,160,70,221,97,186,103,64,171,212,216,217,69,138,165,148,201,243,75,132,96,65,71,101,18,6,167,+104,64,101,48,8,207,66,105,82,102,181,170,223,3,154,78,86,248,159,244,253,109,66,146,69,146,106,153,158,161,199,241,+128,165,54,168,163,219,84,171,140,185,13,48,49,105,109,88,163,48,129,116,115,143,171,107,91,20,97,89,15,171,110,20,+248,216,225,228,214,124,165,244,81,72,171,59,245,131,52,233,151,223,234,51,80,105,74,251,216,88,85,176,35,238,97,117,+242,176,74,220,123,48,70,122,185,110,77,11,139,122,94,109,136,188,118,136,19,31,69,44,202,75,11,31,52,132,1,221,+227,132,76,232,114,200,19,252,6,121,28,22,66,199,131,87,250,4,19,249,85,182,93,116,189,237,247,28,24,11,155,248,+169,206,22,147,42,95,91,211,189,212,229,153,52,123,35,191,250,140,130,111,73,135,185,146,65,249,162,205,162,122,89,185,+244,51,46,25,228,44,127,114,152,255,4,42,101,176,151,4,137,28,132,167,77,205,124,254,234,77,180,174,255,79,111,159,+188,128,137,21,34,55,11,165,100,168,69,189,245,165,45,222,53,156,191,80,30,155,209,17,101,138,238,187,45,190,2,44,+145,39,60,186,61,242,1,199,217,173,20,125,197,27,5,43,212,157,240,98,82,168,233,67,204,221,140,61,0,255,145,252,+126,9,235,253,99,145,214,95,87,246,83,50,58,194,63,208,242,107,69,167,42,55,196,198,120,193,112,17,127,171,7,115,+175,250,102,150,174,52,57,224,215,119,179,228,62,181,19,79,6,102,52,57,41,50,228,95,143,183,28,70,99,111,169,73,+171,13,197,125,81,100,20,164,238,197,3,40,251,58,13,218,29,220,16,113,41,99,110,24,120,125,213,176,145,0,160,75,+151,237,41,191,75,60,218,171,186,42,125,206,101,87,159,180,235,62,173,175,70,209,129,220,201,96,173,34,229,45,190,26,+166,215,88,140,163,20,70,221,72,244,168,134,56,208,186,208,76,159,167,225,237,248,250,149,230,218,237,105,106,27,158,133,+164,60,218,57,82,96,178,189,121,90,193,205,159,225,149,69,248,187,51,59,111,210,7,25,44,174,122,41,95,42,224,31,+114,253,255,133,73,140,32,122,31,28,44,176,184,150,105,134,199,2,74,40,97,69,1,172,191,201,82,58,79,245,251,9,+180,236,128,15,94,71,189,54,54,218,19,253,185,10,83,78,6,143,88,1,29,117,1,231,101,255,39,247,98,192,142,231,+152,26,233,58,20,195,34,62,35,249,191,74,180,218,162,210,244,134,99,38,99,23,204,55,171,174,75,15,180,221,149,143,+106,71,127,28,63,28,144,7,253,41,23,235,29,45,252,11,4,130,57,233,29,59,166,172,126,132,143,42,1,209,48,251,+238,48,139,139,139,204,216,142,52,73,17,207,125,42,52,130,252,50,194,203,134,33,228,16,163,18,168,48,96,120,1,193,+156,234,200,211,93,253,159,24,218,183,178,116,38,199,255,247,86,160,156,51,196,250,236,136,69,32,92,127,171,206,82,224,+13,41,72,48,128,170,25,43,114,88,131,42,59,150,157,10,191,194,90,49,156,255,108,49,3,74,42,231,200,194,107,200,+17,67,91,82,189,254,103,117,230,204,117,0,194,97,12,238,75,8,243,83,19,159,57,60,150,156,203,40,17,240,184,151,+116,94,244,204,70,244,250,204,34,134,78,131,179,53,3,112,143,66,248,113,173,212,49,98,147,217,237,168,94,215,68,87,+98,81,116,199,94,155,218,228,190,112,219,45,200,210,33,231,234,249,0,143,76,254,137,10,18,27,54,42,74,134,97,232,+215,172,9,34,210,203,148,158,230,94,221,135,74,47,57,216,196,30,152,151,207,217,244,52,44,192,136,141,105,197,167,148,+116,16,32,226,64,243,52,141,8,127,4,1,19,99,99,162,114,147,174,135,200,176,64,67,241,206,53,218,95,104,228,72,+18,209,2,169,49,167,64,209,10,20,31,106,133,234,104,145,46,38,13,153,214,95,129,209,125,30,246,62,195,203,180,242,+58,2,182,154,133,47,48,212,172,113,255,134,97,95,1,85,240,42,13,55,233,178,182,57,178,157,124,41,103,130,223,37,+241,24,108,80,134,209,25,162,232,106,99,47,113,135,166,30,81,79,36,135,238,169,211,16,185,248,238,143,20,12,105,122,+233,178,66,137,104,76,81,60,180,67,24,30,52,255,172,195,163,42,81,16,246,110,26,66,79,129,34,69,8,63,234,145,+236,97,89,206,201,222,12,54,111,88,101,140,252,111,163,165,24,181,63,118,245,125,116,75,228,157,153,239,41,191,185,89,+18,48,245,86,54,211,247,20,155,97,249,116,85,17,240,166,89,129,153,37,178,169,163,69,255,70,11,235,207,102,83,40,+232,119,66,246,118,68,13,60,223,167,242,191,119,91,89,166,29,186,106,14,102,85,230,204,240,238,202,94,62,17,216,201,+81,229,50,63,233,28,239,151,222,21,220,111,121,149,117,70,234,74,96,98,6,114,212,57,138,124,48,125,93,18,204,25,+210,69,55,200,227,137,236,12,200,194,123,120,225,187,45,89,27,198,92,82,235,80,206,86,27,237,78,145,226,245,176,123,+159,36,171,107,126,189,165,68,169,35,112,124,93,189,110,52,57,57,35,115,251,153,153,142,14,113,16,97,59,216,211,179,+46,231,215,129,90,168,0,27,237,69,44,60,119,59,91,45,139,100,96,120,120,222,241,37,47,189,34,77,51,245,222,177,+11,89,146,219,145,67,140,146,24,52,196,204,57,232,93,47,222,199,61,209,192,49,230,2,149,19,45,207,159,207,201,19,+131,122,25,105,121,169,192,229,248,190,72,230,219,169,239,141,199,245,34,151,227,214,41,17,98,210,113,251,171,120,226,73,+75,188,41,25,88,65,238,225,145,33,240,56,169,179,43,241,122,144,245,81,42,75,212,51,179,166,169,58,180,63,171,227,+65,238,75,9,66,18,53,242,95,174,246,84,175,215,12,67,132,146,17,97,103,149,235,227,132,83,6,32,228,234,186,128,+49,228,31,130,180,22,163,22,207,175,62,161,22,119,234,221,154,9,137,161,80,192,249,139,182,0,1,110,173,165,186,211,+14,223,86,22,121,219,142,233,127,243,124,112,72,206,106,202,121,130,198,106,127,136,108,131,78,70,66,144,254,60,148,36,+168,25,34,100,105,208,200,238,153,12,138,39,78,196,227,23,170,45,207,137,41,209,205,60,105,108,69,166,122,213,249,140,+145,99,131,157,129,113,124,97,111,34,17,75,249,107,32,9,203,189,13,5,69,130,121,44,222,171,80,134,42,119,30,170,+202,127,203,92,23,89,89,61,184,4,109,14,59,2,80,26,231,48,174,60,164,43,219,167,99,191,30,206,239,199,102,109,+238,22,115,122,231,249,79,183,34,238,48,161,22,241,192,195,181,27,31,193,187,29,117,204,237,56,230,56,210,124,155,158,+136,49,217,221,11,77,84,29,59,30,233,244,168,232,40,196,206,161,22,56,52,228,210,115,88,58,97,35,85,40,186,53,+44,197,21,209,203,124,203,104,61,77,164,210,132,171,72,127,203,122,90,88,39,99,71,224,248,42,101,206,147,243,117,21,+214,127,34,106,40,75,2,128,92,88,116,121,76,132,36,134,177,109,240,115,87,93,45,176,97,37,74,169,148,222,192,37,+23,68,61,247,136,78,18,8,41,21,142,243,196,87,195,255,166,126,44,222,58,157,128,214,148,169,154,124,34,4,75,13,+230,252,66,216,237,2,149,116,217,124,190,57,57,179,34,122,187,198,152,6,120,35,97,21,7,122,97,226,200,96,143,53,+245,174,229,213,91,75,50,205,104,71,19,124,182,164,103,136,159,83,230,169,195,13,121,103,158,13,189,197,147,129,0,69,+156,80,8,243,14,61,125,229,185,30,160,200,81,148,72,3,226,2,186,171,160,211,153,64,60,243,216,94,31,40,77,112,+28,249,161,252,96,236,166,183,255,161,191,121,167,69,232,73,252,240,55,24,253,214,107,207,65,200,171,198,187,176,157,208,+221,45,140,221,36,155,192,35,98,137,239,224,58,87,241,43,87,101,114,251,25,198,9,174,157,209,151,222,159,54,131,136,+31,248,23,112,27,120,60,50,151,56,198,99,68,197,151,52,98,208,137,42,247,168,232,69,127,195,156,224,7,39,196,31,+122,31,9,53,96,159,46,157,96,232,68,182,104,155,247,94,39,90,189,43,189,250,239,103,202,240,137,154,26,251,81,222,+227,51,81,153,206,133,6,161,219,203,107,53,201,102,174,246,204,6,252,6,180,255,233,113,146,133,24,252,114,253,141,224,+14,202,177,194,67,238,20,37,217,88,164,20,148,154,248,227,98,200,17,156,115,115,14,9,168,130,234,67,187,61,18,242,+155,31,92,100,190,42,211,7,32,3,52,85,73,120,26,130,165,45,37,130,60,72,186,85,230,26,152,93,152,49,84,29,+76,35,201,251,136,103,26,78,219,59,167,17,246,65,152,76,177,37,100,249,240,45,133,135,42,195,191,198,96,219,34,98,+218,1,133,234,185,160,130,145,124,224,188,194,87,161,99,92,15,164,87,136,87,36,201,93,205,39,140,197,37,171,245,7,+181,111,32,131,218,129,110,249,200,199,150,107,81,236,157,8,135,141,199,21,125,66,221,10,171,14,7,161,225,145,11,214,+26,36,110,197,132,199,251,127,162,70,86,50,164,2,154,201,167,224,10,44,195,214,163,198,62,121,42,146,247,36,16,107,+95,199,125,173,235,20,199,132,183,181,176,31,236,117,34,196,74,180,149,80,124,246,88,87,151,6,124,198,107,119,121,63,+158,93,157,88,23,164,219,218,207,87,169,68,152,148,7,134,11,242,45,167,2,53,149,210,122,120,63,150,172,190,204,178,+207,50,178,38,60,116,227,108,175,197,77,124,242,237,11,176,232,213,134,75,41,136,3,181,92,60,139,77,86,174,96,142,+14,175,159,39,82,198,132,208,2,52,144,180,87,130,179,119,131,213,43,254,102,24,100,49,68,22,214,4,73,17,1,252,+30,125,15,141,110,120,27,235,163,20,35,100,243,40,216,142,37,186,34,123,115,220,57,206,23,1,32,238,162,126,51,243,+89,109,145,181,81,64,150,75,195,5,161,56,9,105,82,145,217,19,103,115,106,100,234,216,54,234,135,90,136,64,141,118,+202,176,40,146,102,121,187,71,251,47,155,214,88,41,188,201,92,186,205,49,182,220,248,221,100,203,68,248,33,222,159,225,+123,140,73,206,71,221,200,164,229,136,171,237,201,179,12,129,197,226,163,41,138,171,182,13,13,229,175,158,64,81,235,170,+105,112,247,9,134,44,1,146,129,168,142,69,34,113,44,99,20,55,180,237,176,126,101,73,243,71,207,215,162,102,148,103,+205,2,19,201,121,178,44,173,13,166,206,74,243,209,215,34,65,5,139,103,72,82,182,134,59,37,192,162,175,18,194,210,+89,168,74,174,172,56,77,236,27,95,239,203,255,102,27,105,122,201,241,1,242,49,142,169,89,212,87,163,205,249,47,141,+147,0,15,180,182,102,176,65,203,58,177,4,169,249,121,232,254,53,216,225,58,177,240,142,190,77,217,7,189,157,70,107,+196,117,89,28,59,58,93,74,179,255,204,24,58,206,153,190,157,59,110,121,156,148,45,243,161,224,60,231,83,104,200,181,+58,227,188,251,224,36,227,143,129,128,252,207,181,171,239,201,52,193,154,148,175,10,120,116,79,127,208,133,119,98,84,44,+98,252,112,16,50,86,212,170,174,21,51,36,239,166,36,92,202,6,77,223,169,227,141,145,32,69,159,180,116,104,187,118,+198,17,255,35,70,44,156,230,149,169,208,7,164,95,147,179,186,41,45,16,134,55,194,135,16,58,133,8,93,188,164,218,+175,236,24,51,230,50,179,167,76,70,108,139,0,186,205,149,249,75,125,228,78,41,209,169,190,132,225,11,170,37,198,29,+161,67,106,187,239,172,109,118,1,176,59,65,239,139,2,245,58,90,156,217,55,228,81,98,243,120,75,59,139,63,163,49,+25,233,151,17,31,42,45,121,137,96,82,114,180,25,124,35,129,252,17,9,47,226,248,248,165,211,244,176,163,138,229,133,+26,56,32,158,194,121,149,50,166,222,89,202,200,169,124,75,105,156,138,56,143,61,40,175,160,65,210,174,23,50,193,21,+221,22,114,140,82,57,190,251,249,196,248,149,242,141,188,208,135,177,191,75,144,167,100,52,75,206,58,173,221,252,198,154,+48,56,151,72,24,50,68,12,147,246,216,17,168,253,118,167,203,84,40,159,169,203,67,186,45,119,0,236,17,104,66,153,+68,163,254,219,11,149,198,162,51,12,122,90,90,221,41,14,237,58,190,18,75,162,121,88,254,27,214,100,158,44,200,228,+13,182,85,102,47,199,68,9,117,46,87,164,250,63,7,111,29,162,128,135,30,48,234,82,183,74,157,174,192,240,29,0,+137,222,239,26,11,222,23,213,189,13,24,108,224,91,89,193,66,26,9,67,110,128,8,252,164,11,37,230,4,106,187,180,+86,184,130,68,140,69,41,131,161,174,130,195,191,79,122,166,99,177,195,173,30,162,38,151,231,75,255,121,230,229,76,255,+92,33,60,95,17,2,73,118,234,146,195,144,1,251,12,254,173,157,121,81,63,131,115,242,115,19,68,240,57,129,202,211,+154,241,191,37,103,72,52,149,36,58,142,222,218,157,116,160,13,162,150,11,14,137,253,38,39,232,169,98,106,48,58,50,+77,143,181,239,144,166,89,190,205,237,37,102,67,66,106,225,37,63,180,194,184,108,131,232,72,30,232,229,10,82,187,217,+133,149,97,198,22,34,155,202,136,17,219,65,22,59,96,120,112,209,176,253,164,143,255,34,188,108,153,211,238,71,100,73,+83,242,211,197,140,28,14,173,161,51,23,34,140,115,48,200,218,53,146,215,53,148,195,56,204,79,190,158,125,40,151,203,+62,214,187,80,142,101,135,225,159,192,20,224,229,172,238,178,19,211,232,214,146,52,133,177,233,249,31,153,72,108,59,200,+99,171,19,192,213,182,248,223,141,122,255,18,247,235,125,60,74,108,155,207,123,187,57,217,128,87,150,48,210,226,154,29,+87,202,35,170,6,197,89,11,5,211,145,4,223,107,19,129,56,39,171,125,171,182,71,181,12,191,60,165,213,250,49,219,+126,45,226,253,217,114,207,184,174,28,102,200,131,121,180,159,59,77,193,190,61,200,26,122,203,209,51,125,234,183,205,133,+249,255,254,186,18,249,87,223,186,150,134,194,243,227,228,192,2,31,166,112,243,200,148,238,183,59,27,239,221,167,188,129,+191,174,209,60,0,162,252,230,125,56,107,70,81,75,143,170,87,92,224,226,155,60,30,3,8,170,32,192,6,69,220,180,+20,195,228,170,242,197,71,132,16,159,235,2,88,148,47,14,248,67,34,110,231,53,0,44,96,133,7,110,29,4,211,225,+212,218,16,140,144,202,172,6,132,120,106,117,132,38,79,49,37,174,135,201,199,55,217,123,0,17,133,213,79,162,116,17,+134,236,23,126,54,237,92,208,132,115,185,74,0,174,243,139,211,187,170,69,195,252,93,167,194,162,92,118,105,136,15,147,+1,139,57,24,41,154,195,58,68,40,135,14,88,222,187,26,78,156,2,198,177,47,100,19,12,198,240,225,4,5,52,184,+223,36,74,62,167,36,65,12,145,162,124,234,111,126,229,87,17,185,43,107,37,252,109,71,23,246,181,244,180,194,188,84,+31,158,202,226,69,27,50,62,19,76,50,40,73,160,201,134,211,1,69,222,71,148,125,0,229,129,193,110,48,168,81,80,+209,89,205,22,108,77,27,93,4,233,173,56,218,22,64,126,212,243,182,214,41,125,247,136,18,25,1,45,240,58,101,217,+251,218,53,224,13,43,112,197,16,57,243,81,54,57,21,215,208,142,40,48,98,178,220,185,203,178,217,106,192,39,243,22,+169,138,45,13,233,23,146,254,200,2,89,214,18,159,195,146,79,63,118,144,82,97,149,185,4,44,48,69,199,205,27,195,+190,133,198,85,181,72,109,51,212,134,9,104,178,184,103,196,147,42,160,54,143,171,116,144,182,201,157,123,25,156,68,68,+104,159,186,216,139,251,125,128,47,56,172,51,213,43,165,26,82,91,137,103,242,172,68,94,250,108,80,177,138,7,232,95,+220,55,192,12,175,121,210,125,9,160,241,125,199,211,42,119,185,140,9,96,56,25,70,160,20,100,128,4,255,222,198,72,+92,50,119,251,185,57,83,25,192,56,42,165,78,94,32,216,54,88,91,224,148,105,114,123,116,8,209,89,184,133,68,232,+112,147,216,43,236,127,151,232,120,65,183,83,176,29,98,125,200,63,217,88,185,249,47,208,2,38,207,82,222,57,239,242,+216,80,95,168,140,136,224,94,63,197,60,164,222,151,154,99,1,245,118,215,234,165,48,29,189,14,84,211,164,58,211,9,+21,192,47,225,68,109,35,221,250,187,52,208,164,147,19,173,220,120,53,57,128,186,148,26,82,240,34,246,195,207,98,243,+207,113,20,126,11,146,210,229,244,153,14,142,75,79,175,202,22,55,250,112,32,23,234,120,110,167,235,6,177,13,113,165,+123,237,8,136,163,83,172,99,89,228,193,38,117,176,30,120,121,79,227,150,64,234,159,77,116,63,143,199,212,141,179,36,+15,83,114,159,110,141,222,92,224,205,71,166,214,217,252,16,66,51,56,180,216,35,8,250,67,130,51,14,50,130,170,133,+74,26,30,115,34,35,177,234,12,24,176,51,104,77,117,91,249,144,77,176,107,227,214,196,247,69,197,9,236,32,39,47,+198,210,207,181,192,232,76,61,213,173,209,79,143,124,248,241,9,60,91,203,101,41,75,56,244,112,132,182,2,204,0,91,+224,241,128,35,95,166,124,203,224,135,251,153,35,234,151,52,205,228,127,13,166,201,77,113,22,106,124,139,112,58,250,191,+202,73,163,9,72,43,118,101,213,14,217,151,121,177,198,139,168,213,117,142,84,128,137,61,149,88,238,196,92,131,171,199,+123,19,127,87,54,218,201,165,37,214,243,74,46,187,101,231,37,241,89,192,44,214,124,101,86,225,119,81,137,162,145,37,+120,156,179,38,172,31,254,52,117,38,227,166,154,148,219,92,136,154,132,105,194,95,164,22,121,140,182,51,19,13,57,57,+73,177,67,64,77,148,247,209,232,251,207,60,201,177,145,151,75,131,152,195,240,26,83,61,109,44,189,139,26,66,232,105,+11,203,169,36,142,184,59,2,65,55,66,10,60,67,198,141,4,126,186,52,199,33,121,21,195,4,86,188,167,169,95,157,+113,120,198,166,99,198,2,135,137,64,1,148,82,68,225,84,55,209,243,99,173,115,14,127,53,210,147,133,206,175,250,11,+44,58,105,166,117,10,169,211,206,1,240,7,137,199,253,248,47,89,18,244,208,154,170,43,152,206,156,190,181,135,197,104,+145,28,238,231,69,103,79,129,2,248,139,194,178,138,83,134,202,123,163,37,199,20,74,238,55,19,129,212,61,150,110,75,+247,85,79,115,127,224,4,62,172,251,66,111,119,157,66,226,198,143,88,206,162,203,95,154,141,22,99,143,122,107,200,17,+106,16,241,232,155,95,153,106,234,8,168,32,214,196,223,190,151,144,114,147,181,206,31,63,102,91,33,76,42,50,245,47,+81,189,229,192,49,45,126,61,186,124,120,226,185,40,154,8,81,165,229,130,208,1,81,121,228,132,29,15,159,89,20,47,+11,94,122,0,16,39,31,196,233,201,252,57,121,149,222,145,7,241,175,97,134,208,32,226,67,97,97,47,157,78,101,203,+157,11,126,178,133,137,22,59,239,141,25,238,248,241,58,142,228,76,35,207,214,232,70,56,57,103,105,238,159,156,162,141,+154,219,55,91,186,128,170,198,3,129,161,159,169,63,194,33,90,184,57,250,251,100,75,250,3,249,39,75,155,204,73,49,+194,98,160,151,69,100,234,116,83,237,141,76,3,238,194,152,44,232,94,116,225,125,171,187,136,47,106,242,190,185,189,161,+81,79,46,244,10,11,167,253,28,42,153,165,186,16,134,179,183,222,254,91,56,112,165,254,103,155,212,88,13,61,213,183,+206,145,44,107,149,79,130,210,227,108,158,198,1,182,5,127,150,1,91,132,177,41,118,119,200,36,173,239,3,113,103,140,+49,224,166,253,218,232,162,30,80,96,193,14,20,166,13,76,248,151,155,226,229,233,20,220,125,146,122,171,142,78,218,82,+248,28,216,105,37,66,68,78,106,41,196,68,25,207,78,222,172,104,35,76,19,238,27,149,37,244,110,32,51,241,13,168,+1,180,63,18,93,145,136,13,127,32,225,233,244,99,240,45,237,197,53,80,149,43,23,223,155,69,110,9,248,29,138,11,+109,54,83,117,247,112,211,25,64,32,197,164,33,5,84,249,191,118,247,165,44,69,22,16,110,201,217,87,101,202,81,150,+78,49,73,203,96,68,77,40,43,83,102,74,96,137,32,30,162,80,225,239,195,199,228,146,234,17,64,137,182,61,40,184,+154,176,153,47,249,94,4,64,24,232,151,62,48,199,184,216,163,46,236,196,80,131,130,165,104,111,135,243,17,11,225,227,+10,107,119,106,56,203,175,197,58,136,34,3,146,170,187,32,162,126,76,175,53,128,86,78,250,222,27,183,152,202,186,236,+120,133,82,217,7,7,19,20,252,244,234,177,246,39,144,91,147,238,210,193,101,128,109,145,12,115,214,18,22,216,144,173,+208,96,8,172,205,232,46,44,176,100,217,176,176,100,139,248,231,77,119,5,74,6,199,41,101,222,175,126,165,152,69,123,+179,178,226,232,146,203,117,25,141,108,99,209,108,244,64,171,103,251,254,111,132,22,110,57,167,234,103,129,177,110,166,72,+236,6,123,4,129,86,35,174,187,228,184,35,16,127,198,207,210,167,114,200,101,101,136,153,111,132,141,177,174,30,110,56,+80,90,38,2,91,140,130,135,230,54,175,213,11,50,67,199,36,148,33,88,102,49,192,130,115,227,164,124,232,168,9,29,+132,47,232,152,196,113,195,50,221,82,95,251,109,206,11,77,107,238,86,254,146,69,245,61,152,117,29,67,65,227,44,254,+4,37,110,113,135,96,214,138,247,102,36,14,188,34,97,209,10,104,219,185,5,138,97,78,82,157,183,121,73,242,179,236,+25,230,202,217,240,76,55,134,208,234,167,213,196,252,195,245,226,85,152,116,93,5,43,168,122,128,54,158,205,142,70,173,+29,253,77,246,60,156,196,85,87,96,9,114,179,198,201,146,186,50,238,139,16,160,107,159,126,27,32,77,237,2,86,203,+85,9,203,24,22,183,61,150,245,134,1,235,48,23,175,115,4,237,113,232,179,43,250,5,53,255,247,254,166,70,61,225,+185,230,170,194,3,170,125,52,93,243,149,39,161,224,109,191,228,142,192,255,234,195,29,206,96,175,9,9,247,216,208,109,+184,170,226,133,204,6,239,91,116,165,86,134,144,136,24,140,6,121,177,148,103,21,21,245,62,97,146,92,150,84,221,164,+157,37,33,192,44,44,247,235,207,15,140,103,206,101,156,176,117,31,158,181,186,158,48,80,108,91,11,59,117,202,182,56,+248,54,108,210,142,117,60,98,167,173,83,45,194,22,162,190,157,226,154,118,236,40,7,1,205,36,96,35,64,234,221,133,+21,89,229,28,226,244,98,91,175,68,249,161,83,55,46,230,34,161,14,169,114,30,54,202,70,238,191,243,91,150,220,251,+240,65,162,156,114,189,141,40,107,64,1,153,136,131,71,154,65,35,244,166,55,31,248,67,91,25,149,144,106,136,101,244,+180,187,150,192,217,160,132,159,213,206,9,103,210,122,129,241,108,128,141,196,199,211,153,83,53,130,66,23,193,138,142,10,+15,33,13,19,82,68,68,105,73,109,14,20,221,202,124,103,87,131,154,221,212,127,131,106,63,28,25,255,94,129,43,182,+219,255,169,223,23,120,185,81,216,114,179,195,1,253,87,204,103,234,187,103,200,58,66,38,188,235,150,72,94,102,46,48,+82,62,145,192,100,85,137,36,75,46,248,12,208,45,164,200,202,222,254,189,9,144,43,177,24,81,4,11,51,94,131,7,+104,55,187,72,167,159,184,45,230,85,227,35,112,13,126,53,91,87,197,40,237,89,77,21,123,144,122,117,94,179,205,192,+193,116,141,19,91,121,150,124,219,112,102,147,125,81,117,202,238,50,227,65,29,32,121,19,163,183,29,88,88,189,185,86,+13,246,241,34,193,136,81,227,165,38,146,30,2,188,219,155,255,214,178,101,151,47,212,79,17,109,132,231,150,175,236,18,+87,152,138,138,154,195,110,11,123,105,157,189,220,228,64,128,162,195,122,102,5,39,44,38,17,178,217,36,36,119,213,94,+109,19,206,8,233,51,218,188,249,158,200,71,205,161,2,47,82,238,153,92,244,11,145,97,100,0,5,193,193,223,179,89,+179,163,247,161,132,84,146,218,196,25,120,73,176,133,5,167,146,183,2,70,107,47,81,97,135,218,92,243,111,204,105,13,+149,10,81,193,133,164,77,191,247,45,135,39,95,5,69,129,213,113,17,223,245,189,90,60,55,11,211,106,15,92,65,182,+243,3,236,232,121,144,98,222,59,97,134,85,48,154,149,38,211,179,252,25,177,252,182,211,216,128,105,46,225,25,168,238,+175,83,239,45,200,190,91,129,17,149,216,229,193,169,219,125,159,20,90,237,197,77,128,49,79,62,78,136,223,217,70,25,+224,219,190,85,133,56,243,101,75,161,233,13,60,139,111,141,175,190,67,42,74,119,26,85,208,66,136,82,141,250,251,21,+242,64,86,184,13,113,99,56,186,29,156,104,210,93,184,114,58,209,106,37,254,165,249,118,71,101,10,103,51,63,231,2,+120,201,5,35,88,13,105,202,130,250,37,210,135,49,46,175,30,241,65,255,182,192,253,188,181,71,47,1,200,51,90,207,+4,48,64,146,251,253,222,43,191,233,7,124,90,71,213,90,180,155,10,179,74,131,235,174,143,172,116,204,81,33,115,112,+223,198,25,152,36,97,241,234,130,249,56,149,205,184,136,71,99,25,183,62,124,145,189,101,226,116,175,147,181,83,17,211,+71,203,39,149,199,107,218,103,136,49,86,25,204,183,16,24,165,222,253,139,33,95,183,164,183,131,166,54,182,216,183,109,+99,20,107,166,241,242,32,139,95,173,95,103,113,63,203,149,90,204,223,142,186,42,8,87,170,203,58,85,113,167,13,126,+35,54,66,204,153,99,239,8,169,250,38,46,204,177,201,177,25,246,253,147,254,44,153,62,52,195,219,242,249,41,215,191,+236,146,80,118,152,124,242,0,51,210,28,18,227,158,234,131,184,144,223,209,207,206,47,150,26,202,204,224,126,101,37,66,+39,45,207,227,40,241,194,96,94,236,151,219,35,142,222,114,78,250,2,114,53,160,150,69,89,244,105,119,35,95,52,246,+176,165,141,158,21,100,101,90,245,136,47,180,85,130,118,142,111,118,210,160,154,235,70,236,240,16,183,77,9,48,25,249,+72,214,169,212,188,193,184,89,244,117,88,165,232,130,148,78,214,16,3,4,61,175,61,131,211,79,118,64,221,216,131,62,+235,118,66,197,47,102,197,9,119,165,195,214,121,43,126,176,57,169,127,134,246,56,23,67,2,159,210,64,156,120,34,44,+178,169,76,140,42,44,65,168,40,38,237,70,85,84,242,146,217,48,195,50,72,224,192,66,84,173,242,57,135,220,221,222,+16,79,18,254,228,162,60,21,55,71,211,255,252,47,227,166,59,72,152,226,75,135,210,88,179,237,41,125,154,102,9,63,+86,113,109,118,153,158,108,225,108,13,241,31,215,178,179,215,103,53,86,230,119,132,195,176,106,48,116,148,159,204,140,7,+126,91,245,208,186,165,91,83,228,31,98,170,45,166,189,58,207,39,220,209,178,91,116,134,21,244,224,9,24,16,60,239,+195,167,120,122,123,43,175,106,191,235,132,58,3,187,210,57,64,229,166,77,211,3,36,133,228,236,166,117,48,87,110,75,+19,78,49,115,9,196,200,13,88,180,45,42,14,33,31,79,112,242,28,59,182,214,172,193,123,249,43,224,2,96,231,15,+70,75,97,175,135,178,253,52,70,254,83,122,222,90,87,105,184,32,189,120,125,12,30,55,85,178,78,69,52,197,53,141,+132,58,237,15,138,254,177,78,227,99,109,232,62,18,176,54,231,32,35,226,198,163,211,144,125,13,235,9,226,12,102,118,+79,165,176,213,47,151,80,7,190,198,146,154,227,225,27,228,194,61,86,198,50,46,9,161,7,212,193,149,12,214,5,209,+187,26,166,33,149,165,108,94,67,151,215,8,6,244,62,22,161,225,73,22,46,19,129,188,7,94,118,175,220,83,51,210,+17,148,80,135,169,233,211,6,24,221,31,37,149,145,46,174,201,138,23,106,186,242,5,30,92,50,147,164,132,156,111,14,+176,230,234,246,217,158,120,155,103,220,145,50,52,83,194,40,250,40,167,48,102,105,246,79,168,195,156,74,164,156,236,95,+57,204,105,99,253,82,88,52,233,78,156,114,57,121,227,243,169,240,217,211,116,37,15,191,68,225,200,220,66,30,4,45,+255,5,242,74,25,119,236,180,210,13,107,24,172,129,162,219,172,5,15,39,161,88,213,210,25,42,73,177,134,125,239,56,+215,148,191,173,2,17,161,15,19,34,165,77,1,39,204,168,251,173,204,241,157,191,186,60,41,19,63,205,55,135,84,247,+109,63,165,110,250,66,9,166,99,163,61,80,51,167,46,116,161,207,12,228,12,239,17,0,13,59,198,222,28,205,0,71,+152,8,0,184,55,34,42,148,169,175,79,160,219,221,167,42,210,21,98,45,121,70,237,181,254,115,94,243,192,4,175,202,+48,122,66,166,60,183,110,34,124,156,132,224,68,43,55,178,27,62,24,233,232,39,36,95,251,138,217,242,26,189,22,77,+154,131,193,106,171,13,60,34,222,193,100,60,129,1,235,222,106,23,205,107,35,185,29,50,17,235,176,109,148,13,115,96,+212,21,110,219,15,115,9,127,63,221,218,229,131,236,140,7,186,243,53,68,74,115,186,80,227,30,127,114,79,126,164,147,+69,218,37,114,23,152,139,243,68,16,92,109,152,209,126,95,108,75,253,23,91,63,53,151,153,236,58,30,10,235,69,28,+240,249,187,22,85,156,153,238,202,206,235,173,130,98,207,115,222,56,174,215,133,78,180,23,167,200,43,81,218,101,214,133,+53,118,134,76,9,21,104,36,93,19,229,161,19,151,189,124,112,76,10,159,159,251,24,35,103,162,186,140,150,16,143,223,+190,0,166,175,35,122,98,118,118,37,146,11,134,34,32,249,4,221,197,79,75,33,6,214,68,241,190,13,194,152,204,207,+122,73,102,91,93,109,56,206,57,190,151,38,116,43,140,67,66,98,122,42,228,122,130,168,225,126,117,137,73,211,132,118,+6,36,182,206,75,195,226,61,110,228,53,46,5,225,236,149,92,215,150,216,128,100,187,121,121,7,222,169,178,220,206,128,+35,48,38,57,75,176,233,129,116,210,125,36,44,56,145,158,49,231,157,155,130,121,51,177,156,123,5,168,245,202,119,253,+192,78,249,237,120,123,202,240,246,191,201,154,43,189,229,222,97,9,109,179,189,162,187,232,86,146,84,59,9,24,92,63,+150,6,149,60,141,221,187,93,18,177,179,22,195,232,247,93,77,242,101,110,223,165,237,238,25,140,144,49,36,143,207,72,+151,206,135,52,113,138,78,36,70,67,120,128,15,103,34,58,115,217,54,132,230,98,33,114,100,216,72,197,51,252,73,22,+157,167,46,71,51,211,101,58,28,159,52,9,84,31,15,224,109,118,104,215,143,137,43,216,101,180,16,35,207,176,227,82,+75,176,73,106,84,135,65,255,168,45,187,121,69,28,111,110,183,160,95,6,62,141,18,176,181,88,170,53,1,215,211,63,+60,66,7,209,7,40,239,90,10,222,139,45,114,145,252,153,89,70,52,165,82,246,186,230,80,68,130,211,46,22,21,1,+15,60,91,82,54,51,13,37,248,25,81,19,55,37,118,125,11,73,184,244,155,167,51,61,50,190,198,114,170,110,153,111,+240,170,149,171,50,221,225,139,216,242,207,202,73,108,191,35,24,1,223,85,85,49,100,153,30,160,136,19,221,69,170,123,+157,241,27,153,2,222,128,7,232,184,234,79,31,169,118,207,39,28,229,33,134,2,144,84,206,33,65,206,6,98,158,164,+24,210,245,216,229,182,175,25,141,120,203,15,167,185,11,8,116,96,204,75,159,52,244,155,50,94,61,190,176,7,248,252,+12,200,175,239,155,149,4,224,66,175,185,92,87,37,225,240,58,117,76,232,198,218,180,16,77,178,151,76,130,47,157,79,+103,83,127,220,162,71,235,208,161,187,200,93,102,23,189,19,84,130,89,255,85,96,250,67,234,150,109,129,37,253,123,167,+14,240,238,161,27,204,18,125,38,68,130,17,29,9,2,139,236,106,33,63,211,24,77,211,247,173,154,243,56,211,1,136,+120,73,220,91,70,20,153,188,121,8,99,245,231,210,204,102,202,1,82,164,41,125,37,14,116,53,132,28,52,151,2,187,+92,209,215,17,104,236,59,58,114,160,176,13,160,123,238,43,175,141,247,21,19,93,110,145,195,9,166,189,36,226,203,198,+120,59,96,190,127,211,15,85,244,247,177,149,182,90,2,49,69,136,231,133,162,250,147,152,240,110,193,182,121,242,101,178,+46,248,193,96,125,124,113,17,156,228,140,165,57,182,176,215,137,228,208,194,231,155,76,225,63,166,90,61,7,176,160,218,+141,201,243,242,37,186,253,213,18,88,156,222,33,77,98,118,174,69,171,163,93,201,144,167,141,75,207,216,101,147,169,181,+224,254,64,141,205,183,112,211,104,113,30,28,78,188,231,167,31,30,73,94,197,198,44,162,80,193,2,191,224,153,220,169,+110,138,148,59,173,73,79,224,13,140,114,176,96,43,103,45,76,204,184,71,171,185,58,134,129,242,38,37,62,76,238,133,+2,230,91,48,15,224,252,20,88,110,223,154,151,166,150,72,156,191,208,216,204,117,76,75,136,69,159,51,61,239,198,255,+38,199,32,194,193,115,35,175,87,176,48,0,19,95,16,230,160,182,216,90,1,48,42,193,100,163,135,138,254,239,14,36,+21,55,186,93,24,144,85,96,119,34,30,14,113,16,179,87,189,245,142,92,249,201,186,123,215,220,229,124,30,225,251,70,+201,254,1,111,56,80,0,145,222,199,162,155,68,217,123,204,240,26,89,128,114,100,130,71,237,12,18,167,43,133,222,100,+41,93,2,187,21,134,119,216,81,170,203,75,38,214,141,169,135,31,77,142,64,196,123,155,170,202,232,191,171,75,99,3,+189,6,209,60,197,150,80,69,69,4,40,105,94,84,192,242,65,149,164,145,196,60,251,130,187,226,187,246,76,25,155,131,+162,107,20,147,223,72,192,68,122,107,173,73,218,86,121,185,57,129,100,126,53,16,244,220,84,198,11,255,9,119,238,147,+19,106,252,95,85,247,178,123,245,138,215,116,63,46,200,85,177,133,170,126,220,220,108,228,95,138,255,191,63,41,48,72,+14,220,240,5,113,151,117,109,71,184,69,17,127,61,117,100,202,130,227,221,34,43,139,159,2,255,253,179,182,15,52,197,+180,22,226,4,200,216,91,245,183,136,220,193,127,4,213,248,60,117,193,105,123,112,17,196,252,229,53,130,254,102,128,211,+199,164,239,223,160,123,27,177,95,137,29,169,36,98,76,193,236,3,153,199,215,190,165,21,248,26,205,242,145,31,159,237,+200,252,61,28,74,246,31,125,70,106,37,164,51,245,12,136,161,71,227,116,76,207,78,14,2,140,92,106,178,126,90,217,+170,97,228,124,52,100,120,81,120,121,108,48,24,222,104,245,67,50,54,10,155,21,155,220,14,125,131,201,206,171,173,84,+124,79,29,165,127,191,26,78,138,174,233,56,59,2,80,157,207,121,143,18,98,116,157,89,193,253,30,154,186,124,16,31,+24,99,240,73,64,248,151,215,152,59,103,181,69,194,218,28,150,132,161,133,85,239,183,0,210,216,32,74,134,26,249,171,+176,82,108,93,42,43,50,32,47,142,140,124,221,171,59,240,219,124,137,122,164,204,248,204,171,98,247,68,133,42,38,226,+80,105,154,109,117,200,194,245,133,149,3,107,31,60,130,148,139,164,146,17,144,172,213,31,177,78,102,50,198,0,95,64,+217,172,159,82,134,2,117,113,82,219,12,241,92,193,46,95,18,183,177,91,26,227,151,56,23,27,112,200,247,240,136,1,+97,169,161,179,54,128,102,216,89,236,211,59,232,5,95,162,150,87,136,238,87,88,120,162,22,71,22,109,243,158,165,140,+133,105,122,209,147,91,103,187,97,170,151,159,84,42,22,243,160,224,35,249,26,1,230,107,6,140,103,80,200,153,182,108,+170,115,162,247,63,53,29,147,115,76,181,59,237,89,104,89,179,121,53,214,171,142,37,88,49,79,196,12,52,7,206,243,+88,155,156,127,238,95,199,40,11,87,43,156,85,246,46,123,80,172,7,243,233,221,144,113,8,15,58,86,138,60,109,111,+132,67,206,58,139,36,3,254,61,161,249,214,136,111,230,1,225,52,158,63,115,39,34,31,207,240,94,189,168,34,39,126,+101,35,150,61,13,215,108,198,211,202,0,100,118,192,87,210,178,114,217,229,211,216,194,4,246,130,85,112,179,76,77,15,+123,231,245,21,141,140,68,153,152,64,174,33,129,2,216,222,59,159,75,69,144,31,187,59,227,210,13,220,109,252,199,91,+41,195,255,202,216,227,38,118,245,137,35,136,141,162,227,72,155,79,65,61,229,123,41,147,10,13,153,100,166,229,108,32,+99,158,2,140,121,161,217,138,159,20,119,175,108,17,80,79,207,184,146,136,180,83,230,145,122,158,43,36,27,17,192,49,+87,77,53,72,103,188,84,225,93,206,143,254,211,3,63,20,235,215,149,229,87,106,45,169,80,22,138,236,82,57,225,138,+228,16,169,203,84,75,118,65,175,182,151,223,55,145,104,205,240,12,217,8,212,228,233,118,212,175,57,108,222,83,227,173,+82,229,219,116,192,99,208,40,223,131,106,59,131,251,117,38,189,169,255,179,104,47,14,240,240,232,108,85,51,171,253,226,+115,178,170,225,209,212,180,196,178,126,248,202,42,187,96,123,131,121,138,39,146,164,133,171,119,83,187,73,69,254,42,125,+60,34,225,147,182,148,14,2,180,54,228,101,142,40,19,61,225,124,75,235,51,63,251,141,253,116,69,206,162,252,76,48,+56,49,247,244,188,130,108,179,38,111,107,71,124,118,52,164,133,35,172,70,131,117,101,168,157,46,139,86,172,156,70,60,+148,60,66,193,126,199,31,151,26,0,81,172,72,85,196,241,188,153,8,191,7,182,72,134,26,14,6,62,171,184,158,242,+168,54,115,128,114,109,156,24,43,20,124,206,29,8,228,151,55,177,79,220,247,26,96,8,98,56,99,217,135,151,85,124,+41,179,137,67,173,246,142,143,131,244,182,194,161,103,20,34,22,199,245,209,86,126,186,53,244,31,27,79,55,242,141,45,+78,97,156,104,13,247,239,88,213,51,12,166,8,11,140,134,89,170,140,159,103,152,142,109,246,127,111,192,134,46,79,25,+203,152,101,199,223,200,199,118,214,254,136,141,32,20,116,131,12,36,90,64,119,68,21,112,57,114,188,102,103,64,39,86,+221,114,58,86,52,203,15,197,193,161,233,169,67,128,52,121,127,21,41,77,106,55,230,82,234,136,92,50,43,240,233,82,+115,44,95,27,185,49,27,176,24,106,33,12,224,157,138,72,38,58,141,177,89,158,43,167,254,161,197,244,197,217,35,5,+96,204,86,164,228,186,170,105,182,248,72,133,227,131,149,25,52,123,196,120,38,34,243,212,24,95,204,141,12,76,17,183,+209,202,85,90,164,229,254,187,126,101,69,200,251,200,181,24,133,156,42,125,31,9,42,123,88,65,163,111,196,210,200,14,+249,205,149,155,40,189,252,10,10,115,34,84,122,164,154,223,218,233,174,86,155,163,119,238,202,237,170,92,251,26,191,227,+251,251,53,182,74,236,170,96,75,76,70,125,121,119,224,1,174,107,34,151,129,156,103,78,207,250,30,135,201,232,129,8,+7,8,41,138,254,223,57,43,118,139,87,243,71,123,222,96,185,105,76,206,129,195,117,178,119,177,169,2,195,201,41,249,+143,107,87,207,230,6,177,146,75,103,101,143,108,142,244,25,189,212,245,125,60,125,92,80,238,24,231,170,232,208,25,233,+246,139,8,249,14,171,46,46,216,196,74,139,48,50,100,34,2,248,182,163,70,68,123,95,43,231,88,40,45,94,141,254,+44,255,2,187,153,69,82,223,87,90,142,7,4,70,29,47,109,184,176,126,177,171,82,201,104,249,221,14,148,88,248,224,+176,81,210,251,217,208,120,232,17,179,60,243,177,187,115,50,203,24,106,50,59,85,129,33,130,0,37,29,26,40,13,207,+229,162,5,193,213,104,128,27,67,32,28,103,166,186,46,44,255,114,194,208,96,14,222,31,7,177,94,210,127,198,219,13,+60,126,116,51,121,217,81,12,136,188,224,140,93,107,247,212,154,100,13,80,96,241,126,223,97,23,9,48,127,207,123,65,+147,226,53,172,65,135,245,36,47,80,95,74,18,250,90,91,130,217,103,120,174,166,212,11,6,213,130,129,111,99,153,7,+27,82,100,235,110,41,58,23,20,177,126,231,99,179,210,190,212,68,158,69,174,26,47,193,10,3,201,152,129,217,196,140,+204,207,99,164,53,160,53,180,58,205,144,31,83,53,6,125,135,49,77,1,61,178,208,47,19,126,242,43,32,229,229,218,+67,176,215,96,98,159,12,11,132,148,238,147,97,230,62,61,198,136,22,25,177,199,59,10,229,201,211,150,217,131,168,119,+2,226,151,146,86,77,188,206,150,72,92,65,91,41,203,31,235,106,115,115,75,90,240,90,236,121,168,158,8,98,240,98,+204,109,242,96,152,167,245,252,139,172,55,83,43,45,183,227,84,131,139,72,127,54,166,18,208,58,137,241,214,130,36,75,+4,221,104,168,34,69,8,176,107,134,113,131,195,86,143,133,44,237,130,6,245,242,209,129,92,173,245,63,216,204,46,250,+83,76,97,17,95,86,131,137,16,71,23,66,101,180,60,244,1,133,49,247,103,135,9,226,169,92,71,86,7,51,41,139,+97,187,12,15,105,149,144,21,204,45,240,84,236,252,165,210,103,153,133,252,251,47,144,209,219,127,230,66,244,147,157,47,+19,157,252,105,70,145,6,253,121,222,32,192,92,189,216,206,99,250,57,56,17,180,189,141,174,123,158,132,127,97,220,152,+42,168,234,206,73,133,33,181,31,90,54,251,108,8,225,95,124,176,136,157,82,151,58,37,233,15,25,66,110,156,154,151,+42,28,170,110,193,118,191,60,91,179,71,234,228,78,199,70,64,111,28,195,103,241,170,202,23,217,110,8,29,152,95,112,+129,223,245,59,160,246,200,63,77,191,73,182,3,50,182,252,91,107,138,1,228,36,127,216,65,236,188,68,21,92,37,105,+71,75,215,250,214,142,193,20,215,84,78,51,210,144,74,82,184,9,23,198,254,95,134,92,81,177,182,94,19,41,114,41,+20,79,127,214,98,168,159,20,85,152,225,71,144,226,238,53,230,4,124,19,208,196,9,165,204,108,150,26,1,202,216,220,+12,196,49,21,172,219,28,196,173,93,71,177,92,176,110,166,99,68,227,24,167,125,181,75,51,140,171,240,79,75,172,12,+234,233,86,99,211,163,144,10,153,247,139,160,240,69,153,69,211,54,139,12,26,231,189,159,230,174,31,218,138,30,199,169,+16,214,170,249,90,31,77,29,143,23,175,174,187,126,134,83,131,185,97,94,5,67,75,191,239,43,201,136,207,20,95,99,+139,1,217,84,90,79,154,229,176,75,181,216,249,181,8,251,92,148,221,223,122,37,22,210,186,115,92,14,79,35,151,80,+20,243,85,239,29,242,167,207,26,88,83,77,248,124,3,61,39,222,59,211,105,116,247,129,54,171,187,165,92,178,34,153,+21,95,249,158,191,236,79,57,54,154,144,106,97,194,57,1,209,201,139,255,229,239,192,153,34,228,225,6,98,203,221,75,+220,0,99,186,242,117,211,29,175,181,39,111,27,190,187,107,134,199,229,69,138,235,254,195,92,111,94,145,139,201,159,220,+45,163,53,193,27,5,223,5,24,243,141,83,205,17,31,0,89,161,33,87,153,13,212,90,36,66,93,8,8,143,109,212,+68,74,60,169,153,29,169,252,76,214,163,82,36,83,139,102,66,119,252,51,80,178,22,99,36,40,121,187,62,81,149,149,+133,129,154,168,144,189,124,100,236,33,99,152,58,102,215,153,161,105,187,254,201,159,180,183,138,7,172,89,77,79,211,41,+48,145,79,86,154,123,233,197,165,78,57,211,106,213,202,145,58,184,134,90,143,77,178,227,57,53,181,46,79,88,193,60,+186,204,127,94,250,11,92,205,39,32,176,143,182,240,100,21,189,169,79,9,102,34,127,72,239,2,191,162,71,220,147,194,+179,138,189,10,150,23,59,87,249,16,144,24,169,160,129,234,65,143,99,117,141,254,156,132,178,139,238,197,41,169,110,94,+162,203,132,220,229,234,98,249,83,173,28,254,118,140,157,32,210,86,248,176,141,249,220,244,4,184,66,182,110,84,146,47,+85,166,29,181,253,216,207,178,177,5,126,2,81,237,81,60,210,161,143,88,159,100,33,159,249,198,229,238,174,244,140,104,+26,19,41,102,104,173,229,213,233,7,227,110,143,214,209,139,242,124,158,122,230,11,37,96,172,224,239,151,174,21,4,139,+135,87,249,238,26,173,175,86,80,242,133,196,208,87,113,63,252,213,228,142,105,107,158,57,237,56,174,79,42,166,242,34,+172,248,214,221,137,105,58,155,103,229,35,74,113,35,80,58,70,1,191,234,191,92,148,193,127,235,118,29,181,177,147,83,+193,186,36,163,27,3,120,34,91,212,116,128,65,45,246,49,3,217,145,181,47,10,88,25,60,213,222,244,231,8,12,115,+152,63,33,189,153,4,249,4,238,46,186,3,23,26,47,4,253,6,192,13,234,62,93,113,191,75,141,22,18,243,95,22,+20,152,108,155,144,69,166,243,174,183,60,197,166,231,35,234,219,246,127,234,129,231,141,3,127,75,175,133,42,87,217,162,+186,124,90,138,9,122,114,22,143,195,49,159,217,6,91,66,56,245,3,98,255,96,14,184,247,10,144,90,200,8,66,198,+119,164,95,61,115,18,229,187,244,67,126,188,253,42,149,72,130,6,176,187,122,116,41,106,242,76,206,34,229,166,248,209,+145,33,150,37,48,159,243,183,52,77,42,149,33,152,60,55,5,137,98,152,246,181,57,199,131,51,184,173,194,117,169,34,+144,219,145,206,35,247,40,73,12,148,17,122,231,83,176,123,82,66,132,47,65,115,183,151,60,100,58,179,124,19,95,78,+31,202,244,151,10,251,74,160,46,119,138,89,55,105,137,235,121,223,140,105,197,126,124,6,10,208,85,229,127,20,126,94,+36,143,125,132,214,114,140,183,168,65,61,85,127,77,28,119,144,135,183,178,123,210,226,34,141,46,140,149,218,146,237,157,+3,61,1,196,40,86,85,119,145,120,19,167,230,35,148,255,250,178,126,45,174,4,244,37,207,203,238,133,19,214,133,39,+115,158,219,98,74,187,185,89,226,4,163,57,62,66,127,139,18,147,243,81,234,127,25,197,115,40,163,172,34,10,112,51,+143,93,130,70,241,47,213,230,220,254,75,175,161,21,174,101,158,121,227,179,214,160,64,128,158,208,246,130,141,53,73,194,+196,161,205,193,41,92,200,84,115,100,199,5,88,139,73,192,232,38,0,27,131,2,65,41,103,112,131,105,224,128,11,153,+35,119,35,18,35,112,250,131,228,229,185,197,209,141,48,234,249,64,223,0,196,221,74,170,61,227,160,202,17,38,25,0,+233,166,1,246,163,224,136,154,240,222,65,56,59,201,95,105,150,68,93,221,73,131,92,208,2,9,173,95,111,83,248,140,+96,186,193,60,96,122,107,16,27,142,242,187,121,185,123,87,196,35,226,22,112,146,68,17,6,104,227,227,219,37,237,192,+147,45,244,81,242,36,189,91,142,218,154,216,14,143,202,174,234,146,67,18,173,239,22,100,48,92,59,141,9,131,4,33,+226,172,77,47,228,147,179,161,149,146,208,33,179,221,76,148,120,234,71,43,11,92,143,87,44,172,145,248,166,190,215,143,+99,229,16,129,89,141,203,180,248,220,251,143,159,102,22,172,250,16,248,186,243,46,67,13,78,250,225,137,32,86,21,71,+129,33,98,44,114,84,211,208,157,100,88,85,198,188,239,208,199,206,132,183,210,89,63,203,53,207,216,213,154,146,167,147,+63,211,135,72,110,51,59,238,116,42,108,251,97,206,87,46,244,59,51,142,60,91,163,250,205,41,105,193,245,228,185,138,+78,217,72,35,86,132,218,9,16,78,133,158,80,97,115,180,39,232,208,156,11,51,123,155,161,230,84,37,57,204,139,131,+220,14,214,176,32,88,5,10,15,31,255,209,65,38,153,119,36,9,207,51,133,96,196,6,105,220,205,162,99,16,141,78,+145,179,70,97,226,99,9,230,183,99,154,1,0,133,139,35,87,168,160,13,155,235,8,111,155,165,234,145,8,134,233,191,+175,224,77,87,28,180,234,205,49,23,91,59,52,105,138,124,92,214,83,51,121,61,63,46,22,145,3,249,250,161,206,178,+102,141,73,203,105,204,30,80,192,131,174,124,126,31,23,208,240,89,96,144,147,51,216,93,2,241,222,252,78,33,15,77,+9,237,50,173,146,7,150,85,47,94,167,41,169,39,241,126,52,28,23,28,39,174,48,205,75,177,111,242,235,227,3,55,+29,207,52,211,79,131,222,211,98,19,253,110,147,130,161,151,121,183,226,84,126,190,40,230,244,62,11,44,33,105,187,127,+128,15,95,164,247,79,44,35,9,26,75,216,5,122,153,22,235,174,232,76,16,12,70,5,87,3,2,87,114,119,178,107,+44,142,8,147,121,225,32,243,24,223,13,42,124,31,167,236,202,124,180,225,38,230,49,51,94,35,166,239,143,241,47,60,+167,34,6,102,69,124,227,3,115,156,156,23,160,133,29,83,33,151,224,225,140,207,66,233,176,51,38,35,241,229,43,131,+117,122,37,7,139,185,243,173,55,183,246,225,130,212,132,14,62,108,35,81,166,6,131,252,14,91,117,53,145,108,45,10,+229,13,145,246,223,94,9,18,202,164,105,174,215,104,14,16,206,86,11,103,69,191,85,80,223,91,103,4,145,123,74,138,+202,129,127,173,110,168,207,24,209,179,190,227,89,114,166,100,80,163,82,35,254,14,48,241,17,50,20,177,172,31,12,105,+233,76,199,122,235,244,52,108,37,1,176,214,17,194,143,139,46,21,106,55,250,132,107,21,163,238,56,120,223,127,187,41,+250,190,113,188,5,195,0,231,129,182,110,230,14,119,76,175,51,201,108,205,243,133,36,196,115,22,231,67,178,33,189,122,+39,227,172,240,238,50,246,95,51,37,200,28,11,164,233,69,65,254,71,31,197,70,42,67,27,177,182,120,92,106,134,49,+10,247,115,238,100,106,135,173,85,206,69,79,99,62,246,3,15,114,40,102,43,250,255,102,1,100,209,169,160,243,191,143,+243,57,70,120,151,151,179,115,68,250,107,78,166,94,213,52,3,129,179,66,173,177,143,129,128,231,61,54,143,86,170,113,+228,186,196,255,121,57,75,42,9,60,26,164,80,27,195,116,122,103,51,2,30,23,255,222,30,172,244,247,46,218,176,241,+81,78,210,114,34,165,112,107,155,22,246,12,131,12,12,169,226,233,59,103,227,96,193,126,62,62,131,32,96,87,212,47,+25,248,241,160,90,144,68,30,14,211,5,44,111,155,65,32,121,155,70,134,182,251,115,68,34,111,123,1,56,189,238,254,+223,105,56,251,90,68,38,193,49,66,194,159,245,46,216,175,76,200,146,205,90,42,187,75,117,236,90,199,63,182,82,3,+211,153,133,47,190,59,77,3,215,106,19,135,111,51,80,235,216,60,251,28,75,94,99,9,235,141,255,57,204,237,23,12,+50,13,255,155,250,229,86,192,216,108,89,98,192,46,14,15,97,197,16,228,227,228,136,135,135,159,160,138,66,218,95,212,+73,102,135,147,215,40,131,210,234,73,186,90,98,172,231,98,85,113,1,210,6,198,218,167,141,172,10,46,138,231,26,251,+48,197,96,76,244,64,133,114,67,63,163,227,180,157,90,180,49,90,32,131,87,118,6,116,139,155,91,236,200,96,74,174,+120,136,1,251,173,250,27,93,122,78,100,250,117,13,150,43,154,244,194,188,112,251,59,126,172,204,236,147,140,185,91,165,+47,177,65,44,105,229,216,222,254,253,18,228,80,82,227,224,186,125,197,255,68,29,126,25,197,128,226,238,184,93,26,116,+209,161,35,238,125,130,108,146,224,231,252,247,245,100,210,124,17,194,201,212,204,8,216,254,62,200,41,185,24,228,50,118,+131,134,9,157,209,216,43,216,78,142,14,85,142,248,65,235,25,175,77,1,199,159,240,228,228,168,40,10,118,23,153,166,+166,28,124,2,230,48,226,97,138,74,107,231,251,50,197,183,77,109,218,121,126,35,74,204,72,230,43,108,73,78,56,33,+88,201,14,197,59,204,216,176,11,95,164,29,140,221,253,41,103,141,127,96,48,189,121,238,123,112,152,58,105,168,165,85,+244,72,235,250,12,200,178,233,198,147,50,201,43,72,191,185,233,244,21,37,105,247,63,165,45,236,67,168,107,27,195,131,+50,231,73,124,180,189,61,208,195,98,198,7,35,246,114,150,193,253,214,191,170,58,40,133,61,115,176,209,143,159,65,12,+3,85,10,93,142,238,62,211,214,191,247,239,44,102,182,192,73,54,190,144,99,130,25,175,10,74,3,74,242,2,74,81,+68,179,235,60,238,241,49,74,96,206,161,100,92,88,168,178,45,182,146,129,178,68,51,55,237,151,122,169,221,18,50,184,+112,234,30,74,219,170,180,180,220,42,42,140,103,205,68,122,211,196,12,223,78,13,39,137,174,253,209,95,208,49,15,190,+50,3,15,204,2,108,179,228,151,43,165,253,106,65,124,140,143,124,237,49,215,88,21,162,215,77,16,48,188,254,196,245,+73,91,139,178,229,86,171,229,17,224,17,179,147,195,81,93,51,52,94,144,115,32,114,206,214,249,116,62,112,250,75,206,+41,36,200,204,130,101,25,193,129,159,34,45,88,25,21,218,11,9,190,238,22,165,40,23,4,226,13,52,154,1,116,236,+88,210,43,54,57,158,85,107,39,177,175,243,237,154,217,200,75,93,193,25,153,218,54,154,22,46,225,215,88,203,63,146,+5,252,196,159,159,43,67,62,155,136,0,110,194,1,121,220,227,165,45,250,189,227,157,53,4,53,174,173,112,91,116,21,+112,80,50,95,36,211,213,212,181,44,198,164,231,112,76,252,95,46,20,61,54,173,127,198,121,90,246,96,38,122,148,121,+131,17,180,8,48,142,115,213,116,182,134,85,249,224,131,59,155,1,249,167,128,227,116,64,62,165,202,139,180,143,172,31,+215,34,131,5,10,55,41,87,93,67,104,42,28,86,99,223,235,106,93,31,145,68,151,54,241,179,193,133,108,241,6,149,+72,76,81,195,179,209,190,54,213,190,2,107,154,164,182,80,7,8,31,164,186,91,173,190,213,21,22,8,76,101,154,51,+121,61,191,54,248,221,129,121,86,216,224,246,176,55,164,57,81,206,243,14,244,126,205,212,123,15,2,165,125,39,221,119,+8,72,136,54,211,159,93,167,152,166,58,211,180,32,83,92,109,104,96,3,78,159,207,142,15,51,179,124,110,252,179,194,+92,118,103,43,107,162,200,169,200,248,62,197,26,58,217,220,220,136,71,57,243,52,85,205,140,124,238,237,38,12,190,112,+231,206,35,248,39,229,109,6,214,129,185,193,89,48,104,61,157,230,34,87,148,230,75,167,56,146,233,63,141,227,157,130,+61,87,160,217,204,30,64,92,241,219,49,158,39,242,30,9,171,129,166,93,5,90,130,196,51,133,76,76,166,64,0,1,+162,46,118,105,212,167,180,194,190,2,49,43,76,83,197,3,166,57,56,204,97,146,225,177,101,232,43,201,253,193,98,9,+83,65,91,58,246,12,29,235,163,97,160,253,205,190,69,102,179,31,137,219,194,19,28,203,118,246,206,15,88,192,196,79,+0,187,28,146,13,65,143,64,168,65,21,31,193,177,180,192,189,164,52,68,237,190,85,189,78,201,20,47,218,14,39,113,+237,14,222,28,224,124,13,161,43,28,56,103,171,119,105,85,46,86,252,84,21,230,169,17,64,102,168,165,232,151,25,200,+188,171,203,96,29,240,52,45,154,19,10,194,215,210,131,129,69,142,201,185,218,207,62,252,42,18,42,172,179,43,80,30,+235,229,111,187,253,153,136,137,74,254,144,133,139,39,244,116,128,35,232,53,28,49,234,243,159,147,173,105,107,139,53,221,+187,154,40,124,19,1,119,72,132,28,183,37,81,100,156,121,246,168,72,170,105,36,41,167,85,188,136,208,202,78,14,247,+255,42,71,49,222,114,191,85,201,68,72,172,67,124,123,62,223,237,96,129,122,144,207,235,215,244,87,182,169,64,181,218,+89,91,73,224,174,222,208,5,126,71,45,157,199,243,17,155,56,157,215,1,230,53,76,72,249,203,93,168,82,192,28,103,+41,134,132,217,11,251,224,55,236,6,86,122,29,126,17,5,219,105,73,50,188,230,183,36,201,241,85,47,148,151,38,97,+24,184,214,52,207,175,196,89,126,76,63,137,144,160,69,2,135,126,55,255,118,53,55,145,130,86,203,239,18,129,21,8,+172,221,204,159,196,38,165,125,247,160,11,106,211,103,10,14,248,179,230,2,55,83,154,176,81,116,95,27,80,65,30,226,+205,95,70,96,125,13,180,159,92,52,140,155,226,110,117,254,202,100,220,96,28,62,124,43,140,217,211,250,190,45,216,65,+205,95,60,212,105,3,201,240,43,77,74,141,14,183,243,78,222,16,83,137,14,72,236,173,73,90,228,120,127,191,145,254,+160,186,203,221,255,145,208,147,44,171,53,166,90,0,161,225,80,48,95,129,164,156,88,131,135,66,242,89,119,204,136,178,+14,122,182,164,26,95,224,159,67,126,14,251,5,212,61,64,83,185,145,142,220,61,190,8,179,63,76,74,83,175,204,227,+82,42,133,134,160,17,141,4,32,250,151,138,205,156,122,215,45,105,158,1,245,202,184,125,129,106,188,236,160,15,132,160,+112,2,87,13,90,45,45,67,160,211,214,236,134,62,199,33,209,152,99,41,201,200,104,88,217,21,116,194,214,169,166,125,+4,121,78,2,250,27,167,8,222,127,193,241,147,168,8,195,64,174,251,109,132,181,218,80,233,142,170,11,31,126,175,13,+209,250,208,20,88,19,181,143,211,153,73,152,252,253,54,77,168,249,27,31,200,130,146,207,65,74,168,89,68,158,153,245,+4,117,19,148,70,88,69,11,74,178,247,4,223,16,216,118,108,84,243,18,212,119,194,19,227,175,150,45,213,23,120,96,+38,89,199,104,243,160,226,133,161,227,97,90,219,20,42,205,61,18,148,89,54,255,114,151,253,121,58,229,45,110,27,115,+205,202,110,93,70,19,6,105,188,70,62,190,158,90,88,92,195,135,25,81,11,233,193,10,182,48,230,251,137,242,12,43,+191,196,56,153,207,82,35,161,15,146,94,146,63,120,107,188,223,22,251,211,39,15,239,255,156,225,201,87,246,90,96,15,+249,141,220,181,170,140,92,16,16,141,13,110,253,55,52,0,223,224,200,24,99,6,110,251,115,106,242,123,139,54,126,219,+241,136,55,202,176,101,177,209,196,197,81,105,245,231,227,113,201,105,133,134,114,17,113,18,250,134,171,227,104,101,112,169,+164,244,5,214,148,221,235,133,236,251,123,222,166,27,195,240,117,93,7,164,166,221,138,26,136,22,200,78,99,210,197,210,+110,10,211,89,173,167,83,161,138,33,13,75,38,227,128,204,42,87,174,54,8,124,106,40,160,107,194,249,96,187,65,54,+238,175,40,113,98,6,6,96,18,199,159,15,41,126,120,223,208,30,60,243,201,58,189,90,173,222,43,144,210,145,133,155,+20,151,219,94,231,224,172,130,177,52,49,65,56,144,29,195,100,194,26,67,235,204,204,11,180,98,101,115,237,155,78,45,+122,101,209,167,70,141,121,152,76,116,117,4,121,226,159,24,163,18,155,118,17,34,230,233,81,244,230,155,83,210,128,95,+108,155,232,37,14,124,74,95,147,189,161,8,212,228,236,12,96,187,230,248,244,36,190,75,158,196,118,195,28,47,182,75,+95,140,207,167,88,195,148,135,216,196,65,190,253,216,63,79,71,32,118,49,21,142,133,107,139,25,160,107,0,147,177,183,+48,64,218,3,65,26,161,178,151,101,116,74,79,149,181,5,202,241,157,199,31,105,132,144,251,158,238,169,166,57,8,84,+229,153,152,255,146,59,240,59,34,162,192,56,226,237,166,164,64,67,148,247,178,240,174,58,192,228,68,25,77,11,236,43,+158,71,129,51,56,171,215,250,96,48,23,89,153,69,110,48,224,27,206,83,253,213,119,119,54,219,8,240,217,203,196,73,+109,46,194,119,38,153,177,111,195,108,189,65,85,95,106,8,23,32,101,64,204,6,242,36,111,42,185,188,168,200,219,32,+187,154,237,5,120,1,247,130,229,247,40,136,172,152,138,50,198,171,176,152,10,194,87,99,94,109,204,17,6,177,129,153,+16,16,223,41,254,248,71,135,136,76,104,98,73,28,125,31,163,21,92,56,152,156,146,163,121,228,55,108,9,246,118,103,+245,244,35,88,201,241,255,139,214,170,76,178,195,197,47,5,126,85,96,247,200,43,129,102,193,118,76,47,118,153,237,178,+149,170,36,57,84,135,114,48,115,199,48,201,64,156,193,25,166,65,92,56,12,241,177,44,237,148,105,85,141,227,70,96,+132,158,9,203,68,70,83,143,9,143,176,148,233,250,190,58,14,174,139,168,217,48,129,188,28,58,60,161,165,169,142,19,+105,11,130,130,56,127,146,208,160,59,194,76,202,246,120,181,247,45,101,195,78,206,155,220,249,131,158,219,133,229,78,231,+186,180,251,44,68,16,231,44,251,88,76,172,177,149,199,147,167,137,65,224,31,166,52,142,50,245,149,25,92,239,46,165,+134,80,106,12,204,172,115,180,5,150,244,36,196,100,52,157,138,249,48,41,203,166,248,6,64,131,150,141,244,21,211,12,+98,101,200,153,151,86,105,229,12,114,56,96,167,163,142,94,141,217,56,147,62,63,5,188,113,31,126,255,99,225,176,63,+76,49,248,81,74,71,174,9,79,184,168,187,167,46,20,22,40,63,223,113,201,142,38,213,246,6,163,69,229,153,81,78,+15,94,23,61,145,63,33,166,200,134,228,145,193,44,144,255,130,55,124,29,40,85,239,26,156,0,14,63,55,16,75,61,+33,60,243,35,7,22,134,179,140,162,143,105,223,19,161,1,243,18,102,254,12,229,176,134,168,44,49,231,29,90,186,67,+108,48,82,247,165,81,148,60,93,237,171,23,34,19,173,65,39,84,160,184,218,0,218,27,234,195,154,41,53,192,66,138,+21,30,116,69,102,246,233,120,110,134,67,236,243,83,120,73,141,209,63,84,55,61,103,49,195,194,6,28,105,142,242,66,+123,182,12,116,1,191,177,203,137,110,232,47,21,72,191,204,194,203,45,232,57,162,77,86,112,135,53,188,235,86,0,57,+33,8,220,176,12,176,232,11,37,230,91,240,235,202,173,173,173,108,47,147,66,78,93,59,121,130,245,105,249,159,49,192,+3,3,29,19,192,1,138,101,19,152,231,242,187,82,205,99,55,11,225,66,72,226,11,241,127,17,247,91,49,207,52,57,+3,38,126,116,214,131,219,240,3,248,23,14,127,189,71,130,54,2,157,97,66,188,136,134,195,114,223,8,95,102,79,225,+23,87,87,178,205,13,63,161,183,146,95,119,147,196,201,172,190,154,112,46,61,41,135,232,105,200,177,106,223,1,254,47,+145,124,226,223,192,162,153,200,184,237,1,192,30,176,222,28,9,214,121,246,115,56,123,211,137,187,35,73,133,45,54,128,+159,67,68,9,253,88,110,165,4,207,169,3,94,93,41,65,77,81,136,228,95,185,169,49,207,87,255,57,235,154,102,165,+189,46,88,33,193,0,74,156,194,155,26,152,11,152,190,217,28,123,112,160,96,181,126,50,83,114,137,197,51,242,28,251,+109,121,10,29,73,233,214,153,76,153,193,205,179,223,160,7,0,23,126,35,253,101,172,178,202,11,167,144,185,5,204,236,+129,16,236,55,254,69,218,166,254,153,165,228,96,7,190,250,8,176,112,18,57,54,216,67,229,173,232,14,242,135,155,40,+72,94,191,163,165,189,86,130,120,148,126,133,95,90,208,20,20,67,58,7,87,185,37,129,246,82,65,59,247,174,106,107,+46,16,75,103,73,80,112,7,190,229,26,130,208,218,135,222,110,185,212,163,85,35,93,222,168,230,121,75,45,11,140,24,+252,147,228,104,58,62,101,207,24,228,179,189,166,117,39,141,10,36,241,242,32,46,233,147,87,253,230,71,243,223,1,166,+100,110,64,122,23,200,249,29,58,180,248,168,56,146,99,51,170,0,101,63,153,31,251,58,231,252,169,28,46,110,20,251,+110,52,49,188,192,244,74,149,199,243,221,111,160,249,81,15,92,67,158,53,230,190,84,22,69,3,161,110,134,3,139,236,+142,187,27,114,64,22,212,237,42,107,115,15,173,21,142,241,149,113,20,253,184,136,112,21,193,10,105,245,37,164,129,10,+197,228,72,119,142,118,29,168,127,114,250,5,39,234,137,5,100,112,213,90,119,165,220,26,1,199,220,96,158,183,148,62,+87,197,170,154,100,128,34,27,223,98,62,255,4,233,132,186,191,156,8,218,59,180,155,57,177,70,54,229,99,165,201,45,+194,235,155,161,90,116,206,187,193,201,108,36,198,249,212,23,251,87,246,221,252,117,155,133,155,194,127,68,224,239,56,136,+92,173,33,99,201,242,59,8,82,78,191,112,215,95,51,109,80,230,152,131,103,87,122,8,94,130,86,38,144,79,106,66,+36,123,236,160,42,187,234,171,117,25,40,250,210,118,106,189,166,14,183,171,206,141,213,191,233,82,190,242,154,130,108,24,+21,238,190,46,193,254,130,159,156,206,228,122,112,4,62,247,64,45,186,20,33,202,206,240,181,18,247,103,101,242,70,181,+97,214,189,56,65,179,180,180,75,27,159,67,53,63,214,58,67,100,134,14,143,142,20,205,168,50,123,202,187,83,210,243,+41,149,149,45,119,75,228,16,69,29,42,27,0,160,240,115,184,111,132,162,69,139,58,177,32,223,116,96,177,254,95,221,+65,249,104,248,76,163,53,57,42,249,225,178,216,184,94,59,151,2,30,206,227,11,234,225,205,247,226,171,168,207,166,159,+169,158,159,228,67,45,61,59,201,110,243,0,182,160,68,89,77,32,212,24,135,159,97,183,232,190,250,244,222,50,153,3,+135,245,123,131,226,57,50,138,162,233,219,102,102,95,38,61,166,98,255,60,137,128,92,171,61,59,56,197,205,177,47,237,+207,38,41,12,164,228,200,79,233,31,249,251,225,18,49,94,49,62,103,214,11,55,46,72,222,248,215,185,249,231,201,134,+103,79,151,138,252,176,234,251,111,75,65,54,59,176,130,87,112,94,209,126,147,108,3,37,23,2,232,149,214,15,72,183,+118,235,130,141,188,135,128,14,11,9,149,3,112,194,19,23,205,25,178,12,102,234,222,34,13,122,241,55,123,120,101,158,+169,199,79,60,116,96,66,94,22,235,172,205,159,33,149,208,175,5,151,152,222,213,221,174,179,223,169,143,188,34,144,153,+143,81,179,202,123,167,87,222,143,228,63,104,117,87,201,159,159,133,58,123,46,0,181,253,147,79,189,13,172,3,76,249,+73,175,128,142,176,174,113,79,19,113,251,132,157,163,123,86,3,153,108,37,15,181,73,108,92,194,186,108,238,224,195,14,+111,113,1,100,253,119,146,135,217,132,101,180,175,94,176,123,154,62,76,106,18,116,252,241,172,143,160,178,25,11,153,182,+89,173,83,192,58,70,242,237,169,181,82,225,169,229,92,79,226,125,94,103,6,136,26,156,243,166,199,91,194,5,118,67,+213,82,244,253,41,200,186,48,33,106,215,220,95,67,28,117,222,151,136,104,186,224,155,89,87,12,80,252,98,155,49,108,+8,148,10,39,241,143,234,17,60,241,205,13,204,166,215,209,14,226,5,137,183,224,224,165,181,110,21,94,199,66,208,160,+246,142,188,219,18,41,88,183,96,29,191,104,167,77,112,42,60,156,91,2,59,251,213,5,107,144,66,15,198,92,219,90,+210,225,246,76,134,179,116,224,17,184,188,194,241,189,32,119,215,28,54,125,147,128,144,224,156,141,226,203,95,48,233,26,+220,167,249,29,235,27,102,154,236,34,201,119,74,26,27,40,76,230,169,119,67,213,144,21,238,231,185,41,184,0,134,183,+182,140,76,58,130,30,210,200,79,229,47,241,230,252,198,174,242,61,149,74,214,168,69,231,27,5,1,241,97,155,75,118,+41,211,8,220,226,199,100,119,216,207,69,128,18,48,128,209,213,22,222,93,12,41,71,178,236,238,214,106,169,173,128,231,+76,119,251,77,202,61,51,206,222,143,196,244,82,236,177,239,231,247,54,155,161,168,117,113,89,9,16,102,177,245,228,75,+14,92,125,223,140,161,114,52,61,243,47,100,212,69,104,106,86,66,209,22,65,166,228,16,230,48,84,213,92,231,137,84,+13,112,166,74,190,135,85,254,111,149,106,196,178,117,40,224,242,220,217,24,88,131,28,155,235,119,191,206,85,35,12,53,+131,47,78,196,228,204,225,123,200,123,197,155,80,139,190,232,134,227,57,237,88,135,48,234,211,159,190,141,63,123,43,21,+34,8,231,143,211,2,162,74,54,195,56,10,41,78,184,254,101,88,56,194,193,149,252,227,121,170,178,170,138,150,158,143,+73,37,97,195,21,91,0,125,254,101,85,27,30,25,199,233,137,232,199,223,132,38,142,175,185,141,61,232,189,53,63,27,+243,206,248,115,253,223,214,159,193,114,183,205,27,216,156,117,98,175,106,81,149,58,90,182,218,79,248,228,166,142,32,252,+233,85,168,36,115,38,64,180,31,87,63,245,219,228,50,55,30,9,252,39,222,240,216,65,115,52,157,206,22,135,130,243,+205,175,228,175,195,144,67,116,49,204,219,253,201,160,99,96,94,48,83,205,28,117,234,108,207,35,108,74,95,43,42,143,+196,225,64,208,57,20,107,123,252,64,130,220,0,187,168,194,234,129,81,93,7,113,250,11,171,54,124,137,83,68,215,30,+106,128,205,4,247,244,140,76,130,138,229,222,152,4,183,127,212,154,58,22,106,215,46,167,112,233,232,162,105,179,201,216,+8,94,195,96,145,88,219,182,39,130,177,119,224,197,122,24,138,78,104,64,2,36,60,30,2,221,57,146,165,35,5,219,+201,80,130,232,54,18,87,191,186,190,145,40,172,77,115,37,196,91,17,70,181,2,115,142,217,185,162,243,108,47,91,146,+156,138,226,131,80,242,243,93,107,180,112,229,222,123,99,233,53,139,73,224,81,7,251,236,211,18,19,175,196,51,134,68,+115,82,195,63,1,85,171,69,173,69,248,127,247,195,67,209,154,70,247,126,132,206,176,75,225,121,100,111,5,114,239,199,+0,110,106,132,134,94,18,71,79,22,48,232,48,16,164,240,221,135,47,139,13,232,33,29,141,170,133,86,180,76,1,230,+203,241,54,201,107,23,218,88,158,130,99,168,106,131,186,240,159,140,69,105,172,31,61,4,153,200,184,214,158,215,66,168,+122,66,92,140,176,60,232,170,118,52,185,182,2,227,57,139,205,99,188,59,180,144,11,245,135,14,22,217,63,10,123,248,+64,215,225,91,137,34,248,129,207,57,218,60,125,210,19,242,84,252,44,42,129,103,17,199,21,219,158,189,151,28,248,30,+206,92,230,201,70,224,117,174,175,193,126,96,70,32,222,188,182,203,29,67,198,71,122,249,108,155,232,166,122,9,182,190,+31,22,27,123,87,21,53,107,163,29,108,214,226,195,87,63,38,129,249,186,69,54,198,176,150,59,211,74,172,219,253,150,+44,211,253,115,174,196,155,196,71,202,139,102,55,0,196,147,252,195,191,97,80,222,206,52,74,167,133,123,147,63,132,240,+131,152,23,133,101,221,137,110,144,211,185,64,246,207,151,98,120,130,236,98,45,177,24,148,60,74,187,187,127,214,177,102,+216,71,117,79,68,203,75,188,214,209,170,229,221,14,36,7,151,110,239,242,144,206,79,44,21,252,56,158,103,204,177,80,+118,229,83,112,242,81,1,227,91,174,112,235,26,137,238,122,153,150,27,230,112,158,236,54,199,82,143,41,70,86,52,243,+1,225,128,58,94,57,101,192,173,65,107,162,182,59,87,185,97,122,115,169,153,159,143,201,61,234,56,205,138,94,65,59,+130,133,216,168,42,240,101,242,8,168,190,194,187,28,146,48,118,13,17,139,232,228,181,70,232,160,182,157,117,70,234,45,+180,243,82,70,61,110,103,170,143,90,39,102,240,210,172,60,243,42,21,64,47,68,48,179,222,120,56,175,149,128,14,170,+199,207,195,191,215,216,83,225,70,5,184,60,114,219,172,140,18,203,94,128,155,1,102,44,234,211,116,8,69,77,22,219,+232,232,108,15,164,36,107,210,64,119,65,8,179,51,185,46,149,118,224,23,3,89,193,180,43,249,37,232,177,129,196,185,+167,28,76,3,91,21,105,37,212,200,9,185,23,59,172,80,87,111,42,245,64,61,110,161,2,4,15,110,55,172,18,84,+192,197,164,59,86,159,145,11,139,84,101,27,72,182,74,121,245,206,63,122,108,84,95,151,167,204,122,110,79,111,207,126,+115,248,124,140,164,163,29,193,194,117,216,81,73,165,198,224,113,255,253,28,135,86,219,241,23,205,63,186,84,253,15,192,+79,213,135,114,50,222,32,68,112,120,163,235,214,69,20,89,185,120,84,116,63,163,171,231,152,131,46,71,2,185,97,88,+6,117,110,212,68,203,143,70,14,158,140,7,254,134,18,73,209,88,95,107,165,108,204,168,231,149,192,108,113,61,235,156,+128,21,220,14,180,78,239,129,109,199,50,71,248,245,252,132,189,0,18,9,18,7,98,29,172,34,149,83,52,134,157,180,+52,31,234,141,115,140,165,210,121,207,174,228,17,130,122,222,98,41,7,237,108,119,101,56,209,84,214,45,252,37,223,252,+245,240,250,23,53,37,247,149,237,122,70,28,166,48,6,226,100,133,46,189,62,70,234,152,2,33,217,80,180,142,242,238,+108,10,104,34,52,64,111,18,218,147,41,251,62,92,70,228,227,39,167,166,235,99,132,2,242,87,36,115,2,226,5,114,+77,253,48,118,153,169,64,23,115,153,248,38,201,157,17,73,200,180,175,171,56,51,231,138,86,150,37,130,223,148,151,2,+95,128,102,87,101,172,82,1,104,50,186,124,124,215,117,128,17,27,191,186,31,58,198,173,159,15,130,195,128,224,17,171,+113,130,154,94,70,204,96,32,99,202,31,87,34,46,204,80,116,177,76,212,176,15,58,98,146,119,175,146,134,140,87,126,+188,159,237,189,74,88,249,195,57,116,51,169,169,224,162,195,33,64,172,100,178,19,214,196,97,187,14,0,169,156,12,72,+95,4,92,251,112,214,136,89,160,189,4,248,43,78,147,133,225,122,127,48,76,216,7,71,184,68,24,140,111,232,221,5,+143,31,119,217,11,112,102,24,107,109,116,9,183,185,23,10,124,149,0,93,233,100,246,149,73,169,132,216,90,82,199,226,+147,211,3,0,175,167,162,144,142,8,75,102,252,197,153,194,80,144,3,70,233,27,201,70,59,244,140,83,65,212,220,106,+29,185,111,159,208,167,117,176,233,94,28,203,113,75,116,12,111,39,254,42,14,37,109,222,221,46,105,66,52,20,8,170,+89,175,223,57,63,156,131,136,68,143,74,56,33,17,225,142,158,2,77,41,102,105,190,84,226,44,111,97,169,70,31,54,+249,198,58,146,125,62,68,72,203,87,18,195,49,142,13,59,188,81,43,7,204,90,227,5,144,162,194,167,196,189,21,11,+179,2,49,17,34,158,35,179,24,220,123,102,146,197,55,217,68,30,75,41,172,229,10,173,92,199,102,57,59,197,9,1,+251,92,191,139,168,196,119,6,254,41,216,45,60,153,4,146,155,125,52,191,176,213,77,228,161,172,44,62,37,28,90,93,+112,107,229,122,165,75,24,209,95,54,221,246,128,205,15,218,63,49,199,199,139,114,160,77,170,230,27,106,124,35,131,125,+78,154,188,136,21,54,178,247,43,103,69,167,182,93,79,4,183,1,139,148,58,71,12,71,219,129,103,41,252,144,251,192,+148,218,123,51,22,46,9,66,86,159,51,50,70,77,215,198,211,147,12,145,31,153,58,125,202,186,240,244,37,223,11,140,+191,96,149,41,35,198,10,140,249,69,190,80,49,66,65,20,222,19,154,144,11,212,212,58,156,90,231,129,21,107,61,57,+202,86,3,173,87,69,1,207,21,189,45,54,220,189,29,30,31,80,110,130,92,247,191,245,110,78,200,80,77,143,219,49,+211,22,155,127,54,23,252,34,62,237,44,40,56,116,239,252,68,151,14,221,2,112,70,68,55,223,23,58,21,108,113,97,+66,120,186,154,79,134,169,17,207,42,175,40,233,117,100,122,116,95,210,152,121,77,89,212,88,177,107,70,74,86,240,95,+226,139,228,76,238,144,32,63,205,38,239,222,144,65,209,122,191,138,42,169,238,157,167,200,201,173,54,24,53,115,148,203,+135,96,67,139,71,131,1,7,249,37,74,112,68,144,191,155,151,28,70,100,196,193,209,123,178,140,123,111,51,196,171,117,+103,149,10,77,23,196,57,238,114,157,189,90,4,185,40,125,163,98,11,43,34,117,116,82,174,234,37,52,145,155,92,148,+100,178,63,248,192,178,162,25,175,228,50,132,208,24,184,43,149,255,43,177,217,214,234,192,68,122,69,228,63,33,90,184,+98,199,61,107,213,44,41,202,39,207,46,147,4,234,87,56,146,149,65,245,204,183,164,102,241,219,114,136,5,128,151,165,+244,215,117,49,33,73,221,228,144,76,238,226,191,47,119,74,16,131,124,132,2,150,192,222,137,98,119,3,177,253,208,121,+28,233,30,177,232,145,109,130,250,173,93,7,205,254,235,189,10,132,103,40,231,197,198,37,29,221,19,59,249,150,24,122,+196,101,129,68,11,250,246,239,24,188,89,197,65,34,45,201,198,183,115,221,230,37,160,203,98,187,250,119,2,208,168,34,+53,103,99,215,26,22,112,100,89,138,142,73,152,164,189,7,7,165,6,140,11,155,125,101,180,122,90,179,89,237,1,211,+135,121,228,32,191,162,139,149,53,108,209,79,114,16,222,195,161,137,87,214,177,35,101,24,4,231,172,61,213,122,160,152,+252,234,144,220,49,216,14,204,224,156,215,37,181,133,77,95,207,192,207,134,194,35,237,236,143,38,20,50,223,99,40,213,+230,146,223,184,62,55,165,147,219,216,146,156,111,60,52,68,178,180,103,51,220,235,205,240,103,143,246,89,11,55,76,157,+19,157,144,121,103,53,10,150,236,198,86,237,53,220,187,34,249,119,50,155,130,179,167,48,111,197,134,231,218,224,161,177,+237,138,200,69,7,20,242,85,10,87,57,38,23,185,112,38,216,122,244,17,241,35,139,198,15,181,34,247,172,61,20,196,+50,223,236,141,121,244,2,117,49,24,135,170,3,220,5,248,148,200,195,67,217,2,153,155,103,110,254,247,151,133,29,148,+19,122,167,45,122,133,229,12,20,230,202,194,61,190,251,209,221,216,54,36,144,180,72,138,4,186,180,67,43,250,217,244,+157,204,217,238,85,145,79,78,250,153,182,23,86,66,155,176,118,215,41,223,225,223,158,160,242,17,150,152,125,139,190,15,+156,76,128,179,9,19,171,105,176,225,37,170,179,63,169,69,198,63,104,150,12,161,198,77,14,131,102,188,42,47,46,114,+82,113,249,94,151,239,70,190,17,217,42,227,8,225,224,225,143,47,198,196,39,77,57,45,89,15,197,181,107,151,180,216,+155,75,208,170,32,173,138,229,111,6,47,187,53,69,254,80,83,183,33,154,78,124,163,169,174,121,171,240,231,230,79,90,+52,63,82,176,254,223,40,199,215,148,163,68,7,238,103,84,116,87,146,35,130,230,22,51,40,228,156,111,173,67,61,29,+71,93,47,223,111,216,14,250,39,197,223,64,6,78,235,104,61,246,245,228,29,39,104,249,203,25,178,123,98,164,228,18,+121,47,45,135,215,151,160,225,49,128,77,230,224,189,100,237,13,62,213,76,188,129,77,27,202,134,46,164,59,225,179,234,+134,194,214,144,206,128,211,85,133,233,251,66,197,70,210,135,175,84,70,160,234,199,55,66,240,224,149,80,148,75,187,140,+62,145,40,32,145,209,87,228,187,132,116,252,20,249,2,209,156,83,161,188,172,19,132,92,155,115,152,114,138,32,74,167,+129,150,83,148,151,176,221,177,58,208,43,178,136,61,181,240,66,227,23,74,255,251,47,230,42,47,251,227,46,150,227,223,+33,52,143,161,193,220,198,251,192,179,220,218,131,91,20,166,245,45,34,230,81,26,243,137,196,144,141,70,129,39,211,90,+148,10,95,68,197,100,19,48,126,94,80,178,120,10,237,144,149,91,238,249,137,196,202,168,194,129,89,188,167,31,53,58,+206,231,237,140,21,226,123,237,106,45,51,12,100,156,215,154,48,166,216,98,43,242,159,102,39,167,30,210,175,251,142,87,+230,165,69,26,173,140,33,98,227,154,69,10,56,185,20,42,29,33,81,91,64,83,252,50,46,88,174,145,8,40,137,204,+195,224,31,230,220,133,172,70,214,245,200,226,4,70,117,40,169,106,179,147,237,23,246,14,133,22,18,226,226,38,24,12,+242,169,253,3,160,15,144,60,198,43,113,87,68,212,109,103,52,11,191,110,168,184,97,107,5,1,173,232,216,186,107,10,+218,226,244,115,91,161,146,35,229,37,235,44,44,52,167,200,155,193,194,228,128,38,97,37,55,37,148,204,202,195,129,111,+155,190,3,20,59,17,208,235,243,191,74,227,251,248,45,171,55,63,241,98,252,93,94,241,111,57,173,141,76,186,70,28,+221,140,80,29,151,45,83,234,204,118,164,55,8,47,243,77,218,115,69,128,46,182,80,201,154,38,116,159,82,32,237,168,+163,248,20,77,24,43,80,97,185,148,128,144,136,189,10,91,79,240,34,19,241,186,230,71,40,219,65,10,92,214,188,242,+211,215,252,162,242,233,107,20,189,239,195,50,214,245,100,92,51,47,31,129,217,134,49,235,160,3,65,227,240,30,37,207,+200,142,97,97,113,136,190,157,129,158,176,70,139,181,62,209,233,161,175,84,128,159,253,50,206,183,112,68,195,72,128,101,+78,92,120,146,177,65,123,43,51,130,232,34,232,10,72,78,119,127,238,112,78,248,255,21,9,70,46,95,131,137,248,20,+1,88,140,142,166,254,183,107,191,24,222,203,84,174,27,55,114,83,251,244,216,225,71,0,73,143,79,5,43,86,130,155,+48,170,142,234,148,98,16,81,159,110,92,72,136,229,12,148,77,63,190,15,94,11,138,154,246,73,162,129,252,188,202,134,+244,224,187,244,191,208,147,192,167,89,127,44,41,13,199,135,249,34,221,213,223,208,45,71,155,58,160,128,152,204,174,191,+162,50,45,214,174,68,229,28,184,118,29,66,192,127,254,150,93,223,22,214,250,0,79,203,32,134,84,52,38,147,10,12,+249,221,221,51,200,176,153,181,8,185,86,61,193,156,98,77,154,56,122,92,211,192,19,201,116,60,183,214,162,56,62,220,+64,97,243,248,36,215,127,6,134,57,76,152,195,192,142,144,91,51,135,191,147,113,181,77,53,6,106,3,151,88,130,76,+253,174,93,155,12,125,116,149,14,6,144,198,250,65,99,65,179,202,103,78,90,156,96,3,32,248,105,120,20,147,52,110,+35,129,205,7,20,150,57,173,90,32,223,63,246,173,149,40,19,244,207,181,150,143,102,133,223,210,202,35,67,149,129,230,+123,162,70,55,56,252,219,43,98,154,18,115,2,141,207,242,63,157,247,61,206,40,79,49,191,222,3,61,111,174,222,1,+72,112,18,30,145,138,97,166,167,1,171,157,197,6,195,225,207,162,230,153,87,16,128,115,14,191,23,92,184,199,20,105,+85,229,236,67,172,12,99,153,243,71,51,219,246,94,212,205,12,97,191,193,59,4,68,64,105,101,148,249,240,11,34,83,+246,73,122,156,86,24,127,163,6,225,122,173,18,6,85,172,169,173,217,167,240,76,197,71,101,145,65,179,91,128,100,69,+203,143,134,17,2,120,127,210,235,190,238,127,234,15,149,70,26,65,19,115,96,184,94,112,106,154,138,45,38,62,141,107,+223,36,175,250,128,191,204,167,38,215,238,0,69,73,2,198,235,173,194,132,189,95,136,93,162,219,228,6,85,218,198,252,+57,168,92,182,113,251,91,21,52,251,9,205,243,211,53,172,123,251,177,27,126,179,129,242,30,186,31,186,136,46,117,147,+69,203,202,250,8,240,205,40,185,163,201,209,173,180,246,224,187,82,7,134,202,232,9,133,110,165,222,197,22,205,198,92,+163,141,39,209,230,254,77,80,251,187,84,8,78,73,38,117,9,60,18,53,82,88,105,25,219,143,127,229,181,148,90,148,+201,80,89,139,79,234,146,242,135,119,254,22,8,147,38,50,143,228,227,210,159,54,111,209,161,54,105,199,156,45,207,210,+253,41,68,250,132,135,17,83,69,28,176,92,108,92,76,221,110,181,137,211,189,4,173,79,150,33,13,226,6,10,43,251,+33,179,13,99,148,108,176,47,139,132,22,25,80,17,103,101,169,241,199,72,157,214,32,182,153,1,8,1,224,97,24,105,+86,5,240,51,64,28,248,136,56,7,122,17,251,223,84,241,208,98,25,222,16,146,21,17,169,1,216,191,32,228,128,2,+106,103,109,115,105,225,61,109,185,130,38,126,191,195,52,213,150,231,201,38,112,134,205,7,206,248,225,57,222,159,158,161,+193,2,192,161,222,224,171,194,179,183,141,130,57,70,29,131,252,77,178,12,130,8,125,150,233,254,88,16,21,212,131,101,+223,78,123,233,36,144,171,71,227,43,161,104,86,155,85,180,43,182,168,139,175,174,88,48,101,128,230,221,37,104,29,93,+3,200,186,184,98,167,174,213,208,51,133,196,2,242,73,191,13,253,240,28,243,145,16,148,154,33,218,92,230,13,108,192,+119,18,213,121,136,109,52,235,118,139,3,214,108,82,47,187,250,17,44,141,160,25,88,38,61,156,153,167,164,12,42,143,+3,118,48,58,124,253,126,155,9,89,132,92,110,91,34,101,48,29,171,171,184,20,172,101,103,226,129,171,107,143,116,132,+145,96,149,146,120,100,128,89,73,181,116,125,93,46,78,222,79,234,49,201,23,130,95,126,143,24,40,197,171,41,33,8,+107,163,244,207,160,204,124,231,70,7,63,24,142,174,149,120,203,217,2,114,13,255,233,134,180,201,27,188,59,207,225,30,+43,1,4,31,108,20,101,72,8,251,104,33,63,38,90,62,169,188,148,232,238,1,193,153,230,74,57,23,221,231,255,102,+140,40,119,228,141,78,193,83,122,244,240,176,5,99,29,35,82,55,34,232,12,196,130,125,82,72,74,26,76,215,250,214,+132,42,85,215,162,6,99,88,94,131,194,184,211,217,70,29,25,79,133,146,218,131,148,92,52,32,9,116,103,16,89,6,+33,172,113,72,5,23,205,99,180,105,29,114,255,244,175,159,11,65,216,216,195,182,6,143,141,79,240,225,85,80,238,44,+225,245,171,0,166,208,46,156,167,87,206,73,52,25,254,16,92,32,109,80,216,182,93,218,175,167,165,143,95,227,250,210,+85,164,84,183,151,121,31,155,250,27,30,40,107,229,21,93,63,213,136,116,34,168,202,204,209,45,194,100,251,185,199,49,+18,225,161,225,23,180,5,104,244,38,65,50,71,99,158,155,37,38,20,241,196,190,203,168,145,84,33,84,114,40,53,119,+148,252,57,181,72,205,53,61,147,59,119,225,250,155,39,183,27,188,40,82,45,209,113,246,24,14,236,1,246,213,215,219,+184,227,130,220,145,17,106,214,249,250,124,246,80,109,164,20,211,107,3,34,187,224,230,98,6,143,161,42,71,42,85,198,+56,79,191,169,196,62,140,83,194,232,45,129,108,248,2,152,241,116,148,244,237,252,205,129,60,111,67,205,57,87,208,44,+23,163,231,198,185,217,240,120,149,92,14,102,48,68,11,113,223,233,73,127,58,164,86,65,235,142,106,44,1,70,238,35,+65,220,225,27,119,55,198,52,124,119,200,143,233,123,18,214,84,175,119,163,105,133,240,162,94,112,225,239,53,49,243,72,+72,218,139,103,191,175,181,186,251,47,1,3,209,66,22,253,60,125,192,206,146,177,164,180,114,132,81,219,46,100,140,115,+57,23,24,134,160,93,193,14,72,5,104,24,155,100,7,147,47,120,159,36,243,139,217,129,67,40,156,92,70,101,81,166,+47,186,70,168,118,224,49,55,137,166,49,79,1,244,93,86,60,135,84,214,46,178,152,0,202,184,96,72,230,105,29,18,+142,197,223,119,119,100,18,203,133,16,217,157,110,91,109,55,166,224,200,83,186,74,1,250,171,220,206,24,31,170,182,42,+3,138,219,0,74,135,2,22,45,179,52,200,238,69,1,78,75,210,212,194,47,234,60,102,91,248,53,214,59,126,108,172,+37,66,85,79,46,247,228,65,76,147,80,67,227,145,54,185,16,237,194,19,194,115,151,178,13,146,225,50,40,158,127,7,+250,157,244,217,41,180,37,249,230,147,117,226,35,19,129,190,207,135,243,237,40,54,160,96,37,183,21,132,116,87,130,54,+231,142,199,100,136,243,17,207,53,245,31,214,227,249,84,253,188,78,218,49,158,130,55,172,114,106,185,155,9,127,15,43,+27,204,38,151,167,96,64,191,147,255,64,7,198,174,96,170,82,56,7,82,244,52,220,14,70,42,61,67,182,255,92,254,+117,237,211,121,246,162,62,34,202,131,4,70,174,89,151,134,176,184,214,214,158,202,251,127,184,103,111,16,101,119,224,5,+66,126,94,165,49,252,49,121,28,158,166,120,214,224,123,226,152,210,253,170,80,197,216,218,207,34,66,120,220,39,87,152,+21,15,50,85,156,170,79,48,19,214,122,64,236,95,155,112,71,5,245,215,186,18,72,65,84,37,33,174,155,153,250,100,+54,252,132,172,118,18,225,243,115,220,185,27,43,112,228,41,225,15,24,166,215,64,68,103,227,207,179,229,239,40,10,9,+40,80,35,94,70,160,23,140,183,87,130,217,194,213,76,152,50,191,155,94,74,116,9,34,93,48,85,140,80,26,147,70,+187,152,205,6,225,114,219,117,210,235,180,201,79,66,255,222,216,211,48,179,40,11,76,216,249,211,162,100,135,193,87,43,+173,101,244,129,172,131,116,129,219,106,60,232,71,103,170,87,225,200,58,80,99,243,238,40,108,218,191,144,244,48,163,13,+8,165,109,173,49,21,237,189,190,93,238,207,61,138,173,207,67,116,176,14,230,119,187,180,17,11,223,190,116,236,63,169,+218,206,84,8,92,162,233,177,11,12,199,43,245,145,165,158,136,151,45,255,196,16,120,119,145,249,58,123,187,84,228,213,+217,85,191,99,101,119,117,68,135,131,128,29,44,93,6,150,66,139,171,146,100,152,68,221,233,241,152,110,240,120,96,21,+160,35,255,129,36,43,38,196,229,254,246,86,253,40,198,7,104,241,106,136,135,163,186,244,78,14,212,173,69,59,162,150,+46,15,97,167,249,170,196,118,185,163,81,182,250,70,123,179,215,148,167,44,61,83,40,209,98,25,208,129,86,132,251,129,+66,78,239,9,60,151,14,46,136,234,111,193,191,37,178,197,89,86,122,6,59,46,239,152,166,156,140,180,56,175,127,73,+20,25,183,40,16,24,193,103,79,177,249,20,164,194,130,242,103,176,229,13,32,75,147,207,108,251,227,134,130,163,116,14,+29,105,120,60,33,177,203,179,187,156,185,211,83,154,170,89,190,120,253,215,254,43,199,202,219,222,165,210,102,124,193,132,+54,153,87,17,108,177,148,148,191,235,135,111,65,0,138,199,78,244,52,231,220,81,132,81,77,138,7,174,163,53,233,93,+188,159,25,71,8,228,49,160,198,243,129,169,211,104,237,24,206,164,58,248,106,191,162,224,60,196,185,120,21,160,167,21,+213,130,199,20,224,6,255,112,13,79,210,195,225,3,13,76,150,3,123,76,249,197,83,142,72,51,164,21,66,114,251,196,+196,79,89,240,114,23,81,0,135,29,40,109,107,29,196,137,101,232,104,168,18,188,136,27,55,30,109,176,31,156,247,219,+151,84,144,170,164,233,101,135,217,16,76,137,209,102,119,144,158,231,164,173,255,239,45,114,36,114,3,236,32,159,108,186,+117,25,10,252,18,116,140,141,69,10,36,69,64,103,175,132,146,250,230,202,113,214,99,5,127,179,106,57,0,239,6,213,+64,248,218,103,246,195,43,9,23,94,204,59,63,223,160,69,86,166,142,148,76,75,70,43,155,182,174,84,253,152,61,131,+189,67,138,145,68,183,153,97,132,151,243,9,249,247,251,203,58,243,181,213,5,158,16,8,77,222,214,122,34,44,25,206,+95,170,167,203,251,146,247,42,99,213,215,168,129,196,174,35,254,45,20,157,155,143,250,126,121,35,151,155,157,151,180,97,+33,24,192,142,51,43,48,82,45,46,153,186,13,59,118,101,145,221,197,161,187,145,82,181,39,55,42,73,197,181,68,110,+5,213,93,121,23,164,157,60,38,84,231,140,185,176,163,234,15,213,191,152,102,168,35,172,6,224,38,9,60,179,108,1,+46,253,215,115,60,198,178,225,19,101,250,97,184,189,68,92,118,207,87,155,217,79,76,12,86,18,133,1,63,109,174,124,+87,145,35,21,223,46,174,130,153,171,63,17,29,69,113,166,125,48,78,3,229,15,131,35,196,238,195,163,64,124,72,90,+30,165,181,93,244,231,53,253,81,138,178,121,131,223,28,69,78,253,92,255,76,55,185,74,2,175,98,233,121,102,63,228,+169,159,208,251,175,22,61,115,229,177,149,178,232,177,65,169,229,144,152,55,129,237,110,9,136,198,232,236,189,216,133,181,+62,32,219,104,39,36,110,126,41,158,68,237,24,83,221,206,227,190,129,216,53,213,46,199,149,193,103,123,83,123,67,97,+197,125,27,69,193,86,49,191,185,89,175,177,12,127,219,183,98,51,33,245,144,110,160,53,175,68,135,93,174,169,142,110,+14,159,79,102,63,234,28,70,40,96,112,243,36,115,251,38,111,55,182,107,68,10,112,173,115,7,14,239,210,213,109,65,+47,86,254,187,60,119,48,216,172,135,87,169,141,240,135,140,28,209,251,236,80,59,188,195,254,70,115,206,108,53,121,20,+61,240,51,18,0,239,164,126,163,12,141,110,237,191,255,252,152,130,242,40,221,99,140,46,53,198,6,204,1,98,214,108,+151,214,115,20,115,38,177,154,255,195,45,76,81,170,38,236,45,183,167,69,126,55,107,52,163,204,111,116,79,63,127,75,+120,251,66,190,144,22,204,133,11,106,54,78,247,194,95,89,118,32,32,10,37,138,29,208,197,123,218,82,244,55,182,246,+21,119,131,94,162,91,78,84,54,178,252,142,4,250,196,136,67,49,60,94,113,30,97,212,67,82,164,34,202,166,136,215,+8,60,214,47,141,152,250,39,154,30,199,73,204,102,80,111,242,33,97,90,46,152,114,59,150,23,52,245,213,92,146,132,+88,19,2,66,35,201,145,186,160,85,193,94,57,68,211,98,90,14,19,245,198,142,147,127,18,241,41,166,71,121,121,61,+96,39,146,148,166,87,195,118,150,69,105,73,126,71,123,207,54,115,204,153,225,4,234,237,76,42,105,126,223,21,233,188,+127,165,40,116,192,97,77,207,185,153,159,67,179,112,235,230,162,192,100,60,221,12,206,178,50,11,223,210,105,176,55,248,+187,253,93,117,15,214,0,199,205,155,184,159,249,22,253,151,210,128,8,159,126,5,79,186,19,181,223,83,184,96,146,61,+186,161,178,75,148,236,94,36,11,179,17,109,181,61,237,132,246,188,107,70,111,91,109,92,120,254,37,89,93,197,174,231,+10,80,197,189,206,71,84,220,192,93,177,91,236,39,14,46,138,233,148,249,204,96,36,35,148,201,230,206,70,140,239,204,+77,170,253,175,242,48,165,58,17,0,30,241,47,199,72,44,188,146,11,17,101,197,203,148,229,192,205,217,178,69,235,237,+234,65,232,214,253,66,114,134,67,232,160,244,108,5,33,159,186,41,123,16,46,72,241,173,138,86,222,94,24,55,198,140,+174,187,217,39,191,229,132,103,245,159,174,121,140,227,43,158,81,27,23,196,40,220,75,9,243,205,101,255,220,106,128,74,+43,203,105,40,126,222,220,196,36,208,50,18,109,251,135,88,79,59,58,182,172,35,161,148,62,103,251,88,181,53,130,245,+202,131,95,61,187,222,222,202,241,156,197,77,55,210,96,255,98,224,111,0,58,172,204,22,10,24,198,230,240,102,80,128,+38,222,94,50,41,159,65,208,185,32,239,244,169,100,10,79,191,187,54,153,161,159,175,255,124,61,59,70,176,212,133,152,+129,219,219,208,245,69,159,208,106,85,119,103,57,246,87,205,249,99,54,28,59,103,252,90,160,72,71,92,22,196,25,240,+35,251,89,151,82,41,247,93,247,97,124,35,166,86,96,71,158,28,151,99,110,122,214,93,79,231,10,82,3,93,179,231,+57,240,224,161,222,75,227,98,45,59,194,167,72,227,129,227,29,169,229,43,145,232,60,9,68,13,219,60,11,67,208,145,+0,230,83,183,186,238,226,163,152,222,66,36,233,56,18,135,83,79,129,49,184,212,209,46,217,99,126,0,245,251,88,8,+149,172,144,23,192,75,60,109,34,202,67,168,86,147,220,208,226,82,146,57,89,159,237,153,227,196,105,56,33,40,96,171,+161,97,228,31,45,181,144,75,25,76,159,83,186,211,91,153,71,177,179,228,187,223,164,207,16,127,181,78,26,101,226,171,+163,73,198,208,85,219,200,21,96,132,150,141,234,156,2,114,98,190,156,235,25,202,70,106,33,135,171,191,13,70,219,34,+118,47,167,171,176,77,187,223,161,2,29,52,8,207,229,249,9,66,188,217,255,48,77,253,193,166,198,17,156,192,123,196,+164,222,8,52,246,37,21,99,195,218,233,207,229,183,164,99,71,203,220,233,5,75,35,75,68,21,49,94,52,212,182,186,+175,2,179,233,58,30,98,246,38,39,96,78,0,164,201,212,122,14,224,252,253,100,145,111,217,133,93,114,185,124,86,116,+1,193,222,148,105,232,239,129,217,238,196,140,100,14,215,212,36,74,64,156,178,237,159,192,60,126,181,2,37,190,205,89,+182,233,65,25,164,29,131,253,253,162,203,224,136,206,149,238,214,79,52,124,184,149,173,3,181,93,93,54,17,151,41,53,+133,98,19,147,232,50,231,80,39,148,12,246,188,78,131,165,163,107,141,153,115,203,22,113,5,236,99,7,91,125,250,56,+199,57,98,238,206,116,208,80,225,68,153,17,57,154,57,194,59,161,80,95,42,164,62,14,210,240,84,113,159,95,114,131,+146,207,238,233,219,7,35,205,255,65,241,88,214,183,78,95,80,83,111,210,148,100,51,84,167,247,17,248,164,178,152,60,+226,89,58,86,23,26,140,28,39,208,242,49,155,32,1,35,63,251,121,230,195,14,181,105,220,36,107,251,244,186,110,100,+27,226,97,55,118,222,106,230,152,154,4,127,151,30,217,42,81,26,66,247,14,35,151,26,238,246,3,166,195,200,141,88,+187,107,212,8,207,192,36,115,189,177,10,252,237,21,215,21,99,144,30,84,72,209,56,54,243,98,229,169,10,2,195,242,+97,0,186,92,79,8,40,4,38,140,245,97,107,169,198,61,59,53,218,111,221,137,53,189,186,64,36,224,141,94,150,210,+63,26,133,196,210,0,76,155,140,115,172,131,95,8,142,248,85,88,14,235,165,127,91,12,167,85,114,237,43,242,93,4,+117,10,5,161,144,109,100,179,139,158,148,12,169,66,186,246,9,117,220,103,106,105,11,57,200,182,27,89,179,219,11,242,+231,60,136,140,148,117,172,101,167,147,163,173,249,73,46,243,17,184,163,48,131,224,209,205,169,94,64,216,91,188,65,172,+245,176,245,107,234,248,74,52,135,208,198,10,189,3,60,73,210,245,96,191,103,239,250,204,110,0,162,89,135,172,115,211,+91,108,57,218,4,6,211,45,102,167,107,17,39,157,37,220,83,58,204,59,181,190,238,222,124,219,39,6,153,65,151,247,+199,252,12,240,35,251,12,146,169,215,26,174,212,222,66,80,181,166,160,134,197,81,92,234,149,22,70,24,156,7,163,26,+142,1,214,26,233,240,217,194,115,181,240,219,238,213,38,12,243,174,116,63,201,91,227,216,181,246,153,234,110,239,104,241,+207,91,197,151,16,201,171,115,195,165,34,201,47,233,57,71,131,43,215,207,101,146,49,144,31,244,15,197,197,71,102,232,+60,84,86,221,82,81,153,126,243,197,189,41,232,23,203,234,121,103,152,55,241,124,228,169,146,93,87,201,135,222,240,70,+165,121,116,155,192,186,183,121,213,160,111,192,35,129,152,76,173,192,6,106,70,190,36,8,13,194,250,71,149,56,191,173,+64,194,41,12,66,174,65,116,199,160,92,125,85,124,102,24,84,42,121,238,198,36,77,67,101,218,227,135,225,38,36,120,+97,255,33,240,167,175,204,28,183,120,22,76,36,46,89,210,133,228,51,250,125,59,190,203,254,174,162,203,183,43,174,161,+40,174,38,110,218,90,182,166,12,103,157,158,172,191,201,76,240,91,249,157,25,164,215,247,70,44,45,85,114,125,239,36,+239,77,38,8,215,54,83,31,86,176,10,23,168,133,143,193,56,44,102,106,200,120,159,175,76,233,65,225,83,144,117,213,+125,142,194,141,130,30,189,173,59,185,142,152,248,21,31,78,217,231,10,31,106,214,210,102,143,205,40,242,53,19,197,185,+108,181,59,34,99,65,106,36,140,255,147,228,208,239,154,34,11,50,67,124,36,152,153,10,187,229,64,200,50,152,86,37,+73,27,223,41,232,116,39,161,62,27,255,184,209,116,54,164,42,179,217,20,129,229,90,229,182,248,215,171,175,157,21,146,+240,163,19,64,199,255,253,148,165,187,218,131,43,142,65,5,18,197,193,209,239,202,246,61,141,164,85,152,151,158,44,26,+162,196,203,117,215,160,226,251,37,16,176,236,101,216,113,194,156,83,16,3,118,162,104,103,186,165,56,28,134,49,193,129,+104,105,118,87,62,189,7,73,252,21,36,232,200,142,26,221,224,48,170,79,148,188,122,121,190,37,166,106,38,86,30,8,+141,196,187,39,26,248,219,181,70,181,140,179,223,189,142,59,48,109,35,180,87,60,8,11,118,144,237,53,113,123,90,237,+167,156,100,11,55,114,156,158,40,226,62,241,203,176,170,52,93,117,68,167,188,68,78,172,43,67,101,165,107,158,215,86,+51,86,22,25,83,71,10,14,194,30,144,100,221,105,77,7,87,178,36,10,21,178,32,151,42,225,244,165,221,243,207,22,+206,243,85,91,169,53,7,43,96,249,92,149,83,1,111,76,119,42,19,78,108,49,51,253,94,41,73,134,58,85,241,64,+53,98,210,166,217,28,81,248,184,136,187,182,153,62,41,243,61,198,29,235,221,9,214,120,73,78,98,79,194,131,72,166,+231,38,130,242,194,128,29,44,233,84,78,81,226,210,155,177,160,185,130,91,184,32,170,85,43,74,142,74,170,176,175,13,+11,117,238,1,33,154,70,205,173,165,6,245,41,148,239,97,210,77,31,18,81,14,141,188,70,246,251,244,45,85,229,206,+44,142,106,255,181,190,31,93,61,237,89,95,2,62,67,235,212,72,212,38,253,116,215,51,146,220,60,82,194,18,205,243,+41,98,204,53,128,17,81,43,157,42,236,5,29,102,152,237,98,120,140,220,154,15,5,53,146,152,92,171,77,120,191,252,+126,72,49,195,228,214,207,188,56,229,21,33,142,240,48,24,45,220,97,76,3,226,154,105,152,229,8,47,165,228,2,91,+226,101,237,232,188,178,239,82,2,25,221,94,123,219,209,130,188,147,199,79,163,73,13,158,25,172,188,208,245,143,206,97,+223,191,47,143,39,92,101,104,136,107,228,152,251,60,70,183,222,127,34,149,170,171,120,99,232,14,101,157,123,194,117,20,+190,233,53,184,80,244,67,115,200,243,42,240,220,208,132,184,74,8,227,76,93,105,74,110,7,2,122,210,92,250,28,153,+29,131,103,241,199,189,22,189,53,187,238,207,3,251,184,24,209,214,117,24,182,170,166,227,55,105,229,121,255,168,18,58,+2,104,16,191,245,18,79,49,84,156,89,22,225,162,230,248,70,15,92,193,219,117,183,98,84,187,130,176,255,214,146,27,+2,51,155,10,86,144,164,54,150,181,134,59,151,163,39,50,79,32,226,226,203,227,97,195,208,145,97,193,80,187,69,20,+6,194,152,242,210,76,119,90,99,65,222,114,163,234,203,130,1,0,255,24,215,122,109,198,189,218,237,31,104,209,65,144,+178,175,115,36,42,107,223,126,52,62,248,198,23,180,175,138,82,122,52,123,78,250,200,192,25,64,80,193,24,80,2,253,+74,75,35,210,123,43,225,89,90,249,42,177,127,184,157,39,103,116,213,28,248,147,40,69,138,175,40,135,174,246,150,118,+186,55,147,41,178,239,222,76,78,158,240,96,73,28,117,227,78,48,15,44,21,241,166,220,32,59,213,200,238,193,60,38,+15,118,72,155,16,200,19,90,49,187,145,173,237,31,121,25,1,46,165,1,129,253,2,123,18,89,200,48,153,244,249,246,+104,194,225,239,233,170,202,120,243,171,1,157,193,217,18,174,48,200,169,7,156,213,189,238,217,191,221,91,130,2,62,181,+68,189,134,189,241,80,71,78,156,142,149,237,97,0,114,77,136,248,86,17,189,155,228,93,0,138,167,63,194,91,39,104,+157,65,165,112,189,201,189,51,109,217,7,207,3,247,15,245,23,89,220,135,250,246,124,6,157,161,195,66,146,112,220,4,+90,0,16,89,40,234,196,127,255,21,94,10,117,10,93,74,181,192,240,183,194,68,139,14,98,136,113,51,60,242,168,107,+70,91,31,196,117,127,156,135,49,92,121,81,191,207,242,22,183,151,209,156,244,110,197,183,84,156,65,39,8,21,165,72,+228,235,118,117,7,120,7,112,215,237,173,109,148,202,166,35,231,17,64,205,109,182,184,56,103,143,120,212,99,76,201,145,+157,209,189,1,44,219,241,137,227,141,36,239,195,118,224,41,151,25,63,6,212,188,216,90,189,65,53,117,31,11,170,127,+41,97,7,71,83,254,73,232,137,188,164,200,50,40,239,126,28,165,71,240,253,91,241,228,150,203,87,103,234,151,216,244,+198,191,43,207,16,105,159,195,145,58,251,164,128,38,103,204,169,143,67,231,28,29,90,213,179,75,65,20,185,93,168,115,+185,42,174,142,80,133,141,129,120,79,73,138,168,176,23,67,40,155,126,157,248,129,87,54,124,255,80,156,79,94,110,81,+34,192,228,194,200,187,102,172,18,58,23,232,208,87,81,62,229,199,168,151,139,82,139,230,206,140,22,146,166,69,13,193,+167,38,104,146,185,72,202,72,190,167,25,70,152,167,173,111,104,253,237,134,84,106,240,48,47,110,206,51,122,182,166,99,+51,135,10,163,65,85,155,60,49,161,108,233,53,176,19,127,44,52,210,205,78,171,128,231,185,14,184,73,24,6,3,102,+167,234,62,16,93,133,234,132,212,2,45,204,2,72,70,252,102,0,195,190,69,173,163,18,254,65,21,218,177,42,171,51,+121,203,43,36,57,254,6,228,19,182,62,174,76,186,41,91,152,204,194,133,243,154,69,42,174,197,255,26,23,34,83,26,+113,166,26,31,51,226,52,69,106,11,218,153,93,201,150,54,249,28,249,186,34,226,6,84,203,192,110,118,19,35,209,163,+177,226,142,223,125,175,23,88,125,215,44,9,31,70,185,195,158,37,152,133,22,167,17,18,172,168,201,49,175,47,223,242,+162,133,26,242,94,87,54,5,175,66,228,237,175,149,51,86,208,222,95,46,134,216,46,19,72,25,244,5,102,156,139,153,+228,239,254,44,4,87,73,138,160,203,219,172,56,97,244,33,4,135,98,9,225,41,30,215,169,101,198,161,107,46,206,205,+13,180,195,110,94,241,125,45,243,97,14,237,80,31,6,230,101,119,25,27,6,33,144,199,159,119,171,232,55,34,20,18,+170,188,150,206,40,104,104,104,72,194,92,189,171,168,124,69,151,195,13,113,106,185,36,162,32,233,35,106,252,175,66,62,+253,164,197,226,57,194,110,14,169,222,170,176,200,223,155,189,173,68,97,215,224,3,143,217,188,133,141,168,187,182,4,64,+249,246,174,233,101,194,179,30,41,8,216,182,184,18,203,75,125,52,122,25,206,164,58,206,24,160,2,0,53,224,102,248,+85,127,8,153,221,212,189,58,101,20,244,82,40,51,60,226,34,148,241,101,91,23,213,53,165,212,242,175,183,9,215,45,+113,195,150,253,115,57,208,162,191,244,218,221,65,3,19,159,164,123,232,91,87,116,56,221,64,200,153,198,225,211,88,67,+149,187,196,79,95,41,212,10,153,100,127,227,98,129,51,207,94,212,161,189,34,56,67,158,234,168,75,102,75,60,195,151,+76,242,64,12,78,247,99,60,64,94,37,213,108,182,24,180,248,158,58,168,121,180,94,239,146,76,244,191,231,168,51,2,+56,226,113,67,16,231,160,132,54,18,140,100,128,204,88,167,63,97,112,44,42,210,88,19,23,119,139,171,87,215,175,122,+149,49,12,105,204,246,124,4,14,71,178,173,110,173,166,140,92,205,194,239,214,188,245,54,162,93,231,69,66,9,194,73,+95,29,45,90,222,53,167,204,124,232,149,120,70,149,89,152,23,46,51,143,112,244,166,8,209,169,69,142,24,66,146,26,+180,80,145,245,142,242,29,130,145,125,166,141,1,60,120,64,111,206,219,124,78,137,24,34,146,165,212,144,172,12,10,78,+216,34,110,46,166,85,69,128,11,57,84,250,144,220,239,210,213,37,126,169,164,31,252,230,125,106,227,146,33,62,181,202,+92,229,174,72,178,197,58,16,0,206,48,178,78,39,236,250,52,194,201,43,186,5,139,68,77,134,53,62,237,135,156,205,+141,178,212,251,102,213,90,193,118,231,136,122,153,5,179,66,113,32,217,57,243,5,98,148,192,47,141,109,148,231,14,106,+146,36,9,33,3,161,4,75,157,22,90,24,166,215,232,48,86,62,27,60,14,65,5,142,68,121,52,176,250,166,71,243,+160,243,172,74,162,64,146,220,17,37,207,109,103,193,98,56,87,246,103,46,119,35,61,243,251,107,153,96,230,255,209,85,+84,199,0,115,41,234,245,152,241,62,156,72,69,218,168,31,115,0,84,137,248,203,171,38,170,20,141,43,174,122,184,4,+33,167,110,108,183,206,83,104,51,208,45,41,187,124,163,59,146,199,26,5,53,117,162,79,22,167,188,107,91,53,175,162,+153,196,131,252,235,209,79,123,3,197,213,232,184,189,43,104,186,209,63,197,234,254,132,159,224,196,241,42,175,231,224,117,+101,109,76,239,70,200,106,215,102,176,99,195,230,208,247,56,31,138,166,95,133,182,226,48,115,26,66,2,33,32,27,19,+65,60,113,50,194,187,29,29,227,155,130,20,44,190,86,233,246,13,219,94,12,27,22,54,75,221,204,135,68,21,48,197,+132,192,193,8,157,3,238,154,217,124,52,28,245,227,78,223,14,215,35,124,100,178,228,15,202,171,219,31,14,91,106,81,+145,144,66,117,213,152,110,203,39,219,65,108,248,59,90,108,16,101,208,236,193,194,244,234,7,145,58,49,138,93,199,64,+117,70,2,49,66,218,151,225,160,163,205,217,163,94,232,114,48,57,166,227,174,212,55,164,103,199,144,53,104,137,78,227,+240,6,138,139,159,255,101,230,32,92,254,232,30,228,39,123,34,57,94,33,178,163,150,155,20,37,52,216,239,194,231,182,+173,118,220,248,30,70,164,43,171,240,27,219,242,76,109,224,153,209,235,122,250,177,18,178,131,31,152,205,195,90,37,87,+4,63,3,109,99,16,79,85,211,248,31,234,26,186,134,197,127,189,207,204,71,52,216,252,53,16,223,147,139,201,228,84,+106,126,240,242,229,85,250,157,102,5,104,184,24,83,204,90,147,173,145,27,77,206,2,167,116,123,170,130,234,211,220,142,+96,119,84,205,169,97,107,134,49,115,156,216,178,212,199,190,186,47,175,103,47,168,130,235,66,231,133,19,100,143,194,96,+108,138,61,202,3,222,213,121,159,85,198,202,221,20,146,148,61,29,127,149,148,118,245,215,164,125,189,217,138,20,152,223,+182,164,247,248,90,158,86,43,201,154,158,174,144,221,42,31,253,186,105,49,9,196,247,42,208,155,34,167,86,20,103,122,+234,203,29,168,165,155,138,90,185,160,133,205,63,65,157,154,220,50,227,49,81,183,134,51,145,168,152,236,37,255,45,93,+222,29,80,89,227,230,87,100,67,246,21,10,245,197,168,1,2,108,37,35,64,225,148,255,253,63,229,151,0,143,197,242,+2,202,33,213,89,161,144,102,142,92,90,86,226,241,179,255,231,191,224,51,42,34,202,248,52,134,36,89,236,235,131,82,+208,42,55,234,179,24,105,19,229,164,217,173,140,166,176,222,146,153,198,29,107,219,215,48,27,97,7,51,180,57,223,128,+144,51,137,208,73,182,215,241,174,97,159,82,47,166,106,87,141,131,82,61,252,131,102,186,6,211,44,87,119,15,238,48,+103,208,5,114,203,135,233,185,59,20,57,252,110,137,156,105,105,105,113,243,218,108,146,246,240,106,145,108,226,47,188,173,+124,243,122,77,93,22,1,166,114,31,186,216,21,154,228,250,62,193,109,253,14,19,197,198,111,224,227,39,116,30,136,106,+21,136,250,253,200,219,221,26,22,93,218,238,118,5,31,208,123,5,208,243,198,217,61,193,149,1,1,17,250,59,162,221,+171,158,212,251,173,240,248,175,47,113,53,98,69,145,85,75,222,206,250,191,32,143,208,56,223,88,41,132,33,248,250,173,+41,123,91,176,51,220,214,128,127,229,155,211,211,16,75,43,101,148,225,22,210,229,112,121,251,15,93,135,145,48,36,198,+38,13,96,27,214,46,65,164,140,58,96,207,249,145,100,14,55,252,149,127,39,93,16,40,128,121,190,162,122,80,56,57,+95,182,55,189,6,183,162,67,47,13,166,238,21,167,172,164,173,138,133,173,213,186,35,87,92,244,124,137,220,49,50,76,+176,78,67,172,51,157,108,183,104,107,247,23,43,166,190,124,152,19,35,97,68,38,98,45,27,137,150,214,225,114,27,70,+62,243,157,209,155,57,8,61,6,148,0,96,80,215,132,74,228,229,240,174,3,121,205,56,116,184,58,193,67,9,63,205,+173,56,150,194,88,214,117,108,253,52,167,134,250,123,68,226,203,110,61,112,50,211,62,69,5,64,74,163,98,180,10,204,+107,128,172,209,199,162,209,87,3,198,146,232,225,10,101,165,99,30,239,250,63,238,146,34,89,165,132,116,72,47,143,12,+135,52,182,91,62,99,222,232,36,131,91,227,96,175,197,44,95,147,246,215,119,23,13,31,93,174,242,15,205,242,247,178,+130,48,193,132,131,48,57,181,143,85,139,117,144,163,92,68,72,206,100,61,171,158,123,97,135,124,30,240,199,103,170,80,+208,52,53,114,213,131,73,158,125,126,226,2,197,128,41,163,17,34,177,226,116,196,27,149,1,47,78,82,73,58,46,64,+94,218,97,216,205,51,255,238,254,191,221,90,138,252,24,9,21,4,198,224,141,183,37,43,39,57,178,108,32,25,228,91,+44,20,114,227,122,238,165,153,100,111,159,142,186,15,7,177,93,237,168,248,179,57,124,141,27,203,106,18,143,245,213,130,+52,41,197,69,225,43,194,252,41,87,226,75,173,79,251,185,66,30,79,13,50,231,47,29,7,57,74,231,109,72,36,21,+206,216,100,81,149,254,240,240,226,167,131,20,18,238,134,46,48,57,154,109,142,194,147,94,242,205,224,202,16,141,48,169,+129,59,49,214,232,86,119,223,61,225,7,107,250,89,92,224,77,80,192,125,167,107,151,170,162,11,27,240,158,246,12,40,+91,11,93,8,111,34,39,3,26,87,184,112,3,102,170,204,32,78,24,106,5,206,229,220,66,14,243,202,236,16,179,87,+217,230,46,136,32,71,140,192,240,34,28,248,198,50,3,42,138,176,33,29,220,110,7,8,201,145,82,159,55,150,179,12,+202,107,102,133,117,162,90,202,228,77,182,175,101,15,210,219,251,239,1,0,29,76,142,142,184,227,161,17,34,214,5,103,+176,83,119,217,32,128,91,59,187,182,251,1,197,77,162,242,134,126,183,88,98,18,22,35,58,110,173,82,11,239,42,210,+65,70,86,205,112,53,75,169,31,5,43,65,232,85,192,145,116,12,229,110,222,160,120,80,158,228,196,67,64,249,61,68,+214,94,41,77,186,163,65,49,100,175,112,229,169,65,116,5,121,187,62,54,195,28,163,26,203,39,48,61,78,200,140,3,+42,220,201,129,126,170,99,19,181,37,91,39,51,169,6,247,225,148,7,3,73,180,37,100,212,255,60,161,63,195,12,236,+189,92,14,85,51,248,32,158,213,150,163,16,250,176,57,57,222,248,147,120,193,207,13,136,22,77,136,129,50,174,162,112,+62,2,57,144,251,36,26,247,127,99,113,114,38,92,166,17,161,77,114,86,162,74,221,30,230,95,60,46,124,92,55,192,+209,189,1,38,156,1,120,202,220,162,124,20,224,243,249,173,67,159,209,12,12,125,49,61,3,254,220,66,212,128,128,251,+128,116,178,250,52,8,240,108,20,246,55,89,12,224,141,144,127,68,112,136,8,53,222,81,125,23,136,0,168,111,131,26,+0,234,30,83,129,20,246,182,164,146,32,166,208,94,139,89,163,124,137,133,49,200,206,125,150,32,171,35,77,209,80,60,+189,102,247,50,206,149,33,203,142,197,44,32,110,218,110,47,11,43,99,253,97,65,217,132,151,190,25,236,45,165,113,40,+182,205,155,94,87,144,35,102,173,114,191,102,61,127,82,113,1,81,228,120,164,239,195,101,239,117,136,73,247,122,178,20,+8,112,116,157,16,70,112,156,146,76,97,97,1,207,195,33,87,53,255,146,139,170,176,58,3,22,246,243,157,148,209,14,+27,62,41,237,164,49,90,123,15,188,236,118,195,202,11,17,109,101,115,18,93,127,48,58,32,17,10,246,89,34,228,117,+44,187,34,112,243,13,66,230,170,179,121,98,70,252,187,58,152,117,114,141,67,16,102,54,174,98,70,211,100,116,149,48,+103,106,227,94,107,219,189,27,115,108,73,237,214,169,218,158,94,170,102,217,68,84,221,32,246,101,170,214,123,13,45,61,+239,163,48,125,80,210,186,84,175,5,67,175,188,54,55,99,191,111,204,218,171,128,139,80,47,85,180,207,168,41,92,101,+234,229,63,8,146,151,192,63,216,218,193,208,47,189,67,230,218,2,58,71,126,133,82,117,92,112,16,96,9,249,227,90,+37,6,222,192,6,196,123,244,217,195,201,163,213,12,104,171,225,15,67,185,160,14,207,47,69,25,45,244,239,114,117,120,+97,106,44,163,146,55,181,151,5,180,96,134,171,196,207,75,86,233,32,241,161,23,63,99,217,228,86,23,248,120,232,95,+221,189,182,78,77,71,66,51,205,171,70,238,116,112,124,37,182,187,248,202,253,132,202,68,17,6,98,232,209,185,120,200,+28,32,8,158,173,154,55,251,21,34,94,122,92,175,175,208,224,85,140,99,50,158,229,208,149,203,66,221,231,218,71,218,+250,46,214,193,217,46,222,245,173,27,184,49,124,85,243,108,203,21,145,33,152,240,72,134,52,220,20,189,91,25,131,177,+214,214,229,44,3,21,124,107,155,182,55,152,136,248,234,91,160,177,161,80,111,148,241,2,198,185,218,48,152,232,83,229,+143,3,197,58,64,228,11,85,147,163,189,1,171,167,68,22,71,212,186,4,225,77,122,52,106,8,43,69,143,192,35,159,+193,197,100,158,46,6,22,151,0,47,96,39,165,104,221,214,73,117,188,18,33,116,139,213,132,14,240,252,54,108,228,43,+193,206,218,237,190,85,235,217,96,234,104,206,128,135,145,227,39,189,46,202,32,234,241,169,118,131,198,211,21,231,202,7,+172,192,175,234,1,110,151,98,227,210,149,222,134,247,136,172,211,29,22,68,7,43,79,160,169,66,117,157,24,56,161,225,+206,126,161,184,99,215,223,249,12,23,164,50,72,13,37,33,89,29,18,67,142,57,66,53,100,129,121,152,228,129,201,204,+192,231,236,241,247,251,52,27,236,223,215,200,102,195,203,45,94,1,142,135,176,147,129,80,1,13,85,11,164,206,14,84,+31,224,75,0,179,218,96,44,189,223,121,227,190,5,182,49,189,178,45,22,60,103,57,28,31,18,185,146,3,143,114,138,+136,100,29,47,224,135,237,191,99,111,196,150,103,139,246,25,3,14,69,26,153,228,104,111,51,30,171,32,135,170,162,250,+2,231,166,236,163,112,113,67,94,41,108,116,194,9,148,31,58,169,15,214,69,85,233,245,42,218,143,236,190,174,197,150,+187,125,80,108,198,135,196,232,140,137,218,2,174,252,46,192,95,238,228,77,65,67,100,125,197,69,190,134,106,114,159,139,+9,163,226,173,37,13,42,75,203,120,20,74,125,134,124,156,10,240,52,185,246,35,138,79,47,145,140,172,32,32,253,76,+198,207,218,55,71,186,232,140,53,221,56,194,135,155,175,91,178,155,21,96,69,181,171,66,14,97,112,146,11,9,227,123,+42,223,94,177,169,223,19,103,206,182,27,188,13,142,16,105,171,132,131,174,71,155,89,122,254,118,192,247,12,77,199,147,+247,13,107,102,253,4,243,39,123,121,199,131,172,116,40,7,41,139,158,61,208,193,71,187,203,165,26,11,86,101,11,118,+191,52,249,30,72,107,73,248,233,31,95,144,193,48,220,155,246,115,84,198,150,144,86,179,2,250,200,103,42,132,4,108,+233,98,118,249,70,102,102,51,238,6,162,143,81,124,154,80,33,41,80,130,2,98,183,113,66,166,251,161,48,228,247,15,+76,62,68,109,185,78,53,225,89,171,92,215,192,240,89,154,103,223,113,209,133,39,107,84,249,137,14,138,72,84,94,223,+192,206,90,95,241,66,102,0,116,29,194,46,106,103,235,175,37,75,128,35,68,78,140,75,152,93,235,49,66,246,10,14,+103,30,48,154,85,6,70,133,214,202,249,98,255,208,30,130,77,184,250,101,143,237,161,222,153,65,101,96,164,59,248,133,+214,23,224,150,125,193,46,135,134,238,69,198,110,106,101,163,85,146,197,111,45,179,59,192,153,189,26,169,88,240,242,38,+87,248,212,65,212,182,165,93,178,229,182,138,209,57,88,3,208,228,50,219,4,219,57,18,212,99,44,80,37,36,91,183,+37,49,73,168,136,216,82,203,4,23,67,96,39,79,68,105,141,3,71,227,134,111,29,189,127,174,94,190,249,34,239,184,+226,73,36,118,95,119,202,17,127,100,147,41,129,53,247,93,51,193,4,122,61,228,69,95,178,175,11,17,53,254,241,131,+126,25,206,153,53,65,164,53,109,116,107,251,185,43,184,215,5,63,89,232,66,10,49,192,244,19,39,245,25,154,9,203,+46,204,23,174,96,57,101,83,28,105,52,139,49,108,126,64,250,204,25,131,80,148,107,235,102,13,176,217,253,199,140,111,+69,20,152,147,132,233,204,24,173,97,185,94,187,133,113,42,101,155,92,196,181,60,6,189,13,186,25,74,162,150,179,64,+206,239,125,251,237,137,196,223,171,156,67,3,88,12,24,135,132,136,241,32,79,246,100,162,129,90,24,36,19,58,217,100,+69,151,214,90,162,162,149,133,58,116,208,148,195,168,149,223,140,47,236,210,13,71,44,215,207,74,34,126,117,103,68,54,+47,156,232,118,195,138,75,185,26,176,74,79,254,105,9,209,131,65,71,216,7,178,24,38,245,182,18,19,1,146,129,150,+17,244,248,170,121,152,54,80,99,207,82,8,210,131,151,114,12,194,204,142,112,133,65,155,238,46,110,29,231,68,157,39,+142,34,92,85,211,243,63,219,214,208,192,197,60,191,155,140,33,50,251,84,3,236,132,175,32,104,40,167,71,226,255,64,+123,165,237,199,124,54,84,98,50,232,1,114,19,146,125,237,31,225,107,38,213,136,179,243,255,128,188,101,35,166,2,117,+211,200,166,201,139,217,94,181,74,104,91,250,166,101,0,49,20,29,214,22,82,11,81,154,152,166,199,95,157,164,104,171,+88,76,250,16,189,164,110,55,162,190,129,30,110,210,237,165,20,236,131,192,124,14,178,69,247,151,221,223,253,62,182,165,+159,64,114,110,62,192,213,182,10,69,51,133,43,33,72,231,236,135,203,26,157,170,85,139,246,103,33,245,218,16,122,183,+28,36,161,132,126,190,9,211,210,73,26,159,199,248,16,197,209,211,154,217,132,82,57,89,36,0,25,25,198,221,13,48,+98,255,198,227,156,196,130,121,149,84,106,191,146,179,161,71,7,18,119,51,124,109,89,232,77,170,61,46,30,248,25,69,+103,40,8,192,135,136,166,170,155,104,201,111,198,218,29,94,72,228,1,83,13,118,34,112,167,251,158,178,241,144,185,193,+186,29,24,110,192,3,54,165,141,19,139,137,34,159,4,36,36,57,223,164,59,189,197,44,118,60,170,172,50,41,26,208,+179,33,50,56,164,128,128,131,197,121,20,120,212,219,122,189,23,117,37,90,171,179,239,117,59,110,95,196,202,58,55,196,+117,157,67,249,199,8,95,169,43,20,72,159,13,236,172,214,105,180,88,182,16,131,191,192,25,148,96,40,114,230,119,48,+61,30,64,159,77,111,131,166,198,44,209,1,192,18,112,228,252,250,126,167,82,52,249,173,163,235,33,4,102,214,76,227,+17,170,21,193,175,5,100,198,201,182,123,211,180,15,147,199,171,167,40,158,95,146,198,173,104,117,228,243,155,4,134,199,+79,233,230,102,105,118,49,172,98,15,68,192,87,133,20,26,5,75,183,46,84,206,23,207,14,99,212,234,51,94,47,56,+82,216,157,161,155,174,173,230,138,119,139,191,61,131,32,207,15,191,32,223,87,205,33,45,99,232,238,185,238,196,153,210,+16,32,100,61,131,50,231,35,164,213,43,151,15,30,165,109,80,54,25,134,7,136,198,183,127,124,93,63,143,180,248,182,+231,99,171,14,65,145,209,232,47,142,128,204,25,113,46,33,153,117,181,109,149,233,236,250,176,102,196,40,108,208,230,89,+177,182,215,77,220,205,136,212,158,77,14,176,54,0,65,244,229,222,53,139,175,237,195,97,91,190,106,210,40,67,210,30,+123,240,223,97,227,131,131,98,199,32,153,161,163,177,123,242,179,57,92,82,251,246,30,80,200,6,147,225,4,23,68,22,+74,103,67,254,18,186,90,136,157,52,136,157,159,192,209,150,220,36,181,32,248,14,131,124,65,129,58,120,240,55,65,66,+141,196,22,52,15,122,226,16,119,22,211,230,4,162,98,199,208,132,189,139,119,120,153,68,180,233,73,222,173,187,107,28,+40,22,82,225,109,222,36,252,190,52,130,199,24,9,149,233,15,57,253,181,213,25,169,190,178,10,7,157,26,189,228,112,+232,107,86,42,157,124,92,252,79,1,66,187,120,217,172,44,216,76,153,110,174,124,230,153,188,133,249,38,149,152,78,173,+80,237,122,199,126,213,14,190,108,178,55,10,42,192,114,117,21,92,99,29,243,168,63,219,27,56,175,164,37,189,153,62,+165,234,231,184,255,187,109,96,238,223,11,41,144,220,139,127,237,185,225,143,59,49,175,108,215,135,197,31,130,132,196,34,+9,9,162,90,126,242,255,58,126,159,59,23,89,204,232,233,82,238,165,159,143,254,157,244,216,150,105,8,126,104,248,118,+73,199,115,23,150,191,116,160,232,90,235,238,210,186,140,158,81,43,141,151,201,146,159,144,139,63,25,128,205,235,46,23,+182,245,236,92,156,144,120,25,113,236,174,59,114,46,89,160,8,67,169,229,7,63,53,197,154,131,106,201,23,82,234,117,+209,35,172,62,163,90,13,74,254,10,55,221,123,32,194,70,51,199,240,5,40,183,176,127,92,237,105,202,53,158,183,157,+247,90,250,65,36,173,122,63,5,140,225,119,150,170,101,31,214,218,44,19,128,246,242,188,73,162,34,16,215,168,122,31,+93,204,31,203,188,171,117,194,244,110,16,64,157,213,19,208,35,104,237,140,44,209,84,69,239,192,16,21,29,6,205,94,+254,60,25,44,250,178,179,235,178,36,1,157,98,208,146,17,200,159,59,229,109,131,227,92,222,137,236,219,91,171,53,188,+116,115,195,18,31,51,58,64,3,87,185,206,55,239,52,219,123,164,177,111,90,253,171,162,91,35,40,54,60,216,46,96,+199,34,147,90,39,147,35,190,74,77,222,253,105,62,244,214,18,155,86,207,255,254,126,140,230,67,182,255,255,255,255,255,+255,255,255,255,255,228,112,54,146,16,30,233,6,201,4,171,192,96,225,8,193,240,154,255,57,215,65,103,52,82,64,83,+249,217,76,3,227,111,118,70,20,95,243,213,206,138,240,165,65,89,51,37,166,201,207,176,246,196,56,28,126,11,218,41,+26,61,227,103,252,154,61,77,45,214,234,143,38,115,21,187,175,147,97,245,182,124,248,219,171,105,116,190,32,134,155,217,+201,125,227,17,165,181,209,121,8,237,60,104,188,18,44,90,214,162,63,236,49,118,62,177,245,215,231,63,162,80,168,64,+108,200,215,7,192,89,56,45,68,234,65,174,21,194,72,6,131,93,51,203,49,246,94,243,224,229,37,40,201,53,188,229,+193,101,180,225,15,208,231,255,26,77,145,34,107,195,248,93,151,248,211,193,32,194,44,39,129,111,170,115,7,75,187,21,+224,118,55,211,78,48,135,90,174,160,223,132,122,194,106,59,173,59,174,184,37,12,141,182,164,180,135,247,173,81,157,118,+101,24,96,38,152,234,154,10,161,172,45,18,84,240,21,52,124,44,232,220,242,204,16,149,159,183,148,173,6,121,88,178,+185,15,22,226,8,14,28,146,96,238,250,160,129,139,68,2,142,164,108,197,96,20,128,140,167,48,29,1,247,227,210,168,+239,95,172,184,20,245,233,45,102,145,192,75,177,83,241,20,77,129,119,154,47,9,210,250,176,110,160,193,196,231,159,89,+64,164,95,39,153,202,206,146,180,103,192,28,47,105,223,71,151,98,13,145,92,117,188,222,75,187,178,22,31,209,166,89,+70,105,46,28,237,36,145,118,5,229,234,147,131,201,85,195,59,118,224,93,158,225,26,63,130,182,251,120,107,198,216,25,+82,97,38,121,184,59,121,119,207,34,132,72,252,95,248,221,109,255,61,171,136,236,128,27,196,87,242,76,77,148,156,107,+162,33,197,165,112,197,13,43,90,189,107,225,203,97,105,129,249,2,159,164,219,237,37,162,162,57,46,121,130,201,217,181,+207,164,41,17,246,74,119,209,91,208,184,223,198,149,124,17,171,179,213,240,39,197,212,54,241,172,179,142,75,90,240,22,+15,227,106,144,111,37,249,248,3,189,157,85,179,50,253,32,178,81,197,75,23,23,190,101,41,178,110,167,14,36,137,173,+38,156,74,144,20,173,117,111,70,217,232,65,127,132,50,206,244,90,6,242,218,226,76,210,222,85,29,135,248,235,100,74,+200,193,117,49,255,52,198,237,212,177,72,136,68,85,97,143,21,240,125,126,22,242,184,252,192,234,35,246,131,68,31,77,+46,10,91,35,104,20,37,94,105,151,140,110,223,147,208,1,242,170,198,116,127,44,40,56,81,222,198,96,241,92,164,151,+241,79,178,106,191,76,28,231,7,251,195,107,239,56,18,8,10,220,208,143,91,197,119,227,220,80,109,176,211,195,105,125,+159,89,170,0,130,167,165,18,138,165,79,252,225,198,150,86,154,157,171,45,175,21,236,20,249,40,10,158,221,250,69,61,+113,153,220,146,251,67,138,255,207,72,176,19,8,58,246,145,240,242,253,121,113,204,207,170,252,254,215,86,41,182,84,138,+34,24,157,66,25,251,205,213,208,19,199,35,135,171,185,162,88,198,153,36,88,161,231,68,157,159,204,150,224,221,169,241,+16,171,180,68,12,155,50,95,75,116,131,242,64,104,28,222,54,88,87,131,133,152,150,127,135,67,1,236,125,9,151,162,+60,237,25,91,234,105,123,217,117,202,220,77,75,122,130,136,196,111,64,156,65,134,94,19,139,92,191,237,40,188,8,164,+243,137,222,74,165,165,14,95,159,200,125,189,18,15,22,239,46,49,67,190,169,247,42,149,101,43,84,220,188,99,64,136,+85,134,139,129,151,69,119,83,160,216,255,75,98,254,10,165,72,117,71,148,63,95,157,0,49,0,209,240,28,184,6,68,+250,140,78,180,156,162,22,88,125,122,206,165,212,26,85,17,159,162,248,168,205,167,8,62,138,149,169,76,161,186,68,250,+198,246,156,72,43,240,105,35,179,43,184,59,155,235,153,75,96,240,252,9,51,132,2,171,10,201,59,87,192,134,82,71,+167,213,154,151,177,62,99,17,179,176,15,161,82,12,247,185,47,130,134,24,100,77,113,160,254,228,61,194,178,184,50,210,+39,148,247,19,17,193,189,142,220,203,116,165,117,1,64,206,172,159,112,151,246,91,88,67,164,232,231,148,150,100,19,19,+20,131,75,208,87,25,235,255,102,91,173,224,48,113,1,168,186,9,251,173,191,89,48,149,147,57,190,167,24,179,128,23,+125,238,47,215,14,108,110,156,252,6,252,234,159,233,118,213,180,161,144,19,177,39,29,79,74,209,211,232,95,188,25,184,+192,245,0,111,79,82,225,208,9,23,252,101,202,241,71,102,113,126,80,104,240,161,17,96,255,153,216,18,126,70,47,99,+186,181,69,171,40,123,53,215,76,89,142,202,140,242,211,255,79,135,155,162,152,12,177,215,8,209,65,254,191,245,115,228,+135,192,107,103,27,143,154,204,68,87,25,28,202,96,144,125,150,83,243,1,175,123,145,239,219,144,93,224,168,140,158,27,+111,175,194,42,232,173,154,219,159,167,76,84,140,231,237,63,57,125,199,205,164,159,14,45,11,203,226,205,165,189,91,189,+244,89,191,221,66,107,132,203,26,158,148,104,66,104,250,181,254,147,125,33,194,77,152,40,247,140,253,98,96,222,83,90,+137,17,13,245,143,174,16,95,9,21,227,247,49,79,105,201,30,35,204,77,181,242,201,246,164,188,242,204,113,238,181,94,+73,123,60,125,26,112,23,111,100,92,106,187,29,208,34,79,243,89,227,63,60,122,144,55,131,115,91,171,190,245,56,239,+102,13,141,176,44,184,64,211,66,246,168,104,202,190,200,76,227,124,215,193,42,22,52,141,99,30,210,71,67,226,0,231,+204,245,70,215,181,172,61,34,40,89,100,63,158,255,204,9,149,111,32,46,79,153,43,128,50,10,143,47,183,219,208,86,+234,179,32,24,96,96,212,200,73,217,166,221,81,160,206,217,180,2,121,60,128,157,252,77,250,226,251,187,159,85,85,155,+154,134,95,94,165,72,164,21,53,13,205,125,215,64,44,57,107,104,83,239,201,215,89,168,157,66,137,92,12,82,124,103,+145,58,9,161,153,19,46,226,131,171,52,217,55,146,216,92,32,174,46,45,140,99,126,109,122,115,187,240,250,228,225,25,+24,185,79,242,113,53,72,213,174,46,134,83,39,30,173,111,197,178,49,46,48,24,67,239,127,225,61,206,211,134,195,195,+199,170,162,106,169,54,82,106,110,231,230,208,178,65,131,227,102,121,71,173,33,168,86,93,110,183,87,205,148,227,14,187,+205,142,221,156,234,152,236,38,48,160,177,176,248,172,168,37,146,253,19,55,85,100,160,171,182,213,197,239,158,126,123,245,+100,53,30,41,254,135,254,152,80,231,248,198,37,14,57,4,152,84,246,119,169,216,14,11,218,151,36,246,185,163,174,211,+129,8,4,250,2,215,36,4,130,240,104,113,82,83,94,86,175,231,172,219,193,158,185,206,222,145,107,187,55,113,19,141,+96,42,24,180,202,228,46,108,79,234,15,169,74,157,155,89,8,141,89,17,8,37,161,120,54,15,192,247,165,105,72,134,+185,228,173,12,243,116,175,50,167,175,245,169,235,31,173,52,46,157,215,137,230,127,30,36,22,28,248,173,125,187,105,85,+194,26,204,139,15,221,187,170,147,203,144,88,162,242,35,34,35,203,149,214,157,83,24,120,152,219,38,25,239,200,167,158,+211,42,64,40,32,131,183,142,252,97,45,213,240,94,109,87,196,196,147,12,13,251,221,118,110,17,194,140,87,61,53,86,+159,80,140,115,30,60,66,84,246,129,17,18,118,230,39,198,80,248,0,172,244,190,184,9,162,35,170,111,110,82,47,252,+68,132,88,239,14,194,13,160,223,152,30,233,79,65,232,93,87,35,178,198,205,25,111,191,94,41,72,14,139,224,88,110,+234,34,57,208,130,27,176,101,180,45,44,138,250,96,85,46,150,87,140,65,138,111,231,128,56,172,37,65,172,244,41,224,+122,140,251,125,176,84,84,126,172,152,108,158,8,75,31,3,102,103,190,91,196,200,235,255,132,18,190,224,206,57,224,152,+241,23,123,109,15,70,179,151,193,117,165,183,61,96,13,12,78,73,46,165,144,142,121,251,205,114,248,45,245,245,111,105,+57,199,231,76,80,162,44,84,223,166,5,236,39,22,90,255,195,159,160,134,85,12,111,115,96,35,198,48,248,51,151,206,+241,21,208,121,135,247,33,66,75,202,227,227,44,181,186,163,33,52,182,18,30,51,177,254,228,137,72,55,156,15,96,64,+3,175,78,13,196,170,208,55,177,165,227,252,108,17,241,84,28,109,242,1,199,43,127,231,215,40,137,31,195,6,118,168,+89,137,43,153,131,5,192,162,1,77,4,34,20,234,178,219,73,105,228,227,112,74,37,195,169,144,1,117,149,161,231,69,+209,95,165,237,236,240,12,98,199,30,9,246,190,248,219,184,237,2,202,162,220,160,116,61,250,61,229,147,182,63,84,185,+72,61,167,13,195,218,184,74,249,80,22,123,202,241,232,176,110,166,73,143,214,119,20,238,131,2,253,111,134,148,141,120,+217,132,206,83,61,162,190,252,247,211,252,90,51,178,61,202,189,207,156,64,93,80,174,232,28,120,1,36,48,193,204,134,+3,243,143,14,118,194,149,189,111,246,146,161,93,200,201,6,182,25,103,106,206,80,57,184,253,221,207,103,18,11,192,57,+28,66,51,6,227,193,176,44,209,167,143,73,13,215,68,249,234,68,47,32,67,13,164,33,52,54,246,117,161,248,89,82,+65,89,154,171,163,13,108,20,82,61,226,154,152,100,160,121,217,182,170,242,53,57,249,253,140,222,52,101,96,169,218,204,+1,6,105,70,254,108,40,44,71,169,199,64,38,225,48,0,132,159,121,118,192,35,154,71,188,127,157,107,250,204,96,197,+82,226,62,35,7,1,169,213,211,145,65,228,45,230,88,125,43,144,219,150,236,96,39,218,211,174,68,189,106,34,41,48,+154,120,40,44,193,252,73,178,70,124,85,69,58,32,106,246,48,234,224,173,6,67,43,200,8,243,179,225,218,148,140,217,+7,211,2,146,156,83,99,96,45,159,232,233,32,228,157,8,205,194,218,70,27,47,12,207,144,137,209,111,168,121,94,216,+153,224,120,197,43,91,248,213,69,8,117,212,122,215,100,189,199,100,42,199,209,168,232,161,56,217,141,189,123,191,140,20,+46,250,127,255,140,199,141,39,140,219,104,238,176,120,78,140,228,58,227,209,59,213,118,207,174,82,37,253,49,167,10,68,+235,195,165,171,72,221,134,20,153,120,232,108,133,186,81,65,243,136,89,155,6,215,196,39,75,210,206,45,245,43,85,41,+131,101,44,223,71,237,222,156,40,43,235,124,179,93,134,201,18,126,141,214,28,20,176,125,12,238,147,252,33,34,35,75,+211,181,28,19,160,197,1,138,24,66,195,218,41,105,118,192,129,199,87,48,128,220,249,89,145,25,249,189,62,208,105,211,+192,57,141,113,217,131,239,119,39,22,244,131,1,186,42,51,225,7,55,138,135,216,35,150,52,137,39,24,126,62,199,111,+164,74,123,209,192,221,16,199,38,61,133,102,234,80,196,6,82,97,8,2,19,45,201,18,116,147,215,98,84,108,90,53,+160,55,153,45,156,90,22,70,223,71,203,178,112,250,173,234,81,144,177,93,225,228,166,51,79,71,82,95,50,128,91,37,+140,253,162,115,145,228,59,1,62,189,207,69,238,21,200,180,172,246,204,131,142,123,49,164,82,143,47,172,196,182,177,212,+250,184,77,128,70,204,253,102,63,109,101,191,10,87,150,93,36,235,93,233,118,187,179,243,96,193,92,124,196,249,23,241,+136,44,57,231,32,45,97,135,49,24,164,181,112,163,185,169,43,46,150,5,251,33,144,93,102,248,168,197,181,98,175,211,+241,77,109,107,83,106,146,255,209,43,158,0,11,199,253,8,111,173,3,100,243,225,54,195,33,112,217,230,250,22,199,159,+252,147,174,151,11,137,163,31,250,48,44,227,116,172,22,240,125,159,89,120,16,14,233,190,107,83,36,125,105,223,32,26,+37,131,211,229,185,38,208,221,24,74,187,255,225,198,221,185,8,117,118,182,242,107,84,18,104,9,41,101,108,165,222,75,+117,129,130,109,24,248,222,108,172,131,58,211,6,121,185,40,55,250,119,49,64,193,152,210,204,35,26,254,112,240,106,172,+68,42,191,116,0,100,223,253,135,236,239,13,1,122,209,223,87,114,59,249,44,128,217,60,156,111,154,162,109,17,46,83,+37,77,82,142,148,123,139,210,128,109,73,141,116,20,94,83,44,114,15,46,144,31,55,59,38,114,103,238,110,234,85,91,+190,153,18,235,91,27,22,10,32,149,132,106,54,183,218,60,80,25,31,142,243,133,192,238,246,165,168,208,208,224,227,4,+66,183,25,235,55,58,217,120,148,146,139,14,143,219,10,147,170,128,218,155,57,8,114,90,223,139,125,114,19,240,107,79,+92,196,76,224,184,68,113,93,51,254,182,53,225,247,109,104,135,56,224,106,221,59,29,88,167,133,56,253,208,202,85,128,+116,253,213,88,79,42,133,214,71,217,54,113,189,131,49,71,176,111,28,230,72,55,211,123,194,10,126,223,244,126,127,96,+173,72,57,162,242,203,124,205,125,185,115,147,28,108,51,157,240,240,16,190,227,8,175,49,239,254,96,17,160,65,81,202,+233,1,192,106,37,14,71,192,246,135,116,29,9,75,118,10,27,233,49,195,59,219,67,37,223,170,235,160,48,140,45,175,+100,118,64,31,62,154,12,167,69,184,16,67,7,124,124,134,122,35,233,199,41,113,49,135,186,166,63,83,168,44,198,22,+94,227,138,241,165,178,112,48,226,187,3,117,180,19,250,116,186,21,71,51,136,212,5,4,174,142,246,173,127,97,162,62,+246,200,200,82,42,189,75,118,198,165,116,120,54,19,178,63,127,39,34,208,117,167,213,17,102,62,112,68,101,146,190,236,+246,103,32,0,85,135,246,214,156,222,145,150,250,242,87,119,145,194,151,125,45,2,130,254,140,192,124,85,215,76,43,40,+234,187,2,158,182,119,131,113,155,199,223,218,100,161,169,139,111,238,50,220,71,105,75,45,205,165,15,110,177,84,71,251,+85,190,202,44,161,196,130,41,75,219,232,35,146,6,243,0,205,19,31,210,207,249,61,174,67,193,9,47,180,94,80,178,+46,57,130,219,109,79,179,21,11,77,212,44,65,216,255,32,104,177,36,188,147,87,108,26,77,36,77,225,128,147,249,177,+221,241,51,6,92,212,187,10,49,73,221,8,125,157,161,215,7,48,245,75,94,239,52,112,61,7,69,110,93,56,195,253,+249,147,227,218,121,110,244,215,179,238,116,78,215,152,207,187,254,40,169,120,93,121,97,20,244,160,230,175,171,59,223,205,+98,152,32,82,101,83,46,187,236,80,131,177,4,97,172,27,95,104,47,251,128,199,184,105,222,141,230,231,44,43,221,124,+43,227,107,220,175,70,227,0,80,124,174,180,195,233,100,223,143,211,246,145,177,232,180,8,4,193,43,215,86,217,128,77,+20,9,250,207,221,36,45,228,51,231,179,124,181,26,171,163,243,162,91,43,252,211,57,169,165,201,194,3,16,158,20,22,+191,6,150,170,250,32,199,226,130,17,49,86,251,58,189,140,43,118,175,209,151,153,61,254,135,194,73,201,18,198,141,175,+121,254,39,218,100,118,127,11,7,137,165,180,112,222,236,27,132,253,51,62,85,240,55,110,34,151,223,142,202,113,66,212,+124,177,179,87,123,203,90,86,41,23,181,29,199,28,215,28,53,150,99,171,214,124,192,17,158,59,215,71,25,95,183,54,+214,22,208,78,26,93,240,45,163,243,133,143,130,79,175,238,23,56,91,32,37,3,201,222,149,213,64,23,84,246,141,139,+89,214,140,27,172,96,20,223,103,163,215,203,161,71,196,152,118,158,28,212,150,168,8,107,93,238,73,88,47,25,151,213,+204,142,82,70,145,234,226,10,56,173,231,125,68,113,203,97,255,212,79,23,92,116,201,14,230,239,101,13,86,248,97,89,+38,207,99,119,198,162,0,8,95,129,38,105,115,176,207,197,172,148,161,99,55,90,44,75,75,86,68,16,194,224,192,198,+243,4,33,90,46,213,105,239,70,232,129,210,242,2,183,248,150,199,143,159,221,220,225,234,239,29,125,11,26,188,19,35,+139,137,147,94,90,50,181,167,107,199,156,238,78,212,249,179,125,138,252,61,26,206,138,255,149,150,131,126,70,146,220,37,+180,113,120,172,217,241,22,61,190,106,155,72,241,92,3,30,75,218,49,55,14,79,152,32,212,241,213,121,233,26,68,196,+204,177,13,206,140,85,80,147,205,185,222,144,255,212,79,23,92,116,201,14,230,239,101,13,86,248,97,89,38,207,99,119,+198,162,0,116,142,145,154,34,147,114,247,215,60,90,49,65,44,210,56,189,94,28,245,96,91,209,139,150,216,103,72,211,+246,61,229,98,233,117,197,97,200,156,78,52,74,50,89,182,8,73,45,11,82,198,155,188,0,103,108,97,202,57,169,111,+105,65,14,78,143,49,207,63,138,239,168,205,128,231,198,211,145,61,181,237,47,220,32,129,57,122,182,179,166,95,22,227,+99,97,211,24,233,98,149,163,161,124,28,36,218,104,74,106,40,18,134,101,109,197,186,42,89,183,177,220,235,122,2,30,+174,225,172,46,86,172,173,2,176,91,146,64,129,130,184,51,43,172,8,41,177,146,210,157,97,126,117,11,140,4,70,168,+237,95,35,245,211,152,138,176,93,204,113,53,66,97,17,131,189,22,100,125,22,94,8,85,57,191,244,244,75,54,242,28,+107,173,44,95,239,253,215,34,253,57,205,113,175,198,54,145,33,10,40,80,68,106,247,199,35,24,77,39,93,93,244,243,+61,200,111,149,225,106,122,27,47,64,26,63,116,140,195,5,121,12,57,26,59,171,132,137,212,83,87,217,192,122,167,29,+123,164,18,156,16,255,52,101,179,76,39,92,206,65,69,114,85,65,25,213,221,21,27,208,63,0,41,210,249,203,219,30,+157,205,236,158,25,8,215,147,121,222,102,135,228,157,223,88,110,5,40,123,14,43,148,38,139,24,58,52,173,150,143,237,+156,232,212,139,226,211,243,18,214,125,56,193,10,76,4,10,163,65,20,6,13,89,233,142,244,35,81,254,98,24,151,99,+111,180,77,240,50,145,10,178,144,182,59,62,78,5,72,191,172,68,12,173,168,239,238,110,142,82,57,63,115,210,27,98,+18,30,105,153,209,216,30,196,110,243,148,202,96,21,87,180,254,8,90,210,241,21,34,22,18,110,116,9,90,123,54,94,+157,120,187,249,8,31,35,107,204,26,219,90,12,80,51,79,131,117,194,64,151,93,53,3,104,58,137,216,88,76,17,185,+255,84,30,113,80,231,174,114,127,62,236,210,140,164,81,80,217,4,218,127,141,99,1,199,122,4,83,45,38,61,59,71,+114,66,135,22,15,247,175,34,193,211,103,159,95,158,231,33,84,82,50,242,175,54,82,188,74,118,58,56,80,240,152,1,+74,166,107,6,57,132,40,171,39,7,86,125,204,126,82,230,32,29,145,182,96,202,57,203,167,200,211,130,163,19,164,31,+4,97,54,88,234,6,36,60,118,51,220,17,201,142,30,91,131,244,166,79,238,168,130,227,196,138,52,139,246,163,179,101,+90,23,240,47,144,211,240,154,151,24,16,119,1,183,230,41,189,159,4,68,9,69,237,28,157,99,113,217,4,213,156,226,+136,253,140,201,58,186,216,22,158,214,18,89,255,94,172,7,57,156,132,102,40,45,38,204,162,81,111,51,59,35,187,165,+82,58,181,80,181,221,8,73,104,43,192,220,240,202,242,85,7,115,7,119,6,72,50,167,36,44,48,245,203,204,34,32,+96,224,251,101,77,178,39,50,147,197,206,126,178,9,213,48,155,207,118,237,85,37,82,156,114,1,136,104,211,43,44,196,+199,69,141,124,139,207,132,84,142,5,215,81,28,44,201,74,221,192,104,179,71,98,109,174,194,159,203,231,151,31,225,158,+75,112,195,27,236,21,4,28,74,166,239,197,144,20,217,124,67,140,43,26,151,255,255,255,39,5,164,110,113,88,204,245,+108,226,27,209,187,43,55,178,63,28,12,44,195,87,45,136,138,38,62,88,205,114,76,74,244,200,85,244,202,193,95,117,+136,173,59,147,60,113,147,19,245,247,153,220,32,201,247,98,7,233,13,75,42,93,138,218,118,186,187,112,13,104,122,251,+181,85,137,57,13,136,169,189,92,255,171,156,58,118,76,49,66,48,41,100,80,87,32,230,3,202,124,9,203,183,88,47,+217,176,139,237,255,112,45,197,24,138,223,131,75,31,66,246,57,47,18,234,209,73,158,85,179,100,41,172,69,58,240,185,+76,171,104,232,59,15,147,250,93,146,72,77,230,2,67,250,7,200,254,129,53,18,186,176,2,45,170,232,39,46,128,120,+197,212,51,241,89,115,164,143,247,69,177,63,62,227,207,210,93,186,189,131,92,110,200,159,113,82,187,0,185,213,253,31,+122,3,159,54,210,171,65,225,1,168,159,56,83,240,198,102,146,193,132,200,196,141,222,73,226,244,140,175,142,119,120,42,+170,61,36,100,136,65,218,137,101,201,140,254,170,39,161,102,231,87,198,94,224,251,193,169,96,38,22,57,56,9,171,26,+134,159,132,26,238,165,14,79,142,115,58,123,177,171,238,91,213,255,171,156,58,127,82,201,155,41,5,33,151,124,13,202,+246,196,150,38,29,95,212,46,142,52,62,178,238,81,209,104,152,88,239,132,206,71,222,224,105,153,120,249,125,211,29,211,+185,48,228,150,118,252,19,157,170,174,226,210,251,231,95,182,19,157,38,163,8,230,167,230,62,249,169,56,155,4,144,82,+44,255,104,147,43,32,166,186,152,204,242,62,171,20,176,45,122,234,91,234,173,116,138,2,167,192,39,233,198,215,228,124,+220,53,130,211,181,110,59,201,209,97,225,180,253,47,211,223,55,51,159,138,153,226,121,235,40,156,75,213,14,194,79,3,+194,204,43,192,149,77,142,58,155,90,152,181,72,212,192,131,67,18,70,224,197,26,96,213,244,115,136,36,142,227,123,44,+181,38,144,59,178,100,114,199,181,86,142,69,44,195,194,35,26,208,15,255,150,26,166,219,240,56,175,34,245,114,11,62,+68,0,23,199,188,121,61,202,166,19,227,67,234,84,105,44,205,2,41,6,19,77,245,126,198,248,221,74,184,223,146,178,+5,9,180,200,174,21,211,170,20,146,175,241,235,172,114,107,10,54,188,113,253,81,158,54,33,136,149,50,230,141,37,150,+28,209,244,252,126,155,56,137,177,59,113,167,186,232,130,110,242,176,219,147,93,228,1,237,29,14,94,184,207,24,234,59,+69,225,199,76,194,93,9,138,40,60,205,13,20,36,210,119,248,193,174,54,231,196,90,3,161,187,125,21,214,172,221,252,+210,121,2,198,177,206,147,202,75,232,250,51,196,197,240,80,118,18,251,237,31,180,32,113,190,156,3,98,3,160,26,158,+63,170,26,134,81,104,185,31,175,9,65,43,127,204,231,166,255,171,172,88,83,120,18,83,113,153,171,168,84,76,161,124,+73,15,129,92,198,45,229,13,165,202,214,183,14,222,29,109,119,131,178,117,214,120,184,110,139,121,150,9,186,253,38,48,+238,45,111,142,248,130,84,37,211,93,255,218,50,13,255,153,100,235,114,178,88,86,79,39,113,46,69,219,33,97,234,9,+143,216,172,147,11,146,70,153,203,74,13,139,186,28,250,151,95,195,32,84,125,36,78,86,247,232,131,91,2,201,187,53,+250,117,197,192,201,35,196,72,213,90,175,18,249,226,141,146,242,133,65,222,103,242,120,109,201,214,189,27,61,243,122,57,+167,75,1,115,1,124,25,159,115,125,90,250,204,199,206,49,201,135,101,33,117,217,102,214,187,28,153,6,158,216,221,36,+199,26,141,161,51,50,12,246,50,14,91,7,32,164,219,169,119,254,255,171,172,88,83,121,18,54,235,143,198,128,206,185,+208,57,168,15,195,150,177,18,194,246,21,64,202,154,80,202,80,36,206,248,48,64,45,151,241,76,17,29,220,144,109,160,+38,33,123,32,249,151,254,235,138,232,82,23,143,187,199,112,0,184,35,129,48,123,135,140,236,18,173,89,195,235,12,46,+186,55,229,106,89,99,56,69,87,116,64,105,39,121,196,213,216,44,163,193,129,78,112,206,171,209,240,174,15,124,252,78,+23,81,214,141,207,220,40,68,239,180,10,129,151,0,46,23,61,25,145,6,254,183,30,210,190,251,176,140,8,229,230,56,+199,62,107,180,224,208,114,172,160,7,105,169,223,75,224,182,77,21,60,154,163,98,87,199,120,169,114,227,114,136,109,252,+210,90,16,234,26,126,0,31,255,32,154,171,250,184,255,171,156,58,124,190,246,235,203,234,186,219,181,133,14,113,164,50,+150,188,20,57,198,153,131,113,111,125,121,16,178,103,42,65,159,133,129,244,16,25,124,33,225,168,53,230,166,234,23,251,+242,121,188,39,129,140,65,243,216,42,67,84,82,151,57,236,99,125,173,83,201,76,192,234,159,151,154,60,156,95,235,252,+98,155,81,250,184,218,162,102,254,204,115,26,218,74,38,174,204,182,140,120,109,220,67,43,81,187,41,151,151,205,224,158,+1,82,56,186,146,96,76,249,157,23,53,220,254,201,141,61,155,184,151,176,152,129,209,74,47,211,136,230,56,154,216,143,+61,5,27,139,157,172,153,32,121,249,37,54,85,187,207,177,133,106,190,208,58,92,193,161,125,215,87,204,229,113,54,169,+178,28,194,102,7,173,14,149,132,89,126,255,147,182,155,64,27,14,235,11,48,220,190,181,81,211,166,94,135,229,253,180,+149,52,20,213,153,83,134,157,172,118,252,95,60,136,165,52,200,244,66,130,162,145,185,148,73,81,222,207,15,185,83,98,+13,200,51,152,158,42,207,95,239,177,156,125,137,44,67,99,133,234,100,62,91,188,182,96,113,194,109,224,31,43,229,178,+47,99,69,109,182,42,77,131,105,97,167,175,15,60,181,116,241,59,185,50,59,80,113,47,167,28,107,101,133,139,16,236,+223,115,125,22,216,143,224,98,31,193,247,80,203,103,175,3,154,3,16,194,100,178,230,221,160,189,122,70,173,229,105,69,+89,25,91,13,112,189,2,192,253,175,17,154,97,156,126,158,125,156,211,202,48,146,65,106,160,113,105,150,120,193,16,140,+28,70,3,182,65,90,58,108,209,4,56,112,168,18,23,79,3,36,35,210,185,64,255,171,156,58,124,190,246,236,86,75,+30,152,62,179,84,54,230,121,54,225,5,33,10,66,195,176,7,41,72,90,124,157,231,215,39,190,207,8,12,52,183,171,+86,104,128,88,149,223,14,147,237,52,141,126,196,51,81,231,105,232,43,76,244,105,182,12,155,129,19,236,154,78,83,224,+81,16,117,141,202,254,61,253,81,240,111,225,74,231,103,215,138,63,225,240,26,212,169,128,75,145,125,234,226,18,175,17,+195,5,165,36,96,110,248,155,86,117,196,20,106,78,90,85,47,160,71,255,80,236,234,151,78,144,134,232,224,232,29,30,+24,233,165,160,242,138,132,67,6,226,96,35,212,55,36,57,86,69,81,120,164,109,252,254,182,146,81,145,166,106,104,181,+250,123,218,82,206,63,165,74,221,62,82,82,68,140,232,178,169,217,175,255,171,172,88,83,121,18,54,235,143,198,151,197,+174,162,169,147,248,122,220,67,204,161,66,253,151,94,148,206,86,148,57,245,235,22,240,78,55,47,193,93,249,213,223,223,+40,77,143,83,134,78,138,205,126,184,40,181,2,171,86,159,215,253,104,84,19,213,53,28,36,224,220,203,154,58,86,234,+117,150,235,100,109,88,120,255,56,23,62,67,98,143,220,228,47,194,104,252,195,131,127,9,152,109,126,237,124,201,102,140,+68,196,198,33,3,147,188,123,47,251,183,142,162,70,129,248,62,149,51,123,228,63,220,113,4,63,239,35,117,251,59,115,+109,159,83,160,111,131,20,32,185,35,113,180,69,106,105,12,215,190,212,199,244,72,166,100,211,39,72,3,45,15,9,81,+115,240,149,228,91,67,203,194,194,122,123,27,216,196,187,48,216,255,171,172,88,83,120,18,83,113,153,171,168,84,76,161,+124,73,15,129,92,198,45,229,13,165,202,214,183,14,222,29,109,119,131,178,117,215,100,8,215,249,158,226,87,14,95,244,+5,192,95,110,129,186,98,2,60,105,82,109,43,14,185,194,71,51,12,37,15,231,164,199,136,131,242,45,21,198,47,86,+235,102,180,219,41,202,117,16,64,13,1,203,129,121,52,107,80,179,28,108,134,36,154,119,97,5,130,96,107,175,132,107,+20,190,95,103,162,141,85,134,14,169,25,46,9,125,162,165,121,198,165,129,241,218,72,61,245,83,14,40,158,128,244,25,+202,159,248,15,154,197,181,88,28,91,216,226,152,75,230,173,108,244,187,136,133,252,89,68,165,68,213,70,182,62,50,229,+39,135,130,54,66,147,61,133,172,252,166,223,200,68,2,146,123,189,255,148,89,47,168,59,143,57,211,130,63,112,49,39,+114,225,195,68,107,239,233,50,113,98,39,48,21,69,110,163,42,71,0,179,97,15,133,94,134,70,51,114,114,41,1,123,+104,113,119,72,170,224,168,1,46,166,189,162,16,16,184,98,1,67,29,189,9,22,46,66,10,176,235,83,48,53,222,167,+181,159,245,214,79,75,241,146,127,127,181,246,223,212,86,37,116,247,215,175,5,78,94,99,220,56,150,174,28,107,140,45,+49,131,128,153,218,25,112,148,226,48,73,115,187,224,141,124,212,56,171,156,8,150,55,45,96,10,2,107,45,138,154,81,+245,153,140,191,165,65,185,189,126,172,210,113,20,163,131,38,108,72,135,145,155,148,202,151,249,242,50,129,142,134,207,213,+2,226,197,57,32,92,221,56,136,189,216,242,53,47,255,147,182,155,65,31,55,235,48,170,157,144,86,91,64,0,145,61,+53,179,193,145,101,172,88,202,218,93,64,84,125,235,253,226,88,28,225,51,82,188,161,2,90,114,227,153,84,3,73,47,+9,53,187,243,100,120,195,240,134,182,218,186,64,57,13,43,95,54,51,191,101,186,30,223,156,187,188,31,187,240,164,73,+109,140,227,20,23,190,196,78,228,57,39,22,230,40,85,7,28,7,122,78,159,11,83,141,32,49,57,214,154,112,47,94,+0,238,93,89,118,152,98,156,249,227,160,210,136,41,241,27,39,35,182,220,33,191,205,62,11,112,12,55,178,43,153,4,+167,161,238,83,219,55,28,236,96,117,80,68,220,125,251,60,7,228,232,144,255,97,233,119,139,167,206,168,133,146,36,37,+164,92,38,126,193,198,29,148,168,141,55,11,139,199,11,233,151,255,148,89,47,168,60,107,209,211,130,63,110,252,44,31,+69,99,208,5,45,153,68,30,197,44,254,69,248,141,146,59,2,158,224,113,108,65,219,253,245,72,51,126,255,5,30,200,+156,70,164,59,187,177,154,31,246,134,227,156,116,143,215,253,121,175,146,54,225,182,72,136,233,237,181,59,19,110,219,61,+192,74,54,32,27,185,126,139,46,246,184,223,93,238,46,253,9,44,194,255,49,103,148,164,65,7,145,104,2,29,190,24,+231,41,63,204,232,98,25,128,95,147,36,184,68,14,217,30,225,206,225,179,81,236,255,200,185,101,225,210,93,42,36,103,+91,98,91,151,115,184,36,2,237,157,145,81,210,35,184,2,7,19,155,134,179,196,187,76,52,172,95,22,252,35,55,110,+109,175,2,34,212,254,128,80,112,84,21,146,220,138,13,235,73,244,37,212,251,121,112,7,255,171,172,88,83,121,18,54,+224,104,58,181,156,145,115,244,5,88,58,175,103,239,62,86,211,42,89,40,7,163,78,236,17,31,105,85,71,35,217,96,+27,86,192,240,118,71,90,202,117,196,21,89,7,65,185,98,113,83,168,18,74,22,100,106,10,5,65,255,192,150,88,135,+116,233,253,251,99,15,219,215,27,217,3,104,151,33,73,240,87,121,172,121,49,161,13,18,40,184,249,250,156,45,226,241,+189,46,99,97,124,60,142,195,244,130,88,114,128,65,192,94,102,231,106,125,78,129,179,173,86,118,3,142,103,40,154,111,+61,143,10,111,113,209,208,97,145,98,16,32,203,126,217,0,250,97,157,145,92,92,243,39,144,65,128,139,17,90,121,5,+221,160,116,247,70,191,173,19,150,237,158,139,46,72,164,110,80,133,208,224,150,83,229,67,17,231,255,150,26,166,219,240,+56,175,34,241,2,162,255,136,7,234,94,15,94,1,129,99,7,199,98,227,251,76,213,128,230,25,62,118,104,131,200,81,+50,99,217,224,90,236,111,25,167,92,101,28,249,235,85,104,125,98,188,253,33,89,105,105,8,128,157,221,119,73,179,109,+60,23,145,126,202,248,63,176,48,130,146,117,68,45,192,250,203,35,9,228,255,16,88,93,87,78,129,162,213,11,183,17,+195,58,37,124,102,221,65,7,87,158,50,147,218,5,246,124,35,83,101,45,206,172,212,78,1,122,154,149,160,9,79,58,+141,187,112,127,241,13,229,30,172,107,1,205,23,206,161,127,113,3,103,141,76,34,229,245,57,73,60,70,58,249,106,91,+39,254,141,80,83,206,232,43,130,183,19,104,7,33,175,45,170,144,190,164,23,230,58,154,177,11,0,146,200,240,35,176,+194,44,255,171,156,58,124,190,246,235,203,234,186,219,204,125,91,48,235,177,129,224,64,222,21,106,83,140,168,11,41,189,+105,43,29,114,83,52,90,86,250,86,20,53,180,4,241,96,152,229,108,36,9,232,117,44,53,17,120,199,103,78,29,254,+240,113,40,83,120,217,166,193,249,159,16,100,48,191,222,183,121,200,45,53,25,37,215,75,154,44,35,98,107,24,110,24,+218,17,4,248,106,222,189,227,183,178,217,186,72,107,237,43,128,73,17,25,109,193,152,232,117,98,45,207,7,117,226,160,+26,128,214,22,240,183,90,101,221,247,161,180,56,216,170,142,251,6,138,113,249,250,219,107,247,7,247,173,63,52,171,69,+219,139,140,28,88,118,79,82,160,172,137,90,244,252,39,149,236,41,118,243,37,142,243,241,83,127,86,153,87,31,237,44,+93,62,67,74,213,100,255,253,157,184,253,22,242,146,179,82,155,154,164,183,111,78,96,154,165,142,173,214,73,192,250,24,+3,106,185,7,143,39,217,158,48,154,247,168,155,156,26,101,85,111,22,49,174,165,155,107,57,29,237,118,0,186,59,167,+41,149,83,17,67,118,108,147,93,41,92,1,181,226,192,122,184,64,241,175,133,44,50,252,254,127,87,64,180,113,252,204,+172,159,142,118,42,115,139,86,196,83,48,110,220,15,198,127,255,232,112,82,68,126,156,147,145,130,196,174,203,227,154,218,+244,117,163,249,142,148,251,4,224,171,19,170,46,71,128,164,59,50,94,253,178,37,252,153,161,130,58,250,203,139,194,43,+221,127,211,52,20,140,228,204,67,244,62,51,129,125,187,188,85,177,190,93,27,60,252,117,77,108,36,83,183,55,85,146,+224,253,203,84,119,145,212,195,174,152,249,252,151,75,82,208,179,6,198,106,181,164,65,2,2,223,231,32,59,84,249,224,+160,11,160,242,61,210,253,127,64,103,142,244,248,205,25,116,140,56,211,245,155,165,206,50,19,148,66,15,85,107,163,130,+102,153,198,203,51,142,61,207,218,153,98,223,131,49,106,15,105,64,250,66,163,228,224,144,236,166,43,47,169,20,78,41,+180,200,20,36,252,188,78,107,2,129,88,254,212,93,166,240,98,185,198,121,72,244,3,181,150,90,101,254,87,157,247,105,+77,117,206,162,169,252,243,139,35,234,41,107,231,217,215,221,241,208,38,229,4,66,161,221,245,230,25,82,146,124,28,18,+27,117,186,221,153,4,173,118,122,117,13,100,132,133,125,187,80,180,19,111,146,7,183,120,50,251,132,242,129,85,140,203,+122,203,236,221,115,217,43,207,168,169,176,80,80,53,161,212,41,211,25,253,238,179,162,250,37,13,170,21,63,34,92,174,+212,199,105,95,62,125,188,102,58,101,59,96,188,147,25,220,65,106,243,18,145,123,74,231,95,98,35,48,50,118,43,39,+39,157,195,94,197,67,112,79,107,253,200,220,97,31,142,117,177,139,149,202,65,4,87,69,39,193,69,94,253,72,55,188,+32,230,153,33,179,138,213,25,76,180,78,180,255,244,102,99,144,153,12,17,169,102,177,88,81,236,185,44,196,117,81,90,+176,59,250,28,142,240,192,185,145,242,209,195,241,4,79,218,21,77,69,76,86,52,72,130,187,88,115,8,15,175,18,163,+70,225,17,100,32,214,240,67,157,194,156,161,70,66,226,161,157,203,44,108,45,107,216,173,162,129,75,231,60,28,199,176,+246,12,203,140,251,147,175,204,210,34,228,30,225,216,31,22,202,126,229,144,206,82,36,211,71,25,172,233,29,108,232,56,+198,41,24,25,59,30,252,73,208,225,95,83,142,207,249,163,0,196,194,245,185,42,202,138,150,0,48,233,84,164,211,9,+234,58,11,88,241,68,89,174,211,118,187,173,180,175,83,115,254,232,80,230,136,234,65,160,176,190,17,213,228,74,208,171,+156,242,64,186,247,6,232,77,5,10,220,219,164,254,202,118,98,39,118,145,52,7,124,60,211,23,174,193,5,153,244,77,+140,53,248,162,32,17,170,34,124,202,188,36,179,110,21,137,112,186,77,7,242,9,169,19,209,177,78,46,222,6,251,171,+172,170,86,136,105,64,76,55,136,30,162,111,20,0,7,175,42,47,84,126,135,222,206,191,121,246,214,29,247,36,59,174,+108,149,23,181,230,81,81,15,59,208,91,49,205,196,209,144,86,83,118,213,185,122,112,4,176,169,84,66,25,57,206,157,+131,133,108,166,187,208,8,26,110,177,101,237,57,173,127,35,231,85,128,193,59,243,63,136,13,68,243,209,177,152,192,118,+156,9,171,3,245,21,228,29,96,90,9,48,192,116,178,203,17,74,30,65,245,222,153,230,174,60,201,6,87,75,231,43,+54,154,191,39,19,58,177,209,11,79,117,63,145,46,199,212,68,130,161,131,253,36,59,40,191,45,75,159,202,37,187,202,+84,29,59,243,0,28,222,19,132,36,161,223,75,223,179,207,168,120,103,5,178,22,61,187,238,162,133,203,89,222,110,78,+68,197,195,14,99,129,133,182,54,81,3,142,220,171,105,66,246,100,105,12,220,13,157,229,243,163,124,169,0,199,194,12,+24,246,251,151,203,84,128,60,23,110,252,220,171,149,15,91,102,143,130,24,28,116,155,15,194,217,13,124,220,121,211,186,+149,8,203,70,218,109,146,229,37,233,74,148,59,233,48,80,21,86,59,247,215,97,82,200,233,137,194,52,233,87,4,130,+167,153,196,207,121,61,158,240,212,205,246,206,67,207,72,52,232,192,127,218,207,82,1,55,243,126,41,238,83,139,211,66,+15,121,19,103,37,85,240,136,242,154,124,115,48,91,120,99,3,57,163,190,181,112,84,190,240,78,54,211,46,144,58,221,+119,54,123,206,217,51,145,102,69,216,33,84,3,236,174,215,23,130,229,18,220,129,237,61,220,124,183,154,134,238,154,155,+196,205,85,72,232,125,254,6,74,65,245,126,98,106,46,38,208,223,233,228,59,146,233,155,172,155,127,69,230,201,177,172,+124,108,40,112,120,66,69,231,51,33,67,162,126,55,186,14,221,26,206,234,180,147,50,206,188,87,201,194,155,63,188,143,+25,194,32,6,107,0,17,222,144,151,110,9,203,182,221,87,221,36,16,37,236,140,132,204,48,187,46,132,162,19,109,29,+128,231,121,116,159,206,35,36,86,104,7,186,206,195,125,21,61,208,80,158,124,230,108,68,107,48,61,41,132,70,180,238,+145,204,127,23,58,223,120,254,219,92,40,125,171,195,198,151,180,238,212,145,55,126,138,106,241,154,103,117,89,29,82,77,+123,148,144,245,184,12,241,207,172,230,14,32,205,21,7,226,178,41,232,203,59,170,248,255,234,107,26,79,147,70,3,159,+202,179,79,16,247,93,243,149,112,59,0,157,144,47,186,25,127,218,1,125,241,94,47,222,116,3,251,53,185,121,39,76,+76,252,124,93,128,244,113,168,220,127,160,11,177,213,200,12,103,138,3,236,189,249,8,207,6,169,227,44,173,80,12,139,+218,20,30,160,121,0,172,95,242,144,50,243,213,92,251,255,243,6,8,119,121,55,145,155,79,65,57,17,128,59,36,121,+165,61,254,226,118,252,77,50,2,43,29,44,96,164,147,226,67,167,102,238,221,29,31,250,245,100,40,208,10,146,31,237,+25,57,126,66,86,68,58,63,120,164,4,89,235,148,32,11,212,230,165,105,75,224,118,202,29,65,130,115,141,213,47,172,+101,229,181,145,71,172,14,34,82,23,94,48,1,120,200,40,80,237,170,204,24,13,29,99,210,206,25,134,218,9,167,55,+21,73,100,195,19,58,250,111,64,107,16,228,39,241,196,192,214,30,113,224,127,5,40,237,171,216,110,114,127,241,20,169,+120,209,31,96,175,135,58,97,16,25,131,53,137,164,47,8,252,41,209,193,230,20,60,21,227,157,66,31,224,245,49,252,+36,68,163,137,49,227,160,49,197,110,126,34,219,218,52,189,159,231,105,97,143,227,170,200,111,134,156,103,139,109,9,122,+39,186,111,199,255,147,222,89,229,102,208,154,144,127,94,124,85,33,69,85,119,70,239,34,55,8,167,44,226,118,14,76,+151,26,4,152,16,83,50,159,213,215,85,41,143,197,200,184,221,176,132,77,182,151,100,134,83,182,204,38,34,70,103,51,+152,128,16,28,26,224,28,61,96,51,61,234,37,221,235,58,100,247,250,226,14,15,87,53,27,96,87,178,79,134,250,0,+147,232,119,51,152,93,88,191,23,77,83,126,189,216,235,226,89,117,93,165,109,178,127,132,51,196,31,9,87,209,201,240,+248,125,195,203,57,108,83,195,37,251,82,91,60,239,116,37,169,231,161,42,78,30,64,87,228,197,72,121,243,55,110,164,+125,187,157,192,247,225,173,69,233,170,83,51,226,112,171,180,7,148,224,9,21,98,117,227,89,176,37,203,134,214,229,110,+140,234,203,127,126,103,157,30,135,15,157,61,227,62,128,253,64,29,85,101,138,206,19,235,137,187,57,43,90,249,151,174,+143,27,28,123,50,16,44,55,53,243,233,243,245,56,130,179,219,91,167,224,173,107,125,126,230,48,133,205,11,103,170,249,+234,9,21,211,29,11,232,24,148,79,159,78,159,243,249,233,197,195,52,244,157,224,16,28,226,158,66,177,111,227,28,238,+66,219,50,217,251,232,241,33,95,34,25,90,109,181,244,135,230,239,20,191,29,118,207,209,51,222,210,69,75,157,60,236,+56,11,255,253,148,179,161,214,11,91,66,151,194,252,184,154,236,82,170,127,21,97,23,51,25,0,37,224,223,112,95,236,+224,140,32,135,128,54,148,1,93,6,60,78,214,5,100,141,168,115,160,24,50,54,183,26,0,110,120,83,255,103,214,155,+113,108,41,253,28,147,241,139,107,239,248,94,192,42,2,84,99,255,246,11,194,79,99,161,54,116,217,244,153,140,35,91,+143,100,209,112,18,248,176,37,87,24,133,224,39,48,50,245,243,163,81,9,220,31,164,83,164,22,244,159,39,139,80,11,+234,131,198,21,82,195,138,81,14,168,91,15,242,108,3,60,25,99,42,155,86,161,16,223,73,151,140,154,167,214,106,203,+155,62,41,59,188,254,11,138,197,93,84,238,20,173,62,169,214,7,233,251,3,169,181,127,8,148,240,192,232,146,13,249,+215,214,102,211,250,9,25,115,149,131,223,70,218,105,182,197,170,80,23,77,38,124,79,224,79,246,68,127,119,53,16,129,+107,168,48,116,250,32,112,211,16,219,26,33,130,97,33,225,133,216,163,183,10,190,170,200,22,197,171,15,236,80,160,158,+215,108,17,128,247,37,223,204,66,81,48,82,153,66,44,171,15,149,19,22,139,159,86,19,21,205,170,201,224,193,174,107,+38,111,208,67,213,47,25,91,185,162,41,80,96,164,53,29,35,74,135,17,157,12,137,165,190,64,68,254,247,10,86,162,+56,31,89,106,130,85,142,255,218,78,104,192,91,149,121,183,16,243,173,43,151,7,4,192,9,188,213,31,99,67,48,114,+32,92,33,225,234,146,83,3,188,170,173,146,21,142,103,25,227,85,253,115,62,141,214,144,160,36,129,238,247,219,175,190,+44,226,112,252,42,88,11,7,137,202,139,92,168,184,190,68,190,154,210,232,22,14,93,157,21,20,101,43,10,82,43,44,+142,152,7,216,197,249,162,217,200,190,118,70,27,225,83,251,187,248,32,48,15,151,62,173,35,213,232,140,160,251,252,226,+245,39,199,65,142,63,182,77,224,183,27,80,211,201,110,201,123,114,8,155,182,63,168,146,135,227,216,224,145,104,28,125,+123,62,176,238,0,196,104,52,18,119,143,215,92,16,107,143,215,196,107,119,127,98,120,69,83,242,100,143,44,16,117,130,+62,164,110,73,214,6,211,4,17,21,14,52,127,28,122,189,166,183,119,218,38,54,174,7,35,25,87,81,13,72,8,227,+49,75,214,126,247,149,234,96,173,1,69,11,150,143,105,213,19,123,254,114,26,30,197,12,16,70,204,126,143,32,82,177,+43,239,49,203,184,171,253,58,95,202,36,37,156,249,50,216,206,192,126,66,196,90,133,200,29,234,213,204,180,79,148,211,+126,93,206,15,123,223,102,4,144,236,39,195,22,219,111,233,46,170,34,233,124,205,210,31,157,201,61,156,21,38,29,169,+102,154,162,239,225,81,222,91,146,88,228,107,78,122,180,207,36,117,96,164,1,171,228,206,11,249,180,164,52,180,43,143,+246,103,213,55,47,26,202,178,194,88,18,61,128,220,241,134,69,221,110,188,2,99,235,212,28,86,119,56,171,78,68,166,+140,38,175,234,47,79,248,20,253,214,171,254,74,239,3,251,48,138,88,119,27,150,119,246,176,98,91,178,2,209,27,18,+156,53,53,43,173,2,43,56,32,43,180,199,170,163,181,91,5,158,209,52,148,26,54,2,55,124,30,70,75,255,207,181,+184,182,108,121,126,124,82,199,126,107,57,147,246,222,225,63,158,221,58,19,141,27,214,63,38,75,237,92,232,24,222,241,+90,55,209,179,230,59,80,180,216,190,190,157,3,53,138,238,37,211,120,100,35,251,203,80,162,88,75,173,211,177,32,71,+73,197,165,60,138,132,139,167,7,126,222,167,214,255,158,112,168,2,175,163,230,46,109,67,133,87,10,232,101,246,41,94,+41,10,249,230,185,247,56,136,190,51,215,26,46,187,78,12,241,96,187,11,225,214,26,116,32,62,152,63,81,32,78,191,+101,167,252,28,237,4,179,87,177,128,161,78,32,220,26,189,180,35,44,74,153,160,246,165,49,20,115,242,5,126,182,183,+68,216,250,31,2,68,240,126,207,96,142,234,157,67,180,171,246,230,26,152,137,5,80,60,196,210,32,210,87,175,163,244,+85,200,239,140,168,170,111,47,25,198,211,165,127,108,229,129,151,91,244,16,82,6,238,102,192,199,5,17,32,210,178,88,+94,45,212,255,221,77,8,160,192,189,230,108,112,80,196,51,113,107,226,115,26,229,163,0,215,214,194,158,4,104,131,94,+121,22,201,19,176,5,101,153,226,91,169,85,14,19,44,46,99,52,141,193,122,87,45,136,171,82,96,165,212,35,237,57,+115,212,21,221,37,243,176,90,50,46,25,227,107,151,153,198,151,65,83,50,213,156,104,205,116,196,145,177,26,87,83,37,+162,227,201,232,66,248,2,106,38,0,160,75,194,155,189,202,66,62,177,205,21,193,201,78,77,253,22,140,115,220,126,192,+244,43,135,135,160,32,184,249,116,190,3,13,42,170,189,11,8,106,239,71,233,144,224,221,236,228,155,217,241,36,189,72,+207,190,148,193,253,42,55,100,220,1,210,4,230,175,185,209,15,20,70,216,183,206,60,121,13,162,224,165,165,230,198,1,+208,252,93,225,215,209,240,80,178,93,75,20,96,226,122,229,143,233,117,157,197,46,92,122,71,28,14,32,127,74,36,181,+146,207,199,217,228,105,106,203,104,99,116,147,82,124,199,15,21,109,244,34,105,190,101,230,152,110,5,180,255,66,173,153,+64,192,175,180,3,66,36,30,165,200,184,147,157,197,92,211,47,161,224,124,42,148,176,95,55,194,162,38,233,59,203,223,+133,128,129,159,157,169,122,32,30,248,254,49,14,238,29,115,166,200,97,48,24,189,245,9,56,253,130,147,190,238,253,74,+134,26,27,181,38,228,181,39,115,195,193,221,101,176,56,165,24,244,159,59,245,98,10,217,253,110,142,64,239,82,157,46,+0,96,255,214,68,21,84,93,207,34,23,183,40,98,207,3,162,21,233,29,108,245,244,52,49,105,124,204,9,88,20,39,+154,80,38,61,15,27,242,28,229,88,84,92,107,7,153,89,9,251,172,229,119,120,136,227,24,167,121,253,164,9,250,159,+44,203,3,164,221,245,66,161,136,20,78,68,171,206,231,227,195,53,196,138,129,109,97,55,235,116,63,131,10,24,247,245,+82,25,25,58,214,122,25,74,127,239,121,84,145,250,175,64,88,126,163,217,215,231,203,48,19,136,15,160,98,252,128,123,+19,185,113,167,4,220,239,143,101,75,29,232,37,108,70,110,76,252,224,255,110,194,165,178,86,91,95,149,208,165,14,244,+201,33,239,0,138,125,37,139,175,124,213,15,138,151,73,71,44,189,6,74,132,189,133,191,207,196,183,92,169,116,197,198,+179,222,136,39,132,229,68,240,187,253,222,101,130,217,39,68,220,11,46,205,174,247,83,193,133,179,167,218,76,23,0,195,+232,255,160,234,37,225,203,15,18,32,232,81,1,124,22,46,91,30,69,104,209,14,65,206,129,210,197,42,109,103,42,153,+244,26,85,248,0,238,35,237,70,244,192,106,97,62,109,53,58,84,61,225,60,114,167,96,50,240,102,32,109,141,163,54,+146,190,96,113,153,18,163,85,207,126,195,96,242,11,106,15,125,204,2,110,78,145,54,62,145,248,254,230,238,229,94,174,+93,187,150,61,236,138,252,151,28,11,28,183,32,85,10,29,64,174,219,128,77,87,144,14,71,219,152,152,191,242,18,224,+178,66,31,186,15,169,94,26,109,72,229,30,6,11,57,253,53,224,12,9,142,46,82,137,15,45,97,121,223,95,49,199,+51,99,38,224,213,95,210,171,114,231,40,219,117,247,139,61,185,20,2,132,115,160,84,84,7,252,206,113,34,176,95,105,+37,0,225,179,113,182,1,115,109,108,243,238,196,55,93,173,28,105,250,235,227,149,227,86,113,134,254,79,143,103,185,4,+203,247,32,32,70,175,39,109,80,123,245,197,28,4,154,181,192,166,167,227,111,118,20,141,108,102,91,174,31,54,158,31,+64,106,135,51,162,73,136,252,213,206,174,243,111,54,121,123,159,255,52,172,22,239,183,148,145,177,121,136,48,22,0,117,+61,176,74,179,49,9,216,121,2,193,114,72,123,67,207,243,73,25,126,156,18,101,159,51,126,87,48,16,90,214,194,180,+173,177,96,10,157,104,110,131,123,171,234,67,218,191,68,67,95,251,238,196,124,92,139,77,248,200,92,242,74,87,108,170,+59,213,211,156,147,1,42,29,61,66,160,148,198,132,45,221,89,155,122,254,180,178,105,55,17,31,105,174,249,78,212,200,+57,182,143,180,0,30,85,42,68,27,186,235,63,235,222,245,135,77,121,95,240,63,96,128,173,131,232,52,175,48,96,40,+133,145,26,90,43,216,53,27,209,106,12,133,149,158,41,135,90,249,79,172,45,102,177,11,50,108,197,217,92,231,197,22,+238,112,112,38,81,0,245,224,171,41,103,227,129,119,33,206,154,137,46,70,29,47,197,110,130,242,22,140,160,25,92,110,+229,39,238,32,255,44,179,182,210,209,120,103,78,244,60,117,63,151,123,233,178,232,76,7,210,97,78,44,83,198,157,130,+169,110,44,111,42,204,211,87,243,84,221,80,93,94,36,74,2,24,56,199,86,63,76,52,64,250,22,20,235,57,243,149,+103,250,64,211,23,119,51,229,162,240,64,253,36,121,199,143,76,239,126,22,147,24,140,116,243,178,184,252,6,249,60,255,+80,150,210,230,204,65,228,138,5,147,20,132,19,70,115,222,193,171,77,20,104,33,25,59,54,198,96,111,64,188,49,49,+211,144,255,159,101,238,35,194,7,185,154,192,14,240,136,178,21,218,152,222,13,160,113,67,147,10,121,221,93,192,207,22,+235,148,162,175,253,247,188,132,131,130,194,75,166,82,111,58,251,133,57,223,99,236,136,109,175,51,180,86,162,54,187,139,+69,112,106,219,51,105,140,169,29,173,91,134,156,78,58,197,223,198,33,75,131,170,75,228,11,100,248,138,35,242,91,80,+122,75,127,62,92,25,39,249,225,126,199,26,99,92,112,40,55,251,84,99,192,131,122,213,137,95,46,69,221,181,174,34,+195,224,170,214,254,1,148,63,169,43,228,91,239,125,229,44,177,129,179,59,169,243,187,186,50,63,91,43,189,32,118,213,+232,54,69,247,78,65,55,169,242,19,7,50,129,14,75,19,44,197,9,147,208,119,250,226,199,142,43,94,60,152,71,45,+10,35,45,94,160,37,218,166,58,12,114,222,249,34,191,108,48,36,207,27,127,167,87,130,69,199,79,157,155,95,177,42,+2,153,38,208,34,190,252,225,192,97,249,204,211,137,119,4,148,162,100,30,0,225,248,23,247,213,35,38,161,37,138,183,+231,36,110,142,138,176,137,178,172,183,216,203,136,106,204,247,42,247,49,103,151,166,137,167,3,195,208,206,59,162,124,54,+211,216,186,16,143,229,229,114,110,233,155,102,196,77,177,138,140,76,227,97,147,157,105,192,148,228,254,62,13,192,14,72,+254,103,97,124,23,195,4,234,44,228,203,109,100,54,148,91,157,36,0,237,55,74,57,255,86,252,10,59,250,138,94,9,+7,38,215,97,0,223,65,17,43,145,201,52,183,57,221,21,28,104,0,194,88,235,122,86,24,104,145,193,0,0,0,130,+10,98,16,198,80,111,238,65,131,131,113,110,0,0,224,87,67,187,114,180,3,106,86,113,143,49,230,94,0,0,130,10,+97,4,39,106,212,143,45,121,184,153,48,18,146,47,192,240,27,128,166,222,0,191,145,183,199,201,53,102,38,141,84,0,+194,89,8,157,224,250,154,200,106,150,4,192,99,87,88,0,130,14,131,249,237,254,225,174,122,97,229,53,144,72,0,237,+153,123,88,239,158,96,62,54,23,253,211,238,240,209,128,222,119,151,15,192,107,240,60,100,206,59,207,180,63,27,250,246,+196,176,44,169,169,10,137,45,98,39,142,102,117,151,62,45,185,88,0,255,194,162,251,192,171,173,176,72,119,104,38,46,+170,149,236,68,189,108,194,145,186,165,208,47,99,199,47,228,170,142,218,66,35,167,146,169,252,195,68,202,228,92,135,67,+145,137,163,171,3,148,17,93,60,226,190,159,249,225,255,47,80,163,142,5,70,154,53,28,41,39,29,118,248,214,87,33,+125,193,97,210,204,192,50,199,134,218,171,83,179,222,244,224,173,142,248,95,146,150,75,80,74,2,57,217,16,52,240,212,+247,187,35,152,150,133,91,92,179,249,206,254,175,31,166,227,222,143,167,125,240,118,51,34,243,115,30,143,173,247,86,161,+141,209,68,140,31,113,9,179,153,14,49,187,238,29,72,106,219,247,142,230,135,169,216,199,178,33,146,8,250,97,195,200,+104,216,104,151,149,134,223,90,224,106,85,30,147,164,82,135,187,68,191,129,17,201,170,105,50,199,209,208,19,55,168,184,+130,131,209,41,132,222,224,27,89,126,64,145,248,109,97,88,123,49,219,123,109,219,198,44,145,109,108,105,174,229,87,113,+27,172,34,134,1,146,177,50,118,247,236,106,167,179,226,89,237,8,163,212,197,44,45,143,13,63,84,143,124,81,139,156,+66,249,59,21,194,208,115,107,181,121,175,54,251,210,127,141,132,60,108,138,154,78,175,170,5,55,40,25,107,59,29,127,+9,73,82,139,38,185,138,132,90,87,55,225,136,89,245,113,146,107,67,185,201,135,83,133,73,138,77,70,104,77,235,35,+6,55,16,136,126,128,4,255,82,84,174,110,31,141,6,220,175,242,125,207,156,170,220,8,241,234,249,137,242,17,66,241,+160,4,243,121,49,95,205,161,218,81,237,130,22,68,7,13,181,45,36,187,153,168,5,150,255,62,194,64,62,24,120,210,+48,63,24,81,199,99,127,71,53,140,128,249,236,111,46,111,43,2,2,140,34,143,181,25,200,179,203,140,150,238,41,203,+72,103,174,29,199,185,214,230,218,132,229,6,111,177,250,9,23,244,131,135,7,116,142,177,61,0,234,248,65,215,230,191,+254,243,165,58,139,168,195,248,197,127,81,222,136,16,13,42,97,180,18,192,250,35,209,178,235,59,130,227,209,19,49,52,+29,202,141,22,227,1,199,108,22,217,42,63,184,174,240,76,36,24,123,97,116,10,53,50,186,255,194,162,251,192,171,173,+176,72,136,251,61,164,37,118,138,27,252,75,164,12,17,56,15,238,154,163,144,178,69,182,234,10,99,208,179,54,234,121,+84,154,98,148,245,144,48,216,7,68,213,189,9,123,248,138,120,5,25,203,130,79,137,120,108,128,130,176,230,12,239,52,+225,229,179,214,243,164,88,67,252,31,195,81,177,60,53,91,196,243,102,254,76,143,22,154,109,193,157,168,12,202,13,124,+46,161,144,124,11,201,126,72,11,156,129,2,130,132,5,255,242,138,63,182,196,171,111,207,191,208,68,196,15,103,115,44,+83,221,20,215,10,82,62,147,237,185,54,127,88,9,20,72,166,188,142,158,203,162,124,184,100,72,28,102,69,63,221,85,+103,206,82,192,74,39,5,149,159,120,173,18,26,154,158,53,2,251,58,99,245,142,72,85,191,162,211,177,172,131,90,181,+100,25,197,136,74,92,42,66,146,230,13,59,118,181,82,234,203,64,178,238,93,147,234,128,28,86,25,105,106,208,143,78,+113,191,137,2,58,71,153,127,149,149,166,161,74,167,139,187,205,58,40,164,14,189,156,229,23,145,74,147,42,116,223,17,+87,227,154,47,35,187,223,158,145,133,9,75,144,37,18,147,115,218,124,11,167,214,152,88,134,128,229,38,238,13,8,201,+91,72,61,122,69,148,121,150,158,47,92,65,147,138,68,80,60,162,34,63,198,226,81,106,224,39,154,138,105,235,200,95,+166,226,110,18,104,217,107,30,50,148,127,26,91,15,121,73,181,21,80,196,66,57,254,26,130,29,108,91,175,80,4,61,+172,174,77,27,62,27,70,64,10,83,178,194,30,70,151,188,173,188,54,190,134,53,227,198,163,120,217,220,16,167,123,96,+138,11,87,219,62,176,72,137,19,121,45,130,161,251,17,49,195,178,136,242,238,22,46,242,156,137,198,80,216,51,240,236,+45,98,117,84,136,114,254,244,184,44,173,180,79,61,65,66,38,197,181,4,179,36,178,40,118,93,126,0,120,55,144,94,+86,178,106,117,37,254,191,255,91,113,13,208,66,186,231,196,204,116,21,67,172,188,112,202,158,142,22,169,98,106,186,126,+252,209,173,16,37,108,40,249,230,179,164,46,247,71,199,42,121,190,17,28,128,132,233,251,42,59,60,216,178,7,172,37,+197,7,219,231,96,109,225,136,221,217,147,73,238,16,232,2,219,220,49,156,62,210,50,152,245,87,80,104,90,39,53,91,+227,17,141,27,99,188,118,76,34,64,244,235,225,12,6,224,81,109,10,235,189,168,188,137,10,225,99,15,225,97,87,215,+129,18,224,226,5,86,247,119,196,19,248,182,160,125,164,41,153,23,250,1,127,86,79,170,4,47,143,193,169,186,170,82,+143,59,93,86,251,213,209,255,23,72,12,141,43,20,239,22,178,216,159,152,193,70,107,8,97,35,39,107,87,85,231,15,+232,149,102,76,94,43,59,62,244,160,184,98,35,203,228,160,202,185,134,120,142,159,99,51,52,234,163,157,174,62,67,206,+39,203,205,225,58,66,151,92,189,149,152,247,84,129,113,97,125,198,179,216,124,126,177,25,201,102,80,134,160,143,114,228,+207,153,216,76,69,17,55,148,65,72,67,3,145,43,165,178,29,209,76,82,17,235,218,84,0,18,166,176,165,125,24,107,+237,38,251,88,44,88,175,68,3,144,93,184,170,240,57,28,104,124,204,85,71,137,255,164,114,213,165,28,227,63,96,159,+236,206,27,236,107,232,92,174,226,134,153,177,45,206,164,221,97,132,0,195,207,177,45,128,56,63,193,49,4,166,159,61,+79,189,5,33,92,204,164,158,161,123,134,112,121,177,245,217,19,250,102,128,106,252,4,2,109,94,156,106,234,146,92,199,+96,198,103,147,79,65,254,207,83,36,200,233,66,57,72,27,156,32,168,22,65,113,57,247,185,121,23,240,191,133,50,145,+81,3,36,199,67,232,239,46,121,204,87,75,110,144,162,167,156,75,187,22,212,148,204,231,92,111,99,75,219,222,133,5,+200,174,169,31,121,31,143,201,203,64,233,24,249,223,193,244,207,175,172,246,234,148,130,127,68,103,108,117,39,54,106,72,+91,23,229,200,173,154,73,219,12,95,230,221,181,122,89,104,60,199,164,159,74,196,69,197,40,97,209,211,136,171,180,84,+127,175,187,48,147,108,48,141,204,205,189,109,133,221,16,44,179,4,148,113,89,58,241,185,10,196,103,41,248,139,196,79,+226,99,94,148,57,170,130,63,169,190,179,126,45,246,102,149,213,55,231,253,106,110,83,114,78,173,80,17,141,151,190,86,+60,178,117,88,212,66,250,255,167,249,17,139,48,139,134,159,144,84,208,138,176,99,251,141,42,255,70,14,42,240,95,23,+17,207,74,159,233,58,60,11,199,59,62,96,113,139,170,22,65,166,244,216,151,251,181,47,126,115,227,27,10,0,125,96,+89,254,98,235,218,84,116,43,219,214,108,193,226,16,196,2,251,149,1,175,110,11,96,250,83,149,79,38,153,161,35,78,+190,200,9,102,141,195,199,143,41,208,164,130,247,30,105,88,157,253,248,128,143,74,143,105,179,90,33,58,141,102,162,253,+137,160,193,166,82,255,238,29,104,33,13,111,212,246,97,93,229,169,131,73,1,221,151,94,110,101,125,211,187,0,60,126,+231,253,29,228,229,128,171,142,205,33,251,4,134,194,175,193,124,117,188,35,66,76,128,224,170,19,20,200,126,176,132,197,+169,218,199,26,182,54,152,156,168,221,77,210,185,35,96,182,201,196,140,208,249,111,55,67,163,101,254,212,34,53,86,235,+43,250,147,25,28,136,189,169,154,10,114,177,197,191,47,196,93,251,120,149,103,21,62,193,107,36,3,93,232,255,151,87,+32,194,188,162,7,147,83,68,133,12,19,17,107,137,90,213,213,212,124,246,146,60,204,221,25,82,199,11,220,252,56,3,+150,3,26,162,81,82,52,12,98,35,2,123,247,131,168,55,250,204,251,114,76,171,133,90,91,121,163,1,120,177,117,64,+34,195,49,51,100,49,216,82,151,109,160,163,232,58,44,114,31,129,123,215,176,150,156,89,194,245,157,40,213,215,85,238,+25,86,192,81,7,40,48,172,116,193,194,75,200,14,7,32,182,244,251,128,7,134,78,120,225,116,136,154,177,52,195,179,+2,216,130,45,240,100,138,59,175,205,23,20,212,16,45,2,77,251,95,84,224,203,79,241,188,248,51,69,98,118,9,164,+240,63,139,25,104,244,239,91,61,192,240,95,120,189,51,69,230,4,129,89,120,211,101,53,10,89,107,217,16,64,254,204,+123,96,174,75,192,95,160,163,63,79,175,10,116,72,30,168,13,136,0,195,79,65,59,249,104,28,16,23,58,168,112,38,+68,229,38,229,107,53,234,33,236,98,41,163,47,33,148,218,79,36,143,160,179,73,45,182,233,39,112,164,190,154,7,105,+117,247,40,58,44,209,123,62,60,212,68,41,67,68,115,71,33,21,211,142,221,157,241,86,154,250,49,151,82,173,195,25,+74,198,150,113,87,199,20,198,204,22,124,31,148,216,231,181,254,212,34,53,86,231,204,125,80,148,155,54,252,143,56,31,+171,24,146,47,109,0,58,168,76,8,168,65,204,44,81,107,148,138,105,163,102,166,231,208,107,115,104,255,138,202,151,202,+219,19,81,86,221,127,41,39,57,10,16,225,135,208,15,228,56,228,157,13,148,179,182,66,178,4,187,103,52,205,219,181,+143,202,192,100,87,128,194,1,88,102,42,75,59,36,100,245,140,215,235,16,150,153,178,110,95,103,251,103,189,208,69,238,+16,160,208,149,13,158,196,175,61,227,191,82,75,134,203,166,27,81,104,170,201,133,47,226,218,174,9,116,164,11,175,94,+155,253,200,86,166,113,212,0,119,69,48,27,178,2,82,138,223,231,245,104,215,4,67,255,128,61,139,240,58,42,251,27,+140,179,253,214,254,11,242,195,134,15,137,84,47,169,5,15,94,189,8,104,123,228,179,212,216,143,153,201,99,233,155,9,+210,77,167,241,220,92,210,114,95,125,70,5,177,69,218,125,20,140,3,210,163,85,212,89,135,145,6,130,46,247,68,52,+124,125,234,200,145,21,156,25,38,63,116,102,155,93,172,106,255,90,130,50,72,63,253,49,23,154,34,88,56,168,98,145,+31,171,50,0,147,74,220,221,190,67,152,19,78,133,208,190,142,91,218,247,6,184,190,94,192,111,212,235,210,209,84,28,+251,65,53,214,204,223,194,125,117,75,154,100,135,243,160,67,92,99,22,88,228,127,66,57,7,234,188,121,129,158,171,162,+136,238,48,208,117,2,252,85,156,113,90,114,24,102,28,109,10,211,24,167,177,250,121,255,132,120,79,232,8,116,55,228,+30,255,199,117,16,210,164,165,26,198,255,228,45,89,193,114,114,21,154,238,200,187,139,154,193,52,151,241,164,217,13,224,+248,27,178,121,188,136,124,24,236,29,85,225,117,120,92,152,20,120,182,114,109,185,157,93,187,141,3,84,109,50,183,198,+146,113,191,146,231,81,208,210,122,211,178,162,21,99,134,2,152,1,173,189,188,94,246,117,8,237,92,46,187,232,26,219,+143,14,230,253,164,27,149,100,227,77,154,100,11,30,121,153,167,84,5,146,164,172,179,79,197,204,38,182,250,2,255,166,+189,142,148,127,128,105,203,132,165,232,57,150,165,104,1,237,248,38,80,48,29,45,139,16,251,238,97,237,68,232,189,120,+209,137,239,21,217,254,210,14,103,45,246,57,36,161,144,30,124,5,33,32,38,185,70,36,238,104,149,241,81,225,236,218,+223,99,125,76,87,130,0,120,74,140,168,72,61,6,113,177,149,204,5,59,14,70,179,42,83,233,1,255,229,81,154,227,+128,77,212,220,119,111,114,249,210,49,182,181,228,178,96,245,253,156,93,105,6,157,170,106,134,131,217,156,89,192,32,243,+73,138,91,121,142,245,44,34,57,30,124,141,182,213,17,199,215,200,189,206,57,132,85,23,138,38,226,33,163,179,59,117,+188,150,12,90,98,108,161,255,157,22,84,168,142,125,18,12,187,255,132,120,79,232,8,116,55,228,30,255,199,117,16,210,+164,165,26,198,28,95,46,167,255,120,145,240,119,186,185,131,174,151,180,136,149,116,77,209,171,44,229,156,209,27,90,40,+255,71,229,249,173,77,88,62,121,117,27,113,97,56,218,221,89,122,105,63,45,98,9,68,174,38,118,49,65,254,28,74,+184,39,229,76,61,65,127,255,115,234,194,84,253,99,103,160,202,92,252,56,218,57,109,125,49,72,29,67,159,125,189,59,+245,6,46,255,121,188,19,169,147,0,240,25,174,98,169,100,161,157,7,76,4,155,114,181,96,205,22,163,174,132,62,13,+74,206,41,202,10,35,103,177,67,35,213,2,120,107,143,251,158,25,151,152,205,14,8,159,81,177,23,117,228,8,245,86,+153,3,32,240,25,131,230,73,37,108,81,40,194,203,162,215,69,178,170,250,103,54,46,125,53,169,7,1,93,14,130,0,+168,92,125,175,117,46,191,174,126,225,104,206,186,255,213,135,46,99,108,98,237,84,63,79,61,3,101,101,194,24,250,239,+169,7,48,245,66,103,79,0,102,62,33,144,209,2,18,86,173,9,64,211,225,55,68,83,102,157,173,21,124,60,97,237,+152,216,126,158,100,237,120,175,85,230,49,34,224,37,124,16,228,124,7,49,102,187,186,11,37,61,55,197,150,133,224,128,+66,219,111,239,216,68,200,83,164,253,32,89,30,76,107,245,83,156,225,43,54,211,141,210,54,190,152,46,22,21,1,6,+153,217,120,18,220,102,166,188,104,0,112,254,65,116,49,249,117,86,198,183,209,94,45,227,99,173,88,78,96,202,207,215,+100,104,228,99,224,36,217,91,170,198,20,23,216,77,36,212,194,30,6,16,14,101,99,237,200,217,152,141,11,8,238,39,+40,202,185,240,195,161,242,29,225,106,233,76,1,120,223,8,254,251,87,98,242,26,9,59,5,86,214,64,21,3,103,23,+63,35,7,232,167,119,82,253,246,108,37,248,132,81,224,90,223,136,63,136,1,88,36,131,12,166,251,42,225,106,151,73,+56,93,40,138,49,94,226,255,8,160,129,135,242,195,110,152,73,201,166,77,186,235,215,62,177,173,52,169,84,226,236,194,+27,154,254,19,214,63,239,10,94,163,11,30,222,17,105,14,183,90,121,147,9,165,55,147,234,127,185,104,22,3,228,188,+99,40,82,97,120,193,221,221,135,158,236,169,147,11,112,20,232,52,174,141,9,45,153,34,254,22,118,15,26,154,78,20,+76,203,71,182,13,143,217,182,2,110,125,69,238,35,255,252,42,7,175,193,48,198,8,153,38,151,124,163,184,157,208,27,+140,87,177,135,19,109,63,218,83,0,229,109,7,192,75,9,106,123,34,52,205,104,108,192,173,14,120,73,174,254,207,83,+173,62,16,65,199,18,177,75,24,23,152,12,154,110,210,56,244,46,115,210,224,208,148,8,9,205,62,74,171,143,215,127,+223,88,117,111,199,89,49,183,181,93,33,44,253,186,76,175,25,208,52,237,96,237,231,23,226,173,114,210,193,166,180,67,+53,234,208,196,36,85,57,65,186,183,233,121,202,172,228,3,161,200,206,136,174,19,242,233,111,172,75,229,22,72,250,115,+7,119,112,232,151,51,79,181,158,15,202,118,143,173,249,147,108,17,111,201,168,18,18,185,103,53,223,206,55,210,5,105,+100,219,208,161,8,146,187,40,251,210,246,5,26,15,239,126,43,164,124,55,12,150,82,22,193,123,50,17,235,27,163,29,+10,101,84,159,224,174,98,135,177,176,116,77,199,168,114,219,170,87,111,148,149,140,91,160,67,213,237,84,19,242,232,229,+173,124,24,56,253,56,248,60,235,81,143,11,17,11,91,233,216,239,17,166,82,103,10,120,108,213,53,226,163,154,22,46,+215,4,214,181,144,115,247,251,17,164,18,215,114,168,121,43,50,42,18,21,145,140,39,149,241,180,131,173,178,206,114,212,+239,73,38,142,81,229,123,4,19,244,196,51,253,107,244,50,211,166,131,42,64,105,187,178,107,154,131,96,25,82,72,45,+49,245,101,255,34,24,75,252,198,45,184,136,140,123,190,235,54,82,134,251,229,61,61,65,127,122,201,12,45,255,160,85,+101,146,100,128,37,176,5,97,32,129,21,175,73,22,240,226,220,244,237,83,119,141,60,123,23,16,87,102,163,165,139,195,+137,55,56,185,114,254,127,161,181,184,16,114,62,14,190,163,230,25,58,196,209,183,15,100,211,167,80,8,49,180,59,213,+165,235,195,128,83,223,233,254,63,139,65,46,13,47,45,152,237,83,69,197,57,175,21,193,214,61,220,56,169,160,45,251,+9,100,130,108,61,240,82,43,163,74,221,126,202,218,117,17,36,173,153,203,163,122,226,214,191,57,7,0,183,183,146,8,+8,118,142,133,53,2,60,176,77,74,67,170,125,218,114,199,58,249,160,127,244,85,205,69,230,126,195,177,195,74,119,11,+152,150,172,172,168,171,90,176,169,192,84,164,249,129,43,199,205,38,56,146,170,241,33,37,176,252,184,224,252,18,220,140,+116,91,154,118,192,150,119,207,160,221,144,178,70,16,11,154,110,201,134,118,151,71,177,34,100,215,37,44,18,109,24,94,+71,135,47,41,240,94,8,19,255,88,30,245,2,60,124,100,124,151,249,69,237,113,73,91,89,249,64,40,250,76,193,33,+213,20,112,170,45,6,100,98,172,200,191,32,83,70,46,22,194,194,123,77,79,245,121,184,210,131,231,128,236,21,90,229,+232,51,163,93,76,132,142,26,255,20,69,155,255,186,128,48,41,255,216,119,203,222,181,218,7,207,133,116,162,109,201,66,+47,195,199,32,100,47,56,97,175,225,25,142,7,181,125,81,44,166,240,155,132,53,237,95,213,62,183,4,44,90,117,167,+17,249,124,105,136,147,39,122,32,207,60,142,23,24,56,151,5,157,236,85,16,171,191,2,149,241,230,184,132,159,226,60,+184,93,56,66,188,188,182,102,185,138,7,54,113,128,202,91,94,162,9,149,94,238,195,154,86,72,56,11,114,246,119,252,+203,158,159,111,71,188,127,100,226,107,107,218,84,216,205,79,19,24,244,99,217,71,152,205,77,196,203,90,145,227,78,160,+122,185,172,233,244,157,2,215,59,63,191,52,199,219,228,187,254,114,33,255,179,173,55,219,48,163,254,43,175,117,175,92,+105,139,139,243,42,24,38,107,215,61,82,125,252,63,205,243,161,58,78,140,81,215,147,248,8,156,227,184,85,251,41,152,+112,204,201,151,196,148,148,142,228,6,227,13,83,74,102,138,133,18,118,35,175,74,23,16,167,15,110,208,36,97,234,106,+230,19,103,77,147,119,60,190,116,232,242,233,44,57,181,201,79,84,14,195,73,161,21,25,160,37,26,29,114,39,136,24,+182,65,154,55,249,178,15,140,217,115,109,39,248,227,143,69,72,151,136,188,104,38,57,242,106,218,122,228,147,186,157,119,+131,16,240,50,169,46,168,229,98,242,199,158,47,154,132,57,254,134,40,210,230,214,161,41,13,54,78,10,146,169,26,197,+198,174,247,18,57,78,32,209,195,15,141,117,120,165,225,146,143,228,145,165,113,30,177,20,168,179,222,192,193,103,241,54,+130,228,29,84,212,27,6,191,204,141,79,70,222,91,56,57,49,146,90,148,129,154,206,17,238,174,5,16,19,142,178,38,+243,101,199,178,180,125,6,168,199,59,12,98,30,2,96,227,184,85,118,156,139,79,41,71,88,132,215,179,4,69,227,231,+141,149,158,66,29,22,161,72,19,190,99,190,101,174,37,169,50,13,95,216,200,254,55,30,112,71,216,130,188,0,73,183,+63,253,37,246,136,80,181,186,233,190,249,186,202,132,127,143,232,254,72,183,83,8,38,51,122,62,132,163,239,178,81,162,+3,49,126,94,78,24,213,132,137,7,248,228,183,221,46,41,102,1,221,233,115,201,140,133,226,224,207,1,208,227,238,43,+187,208,248,128,35,125,173,84,218,185,0,205,103,6,213,70,97,161,37,92,59,170,32,195,56,122,3,114,89,48,135,85,+246,41,108,184,68,30,132,76,164,101,129,65,148,206,200,54,242,32,97,51,210,141,53,242,189,48,224,225,44,142,8,137,+183,195,57,180,237,81,117,138,243,244,140,251,231,42,10,207,102,224,97,253,20,213,236,241,39,116,200,255,197,241,230,231,+17,35,208,130,77,117,211,174,108,199,12,159,223,207,246,160,192,247,28,225,4,222,5,165,99,15,73,114,108,56,97,249,+201,178,239,203,131,217,16,152,213,112,72,73,40,159,112,13,26,106,101,39,215,201,139,78,179,135,248,149,185,21,128,30,+143,84,120,20,27,200,133,129,231,242,43,7,52,121,65,215,142,204,35,132,30,202,163,9,121,19,6,189,186,50,252,153,+187,176,205,236,35,80,0,174,179,35,149,0,170,150,55,170,6,74,160,76,16,204,133,70,19,209,51,159,156,142,82,35,+159,136,168,255,179,236,211,165,52,112,68,13,233,206,120,119,120,241,17,61,125,184,141,26,51,17,93,86,93,14,121,138,+31,229,49,234,75,151,21,9,121,30,5,52,0,140,196,250,220,104,67,45,199,112,21,22,116,195,191,254,234,19,170,240,+30,222,107,167,14,9,12,242,10,236,177,117,197,24,175,189,212,64,165,127,233,175,247,12,232,199,162,116,77,13,139,106,+35,246,100,247,30,228,77,181,1,103,159,169,7,126,88,87,245,132,163,95,175,226,100,113,177,170,4,72,70,125,187,42,+21,189,129,179,221,230,3,6,91,243,40,161,116,130,193,97,233,69,35,185,195,45,109,210,157,51,35,167,156,155,124,205,+121,225,253,254,138,242,26,124,7,182,127,244,26,122,75,57,221,135,113,171,210,154,164,22,196,113,142,51,234,153,0,230,+71,83,240,83,98,68,105,87,2,248,222,131,241,238,234,183,19,44,31,2,168,18,32,226,254,40,55,161,114,221,205,132,+45,202,206,72,41,49,201,72,125,183,20,179,19,121,220,99,167,252,39,40,241,76,131,241,124,50,46,102,141,8,209,246,+208,144,250,214,30,170,31,103,213,52,131,245,217,153,79,26,202,178,254,72,133,118,233,139,54,28,44,101,149,166,17,124,+15,64,25,31,92,194,241,73,28,104,48,161,19,72,142,81,15,171,21,233,60,171,159,113,254,61,90,14,35,238,102,50,+76,244,174,177,253,154,10,212,144,82,134,117,140,182,13,100,223,240,209,107,253,11,213,171,144,98,32,153,203,113,175,196,+233,190,182,254,183,224,200,149,80,61,58,40,23,196,135,27,244,159,159,82,196,237,119,249,22,130,108,69,131,164,158,38,+149,107,253,67,28,107,7,213,57,85,137,55,175,107,205,224,31,29,147,249,210,18,119,80,210,170,225,8,251,27,118,131,+214,255,253,11,162,154,27,33,40,138,78,31,208,168,113,242,224,168,221,32,252,97,106,14,112,214,240,130,24,255,16,37,+7,148,28,80,10,115,72,227,184,51,153,88,254,20,235,157,166,14,95,22,62,218,181,143,156,129,1,1,44,98,96,167,+126,204,144,140,79,248,232,152,59,162,151,125,184,47,150,142,56,254,253,146,149,20,232,129,226,181,187,87,139,40,123,212,+28,219,230,99,225,16,30,210,115,67,251,51,97,124,36,84,176,127,15,249,36,85,198,76,76,146,82,92,84,97,1,195,+206,13,99,95,75,154,88,154,143,177,5,144,124,175,142,21,61,238,168,166,234,102,176,185,201,44,45,135,190,247,15,200,+80,212,120,164,70,27,170,26,161,135,116,159,129,195,55,48,26,120,162,26,143,28,155,93,47,64,16,88,203,214,147,189,+187,210,226,148,203,7,50,210,77,15,126,89,153,167,18,169,63,178,77,240,194,58,66,187,36,85,16,81,152,12,225,149,+63,238,105,30,243,175,177,239,32,221,35,139,43,157,251,75,157,151,123,132,86,77,229,236,80,179,186,88,244,62,168,225,+220,61,230,185,204,204,148,42,204,146,3,202,177,221,227,39,163,203,86,247,116,188,28,16,17,211,146,133,124,213,117,204,+248,66,215,52,216,52,77,154,11,150,16,128,123,213,169,201,17,173,83,177,35,60,72,191,94,6,222,218,247,242,164,148,+11,73,11,211,242,194,129,108,170,0,13,78,127,170,161,143,82,116,28,13,240,47,174,229,155,111,160,126,106,93,114,157,+91,63,144,167,0,148,242,135,197,243,71,231,15,181,25,255,253,196,182,94,73,246,120,227,182,215,193,74,188,187,196,254,+214,177,122,126,98,68,253,162,231,235,203,3,226,30,196,194,47,81,139,132,176,104,30,135,91,110,187,150,60,96,82,146,+17,11,13,186,71,58,129,153,79,210,229,69,115,21,18,22,228,229,241,111,238,240,63,127,178,219,199,12,176,237,98,109,+23,110,2,203,220,195,208,74,182,72,238,83,149,116,52,246,112,29,186,34,154,178,184,108,50,105,94,111,165,27,74,7,+44,206,108,197,45,25,74,208,30,89,249,63,131,208,147,162,146,185,245,209,2,168,224,83,46,37,114,133,111,144,26,228,+228,79,253,74,8,43,167,9,134,127,49,39,96,150,105,229,24,174,130,200,76,95,82,37,192,233,52,74,110,154,26,237,+152,13,184,99,121,8,61,87,188,15,208,54,255,131,204,53,34,177,220,25,86,165,58,196,57,21,116,239,82,0,142,195,+63,79,162,47,206,12,88,205,97,206,40,245,16,166,25,168,225,247,87,130,202,157,126,36,108,242,249,194,86,225,77,168,+240,163,226,72,110,120,176,62,41,10,166,243,148,251,53,193,209,42,229,42,170,0,154,152,122,71,194,183,233,253,4,8,+13,8,184,181,169,185,114,250,215,181,43,18,211,81,248,210,201,214,178,42,44,137,232,12,7,190,170,227,64,73,161,95,+163,36,234,91,166,0,0,0,0,+};diff --git a/games/buckshot/src/assets.h b/games/buckshot/src/assets.hnew file mode 100644index 00000000..0d8fb5cd--- /dev/null+++ b/games/buckshot/src/assets.h@@ -0,0 +1,400 @@+/* Generated by tools/pack.py from assets/: do not edit. */+#ifndef BR_ASSETS_H+#define BR_ASSETS_H+#include <stdint.h>++typedef struct {+ int16_t x, y;+ uint16_t w, h;+ uint32_t off; /* top bit: stored at half size, drawn doubled */+} img_t;++enum {+ IMG_PL_TABLE,+ IMG_PL_DEALER,+ IMG_PL_HEALTH,+ IMG_PL_SHELLS,+ IMG_PL_WAIVER,+ IMG_PL_DON,+ IMG_PL_CAR,+ IMG_PL_ZAIM,+ IMG_PL_BATH,+ IMG_PL_REVIVE,+ IMG_PL_HALL,+ IMG_PL_HEAVEN,+ IMG_LOGO,+ IMG_T_GRID,+ IMG_D_GRID,+ IMG_T_GUN,+ IMG_T_GUNSAW,+ IMG_T_BOX,+ IMG_T_PCUFF,+ IMG_T_HANDS,+ IMG_T_CUFFED,+ IMG_T_HEAD0,+ IMG_T_HEAD1,+ IMG_T_HEAD2,+ IMG_T_HEAD3,+ IMG_IT0P0,+ IMG_IT0P1,+ IMG_IT0P2,+ IMG_IT0P3,+ IMG_IT0P4,+ IMG_IT0P5,+ IMG_IT0P6,+ IMG_IT0P7,+ IMG_IT0D0,+ IMG_IT0D1,+ IMG_IT0D2,+ IMG_IT0D3,+ IMG_IT0D4,+ IMG_IT0D5,+ IMG_IT0D6,+ IMG_IT0D7,+ IMG_IT1P0,+ IMG_IT1P1,+ IMG_IT1P2,+ IMG_IT1P3,+ IMG_IT1P4,+ IMG_IT1P5,+ IMG_IT1P6,+ IMG_IT1P7,+ IMG_IT1D0,+ IMG_IT1D1,+ IMG_IT1D2,+ IMG_IT1D3,+ IMG_IT1D4,+ IMG_IT1D5,+ IMG_IT1D6,+ IMG_IT1D7,+ IMG_IT2P0,+ IMG_IT2P1,+ IMG_IT2P2,+ IMG_IT2P3,+ IMG_IT2P4,+ IMG_IT2P5,+ IMG_IT2P6,+ IMG_IT2P7,+ IMG_IT2D0,+ IMG_IT2D1,+ IMG_IT2D2,+ IMG_IT2D3,+ IMG_IT2D4,+ IMG_IT2D5,+ IMG_IT2D6,+ IMG_IT2D7,+ IMG_IT3P0,+ IMG_IT3P1,+ IMG_IT3P2,+ IMG_IT3P3,+ IMG_IT3P4,+ IMG_IT3P5,+ IMG_IT3P6,+ IMG_IT3P7,+ IMG_IT3D0,+ IMG_IT3D1,+ IMG_IT3D2,+ IMG_IT3D3,+ IMG_IT3D4,+ IMG_IT3D5,+ IMG_IT3D6,+ IMG_IT3D7,+ IMG_IT4P0,+ IMG_IT4P1,+ IMG_IT4P2,+ IMG_IT4P3,+ IMG_IT4P4,+ IMG_IT4P5,+ IMG_IT4P6,+ IMG_IT4P7,+ IMG_IT4D0,+ IMG_IT4D1,+ IMG_IT4D2,+ IMG_IT4D3,+ IMG_IT4D4,+ IMG_IT4D5,+ IMG_IT4D6,+ IMG_IT4D7,+ IMG_IT5P0,+ IMG_IT5P1,+ IMG_IT5P2,+ IMG_IT5P3,+ IMG_IT5P4,+ IMG_IT5P5,+ IMG_IT5P6,+ IMG_IT5P7,+ IMG_IT5D0,+ IMG_IT5D1,+ IMG_IT5D2,+ IMG_IT5D3,+ IMG_IT5D4,+ IMG_IT5D5,+ IMG_IT5D6,+ IMG_IT5D7,+ IMG_IT6P0,+ IMG_IT6P1,+ IMG_IT6P2,+ IMG_IT6P3,+ IMG_IT6P4,+ IMG_IT6P5,+ IMG_IT6P6,+ IMG_IT6P7,+ IMG_IT6D0,+ IMG_IT6D1,+ IMG_IT6D2,+ IMG_IT6D3,+ IMG_IT6D4,+ IMG_IT6D5,+ IMG_IT6D6,+ IMG_IT6D7,+ IMG_IT7P0,+ IMG_IT7P1,+ IMG_IT7P2,+ IMG_IT7P3,+ IMG_IT7P4,+ IMG_IT7P5,+ IMG_IT7P6,+ IMG_IT7P7,+ IMG_IT7D0,+ IMG_IT7D1,+ IMG_IT7D2,+ IMG_IT7D3,+ IMG_IT7D4,+ IMG_IT7D5,+ IMG_IT7D6,+ IMG_IT7D7,+ IMG_IT8P0,+ IMG_IT8P1,+ IMG_IT8P2,+ IMG_IT8P3,+ IMG_IT8P4,+ IMG_IT8P5,+ IMG_IT8P6,+ IMG_IT8P7,+ IMG_IT8D0,+ IMG_IT8D1,+ IMG_IT8D2,+ IMG_IT8D3,+ IMG_IT8D4,+ IMG_IT8D5,+ IMG_IT8D6,+ IMG_IT8D7,+ IMG_DI00,+ IMG_DI01,+ IMG_DI02,+ IMG_DI03,+ IMG_DI04,+ IMG_DI05,+ IMG_DI06,+ IMG_DI07,+ IMG_DI10,+ IMG_DI11,+ IMG_DI12,+ IMG_DI13,+ IMG_DI14,+ IMG_DI15,+ IMG_DI16,+ IMG_DI17,+ IMG_DI20,+ IMG_DI21,+ IMG_DI22,+ IMG_DI23,+ IMG_DI24,+ IMG_DI25,+ IMG_DI26,+ IMG_DI27,+ IMG_DI30,+ IMG_DI31,+ IMG_DI32,+ IMG_DI33,+ IMG_DI34,+ IMG_DI35,+ IMG_DI36,+ IMG_DI37,+ IMG_DI40,+ IMG_DI41,+ IMG_DI42,+ IMG_DI43,+ IMG_DI44,+ IMG_DI45,+ IMG_DI46,+ IMG_DI47,+ IMG_DI50,+ IMG_DI51,+ IMG_DI52,+ IMG_DI53,+ IMG_DI54,+ IMG_DI55,+ IMG_DI56,+ IMG_DI57,+ IMG_DI60,+ IMG_DI61,+ IMG_DI62,+ IMG_DI63,+ IMG_DI64,+ IMG_DI65,+ IMG_DI66,+ IMG_DI67,+ IMG_DI70,+ IMG_DI71,+ IMG_DI72,+ IMG_DI73,+ IMG_DI74,+ IMG_DI75,+ IMG_DI76,+ IMG_DI77,+ IMG_DI80,+ IMG_DI81,+ IMG_DI82,+ IMG_DI83,+ IMG_DI84,+ IMG_DI85,+ IMG_DI86,+ IMG_DI87,+ IMG_D_GUN,+ IMG_D_GUNSAW,+ IMG_D_HEAD,+ IMG_D_HANDS,+ IMG_D_EYES,+ IMG_D_CUFFED,+ IMG_D_GETCUFF,+ IMG_D_ADR0,+ IMG_D_ADR1,+ IMG_D_BEER0,+ IMG_D_BEER1,+ IMG_D_PHONE0,+ IMG_D_PHONE1,+ IMG_D_CIG0,+ IMG_D_CIG1,+ IMG_D_MED0,+ IMG_D_MED1,+ IMG_D_CUFFS0,+ IMG_D_CUFFS1,+ IMG_D_SAW0,+ IMG_D_SAW1,+ IMG_D_SAW2,+ IMG_D_INV0,+ IMG_D_INV1,+ IMG_D_MAG0,+ IMG_D_MAG1,+ IMG_D_MEDFALL,+ IMG_D_GUN_LOAD,+ IMG_D_GUN_LOAD1,+ IMG_D_GUN_AIMP,+ IMG_D_GUN_AIMS,+ IMG_D_GUN_RACK,+ IMG_D_GUN_RACKS,+ IMG_D_GUN_AIMS_SAW,+ IMG_D_GUN_AIMP0,+ IMG_D_GUN_AIMS0,+ IMG_D_GUN_LIFT,+ IMG_D_FLY0,+ IMG_D_FLY1,+ IMG_D_EJECT_L,+ IMG_D_EJECT_B,+ IMG_P_AIMD,+ IMG_P_AIMD_SAW,+ IMG_E_BRIEF0,+ IMG_E_BRIEF1,+ IMG_E_BRIEF2,+ IMG_P_HOLD,+ IMG_P_LBL_DEALER,+ IMG_P_AIMS,+ IMG_P_AIMS_SAW,+ IMG_P_RACK,+ IMG_P_GOD,+ IMG_P_MAG,+ IMG_P_MAG_L,+ IMG_P_MAG_B,+ IMG_P_MAG0,+ IMG_P_SAW0,+ IMG_P_SAW1,+ IMG_P_BEER0,+ IMG_P_BEER1,+ IMG_P_CIG0,+ IMG_P_CIG1,+ IMG_P_PHONE0,+ IMG_P_PHONE1,+ IMG_P_MED0,+ IMG_P_MED1,+ IMG_P_ADR0,+ IMG_P_ADR1,+ IMG_P_INV1,+ IMG_P_EJECT_L,+ IMG_P_EJECT_B,+ IMG_H_FRAME,+ IMG_H_SYM0,+ IMG_H_SYM1,+ IMG_H_SYM2,+ IMG_H_SYM3,+ IMG_H_SYM4,+ IMG_H_SYM5,+ IMG_H_SYM6,+ IMG_H_SYM7,+ IMG_H_SYM8,+ IMG_H_SYM9,+ IMG_H_SYM10,+ IMG_H_SYM11,+ IMG_H_SKULL0,+ IMG_H_SKULL1,+ IMG_H_SKULL2,+ IMG_H_SKULL3,+ IMG_H_ROUND0,+ IMG_H_ROUND1,+ IMG_H_ROUND2,+ IMG_H_ROUND3,+ IMG_H_ENDLESS0,+ IMG_H_ENDLESS1,+ IMG_H_ENDLESS2,+ IMG_H_ENDLESS3,+ IMG_H_ERR_P,+ IMG_H_ERR_D,+ IMG_C_FRAME,+ IMG_C_SYM0,+ IMG_C_SYM1,+ IMG_C_SYM2,+ IMG_C_SYM3,+ IMG_C_SYM4,+ IMG_C_SYM5,+ IMG_C_SYM6,+ IMG_C_SYM7,+ IMG_C_SYM8,+ IMG_C_SYM9,+ IMG_C_SYM10,+ IMG_C_SYM11,+ IMG_S_L0,+ IMG_S_B0,+ IMG_S_L1,+ IMG_S_B1,+ IMG_S_L2,+ IMG_S_B2,+ IMG_S_L3,+ IMG_S_B3,+ IMG_S_L4,+ IMG_S_B4,+ IMG_S_L5,+ IMG_S_B5,+ IMG_S_L6,+ IMG_S_B6,+ IMG_S_L7,+ IMG_S_B7,+ IMG_B_PILLS,+ IMG_COUNT+};+enum {+ C_BLACK = 1,+ C_WHITE = 2,+ C_GREY = 3,+ C_DARK = 4,+ C_RED = 5,+ C_BLUE = 6,+ C_DOT = 7,+ C_YELLOW = 8,+};+#define PAL_COUNT 76+extern const img_t art_img[IMG_COUNT + 1];+extern const uint8_t art_data[];+extern const uint32_t art_pal[PAL_COUNT];+extern const int16_t slot_rect[2][8][4];+extern const int16_t dslot_rect[8][4];+#endifdiff --git a/games/buckshot/src/font.c b/games/buckshot/src/font.cnew file mode 100644index 00000000..f4eff83b--- /dev/null+++ b/games/buckshot/src/font.c@@ -0,0 +1,19 @@+/* Generated by tools/font.py: Fake Receipt (Ray Larabie, Typodermic Fonts) and+ * Dot Matrix (Dionaea), 1 bit per pixel. Characters 32 to 95. */+#include <stdint.h>+#include "font.h"+static const uint8_t font_small_bits[] = {0,0,0,0,0,0,0,0,4,2,129,64,0,0,8,0,133,66,1,0,0,0,0,128,66,241,81,40,62,10,5,128,224,40,56,40,148,7,1,48,89,16,8,4,129,32,147,16,20,10,146,71,33,97,1,16,8,4,1,0,0,0,0,16,4,129,64,32,32,32,0,2,2,1,129,64,16,8,2,66,197,65,32,56,42,4,0,0,64,32,124,8,4,0,0,0,0,0,0,6,2,1,0,0,0,0,31,0,0,0,0,0,0,0,0,128,96,0,64,16,8,2,65,32,8,4,28,137,78,101,18,73,56,0,4,3,129,64,32,16,28,0,7,36,2,64,0,0,129,143,35,2,112,64,34,1,7,128,225,80,36,18,31,4,2,240,9,4,30,0,72,192,1,112,4,2,143,68,36,225,0,124,16,8,2,129,64,32,0,28,145,136,35,18,9,56,0,142,64,36,226,129,32,28,0,0,128,96,0,24,12,0,0,0,96,48,0,12,4,2,0,128,32,8,0,2,2,2,0,0,0,62,128,15,0,0,0,4,4,4,4,1,0,0,56,34,0,4,1,0,32,0,28,137,72,165,209,8,120,0,142,68,36,18,249,68,34,145,71,36,144,120,4,34,145,135,35,18,8,4,2,17,7,224,17,137,68,34,145,72,224,241,9,4,2,143,64,32,240,249,4,2,143,64,32,16,8,56,2,129,64,39,18,113,0,34,145,200,39,18,137,68,2,14,2,129,64,32,16,28,0,14,2,129,64,36,10,6,64,36,81,24,28,10,133,68,36,16,8,4,2,129,64,224,19,217,108,54,159,74,36,18,137,76,38,149,74,38,19,137,56,18,145,72,36,146,112,0,30,137,72,36,241,8,4,2,142,72,36,18,169,52,60,128,71,34,18,73,60,18,137,136,35,18,24,48,34,1,7,224,67,32,16,8,4,2,1,16,137,68,34,145,72,194,1,136,68,34,145,132,194,64,0,68,34,145,74,165,114,121,40,34,10,7,129,96,80,36,34,145,132,194,64,32,16,8,128,15,2,65,32,8,4,129,143,67,32,16,8,4,2,7,32,32,16,16,8,8,4,4,226,64,32,16,8,4,194,1,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,124};+static const uint16_t font_small_off[] = {0,63,126,189,252,315,378,441,504,567,630,693,756,819,882,945,1008,1071,1134,1197,1260,1323,1386,1449,1512,1575,1638,1701,1764,1827,1890,1953,2016,2079,2142,2205,2268,2331,2394,2457,2520,2583,2646,2709,2772,2835,2898,2961,3024,3087,3150,3213,3276,3339,3402,3465,3528,3591,3654,3717,3780,3843,3906,3969};+static const uint8_t font_small_w[] = {7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7};+static const uint8_t font_small_adv[] = {7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7};+const font_t font_small = {9, font_small_bits, font_small_off, font_small_w, font_small_adv};+static const uint8_t font_big_bits[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,4,8,16,32,64,0,0,0,0,4,0,104,208,160,65,3,0,0,0,0,0,0,0,0,128,4,13,26,126,104,144,160,241,135,6,13,26,0,16,96,224,161,193,7,30,36,104,124,96,64,0,192,136,25,19,16,48,32,96,64,64,142,156,57,0,8,56,80,160,128,136,9,29,26,100,200,96,2,0,3,4,8,8,16,48,0,0,0,0,0,0,0,0,192,64,192,128,0,1,2,12,16,32,128,1,128,0,0,12,16,96,192,128,1,1,3,3,2,0,16,32,80,195,3,3,2,4,62,212,32,64,0,0,0,0,0,8,16,96,248,131,0,1,2,0,0,0,0,0,0,0,0,0,0,28,48,96,64,0,0,0,0,0,0,0,0,248,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,112,224,0,0,8,24,16,16,48,32,96,64,64,128,128,1,0,120,152,16,35,103,203,146,35,67,68,216,224,1,0,1,2,14,24,16,32,64,128,0,1,2,30,0,120,152,17,50,4,6,0,6,6,6,28,249,3,128,135,0,49,96,120,128,1,51,68,140,9,30,0,112,224,96,97,67,134,136,25,127,96,192,128,1,192,143,0,1,3,126,128,0,3,68,12,0,30,0,120,24,16,48,192,135,8,49,67,196,152,224,1,192,15,24,16,32,32,64,192,128,0,1,2,4,0,120,152,17,34,134,135,16,33,67,196,136,224,1,128,135,8,49,67,132,136,225,3,4,12,8,30,0,0,0,0,192,1,3,6,0,28,56,112,0,0,0,0,0,0,28,48,96,0,192,1,3,6,4,0,0,0,0,1,129,1,0,1,12,48,0,0,1,0,0,0,0,0,252,0,0,240,7,0,0,0,0,0,0,16,192,0,3,0,16,16,24,0,48,0,128,7,144,33,96,96,0,64,0,0,0,0,4,0,120,152,16,51,68,137,146,53,59,4,8,224,3,128,135,9,49,67,132,8,241,51,100,136,144,33,0,124,136,17,34,198,135,8,49,67,132,24,240,1,128,7,1,33,2,4,8,16,32,64,140,1,30,0,124,136,17,50,68,136,16,33,67,198,156,248,1,192,143,0,1,3,126,8,16,48,96,192,145,63,0,252,8,16,48,224,135,0,1,3,6,12,24,0,128,129,15,1,3,4,8,208,51,68,136,25,30,0,132,8,17,50,228,143,24,33,67,134,12,25,2,128,7,6,4,8,16,32,64,128,0,1,2,30,0,112,224,129,1,3,6,12,24,51,36,104,96,0,64,136,0,25,10,14,56,208,48,97,198,152,33,0,4,8,16,32,64,128,0,1,2,4,24,241,3,64,136,24,51,119,236,248,89,50,100,200,144,33,0,132,24,49,242,100,137,20,57,115,198,12,25,2,128,135,9,49,67,134,8,25,50,68,140,9,30,0,124,136,16,51,68,140,8,31,3,6,8,24,0,128,135,16,33,67,132,8,25,178,100,143,28,62,0,124,136,16,51,68,140,8,31,51,70,136,25,2,128,135,9,33,3,12,112,128,49,68,140,8,30,0,252,96,64,128,0,1,2,4,8,16,32,64,0,64,136,144,33,67,134,8,25,50,68,140,8,30,0,132,8,17,50,100,136,24,17,38,56,96,64,0,64,136,144,33,75,148,44,89,242,197,143,13,19,0,132,136,49,193,1,1,6,14,52,68,136,25,2,64,136,24,17,52,56,96,64,128,0,1,2,4,0,252,128,1,1,3,2,2,6,4,12,56,249,3,128,7,3,2,4,8,16,32,64,128,0,3,30,0,0,12,48,64,0,1,6,8,48,64,128,1,2,0,0,15,24,48,96,192,128,1,3,2,12,30,0,48,240,24,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127};+static const uint16_t font_big_off[] = {0,108,216,324,432,540,648,756,864,972,1080,1188,1296,1404,1512,1620,1728,1836,1944,2052,2160,2268,2376,2484,2592,2700,2808,2916,3024,3132,3240,3348,3456,3564,3672,3780,3888,3996,4104,4212,4320,4428,4536,4644,4752,4860,4968,5076,5184,5292,5400,5508,5616,5724,5832,5940,6048,6156,6264,6372,6480,6588,6696,6804};+static const uint8_t font_big_w[] = {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9};+static const uint8_t font_big_adv[] = {9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9};+const font_t font_big = {12, font_big_bits, font_big_off, font_big_w, font_big_adv};+static const uint8_t font_dot_bits[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,24,134,97,24,134,97,24,6,0,0,134,1,0,0,0,0,0,128,49,198,24,99,140,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,49,192,25,64,12,252,31,86,11,136,1,196,192,106,225,255,128,24,224,12,32,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,192,0,106,224,15,0,96,0,12,0,62,192,7,0,3,96,0,0,127,64,5,112,0,4,0,0,0,0,0,0,0,0,0,0,0,0,120,48,124,24,20,8,31,6,0,0,96,0,48,0,6,0,3,32,0,56,0,2,132,193,131,96,97,240,48,120,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,96,0,136,0,198,0,34,128,49,192,8,128,1,192,0,24,33,140,25,4,0,131,1,129,0,159,1,141,0,0,0,0,0,0,0,0,0,128,97,24,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,48,208,224,0,129,1,6,24,96,128,1,6,0,0,1,4,192,0,3,0,0,0,0,0,0,0,0,24,96,128,5,56,64,0,12,48,192,0,3,12,48,0,64,0,129,1,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,96,0,16,0,24,0,12,240,127,248,63,32,6,56,3,0,132,1,131,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,192,0,32,0,48,0,8,224,255,240,127,0,1,128,1,64,0,96,0,16,0,0,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,133,143,133,135,7,6,6,128,129,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,31,254,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,0,60,60,0,0,0,0,0,0,0,0,0,0,6,0,3,0,1,192,0,0,0,12,0,6,192,0,96,0,4,0,2,0,0,48,0,24,0,12,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,4,56,16,97,12,17,198,24,99,140,49,198,24,67,132,49,68,224,0,1,0,0,0,0,0,0,0,0,0,1,14,20,248,0,1,14,16,224,128,1,4,56,64,128,3,4,254,248,3,0,0,0,0,0,0,0,0,0,240,0,31,16,12,131,1,48,0,6,192,0,6,192,0,2,224,0,0,96,0,12,128,255,240,31,0,0,0,0,0,0,0,0,0,0,0,192,7,248,128,96,24,12,128,1,48,0,6,48,0,6,0,3,96,0,12,131,65,48,240,1,60,0,0,0,0,0,0,0,0,0,0,0,0,240,0,30,16,3,103,0,12,131,65,48,252,135,255,0,24,0,3,96,0,12,128,1,48,0,6,0,0,0,0,0,0,0,0,0,0,0,252,135,255,48,0,6,128,0,248,3,106,0,48,0,6,192,0,24,0,195,96,16,12,124,0,15,0,0,0,0,0,0,0,0,0,0,0,0,15,240,1,1,48,0,4,192,31,88,1,131,97,48,12,134,193,32,24,6,131,96,192,3,120,0,0,0,0,0,0,0,0,0,0,0,0,255,225,63,0,6,192,0,24,0,3,96,0,3,96,0,1,48,0,0,48,0,6,192,0,24,0,0,0,0,0,0,0,0,0,0,0,0,192,3,124,64,48,12,6,193,48,24,6,3,31,224,3,131,97,48,8,134,193,32,16,248,0,30,0,0,0,0,0,0,0,0,0,0,0,0,30,224,3,130,97,48,8,134,193,48,24,6,195,96,64,13,252,1,48,0,6,192,192,7,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,24,0,0,0,128,97,0,0,0,0,0,0,0,0,0,0,0,0,0,16,16,0,0,0,0,0,16,16,6,6,0,0,0,0,0,0,0,0,0,0,0,0,48,192,64,0,129,1,6,64,128,3,20,192,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,143,63,0,0,0,128,63,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,96,0,4,16,0,3,12,4,56,88,96,128,1,0,0,0,0,0,0,0,0,0,128,15,240,1,193,48,24,4,3,96,0,12,120,128,15,32,0,14,0,0,0,0,0,224,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,128,122,1,254,15,0,0,99,0,24,2,0,24,63,198,72,49,198,136,49,70,12,145,2,140,255,64,0,0,3,0,16,0,0,254,15,240,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,240,1,193,48,24,4,195,96,24,12,255,225,63,12,134,193,32,24,6,195,96,24,12,131,1,0,0,0,0,0,0,0,0,0,0,0,127,224,15,12,134,193,32,24,6,195,96,248,3,127,96,48,12,6,193,48,24,4,194,31,248,3,0,0,0,0,0,0,0,0,0,0,0,192,3,124,96,48,12,6,1,48,0,6,192,0,24,0,3,96,0,8,128,193,32,24,248,0,31,0,0,0,0,0,0,0,0,0,0,0,192,31,248,3,130,97,48,8,134,193,48,24,6,195,96,24,12,131,65,48,12,6,193,240,7,254,0,0,0,0,0,0,0,0,0,0,0,0,254,195,127,24,0,3,64,0,12,128,1,240,7,254,192,0,24,0,3,96,0,12,128,255,240,31,0,0,0,0,0,0,0,0,0,0,0,240,31,254,195,0,24,0,2,96,0,12,128,63,240,7,6,192,0,16,0,3,96,0,12,128,1,0,0,0,0,0,0,0,0,0,0,0,0,54,192,7,4,195,96,16,0,3,96,0,140,135,241,48,24,6,131,96,24,12,130,129,63,224,7,0,0,0,0,0,0,0,0,0,0,0,12,134,193,48,24,6,131,96,24,12,131,225,63,252,135,193,48,24,6,195,96,24,12,131,97,48,0,0,0,0,0,0,0,0,0,0,128,63,254,64,128,3,4,56,64,128,3,4,16,224,0,1,14,16,248,227,15,0,0,0,0,0,0,0,0,0,192,15,252,1,12,128,1,16,0,6,192,0,24,0,3,96,0,12,128,0,48,0,2,192,0,24,0,3,96,64,1,124,0,4,0,0,0,192,96,24,12,131,97,48,8,128,49,48,2,62,192,3,24,3,99,64,0,12,134,193,48,24,6,3,0,0,0,0,0,0,0,0,0,0,0,6,192,0,24,0,3,64,0,12,128,1,48,0,6,192,0,24,0,2,96,0,12,128,255,240,31,0,0,0,0,0,0,0,0,0,0,0,0,3,134,1,195,66,225,243,33,64,24,115,140,17,6,12,3,134,1,194,128,65,128,48,96,24,32,12,24,6,8,0,0,0,0,0,0,0,0,0,0,0,0,0,6,12,3,134,5,194,135,67,129,240,97,88,32,140,25,198,12,131,133,193,135,96,97,240,49,80,24,48,12,16,0,0,0,0,0,0,0,0,0,0,0,0,0,30,224,3,2,97,48,8,134,193,48,24,6,195,96,24,12,131,65,48,12,6,193,192,7,240,0,0,0,0,0,0,0,0,0,0,0,0,254,192,31,24,12,131,65,48,12,134,193,240,7,254,192,0,24,0,2,96,0,12,128,1,48,0,0,0,0,0,0,0,0,0,0,0,0,128,7,248,128,96,24,12,130,97,48,12,134,193,48,24,6,195,96,16,12,131,65,32,240,1,60,0,24,0,3,0,0,0,0,0,0,0,128,63,240,7,4,195,96,16,12,131,97,48,252,129,63,48,24,6,131,96,24,12,131,97,48,12,6,0,0,0,0,0,0,0,0,0,0,0,224,7,254,32,0,6,128,0,24,0,3,128,15,240,1,192,0,24,0,3,96,0,12,127,224,15,0,0,0,0,0,0,0,0,0,0,0,0,254,15,255,7,16,0,24,0,4,0,6,0,3,128,1,192,0,96,0,48,0,8,0,12,0,2,0,3,128,1,0,0,0,0,0,0,0,0,0,0,0,0,192,96,24,12,131,97,48,8,134,193,48,24,6,195,96,24,12,131,65,48,12,6,193,192,7,240,0,0,0,0,0,0,0,0,0,0,0,0,96,192,48,96,24,32,12,24,4,8,3,134,1,194,128,97,192,128,24,224,12,32,6,56,3,136,1,48,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,192,128,97,192,48,64,24,112,8,16,6,28,3,132,1,195,128,97,132,48,102,88,32,124,30,22,10,3,134,1,2,0,0,0,0,0,0,0,0,0,0,0,0,128,1,195,128,97,128,48,224,0,0,112,6,16,3,96,0,48,0,98,128,51,0,64,24,112,12,16,6,12,3,6,0,0,0,0,0,0,0,0,0,0,0,0,0,3,134,1,195,0,97,192,1,0,224,12,32,6,192,0,96,0,4,0,7,0,0,48,0,24,0,12,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,224,63,252,7,192,0,24,0,3,96,0,12,96,0,12,32,0,14,0,0,6,192,0,248,15,255,1,0,0,0,0,0,0,0,0,0,192,195,195,192,128,192,192,192,192,192,192,128,192,128,192,199,3,0,0,0,0,0,0,0,0,48,0,24,0,12,0,6,0,8,0,14,0,2,0,12,0,6,0,12,0,6,0,8,0,14,0,2,128,3,128,0,0,0,0,0,0,0,0,0,0,0,128,143,15,4,12,4,14,4,12,4,12,12,4,14,132,15,5,0,0,0,0,0,0,0,64,0,129,1,198,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,255,240,31,0,0,0,0,0};+static const uint16_t font_dot_off[] = {0,345,483,713,1058,1357,1702,2047,2185,2415,2645,2990,3335,3519,3818,4002,4347,4577,4807,5106,5405,5704,6003,6302,6601,6900,7199,7337,7521,7751,7981,8211,8510,8947,9246,9545,9844,10143,10442,10741,11040,11339,11569,11868,12167,12466,12811,13156,13455,13754,14053,14352,14651,14996,15295,15640,15985,16330,16675,16974,17158,17503,17687,17917};+static const uint8_t font_dot_w[] = {15,6,10,15,13,15,15,6,10,10,15,15,8,13,8,15,10,10,13,13,13,13,13,13,13,13,6,8,10,10,10,13,19,13,13,13,13,13,13,13,13,10,13,13,13,15,15,13,13,13,13,13,15,13,15,15,15,15,13,8,15,8,10,13};+static const uint8_t font_dot_adv[] = {15,6,10,15,13,15,15,6,10,10,15,15,8,13,8,15,10,10,13,13,13,13,13,13,13,13,6,8,10,10,10,13,19,13,13,13,13,13,13,13,13,10,13,13,13,15,15,13,13,13,13,13,15,13,15,15,15,15,13,8,15,8,10,13};+const font_t font_dot = {23, font_dot_bits, font_dot_off, font_dot_w, font_dot_adv};diff --git a/games/buckshot/src/font.h b/games/buckshot/src/font.hnew file mode 100644index 00000000..5734f64d--- /dev/null+++ b/games/buckshot/src/font.h@@ -0,0 +1,12 @@+#ifndef BR_FONT_H+#define BR_FONT_H+#include <stdint.h>+/* A 1-bit font (tools/font.py): glyphs 32..95, rows of w bits packed LSB first. */+typedef struct {+ uint8_t h;+ const uint8_t *bits;+ const uint16_t *off;+ const uint8_t *w, *adv;+} font_t;+extern const font_t font_small, font_big, font_dot;+#endifdiff --git a/games/buckshot/src/game.c b/games/buckshot/src/game.cnew file mode 100644index 00000000..bdd2028a--- /dev/null+++ b/games/buckshot/src/game.c@@ -0,0 +1,919 @@+/* The match: rules, the Dealer, and the order of events, following the+ * original's round manager, item manager and Dealer "intelligence".+ *+ * Every action is settled first (shells, charges, items, whose turn is next),+ * the match is saved, and only then is it shown: quitting in the middle of an+ * animation resumes after the action, never before it. */+#include "game.h"+#include "scene.h"+#include "story.h"+#include <eadk.h>++match_t G;+profile_t P;++const char *const ITEM_NAME[IT_COUNT] = {"HAND SAW", "MAGNIFYING GLASS", "BEER", "CIGARETTE PACK", "HANDCUFFS",+ "EXPIRED MEDICINE", "BURNER PHONE", "ADRENALINE", "INVERTER"};+const char *const ITEM_DESC[IT_COUNT] = {+ "SHOTGUN DEALS 2 DAMAGE.",+ "CHECK THE CURRENT ROUND\nIN THE CHAMBER.",+ "RACKS THE SHOTGUN.\nEJECTS CURRENT SHELL.",+ "TAKES THE EDGE OFF.\nREGAIN 1 CHARGE.",+ "DEALER SKIPS THE\nNEXT TURN.",+ "50% CHANCE TO REGAIN 2 CHARGES.\nIF NOT, LOSE 1 CHARGE.",+ "A MYSTERIOUS VOICE GIVES\nYOU INSIGHT FROM THE FUTURE.",+ "STEAL AN ITEM AND\nUSE IT IMMEDIATELY.",+ "SWAPS THE POLARITY OF THE\nCURRENT SHELL IN THE CHAMBER.",+};++/* Story mode: live and blank shells of the five loads of each stage (the+ * last one repeats), starting charges, items drawn before each load. */+static const uint8_t STORY_LOADS[3][5][2] = {{{1, 2}, {3, 2}, {3, 2}, {3, 3}, {5, 2}},+ {{1, 1}, {2, 2}, {3, 2}, {3, 3}, {5, 2}},+ {{1, 2}, {4, 4}, {3, 2}, {4, 2}, {5, 3}}};+static const uint8_t STORY_HP[3] = {2, 4, 6}, STORY_ITEMS[3] = {0, 2, 4};+/* how many of each item a player may hold: story, Double or Nothing */+static const uint8_t CAP[2][IT_COUNT] = {{8, 8, 8, 2, 8, 0, 0, 0, 0}, {3, 3, 2, 1, 1, 1, 1, 2, 8}};++enum { WHO_PLAYER, WHO_DEALER };++uint32_t rnd(uint32_t n) {+ uint32_t x = G.rng ? G.rng : 0x9E3779B9u;+ x ^= x << 13;+ x ^= x >> 17;+ x ^= x << 5;+ G.rng = x;+ return n ? x % n : x;+}++/* ------------------------------------------------------------------ helpers */++static int count(int side, int it) {+ int n = 0;+ for (int g = 0; g < 8; g++) n += G.items[side][g] == it;+ return n;+}++static int free_slots(int side) { return count(side, IT_NONE); }++static void load_counts(int *live, int *blank, int *nitems, int *shuffle) {+ int k = G.load < 5 ? G.load : 4;+ if (G.mode == MODE_STORY) {+ *live = STORY_LOADS[G.stage][k][0];+ *blank = STORY_LOADS[G.stage][k][1];+ *nitems = STORY_ITEMS[G.stage];+ *shuffle = G.stage == 2 && k > 0;+ } else {+ *live = G.don[k][0];+ *blank = G.don[k][1];+ *nitems = G.don[k][2];+ *shuffle = G.don[k][3];+ }+}++static void eject(void) {+ for (int i = 1; i < G.nshell; i++) G.shell[i - 1] = G.shell[i], G.dknown[i - 1] = G.dknown[i];+ if (G.nshell) G.nshell--;+ G.dknown[G.nshell] = 0;+ G.ejected++;+}++/* round 3: at 2 charges or fewer the defibrillator's wire is cut */+static void check_wires(void) {+ if (G.mode != MODE_STORY || G.stage != 2) return;+ for (int s = 0; s < 2; s++)+ if (G.hp[s] > 0 && G.hp[s] <= 2 && !G.wire[s]) {+ G.wire[s] = 2; /* cut requested: done at the start of the next turn */+ G.hp[s] = 1;+ }+}++static void heal(int side, int n) {+ if (G.wire[side]) return;+ G.hp[side] += n;+ if (G.hp[side] > G.maxhp) G.hp[side] = G.maxhp;+}++/* damage to someone: returns 1 if that ended the stage */+static int hurt(int side, int n) {+ G.hp[side] -= n;+ if (G.hp[side] <= 0) {+ G.hp[side] = 0;+ G.phase = side ? PH_STAGE_WON : PH_REVIVE;+ return 1;+ }+ check_wires();+ return 0;+}++/* The end of a turn: the saw wears off, then whoever plays next (or a new load). */+static void end_turn(int player_next) {+ G.sawed = 0;+ G.dturn = 0;+ if (!G.nshell) G.phase = PH_LOAD, G.loaded = 0;+ else G.phase = player_next ? PH_PLAYER : PH_DEALER;+}++static void do_wire_cuts(void) {+ for (int s = 0; s < 2; s++)+ if (G.wire[s] == 2) {+ G.wire[s] = 1;+ int say_it = !P.cut_said;+ P.cut_said = 1;+ save_match();+ anim_wire_cut(s, say_it);+ }+}++/* ------------------------------------------------------------- the player */++static void cursor_desc(void) {+ T.title = 0;+ T.desc = 0;+ if (T.cursor == 8) {+ T.title = "SHOTGUN";+ T.desc = "SHOOTING YOURSELF WITH A BLANK\nSKIPS THE DEALER'S TURN.";+ } else if (T.cursor >= 0) {+ int it = G.items[T.cursor >= 16][T.cursor & 7];+ if (it >= 0) T.title = ITEM_NAME[it], T.desc = ITEM_DESC[it];+ }+}++/* Arrow navigation: the nearest target in that direction (screen positions of+ * the table view; the Dealer's slots sit behind the player's). */+static int nav(int cur, int key, const int *cand, int n) {+ int cx, cy, best = cur, bd = 1 << 30;+ target_pos(cur, &cx, &cy);+ for (int i = 0; i < n; i++) {+ if (cand[i] == cur) continue;+ int x, y;+ target_pos(cand[i], &x, &y);+ int dx = x - cx, dy = y - cy, main, side;+ if (key == KEY_LEFT) main = -dx, side = dy;+ else if (key == KEY_RIGHT) main = dx, side = dy;+ else if (key == KEY_UP) main = -dy, side = dx;+ else main = dy, side = dx;+ if (main <= 0) continue;+ if (side < 0) side = -side;+ int d = main + side * 2;+ if (d < bd) bd = d, best = cand[i];+ }+ /* the shotgun lies in the middle: going from one of your sides to the+ * other stops on it (otherwise it could be out of reach of the arrows) */+ if ((key == KEY_LEFT || key == KEY_RIGHT) && cur < 8 && best < 8 && best != cur) {+ for (int i = 0; i < n; i++)+ if (cand[i] == 8) {+ int gx, gy, bx, by;+ target_pos(8, &gx, &gy);+ target_pos(best, &bx, &by);+ if ((gx - cx) * (gx - bx) < 0) best = 8;+ }+ }+ return best;+}++static int usable(int it) {+ if (it == IT_SAW && G.sawed) return 0;+ if (it == IT_CUFFS && G.dcuffed) return 0;+ return 1;+}++/* The player's choice: returns a slot (0..7) or 8 for the shotgun. The+ * Dealer's items (16+) can be looked at, not used. */+static int choose(int *cur) {+ for (;;) {+ int cand[17], n = 0;+ for (int g = 0; g < 8; g++)+ if (G.items[0][g] >= 0) cand[n++] = g;+ cand[n++] = 8;+ for (int g = 0; g < 8; g++)+ if (G.items[1][g] >= 0) cand[n++] = 16 + g;+ if (*cur < 0 || (*cur != 8 && G.items[*cur >= 16][*cur & 7] < 0)) *cur = 8;+ T.cursor = *cur;+ T.view = *cur >= 16 ? V_DEALER : V_TABLE;+ cursor_desc();+ T.hint = *cur >= 16 ? "THE DEALER'S ITEM DOWN: BACK" : "OK: USE BACK: PAUSE";+ table_show();+ int k = key_wait(-1);+ if (IS_OK(k)) {+ if (*cur == 8 || (*cur < 8 && usable(G.items[0][*cur]))) {+ T.cursor = -1, T.title = T.desc = T.hint = 0;+ return *cur;+ }+ } else if (k == KEY_BACK) {+ app_pause_menu();+ } else if (k >= 0 && k <= KEY_RIGHT) {+ *cur = nav(*cur, k, cand, n);+ }+ }+}++static void use_item(int side, int it, int from);++/* Adrenaline: take one of the Dealer's items within a few seconds and use it. */+static void steal(void) {+ int cand[8], n = 0;+ for (int g = 0; g < 8; g++) {+ int it = G.items[1][g];+ if (it < 0 || it == IT_ADREN || (it == IT_CUFFS && G.dcuffed) || (it == IT_SAW && G.sawed)) continue;+ cand[n++] = 16 + g;+ }+ if (!n) {+ save_match();+ pause_ms(800);+ return;+ }+ int cur = cand[0];+ uint32_t left = 7000;+ T.view = V_DEALER;+ T.rush = 1;+ while (left) {+ T.cursor = cur;+ cursor_desc();+ T.hint = "OK: STEAL";+ table_show();+ int k = key_wait(left < 100 ? left : 100);+ left = left < 100 ? 0 : left - 100;+ if (IS_OK(k)) {+ int g = cur & 7, it = G.items[1][g];+ G.items[1][g] = IT_NONE;+ T.cursor = -1, T.title = T.desc = T.hint = 0;+ T.rush = 0;+ use_item(WHO_PLAYER, it, 8 + g);+ return;+ }+ if (k >= 0 && k <= KEY_RIGHT) cur = nav(cur, k, cand, n);+ }+ /* too slow: the adrenaline is spent */+ T.cursor = -1, T.title = T.desc = T.hint = 0;+ T.rush = 0;+ save_match();+ T.view = V_TABLE;+ table_show();+}++static const char *const SEQ[7] = {"", "SECOND SHELL ...", "THIRD SHELL ...", "FOURTH SHELL ...",+ "FIFTH SHELL ...", "SIXTH SHELL ...", "SEVENTH SHELL ..."};++static const char *phone_message(void) {+ static char msg[48];+ if (G.nshell == 1) return "HOW UNFORTUNATE ...";+ int k = 1 + rnd(G.nshell - 1);+ if (k >= 7) k--;+ int n = 0;+ for (const char *p = SEQ[k]; *p; p++) msg[n++] = *p;+ for (const char *p = G.shell[k] ? "\n... LIVE ROUND." : "\n... BLANK."; *p; p++) msg[n++] = *p;+ msg[n] = 0;+ return msg;+}++/* An item used by the player (side 0) or by the Dealer (side 1), taken from+ * slot `from` (side*8+slot, or -1). The effect is settled and saved, then shown. */+static void use_item(int side, int it, int from) {+ act_t a = {0};+ a.from = from;+ a.live = G.shell[0];+ switch (it) {+ case IT_SAW:+ G.sawed = 1;+ break;+ case IT_BEER:+ if (!side) G.beer_ml += 330;+ eject();+ if (!G.nshell) {+ if (!side) G.phase = PH_LOAD, G.loaded = 0, G.sawed = 0;+ /* the Dealer's turn ends by itself when no shell is left */+ }+ break;+ case IT_CIGS:+ if (!side) G.cigs++;+ heal(side, 1);+ break;+ case IT_CUFFS:+ if (side) G.pcuffed = 1, G.pbreak = 0;+ else G.dcuffed = 1, G.dbreak = 0;+ break;+ case IT_MEDS:+ a.good = rnd(100) < 50;+ if (a.good) {+ heal(side, 2);+ } else if (!G.wire[side] || !side) {+ a.dead = hurt(side, 1);+ }+ break;+ case IT_PHONE:+ if (!side) {+ a.text = phone_message();+ } else if (G.nshell > 2) {+ int k = 1 + rnd(G.nshell - 1);+ if (k == 8) k--;+ G.dknown[k] = 1;+ }+ break;+ case IT_INVERT:+ G.shell[0] = !G.shell[0];+ break;+ case IT_GLASS:+ case IT_ADREN:+ break;+ }+ if (it != IT_ADREN) save_match(); /* adrenaline: settled with what it steals */+ anim_item(side, it, &a);+ if (it == IT_ADREN && !side) steal();+}++/* The shotgun is picked up: aim at the Dealer (up) or yourself (down), fire. */+static void player_shoot(void) {+ int self = anim_player_aim();+ int live = G.shell[0], dmg = G.sawed ? 2 : 1, ended = 0;+ if (live) G.shots++;+ eject();+ if (live) ended = hurt(self ? 0 : 1, dmg);+ if (!ended) end_turn(self && !live);+ save_match();+ anim_player_shot(self, live, dmg, ended);+}++static void player_turn(void) {+ if (G.pcuffed) {+ if (!G.pbreak) {+ /* cuffed: this turn goes to the Dealer */+ G.pbreak = 1;+ G.phase = PH_DEALER;+ save_match();+ anim_player_cuffed(0);+ return;+ }+ G.pcuffed = 0;+ G.pbreak = 0;+ save_match();+ anim_player_cuffed(1);+ }+ do_wire_cuts();+ static int cur = 8;+ for (;;) {+ G.phase = PH_PLAYER;+ save_match();+ view_table();+ int sel = choose(&cur);+ if (sel == 8) {+ player_shoot();+ return;+ }+ int it = G.items[0][sel];+ G.items[0][sel] = IT_NONE;+ use_item(WHO_PLAYER, it, sel);+ if (G.phase != PH_PLAYER) return;+ }+}++/* --------------------------------------------------------------- the Dealer */++enum { UNKNOWN = -1, BLANK = 0, LIVE = 1, SELF = 0, PLAYER = 1 };++/* Double or Nothing: what the Dealer can tell from counting and his phone. */+static int figure_out(void) {+ if (G.dknown[0]) return 1;+ int live = 0, blank = 0;+ for (int i = 0; i < G.nshell; i++) live += G.shell[i], blank += !G.shell[i];+ if (!live || !blank) return 1;+ for (int i = 0; i < G.nshell; i++)+ if (G.dknown[i]) G.shell[i] ? live-- : blank--;+ return !live || !blank;+}++static int coin(void) {+ if (G.mode == MODE_STORY) return rnd(2);+ int live = 0, blank = 0;+ for (int i = 0; i < G.nshell; i++) live += G.shell[i], blank += !G.shell[i];+ if (live == blank) return rnd(2);+ return live > blank;+}++/* the items in the order they were laid on the table */+static int list_items(int side, int *slots) {+ int n = 0;+ for (int s = 0; s < 64 && n < 8; s++)+ for (int g = 0; g < 8; g++)+ if (G.items[side][g] >= 0 && G.seq[side][g] == s) slots[n++] = g;+ /* anything without an order (should not happen) */+ for (int g = 0; g < 8; g++) {+ int in = 0;+ for (int i = 0; i < n; i++) in |= slots[i] == g;+ if (!in && G.items[side][g] >= 0) slots[n++] = g;+ }+ return n;+}++static void dealer_shoot(int who) {+ int live = G.shell[0], dmg = G.sawed ? 2 : 1, ended = 0;+ if (live) G.shots++;+ eject();+ if (live) {+ ended = hurt(who == SELF ? 1 : 0, dmg);+ if (!ended) end_turn(1);+ } else if (who == SELF && G.nshell) {+ /* a blank on himself: he goes again (and a sawn-off barrel stays sawn off) */+ G.phase = PH_DEALER;+ G.dturn = 0;+ } else {+ end_turn(1);+ }+ save_match();+ anim_dealer_shot(who == SELF, live, dmg, ended);+}++static void dealer_turn(void) {+ G.phase = PH_DEALER;+ if (!G.dturn) {+ G.dturn = 1;+ G.d_saw = G.d_meds = 0;+ G.d_knows = 0, G.d_known = UNKNOWN, G.d_target = -1;+ }+ if (G.dcuffed) {+ if (!G.dbreak) {+ /* he tries his handcuffs: this turn is lost */+ G.dbreak = 1;+ G.dturn = 0;+ G.phase = PH_PLAYER;+ save_match();+ anim_dealer_cuffed(0);+ return;+ }+ G.dcuffed = 0;+ save_match();+ anim_dealer_cuffed(1);+ }+ save_match();+ view_dealer();+ pause_ms(600);+ for (;;) {+ do_wire_cuts();+ if (!G.nshell) {+ end_turn(1);+ G.phase = PH_LOAD;+ return;+ }+ if (G.mode == MODE_DON && !G.d_knows) {+ G.d_knows = figure_out();+ if (G.d_knows) G.d_known = G.shell[0], G.d_target = G.shell[0] ? PLAYER : SELF;+ }+ if (G.nshell == 1) G.d_known = G.shell[0], G.d_target = G.d_known ? PLAYER : SELF, G.d_knows = 1;+ int has_cigs = count(1, IT_CIGS) > 0, adren = count(1, IT_ADREN) > 0;+ int slots[16], sides[16], n = list_items(1, slots);+ for (int i = 0; i < n; i++) sides[i] = 1;+ if (adren) {+ int m = list_items(0, slots + n);+ for (int i = 0; i < m; i++) sides[n + i] = 0;+ n += m;+ }+ int want = -1, cuff = 0;+ for (int i = 0; i < n && want < 0; i++) {+ int it = G.items[sides[i]][slots[i]];+ switch (it) {+ case IT_GLASS:+ if (!G.d_knows && G.nshell != 1)+ want = it, G.d_known = G.shell[0], G.d_target = G.d_known ? PLAYER : SELF, G.d_knows = 1;+ break;+ case IT_CIGS:+ if (G.hp[1] < G.maxhp) want = it, has_cigs = 0;+ break;+ case IT_MEDS:+ if (G.hp[1] < G.maxhp && !has_cigs && !G.d_meds && G.hp[1] != 1) want = it, G.d_meds = 1;+ break;+ case IT_BEER:+ if (G.d_known != LIVE && G.nshell != 1) {+ want = it;+ if (G.mode == MODE_DON) G.d_knows = 0, G.d_known = UNKNOWN;+ }+ break;+ case IT_CUFFS:+ if (!G.pcuffed && G.nshell != 1) want = it, cuff = 1;+ break;+ case IT_SAW:+ if (!G.sawed && G.d_known == LIVE) want = it, G.d_saw = 1;+ break;+ case IT_PHONE:+ if (G.nshell > 2) want = it;+ break;+ case IT_INVERT:+ if (G.d_knows && G.d_known == BLANK) want = it, G.d_known = LIVE, G.d_target = PLAYER;+ break;+ }+ }+ (void)cuff;+ int has_saw = 0;+ for (int i = 0; i < n; i++) has_saw |= G.items[sides[i]][slots[i]] == IT_SAW;+ if (want < 0 && !G.d_saw && has_saw && !G.sawed && G.d_known != BLANK) {+ if (coin() == 0) G.d_target = SELF;+ else want = IT_SAW, G.d_saw = 1, G.d_target = PLAYER;+ }+ if (want < 0) break;+ /* his own item if he has one, otherwise the player's, with adrenaline */+ int g = -1, from = 1;+ for (int i = 0; i < 8 && g < 0; i++)+ if (G.items[1][i] == want) g = i;+ if (g < 0) {+ from = 0;+ for (int i = 0; i < 8 && g < 0; i++)+ if (G.items[0][i] == want) g = i;+ if (g >= 0) G.items[0][g] = IT_NONE;+ for (int i = 0; i < 8; i++)+ if (G.items[1][i] == IT_ADREN) {+ G.items[1][i] = IT_NONE;+ use_item(WHO_DEALER, IT_ADREN, 8 + i);+ break;+ }+ } else {+ G.items[1][g] = IT_NONE;+ }+ use_item(WHO_DEALER, want, g >= 0 ? from * 8 + g : -1);+ if (G.phase != PH_DEALER) return;+ }+ if (G.d_target < 0) G.d_target = coin() ? PLAYER : SELF;+ dealer_shoot(G.d_target);+}++/* ---------------------------------------------------------------- loading */++static int deal_one(int side, int from_don, int no_saw) {+ int avail[IT_COUNT], na = 0;+ for (int it = 0; it < IT_COUNT; it++)+ if (CAP[from_don][it] && count(side, it) < CAP[from_don][it] && !(it == IT_SAW && no_saw)) avail[na++] = it;+ return na ? avail[rnd(na)] : -1;+}++/* The items: the player takes them out of the box one at a time. Each one+ * placed is saved, so quitting only replays the ones not taken yet. */+static void deal_items(int n) {+ int from_don = G.mode == MODE_DON;+ int no_saw = G.load == 0 && G.maxhp == 2;+ if (G.loaded == 0) G.deal_left = n, G.deal_spook = 0, G.loaded = 1;+ view_table();+ if (!P.read_items) {+ say("LET'S MAKE THIS A LITTLE\nMORE INTERESTING ...", 3000);+ }+ T.box = 1;+ table_show();+ pause_ms(800);+ if (!P.read_items) {+ static char s[24];+ s[0] = '0' + n;+ const char *t = " ITEMS EACH.";+ int k = 1;+ while (*t) s[k++] = *t++;+ s[k] = 0;+ say(s, 2500);+ say("MORE ITEMS BEFORE\nEVERY LOAD.", 2500);+ P.read_items = 1;+ save_profile();+ } else if (G.mode == MODE_STORY && G.stage == 2 && G.load == 0 && !P.read_items4) {+ say("4 ITEMS EACH.", 2500);+ P.read_items4 = 1;+ save_profile();+ }+ while (G.deal_left) {+ T.hint = "OK: TAKE AN ITEM";+ T.held = -1;+ table_show();+ for (;;) {+ int e = key_wait(-1);+ if (IS_OK(e)) break;+ if (e == KEY_BACK) app_pause_menu(), table_show();+ }+ if (G.mode == MODE_STORY && G.stage == 1 && G.load == 1 && !P.seen_god && G.deal_spook++ == 1) {+ /* a bloody waiver, already signed */+ P.seen_god = 1;+ save_profile();+ anim_god_waiver();+ continue;+ }+ int it = deal_one(0, from_don, no_saw);+ if (it < 0) break;+ T.hint = 0;+ if (!free_slots(0)) {+ say("OUT OF SPACE.", 1800);+ say("HOW UNFORTUNATE ...", 2200);+ break;+ }+ T.held = it;+ /* choose a free slot */+ int cand[8], nc = 0;+ for (int g = 0; g < 8; g++)+ if (G.items[0][g] < 0) cand[nc++] = g;+ int cur = cand[0];+ for (;;) {+ T.cursor = cur;+ T.hint = "OK: PLACE";+ table_show();+ int e;+ while ((e = idle_key()) < 0) {}+ if (IS_OK(e)) break;+ if (e == KEY_BACK) app_pause_menu();+ else if (e >= 0 && e <= KEY_RIGHT) cur = nav(cur, e, cand, nc);+ }+ T.cursor = -1;+ T.hint = 0;+ T.held = -1;+ G.items[0][cur] = it;+ G.seq[0][cur] = G.seqn++;+ G.deal_left--;+ save_match();+ table_show();+ pause_ms(150);+ }+ G.deal_left = 0;+ T.hint = 0;+ T.held = -1;+ /* the Dealer's items */+ for (int k = 0; k < n; k++) {+ if (!free_slots(1)) break;+ int it = deal_one(1, from_don, no_saw);+ if (it < 0) break;+ int fr[8], nf = 0;+ for (int g = 0; g < 8; g++)+ if (G.items[1][g] < 0) fr[nf++] = g;+ int g = fr[rnd(nf)];+ G.items[1][g] = it;+ G.seq[1][g] = G.seqn++;+ }+ pause_ms(450);+ T.box = 0;+ table_show();+ pause_ms(900);+}++static const char *const RULES[INTRO_LINES] = {+ "THE RULES ARE SIMPLE:",+ "SHOOTING YOURSELF WITH\nA BLANK SKIPS MY TURN.",+ "SHOOTING THE DEALER WITH\nA LIVE TAKES THEIR LIFE.",+ "WE WILL PLAY A SERIES\nOF ROUNDS ...",+ "UNTIL WE REACH\nTHE FINAL SHOWDOWN.",+ "THERE, WE WILL DANCE ON\nTHE EDGE OF LIFE AND DEATH.",+ "WIN, AND WALK AWAY WITH\n400,000$ IN CASH.",+ "LOSE, AND WE SELL YOUR\nMANGLED CORPSE FOR PROFIT.",+ "SHALL WE BEGIN?"};+static const uint16_t RULES_MS[INTRO_LINES] = {1900, 3000, 3000, 3000, 3000, 3700, 3700, 3700, 2500};++static void load_start(void) {+ int live, blank, nitems, shuffle;+ load_counts(&live, &blank, &nitems, &shuffle);+ if (G.loaded < 2) {+ /* everyone is uncuffed before a new load */+ G.pcuffed = G.pbreak = G.dcuffed = G.dbreak = 0;+ G.sawed = 0;+ G.dturn = 0;+ view_table();+ table_show();+ pause_ms(600);+ if (nitems) deal_items(nitems);+ /* the shells: shown in the compartment in this order, then shuffled in */+ int n = live + blank;+ for (int i = 0; i < n; i++) G.shown[i] = i < live;+ if (shuffle)+ for (int i = n - 1; i > 0; i--) {+ int j = rnd(i + 1);+ uint8_t t = G.shown[i];+ G.shown[i] = G.shown[j], G.shown[j] = t;+ }+ for (int i = 0; i < n; i++) G.shell[i] = G.shown[i];+ for (int r = 0; r < 2; r++)+ for (int i = n - 1; i > 0; i--) {+ int j = rnd(i + 1);+ uint8_t t = G.shell[i];+ G.shell[i] = G.shell[j], G.shell[j] = t;+ }+ G.nshell = G.nshown = n;+#ifdef BR_DEMO_LIVE+ for (int i = 1; i < n; i++) /* development: a live shell first, for demo recordings */+ if (G.shell[i] && !G.shell[0]) G.shell[i] = 0, G.shell[0] = 1;+#endif+ for (int i = 0; i < 8; i++) G.dknown[i] = 0;+ G.loaded = 2;+ save_match();+ }+ static char text[40];+ const char *msg = text;+ int k = 0;+ text[k++] = '0' + live;+ for (const char *p = live == 1 ? " LIVE ROUND. " : " LIVE ROUNDS. "; *p; p++) text[k++] = *p;+ text[k++] = '0' + blank;+ for (const char *p = blank == 1 ? " BLANK." : " BLANKS."; *p; p++) text[k++] = *p;+ text[k] = 0;+ int ms = 2500;+ if (G.mode == MODE_DON || (G.stage == 2)) {+ msg = 0;+ ms = 1300;+ if (G.mode == MODE_STORY && !P.drill_said) {+ msg = "YOU KNOW THE DRILL.";+ ms = 2500;+ P.drill_said = 1;+ save_profile();+ }+ }+ shells_view(G.shown, G.nshown, msg, ms);+ /* the Dealer loads the shotgun */+ view_dealer();+ int told = -1;+ if (P.loads_told < 2 && G.mode == MODE_STORY) told = P.loads_told++, save_profile();+ anim_dealer_load(G.nshown, told, G.stage > 0 || G.mode == MODE_DON);+ if (P.intro_line < INTRO_LINES && G.mode == MODE_STORY) {+ /* the rules, the first time: each line is remembered once shown */+ while (P.intro_line < INTRO_LINES) {+ int i = P.intro_line;+ say(RULES[i], RULES_MS[i]);+ P.intro_line = i + 1;+ save_profile();+ }+ }+ anim_dealer_rack();+ G.load++;+ G.loaded = 0;+ G.phase = PH_PLAYER;+ view_table();+ table_show();+ pause_ms(300);+}++/* ----------------------------------------------------------------- stages */++static void new_stage(void) {+ int s = G.stage;+ if (!G.keep_items) {+ for (int g = 0; g < 8; g++) G.items[0][g] = G.items[1][g] = IT_NONE;+ G.seqn = 0;+ }+ G.keep_items = 0;+ G.load = 0;+ G.loaded = 0;+ G.deal_left = 0;+ G.nshell = G.nshown = 0;+ G.wire[0] = G.wire[1] = 0;+ G.pcuffed = G.pbreak = G.dcuffed = G.dbreak = 0;+ G.sawed = 0;+ G.dturn = 0;+ G.careful_said = 0;+ if (G.mode == MODE_STORY) {+ G.maxhp = STORY_HP[s];+ } else {+ for (int k = 0; k < 5; k++) {+ int total = 2 + rnd(7), live = total / 2 < 1 ? 1 : total / 2;+ G.don[k][0] = live;+ G.don[k][1] = total - live;+ G.don[k][2] = 2 + rnd(4);+ G.don[k][3] = rnd(2);+ }+ G.maxhp = 2 + rnd(3);+ }+ G.hp[0] = G.hp[1] = G.maxhp;+#ifdef BR_DEALER_HP+ G.hp[1] = BR_DEALER_HP; /* development: a quick win */+#endif+#ifdef BR_PLAYER_HP+ G.hp[0] = BR_PLAYER_HP; /* development: a quick loss */+#endif+}++static void stage_start(void) {+ new_stage();+ G.phase = PH_LOAD;+ G.from_death = 0;+ save_match();+ view_dealer();+ table_show();+ pause_ms(600);+ if (G.mode == MODE_STORY && G.stage == 2) {+ /* the final showdown: no more defibrillators */+ if (!P.read_final) {+ say("LONG LAST, WE ARRIVE\nAT THE FINAL SHOWDOWN.", 4000);+ say("NO MORE DEFIBRILLATORS.\nNO MORE BLOOD TRANSFUSIONS.", 4000);+ say("NOW, ME AND YOU, WE ARE DANCING\nON THE EDGE OF LIFE AND DEATH.", 4800);+ P.read_final = 1;+ save_profile();+ } else {+ say("I BETTER NOT\nSEE YOU AGAIN.", 3000);+ }+ }+ round_indicator();+ health_bootup();+}++static void stage_won(void) {+ if (G.mode == MODE_DON) G.rounds_beat++;+ if (G.stage < 2) {+ G.stage++;+ G.phase = PH_STAGE;+ save_match();+ pause_ms(800);+ health_wins();+ view_dealer();+ anim_dealer_return();+ return;+ }+ if (G.mode == MODE_DON) {+ /* the winnings of these three rounds, settled now: the machine counts them up */+ G.score_before = G.score;+ if (!G.doubled) {+ uint32_t loss = (uint32_t)((uint64_t)G.batch_ms * 40000 / 600000);+ G.score = loss > 69990 ? 10 : 70000 - loss;+ } else {+ G.score = G.score * 2;+ }+ G.doubled = 1;+ G.phase = PH_DON_CHOICE;+ } else {+ G.phase = PH_ENDING;+ }+}++/* ------------------------------------------------------------------- run */++void game_new(int mode) {+ uint32_t seed = G.rng;+ char name[7];+ for (int i = 0; i < 7; i++) name[i] = G.name[i];+ G = (match_t){0};+ for (int i = 0; i < 7; i++) G.name[i] = name[i];+ G.rng = seed ? seed : 1;+ G.mode = mode;+ G.doors = 2;+ for (int g = 0; g < 8; g++) G.items[0][g] = G.items[1][g] = IT_NONE;+ G.phase = PH_STAGE;+}++void game_run(void) {+ table_reset();+ uint64_t t_last = eadk_timing_millis();+ for (;;) {+ uint64_t now = eadk_timing_millis();+ if (G.mode == MODE_DON && !G.doubled) G.batch_ms += (uint32_t)(now - t_last);+ t_last = now;+ save_match(); /* a safe point: resume here */+ switch (G.phase) {+ case PH_STAGE:+ stage_start();+ break;+ case PH_LOAD:+ load_start();+ break;+ case PH_PLAYER:+ player_turn();+ break;+ case PH_DEALER:+ dealer_turn();+ break;+ case PH_STAGE_WON:+ stage_won();+ break;+ case PH_REVIVE:+ if (G.mode == MODE_STORY && G.stage < 2) {+ /* the defibrillator: the same round starts over */+ if (!G.revived) {+ G.revived = 1;+ G.deaths++;+ G.doors += 2;+ for (int g = 0; g < 8; g++) G.items[0][g] = G.items[1][g] = IT_NONE;+ save_match();+ }+ story_revive();+ G.revived = 0;+ G.from_death = 1;+ G.phase = PH_STAGE;+ } else {+ /* true death: the run is over, unless "retry" in heaven */+ G.phase = PH_NONE;+ save_match();+ int retry = story_death();+ if (G.mode == MODE_DON) {+ G.phase = PH_RETRY; /* back to the bathroom, a new run */+ return;+ }+ if (!retry) return;+ for (int g = 0; g < 8; g++) G.items[0][g] = G.items[1][g] = IT_NONE;+ G.phase = PH_REDO;+ }+ break;+ case PH_REDO:+ story_retry();+ G.from_death = 2;+ G.phase = PH_STAGE;+ break;+ case PH_DON_CHOICE:+ if (!story_double_or_nothing()) {+ G.phase = PH_ENDING;+ break;+ }+ G.stage = 0;+ G.keep_items = 1; /* the items stay on the table for the next three stages */+ G.phase = PH_STAGE;+ break;+ case PH_ENDING:+ story_ending();+ G.phase = PH_NONE;+ save_match();+ return;+ default:+ return;+ }+ }+}diff --git a/games/buckshot/src/game.h b/games/buckshot/src/game.hnew file mode 100644index 00000000..bc4564b2--- /dev/null+++ b/games/buckshot/src/game.h@@ -0,0 +1,84 @@+/* Buckshot: the match state, the rules, and what the screens need to know. */+#ifndef BR_GAME_H+#define BR_GAME_H+#include <stdbool.h>+#include <stdint.h>++/* items, in the original's order */+enum { IT_NONE = -1, IT_SAW, IT_GLASS, IT_BEER, IT_CIGS, IT_CUFFS, IT_MEDS, IT_PHONE, IT_ADREN, IT_INVERT, IT_COUNT };+enum { MODE_STORY, MODE_DON };+/* where a saved match resumes. Every action is settled in the match state and+ * saved before it is shown, so quitting in the middle of one resumes after it. */+enum {+ PH_NONE,+ PH_STAGE, /* a round (three per run) starts */+ PH_LOAD, /* items, then the shells of a new load */+ PH_PLAYER,+ PH_DEALER,+ PH_STAGE_WON,+ PH_DON_CHOICE, /* Double or Nothing: winnings counted, the offer */+ PH_ENDING,+ PH_REVIVE, /* died in round 1 or 2: the defibrillator, then the same round again */+ PH_REDO, /* "retry" in heaven: back through the bathroom to the final round */+ PH_RETRY, /* not saved: a new run from the bathroom */+ PH_LAST = PH_REDO+};+/* keys (event numbers); letters typed with Alpha come back as KEY_LETTER + 0..25 */+enum { KEY_LEFT = 0, KEY_UP = 1, KEY_DOWN = 2, KEY_RIGHT = 3, KEY_OK = 4, KEY_BACK = 5, KEY_BACKSPACE = 17, KEY_EXE = 52,+ KEY_LETTER = 100 };+#define IS_OK(k) ((k) == KEY_OK || (k) == KEY_EXE)++typedef struct {+ uint64_t score; /* Double or Nothing: winnings so far */+ uint64_t score_before; /* ... before the last count (the machine counts up from it) */+ uint32_t batch_ms; /* Double or Nothing: time spent on the current three stages */+ uint32_t rng;+ uint8_t mode, stage, load, phase;+ int8_t hp[2], maxhp; /* 0 = player, 1 = Dealer */+ uint8_t wire[2]; /* round 3: defibrillator cut (2 = cut pending) */+ uint8_t nshell, shell[8]; /* remaining shells, shell[0] in the chamber; 1 = live */+ uint8_t shown[8], nshown; /* the load as it was shown in the compartment */+ uint8_t dknown[8]; /* shells the Dealer learned from a burner phone */+ int8_t items[2][8]; /* table slots */+ uint8_t seq[2][8], seqn; /* the order the items were laid on the table */+ uint8_t don[5][4]; /* Double or Nothing: live, blank, items, shown shuffled, per load */+ uint8_t doubled, keep_items;+ uint8_t pcuffed, pbreak, dcuffed, dbreak;+ uint8_t sawed;+ uint8_t loaded; /* PH_LOAD: 0 new, 1 items being dealt, 2 shells in (the Dealer loads) */+ uint8_t deal_left, deal_spook; /* PH_LOAD: items the player still takes from the box */+ uint8_t dturn; /* the Dealer is in the middle of his turn: keeps what he knows */+ int8_t d_knows, d_known, d_target, d_saw, d_meds;+ uint8_t careful_said, revived, ended;+ uint8_t from_death; /* 1 back from a revival, 2 back from heaven */+ char name[7];+ /* statistics for the results */+ uint16_t shots, ejected, doors, cigs, beer_ml, rounds_beat, deaths;+} match_t;++typedef struct {+ uint64_t best; /* best Double or Nothing winnings */+ uint8_t don_unlocked, intro_line, read_items, read_items4, read_final, seen_god, loads_told, cut_said, drill_said;+ uint16_t wins;+ char last_name[7];+} profile_t;++#define INTRO_LINES 9++extern match_t G;+extern profile_t P;+extern const char *const ITEM_NAME[IT_COUNT];+extern const char *const ITEM_DESC[IT_COUNT];++uint32_t rnd(uint32_t n); /* 0..n-1 from the match's generator */+void game_new(int mode);+void game_run(void); /* plays from G.phase until the run ends */+void save_match(void);+void save_profile(void);++/* app services (main.c) */+int key_wait(int ms); /* next key event, or -1 after ms; Home quits */+void pause_ms(int ms); /* wait, handling Home and the pause menu */+int pause_skip(int ms); /* the same, but OK cuts it short: returns 1 if it did */+void app_pause_menu(void); /* Back during play */+#endifdiff --git a/games/buckshot/src/gfx.c b/games/buckshot/src/gfx.cnew file mode 100644index 00000000..3fdc1d3b--- /dev/null+++ b/games/buckshot/src/gfx.c@@ -0,0 +1,241 @@+#include "gfx.h"+#include <eadk.h>++uint8_t gfx_fb[GFX_W * GFX_H];+static uint16_t lut[256];+static uint8_t dimmap[3][256]; /* index -> index of the nearest color at 3/4, 1/2, 1/4 brightness */+static int shake_x, shake_y;++static int nearest(int r, int g, int b) {+ int best = 1, bd = 1 << 30;+ for (int i = 1; i < PAL_COUNT; i++) {+ uint32_t c = art_pal[i];+ int dr = (int)(c >> 16) - r, dg = (int)(c >> 8 & 255) - g, db = (int)(c & 255) - b;+ int d = dr * dr * 3 + dg * dg * 4 + db * db * 2;+ if (d < bd) bd = d, best = i;+ }+ return best;+}++void gfx_init(void) {+ for (int k = 0; k < 3; k++)+ for (int i = 1; i < PAL_COUNT; i++) {+ uint32_t c = art_pal[i];+ int m = 3 - k;+ dimmap[k][i] = nearest((c >> 16) * m / 4, (c >> 8 & 255) * m / 4, (c & 255) * m / 4);+ }+ gfx_light(256, 0, 0);+}++void gfx_light(int light, int flash, int red) {+ for (int i = 0; i < PAL_COUNT; i++) {+ uint32_t c = art_pal[i];+ int r = c >> 16, g = c >> 8 & 255, b = c & 255;+ r = r * light >> 8, g = g * light >> 8, b = b * light >> 8;+ r += (255 - r) * flash >> 8, g += (255 - g) * flash >> 8, b += (255 - b) * flash >> 8;+ if (red) {+ int l = (r * 3 + g * 5 + b * 2) / 10;+ r += ((l * 2 > 255 ? 255 : l * 2) - r) * red >> 8;+ g += (l / 6 - g) * red >> 8;+ b += (l / 6 - b) * red >> 8;+ }+ lut[i] = (uint16_t)((r & 0xF8) << 8 | (g & 0xFC) << 3 | b >> 3);+ }+}++void gfx_shake(int dx, int dy) {+ shake_x = dx;+ shake_y = dy;+}++void gfx_clear(uint8_t c) {+ for (int i = 0; i < GFX_W * GFX_H; i++) gfx_fb[i] = c;+}++static void draw(int img, int dx, int dy, int opaque, const uint8_t *map) {+ const img_t *m = &art_img[img];+ gfx_decode(art_data + (m->off & 0x7FFFFFFF), gfx_fb, m->x + dx, m->y + dy, m->w, m->h, opaque, map, m->off >> 31 ? 2 : 1);+}++void gfx_plate(int img) { draw(img, 0, 0, 1, 0); }++/* A copy of a background (a plate and what lies still on it), run-length+ * coded in RAM: the table views are drawn every frame, and putting their+ * background back from here is much faster than decoding it again. */+#define CACHE_MAX (26 * 1024)+static uint8_t cache[CACHE_MAX];+static uint32_t cache_len, cache_key;++int gfx_cached(uint32_t key) {+ if (!key || key != cache_key) return 0;+ uint8_t *o = gfx_fb;+ const uint8_t *p = cache, *end = cache + cache_len;+ while (p < end) {+ int b = *p++;+ if (b < 128) { /* b + 1 pixels as they are */+ for (int n = b + 1; n--;) *o++ = *p++;+ } else { /* b - 126 pixels of one color */+ uint8_t c = *p++;+ for (int n = b - 126; n--;) *o++ = c;+ }+ }+ return 1;+}++void gfx_cache_store(uint32_t key) {+ cache_key = 0;+ uint32_t n = 0, lit = 0; /* lit: where the current run of single pixels was started */+ int nlit = 0;+ const uint8_t *p = gfx_fb, *end = gfx_fb + GFX_W * GFX_H;+ while (p < end) {+ uint8_t c = *p;+ int run = 1;+ while (p + run < end && run < 129 && p[run] == c) run++;+ if (n + 3 > CACHE_MAX) return; /* too busy a picture: not kept */+ if (run >= 2) {+ cache[n++] = (uint8_t)(run + 126);+ cache[n++] = c;+ nlit = 0;+ } else {+ if (!nlit || nlit == 128) lit = n++, nlit = 0;+ cache[lit] = (uint8_t)nlit++;+ cache[n++] = c;+ }+ p += run;+ }+ cache_len = n;+ cache_key = key;+}++void gfx_cache_clear(void) { cache_key = 0; }++void gfx_sprite(int img, int dx, int dy) {+ if (img >= 0) draw(img, dx, dy, 0, 0);+}++void gfx_darken(int x, int y, int w, int h, int dim) {+ if (dim <= 0) return;+ if (dim > 3) {+ gfx_fill(x, y, w, h, C_BLACK);+ return;+ }+ for (int j = y < 0 ? 0 : y; j < y + h && j < GFX_H; j++)+ for (int i = x < 0 ? 0 : x; i < x + w && i < GFX_W; i++) {+ uint8_t *p = &gfx_fb[j * GFX_W + i];+ *p = dimmap[dim - 1][*p];+ }+}++void gfx_sprite_dim(int img, int dx, int dy, int dim) {+ if (img < 0) return;+ if (dim > 3) dim = 3;+ draw(img, dx, dy, 0, dim > 0 ? dimmap[dim - 1] : 0);+}++void gfx_fill(int x, int y, int w, int h, uint8_t c) {+ for (int j = y < 0 ? 0 : y; j < y + h && j < GFX_H; j++)+ for (int i = x < 0 ? 0 : x; i < x + w && i < GFX_W; i++) gfx_fb[j * GFX_W + i] = c;+}++/* The original's selection brackets: four corners around the item. */+void gfx_brackets(int x, int y, int w, int h, uint8_t c) {+ int l = w < h ? w / 4 : h / 4;+ if (l < 3) l = 3;+ if (l > 7) l = 7;+ int x1 = x + w - 1, y1 = y + h - 1;+ gfx_fill(x, y, l, 1, c), gfx_fill(x, y, 1, l, c);+ gfx_fill(x1 - l + 1, y, l, 1, c), gfx_fill(x1, y, 1, l, c);+ gfx_fill(x, y1, l, 1, c), gfx_fill(x, y1 - l + 1, 1, l, c);+ gfx_fill(x1 - l + 1, y1, l, 1, c), gfx_fill(x1, y1 - l + 1, 1, l, c);+}++static int glyph(const font_t *f, int ch) {+ if (ch >= 'a' && ch <= 'z') ch -= 32;+ if (ch < 32 || ch > 95) ch = '?';+ return ch - 32;+}++int gfx_text_w(const font_t *f, const char *s) {+ int w = 0, best = 0;+ for (; *s; s++) {+ if (*s == '\n') {+ if (w > best) best = w;+ w = 0;+ continue;+ }+ w += f->adv[glyph(f, *s)];+ }+ return w > best ? w : best;+}++int gfx_lines(const char *s) {+ int n = 1;+ for (; *s; s++) n += *s == '\n';+ return n;+}++static void draw_glyph(const font_t *f, int g, int x, int y, uint8_t c) {+ int w = f->w[g];+ uint32_t b = f->off[g];+ for (int j = 0; j < f->h; j++)+ for (int i = 0; i < w; i++, b++)+ if (f->bits[b >> 3] >> (b & 7) & 1) {+ int px = x + i, py = y + j;+ if ((unsigned)px < GFX_W && (unsigned)py < GFX_H) gfx_fb[py * GFX_W + px] = c;+ }+}++void gfx_text(const font_t *f, const char *s, int x, int y, uint8_t c) {+ int x0 = x;+ for (; *s; s++) {+ if (*s == '\n') {+ x = x0;+ y += f->h + 3;+ continue;+ }+ int g = glyph(f, *s);+ draw_glyph(f, g, x, y, c);+ x += f->adv[g];+ }+}++void gfx_text_c(const font_t *f, const char *s, int cx, int y, uint8_t c) {+ char line[64];+ while (*s) {+ int n = 0;+ while (s[n] && s[n] != '\n' && n < 63) line[n] = s[n], n++;+ line[n] = 0;+ gfx_text(f, line, cx - gfx_text_w(f, line) / 2, y, c);+ s += n;+ if (*s == '\n') s++;+ y += f->h + 3;+ }+}++void gfx_text_shadow(const font_t *f, const char *s, int cx, int y, uint8_t c) {+ gfx_text_c(f, s, cx + 1, y + 1, C_BLACK);+ gfx_text_c(f, s, cx, y, c);+}++void gfx_present_rect(int x, int y, int w, int h) {+ static uint16_t line[GFX_W * 8];+ if (x < 0) w += x, x = 0;+ if (y < 0) h += y, y = 0;+ if (x + w > GFX_W) w = GFX_W - x;+ if (y + h > GFX_H) h = GFX_H - y;+ if (w <= 0 || h <= 0) return;+ for (int j0 = y; j0 < y + h; j0 += 8) {+ int n = y + h - j0 < 8 ? y + h - j0 : 8;+ uint16_t *o = line;+ for (int j = j0; j < j0 + n; j++) {+ int sy = j - shake_y;+ for (int i = x; i < x + w; i++) {+ int sx = i - shake_x;+ *o++ = (unsigned)sx < GFX_W && (unsigned)sy < GFX_H ? lut[gfx_fb[sy * GFX_W + sx]] : 0;+ }+ }+ eadk_display_push_rect((eadk_rect_t){x, j0, w, n}, line);+ }+}++void gfx_present(void) { gfx_present_rect(0, 0, GFX_W, GFX_H); }diff --git a/games/buckshot/src/gfx.h b/games/buckshot/src/gfx.hnew file mode 100644index 00000000..a95b6b8d--- /dev/null+++ b/games/buckshot/src/gfx.h@@ -0,0 +1,41 @@+/* Buckshot's picture engine: a 320x240 frame buffer of palette indices,+ * pictures streamed into it from compressed art, text, and a palette that+ * fades, flashes and tints as it is pushed to the screen. */+#ifndef BR_GFX_H+#define BR_GFX_H+#include <stdbool.h>+#include <stdint.h>+#include "assets.h"+#include "font.h"++#define GFX_W 320+#define GFX_H 240++extern uint8_t gfx_fb[GFX_W * GFX_H];++void gfx_decode(const uint8_t *src, uint8_t *fb, int x, int y, int w, int h, int opaque, const uint8_t *map, int scale);++void gfx_init(void);+void gfx_clear(uint8_t c);+void gfx_plate(int img); /* a whole picture */+int gfx_cached(uint32_t key); /* the background kept under `key` back in the frame buffer: 1 if there was one */+void gfx_cache_store(uint32_t key); /* keep the frame buffer as the background for `key` */+void gfx_cache_clear(void);+void gfx_sprite(int img, int dx, int dy); /* a cut-out, moved by (dx, dy) */+void gfx_sprite_dim(int img, int dx, int dy, int dim); /* drawn darker (dim 0..3) */+void gfx_fill(int x, int y, int w, int h, uint8_t c);+void gfx_darken(int x, int y, int w, int h, int dim);+void gfx_brackets(int x, int y, int w, int h, uint8_t c);+int gfx_text_w(const font_t *f, const char *s);+void gfx_text(const font_t *f, const char *s, int x, int y, uint8_t c);+void gfx_text_c(const font_t *f, const char *s, int cx, int y, uint8_t c); /* centered, multi-line */+void gfx_text_shadow(const font_t *f, const char *s, int cx, int y, uint8_t c);+int gfx_lines(const char *s);++/* Palette effects: light 0 (black) .. 256 (normal); flash 0..256 toward white;+ * red 0..256 toward a blood tint. Takes effect on the next present. */+void gfx_light(int light, int flash, int red);+void gfx_shake(int dx, int dy);+void gfx_present(void);+void gfx_present_rect(int x, int y, int w, int h);+#endifdiff --git a/games/buckshot/src/icon.png b/games/buckshot/src/icon.pngnew file mode 100644index 00000000..74c119edBinary files /dev/null and b/games/buckshot/src/icon.png differdiff --git a/games/buckshot/src/libc.c b/games/buckshot/src/libc.cnew file mode 100644index 00000000..e9ee8a9d--- /dev/null+++ b/games/buckshot/src/libc.c@@ -0,0 +1,38 @@+/* Minimal replacements for the few libc routines the app needs: much+ * smaller than newlib's speed-optimized versions. */+#include <stddef.h>++#define EXPORT __attribute__((used, externally_visible))++EXPORT void *memcpy(void *d, const void *s, size_t n) {+ char *o = d;+ const char *i = s;+ while (n--) *o++ = *i++;+ return d;+}++EXPORT void *memmove(void *d, const void *s, size_t n) {+ char *o = d;+ const char *i = s;+ if (o < i) return memcpy(d, s, n);+ while (n--) o[n] = i[n];+ return d;+}++EXPORT void *memset(void *d, int c, size_t n) {+ char *o = d;+ while (n--) *o++ = c;+ return d;+}++EXPORT size_t strlen(const char *s) {+ const char *e = s;+ while (*e) e++;+ return e - s;+}++EXPORT char *strcpy(char *d, const char *s) {+ char *o = d;+ while ((*o++ = *s++)) {}+ return d;+}diff --git a/games/buckshot/src/main.c b/games/buckshot/src/main.cnew file mode 100644index 00000000..61486f5d--- /dev/null+++ b/games/buckshot/src/main.c@@ -0,0 +1,348 @@+/* Buckshot for the NumWorks calculator, part of NumPlay.+ * Inspired by Buckshot Roulette by Mike Klubnika. Made by Mason Chen. */+#include <eadk.h>+#include <stddef.h>+#include "../../common/epsilon_app.h"+#include "../../common/epsilon_files.h"+#include "../../common/jump.h"+#include "game.h"+#include "scene.h"+#include "story.h"++#ifdef __ELF__ /* app name and API level, for the calculator's installer */+const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name"))) = "Buckshot";+const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level"))) = 0;+#endif++#ifndef BR_START_STAGE+#define BR_START_STAGE 0+#endif+#ifndef BR_START_MODE+#define BR_START_MODE MODE_STORY+#endif++/* Home and On/Off leave the app from anywhere; "Main menu" leaves a match. */+static np_jump_t leave, to_menu;+static int in_match;++/* ------------------------------------------------------------------ saving */++static const char SAVE_NAME[] = "buckshot.sav";+#define SAVE_MAGIC 0x42+#define SAVE_VERSION 2++typedef struct {+ uint8_t magic, version, has_match, pad;+ profile_t profile;+ match_t match;+ uint32_t check;+} save_t;++static save_t S;+static match_t checkpoint; /* the match as it was at the last safe point */+static int have_checkpoint;++static uint32_t checksum(const uint8_t *p, uint32_t n) {+ uint32_t h = 2166136261u;+ while (n--) h = (h ^ *p++) * 16777619u;+ return h;+}++static void write_save(void) {+ S.magic = SAVE_MAGIC;+ S.version = SAVE_VERSION;+ S.profile = P;+ S.has_match = have_checkpoint;+ if (have_checkpoint) S.match = checkpoint;+ else S.match = (match_t){0};+ S.check = checksum((const uint8_t *)&S, offsetof(save_t, check));+ ef_write(SAVE_NAME, &S, sizeof S);+}++void save_profile(void) { write_save(); }++void save_match(void) {+ if (G.phase == PH_NONE || G.phase > PH_LAST) {+ have_checkpoint = 0;+ } else {+ checkpoint = G;+ have_checkpoint = 1;+ }+ write_save();+}++static void load_save(void) {+ uint32_t n;+ const uint8_t *p = ef_read(SAVE_NAME, &n);+ if (!p || n != sizeof S) return;+ save_t s;+ uint8_t *d = (uint8_t *)&s;+ for (uint32_t i = 0; i < n; i++) d[i] = p[i]; /* the record may be unaligned */+ if (s.magic != SAVE_MAGIC || s.version != SAVE_VERSION || s.check != checksum(d, offsetof(save_t, check))) return;+ P = s.profile;+ P.last_name[6] = 0;+ if (s.has_match && s.match.phase > PH_NONE && s.match.phase <= PH_LAST && s.match.stage < 3 &&+ s.match.nshell <= 8 && s.match.nshown <= 8 && s.match.mode <= MODE_DON && s.match.load < 250 &&+ s.match.maxhp <= 6 && s.match.hp[0] <= 6 && s.match.hp[1] <= 6) {+ checkpoint = s.match;+ checkpoint.name[6] = 0;+ for (int k = 0; k < 2; k++)+ for (int g = 0; g < 8; g++)+ if (checkpoint.items[k][g] < -1 || checkpoint.items[k][g] >= IT_COUNT) checkpoint.items[k][g] = -1;+ have_checkpoint = 1;+ }+}++static int quit(void) {+ write_save();+ return np_app_end();+}++/* ------------------------------------------------------------------- input */++/* The physical key behind an event, to tell a key still held (the emulator+ * reports it again and again) from a new press. */+static const uint8_t LETTER_KEY[26] = {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,+ 31, 32, 33, 34, 36, 37, 38, 39, 40, 42, 43, 44, 45};++static int held_key = -1; /* key of the last event, while it has not been seen released */+static uint64_t held_t;++static void track_release(void) {+ if (held_key >= 0 && !eadk_keyboard_key_down(eadk_keyboard_scan(), (eadk_key_t)held_key)) held_key = -1;+}++int key_wait(int ms) {+ uint64_t end = eadk_timing_millis() + (ms < 0 ? 0 : ms);+ for (;;) {+ int32_t t = 10;+ if (ms >= 0) {+ int64_t left = (int64_t)(end - eadk_timing_millis());+ if (left <= 0) return -1;+ if (left < t) t = (int32_t)left;+ }+ /* a release is only believed when seen before the event is read: an event+ * read while the key was still down is that same press */+ track_release();+ int e = eadk_event_get(&t);+ if (e == 6 || e == 8) np_jump(leave); /* Home, On/Off */+ int k, key;+ if (e <= KEY_EXE) k = key = e;+ else if (e >= 54 && e <= 57) k = key = e - 54; /* shifted arrows */+ else if (e >= 126 && e <= 151) k = KEY_LETTER + e - 126, key = LETTER_KEY[e - 126]; /* Alpha + key */+ else if (e >= 180 && e <= 205) k = KEY_LETTER + e - 180, key = LETTER_KEY[e - 180];+ else continue;+ if (key == 12 || key == 13) continue; /* Shift and Alpha on their own */+ uint64_t now = eadk_timing_millis();+ if (key == held_key) {+ /* not released since: only arrows and Backspace repeat, and not too fast */+ if (!(key <= KEY_RIGHT || key == KEY_BACKSPACE) || now - held_t < 110) continue;+ }+ held_key = key;+ held_t = now;+ return k;+ }+}++static int wait_until(uint64_t end, int skippable) {+ for (;;) {+ int64_t left = (int64_t)(end - eadk_timing_millis());+ if (left <= 0) return 0;+ uint64_t t0 = eadk_timing_millis();+ int k = key_wait(left > 20 ? 20 : (int)left);+ if (k == KEY_BACK && in_match) {+ app_pause_menu();+ end += eadk_timing_millis() - t0;+ } else if (skippable && IS_OK(k)) {+ return 1;+ }+ }+}++void pause_ms(int ms) { wait_until(eadk_timing_millis() + (ms > 0 ? ms : 0), 0); }+int pause_skip(int ms) { return wait_until(eadk_timing_millis() + (ms > 0 ? ms : 0), 1); }++/* -------------------------------------------------------------------- menus */++static int menu_list(const char *const *items, int n, int x, int y, int *sel, int (*draw)(void)) {+ for (;;) {+ draw();+ for (int i = 0; i < n; i++) {+ uint8_t c = i == *sel ? C_WHITE : C_GREY;+ gfx_text(&font_big, items[i], x, y + i * (font_big.h + 6), c);+ if (i == *sel) gfx_text(&font_big, ">", x - 12, y + i * (font_big.h + 6), C_WHITE);+ }+ gfx_present();+ int k = key_wait(-1);+ if (k == KEY_UP && *sel > 0) (*sel)--;+ else if (k == KEY_DOWN && *sel < n - 1) (*sel)++;+ else if (IS_OK(k)) return *sel;+ else if (k == KEY_BACK) return -1;+ }+}++static int draw_frozen(void) { return 0; }++void app_pause_menu(void) {+ static const char *const items[] = {"RESUME", "MAIN MENU"};+ int sel = 0;+ gfx_darken(0, 0, GFX_W, GFX_H, 2);+ gfx_text_c(&font_big, "PAUSED", 160, 70, C_WHITE);+ int r = menu_list(items, 2, 124, 110, &sel, draw_frozen);+ if (r == 1) {+ /* back to the menu: the match resumes from its last safe point */+ np_jump(to_menu);+ }+ if (redraw) redraw();+ gfx_present();+}++/* the title: the Dealer waiting at his table, up close */+static int draw_title(void) {+ G.stage = 1, G.mode = MODE_STORY, G.sawed = G.dcuffed = 0;+ for (int g = 0; g < 8; g++) G.items[1][g] = IT_NONE;+ table_reset();+ view_dealer();+ table_draw();+ gfx_darken(0, 0, 130, 240, 2);+ gfx_darken(130, 0, 20, 240, 1);+ gfx_sprite(IMG_LOGO, 0, 0);+ return 0;+}++static void credits(void) {+ static const char *const lines =+ "INSPIRED BY BUCKSHOT ROULETTE\n"+ "BY MIKE KLUBNIKA.\n"+ "NOT AFFILIATED WITH MIKE KLUBNIKA\n"+ "OR CRITICAL REFLEX.\n\n"+ "EVERY PICTURE IS RENDERED FROM THE\n"+ "GAME'S OWN SCENES, MODELS AND TEXTURES\n"+ "BY MIKE KLUBNIKA, THROUGH THE OPEN\n"+ "BUCKSHOT ROULETTE PROJECT (1503DEV).\n"+ "FONTS: FAKE RECEIPT BY RAY LARABIE,\n"+ "DOT MATRIX BY DIONAEA.\n\n"+ "MADE BY MASON CHEN AS PART OF NUMPLAY.";+ gfx_clear(C_BLACK);+ gfx_text_c(&font_big, "CREDITS", 160, 14, C_WHITE);+ gfx_text_c(&font_small, lines, 160, 38, C_WHITE);+ char best[40] = "BEST DOUBLE OR NOTHING: ";+ int n = 0;+ while (best[n]) n++;+ story_money(best + n, P.best);+ gfx_text_c(&font_small, best, 160, 222, C_GREY);+ gfx_present();+ for (;;) {+ int k = key_wait(-1);+ if (IS_OK(k) || k == KEY_BACK) return;+ }+}++static void play(int resume) {+ in_match = 1;+ if (np_save_jump(to_menu)) {+ in_match = 0;+ gfx_light(256, 0, 0);+ gfx_shake(0, 0);+ if (have_checkpoint) G = checkpoint;+ return;+ }+ if (resume) {+ G = checkpoint;+ game_run();+ } else if (BR_START_STAGE) { /* development: straight to a stage */+ game_new(BR_START_MODE);+ G.stage = BR_START_STAGE - 1;+ G.name[0] = 'A', G.name[1] = 'B', G.name[2] = 'C';+ P.intro_line = INTRO_LINES, P.read_items = 1;+ P.loads_told = 2;+#ifdef BR_DEMO_TURN+ { /* development: a set turn for recordings (round 2, your glass, beer, cigarettes, cuffs, saw; his saw, glass, beer) */+ static const int8_t mine[8] = {1, 2, -1, 3, -1, 4, 0, -1}, his[8] = {0, -1, 1, -1, 2, -1, -1, -1};+ static const uint8_t shells[4] = {1, 0, 1, 1};+ G.phase = PH_PLAYER, G.load = 1, G.maxhp = 4, G.hp[0] = G.hp[1] = 3, G.nshell = G.nshown = 4;+ for (int i = 0; i < 4; i++) G.shell[i] = G.shown[i] = shells[i];+ for (int g = 0; g < 8; g++) G.items[0][g] = mine[g], G.items[1][g] = his[g], G.seq[0][g] = g, G.seq[1][g] = 8 + g;+ G.seqn = 16;+#if BR_DEMO_TURN == 2+ G.phase = PH_DEALER; /* his turn: he sees a live round and turns the barrel on you */+ G.items[1][2] = -1;+#endif+ }+#endif+ game_run();+ } else {+ G.phase = PH_RETRY;+ }+ /* a new run starts in the bathroom: from the menu, after "retry" in+ * heaven, and after dying in Double or Nothing */+ while (G.phase == PH_RETRY) {+ int mode = story_intro();+ if (mode < 0) break;+ game_new(mode);+ have_checkpoint = 0; /* a new run replaces the one on hold */+ story_enter(mode);+ game_run();+ }+ gfx_light(256, 0, 0);+ in_match = 0;+}++int main(void) {+ np_app_begin();+ if (np_save_jump(leave)) return quit();+ gfx_init();+#ifdef BR_TEST_DEATH+ G.mode = MODE_STORY;+ story_death();+ gfx_clear(C_WHITE);+ gfx_present();+ for (;;) key_wait(-1);+#endif+#ifdef BR_BENCH+ {+ /* development: how long the table view and its parts take to draw */+ uint32_t t[5];+ G.stage = 1;+ G.maxhp = G.hp[0] = G.hp[1] = 4;+ table_reset();+ for (int g = 0; g < 8; g++) G.items[0][g] = (int8_t)g, G.items[1][g] = (int8_t)(8 - g);+ uint64_t t0 = eadk_timing_millis();+ for (int i = 0; i < 10; i++) gfx_plate(IMG_PL_TABLE);+ t[0] = eadk_timing_millis() - t0, t0 = eadk_timing_millis();+ for (int i = 0; i < 10; i++) table_draw();+ t[1] = eadk_timing_millis() - t0, t0 = eadk_timing_millis();+ for (int i = 0; i < 10; i++) gfx_present();+ t[2] = eadk_timing_millis() - t0, t0 = eadk_timing_millis();+ for (int i = 0; i < 10; i++) gfx_plate(IMG_PL_HEALTH);+ t[3] = eadk_timing_millis() - t0, t0 = eadk_timing_millis();+ view_dealer();+ T.d.pose = IMG_D_GUN_AIMS;+ for (int i = 0; i < 10; i++) table_draw();+ t[4] = eadk_timing_millis() - t0;+ char s[80], *o = s;+ for (int k = 0; k < 5; k++) o = story_money(o, t[k]), *o++ = ' ';+ *o = 0;+ gfx_clear(C_BLACK);+ gfx_text(&font_big, s, 10, 100, C_WHITE);+ gfx_present();+ for (;;) key_wait(-1);+ }+#endif+ G.rng = eadk_random() | 1;+ load_save();+ int sel = 0;+ for (;;) {+ const char *items[4];+ int ids[4], n = 0;+ if (have_checkpoint) items[n] = "CONTINUE", ids[n++] = 0;+ items[n] = "START", ids[n++] = 1;+ items[n] = "CREDITS", ids[n++] = 2;+ items[n] = "EXIT", ids[n++] = 3;+ if (sel >= n) sel = 0;+ int r = menu_list(items, n, 36, 150, &sel, draw_title);+ if (r < 0 || ids[r] == 3) return quit();+ if (ids[r] == 2) credits();+ else play(ids[r] == 0);+ }+}diff --git a/games/buckshot/src/pixcode.c b/games/buckshot/src/pixcode.cnew file mode 100644index 00000000..c509e2c1--- /dev/null+++ b/games/buckshot/src/pixcode.c@@ -0,0 +1,129 @@+/* Buckshot's picture decoder (tools/pixcode.py encodes).+ *+ * A binary range coder with adaptive probabilities: each pixel is the same+ * as its left neighbour, or else the same as the one above, or else a+ * palette index read bit by bit. The contexts are how the neighbours agree+ * and how long the current run is. Pictures are decoded row by row straight+ * into the frame buffer (two rows of history), transparent index 0 skipped+ * for sprites, optionally darkened through a map or drawn doubled.+ *+ * This runs for every picture of every frame, so it is written for speed:+ * the coder's state lives in registers, the neighbours slide along the row,+ * and rows that lie wholly on screen are written without clipping. */+#include "gfx.h"++#define PROB_BITS 12+#define ONE (1u << PROB_BITS)+#define FLAG_SHIFT 4+#define LIT_SHIFT 5+#define LIT_BITS 7++static uint8_t rows[2][GFX_W];+static uint8_t vert[GFX_W]; /* how each pixel above agrees with its neighbours */++/* one binary decision with probability p (of a 0), adapted by `shift` */+#define BIT(p, shift, out) \+ do { \+ uint32_t bound_ = (range >> PROB_BITS) * (p); \+ if (code < bound_) { \+ range = bound_; \+ (p) += (ONE - (p)) >> (shift); \+ (out) = 0; \+ } else { \+ range -= bound_; \+ code -= bound_; \+ (p) -= (p) >> (shift); \+ (out) = 1; \+ } \+ while (range < (1u << 24)) { \+ range <<= 8; \+ code = code << 8 | *in++; \+ } \+ } while (0)++__attribute__((optimize("O2"))) void gfx_decode(const uint8_t *src, uint8_t *fb, int x0, int y0, int w, int h, int opaque,+ const uint8_t *map, int scale) {+ if (w <= 0 || w > GFX_W) return;+ const uint8_t *in = src + 4;+ uint32_t code = (uint32_t)src[0] << 24 | (uint32_t)src[1] << 16 | (uint32_t)src[2] << 8 | src[3];+ uint32_t range = 0xFFFFFFFFu;+ uint16_t pa[16], pb[8], pl[1 << LIT_BITS];+ for (int i = 0; i < 16; i++) pa[i] = ONE / 2;+ for (int i = 0; i < 8; i++) pb[i] = ONE / 2;+ for (int i = 0; i < (1 << LIT_BITS); i++) pl[i] = ONE / 2;+ unsigned run = 0; /* 8 when the pixel before was the same as its left */+ for (int y = 0; y < h; y++) {+ uint8_t *row = rows[y & 1];+ const uint8_t *prev = rows[(y & 1) ^ 1];+ /* above the picture, every neighbour is the pixel on the left (see+ * tools/pixcode.py); below its first row: up == ul, up == ur of each+ * pixel, worked out once for the row */+ int left;+ if (y) {+ left = prev[0];+ unsigned pl_ = prev[0];+ for (int x = 0; x < w; x++) {+ unsigned c = prev[x], r = x + 1 < w ? prev[x + 1] : c;+ vert[x] = (uint8_t)((c == pl_) << 1 | (c == r) << 2);+ pl_ = c;+ }+ } else {+ left = 0;+ }+ for (int x = 0; x < w; x++) {+ int up = y ? prev[x] : left;+ unsigned ctx = (y ? vert[x] : 6u) | (left == up) | run, b;+ BIT(pa[ctx], FLAG_SHIFT, b);+ if (b) {+ run = 8;+ row[x] = (uint8_t)left;+ continue;+ }+ run = 0;+ b = 0;+ if (up != left) {+ int ul = x ? prev[x - 1] : up;+ BIT(pb[(vert[x] >> 1 & 3) | (left == ul) << 2], FLAG_SHIFT, b);+ }+ if (b) {+ left = up;+ } else {+ unsigned node = 1;+ for (int i = 0; i < LIT_BITS; i++) {+ unsigned bit;+ BIT(pl[node], LIT_SHIFT, bit);+ node = node << 1 | bit;+ }+ left = (int)node - (1 << LIT_BITS);+ }+ row[x] = (uint8_t)left;+ }+ /* the row, into the frame buffer */+ for (int k = 0; k < scale; k++) {+ int py = y0 + y * scale + k;+ if ((unsigned)py >= GFX_H) continue;+ uint8_t *d = fb + py * GFX_W;+ if (scale == 1 && x0 >= 0 && x0 + w <= GFX_W) {+ d += x0;+ if (opaque && !map) {+ for (int x = 0; x < w; x++) d[x] = row[x];+ } else {+ for (int x = 0; x < w; x++) {+ uint8_t c = row[x];+ if (c || opaque) d[x] = map ? map[c] : c;+ }+ }+ continue;+ }+ for (int x = 0; x < w; x++) {+ uint8_t c = row[x];+ if (!c && !opaque) continue;+ if (map) c = map[c];+ for (int i = 0; i < scale; i++) {+ int px = x0 + x * scale + i;+ if ((unsigned)px < GFX_W) d[px] = c;+ }+ }+ }+ }+}diff --git a/games/buckshot/src/scene.c b/games/buckshot/src/scene.cnew file mode 100644index 00000000..5c44334f--- /dev/null+++ b/games/buckshot/src/scene.c@@ -0,0 +1,470 @@+#include "scene.h"+#include <eadk.h>++table_t T;+void (*redraw)(void);++/* first sprite of each item's 16 table slots: it<i><p|d><g> */+static int item_img(int side, int slot, int it) {+ return IMG_IT0P0 + it * 16 + side * 8 + slot;+}+/* the Dealer's items in his view */+static int ditem_img(int slot, int it) { return IMG_DI00 + it * 8 + slot; }++void table_reset(void) {+ T = (table_t){0};+ T.pose = T.pose2 = -1;+ T.gun_on_table = 1;+ T.held = -1;+ T.cursor = -1;+ view_table();+}++static void dealer_idle(void) {+ T.d.dy = 0;+ T.d.gone = 0;+ T.d.dim = 0;+ T.d.alone = -1;+ if (T.view == V_TABLE) {+ T.d.head = IMG_T_HEAD0;+ T.d.hands = G.dcuffed ? IMG_T_CUFFED : IMG_T_HANDS;+ T.d.pose = -1;+ } else {+ T.d.head = IMG_D_HEAD;+ T.d.hands = IMG_D_HANDS;+ T.d.pose = G.dcuffed ? IMG_D_CUFFED : -1;+ }+ T.gun_on_table = 1;+}++void view_table(void) {+ T.view = V_TABLE;+ dealer_idle();+}++void view_dealer(void) {+ T.view = V_DEALER;+ dealer_idle();+}++void ui_hint(const char *s) {+ if (s) gfx_text(&font_small, s, 4, 3, C_GREY);+}++/* the dialogue box: its rectangle for the given (whole) line */+static void dialogue_box(const char *s, int *x, int *y, int *w, int *h) {+ *w = gfx_text_w(&font_small, s) + 20;+ if (*w < 120) *w = 120;+ *h = gfx_lines(s) * (font_small.h + 3) + 9;+ *x = 160 - *w / 2;+ *y = 204 - *h / 2;+}++void ui_dialogue(const char *s, int len) {+ char buf[96];+ int n = 0;+ for (; s[n] && n < len && n < 95; n++) buf[n] = s[n];+ buf[n] = 0;+ /* the box is sized for the whole line so it does not grow while typing */+ int x, y, w, h;+ dialogue_box(s, &x, &y, &w, &h);+ gfx_fill(x, y, w, h, C_BLACK);+ gfx_text_c(&font_small, buf, 160, y + 6, C_WHITE);+}++void target_pos(int t, int *x, int *y) {+ if (t == 8) {+ const img_t *m = &art_img[IMG_T_GUN];+ *x = m->x + m->w / 2, *y = m->y + m->h / 2;+ return;+ }+ const int16_t *r = slot_rect[t >= 16][t & 7];+ *x = r[0] + r[2] / 2, *y = r[1] + r[3] / 2;+}++/* The screen box of a table slot, from the item that sits in it. */+static void slot_box(int side, int g, int *x, int *y, int *w, int *h) {+ int it = G.items[side][g];+ if (it < 0 && !side && T.held >= 0) it = T.held;+ const img_t *m;+ if (T.view == V_DEALER && side) {+ if (it < 0) {+ *x = dslot_rect[g][0], *y = dslot_rect[g][1], *w = dslot_rect[g][2], *h = dslot_rect[g][3];+ return;+ }+ m = &art_img[ditem_img(g, it)];+ } else {+ if (it < 0) {+ *x = slot_rect[side][g][0], *y = slot_rect[side][g][1], *w = slot_rect[side][g][2], *h = slot_rect[side][g][3];+ return;+ }+ m = &art_img[item_img(side, g, it)];+ }+ *x = m->x - 2, *y = m->y - 2, *w = m->w + 4, *h = m->h + 4;+}++/* The charges at a glance, top right: a small copy of the display (the+ * Dealer's bolts on the left, yours on the right), red once a wire is cut. */+static void draw_bolt(int x, int y, uint8_t c) {+ static const uint8_t B[10] = {0x07, 0x0E, 0x1C, 0x3F, 0x7E, 0x1C, 0x38, 0x70, 0x60, 0x40}; /* 7x10, bit 6 = left */+ for (int j = 0; j < 10; j++)+ for (int i = 0; i < 7; i++)+ if (B[j] >> (6 - i) & 1) gfx_fill(x + i, y + j, 1, 1, c);+}++static void draw_charges_hud(void) {+ if (T.no_charges || !G.maxhp) return;+ int n = G.maxhp < 2 ? 2 : G.maxhp, half = n * 8 + 4, w = half * 2 + 1, x = 316 - w, y = 3;+ gfx_fill(x - 1, y - 1, w + 2, 16, C_DARK);+ gfx_fill(x, y, w, 14, C_BLACK);+ gfx_fill(x + half, y + 1, 1, 12, C_DOT);+ for (int s = 0; s < 2; s++) {+ uint8_t c = G.wire[s] ? C_RED : C_DOT;+ int hp = G.hp[s] > 6 ? 6 : G.hp[s];+ for (int i = 0; i < hp; i++) {+ int bx = s ? x + 3 + i * 8 : x + w - 10 - i * 8; /* as on the display: his from the left, yours from the right */+ draw_bolt(bx, y + 2, c);+ }+ }+}++/* the table's charge display: both sides' bolts, lit */+static void draw_charges(void) {+ if (T.no_charges || !G.maxhp) return;+ gfx_sprite(IMG_C_FRAME, 0, 0);+ for (int s = 0; s < 2; s++) {+ if (G.wire[s] == 1) continue;+ for (int i = 0; i < G.hp[s] && i < 6; i++) gfx_sprite(IMG_C_SYM0 + (s ? 0 : 6) + i, 0, 0);+ }+}++static void draw_dealer_table(void) {+ if (T.d.gone) return;+ gfx_sprite_dim(T.d.head, 0, T.d.dy, T.d.dim);+ gfx_sprite_dim(T.d.hands, 0, 0, T.d.dim);+}++/* what lies still in a view, as a key for the background cache (gfx.c) */+static uint32_t still_key(void) {+ uint8_t k[32], n = 0;+ k[n++] = T.view;+ k[n++] = G.mode == MODE_DON || G.stage > 0;+ if (T.view == V_DEALER) {+ /* his view: his items and the shotgun too */+ for (int g = 0; g < 8; g++) k[n++] = (uint8_t)G.items[1][g];+ k[n++] = T.gun_on_table | G.sawed << 1;+ } else {+ /* the table: its charge display (the items are drawn over it each time) */+ k[n++] = T.no_charges;+ k[n++] = (uint8_t)G.hp[0], k[n++] = (uint8_t)G.hp[1], k[n++] = G.wire[0] | G.wire[1] << 2, k[n++] = (uint8_t)G.maxhp;+ }+ uint32_t h = 2166136261u;+ for (int i = 0; i < n; i++) h = (h ^ k[i]) * 16777619u;+ return h | 1;+}++/* the table and its charge display */+static void draw_table_still(void) {+ gfx_plate(IMG_PL_TABLE);+ if (G.mode == MODE_DON || G.stage > 0) gfx_sprite(IMG_T_GRID, 0, 0);+ draw_charges();+}++/* what lies on it, the Dealer behind */+static void draw_table(void) {+ draw_dealer_table();+ for (int side = 1; side >= 0; side--)+ for (int g = 0; g < 8; g++) {+ int it = G.items[side][g];+ if (it >= 0) gfx_sprite(item_img(side, g, it), 0, 0);+ }+ if (T.gun_on_table) gfx_sprite(G.sawed ? IMG_T_GUNSAW : IMG_T_GUN, 0, 0);+ if (G.pcuffed) gfx_sprite(IMG_T_PCUFF, 0, 0);+ if (T.box) gfx_sprite(IMG_T_BOX, 0, 0);+ if (T.held >= 0 && T.cursor >= 0 && T.cursor < 8) gfx_sprite(item_img(0, T.cursor, T.held), 0, -3);+ if (T.pose < 0) draw_charges_hud();+}++static void draw_dealer_still(void) {+ gfx_plate(IMG_PL_DEALER);+ if (G.mode == MODE_DON || G.stage > 0) gfx_sprite(IMG_D_GRID, 0, 0);+ for (int g = 0; g < 8; g++) {+ int it = G.items[1][g];+ if (it >= 0) gfx_sprite(ditem_img(g, it), 0, 0);+ }+ if (T.gun_on_table) gfx_sprite(G.sawed ? IMG_D_GUNSAW : IMG_D_GUN, 0, 0);+}++static void draw_dealer_view(void) {+ if (T.d.alone >= 0) {+ gfx_sprite(T.d.alone, 0, 0);+ } else if (!T.d.gone) {+ gfx_sprite_dim(T.d.head, 0, T.d.dy, T.d.dim);+ gfx_sprite_dim(T.d.hands, 0, 0, T.d.dim);+ gfx_sprite_dim(T.d.pose, 0, 0, T.d.dim);+ }+}++void table_draw(void) {+ uint32_t key = still_key();+ if (!gfx_cached(key)) {+ if (T.view == V_DEALER) draw_dealer_still();+ else draw_table_still();+ gfx_cache_store(key);+ }+ if (T.view == V_DEALER) draw_dealer_view();+ else draw_table();+ gfx_sprite(T.pose, 0, T.pose_dy);+ gfx_sprite(T.pose2, 0, 0);+ if (T.lbl) {+ /* the words on the table: "DEALER" across it, and "YOU" at your edge,+ * below the picture, written the same way */+ gfx_sprite_dim(IMG_P_LBL_DEALER, 0, 0, T.lbl == 1 ? 0 : 2);+ gfx_text_shadow(&font_big, "YOU", 160, 224, T.lbl == 2 ? C_WHITE : C_GREY);+ }+ if (T.cursor >= 0) {+ int x, y, w, h;+ if (T.cursor == 8) {+ const img_t *m = &art_img[G.sawed ? IMG_T_GUNSAW : IMG_T_GUN];+ x = m->x - 2, y = m->y - 2, w = m->w + 4, h = m->h + 4;+ } else {+ slot_box(T.cursor >= 16, T.cursor & 7, &x, &y, &w, &h);+ }+ gfx_brackets(x, y, w, h, C_WHITE);+ }+ if (T.title) {+ int lines = T.desc ? gfx_lines(T.desc) : 0;+ int y = 232 - lines * (font_small.h + 3) - font_big.h - 4;+ gfx_text_shadow(&font_big, T.title, 160, y, C_WHITE);+ if (T.desc) gfx_text_shadow(&font_small, T.desc, 160, y + font_big.h + 4, C_WHITE);+ }+ if (T.say) ui_dialogue(T.say, T.say_len);+ ui_hint(T.hint);+}++void table_show(void) {+ static uint8_t rushed;+ redraw = table_show;+ if (rushed != T.rush) gfx_light(256, T.rush ? 48 : 0, 0), rushed = T.rush;+ table_draw();+ gfx_present();+}++/* The Dealer breathes while he waits: a key, or -1 after each step. */+int idle_key(void) {+ static int k;+ int e = key_wait(380);+ if (e >= 0) return e;+ if (T.d.gone || T.d.alone >= 0) return -1;+ k = (k + 1) & 3;+ if (T.view == V_TABLE) {+ if (T.d.head < IMG_T_HEAD0 || T.d.head > IMG_T_HEAD3) return -1;+ T.d.head = IMG_T_HEAD0 + k;+ } else {+ if (T.d.head != IMG_D_HEAD || T.d.pose >= 0) return -1;+ static const int8_t dy[4] = {0, 1, 1, 0};+ T.d.dy = dy[k];+ }+ table_show();+ return -1;+}++/* ------------------------------------------------------------------ dialogue */++void say_on(const char *s) {+ int n = 0;+ while (s[n]) n++;+ /* the original types 50 characters a second: only the box is redrawn */+ T.say = s;+ T.say_len = 0;+ table_draw();+ gfx_present();+ int x, y, w, h;+ dialogue_box(s, &x, &y, &w, &h);+ uint64_t t0 = eadk_timing_millis();+ for (int k = 1; k <= n; k++) {+ int64_t wait = (int64_t)(t0 + 20 * k - eadk_timing_millis());+ int k2 = wait > 0 ? key_wait((int)wait) : -1;+ if (IS_OK(k2)) k = n; /* OK: the whole line at once */+ else if (k2 == KEY_BACK) app_pause_menu();+ if (s[k - 1] == ' ' || s[k - 1] == '\n') continue;+ T.say_len = k;+ ui_dialogue(s, k);+ gfx_present_rect(x, y, w, h);+ }+ T.say_len = n;+ redraw = table_show;+}++void say_off(void) {+ T.say = 0;+ table_show();+}++void say(const char *s, int ms) {+ say_on(s);+ pause_skip(ms);+ say_off();+}++/* ------------------------------------------------------------ charge display */++static void draw_name(void) {+ /* the player's name on the right of the display, in its dot-matrix font */+ int w = gfx_text_w(&font_dot, G.name);+ gfx_text(&font_dot, G.name, 283 - w, 90, C_DOT);+}++static void draw_side(int side, int hide_last) {+ int hp = G.hp[side];+ if (G.wire[side]) {+ gfx_sprite(side ? IMG_H_ERR_D : IMG_H_ERR_P, 0, 0);+ return;+ }+ for (int i = 1; i <= hp && i <= 6; i++) {+ if (hide_last && i == hp) continue;+ int skull = G.mode == MODE_STORY && G.stage == 2 && i <= 2;+ int img = skull ? IMG_H_SKULL0 + (side ? 0 : 2) + (i - 1) : IMG_H_SYM0 + (side ? 0 : 6) + (i - 1);+ gfx_sprite(img, 0, 0);+ }+}++/* the display's plate alone, and with its frame and your name (both kept+ * in the background cache while the display is on screen) */+static void health_plate(void) {+ if (!gfx_cached(0x48504C31u)) {+ gfx_plate(IMG_PL_HEALTH);+ gfx_cache_store(0x48504C31u);+ }+}++static void health_draw(int blink_side, int phase) {+ uint32_t key = 0x48465231u;+ for (const char *p = G.name; *p; p++) key = (key ^ (uint8_t)*p) * 16777619u;+ key |= 1;+ if (!gfx_cached(key)) {+ gfx_plate(IMG_PL_HEALTH);+ gfx_sprite(IMG_H_FRAME, 0, 0);+ draw_name();+ gfx_cache_store(key);+ }+ for (int s = 0; s < 2; s++) draw_side(s, blink_side == s && phase);+}++void health_view(int blink_side, int ms) {+ /* the last charge of someone at 1 flickers, like the original */+ int t = 0;+ while (t < ms) {+ int ph = (t / 150) & 1;+ int b = blink_side;+ if (b < 0) {+ if (G.hp[0] == 1 && !G.wire[0]) b = 0;+ else if (G.hp[1] == 1 && !G.wire[1]) b = 1;+ }+ health_draw(b, ph);+ gfx_present();+ int step = ms - t < 150 ? ms - t : 150;+ pause_ms(step);+ t += step;+ }+}++void health_bootup(void) {+ health_plate();+ gfx_present();+ pause_ms(500);+ gfx_sprite(IMG_H_FRAME, 0, 0);+ draw_name();+ gfx_present();+ pause_ms(850);+ health_view(-1, 900);+}++void round_indicator(void) {+ int don = G.mode == MODE_DON, k = 1 + G.stage;+ health_plate();+ gfx_present();+ pause_ms(800);+ for (int t = 0; t < 2000; t += 300) {+ health_plate();+ gfx_sprite(IMG_H_ROUND0, 0, 0);+ if (don) gfx_sprite(IMG_H_ENDLESS0, 0, 0);+ if ((t / 300) % 2 == 0) gfx_sprite((don ? IMG_H_ENDLESS0 : IMG_H_ROUND0) + k, 0, 0);+ gfx_present();+ pause_ms(300);+ }+ health_plate();+ gfx_present();+ pause_ms(300);+}++void health_wins(void) {+ char s[16];+ int n = 0;+ for (const char *p = G.name; *p; p++) s[n++] = *p;+ for (const char *p = " WINS!"; *p; p++) s[n++] = *p;+ s[n] = 0;+ health_plate();+ gfx_present();+ pause_ms(1000);+ health_plate();+ gfx_text(&font_dot, s, 160 - gfx_text_w(&font_dot, s) / 2, 104, C_DOT);+ gfx_present();+ pause_ms(2330);+ health_plate();+ gfx_present();+ pause_ms(300);+}++void wire_cut(int side) {+ /* the display of that side breaks: its defibrillator is gone */+ for (int k = 0; k < 6; k++) {+ health_draw(-1, 0);+ if (k & 1) gfx_sprite(side ? IMG_H_ERR_D : IMG_H_ERR_P, 0, 0);+ gfx_present();+ pause_ms(k & 1 ? 120 : 80);+ }+ health_view(-1, 800);+}++/* ------------------------------------------------------------------- shells */++void shells_view(const uint8_t *shown, int n, const char *text, int ms) {+ gfx_plate(IMG_PL_SHELLS);+ gfx_present();+ pause_ms(300);+ gfx_plate(IMG_PL_SHELLS);+ for (int i = 0; i < n; i++) gfx_sprite(shown[i] ? IMG_S_L0 + 2 * i : IMG_S_B0 + 2 * i, 0, 0);+ if (text) ui_dialogue(text, 999);+ gfx_present();+ pause_skip(ms);+ gfx_plate(IMG_PL_SHELLS);+ gfx_present();+ pause_ms(250);+}++/* ------------------------------------------------------------------ effects */++void fade_to(int from, int to, int ms) {+ int steps = ms / 40;+ if (steps < 1) steps = 1;+ for (int k = 1; k <= steps; k++) {+ gfx_light(from + (to - from) * k / steps, 0, 0);+ gfx_present();+ pause_ms(ms / steps);+ }+}++void flash(int live, int shake) {+ if (!live) return;+ static const int8_t sx[8] = {5, -6, 4, -3, 3, -2, 1, 0}, sy[8] = {-4, 3, -5, 2, -2, 2, -1, 0};+ for (int k = 0; k < 8; k++) {+ gfx_light(256, k < 3 ? 230 - k * 70 : 0, 0);+ if (shake) gfx_shake(sx[k], sy[k]);+ gfx_present();+ pause_ms(35);+ }+ gfx_shake(0, 0);+ gfx_light(256, 0, 0);+ gfx_present();+}diff --git a/games/buckshot/src/scene.h b/games/buckshot/src/scene.hnew file mode 100644index 00000000..c611c616--- /dev/null+++ b/games/buckshot/src/scene.h@@ -0,0 +1,91 @@+/* What is on screen: the two views of the table composed from the match state+ * (the table, and the Dealer up close), the other views (charge display,+ * shells, cutscenes), the original's dialogue box and item descriptions, and+ * the animations of every action. */+#ifndef BR_SCENE_H+#define BR_SCENE_H+#include "gfx.h"+#include "game.h"++enum { V_TABLE, V_DEALER };++/* How the Dealer looks right now */+typedef struct {+ int16_t head; /* table view: IMG_T_HEAD0..3; Dealer view: IMG_D_HEAD; -1 none */+ int16_t hands; /* table view: IMG_T_HANDS or IMG_T_CUFFED; Dealer view: IMG_D_HANDS; -1 none */+ int16_t pose; /* Dealer view: a pose drawn over him at rest (items, shotgun), -1 none */+ int16_t alone; /* Dealer view: a picture of him drawn instead (flying back), -1 none */+ int8_t dy; /* breathing */+ uint8_t gone; /* not at the table */+ uint8_t dim; /* 0..3 darker (coming back from the dark) */+} dealer_look_t;++typedef struct {+ uint8_t view;+ dealer_look_t d;+ int16_t pose; /* first-person picture over everything (the player holding something), or -1 */+ int16_t pose2; /* second overlay (shell in the chamber, a shell flying out) */+ int8_t pose_dy; /* the first picture moved down (brought up from below) */+ uint8_t gun_on_table;+ uint8_t box; /* item box open */+ int8_t held; /* item taken from the box, shown in the slot under the cursor */+ int16_t cursor; /* 0..7 player slot, 8 shotgun, 16+i Dealer slot, -1 none */+ const char *title; /* item name at the bottom */+ const char *desc;+ const char *say; /* dialogue box */+ int say_len; /* characters shown (typewriter) */+ const char *hint; /* small control prompt */+ uint8_t lbl; /* shotgun targets: 0 off, 1 Dealer chosen, 2 you chosen */+ uint8_t rush; /* adrenaline: the picture is brighter */+ uint8_t no_charges; /* hide the charges on the table's display */+} table_t;++/* what an action did, for its animation */+typedef struct {+ int from; /* where the item lay: side*8+slot, or -1 */+ int live; /* the shell in the chamber (before the action) */+ int good, dead; /* expired medicine */+ const char *text; /* burner phone */+} act_t;++extern table_t T;++void table_reset(void);+void table_draw(void); /* compose the frame buffer */+extern void (*redraw)(void); /* what to put back after the pause menu */+void table_show(void); /* compose and present */+void ui_dialogue(const char *s, int len);+void ui_hint(const char *s);+void target_pos(int t, int *x, int *y); /* screen centre of a target in the table view */++void view_table(void); /* the table view, the Dealer at rest */+void view_dealer(void); /* the Dealer up close, at rest */+int idle_key(void); /* a key, or -1 after a step of the Dealer's breathing */++void say(const char *s, int ms); /* dialogue, typed then held (OK cuts it short) */+void say_on(const char *s); /* ... and left on screen */+void say_off(void);++void health_view(int blink_side, int ms); /* the charge display; blink_side -1 none */+void health_bootup(void);+void round_indicator(void);+void health_wins(void);+void wire_cut(int side);+void shells_view(const uint8_t *shown, int n, const char *text, int ms);+void fade_to(int from, int to, int ms);+void flash(int live, int shake);++/* animations of the match (anim.c) */+void anim_item(int side, int it, const act_t *a);+int anim_player_aim(void); /* the player picks up the shotgun and aims: 1 = at himself */+void anim_player_shot(int self, int live, int dmg, int ended);+void anim_dealer_shot(int self, int live, int dmg, int ended);+void anim_player_cuffed(int broke);+void anim_dealer_cuffed(int broke);+void anim_wire_cut(int side, int say_it);+void anim_god_waiver(void);+void anim_dealer_load(int n, int told, int fast);+void anim_dealer_rack(void);+void anim_dealer_return(void);+void anim_dealer_arrives(const char *line);+#endifdiff --git a/games/buckshot/src/story.c b/games/buckshot/src/story.cnew file mode 100644index 00000000..d2ca58fa--- /dev/null+++ b/games/buckshot/src/story.c@@ -0,0 +1,498 @@+#include "story.h"+#include <eadk.h>+#include "game.h"+#include "scene.h"++char *story_money(char *out, uint64_t v) {+ char t[24];+ int n = 0;+ do t[n++] = '0' + v % 10; while (v /= 10);+ while (n) *out++ = t[--n];+ *out = 0;+ return out;+}++static char *cat(char *o, const char *s) {+ while (*s) *o++ = *s++;+ *o = 0;+ return o;+}++/* OK goes on; Back is the pause menu, then the screen is drawn again */+static void wait_ok(void (*draw)(void)) {+ for (;;) {+ int k = key_wait(-1);+ if (IS_OK(k)) return;+ if (k == KEY_BACK) {+ redraw = draw;+ app_pause_menu();+ }+ }+}++/* a plate that fades in from black */+static void show_plate(int img, int ms) {+ gfx_plate(img);+ fade_to(0, 256, ms);+}++static void kick_door(void) {+ G.doors += 0;+ static const int8_t sy[5] = {6, -4, 3, -2, 0};+ for (int k = 0; k < 5; k++) {+ gfx_shake(0, sy[k]);+ gfx_present();+ pause_ms(40);+ }+ gfx_shake(0, 0);+ fade_to(256, 0, 500);+}++/* -------------------------------------------------------------- bathroom */++static const int16_t DOOR[4] = {172, 70, 76, 124};++static void bath_draw(int sel, int pills) {+ gfx_plate(IMG_PL_BATH);+ if (pills) gfx_sprite(IMG_B_PILLS, 0, 0);+ if (sel) {+ const img_t *m = &art_img[IMG_B_PILLS];+ gfx_brackets(m->x - 3, m->y - 3, m->w + 6, m->h + 6, C_WHITE);+ } else {+ gfx_brackets(DOOR[0], DOOR[1], DOOR[2], DOOR[3], C_WHITE);+ }+}++static int pills_choice(void) {+ int yes = 1;+ for (;;) {+ bath_draw(1, 1);+ gfx_fill(96, 176, 128, 50, C_BLACK);+ gfx_text_c(&font_small, "CONSUME PILLS?", 160, 182, C_WHITE);+ gfx_text(&font_big, "YES", 112, 202, yes ? C_WHITE : C_GREY);+ gfx_text(&font_big, "NO", 184, 202, yes ? C_GREY : C_WHITE);+ gfx_present();+ int k = key_wait(-1);+ if (k == KEY_LEFT || k == KEY_RIGHT) yes = !yes;+ else if (IS_OK(k)) return yes;+ else if (k == KEY_BACK) return 0;+ }+}++int story_intro(void) {+ int pills = P.don_unlocked, sel = 0;+ gfx_plate(IMG_PL_BATH);+ if (pills) gfx_sprite(IMG_B_PILLS, 0, 0);+ fade_to(0, 256, 900);+ for (;;) {+ bath_draw(sel, pills);+ gfx_text(&font_small, pills ? "LEFT/RIGHT: CHOOSE OK: INTERACT" : "OK: OPEN THE DOOR", 4, 3, C_GREY);+ gfx_present();+ int k = key_wait(-1);+ if (k == KEY_BACK) return -1;+ if (pills && (k == KEY_LEFT || k == KEY_RIGHT)) sel = !sel;+ if (IS_OK(k)) {+ if (sel == 0) {+ kick_door();+ return MODE_STORY;+ }+ if (pills_choice()) {+ fade_to(256, 0, 700);+ pause_ms(400);+ bath_draw(0, 0);+ fade_to(0, 256, 500);+ pause_ms(500);+ kick_door();+ return MODE_DON;+ }+ }+ }+}++static void hall_draw(void) {+ gfx_plate(IMG_PL_HALL);+ gfx_text(&font_small, "OK: OPEN THE DOOR", 4, 3, C_GREY);+}++static void hallway(void) {+ show_plate(IMG_PL_HALL, 900);+ pause_ms(700);+ hall_draw();+ gfx_present();+ wait_ok(hall_draw);+ kick_door();+}++/* --------------------------------------------------------------- waiver */++static const int16_t KEY_XY[28][2] = {+ {204, 53}, {218, 53}, {205, 66}, {221, 66}, {236, 67}, {206, 79}, {221, 79}, {208, 94}, {224, 94},+ {240, 94}, {256, 95}, {209, 109}, {225, 108}, {241, 108}, {259, 109}, {211, 125}, {229, 126}, {245, 126},+ {262, 125}, {212, 142}, {229, 142}, {246, 142}, {265, 141}, {214, 159}, {232, 159}, {251, 159},+ {247, 78}, /* enter */+ {240, 53}, /* backspace */+};++/* calculator keys for A..Z, as printed on the NumWorks keyboard */+static const uint8_t ALPHA_KEYS[26] = {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,+ 31, 32, 33, 34, 36, 37, 38, 39, 40, 42, 43, 44, 45};++static int key_pos(int i, int *x, int *y) {+ *x = KEY_XY[i][0];+ *y = KEY_XY[i][1];+ return 1;+}++static void waiver_draw(const char *name, int cur, int punched) {+ gfx_plate(IMG_PL_WAIVER);+ /* the machine's little screen */+ if (!punched) {+ gfx_text(&font_small, name, 199, 32, C_DOT);+ int n = 0;+ while (name[n]) n++;+ if (n < 6 && (eadk_timing_millis() / 400) & 1) gfx_fill(199 + gfx_text_w(&font_small, name), 41, 6, 1, C_DOT);+ }+ /* the name, punched on the paper */+ gfx_text(&font_big, punched ? name : "", 110, 172, C_BLACK);+ if (cur >= 0) {+ int x, y;+ key_pos(cur, &x, &y);+ gfx_brackets(x - 9, y - 9, 18, 18, C_WHITE);+ }+}++static int nav_key(int cur, int k) {+ int cx, cy, best = cur, bd = 1 << 30;+ key_pos(cur, &cx, &cy);+ for (int i = 0; i < 28; i++) {+ if (i == cur) continue;+ int x, y;+ key_pos(i, &x, &y);+ int dx = x - cx, dy = y - cy, main, side;+ if (k == KEY_LEFT) main = -dx, side = dy;+ else if (k == KEY_RIGHT) main = dx, side = dy;+ else if (k == KEY_UP) main = -dy, side = dx;+ else main = dy, side = dx;+ if (main <= 3) continue;+ if (side < 0) side = -side;+ int d = main + side * 3;+ if (d < bd) bd = d, best = i;+ }+ return best;+}++static int streq(const char *a, const char *b) {+ while (*a && *a == *b) a++, b++;+ return *a == *b;+}++static void waiver(void) {+ char name[7] = {0};+ int n = 0, cur = 0;+ redraw = 0;+ show_plate(IMG_PL_WAIVER, 600);+ for (;;) {+ waiver_draw(name, cur, 0);+ gfx_text(&font_small, "ARROWS+OK OR LETTER KEYS EXE: SIGN", 4, 3, C_GREY);+ gfx_present();+ int k = key_wait(400);+ if (k < 0) continue;+ int letter = k >= KEY_LETTER && k < KEY_LETTER + 26 ? k - KEY_LETTER : -1;+ for (int i = 0; i < 26; i++)+ if (ALPHA_KEYS[i] == k) letter = i;+ if (k <= KEY_RIGHT) {+ cur = nav_key(cur, k);+ continue;+ }+ if (k == KEY_OK) {+ if (cur < 26) letter = cur;+ else if (cur == 27) k = KEY_BACKSPACE;+ else k = KEY_EXE;+ }+ if (k == KEY_BACK) app_pause_menu();+ if (letter >= 0 && n < 6) {+ name[n++] = 'A' + letter;+ name[n] = 0;+ cur = letter;+ } else if (k == KEY_BACKSPACE && n) {+ name[--n] = 0;+ } else if (k == KEY_EXE && n && !streq(name, "GOD") && !streq(name, "DEALER")) {+ break;+ }+ }+ for (int i = 0; i < 7; i++) G.name[i] = name[i], P.last_name[i] = name[i];+ /* the letters are punched onto the waiver one at a time */+ char part[7] = {0};+ for (int i = 0; i < n; i++) {+ part[i] = name[i];+ waiver_draw(part, -1, 1);+ gfx_present();+ pause_ms(170);+ }+ pause_ms(700);+ fade_to(256, 0, 400);+}++/* -------------------------------------------------------- into the room */++void story_enter(int mode) {+ (void)mode;+ hallway();+ anim_dealer_arrives("PLEASE SIGN THE WAIVER.");+ waiver();+ table_reset();+ view_dealer();+ table_draw();+ fade_to(0, 256, 500);+ pause_ms(600);+}++static void bath_door_draw(void) {+ gfx_plate(IMG_PL_BATH);+ gfx_brackets(DOOR[0], DOOR[1], DOOR[2], DOOR[3], C_WHITE);+ gfx_text(&font_small, "OK: OPEN THE DOOR", 4, 3, C_GREY);+}++/* the bathroom and the hallway again, the Dealer waiting */+static void back_to_the_table(const char *greeting) {+ show_plate(IMG_PL_BATH, 700);+ pause_ms(500);+ bath_door_draw();+ gfx_present();+ wait_ok(bath_door_draw);+ kick_door();+ hallway();+ anim_dealer_arrives(greeting);+}++static void revive_draw(void) { gfx_plate(IMG_PL_REVIVE); }++void story_revive(void) {+ gfx_clear(C_BLACK);+ gfx_light(256, 0, 0);+ gfx_present();+ pause_ms(1500);+ show_plate(IMG_PL_REVIVE, 1500);+ static char line[24];+ char *o = cat(line, "GET UP, ");+ o = cat(o, G.name);+ cat(o, "!");+ const char *lines[3] = {"YOU'RE LUCKY IT LEFT YOU\nWITH A CHARGE!", line, "THE NIGHT IS YOUNG."};+ redraw = revive_draw;+ for (int i = 0; i < 3; i++) {+ gfx_plate(IMG_PL_REVIVE);+ ui_dialogue(lines[i], 99);+ gfx_present();+ pause_skip(i == 0 ? 3000 : 2400);+ }+ fade_to(256, 0, 800);+ back_to_the_table("WELCOME BACK.");+}++void story_retry(void) {+ gfx_clear(C_BLACK);+ gfx_light(256, 0, 0);+ gfx_present();+ pause_ms(1200);+ back_to_the_table("...");+}++int story_death(void) {+ if (G.mode == MODE_DON) {+ /* no doctor in Double or Nothing: back to the bathroom */+ gfx_clear(C_BLACK);+ gfx_light(256, 0, 0);+ gfx_present();+ pause_ms(2500);+ return 1;+ }+ gfx_clear(C_BLACK);+ gfx_present();+ gfx_light(256, 0, 0);+ pause_ms(1800);+ show_plate(IMG_PL_HEAVEN, 3000);+ pause_ms(2500);+ int retry = 1;+ for (;;) {+ gfx_plate(IMG_PL_HEAVEN);+ gfx_text_shadow(&font_big, "YOU ARE DEAD", 160, 92, C_WHITE);+ gfx_text_shadow(&font_small, "RETRY", 130, 124, retry ? C_WHITE : C_GREY);+ gfx_text_shadow(&font_small, "EXIT", 190, 124, retry ? C_GREY : C_WHITE);+ gfx_present();+ int k = key_wait(-1);+ if (k == KEY_LEFT || k == KEY_RIGHT) retry = !retry;+ else if (IS_OK(k)) break;+ else if (k == KEY_BACK) retry = 0;+ }+ fade_to(256, 0, 800);+ gfx_light(256, 0, 0);+ return retry;+}++/* ------------------------------------------------------ double or nothing */++/* the offer machine's green display */+#define DON_X 158+#define DON_Y 171++static void don_display(const char *s) {+ gfx_plate(IMG_PL_DON);+ int lines = gfx_lines(s), h = lines * (font_dot.h + 3) - 3;+ gfx_text_c(&font_dot, s, DON_X, DON_Y - h / 2, C_DOT);+}++static int don_yes = 1;++static void don_choice_draw(void) {+ don_display("DOUBLE OR\nNOTHING?");+ static const int16_t B[2][4] = {{58, 10, 104, 46}, {168, 10, 104, 46}};+ const int16_t *b = B[!don_yes];+ gfx_brackets(b[0], b[1], b[2], b[3], C_WHITE);+ gfx_text_c(&font_small, "LEFT/RIGHT: CHOOSE OK: PRESS", 160, 228, C_GREY);+}++int story_double_or_nothing(void) {+ /* the winnings (already settled) count up on the machine's display */+ uint64_t before = G.score_before, after = G.score;+ char s[24];+ story_money(s, before);+ don_display(s);+ fade_to(0, 256, 600);+ for (int t = 0; t <= 40; t++) {+ story_money(s, before + (after - before) * t / 40);+ don_display(s);+ gfx_present();+ if (pause_skip(60)) t = 39;+ }+ pause_ms(1200);+ don_display("DOUBLE OR\nNOTHING?");+ gfx_present();+ pause_ms(1500);+ don_yes = 1;+ redraw = don_choice_draw;+ for (;;) {+ don_choice_draw();+ gfx_present();+ int k = key_wait(-1);+ if (k == KEY_LEFT || k == KEY_RIGHT) don_yes = !don_yes;+ else if (IS_OK(k)) break;+ else if (k == KEY_BACK) app_pause_menu();+ }+ fade_to(256, 0, 500);+ gfx_light(256, 0, 0);+ if (don_yes) {+ table_reset();+ view_dealer();+ table_draw();+ fade_to(0, 256, 500);+ }+ return don_yes;+}++/* ------------------------------------------------------------------ ending */++static char *stat(char *o, const char *label, uint32_t v) {+ o = cat(o, label);+ o = cat(o, " ");+ o = story_money(o, v);+ return cat(o, "\n");+}++static void ending_frame(int img) {+ table_draw();+ gfx_sprite(img, 0, 0);+ gfx_present();+}++void story_ending(void) {+ /* the lights go out: the Dealer's red eyes in the dark */+ table_reset();+ view_dealer();+ T.d.gone = 1;+ table_draw();+ gfx_present();+ pause_ms(700);+ table_draw();+ gfx_darken(0, 0, GFX_W, GFX_H, 4);+ gfx_present();+ pause_ms(900);+ gfx_sprite(IMG_D_EYES, 0, 0);+ gfx_present();+ pause_ms(1500);+ gfx_darken(0, 0, GFX_W, GFX_H, 4);+ gfx_present();+ pause_ms(900);+ /* the lights come back: a briefcase comes down onto the table, and opens */+ ending_frame(IMG_E_BRIEF0);+ pause_ms(700);+ for (int k = 0; k < 3; k++) {+ gfx_shake(0, k == 0 ? 3 : k == 1 ? -1 : 0);+ ending_frame(IMG_E_BRIEF1);+ pause_ms(k == 2 ? 1300 : 60);+ }+ ending_frame(IMG_E_BRIEF2);+ pause_ms(2600);+ fade_to(256, 0, 1500);+ pause_ms(600);+ uint64_t cash;+ if (G.mode == MODE_STORY) {+ int32_t c = 70000 - 220 * G.cigs - G.beer_ml * 3 / 2 - (G.doors > 2 ? 1000 * G.doors : 0);+ cash = c < 0 ? 0 : (uint64_t)c;+ } else {+ cash = G.score;+ }+ if (!G.ended) {+ /* counted once, even if the ending is seen again after quitting */+ G.ended = 1 + (G.mode == MODE_STORY && !P.don_unlocked);+ if (G.mode == MODE_STORY) P.wins++, P.don_unlocked = 1;+ else if (cash > P.best) P.best = cash;+ save_match();+ }+ static char text[256];+ char *o = cat(text, "");+ if (G.mode == MODE_STORY) o = stat(o, "SHOTS FIRED ........", G.shots);+ else o = stat(o, "ROUNDS BEAT ........", G.rounds_beat);+ o = stat(o, "SHELLS EJECTED .....", G.ejected);+ o = stat(o, "DOORS KICKED .......", G.doors);+ o = stat(o, "CIGARETTES SMOKED ..", G.cigs);+ o = stat(o, "ML OF BEER DRANK ...", G.beer_ml);+ static char title[32], total[32];+ cat(cat(cat(title, "CONGRATULATIONS, "), G.name), "!");+ cat(story_money(cat(total, "TOTAL CASH: "), cash), " $");+ /* on the road, the cash on the seat */+ gfx_plate(IMG_PL_CAR);+ fade_to(0, 256, 2000);+ pause_ms(1000);+ gfx_text_shadow(&font_big, title, 160, 10, C_WHITE);+ gfx_present();+ pause_ms(1500);+ const char *p = text;+ for (int line = 0; line < 5; line++) {+ char one[40];+ int n = 0;+ while (*p && *p != '\n') one[n++] = *p++;+ one[n] = 0;+ if (*p) p++;+ gfx_text(&font_small, one, 13, 37 + line * (font_small.h + 3), C_BLACK);+ gfx_text(&font_small, one, 12, 36 + line * (font_small.h + 3), C_WHITE);+ gfx_present();+ pause_ms(330);+ }+ pause_ms(400);+ int ty = 36 + 5 * (font_small.h + 3) + 6;+ gfx_text(&font_big, total, 13, ty + 1, C_BLACK);+ gfx_text(&font_big, total, 12, ty, C_WHITE);+ gfx_present();+ pause_ms(1200);+ if (G.ended == 2) {+ gfx_text_shadow(&font_small, "\"DOUBLE OR NOTHING\" UNLOCKED!", 160, 212, C_YELLOW);+ gfx_present();+ }+ redraw = 0;+ for (;;) {+ int k = key_wait(-1);+ if (IS_OK(k) || k == KEY_BACK) break;+ }+ fade_to(256, 0, 800);+ gfx_light(256, 0, 0);+}diff --git a/games/buckshot/src/story.h b/games/buckshot/src/story.hnew file mode 100644index 00000000..1e4877d0--- /dev/null+++ b/games/buckshot/src/story.h@@ -0,0 +1,15 @@+/* Everything around the table: the bathroom, the hallway, the waiver, the+ * revival, the endings and Double or Nothing's offer. */+#ifndef BR_STORY_H+#define BR_STORY_H+#include <stdint.h>++int story_intro(void); /* the bathroom: door (story) or pills (Double or Nothing); -1 to leave */+void story_enter(int mode); /* hallway, the Dealer, the waiver */+void story_revive(void); /* died in round 1 or 2: the same round again */+void story_retry(void); /* RETRY in heaven: back to the final round */+int story_death(void); /* died for good: 1 to try again */+int story_double_or_nothing(void);+void story_ending(void);+char *story_money(char *out, uint64_t v);+#endifdiff --git a/games/buckshot/test/autoplay.c b/games/buckshot/test/autoplay.cnew file mode 100644index 00000000..925c12ff--- /dev/null+++ b/games/buckshot/test/autoplay.c@@ -0,0 +1,124 @@+/* Plays thousands of matches on the host with random key presses and checks+ * that the rules never reach an impossible state or get stuck.+ * cc -O2 -I<eadk include dir> -I../src autoplay.c ../src/game.c ../src/scene.c ../src/anim.c ../src/assets.c ../src/font.c -o autoplay */+#include <setjmp.h>+#include <stdint.h>+#include <stdio.h>+#include <stdlib.h>+#include "../src/game.h"+#include "../src/gfx.h"+#include "../src/scene.h"+#include "../src/story.h"++uint8_t gfx_fb[GFX_W * GFX_H];+static uint64_t clock_ms, steps;+static jmp_buf done;+static int died, won, doubled, stage_max;++/* the calculator's services */+uint32_t _eadk_timing_millis_low(void) { return (uint32_t)clock_ms; }+uint32_t _eadk_timing_millis_high(void) { return (uint32_t)(clock_ms >> 32); }+uint32_t eadk_random(void) { return rand(); }++/* drawing does nothing here */+void gfx_init(void) {}+void gfx_clear(uint8_t c) {}+void gfx_plate(int i) {}+int gfx_cached(uint32_t key) { return 0; }+void gfx_cache_store(uint32_t key) {}+void gfx_cache_clear(void) {}+void gfx_sprite(int i, int x, int y) {}+void gfx_sprite_dim(int i, int x, int y, int d) {}+void gfx_fill(int x, int y, int w, int h, uint8_t c) {}+void gfx_zoom(int x, int y) {}+void gfx_darken(int x, int y, int w, int h, int d) {}+void gfx_brackets(int x, int y, int w, int h, uint8_t c) {}+int gfx_text_w(const font_t *f, const char *s) { return 0; }+void gfx_text(const font_t *f, const char *s, int x, int y, uint8_t c) {}+void gfx_text_c(const font_t *f, const char *s, int x, int y, uint8_t c) {}+void gfx_text_shadow(const font_t *f, const char *s, int x, int y, uint8_t c) {}+int gfx_lines(const char *s) { return 1; }+void gfx_light(int a, int b, int c) {}+void gfx_shake(int x, int y) {}+void gfx_present(void) {}+void gfx_present_rect(int x, int y, int w, int h) {}++static void check(void) {+ static uint32_t sig, same;+ uint32_t now = G.phase | G.stage << 4 | G.nshell << 8 | G.load << 12 | (uint32_t)G.hp[0] << 20 | (uint32_t)G.hp[1] << 24;+ for (int g = 0; g < 8; g++) now += (G.items[0][g] + 2) * (g + 1) * 131;+ if (now != sig) sig = now, same = 0;+ if (++same > 200000 || ++steps > 20000000) {+ printf("stuck: phase %d stage %d load %d shells %d hp %d/%d cursor %d view %d items %d %d %d %d %d %d %d %d | %d %d %d %d %d %d %d %d sawed %d dcuffed %d wire %d %d\n", G.phase, G.stage, G.load, G.nshell,+ G.hp[0], G.hp[1], T.cursor, T.view, G.items[0][0], G.items[0][1], G.items[0][2], G.items[0][3], G.items[0][4], G.items[0][5], G.items[0][6], G.items[0][7],+ G.items[1][0], G.items[1][1], G.items[1][2], G.items[1][3], G.items[1][4], G.items[1][5], G.items[1][6], G.items[1][7], G.sawed, G.dcuffed, G.wire[0], G.wire[1]);+ exit(1);+ }+ int bad = G.nshell > 8 || G.stage > 2 || G.hp[0] < 0 || G.hp[1] < 0 || G.hp[0] > G.maxhp || G.hp[1] > G.maxhp;+ for (int s = 0; s < 2; s++)+ for (int g = 0; g < 8; g++) bad |= G.items[s][g] < -1 || G.items[s][g] >= IT_COUNT;+ if (bad) {+ printf("bad state: phase %d stage %d hp %d/%d max %d shells %d\n", G.phase, G.stage, G.hp[0], G.hp[1], G.maxhp,+ G.nshell);+ exit(1);+ }+ if (G.stage > stage_max) stage_max = G.stage;+}++int key_wait(int ms) {+ clock_ms += 50;+ check();+ static const int keys[] = {KEY_LEFT, KEY_RIGHT, KEY_UP, KEY_DOWN, KEY_OK, KEY_OK, KEY_OK, KEY_EXE};+ if (rand() % 4 == 0 && ms >= 0) return -1;+ return keys[rand() % 8];+}+void pause_ms(int ms) {+ clock_ms += ms;+ check();+}+int pause_skip(int ms) {+ pause_ms(ms);+ return 0;+}+void app_pause_menu(void) {}+void save_match(void) {}+void save_profile(void) {}++int story_intro(void) { return MODE_STORY; }+void story_enter(int mode) {}+static int revives, retries, retry_stage_ok = 1;+void story_revive(void) { revives++; }+void story_retry(void) { retries++; }+int story_death(void) {+ died++;+ /* "retry" in heaven now and then: the final round again, never round 1 */+ if (G.mode == MODE_STORY && retries < 3 * died / 4) {+ if (G.stage != 2) retry_stage_ok = 0;+ return 1;+ }+ longjmp(done, 1);+}+int story_double_or_nothing(void) {+ doubled++;+ return rand() % 3 != 0;+}+void story_ending(void) {+ won++;+ longjmp(done, 1);+}+char *story_money(char *o, uint64_t v) { return o; }++int main(int argc, char **argv) {+ int n = argc > 1 ? atoi(argv[1]) : 2000;+ srand(1);+ for (int i = 0; i < n; i++) {+ G.rng = 1 + i * 7919;+ game_new(i & 1 ? MODE_DON : MODE_STORY);+ G.name[0] = 'A';+ steps = 0;+ if (!setjmp(done)) game_run();+ }+ printf("%d matches: %d won, %d deaths (%d retried in heaven, final round each time: %s), %d revivals, %d double-or-nothing offers, deepest stage %d\n",+ n, won, died, retries, retry_stage_ok ? "yes" : "NO", revives, doubled, stage_max);+ return 0;+}diff --git a/games/buckshot/tools/cut.py b/games/buckshot/tools/cut.pynew file mode 100644index 00000000..c753a168--- /dev/null+++ b/games/buckshot/tools/cut.py@@ -0,0 +1,279 @@+#!/usr/bin/env python3+"""Cuts the rendered frames (tools/render.py) into the game's art in assets/.++A plate is a whole 320x240 picture. A sprite is what changes between a frame+and the plate it was rendered against: since the game's dithering depends only+on the pixel position, the unchanged pixels are identical and the changed ones+(the object, its shadow, its light) are exactly what the original shows. Each+sprite is saved as a cropped RGBA PNG; assets/art.json lists where it goes.++Usage: RENDER_DIR=dir cut.py+"""+import json+import os+from pathlib import Path++import numpy as np+from scipy import ndimage+from PIL import Image++HERE = Path(__file__).resolve().parent+R = Path(os.environ.get("RENDER_DIR", HERE / ".renders"))+OUT = HERE.parent / "assets"+++def save(a, path):+ """Saves exactly, as a paletted PNG (the renders have few colors)."""+ im = Image.fromarray(a)+ rgb = a[..., :3].reshape(-1, 3)+ cols = np.unique(rgb, axis=0)+ if len(cols) > 255:+ im.save(path, optimize=True)+ return+ pal = [tuple(int(v) for v in c) for c in cols]+ index = {c: i + 1 for i, c in enumerate(pal)}+ idx = np.array([index[tuple(int(v) for v in c)] for c in rgb], np.uint8).reshape(a.shape[:2])+ if a.shape[2] == 4:+ idx[a[..., 3] == 0] = 0+ p = Image.fromarray(idx, "P")+ flat = [0, 0, 0] + [v for c in pal for v in c]+ p.putpalette(flat + [0] * (768 - len(flat)))+ if a.shape[2] == 4:+ p.info["transparency"] = 0+ p.save(path, optimize=True, transparency=0)+ else:+ p.save(path, optimize=True)+++SS = 4 # renders are 4x the screen size (tools/render.py)+LEVELS = int(os.environ.get("BR_LEVELS", 7)) # the original's posterization: 8 levels per channel+++SOFT = float(os.environ.get("BR_SOFT", 0.6)) # a slight blur before posterizing: calmer dithering, much smaller art+++STICKY = float(os.environ.get("BR_STICKY", 0.58)) # see settle()+++def levels(a):+ """Averages SSxSS blocks (the look of the game on a small screen, without+ the aliasing of rendering straight at 320x240), in steps of the original's+ posterization: 8 levels per channel."""+ h, w = a.shape[0] // SS, a.shape[1] // SS+ m = a[:h * SS, :w * SS].astype(np.float32).reshape(h, SS, w, SS, 3).mean(axis=(1, 3)) / 255+ if SOFT:+ m = np.stack([ndimage.gaussian_filter(m[..., c], SOFT, mode="nearest") for c in range(3)], -1)+ return m * LEVELS+++def to_rgb(q):+ return (q / LEVELS * 255 + 0.5).astype(np.uint8)+++def shrink(a):+ """Posterized to the nearest level."""+ return to_rgb(np.floor(levels(a) + 0.5))+++def settle(s, keep=None, kept=None, sticky=None):+ """Posterizes like shrink(), except that a pixel takes the color of the one+ on its left when that color is close enough (STICKY of a level): the same+ picture to the eye, with far fewer flips of the dithering between two+ levels, so it compresses much better. `keep` pixels are forced to `kept`+ (a sprite's surroundings: the plate it is drawn on)."""+ sticky = STICKY if sticky is None else sticky+ out = np.floor(s + 0.5)+ if keep is not None:+ out[keep] = kept[keep]+ for x in range(1, s.shape[1]):+ n = out[:, x - 1]+ ok = np.abs(n - s[:, x]).max(axis=1) <= sticky+ if keep is not None:+ ok &= ~keep[:, x]+ out[ok, x] = n[ok]+ return out+++def mask_of(name):+ """The mask pass of a render (tools/render.py): where its posed objects cover+ at least half of a pixel."""+ a = np.array(Image.open(R / f"{name}__mask.png").convert("L")) > 127+ h, w = a.shape[0] // SS, a.shape[1] // SS+ return a[:h * SS, :w * SS].reshape(h, SS, w, SS).mean(axis=(1, 3)) >= 0.5+++_cache = {}+_ccache = {}+++def load_levels(name):+ """The render in (unrounded) levels, or None for the pictures made up of others."""+ if name.endswith("_none"):+ return None+ if name not in _ccache:+ _ccache.clear() # only the last few are needed+ _ccache[name] = levels(np.array(Image.open(R / f"{name}.png").convert("RGB")))+ return _ccache[name]+++# the scenes seen for a moment, away from the table: settled a little more+STICKIER = {"scenes/": 0.8, "rooms/": 0.8, "shells/": 0.78, "heaven/": 0.8, "dealer/Z_": 0.72, "dealer/E_": 0.78,+ "poses/P_god": 0.85, "poses/": 0.74}+++def sticky_of(name):+ for k, v in STICKIER.items():+ if name.startswith(k):+ return max(v, STICKY)+ return STICKY+++def load_settled(name):+ s = load_levels(name)+ return to_rgb(settle(s, sticky=sticky_of(name))) if s is not None else load(name)+++def load(name):+ if name in _cache:+ return _cache[name]+ if name in ("health/H_round_none", "health/H_endless_none"):+ # the round display with no round lit: each round lights one circle,+ # so the majority of the three pictures is the unlit display+ stem = name[:-5]+ a, b, c = (load(f"{stem}{k}").astype(np.int32) for k in (1, 2, 3))+ r = np.where((a == b).all(axis=2, keepdims=True), a, c).astype(np.uint8)+ else:+ r = shrink(np.array(Image.open(R / f"{name}.png").convert("RGB")))+ _cache[name] = r+ return r+++# plates: name -> render+PLATES = {+ "table": "table/T_plate1",+ "dealer": "dealer/D_plate1",+ "health": "health/H_plate",+ "shells": "shells/S_plate",+ "waiver": "scenes/W_waiver",+ "don": "scenes/Y_don",+ "car": "scenes/E_car",+ "zaim": "dealer/Z_aimp",+ "bath": "rooms/B_bath",+ "revive": "rooms/B_revive",+ "hall": "rooms/L_hall",+ # rendered at 160x120, shown doubled+ "heaven": "heaven/X_heaven",+}++ITEMS = 9+RAW = {"d_eyes"} # tiny sprites: keep every changed pixel+++def sprites():+ """(sprite name, render, plate render); a render's own "__base" plate wins when present."""+ s = [("t_grid", "table/T_plate2", "table/T_plate1"), ("d_grid", "dealer/D_plate2", "dealer/D_plate1")]+ for n in ["gun", "gunsaw", "box", "pcuff", "hands", "cuffed", "head0", "head1", "head2", "head3"]:+ s.append((f"t_{n}", f"table/T_{n}", None))+ for i in range(ITEMS):+ for side in "pd":+ for g in range(8):+ s.append((f"it{i}{side}{g}", f"table/T_it_{i}_{side}{g}", None))+ for i in range(ITEMS):+ for g in range(8):+ s.append((f"di{i}{g}", f"dealer/D_it_{i}_{g}", None))+ for n in ["gun", "gunsaw", "head", "hands", "eyes", "cuffed", "getcuff", "adr0", "adr1", "beer0", "beer1", "phone0", "phone1",+ "cig0", "cig1", "med0", "med1", "cuffs0", "cuffs1", "saw0", "saw1", "saw2", "inv0", "inv1", "mag0", "mag1", "medfall",+ "gun_load", "gun_load1", "gun_aimp", "gun_aims", "gun_rack", "gun_racks", "gun_aimp_saw", "gun_aims_saw",+ "gun_aimp0", "gun_aims0", "gun_lift",+ "fly0", "fly1", "eject_l", "eject_b"]:+ s.append((f"d_{n}", f"dealer/D_{n}", None))+ for n in ["p_aimd", "p_aimd_saw"]:+ s.append((n, f"dealer/{n[0].upper()}{n[1:]}", None))+ for n in ["brief0", "brief1", "brief2"]:+ s.append((f"e_{n}", f"dealer/E_{n}", None))+ for n in ["hold", "lbl_dealer", "aims", "aims_saw", "rack", "god", "mag", "mag_l", "mag_b", "mag0", "saw0", "saw1",+ "beer0", "beer1", "cig0", "cig1", "phone0", "phone1", "med0", "med1", "adr0", "adr1", "inv0", "inv1", "eject_l", "eject_b"]:+ s.append((f"p_{n}", f"poses/P_{n}", None))+ s.append(("h_frame", "health/H_frame", "health/H_plate"))+ for k in range(12):+ s.append((f"h_sym{k}", f"health/H_sym{k}", "health/H_frame"))+ for k in range(4):+ s.append((f"h_skull{k}", f"health/H_skull{k}", "health/H_frame"))+ s.append(("h_round0", "health/H_round_none", "health/H_plate"))+ for k in range(1, 4):+ s.append((f"h_round{k}", f"health/H_round{k}", "health/H_round_none"))+ s.append(("h_endless0", "health/H_endless_none", "health/H_round_none"))+ for k in range(1, 4):+ s.append((f"h_endless{k}", f"health/H_endless{k}", "health/H_endless_none"))+ s += [("h_err_p", "health/H_err_p", "health/H_plate"), ("h_err_d", "health/H_err_d", "health/H_plate")]+ s.append(("c_frame", "health/C_frame", None))+ for k in range(12):+ s.append((f"c_sym{k}", f"health/C_sym{k}", None))+ for i in range(8):+ for kind in "lb":+ s.append((f"s_{kind}{i}", f"shells/S_{kind}{i}", "shells/S_plate"))+ s.append(("b_pills", "rooms/B_pills", "rooms/B_bath"))+ return s+++def clean(d, a, b):+ """Keeps the object, its shadow and its light, and drops the specks where+ only the dithering flipped because the lighting changed a little far away:+ pixels that changed a lot, the small changes right around them, and no+ tiny islands."""+ if not d.any():+ return d+ step = np.abs(a.astype(np.int32) // 36 - b.astype(np.int32) // 36).sum(axis=2)+ strong = step >= 2+ lab, n = ndimage.label(strong, structure=np.ones((3, 3)))+ if n:+ sizes = ndimage.sum(strong, lab, range(1, n + 1))+ keep = np.zeros(n + 1, bool)+ keep[1:] = sizes >= min(6, sizes.max())+ strong = keep[lab]+ near = ndimage.binary_dilation(strong, iterations=3)+ return d & (strong | near)+++def main():+ OUT.mkdir(exist_ok=True)+ (OUT / "sprites").mkdir(exist_ok=True)+ art = {"plates": {}, "sprites": {}}+ for name, src in PLATES.items():+ save(load_settled(src), OUT / f"{name}.png")+ art["plates"][name] = f"{name}.png"+ for name, src, base in sprites():+ if not src.endswith("_none") and not (R / f"{src}.png").exists():+ print("missing", src)+ continue+ a = load(src)+ if (R / f"{src}__base.png").exists() and not (base or "").endswith("_none"):+ base = f"{src}__base"+ b = load(base)+ if (R / f"{src}__mask.png").exists():+ d = mask_of(src) # the object alone+ else:+ d = np.any(a != b, axis=2)+ if name not in RAW:+ d = clean(d, a, b)+ ys, xs = np.nonzero(d)+ if not len(ys):+ print("empty sprite", name)+ art["sprites"][name] = None+ continue+ y0, y1, x0, x1 = int(ys.min()), int(ys.max()) + 1, int(xs.min()), int(xs.max()) + 1+ sa, sb = load_levels(src), load_levels(base)+ if sa is not None and sb is not None:+ kept = settle(sb, sticky=sticky_of(src))+ a = to_rgb(settle(sa, ~d, kept, sticky_of(src)))+ rgba = np.zeros((y1 - y0, x1 - x0, 4), np.uint8)+ rgba[..., :3] = a[y0:y1, x0:x1]+ rgba[..., 3] = d[y0:y1, x0:x1] * 255+ save(rgba, OUT / "sprites" / f"{name}.png")+ art["sprites"][name] = [x0, y0]+ (OUT / "art.json").write_text(json.dumps(art, indent=0))+ print(len(art["sprites"]), "sprites")+++if __name__ == "__main__":+ main()diff --git a/games/buckshot/tools/font.py b/games/buckshot/tools/font.pynew file mode 100644index 00000000..cfe41045--- /dev/null+++ b/games/buckshot/tools/font.py@@ -0,0 +1,85 @@+#!/usr/bin/env python3+"""Rasterizes Buckshot's fonts into src/font.h (1 bit per pixel).++- "receipt": Fake Receipt by Ray Larabie (Typodermic Fonts), the original's+ dialogue and menu font, at two sizes.+- "dot": Dot Matrix (Dionaea), the font of the charge display.++The font files come from the original game's project (BR_PROJECT/fonts).+Usage: BR_PROJECT=dir font.py [preview.png]+"""+import os+import sys+from pathlib import Path++import numpy as np+from PIL import Image, ImageDraw, ImageFont++HERE = Path(__file__).resolve().parent+FONTS = Path(os.environ.get("BR_PROJECT", "")) / "fonts"+CHARS = "".join(chr(c) for c in range(32, 96)) # space to underscore: the game writes in capitals++# name, file, pixel size, extra advance+SPECS = [("font_small", "fake receipt.otf", 10, 0), ("font_big", "fake receipt.otf", 14, 0),+ ("font_dot", "DOTMATRI.TTF", 23, 1)]+++def raster(file, size, extra):+ f = ImageFont.truetype(str(FONTS / file), size)+ asc, desc = f.getmetrics()+ h = asc + desc+ glyphs = []+ for ch in CHARS:+ adv = int(round(f.getlength(ch))) + extra+ im = Image.new("L", (adv + 8, h), 0)+ ImageDraw.Draw(im).text((0, 0), ch, font=f, fill=255)+ a = np.array(im) >= 128+ cols = np.nonzero(a.any(axis=0))[0]+ w = max(adv, int(cols.max()) + 1 if len(cols) else 0)+ glyphs.append((adv, a[:, :w]))+ rows = np.nonzero(np.any([g[1].any(axis=1) for g in glyphs if g[1].size], axis=0))[0]+ top, bot = int(rows.min()), int(rows.max()) + 1+ return bot - top, [(adv, a[top:bot]) for adv, a in glyphs]+++def main():+ out = ["/* Generated by tools/font.py: Fake Receipt (Ray Larabie, Typodermic Fonts) and",+ " * Dot Matrix (Dionaea), 1 bit per pixel. Characters 32 to 95. */",+ "#include <stdint.h>", "#include \"font.h\""]+ prev = []+ for name, file, size, extra in SPECS:+ h, glyphs = raster(file, size, extra)+ bits, offs, widths = [], [], []+ for adv, a in glyphs:+ offs.append(len(bits))+ widths.append(a.shape[1])+ bits += [int(v) for v in a.flatten()]+ data = bytearray((len(bits) + 7) // 8)+ for i, b in enumerate(bits):+ if b:+ data[i >> 3] |= 1 << (i & 7)+ advs = [adv for adv, _ in glyphs]+ out.append(f"static const uint8_t {name}_bits[] = {{{','.join(map(str, data))}}};")+ out.append(f"static const uint16_t {name}_off[] = {{{','.join(map(str, offs))}}};")+ out.append(f"static const uint8_t {name}_w[] = {{{','.join(map(str, widths))}}};")+ out.append(f"static const uint8_t {name}_adv[] = {{{','.join(map(str, advs))}}};")+ out.append(f"const font_t {name} = {{{h}, {name}_bits, {name}_off, {name}_w, {name}_adv}};")+ prev.append((h, glyphs))+ (HERE.parent / "src" / "font.c").write_text("\n".join(out) + "\n")+ if len(sys.argv) > 1:+ W = 320+ im = Image.new("L", (W, 120), 0)+ y = 2+ for h, glyphs in prev:+ x = 2+ for adv, a in glyphs:+ if x + adv > W:+ x, y = 2, y + h + 2+ im.paste(Image.fromarray((a * 255).astype(np.uint8)), (x, y))+ x += adv+ y += h + 4+ im.resize((W * 3, 360), Image.NEAREST).save(sys.argv[1])+++if __name__ == "__main__":+ main()diff --git a/games/buckshot/tools/pack.py b/games/buckshot/tools/pack.pynew file mode 100644index 00000000..02a6cdcd--- /dev/null+++ b/games/buckshot/tools/pack.py@@ -0,0 +1,194 @@+#!/usr/bin/env python3+"""Packs assets/ (plates, sprites, art.json) into src/assets.c and src/assets.h.++Every picture is stored as indices into one shared palette (the original's+post-processing leaves few colors), index 0 being transparent, coded with+tools/pixcode.py, which src/pixcode.c decodes straight into the frame buffer.++Usage: pack.py+"""+import json+import os+import re+from pathlib import Path++import numpy as np+from PIL import Image++from pixcode import decode, encode++VERIFY = bool(os.environ.get("BR_VERIFY"))++HERE = Path(__file__).resolve().parent+A = HERE.parent / "assets"+SRC = HERE.parent / "src"++# colors the interface draws with, first in the palette: index 1.. (names for assets.h)+# Pictures drawn with another's data, moved to where their own render sits:+# items in neighbouring slots of a row look alike, so a row shares one render.+ALIAS = {}+for _i in range(9):+ for _g in (0, 1, 5): # your side: its far row and its near row look alike+ ALIAS[f"it{_i}p{_g}"] = f"it{_i}p4"+ for _g in (2, 3, 7):+ ALIAS[f"it{_i}p{_g}"] = f"it{_i}p6"+ for _g in (1, 4, 5):+ ALIAS[f"it{_i}d{_g}"] = f"it{_i}d0"+ for _g in (3, 6, 7):+ ALIAS[f"it{_i}d{_g}"] = f"it{_i}d2"+ for _g in (1, 4, 5): # the Dealer view: his far row, and his near row+ ALIAS[f"di{_i}{_g}"] = f"di{_i}0"+ for _g in (3, 6, 7):+ ALIAS[f"di{_i}{_g}"] = f"di{_i}2"+HALF_SPRITES = set() # sprites cut from 160x120 renders+LOGO_POS = (14, 18)+SKIP = {"p_mag_l", "p_mag_b", "d_gun_aimp_saw", "p_inv0"} # the barrel turned to you: the close-up follows++UI = [("BLACK", (0, 0, 0)), ("WHITE", (255, 255, 255)), ("GREY", (146, 146, 146)), ("DARK", (36, 36, 36)),+ ("RED", (219, 36, 36)), ("BLUE", (36, 73, 219)), ("DOT", (219, 255, 219)), ("YELLOW", (255, 219, 109))]+++def ident(name):+ return re.sub(r"\W", "_", name).upper()+++def main():+ art = json.loads((A / "art.json").read_text())+ pics = [] # (name, x, y, rgba array)+ half = set()+ for name, file in art["plates"].items():+ a = np.array(Image.open(A / file).convert("RGBA"))+ pics.append(("PL_" + ident(name), 0, 0, a))+ if a.shape[1] == 160:+ half.add("PL_" + ident(name))+ pics.append(("LOGO", LOGO_POS[0], LOGO_POS[1], np.array(Image.open(A / "logo.png").convert("RGBA"))))+ alias = []+ for name, pos in art["sprites"].items():+ if pos is None or name in SKIP:+ continue+ a = np.array(Image.open(A / "sprites" / f"{name}.png").convert("RGBA"))+ if name in ALIAS:+ src = ALIAS[name]+ b = np.array(Image.open(A / "sprites" / f"{src}.png").convert("RGBA"))+ ca = np.argwhere(a[..., 3] > 0).mean(axis=0)+ cb = np.argwhere(b[..., 3] > 0).mean(axis=0)+ sp = art["sprites"][src]+ alias.append((ident(name), ident(src), int(round(sp[0] + ca[1] + pos[0] - sp[0] - cb[1])),+ int(round(sp[1] + ca[0] + pos[1] - sp[1] - cb[0]))))+ continue+ if name in HALF_SPRITES:+ half.add(ident(name))+ pos = [pos[0] * 2, pos[1] * 2]+ pics.append((ident(name), pos[0], pos[1], a))+ # shell in the chamber, over the magnifier pose+ for k in "lb":+ a = np.array(Image.open(A / "sprites" / f"p_mag_{k}.png").convert("RGBA"))+ b = np.array(Image.open(A / "sprites" / "p_mag.png").convert("RGBA"))+ d = np.any(a != b, axis=2)+ ys, xs = np.nonzero(d)+ y0, y1, x0, x1 = ys.min(), ys.max() + 1, xs.min(), xs.max() + 1+ c = a[y0:y1, x0:x1].copy()+ c[..., 3] = d[y0:y1, x0:x1] * 255+ p = art["sprites"]["p_mag"]+ pics.append((f"P_MAG_{k.upper()}", p[0] + int(x0), p[1] + int(y0), c))+ colors = {c: i + 1 for i, (_, c) in enumerate(UI)}+ found = set()+ for _, _, _, a in pics:+ px = a[a[..., 3] > 0][:, :3]+ found |= {tuple(int(v) for v in t) for t in np.unique(px, axis=0)}+ for c in sorted(found - set(colors), key=lambda c: (c[0] * 3 + c[1] * 5 + c[2] * 2, c)):+ colors[c] = len(colors) + 1 # by brightness: neighbouring indices look alike+ assert len(colors) < 128, len(colors)+ lut = np.zeros(1 << 24, np.uint8)+ for c, i in colors.items():+ lut[c[0] << 16 | c[1] << 8 | c[2]] = i+ blob = bytearray()+ table = []+ seen = {}+ for name, x, y, a in pics:+ key = (x, y, a.shape, a.tobytes())+ if key in seen:+ alias.append((name, seen[key], x, y))+ continue+ seen[key] = name+ rgb = a[..., :3].astype(np.uint32)+ idx = lut[rgb[..., 0] << 16 | rgb[..., 1] << 8 | rgb[..., 2]]+ idx[a[..., 3] == 0] = 0+ z = encode(idx)+ if VERIFY:+ assert (decode(z, idx.shape[1], idx.shape[0]) == idx).all(), name+ table.append((name, x, y, a.shape[1], a.shape[0], len(blob) | (1 << 31 if name in half else 0)))+ blob += z+ byname = {t[0]: t for t in table}+ for name, src, x, y in alias:+ t = byname[src]+ table.append((name, x, y, t[3], t[4], t[5]))+ # keep the pictures in their listed order: the game counts on runs of them+ # (the 16 slots of an item, the shells, the symbols of the display)+ order = [p[0] for p in pics] + [a[0] for a in alias if a[0] not in {p[0] for p in pics}]+ rank = {n: i for i, n in enumerate(order)}+ listed = [ident(n) for n, pos in art["sprites"].items() if pos is not None]+ for i, n in enumerate(listed):+ rank.setdefault(n, len(order) + i)+ plates = [p[0] for p in pics if p[0].startswith("PL_")]+ seq = plates + ["LOGO"] + [n for n in listed if n in {t[0] for t in table}]+ seq += [t[0] for t in table if t[0] not in seq]+ pos_of = {n: i for i, n in enumerate(seq)}+ table.sort(key=lambda t: pos_of[t[0]])+ pal = sorted(colors.items(), key=lambda kv: kv[1])+ rgb565 = [0] + [(r & 0xF8) << 8 | (g & 0xFC) << 3 | b >> 3 for (r, g, b), _ in pal]+ rgb888 = [0] + [r << 16 | g << 8 | b for (r, g, b), _ in pal]++ h = ["/* Generated by tools/pack.py from assets/: do not edit. */", "#ifndef BR_ASSETS_H", "#define BR_ASSETS_H",+ "#include <stdint.h>", "", "typedef struct {", " int16_t x, y;", " uint16_t w, h;", " uint32_t off; /* top bit: stored at half size, drawn doubled */",+ "} img_t;", "", "enum {"]+ for name, *_ in table:+ h.append(f" IMG_{name},")+ h += [" IMG_COUNT", "};", "enum {"]+ for i, (n, _) in enumerate(UI):+ h.append(f" C_{n} = {i + 1},")+ h += ["};", f"#define PAL_COUNT {len(rgb565)}", "extern const img_t art_img[IMG_COUNT + 1];",+ "extern const uint8_t art_data[];", "extern const uint32_t art_pal[PAL_COUNT];",+ "extern const int16_t slot_rect[2][8][4];", "extern const int16_t dslot_rect[8][4];", "#endif"]+ (SRC / "assets.h").write_text("\n".join(h) + "\n")++ # the screen rectangle of each table slot, from the items drawn in it (for the cursor):+ # the table view (player, Dealer) and the Dealer view (his slots)+ def rect(name):+ p = art["sprites"].get(name)+ im = Image.open(A / "sprites" / f"{name}.png")+ return [p[0] - 3, p[1] - 3, im.width + 6, im.height + 6]+ rects = [[rect(f"it3{side}{g}") for g in range(8)] for side in "pd"]+ drects = [rect(f"di3{g}") for g in range(8)]++ c = ["/* Generated by tools/pack.py from assets/: do not edit. */", '#include "assets.h"',+ "const img_t art_img[IMG_COUNT + 1] = {"]+ for name, x, y, w, hh, off in table:+ c.append(f" {{{x}, {y}, {w}, {hh}, {off}}},")+ c.append(f" {{0, 0, 0, 0, {len(blob)}}},")+ c.append("};")+ c.append(f"const uint32_t art_pal[PAL_COUNT] = {{{','.join(hex(v) for v in rgb888)}}};")+ c.append("const int16_t slot_rect[2][8][4] = {" + ",".join(+ "{" + ",".join("{" + ",".join(map(str, r)) + "}" for r in rs) + "}" for rs in rects) + "};")+ c.append("const int16_t dslot_rect[8][4] = {" + ",".join("{" + ",".join(map(str, r)) + "}" for r in drects) + "};")+ blob += bytes(4) # the decoder may read a little ahead+ c.append("const uint8_t art_data[] = {")+ for k in range(0, len(blob), 32):+ c.append(",".join(str(b) for b in blob[k:k + 32]) + ",")+ c.append("};")+ (SRC / "assets.c").write_text("\n".join(c) + "\n")+ print(f"{len(table)} pictures, {len(colors)} colors, {len(blob)} bytes")+ sizes = {}+ for (name, *_ ), nxt in zip(table, table[1:] + [(None, 0, 0, 0, 0, len(blob))]):+ pass+ real = [t for t in table if t[0] not in {a[0] for a in alias}]+ offs = [t[5] & 0x7FFFFFFF for t in real] + [len(blob)]+ groups = {}+ for i, t in enumerate(real):+ k = re.match(r"[A-Z]+_?[A-Z]*", t[0]).group(0)[:6]+ groups[k] = groups.get(k, 0) + offs[i + 1] - offs[i]+ print(sorted(groups.items(), key=lambda kv: -kv[1]))+++if __name__ == "__main__":+ main()diff --git a/games/buckshot/tools/pixcode.py b/games/buckshot/tools/pixcode.pynew file mode 100644index 00000000..173ba80d--- /dev/null+++ b/games/buckshot/tools/pixcode.py@@ -0,0 +1,170 @@+"""Buckshot's picture coder (the encoder; src/pixcode.c decodes).++Each pixel (a palette index, 0 = transparent) is coded with a binary range+coder and adaptive probabilities, from what the decoder already has around+it: is it the same as the pixel on its left? if not, the same as the one+above? if not, its index, bit by bit. The contexts of those questions are+how the neighbours (left, above, above left, above right) agree, and how long+the current run is. The pictures are posterized renders with large areas of+one color and dithering between two levels, which this codes about 30%+smaller than DEFLATE, while decoding about as fast.+"""+import numpy as np++PROB_BITS = 12+ONE = 1 << PROB_BITS+FLAG_SHIFT, LIT_SHIFT = 4, 5+LIT_BITS = 7 # indices up to 127+++class Encoder:+ def __init__(self):+ self.low = 0+ self.range = 0xFFFFFFFF+ self.cache = 0+ self.cache_size = 1+ self.out = bytearray()++ def _shift_low(self):+ if self.low < 0xFF000000 or self.low >= 1 << 32:+ carry = self.low >> 32+ temp = self.cache+ while True:+ self.out.append((temp + carry) & 0xFF)+ temp = 0xFF+ self.cache_size -= 1+ if not self.cache_size:+ break+ self.cache = (self.low >> 24) & 0xFF+ self.cache_size += 1+ self.low = (self.low << 8) & 0xFFFFFFFF++ def bit(self, probs, i, b, shift):+ p = probs[i]+ bound = (self.range >> PROB_BITS) * p+ if not b:+ self.range = bound+ probs[i] = p + ((ONE - p) >> shift)+ else:+ self.low += bound+ self.range -= bound+ probs[i] = p - (p >> shift)+ while self.range < 1 << 24:+ self.range = (self.range << 8) & 0xFFFFFFFF+ self._shift_low()++ def finish(self):+ for _ in range(5):+ self._shift_low()+ return bytes(self.out[1:]) # the first byte is always 0: the decoder starts without it+++def encode(idx):+ """idx: 2-D array of palette indices (0..127)."""+ idx = np.asarray(idx, dtype=np.int32)+ assert idx.max() < 1 << LIT_BITS+ h, w = idx.shape+ rc = Encoder()+ flag_a = [ONE // 2] * 16+ flag_b = [ONE // 2] * 8+ lit = [ONE // 2] * (1 << LIT_BITS)+ run = 0+ rows = idx.tolist()+ for y in range(h):+ row = rows[y]+ prev = rows[y - 1] if y else None+ for x in range(w):+ s = row[x]+ if x:+ left = row[x - 1]+ else:+ left = prev[0] if y else 0+ up = prev[x] if y else left+ ul = prev[x - 1] if (x and y) else up+ ur = prev[x + 1] if (y and x + 1 < w) else up+ ca = (left == up) | (up == ul) << 1 | (up == ur) << 2 | run << 3+ if s == left:+ rc.bit(flag_a, ca, 1, FLAG_SHIFT)+ run = 1+ continue+ rc.bit(flag_a, ca, 0, FLAG_SHIFT)+ run = 0+ if up != left:+ cb = (up == ul) | (up == ur) << 1 | (left == ul) << 2+ if s == up:+ rc.bit(flag_b, cb, 1, FLAG_SHIFT)+ continue+ rc.bit(flag_b, cb, 0, FLAG_SHIFT)+ node = 1+ for i in range(LIT_BITS - 1, -1, -1):+ b = (s >> i) & 1+ rc.bit(lit, node, b, LIT_SHIFT)+ node = node * 2 + b+ return rc.finish()+++def decode(data, w, h):+ """The reference decoder (for tests): the same steps as src/pixcode.c."""+ data = bytes(data) + bytes(8)+ pos = 4+ code = int.from_bytes(data[:4], "big")+ rng = 0xFFFFFFFF+ flag_a = [ONE // 2] * 16+ flag_b = [ONE // 2] * 8+ lit = [ONE // 2] * (1 << LIT_BITS)++ def bit(probs, i, shift):+ nonlocal code, rng, pos+ p = probs[i]+ bound = (rng >> PROB_BITS) * p+ if code < bound:+ rng = bound+ probs[i] = p + ((ONE - p) >> shift)+ b = 0+ else:+ rng -= bound+ code -= bound+ probs[i] = p - (p >> shift)+ b = 1+ while rng < 1 << 24:+ rng = (rng << 8) & 0xFFFFFFFF+ code = ((code << 8) | data[pos]) & 0xFFFFFFFF+ pos += 1+ return b++ out = [[0] * w for _ in range(h)]+ run = 0+ for y in range(h):+ row = out[y]+ prev = out[y - 1] if y else None+ for x in range(w):+ left = row[x - 1] if x else (prev[0] if y else 0)+ up = prev[x] if y else left+ ul = prev[x - 1] if (x and y) else up+ ur = prev[x + 1] if (y and x + 1 < w) else up+ ca = (left == up) | (up == ul) << 1 | (up == ur) << 2 | run << 3+ if bit(flag_a, ca, FLAG_SHIFT):+ row[x] = left+ run = 1+ continue+ run = 0+ if up != left:+ cb = (up == ul) | (up == ur) << 1 | (left == ul) << 2+ if bit(flag_b, cb, FLAG_SHIFT):+ row[x] = up+ continue+ node = 1+ for _ in range(LIT_BITS):+ node = node * 2 + bit(lit, node, LIT_SHIFT)+ row[x] = node - (1 << LIT_BITS)+ return np.array(out)+++if __name__ == "__main__":+ rng = np.random.default_rng(1)+ for w, h in ((1, 1), (5, 3), (40, 30)):+ a = rng.integers(0, 5, (h, w))+ a[a == 4] = rng.integers(0, 127, (a == 4).sum())+ z = encode(a)+ assert (decode(z, w, h) == a).all(), (w, h)+ print("ok")diff --git a/games/buckshot/tools/render.py b/games/buckshot/tools/render.pynew file mode 100644index 00000000..f740ca83--- /dev/null+++ b/games/buckshot/tools/render.py@@ -0,0 +1,395 @@+#!/usr/bin/env python3+"""Renders Buckshot's art from the original game's scenes.++The pictures come from the Godot project of Buckshot Roulette (an open+decompilation, e.g. github.com/1503Dev/OpenBuckshotRoulette), rendered by+Godot 4.7 with the game's own lighting and post-processing at 320x240.+render/director.gd poses the scene for each shot; this script lists the+shots. The PNGs land in RENDER_DIR; tools/cut.py turns them into the sprites+and plates in assets/.++Usage: GODOT=/path/to/Godot BR_PROJECT=/path/to/project RENDER_DIR=dir render.py [job ...]+"""+import json+import os+import subprocess+import sys+from pathlib import Path++HERE = Path(__file__).resolve().parent+GODOT = os.environ.get("GODOT", "/Applications/Godot.app/Contents/MacOS/Godot")+PROJECT = os.environ.get("BR_PROJECT", "")+OUT = Path(os.environ.get("RENDER_DIR", HERE / ".renders"))++# node paths in scenes/main.tscn+DEALER_HEAD = "dealer model parent"+DEALER_HANDS = "dealer hands main1"+GUN = "tabletop parent/shotgun main parent"+GUN_SEG = "tabletop parent/shotgun main parent/shotgun parent new/shotgun cut segment"+GUN_HAND_R = "tabletop parent/shotgun main parent/shotgun parent new/dealer hand_shotgun right"+GUN_HAND_L = "tabletop parent/shotgun main parent/shotgun parent new/shotgun-forearm_003/dealer hand shotgun_left"+A_DEALER = "dealer model parent/animator_dealer parent"+A_HEAD_BOB = "dealer model parent/animator_dealer head bob"+A_HEAD_LOOK = "dealer model parent/animator_dealer head look"+A_HANDS = "dealer hands main1/animator_dealer hands"+A_GUN = "tabletop parent/shotgun main parent/anim_shotgun main parent"+A_COMP = "tabletop parent/main tabletop/compartments parent/animator_compartments"+A_BRIEF = "tabletop parent/main tabletop/compartments parent/animator_briefcase compartments"+A_SHELLS = "tabletop parent/main tabletop/compartment_shells/animator_shell compartment"+A_PLAYER = "player item interaction parent/animator_player items"++ITEMS = ["handsaw", "magnifying glass", "beer", "cigarettes", "handcuffs", "expired medicine", "burner phone",+ "adrenaline", "inverter"]++# cameras: (position, rotation in degrees, vertical field of view).+# T: the table, from behind and above the original's "home" seat, on a long+# lens: the Dealer looms across the table, and every item slot and the+# shotgun still fit on the screen (the player's turn).+# D: the original's "enemy" camera, closer: the Dealer looms over his side of+# the table (his turn, his words, his items).+VIEWS = {+ "T": ([-15.8, 7.9, 0.024], [-23.5, -90, 0], 53),+ "D": ([-13.59, 7.323, 0.024], [-14.5, -90, 0], 42),+}+# the field of view of the original's "home" camera: the player's hands are+# rendered with it (cut out by their mask, over the table view), so that they+# cover the screen as they do there+HOME_FOV = 65.5+# the Dealer turning the barrel on you, up close+ZVIEW = dict(campos=[-13.59, 7.323, 0.024], camrot=[-9, -88, 0], fov=22)+SS = 4 # every picture is rendered 4x larger and averaged down (tools/cut.py)++SEATED = [A_DEALER, "dealer return to table", 2.0]+OPEN = [A_COMP, "show items", 0.9]+++# the waiver lying on the table at the start of the original: some reloads of+# the scene leave it showing, so every shot hides it+RELEASE_FORM = "signature machine2/release form on table"+++def shot(name, view=None, anims=(), hide=(), show=(), items=(), **kw):+ s = {"name": name, "anims": [list(a) for a in anims], "hide": list(hide), "show": list(show),+ "items": [list(i) for i in items]}+ kw["hide2"] = list(kw.get("hide2", [])) + [RELEASE_FORM]+ if view:+ pos, rot, fov = VIEWS[view]+ s.update(campos=pos, camrot=rot, fov=fov)+ s.update(kw)+ return s+++NO_DEALER = [DEALER_HEAD, DEALER_HANDS]+A_SHOOT_TEXT = "ui parent_shooting decision/animator_shooting text"+A_LOAD = "tabletop parent/shotgun main parent/shotgun parent new/dealer hand_shotgun right/animator_dealer hand shotgun right"+HC = "tabletop parent/main tabletop/health counter/health counter ui parent/"+HCM = "health counter main1/main counter/health counter parent/"+PIP = "player item interaction parent"+HVIEW = ([-1.74, 1.55, 5.1], [-17.6, 180, 0], 33)+RIND = [None, [-0.616, -0.018, 0.438], [0.004, -0.018, 0.438], [0.636, -0.018, 0.438]]+EMPTY = {"items": [], "shells": [], "rebase": [], "examine": None, "ejectshell": None, "show": [], "show2": [], "hide2": [],+ "xform": [], "layers": [], "props": [], "env": []}+BM = "briefcase machine parent/briefcase machine animator"+LID = "briefcase machine parent/Plane_005/briefcase parent in vehicle/briefcase hinge/animator_lid"+ENDING_ENV = [["adjustment_brightness", 5.68], ["adjustment_contrast", 1.3], ["adjustment_saturation", 0.26]]+++def base(opened=True, *extra):+ a = [SEATED]+ if opened:+ a.append(OPEN)+ return a + [list(e) for e in extra]+++def plate_of(**kw):+ d = dict(EMPTY)+ d.update(kw)+ return d+++def job_table():+ """The table view: plates, the shotgun, the items, the item box, the Dealer at rest."""+ hide_all = NO_DEALER + [GUN]+ P2 = plate_of(anims=base(), hide=hide_all)+ out = [+ shot("T_plate1", "T", base(False), hide=hide_all),+ shot("T_plate2", "T", base(), hide=hide_all),+ shot("T_gun", "T", base(), hide=NO_DEALER, base=P2),+ shot("T_gunsaw", "T", base(), hide=NO_DEALER + [GUN_SEG], base=P2),+ shot("T_box", "T", base(True, [A_BRIEF, "show briefcase", 2.0]), hide=hide_all, base=P2),+ shot("T_pcuff", "T", base(), hide=hide_all, show=["player cuff bar/handcuffs player bar"], base=P2),+ shot("T_hands", "T", base(), hide=[DEALER_HEAD, GUN], base=P2),+ shot("T_cuffed", "T", base(True, [A_HANDS, "dealer get handcuffed", 3.1]), hide=[DEALER_HEAD, GUN], base=P2),+ ]+ for k, t in enumerate((0.0, 0.5, 1.0, 1.5)):+ out.append(shot(f"T_head{k}", "T", base(True, [A_HEAD_BOB, "dealer head bob", t]), hide=[DEALER_HANDS, GUN], base=P2))+ for i, it in enumerate(ITEMS):+ for side in "pd":+ for g in range(8):+ out.append(shot(f"T_it_{i}_{side}{g}", "T", base(), hide=hide_all, items=[(it, side, g)], base=P2))+ return {"shots": out, "chunk": 24, "size": [320 * SS, 240 * SS]} # items stop showing after a few hundred renders+++def job_dealer():+ """The Dealer view: plates, his items, the shotgun on the table, the Dealer+ at rest, and every pose (items, shotgun, flying back), each cut against him at rest."""+ hide_all = NO_DEALER + [GUN]+ P2 = plate_of(anims=base(), hide=hide_all)+ IDLE = plate_of(anims=base()) # the Dealer at rest, the gun on the table+ NOGUN = plate_of(anims=base(), hide=[GUN])+ out = [+ shot("D_plate1", "D", base(False), hide=hide_all),+ shot("D_plate2", "D", base(), hide=hide_all),+ shot("D_gun", "D", base(), hide=NO_DEALER, base=P2),+ shot("D_gunsaw", "D", base(), hide=NO_DEALER + [GUN_SEG], base=P2),+ shot("D_head", "D", base(), hide=[DEALER_HANDS, GUN], base=P2),+ shot("D_hands", "D", base(), hide=[DEALER_HEAD, GUN], base=P2),+ shot("D_eyes", "D", base(), hide=hide_all, show=["briefcase machine eyes"], base=P2),+ ]+ for i, it in enumerate(ITEMS):+ for g in range(8):+ out.append(shot(f"D_it_{i}_{g}", "D", base(), hide=hide_all, items=[(it, "d", g)], base=P2))+ poses = [("cuffed", "dealer get handcuffed", 3.1), ("getcuff", "dealer get handcuffed", 1.55),+ ("adr0", "dealer use adrenaline", 0.64), ("adr1", "dealer use adrenaline", 1.06),+ ("beer0", "dealer use beer", 0.22), ("beer1", "dealer use beer", 1.55),+ ("phone0", "dealer use burner phone", 1.15), ("phone1", "dealer use burner phone", 2.99),+ ("cig0", "dealer use cigarettes", 1.18), ("cig1", "dealer use cigarettes", 2.12),+ ("med0", "dealer use expired medicine", 2.12), ("med1", "dealer use expired medicine", 2.58),+ ("cuffs0", "dealer use handcuffs", 0.12), ("cuffs1", "dealer use handcuffs", 0.88),+ ("saw0", "dealer use handsaw", 1.0), ("saw1", "dealer use handsaw", 2.2), ("saw2", "dealer use handsaw", 2.6),+ ("inv0", "dealer use inverter", 1.11), ("inv1", "dealer use inverter", 1.56),+ ("mag0", "dealer use magnifying glass", 1.39), ("mag1", "dealer use magnifying glass", 3.06),+ ("medfall", "dealer death medicine", 0.22)]+ for name, an, t in poses:+ out.append(shot(f"D_{name}", "D", base(True, [A_HANDS, an, t]), hide=[GUN] if not name.startswith("saw") else [], base=NOGUN if not name.startswith("saw") else IDLE))+ gp = lambda an, t, *more: base(True, [A_HANDS, "dealer grab shotgun", 1.0], [A_GUN, an, t], *more)+ guns = [("load", gp("grab shotgun_pointing enemy", 0.45)),+ ("load1", gp("grab shotgun_pointing enemy", 0.45, [A_LOAD, "load single shell", 0.09])),+ ("aimp", gp("enemy shoot player", 0.63)), ("aims", gp("enemy shoot self", 0.78)),+ ("rack", gp("enemy eject shell_from player", 0.53)), ("racks", gp("enemy eject shell_from self", 0.53)),+ ("aimp0", gp("enemy shoot player", 0.21)), ("aims0", gp("enemy shoot self", 0.61)),+ ("lift", gp("grab shotgun_pointing enemy", 0.14))]+ for name, a in guns:+ out.append(shot(f"D_gun_{name}", "D", a, show2=[GUN_HAND_R, GUN_HAND_L], base=IDLE))+ for name, a in guns[2:4]:+ out.append(shot(f"D_gun_{name}_saw", "D", a, show2=[GUN_HAND_R, GUN_HAND_L], hide2=[GUN_SEG], base=IDLE))+ for k, t in enumerate((0.01, 0.02)):+ out.append(shot(f"D_fly{k}", "D", [OPEN, [A_DEALER, "dealer fly away", t]], hide=[GUN], base=P2))+ # the barrel turned to you, up close: a picture of its own+ out.append(shot("Z_aimp", None, gp("enemy shoot player", 0.63), show2=[GUN_HAND_R, GUN_HAND_L], **ZVIEW))+ ED = "shell parent_ejecting enemy side"+ for k in ("live", "blank"):+ out.append(shot(f"D_eject_{k[0]}", "D", base(True, [ED + "/animator_eject shell enemy", "eject shell beer", 0.3]),+ hide=hide_all, ejectshell=[ED + "/shell eject manager", k], maskroots=[ED], base=P2))+ out.append(shot("P_aimd", "D", base(True, [A_GUN, "player shoot dealer", 1.85]),+ rebase=[[GUN, "enemy"]], maskroots=[GUN], base=NOGUN))+ out.append(shot("P_aimd_saw", "D", base(True, [A_GUN, "player shoot dealer", 1.85]), hide2=[GUN_SEG],+ rebase=[[GUN, "enemy"]], maskroots=[GUN], base=NOGUN))+ # the ending: the briefcase comes down onto the table and opens+ out.append(shot("E_brief0", "D", base(True, [BM, "move to table", 3.0]), hide=hide_all, show=["briefcase machine parent"], base=P2))+ out.append(shot("E_brief1", "D", base(True, [BM, "move to table", 4.5]), hide=hide_all, show=["briefcase machine parent"], base=P2))+ out.append(shot("E_brief2", "D", base(True, [BM, "move to table", 4.5], [LID, "open", 1.0]), hide=hide_all,+ show=["briefcase machine parent"], base=P2))+ return {"shots": out, "chunk": 4, "size": [320 * SS, 240 * SS]}+++def job_poses():+ """The player's hands in the table view, placed in front of the camera the+ way they sit in front of the original's camera. Each is cut out with its+ mask pass: the object itself, not the shadow and light it throws on the table."""+ hide_all = NO_DEALER + [GUN]+ P2 = plate_of(anims=base(), hide=hide_all)+ home = [[GUN, "home"], [PIP, "home"]]+ g = lambda an, t, *m: base(True, [A_GUN, an, t], *m)+ tx = base(True, [A_SHOOT_TEXT, "show text", 1.0])+ LBL = "ui parent_shooting decision/text "+ out = [+ shot("P_hold", "T", g("player grab shotgun", 5.0), hide=NO_DEALER, rebase=home, fov=HOME_FOV, maskroots=[GUN], base=P2),+ # "DEALER" written on the table ("YOU" lies below the picture: the game writes it)+ shot("P_lbl_dealer", "T", tx, hide=hide_all, show=[LBL + "dealer"], hide2=[LBL + "you"], maskroots=[LBL + "dealer"], base=P2),+ shot("P_aims", "T", g("player shoot self", 2.6), hide=NO_DEALER, rebase=home, fov=HOME_FOV, maskroots=[GUN], base=P2),+ shot("P_aims_saw", "T", g("player shoot self", 2.6), hide=NO_DEALER, hide2=[GUN_SEG], rebase=home, fov=HOME_FOV, maskroots=[GUN], base=P2),+ shot("P_rack", "T", g("player eject shell2", 1.1), hide=NO_DEALER, rebase=home, fov=HOME_FOV, maskroots=[GUN], base=P2),+ shot("P_god", "T", base(True, ["release form_god/animator_god release form", "grab form", 1.0]),+ hide=hide_all, rebase=[["release form_god", "briefcase"]], maskroots=["release form_god"], base=P2),+ ]+ for k in ("", "live", "blank"):+ kw = {"examine": k} if k else {}+ out.append(shot("P_mag" + (f"_{k[0]}" if k else ""), "T", base(True, [A_PLAYER, "player use magnifier", 3.2]),+ hide=NO_DEALER, rebase=home, fov=HOME_FOV, maskroots=[GUN], base=P2, **kw))+ # the items: the item alone (the shotgun stays on the table), or with the shotgun+ ip = lambda *ns: [PIP + "/" + n for n in ns]+ for name, an, t, roots in (+ ("mag0", "player use magnifier", 0.29, ip("magnifying glass parent")),+ ("saw0", "player use handsaw", 0.27, ip("handsaw parent")),+ ("saw1", "player use handsaw", 1.34, ip("handsaw parent", "player shotgun segment") + [GUN]),+ ("beer0", "player use beer", 0.98, ip("beer can pivot parent")),+ ("beer1", "player use beer", 1.9, ip("beer can pivot parent")),+ ("cig0", "player use cigarettes", 0.65, ip("cigarette box pivot parent", "zippo lighter parent2")),+ ("cig1", "player use cigarettes", 1.08, ip("cigarette box pivot parent", "zippo lighter parent2")),+ ("phone0", "player use burner phone", 1.44, ip("burner phone")),+ ("phone1", "player use burner phone", 2.41, ip("burner phone")),+ ("med0", "player use expired pills", 0.69, ip("expired medicine parent")),+ ("med1", "player use expired pills", 1.16, ip("expired medicine parent")),+ ("adr0", "player use adrenaline", 0.99, ip("adrenaline", "adrenaline cap2")),+ ("adr1", "player use adrenaline", 2.32, ip("adrenaline", "adrenaline cap2")),+ ("inv0", "player use inverter", 0.54, ip("inverter parent")),+ ("inv1", "player use inverter", 1.27, ip("inverter parent"))):+ gun = GUN in roots+ out.append(shot(f"P_{name}", "T", base(True, [A_PLAYER, an, t]), hide=NO_DEALER if gun else hide_all,+ rebase=home if gun else [[PIP, "home"]], fov=HOME_FOV, maskroots=roots, base=P2))+ EP = "shell parent_ejecting player side"+ for k in ("live", "blank"):+ out.append(shot(f"P_eject_{k[0]}", "T", base(True, [EP + "/animator_ejecting shell player", "ejecting shell_player1", 0.25]),+ hide=hide_all, ejectshell=[EP + "/shell eject manager", k], rebase=[[EP, "home"]], fov=HOME_FOV, maskroots=[EP], base=P2))+ return {"shots": out, "chunk": 3, "size": [320 * SS, 240 * SS]} # one pose per run: the plate, the pose, its mask+++def job_health():+ """The charge display, straight on."""+ ui = [HC + "health UI_dealer side", HC + "health UI_player side", HC + "health UI_dividing line"]+ syms_d = [HC + "health UI_dealer side/symbol_dealer" + s for s in "123456"]+ syms_p = [HC + "health UI_player side/symbol_player" + s for s in "123456"]+ txt = [HC + "health UI_dealer side/text_dealer", HC + "health UI_player side/text_player"]+ V = dict(campos=HVIEW[0], camrot=HVIEW[1], fov=HVIEW[2])+ allsym = syms_d + syms_p + [txt[1]]+ frame = plate_of(anims=base(), show=ui, hide2=allsym, **V)+ plate = plate_of(anims=base(), hide=[], hide2=[], **V)+ out = [shot("H_plate", None, base(), **V),+ shot("H_frame", None, base(), show=ui, hide2=allsym, base=plate, **V)]+ for k, p in enumerate(syms_d + syms_p):+ out.append(shot(f"H_sym{k}", None, base(), show=ui + [p], hide2=[q for q in allsym if q != p], base=frame, **V))+ for k, p in enumerate([syms_d[0], syms_d[1], syms_p[0], syms_p[1]]):+ sk = p + "/" + p.rsplit("/", 1)[1] + " skull"+ out.append(shot(f"H_skull{k}", None, base(), show=ui + [p], hide2=[q for q in allsym if q != p],+ layers=[[sk, 1, True], [p, 1, False]], base=frame, **V))+ ri = [HC + "round indicator parent", HC + "round indicator parent/round indicator"]+ blink = base(True, [HC + "round indicator parent/animator_round blinker", "round blinking", 0.05])+ r0 = plate_of(anims=blink, show=[ri[0]], hide2=[ri[1]], **V)+ out.append(shot("H_round0", None, blink, show=[ri[0]], hide2=[ri[1]], base=plate, **V))+ for k in range(1, 4):+ out.append(shot(f"H_round{k}", None, blink, show=ri, xform=[[ri[1], RIND[k], None]], base=r0, **V))+ endless = [["res://misc/mat_round indicator main.tres", "albedo_texture", "res://misc/display rounds endless png.png"]]+ for k in range(1, 4):+ out.append(shot(f"H_endless{k}", None, blink, show=ri, xform=[[ri[1], RIND[k], None]], base=r0, resources=endless, **V))+ out.append(shot("H_err_p", None, base(), show=[HCM + "health counter error_player"], base=plate, **V))+ out.append(shot("H_err_d", None, base(), show=[HCM + "health counter error_dealer"], base=plate, **V))+ # the same display on the table, seen from the table view: its lit symbols+ TV = dict(zip(("campos", "camrot", "fov"), VIEWS["T"]))+ tframe = plate_of(anims=base(), hide=NO_DEALER + [GUN], show=ui, hide2=allsym, **TV)+ tplate = plate_of(anims=base(), hide=NO_DEALER + [GUN], **TV)+ out.append(shot("C_frame", None, base(), hide=NO_DEALER + [GUN], show=ui, hide2=allsym, base=tplate, **TV))+ for k, p in enumerate(syms_d + syms_p):+ out.append(shot(f"C_sym{k}", None, base(), hide=NO_DEALER + [GUN], show=ui + [p], hide2=[q for q in allsym if q != p],+ base=tframe, **TV))+ return {"shots": out, "disable": ["standalone managers"], "size": [320 * SS, 240 * SS]}+++def job_shells():+ """The shell compartment and the eight shells, live and blank."""+ a = base(True, [A_SHELLS, "show shells", 0.3])+ pl = plate_of(anims=a, socket="shell compartment")+ out = [shot("S_plate", None, a, socket="shell compartment")]+ for i in range(8):+ for kind in ("live", "blank"):+ out.append(shot(f"S_{kind[0]}{i}", None, a, socket="shell compartment", shells=[(kind, i)], base=pl))+ return {"shots": out, "chunk": 4, "size": [320 * SS, 240 * SS]}+++SIGN = "signature machine2/signature machine main parent/baseplate main/"+++def job_scenes():+ """Full-size plates: the waiver, the offer machine, the car of the ending."""+ out = [+ shot("W_waiver", None, base(True, ["standalone managers/signature manager/animator_pickup waiver", "pickup waiver", 2.6]),+ socket="home", show=["signature machine2/signature machine main parent"],+ hide2=[SIGN + "screen parent/entry marker"],+ props=[[SIGN + f"screen parent/letter_{i}", "text", ""] for i in range(6)] ++ [[SIGN + f"release form1_003/letter_signed_joined_{i}", "text", ""] for i in range(6)]),+ shot("Y_don", None, base(True, ["double nothing machine1/animator_double nothing machine", "show", 1.15]), socket="yes no"),+ shot("E_car", None, base(), socket="player vehicle", env=ENDING_ENV),+ ]+ return {"shots": out, "chunk": 1, "size": [320 * SS, 240 * SS]}+++def job_rooms():+ """The rooms around the table: bathroom, revival, hallway."""+ I = "intro parent/"+ PILL = "restroom_CLUB/pill bottle main"+ out = [+ shot("B_bath", None, base(), socket="restroom", hide=[PILL]),+ shot("B_pills", None, base(), socket="restroom", show=[PILL], show2=[PILL],+ base=plate_of(anims=base(), socket="restroom", hide=[PILL])),+ shot("B_revive", None, base(True, [I + "animator_intro", "camera player revival", 1.0],+ [I + "smoker dude revive player1/animator_smoker dude revival", "revive player", 1.6]),+ show=[I + "smoker dude revive player1"]),+ shot("L_hall", None, base(), socket="main lobby"),+ ]+ return {"shots": out, "chunk": 2, "size": [320 * SS, 240 * SS]}+++def job_other():+ """Heaven, as the scene plays by itself for a few seconds."""+ return {"shots": [shot("X_heaven", None, [], reset=False, wait=400)], "scene": "res://scenes/heaven.tscn",+ "disable": [], "warmup": 200, "size": [320 * SS, 240 * SS]}+++def job_icon():+ """The app icon: the Dealer's face."""+ out = [shot(f"I_face{f}", None, base(), campos=[-13.59, 7.323, 0.024], camrot=[-4.2, -89.2, 0], fov=f, hide=[GUN, DEALER_HANDS])+ for f in (13, 15, 17)]+ return {"shots": out, "size": [55 * SS, 56 * SS]}+++JOBS = {"icon": job_icon, "table": job_table, "poses": job_poses, "dealer": job_dealer, "health": job_health, "shells": job_shells,+ "scenes": job_scenes, "rooms": job_rooms, "heaven": job_other}+++def paired(shots):+ """Renders each sprite's plate right before it (base=dict of overrides for the plate),+ so that any state an earlier shot left behind is in both and cancels out; and+ for a shot with "maskroots", its mask pass right after it (the posed objects alone)."""+ out = []+ for sh in shots:+ b = sh.pop("base", None)+ if b is not None:+ p = dict(sh)+ p.update(b)+ p["hide2"] = list(p.get("hide2", [])) + [RELEASE_FORM]+ p.pop("maskroots", None)+ p["name"] = sh["name"] + "__base"+ out.append(p)+ out.append(sh)+ if sh.get("maskroots"):+ out.append(dict(sh, name=sh["name"] + "__mask", maskpass=True))+ return out+++def run(name):+ job = JOBS[name]()+ shots = paired(job.pop("shots"))+ out = OUT / name+ out.mkdir(parents=True, exist_ok=True)+ job.setdefault("out", str(out))+ job.setdefault("disable", ["."])+ job.setdefault("fresh", False)+ job.setdefault("wait", 8)+ n = job.pop("chunk", 400) # Godot slows down after many scene reloads: several processes+ for k in range(0, len(shots), n):+ part = dict(job, shots=shots[k:k + n])+ spec = OUT / f"{name}.json"+ spec.write_text(json.dumps(part))+ env = dict(os.environ, SHOTS_FILE=str(spec))+ r = subprocess.run([GODOT, "--path", PROJECT, "-s", str(HERE / "render" / "director.gd")], env=env,+ capture_output=True, text=True)+ for line in r.stdout.splitlines():+ if line.startswith(("MISSING", "NOANIM", "NOITEM")):+ print(name, line)+ print(f"{name}: {len(shots)} shots -> {out}")++if __name__ == "__main__":+ if not PROJECT:+ sys.exit("set BR_PROJECT to the game's Godot project")+ for j in sys.argv[1:] or JOBS:+ run(j)diff --git a/games/buckshot/tools/render/director.gd b/games/buckshot/tools/render/director.gdnew file mode 100644index 00000000..438258d9--- /dev/null+++ b/games/buckshot/tools/render/director.gd@@ -0,0 +1,304 @@+extends SceneTree+# Render director for the Buckshot art pipeline.+#+# Loads a scene of the original game's Godot project, poses it (animation+# players seeked to fixed times, nodes shown or hidden, items placed in the+# table slots, camera placed) and saves one PNG per shot, rendered at the+# NumWorks screen size with the game's own post-processing.+#+# Run from the game project: Godot --path <project> -s director.gd+# with SHOTS_FILE=<json> in the environment (written by tools/render.py).++var main+var cam+var cfg+var shots = []+var idx = -1+var wait = 0+var anims = {}+var spawned = []+var saved = {} # node -> [visible, position, rotation] before any shot touched it+var cull0 = 0 # the camera's own cull mask+const MASK_LAYER = 20++func touch(n):+ if n and not saved.has(n):+ var v = [n.get("visible"), null, null, {}]+ if n is Node3D:+ v[1] = n.position+ v[2] = n.rotation_degrees+ saved[n] = v+ return n++func collect(n):+ if n is AnimationPlayer:+ anims[str(main.get_path_to(n))] = n+ n.callback_mode_process = AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_MANUAL+ # poses only: no method calls (they would run the game's logic) and no sound+ for an in n.get_animation_list():+ var a = n.get_animation(an)+ for t in a.get_track_count():+ var ty = a.track_get_type(t)+ if ty == Animation.TYPE_METHOD or ty == Animation.TYPE_AUDIO or ty == Animation.TYPE_ANIMATION:+ a.track_set_enabled(t, false)+ for c in n.get_children():+ collect(c)++func quiet(n):+ if n is GPUParticles3D or n is CPUParticles3D:+ n.emitting = false+ n.visible = false+ for c in n.get_children():+ quiet(c)++func _initialize():+ cfg = JSON.parse_string(FileAccess.get_file_as_string(OS.get_environment("SHOTS_FILE")))+ shots = cfg["shots"]+ var sz = cfg.get("size", [320, 240])+ root.content_scale_mode = Window.CONTENT_SCALE_MODE_DISABLED+ DisplayServer.window_set_size(Vector2i(sz[0], sz[1]))+ root.size = Vector2i(sz[0], sz[1])+ load_scene()+ for n in ["DebugTools", "ModLoader"]:+ var d = root.get_node_or_null(n)+ if d:+ d.queue_free()+ wait = int(cfg.get("warmup", 90))++# (Re)creates the scene: with "fresh", every shot starts from a new instance,+# since some animations leave state behind that no RESET track undoes.+func load_scene():+ if main:+ root.remove_child(main)+ main.free()+ anims = {}+ saved = {}+ spawned = []+ main = load(cfg.get("scene", "res://scenes/main.tscn")).instantiate()+ root.add_child(main)+ cam = main.get_node_or_null(cfg.get("camera", "Camera"))+ if cam: cull0 = cam.cull_mask+ white = StandardMaterial3D.new()+ white.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED+ white.albedo_color = Color(1, 1, 1)+ collect(main)+ for p in cfg.get("disable", []):+ var n = main.get_node_or_null(p)+ if n:+ n.process_mode = Node.PROCESS_MODE_DISABLED++func node(p):+ var n = main.get_node_or_null(p)+ if n == null:+ print("MISSING ", p)+ return touch(n)++func apply(s):+ for key in ["hide", "show", "hide2", "show2"]:+ for p in s.get(key, []):+ touch(main.get_node_or_null(p))+ for key in ["xform", "props", "layers", "rebase"]:+ for t in s.get(key, []):+ touch(main.get_node_or_null(t[0]))+ if s.get("reset", true):+ for k in anims:+ var ap = anims[k]+ if ap.has_animation("RESET"):+ ap.play("RESET")+ ap.seek(0, true)+ ap.advance(0)+ ap.stop(true)+ for it in spawned:+ it.queue_free()+ spawned = []+ for n in saved:+ if saved[n][0] != null: n.visible = saved[n][0]+ if n is Node3D:+ n.position = saved[n][1]+ n.rotation_degrees = saved[n][2]+ for k in saved[n][3]:+ if k is String:+ n.set_indexed(NodePath(k), saved[n][3][k])+ else:+ n.set_layer_mask_value(k, saved[n][3][k])+ quiet(main)+ if cam: cam.cull_mask = cull0+ for a in s.get("anims", []):+ var ap = anims.get(a[0])+ if ap == null:+ print("NOANIM ", a[0])+ continue+ ap.play(a[1])+ ap.seek(float(a[2]), true)+ ap.advance(0)+ for p in s.get("hide", []):+ var n = node(p)+ if n: n.visible = false+ for p in s.get("show", []):+ var n = node(p)+ if n: n.visible = true+ # "2" lists: nodes the animations above may have toggled, set last+ for p in s.get("hide2", []):+ var n = node(p)+ if n: n.visible = false+ for p in s.get("show2", []):+ var n = node(p)+ if n: n.visible = true+ var im = main.get_node_or_null("standalone managers/item manager")+ for it in s.get("items", []):+ var arr = im.instanceArray if it[1] == "p" else im.instanceArray_dealer+ var grids = im.gridParentArray if it[1] == "p" else im.gridParentArray_enemy+ var res = null+ for r in arr:+ if r.itemName == it[0]:+ res = r+ if res == null:+ print("NOITEM ", it[0])+ continue+ var inst = res.instance.instantiate()+ im.itemSpawnParent.add_child(inst)+ if it.size() > 3:+ inst.transform.origin = Vector3(it[3][0], it[3][1], it[3][2])+ inst.rotation_degrees = Vector3(it[4][0], it[4][1], it[4][2])+ else:+ var g = grids[int(it[2])]+ inst.transform.origin = g.transform.origin + res.pos_offset+ inst.rotation_degrees = g.rotation_degrees + res.rot_offset+ spawned.append(inst)+ var sp = main.get_node_or_null("standalone managers/shell spawner")+ for sh in s.get("shells", []):+ var inst = sp.shellInstance.instantiate()+ var br = inst.get_child(0)+ br.isLive = sh[0] == "live"+ sp.spawnParent.add_child(inst)+ br.ApplyStatus()+ inst.transform.origin = sp.shellLocationArray[int(sh[1])]+ inst.rotation_degrees = Vector3(-90, -90, 180)+ spawned.append(inst)+ if s.get("ejectshell") != null:+ var em = main.get_node(s["ejectshell"][0])+ touch(em.mesh)+ em.mesh.set_surface_override_material(1, em.mat_live if s["ejectshell"][1] == "live" else em.mat_blank)+ em.mesh.visible = true+ if s.get("examine") != null:+ var ex = main.get_node("standalone managers/shell examine")+ touch(ex.shellParent)+ ex.mesh.set_surface_override_material(1, ex.mat_live if s["examine"] == "live" else ex.mat_blank)+ ex.shellParent.visible = true+ for sh in s.get("shells_at", []):+ var inst = sp.shellInstance.instantiate()+ var br = inst.get_child(0)+ br.isLive = sh[0] == "live"+ main.add_child(inst)+ br.ApplyStatus()+ inst.global_position = Vector3(sh[1][0], sh[1][1], sh[1][2])+ inst.rotation_degrees = Vector3(sh[2][0], sh[2][1], sh[2][2])+ if sh.size() > 3: inst.scale = Vector3(sh[3], sh[3], sh[3])+ spawned.append(inst)+ for l in s.get("lights", []):+ var o = OmniLight3D.new()+ main.add_child(o)+ o.global_position = Vector3(l[0][0], l[0][1], l[0][2])+ o.light_energy = l[1]+ o.omni_range = l[2]+ spawned.append(o)+ for t in s.get("xform", []):+ var n = node(t[0])+ if n == null:+ continue+ if t[1] != null: n.position = Vector3(t[1][0], t[1][1], t[1][2])+ if t[2] != null: n.rotation_degrees = Vector3(t[2][0], t[2][1], t[2][2])+ for t in s.get("resources", []):+ # [resource path, property, resource path of the value]: kept for the rest of the run+ var r = load(t[0])+ r.set(t[1], load(t[2]))+ for t in s.get("layers", []):+ var n = node(t[0])+ if n:+ if not saved[n][3].has(int(t[1])): saved[n][3][int(t[1])] = n.get_layer_mask_value(int(t[1]))+ n.set_layer_mask_value(int(t[1]), bool(t[2]))+ for t in s.get("props", []):+ var n = node(t[0])+ if n:+ if not saved[n][3].has(t[1]): saved[n][3][t[1]] = n.get(t[1])+ n.set(t[1], t[2])+ for t in s.get("env", []):+ # [property, value] of the scene's environment (the ending's grading)+ var we = main.get_node_or_null("WorldEnvironment")+ if we:+ touch(we)+ if not saved[we][3].has("environment:" + t[0]): saved[we][3]["environment:" + t[0]] = we.environment.get(t[0])+ we.environment.set(t[0], t[1])+ if s.has("socket"):+ var cm = main.get_node("standalone managers/camera manager")+ for so in cm.socketArray:+ if so.socketName == s["socket"]:+ cam.position = so.pos+ cam.rotation_degrees = so.rot+ cam.fov = so.fov+ if s.has("campos"): cam.position = Vector3(s["campos"][0], s["campos"][1], s["campos"][2])+ if s.has("camrot"): cam.rotation_degrees = Vector3(s["camrot"][0], s["camrot"][1], s["camrot"][2])+ if s.has("fov"): cam.fov = s["fov"]+ for t in s.get("rebase", []):+ rebase(t[0], t[1])+ # the mask pass: only the posed objects, plain white on a layer of their+ # own, so that tools/cut.py keeps their pixels and nothing else (no+ # shadows or light they cast on the table)+ if s.get("maskpass", false):+ var roots = []+ for p in s.get("maskroots", []):+ var n = main.get_node_or_null(p)+ if n: roots.append(n)+ else: print("MISSING ", p)+ if s.get("examine") != null:+ roots.append(main.get_node("standalone managers/shell examine").shellParent)+ if s.get("ejectshell") != null:+ roots.append(main.get_node(s["ejectshell"][0]).mesh)+ roots.append_array(spawned)+ for r in roots:+ mask_layer(r)+ cam.cull_mask = int(s.get("maskcull", 1 << (MASK_LAYER - 1)))++var white = null # the mask pass draws the posed objects plain white+func mask_layer(n):+ if n is VisualInstance3D:+ touch(n)+ if not saved[n][3].has(MASK_LAYER): saved[n][3][MASK_LAYER] = n.get_layer_mask_value(MASK_LAYER)+ n.set_layer_mask_value(MASK_LAYER, true)+ if n is GeometryInstance3D:+ if not saved[n][3].has("material_override"): saved[n][3]["material_override"] = n.material_override+ n.material_override = white+ for c in n.get_children():+ mask_layer(c)++# Moves a node so that it sits in front of the current camera the way it sat+# in front of the camera at `socket` (keeps first-person poses in frame).+func rebase(p, socket):+ var n = node(p)+ var cm = main.get_node("standalone managers/camera manager")+ for so in cm.socketArray:+ if so.socketName == socket:+ var r = so.rot * PI / 180.0+ var from = Transform3D(Basis.from_euler(r, EULER_ORDER_YXZ), so.pos)+ var to = cam.transform+ if cam.get_parent() is Node3D:+ to = cam.get_parent().global_transform * to+ from = cam.get_parent().global_transform * from+ n.global_transform = to * from.affine_inverse() * n.global_transform++func _process(_delta):+ if wait > 0:+ wait -= 1+ return false+ if idx >= 0:+ var img = root.get_texture().get_image()+ img.save_png(cfg["out"] + "/" + shots[idx]["name"] + ".png")+ idx += 1+ if idx >= shots.size():+ quit()+ return false+ if cfg.get("fresh", false) and idx > 0:+ load_scene()+ apply(shots[idx])+ wait = int(shots[idx].get("wait", cfg.get("wait", 4)))+ return falsediff --git a/games/games.json b/games/games.jsonindex f75e9182..6b99f300 100644--- a/games/games.json+++ b/games/games.json@@ -51,6 +51,54 @@],"repo": "https://github.com/Mason363/NumDrive"},+ {+ "id": "balatro",+ "title": "Balatro",+ "tagline": "Poker hands, wild jokers",+ "credit": null,+ "top": "0xFE5F55",+ "bottom": "0x1E2A2C",+ "accent": "0x009DFF",+ "records": [+ "balatro.sav"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/balatro"+ },+ {+ "id": "buckshot",+ "title": "Buckshot Roulette",+ "tagline": "You, the Dealer, one shotgun",+ "credit": null,+ "top": "0x4A2A26",+ "bottom": "0x0E0A09",+ "accent": "0xD83A2E",+ "records": [+ "buckshot.sav"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/buckshot"+ },+ {+ "id": "portal",+ "title": "Portal Returns",+ "tagline": "Think with portals",+ "credit": null,+ "top": "0x4A4952",+ "bottom": "0x1B1A20",+ "accent": "0x1C83E0",+ "records": [+ "portal.sav"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/portal"+ },{"id": "tetris","title": "Tetris",diff --git a/games/portal/.gitignore b/games/portal/.gitignorenew file mode 100644index 00000000..fd6aad7f--- /dev/null+++ b/games/portal/.gitignore@@ -0,0 +1,2 @@+output/+__pycache__/diff --git a/games/portal/Makefile b/games/portal/Makefilenew file mode 100644index 00000000..a74cc487--- /dev/null+++ b/games/portal/Makefile@@ -0,0 +1,74 @@+# Portal Returns for the NumWorks calculator.+# make build output/portal.nwa+# make run install on a connected calculator+# make check link the app like the calculator does (output/portal.bin)+# make sim output/portal.nwb for the Epsilon simulator+# make assets regenerate src/assets.h from assets/+Q ?= @+CC = arm-none-eabi-gcc+NWLINK = npx --yes -- [email protected]+BUILD_DIR = output+SRC = src/main.c src/game.c src/gfx.c src/inflate.c src/libc.c+HDR = src/portal.h src/assets.h src/inflate.h++CFLAGS = -std=c99 $(shell $(NWLINK) eadk-cflags-device)+CFLAGS += -Os -Wall -fno-math-errno -fno-tree-loop-distribute-patterns -fno-reorder-functions -flto-partition=one+CFLAGS += -flto -fno-fat-lto-objects -fwhole-program -fvisibility=internal+LDFLAGS = -Wl,--relocatable -nostartfiles --specs=nano.specs+LDFLAGS += -Wl,-e,main -Wl,-u,eadk_app_name -Wl,-u,eadk_app_icon -Wl,-u,eadk_api_level+LDFLAGS += -Wl,--gc-sections -flinker-output=nolto-rel++.PHONY: build run check sim assets clean+build: $(BUILD_DIR)/portal.nwa++run: $(BUILD_DIR)/portal.nwa+ @echo "INSTALL $<"+ $(Q) $(NWLINK) install-nwa $<++check: $(BUILD_DIR)/portal.nwa+ $(Q) $(NWLINK) nwa-bin $< $(BUILD_DIR)/portal.bin+ @echo "BIN $(BUILD_DIR)/portal.bin: $$(wc -c < $(BUILD_DIR)/portal.bin) bytes"++$(BUILD_DIR)/portal.nwa: $(SRC) $(HDR) $(BUILD_DIR)/icon.o+ @echo "LD $@"+ $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(SRC) $(BUILD_DIR)/icon.o -o $@+ $(Q) arm-none-eabi-strip --strip-unneeded $@+ $(Q) arm-none-eabi-size $@++$(BUILD_DIR)/icon.o: src/icon.png | $(BUILD_DIR)+ @echo "ICON $<"+ $(Q) $(NWLINK) png-icon-o $< $@++$(BUILD_DIR):+ $(Q) mkdir -p $@++assets:+ $(Q) python3 tools/gen_assets.py++sim: $(BUILD_DIR)/portal.nwb+$(BUILD_DIR)/portal.nwb: $(SRC) $(HDR) ../../launcher/sim/sim.c | $(BUILD_DIR)+ $(Q) cc -std=c99 -O2 -fPIC $(shell $(NWLINK) eadk-cflags-simulator) -shared -undefined dynamic_lookup \+ src/main.c src/game.c src/gfx.c src/inflate.c ../../launcher/sim/sim.c -o $@++clean:+ $(Q) rm -rf $(BUILD_DIR)++# NumPlay launcher: the game as a module (see ../../tools/npmodule.py) for the+# calculator, and as a relocatable object for the simulator build.+.PHONY: module sim-module+module: $(BUILD_DIR)/module.o+$(BUILD_DIR)/module.o: $(SRC) $(HDR) | $(BUILD_DIR)+ $(Q) $(CC) $(CFLAGS) -Wl,--relocatable -nostartfiles -nostdlib -Wl,-e,main -flinker-output=nolto-rel $(SRC) -o $@++sim-module: $(BUILD_DIR)/sim-module.o+$(BUILD_DIR)/sim-module.o: $(SRC) $(HDR) | $(BUILD_DIR)+ $(Q) mkdir -p $(BUILD_DIR)/sim+ $(Q) for f in main game gfx inflate; do cc -std=c99 -O2 -fPIC $(shell $(NWLINK) eadk-cflags-simulator) \+ -Dmain=np_portal_main -c src/$$f.c -o $(BUILD_DIR)/sim/$$f.o || exit 1; done+ $(Q) ld -r $(BUILD_DIR)/sim/*.o -exported_symbol _np_portal_main -o $@++# test/host: the chambers on the computer, frame by frame (tools/compare.py)+host: $(BUILD_DIR)/host+$(BUILD_DIR)/host: $(SRC) $(HDR) test/host.c | $(BUILD_DIR)+ $(Q) cc -std=gnu99 -O2 -w -DPORTAL_TEST $(shell $(NWLINK) eadk-cflags-simulator) -Dmain=portal_main -c src/main.c -o $(BUILD_DIR)/host_main.o+ $(Q) cc -std=gnu99 -O2 -w -DPORTAL_TEST $(shell $(NWLINK) eadk-cflags-simulator) test/host.c src/game.c src/gfx.c src/inflate.c $(BUILD_DIR)/host_main.o -o $@diff --git a/games/portal/README.md b/games/portal/README.mdnew file mode 100644index 00000000..7a0ea307--- /dev/null+++ b/games/portal/README.md@@ -0,0 +1,93 @@+> **Portal Returns is part of [NumPlay](../../README.md)**, every NumWorks game in one app. Get it with all the others, or on its own as `PortalReturns.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).++<p align="center">+ <img src="docs/icon.png" width="84" alt="Portal Returns icon">+</p>++<h1 align="center">Portal Returns</h1>++<p align="center">+ <b>The TI-84 Plus CE classic, on the NumWorks N0120.</b><br>+ 78 test chambers, the original art and the original physics, in about 35 KB.+</p>++<p align="center">+ <a href="https://github.com/Mason363/NumPlay/releases/latest"><img src="https://img.shields.io/github/v/release/Mason363/NumPlay?label=release&color=1c83e0" alt="Latest release"></a>+ <img src="https://img.shields.io/badge/installed%20size-35%20KB-4a4952" alt="Installed size: 35 KB">+</p>++<p align="center">+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/PortalReturns.nwa"><b>Download PortalReturns.nwa</b></a>+ · <a href="#controls">Controls</a>+ · <a href="#install">Install</a>+ · <a href="#credits">Credits</a>+</p>++<p align="center">+ <img src="docs/hero.gif" width="640" alt="Falling through a floor portal and flying across chamber 7">+</p>++## Highlights++* **All 78 chambers:** the 40 test chambers of Portal Returns, plus the 38 Portal Prelude chambers under Custom.+* **Just like on the TI:** same tiles, sprites, menus, GLaDOS messages and colors. The player, cubes and energy pellets move exactly as in the original, frame for frame.+* **Speedy thing goes in, speedy thing comes out:** momentum carries through portals, for you and for cubes.+* **Everything is here:** cubes, buttons and doors, fizzlers, electric fields, spikes, glass, energy pellets and receivers, the four color schemes and the ending.+* **New to Portal?** A short How to play guide sits in the menu, and small signs explain each new thing the first time you meet it.+* **Your progress is saved:** finished chambers get a check mark, and you pick up where you left off.++<table>+ <tr>+ <td align="center"><img src="docs/shot.png" width="390" alt="Title screen"><br><sub>Title screen and chamber select</sub></td>+ <td align="center"><img src="docs/text.png" width="390" alt="A message before a chamber"><br><sub>A word from the facility before each chamber</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/portals.png" width="390" alt="Blue and orange portals"><br><sub>Blue and orange portals</sub></td>+ <td align="center"><img src="docs/chamber.png" width="390" alt="A chamber with fields and glass"><br><sub>Fizzlers, electric fields, glass and a cube</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/help.png" width="390" alt="How to play"><br><sub>How to play</sub></td>+ <td align="center"><img src="docs/momentum.gif" width="390" alt="Chamber 2"><br><sub>Chamber 2: portals keep your speed</sub></td>+ </tr>+</table>++## Controls++The number pad works like on the TI: each key fires a portal in its direction.++| Key | Action |+|---|---|+| Left, Right | Run |+| Up | Jump |+| 1 to 9 (not 5) | Fire a portal that way (7 is up left, 3 is down right...) |+| 5 | Switch the color of the next portal (shown in the lower right corner) |+| OK or EXE | Pick up or drop a cube, continue |+| Alpha | Show a message faster |+| Back | Pause (return, restart the chamber or quit) |+| Home | Save and quit |++## Install++1. Download **[PortalReturns.nwa](https://github.com/Mason363/NumPlay/releases/latest/download/PortalReturns.nwa)** from the [latest NumPlay release](https://github.com/Mason363/NumPlay/releases/latest).+2. Plug the calculator into your computer and open **[my.numworks.com/apps](https://my.numworks.com/apps)** in Chrome or Edge.+3. Upload `PortalReturns.nwa`. **Portal** appears at the end of the calculator's home screen.++## Credits++Inspired by [Portal Returns](https://www.cemetech.net/downloads/files/1313/x1313) by MateoConLechuga for the TI-84 Plus CE, and by Portal by Valve. Not affiliated with MateoConLechuga or Valve.++* Test chambers and messages: MateoConLechuga+* Sprites and tiles: CKH4+* Portal Prelude chambers: ported by Unicorn from BuilderBoy's Portal Prelude++Made by Mason Chen as part of NumPlay.++## Build++Requirements: the ARM embedded toolchain (`arm-none-eabi-gcc`) and Node.js, which `make` uses to fetch NumWorks' `nwlink` SDK.++```sh+make # output/portal.nwa+make check # link it the way the calculator does and print the installed size+make run # install on a connected calculator+```diff --git a/games/portal/assets/font.png b/games/portal/assets/font.pngnew file mode 100644index 00000000..e6bd7ad1Binary files /dev/null and b/games/portal/assets/font.png differdiff --git a/games/portal/assets/main.bin b/games/portal/assets/main.binnew file mode 100644index 00000000..32a2769dBinary files /dev/null and b/games/portal/assets/main.bin differdiff --git a/games/portal/assets/palette.txt b/games/portal/assets/palette.txtnew file mode 100644index 00000000..622320af--- /dev/null+++ b/games/portal/assets/palette.txt@@ -0,0 +1 @@+FFFF FFFF 4A4A BDD7 1C1C AD55 FBE4 632C 4228 52AA 9EDE C0C0 1C1C FBE4 FBE4 C0C0diff --git a/games/portal/assets/prelude.bin b/games/portal/assets/prelude.binnew file mode 100644index 00000000..3510a38aBinary files /dev/null and b/games/portal/assets/prelude.bin differdiff --git a/games/portal/assets/sprites.png b/games/portal/assets/sprites.pngnew file mode 100644index 00000000..a4eef577Binary files /dev/null and b/games/portal/assets/sprites.png differdiff --git a/games/portal/assets/sprites.txt b/games/portal/assets/sprites.txtnew file mode 100644index 00000000..2c40e986--- /dev/null+++ b/games/portal/assets/sprites.txt@@ -0,0 +1,54 @@+# name x y w h (name = address in the original program)+E1C7 0 0 2 16+E1D9 3 0 16 2+E1EB 20 0 2 2+E1EF 23 0 2 2+E1F3 26 0 2 2+E1F7 29 0 2 2+E1FB 32 0 2 2+E1FF 35 0 8 8+E221 44 0 2 4+E227 47 0 2 10+E233 50 0 10 2+E23F 61 0 10 10+E273 72 0 10 10+E2A7 83 0 10 10+E2DB 94 0 10 10+E30F 105 0 10 10+E343 116 0 10 10+E377 0 17 10 10+E3AB 11 17 10 10+E3DF 22 17 10 2+E3EB 33 17 2 10+E3F7 36 17 10 8+E421 47 17 10 6+E441 58 17 10 4+E457 69 17 10 8+E481 80 17 10 8+E4AB 91 17 10 6+E4CB 102 17 10 4+E4E1 113 17 10 2+E4ED 0 28 10 8+E517 11 28 10 6+E537 22 28 10 4+E54D 33 28 10 2+E559 44 28 8 10+E583 53 28 6 10+E5A3 60 28 4 10+E5B9 65 28 8 10+E5E3 74 28 6 10+E603 81 28 4 10+E619 86 28 8 10+E643 95 28 6 10+E663 102 28 4 10+E679 107 28 8 10+E6A3 116 28 6 10+E6C3 123 28 4 10+E6D9 0 39 16 4+E6FB 17 39 16 4+E71D 34 39 16 2+E72F 51 39 2 16+E741 54 39 4 4+E74B 59 39 4 4+E755 64 39 4 4+DD13 69 39 16 16diff --git a/games/portal/assets/tiles.png b/games/portal/assets/tiles.pngnew file mode 100644index 00000000..d3b6cd4bBinary files /dev/null and b/games/portal/assets/tiles.png differdiff --git a/games/portal/assets/title.png b/games/portal/assets/title.pngnew file mode 100644index 00000000..415ec249Binary files /dev/null and b/games/portal/assets/title.png differdiff --git a/games/portal/docs/chamber.png b/games/portal/docs/chamber.pngnew file mode 100644index 00000000..4b8170a9Binary files /dev/null and b/games/portal/docs/chamber.png differdiff --git a/games/portal/docs/credits.png b/games/portal/docs/credits.pngnew file mode 100644index 00000000..ef4121a1Binary files /dev/null and b/games/portal/docs/credits.png differdiff --git a/games/portal/docs/elements.png b/games/portal/docs/elements.pngnew file mode 100644index 00000000..8eaa9b06Binary files /dev/null and b/games/portal/docs/elements.png differdiff --git a/games/portal/docs/help.png b/games/portal/docs/help.pngnew file mode 100644index 00000000..2a248413Binary files /dev/null and b/games/portal/docs/help.png differdiff --git a/games/portal/docs/hero.gif b/games/portal/docs/hero.gifnew file mode 100644index 00000000..aafc0bfdBinary files /dev/null and b/games/portal/docs/hero.gif differdiff --git a/games/portal/docs/icon.png b/games/portal/docs/icon.pngnew file mode 100644index 00000000..8d04ad26Binary files /dev/null and b/games/portal/docs/icon.png differdiff --git a/games/portal/docs/momentum.gif b/games/portal/docs/momentum.gifnew file mode 100644index 00000000..59c4b60fBinary files /dev/null and b/games/portal/docs/momentum.gif differdiff --git a/games/portal/docs/portals.png b/games/portal/docs/portals.pngnew file mode 100644index 00000000..02f1bac6Binary files /dev/null and b/games/portal/docs/portals.png differdiff --git a/games/portal/docs/shot.png b/games/portal/docs/shot.pngnew file mode 100644index 00000000..ae54ecd2Binary files /dev/null and b/games/portal/docs/shot.png differdiff --git a/games/portal/docs/text.png b/games/portal/docs/text.pngnew file mode 100644index 00000000..9f9a4bd2Binary files /dev/null and b/games/portal/docs/text.png differdiff --git a/games/portal/src/assets.h b/games/portal/src/assets.hnew file mode 100644index 00000000..fa474a6f--- /dev/null+++ b/games/portal/src/assets.h@@ -0,0 +1,538 @@+/* Generated by tools/gen_assets.py from assets/: do not edit. */+#ifndef PORTAL_ASSETS_H+#define PORTAL_ASSETS_H+#include <stdint.h>+static const uint16_t PAL_DEFAULT[16] = {+ 65535,65535,19018,48599,7196,44373,64484,25388,16936,21162,40670,49344,7196,64484,64484,49344,+};+#define ASSETS_SIZE 28453+extern uint8_t assets[ASSETS_SIZE];+#define TILES (assets + 0)+#define TILES_SIZE 4030+#define SPRITES (assets + 4030)+#define SPRITES_SIZE 1562+#define FONT (assets + 5592)+#define FONT_SIZE 472+#define TITLE (assets + 6064)+#define TITLE_SIZE 1170+#define PACK_MAIN (assets + 7234)+#define PACK_MAIN_SIZE 11494+#define PACK_PRELUDE (assets + 18728)+#define PACK_PRELUDE_SIZE 9725+#define TILE_BYTES 130+#define FONT_CHARS 59+#define S_E1C7 (SPRITES + 0)+#define S_E1D9 (SPRITES + 18)+#define S_E1EB (SPRITES + 36)+#define S_E1EF (SPRITES + 40)+#define S_E1F3 (SPRITES + 44)+#define S_E1F7 (SPRITES + 48)+#define S_E1FB (SPRITES + 52)+#define S_E1FF (SPRITES + 56)+#define S_E221 (SPRITES + 90)+#define S_E227 (SPRITES + 96)+#define S_E233 (SPRITES + 108)+#define S_E23F (SPRITES + 120)+#define S_E273 (SPRITES + 172)+#define S_E2A7 (SPRITES + 224)+#define S_E2DB (SPRITES + 276)+#define S_E30F (SPRITES + 328)+#define S_E343 (SPRITES + 380)+#define S_E377 (SPRITES + 432)+#define S_E3AB (SPRITES + 484)+#define S_E3DF (SPRITES + 536)+#define S_E3EB (SPRITES + 548)+#define S_E3F7 (SPRITES + 560)+#define S_E421 (SPRITES + 602)+#define S_E441 (SPRITES + 634)+#define S_E457 (SPRITES + 656)+#define S_E481 (SPRITES + 698)+#define S_E4AB (SPRITES + 740)+#define S_E4CB (SPRITES + 772)+#define S_E4E1 (SPRITES + 794)+#define S_E4ED (SPRITES + 806)+#define S_E517 (SPRITES + 848)+#define S_E537 (SPRITES + 880)+#define S_E54D (SPRITES + 902)+#define S_E559 (SPRITES + 914)+#define S_E583 (SPRITES + 956)+#define S_E5A3 (SPRITES + 988)+#define S_E5B9 (SPRITES + 1010)+#define S_E5E3 (SPRITES + 1052)+#define S_E603 (SPRITES + 1084)+#define S_E619 (SPRITES + 1106)+#define S_E643 (SPRITES + 1148)+#define S_E663 (SPRITES + 1180)+#define S_E679 (SPRITES + 1202)+#define S_E6A3 (SPRITES + 1244)+#define S_E6C3 (SPRITES + 1276)+#define S_E6D9 (SPRITES + 1298)+#define S_E6FB (SPRITES + 1332)+#define S_E71D (SPRITES + 1366)+#define S_E72F (SPRITES + 1384)+#define S_E741 (SPRITES + 1402)+#define S_E74B (SPRITES + 1412)+#define S_E755 (SPRITES + 1422)+#define S_DD13 (SPRITES + 1432)+#define TITLE_PIC0 (TITLE + 0)+#define TITLE_PIC1 (TITLE + 314)+#define TITLE_PIC2 (TITLE + 656)+#define TITLE_PIC3 (TITLE + 998)+static const uint8_t ASSETS_Z[10920] = {+ 212,150,189,110,219,48,16,199,101,89,14,20,183,131,243,6,1,135,12,177,135,0,28,146,+ 60,136,95,32,67,95,160,3,155,185,67,217,45,128,7,231,214,140,153,138,172,90,10,207,+ 122,133,188,75,255,199,28,79,53,105,68,174,129,88,232,73,228,143,31,71,222,135,9,139,+ 179,218,12,44,179,218,17,61,254,112,142,34,61,173,239,137,200,165,36,247,237,39,90,190,+ 227,253,250,254,209,83,164,39,40,174,157,210,65,15,27,250,140,68,12,138,156,213,54,145,+ 99,123,112,252,28,216,68,144,3,177,172,20,139,25,197,178,82,44,43,197,178,82,44,102,+ 148,216,109,154,3,27,41,49,103,148,216,149,18,187,82,98,87,74,204,25,37,251,202,236,+ 28,12,224,193,177,115,144,74,158,131,99,159,131,1,78,226,240,57,232,245,96,248,115,48,+ 216,63,146,85,74,204,25,37,118,165,196,174,148,216,149,18,115,74,57,129,74,254,54,150,+ 198,152,115,148,34,148,115,41,255,250,72,140,212,247,29,72,115,55,171,29,166,60,170,72,+ 232,218,165,93,58,165,243,30,13,31,233,172,227,25,23,73,75,235,48,72,74,81,142,244,+ 75,110,16,69,18,10,86,42,57,7,228,216,114,71,195,166,92,164,71,195,145,245,74,110,+ 144,115,145,142,194,18,138,36,75,62,52,132,176,28,84,35,223,44,119,132,7,16,177,172,+ 132,186,219,34,244,183,105,92,164,54,132,228,148,178,133,239,40,30,116,20,15,66,116,74,+ 105,36,60,88,124,194,52,150,255,227,150,102,33,4,133,64,15,26,163,244,20,233,137,233,+ 152,16,168,59,230,65,119,164,126,15,154,70,233,41,210,19,120,144,7,207,169,152,32,204,+ 39,188,224,165,193,11,162,107,192,75,157,199,72,224,101,236,103,250,79,32,119,117,30,76,+ 228,3,239,137,95,45,228,218,119,188,125,56,93,93,123,107,153,22,114,85,20,227,247,238,+ 137,88,181,197,211,213,77,176,28,89,140,111,131,229,200,211,21,184,118,74,107,111,66,214,+ 149,135,221,19,87,86,25,98,71,28,74,142,125,117,85,68,122,34,240,246,33,210,177,197,+ 239,214,42,247,189,39,126,248,151,41,145,225,61,200,191,206,195,231,96,144,251,193,139,49,+ 102,142,210,132,50,151,210,152,79,40,252,20,40,191,240,20,40,31,112,63,24,189,38,82,+ 214,217,200,168,109,203,81,211,148,35,110,27,83,142,158,159,235,202,70,121,125,221,46,34,+ 213,200,64,166,168,163,148,19,163,50,69,251,12,52,103,103,90,25,173,184,96,44,84,221,+ 188,172,209,37,123,174,233,177,3,9,149,142,244,250,150,87,253,107,212,140,209,209,44,158,+ 3,215,244,86,249,154,254,28,148,147,110,133,254,134,232,215,147,125,51,127,50,121,127,190,+ 154,236,26,173,39,251,158,134,122,239,211,112,210,163,89,237,156,47,255,26,173,247,62,173,+ 39,61,154,85,50,175,182,116,116,90,1,220,210,105,45,242,51,197,145,233,152,25,198,208,+ 136,26,162,192,243,101,80,148,158,168,98,255,158,237,53,166,233,24,72,222,100,127,21,49,+ 132,74,252,87,11,61,254,39,239,206,253,115,255,117,251,126,255,101,217,78,255,147,244,132,+ 170,170,77,19,196,40,41,136,18,26,169,36,43,202,250,69,100,46,50,27,189,204,183,159,+ 170,188,184,251,2,185,184,171,202,162,248,124,53,254,93,20,21,60,234,238,235,139,182,93,+ 160,217,110,22,237,98,195,189,77,187,104,65,148,69,187,9,106,232,163,11,154,141,140,132,+ 110,88,43,221,77,24,231,77,120,152,103,80,181,111,155,182,172,197,155,242,226,197,31,78,+ 200,32,68,142,42,8,195,175,105,178,173,50,236,8,185,244,66,199,14,122,135,89,34,250,+ 22,134,157,189,121,20,244,46,17,33,57,58,75,14,26,24,186,123,73,188,186,55,65,60,+ 232,253,230,109,115,16,107,104,112,204,37,115,214,72,166,134,1,231,166,13,10,182,216,51,+ 229,95,213,59,204,198,85,3,41,232,175,191,247,234,85,213,235,182,121,26,214,202,157,71,+ 172,1,226,170,182,190,37,114,75,31,247,31,161,167,53,118,19,223,235,249,100,119,232,147,+ 78,39,241,67,75,57,99,150,153,153,247,192,44,187,80,29,161,112,200,84,136,148,8,145,+ 78,191,223,209,16,9,69,72,16,225,96,16,90,22,26,182,155,160,189,75,203,91,216,194,+ 214,0,86,54,125,251,196,58,102,136,251,217,116,60,234,186,135,113,246,189,163,245,119,79,+ 158,80,150,161,222,134,53,13,222,160,8,33,68,176,70,216,186,105,176,182,183,101,104,54,+ 179,146,13,98,132,72,251,174,235,114,242,168,105,30,77,74,178,192,145,165,200,99,109,181,+ 248,237,175,217,116,210,22,109,238,221,158,40,167,211,243,53,102,110,191,55,182,40,45,144,+ 181,232,247,129,199,34,203,178,92,102,253,126,214,190,219,27,232,215,137,188,190,227,156,139,+ 156,70,183,120,22,51,163,184,180,112,129,20,96,40,52,112,91,102,198,181,114,220,40,75,+ 227,164,118,56,127,10,58,73,149,217,64,233,114,16,137,6,140,100,173,51,68,92,226,82,+ 145,226,208,229,34,116,8,8,103,34,51,169,192,174,212,141,84,145,172,154,156,66,17,235,+ 42,21,216,180,204,25,211,234,84,89,69,164,12,11,180,70,14,100,35,41,187,45,217,216,+ 102,107,101,216,40,131,181,210,137,49,47,148,3,82,166,23,138,163,194,189,250,146,32,40,+ 5,234,127,51,70,43,74,112,214,95,176,128,90,59,227,224,119,179,0,246,94,64,215,96,+ 200,190,2,43,220,142,231,157,251,200,46,130,194,115,116,0,187,250,34,121,14,87,176,176,+ 207,232,119,160,118,120,19,246,209,102,47,252,226,4,230,142,60,119,39,216,251,120,241,169,+ 231,164,66,191,233,232,238,25,199,13,246,188,238,5,107,152,203,28,42,254,56,129,13,212,+ 198,102,58,141,212,82,130,113,160,86,121,238,12,213,226,33,250,245,96,47,196,61,207,222,+ 195,94,142,239,120,230,24,86,213,195,51,38,216,181,168,214,91,233,94,84,168,93,254,7,+ 255,255,215,158,227,175,94,182,35,181,142,218,245,167,45,58,105,179,75,217,135,133,86,241,+ 16,217,116,44,176,79,246,41,121,115,253,26,236,254,3,74,222,125,248,37,236,251,31,40,+ 25,127,150,123,62,188,113,151,146,111,111,252,137,189,119,142,41,41,78,75,207,163,95,78,+ 96,121,234,121,197,115,216,104,224,231,247,104,31,118,188,242,139,123,116,0,123,107,238,23,+ 145,219,211,115,93,255,243,174,11,244,28,250,117,204,222,111,54,246,54,111,44,119,231,118,+ 115,180,177,148,55,230,156,123,158,191,122,197,124,11,43,108,17,172,129,72,128,110,56,38,+ 78,220,156,248,141,234,152,248,78,181,79,124,187,58,32,150,175,246,136,103,71,138,235,123,+ 52,159,93,253,156,230,183,63,4,62,248,230,1,205,143,127,252,154,248,236,87,84,252,116,+ 5,181,211,83,116,41,181,31,53,10,119,25,238,41,252,227,106,127,51,98,157,221,141,227,+ 72,16,4,131,68,217,146,211,101,207,189,135,205,73,163,203,57,66,36,44,97,76,18,58,+ 130,180,86,251,39,239,23,237,31,184,232,55,95,45,242,174,26,16,103,156,54,188,177,136,+ 38,5,66,232,234,234,234,198,124,60,57,158,108,85,145,153,82,205,69,163,108,35,108,187,+ 124,165,178,102,193,216,90,213,74,200,70,200,141,170,155,22,118,33,151,118,46,182,138,109,+ 106,115,163,115,37,154,181,18,75,122,73,87,238,101,93,173,22,172,49,185,220,137,157,105,+ 197,86,23,5,190,31,190,18,166,173,89,86,72,107,117,38,54,166,110,100,33,114,117,163,+ 51,181,16,173,85,140,86,187,86,59,43,126,246,242,119,162,49,226,74,215,138,233,170,81,+ 117,174,75,85,89,109,42,188,225,95,180,216,95,38,175,213,155,223,176,170,190,81,249,130,+ 241,187,115,158,244,231,241,87,127,162,223,245,227,223,245,17,89,179,126,60,251,10,107,60,+ 88,147,203,131,21,239,99,190,31,243,125,252,119,143,25,54,111,42,245,14,99,210,58,111,+ 75,120,189,150,55,74,152,165,223,204,156,29,246,42,50,83,185,71,162,52,112,164,105,203,+ 5,252,2,156,187,82,86,31,89,1,15,75,0,107,55,74,229,59,192,64,88,173,140,178,+ 128,117,120,42,220,83,70,113,178,192,145,194,195,74,67,200,151,238,71,170,166,216,205,69,+ 173,74,85,46,85,189,88,44,88,247,221,62,153,245,71,156,127,243,112,233,135,125,212,135,+ 52,38,116,123,236,174,163,116,31,57,35,73,59,128,51,141,15,215,100,63,237,18,143,131,+ 40,148,172,43,149,11,12,197,78,152,10,91,149,13,83,210,106,85,191,9,125,182,150,180,+ 49,203,236,218,180,69,14,247,16,180,43,3,82,89,184,36,204,149,35,71,73,15,114,125,+ 117,165,179,182,104,176,150,114,113,54,213,170,150,77,91,200,70,3,200,225,39,128,159,109,+ 24,230,224,206,180,171,245,66,232,70,108,17,140,74,101,202,90,89,3,74,35,74,34,137,+ 37,246,34,70,53,34,177,170,116,163,111,20,147,75,93,192,2,156,182,33,14,93,181,85,+ 70,235,51,121,133,120,136,45,253,194,90,110,54,10,190,57,52,47,120,31,119,39,253,172,+ 75,250,211,46,234,207,186,208,125,206,57,191,247,185,164,49,8,126,215,159,96,72,249,168,+ 159,113,30,118,225,126,198,9,45,45,14,238,35,129,150,114,9,184,26,240,136,118,198,156,+ 71,141,79,57,66,101,163,175,29,1,40,240,150,85,234,243,102,192,16,136,220,195,12,240,+ 91,43,176,150,98,135,204,181,196,203,143,26,92,129,173,32,162,178,173,110,214,180,120,73,+ 180,129,47,143,54,77,31,184,119,25,132,193,163,63,206,79,248,201,195,191,224,237,107,207,+ 205,15,30,207,7,16,88,123,127,65,254,231,96,202,156,220,5,65,11,141,20,249,11,91,+ 213,74,54,115,31,208,82,201,202,14,148,65,122,87,132,83,166,192,45,105,161,16,173,44,+ 176,127,125,69,11,184,76,35,47,175,244,10,193,205,41,39,216,78,185,149,148,248,21,233,+ 136,176,112,59,91,43,235,132,133,16,28,68,135,222,39,113,89,176,194,152,107,225,129,23,+ 133,217,34,238,181,94,173,27,96,11,2,103,235,123,144,119,223,73,224,242,243,159,11,48,+ 130,71,28,215,36,136,31,92,131,32,237,39,163,32,128,125,9,58,220,78,248,136,108,80,+ 98,22,242,208,113,194,211,109,135,236,177,248,217,193,123,210,14,235,136,138,164,214,21,50,+ 37,83,36,29,240,219,229,208,182,18,247,38,88,100,139,117,188,64,98,153,92,188,50,75,+ 220,17,115,188,223,166,162,89,127,107,53,166,66,188,85,166,173,166,44,210,165,83,108,150,+ 235,220,129,178,172,41,87,37,50,194,108,182,18,224,253,5,126,95,246,35,222,79,56,127,+ 52,36,119,97,159,198,224,65,12,123,239,109,255,213,55,12,65,112,59,246,247,71,252,54,+ 68,219,200,247,71,46,57,62,186,161,106,162,42,225,178,0,210,184,155,187,43,115,224,204,+ 197,178,109,60,79,144,228,48,20,43,32,12,84,125,220,155,150,222,164,196,128,179,172,65,+ 214,195,47,224,68,105,128,185,59,161,62,223,168,140,56,134,210,242,182,128,161,176,32,11,+ 115,217,72,52,213,149,17,174,166,180,21,37,149,23,117,131,165,37,131,82,52,133,18,64,+ 48,187,38,58,220,141,187,227,254,143,151,253,197,168,31,197,253,36,76,48,240,62,229,110,+ 228,253,216,25,16,135,145,55,162,62,241,70,220,199,222,72,122,240,37,216,199,65,220,141,+ 250,16,102,192,241,15,119,99,88,46,109,112,233,210,48,228,30,154,18,129,165,216,52,6,+ 134,200,10,133,228,104,55,94,8,92,105,176,80,44,141,45,106,160,3,29,4,97,24,246,+ 239,203,104,165,237,154,102,145,116,18,44,102,61,135,108,56,44,144,125,62,244,244,53,81,+ 227,37,160,129,218,150,37,114,202,102,181,222,52,191,7,63,140,169,45,114,74,109,134,31,+ 211,213,130,249,120,0,90,202,84,148,57,146,116,42,228,57,33,124,111,178,175,87,252,110,+ 204,239,162,46,188,3,88,227,143,80,87,81,88,96,198,139,48,132,171,125,244,97,144,226,+ 54,10,187,100,190,167,220,224,248,122,122,55,123,182,152,243,15,246,103,64,57,238,142,220,+ 5,12,197,53,252,116,159,116,199,105,112,202,131,201,255,134,26,61,23,21,56,32,139,194,+ 51,199,20,57,187,223,229,160,248,190,106,171,107,151,85,142,122,186,202,116,165,80,109,32,+ 250,131,223,178,118,74,211,24,67,222,93,181,94,79,225,20,196,149,212,2,14,163,46,111,+ 100,69,213,35,107,151,84,180,128,164,133,227,215,20,128,13,72,227,212,23,17,91,176,1,+ 177,123,96,9,131,42,227,127,108,65,19,81,5,27,157,97,211,59,20,158,232,69,119,226,+ 233,209,79,57,25,31,192,120,44,66,31,38,253,89,72,2,228,112,59,9,59,64,57,11,+ 187,8,80,135,225,167,225,60,4,243,82,2,106,220,29,237,97,68,252,34,113,130,108,92,+ 240,135,190,1,28,242,157,27,92,118,237,31,146,66,19,72,166,2,141,10,95,172,183,244,+ 133,143,190,215,46,117,163,234,29,152,5,67,102,45,65,55,103,190,20,191,173,115,133,177,+ 141,43,62,224,65,248,226,217,176,134,233,235,233,199,28,227,172,159,197,223,56,196,233,235,+ 113,212,71,48,102,125,122,233,158,124,210,35,95,126,254,83,78,125,90,58,153,158,199,142,+ 5,149,113,242,167,45,188,36,72,125,51,64,229,157,33,136,86,9,23,49,33,157,228,228,+ 84,86,177,207,2,105,49,127,179,251,7,90,234,232,131,27,73,106,240,197,130,249,98,123,+ 37,117,225,139,235,249,11,8,192,105,28,184,235,135,131,29,144,218,241,57,247,230,233,55,+ 93,63,139,112,165,146,220,159,127,128,190,172,59,57,231,23,83,242,198,82,147,9,94,27,+ 162,13,149,255,161,57,103,54,211,170,202,200,9,196,68,163,202,169,82,130,204,27,215,52,+ 161,204,234,220,53,72,165,171,111,153,108,173,143,38,211,85,174,161,162,52,107,46,100,149,+ 35,5,252,23,86,149,250,101,77,184,100,210,42,59,119,47,249,54,10,57,164,154,181,19,+ 23,64,234,243,219,17,66,55,94,8,192,126,213,88,63,247,81,167,239,74,173,4,134,171,+ 118,199,42,226,206,80,195,241,182,95,170,251,113,127,212,129,192,32,237,73,7,36,32,164,+ 199,8,42,120,223,141,220,39,77,71,223,249,14,102,76,38,99,140,52,43,70,171,58,250,+ 103,210,197,232,101,39,99,50,246,33,132,245,157,119,250,164,75,247,71,221,161,105,23,247,+ 207,52,247,78,53,108,235,218,178,2,77,23,121,53,116,101,174,202,60,77,114,162,140,63,+ 121,120,7,48,141,186,24,85,209,187,215,218,191,187,160,115,129,164,112,80,142,152,43,64,+ 149,249,246,100,71,173,13,9,138,44,92,243,1,8,29,195,100,117,77,47,146,118,187,81,+ 87,55,178,104,85,206,168,74,97,70,20,189,184,67,227,224,186,115,254,244,122,73,169,48,+ 13,195,209,151,72,134,201,209,212,75,232,111,251,227,216,25,239,32,101,32,144,33,37,218,+ 247,255,25,197,88,42,241,153,244,253,62,116,125,125,56,153,30,255,51,28,238,226,119,250,+ 135,54,122,153,110,180,79,121,24,122,52,135,38,244,89,22,34,218,170,48,27,215,178,52,+ 74,150,108,101,168,97,255,98,39,124,47,58,28,22,189,28,46,85,38,177,152,20,27,89,+ 55,135,53,135,118,86,28,10,146,39,39,116,218,23,114,136,140,75,58,167,211,45,53,72,+ 77,91,201,6,213,220,97,172,161,101,166,190,70,162,50,223,222,123,209,226,228,245,221,4,+ 178,248,78,127,255,26,255,230,203,48,117,86,26,127,251,33,154,78,143,251,152,172,62,165,+ 235,165,127,12,140,110,83,95,183,7,133,247,7,67,42,26,22,94,80,163,231,202,144,29,+ 234,16,116,159,210,135,106,149,110,104,211,175,90,219,16,9,156,211,165,122,210,205,193,70,+ 137,105,26,58,114,214,128,0,93,49,216,237,181,168,84,10,164,90,73,93,205,25,163,126,+ 112,185,163,5,24,231,119,96,208,49,231,227,254,236,177,246,30,29,7,71,211,233,167,175,+ 169,115,73,113,220,253,16,207,126,71,132,10,211,233,39,211,169,151,101,186,245,103,99,186,+ 137,111,169,94,199,94,123,65,167,49,110,70,135,105,227,56,121,100,125,0,11,212,153,243,+ 147,125,4,133,254,57,170,254,100,122,145,156,142,156,72,111,32,184,86,193,255,70,137,123,+ 39,33,0,33,225,243,214,29,160,209,191,58,106,81,107,67,145,111,107,242,10,253,33,125,+ 219,32,185,60,181,164,176,128,100,195,140,103,15,101,233,161,67,38,101,147,21,200,98,161,+ 137,150,210,209,212,59,36,40,104,98,42,175,85,134,142,158,90,210,27,153,169,137,98,166,+ 160,115,65,46,150,59,150,35,199,215,116,20,152,189,232,8,183,143,65,3,96,244,187,96,+ 18,113,152,30,159,248,89,11,185,243,243,159,226,28,16,191,142,199,254,30,73,137,235,44,+ 8,222,235,19,220,99,141,104,76,247,233,49,221,227,205,119,127,219,143,156,1,70,141,253,+ 128,200,120,150,125,210,143,83,78,52,75,0,35,79,167,23,129,67,81,131,12,57,92,20,+ 6,167,24,93,193,13,127,50,166,83,242,65,122,43,81,238,134,140,162,230,159,93,83,71,+ 75,162,127,159,98,195,185,199,35,171,43,8,25,91,67,5,133,170,84,189,194,2,208,71,+ 5,161,118,92,165,58,216,40,215,95,87,86,19,205,13,203,156,30,206,253,1,84,56,113,+ 101,114,227,78,30,120,46,14,103,184,92,231,224,43,40,138,31,149,181,208,88,209,159,45,+ 159,126,162,254,60,66,187,141,115,70,242,190,59,111,128,166,212,1,62,30,198,31,208,136,+ 3,238,15,249,237,209,62,188,141,248,65,248,135,68,180,216,101,78,251,42,219,108,237,148,+ 21,79,87,168,102,254,127,77,40,221,40,11,183,84,245,8,147,167,160,188,61,73,29,208,+ 69,93,117,157,238,245,194,247,55,201,15,238,226,23,36,174,83,36,203,135,126,136,223,12,+ 209,124,79,125,139,127,244,112,136,143,251,240,201,211,227,15,190,251,100,238,101,63,125,31,+ 195,62,250,116,31,195,69,100,212,69,48,245,77,175,68,111,143,29,19,181,23,174,142,147,+ 139,86,104,182,165,67,128,22,25,197,130,114,8,62,139,76,213,20,94,230,251,116,95,132,+ 32,184,40,207,165,68,85,86,152,73,249,227,106,26,163,154,70,135,140,108,61,28,212,105,+ 242,112,90,119,243,50,202,226,133,7,15,145,117,170,231,214,244,109,56,30,226,59,244,148,+ 12,34,28,119,41,28,131,244,198,253,248,71,131,113,57,24,201,215,26,212,226,57,163,67,+ 205,15,67,24,239,245,116,12,229,252,91,154,239,247,168,132,251,9,223,227,9,161,230,253,+ 86,181,53,21,92,52,194,243,55,23,174,67,100,14,9,75,116,5,162,80,2,33,179,76,+ 231,170,2,95,165,88,22,80,216,221,255,155,249,214,238,180,145,165,107,161,110,9,33,44,+ 156,235,97,102,236,245,46,60,19,236,140,67,56,247,251,21,7,28,107,197,6,47,132,39,+ 227,249,147,231,15,189,243,253,185,63,89,249,26,196,122,246,174,234,150,4,118,206,253,150,+ 32,117,181,36,3,93,221,93,93,181,107,55,46,178,154,139,183,37,246,227,117,133,87,233,+ 120,161,34,100,24,114,125,155,236,56,19,132,3,183,93,76,55,150,162,208,30,218,50,141,+ 157,237,141,190,64,0,128,74,100,142,77,172,181,164,121,107,19,215,242,65,243,70,123,231,+ 13,238,86,204,168,52,167,85,45,161,131,62,196,112,131,166,117,137,104,155,77,26,133,239,+ 44,130,51,40,46,9,31,235,120,171,33,171,102,44,122,54,163,215,3,55,250,124,53,160,+ 189,165,243,41,237,203,11,140,11,42,11,166,214,35,82,64,222,232,28,33,208,124,77,112,+ 152,129,67,221,1,139,193,132,22,216,123,145,103,240,37,10,141,130,233,117,113,254,5,111,+ 241,4,6,47,49,26,246,240,198,226,136,209,122,47,134,255,9,241,63,33,178,172,46,223,+ 145,251,144,251,94,238,67,238,255,233,114,8,25,199,199,223,159,203,30,79,70,37,181,214,+ 111,23,243,41,236,9,81,10,66,25,21,102,30,136,127,124,223,144,160,142,43,44,85,166,+ 23,205,61,102,221,109,0,93,172,102,149,150,197,73,168,85,76,60,132,178,120,11,80,240,+ 173,51,193,208,221,124,69,187,39,113,25,94,229,30,151,107,190,128,231,220,21,177,142,193,+ 175,230,234,101,95,236,181,210,44,27,114,41,43,13,207,24,112,237,94,93,91,71,120,142,+ 117,12,96,121,40,142,165,222,231,219,252,169,213,232,189,73,124,181,143,43,155,184,150,91,+ 221,247,214,218,50,242,183,146,146,171,33,94,235,164,109,213,22,250,196,133,122,165,234,234,+ 187,213,200,187,250,130,173,93,81,23,138,91,123,35,127,181,0,78,188,32,30,70,112,64,+ 112,41,192,100,5,129,214,169,6,178,46,102,32,2,158,243,173,248,30,191,13,66,122,233,+ 208,100,155,250,4,116,222,223,180,233,69,239,74,244,10,194,247,102,99,40,215,87,191,173,+ 164,237,39,179,127,179,153,205,48,137,211,23,116,198,212,29,240,197,142,115,128,98,184,22,+ 247,224,113,70,53,248,32,159,93,77,97,73,144,139,86,88,255,249,158,167,115,232,34,2,+ 211,167,161,141,92,159,123,185,239,100,27,133,47,179,97,152,101,47,18,169,234,115,157,191,+ 86,66,96,175,43,219,49,10,224,229,198,0,5,235,101,198,58,44,71,125,27,239,48,211,+ 74,163,69,244,15,29,54,135,37,107,201,72,139,113,148,196,109,88,161,53,139,69,195,189,+ 13,136,115,110,209,221,243,217,137,217,252,171,124,185,152,51,90,41,180,115,9,187,152,79,+ 56,33,58,152,189,45,154,6,172,54,230,35,114,52,44,205,189,215,97,83,159,82,22,43,+ 176,119,170,101,10,168,92,165,196,248,123,177,97,103,219,8,15,155,77,66,105,99,96,112,+ 49,176,159,17,58,54,155,46,174,29,99,112,127,155,150,230,91,131,174,181,182,214,11,103,+ 59,227,105,137,114,84,53,104,10,188,48,4,92,227,1,76,235,13,145,15,69,217,79,144,+ 77,192,136,23,44,93,221,110,205,145,112,100,208,50,112,36,83,125,119,38,15,32,132,217,+ 57,227,145,0,62,4,220,241,75,201,235,204,230,84,122,3,148,15,216,71,211,41,61,77,+ 220,163,201,134,41,127,51,5,98,45,38,58,194,148,205,56,154,184,90,117,35,149,134,144,+ 194,240,240,20,8,40,94,101,186,177,42,245,251,140,91,77,184,91,63,192,209,188,80,218,+ 86,191,170,135,120,133,118,247,10,63,232,111,124,193,210,216,240,96,193,101,209,182,97,216,+ 255,95,122,158,127,243,205,55,99,90,213,183,21,90,13,225,183,129,166,63,152,115,40,20,+ 106,160,202,103,115,12,216,87,136,242,225,146,127,149,175,110,29,80,34,144,36,122,201,167,+ 165,102,211,186,191,232,149,231,55,130,99,92,45,22,72,36,50,216,46,184,162,186,247,160,+ 166,105,136,172,197,172,14,113,138,116,97,183,195,22,202,103,42,71,79,81,70,106,103,89,+ 13,183,170,169,77,26,213,189,250,70,247,147,189,143,220,200,62,118,227,197,246,141,77,87,+ 31,5,184,21,173,31,135,221,214,239,211,150,3,107,115,209,214,205,156,102,86,177,235,175,+ 197,109,186,66,50,38,159,179,229,203,37,102,191,64,114,244,40,29,86,137,132,197,205,43,+ 70,113,193,217,229,228,213,155,151,23,11,252,185,106,133,161,182,106,197,187,102,204,165,40,+ 10,46,182,64,117,213,252,95,198,7,232,228,47,234,131,51,122,235,2,48,39,8,166,113,+ 240,66,253,255,31,121,193,162,168,14,126,49,126,199,250,184,231,130,9,183,254,151,182,242,+ 227,78,10,177,176,203,235,101,94,204,92,246,147,206,61,66,132,224,135,227,173,127,65,240,+ 131,90,252,190,156,103,203,229,98,249,139,1,11,70,142,211,217,47,6,223,11,202,148,75,+ 75,12,91,39,115,230,35,66,31,83,232,63,13,224,91,86,74,251,159,38,34,230,23,110,+ 151,15,244,4,107,249,16,167,3,169,175,31,148,47,212,153,162,237,113,142,33,240,251,41,+ 240,243,149,67,56,189,191,52,86,128,96,62,187,89,46,86,139,175,17,214,18,181,188,165,+ 181,163,225,27,113,157,192,144,160,221,226,80,113,193,80,157,194,103,168,52,96,24,28,184,+ 161,197,9,135,48,122,50,224,231,201,240,210,85,181,108,31,210,143,98,198,43,186,83,244,+ 183,138,163,157,162,189,255,249,231,78,10,43,9,110,250,29,41,60,61,101,222,254,231,71,+ 63,231,114,223,14,141,46,248,92,242,107,117,76,52,129,90,20,52,213,215,204,111,114,58,+ 124,255,251,63,64,180,62,57,7,62,87,140,137,7,76,114,177,54,236,120,248,223,76,183,+ 50,230,195,252,154,3,60,131,193,135,207,72,85,113,133,128,53,167,22,52,138,60,155,44,+ 129,183,5,250,198,92,136,17,12,159,221,92,158,41,16,30,33,219,211,57,172,179,20,232,+ 175,33,207,189,22,172,165,253,55,117,35,195,31,209,44,148,206,215,64,189,81,181,145,212,+ 96,194,28,224,36,53,58,56,137,148,209,251,36,105,137,215,185,73,225,244,1,14,46,59,+ 56,61,7,224,155,66,21,143,76,157,5,170,243,134,194,39,169,208,199,45,106,203,96,11,+ 4,14,144,20,1,54,94,121,134,187,57,30,13,113,137,39,76,222,140,185,0,10,178,203,+ 33,164,176,128,135,33,39,83,154,115,199,123,96,210,39,127,141,245,151,230,220,185,25,88,+ 201,5,160,229,192,142,57,71,91,219,85,66,182,170,25,30,255,2,87,44,22,92,83,213,+ 185,140,31,29,65,60,13,217,25,169,200,173,97,43,68,138,206,132,15,51,31,37,98,161,+ 91,2,59,224,228,114,94,3,131,100,96,152,69,112,215,13,175,35,159,192,231,91,72,116,+ 193,64,198,194,0,205,137,199,130,204,14,193,245,43,60,77,207,238,18,3,158,16,146,243,+ 105,17,14,208,17,199,56,105,28,132,135,76,191,95,31,97,248,15,62,236,147,39,255,102,+ 91,250,162,155,168,95,76,125,154,74,102,206,14,147,4,149,119,112,245,194,123,99,25,167,+ 60,142,212,123,149,151,107,142,252,156,56,96,197,99,240,102,97,206,33,9,154,214,81,21,+ 2,88,9,89,44,231,171,5,239,135,211,237,143,74,95,192,32,53,36,219,33,164,121,210,+ 210,202,240,89,152,125,254,244,125,219,188,143,45,175,127,201,63,35,162,153,178,72,164,248,+ 116,211,101,5,163,166,143,2,88,86,140,176,241,39,167,33,86,130,246,163,54,154,77,47,+ 134,177,137,37,6,34,209,161,132,122,157,63,44,135,253,126,140,243,191,217,80,234,41,221,+ 233,63,44,225,47,66,149,240,61,40,27,149,25,145,222,149,97,119,235,74,153,48,228,196,+ 75,163,250,237,8,29,107,204,53,161,31,46,165,249,28,134,216,7,232,192,146,37,124,241,+ 56,199,100,9,159,154,166,3,29,60,185,82,98,2,19,72,188,128,176,83,60,190,249,141,+ 172,49,52,225,180,196,187,35,2,168,1,204,142,112,199,38,52,215,139,115,154,233,101,49,+ 27,73,192,199,1,33,89,5,124,170,126,45,49,129,236,250,79,168,228,52,124,42,92,6,+ 168,174,125,140,34,124,54,178,161,121,34,122,225,36,143,84,56,20,103,232,20,36,150,49,+ 29,97,92,135,45,176,54,33,128,205,186,9,63,199,177,217,147,30,96,12,211,49,42,90,+ 3,8,169,165,114,180,110,243,89,218,127,132,125,156,7,15,134,7,45,121,124,47,130,58,+ 223,225,181,71,140,9,204,243,143,219,15,178,56,174,224,168,20,138,18,97,9,47,6,158,+ 216,49,9,138,201,57,212,120,55,192,19,234,221,116,2,230,8,84,94,179,141,124,151,141,+ 6,219,159,21,56,91,213,252,44,247,33,129,178,1,156,133,31,15,176,156,124,181,200,181,+ 19,137,152,58,210,222,109,65,45,83,205,31,44,60,3,164,117,163,234,5,60,197,124,27,+ 33,83,153,64,196,24,139,119,132,209,58,58,133,248,180,254,155,238,58,161,149,125,6,11,+ 139,64,121,221,133,178,57,246,246,179,76,45,45,193,120,229,60,96,56,85,12,201,160,98,+ 72,14,114,82,59,136,194,211,137,118,255,42,192,246,50,151,36,217,62,153,3,66,245,66,+ 49,108,125,26,134,255,102,74,251,28,11,18,23,132,77,194,137,26,50,207,77,176,161,81,+ 252,140,197,143,32,237,163,149,238,197,132,237,193,102,239,153,124,221,246,232,233,218,202,23,+ 78,204,131,112,63,171,102,76,161,148,209,38,110,92,65,21,210,148,25,236,90,46,36,12,+ 124,235,38,165,133,29,200,39,252,159,7,98,226,206,22,76,213,144,193,81,147,27,144,42,+ 82,110,229,228,108,65,242,2,28,23,4,5,11,248,108,116,80,109,153,60,13,21,177,73,+ 181,68,36,170,153,154,187,149,50,174,229,15,149,124,212,2,66,221,187,83,217,180,107,249,+ 160,121,195,188,239,37,44,197,161,253,108,243,48,101,170,227,89,184,126,36,150,196,147,178,+ 148,182,160,25,6,170,64,241,171,51,151,40,35,246,199,49,121,57,99,179,27,160,6,33,+ 85,199,112,252,45,245,192,228,90,99,189,156,21,175,96,64,142,130,38,79,247,12,202,158,+ 106,14,228,94,110,109,112,75,230,106,80,238,63,125,26,114,161,208,252,176,65,99,255,112,+ 165,52,163,15,22,50,218,104,78,152,148,151,176,144,183,219,78,198,232,112,149,40,28,67,+ 213,245,173,56,252,152,104,126,138,228,228,90,62,35,217,180,83,38,32,99,232,183,247,243,+ 13,237,241,59,67,12,12,171,103,108,163,223,31,67,157,204,51,51,200,129,57,36,157,106,+ 114,57,251,122,204,214,43,35,130,205,60,159,41,166,1,76,63,95,193,147,251,6,217,106,+ 37,53,168,38,232,28,203,159,144,110,246,213,226,242,6,134,97,182,84,144,154,0,107,192,+ 236,181,131,150,154,214,74,177,91,191,50,43,206,123,2,187,141,40,117,74,211,115,233,168,+ 18,14,244,246,33,71,77,138,158,223,112,252,226,243,249,81,164,144,162,39,9,236,74,79,+ 21,179,42,159,198,252,10,211,58,28,221,204,48,115,122,44,23,139,171,63,133,21,205,35,+ 238,0,194,96,250,17,71,105,121,78,188,148,110,218,34,96,42,199,42,172,219,96,1,183,+ 57,80,133,194,41,156,67,174,88,170,159,138,59,195,97,151,191,106,146,161,249,45,209,228,+ 138,94,23,232,218,167,106,199,168,45,60,138,71,96,255,13,23,41,77,225,143,26,6,226,+ 250,70,53,192,144,95,24,40,231,26,197,65,46,124,15,80,237,117,236,167,217,148,178,119,+ 63,131,83,53,64,4,135,94,74,92,162,90,149,17,147,85,9,75,165,62,195,152,225,12,+ 42,69,79,233,69,24,59,32,11,185,166,171,191,95,44,150,58,202,138,155,107,120,173,0,+ 119,182,73,37,80,151,103,130,51,199,237,233,225,83,159,210,168,73,238,92,99,180,165,171,+ 5,6,99,142,16,226,230,90,57,225,244,252,208,219,40,4,213,103,185,36,105,149,249,59,+ 196,124,26,95,244,99,82,104,254,200,137,12,27,119,74,59,107,73,229,167,228,42,246,112,+ 58,96,155,129,199,10,221,155,147,104,228,135,47,19,168,91,221,197,118,85,212,30,69,94,+ 87,194,175,5,189,136,227,146,86,201,183,176,241,240,98,238,242,248,92,192,71,21,79,177,+ 158,151,147,128,3,99,133,249,244,38,39,249,82,41,87,188,179,243,137,116,19,31,198,2,+ 132,223,115,230,90,139,149,22,131,214,165,223,209,191,59,34,147,240,34,110,246,154,39,89,+ 194,40,172,83,178,95,218,158,146,41,195,210,141,219,226,18,132,199,91,102,188,3,101,107,+ 206,231,19,156,137,200,157,13,212,41,92,156,195,194,200,183,95,249,112,133,217,49,188,201,+ 32,167,126,130,51,96,87,62,126,177,229,35,140,189,114,175,121,50,12,185,68,96,94,56,+ 12,255,168,160,217,48,95,193,145,186,18,131,216,120,145,137,169,117,204,163,124,194,150,129,+ 54,166,189,160,223,24,90,102,31,43,98,201,20,200,5,152,193,210,13,57,24,214,200,219,+ 143,148,4,250,154,169,255,155,66,25,64,171,156,228,22,206,76,78,75,166,1,49,209,57,+ 11,127,241,188,238,105,142,35,60,225,129,27,90,59,152,219,213,98,46,83,216,147,182,213,+ 130,105,159,147,211,179,188,213,15,228,16,148,37,173,160,1,189,152,92,66,106,126,237,49,+ 96,152,15,221,50,137,129,45,151,237,157,115,106,37,63,223,56,181,145,203,202,178,117,194,+ 90,4,167,158,65,71,66,169,45,224,67,27,194,198,106,9,221,29,139,96,204,136,174,204,+ 41,198,68,98,179,78,34,14,152,58,23,76,28,211,11,249,122,182,213,152,128,141,121,249,+ 86,0,203,115,205,206,97,227,129,24,48,199,57,44,52,89,83,153,79,197,13,0,118,170,+ 209,163,137,225,202,78,141,145,7,204,244,180,2,246,87,53,55,126,78,235,176,67,60,29,+ 137,37,121,190,120,243,165,51,133,135,132,103,56,34,202,100,247,12,166,110,246,34,219,99,+ 50,153,245,33,207,73,135,137,181,132,124,219,116,211,193,233,64,68,144,73,95,119,99,105,+ 184,50,118,208,235,248,174,144,57,135,5,112,243,157,202,52,228,242,86,92,181,139,155,37,+ 36,142,254,107,233,76,201,177,47,11,88,255,217,91,226,185,206,155,135,254,92,144,226,146,+ 225,4,180,201,35,166,119,252,39,30,195,99,148,225,139,236,229,158,100,155,162,238,247,179,+ 234,207,201,162,9,219,12,64,113,112,154,180,159,211,64,136,24,117,76,137,74,36,21,219,+ 129,193,199,178,183,182,229,39,157,56,141,153,251,190,119,59,7,199,178,3,142,102,13,232,+ 8,148,217,57,107,1,187,144,169,144,193,196,153,120,105,62,85,229,247,104,208,78,92,2,+ 63,37,199,223,141,156,160,185,51,225,130,250,3,12,62,71,252,163,90,162,233,32,201,64,+ 204,62,189,52,50,48,171,197,114,112,1,53,63,255,241,151,226,57,188,157,92,223,183,25,+ 66,93,10,63,199,148,27,50,86,162,110,36,140,57,90,80,165,2,238,8,128,13,40,41,+ 90,87,75,155,212,9,7,0,39,85,90,39,167,38,86,177,76,155,194,49,133,46,166,82,+ 76,161,87,157,79,202,125,99,198,38,76,219,189,212,161,154,5,103,63,157,157,156,94,207,+ 149,179,188,203,155,233,108,196,65,70,34,178,78,181,2,26,163,82,161,155,197,42,128,223,+ 166,27,7,154,171,149,82,52,129,233,81,251,35,58,34,53,122,68,4,23,35,237,144,243,+ 35,97,236,219,14,41,12,85,120,244,135,142,227,77,214,33,223,218,132,226,38,100,48,170,+ 7,169,231,74,236,90,181,81,197,181,150,229,130,141,66,155,26,68,171,192,19,173,176,166,+ 16,183,41,222,84,80,193,200,17,6,207,64,62,17,170,182,168,164,168,184,134,176,178,130,+ 50,112,15,4,63,117,85,49,156,199,3,103,184,57,20,184,112,22,116,41,176,227,3,159,+ 204,200,25,209,34,20,189,34,188,237,204,212,57,98,95,152,103,97,96,50,86,228,59,213,+ 102,126,204,164,30,40,79,79,129,209,36,155,78,90,38,9,12,172,88,85,132,0,92,81,+ 51,172,171,164,50,63,91,63,46,63,35,15,93,115,23,166,5,9,103,200,148,170,107,120,+ 98,44,250,170,136,33,252,80,78,157,217,124,113,83,41,135,80,238,194,113,184,85,79,108,+ 189,131,185,185,55,142,14,240,114,202,53,3,83,148,57,75,184,16,51,103,134,184,116,240,+ 105,58,80,156,33,154,6,184,26,5,58,95,183,103,53,99,131,9,230,138,114,114,44,241,+ 18,14,209,8,253,123,239,57,253,176,231,125,202,167,90,182,9,73,163,192,72,79,120,214,+ 125,11,170,146,80,218,218,200,67,232,148,4,76,44,188,60,229,32,47,201,15,41,16,176,+ 186,43,88,141,117,3,219,45,188,228,156,28,100,168,232,53,59,158,127,204,173,120,234,42,+ 17,241,241,44,192,65,29,237,144,11,192,117,131,32,191,180,74,183,103,116,28,181,160,247,+ 20,134,19,133,171,133,239,173,1,17,3,146,192,127,217,78,241,153,171,237,20,189,14,22,+ 145,100,179,143,153,142,168,12,124,181,245,62,22,203,142,54,87,134,222,210,69,184,28,247,+ 245,220,168,57,24,121,65,207,246,10,155,113,216,107,10,228,179,99,137,92,232,82,199,89,+ 129,41,46,163,157,100,105,230,13,139,17,99,52,111,154,167,75,12,108,13,21,206,207,3,+ 183,231,144,145,92,195,25,197,196,103,199,207,116,96,229,223,200,36,123,77,42,24,83,215,+ 5,17,133,197,171,1,234,23,8,178,193,24,157,105,120,150,159,56,96,133,32,28,149,57,+ 155,185,143,34,246,132,105,145,138,66,59,71,208,226,189,197,211,173,218,103,190,118,127,129,+ 253,14,2,154,118,96,83,159,109,56,158,214,29,183,10,169,221,126,35,188,69,101,0,208,+ 168,5,24,5,171,11,202,186,71,212,239,41,228,108,86,123,185,101,140,152,2,66,232,128,+ 73,125,91,115,179,206,8,12,45,137,114,141,6,178,170,131,69,56,211,134,59,183,173,222,+ 23,66,99,113,157,79,3,79,142,171,56,180,92,177,188,169,9,212,212,232,87,70,63,80,+ 155,194,254,68,30,201,205,110,191,105,147,99,20,21,60,202,73,169,59,136,14,169,209,70,+ 204,154,224,216,60,102,38,249,75,179,183,201,64,122,55,33,103,91,219,47,232,26,192,153,+ 31,112,37,215,69,157,133,28,101,92,73,237,119,120,250,93,84,126,250,216,185,50,216,144,+ 83,51,84,9,178,240,155,56,206,40,233,249,151,200,202,95,140,132,183,126,83,80,223,39,+ 149,17,119,122,225,230,41,0,44,210,112,16,48,153,157,111,198,168,222,35,224,223,77,189,+ 167,52,104,68,236,219,164,13,55,154,53,236,33,238,137,113,126,245,210,245,188,66,67,236,+ 104,46,128,193,249,76,93,15,234,155,243,70,55,171,53,55,75,149,164,167,50,22,218,39,+ 70,243,209,115,7,106,180,34,197,239,12,244,99,5,9,192,160,214,104,145,167,147,18,107,+ 244,186,231,153,70,242,85,73,226,187,235,193,187,4,152,143,252,151,62,196,13,220,28,28,+ 41,56,61,95,200,109,153,238,58,12,242,149,174,63,92,22,49,72,144,183,157,202,12,189,+ 89,34,25,119,115,133,155,147,215,77,226,78,155,249,230,14,241,106,58,25,247,8,214,190,+ 72,16,234,101,118,24,62,121,178,110,111,82,230,182,200,178,52,152,89,144,5,186,138,133,+ 230,230,107,146,87,216,150,163,181,41,83,39,150,217,199,133,158,49,18,51,118,44,53,20,+ 148,120,15,2,128,208,167,114,133,112,64,126,130,23,164,46,175,114,171,150,219,95,105,244,+ 238,102,207,149,172,199,148,173,197,87,217,36,169,184,178,112,199,239,22,173,22,145,26,238,+ 179,132,8,172,198,224,232,75,70,133,108,144,208,202,98,13,65,72,163,2,88,86,50,180,+ 67,25,223,195,132,20,25,42,74,25,75,245,0,205,114,117,65,49,215,198,98,23,14,31,+ 235,24,165,254,49,114,178,188,128,251,120,73,124,205,42,167,36,117,141,170,181,122,119,131,+ 74,183,18,248,128,10,248,190,40,77,7,223,186,243,206,148,15,68,119,223,17,79,193,64,+ 61,54,148,164,1,55,7,233,214,170,117,68,245,169,134,240,53,176,43,168,45,90,52,178,+ 249,210,152,22,116,110,33,147,22,138,110,255,41,200,6,101,100,100,139,16,94,128,6,152,+ 52,46,95,137,130,8,19,137,110,168,115,247,145,123,37,184,201,93,237,2,88,154,52,228,+ 125,108,186,227,169,189,207,143,66,73,38,155,150,28,106,169,245,162,196,29,89,172,98,139,+ 179,170,231,100,246,183,40,142,55,247,57,199,66,180,214,160,53,79,164,197,6,195,225,59,+ 232,78,8,146,115,165,216,229,9,203,171,246,151,180,57,98,65,245,186,11,244,218,69,96,+ 126,133,133,101,193,13,236,132,49,162,245,126,121,224,6,99,124,116,36,122,106,227,96,153,+ 176,144,253,84,81,200,143,65,193,50,210,146,186,196,3,162,70,86,85,131,252,243,50,89,+ 211,68,224,66,57,225,91,99,124,197,22,31,94,90,166,216,240,56,118,106,33,77,143,199,+ 219,168,51,234,138,81,150,198,23,246,231,79,194,189,86,171,251,111,102,109,88,237,113,142,+ 224,69,24,202,98,95,18,103,46,251,146,233,67,246,86,68,65,54,36,89,168,139,44,150,+ 73,19,159,18,71,151,254,252,128,224,36,115,62,178,219,74,195,226,29,183,183,90,11,137,+ 163,195,66,93,41,174,68,238,17,209,89,220,32,116,55,163,189,154,45,157,107,72,203,68,+ 176,131,63,99,128,109,91,203,155,107,124,20,163,174,28,239,236,246,14,87,43,36,97,204,+ 113,13,123,212,107,170,38,34,156,11,75,251,70,84,121,5,184,76,185,247,52,162,193,14,+ 12,18,132,74,47,77,148,94,26,245,133,69,19,213,82,72,93,65,86,42,105,68,169,186,+ 239,168,164,70,168,164,177,163,146,146,61,17,185,98,147,240,124,32,149,33,18,77,152,18,+ 191,126,156,82,177,62,137,50,26,84,228,7,32,114,104,224,101,176,131,89,106,138,102,11,+ 195,152,92,114,155,241,173,122,40,110,63,128,247,63,208,180,229,68,84,68,101,87,191,161,+ 193,37,115,54,213,85,145,203,5,151,143,37,161,116,228,185,241,77,184,187,129,91,83,29,+ 71,73,225,221,240,144,89,54,199,99,54,154,116,12,61,175,228,110,149,244,109,159,168,200,+ 250,89,152,245,95,100,246,61,255,78,141,178,234,75,69,85,109,104,245,185,44,51,78,144,+ 161,202,151,123,219,237,218,129,251,16,86,135,176,194,54,228,203,224,85,254,246,97,90,69,+ 180,28,53,87,185,182,151,155,238,233,153,82,73,164,129,87,204,239,249,130,129,12,3,24,+ 60,190,58,169,8,222,87,183,4,142,8,157,192,73,93,114,35,14,7,10,20,82,49,40,+ 182,193,84,77,110,40,63,95,33,226,125,174,56,123,170,135,123,75,182,11,109,61,206,184,+ 66,186,27,246,197,240,37,56,60,246,176,223,79,156,66,31,164,22,211,243,49,94,210,198,+ 78,40,13,253,149,105,239,71,234,166,114,129,87,111,93,55,122,201,178,206,232,166,49,25,+ 95,178,225,141,249,22,232,100,158,99,82,112,238,42,153,212,199,55,65,94,96,28,45,231,+ 154,180,17,210,159,31,140,124,91,78,230,6,254,159,159,123,120,144,216,228,213,12,170,99,+ 210,130,64,125,181,145,147,216,71,174,65,20,149,67,71,105,31,38,79,183,90,148,246,143,+ 138,116,26,58,70,171,62,97,120,167,102,97,104,79,37,50,118,136,179,77,57,96,133,213,+ 198,147,236,250,69,168,252,229,227,46,21,135,217,195,206,219,34,142,42,226,186,160,237,160,+ 177,128,203,15,72,192,237,215,90,46,24,168,186,148,73,94,59,135,178,25,99,66,136,205,+ 249,247,158,75,45,52,5,247,115,62,74,183,241,90,83,55,149,112,37,114,144,204,98,184,+ 56,170,218,156,2,140,164,75,54,41,153,105,165,189,71,106,31,179,197,247,222,237,156,138,+ 84,90,146,77,75,168,97,223,147,252,164,253,241,168,204,31,167,198,214,191,27,146,175,118,+ 84,32,123,210,102,203,151,55,215,133,98,241,85,204,64,99,31,160,196,206,73,178,100,117,+ 134,228,231,14,103,167,194,166,3,239,61,87,102,154,115,47,16,52,210,1,143,50,247,10,+ 6,151,48,56,76,82,112,164,240,29,252,239,76,240,207,116,163,128,14,84,253,9,6,135,+ 255,207,20,104,181,72,31,117,136,106,177,181,61,57,119,14,180,202,221,20,237,12,203,158,+ 86,36,34,177,187,242,147,39,91,215,161,113,139,90,10,27,135,225,227,140,25,245,25,247,+ 189,124,172,50,178,174,152,127,177,81,123,19,211,222,48,36,133,247,207,241,136,14,80,231,+ 78,229,161,151,163,126,8,9,9,110,169,180,92,229,148,78,4,168,11,49,55,91,87,135,+ 165,7,118,0,97,31,14,203,239,30,134,213,10,76,13,64,21,24,135,76,179,146,161,174,+ 204,204,250,247,3,52,81,66,93,86,155,242,56,31,37,174,210,73,30,120,91,168,129,216,+ 162,198,149,207,181,147,92,188,169,157,52,102,88,134,79,152,194,50,22,147,55,62,201,139,+ 32,120,142,157,144,51,46,92,146,44,168,113,43,29,195,135,31,98,82,95,170,101,240,110,+ 49,100,65,79,52,14,85,66,184,120,87,216,36,90,30,184,11,64,59,197,205,51,156,31,+ 246,24,101,54,210,158,56,124,108,147,61,33,38,46,222,54,253,5,134,130,36,81,98,82,+ 55,183,50,240,142,12,251,113,224,231,50,167,110,181,52,16,23,43,56,248,124,196,197,232,+ 122,245,118,193,199,197,87,241,208,192,168,226,37,230,129,254,120,14,231,249,140,187,63,29,+ 160,36,123,142,2,102,235,84,55,66,8,115,109,180,253,50,118,130,101,28,168,226,38,190,+ 35,232,202,139,134,255,161,154,108,94,212,90,20,130,117,65,39,238,19,169,34,186,148,139,+ 155,94,159,5,178,143,82,174,123,84,221,119,28,222,65,117,204,152,8,173,190,184,130,12,+ 57,236,33,150,131,130,9,112,175,209,233,130,67,200,237,71,163,66,57,157,37,224,190,88,+ 96,172,208,234,75,242,126,30,212,108,18,69,137,124,162,145,131,148,168,40,140,235,171,55,+ 183,186,250,6,149,111,163,148,42,44,67,175,61,86,87,220,2,100,190,242,203,135,129,186,+ 246,224,125,49,0,161,125,75,188,132,145,226,196,216,223,62,97,112,100,165,22,134,199,225,+ 88,244,76,162,43,167,53,13,227,16,122,209,138,59,51,172,59,133,169,164,67,97,91,73,+ 22,249,212,164,110,14,87,104,138,115,208,1,8,4,116,152,101,36,222,169,208,31,71,142,+ 38,35,235,246,59,51,70,239,246,60,103,186,38,151,230,168,143,85,62,34,255,56,166,99,+ 190,91,50,52,141,68,224,183,19,201,102,153,181,34,91,6,71,35,49,109,246,128,109,210,+ 229,15,13,54,112,45,12,70,196,145,4,152,218,253,230,4,53,26,37,115,138,113,50,70,+ 59,227,208,192,155,8,59,15,211,142,184,78,85,79,171,183,206,70,146,81,87,1,39,218,+ 243,250,43,0,180,13,147,1,113,197,249,107,244,235,214,42,194,191,93,174,114,221,247,29,+ 144,30,124,9,34,51,9,117,116,96,117,175,209,12,56,163,254,62,12,223,142,111,187,152,+ 243,77,101,252,49,189,16,48,113,165,191,225,148,23,84,154,251,6,92,4,182,83,151,23,+ 179,19,37,213,208,10,114,190,185,1,164,124,128,177,104,184,251,193,144,100,171,52,113,67,+ 19,220,172,72,30,120,187,66,134,77,232,158,228,84,251,255,232,135,221,10,61,222,157,74,+ 105,76,102,142,79,245,73,140,51,196,91,28,151,230,136,98,52,20,55,174,87,254,122,63,+ 97,12,112,135,65,163,217,234,220,163,203,187,97,85,240,150,13,20,76,76,61,148,43,252,+ 157,210,105,180,205,236,192,217,180,234,65,229,79,159,45,23,110,167,226,36,215,223,48,24,+ 203,74,34,161,89,112,53,115,220,173,11,66,157,158,79,193,15,10,164,183,185,170,112,93,+ 159,17,129,172,121,57,19,93,81,148,18,7,61,107,10,142,45,161,143,32,70,144,29,170,+ 78,31,205,158,181,254,21,198,178,78,234,171,215,138,192,145,196,44,61,198,150,37,169,238,+ 220,165,117,131,140,145,170,175,88,47,1,207,128,180,177,20,108,102,15,228,210,179,13,33,+ 14,60,253,221,44,123,153,1,42,63,132,186,37,89,191,39,56,9,25,97,94,10,215,64,+ 128,98,58,139,229,190,184,2,251,107,72,73,216,13,123,132,211,221,170,91,179,226,106,199,+ 159,109,230,28,119,131,142,138,213,76,171,122,47,53,147,142,224,247,138,221,228,226,141,220,+ 65,235,43,97,49,112,82,200,67,234,113,1,197,213,252,61,71,181,232,142,38,132,243,130,+ 31,30,184,183,168,127,25,135,201,35,221,124,54,85,66,7,57,109,252,157,134,43,194,228,+ 49,154,245,128,174,132,28,221,178,195,227,223,140,0,47,56,4,8,139,232,123,196,138,104,+ 69,34,8,54,66,186,46,167,10,121,42,52,65,116,179,73,76,18,24,34,208,127,255,7,+};+#endifdiff --git a/games/portal/src/game.c b/games/portal/src/game.cnew file mode 100644index 00000000..fdcb89d9--- /dev/null+++ b/games/portal/src/game.c@@ -0,0 +1,1951 @@+/* The test chambers: level loading and the whole simulation.+ *+ * This follows Portal Returns routine by routine so that the player, the+ * cube and the energy pellet move, collide and go through portals exactly+ * like on the TI-84 Plus CE, frame for frame (about 47 frames a second).+ * Units: x in 2 pixel steps, y in pixels. The level is 20x15 tiles of 16px. */+#include "portal.h"+#include "assets.h"++/* tiles */+enum {+ T_EMPTY = 1, T_SOLID = 2, T_SPIKE = 0x0F, T_DOOR = 0x10, T_FIZZ = 0x14, T_RECV_OFF = 0x15, T_RECV_ON = 0x16,+ T_GLASS = 0x17, T_DROP = 0x18, T_BLOODY = 0x1F+};++/* ------------------------------------------------------------ state */+static u8 map[300];+static u8 last_row, last_col; /* where the last tile lookup landed */++/* player */+static u8 px, py, up, fall, spl, spr_, jumpv, faceleft, walking, anim_sub, anim_frame, friction;+static const u8 *pspr;+static u8 startx, starty;+static u8 dead, dead_t; /* death flag and animation counter */+static u8 fire_latch, grab_latch;++/* portals: orange and blue, y then x; 0xFF = none */+static u8 o_y = 0xFF, o_x, b_y = 0xFF, b_x;+static u8 o_horiz, b_horiz; /* drawn with the horizontal sprite */+static u8 o_dir, b_dir; /* 0 floor, 1 right wall, 2 ceiling, 3 left wall */+static u8 next_orange; /* 0xFF: the next shot is orange */+static u8 shot_dir; /* direction of the portal being placed / exit */++/* traversal of a portal */+static u8 depth; /* how deep the player is in the entry portal */+static u8 off; /* offset along the portal */+static u8 en_y, en_x, ex_y, ex_x, en_dir; /* entry and exit portal of this check */+static u8 swapped;++/* cube */+static u8 has_cube, holding, cx, cy, c_up, c_fall, c_l, c_r, c_air, c_fric, drop_x, drop_y, cube_timer, c_off;++/* buttons: x, y, pressed, door col, door row, counter, door frame */+typedef struct {+ u8 flag, x, y, on, dcol, drow, t, frame;+} button_t;+static button_t buttons[9];+static u8 nbuttons;+static u8 btn_pos[9][2];++/* fields: kind (1 fizzler, 0 electric), x, y, vertical */+typedef struct {+ u8 kind, x, y, vert, pad;+} field_t;+static field_t fields[28];+static u8 nfields;++/* energy pellet: direction, launch point, door state and position, pellet position */+typedef struct {+ u8 dir, x0, y0, on, dcol, drow, t, frame, x, y;+} pellet_t;+static pellet_t pel;+static u8 has_pellet, pellet_live, pellet_vanish, pel_dir0;++/* level */+static int cur_pack, cur_level;+static u8 fly_ok;++/* ------------------------------------------------------------ packs */+const pack_t PACKS[2] = {{PACK_MAIN, PACK_MAIN_SIZE}, {PACK_PRELUDE, PACK_PRELUDE_SIZE}};++int pack_levels(int pack) { return PACKS[pack].data[0]; }++/* Levels end with 0xAF: the original finds level n by skipping n-1 of+ * them, one byte then up to the next 0xAF. */+const u8 *level_ptr(int pack, int n) {+ const u8 *p = PACKS[pack].data + 1, *end = PACKS[pack].data + PACKS[pack].size;+ while (--n > 0) {+ p++;+ while (p < end && *p != 0xAF) p++;+ p++;+ }+ return p;+}++/* ------------------------------------------------------------ tiles */+/* Tile under a point; outside the screen counts as solid. */+static u8 tile_at(int x2, int y) {+ x2 &= 0xFF, y &= 0xFF;+ if (y == 0xFF || y >= 0xF0 || x2 == 0xFF || x2 >= 0xA0) return T_SOLID;+ last_row = y >> 4, last_col = x2 >> 3;+ return map[last_row * 20 + last_col];+}+static bool empty_tile(u8 t) { return t == T_EMPTY || t == T_FIZZ; }++static void set_tile(int col, int row, u8 t) {+ map[row * 20 + col] = t;+ tile_draw(t, col, row);+}+/* set the tile under a point again (redraws it) */+static void redraw_at(int x2, int y) {+ u8 t = tile_at(x2, y);+ if (!((x2 & 0xFF) >= 0xA0 || (y & 0xFF) >= 0xF0)) set_tile((x2 & 0xFF) >> 3, (y & 0xFF) >> 4, t);+}++static u8 sra(u8 v) { return (u8)((s8)v >> 1); }+static bool in_box(int x, int y, int x0, int y0, int x1, int y1) { return x >= x0 && x < x1 && y >= y0 && y < y1; }++/* ------------------------------------------------------------ drawing helpers */+/* Sprites by their address in the original program: the table keeps the+ * original order and sizes, so offsets between them work the same. */+#define SP(a) (S_E1C7 + ((a) - 0xE1C7))+static void draw_with(const u8 *s, int x2, int y, int slot, u16 c) {+ u16 keep = pal[slot];+ pal[slot] = c;+ spr(s, x2, y);+ pal[slot] = keep;+}++static void draw_portals(void) {+ /* orange as is, blue with the draw slot set to blue */+ if (o_y != 0xFF) spr(o_horiz ? SP(0xE1D9) : SP(0xE1C7), o_x, o_y);+ if (b_y != 0xFF) draw_with(b_horiz ? SP(0xE1D9) : SP(0xE1C7), b_x, b_y, C_DRAW, pal[C_BLUE]);+}++static void draw_hud(void) {+ if (!next_orange) draw_with(SP(0xE1FF), 0x9A, 0xE4, C_DRAW, pal[C_BLUE]);+ else spr(SP(0xE1FF), 0x9A, 0xE4);+}++static const u8 *cube_spr(void) { return SP(0xE74B); }++static void draw_player_at(int x, int y) { /* C067: with the cube, and the portals on top */+ if (has_cube && !(holding && depth)) {+ if (holding) {+ cx = px + 1 + !faceleft;+ cy = py + 4;+ }+ spr(pspr, x, y);+ spr(cube_spr(), cx, cy);+ } else spr(pspr, x, y);+ draw_portals();+}+static void draw_player(void) { draw_player_at(px, py); }++static const u8 *stand_frame(void) { return pspr = faceleft ? SP(0xE273) : SP(0xE23F); }++static void run_anim(void) {+ if (++anim_sub != 2) return;+ anim_sub = 0;+ if (++anim_frame == 3) anim_frame = 0;+ pspr = (faceleft ? SP(0xE30F) : SP(0xE273)) + 52 * (anim_frame + 1);+}++/* ------------------------------------------------------------ portals: traversal */+/* The player's state against the four kinds of entry portal, set by+ * check_portals(): 0 clear, 0xFE touching, 0xFF inside. */+static u8 st_floor, st_rwall, st_ceil, st_lwall;+static u8 exit_dir;++static void teleport(u8 x, u8 y) { /* C002 */+ px = x, py = y;+ depth = 0, st_floor = 0;+ draw_player();+}++/* What shows at the exit portal while the player is partly inside the+ * entry portal; at full depth the player moves there and keeps the+ * speed (BB5A). */+static void exit_side(void) {+ const u8 *saved = pspr, *h;+ u8 t, x, y, k = depth >> 1;+ int de;+ switch (exit_dir) {+ case 0: /* floor portal: comes out upward */+ t = ex_y - depth;+ h = SP(0xE233), de = faceleft ? 0 : 0x6C;+ if (!depth) {+ spr(SP(0xE233), ex_x + off, (u8)(t - 2));+ pspr = saved;+ return;+ }+ if (k == 1) h = SP(0xE4E1);+ else if (k == 2) h = SP(0xE4CB);+ else if (k == 3) h = SP(0xE4AB);+ else if (k == 4) h = SP(0xE481);+ else if (k == 5) {+ u8 e = spr_ == 1 ? 0 : spr_, l = spl == 1 ? 0 : spl;+ up = fall + l + e + up;+ spr_ = spl = fall = 0;+ stand_frame();+ teleport(ex_x + off, t);+ return;+ }+ pspr = h + de;+ x = ex_x + off;+ spr(SP(0xE233), x, (u8)(t - 2));+ draw_player_at(x, t);+ pspr = saved;+ return;+ case 1: /* right wall: comes out to the left */+ t = ex_x + 1;+ h = SP(0xE227), de = faceleft ? 0 : 0xC0;+ if (!depth) {+ spr(SP(0xE227), (u8)(t - 2), ex_y + off * 2);+ pspr = saved;+ return;+ }+ if (k == 1) h = SP(0xE3EB), de = 0;+ else if (k == 2) h = SP(0xE5A3);+ else if (k == 3) h = SP(0xE583);+ else if (k == 4) h = SP(0xE559);+ else if (k == 5) {+ stand_frame();+ teleport((u8)(t - k - 1), ex_y + off * 2);+ spr(SP(0xE233), px, py);+ u8 a = fall + up + spl + spr_;+ spl = a >= 0x1E ? 0x1E : a;+ spr_ = up = fall = 0;+ return;+ }+ pspr = h + de;+ x = t - (k + 1), y = ex_y + off * 2;+ spr(SP(0xE227), (u8)(x - 1), y);+ if (fall && off) spr(SP(0xE233), (u8)(ex_x - 5), (u8)(y - 2));+ if (off != 3) spr(SP(0xE233), (u8)(ex_x - 5), ex_y + 10 + off * 2);+ draw_player_at(x, y);+ pspr = saved;+ return;+ case 2: /* ceiling: comes out downward */+ t = ex_y + 2;+ h = SP(0xE233);+ if (k == 1) h = SP(0xE3DF);+ else if (k == 2) h = SP(0xE441);+ else if (k == 3) h = SP(0xE421);+ else if (k == 4) h = faceleft ? SP(0xE3F7) : SP(0xE457);+ else if (k == 5) {+ stand_frame();+ teleport(ex_x + off, t);+ spr(SP(0xE233), px, (u8)(py - 2));+ fall = up + fall + spl + spr_;+ spr_ = up = spl = 0;+ return;+ }+ pspr = h;+ x = ex_x + off;+ spr(SP(0xE233), x, (u8)(t + depth));+ if (fall && off) spr(SP(0xE227), (u8)(ex_x + off - 1), ex_y + 2);+ if (off != 3) spr(SP(0xE227), ex_x + off + 5, ex_y + 2);+ draw_player_at(x, t);+ pspr = saved;+ return;+ default: /* left wall: comes out to the right */+ t = ex_x + 1;+ h = SP(0xE227), de = faceleft ? 0 : 0xC0;+ if (!depth) {+ spr(SP(0xE227), t, ex_y + off * 2);+ pspr = saved;+ return;+ }+ if (k == 1) h = SP(0xE3EB), de = 0;+ else if (k == 2) h = SP(0xE603);+ else if (k == 3) h = SP(0xE5E3);+ else if (k == 4) h = SP(0xE5B9);+ else if (k == 5) {+ stand_frame();+ teleport(t, ex_y + off * 2);+ spr(SP(0xE233), px, py);+ if (en_dir == 3) spr(SP(0xE227), en_x + 1, en_y + off * 2);+ u8 a = up + fall + spl + spr_;+ spr_ = a >= 0x1E ? 0x1E : a;+ spl = up = fall = 0;+ return;+ }+ pspr = h + de;+ y = ex_y + off * 2;+ spr(SP(0xE227), t + k, y);+ if (fall && off) spr(SP(0xE233), ex_x + 1, (u8)(y - 2));+ if (off != 3) spr(SP(0xE233), ex_x + 1, ex_y + 10 + off * 2);+ draw_player_at(t, y);+ pspr = saved;+ return;+ }+}++/* One entry portal (at en_x, en_y facing `dir`). Returns true when the+ * player is inside it (the original then skips the other portal). */+static bool enter(u8 dir) {+ u8 d = en_x, e = en_y, a, k;+ const u8 *h;+ int de;+ switch (dir) {+ case 0: /* floor portal */+ if (px < d || (a = px - d) >= 4) return false;+ off = a;+ a = (u8)(py + 10);+ if (a < e || (a = a - e) >= 12) return false;+ depth = a;+ st_floor = 0xFE;+ exit_side();+ if (!depth) {+ stand_frame();+ return false;+ }+ st_floor = 0xFF;+ h = SP(0xE233), de = faceleft ? 0 : 0x6C, k = depth >> 1;+ if (k == 1) h = SP(0xE481);+ else if (k == 2) h = SP(0xE4AB);+ else if (k == 3) h = SP(0xE4CB);+ else if (k == 4) h = SP(0xE4E1);+ else if (k == 5) st_floor = 0xFE, h = stand_frame();+ pspr = h + de;+ spr(SP(0xE233), px, (u8)(py - 2));+ return true;+ case 1: /* right wall portal */+ if (py < e || (a = py - e) >= 8) return false;+ off = a >> 1;+ a = (u8)(px + 6 - d);+ if (a & 0x80) return false;+ a = (u8)(a * 2 - 2);+ if (a >= 12) return false;+ depth = a;+ st_rwall = 0xFE;+ spr(SP(0xE227), (u8)(px - 1), py);+ exit_side();+ if (!depth) {+ stand_frame();+ return false;+ }+ st_rwall = 0xFF;+ h = SP(0xE227), de = faceleft ? 0 : 0xC0, k = depth >> 1;+ if (k == 1) h = SP(0xE559);+ else if (k == 2) h = SP(0xE583);+ else if (k == 3) h = SP(0xE5A3);+ else if (k == 4) h = SP(0xE3EB), de = 0;+ else if (k == 5) st_rwall = 0xFE, h = stand_frame();+ pspr = h + de;+ return true;+ case 2: /* ceiling portal */+ if (px < d || (a = px - d) >= 4) return false;+ off = a;+ a = (u8)(py - 2);+ if (e < a || (a = e - a) >= 12) return false;+ depth = a;+ spr(SP(0xE233), en_x + off, en_y + 2);+ exit_side();+ st_ceil = 0xFE;+ if (!depth) {+ stand_frame();+ return false;+ }+ st_ceil = 0xFF;+ h = SP(0xE233), k = depth >> 1;+ if (k == 1) h = faceleft ? SP(0xE3F7) : SP(0xE457);+ else if (k == 2) h = SP(0xE421);+ else if (k == 3) h = SP(0xE441);+ else if (k == 4) h = SP(0xE3DF);+ else if (k == 5) st_ceil = 0xFE, h = stand_frame();+ pspr = h;+ spr(SP(0xE233), en_x + off, (u8)(en_y + 12 - depth));+ return true;+ default: /* left wall portal */+ if (py < e || (a = py - e) >= 8) return false;+ off = a >> 1;+ a = (u8)(d - (u8)(px - 1));+ if (a & 0x80) return false;+ a = (u8)(a * 2);+ if (a >= 12) return false;+ depth = a;+ st_lwall = 0xFE;+ exit_side();+ st_lwall = 0xFE;+ if (!depth) {+ stand_frame();+ return false;+ }+ st_lwall = 0xFF;+ h = SP(0xE227), de = faceleft ? 0 : 0xC0, k = depth >> 1;+ if (k == 1) h = SP(0xE5B9);+ else if (k == 2) h = SP(0xE5E3);+ else if (k == 3) h = SP(0xE603);+ else if (k == 4) h = SP(0xE3EB), de = 0;+ else if (k == 5) st_lwall = 0xFE, h = stand_frame();+ pspr = h + de;+ spr(SP(0xE227), (u8)(en_x + 6 - k), en_y + off * 2);+ return true;+ }+}++/* B7F3: the player against both portals, blue first (orange first while+ * inside the orange one). */+static void check_portals(void) {+ depth = off = 0;+ st_floor = st_ceil = st_rwall = st_lwall = 0;+ if (!swapped) {+ if (b_y == 0xFF || o_y == 0xFF) return;+ ex_y = o_y, ex_x = o_x, en_y = b_y, en_x = b_x;+ exit_dir = o_dir, en_dir = b_dir;+ if (enter(b_dir)) return;+ }+ ex_y = b_y, ex_x = b_x, en_y = o_y, en_x = o_x;+ exit_dir = b_dir, swapped = 0xFF, en_dir = o_dir;+ if (enter(o_dir)) return;+ swapped = 0;+}++/* draw the player at the entry opening instead of its logical place */+static void draw_at_ceiling(void) { /* B41C */+ u8 y = py;+ py = en_y + 2;+ draw_player();+ py = y;+}+static void draw_at_lwall(void) { /* B76D */+ u8 x = px;+ px = en_x + 1;+ draw_player();+ px = x;+}++/* ------------------------------------------------------------ player movement */+static void level_exit(void);+static bool left_game; /* set when the level ends (next level or quit) */++static bool hop(void) { /* B66A: at the lip of a side portal */+ if (off == 0 || off == 4) {+ up = 4;+ return true;+ }+ return false;+}++/* 2 pixels down (B44B) */+static void move_down(void) {+ if (st_ceil == 0xFF) { /* B435 */+ py += 2;+ check_portals();+ if (depth) draw_at_ceiling();+ else draw_player();+ return;+ }+ if (st_ceil != 0xFE) {+ if (st_floor == 0xFE) goto erase_legs;+ if (st_floor == 0xFF) goto erase_top;+ if (st_rwall != 0xFE) {+ if (st_rwall == 0xFF && off != 3) goto side;+ if (st_lwall != 0xFE && st_lwall == 0xFF && off != 3) goto side;+ }+ }+ /* B49F */+ stand_frame();+ if (!empty_tile(tile_at(px, py + 10))) return;+ if (!empty_tile(tile_at(px + 4, py + 10))) return;+erase_legs:+ spr(SP(0xE221), px, py + 6);+ spr(SP(0xE221), px + 4, py + 6);+erase_top:+ spr(SP(0xE233), px, py);+step:+ py += 2;+ check_portals();+ if (st_lwall == 0xFF) draw_at_lwall();+ else draw_player();+ return;+side: /* B529 */+ spr(SP(0xE233), st_lwall ? en_x + 1 : (u8)(en_x - 5), en_y + off * 2);+ goto step;+}++/* 2 pixels up (B2FB) */+static void move_up(void) {+ if (st_rwall == 0xFE) goto normal;+ if (st_rwall == 0xFF) {+ if (hop()) return;+ goto side;+ }+ if (st_lwall == 0xFE) goto normal;+ if (st_lwall == 0xFF) {+ if (hop()) return;+ goto side;+ }+ if (st_floor == 0xFE) goto erase;+ if (st_floor) goto step;+ if (st_ceil == 0xFE) goto erase;+ if (st_ceil) { /* B40C */+ py -= 2;+ check_portals();+ if (!depth) draw_player();+ else draw_at_ceiling();+ return;+ }+normal: /* B351 */+ stand_frame();+ if (!empty_tile(tile_at(px + 4, py - 2)) || !empty_tile(tile_at(px, py - 2))) {+ up = 0;+ return;+ }+erase:+ spr(SP(0xE233), px, py + 8);+step:+ py -= 2;+ check_portals();+draw: /* B3A9 */+ if (!st_floor && depth == 2) draw_at_ceiling();+ else draw_player();+ return;+side: /* B3BD */+ if (st_lwall == 0xFE) goto draw;+ spr(SP(0xE233), st_lwall ? en_x + 1 : (u8)(en_x - 5), en_y + off * 2 + 8);+ py -= 2;+ check_portals();+ if (st_lwall == 0xFF) draw_at_lwall();+ else if (st_rwall == 0xFF) draw_player();+ else goto draw;+}++/* 2 pixels right (B554) */+static void move_right(void) {+ if (px == 0x9B) {+ level_exit();+ return;+ }+ faceleft = 0;+ if (st_floor == 0xFE) goto check;+ if (st_floor == 0xFF) {+ if (off == 3) goto moved;+ if (off < 2) goto inc;+ }+ if (st_ceil) return;+ if (st_lwall == 0xFE) goto erase;+ if (st_lwall) { /* B785 */+ px++;+ check_portals();+ if (!depth) draw_player();+ else draw_at_lwall();+ return;+ }+ if (st_rwall == 0xFE) goto erase;+ if (st_rwall) goto erase1;+check: /* B5A7 */+ if (!empty_tile(tile_at(px + 5, py + 9)) || !empty_tile(tile_at(px + 5, py))) {+ spr_ = 0;+ return;+ }+ if (walking) run_anim();+erase:+ spr(SP(0xE221), px, py + 6);+ spr(SP(0xE221), px, py);+erase1:+ spr(SP(0xE221), px, py);+inc:+ px++;+moved:+ check_portals();+ if (st_ceil == 0xFF) { /* B63A */+ spr(SP(0xE227), (u8)(px - 1), en_y + 2);+ spr(SP(0xE227), px + 5, en_y + 2);+ draw_at_ceiling();+ } else draw_player();+}++/* 2 pixels left (B67C) */+static void move_left(void) {+ faceleft = 0xFF;+ if (st_floor == 0xFE) goto check;+ if (st_floor == 0xFF) {+ if (off) goto dec;+ return;+ }+ if (st_ceil) return;+ if (st_rwall == 0xFF) goto dec;+ if (st_lwall == 0xFE) goto erase;+ if (st_lwall) { /* B75C */+ px--;+ check_portals();+ if (!depth) draw_player();+ else draw_at_lwall();+ return;+ }+check: /* B6BF */+ if (!px) return;+ if (!empty_tile(tile_at(px - 1, py + 9)) || !empty_tile(tile_at(px - 1, py))) {+ spl = 0;+ return;+ }+ if (walking) run_anim();+erase:+ spr(SP(0xE221), px + 3, py);+ spr(SP(0xE221), px + 4, py + 6);+dec: /* B731 */+ px--;+ check_portals();+ if (st_ceil == 0xFF) {+ spr(SP(0xE227), (u8)(px - 1), en_y + 2);+ spr(SP(0xE227), px + 5, en_y + 2);+ draw_at_ceiling();+ } else if (!st_lwall) draw_player();+ else if (depth == 2) draw_at_lwall();+ else draw_player();+}++/* ------------------------------------------------------------ portal gun */+static u8 fire_up_flag, fire_right_flag; /* V53D1, V53D2 */++static bool pass(u8 t) { return t == T_EMPTY || t == T_GLASS; } /* beams go through */++static void dot(u8 d, u8 e) { spr(next_orange ? SP(0xE1F3) : SP(0xE1EB), d, e); }+static void undot(u8 d, u8 e) { spr(tile_at(d, e) == T_GLASS ? SP(0xE1FB) : SP(0xE1F7), d, e); }++/* Which tiles take a portal on each face (a = tile - 1, like the original). */+static bool bad_floor(u8 a) { /* LD72D, C435, C56A */+ if (a == 0 || a == 1 || a == 3 || a == 4 || a == 5 || a == 7 || a == 9 || a == 13) return true;+ if (a == 0x1B || a == 0x1D) return false;+ return a >= 14;+}+static bool bad_ceiling(u8 a) { /* LD753, C10D, C4DE */+ if (a == 0 || a == 1 || a == 2 || a == 4 || a == 5 || a == 6 || a == 13) return true;+ if (a == 0x1B || a == 0x1C) return false;+ return a >= 14;+}+static bool bad_rface(u8 a) { /* LD7BF, C249: the wall's right face */+ if (a < 5 || a == 8 || a == 9 || a == 10 || a == 12) return true;+ if (a == 0x1B || a == 0x1C || a == 0x1D) return false;+ return a >= 14;+}+static bool bad_lface(u8 a) { /* LD7E2, C302: the wall's left face */+ if (a < 4 || a == 5 || a == 6 || a == 7 || a == 11 || a == 12) return true;+ if (a == 0x1B || a == 0x1C || a == 0x1D) return false;+ return a >= 14;+}++static bool aborted; /* the shot was cancelled while placing */++/* LD664: keep the new portal (at d, e) off the other portal: returns true+ * after moving it one step, and cancels the shot if it can't move. */+static bool adjust(u8 *d, u8 *e) {+ u8 oy, ox, oh;+ if (!next_orange) oy = o_y, ox = o_x, oh = o_horiz;+ else oy = b_y, ox = b_x, oh = b_horiz;+ if (oy == 0xFF) return false;+ if (oh) { /* the other one is horizontal: [ox, ox+8) x [oy, oy+1) */+ if (in_box(*d, (u8)(*e - 1), ox, oy, ox + 8, oy + 1)) {+ (*d)++;+ u8 t = tile_at(*d + 8, *e);+ if (fire_up_flag ? bad_ceiling(t - 1) : bad_floor(t - 1)) return aborted = true, false;+ return true;+ }+ if (in_box(*d + 7, (u8)(*e - 1), ox, oy, ox + 8, oy + 1)) {+ (*d)--;+ u8 t = tile_at(*d, *e);+ if (fire_up_flag ? bad_ceiling(t - 1) : bad_floor(t - 1)) return aborted = true, false;+ return true;+ }+ return false;+ }+ /* vertical: [ox, ox+1) x [oy, oy+16) */+ u8 h = fire_right_flag ? *d - 1 : *d + 1;+ if (in_box(h, (u8)(*e + 16), ox, oy, ox + 1, oy + 16)) {+ *e -= 2;+ u8 t = tile_at(*d + 1, *e);+ if (fire_right_flag ? bad_lface(t - 1) : bad_rface(t - 1)) return aborted = true, false;+ return true;+ }+ if (in_box(h, *e, ox, oy, ox + 1, oy + 16)) {+ *e += 2;+ u8 t = tile_at(*d, *e + 16);+ if (fire_right_flag ? bad_lface(t - 1) : bad_rface(t - 1)) return aborted = true, false;+ return true;+ }+ return false;+}+static bool adjust_all(u8 *d, u8 *e) {+ aborted = false;+ while (adjust(d, e)) {}+ return !aborted;+}++static void erase_portal(bool orange) { /* C6AD / C6DD: back to the wall's edge color */+ if (orange) {+ if (o_y != 0xFF) draw_with(o_horiz ? SP(0xE1D9) : SP(0xE1C7), o_x, o_y, C_DRAW, pal[C_EDGE]);+ } else if (b_y != 0xFF) draw_with(b_horiz ? SP(0xE1D9) : SP(0xE1C7), b_x, b_y, C_DRAW, pal[C_EDGE]);+}++/* C517: put the portal of the current color at (d, e) */+static void place(u8 d, u8 e, u8 horiz) {+ erase_portal(next_orange);+ if (next_orange) o_horiz = horiz;+ else b_horiz = horiz;+ next_orange = ~next_orange;+ if (!next_orange) {+ o_y = e, o_x = d, o_dir = shot_dir;+ } else {+ b_y = e, b_x = d, b_dir = shot_dir;+ }+ draw_portals();+ hint(HINT_SWAP);+}++static void place_ceiling(u8 d, u8 e) { /* C4C7 */+ e++;+ fire_up_flag = 0xFF;+ if (!adjust_all(&d, &e)) return;+ e--, d++;+ shot_dir = 2;+ for (;;) {+ u8 t = tile_at(d + 6, e);+ d--;+ if (!bad_ceiling(t - 1)) break;+ }+ e++;+ aborted = false;+ adjust(&d, &e);+ if (aborted) return;+ e--;+ place(d, e, 0xFF);+}++static void place_floor(u8 d, u8 e) { /* C557 */+ fire_up_flag = 0;+ if (!adjust_all(&d, &e)) return;+ d++;+ shot_dir = 0;+ for (;;) {+ u8 t = tile_at(d + 6, e);+ d--;+ if (!bad_floor(t - 1)) break;+ }+ aborted = false;+ adjust(&d, &e);+ if (aborted) return;+ e--;+ place(d, e, 0xFF);+}++static void place_rface(u8 d, u8 e) { /* C267: a wall to the left */+ fire_right_flag = 0;+ if (!adjust_all(&d, &e)) return;+ e++;+ shot_dir = 3;+ if (tile_at(d + 2, e) == T_FIZZ) return;+ for (;;) {+ u8 t = tile_at(d, e + 14);+ e--;+ if (!bad_rface(t - 1)) break;+ }+ aborted = false;+ adjust(&d, &e);+ if (aborted) return;+ d++;+ place(d, e, 0);+}++static void place_lface(u8 d, u8 e) { /* C323: a wall to the right */+ fire_right_flag = 0xFF;+ if (!adjust_all(&d, &e)) return;+ e++;+ shot_dir = 1;+ for (;;) {+ u8 t = tile_at(d, e + 14);+ e--;+ if (!bad_lface(t - 1)) break;+ }+ aborted = false;+ adjust(&d, &e);+ if (aborted) return;+ d--;+ if (tile_at(d, e) == T_FIZZ) return;+ place(d, e, 0);+}++/* the checks after a beam stops: a = blocking tile - 1 */+static void hit_ceiling(u8 a, u8 d, u8 e) { /* C10D */+ if (bad_ceiling(a)) return;+ place_ceiling(d, e);+}+static void hit_rface(u8 a, u8 d, u8 e) { /* C249 */+ if (bad_rface(a)) return;+ place_rface(d, e);+}+static void hit_lface(u8 a, u8 d, u8 e) { /* C302 */+ if (bad_lface(a)) return;+ place_lface(d, e);+}+static void hit_floor(u8 a, u8 d, u8 e) { /* C435 */+ if (bad_floor(a)) return;+ place_floor(d, e);+}++/* B2DD: one shot per key press */+static bool fire_ok(void) {+ if (fire_latch == 1) return false;+ fire_latch = 1;+ return true;+}++/* Beams: drawn dot by dot along the path, then erased the same way. */+static void fire(int key) {+ u8 d, e, sd, se, t = 0, t2;+ int pass2;+ if (!fire_ok()) return;+ switch (key) {+ case 8: /* up (C0CD) */+ sd = px, se = py - 1;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se;+ do {+ t = tile_at(d, e);+ e++;+ if (t != T_GLASS) (k ? undot : dot)(d, e);+ e -= 3;+ } while (pass(t));+ }+ hit_ceiling(t - 1, d, e + 1);+ return;+ case 2: /* down (C3F3) */+ sd = px, se = py + 10;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se;+ do {+ t = tile_at(d, e);+ e -= 2;+ if (t != T_GLASS) (k ? undot : dot)(d, e);+ e += 3;+ } while (pass(t));+ }+ hit_floor(t - 1, d, e);+ return;+ case 4: /* left (C20C) */+ sd = px - 1, se = py;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se;+ do {+ t = tile_at(d, e);+ d++;+ if (t != T_GLASS) (k ? undot : dot)(d, e);+ d -= 2;+ } while (pass(t));+ }+ hit_rface(t - 1, d, e);+ return;+ case 6: /* right (C2C4) */+ sd = px + 4, se = py;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se;+ do {+ t = tile_at(d, e);+ d--;+ if (t != T_GLASS) (k ? undot : dot)(d, e);+ d += 2;+ } while (pass(t));+ }+ hit_lface(t - 1, d, e);+ return;+ case 7: /* up-left (C12C) */+ sd = px - 1, se = py;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se, pass2 = 0;+ for (;;) {+ t = tile_at(d, e);+ if (t != T_GLASS) (k ? undot : dot)(d + 1, e);+ e -= 2;+ if (!pass(t)) break;+ t2 = tile_at(d, e);+ d--;+ if (!pass(t2)) {+ t = t2, pass2 = 1;+ break;+ }+ }+ }+ if (pass2) hit_ceiling(t - 1, d + 1, e);+ else hit_rface(t - 1, d - 1, e + 2);+ return;+ case 9: /* up-right (C197) */+ sd = px + 4, se = py + 1;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se, pass2 = 0;+ for (;;) {+ t = tile_at(d, e);+ if (t != T_GLASS) (k ? undot : dot)(d - 1, e + 1);+ e -= 2;+ if (!pass(t)) break;+ t2 = tile_at(d, e);+ d++;+ if (!pass(t2)) {+ t = t2, pass2 = 1;+ break;+ }+ }+ }+ if (pass2) hit_ceiling(t - 1, d - 1, e - 1);+ else hit_lface(t - 1, d + 1, e + 1);+ return;+ case 1: /* down-left (C37F) */+ sd = px, se = py + 4;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se, pass2 = 0;+ for (;;) {+ t = tile_at(d, e);+ if (t != T_GLASS) (k ? undot : dot)(d + 1, e);+ e += 2;+ if (!pass(t)) break;+ t2 = tile_at(d, e);+ d--;+ if (!pass(t2)) {+ t = t2, pass2 = 1;+ break;+ }+ }+ }+ if (pass2) hit_floor(t - 1, d + 1, e + 1);+ else hit_rface(t - 1, d - 1, e);+ return;+ case 3: /* down-right (C45A) */+ sd = px + 4, se = py + 4;+ for (int k = 0; k < 2; k++) {+ d = sd, e = se, pass2 = 0;+ for (;;) {+ t = tile_at(d, e);+ if (t != T_GLASS) (k ? undot : dot)(d - 1, e);+ e += 2;+ if (!pass(t)) break;+ t2 = tile_at(d, e);+ d++;+ if (!pass(t2)) {+ t = t2, pass2 = 1;+ break;+ }+ }+ }+ if (pass2) hit_floor(t - 1, d, e + 1);+ else hit_lface(t - 1, d + 1, e + 2);+ return;+ }+}++/* ------------------------------------------------------------ input */+/* The keys as the original reads them: number keys by keypad group, and+ * a shot only fires when a single number key of the group is down. */+static u8 k_arrows; /* bit 0 down, 1 left, 2 right, 3 up */+static u8 grp5, grp4, grp3; /* 3 6 9 / 2 5 8 / 1 4 7 as bits 1, 2, 3 */+static bool k_grab, k_fly;++static bool number_key(void) {+ if (grp5 == 2) return fire(3), true;+ if (grp5 == 4) return fire(6), true;+ if (grp5 == 8) return fire(9), true;+ if (grp4 == 2) return fire(2), true;+ if (grp4 == 4) {+ if (fire_ok()) next_orange = ~next_orange; /* 5: switch color */+ return true;+ }+ if (grp4 == 8) return fire(8), true;+ if (grp3 == 2) return fire(1), true;+ if (grp3 == 4) return fire(4), true;+ if (grp3 == 8) return fire(7), true;+ return false;+}++/* ------------------------------------------------------------ frame steps */+static void jump(void) { /* B0B2 */+ if (fall) return;+ if (st_rwall == 0xFF) {+ if (hop()) return;+ up = jumpv;+ return;+ }+ if (st_lwall == 0xFF) {+ if (hop()) return;+ up = jumpv;+ return;+ }+ if (st_floor) return;+ if (empty_tile(tile_at(px, py + 10)) && empty_tile(tile_at(px + 4, py + 10))) return;+ up = jumpv;+}++static void press_right(void) { /* B122 */+ if (spl) spl--;+ else if (spr_ < 1) spr_++;+}+static void press_left(void) { /* B10F */+ if (spr_) spr_--;+ else if (spl < 1) spl++;+}++static int steps(u8 v, u8 two, u8 three) { return v < two ? 1 : v < three ? 2 : 3; }++static void vertical(void) { /* B13A */+ int b;+ if (up >= 1 && up <= 4) b = 0;+ else if (!up) b = steps(fall, 0x0D, 0x17);+ else b = steps(up, 0x0D, 0x17);+ do {+ if (depth || st_floor || !number_key()) fire_latch = 0;+ if (!b) {+ up--;+ return;+ }+ if (!up) {+ if (fall) move_down();+ } else if (b == 1) up--;+ if (up) move_up();+ if (left_game) return;+ } while (--b);+}++static void horizontal(void) { /* B21A */+ int b;+ if (spr_) b = steps(spr_, 0x0D, 0x14);+ else if (spl) b = steps(spl, 0x0D, 0x14);+ else return;+ do {+ if (!depth && !st_floor) number_key();+ if (spl) move_left();+ if (spr_) move_right();+ if (left_game) return;+ } while (--b);+}++/* ------------------------------------------------------------ cube */+static void cube_erase(void) { spr(SP(0xE755), cx, cy); }+static void cube_draw(void) { spr(cube_spr(), cx, cy); }++static void cube_reset(void) { /* DA81: back to the dropper */+ holding = cube_timer = 0;+ c_r = c_l = c_up = c_fall = 0;+ redraw_at(cx, cy);+ redraw_at(cx + 1, cy);+ redraw_at(cx + 1, cy + 2);+ redraw_at(cx, cy + 2);+ cx = drop_x * 8 + 3;+ cy = drop_y * 16 + 14;+}++/* LC99D: a tile the cube may enter; a fizzler grid takes the cube away */+enum { C_OK, C_BLOCK, C_FIZZLED };+static int cube_tile(u8 d, u8 y) {+ u8 t = tile_at(d, y);+ if (t == T_FIZZ) {+ cube_reset();+ return C_FIZZLED;+ }+ return t == T_EMPTY ? C_OK : C_BLOCK;+}++static void cube_left(void) { /* CCC2 */+ int r = cube_tile(cx - 1, cy);+ if (r == C_OK) r = cube_tile(cx - 1, cy + 4);+ if (r != C_OK) {+ c_l = 1;+ return;+ }+ cube_erase();+ cx--;+ cube_draw();+}+static void cube_right(void) { /* CCFA */+ int r = cube_tile(cx + 2, cy);+ if (r == C_OK) r = cube_tile(cx + 2, cy + 4);+ if (r != C_OK) {+ c_r = 0;+ return;+ }+ cube_erase();+ cx++;+ cube_draw();+}+static void cube_down(void) { /* CD33 */+ if (cube_tile(cx + 1, cy + 4) != C_OK || cube_tile(cx, cy + 4) != C_OK) return;+ cube_erase();+ cy += 2;+ cube_draw();+}+static void cube_upward(void) { /* CD60 */+ if (cube_tile(cx + 1, cy - 2) != C_OK || cube_tile(cx + 1, cy - 2) != C_OK) return;+ cube_erase();+ cy -= 2;+ cube_draw();+}++/* CDB0: the cube through the portals */+static bool cube_enter(u8 dir) {+ u8 d = en_x, e = en_y, a;+ switch (dir) {+ case 0:+ if (cx < d || (a = cx - d) >= 7) return false;+ c_off = a;+ if ((u8)(cy + 4) != e) return false;+ break;+ case 1:+ if (!c_r) return false;+ if (cy < e || (a = cy - e) >= 13) return false;+ c_off = a >> 1;+ if ((u8)(cx + 2) != d) return false;+ break;+ case 2:+ if (cx < d || (a = cx - d) >= 5) return false;+ c_off = a;+ if (e != (u8)(cy - 2)) return false;+ break;+ default:+ if (!c_l) return false;+ if (cy < e || (a = cy - e) >= 13) return false;+ c_off = a >> 1;+ if (d != (u8)(cx - 1)) return false;+ break;+ }+ u8 nx, ny;+ switch (exit_dir) {+ case 0:+ if (!c_fall) c_up = 8;+ c_up = c_fall + c_up + sra(c_l) + sra(c_r);+ c_r = c_l = c_fall = 0;+ ny = ex_y - 4, nx = ex_x + c_off;+ break;+ case 1:+ if (!c_fall) c_l = 2;+ c_l = c_fall + c_up + c_l + c_r;+ c_r = c_up = c_fall = 0;+ nx = ex_x - 3, ny = ex_y + c_off * 2;+ break;+ case 2:+ c_fall = c_fall + c_up + sra(c_l) + sra(c_r);+ c_r = c_up = c_l = 0;+ ny = ex_y + 4, nx = ex_x + c_off;+ break;+ default:+ c_r = c_fall + c_up + c_l + c_r;+ c_l = c_up = c_fall = 0;+ nx = ex_x + 2, ny = ex_y + c_off * 2;+ break;+ }+ cube_erase();+ cx = nx, cy = ny;+ cube_draw();+ return true;+}+static void cube_portals(void) {+ if (b_y == 0xFF || o_y == 0xFF) return;+ ex_y = o_y, ex_x = o_x, en_y = b_y, en_x = b_x, exit_dir = o_dir;+ if (cube_enter(b_dir)) return;+ ex_y = b_y, ex_x = b_x, en_y = o_y, en_x = o_x, exit_dir = b_dir;+ cube_enter(o_dir);+}++static void cube_gravity(void) { /* CFEC */+ if (c_up >= 4) goto ground;+ c_air = 0xFF;+ if (!empty_tile(tile_at(cx, cy + 4)) || !empty_tile(tile_at(cx + 1, cy + 4))) goto ground;+ c_air = 0;+ if (c_fall != 0x3C) c_fall++;+ goto fric;+ground:+ c_fall = 0;+ if (c_l) c_l--;+ if (c_r) c_r--;+fric:+ if (!c_air) {+ if (c_fric != 2) c_fric++;+ else {+ if (c_l) c_l--;+ if (c_r) c_r--;+ c_fric = 0;+ }+ }+}++static void cube_vertical(void) { /* D0A8 */+ int b;+ if (c_up >= 1 && c_up <= 4) b = 0;+ else if (!c_up) b = steps(c_fall, 0x0D, 0x1B);+ else b = steps(c_up, 0x0D, 0x17);+ do {+ if (!b) {+ c_up--;+ return;+ }+ if (!c_up) {+ if (c_fall) cube_down();+ } else if (b == 1) c_up--;+ if (c_up) cube_upward();+ } while (--b);+}++static void cube_horizontal(void) { /* D12F */+ int b;+ if (c_r) b = steps(c_r, 0x0D, 0x14);+ else if (c_l) b = steps(c_l, 0x0D, 0x14);+ else return;+ do {+ if (c_l) cube_left();+ if (c_r) cube_right();+ } while (--b);+}++/* 2nd / OK when released: pick up or drop (AF86) */+static void grab(void) {+ if (grab_latch || !has_cube) return;+ grab_latch = has_cube;+ if (holding) { /* B060: drop, thrown forward */+ cy -= 4;+ c_l = spl < 2 && faceleft ? 0x0A : spl;+ c_r = spr_ < 2 && !faceleft ? 0x0A : spr_;+ c_up = up, c_fall = fall;+ holding = 0;+ return;+ }+ u8 x0 = px < 6 ? 0 : px - 6;+ if (!in_box(cx, cy, x0, (u8)(py - 8), px + 9, py + 20)) return;+ holding = 0xFF;+ cube_erase();+ redraw_at(cx, cy);+ cx = px + 1 + !faceleft;+ cy = py + 4;+ u8 t = tile_at(cx, cy + 1);+ if (t == T_EMPTY || t == T_FIZZ) return;+ for (int i = 0; i < 3; i++) {+ cx--;+ t = tile_at(cx + 1, cy);+ if (t == T_EMPTY || t == T_FIZZ) return;+ }+}++/* ------------------------------------------------------------ doors, buttons, fields */+/* A door opens or closes one frame out of four (C935 / C95B). */+static void door_open(u8 dcol, u8 drow, u8 *t, u8 *frame) {+ if (dcol == 0xFF) return;+ if (++*t != 4) return;+ *t = 0;+ if (*frame == 4) return;+ u8 a = (*frame)++ + 0x10;+ set_tile(dcol, drow, a == 0x13 ? T_EMPTY : a);+}+static void door_close(u8 dcol, u8 drow, u8 *t, u8 *frame) {+ if (dcol == 0xFF) return;+ if (++*t != 4) return;+ *t = 0;+ if (!*frame) return;+ u8 a = (*frame)-- + 0x0F;+ set_tile(dcol, drow, a);+}++static void buttons_step(void) { /* C872 */+ for (int i = 0; i < nbuttons; i++) {+ button_t *b = &buttons[i];+ u8 a;+ bool down = false;+ if (px + 4 >= b->x && (a = px + 4 - b->x) < 11) {+ a = (u8)(py + 10);+ if (a >= b->y && (u8)(a - b->y) < 12) down = true;+ }+ if (!down && has_cube && cx >= b->x && (u8)(cx - b->x) < 7) {+ a = (u8)(cy + 2);+ if (a >= b->y && (u8)(a - b->y) < 12) down = true;+ }+ if (down && b->on) {+ door_open(b->dcol, b->drow, &b->t, &b->frame);+ continue;+ }+ b->on = down;+ spr(down ? SP(0xE6FB) : SP(0xE6D9), b->x, b->y);+ if (has_cube && !depth) cube_draw();+ door_close(b->dcol, b->drow, &b->t, &b->frame);+ }+}++static void draw_buttons(void) { /* C843 */+ for (int i = 0; i < nbuttons; i++) spr(buttons[i].on ? SP(0xE6FB) : SP(0xE6D9), buttons[i].x, buttons[i].y);+}++static void erase_openings(void) { /* DB0C: an empty tile over each portal's mouth */+ const u8 *s = tile_sprite(T_EMPTY);+ for (int k = 0; k < 2; k++) {+ u8 y = k ? o_y : b_y, x = k ? o_x : b_x, dir = k ? o_dir : b_dir;+ if (y == 0xFF) continue;+ if (dir == 0) spr(s, x, (u8)(y - 16));+ else if (dir == 1) spr(s, (u8)(x - 8), y);+ else if (dir == 2) spr(s, x, y + 2);+ else spr(s, x + 1, y);+ }+}++static void clear_portals(void) {+ erase_portal(false);+ erase_portal(true);+ o_y = b_y = 0xFF;+}++static void fields_step(void) { /* C764 */+ for (int i = 0; i < nfields; i++) {+ field_t *f = &fields[i];+ u8 a;+ bool touch = false;+ if (!f->vert) {+ if (px + 4 >= f->x && (u8)(px + 4 - f->x) < 11) {+ a = (u8)(py + 9);+ touch = a >= f->y && (u8)(a - f->y) < 12;+ }+ } else {+ a = (u8)(py - 1);+ if (a >= f->y && (u8)(a - f->y) < 16) {+ a = (u8)(px - 1);+ touch = f->x >= a && (u8)(f->x - a) < 6;+ }+ }+ if (touch && !st_floor && !st_ceil) {+ if (!f->kind) dead = 0xFF;+ else {+ erase_openings();+ clear_portals();+ }+ }+ f->pad = f->vert;+ draw_with(f->vert ? SP(0xE72F) : SP(0xE71D), f->x, f->y, C_FIELD, f->kind ? pal[C_FIZZ] : pal[C_ELEC]);+ }+}++/* ------------------------------------------------------------ energy pellet */+static void pellet_erase(void) { spr(SP(0xE755), pel.x, pel.y); }+static void pellet_draw(void) { spr(SP(0xE741), pel.x, pel.y); }++/* LC988: true if the pellet bounces; receivers light up (or go out) */+static bool pellet_blocked(u8 d, u8 y) {+ u8 t = tile_at(d, y), col = (d & 0xFF) >> 3;+ if (t == T_RECV_OFF) {+ set_tile(col, last_row, T_RECV_ON);+ pel.on = 0xFF;+ if (pellet_vanish) {+ pellet_live = 0;+ pellet_erase();+ }+ return true;+ }+ if (t == T_RECV_ON) {+ set_tile(col, last_row, T_RECV_OFF);+ pel.on = 0;+ return true;+ }+ if (t == T_FIZZ) return false;+ return t != T_EMPTY;+}++static bool pellet_enter(u8 dir) { /* CB9D.. */+ u8 d = en_x, e = en_y, a, k;+ switch (dir) {+ case 0:+ if (pel.dir != 0) return false;+ if (pel.x < d || (a = pel.x - d) >= 7) return false;+ k = a;+ if ((u8)(pel.y + 4) != e) return false;+ break;+ case 3:+ if (pel.dir != 3) return false;+ if (pel.y < e || (a = pel.y - e) >= 14) return false;+ k = a >> 1;+ if (d != (u8)(pel.x - 1)) return false;+ break;+ case 2:+ if (pel.dir != 2) return false;+ if (pel.x < d || (a = pel.x - d) >= 7) return false;+ k = a;+ if (e != (u8)(pel.y - 2)) return false;+ break;+ default:+ if (pel.dir != 1) return false;+ if (pel.y < e || (a = pel.y - e) >= 14) return false;+ k = a >> 1;+ if ((u8)(pel.x + 3) != d) return false;+ break;+ }+ /* CC20: a pellet coming through while the player is in a portal kills */+ if (st_lwall || st_rwall || st_floor || st_ceil) dead = 0xFF;+ u8 nx, ny;+ if (exit_dir == 0) pel.dir = 2, ny = ex_y - 4, nx = ex_x + k;+ else if (exit_dir == 1) pel.dir = 3, nx = ex_x - 2, ny = ex_y + k * 2;+ else if (exit_dir == 2) pel.dir = 0, ny = ex_y + 2, nx = ex_x + k;+ else pel.dir = 1, nx = ex_x + 2, ny = ex_y + k * 2;+ pellet_erase();+ pel.y = ny, pel.x = nx;+ pellet_draw();+ return false;+}++static void pellet_moved(void) { /* CB31 */+ pellet_draw();+ if (b_y == 0xFF || o_y == 0xFF) return;+ ex_y = o_y, ex_x = o_x, en_y = b_y, en_x = b_x, exit_dir = o_dir;+ pellet_enter(b_dir);+ ex_y = b_y, ex_x = b_x, en_y = o_y, en_x = o_x, exit_dir = b_dir;+ pellet_enter(o_dir);+}++static void pellet_step(void) { /* C9E7 */+ if (!has_pellet) return;+ if (pellet_live && in_box(pel.x, pel.y, (u8)(px - 1), (u8)(py - 2), px + 5, py + 11)) dead = 0xFF;+ if (pel.dcol != 0xFF) {+ if (!pel.on) door_close(pel.dcol, pel.drow, &pel.t, &pel.frame);+ if (pel.on) door_open(pel.dcol, pel.drow, &pel.t, &pel.frame);+ }+ if (!pellet_live) return;+ switch (pel.dir) {+ case 0: /* down */+ if (pellet_blocked(pel.x, pel.y + 5) || pellet_blocked(pel.x + 1, pel.y + 5)) {+ pel.dir = 2;+ return;+ }+ pellet_erase();+ pel.y += 2;+ break;+ case 1: /* right */+ if (pellet_blocked(pel.x + 2, pel.y) || pellet_blocked(pel.x + 2, pel.y + 3)) {+ pel.dir = 3;+ return;+ }+ pellet_erase();+ pel.x++;+ break;+ case 2: /* up */+ if (pellet_blocked(pel.x, pel.y - 2) || pellet_blocked(pel.x + 1, pel.y - 2)) {+ pel.dir = 0;+ return;+ }+ pellet_erase();+ pel.y -= 2;+ break;+ default: /* left */+ if (pellet_blocked(pel.x - 1, pel.y) || pellet_blocked(pel.x - 1, pel.y + 3)) {+ pel.dir = 1;+ return;+ }+ pellet_erase();+ pel.x--;+ break;+ }+ pellet_moved();+}++/* ------------------------------------------------------------ hazards and death */+static void hazards(void) { /* C01B: doors crush, a fizzler grid takes the cube */+ u8 t = tile_at(px, py);+ if (t >= T_DOOR && t < T_FIZZ) {+ dead = 0xFF;+ return;+ }+ t = tile_at(px + 4, py + 9);+ if (t == T_FIZZ) {+ if (holding) cube_reset();+ return;+ }+ if (t >= T_DOOR && t < T_FIZZ) dead = 0xFF;+}++static u8 ctr_d, ctr_e;+static void particle(int dx, int dy) { /* DCC2 */+ u8 d = ctr_d + dx, e = ctr_e + dy;+ if (!empty_tile(tile_at(d, e)) || !empty_tile(tile_at(d, e + 1))) return;+ spr(dead_t < 10 ? SP(0xE1EF) : SP(0xE1F7), d, e);+}+static const s8 BURST[][2] = {+ /* DB8A */ {0, 0}, {0, -2}, {0, 2}, {-1, 0}, {1, 0},+ /* DBA5 */ {0, -4}, {0, 4}, {-2, 0}, {2, 0}, {1, -2}, {1, 2}, {-1, -2}, {-1, 2},+ /* DC03 */ {-1, 4}, {-1, -4}, {1, -4}, {1, 4}, {0, 6}, {0, -6}, {-3, 0}, {3, 0},+ /* DC4F */ {-2, -2}, {-2, 2}, {2, -2}, {2, 2},+ /* DC79 */ {-4, 0}, {4, 0}, {0, -8}, {0, 8}, {2, 4}, {-2, 4}, {2, -4}, {-2, -4},+};+static void death_anim(void) { /* D978 */+ static const u8 upto[5] = {5, 13, 21, 25, 33};+ if (dead_t >= 20) return;+ ctr_e = py + 4, ctr_d = px + 2;+ int stage = (dead_t % 10) >> 1;+ /* DBA5 starts with the DB8A pattern again: burst sizes are cumulative */+ for (int i = 0; i < upto[stage]; i++) particle(BURST[i][0], BURST[i][1]);+}++static void pellet_reset(void) {+ pellet_erase();+ has_pellet = 0xFF;+ pel.x = pel.x0, pel.y = pel.y0, pel.dir = pel_dir0;+ if (pel.dcol != 0xFF) set_tile(pel.dcol, pel.drow, T_DOOR);+}++static void reset_state(void) { /* ACC8 */+ anim_frame = up = fall = spr_ = spl = 0;+ c_up = c_fall = c_r = c_l = 0;+ swapped = faceleft = anim_sub = holding = cube_timer = 0;+ pel.on = pel.t = pel.frame = 0;+ dead = dead_t = 0;+ next_orange = 0;+ o_y = b_y = 0xFF;+ pellet_live = 0xFF;+ walking = 0xFF;+ pspr = SP(0xE23F);+}++static void respawn(void) { /* D9E2 */+ erase_openings();+ px = startx, py = starty;+ dead = dead_t = 0;+ clear_portals();+ pellet_live = 0xFF;+ if (has_pellet) pellet_reset();+ if (has_cube) cube_reset();+ for (int i = 0; i < 300; i++)+ if (map[i] == T_RECV_ON) set_tile(i % 20, i / 20, T_RECV_OFF);+ reset_state();+}++/* ------------------------------------------------------------ level loading */+/* LD3AC: 300 tiles, run-length coded, with objects mixed in. Returns the+ * data after the map. */+static const u8 *parse_map(const u8 *p) {+ int n = 0;+ has_pellet = 0, nfields = 0, nbuttons = 0, has_cube = 0;+ pel.dcol = 0xFF;+ while (n < 300) {+ u8 b = *p;+ int col = n % 20, row = n / 20;+ if (b >= 0x9B) { /* a run */+ u8 t = 0xFF - b, cnt = p[1];+ p += 2;+ while (cnt--) {+ col = n % 20, row = n / 20;+ if (t == 0x14 || (t >= 0x21 && t <= 0x23)) goto field_run;+ map[n++] = t;+ continue;+ field_run:+ if (nfields < 28) {+ field_t *f = &fields[nfields++];+ f->kind = t == 0x14 || t == 0x21;+ f->x = col * 8 + (t == 0x21 || t == 0x23 ? 4 : 0);+ f->y = row * 16 + (t == 0x14 || t == 0x22 ? 8 : 0);+ f->vert = t == 0x21 ? 1 : t == 0x23 ? 0xFF : 0;+ f->pad = 0;+ }+ map[n++] = t == 0x14 || t == 0x21 ? T_FIZZ : T_EMPTY;+ }+ continue;+ }+ p++;+ if (b >= 0x37 && b <= 0x39) map[n++] = b - 0x1B;+ else if (b == 0x24) { /* door opened by the pellet */+ pel.dcol = col, pel.drow = row, pel.on = 0;+ map[n++] = T_DOOR;+ } else if (b == 0x1B) { /* start */+ px = startx = col * 8;+ py = starty = row * 16 + 6;+ map[n++] = T_EMPTY;+ } else if (b == 0x1C) { /* cube dropper */+ if (!has_cube) has_cube = 0xFF, drop_x = col, drop_y = row;+ map[n++] = T_DROP;+ } else if (b >= 0x18 && b <= 0x1A) { /* pellet launcher */+ if (!has_pellet) {+ has_pellet = 0xFF;+ u8 x = col * 8, y = row * 16;+ if (b == 0x18) x += 3, y += 16;+ else if (b == 0x19) x -= 2, y += 6;+ else x += 8, y += 6;+ pel.x0 = pel.x = x, pel.y0 = pel.y = y;+ pel.on = pel.t = pel.frame = 0;+ }+ pel_dir0 = pel.dir = b == 0x18 ? 0 : b == 0x1A ? 1 : 3;+ map[n++] = b;+ } else if (b == 0x14 || (b >= 0x21 && b <= 0x23)) {+ if (nfields < 28) {+ field_t *f = &fields[nfields++];+ f->kind = b == 0x14 || b == 0x21;+ f->x = col * 8 + (b == 0x21 || b == 0x23 ? 4 : 0);+ f->y = row * 16 + (b == 0x14 || b == 0x22 ? 8 : 0);+ f->vert = b == 0x21 ? 1 : b == 0x23 ? 0xFF : 0;+ f->pad = 0;+ }+ map[n++] = b == 0x14 || b == 0x21 ? T_FIZZ : T_EMPTY;+ } else if (b >= 0x2A) { /* button; 0x34 and 0x36 hold two */+ int count = b == 0x34 || b == 0x36 ? 2 : 1;+ for (int k = 0; k < count; k++)+ if (nbuttons < 9) btn_pos[nbuttons][0] = col * 8, btn_pos[nbuttons][1] = row * 16 - 2, nbuttons++;+ map[n++] = b & 1 ? 4 : 2;+ } else if (b >= 0x25) map[n++] = T_DOOR;+ else map[n++] = b;+ }+ return p;+}++/* AB52..ACC4: the level after the text: map, buttons, cube, pellet */+static void load_level(const u8 *p) {+ p = parse_map(p);+ for (int i = 0; i < nbuttons; i++) {+ button_t *b = &buttons[i];+ b->flag = 0, b->x = btn_pos[i][0], b->y = btn_pos[i][1], b->on = 0;+ b->dcol = p[0], b->drow = p[1], b->t = b->frame = 0;+ p += 2;+ }+ if (has_cube) cx = drop_x * 8 + 3, cy = drop_y * 16 + 14;+ pellet_vanish = 0;+ if (has_pellet && *p != 0xAF) pellet_vanish = 0xFF, p++;+}++/* ------------------------------------------------------------ the frame */+/* ADEA: landing on spikes: they turn red and the player dies. The original+ * then carries on with a value left over from drawing the tile: twice+ * the last pixel's color index. */+static u8 spike(void) {+ set_tile(last_col, last_row, T_BLOODY);+ return (tile_sprite(T_BLOODY)[2 + 127] & 15) << 1;+}++static void ground(void) { /* AD88..AE9F */+ u8 t;+ if (up >= 4) goto grounded;+ walking = 0xFF;+ if (st_rwall == 0xFF || st_lwall == 0xFF) {+ if (off != 3) goto airborne;+ goto grounded;+ }+ if (st_floor == 0xFE) {+ walking = 0;+ if (!fall) fall = 3;+ goto friction_air;+ }+ if (st_floor == 0xFF) {+ walking = 0;+ goto friction_air;+ }+ t = tile_at(px, py + 10);+ if (t == T_SPIKE || t == T_BLOODY) t = dead = spike();+ if (t != T_FIZZ && t != T_EMPTY) goto grounded;+ t = tile_at(px + 4, py + 10);+ if (t != T_FIZZ) {+ if (t == T_SPIKE || t == T_BLOODY) t = dead = spike();+ if (t != T_EMPTY) goto grounded;+ }+airborne:+ walking = 0;+ if (fall != 0x3C) fall++;+ goto friction_air;+grounded:+ fall = 0;+ if (spl) spl--;+ if (spr_) spr_--;+friction_air:+ if (walking) return;+ if (friction != 2) friction++;+ else {+ if (spl) spl--;+ if (spr_) spr_--;+ friction = 0;+ }+}++static void redraw_level(void);++static void frame(void) {+ if (cube_timer != 0x14 && ++cube_timer == 0x14 && has_cube) set_tile(drop_x, drop_y, T_DROP);+ ground();+ hazards();+ pellet_step();+ buttons_step();+ fields_step();+ draw_hud();+ check_portals();+ if (k_fly) {+ if (fly_ok) up = 0x0C; /* after the ending: fly */+ } else if (k_grab) grab_latch = 0;+ else grab();+ if (dead) {+ dead_t++;+ if (dead_t == 0x1D) {+ respawn();+ return;+ }+ death_anim();+ holding = 0;+ } else {+ if (k_arrows & 8) jump();+ if (k_arrows & 4) press_right();+ if (k_arrows & 2) press_left();+ vertical();+ if (left_game) return;+ horizontal();+ if (left_game) return;+ }+ if (has_cube && !holding) {+ cube_portals();+ cube_gravity();+ cube_vertical();+ cube_horizontal();+ }+ if (dead || depth || st_ceil == 0xFF) return;+ draw_player();+}++/* ------------------------------------------------------------ screens */+static void floor_row(void) { /* D8B3: a floor under the text */+ for (int c = 0; c < 20; c++) tile_draw(3, c, 14);+}+static void clear_top(void) { fill(0, 0, 320, 224, screen_bg); }++/* Typed out like the original (about 22 ms a letter; Alpha, OK or EXE+ * speed it up). Returns false if Back was pressed. */+static bool type_lines(const u8 **pp, int n) {+ const u8 *p = *pp;+ bool fast = false;+ for (int i = 0; i < n; i++) {+ int x = 6, y = 0x12 + 0x12 * i;+ while (*p) {+ glyph(*p++, x, y);+ x += 5;+ if (!fast) {+ uint64_t until = eadk_timing_millis() + 22;+ while (eadk_timing_millis() < until) {+ scan_keys();+ if (key_down(eadk_key_alpha) || key_down(eadk_key_ok) || key_down(eadk_key_exe)) fast = true;+ if (key_down(eadk_key_back)) return false;+ eadk_timing_msleep(1);+ }+ }+ }+ p++;+ }+ *pp = p;+ flush_keys();+ return true;+}++/* waits for OK / EXE (true) or Back (false) */+static bool wait_continue(void) {+ for (;;) {+ int k = wait_key();+ if (k == eadk_key_ok || k == eadk_key_exe) return true;+ if (k == eadk_key_back) return false;+ }+}++static void scroll_in(void) { /* DDC0 */+#ifdef PERF+ uint32_t s0 = (uint32_t)eadk_timing_millis();+#endif+ for (int c = 0; c < 20; c++) {+ uint64_t t0 = eadk_timing_millis();+ /* The original moves the screen 16 px left and draws column c at the+ * right edge. What is left of the new columns is the blank screen and+ * the floor row, which a 16 px shift does not change, so drawing the+ * new columns in their shifted places gives the same picture without+ * reading the screen back. */+ for (int j = 0; j <= c; j++)+ for (int r = 0; r < 15; r++) tile_draw(map[r * 20 + j], 19 - c + j, r);+#ifdef PERF+ number((uint32_t)eadk_timing_millis() - t0, 1, 30);+#endif+ while (eadk_timing_millis() - t0 < 30) eadk_timing_msleep(1); /* 30 ms a column, as on the TI */+ scan_keys(); /* Home still quits */+ }+#ifdef PERF+ number((uint32_t)eadk_timing_millis() - s0, 1, 40);+#endif+}++static void redraw_level(void) { /* after the pause menu */+ for (int i = 0; i < 300; i++) tile_draw(map[i], i % 20, i / 20);+ draw_buttons();+ for (int i = 0; i < nfields; i++)+ draw_with(fields[i].vert ? SP(0xE72F) : SP(0xE71D), fields[i].x, fields[i].y, C_FIELD, fields[i].kind ? pal[C_FIZZ] : pal[C_ELEC]);+ if (has_cube && !holding) cube_draw();+ if (has_pellet && pellet_live) pellet_draw();+ draw_hud();+ draw_player();+}++static const char *const ENDING[] = {+ "HELLO?", "ARE YOU STILL THERE?", "WHERE DID YOU GO?", "", "I GUESS YOU MADE IT THROUGH.",+ "FINE, IF YOU WANT TO LEAVE,", "I GUESS I GET ALL THIS", "CAKE TO MYSELF.", "", "GOODBYE.", "PRESS SHIFT TO FLY"};++static void ending(void) { /* D876 */+ clear_top();+ floor_row();+ static u8 buf[400];+ u8 *o = buf;+ int n = 0;+ for (unsigned i = 0; i < sizeof ENDING / sizeof *ENDING; i++, n++) {+ for (const char *c = ENDING[i]; *c; c++) *o++ = *c;+ *o++ = 0;+ }+ const u8 *p = buf;+ type_lines(&p, n);+ wait_continue();+}++/* ------------------------------------------------------------ playing */+static u8 k_back;++void read_keys(void) {+ scan_keys();+ k_arrows = (key_down(eadk_key_down) ? 1 : 0) | (key_down(eadk_key_left) ? 2 : 0) | (key_down(eadk_key_right) ? 4 : 0) |+ (key_down(eadk_key_up) ? 8 : 0);+ grp5 = (key_down(eadk_key_three) ? 2 : 0) | (key_down(eadk_key_six) ? 4 : 0) | (key_down(eadk_key_nine) ? 8 : 0);+ grp4 = (key_down(eadk_key_two) ? 2 : 0) | (key_down(eadk_key_five) ? 4 : 0) | (key_down(eadk_key_eight) ? 8 : 0);+ grp3 = (key_down(eadk_key_one) ? 2 : 0) | (key_down(eadk_key_four) ? 4 : 0) | (key_down(eadk_key_seven) ? 8 : 0);+ k_grab = key_down(eadk_key_ok) || key_down(eadk_key_exe);+ k_fly = key_down(eadk_key_shift);+ static bool back_was = true; /* Back opens the menu when pressed, not while held */+ bool b = key_down(eadk_key_back);+ k_back = b && !back_was;+ back_was = b;+#ifdef CHEAT /* testing: 0 jumps next to the exit */+ if (key_down(eadk_key_zero)) left_game = true;+#endif+}++static void level_exit(void) { left_game = true; }++int top_tile(int col) { return map[col]; }++/* ------------------------------------------------------------ hints */+static void restore_top(void) { /* what the sign covered */+ for (int i = 0; i < 20; i++) tile_draw(map[i], i, 0);+ draw_buttons();+ if (has_cube && !holding && cy < 16) cube_draw();+ if (has_pellet && pellet_live && pel.y < 16) pellet_draw();+ draw_portals();+ if (!dead && !depth) draw_player();+}++static void level_hints(void) {+ hint(HINT_MOVE), hint(HINT_FIRE); /* the first chamber played */+ if (has_cube) hint(HINT_CUBE);+ if (nbuttons) hint(HINT_BUTTON);+ bool fizz = false, zap = false, spikes = false;+ for (int i = 0; i < nfields; i++) fields[i].kind ? (fizz = true) : (zap = true);+ for (int i = 0; i < 300; i++) spikes |= map[i] == T_SPIKE;+ if (fizz) hint(HINT_FIZZLER);+ if (zap) hint(HINT_FIELD);+ if (spikes) hint(HINT_SPIKES);+ if (has_pellet) hint(HINT_PELLET);+}++/* Plays from level n; returns when the player goes back to the title. */+void play(int pack, int n) {+ cur_pack = pack;+ fly_ok = pack == 0 && (save.flags & 1);+ for (;;) {+ cur_level = n;+ level_started(pack, n);+ const u8 *p = level_ptr(pack, n);+ jumpv = p[1];+ int lines = p[2];+ p += 3;+ clear_top();+ floor_row();+ if (lines) {+ if (!type_lines(&p, lines)) return;+ if (!wait_continue()) return;+ clear_top();+ }+ load_level(p);+ scroll_in();+ reset_state();+ left_game = false;+ level_hints();+ /* the original's pace: about 21 ms a frame, a bit more with many fields */+ uint32_t period = 2110 + 10 * nfields;+ uint64_t next = eadk_timing_millis() * 100; /* 64 bits: never wraps */+ bool restart = false;+ while (!left_game) {+ uint64_t now;+ while ((now = eadk_timing_millis() * 100) < next) {+ scan_keys(); /* Home still quits */+ eadk_timing_msleep(1);+ }+ next += period;+ if (now > next + 10000) next = now; /* after a pause, don't rush */+ read_keys();+ if (k_back) {+ hint_hide();+ int r = pause_menu();+ if (r == 1) return; /* quit to the title */+ if (r == 2) { /* restart the level */+ restart = true;+ break;+ }+ redraw_level();+ hint_show();+ next = eadk_timing_millis() * 100;+ continue;+ }+#ifdef PERF+ uint32_t t0 = (uint32_t)eadk_timing_millis();+#endif+ frame();+ if (!left_game) hint_tick(restore_top);+#ifdef PERF+ static uint32_t worst;+ uint32_t dt = (uint32_t)eadk_timing_millis() - t0;+ if (dt > worst) worst = dt;+ number(worst, 1, 1);+ number(dt, 1, 11);+#endif+ }+ hints_clear();+ if (restart) continue;+ /* level complete */+ level_done(pack, n);+ if (n >= pack_levels(pack)) {+ if (pack == 0) {+ ending();+ fly_ok = true;+ }+ return;+ }+ n++;+ }+}++#ifdef PORTAL_TEST+/* For test/host.c: run chambers frame by frame against recorded inputs. */+void test_load(int pack, int n) {+ save.scheme = 1;+ apply_scheme();+ cur_pack = pack, cur_level = n;+ const u8 *p = level_ptr(pack, n);+ jumpv = p[1];+ int lines = p[2];+ p += 3;+ while (lines--) {+ while (*p) p++;+ p++;+ }+ load_level(p);+ for (int i = 0; i < 300; i++) tile_draw(map[i], i % 20, i / 20);+ reset_state();+ left_game = false;+}+/* keys: bits 0-3 arrows (down left right up), 4 grab, 5 fly, 8.. digits 1-9 */+int test_frame(u32 keys) {+ k_arrows = keys & 15;+ k_grab = keys >> 4 & 1;+ k_fly = keys >> 5 & 1;+ if (keys >> 6 & 1) px = 0x9A, spr_ = 1;+ u8 d[10];+ for (int i = 1; i <= 9; i++) d[i] = keys >> (7 + i) & 1;+ grp5 = d[3] << 1 | d[6] << 2 | d[9] << 3;+ grp4 = d[2] << 1 | d[5] << 2 | d[8] << 3;+ grp3 = d[1] << 1 | d[4] << 2 | d[7] << 3;+ frame();+ return left_game;+}+void test_state(u8 *o) {+ u8 v[] = {px, py, up, fall, spl, spr_, dead, dead_t, o_y, o_x, b_y, b_x, cx, cy, holding, depth, pel.x, pel.y, next_orange, walking};+ for (unsigned i = 0; i < sizeof v; i++) o[i] = v[i];+}+#endifdiff --git a/games/portal/src/gfx.c b/games/portal/src/gfx.cnew file mode 100644index 00000000..283e14f9--- /dev/null+++ b/games/portal/src/gfx.c@@ -0,0 +1,126 @@+/* Drawing, the same way the original does it: opaque sprites and 8x8+ * characters written straight to the screen, x on even pixels. */+#include "portal.h"+#include "assets.h"+#include "inflate.h"++/* the art and levels, unpacked at start */+uint8_t assets[ASSETS_SIZE];+void assets_init(void) { inflate_raw(ASSETS_Z, sizeof ASSETS_Z, assets, ASSETS_SIZE); }++u16 pal[16];+u16 text_fg, text_bg, screen_bg;+static u16 buf[320];++/* While a hint sign is up, nothing is drawn over it: rows SIGN_Y0 to+ * SIGN_Y1 - 1 between clip_x0 and clip_x1 are skipped. */+enum { SIGN_Y0 = 1, SIGN_Y1 = 15 };+static int clip_x0, clip_x1;+void sign_clip(int x0, int x1) { clip_x0 = x0, clip_x1 = x1; }++/* p == NULL: a uniform fill of color c */+static void out(int x, int y, int w, int h, const u16 *p, u16 c) {+ eadk_rect_t r = {x, y, w, h};+ if (p) eadk_display_push_rect(r, p);+ else eadk_display_push_rect_uniform(r, c);+}++static void push_c(int x, int y, int w, int h, const u16 *p, u16 c) {+ if (clip_x1 <= clip_x0 || y >= SIGN_Y1 || y + h <= SIGN_Y0 || x >= clip_x1 || x + w <= clip_x0) {+ out(x, y, w, h, p, c);+ return;+ }+ for (int j = 0; j < h; j++) { /* row by row around the sign */+ int yy = y + j;+ const u16 *q = p ? p + j * w : 0;+ if (yy < SIGN_Y0 || yy >= SIGN_Y1) {+ out(x, yy, w, 1, q, c);+ continue;+ }+ if (x < clip_x0) out(x, yy, clip_x0 - x, 1, q, c);+ if (x + w > clip_x1) out(clip_x1, yy, x + w - clip_x1, 1, q ? q + (clip_x1 - x) : 0, c);+ }+}++static void push(int x, int y, int w, int h, const u16 *p) { push_c(x, y, w, h, p, 0); }++void fill(int x, int y, int w, int h, u16 c) {+ if (x < 0) w += x, x = 0;+ if (y < 0) h += y, y = 0;+ if (x + w > 320) w = 320 - x;+ if (y + h > 240) h = 240 - y;+ if (w > 0 && h > 0) push_c(x, y, w, h, 0, c);+}++void cls(void) { fill(0, 0, 320, 240, screen_bg); }++/* 4 bpp sprite: (height, bytes per row) then rows, left pixel in the high+ * nibble. Clipped to the screen (the original never needs it). */+void spr(const u8 *s, int x2, int y) {+ int h = s[0], wb = s[1], w = wb * 2, x = x2 * 2;+ const u8 *d = s + 2;+ if (x >= 320 || y >= 240 || x + w <= 0) return;+ for (int j = 0; j < h; j++, d += wb) {+ int yy = y + j;+ if (yy < 0) continue;+ if (yy >= 240) break;+ u16 *o = buf;+ for (int i = 0; i < wb; i++) {+ *o++ = pal[d[i] >> 4];+ *o++ = pal[d[i] & 15];+ }+ int x0 = x, n = w, skip = 0;+ if (x0 < 0) skip = -x0, n += x0, x0 = 0;+ if (x0 + n > 320) n = 320 - x0;+ push(x0, yy, n, 1, buf + skip);+ }+}++const u8 *tile_sprite(int t) {+ if (t < 1 || t > 31) t = 2;+ return TILES + (t - 1) * TILE_BYTES;+}++/* A 16x16 tile in one transfer. */+void tile_draw(int t, int col, int row) {+ static u16 tb[256];+ const u8 *d = tile_sprite(t) + 2;+ for (int i = 0; i < 128; i++) {+ tb[2 * i] = pal[d[i] >> 4];+ tb[2 * i + 1] = pal[d[i] & 15];+ }+ push(col * 16, row * 16, 16, 16, tb);+}++/* 1 bpp picture (title art): set bits in the text color. */+void spr1(const u8 *s, int x2, int y) {+ int h = s[0], wb = s[1];+ const u8 *d = s + 2;+ for (int j = 0; j < h; j++, d += wb) {+ for (int i = 0; i < wb * 8; i++) buf[i] = d[i >> 3] >> (7 - (i & 7)) & 1 ? text_fg : text_bg;+ push(x2 * 2, y + j, wb * 8, 1, buf);+ }+}++void glyph(char c, int x2, int y) {+ static u16 gb[64];+ int i = (u8)c - 0x20;+ if (i < 0 || i >= FONT_CHARS) i = 0;+ const u8 *g = FONT + i * 8;+ for (int j = 0; j < 64; j++) gb[j] = g[j >> 3] >> (7 - (j & 7)) & 1 ? text_fg : text_bg;+ push(x2 * 2, y, 8, 8, gb);+}++/* Characters every 10 pixels (5 units), like the original. */+int text(const char *s, int x2, int y) {+ for (; *s; s++, x2 += 5) glyph(*s, x2, y);+ return x2;+}++int number(int v, int x2, int y) {+ char t[6];+ int n = 0;+ do t[n++] = '0' + v % 10; while (v /= 10);+ while (n) glyph(t[--n], x2, y), x2 += 5;+ return x2;+}diff --git a/games/portal/src/icon.png b/games/portal/src/icon.pngnew file mode 100644index 00000000..8d04ad26Binary files /dev/null and b/games/portal/src/icon.png differdiff --git a/games/portal/src/inflate.c b/games/portal/src/inflate.cnew file mode 100644index 00000000..1e6a299f--- /dev/null+++ b/games/portal/src/inflate.c@@ -0,0 +1,157 @@+/* Minimal raw DEFLATE (RFC 1951) decoder, one-shot into a caller buffer. */+#include "inflate.h"++typedef struct {+ const uint8_t *src, *end;+ uint32_t bits;+ int nbits;+ uint8_t *out, *out_end, *out_start;+} St;++typedef struct {+ uint16_t count[16];+ uint16_t sym[288];+} Huff;++static int getbit(St *s) {+ if (!s->nbits) {+ s->bits = s->src < s->end ? *s->src++ : 0;+ s->nbits = 8;+ }+ int b = s->bits & 1;+ s->bits >>= 1;+ s->nbits--;+ return b;+}++static uint32_t getbits(St *s, int n) {+ uint32_t v = 0;+ for (int i = 0; i < n; i++) v |= (uint32_t)getbit(s) << i;+ return v;+}++static void build(Huff *h, const uint8_t *len, int n) {+ uint16_t offs[16];+ for (int i = 0; i < 16; i++) h->count[i] = 0;+ for (int i = 0; i < n; i++) h->count[len[i]]++;+ h->count[0] = 0;+ offs[1] = 0;+ for (int i = 1; i < 15; i++) offs[i + 1] = offs[i] + h->count[i];+ for (int i = 0; i < n; i++)+ if (len[i]) h->sym[offs[len[i]]++] = i;+}++static int decode(St *s, const Huff *h) {+ int code = 0, first = 0, index = 0;+ for (int l = 1; l < 16; l++) {+ code |= getbit(s);+ int c = h->count[l];+ if (code - c < first) return h->sym[index + (code - first)];+ index += c;+ first += c;+ first <<= 1;+ code <<= 1;+ }+ return -1;+}++static const uint16_t lbase[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,+ 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258};+static const uint8_t lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,+ 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0};+static const uint16_t dbase[30] = {1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129,+ 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097,+ 6145, 8193, 12289, 16385, 24577};+static const uint8_t dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,+ 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13};++static int block(St *s, const Huff *lh, const Huff *dh) {+ for (;;) {+ int sym = decode(s, lh);+ if (sym < 0) return -1;+ if (sym < 256) {+ if (s->out >= s->out_end) return -1;+ *s->out++ = sym;+ } else if (sym == 256) {+ return 0;+ } else {+ sym -= 257;+ if (sym >= 29) return -1;+ int len = lbase[sym] + getbits(s, lext[sym]);+ int ds = decode(s, dh);+ if (ds < 0 || ds >= 30) return -1;+ int dist = dbase[ds] + getbits(s, dext[ds]);+ if (dist > s->out - s->out_start || s->out + len > s->out_end) return -1;+ uint8_t *p = s->out - dist;+ while (len--) *s->out++ = *p++;+ }+ }+}++int inflate_raw(const uint8_t *src, uint32_t srclen, uint8_t *dst, uint32_t dstlen) {+ St s;+ Huff lh, dh;+ uint8_t lens[320];+ s.src = src;+ s.end = src + srclen;+ s.nbits = 0;+ s.bits = 0;+ s.out = s.out_start = dst;+ s.out_end = dst + dstlen;+ int last;+ do {+ last = getbit(&s);+ int type = getbits(&s, 2);+ if (type == 0) {+ s.nbits = 0;+ if (s.src + 4 > s.end) return -1;+ uint16_t len = s.src[0] | s.src[1] << 8;+ s.src += 4;+ if (s.src + len > s.end || s.out + len > s.out_end) return -1;+ while (len--) *s.out++ = *s.src++;+ } else if (type == 1) {+ int i = 0;+ for (; i < 144; i++) lens[i] = 8;+ for (; i < 256; i++) lens[i] = 9;+ for (; i < 280; i++) lens[i] = 7;+ for (; i < 288; i++) lens[i] = 8;+ build(&lh, lens, 288);+ for (i = 0; i < 30; i++) lens[i] = 5;+ build(&dh, lens, 30);+ if (block(&s, &lh, &dh)) return -1;+ } else if (type == 2) {+ static const uint8_t ord[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};+ int nlen = getbits(&s, 5) + 257, ndist = getbits(&s, 5) + 1, ncode = getbits(&s, 4) + 4;+ uint8_t cl[19] = {0};+ for (int i = 0; i < ncode; i++) cl[ord[i]] = getbits(&s, 3);+ build(&lh, cl, 19);+ int i = 0;+ while (i < nlen + ndist) {+ int sym = decode(&s, &lh);+ if (sym < 0) return -1;+ if (sym < 16) {+ lens[i++] = sym;+ } else {+ int rep, val = 0;+ if (sym == 16) {+ if (!i) return -1;+ val = lens[i - 1];+ rep = 3 + getbits(&s, 2);+ } else if (sym == 17) {+ rep = 3 + getbits(&s, 3);+ } else {+ rep = 11 + getbits(&s, 7);+ }+ if (i + rep > nlen + ndist) return -1;+ while (rep--) lens[i++] = val;+ }+ }+ build(&lh, lens, nlen);+ build(&dh, lens + nlen, ndist);+ if (block(&s, &lh, &dh)) return -1;+ } else {+ return -1;+ }+ } while (!last);+ return (int)(s.out - s.out_start);+}diff --git a/games/portal/src/inflate.h b/games/portal/src/inflate.hnew file mode 100644index 00000000..a5179b7a--- /dev/null+++ b/games/portal/src/inflate.h@@ -0,0 +1,8 @@+#ifndef INFLATE_H+#define INFLATE_H+#include <stdint.h>++/* Decode a raw DEFLATE stream. Returns the number of bytes written, or -1 on error. */+int inflate_raw(const uint8_t *src, uint32_t srclen, uint8_t *dst, uint32_t dstlen);++#endifdiff --git a/games/portal/src/libc.c b/games/portal/src/libc.cnew file mode 100644index 00000000..e9ee8a9d--- /dev/null+++ b/games/portal/src/libc.c@@ -0,0 +1,38 @@+/* Minimal replacements for the few libc routines the app needs: much+ * smaller than newlib's speed-optimized versions. */+#include <stddef.h>++#define EXPORT __attribute__((used, externally_visible))++EXPORT void *memcpy(void *d, const void *s, size_t n) {+ char *o = d;+ const char *i = s;+ while (n--) *o++ = *i++;+ return d;+}++EXPORT void *memmove(void *d, const void *s, size_t n) {+ char *o = d;+ const char *i = s;+ if (o < i) return memcpy(d, s, n);+ while (n--) o[n] = i[n];+ return d;+}++EXPORT void *memset(void *d, int c, size_t n) {+ char *o = d;+ while (n--) *o++ = c;+ return d;+}++EXPORT size_t strlen(const char *s) {+ const char *e = s;+ while (*e) e++;+ return e - s;+}++EXPORT char *strcpy(char *d, const char *s) {+ char *o = d;+ while ((*o++ = *s++)) {}+ return d;+}diff --git a/games/portal/src/main.c b/games/portal/src/main.cnew file mode 100644index 00000000..e87fc179--- /dev/null+++ b/games/portal/src/main.c@@ -0,0 +1,506 @@+/* Portal Returns for NumWorks: title screen, menus, help, saving. */+#include <string.h>+#include "../../common/epsilon_app.h"+#include "../../common/epsilon_files.h"+#include "../../common/jump.h"+#include "portal.h"+#include "assets.h"++#ifdef __ELF__ /* app name and API level, for the calculator's installer */+const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name"))) = "Portal";+const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level"))) = 0;+#endif++#define SPT(a) (S_E1C7 + ((a) - 0xE1C7))++save_t save;+static np_jump_t leave;++/* ------------------------------------------------------------ input */+static uint64_t keys;+bool key_down(int k) { return keys >> k & 1; }++void scan_keys(void) {+ keys = eadk_keyboard_scan();+ if (key_down(eadk_key_home) || key_down(eadk_key_on_off)) np_jump(leave);+}++/* Menus read the keyboard too (rather than the event queue), so a key+ * that is still down from before never counts as a new press. Arrows+ * repeat when held. */+static uint64_t prev_keys = ~(uint64_t)0;+static int rep = -1;+static uint64_t rep_at;++void flush_keys(void) {+ scan_keys();+ prev_keys = keys;+ rep = -1;+}++/* back in a chamber: wait until OK, EXE and Back are up, so the key that+ * closed a menu does not also grab a cube or open the menu again */+static void release_keys(void) {+ for (;;) {+ scan_keys();+ if (!key_down(eadk_key_ok) && !key_down(eadk_key_exe) && !key_down(eadk_key_back)) return;+ eadk_timing_msleep(5);+ }+}++int wait_key(void) {+ for (;;) {+ scan_keys();+ uint64_t now = eadk_timing_millis(), fresh = keys & ~prev_keys;+ prev_keys = keys;+ if (fresh) {+ uint32_t lo = (uint32_t)fresh; /* 32-bit ctz: no libgcc helper in the module */+ int k = lo ? __builtin_ctz(lo) : 32 + __builtin_ctz((uint32_t)(fresh >> 32));+ rep = k <= eadk_key_right ? k : -1;+ rep_at = now + 350;+ return k;+ }+ if (rep >= 0 && key_down(rep) && now >= rep_at) {+ rep_at = now + 70;+ return rep;+ }+ if (rep >= 0 && !key_down(rep)) rep = -1;+ eadk_timing_msleep(10);+ }+}++/* ------------------------------------------------------------ saving */+static const char SAVE_NAME[] = "portal.sav";++static u8 checksum(const save_t *s) {+ const u8 *p = (const u8 *)s;+ u8 c = 0x5A;+ for (unsigned i = 0; i < sizeof *s - 1; i++) c = (u8)(c * 31 + p[i]);+ return c;+}++void save_write(void) {+ save.magic = 'P', save.version = 1;+ save.sum = checksum(&save);+ ef_write(SAVE_NAME, &save, sizeof save);+}++static void save_load(void) {+ memset(&save, 0, sizeof save);+ save.unlocked[0] = save.unlocked[1] = 1;+ save.level[0] = save.level[1] = 1;+ save.scheme = 1;+ uint32_t n;+ const u8 *p = ef_read(SAVE_NAME, &n);+ if (!p || n != sizeof save) return;+ save_t s;+ memcpy(&s, p, sizeof s);+ if (s.magic != 'P' || s.version != 1 || s.sum != checksum(&s)) return;+ for (int k = 0; k < 2; k++) {+ int max = pack_levels(k);+ if (s.unlocked[k] < 1 || s.unlocked[k] > max) s.unlocked[k] = 1;+ if (s.level[k] < 1 || s.level[k] > s.unlocked[k]) s.level[k] = s.unlocked[k];+ }+ if (s.scheme > 3) s.scheme = 1;+ if (s.pack > 1) s.pack = 0;+ save = s;+}++void quit_now(void) { np_jump(leave); }++static int quit(void) {+ save_write();+ return np_app_end();+}++static bool is_done(int pack, int n) { return save.done[pack][(n - 1) >> 3] >> ((n - 1) & 7) & 1; }++void level_started(int pack, int n) {+ save.pack = pack;+ save.level[pack] = n;+ if (n > save.unlocked[pack]) save.unlocked[pack] = n;+ save_write();+}++void level_done(int pack, int n) {+ save.done[pack][(n - 1) >> 3] |= 1 << ((n - 1) & 7);+ if (n < pack_levels(pack)) {+ if (n + 1 > save.unlocked[pack]) save.unlocked[pack] = n + 1;+ save.level[pack] = n + 1;+ } else if (pack == 0) save.flags |= 1;+ save_write();+}++/* ------------------------------------------------------------ colors */+/* The four color schemes of the original (COLOR on the title screen). */+void apply_scheme(void) {+ memcpy(pal, PAL_DEFAULT, sizeof pal);+ pal[0] = pal[1] = 0; /* scheme 0 keeps the table's black */+ static const u8 bg[4] = {0xFF, 0x4A, 0x6B, 0x00};+ u8 b = bg[save.scheme], f = save.scheme ? 0xFF : 0x00;+ if (save.scheme) pal[0] = pal[1] = 0xFFFF;+ pal[2] = b << 8 | b;+ text_fg = f << 8 | f;+ text_bg = screen_bg = pal[2];+}++/* ------------------------------------------------------------ title */+static void title_art(void) { /* EC34 */+ cls();+ text("P", 0x1D, 0x29);+ spr(S_DD13, 0x22, 0x25);+ text("RTAL", 0x2B, 0x29);+ text("RETURNS", 0x47, 0x29);+ spr1(TITLE_PIC0, 0x70, 0x1F);+ spr1(TITLE_PIC1, 0x1D, 0xA1);+ spr1(TITLE_PIC2, 0x48, 0xA1);+ spr1(TITLE_PIC3, 0x73, 0xA1);+}++static void item(const char *s, int row, bool on) {+ u16 f = text_fg;+ if (on) text_fg = pal[C_BLUE];+ text(s, 0x1D, 0x42 + 0x18 * row);+ text_fg = f;+}++/* "<12>": the selector (the number lights up), a star once that chamber is done */+static void selector(int x2, int y, int n, bool on, bool done) {+ u16 f = text_fg;+ fill(x2 * 2, y, 70, 8, screen_bg);+ x2 = text("<", x2, y);+ if (on) text_fg = pal[C_BLUE];+ x2 = number(n, x2, y);+ text_fg = f;+ x2 = text(">", x2, y);+ if (done) { /* a check mark in the font's style */+ static const u8 check[8] = {0x00, 0x03, 0x03, 0x06, 0xC6, 0x6C, 0x38, 0x10};+ static u16 px[64];+ for (int i = 0; i < 64; i++) px[i] = check[i >> 3] >> (7 - (i & 7)) & 1 ? pal[C_ORANGE] : screen_bg;+ eadk_display_push_rect((eadk_rect_t){x2 * 2 + 2, y, 8, 8}, px);+ }+}++static void menu_redraw(const char *const *items, int n, int sel) {+ for (int i = 0; i < n; i++) item(items[i], i, i == sel);+}++static void progress_line(int pack) {+ int done = 0, total = pack_levels(pack);+ for (int i = 1; i <= total; i++) done += is_done(pack, i);+ char s[24], *o = s;+ if (done >= 10) *o++ = '0' + done / 10;+ *o++ = '0' + done % 10;+ *o++ = '/';+ *o++ = '0' + total / 10, *o++ = '0' + total % 10;+ strcpy(o, " COMPLETE");+ fill(0, 212, 320, 8, screen_bg);+ int len = (int)strlen(s);+ text(s, (160 - len * 5) / 2, 212);+}++static void help(void);+static void credits(void);++/* The Prelude chambers (the original's CUSTOM level packs) */+static void custom_menu(void) {+ title_art();+ int redraw = 1;+ bool armed = false; /* 5 pressed once: the next 5 resets */+ for (;;) {+ if (redraw) {+ item("PRELUDE", 0, true);+ selector(0x47, 0x42, save.level[1], true, is_done(1, save.level[1]));+ fill(0x1D * 2, 0x8A, 320 - 0x1D * 2, 8, screen_bg);+ text(armed ? "PRESS 5 AGAIN TO RESET" : "PRESS 5 TO RESET", 0x1D, 0x8A);+ progress_line(1);+ }+ redraw = 1;+ int k = wait_key();+ bool was = armed;+ armed = false;+ if (k == eadk_key_left && save.level[1] > 1) save.level[1]--;+ else if (k == eadk_key_right && save.level[1] < save.unlocked[1]) save.level[1]++;+ else if (k == eadk_key_five) {+ if (!was) armed = true;+ else {+ save.unlocked[1] = save.level[1] = 1;+ memset(save.done[1], 0, sizeof save.done[1]);+ save_write();+ }+ } else if (k == eadk_key_ok || k == eadk_key_exe) {+ play(1, save.level[1]);+ return;+ } else if (k == eadk_key_back) return;+ else redraw = was;+ }+}++static void title(void) {+ static const char *const items[] = {"LEVEL ", "CUSTOM", "COLOR", "HELP"};+ int sel = 0;+ for (;;) {+ flush_keys(); /* keys still down from a chamber or a page are not presses */+ apply_scheme();+ title_art();+ int redraw = 1;+ for (;;) {+ if (redraw) {+ menu_redraw(items, 4, sel);+ selector(0x47, 0x42, save.level[0], sel == 0, is_done(0, save.level[0]));+ progress_line(0);+ }+ redraw = 1;+ int k = wait_key();+ if (k == eadk_key_up && sel > 0) sel--;+ else if (k == eadk_key_down && sel < 3) sel++;+ else if (k == eadk_key_left && sel == 0 && save.level[0] > 1) save.level[0]--;+ else if (k == eadk_key_right && sel == 0 && save.level[0] < save.unlocked[0]) save.level[0]++;+ else if (k == eadk_key_ok || k == eadk_key_exe) {+ if (sel == 0) play(0, save.level[0]);+ else if (sel == 1) custom_menu();+ else if (sel == 2) {+ save.scheme = (save.scheme + 1) & 3;+ save_write();+ sel = 0; /* like the original: back on LEVEL */+ } else help();+ break;+ } else if (k == eadk_key_two) {+ credits();+ break;+ } else if (k == eadk_key_back) np_jump(leave);+ else redraw = 0;+ }+ }+}++/* ------------------------------------------------------------ pause */+/* EB1D: the title art with RETURN / RESTART / QUIT.+ * Returns 0 to go on, 1 to quit to the title, 2 to restart the level. */+int pause_menu(void) {+ static const char *const items[] = {"RETURN", "RESTART", "QUIT"};+ save_write();+ flush_keys(); /* the Back that opened the menu is not a press in it */+ title_art();+ int sel = 0, r;+ for (;;) {+ menu_redraw(items, 3, sel);+ int k = wait_key();+ if (k == eadk_key_up && sel > 0) sel--;+ else if (k == eadk_key_down && sel < 2) sel++;+ else if (k == eadk_key_ok || k == eadk_key_exe) {+ r = sel == 0 ? 0 : sel == 1 ? 2 : 1;+ break;+ } else if (k == eadk_key_back) {+ r = 0;+ break;+ }+ }+ if (r != 1) release_keys();+ return r;+}++/* ------------------------------------------------------------ help and credits */+static void page_wait(void) {+ for (;;) {+ int k = wait_key();+ if (k == eadk_key_ok || k == eadk_key_exe || k == eadk_key_back || k == eadk_key_right || k == eadk_key_left) return;+ }+}++static void key_box(int x, int y, char c, u16 col) {+ fill(x, y, 22, 22, pal[C_EDGE]);+ fill(x + 2, y + 2, 18, 18, col);+ u16 f = text_fg, b = text_bg;+ text_bg = col;+ glyph(c, (x + 7) / 2, y + 7);+ text_fg = f, text_bg = b;+}++static void icon_field(int x2, int y, u16 c) {+ u16 k = pal[C_FIELD];+ pal[C_FIELD] = c;+ spr(SPT(0xE71D), x2, y);+ pal[C_FIELD] = k;+}++/* a sprite at twice the size (the 4x4 cube reads better as an icon) */+static void spr_x2(const u8 *s, int x, int y) {+ for (int j = 0; j < s[0]; j++)+ for (int i = 0; i < s[1] * 2; i++) {+ u8 v = s[2 + j * s[1] + i / 2];+ fill(x + 2 * i, y + 2 * j, 2, 2, pal[i & 1 ? v & 15 : v >> 4]);+ }+}++static bool help_page(int page) {+ cls();+ if (page == 0) {+ static const char *const keys[][2] = {{"LEFT RIGHT", "RUN"}, {"UP", "JUMP"}, {"OK", "PICK UP / DROP"}, {"BACK", "PAUSE"}};+ text("HOW TO PLAY", 5, 10);+ for (int i = 0; i < 4; i++) {+ text(keys[i][0], 10, 30 + 16 * i);+ text(keys[i][1], 75, 30 + 16 * i);+ }+ static const char pad[] = "789456123";+ for (int i = 0; i < 9; i++) key_box(20 + (i % 3) * 26, 104 + (i / 3) * 26, pad[i], i == 4 ? pal[C_ORANGE] : pal[C_BLUE]);+ text("1-9 SHOOT A", 55, 108);+ text("PORTAL THAT WAY", 55, 124);+ text("5 SWITCHES THE", 55, 148);+ text("NEXT COLOR:", 55, 164);+ spr(SPT(0xE1FF), 0x71, 164);+ text("REACH THE RIGHT SIDE", 5, 196);+ text("OF EACH TEST CHAMBER.", 5, 212);+ } else {+ text("TEST ELEMENTS", 5, 10);+ static const char *const lines[][2] = {+ {"BUTTON: STAND OR PUT A", "CUBE ON IT TO OPEN DOORS"},+ {"CUBE: OK PICKS IT UP", "AND DROPS IT"},+ {"FIZZLER: NO PORTALS", "OR CUBES GET THROUGH"},+ {"ELECTRIC FIELDS AND", "SPIKES ARE DEADLY"},+ {"GLASS: BEAMS GO THROUGH,", "YOU DO NOT"},+ {"PELLET: DEADLY. GUIDE IT", "INTO A RECEIVER"},+ };+ for (int i = 0; i < 6; i++) {+ int y = 32 + i * 32;+ switch (i) {+ case 0: spr(SPT(0xE6D9), 2, y + 6); break;+ case 1: spr_x2(SPT(0xE74B), 8, y + 2); break;+ case 2: icon_field(2, y + 5, pal[C_FIZZ]); break;+ case 3: spr(tile_sprite(0x0F), 2, y + 6), icon_field(2, y, pal[C_ELEC]); break;+ case 4: spr(tile_sprite(0x17), 2, y); break;+ default: spr(SPT(0xE741), 2, y + 4), spr(tile_sprite(0x15), 6, y);+ }+ text(lines[i][0], 17, y);+ text(lines[i][1], 17, y + 12);+ }+ }+ text("OK >", 0x8A, 226);+ for (;;) {+ int k = wait_key();+ if (k == eadk_key_back) return false;+ if (k == eadk_key_ok || k == eadk_key_exe || k == eadk_key_right) return true;+ }+}++static void help(void) {+ for (int p = 0; p < 2; p++)+ if (!help_page(p)) return;+ credits();+}++static void credits(void) {+ static const char *const lines[] = {+ "CREDITS",+ " INSPIRED BY PORTAL RETURNS",+ " BY MATEOCONLECHUGA. PORTAL",+ " IS BY VALVE. NOT AFFILIATED",+ " WITH EITHER OF THEM.",+ " CHAMBERS: MATEOCONLECHUGA",+ " SPRITES AND TILES: CKH4",+ " PRELUDE: UNICORN, AFTER",+ " BUILDERBOY'S PORTAL PRELUDE",+ " ORIGINAL TESTERS: UNICORN,",+ " JAMESV, RALPHW74, 123OUTERME",+ "",+ " MADE BY MASON CHEN",+ " AS PART OF NUMPLAY.",+ };+ cls();+ for (unsigned i = 0; i < sizeof lines / sizeof *lines; i++) text(lines[i], 5, 8 + 16 * i);+ page_wait();+}++/* ------------------------------------------------------------ hints */+/* A small sign over the top row of the chamber, shown once per save.+ * While it is up, the game draws around it (sign_clip). */+static int hint_pending[8], nhints;+static const char *const HINTS[] = {+ "ARROWS: RUN, JUMP. EXIT RIGHT", "1-9: SHOOT A PORTAL THAT WAY", "5: SWITCH THE NEXT COLOR",+ "OK: GRAB / DROP A CUBE", "BUTTONS OPEN DOORS WHILE HELD", "BLUE FIELDS ERASE PORTALS",+ "RED FIELDS KILL: STAY CLEAR", "GUIDE PELLETS INTO RECEIVERS", "SPIKES KILL: STAY CLEAR",+};++/* hints 0-7 in save.hints, hint 8 in bit 1 of save.flags */+static bool hint_seen(int h) { return h < 8 ? save.hints >> h & 1 : save.flags >> 1 & 1; }+static void hint_mark(int h) {+ if (h < 8) save.hints |= 1 << h;+ else save.flags |= 2;+}++void hint(int h) {+ if (hint_seen(h)) return;+ for (int i = 0; i < nhints; i++)+ if (hint_pending[i] == h) return;+ if (nhints < 8) hint_pending[nhints++] = h;+}++static int hint_t, hint_now = -1, hint_gap, sign_x, sign_w;++static void sign_draw(void) {+ sign_clip(0, 0);+ u16 ink = save.scheme ? pal[C_BG] : 0xFFFF, paper = save.scheme ? 0xFFFF : 0x0000;+ fill(sign_x, 1, sign_w, 14, paper);+ u16 f = text_fg, b = text_bg;+ text_fg = ink, text_bg = paper;+ text(HINTS[hint_now], sign_x / 2 + 3, 4);+ text_fg = f, text_bg = b;+ sign_clip(sign_x, sign_x + sign_w);+}++/* Where the sign hides the least: over plain wall rather than open air,+ * doors, droppers or fields, as near the middle as possible. */+static int sign_place(int w) {+ int best = 0, best_cost = 1 << 30;+ for (int x = 0; x + w <= 320; x += 2) {+ int cost = 0;+ for (int c = x / 16; c <= (x + w - 1) / 16; c++) {+ int t = top_tile(c);+ cost += t >= 2 && t < 0x0F ? 0 : t == 1 ? 40 : 60; /* wall, air, the rest */+ }+ cost = cost * 64 + (x + w / 2 > 160 ? x + w / 2 - 160 : 160 - x - w / 2);+ if (cost < best_cost) best_cost = cost, best = x;+ }+ return best;+}++/* called by the game every frame: draws / removes the sign */+bool hint_tick(void (*restore)(void)) {+ if (hint_now >= 0) {+ if (--hint_t > 0) return true;+ hint_now = -1;+ hint_gap = 24; /* half a second between two signs */+ sign_clip(0, 0);+ restore();+ return false;+ }+ if (hint_gap > 0) hint_gap--;+ if (!nhints || hint_gap) return false;+ hint_now = hint_pending[0];+ for (int i = 1; i < nhints; i++) hint_pending[i - 1] = hint_pending[i];+ nhints--;+ hint_mark(hint_now);+ save_write();+ hint_t = 47 * 4;+ sign_w = (int)strlen(HINTS[hint_now]) * 10 + 8;+ sign_x = sign_place(sign_w);+ sign_draw();+ return true;+}++void hint_hide(void) { sign_clip(0, 0); } /* before the pause menu */+void hint_show(void) { if (hint_now >= 0) sign_draw(); } /* after the chamber is redrawn */+void hints_clear(void) { nhints = 0, hint_now = -1, hint_gap = 0, sign_clip(0, 0); }++/* ------------------------------------------------------------ main */+int main(void) {+ np_app_begin();+ if (np_save_jump(leave)) return quit();+ assets_init();+ save_load();+#ifdef CHEAT+ save.unlocked[0] = save.level[0] = 40, save.unlocked[1] = 38;+#endif+ title();+ return quit();+}diff --git a/games/portal/src/portal.h b/games/portal/src/portal.hnew file mode 100644index 00000000..fa1d19f5--- /dev/null+++ b/games/portal/src/portal.h@@ -0,0 +1,82 @@+/* Portal Returns for the NumWorks calculator.+ *+ * A port of the TI-84 Plus CE game by MateoConLechuga: same test chambers,+ * tiles, sprites and physics. Positions keep the original's units: x in+ * 2 pixel steps (0 to 159), y in pixels, so every movement and collision+ * lands on the same pixels as on the TI. */+#ifndef PORTAL_H+#define PORTAL_H+#include <eadk.h>+#include <stdbool.h>+#include <stdint.h>++typedef uint8_t u8;+typedef int8_t s8;+typedef uint16_t u16;+typedef uint32_t u32;++/* ------------------------------------------------------------ gfx.c */+void assets_init(void); /* unpacks the art and levels */+/* palette slots (the original's color table) */+enum {+ C_TEXT, C_PLAYER, C_BG, C_EDGE, C_FIZZ, C_T5, C_ORANGE, C_T7,+ C_T8, C_T9, C_GLASS, C_FIELD, C_BLUE, C_DRAW, C_ORANGE2, C_ELEC+};+extern u16 pal[16];+extern u16 text_fg, text_bg, screen_bg; /* text colors, screen fill */+void spr(const u8 *s, int x2, int y); /* 4 bpp sprite, x in 2 px units */+void spr1(const u8 *s, int x2, int y); /* 1 bpp picture, text colors */+void tile_draw(int t, int col, int row);+void fill(int x, int y, int w, int h, u16 c);+void cls(void); /* whole screen in the text background */+int text(const char *s, int x2, int y); /* returns the x after the text */+void glyph(char c, int x2, int y);+int number(int v, int x2, int y);+void sign_clip(int x0, int x1); /* keep drawing off the hint sign (x0 == x1: off) */+const u8 *tile_sprite(int t);++/* ------------------------------------------------------------ input */+bool key_down(int k); /* from the last scan */+void scan_keys(void); /* reads the keyboard, quits on Home */+int wait_key(void); /* next key press (event), quits on Home */+void flush_keys(void); /* forget pending key presses */++/* ------------------------------------------------------------ game.c */+typedef struct {+ const u8 *data;+ int size;+} pack_t;+extern const pack_t PACKS[2];+int pack_levels(int pack);+const u8 *level_ptr(int pack, int n);+/* play from level `n` of `pack`; returns when the player leaves */+void play(int pack, int n);++/* ------------------------------------------------------------ main.c */+typedef struct {+ u8 magic, version;+ u8 unlocked[2]; /* highest level reachable in each pack */+ u8 level[2]; /* level shown in the selector */+ u8 done[2][6]; /* completed levels, 1 bit each */+ u8 scheme; /* color scheme 0..3 */+ u8 hints; /* hints already shown, 1 bit each */+ u8 pack; /* last pack played */+ u8 flags; /* bit 0: game finished (flying unlocked), bit 1: spikes hint seen */+ u8 sum;+} save_t;+extern save_t save;+void save_write(void);+void apply_scheme(void);+void quit_now(void);+enum { HINT_MOVE, HINT_FIRE, HINT_SWAP, HINT_CUBE, HINT_BUTTON, HINT_FIZZLER, HINT_FIELD, HINT_PELLET, HINT_SPIKES };+void hint(int h); /* queue a hint (shown once per save) */+bool hint_tick(void (*restore)(void)); /* true while a hint covers the top */+void hint_hide(void); /* before the pause menu */+void hint_show(void); /* after the chamber is redrawn */+void hints_clear(void);+int top_tile(int col); /* the chamber's tile in row 0 */+int pause_menu(void); /* 0 go on, 1 quit, 2 restart */+void level_started(int pack, int n);+void level_done(int pack, int n);++#endifdiff --git a/games/portal/test/host.c b/games/portal/test/host.cnew file mode 100644index 00000000..9e87b2c9--- /dev/null+++ b/games/portal/test/host.c@@ -0,0 +1,90 @@+/* Host build of the game logic for tests: the screen is a memory buffer and+ * the chamber runs one frame per call (see ../src/game.c, PORTAL_TEST).+ * host PACK LEVEL KEYS... keys per frame as hex, prints the state and+ * writes the final screen to out.raw */+#include <eadk.h>+#include <stdio.h>+#include <stdlib.h>+#include <string.h>++static uint16_t fb[240][320];+void eadk_display_push_rect(eadk_rect_t r, const eadk_color_t *p) {+ for (int y = 0; y < r.height; y++)+ for (int x = 0; x < r.width; x++)+ if (r.y + y < 240 && r.x + x < 320) fb[r.y + y][r.x + x] = p[y * r.width + x];+}+void eadk_display_push_rect_uniform(eadk_rect_t r, eadk_color_t c) {+ for (int y = 0; y < r.height; y++)+ for (int x = 0; x < r.width; x++)+ if (r.y + y < 240 && r.x + x < 320) fb[r.y + y][r.x + x] = c;+}+void eadk_display_pull_rect(eadk_rect_t r, eadk_color_t *p) {+ for (int y = 0; y < r.height; y++)+ for (int x = 0; x < r.width; x++) p[y * r.width + x] = fb[r.y + y][r.x + x];+}+void eadk_display_draw_string(const char *t, eadk_point_t p, bool l, eadk_color_t a, eadk_color_t b) {}+static uint32_t ms;+uint32_t _eadk_timing_millis_low(void) { return ms; }+uint32_t _eadk_timing_millis_high(void) { return 0; }+void eadk_timing_msleep(uint32_t m) { ms += m; }+void eadk_timing_usleep(uint32_t u) { ms += u / 1000; }+void _eadk_keyboard_scan_do_scan(void) {}+uint32_t _eadk_keyboard_scan_low(void) { return 0; }+uint32_t _eadk_keyboard_scan_high(void) { return 0; }+eadk_event_t eadk_event_get(int32_t *t) { exit(3); }+uint32_t eadk_random(void) { return 4; }++void test_load(int pack, int n);+int test_frame(uint32_t keys);+void test_state(uint8_t *o);+void apply_scheme(void);+/* random search for inputs that finish a chamber */+static uint32_t rng = 1;+static uint32_t rnd(void) { rng ^= rng << 13, rng ^= rng >> 17, rng ^= rng << 5; return rng; }+static int search(int pack, int level, long trials, int maxf) {+ static const uint32_t combos[] = {4, 4, 4, 12, 12, 8, 2, 2, 10, 0, 0, 16};+ static uint32_t seq[4000];+ for (long t = 0; t < trials; t++) {+ test_load(pack, level);+ int n = 0;+ while (n < maxf) {+ uint32_t k = combos[rnd() % 12];+ if (rnd() % 5 == 0) k |= 1u << (8 + rnd() % 9);+ int d = 1 + rnd() % 24;+ for (int i = 0; i < d && n < maxf; i++) {+ seq[n++] = k;+ if (test_frame(k)) {+ printf("%ld %d:", t, n);+ for (int j = 0; j < n; j++) printf(" %x", seq[j]);+ printf("\n");+ return 0;+ }+ k &= 0xFF; /* digits are taps */+ }+ }+ }+ return 1;+}++void assets_init(void);+int main(int argc, char **argv) {+ assets_init();+ apply_scheme();+ if (!strcmp(argv[1], "search")) {+ rng = atoi(argv[6]);+ return search(atoi(argv[2]), atoi(argv[3]), atol(argv[4]), atoi(argv[5]));+ }+ test_load(atoi(argv[1]), atoi(argv[2]));+ FILE *f = fopen(getenv("FRAMES") ? getenv("FRAMES") : "frames.raw", "wb");+ for (int i = 3; i < argc; i++) {+ uint8_t s[20];+ test_state(s);+ printf("%d", i - 3);+ for (int k = 0; k < 20; k++) printf(" %d", s[k]);+ printf("\n");+ if (test_frame((uint32_t)strtoul(argv[i], 0, 16))) break;+ fwrite(fb, sizeof fb, 1, f);+ }+ fclose(f);+ return 0;+}diff --git a/games/portal/tools/extract_ti.py b/games/portal/tools/extract_ti.pynew file mode 100644index 00000000..96f476c5--- /dev/null+++ b/games/portal/tools/extract_ti.py@@ -0,0 +1,152 @@+#!/usr/bin/env python3+"""Pulls the art and levels out of the original TI-84 Plus CE release of+Portal Returns (Portal.8xp and Portal1P.8xv, by MateoConLechuga, sprites and+tiles by CKH4) into the editable files in ../assets:++ tiles.png the 31 level tiles, 16x16, indexed with the game's palette+ sprites.png player frames, portals, HUD, cube, pellet, fields, buttons...+ sprites.txt name, x, y, w, h of each sprite in sprites.png+ font.png the 8x8 font (characters 0x20 to 0x5A), white = ink+ title.png the title screen pictures (1 bit), white = ink+ palette.txt the default 16 color palette (RGB565)+ main.bin the 40 built-in test chambers+ prelude.bin the 38 Portal Prelude chambers (Portal1P.8xv, ported by Unicorn)++Only needed once; gen_assets.py turns the assets into src/assets.h.+usage: extract_ti.py Portal.8xp Portal1P.8xv+"""+import os+import struct+import sys++from PIL import Image++HERE = os.path.dirname(os.path.abspath(__file__))+OUT = os.path.join(HERE, '..', 'assets')+BASE = 0xD1A881 # where the program runs (userMem)+++def tivars(path):+ d = open(path, 'rb').read()+ assert d[:8] == b'**TI83F*'+ p, end, out = 55, 55 + struct.unpack('<H', d[53:55])[0], []+ while p < end:+ hl, vl, typ = struct.unpack('<HHB', d[p:p + 5])+ name = d[p + 5:p + 13].rstrip(b'\0').decode('latin1')+ q = p + 2 + hl+ n = struct.unpack('<H', d[q:q + 2])[0]+ out.append((name, typ, d[q + 2:q + 2 + n]))+ p = q + 2 + n+ return out+++def main():+ prog = tivars(sys.argv[1])[0][2][2 + 2:] # skip the size and the asm token+ pack1 = tivars(sys.argv[2])[0][2][2:]++ def at(a, n):+ return prog[a - BASE:a - BASE + n]++ # palette: the program's default table, with the default color scheme+ # (white text and player on dark gray) applied like the game does.+ pal = list(struct.unpack('<16H', at(0xD1DF8B, 32)))+ pal[0] = pal[1] = 0xFFFF+ pal[2] = 0x4A4A++ def rgb(v):+ r, g, b = v >> 11 & 31, v >> 5 & 63, v & 31+ return (r << 3 | r >> 2, g << 2 | g >> 4, b << 3 | b >> 2)+ flat = [c for v in pal for c in rgb(v)]+ with open(os.path.join(OUT, 'palette.txt'), 'w') as f:+ f.write(' '.join('%04X' % v for v in pal) + '\n')++ def sprite4(a):+ h, w = at(a, 2)+ data = at(a + 2, h * w)+ im = Image.new('P', (2 * w, h))+ im.putpalette(flat)+ for y in range(h):+ for x in range(w):+ v = data[y * w + x]+ im.putpixel((2 * x, y), v >> 4)+ im.putpixel((2 * x + 1, y), v & 15)+ return im++ # tiles 1..31+ tiles = Image.new('P', (31 * 16, 16))+ tiles.putpalette(flat)+ for i in range(1, 32):+ tiles.paste(sprite4(0xD1F288 + 0x82 * i), ((i - 1) * 16, 0))+ tiles.save(os.path.join(OUT, 'tiles.png'))++ # sprites: the table after the font, then the title's portal letter+ addrs, a = [], 0xD1E1C7+ while a < 0xD1E75F:+ h, w = at(a, 2)+ addrs.append(a)+ a += 2 + h * w+ addrs.append(0xD1DD13)+ ims = [(a, sprite4(a)) for a in addrs]+ W, x, y, rowh, rects = 128, 0, 0, 0, []+ for a, im in ims:+ if x + im.width > W:+ x, y, rowh = 0, y + rowh + 1, 0+ rects.append((a, x, y, im.width, im.height))+ x += im.width + 1+ rowh = max(rowh, im.height)+ sheet = Image.new('P', (W, y + rowh))+ sheet.putpalette(flat)+ for (a, im), (_, x, y, w, h) in zip(ims, rects):+ sheet.paste(im, (x, y))+ sheet.save(os.path.join(OUT, 'sprites.png'))+ with open(os.path.join(OUT, 'sprites.txt'), 'w') as f:+ f.write('# name x y w h (name = address in the original program)\n')+ for a, x, y, w, h in rects:+ f.write('%04X %d %d %d %d\n' % (a & 0xFFFF, x, y, w, h))++ # font: 8 bytes per character from 0x20+ n = (0xD1E1C7 - 0xD1DFEF) // 8+ font = Image.new('1', (n * 8, 8), 0)+ for c in range(n):+ g = at(0xD1DFEF + 8 * c, 8)+ for yy in range(8):+ for xx in range(8):+ if not g[yy] >> (7 - xx) & 1: # 0 bits are ink+ font.putpixel((c * 8 + xx, yy), 1)+ font.save(os.path.join(OUT, 'font.png'))++ # title pictures: 1 bit, (h, width in bytes) header+ pics = [0xD1EE78, 0xD1EFB2, 0xD1F108, 0xD1F25E]+ dims = [(at(p, 2)[0], at(p, 2)[1] * 8) for p in pics]+ title = Image.new('1', (sum(w for h, w in dims) + len(pics), max(h for h, w in dims)), 0)+ x = 0+ for p, (h, w) in zip(pics, dims):+ data = at(p + 2, h * w // 8)+ for yy in range(h):+ for xx in range(w):+ if not data[yy * (w // 8) + xx // 8] >> (7 - xx % 8) & 1: # 0 bits are ink+ title.putpixel((x + xx, yy), 1)+ x += w + 1+ title.save(os.path.join(OUT, 'title.png'))++ # levels: the built-in pack runs to the end of the program+ main_pack = prog[0xD202C8 - BASE:]+ # keep up to the terminator of the last chamber+ p = 1+ for _ in range(main_pack[0]):+ p += 1+ while main_pack[p] != 0xAF:+ p += 1+ p += 1+ main_pack = main_pack[:p]+ # the calculator's keys: the TI's [2nd] is OK here+ for old, new in ((b'PRESS 2ND TO PICK THEM UP.', b'PRESS OK TO PICK THEM UP.'), (b'USE (2ND).', b'USE (OK).')):+ main_pack = main_pack.replace(old, new)+ pack1 = pack1.replace(old, new)+ open(os.path.join(OUT, 'main.bin'), 'wb').write(main_pack)+ open(os.path.join(OUT, 'prelude.bin'), 'wb').write(pack1)+ print('ok: %d sprites, %d font chars, main %d bytes, prelude %d bytes' % (len(rects), n, p, len(pack1)))+++if __name__ == '__main__':+ main()diff --git a/games/portal/tools/gen_assets.py b/games/portal/tools/gen_assets.pynew file mode 100644index 00000000..be1f4ae2--- /dev/null+++ b/games/portal/tools/gen_assets.py@@ -0,0 +1,116 @@+#!/usr/bin/env python3+"""Builds src/assets.h from the files in ../assets (see extract_ti.py).++Sprites and tiles stay in the original 4 bits per pixel layout (two pixels+per byte, left pixel in the high nibble) with a (height, bytes per row)+header, so the drawing code works exactly like the original's.+Tiles, sprites, font, title art and both level packs (28 KB) are packed+into one DEFLATE stream (about 11 KB) that the game unpacks into RAM when+it starts (src/inflate.c)."""+import os+import zlib++from PIL import Image++HERE = os.path.dirname(os.path.abspath(__file__))+A = os.path.join(HERE, '..', 'assets')+OUT = os.path.join(HERE, '..', 'src', 'assets.h')+++def nibbles(im, x0, y0, w, h):+ out = bytearray([h, w // 2])+ for y in range(h):+ for x in range(0, w, 2):+ out.append(im.getpixel((x0 + x, y0 + y)) << 4 | im.getpixel((x0 + x + 1, y0 + y)))+ return out+++def carray(name, data, typ='uint8_t'):+ s = 'static const %s %s[%d] = {' % (typ, name, len(data))+ for i, v in enumerate(data):+ if i % 24 == 0:+ s += '\n '+ s += '%d,' % v+ return s + '\n};\n'+++def main():+ out = ['/* Generated by tools/gen_assets.py from assets/: do not edit. */\n',+ '#ifndef PORTAL_ASSETS_H\n#define PORTAL_ASSETS_H\n#include <stdint.h>\n']+ pal = [int(v, 16) for v in open(os.path.join(A, 'palette.txt')).read().split()]+ out.append(carray('PAL_DEFAULT', pal, 'uint16_t'))+ blob, parts = bytearray(), []++ def part(name, data):+ parts.append((name, len(blob), len(data)))+ blob.extend(data)++ tiles = Image.open(os.path.join(A, 'tiles.png'))+ t = bytearray()+ for i in range(31):+ t += nibbles(tiles, i * 16, 0, 16, 16)+ part('TILES', t)++ sheet = Image.open(os.path.join(A, 'sprites.png'))+ data, names = bytearray(), []+ for line in open(os.path.join(A, 'sprites.txt')):+ if line.startswith('#') or not line.strip():+ continue+ n, x, y, w, h = line.split()+ names.append((n, len(data)))+ data += nibbles(sheet, int(x), int(y), int(w), int(h))+ part('SPRITES', data)++ font = Image.open(os.path.join(A, 'font.png')).convert('1')+ f = bytearray()+ for c in range(font.width // 8):+ for y in range(8):+ b = 0+ for x in range(8):+ b = b << 1 | (1 if font.getpixel((c * 8 + x, y)) else 0)+ f.append(b)+ part('FONT', f)++ # title pictures: (h, bytes per row) header then 1 bpp rows, separated+ # by one empty column in title.png+ title = Image.open(os.path.join(A, 'title.png')).convert('1')+ widths = [48, 80, 80, 40]+ heights = [52, 34, 34, 34]+ tdata, x, offs = bytearray(), 0, []+ for w, h in zip(widths, heights):+ offs.append(len(tdata))+ tdata += bytes([h, w // 8])+ for yy in range(h):+ for bx in range(w // 8):+ b = 0+ for xx in range(8):+ b = b << 1 | (1 if title.getpixel((x + bx * 8 + xx, yy)) else 0)+ tdata.append(b)+ x += w + 1+ part('TITLE', tdata)+ for name in ('main', 'prelude'):+ part('PACK_' + name.upper(), open(os.path.join(A, name + '.bin'), 'rb').read())++ try:+ import zopfli.zlib+ z = zopfli.zlib.compress(bytes(blob), numiterations=50)[2:-4]+ except ImportError:+ z = zlib.compress(bytes(blob), 9)[2:-4]+ assert zlib.decompress(z, -15) == bytes(blob)+ out.append('#define ASSETS_SIZE %d\n' % len(blob))+ out.append('extern uint8_t assets[ASSETS_SIZE];\n')+ for name, off, n in parts:+ out.append('#define %s (assets + %d)\n#define %s_SIZE %d\n' % (name, off, name, n))+ out.append('#define TILE_BYTES 130\n#define FONT_CHARS %d\n' % (font.width // 8))+ for n, off in names:+ out.append('#define S_%s (SPRITES + %d)\n' % (n, off))+ for i, o in enumerate(offs):+ out.append('#define TITLE_PIC%d (TITLE + %d)\n' % (i, o))+ out.append(carray('ASSETS_Z', z))+ out.append('#endif\n')+ open(OUT, 'w').write(''.join(out))+ print('wrote', OUT, 'assets', len(blob), 'packed', len(z))+++if __name__ == '__main__':+ main()diff --git a/games/portal/tools/icon.py b/games/portal/tools/icon.pynew file mode 100644index 00000000..baf7c862--- /dev/null+++ b/games/portal/tools/icon.py@@ -0,0 +1,47 @@+#!/usr/bin/env python3+"""Draws src/icon.png (55x56): the blue ring of the title screen's+"PORTAL" (an eight blade iris), redrawn smooth at icon size on the game's+dark gray, with rounded corners like the other NumPlay icons (about 3 KB+in the app)."""+import math+import os++from PIL import Image, ImageDraw++HERE = os.path.dirname(os.path.abspath(__file__))+S = 8 # supersampling+BLUE, BG = (24, 130, 231), (74, 73, 82)+++def main():+ W, H = 55 * S, 56 * S+ cx, cy = W / 2, H / 2+ ro, ri, gap = 22.5 * S, 10.5 * S, 1.7 * S+ ring = Image.new('L', (W, H), 0)+ d = ImageDraw.Draw(ring)+ d.ellipse((cx - ro, cy - ro, cx + ro, cy + ro), fill=255)+ d.ellipse((cx - ri, cy - ri, cx + ri, cy + ri), fill=0)+ for k in range(8): # the cuts between blades, tangent to the inner circle+ a = math.radians(k * 45 + 10)+ px, py = cx + ri * math.cos(a), cy + ri * math.sin(a)+ tx, ty = -math.sin(a), math.cos(a)+ nx, ny = math.cos(a), math.sin(a)+ L = ro * 2+ pts = [(px + nx * gap / 2 - tx * gap, py + ny * gap / 2 - ty * gap),+ (px + nx * gap / 2 + tx * L, py + ny * gap / 2 + ty * L),+ (px - nx * gap / 2 + tx * L, py - ny * gap / 2 + ty * L),+ (px - nx * gap / 2 - tx * gap, py - ny * gap / 2 - ty * gap)]+ d.polygon(pts, fill=0)+ bgmask = Image.new('L', (W, H), 0)+ ImageDraw.Draw(bgmask).rounded_rectangle((0, 0, W - 1, H - 1), radius=7 * S, fill=255)+ im = Image.new('RGBA', (W, H), BG + (255,))+ im.paste(Image.new('RGBA', (W, H), BLUE + (255,)), (0, 0), ring)+ im.putalpha(bgmask)+ im = im.resize((55, 56), Image.LANCZOS)+ # eight colors keep the edges smooth and the icon small in the app+ im = im.quantize(8, method=Image.Quantize.FASTOCTREE, dither=Image.Dither.NONE)+ im.save(os.path.join(HERE, '..', 'src', 'icon.png'), optimize=True)+++if __name__ == '__main__':+ main()diff --git a/tests/test_games.py b/tests/test_games.pyindex b2ca885e..24c5b2c4 100644--- a/tests/test_games.py+++ b/tests/test_games.py@@ -53,6 +53,18 @@ GAMES = {presses((1500, "ok", 250), (2000, "back", 250), (2500, "left", 250), (3000, "ok", 250)), 5000),"tetris": ("Tetris.nwa", "tetris.sav", presses((1200, "ok")) + every(2500, 7000, 500, "up"), 8000,presses((1200, "ok"), (2500, "ok")), 5000),+ # play, new run, the small blind, pick two cards and play them; then continue the run+ "balatro": ("Balatro.nwa", "balatro.sav",+ presses((1500, "ok"), (2500, "ok"), (3500, "ok"), (5000, "ok"), (5400, "right"), (5800, "ok"),+ (6300, "exe")), 10000,+ presses((1500, "ok"), (2500, "ok")), 5000),+ # start, then through the bathroom and the hallway to the table; then continue+ "buckshot": ("BuckshotRoulette.nwa", "buckshot.sav", every(1500, 14000, 900, "ok"), 16000,+ presses((1500, "ok")), 4000),+ # a level, its message, then play; then back to the level select+ "portal": ("PortalReturns.nwa", "portal.sav",+ presses((1500, "ok"), (2500, "ok"), (3500, "ok")) + every(4000, 7000, 400, "right", 300), 8000,+ presses((1500, "ok")), 4000),}