Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

#53: spatial anti-aliasing effect (FXAA / SMAA / MLAA, experimental temporal SMAA)

Veyra Goal Agent6571e5d37765
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4534dc46..94fbe5d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -369,6 +369,8 @@ add_library(veyra_pipeline STATIC
src/pipeline/ColorGradeTables.cpp
src/pipeline/ColorGradeInstance.cpp
src/pipeline/ColorDetailPass.cpp
+ src/pipeline/AntiAliasPass.cpp
+ src/pipeline/SmaaLookupTables.cpp
src/pipeline/NrInstance.cpp
src/pipeline/LmxxfNrBackend.cpp
src/pipeline/VfgBackend.cpp
@@ -397,6 +399,27 @@ target_compile_features(veyra_lmxxf_nr_tests PRIVATE cxx_std_20)
target_link_libraries(veyra_lmxxf_nr_tests PRIVATE veyra_pipeline)
add_dependencies(veyra_lmxxf_nr_tests veyra_lmxxf_fake_runtime)
add_dependencies(veyra_pipeline veyra_shader_color_grade veyra_shader_color_detail_reduce veyra_shader_color_detail_blur veyra_shader_color_detail_apply)
+# Spatial anti-aliasing (#53): FXAA / SMAA / MLAA ported from SAOG0721/Magpie
+# d687997 (sources and notices: THIRD_PARTY_NOTICES.md). Quality tiers of one
+# source are separate .dxil variants.
+veyra_add_compute_shader(veyra_shader_aa_luma AaLuma)
+veyra_add_compute_shader_variant(veyra_shader_aa_fxaa3 AaFxaa AaFxaa3 FXAA_PRESET=3)
+veyra_add_compute_shader_variant(veyra_shader_aa_fxaa4 AaFxaa AaFxaa4 FXAA_PRESET=4)
+veyra_add_compute_shader_variant(veyra_shader_aa_fxaa5 AaFxaa AaFxaa5 FXAA_PRESET=5)
+veyra_add_compute_shader(veyra_shader_aa_smaa_edges AaSmaaEdges)
+veyra_add_compute_shader_variant(veyra_shader_aa_smaa_weights_low AaSmaaWeights AaSmaaWeightsLow SMAA_PRESET_LOW)
+veyra_add_compute_shader_variant(veyra_shader_aa_smaa_weights_medium AaSmaaWeights AaSmaaWeightsMedium SMAA_PRESET_MEDIUM)
+veyra_add_compute_shader_variant(veyra_shader_aa_smaa_weights_high AaSmaaWeights AaSmaaWeightsHigh SMAA_PRESET_HIGH)
+veyra_add_compute_shader_variant(veyra_shader_aa_smaa_weights_ultra AaSmaaWeights AaSmaaWeightsUltra SMAA_PRESET_ULTRA)
+veyra_add_compute_shader(veyra_shader_aa_smaa_blend AaSmaaBlend)
+veyra_add_compute_shader(veyra_shader_aa_temporal AaTemporalResolve)
+veyra_add_compute_shader(veyra_shader_aa_mlaa_edges AaMlaaEdges)
+veyra_add_compute_shader(veyra_shader_aa_mlaa_counts AaMlaaCounts)
+veyra_add_compute_shader(veyra_shader_aa_mlaa_blend AaMlaaBlend)
+add_dependencies(veyra_pipeline veyra_shader_aa_luma veyra_shader_aa_fxaa3 veyra_shader_aa_fxaa4 veyra_shader_aa_fxaa5
+ veyra_shader_aa_smaa_edges veyra_shader_aa_smaa_weights_low veyra_shader_aa_smaa_weights_medium
+ veyra_shader_aa_smaa_weights_high veyra_shader_aa_smaa_weights_ultra veyra_shader_aa_smaa_blend veyra_shader_aa_temporal
+ veyra_shader_aa_mlaa_edges veyra_shader_aa_mlaa_counts veyra_shader_aa_mlaa_blend)
add_executable(veyra_pipeline_tests
tests/unit/PipelineContractTests.cpp
@@ -1360,6 +1383,12 @@ target_link_options(veyra_hdr_tuning_tests PRIVATE /STACK:33554432)
# effects later): one frame per configuration through the real graph, printed
# as SHA-256 so a build from before a change can be compared with one after it.
add_executable(veyra_effect_slot_regression_tests tests/integration/EffectSlotRegressionTests.cpp)
+ # GPU quality / HDR / temporal / slot / tiled / timing checks of the anti-aliasing effect (#53).
+ add_executable(veyra_anti_alias_gpu_tests tests/integration/AntiAliasGpuTests.cpp)
+ target_compile_features(veyra_anti_alias_gpu_tests PRIVATE cxx_std_20)
+ target_compile_options(veyra_anti_alias_gpu_tests PRIVATE /utf-8)
+ target_compile_definitions(veyra_anti_alias_gpu_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN)
+ target_link_libraries(veyra_anti_alias_gpu_tests PRIVATE veyra_engine)
target_compile_features(veyra_effect_slot_regression_tests PRIVATE cxx_std_20)
target_compile_options(veyra_effect_slot_regression_tests PRIVATE /utf-8)
target_compile_definitions(veyra_effect_slot_regression_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN)
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 799e2846..f9d21d46 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -1,5 +1,37 @@
# Third-party dependencies
+## Spatial anti-aliasing: FXAA / SMAA / MLAA (#53, 2026-10-18)
+
+Ported from SAOG0721/Magpie (experimental branch), commit
+`d687997780ac8d6e54d8b21a0c6b2be70f5eb401`, GPL-3.0. Every Veyra shader file
+names its sources and changes in its header and keeps the upstream notice.
+
+| Magpie source | Upstream origin and license | Veyra file |
+|---|---|---|
+| `src/Effects/FXAA/FXAA.hlsli`, `FXAA_{Medium,High,Ultra}.hlsl` (presets 3/4/5) | libretro/slang-shaders `anti-aliasing/shaders/fxaa.slang`, Copyright (c) 2011 NVIDIA Corporation notice | `shaders/AaFxaa.hlsl` (built as `AaFxaa3/4/5.dxil`) |
+| `src/Effects/SMAA/SMAA.hlsli`, `SMAA_{Low,Medium,High,Ultra}.hlsl` | iryoku/smaa, MIT, Copyright (C) 2013 Jorge Jimenez, Jose I. Echevarria, Belen Masia, Fernando Navarro, Diego Gutierrez | `shaders/Smaa.hlsli`, `AaSmaaEdges.hlsl`, `AaSmaaWeights.hlsl` (built as `AaSmaaWeights{Low,Medium,High,Ultra}.dxil`), `AaSmaaBlend.hlsl` |
+| `src/Effects/SMAA/SMAA_T2x_NoJitter_Experimental.hlsl`, `SMAA_4x_NoJitter_Experimental.hlsl` | Magpie fork addition on top of SMAA (same MIT notice) | `shaders/AaTemporalResolve.hlsl`; subsample-index sets in `src/pipeline/AntiAliasPass.cpp` |
+| `src/Effects/MLAA/MLAA.hlsl` | adapted there from GPUOpen-LibrariesAndSDKs/MLAA11, MIT, Copyright (c) 2016 Advanced Micro Devices, Inc. | `shaders/AaMlaa.hlsli`, `AaMlaaEdges.hlsl`, `AaMlaaCounts.hlsl`, `AaMlaaBlend.hlsl` |
+| `src/Effects/SMAA/AreaTex.dds` (SHA256 `16e6cd520c2d885cb142b98334b2516804cbb1f44dcda2922be1d68f0766208c`), `SearchTex.dds` (SHA256 `891e444b6dde7dd98f6902c805cd04e3469892aa1667c92f764d94789477ef3a`) | SMAA precomputed textures, iryoku/smaa, MIT | `src/pipeline/SmaaLookupTables.cpp`, generated by `scripts/generate-smaa-lookup-tables.py` (AreaTex R/G payload SHA256 `35065cef2a02cabcad711d6bf430239ae64e27d71c4e4fa06f29cce2c992f0d2`, SearchTex payload SHA256 `3694eae5e9d44b8ebb4415a13f8c7b94dc08a2fc86658434d771c4610fe5744d`) |
+
+Magpie's copy of the FXAA code had dropped the NVIDIA notice carried by the
+libretro source; `shaders/AaFxaa.hlsl` restores it verbatim.
+
+Veyra changes: the passes are compute shaders on the graph's linear FP16
+working textures (one pixel per thread); edges are detected on a perceptual
+luma pass (`shaders/AntiAlias.hlsli`, `AaLuma.hlsl`: sRGB transfer relative to
+the SDR white or the 203-nit HDR reference white, continued logarithmically
+above it) and every blend is done in linear light, which keeps HDR highlights
+and out-of-709 colours; SMAA neighbourhood blending passes pixels without
+weights through exactly; MLAA's `sqrt(lerp(c*c, a*a, w))` became a linear lerp;
+the temporal resolve measures its rejection distance on the perceptual
+transfer and takes history validity from the pass (reset on seek, scene cut,
+timeline discontinuity and rebuild) instead of the history alpha. The
+`AntiAliasPass` executor, the graph slots and every UI / preset / export
+connection are Veyra's own. Not ported: jittered SMAA T2x / 4x (captured
+frames cannot be jittered), Anime4K 3D AA upscale, SGSR, and the MagpieFX
+effect runtime. No Magpie binary or runtime is used.
+
## User-provided ShortFuse NR 310.9.16 (2026-10-17, local testing)
The user supplied `nvngx_dlssnr.dll` and authorized replacement of the SF-v2
diff --git a/cmake/VeyraShaders.cmake b/cmake/VeyraShaders.cmake
index 1b772484..18280212 100644
--- a/cmake/VeyraShaders.cmake
+++ b/cmake/VeyraShaders.cmake
@@ -52,6 +52,33 @@ function(veyra_add_compute_shader target_name shader_name)
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${source}" ${SHADER_INCLUDES})
endfunction()
+# Compiles one compute shader source with preprocessor defines into
+# <binary-dir>/shaders/<output_name>.dxil: several presets of one source (the
+# anti-aliasing quality tiers). Extra arguments are NAME or NAME=VALUE defines.
+function(veyra_add_compute_shader_variant target_name shader_name output_name)
+ veyra_find_dxc(DXC_EXE)
+ veyra_shader_includes(SHADER_INCLUDES)
+ set(source "${CMAKE_CURRENT_SOURCE_DIR}/shaders/${shader_name}.hlsl")
+ set(output "${CMAKE_CURRENT_BINARY_DIR}/shaders/${output_name}.dxil")
+ set(config_flags -O3 -Qstrip_debug -Qstrip_reflect)
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(config_flags -Od -Zi -Qembed_debug)
+ endif()
+ set(defines "")
+ foreach(define IN LISTS ARGN)
+ list(APPEND defines "-D${define}")
+ endforeach()
+ add_custom_command(
+ OUTPUT "${output}"
+ COMMAND "${DXC_EXE}" -T cs_6_0 -E main ${config_flags} ${defines}
+ -Fo "${output}" "${source}"
+ DEPENDS "${source}" ${SHADER_INCLUDES}
+ COMMENT "dxc ${shader_name}.hlsl -> ${output_name}.dxil (${CMAKE_BUILD_TYPE})"
+ VERBATIM)
+ add_custom_target(${target_name} DEPENDS "${output}")
+ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${source}" ${SHADER_INCLUDES})
+endfunction()
+
# Compiles a vertex+pixel shader pair (entry vsMain/psMain) into two DXIL
# files under <binary-dir>/shaders/. Used by the graphics present path.
function(veyra_add_graphics_shader_pair target_name shader_name)
diff --git a/docs/EFFECTS_INFRA_AA_53_PLAN_2026-10-17.md b/docs/EFFECTS_INFRA_AA_53_PLAN_2026-10-17.md
index 5fc055bd..d2fc81a3 100644
--- a/docs/EFFECTS_INFRA_AA_53_PLAN_2026-10-17.md
+++ b/docs/EFFECTS_INFRA_AA_53_PLAN_2026-10-17.md
@@ -69,5 +69,26 @@
- 旧 Win32 遥测阶段名表补齐:原表缺 `Fg6/Fg7` 两项(其后名称整体错位、末两项为空指针),现按枚举逐项对齐并以 `static_assert` 固定长度。
- 验证:`veyra_effect_chain_tests` 全部通过(新增 E0 断言 33 条:默认无新节点、溢出拒绝、双实例往返与校验、重建规则、列表位置、节点 SourcePost/PreNr/PreSr/InterNr/Tail 与混合槽、美颜不入图、21 节点链);`veyra_preset_library_tests` 全部通过(新增 14 条:v14 独立文件且旧库字节不变、精确重载与应用、v13 头夹带新类型拒绝、未知新版本拒绝、18 节点链、会话 v9);`veyra_nr_model_settings_tests` 26/26;`veyra_ui_i18n_tests` 0 失败;调色切片回归 `slot_regression.py app-e0b … --compare golden-baseline.json` **12/12 逐字节相同**(`tests/claude-aa-53-20261017/slot-e0-final.json`)。
+### #53 抗锯齿(2026-10-18)
+- 着色器(14 个 `.dxil`):`AntiAlias.hlsli`/`AaLuma`(感知亮度)、`AaFxaa`(预设 3/4/5,补回 NVIDIA 2011 声明)、`Smaa.hlsli` + `AaSmaaEdges`/`AaSmaaWeights`(低/中/高/极高四个变体)/`AaSmaaBlend`、`AaTemporalResolve`(实验不抖动 T2x/4x)、`AaMlaa*` 三个 pass;CMake 新增 `veyra_add_compute_shader_variant`;`ComputePass::create` 可选静态采样器(点/双线性,clamp,默认关,既有根签名不变)。SMAA 查找表由 `scripts/generate-smaa-lookup-tables.py` 从 Magpie 同一提交的 DDS 生成 `src/pipeline/SmaaLookupTables.cpp`(校验载荷 SHA256),不新增随包文件。
+- **与方案的一处差异**:HDR 边缘检测没有用 PQ。PQ 把 SDR 亮度区间的对比压缩约 3–4 倍(100→200 nit 的 PQ 差约 0.07,sRGB 相对白约 0.27),用这些算法按 SDR 调好的阈值会漏检大部分边缘。改为“相对参考白的 sRGB 传递,白以上以同斜率对数延伸”(SDR 白=1.0,HDR scRGB 以 203 nit 为白),SDR 与 HDR 片源在同一亮度段得到同样的检测,高光仍能形成边缘;所有混合仍在线性光完成。
+- `AntiAliasPass`(`include/veyra/pipeline/AntiAliasPass.h`):各方式的 pass、中间纹理、查找表上传、时域历史(seek/切镜/时间线断点/重建即丢弃);方式/档位/时域模式改变重建,MLAA 阈值/强度与历史权重/拒绝为实时统一量(`applySettings`)。图内经 E0 槽列表执行:列表模式在源尺寸槽(输入转换之后、超分之前),节点模式按位置进入 SourcePost/PreNr/PreSr/InterNr/Tail;无编译计划的分块大图路径在源尺寸逐实例执行。GPU 计时 `AaNode0/1`,列表“GPU 阶段耗时”与节点耗时条显示。
+- 界面:“画质”页最上方(超分辨率之上)“抗锯齿”卡片(方式、质量、MLAA 阈值/强度、实验时域累积与历史权重/拒绝,摘要显示当前方式),处理顺序条出现“抗锯齿”芯片并可点击定位;节点“添加节点”出现“抗锯齿”(最多 2 个),节点卡片用同一编辑组件 `AntiAliasEditor.qml`。桥接 `antiAliasEnabled/antiAliasParams/antiAliasParamsAt/setAntiAliasParameter(At)`;列表实例首次使用时插入在调色之后、超分之前。四语言翻译 22 条补齐。美颜仍隐藏。
+- 许可:`THIRD_PARTY_NOTICES.md` 新增条目(Magpie d687997 文件对照、FXAA NVIDIA 声明、SMAA/MLAA MIT、DDS 与生成表 SHA256、Veyra 改动、未移植项)。
+
+### 验收(2026-10-18,本机 RTX 5070,每项一次)
+- 合成锯齿图(旋转矩形、圆、1 像素细线,640×360,与 16×16 超采样线性光参考比较):所有方式平坦区与关闭时逐位相同(208,229 像素);形状边缘平均误差(8 位)关闭 32.19 → FXAA 8.00、SMAA 低 7.01 / 中 7.31 / 高与极高 6.76、MLAA 10.47;细线 50.54 → FXAA 34.85、SMAA 低/中 10.58、高/极高 15.80、MLAA 39.13。
+- HDR(P010 PQ BT.2020 → scRGB FP16):FXAA/SMAA/MLAA 无 NaN/无穷,平坦高光、背景与 709 外绿色色块(2080 像素全部保持负分量)逐位不变,1000 nit 高光 12.547 保持,边缘被处理。
+- 时域 T2x/4x:重置帧确定(历史被忽略),之后帧累积历史;历史权重 0 实时生效。MLAA 强度实时修改等于以该值重建。
+- 节点(真实 NGX SR+NR):SR→抗锯齿→NR 在 PreNr 槽 2560×1440 执行;抗锯齿→SR→NR→抗锯齿 两实例分别在源尺寸 640×360 与链尾 2560×1440 执行,GPU 计时两项都有数据。
+- 分块大图(2900×1700,6 块,无编译计划):MLAA 与整图逐位相同;SMAA 在 1,479 万字节中 620 字节相差 ≤3(双线性归一化坐标随纹理尺寸取整,分布均匀、不集中于接缝)。
+- D3D12 调试层:SDR 四种、HDR SMAA、时域 4x 均无错误。
+- 导出 worker(真实子进程):冻结设置携带抗锯齿,worker 日志创建 `SMAA high` 并记录源尺寸派发,30 帧完成。
+- 真实界面(隔离配置、自己的进程、播放合成片源):39 项检查通过,列表开关/方式/档位/时域规则、节点添加与上限、模式切换后列表配置保留;播放中每次结构修改都重建并执行抗锯齿,阈值类修改不重建;截图 `logs/claude-aa-53-20261017/gui-*/pro-quality-anti-alias.png`。
+- GPU 耗时(中位数,ms;稀疏合成内容 / 4K 密集细条纹最坏情况):1080p FXAA 0.031、SMAA 0.074–0.075、时域 0.126、MLAA 0.073;1440p 0.051 / 0.124–0.126 / 0.215 / 0.124;4K 0.146 / 0.294–0.299 / 0.549 / 0.296;4K 密集 FXAA 0.355、SMAA 低中 0.547、高极高 0.726、时域 1.21–1.26、MLAA 0.536。测时前确认无其他 Veyra 进程。
+- 回归:调色切片回归仍 12/12 逐字节相同;单元/GPU/QML/翻译各套件见下方“最终核对”。
+- 顺带修复(main `26c0d61` 已有):`TiledImageProcessor` 把整图编译的执行计划原样带进分块,图以“fixed execution plan output/count mismatch”拒绝,`veyra_image_dimension_tests` 的 6 个分块调色用例在 main 上全部失败。产品路径(`EngineControllerImage`)本来不带计划,分块现在明确丢弃整图计划、按列表基础顺序执行,6 个用例与整图逐位相同(maxError8=0)。
+- 最终核对(2026-10-18,同一份构建 `tests/claude-aa-53-20261017/app-final2`,全新临时目录,日志 `logs/claude-aa-53-20261017/final-sweep-20261018-155900`):15 套中 14 套通过——effect-chain、preset-library、nr-model-settings、ui-i18n、pipeline-contract(52 项)、color-grade-gpu 与 lifecycle、video-hdr、nr-temporal-gpu、QML quick、导出 aa、调色切片回归 12/12、抗锯齿 GPU(不含测时)、真实界面 39 项。image-dimension 的 11 个尺寸/分块用例全部通过,唯一失败的 NR 分块用例找不到 `runtime_local/config/ngx-local.json`:测试把源码根目录作为窄字符串编译进去,`E:/项目` 非 ASCII 路径无法解析(与本改动无关,ASCII 路径构建才能跑)。preset-library 在同一临时目录连跑第二次会失败(`testDlssSrModels` 留下 sidecar,main 同样如此),每次全新临时目录则通过。`veyra_amd_nr_graph_tests` 仅编译通过,未运行(需要假 AMD 运行库布置)。
+
## 8. 未验证项(预先声明)
AMD/Intel 实卡、用户 Switch 素材、长时间运行、光学延迟均不在本轮验证范围;本机 RTX 结果不外推其它硬件。
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index ce89ccda..b2b0e4d9 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -9723,3 +9723,11 @@ Branch claude/aa-53-20261017 from main 26c0d61. Archive E:/项目/Veyra/archives
- Implemented plan §3: EffectType AntiAliasing/Beauty (hidden), 32-node chains with explicit overflow refusal, AntiAliasSettings in chain/settings/presets (library v14 + session v9 in `.effects` files, older files untouched), export protocol 10, 64-bit GPU timer mask with AA/beauty stages, step-based insertion slots (`slotOfStep`, SourcePost slot) with the colour executor rewritten onto slot lists. Anti-aliasing stays refused (`antiAliasExecutor=false`) until the AA commit.
- 32 nodes double EffectChain (22 KB -> 45 KB) and the stack frames that copy it (assembly listings: bridge constructor 214 -> 400 KB, EngineController::run 385 KB); veyra_qml_ui and veyra now link /STACK:8388608 (reserve only). Fixed the legacy Win32 telemetry name table, already misaligned on main (Fg6/Fg7 missing).
- Verified (builds 25-39 s each, `tmp/claude-aa-53-20261017/tools/build.py`): effect chain tests all pass (33 new E0 checks), preset library tests all pass (14 new), NR model settings 26/26, i18n 0 failures, colour slot regression 12/12 byte-identical to the main baseline (`tests/claude-aa-53-20261017/slot-e0-final.json`, logs `logs/claude-aa-53-20261017/slot-regression-20261018-142129`).
+
+## 2026-10-18 #53 spatial anti-aliasing (FXAA / SMAA / MLAA, experimental temporal SMAA)
+- Ported from SAOG0721/Magpie d687997 (sources, licenses, changes: THIRD_PARTY_NOTICES.md): 14 compute shader variants, `AntiAliasPass`, graph slots from E0 plus the plan-less tiled image path, live MLAA / history values, GPU stages AaNode0/1. HDR edge detection uses a perceptual luma relative to the SDR / 203-nit HDR white (not PQ: PQ compresses SDR-range contrast 3-4x and would under-detect with the tuned thresholds); all blending in linear light.
+- UI: 画质 tab top card 抗锯齿 (above 超分辨率), processing-order chip, node catalog entry (max 2) with the shared `AntiAliasEditor.qml`; bridge antiAlias*; 22 translations.
+- Tests (RTX 5070, one run each): `veyra_anti_alias_gpu_tests` (SDR quality vs a 16x16 supersampled linear reference: flat areas bit-identical, edge error 32.2 -> 6.8-10.5; HDR P010 PQ: no NaN, highlights / out-of-709 colours unchanged; temporal reset and history; real NGX node slots; tiled path exact for MLAA; D3D12 debug layer clean; timing), `ExportWorkflowTests aa` (worker creates and dispatches the pass), `scripts/acceptance/aa-53-gui.py` (39 checks in the live player, screenshot), QML editor tests, colour slot regression 12/12 identical. Timings at 4K: FXAA 0.15 ms, SMAA 0.30 ms, temporal 0.55 ms, MLAA 0.30 ms (dense-edge worst case 0.36 / 0.55-0.73 / 1.2-1.3 / 0.54 ms).
+- Fixed on the way (present on main 26c0d61): `TiledImageProcessor` carried the whole-image execution plan into the tiles, so the graph refused it and the six tiled colour cases of `veyra_image_dimension_tests` failed on main. The product path never passes a plan; tiles now drop it and run the list-order base (identical to the whole image, maxError8=0).
+- Final sweep (one staged build, fresh temp folder, logs/claude-aa-53-20261017/final-sweep-20261018-155900): 14 of 15 suites pass. image-dimension: all 11 size / tile cases pass; its NR tile case cannot find `runtime_local/config/ngx-local.json` because the test compiles the source root in as a narrow string and the `E:/项目` path does not survive (needs an ASCII-path build; unrelated). preset-library fails only when rerun in the same temp folder (sidecars from testDlssSrModels; main behaves the same). `veyra_amd_nr_graph_tests` compiled, not run.
+- Not verified: AMD / Intel hardware, real game / capture footage judged by eye (user), Switch material, long runs, temporal mode ghosting on real motion.
diff --git a/i18n/catalog.json b/i18n/catalog.json
index 2a6e2f10..bb02f6e3 100644
--- a/i18n/catalog.json
+++ b/i18n/catalog.json
@@ -252,6 +252,20 @@
"en": " · bypass",
"ja": " · バイパス"
},
+ {
+ "zh": " · 时域 4x(实验)",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": " · 時域 4x(實驗)",
+ "en": " · temporal 4x (experimental)",
+ "ja": " · 時間方向 4x(実験的)"
+ },
+ {
+ "zh": " · 时域 T2x(实验)",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": " · 時域 T2x(實驗)",
+ "en": " · temporal T2x (experimental)",
+ "ja": " · 時間方向 T2x(実験的)"
+ },
{
"zh": " · 校准中",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -1043,6 +1057,13 @@
"en": "FSR 4 ML needs a supported RX 9000 and driver; not yet tested on real cards",
"ja": "FSR 4 ML には対応する RX 9000 とドライバーが必要です。実機での検証は未完了です"
},
+ {
+ "zh": "FXAA:最快,整体略柔",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "FXAA:最快,整體略柔",
+ "en": "FXAA: fastest, slightly softer overall",
+ "ja": "FXAA:最速。全体がやや柔らかくなります"
+ },
{
"zh": "GPU / 输入 / 显示资源",
"src": "include/veyra/engine/BackendRecovery.h",
@@ -1330,6 +1351,13 @@
"en": "MKV cannot keep this codec as is; exclude this track",
"ja": "MKV ではこのコーデックをそのまま保持できません。このトラックを除外してください"
},
+ {
+ "zh": "MLAA:形态学抗锯齿,阈值与强度可调",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "MLAA:形態學抗鋸齒,閾值與強度可調",
+ "en": "MLAA: morphological anti-aliasing with adjustable threshold and strength",
+ "ja": "MLAA:モルフォロジカル アンチエイリアス。しきい値と強度を調整できます"
+ },
{
"zh": "MP4 · MKV · 图片",
"src": "qml/CineBar.qml",
@@ -1946,6 +1974,13 @@
"en": "SDR display, not converted",
"ja": "SDR 表示、変換なし"
},
+ {
+ "zh": "SMAA:边缘判断更准,细节保留更好",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "SMAA:邊緣判斷更準,細節保留更好",
+ "en": "SMAA: more accurate edges, keeps more detail",
+ "ja": "SMAA:エッジ判定がより正確で、ディテールをよく保ちます"
+ },
{
"zh": "Smooth Motion 开启方法",
"src": "qml/SettingsPage.qml",
@@ -2662,7 +2697,7 @@
},
{
"zh": "中",
- "src": "qml/NodePage.qml",
+ "src": "qml/AntiAliasEditor.qml",
"zh-TW": "中",
"en": "Medium",
"ja": "中"
@@ -3101,6 +3136,13 @@
"en": "Balanced brightness",
"ja": "バランスのよい輝度分布"
},
+ {
+ "zh": "亮度差超过它才算边缘;越低,处理的边缘越多",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "亮度差超過它才算邊緣;越低,處理的邊緣越多",
+ "en": "A brightness step above this counts as an edge; lower values treat more edges",
+ "ja": "輝度差がこれを超えるとエッジとみなします。低いほど多くのエッジを処理します"
+ },
{
"zh": "仅在游戏模式中接管按键;支持 Ctrl、Alt、Shift 组合",
"src": "qml/SettingsPage.qml",
@@ -3194,7 +3236,7 @@
},
{
"zh": "低",
- "src": "qml/NodePage.qml",
+ "src": "qml/AntiAliasEditor.qml",
"zh-TW": "低",
"en": "Low",
"ja": "低"
@@ -3649,7 +3691,7 @@
},
{
"zh": "关闭",
- "src": "qml/CaptureLegacyPicker.qml",
+ "src": "qml/AntiAliasEditor.qml",
"zh-TW": "關閉",
"en": "Close",
"ja": "閉じる"
@@ -4397,6 +4439,20 @@
"en": "Click the picture",
"ja": "映像をクリック"
},
+ {
+ "zh": "历史拒绝",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "歷史拒絕",
+ "en": "History rejection",
+ "ja": "履歴の棄却"
+ },
+ {
+ "zh": "历史权重",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "歷史權重",
+ "en": "History weight",
+ "ja": "履歴の重み"
+ },
{
"zh": "压住高光",
"src": "qml/ProPage.qml",
@@ -5293,6 +5349,13 @@
"en": "Open the sign-in page in the browser",
"ja": "ブラウザーでサインインページを開く"
},
+ {
+ "zh": "在源分辨率去除锯齿边缘,适合游戏画面、文字和界面线条;放在超分之前,锯齿不会被一起放大。",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "在來源解析度去除鋸齒邊緣,適合遊戲畫面、文字和介面線條;放在超解析之前,鋸齒不會被一起放大。",
+ "en": "Removes jagged edges at source resolution, for game footage, text and interface lines. It runs before super resolution, so the jaggies are not enlarged with the picture.",
+ "ja": "ソース解像度でギザギザのエッジを取り除きます。ゲーム映像、文字、UI の線に向いています。超解像の前に処理するため、ギザギザが一緒に拡大されません。"
+ },
{
"zh": "在画面上按住左键拖出",
"src": "qml/ProPage.qml",
@@ -6063,6 +6126,13 @@
"en": "Experimental",
"ja": "実験的"
},
+ {
+ "zh": "实验:采集画面无法抖动,这是 SMAA T2x / 4x 的不抖动近似;静止画面更稳,运动处可能拖影",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "實驗:擷取畫面無法抖動,這是 SMAA T2x / 4x 的不抖動近似;靜止畫面更穩,運動處可能拖影",
+ "en": "Experimental: captured frames cannot be jittered, so this approximates SMAA T2x / 4x without jitter; steadier on still scenes, may ghost on motion",
+ "ja": "実験的:キャプチャー映像にはジッターをかけられないため、SMAA T2x / 4x のジッターなし近似です。静止画面は安定しますが、動く部分に残像が出ることがあります"
+ },
{
"zh": "对比",
"src": "qml/ExportPage.qml",
@@ -7570,7 +7640,7 @@
},
{
"zh": "强度",
- "src": "qml/SettingsPage.qml",
+ "src": "qml/AntiAliasEditor.qml",
"zh-TW": "强度",
"en": "Strength",
"ja": "Strength"
@@ -8282,6 +8352,20 @@
"en": "Suppress added tint on white walls, clouds and gray areas",
"ja": "白い壁、雲、灰色領域への余計な着色を抑えます"
},
+ {
+ "zh": "抗锯齿",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "抗鋸齒",
+ "en": "Anti-aliasing",
+ "ja": "アンチエイリアス"
+ },
+ {
+ "zh": "抗锯齿 2",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "抗鋸齒 2",
+ "en": "Anti-aliasing 2",
+ "ja": "アンチエイリアス 2"
+ },
{
"zh": "抗闪烁档位",
"src": "qml/NrLayerEditor.qml",
@@ -8906,6 +8990,13 @@
"en": "New preset name",
"ja": "新しいプリセット名"
},
+ {
+ "zh": "方式",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "方式",
+ "en": "Method",
+ "ja": "方式"
+ },
{
"zh": "旋转显示器请使用 Windows 采集方式",
"src": "src/source/ScreenCaptureSource.cpp",
@@ -9256,6 +9347,13 @@
"en": "Temporal stability",
"ja": "時間方向の安定化"
},
+ {
+ "zh": "时域累积",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "時域累積",
+ "en": "Temporal accumulation",
+ "ja": "時間方向の蓄積"
+ },
{
"zh": "时间",
"src": "qml/DialogHost.qml",
@@ -10131,6 +10229,13 @@
"en": "Ultimate",
"ja": "最高"
},
+ {
+ "zh": "极高",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "極高",
+ "en": "Ultra",
+ "ja": "最高"
+ },
{
"zh": "查找",
"src": "qml/DialogHost.qml",
@@ -11496,6 +11601,13 @@
"en": "Adds contrast to flat or faded transfers.",
"ja": "平坦な映像のコントラスト感を高めます。"
},
+ {
+ "zh": "画面变化超过时丢弃历史;越高越不容易拖影",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "畫面變化超過時捨棄歷史;越高越不容易拖影",
+ "en": "Drops the history where the picture changes by more; higher means less ghosting",
+ "ja": "画面の変化がこれを超えると履歴を破棄します。高いほど残像が出にくくなります"
+ },
{
"zh": "画面呈现失败",
"src": "src/engine/EngineController.cpp",
@@ -12357,6 +12469,13 @@
"en": "Magewell capture failed to start; back to normal capture (see magewell in the log)",
"ja": "Magewell のキャプチャーを開始できず、通常のキャプチャーに戻しました(ログの magewell を参照)"
},
+ {
+ "zh": "美颜",
+ "src": "src/engine/EffectChain.cpp",
+ "zh-TW": "美顏",
+ "en": "Beauty",
+ "ja": "美顔"
+ },
{
"zh": "羽化像素",
"src": "qml/ProPage.qml",
@@ -13666,6 +13785,13 @@
"en": "Add an RTX Video HDR node first",
"ja": "先に RTX Video HDR ノードを追加してください"
},
+ {
+ "zh": "请先添加抗锯齿节点",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "請先添加抗鋸齒節點",
+ "en": "Add an anti-aliasing node first",
+ "ja": "先にアンチエイリアスのノードを追加してください"
+ },
{
"zh": "请先添加补帧节点",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -14046,7 +14172,7 @@
},
{
"zh": "质量",
- "src": "qml/NodePage.qml",
+ "src": "qml/AntiAliasEditor.qml",
"zh-TW": "品質",
"en": "Quality",
"ja": "品質"
@@ -14142,6 +14268,13 @@
"en": "Smaller is more sensitive; larger holds more steady",
"ja": "小さいほど敏感、大きいほど安定させる範囲が広がります"
},
+ {
+ "zh": "越高越平滑,运动拖影也越多",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "越高越平滑,運動拖影也越多",
+ "en": "Higher is smoother but ghosts more on motion",
+ "ja": "高いほど滑らかですが、動きの残像も増えます"
+ },
{
"zh": "越高越稳,过高会显得发闷",
"src": "qml/ProPage.qml",
@@ -14590,6 +14723,13 @@
"en": "Edge Aegis (XeSS anti-jelly)",
"ja": "エッジイージス(XeSS ゼリー対策)"
},
+ {
+ "zh": "边缘阈值",
+ "src": "qml/AntiAliasEditor.qml",
+ "zh-TW": "邊緣閾值",
+ "en": "Edge threshold",
+ "ja": "エッジのしきい値"
+ },
{
"zh": "运动估算质量",
"src": "qml/NodePage.qml",
@@ -15640,6 +15780,13 @@
"en": "No complete picture for a long time. The network is very unstable, or the bitrate is set too high.",
"ja": "長時間、完全な映像が届いていません。ネットワークが非常に不安定か、ビットレートが高すぎます。"
},
+ {
+ "zh": "阈值 %1",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "閾值 %1",
+ "en": "threshold %1",
+ "ja": "しきい値 %1"
+ },
{
"zh": "队列 ",
"src": "qml/ExportPage.qml",
@@ -16403,6 +16550,13 @@
"en": "Preset library: node field damaged",
"ja": "プリセットライブラリのノード項目が破損しています"
},
+ {
+ "zh": "预设库节点抗锯齿参数损坏",
+ "src": "src/engine/PresetLibrary.cpp",
+ "zh-TW": "預設庫節點抗鋸齒參數損壞",
+ "en": "Preset library: node anti-aliasing settings damaged",
+ "ja": "プリセットライブラリのノードのアンチエイリアス設定が破損しています"
+ },
{
"zh": "预设库节点调色参数损坏",
"src": "src/engine/PresetLibrary.cpp",
@@ -16741,7 +16895,7 @@
},
{
"zh": "高",
- "src": "qml/NodePage.qml",
+ "src": "qml/AntiAliasEditor.qml",
"zh-TW": "高",
"en": "High",
"ja": "高"
diff --git a/include/veyra/pipeline/AntiAliasPass.h b/include/veyra/pipeline/AntiAliasPass.h
new file mode 100644
index 00000000..deac2743
--- /dev/null
+++ b/include/veyra/pipeline/AntiAliasPass.h
@@ -0,0 +1,43 @@
+#pragma once
+#include "veyra/engine/AntiAliasSettings.h"
+#include "veyra/pipeline/GpuPassUtils.h"
+#include <string>
+
+namespace veyra::pipeline {
+// One spatial anti-aliasing instance (#53) on linear FP16 textures of one size:
+// FXAA (three tiers), SMAA (four tiers, optionally with the experimental
+// no-jitter temporal accumulation) or MLAA. The graph owns input and output;
+// the pass owns its intermediate textures, the SMAA lookup tables and the
+// temporal history. Method, tier and temporal mode are fixed at creation (a
+// change rebuilds the graph); the MLAA threshold / strength and the history
+// weight / rejection are live (refresh).
+class AntiAliasPass {
+public:
+ static constexpr UINT kConstantCount=16;
+ bool initialize(ID3D12Device* device,const engine::AntiAliasSettings& settings,uint32_t width,uint32_t height);
+ void refresh(const engine::AntiAliasSettings& settings);
+ void createViews(ID3D12Device* device,DescriptorStager& stager,ID3D12Resource* input,ID3D12Resource* output);
+ // Records every pass of the method; `reset` (seek, scene cut, timeline
+ // discontinuity) drops the temporal history before this frame.
+ bool dispatch(ID3D12GraphicsCommandList* list,StateTracker& tracker,bool hdrWorking,bool reset);
+ const engine::AntiAliasSettings& settings() const { return settings_; }
+ std::string describe() const;
+ bool historyValid() const { return historyValid_; }
+private:
+ struct Stage { ComputePass pass; UINT srvCount=0; };
+ bool createStage(ID3D12Device* device,Stage& stage,const char* shader,UINT srvCount);
+ bool prepareLookups(ID3D12Device* device);
+ void uploadLookups(ID3D12GraphicsCommandList* list,StateTracker& tracker);
+ float edgeThreshold() const;
+ engine::AntiAliasSettings settings_{};
+ uint32_t width_=0,height_=0,frame_=0;
+ UINT areaPitch_=0,searchPitch_=0;
+ bool historyValid_=false,lookupsPending_=false;
+ DXGI_FORMAT edgesFormat_=DXGI_FORMAT_R8G8_UNORM,weightsFormat_=DXGI_FORMAT_R8G8B8A8_UNORM;
+ Stage luma_,fxaa_,smaaEdges_,smaaWeights_,smaaBlend_,temporal_,mlaaEdges_,mlaaCounts_,mlaaBlend_;
+ ComPtr<ID3D12Resource> lumaTexture_,edges_,weights_,counts_,current_,history_;
+ ComPtr<ID3D12Resource> area_,search_,areaUpload_,searchUpload_;
+ ID3D12Resource* input_=nullptr;
+ ID3D12Resource* output_=nullptr;
+};
+}
diff --git a/include/veyra/pipeline/EnhanceGraph.h b/include/veyra/pipeline/EnhanceGraph.h
index 96403f9c..6f00dce9 100644
--- a/include/veyra/pipeline/EnhanceGraph.h
+++ b/include/veyra/pipeline/EnhanceGraph.h
@@ -4,6 +4,7 @@
#include "veyra/engine/BackendRecovery.h"
#include "veyra/pipeline/ColorGradeTables.h"
#include "veyra/pipeline/ColorGradeInstance.h"
+#include "veyra/pipeline/AntiAliasPass.h"
#include "veyra/pipeline/NrInstance.h"
#include "veyra/pipeline/ResolutionPlan.h"
#include "veyra/pipeline/NrTemporalPass.h"
@@ -169,7 +170,7 @@ struct EnhanceGraphDesc {
// instances with a step in fixedExecutionPlan run; the settings carry the values.
std::array<engine::AntiAliasSettings,engine::kMaxAntiAliasInstances> antiAlias{};
// The anti-aliasing executor is compiled into this build (EnhanceGraph).
- static constexpr bool antiAliasExecutor=false;
+ static constexpr bool antiAliasExecutor=true;
bool antiAliasActive() const {
for(const auto& a:antiAlias)if(a.enabled)return true;
return false;
@@ -353,7 +354,9 @@ struct EnhanceGraphDesc {
}
// Where a plan step runs. `interTarget` receives the NR resource of an InterNr step.
bool sourcePostActive() const {
- if(!fixedExecutionPlan)return false;
+ // Without a compiled plan (tiled full-resolution images) enabled
+ // anti-aliasing instances run at source size, like the list chain.
+ if(!fixedExecutionPlan)return antiAliasActive();
for(uint32_t i=0;i<fixedExecutionPlan->stepCount&&i<fixedExecutionPlan->steps.size();++i)
if(slotOfStep(i)==PassSlot::SourcePost)return true;
return false;
@@ -882,7 +885,10 @@ private:
unsigned tailColorActiveCount_=0,preNrColorActiveCount_=0,preSrColorActiveCount_=0,interNrColorActiveCount_=0,sourcePostColorActiveCount_=0;
// Same-size passes per insertion slot, in plan order (EnhanceGraphDesc::slotOfStep).
// Each pass reads the previous pass's output; the slot output is the last one.
- struct SlotPass {uint32_t step=0;engine::EffectType type=engine::EffectType::Color;uint32_t parameter=0;ID3D12Resource* output=nullptr;};
+ struct SlotPass {
+ uint32_t step=0;engine::EffectType type=engine::EffectType::Color;uint32_t parameter=0;ID3D12Resource* output=nullptr;
+ uint32_t width=0,height=0,resource=0; // output extent; resource ordinal of the plan step
+ };
std::vector<SlotPass> sourcePostPasses_,preSrPasses_,preNrPasses_,tailPasses_;
std::array<std::vector<SlotPass>,engine::kMaxNrInstances> interNrPasses_{};
ID3D12Resource* sourcePostOutput_=nullptr; // source size, after the input conversion
@@ -893,7 +899,11 @@ private:
}
ID3D12Resource* chainSlotViews(const std::vector<SlotPass>& passes,ID3D12Resource* input,const char* where);
bool dispatchSlotPasses(ID3D12GraphicsCommandList* list,const std::vector<SlotPass>& passes,unsigned slot,
- const char* where,bool log);
+ const char* where,bool log,bool reset);
+ // Indexed by anti-aliasing parameter ordinal, like the node Color instances.
+ std::array<std::unique_ptr<AntiAliasPass>,engine::kMaxAntiAliasInstances> antiAliasPasses_{};
+ std::array<ComPtr<ID3D12Resource>,engine::kMaxAntiAliasInstances> antiAliasOutputs_{};
+ bool createAntiAlias(uint32_t parameter,uint32_t width,uint32_t height);
bool tailColorExecutionLogged_=false,preNrColorExecutionLogged_=false;
bool preSrColorExecutionLogged_=false;
bool interNrColorExecutionLogged_=false;
diff --git a/include/veyra/pipeline/GpuPassUtils.h b/include/veyra/pipeline/GpuPassUtils.h
index 09ac3ed0..d76ed60e 100644
--- a/include/veyra/pipeline/GpuPassUtils.h
+++ b/include/veyra/pipeline/GpuPassUtils.h
@@ -126,9 +126,11 @@ struct ComputePass {
// extraSrvCount adds a second SRV table at a fixed register base (8): the
// colour-grade tables. Passes that do not use it keep the original
- // three-parameter root signature.
+ // three-parameter root signature. clampSamplers adds static samplers s0
+ // (point) and s1 (bilinear), both clamp-addressed (anti-aliasing passes).
bool create(ID3D12Device* device, const std::vector<uint8_t>& cs, UINT heapSlots,
- UINT srvCount = 3, UINT uavCount = 1, UINT constants = 8, UINT extraSrvCount = 0)
+ UINT srvCount = 3, UINT uavCount = 1, UINT constants = 8, UINT extraSrvCount = 0,
+ bool clampSamplers = false)
{
if(constants==0||constants>60)return false;
constantCount=constants;
@@ -165,10 +167,20 @@ struct ComputePass {
rp[3].DescriptorTable.NumDescriptorRanges=1;
rp[3].DescriptorTable.pDescriptorRanges=&extraRange;
}
+ D3D12_STATIC_SAMPLER_DESC samplers[2]{};
+ for(UINT i=0;i<2;++i){
+ samplers[i].Filter=i?D3D12_FILTER_MIN_MAG_MIP_LINEAR:D3D12_FILTER_MIN_MAG_MIP_POINT;
+ samplers[i].AddressU=samplers[i].AddressV=samplers[i].AddressW=D3D12_TEXTURE_ADDRESS_MODE_CLAMP;
+ samplers[i].ComparisonFunc=D3D12_COMPARISON_FUNC_NEVER;
+ samplers[i].MaxLOD=D3D12_FLOAT32_MAX;
+ samplers[i].ShaderRegister=i;
+ samplers[i].ShaderVisibility=D3D12_SHADER_VISIBILITY_ALL;
+ }
D3D12_VERSIONED_ROOT_SIGNATURE_DESC rd{};
rd.Version = D3D_ROOT_SIGNATURE_VERSION_1_1;
rd.Desc_1_1.NumParameters = hasExtraSrv?4:3;
rd.Desc_1_1.pParameters = rp;
+ if(clampSamplers){rd.Desc_1_1.NumStaticSamplers=2;rd.Desc_1_1.pStaticSamplers=samplers;}
ComPtr<ID3DBlob> sig, err;
const HRESULT serializeHr=D3D12SerializeVersionedRootSignature(&rd, &sig, &err);
if (FAILED(serializeHr)) {
diff --git a/include/veyra/pipeline/SmaaLookupTables.h b/include/veyra/pipeline/SmaaLookupTables.h
new file mode 100644
index 00000000..ca132b49
--- /dev/null
+++ b/include/veyra/pipeline/SmaaLookupTables.h
@@ -0,0 +1,15 @@
+#pragma once
+#include <cstddef>
+#include <cstdint>
+
+namespace veyra::pipeline::smaa {
+// SMAA precomputed area / search textures (src/pipeline/SmaaLookupTables.cpp,
+// generated by scripts/generate-smaa-lookup-tables.py). Rows top to bottom,
+// tightly packed: AreaTex R8G8_UNORM, SearchTex R8_UNORM.
+inline constexpr uint32_t kAreaTexWidth=160,kAreaTexHeight=560,kAreaTexPitch=kAreaTexWidth*2;
+inline constexpr uint32_t kSearchTexWidth=64,kSearchTexHeight=16,kSearchTexPitch=kSearchTexWidth;
+inline constexpr size_t kAreaTexBytes=size_t(kAreaTexPitch)*kAreaTexHeight;
+inline constexpr size_t kSearchTexBytes=size_t(kSearchTexPitch)*kSearchTexHeight;
+extern const uint8_t kAreaTex[kAreaTexBytes];
+extern const uint8_t kSearchTex[kSearchTexBytes];
+}
diff --git a/include/veyra/ui/QmlPlayerBridge.h b/include/veyra/ui/QmlPlayerBridge.h
index 40f192dd..353f8ea0 100644
--- a/include/veyra/ui/QmlPlayerBridge.h
+++ b/include/veyra/ui/QmlPlayerBridge.h
@@ -309,6 +309,10 @@ class QmlPlayerBridge : public QObject {
Q_PROPERTY(double nrHoldTolerance READ nrHoldTolerance WRITE setNrHoldTolerance NOTIFY settingsChanged)
Q_PROPERTY(bool videoHdr READ videoHdr WRITE setVideoHdr NOTIFY settingsChanged)
Q_PROPERTY(QVariantMap videoHdrParams READ videoHdrParams NOTIFY videoHdrParamsChanged)
+ // Spatial anti-aliasing (#53): the list card edits the first instance, created
+ // on first use; node cards edit their own node by chain index.
+ Q_PROPERTY(bool antiAliasEnabled READ antiAliasEnabled WRITE setAntiAliasEnabled NOTIFY antiAliasChanged)
+ Q_PROPERTY(QVariantMap antiAliasParams READ antiAliasParams NOTIFY antiAliasChanged)
// Custom: static HDR output tuning (globals, every field live).
Q_PROPERTY(bool hdrCurve READ hdrCurve WRITE setHdrCurve NOTIFY settingsChanged)
Q_PROPERTY(QVariantMap hdrCurveParams READ hdrCurveParams NOTIFY settingsChanged)
@@ -943,6 +947,12 @@ public:
void syncHdrDisplayProfile();
QVariantMap videoHdrParams() const;
Q_INVOKABLE bool setVideoHdrParameter(const QString& key, double value);
+ bool antiAliasEnabled() const;
+ void setAntiAliasEnabled(bool enabled);
+ QVariantMap antiAliasParams() const;
+ Q_INVOKABLE QVariantMap antiAliasParamsAt(int index) const;
+ Q_INVOKABLE bool setAntiAliasParameter(const QString& key, double value);
+ Q_INVOKABLE bool setAntiAliasParameterAt(int index, const QString& key, double value);
int nrStyle() const;
void setNrStyle(int value);
double nrIntensity() const;
@@ -1300,6 +1310,7 @@ signals:
// labels or positions; only that group notifies (audit 2026-10-15 B1).
void nrLayersChanged();
void videoHdrParamsChanged();
+ void antiAliasChanged();
void colourParamsChanged();
void protectionChanged();
void recentFilesChanged();
diff --git a/qml/Veyra/AntiAliasEditor.qml b/qml/Veyra/AntiAliasEditor.qml
new file mode 100644
index 00000000..c0412137
--- /dev/null
+++ b/qml/Veyra/AntiAliasEditor.qml
@@ -0,0 +1,118 @@
+// One anti-aliasing instance's parameters (#53), shared by the list page's
+// 抗锯齿 card and the node page's anti-aliasing node, so both edit the same
+// values through the same bridge calls (as NrLayerEditor does for NR).
+import QtQuick
+import QtQuick.Layouts
+
+ColumnLayout {
+ id: editor
+ // veyra.antiAliasParams (list card) or veyra.antiAliasParamsAt(index) (node).
+ required property var params
+ property string namePrefix: "aa"
+ signal edited(string key, double amount)
+ spacing: 6
+ readonly property int method: params.method ?? 1
+ readonly property int quality: params.quality ?? 2
+ readonly property int temporal: params.temporal ?? 0
+ readonly property var qualityChoices: method === 0
+ ? [{id: "0", label: qsTr("中")}, {id: "1", label: qsTr("高")}, {id: "2", label: qsTr("极高")}]
+ : [{id: "0", label: qsTr("低")}, {id: "1", label: qsTr("中")}, {id: "2", label: qsTr("高")}, {id: "3", label: qsTr("极高")}]
+
+ Text {
+ Layout.fillWidth: true
+ text: qsTr("在源分辨率去除锯齿边缘,适合游戏画面、文字和界面线条;放在超分之前,锯齿不会被一起放大。")
+ color: Theme.t3; font.family: Theme.fontUi; font.pixelSize: 11; wrapMode: Text.WordWrap
+ }
+ VRow {
+ label: qsTr("方式")
+ hint: editor.method === 0 ? qsTr("FXAA:最快,整体略柔")
+ : editor.method === 1 ? qsTr("SMAA:边缘判断更准,细节保留更好")
+ : qsTr("MLAA:形态学抗锯齿,阈值与强度可调")
+ VSeg {
+ objectName: editor.namePrefix + "-method"
+ options: [{id: "0", label: "FXAA"}, {id: "1", label: "SMAA"}, {id: "2", label: "MLAA"}]
+ current: String(editor.method)
+ onPicked: id => editor.edited("method", Number(id))
+ }
+ }
+ VRow {
+ label: qsTr("质量")
+ visible: editor.method !== 2
+ VSeg {
+ objectName: editor.namePrefix + "-quality"
+ options: editor.qualityChoices
+ current: String(editor.quality)
+ onPicked: id => editor.edited("quality", Number(id))
+ }
+ }
+ VRow {
+ label: qsTr("边缘阈值")
+ hint: qsTr("亮度差超过它才算边缘;越低,处理的边缘越多")
+ visible: editor.method === 2
+ value: Number(editor.params.mlaaThreshold ?? 0.08).toFixed(2)
+ VSlider {
+ objectName: editor.namePrefix + "-mlaa-threshold"
+ implicitWidth: 110
+ valueFromModel: true
+ resettable: true; defaultValue: 0.08
+ from: 0.02; to: 0.30
+ value: editor.params.mlaaThreshold ?? 0.08
+ onMoved: value => editor.edited("mlaaThreshold", Math.round(value * 100) / 100)
+ }
+ }
+ VRow {
+ label: qsTr("强度")
+ visible: editor.method === 2
+ value: Number(editor.params.mlaaStrength ?? 1).toFixed(2)
+ VSlider {
+ objectName: editor.namePrefix + "-mlaa-strength"
+ implicitWidth: 110
+ valueFromModel: true
+ resettable: true; defaultValue: 1
+ from: 0; to: 1
+ value: editor.params.mlaaStrength ?? 1
+ onMoved: value => editor.edited("mlaaStrength", Math.round(value * 20) / 20)
+ }
+ }
+ VRow {
+ label: qsTr("时域累积")
+ hint: qsTr("实验:采集画面无法抖动,这是 SMAA T2x / 4x 的不抖动近似;静止画面更稳,运动处可能拖影")
+ visible: editor.method === 1
+ VSeg {
+ objectName: editor.namePrefix + "-temporal"
+ options: [{id: "0", label: qsTr("关闭")}, {id: "1", label: "T2x"}, {id: "2", label: "4x"}]
+ current: String(editor.temporal)
+ onPicked: id => editor.edited("temporal", Number(id))
+ }
+ }
+ VRow {
+ label: qsTr("历史权重")
+ hint: qsTr("越高越平滑,运动拖影也越多")
+ visible: editor.method === 1 && editor.temporal > 0
+ value: Number(editor.params.historyWeight ?? 0.5).toFixed(2)
+ VSlider {
+ objectName: editor.namePrefix + "-history-weight"
+ implicitWidth: 110
+ valueFromModel: true
+ resettable: true; defaultValue: editor.temporal === 2 ? 0.75 : 0.5
+ from: 0; to: 0.95
+ value: editor.params.historyWeight ?? 0.5
+ onMoved: value => editor.edited("historyWeight", Math.round(value * 20) / 20)
+ }
+ }
+ VRow {
+ label: qsTr("历史拒绝")
+ hint: qsTr("画面变化超过时丢弃历史;越高越不容易拖影")
+ visible: editor.method === 1 && editor.temporal > 0
+ value: Number(editor.params.historyRejection ?? 8).toFixed(1)
+ VSlider {
+ objectName: editor.namePrefix + "-history-rejection"
+ implicitWidth: 110
+ valueFromModel: true
+ resettable: true; defaultValue: 8
+ from: 0; to: 32
+ value: editor.params.historyRejection ?? 8
+ onMoved: value => editor.edited("historyRejection", Math.round(value * 2) / 2)
+ }
+ }
+}
diff --git a/qml/Veyra/NodePage.qml b/qml/Veyra/NodePage.qml
index d469abe7..126b6d73 100644
--- a/qml/Veyra/NodePage.qml
+++ b/qml/Veyra/NodePage.qml
@@ -80,6 +80,7 @@ VPage {
switch (type) {
case "color": return "#E0C341"
case "sr": return "#4F7BFF"
+ case "aa": return "#7FD4FF"
case "nr": return "#FF8A3D"
case "protection": return "#8A8A96"
case "video-hdr": return "#FFB547"
@@ -1052,7 +1053,7 @@ VPage {
radius: 5
color: Qt.rgba(10 / 255, 10 / 255, 13 / 255, 0.85)
visible: segments.length > 0
- readonly property var hues: ({ sr: "#6EA8FF", nr: "#FF8A3D", color: "#A8A8B8", "video-hdr": "#E58BD9",
+ readonly property var hues: ({ sr: "#6EA8FF", nr: "#FF8A3D", color: "#A8A8B8", "video-hdr": "#E58BD9", aa: "#7FD4FF",
"frame-generation": "#3DDC84", protection: "#E7B868" })
readonly property var segments: {
const timings = veyra.nodeTimings, chain = veyra.chain
@@ -1458,6 +1459,7 @@ VPage {
sourceComponent: card.node.type === "nr" ? nrEditor
: card.node.type === "color" ? colourEditor
: card.node.type === "sr" ? srEditor
+ : card.node.type === "aa" ? aaEditor
: card.node.type === "video-hdr" ? hdrEditor
: card.node.type === "frame-generation" ? fgEditor : null
}
@@ -1533,6 +1535,15 @@ VPage {
}
}
}
+ Component {
+ id: aaEditor
+ AntiAliasEditor {
+ objectName: "node-aa-editor-" + card.node.id
+ namePrefix: "node-aa-" + card.node.id
+ params: (veyra.chain, veyra.antiAliasParams, veyra.antiAliasParamsAt(card.node.index))
+ onEdited: (key, amount) => veyra.setAntiAliasParameterAt(card.node.index, key, amount)
+ }
+ }
Component {
id: hdrEditor
ColumnLayout {
diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qml
index be7ca57f..535cc002 100644
--- a/qml/Veyra/ProPage.qml
+++ b/qml/Veyra/ProPage.qml
@@ -89,6 +89,7 @@ VPage {
else {
tab = "quality"
if (chip.type === "sr") target = "list-sr"
+ else if (chip.type === "aa") target = "list-anti-alias"
else if (chip.type === "video-hdr") target = "list-video-hdr"
else if (chip.type === "protection") target = "list-global-protection"
else if (chip.type === "nr") {
@@ -1305,6 +1306,25 @@ VPage {
// The design builds the inspector from accordion cards, not
// flat rows: an icon, a title, a live summary line, a switch
// and a chevron, with nested groups inside.
+ // Spatial anti-aliasing (#53) runs at source size right after the
+ // input conversion, in front of SR, so jaggies are never enlarged.
+ VAccordion {
+ objectName: "list-anti-alias"
+ Layout.fillWidth: true
+ glyph: "type"
+ hue: "#7FD4FF"
+ title: qsTr("抗锯齿")
+ summary: veyra.antiAliasEnabled ? veyra.antiAliasParams.summary : qsTr("已关闭")
+ on: veyra.antiAliasEnabled
+ onToggled: on => veyra.antiAliasEnabled = on
+ AntiAliasEditor {
+ Layout.fillWidth: true
+ namePrefix: "list-aa"
+ params: veyra.antiAliasParams
+ onEdited: (key, amount) => veyra.setAntiAliasParameter(key, amount)
+ }
+ }
+
VAccordion {
objectName: "list-sr"
Layout.fillWidth: true
diff --git a/qml/Veyra/qmldir b/qml/Veyra/qmldir
index 744e7e59..1f3c3d3e 100644
--- a/qml/Veyra/qmldir
+++ b/qml/Veyra/qmldir
@@ -40,6 +40,7 @@ ColourPanel 1.0 ColourPanel.qml
VScrollBar 1.0 VScrollBar.qml
VConfirm 1.0 VConfirm.qml
NrLayerEditor 1.0 NrLayerEditor.qml
+AntiAliasEditor 1.0 AntiAliasEditor.qml
VSpinner 1.0 VSpinner.qml
VEqBars 1.0 VEqBars.qml
VTelemetryValue 1.0 VTelemetryValue.qml
diff --git a/scripts/acceptance/aa-53-gui.py b/scripts/acceptance/aa-53-gui.py
new file mode 100644
index 00000000..574030c7
--- /dev/null
+++ b/scripts/acceptance/aa-53-gui.py
@@ -0,0 +1,53 @@
+"""Anti-aliasing (#53) GUI acceptance: real QML card, bridge, engine and live player.
+
+usage: py -3.11 -I scripts/acceptance/aa-53-gui.py <staged-app-name>
+
+Runs a private copy of the staged app (tests/claude-aa-53-20261017/<name>) with an
+isolated profile, injects aa-53-gui.qml into that copy's Main.qml (restored
+afterwards), plays a synthetic clip, and checks the console and engine log. Other
+Veyra processes are left alone; nothing outside the task folders is written.
+"""
+from pathlib import Path
+import json, os, re, subprocess, sys, time
+
+ROOT = Path(__file__).resolve().parents[2]
+BASE = Path('E:/项目/Veyra'); TASK = 'claude-aa-53-20261017'
+APP = BASE / 'tests' / TASK / sys.argv[1]
+MEDIA = BASE / 'tests' / TASK / 'media' / 'aa-player-720p.mp4'
+LOG = BASE / 'logs' / TASK / ('gui-' + time.strftime('%Y%m%d-%H%M%S')); LOG.mkdir(parents=True)
+profile = BASE / 'tests' / TASK / 'profiles' / LOG.name; profile.mkdir(parents=True)
+(profile / 'qml-preferences.v1.json').write_text(json.dumps({'language': 'zh-CN', 'autoResume': False, 'rememberPosition': False,
+ 'prewarmEnhancement': False, 'gpuPriority': 'normal', 'subtitleEnabled': False}), encoding='utf8')
+tmp = BASE / 'tmp' / TASK / LOG.name; tmp.mkdir(parents=True)
+assert MEDIA.is_file(), MEDIA
+main = APP / 'qml/Veyra/Main.qml'; saved = main.read_bytes()
+shot = LOG / 'pro-quality-anti-alias.png'
+loader = ('\nLoader { source: ' + json.dumps((ROOT / 'scripts/acceptance/aa-53-gui.qml').as_uri()) +
+ '; onLoaded: { item.media = ' + json.dumps(MEDIA.as_posix()) + '; item.shotPath = ' + json.dumps(shot.as_posix()) + ' } }\n')
+text = saved.decode('utf8'); at = text.rfind('}'); assert at > 0
+main.write_bytes((text[:at] + loader + text[at:]).encode('utf8'))
+try:
+ env = {k: v for k, v in os.environ.items() if not k.upper().startswith(('VEYRA_', 'QT_', 'QSG_'))}
+ env.update(PATH=str(APP) + os.pathsep + env['PATH'], TEMP=str(tmp), TMP=str(tmp), CUDA_CACHE_PATH=str(tmp / 'cuda'),
+ QML_DISK_CACHE_PATH=str(tmp / 'qml'), QT_FORCE_STDERR_LOGGING='1', VEYRA_LOG_FILE=str(LOG / 'engine.log'))
+ command = [str(APP / 'veyra_qml_ui.exe'), '--data-dir', str(profile), '--page', 'pro', '--size', '1600x960', '--exit-after', '58000']
+ start = time.monotonic()
+ with (LOG / 'console.log').open('wb') as stream:
+ run = subprocess.run(command, cwd=APP, env=env, stdout=stream, stderr=subprocess.STDOUT, timeout=70)
+finally:
+ main.write_bytes(saved)
+console = (LOG / 'console.log').read_text(encoding='utf8', errors='replace')
+engine = (LOG / 'engine.log').read_text(encoding='utf8', errors='replace') if (LOG / 'engine.log').exists() else ''
+errors = [l for l in console.splitlines() if re.search(r'AA_UI_FAIL|ReferenceError:|TypeError:|\[ERROR\s*\]|\[FATAL\s*\]|D3D12 ERROR|Cannot assign|Binding loop', l)]
+middle = engine.split('BEGIN anti-alias edits', 1)[-1].split('END anti-alias edits', 1)[0] if 'BEGIN anti-alias edits' in engine else ''
+created = re.findall(r'\[anti-alias\] instance=\d+ [^\r\n]*', middle)
+recorded = len(re.findall(r'recorded source-size aa', middle))
+if not created: errors.append('the live player never created an anti-aliasing pass')
+if not recorded: errors.append('the live player never recorded the source-size anti-aliasing pass')
+row = {'command': command, 'exit': run.returncode, 'seconds': round(time.monotonic() - start, 1),
+ 'passed': run.returncode == 0 and 'AA_UI_PASS' in console and not errors, 'errors': errors,
+ 'checks': len(re.findall(r'AA_UI_CHECK', console)), 'passesCreated': created, 'recordedSourceSize': recorded,
+ 'screenshot': str(shot) if shot.exists() else None, 'mainRestored': main.read_bytes() == saved, 'profile': str(profile)}
+(LOG / 'receipt.json').write_text(json.dumps(row, ensure_ascii=False, indent=2), encoding='utf8')
+print(json.dumps(row, ensure_ascii=False, indent=1))
+raise SystemExit(not (row['passed'] and row['mainRestored']))
diff --git a/scripts/acceptance/aa-53-gui.qml b/scripts/acceptance/aa-53-gui.qml
new file mode 100644
index 00000000..3f6a5913
--- /dev/null
+++ b/scripts/acceptance/aa-53-gui.qml
@@ -0,0 +1,127 @@
+// Loaded into a private copy of Main.qml by aa-53-gui.py: drives the real bridge
+// and engine through the anti-aliasing card (#53) while a clip plays.
+import QtQuick
+import QtQuick.Window
+Item {
+ id: test
+ property string media: ""
+ property string shotPath: ""
+ property int step: 0
+ property int ticks: 0
+ property int nodeA: -1
+ property int nodeB: -1
+ property real beginPosition: 0
+ function require(ok, message) {
+ if (!ok) throw new Error(message)
+ console.log("AA_UI_CHECK", message)
+ }
+ function chainTypes() { return veyra.chain.map(n => n.type) }
+ function find(item, name) {
+ if (!item) return null
+ if (item.objectName === name) return item
+ for (let i = 0; i < item.children.length; ++i) { const r = find(item.children[i], name); if (r) return r }
+ return null
+ }
+ Timer {
+ interval: 400; repeat: true; running: true
+ onTriggered: { try {
+ if (++test.ticks > 120) throw new Error("deadline step=" + test.step)
+ const p = veyra.antiAliasParams
+ if (test.step === 0) {
+ if (test.ticks < 4) return
+ test.require(!veyra.antiAliasEnabled && p.present === false, "a fresh profile has no anti-aliasing node")
+ const ids = veyra.effectCatalog.map(e => e.id)
+ test.require(ids.indexOf("aa") >= 0 && ids.indexOf("beauty") < 0, "catalog offers anti-aliasing, beauty stays hidden")
+ veyra.volume = 0
+ veyra.openPath(test.media)
+ test.step = 1; return
+ }
+ test.require(!veyra.failed, "player has no error")
+ if (test.step === 1) {
+ if (!veyra.running || veyra.position < 0.5 || veyra.applying) return
+ test.beginPosition = veyra.position
+ veyra.logUi("aa-53-gui", "BEGIN anti-alias edits")
+ veyra.antiAliasEnabled = true
+ test.step = 2; return
+ }
+ if (veyra.applying) return
+ if (test.step === 2) {
+ test.require(veyra.antiAliasEnabled && p.present && p.method === 1 && p.quality === 2, "the switch creates SMAA high")
+ const types = test.chainTypes()
+ test.require(types.indexOf("aa") >= 0 && types.indexOf("aa") < types.indexOf("sr") &&
+ types.lastIndexOf("color") < types.indexOf("aa"), "the list chain holds it after the grades and in front of SR")
+ const card = test.find(test.Window.window.contentItem, "list-anti-alias")
+ const sr = test.find(test.Window.window.contentItem, "list-sr")
+ test.require(card && sr && card.visible && card.mapToItem(null, 0, 0).y < sr.mapToItem(null, 0, 0).y,
+ "the card sits above 超分辨率 on the 画质 tab")
+ test.require(String(p.summary).indexOf("SMAA") === 0, "the card summary names the method")
+ test.step = 3; return
+ }
+ if (test.step === 3) {
+ test.require(veyra.setAntiAliasParameter("method", 2) && veyra.antiAliasParams.method === 2 && veyra.antiAliasParams.quality === 0,
+ "MLAA has no tiers")
+ test.require(veyra.setAntiAliasParameter("mlaaThreshold", 0.15) && Math.abs(veyra.antiAliasParams.mlaaThreshold - 0.15) < 1e-6,
+ "the MLAA threshold is live")
+ test.require(!veyra.setAntiAliasParameter("temporal", 1), "temporal accumulation is refused for MLAA")
+ test.require(!veyra.setAntiAliasParameter("mlaaThreshold", 0.9), "an out-of-range threshold is refused")
+ test.step = 4; return
+ }
+ if (test.step === 4) {
+ test.require(veyra.setAntiAliasParameter("method", 1) && veyra.antiAliasParams.quality === 2, "back to SMAA starts at high")
+ test.require(veyra.setAntiAliasParameter("temporal", 2) && Math.abs(veyra.antiAliasParams.historyWeight - 0.75) < 1e-6,
+ "4x uses its own history default")
+ test.require(veyra.setAntiAliasParameter("temporal", 1) && Math.abs(veyra.antiAliasParams.historyWeight - 0.5) < 1e-6,
+ "T2x uses its own history default")
+ test.require(veyra.setAntiAliasParameter("historyWeight", 0.6) && veyra.setAntiAliasParameter("temporal", 2) &&
+ Math.abs(veyra.antiAliasParams.historyWeight - 0.6) < 1e-6, "a tuned history weight survives a mode change")
+ test.require(veyra.setAntiAliasParameter("temporal", 0), "temporal accumulation off")
+ test.step = 5; return
+ }
+ if (test.step === 5) {
+ // Expand the card (SMAA with the experimental temporal rows) for the screenshot.
+ test.require(veyra.setAntiAliasParameter("temporal", 1), "temporal rows for the screenshot")
+ test.find(test.Window.window.contentItem, "list-anti-alias").open = true
+ test.step = 51; return
+ }
+ if (test.step === 51) {
+ test.require(String(veyra.antiAliasParams.summary).indexOf("T2x") > 0, "the summary names the experimental mode")
+ // grabToImage renders on a later frame: change nothing until it is saved.
+ if (test.shotPath.length > 0)
+ test.Window.window.contentItem.grabToImage(r => r.saveToFile(test.shotPath))
+ test.step = 52; return
+ }
+ if (test.step === 52) {
+ test.require(veyra.setAntiAliasParameter("temporal", 0), "temporal accumulation off again")
+ test.step = 6; return
+ }
+ if (test.step === 6) {
+ veyra.antiAliasEnabled = false
+ test.require(!veyra.antiAliasEnabled && veyra.antiAliasParams.present, "switching off keeps the node and its values")
+ test.require(veyra.chain.find(n => n.type === "aa").enabled === false, "the chip shows it switched off")
+ veyra.nodeMode = 1
+ test.step = 7; return
+ }
+ if (test.step === 7) {
+ test.nodeA = veyra.addEffect("aa")
+ test.require(test.nodeA >= 0 && veyra.antiAliasParamsAt(test.nodeA).enabled, "a node-mode anti-aliasing node starts switched on")
+ test.require(veyra.setAntiAliasParameterAt(test.nodeA, "method", 0) && veyra.antiAliasParamsAt(test.nodeA).quality === 1,
+ "the node edits its own instance")
+ test.nodeB = veyra.addEffect("aa")
+ test.require(test.nodeB >= 0, "a second instance is allowed")
+ test.require(veyra.addEffect("aa") < 0, "a third instance is refused")
+ test.step = 8; return
+ }
+ if (test.step === 8) {
+ test.require(veyra.removeEffect(Math.max(test.nodeA, test.nodeB)) && veyra.removeEffect(Math.min(test.nodeA, test.nodeB)),
+ "the node instances are removed again")
+ veyra.nodeMode = 0
+ test.step = 9; return
+ }
+ test.require(veyra.nodeMode === 0 && veyra.antiAliasParams.present && !veyra.antiAliasEnabled, "list mode keeps its own configuration")
+ test.require(veyra.position > test.beginPosition + 2, "media time advances through the edits")
+ veyra.logUi("aa-53-gui", "END anti-alias edits")
+ console.log("AA_UI_PASS")
+ Qt.quit()
+ } catch(e) { console.log("AA_UI_FAIL", String(e)); Qt.quit() } }
+ }
+}
diff --git a/scripts/generate-smaa-lookup-tables.py b/scripts/generate-smaa-lookup-tables.py
new file mode 100644
index 00000000..d2bc5341
--- /dev/null
+++ b/scripts/generate-smaa-lookup-tables.py
@@ -0,0 +1,101 @@
+"""Generate src/pipeline/SmaaLookupTables.cpp from the SMAA precomputed textures.
+
+usage: py -3.11 -I scripts/generate-smaa-lookup-tables.py <AreaTex.dds> <SearchTex.dds>
+
+The inputs are src/Effects/SMAA/AreaTex.dds and SearchTex.dds of SAOG0721/Magpie
+d687997 (the SMAA precomputed textures of https://github.com/iryoku/smaa, MIT).
+AreaTex.dds is 160x560 RGBA8 whose B/A channels are constant 0/255; only R/G are
+used by SMAA, so the table keeps R8G8. SearchTex.dds is 64x16 R8. The payload
+hashes are checked so a different texture version cannot slip in unnoticed.
+"""
+import hashlib
+import struct
+import sys
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parents[1]
+OUT = ROOT / 'src/pipeline/SmaaLookupTables.cpp'
+AREA_RG_SHA256 = '35065cef2a02cabcad711d6bf430239ae64e27d71c4e4fa06f29cce2c992f0d2'
+SEARCH_SHA256 = '3694eae5e9d44b8ebb4415a13f8c7b94dc08a2fc86658434d771c4610fe5744d'
+
+
+def dds_payload(path, width, height, bits):
+ data = Path(path).read_bytes()
+ if data[:4] != b'DDS ' or struct.unpack_from('<I', data, 4)[0] != 124:
+ raise SystemExit(f'{path}: not a DDS file')
+ h, w = struct.unpack_from('<2I', data, 12)
+ fourcc = data[84:88]
+ rgb_bits = struct.unpack_from('<I', data, 88)[0]
+ if (w, h) != (width, height) or fourcc != b'\0\0\0\0' or rgb_bits != bits:
+ raise SystemExit(f'{path}: expected {width}x{height} uncompressed {bits}-bit, got {w}x{h} {fourcc} {rgb_bits}')
+ payload = data[128:]
+ if len(payload) != width * height * bits // 8:
+ raise SystemExit(f'{path}: payload is {len(payload)} bytes')
+ return payload
+
+
+def rows(values):
+ return ',\n'.join(','.join(str(v) for v in values[i:i + 40]) for i in range(0, len(values), 40))
+
+
+def main():
+ if len(sys.argv) != 3:
+ raise SystemExit(__doc__)
+ rgba = dds_payload(sys.argv[1], 160, 560, 32)
+ if set(rgba[2::4]) != {0} or set(rgba[3::4]) != {255}:
+ raise SystemExit('AreaTex: B/A channels are not the constant 0/255 this table drops')
+ area = bytes(b for i in range(0, len(rgba), 4) for b in rgba[i:i + 2])
+ search = dds_payload(sys.argv[2], 64, 16, 8)
+ for name, blob, expected in (('AreaTex RG', area, AREA_RG_SHA256), ('SearchTex', search, SEARCH_SHA256)):
+ got = hashlib.sha256(blob).hexdigest()
+ if got != expected:
+ raise SystemExit(f'{name}: SHA-256 {got} != {expected}')
+ text = f'''// Generated by scripts/generate-smaa-lookup-tables.py - do not edit.
+// SMAA precomputed lookup textures (https://github.com/iryoku/smaa, MIT notice
+// below), taken from src/Effects/SMAA/AreaTex.dds and SearchTex.dds of
+// SAOG0721/Magpie d687997. AreaTex: 160x560 R8G8 (the DDS's constant B=0/A=255
+// channels dropped), SHA-256 {AREA_RG_SHA256}.
+// SearchTex: 64x16 R8, SHA-256 {SEARCH_SHA256}.
+/**
+ * Copyright (C) 2013 Jorge Jimenez ([email protected])
+ * Copyright (C) 2013 Jose I. Echevarria ([email protected])
+ * Copyright (C) 2013 Belen Masia ([email protected])
+ * Copyright (C) 2013 Fernando Navarro ([email protected])
+ * Copyright (C) 2013 Diego Gutierrez ([email protected])
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is furnished to
+ * do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software. As clarification, there
+ * is no requirement that the copyright notice and permission be included in
+ * binary distributions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#include "veyra/pipeline/SmaaLookupTables.h"
+
+namespace veyra::pipeline::smaa {{
+const uint8_t kAreaTex[kAreaTexBytes]={{
+{rows(area)}
+}};
+const uint8_t kSearchTex[kSearchTexBytes]={{
+{rows(search)}
+}};
+}}
+'''
+ OUT.write_bytes(text.encode('utf-8'))
+ print(f'wrote {OUT} ({len(text)} bytes)')
+
+
+main()
diff --git a/shaders/AaFxaa.hlsl b/shaders/AaFxaa.hlsl
new file mode 100644
index 00000000..0234bbdc
--- /dev/null
+++ b/shaders/AaFxaa.hlsl
@@ -0,0 +1,229 @@
+// FXAA medium / high / ultra (FXAA_PRESET 3 / 4 / 5, set by the build) for
+// Veyra's anti-aliasing effect (#53).
+//
+// Ported from SAOG0721/Magpie d687997 src/Effects/FXAA (FXAA.hlsli and
+// FXAA_{Medium,High,Ultra}.hlsl, GPL-3.0), itself ported from
+// https://github.com/libretro/slang-shaders/blob/master/anti-aliasing/shaders/fxaa.slang
+// Veyra changes: the luma comes from the perceptual luma texture
+// (AntiAlias.hlsli), scaled to FxaaLuma()'s 0..2.963 range for neutral colours
+// so the thresholds keep their meaning; the neighbourhood average and the final
+// blend use the linear working colour; one pixel per thread instead of 2x2
+// gather blocks; the centre's alpha is kept. Magpie's copy omitted the NVIDIA
+// notice of the libretro source; it is restored here:
+/**
+ * @license
+ * Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
+ *
+ * TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED
+ * *AS IS* AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS
+ * OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT,IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL NVIDIA
+ * OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT, OR
+ * CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS
+ * OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY
+ * OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ */
+
+/*
+FXAA_PRESET - Choose compile-in knob preset 0-5.
+------------------------------------------------------------------------------
+FXAA_EDGE_THRESHOLD - The minimum amount of local contrast required
+ to apply algorithm.
+ 1.0/3.0 - too little
+ 1.0/4.0 - good start
+ 1.0/8.0 - applies to more edges
+ 1.0/16.0 - overkill
+------------------------------------------------------------------------------
+FXAA_EDGE_THRESHOLD_MIN - Trims the algorithm from processing darks.
+ Perf optimization.
+ 1.0/32.0 - visible limit (smaller isn't visible)
+ 1.0/16.0 - good compromise
+ 1.0/12.0 - upper limit (seeing artifacts)
+------------------------------------------------------------------------------
+FXAA_SEARCH_STEPS - Maximum number of search steps for end of span.
+------------------------------------------------------------------------------
+FXAA_SEARCH_THRESHOLD - Controls when to stop searching.
+ 1.0/4.0 - seems to be the best quality wise
+------------------------------------------------------------------------------
+FXAA_SUBPIX_TRIM - Controls sub-pixel aliasing removal.
+ 1.0/2.0 - low removal
+ 1.0/3.0 - medium removal
+ 1.0/4.0 - default removal
+ 1.0/8.0 - high removal
+ 0.0 - complete removal
+------------------------------------------------------------------------------
+FXAA_SUBPIX_CAP - Insures fine detail is not completely removed.
+ This is important for the transition of sub-pixel detail,
+ like fences and wires.
+ 3.0/4.0 - default (medium amount of filtering)
+ 7.0/8.0 - high amount of filtering
+ 1.0 - no capping of sub-pixel aliasing removal
+*/
+#include "AntiAlias.hlsli"
+
+#ifndef FXAA_PRESET
+#define FXAA_PRESET 5
+#endif
+#if (FXAA_PRESET == 3)
+#define FXAA_EDGE_THRESHOLD (1.0/8.0)
+#define FXAA_EDGE_THRESHOLD_MIN (1.0/16.0)
+#define FXAA_SEARCH_STEPS 16
+#define FXAA_SEARCH_THRESHOLD (1.0/4.0)
+#define FXAA_SUBPIX_CAP (3.0/4.0)
+#define FXAA_SUBPIX_TRIM (1.0/4.0)
+#endif
+#if (FXAA_PRESET == 4)
+#define FXAA_EDGE_THRESHOLD (1.0/8.0)
+#define FXAA_EDGE_THRESHOLD_MIN (1.0/24.0)
+#define FXAA_SEARCH_STEPS 24
+#define FXAA_SEARCH_THRESHOLD (1.0/4.0)
+#define FXAA_SUBPIX_CAP (3.0/4.0)
+#define FXAA_SUBPIX_TRIM (1.0/4.0)
+#endif
+#if (FXAA_PRESET == 5)
+#define FXAA_EDGE_THRESHOLD (1.0/8.0)
+#define FXAA_EDGE_THRESHOLD_MIN (1.0/24.0)
+#define FXAA_SEARCH_STEPS 32
+#define FXAA_SEARCH_THRESHOLD (1.0/4.0)
+#define FXAA_SUBPIX_CAP (3.0/4.0)
+#define FXAA_SUBPIX_TRIM (1.0/4.0)
+#endif
+
+#define FXAA_SUBPIX_TRIM_SCALE (1.0/(1.0 - FXAA_SUBPIX_TRIM))
+
+Texture2D<float4> source : register(t0); // linear working colour
+Texture2D<float> luma : register(t1); // AaLuma output
+RWTexture2D<float4> target : register(u0);
+
+// FxaaLuma() of white: rgb.y * (0.587 / 0.299) + rgb.x with rgb = 1.
+static const float kFxaaLumaScale = 2.963210702;
+
+float FxaaLumaAt(int2 p) { return luma.Load(int3(AaClamp(p), 0)) * kFxaaLumaScale; }
+float FxaaLumaSample(float2 uv) { return luma.SampleLevel(aaLinearSampler, uv, 0) * kFxaaLumaScale; }
+float3 FxaaColorAt(int2 p) { return source.Load(int3(AaClamp(p), 0)).rgb; }
+
+float3 FxaaLerp3(float3 a, float3 b, float amountOfA) {
+ return (a - b) * amountOfA + b;
+}
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ const int2 p = int2(id.xy);
+ const float2 inputPt = float2(aaInvWidth, aaInvHeight);
+ const float2 pos = AaTexcoord(id.xy);
+ const float4 center = source.Load(int3(p, 0));
+
+ float lumaN = FxaaLumaAt(p + int2(0, -1));
+ float lumaW = FxaaLumaAt(p + int2(-1, 0));
+ const float lumaM = FxaaLumaAt(p);
+ float lumaE = FxaaLumaAt(p + int2(1, 0));
+ float lumaS = FxaaLumaAt(p + int2(0, 1));
+ const float rangeMin = min(lumaM, min(min(lumaN, lumaW), min(lumaS, lumaE)));
+ const float rangeMax = max(lumaM, max(max(lumaN, lumaW), max(lumaS, lumaE)));
+
+ const float range = rangeMax - rangeMin;
+ if (range < max(FXAA_EDGE_THRESHOLD_MIN, rangeMax * FXAA_EDGE_THRESHOLD)) {
+ target[id.xy] = center;
+ return;
+ }
+ float3 rgbL = FxaaColorAt(p + int2(0, -1)) + FxaaColorAt(p + int2(-1, 0)) + center.rgb +
+ FxaaColorAt(p + int2(1, 0)) + FxaaColorAt(p + int2(0, 1));
+
+ const float lumaL = (lumaN + lumaW + lumaE + lumaS) * 0.25;
+ const float rangeL = abs(lumaL - lumaM);
+ float blendL = max(0.0, (rangeL / range) - FXAA_SUBPIX_TRIM) * FXAA_SUBPIX_TRIM_SCALE;
+ blendL = min(FXAA_SUBPIX_CAP, blendL);
+
+ rgbL += FxaaColorAt(p + int2(-1, -1)) + FxaaColorAt(p + int2(1, -1)) +
+ FxaaColorAt(p + int2(-1, 1)) + FxaaColorAt(p + int2(1, 1));
+ rgbL *= 1.0 / 9.0;
+
+ const float lumaNW = FxaaLumaAt(p + int2(-1, -1));
+ const float lumaNE = FxaaLumaAt(p + int2(1, -1));
+ const float lumaSW = FxaaLumaAt(p + int2(-1, 1));
+ const float lumaSE = FxaaLumaAt(p + int2(1, 1));
+
+ const float edgeVert =
+ abs((0.25 * lumaNW) + (-0.5 * lumaN) + (0.25 * lumaNE)) +
+ abs((0.50 * lumaW) + (-1.0 * lumaM) + (0.50 * lumaE)) +
+ abs((0.25 * lumaSW) + (-0.5 * lumaS) + (0.25 * lumaSE));
+ const float edgeHorz =
+ abs((0.25 * lumaNW) + (-0.5 * lumaW) + (0.25 * lumaSW)) +
+ abs((0.50 * lumaN) + (-1.0 * lumaM) + (0.50 * lumaS)) +
+ abs((0.25 * lumaNE) + (-0.5 * lumaE) + (0.25 * lumaSE));
+
+ const bool horzSpan = edgeHorz >= edgeVert;
+ float lengthSign = horzSpan ? -inputPt.y : -inputPt.x;
+
+ if (!horzSpan) {
+ lumaN = lumaW;
+ lumaS = lumaE;
+ }
+
+ float gradientN = abs(lumaN - lumaM);
+ const float gradientS = abs(lumaS - lumaM);
+ lumaN = (lumaN + lumaM) * 0.5;
+ lumaS = (lumaS + lumaM) * 0.5;
+
+ if (gradientN < gradientS) {
+ lumaN = lumaS;
+ gradientN = gradientS;
+ lengthSign *= -1.0;
+ }
+
+ float2 posN;
+ posN.x = pos.x + (horzSpan ? 0.0 : lengthSign * 0.5);
+ posN.y = pos.y + (horzSpan ? lengthSign * 0.5 : 0.0);
+
+ gradientN *= FXAA_SEARCH_THRESHOLD;
+
+ float2 posP = posN;
+ const float2 offNP = horzSpan ? float2(inputPt.x, 0.0) : float2(0.0, inputPt.y);
+ float lumaEndN = lumaN;
+ float lumaEndP = lumaN;
+ bool doneN = false;
+ bool doneP = false;
+ posN += offNP * float2(-1.0, -1.0);
+ posP += offNP * float2(1.0, 1.0);
+
+ for (int i = 0; i < FXAA_SEARCH_STEPS; i++) {
+ if (!doneN) {
+ lumaEndN = FxaaLumaSample(posN);
+ }
+ if (!doneP) {
+ lumaEndP = FxaaLumaSample(posP);
+ }
+
+ doneN = doneN || (abs(lumaEndN - lumaN) >= gradientN);
+ doneP = doneP || (abs(lumaEndP - lumaN) >= gradientN);
+
+ if (doneN && doneP) {
+ break;
+ }
+ if (!doneN) {
+ posN -= offNP;
+ }
+ if (!doneP) {
+ posP += offNP;
+ }
+ }
+
+ float dstN = horzSpan ? pos.x - posN.x : pos.y - posN.y;
+ const float dstP = horzSpan ? posP.x - pos.x : posP.y - pos.y;
+ const bool directionN = dstN < dstP;
+ lumaEndN = directionN ? lumaEndN : lumaEndP;
+
+ if (((lumaM - lumaN) < 0.0) == ((lumaEndN - lumaN) < 0.0)) {
+ lengthSign = 0.0;
+ }
+
+ const float spanLength = (dstP + dstN);
+ dstN = directionN ? dstN : dstP;
+ const float subPixelOffset = (0.5 + (dstN * (-1.0 / spanLength))) * lengthSign;
+ const float3 rgbF = source.SampleLevel(aaLinearSampler, float2(
+ pos.x + (horzSpan ? 0.0 : subPixelOffset),
+ pos.y + (horzSpan ? subPixelOffset : 0.0)), 0).rgb;
+ target[id.xy] = float4(FxaaLerp3(rgbL, rgbF, blendL), center.a);
+}
diff --git a/shaders/AaLuma.hlsl b/shaders/AaLuma.hlsl
new file mode 100644
index 00000000..1547c684
--- /dev/null
+++ b/shaders/AaLuma.hlsl
@@ -0,0 +1,11 @@
+// Anti-aliasing pass 0 (#53): perceptual luma of the linear working colour.
+// Every method detects edges on this texture only (see AntiAlias.hlsli).
+#include "AntiAlias.hlsli"
+Texture2D<float4> source : register(t0);
+RWTexture2D<float> luma : register(u0);
+
+[numthreads(8, 8, 1)]
+void main(uint3 p : SV_DispatchThreadID) {
+ if (p.x >= aaWidth || p.y >= aaHeight) return;
+ luma[p.xy] = AaLumaOf(source[p.xy].rgb);
+}
diff --git a/shaders/AaMlaa.hlsli b/shaders/AaMlaa.hlsli
new file mode 100644
index 00000000..c4b09d4d
--- /dev/null
+++ b/shaders/AaMlaa.hlsli
@@ -0,0 +1,34 @@
+// AMD-style Morphological Anti-Aliasing for Veyra's anti-aliasing effect (#53).
+// Ported from SAOG0721/Magpie d687997 src/Effects/MLAA/MLAA.hlsl (GPL-3.0),
+// adapted there from https://github.com/GPUOpen-LibrariesAndSDKs/MLAA11.
+// Veyra changes: edges and shape tests read the perceptual luma texture
+// (AntiAlias.hlsli) instead of a luma derived from gamma-encoded colour; the
+// blend is a plain lerp of the linear working colour (Magpie's
+// sqrt(lerp(c*c, a*a, w)) linearised gamma-encoded input); the three passes are
+// separate compute shaders sharing this header.
+//
+// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+#ifndef VEYRA_MLAA_HLSLI
+#define VEYRA_MLAA_HLSLI
+#include "AntiAlias.hlsli"
+
+static const uint MAX_EDGE_LENGTH = 7;
+#endif
diff --git a/shaders/AaMlaaBlend.hlsl b/shaders/AaMlaaBlend.hlsl
new file mode 100644
index 00000000..f04e21e4
--- /dev/null
+++ b/shaders/AaMlaaBlend.hlsl
@@ -0,0 +1,83 @@
+// MLAA pass 3 (#53): morphological blending (notice and changes in AaMlaa.hlsli).
+#include "AaMlaa.hlsli"
+Texture2D<float4> source : register(t0); // linear working colour
+Texture2D<float> luma : register(t1); // AaLuma output
+Texture2D<float4> edgeCounts : register(t2);
+RWTexture2D<float4> target : register(u0);
+
+float4 LoadColor(int2 p) { return source.Load(int3(AaClamp(p), 0)); }
+float LoadLuma(int2 p) { return luma.Load(int3(AaClamp(p), 0)); }
+
+uint DecodeRaw(float value) {
+ return (uint)round(saturate(value) * 15.0);
+}
+
+bool ColorsDiffer(int2 a, int2 b) {
+ return abs(LoadLuma(a) - LoadLuma(b)) > aaThreshold;
+}
+
+void BlendEdge(float2 encodedCounts, int2 edgePos, int2 acrossEdge,
+ int2 alongEdge, bool inverse, inout float4 color) {
+ const uint rawNegative = DecodeRaw(encodedCounts.x);
+ const uint rawPositive = DecodeRaw(encodedCounts.y);
+ const bool negativeEnd = rawNegative >= 8;
+ const bool positiveEnd = rawPositive >= 8;
+ if (!negativeEnd && !positiveEnd) return;
+ uint negativeCount = rawNegative & 7;
+ uint positiveCount = rawPositive & 7;
+ const float4 adjacent = LoadColor(edgePos + acrossEdge);
+ if (negativeCount + positiveCount == 0) {
+ const float weight = 0.125 * aaStrength;
+ color.rgb = lerp(color.rgb, adjacent.rgb, weight);
+ return;
+ }
+ if (!positiveEnd) positiveCount = MAX_EDGE_LENGTH + 1;
+ if (!negativeEnd) negativeCount = MAX_EDGE_LENGTH + 1;
+ const float length = negativeCount + positiveCount + 1.0;
+ const float midpoint = length * 0.5;
+ const float distance = negativeCount;
+ uint shape = 0;
+ if (ColorsDiffer(edgePos - alongEdge * int(negativeCount),
+ edgePos - alongEdge * int(negativeCount + 1))) shape |= 1;
+ if (ColorsDiffer(edgePos + alongEdge * int(positiveCount),
+ edgePos + alongEdge * int(positiveCount + 1))) shape |= 2;
+ const bool shouldBlend =
+ (inverse && ((shape == 2 && float(negativeCount) <= midpoint) ||
+ (shape == 1 && float(negativeCount) >= midpoint) || shape == 0)) ||
+ (!inverse && ((shape == 2 && float(negativeCount) >= midpoint) ||
+ (shape == 1 && float(negativeCount) <= midpoint) || shape == 3));
+ if (shouldBlend) {
+ const float h0 = abs((length - distance) / length - 0.5);
+ const float h1 = abs((length - distance - 1.0) / length - 0.5);
+ const float area = 0.5 * (h0 + h1) * aaStrength;
+ color.rgb = lerp(color.rgb, adjacent.rgb, area);
+ }
+}
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ const int2 p = int2(id.xy);
+ float4 color = LoadColor(p);
+
+ const float4 current = edgeCounts.Load(int3(p, 0));
+ const int2 below = AaClamp(p + int2(0, 1));
+ const int2 left = AaClamp(p + int2(-1, 0));
+ const float2 belowHorizontal = edgeCounts.Load(int3(below, 0)).xy;
+ const float2 leftVertical = edgeCounts.Load(int3(left, 0)).zw;
+
+ if (any(current.xy > 0)) {
+ BlendEdge(current.xy, p, int2(0, -1), int2(1, 0), false, color);
+ }
+ if (any(belowHorizontal > 0)) {
+ BlendEdge(belowHorizontal, below, int2(0, 1), int2(1, 0), true, color);
+ }
+ if (any(current.zw > 0)) {
+ BlendEdge(current.zw, p, int2(1, 0), int2(0, -1), false, color);
+ }
+ if (any(leftVertical > 0)) {
+ BlendEdge(leftVertical, left, int2(-1, 0), int2(0, -1), true, color);
+ }
+
+ target[id.xy] = color;
+}
diff --git a/shaders/AaMlaaCounts.hlsl b/shaders/AaMlaaCounts.hlsl
new file mode 100644
index 00000000..f8ca0ab0
--- /dev/null
+++ b/shaders/AaMlaaCounts.hlsl
@@ -0,0 +1,52 @@
+// MLAA pass 2 (#53): morphological line search (notice and changes in AaMlaa.hlsli).
+#include "AaMlaa.hlsli"
+Texture2D<float2> edgeMask : register(t0);
+RWTexture2D<float4> edgeCounts : register(u0);
+
+float LoadEdge(int2 p, uint channel) {
+ return edgeMask.Load(int3(AaClamp(p), 0))[channel];
+}
+
+// Low three bits contain the length; bit 3 records a found endpoint.
+float EncodeCount(uint count, bool endpointFound) {
+ return float(min(count, MAX_EDGE_LENGTH) + (endpointFound ? 8 : 0)) / 15.0;
+}
+
+float2 SearchEdge(int2 p, int2 negativeDir, int2 positiveDir, uint channel) {
+ uint negativeCount = 0;
+ uint positiveCount = 0;
+ bool negativeActive = true;
+ bool positiveActive = true;
+ bool negativeEnd = false;
+ bool positiveEnd = false;
+ [unroll]
+ for (uint i = 1; i <= MAX_EDGE_LENGTH; ++i) {
+ if (negativeActive) {
+ if (LoadEdge(p + negativeDir * int(i), channel) > 0.5) ++negativeCount;
+ else { negativeActive = false; negativeEnd = true; }
+ }
+ if (positiveActive) {
+ if (LoadEdge(p + positiveDir * int(i), channel) > 0.5) ++positiveCount;
+ else { positiveActive = false; positiveEnd = true; }
+ }
+ }
+ return float2(EncodeCount(negativeCount, negativeEnd),
+ EncodeCount(positiveCount, positiveEnd));
+}
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ const int2 p = int2(id.xy);
+ const float2 edges = edgeMask.Load(int3(p, 0)).rg;
+ float4 result = 0;
+
+ if (edges.r > 0.5) {
+ result.xy = SearchEdge(p, int2(-1, 0), int2(1, 0), 0);
+ }
+ if (edges.g > 0.5) {
+ result.zw = SearchEdge(p, int2(0, 1), int2(0, -1), 1);
+ }
+
+ edgeCounts[id.xy] = result;
+}
diff --git a/shaders/AaMlaaEdges.hlsl b/shaders/AaMlaaEdges.hlsl
new file mode 100644
index 00000000..2fc0a868
--- /dev/null
+++ b/shaders/AaMlaaEdges.hlsl
@@ -0,0 +1,19 @@
+// MLAA pass 1 (#53): edge detection (notice and changes in AaMlaa.hlsli).
+#include "AaMlaa.hlsli"
+Texture2D<float> luma : register(t0);
+RWTexture2D<float2> edgeMask : register(u0);
+
+float LoadLuma(int2 p) { return luma.Load(int3(AaClamp(p), 0)); }
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ const int2 p = int2(id.xy);
+ const float center = LoadLuma(p);
+ const float upper = LoadLuma(p + int2(0, -1));
+ const float right = LoadLuma(p + int2(1, 0));
+
+ // R: edge above this pixel. G: edge to the right of this pixel.
+ edgeMask[id.xy] = float2(abs(center - upper) > aaThreshold ? 1.0 : 0.0,
+ abs(center - right) > aaThreshold ? 1.0 : 0.0);
+}
diff --git a/shaders/AaSmaaBlend.hlsl b/shaders/AaSmaaBlend.hlsl
new file mode 100644
index 00000000..87326e16
--- /dev/null
+++ b/shaders/AaSmaaBlend.hlsl
@@ -0,0 +1,15 @@
+// SMAA pass 3 (#53): neighbourhood blending of the linear working colour.
+#include "AntiAlias.hlsli"
+#define SMAA_RT_METRICS float4(aaInvWidth, aaInvHeight, float(aaWidth), float(aaHeight))
+#define SMAA_LINEAR_SAMPLER aaLinearSampler
+#define SMAA_POINT_SAMPLER aaPointSampler
+#include "Smaa.hlsli"
+Texture2D<float4> colorTex : register(t0);
+Texture2D<float4> blendTex : register(t1);
+RWTexture2D<float4> target : register(u0);
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ target[id.xy] = SMAANeighborhoodBlending(id.xy, colorTex, blendTex);
+}
diff --git a/shaders/AaSmaaEdges.hlsl b/shaders/AaSmaaEdges.hlsl
new file mode 100644
index 00000000..246d04c1
--- /dev/null
+++ b/shaders/AaSmaaEdges.hlsl
@@ -0,0 +1,57 @@
+// SMAA pass 1 (#53): luma edge detection on the perceptual luma texture.
+// SMAALumaEdgeDetectionPS of iryoku/smaa via SAOG0721/Magpie d687997 (MIT notice
+// in Smaa.hlsli); point samples with clamp addressing are clamped Loads here and
+// the threshold of the selected preset is a root constant.
+#include "AntiAlias.hlsli"
+#ifndef SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR
+#define SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR 2.0
+#endif
+Texture2D<float> luma : register(t0);
+RWTexture2D<float2> edges : register(u0);
+
+float LumaAt(int2 p) { return luma.Load(int3(AaClamp(p), 0)); }
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ const int2 p = int2(id.xy);
+ const float2 threshold = float2(aaThreshold, aaThreshold);
+
+ // Calculate lumas:
+ const float L = LumaAt(p);
+ const float Lleft = LumaAt(p + int2(-1, 0));
+ const float Ltop = LumaAt(p + int2(0, -1));
+
+ // We do the usual threshold:
+ float4 delta;
+ delta.xy = abs(L - float2(Lleft, Ltop));
+ float2 e = step(threshold, delta.xy);
+
+ // Then stop if there is no edge:
+ if (dot(e, float2(1.0, 1.0)) == 0.0) {
+ edges[id.xy] = float2(0.0, 0.0);
+ return;
+ }
+
+ // Calculate right and bottom deltas:
+ const float Lright = LumaAt(p + int2(1, 0));
+ const float Lbottom = LumaAt(p + int2(0, 1));
+ delta.zw = abs(L - float2(Lright, Lbottom));
+
+ // Calculate the maximum delta in the direct neighborhood:
+ float2 maxDelta = max(delta.xy, delta.zw);
+
+ // Calculate left-left and top-top deltas:
+ const float Lleftleft = LumaAt(p + int2(-2, 0));
+ const float Ltoptop = LumaAt(p + int2(0, -2));
+ delta.zw = abs(float2(Lleft, Ltop) - float2(Lleftleft, Ltoptop));
+
+ // Calculate the final maximum delta:
+ maxDelta = max(maxDelta.xy, delta.zw);
+ const float finalDelta = max(maxDelta.x, maxDelta.y);
+
+ // Local contrast adaptation:
+ e.xy *= step(finalDelta, SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR * delta.xy);
+
+ edges[id.xy] = e;
+}
diff --git a/shaders/AaSmaaWeights.hlsl b/shaders/AaSmaaWeights.hlsl
new file mode 100644
index 00000000..8b37c9fc
--- /dev/null
+++ b/shaders/AaSmaaWeights.hlsl
@@ -0,0 +1,19 @@
+// SMAA pass 2 (#53): blending weight calculation. The preset (SMAA_PRESET_LOW /
+// MEDIUM / HIGH / ULTRA) is set by the build; subsample indices are root
+// constants (zero for SMAA 1x, the official T2x / 4x sets for the experimental
+// no-jitter temporal modes).
+#include "AntiAlias.hlsli"
+#define SMAA_RT_METRICS float4(aaInvWidth, aaInvHeight, float(aaWidth), float(aaHeight))
+#define SMAA_LINEAR_SAMPLER aaLinearSampler
+#define SMAA_POINT_SAMPLER aaPointSampler
+#include "Smaa.hlsli"
+Texture2D<float2> edgesTex : register(t0);
+Texture2D<float4> areaTex : register(t1); // R8G8 lookup table, 160x560
+Texture2D<float> searchTex : register(t2); // R8 lookup table, 64x16
+RWTexture2D<float4> weights : register(u0);
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ weights[id.xy] = SMAABlendingWeightCalculationPS(AaTexcoord(id.xy), edgesTex, areaTex, searchTex, aaSubsampleIndices);
+}
diff --git a/shaders/AaTemporalResolve.hlsl b/shaders/AaTemporalResolve.hlsl
new file mode 100644
index 00000000..6a5ea187
--- /dev/null
+++ b/shaders/AaTemporalResolve.hlsl
@@ -0,0 +1,41 @@
+// Experimental no-jitter temporal SMAA resolve (#53), after the "Clamped
+// temporal resolve" pass of SMAA_T2x_NoJitter_Experimental.hlsl /
+// SMAA_4x_NoJitter_Experimental.hlsl in SAOG0721/Magpie d687997 (GPL-3.0).
+// Captured frames cannot be jittered, so this is an approximation of SMAA T2x /
+// 4x: the official subsample-index sets alternate per frame (AaSmaaWeights) and
+// the history is clamped to the current 3x3 neighbourhood. Veyra changes: the
+// colours are linear (the rejection distance is measured on the perceptual
+// transfer of AntiAlias.hlsli), history validity is a root constant set by the
+// pass (reset on seek, scene cut and rebuild) instead of the history alpha, and
+// the centre's alpha is kept.
+#include "AntiAlias.hlsli"
+Texture2D<float4> current : register(t0);
+Texture2D<float4> history : register(t1);
+RWTexture2D<float4> target : register(u0);
+
+[numthreads(8, 8, 1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x >= aaWidth || id.y >= aaHeight) return;
+ const int2 p = int2(id.xy);
+ const float4 now = current.Load(int3(p, 0));
+ float3 neighborhoodMin = now.rgb;
+ float3 neighborhoodMax = now.rgb;
+
+ [unroll]
+ for (int y = -1; y <= 1; ++y) {
+ [unroll]
+ for (int x = -1; x <= 1; ++x) {
+ const float3 sampleColor = current.Load(int3(AaClamp(p + int2(x, y)), 0)).rgb;
+ neighborhoodMin = min(neighborhoodMin, sampleColor);
+ neighborhoodMax = max(neighborhoodMax, sampleColor);
+ }
+ }
+
+ const float3 previous = clamp(history.Load(int3(p, 0)).rgb, neighborhoodMin, neighborhoodMax);
+ const float3 difference = abs(AaPerceptual3(previous) - AaPerceptual3(now.rgb));
+ const float maxDifference = max(difference.r, max(difference.g, difference.b));
+ const float confidence = saturate(1.0 - maxDifference * aaHistoryRejection);
+ const float weight = aaHistoryWeight * confidence * aaHistoryValid;
+
+ target[id.xy] = float4(lerp(now.rgb, previous, weight), now.a);
+}
diff --git a/shaders/AntiAlias.hlsli b/shaders/AntiAlias.hlsli
new file mode 100644
index 00000000..b65a5f8c
--- /dev/null
+++ b/shaders/AntiAlias.hlsli
@@ -0,0 +1,37 @@
+// Spatial anti-aliasing (#53): constants and colour domain shared by every pass.
+//
+// Working textures are linear FP16. SDR: BT.709 with white = 1.0. HDR working:
+// scRGB (1 = 80 cd/m2) with the 203-nit reference white; aaWorkingToWhite maps
+// either one to "1.0 = white". Edges are found on a perceptual luma: the sRGB
+// transfer below white, continued logarithmically above it with the same slope
+// at 1.0, so HDR highlights still form edges without dominating the thresholds
+// the algorithms were tuned with on gamma-encoded SDR. Every colour blend uses
+// the linear values, which keeps HDR highlights and out-of-709 (negative)
+// components exactly where no edge is found.
+#ifndef VEYRA_ANTI_ALIAS_HLSLI
+#define VEYRA_ANTI_ALIAS_HLSLI
+
+cbuffer AaParams : register(b0) {
+ uint aaWidth; uint aaHeight; float aaInvWidth; float aaInvHeight;
+ float aaWorkingToWhite; float aaThreshold; float aaStrength; float aaHistoryWeight;
+ float4 aaSubsampleIndices;
+ float aaHistoryRejection; float aaHistoryValid; float aaReserved0; float aaReserved1;
+};
+SamplerState aaPointSampler : register(s0); // point, clamp
+SamplerState aaLinearSampler : register(s1); // bilinear, clamp
+
+float AaPerceptual(float relative) {
+ const float y = max(relative, 0.0);
+ if (y > 1.0) return 1.0 + 0.30469 * log2(y); // 0.30469 = ln(2) * 1.055 / 2.4
+ return y <= 0.0031308 ? 12.92 * y : 1.055 * pow(y, 1.0 / 2.4) - 0.055;
+}
+float AaLumaOf(float3 linearRgb) {
+ return AaPerceptual(dot(linearRgb, float3(0.2126, 0.7152, 0.0722)) * aaWorkingToWhite);
+}
+float3 AaPerceptual3(float3 linearRgb) {
+ const float3 c = linearRgb * aaWorkingToWhite;
+ return float3(AaPerceptual(c.r), AaPerceptual(c.g), AaPerceptual(c.b));
+}
+int2 AaClamp(int2 p) { return clamp(p, int2(0, 0), int2(aaWidth, aaHeight) - 1); }
+float2 AaTexcoord(uint2 p) { return (float2(p) + 0.5) * float2(aaInvWidth, aaInvHeight); }
+#endif
diff --git a/shaders/Smaa.hlsli b/shaders/Smaa.hlsli
new file mode 100644
index 00000000..0f3a3357
--- /dev/null
+++ b/shaders/Smaa.hlsli
@@ -0,0 +1,588 @@
+// SMAA for Veyra's anti-aliasing effect (#53).
+// Ported from SAOG0721/Magpie d687997 src/Effects/SMAA/SMAA.hlsli (GPL-3.0),
+// itself ported from https://github.com/iryoku/smaa. Magpie's changes: vertex
+// shader work moved into the pixel shader; predication / temporal
+// supersampling / cross-platform code removed; SMAA_LINEAR_SAMPLER and
+// SMAA_POINT_SAMPLER; no discard in edge detection.
+// Veyra changes: luma edge detection lives in AaSmaaEdges.hlsl and reads the
+// perceptual luma texture (AntiAlias.hlsli); neighbourhood blending takes the
+// pixel position and passes pixels without blending weights through with an
+// exact Load; the long integration guide of the original header is omitted
+// (see http://www.iryoku.com/smaa/). The blending weight code is unchanged.
+
+/**
+ * Copyright (C) 2013 Jorge Jimenez ([email protected])
+ * Copyright (C) 2013 Jose I. Echevarria ([email protected])
+ * Copyright (C) 2013 Belen Masia ([email protected])
+ * Copyright (C) 2013 Fernando Navarro ([email protected])
+ * Copyright (C) 2013 Diego Gutierrez ([email protected])
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is furnished to
+ * do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software. As clarification, there
+ * is no requirement that the copyright notice and permission be included in
+ * binary distributions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifndef VEYRA_SMAA_HLSLI
+#define VEYRA_SMAA_HLSLI
+
+//-----------------------------------------------------------------------------
+// SMAA Presets
+
+#if defined(SMAA_PRESET_LOW)
+#define SMAA_THRESHOLD 0.15
+#define SMAA_MAX_SEARCH_STEPS 4
+#define SMAA_DISABLE_DIAG_DETECTION
+#define SMAA_DISABLE_CORNER_DETECTION
+#elif defined(SMAA_PRESET_MEDIUM)
+#define SMAA_THRESHOLD 0.1
+#define SMAA_MAX_SEARCH_STEPS 8
+#define SMAA_DISABLE_DIAG_DETECTION
+#define SMAA_DISABLE_CORNER_DETECTION
+#elif defined(SMAA_PRESET_HIGH)
+#define SMAA_THRESHOLD 0.1
+#define SMAA_MAX_SEARCH_STEPS 16
+#define SMAA_MAX_SEARCH_STEPS_DIAG 8
+#define SMAA_CORNER_ROUNDING 25
+#elif defined(SMAA_PRESET_ULTRA)
+#define SMAA_THRESHOLD 0.05
+#define SMAA_MAX_SEARCH_STEPS 32
+#define SMAA_MAX_SEARCH_STEPS_DIAG 16
+#define SMAA_CORNER_ROUNDING 25
+#endif
+
+//-----------------------------------------------------------------------------
+// Configurable Defines
+
+#ifndef SMAA_THRESHOLD
+#define SMAA_THRESHOLD 0.1
+#endif
+#ifndef SMAA_MAX_SEARCH_STEPS
+#define SMAA_MAX_SEARCH_STEPS 16
+#endif
+#ifndef SMAA_MAX_SEARCH_STEPS_DIAG
+#define SMAA_MAX_SEARCH_STEPS_DIAG 8
+#endif
+#ifndef SMAA_CORNER_ROUNDING
+#define SMAA_CORNER_ROUNDING 25
+#endif
+#ifndef SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR
+#define SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR 2.0
+#endif
+
+//-----------------------------------------------------------------------------
+// Texture Access Defines
+
+#ifndef SMAA_AREATEX_SELECT
+#define SMAA_AREATEX_SELECT(sample) sample.rg
+#endif
+#ifndef SMAA_SEARCHTEX_SELECT
+#define SMAA_SEARCHTEX_SELECT(sample) sample.r
+#endif
+
+//-----------------------------------------------------------------------------
+// Non-Configurable Defines
+
+#define SMAA_AREATEX_MAX_DISTANCE 16
+#define SMAA_AREATEX_MAX_DISTANCE_DIAG 20
+#define SMAA_AREATEX_PIXEL_SIZE (1.0 / float2(160.0, 560.0))
+#define SMAA_AREATEX_SUBTEX_SIZE (1.0 / 7.0)
+#define SMAA_SEARCHTEX_SIZE float2(66.0, 33.0)
+#define SMAA_SEARCHTEX_PACKED_SIZE float2(64.0, 16.0)
+#define SMAA_CORNER_ROUNDING_NORM (float(SMAA_CORNER_ROUNDING) / 100.0)
+
+//-----------------------------------------------------------------------------
+// Porting Functions
+
+#define SMAATexturePass2D(tex) tex
+#define SMAASampleLevelZero(tex, coord) tex.SampleLevel(SMAA_LINEAR_SAMPLER, coord, 0)
+#define SMAASampleLevelZeroOffset(tex, coord, offset) tex.SampleLevel(SMAA_LINEAR_SAMPLER, coord, 0, offset)
+#define SMAASample(tex, coord) tex.SampleLevel(SMAA_LINEAR_SAMPLER, coord, 0)
+#define SMAASamplePoint(tex, coord) tex.SampleLevel(SMAA_POINT_SAMPLER, coord, 0)
+#define SMAA_FLATTEN [flatten]
+#define SMAA_BRANCH [branch]
+
+//-----------------------------------------------------------------------------
+// Misc functions
+
+/**
+ * Conditional move:
+ */
+void SMAAMovc(bool2 cond, inout float2 variable, float2 value) {
+ SMAA_FLATTEN if (cond.x) variable.x = value.x;
+ SMAA_FLATTEN if (cond.y) variable.y = value.y;
+}
+
+void SMAAMovc(bool4 cond, inout float4 variable, float4 value) {
+ SMAAMovc(cond.xy, variable.xy, value.xy);
+ SMAAMovc(cond.zw, variable.zw, value.zw);
+}
+
+//-----------------------------------------------------------------------------
+// Diagonal Search Functions
+
+#if !defined(SMAA_DISABLE_DIAG_DETECTION)
+
+/**
+ * Allows to decode two binary values from a bilinear-filtered access.
+ */
+float2 SMAADecodeDiagBilinearAccess(float2 e) {
+ // Bilinear access for fetching 'e' have a 0.25 offset, and we are
+ // interested in the R and G edges:
+ //
+ // +---G---+-------+
+ // | x o R x |
+ // +-------+-------+
+ //
+ // Then, if one of these edge is enabled:
+ // Red: (0.75 * X + 0.25 * 1) => 0.25 or 1.0
+ // Green: (0.75 * 1 + 0.25 * X) => 0.75 or 1.0
+ //
+ // This function will unpack the values (mad + mul + round):
+ // wolframalpha.com: round(x * abs(5 * x - 5 * 0.75)) plot 0 to 1
+ e.r = e.r * abs(5.0 * e.r - 5.0 * 0.75);
+ return round(e);
+}
+
+float4 SMAADecodeDiagBilinearAccess(float4 e) {
+ e.rb = e.rb * abs(5.0 * e.rb - 5.0 * 0.75);
+ return round(e);
+}
+
+/**
+ * These functions allows to perform diagonal pattern searches.
+ */
+float2 SMAASearchDiag1(Texture2D<float2> edgesTex, float2 texcoord, float2 dir, out float2 e) {
+ float4 coord = float4(texcoord, -1.0, 1.0);
+ float3 t = float3(SMAA_RT_METRICS.xy, 1.0);
+ e = float2(0.0, 0.0);
+ while (coord.z < float(SMAA_MAX_SEARCH_STEPS_DIAG - 1) &&
+ coord.w > 0.9) {
+ coord.xyz = mad(t, float3(dir, 1.0), coord.xyz);
+ e = SMAASampleLevelZero(edgesTex, coord.xy).rg;
+ coord.w = dot(e, float2(0.5, 0.5));
+ }
+ return coord.zw;
+}
+
+float2 SMAASearchDiag2(Texture2D<float2> edgesTex, float2 texcoord, float2 dir, out float2 e) {
+ float4 coord = float4(texcoord, -1.0, 1.0);
+ coord.x += 0.25 * SMAA_RT_METRICS.x; // See @SearchDiag2Optimization
+ float3 t = float3(SMAA_RT_METRICS.xy, 1.0);
+ e = float2(0.0, 0.0);
+ while (coord.z < float(SMAA_MAX_SEARCH_STEPS_DIAG - 1) &&
+ coord.w > 0.9) {
+ coord.xyz = mad(t, float3(dir, 1.0), coord.xyz);
+
+ // @SearchDiag2Optimization
+ // Fetch both edges at once using bilinear filtering:
+ e = SMAASampleLevelZero(edgesTex, coord.xy).rg;
+ e = SMAADecodeDiagBilinearAccess(e);
+
+ coord.w = dot(e, float2(0.5, 0.5));
+ }
+ return coord.zw;
+}
+
+/**
+ * Similar to SMAAArea, this calculates the area corresponding to a certain
+ * diagonal distance and crossing edges 'e'.
+ */
+float2 SMAAAreaDiag(Texture2D<float4> areaTex, float2 dist, float2 e, float offset) {
+ float2 texcoord = mad(float2(SMAA_AREATEX_MAX_DISTANCE_DIAG, SMAA_AREATEX_MAX_DISTANCE_DIAG), e, dist);
+
+ // We do a scale and bias for mapping to texel space:
+ texcoord = mad(SMAA_AREATEX_PIXEL_SIZE, texcoord, 0.5 * SMAA_AREATEX_PIXEL_SIZE);
+
+ // Diagonal areas are on the second half of the texture:
+ texcoord.x += 0.5;
+
+ // Move to proper place, according to the subpixel offset:
+ texcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;
+
+ // Do it!
+ return SMAA_AREATEX_SELECT(SMAASampleLevelZero(areaTex, texcoord));
+}
+
+/**
+ * This searches for diagonal patterns and returns the corresponding weights.
+ */
+float2 SMAACalculateDiagWeights(Texture2D<float2> edgesTex, Texture2D<float4> areaTex, float2 texcoord, float2 e, float4 subsampleIndices) {
+ float2 weights = float2(0.0, 0.0);
+
+ // Search for the line ends:
+ float4 d;
+ float2 end;
+ if (e.r > 0.0) {
+ d.xz = SMAASearchDiag1(SMAATexturePass2D(edgesTex), texcoord, float2(-1.0, 1.0), end);
+ d.x += float(end.y > 0.9);
+ } else
+ d.xz = float2(0.0, 0.0);
+ d.yw = SMAASearchDiag1(SMAATexturePass2D(edgesTex), texcoord, float2(1.0, -1.0), end);
+
+ SMAA_BRANCH
+ if (d.x + d.y > 2.0) { // d.x + d.y + 1 > 3
+ // Fetch the crossing edges:
+ float4 coords = mad(float4(-d.x + 0.25, d.x, d.y, -d.y - 0.25), SMAA_RT_METRICS.xyxy, texcoord.xyxy);
+ float4 c;
+ c.xy = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2(-1, 0)).rg;
+ c.zw = SMAASampleLevelZeroOffset(edgesTex, coords.zw, int2(1, 0)).rg;
+ c.yxwz = SMAADecodeDiagBilinearAccess(c.xyzw);
+
+ // Merge crossing edges at each side into a single value:
+ float2 cc = mad(float2(2.0, 2.0), c.xz, c.yw);
+
+ // Remove the crossing edge if we didn't found the end of the line:
+ SMAAMovc(bool2(step(0.9, d.zw)), cc, float2(0.0, 0.0));
+
+ // Fetch the areas for this line:
+ weights += SMAAAreaDiag(SMAATexturePass2D(areaTex), d.xy, cc, subsampleIndices.z);
+ }
+
+ // Search for the line ends:
+ d.xz = SMAASearchDiag2(SMAATexturePass2D(edgesTex), texcoord, float2(-1.0, -1.0), end);
+ if (SMAASampleLevelZeroOffset(edgesTex, texcoord, int2(1, 0)).r > 0.0) {
+ d.yw = SMAASearchDiag2(SMAATexturePass2D(edgesTex), texcoord, float2(1.0, 1.0), end);
+ d.y += float(end.y > 0.9);
+ } else
+ d.yw = float2(0.0, 0.0);
+
+ SMAA_BRANCH
+ if (d.x + d.y > 2.0) { // d.x + d.y + 1 > 3
+ // Fetch the crossing edges:
+ float4 coords = mad(float4(-d.x, -d.x, d.y, d.y), SMAA_RT_METRICS.xyxy, texcoord.xyxy);
+ float4 c;
+ c.x = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2(-1, 0)).g;
+ c.y = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2(0, -1)).r;
+ c.zw = SMAASampleLevelZeroOffset(edgesTex, coords.zw, int2(1, 0)).gr;
+ float2 cc = mad(float2(2.0, 2.0), c.xz, c.yw);
+
+ // Remove the crossing edge if we didn't found the end of the line:
+ SMAAMovc(bool2(step(0.9, d.zw)), cc, float2(0.0, 0.0));
+
+ // Fetch the areas for this line:
+ weights += SMAAAreaDiag(SMAATexturePass2D(areaTex), d.xy, cc, subsampleIndices.w).gr;
+ }
+
+ return weights;
+}
+#endif
+
+//-----------------------------------------------------------------------------
+// Horizontal/Vertical Search Functions
+
+/**
+ * This allows to determine how much length should we add in the last step
+ * of the searches. It takes the bilinearly interpolated edge (see
+ * @PSEUDO_GATHER4), and adds 0, 1 or 2, depending on which edges and
+ * crossing edges are active.
+ */
+float SMAASearchLength(Texture2D<float> searchTex, float2 e, float offset) {
+ // The texture is flipped vertically, with left and right cases taking half
+ // of the space horizontally:
+ float2 scale = SMAA_SEARCHTEX_SIZE * float2(0.5, -1.0);
+ float2 bias = SMAA_SEARCHTEX_SIZE * float2(offset, 1.0);
+
+ // Scale and bias to access texel centers:
+ scale += float2(-1.0, 1.0);
+ bias += float2(0.5, -0.5);
+
+ // Convert from pixel coordinates to texcoords:
+ // (We use SMAA_SEARCHTEX_PACKED_SIZE because the texture is cropped)
+ scale *= 1.0 / SMAA_SEARCHTEX_PACKED_SIZE;
+ bias *= 1.0 / SMAA_SEARCHTEX_PACKED_SIZE;
+
+ // Lookup the search texture:
+ return SMAA_SEARCHTEX_SELECT(SMAASampleLevelZero(searchTex, mad(scale, e, bias)));
+}
+
+/**
+ * Horizontal/vertical search functions for the 2nd pass.
+ */
+float SMAASearchXLeft(Texture2D<float2> edgesTex, Texture2D<float> searchTex, float2 texcoord, float end) {
+ /**
+ * @PSEUDO_GATHER4
+ * This texcoord has been offset by (-0.25, -0.125) in the vertex shader to
+ * sample between edge, thus fetching four edges in a row.
+ * Sampling with different offsets in each direction allows to disambiguate
+ * which edges are active from the four fetched ones.
+ */
+ float2 e = float2(0.0, 1.0);
+ while (texcoord.x > end &&
+ e.g > 0.8281 && // Is there some edge not activated?
+ e.r == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(-float2(2.0, 0.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e, 0.0), 3.25);
+ return mad(SMAA_RT_METRICS.x, offset, texcoord.x);
+}
+
+float SMAASearchXRight(Texture2D<float2> edgesTex, Texture2D<float> searchTex, float2 texcoord, float end) {
+ float2 e = float2(0.0, 1.0);
+ while (texcoord.x < end &&
+ e.g > 0.8281 && // Is there some edge not activated?
+ e.r == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(float2(2.0, 0.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e, 0.5), 3.25);
+ return mad(-SMAA_RT_METRICS.x, offset, texcoord.x);
+}
+
+float SMAASearchYUp(Texture2D<float2> edgesTex, Texture2D<float> searchTex, float2 texcoord, float end) {
+ float2 e = float2(1.0, 0.0);
+ while (texcoord.y > end &&
+ e.r > 0.8281 && // Is there some edge not activated?
+ e.g == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(-float2(0.0, 2.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e.gr, 0.0), 3.25);
+ return mad(SMAA_RT_METRICS.y, offset, texcoord.y);
+}
+
+float SMAASearchYDown(Texture2D<float2> edgesTex, Texture2D<float> searchTex, float2 texcoord, float end) {
+ float2 e = float2(1.0, 0.0);
+ while (texcoord.y < end &&
+ e.r > 0.8281 && // Is there some edge not activated?
+ e.g == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(float2(0.0, 2.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e.gr, 0.5), 3.25);
+ return mad(-SMAA_RT_METRICS.y, offset, texcoord.y);
+}
+
+/**
+ * Ok, we have the distance and both crossing edges. So, what are the areas
+ * at each side of current edge?
+ */
+float2 SMAAArea(Texture2D<float4> areaTex, float2 dist, float e1, float e2, float offset) {
+ // Rounding prevents precision errors of bilinear filtering:
+ float2 texcoord = mad(float2(SMAA_AREATEX_MAX_DISTANCE, SMAA_AREATEX_MAX_DISTANCE), round(4.0 * float2(e1, e2)), dist);
+
+ // We do a scale and bias for mapping to texel space:
+ texcoord = mad(SMAA_AREATEX_PIXEL_SIZE, texcoord, 0.5 * SMAA_AREATEX_PIXEL_SIZE);
+
+ // Move to proper place, according to the subpixel offset:
+ texcoord.y = mad(SMAA_AREATEX_SUBTEX_SIZE, offset, texcoord.y);
+
+ // Do it!
+ return SMAA_AREATEX_SELECT(SMAASampleLevelZero(areaTex, texcoord));
+}
+
+//-----------------------------------------------------------------------------
+// Corner Detection Functions
+
+void SMAADetectHorizontalCornerPattern(Texture2D<float2> edgesTex, inout float2 weights, float4 texcoord, float2 d) {
+#if !defined(SMAA_DISABLE_CORNER_DETECTION)
+ float2 leftRight = step(d.xy, d.yx);
+ float2 rounding = (1.0 - SMAA_CORNER_ROUNDING_NORM) * leftRight;
+
+ rounding /= leftRight.x + leftRight.y; // Reduce blending for pixels in the center of a line.
+
+ float2 factor = float2(1.0, 1.0);
+ factor.x -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2(0, 1)).r;
+ factor.x -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2(1, 1)).r;
+ factor.y -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2(0, -2)).r;
+ factor.y -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2(1, -2)).r;
+
+ weights *= saturate(factor);
+#endif
+}
+
+void SMAADetectVerticalCornerPattern(Texture2D<float2> edgesTex, inout float2 weights, float4 texcoord, float2 d) {
+#if !defined(SMAA_DISABLE_CORNER_DETECTION)
+ float2 leftRight = step(d.xy, d.yx);
+ float2 rounding = (1.0 - SMAA_CORNER_ROUNDING_NORM) * leftRight;
+
+ rounding /= leftRight.x + leftRight.y;
+
+ float2 factor = float2(1.0, 1.0);
+ factor.x -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2(1, 0)).g;
+ factor.x -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2(1, 1)).g;
+ factor.y -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2(-2, 0)).g;
+ factor.y -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2(-2, 1)).g;
+
+ weights *= saturate(factor);
+#endif
+}
+
+//-----------------------------------------------------------------------------
+// Blending Weight Calculation (Second Pass)
+
+float4 SMAABlendingWeightCalculationPS(
+ float2 texcoord,
+ Texture2D<float2> edgesTex,
+ Texture2D<float4> areaTex,
+ Texture2D<float> searchTex,
+ float4 subsampleIndices // Just pass zero for SMAA 1x, see @SUBSAMPLE_INDICES.
+) {
+ float2 pixcoord = texcoord * SMAA_RT_METRICS.zw;
+
+ float4 offset[3];
+ // We will use these offsets for the searches later on (see @PSEUDO_GATHER4):
+ offset[0] = mad(SMAA_RT_METRICS.xyxy, float4(-0.25, -0.125, 1.25, -0.125), texcoord.xyxy);
+ offset[1] = mad(SMAA_RT_METRICS.xyxy, float4(-0.125, -0.25, -0.125, 1.25), texcoord.xyxy);
+
+ // And these for the searches, they indicate the ends of the loops:
+ offset[2] = mad(SMAA_RT_METRICS.xxyy,
+ float4(-2.0, 2.0, -2.0, 2.0) * float(SMAA_MAX_SEARCH_STEPS),
+ float4(offset[0].xz, offset[1].yw));
+
+ float4 weights = float4(0.0, 0.0, 0.0, 0.0);
+
+ float2 e = SMAASample(edgesTex, texcoord).rg;
+
+ SMAA_BRANCH
+ if (e.g > 0.0) { // Edge at north
+#if !defined(SMAA_DISABLE_DIAG_DETECTION)
+ // Diagonals have both north and west edges, so searching for them in
+ // one of the boundaries is enough.
+ weights.rg = SMAACalculateDiagWeights(SMAATexturePass2D(edgesTex), SMAATexturePass2D(areaTex), texcoord, e, subsampleIndices);
+
+ // We give priority to diagonals, so if we find a diagonal we skip
+ // horizontal/vertical processing.
+ SMAA_BRANCH
+ if (weights.r == -weights.g) { // weights.r + weights.g == 0.0
+#endif
+
+ float2 d;
+
+ // Find the distance to the left:
+ float3 coords;
+ coords.x = SMAASearchXLeft(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[0].xy, offset[2].x);
+ coords.y = offset[1].y; // offset[1].y = texcoord.y - 0.25 * SMAA_RT_METRICS.y (@CROSSING_OFFSET)
+ d.x = coords.x;
+
+ // Now fetch the left crossing edges, two at a time using bilinear
+ // filtering. Sampling at -0.25 (see @CROSSING_OFFSET) enables to
+ // discern what value each edge has:
+ float e1 = SMAASampleLevelZero(edgesTex, coords.xy).r;
+
+ // Find the distance to the right:
+ coords.z = SMAASearchXRight(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[0].zw, offset[2].y);
+ d.y = coords.z;
+
+ // We want the distances to be in pixel units (doing this here allow to
+ // better interleave arithmetic and memory accesses):
+ d = abs(round(mad(SMAA_RT_METRICS.zz, d, -pixcoord.xx)));
+
+ // SMAAArea below needs a sqrt, as the areas texture is compressed
+ // quadratically:
+ float2 sqrt_d = sqrt(d);
+
+ // Fetch the right crossing edges:
+ float e2 = SMAASampleLevelZeroOffset(edgesTex, coords.zy, int2(1, 0)).r;
+
+ // Ok, we know how this pattern looks like, now it is time for getting
+ // the actual area:
+ weights.rg = SMAAArea(SMAATexturePass2D(areaTex), sqrt_d, e1, e2, subsampleIndices.y);
+
+ // Fix corners:
+ coords.y = texcoord.y;
+ SMAADetectHorizontalCornerPattern(SMAATexturePass2D(edgesTex), weights.rg, coords.xyzy, d);
+
+#if !defined(SMAA_DISABLE_DIAG_DETECTION)
+ } else
+ e.r = 0.0; // Skip vertical processing.
+#endif
+ }
+
+ SMAA_BRANCH
+ if (e.r > 0.0) { // Edge at west
+ float2 d;
+
+ // Find the distance to the top:
+ float3 coords;
+ coords.y = SMAASearchYUp(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[1].xy, offset[2].z);
+ coords.x = offset[0].x; // offset[1].x = texcoord.x - 0.25 * SMAA_RT_METRICS.x;
+ d.x = coords.y;
+
+ // Fetch the top crossing edges:
+ float e1 = SMAASampleLevelZero(edgesTex, coords.xy).g;
+
+ // Find the distance to the bottom:
+ coords.z = SMAASearchYDown(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[1].zw, offset[2].w);
+ d.y = coords.z;
+
+ // We want the distances to be in pixel units:
+ d = abs(round(mad(SMAA_RT_METRICS.ww, d, -pixcoord.yy)));
+
+ // SMAAArea below needs a sqrt, as the areas texture is compressed
+ // quadratically:
+ float2 sqrt_d = sqrt(d);
+
+ // Fetch the bottom crossing edges:
+ float e2 = SMAASampleLevelZeroOffset(edgesTex, coords.xz, int2(0, 1)).g;
+
+ // Get the area for this direction:
+ weights.ba = SMAAArea(SMAATexturePass2D(areaTex), sqrt_d, e1, e2, subsampleIndices.x);
+
+ // Fix corners:
+ coords.x = texcoord.x;
+ SMAADetectVerticalCornerPattern(SMAATexturePass2D(edgesTex), weights.ba, coords.xyxz, d);
+ }
+
+ return weights;
+}
+
+//-----------------------------------------------------------------------------
+// Neighborhood Blending (Third Pass)
+
+float4 SMAANeighborhoodBlending(
+ uint2 pixel,
+ Texture2D<float4> colorTex,
+ Texture2D<float4> blendTex
+) {
+ const float2 texcoord = (float2(pixel) + 0.5) * SMAA_RT_METRICS.xy;
+ float4 offset = mad(SMAA_RT_METRICS.xyxy, float4(1.0, 0.0, 0.0, 1.0), texcoord.xyxy);
+
+ // Fetch the blending weights for current pixel:
+ float4 a;
+ a.x = SMAASample(blendTex, offset.xy).a; // Right
+ a.y = SMAASample(blendTex, offset.zw).g; // Top
+ a.wz = SMAASample(blendTex, texcoord).xz; // Bottom / Left
+
+ // Is there any blending weight with a value greater than 0.0?
+ SMAA_BRANCH
+ if (dot(a, float4(1.0, 1.0, 1.0, 1.0)) < 1e-5) {
+ return colorTex.Load(int3(pixel, 0)); // exact pass-through (Veyra)
+ } else {
+ bool h = max(a.x, a.z) > max(a.y, a.w); // max(horizontal) > max(vertical)
+
+ // Calculate the blending offsets:
+ float4 blendingOffset = float4(0.0, a.y, 0.0, a.w);
+ float2 blendingWeight = a.yw;
+ SMAAMovc(bool4(h, h, h, h), blendingOffset, float4(a.x, 0.0, a.z, 0.0));
+ SMAAMovc(bool2(h, h), blendingWeight, a.xz);
+ blendingWeight /= dot(blendingWeight, float2(1.0, 1.0));
+
+ // Calculate the texture coordinates:
+ float4 blendingCoord = mad(blendingOffset, float4(SMAA_RT_METRICS.xy, -SMAA_RT_METRICS.xy), texcoord.xyxy);
+
+ // We exploit bilinear filtering to mix current pixel with the chosen
+ // neighbor (linear working colour: the blend is in linear light):
+ float4 color = blendingWeight.x * SMAASampleLevelZero(colorTex, blendingCoord.xy);
+ color += blendingWeight.y * SMAASampleLevelZero(colorTex, blendingCoord.zw);
+
+ return color;
+ }
+}
+#endif
diff --git a/src/engine/EffectChain.cpp b/src/engine/EffectChain.cpp
index 12a8b517..d4b52568 100644
--- a/src/engine/EffectChain.cpp
+++ b/src/engine/EffectChain.cpp
@@ -14,8 +14,8 @@ constexpr std::array<EffectInfo, effectTypeCount> kCatalog{{
{EffectType::Protection, effectTypeName(EffectType::Protection), "NR 保护区域", 1, false, false, false, false, false},
{EffectType::VideoHdr, effectTypeName(EffectType::VideoHdr), "RTX Video HDR", 1, false, false, true, false, false},
{EffectType::FrameGeneration, effectTypeName(EffectType::FrameGeneration), "补帧", 1, false, true, false, false, false},
- // Hidden until their executors ship; the engine and file formats already know them.
- {EffectType::AntiAliasing, effectTypeName(EffectType::AntiAliasing), "抗锯齿", kMaxAntiAliasInstances, true, false, false, false, false, true},
+ // Beauty stays hidden until its executor ships; the engine and file formats already know it.
+ {EffectType::AntiAliasing, effectTypeName(EffectType::AntiAliasing), "抗锯齿", kMaxAntiAliasInstances, true, false, false, false, false, false},
{EffectType::Beauty, effectTypeName(EffectType::Beauty), "美颜", kMaxBeautyInstances, true, false, false, false, false, true},
}};
} // namespace
diff --git a/src/engine/TiledImageProcessor.cpp b/src/engine/TiledImageProcessor.cpp
index 7db59d4d..00309df8 100644
--- a/src/engine/TiledImageProcessor.cpp
+++ b/src/engine/TiledImageProcessor.cpp
@@ -29,6 +29,10 @@ bool TiledImageProcessor::process(gfx::D3D12DeviceContext& ctx,gfx::CommandSlotR
desc.sourceWidth=desc.workWidth=desc.nrWidth=tileW;
desc.sourceHeight=desc.workHeight=desc.nrHeight=tileH;
desc.rgbInput=true;desc.stillImage=true;desc.enableFg=false;desc.enableNvofStandalone=false;
+ // A plan compiled for the whole image describes none of these tile extents
+ // (the graph refuses it). Tiles run the list-order base: fused / additional
+ // grades as before, enabled anti-aliasing instances at source size.
+ desc.fixedExecutionPlan.reset();desc.fixedExecutionPlanError.clear();desc.runtimeNodeOrder=false;
pipeline::EnhanceGraph graph(ctx,ring);
if(!graph.initialize(desc)||!graph.createViews())return false;
AVFrame* raw=av_frame_alloc();
diff --git a/src/pipeline/AntiAliasPass.cpp b/src/pipeline/AntiAliasPass.cpp
new file mode 100644
index 00000000..9a69a1c9
--- /dev/null
+++ b/src/pipeline/AntiAliasPass.cpp
@@ -0,0 +1,199 @@
+#include "veyra/pipeline/AntiAliasPass.h"
+#include "veyra/pipeline/SmaaLookupTables.h"
+#include <bit>
+#include <cstring>
+#include <format>
+
+namespace veyra::pipeline {
+namespace {
+using engine::AntiAliasMethod;
+using engine::AntiAliasTemporal;
+constexpr const char* kFxaaShaders[]={"AaFxaa3.dxil","AaFxaa4.dxil","AaFxaa5.dxil"};
+constexpr const char* kSmaaWeightShaders[]={"AaSmaaWeightsLow.dxil","AaSmaaWeightsMedium.dxil","AaSmaaWeightsHigh.dxil","AaSmaaWeightsUltra.dxil"};
+// SMAA_THRESHOLD of the low / medium / high / ultra presets (iryoku/smaa).
+constexpr float kSmaaThresholds[]={0.15f,0.1f,0.1f,0.05f};
+constexpr const char* kFxaaTiers[]={"medium","high","ultra"};
+constexpr const char* kSmaaTiers[]={"low","medium","high","ultra"};
+// Official SMAA T2x / 4x subsample-index sets; captured frames are not jittered.
+constexpr float kT2xIndices[2][4]={{1,1,1,0},{2,2,2,0}};
+constexpr float kX4Indices[4][4]={{5,3,1,3},{4,6,2,3},{3,5,1,4},{6,4,2,4}};
+constexpr DXGI_FORMAT kColorFormat=DXGI_FORMAT_R16G16B16A16_FLOAT;
+constexpr UINT alignedPitch(UINT bytes){
+ return (bytes+D3D12_TEXTURE_DATA_PITCH_ALIGNMENT-1)/D3D12_TEXTURE_DATA_PITCH_ALIGNMENT*D3D12_TEXTURE_DATA_PITCH_ALIGNMENT;
+}
+}
+
+std::string AntiAliasPass::describe() const {
+ switch(settings_.method){
+ case AntiAliasMethod::Fxaa:
+ return std::format("FXAA {}",settings_.quality<3?kFxaaTiers[settings_.quality]:"?");
+ case AntiAliasMethod::Smaa:
+ return std::format("SMAA {}{}",settings_.quality<4?kSmaaTiers[settings_.quality]:"?",
+ !settings_.usesTemporal()?"":settings_.temporal==AntiAliasTemporal::T2x?" temporal-T2x":" temporal-4x");
+ case AntiAliasMethod::Mlaa:
+ return std::format("MLAA threshold={:.2f} strength={:.2f}",settings_.mlaaThreshold,settings_.mlaaStrength);
+ }
+ return "unknown";
+}
+
+bool AntiAliasPass::createStage(ID3D12Device* device,Stage& stage,const char* shader,UINT srvCount){
+ std::vector<uint8_t> cs;
+ stage.srvCount=srvCount;
+ return stage.pass.loadShader(shader,cs)&&stage.pass.create(device,cs,srvCount+1,srvCount,1,kConstantCount,0,true);
+}
+
+bool AntiAliasPass::initialize(ID3D12Device* device,const engine::AntiAliasSettings& settings,uint32_t width,uint32_t height){
+ if(!settings.enabled||!settings.validate().empty()||!width||!height)return false;
+ settings_=settings;width_=width;height_=height;frame_=0;historyValid_=false;
+ lumaTexture_=makeTexture(device,width,height,DXGI_FORMAT_R16_FLOAT,true);
+ if(!lumaTexture_||!createStage(device,luma_,"AaLuma.dxil",1))return false;
+ switch(settings.method){
+ case AntiAliasMethod::Fxaa:
+ return createStage(device,fxaa_,kFxaaShaders[settings.quality],2);
+ case AntiAliasMethod::Smaa:{
+ // As in Magpie: 8-bit edges / weights for low and medium, FP16 for high and ultra.
+ const bool wide=settings.quality>=2;
+ edgesFormat_=wide?DXGI_FORMAT_R16G16_FLOAT:DXGI_FORMAT_R8G8_UNORM;
+ weightsFormat_=wide?DXGI_FORMAT_R16G16B16A16_FLOAT:DXGI_FORMAT_R8G8B8A8_UNORM;
+ edges_=makeTexture(device,width,height,edgesFormat_,true);
+ weights_=makeTexture(device,width,height,weightsFormat_,true);
+ if(!edges_||!weights_||!prepareLookups(device)||
+ !createStage(device,smaaEdges_,"AaSmaaEdges.dxil",1)||
+ !createStage(device,smaaWeights_,kSmaaWeightShaders[settings.quality],3)||
+ !createStage(device,smaaBlend_,"AaSmaaBlend.dxil",2))return false;
+ if(!settings.usesTemporal())return true;
+ current_=makeTexture(device,width,height,kColorFormat,true);
+ history_=makeTexture(device,width,height,kColorFormat,false);
+ return current_&&history_&&createStage(device,temporal_,"AaTemporalResolve.dxil",2);
+ }
+ case AntiAliasMethod::Mlaa:
+ edgesFormat_=DXGI_FORMAT_R8G8_UNORM;
+ edges_=makeTexture(device,width,height,edgesFormat_,true);
+ counts_=makeTexture(device,width,height,DXGI_FORMAT_R8G8B8A8_UNORM,true);
+ return edges_&&counts_&&createStage(device,mlaaEdges_,"AaMlaaEdges.dxil",1)&&
+ createStage(device,mlaaCounts_,"AaMlaaCounts.dxil",1)&&createStage(device,mlaaBlend_,"AaMlaaBlend.dxil",3);
+ }
+ return false;
+}
+
+bool AntiAliasPass::prepareLookups(ID3D12Device* device){
+ area_=makeTexture(device,smaa::kAreaTexWidth,smaa::kAreaTexHeight,DXGI_FORMAT_R8G8_UNORM,false);
+ search_=makeTexture(device,smaa::kSearchTexWidth,smaa::kSearchTexHeight,DXGI_FORMAT_R8_UNORM,false);
+ areaPitch_=alignedPitch(smaa::kAreaTexPitch);searchPitch_=alignedPitch(smaa::kSearchTexPitch);
+ areaUpload_=makeUploadBuffer(device,uint64_t(areaPitch_)*smaa::kAreaTexHeight);
+ searchUpload_=makeUploadBuffer(device,uint64_t(searchPitch_)*smaa::kSearchTexHeight);
+ if(!area_||!search_||!areaUpload_||!searchUpload_)return false;
+ const auto fill=[](ID3D12Resource* upload,const uint8_t* rows,UINT rowBytes,UINT pitch,UINT height){
+ void* p=nullptr;
+ if(FAILED(upload->Map(0,nullptr,&p)))return false;
+ for(UINT y=0;y<height;++y)std::memcpy(static_cast<uint8_t*>(p)+size_t(y)*pitch,rows+size_t(y)*rowBytes,rowBytes);
+ upload->Unmap(0,nullptr);
+ return true;
+ };
+ lookupsPending_=fill(areaUpload_.Get(),smaa::kAreaTex,smaa::kAreaTexPitch,areaPitch_,smaa::kAreaTexHeight)&&
+ fill(searchUpload_.Get(),smaa::kSearchTex,smaa::kSearchTexPitch,searchPitch_,smaa::kSearchTexHeight);
+ if(!lookupsPending_)veyra::log::error("anti-alias","SMAA lookup upload map failed");
+ return lookupsPending_;
+}
+
+// The upload buffers live as long as the pass; the owner drains before release.
+void AntiAliasPass::uploadLookups(ID3D12GraphicsCommandList* list,StateTracker& tracker){
+ const auto copy=[&](ID3D12Resource* texture,ID3D12Resource* upload,DXGI_FORMAT format,UINT width,UINT height,UINT pitch){
+ tracker.transition(list,texture,D3D12_RESOURCE_STATE_COPY_DEST);
+ D3D12_TEXTURE_COPY_LOCATION target{},source{};
+ target.pResource=texture;target.Type=D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;
+ source.pResource=upload;source.Type=D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;
+ source.PlacedFootprint.Footprint={format,width,height,1,pitch};
+ list->CopyTextureRegion(&target,0,0,0,&source,nullptr);
+ tracker.transition(list,texture,D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
+ };
+ copy(area_.Get(),areaUpload_.Get(),DXGI_FORMAT_R8G8_UNORM,smaa::kAreaTexWidth,smaa::kAreaTexHeight,areaPitch_);
+ copy(search_.Get(),searchUpload_.Get(),DXGI_FORMAT_R8_UNORM,smaa::kSearchTexWidth,smaa::kSearchTexHeight,searchPitch_);
+ lookupsPending_=false;
+}
+
+void AntiAliasPass::refresh(const engine::AntiAliasSettings& settings){
+ // Only the uniform values change in place; a structural change rebuilds the graph.
+ if(settings_.sameStructure(settings))settings_=settings;
+}
+
+float AntiAliasPass::edgeThreshold() const {
+ if(settings_.method==AntiAliasMethod::Smaa&&settings_.quality<4)return kSmaaThresholds[settings_.quality];
+ if(settings_.method==AntiAliasMethod::Mlaa)return settings_.mlaaThreshold;
+ return 0.0f;
+}
+
+void AntiAliasPass::createViews(ID3D12Device* device,DescriptorStager& stager,ID3D12Resource* input,ID3D12Resource* output){
+ input_=input;output_=output;
+ const auto srv=[&](Stage& stage,UINT slot,ID3D12Resource* resource){stager.stageSrv(resource,nullptr,stage.pass.heap.Get(),slot);};
+ const auto uav=[&](Stage& stage,ID3D12Resource* resource,DXGI_FORMAT format){makeUav(device,resource,format,cpuHandleOf(stage.pass,stage.srvCount));};
+ srv(luma_,0,input);uav(luma_,lumaTexture_.Get(),DXGI_FORMAT_R16_FLOAT);
+ switch(settings_.method){
+ case AntiAliasMethod::Fxaa:
+ srv(fxaa_,0,input);srv(fxaa_,1,lumaTexture_.Get());uav(fxaa_,output,kColorFormat);
+ break;
+ case AntiAliasMethod::Smaa:
+ srv(smaaEdges_,0,lumaTexture_.Get());uav(smaaEdges_,edges_.Get(),edgesFormat_);
+ srv(smaaWeights_,0,edges_.Get());srv(smaaWeights_,1,area_.Get());srv(smaaWeights_,2,search_.Get());
+ uav(smaaWeights_,weights_.Get(),weightsFormat_);
+ srv(smaaBlend_,0,input);srv(smaaBlend_,1,weights_.Get());uav(smaaBlend_,current_?current_.Get():output,kColorFormat);
+ if(current_){srv(temporal_,0,current_.Get());srv(temporal_,1,history_.Get());uav(temporal_,output,kColorFormat);}
+ break;
+ case AntiAliasMethod::Mlaa:
+ srv(mlaaEdges_,0,lumaTexture_.Get());uav(mlaaEdges_,edges_.Get(),edgesFormat_);
+ srv(mlaaCounts_,0,edges_.Get());uav(mlaaCounts_,counts_.Get(),DXGI_FORMAT_R8G8B8A8_UNORM);
+ srv(mlaaBlend_,0,input);srv(mlaaBlend_,1,lumaTexture_.Get());srv(mlaaBlend_,2,counts_.Get());uav(mlaaBlend_,output,kColorFormat);
+ break;
+ }
+}
+
+bool AntiAliasPass::dispatch(ID3D12GraphicsCommandList* list,StateTracker& tracker,bool hdrWorking,bool reset){
+ if(!input_||!output_||input_==output_)return false;
+ if(lookupsPending_)uploadLookups(list,tracker);
+ if(reset){historyValid_=false;frame_=0;}
+ float c[kConstantCount]{};
+ c[0]=std::bit_cast<float>(width_);c[1]=std::bit_cast<float>(height_);
+ c[2]=1.0f/float(width_);c[3]=1.0f/float(height_);
+ // "1.0 = white": SDR white, or the 203-nit reference white of scRGB HDR working.
+ c[4]=hdrWorking?80.0f/203.0f:1.0f;
+ c[5]=edgeThreshold();c[6]=settings_.mlaaStrength;c[7]=settings_.historyWeight;
+ if(settings_.usesTemporal())
+ std::memcpy(c+8,settings_.temporal==AntiAliasTemporal::T2x?kT2xIndices[frame_&1]:kX4Indices[frame_&3],sizeof(float)*4);
+ c[12]=settings_.historyRejection;c[13]=historyValid_?1.0f:0.0f;
+ const UINT groupsX=(width_+7)/8,groupsY=(height_+7)/8;
+ const auto run=[&](Stage& stage,ID3D12Resource* target,ID3D12Resource* a,ID3D12Resource* b=nullptr,ID3D12Resource* d=nullptr){
+ ID3D12Resource* reads[]={a,b,d};
+ for(auto* read:reads)if(read)tracker.transition(list,read,D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
+ tracker.transition(list,target,D3D12_RESOURCE_STATE_UNORDERED_ACCESS);
+ stage.pass.bind(list,c,gpuHandleOf(stage.pass,0).ptr,gpuHandleOf(stage.pass,stage.srvCount).ptr);
+ list->Dispatch(groupsX,groupsY,1);
+ tracker.uavBarrier(list,target);
+ };
+ run(luma_,lumaTexture_.Get(),input_);
+ switch(settings_.method){
+ case AntiAliasMethod::Fxaa:
+ run(fxaa_,output_,input_,lumaTexture_.Get());
+ break;
+ case AntiAliasMethod::Smaa:
+ run(smaaEdges_,edges_.Get(),lumaTexture_.Get());
+ run(smaaWeights_,weights_.Get(),edges_.Get(),area_.Get(),search_.Get());
+ if(!current_){run(smaaBlend_,output_,input_,weights_.Get());break;}
+ run(smaaBlend_,current_.Get(),input_,weights_.Get());
+ run(temporal_,output_,current_.Get(),history_.Get());
+ tracker.transition(list,output_,D3D12_RESOURCE_STATE_COPY_SOURCE);
+ tracker.transition(list,history_.Get(),D3D12_RESOURCE_STATE_COPY_DEST);
+ list->CopyResource(history_.Get(),output_);
+ tracker.transition(list,history_.Get(),D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
+ historyValid_=true;
+ break;
+ case AntiAliasMethod::Mlaa:
+ run(mlaaEdges_,edges_.Get(),lumaTexture_.Get());
+ run(mlaaCounts_,counts_.Get(),edges_.Get());
+ run(mlaaBlend_,output_,input_,lumaTexture_.Get(),counts_.Get());
+ break;
+ }
+ tracker.transition(list,output_,D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
+ ++frame_;
+ return true;
+}
+}
diff --git a/src/pipeline/EnhanceGraph.cpp b/src/pipeline/EnhanceGraph.cpp
index 1a5ae23f..dbb83d4d 100644
--- a/src/pipeline/EnhanceGraph.cpp
+++ b/src/pipeline/EnhanceGraph.cpp
@@ -55,8 +55,9 @@ extern "C" {
namespace veyra::pipeline {
using diagnostics::GpuStage;
-static_assert(diagnostics::kTimedNrLayers==engine::kMaxNrInstances&&diagnostics::kTimedColorNodes==engine::kMaxColorInstances,
- "every NR layer / Color instance needs its own node timing slot");
+static_assert(diagnostics::kTimedNrLayers==engine::kMaxNrInstances&&diagnostics::kTimedColorNodes==engine::kMaxColorInstances&&
+ diagnostics::kTimedAaNodes==engine::kMaxAntiAliasInstances,
+ "every NR layer / Color / anti-aliasing instance needs its own node timing slot");
namespace {
@@ -344,7 +345,19 @@ bool EnhanceGraph::createNodeColorResources(){
interNrColorOutputs_={};
sourcePostPasses_.clear();preSrPasses_.clear();preNrPasses_.clear();tailPasses_.clear();
for(auto& passes:interNrPasses_)passes.clear();
- if(!desc_.fixedExecutionPlan)return true;
+ if(!desc_.fixedExecutionPlan){
+ // Graphs built without a compiled plan (the tiled full-resolution image
+ // path) run their enabled anti-aliasing instances at source size, in
+ // parameter order, like the list chain.
+ for(uint32_t parameter=0;parameter<desc_.antiAlias.size();++parameter){
+ if(!desc_.antiAlias[parameter].enabled)continue;
+ if(!createAntiAlias(parameter,srcW_,srcH_))return false;
+ sourcePostPasses_.push_back({engine::kMaxChainNodes,engine::EffectType::AntiAliasing,parameter,
+ antiAliasOutputs_[parameter].Get(),srcW_,srcH_,parameter});
+ }
+ if(!sourcePostPasses_.empty())sourcePostOutput_=sourcePostPasses_.back().output;
+ return true;
+ }
const auto& plan=*desc_.fixedExecutionPlan;
for(uint32_t i=0;i<plan.stepCount;++i){
const auto& step=plan.steps[i];
@@ -353,7 +366,7 @@ bool EnhanceGraph::createNodeColorResources(){
// Ingress: the fused / in-place grade of the input conversion (createColorResources).
if(where==PassSlot::None||where==PassSlot::Ingress)continue;
const auto parameter=step.parameterIndex;
- SlotPass pass{i,step.type,parameter,nullptr};
+ SlotPass pass{i,step.type,parameter,nullptr,step.output.width,step.output.height,step.resourceIndex};
if(step.type==engine::EffectType::Color){
const auto& settings=parameter?desc_.additionalColors[parameter-1]:desc_.color;
auto& instance=nodeColorInstances_[parameter];
@@ -377,6 +390,9 @@ bool EnhanceGraph::createNodeColorResources(){
else if(where==PassSlot::InterNr)++interNrColorActiveCount_;
else if(where==PassSlot::SourcePost)++sourcePostColorActiveCount_;
else ++tailColorActiveCount_;
+ }else if(step.type==engine::EffectType::AntiAliasing&&parameter<antiAliasPasses_.size()){
+ if(!createAntiAlias(parameter,step.output.width,step.output.height))return false;
+ pass.output=antiAliasOutputs_[parameter].Get();
}else{
veyra::log::error("graph",std::format("no executor for same-size {} step={}",engine::effectTypeName(step.type),i));
return false;
@@ -395,29 +411,40 @@ bool EnhanceGraph::createNodeColorResources(){
return true;
}
+bool EnhanceGraph::createAntiAlias(uint32_t parameter,uint32_t width,uint32_t height){
+ auto& pass=antiAliasPasses_[parameter];
+ pass=std::make_unique<AntiAliasPass>();
+ antiAliasOutputs_[parameter]=makeTexture(context_.device(),width,height,DXGI_FORMAT_R16G16B16A16_FLOAT,true);
+ const bool created=antiAliasOutputs_[parameter]&&pass->initialize(context_.device(),desc_.antiAlias[parameter],width,height);
+ if(created)veyra::log::info("anti-alias",std::format("instance={} {} extent={}x{} hdr={}",parameter,pass->describe(),width,height,desc_.hdrWorking()));
+ else veyra::log::error("anti-alias",std::format("instance={} {} extent={}x{}: creation failed",parameter,pass->describe(),width,height));
+ return created;
+}
+
// Binds one slot's passes in plan order: each reads the previous output.
ID3D12Resource* EnhanceGraph::chainSlotViews(const std::vector<SlotPass>& passes,ID3D12Resource* input,const char* where){
- const auto& plan=*desc_.fixedExecutionPlan;
for(const auto& pass:passes){
- const auto& step=plan.steps[pass.step];
if(pass.type==engine::EffectType::Color)nodeColorInstances_[pass.parameter]->createViews(context_.device(),stager_,input,pass.output);
+ else if(pass.type==engine::EffectType::AntiAliasing)antiAliasPasses_[pass.parameter]->createViews(context_.device(),stager_,input,pass.output);
input=pass.output;
veyra::log::info("node-dispatch",std::format("{} {} step={} parameter={} resource={} input={}x{} output={}x{}",
- where,engine::effectTypeName(pass.type),pass.step,pass.parameter,step.resourceIndex,step.input.width,step.input.height,step.output.width,step.output.height));
+ where,engine::effectTypeName(pass.type),pass.step,pass.parameter,pass.resource,pass.width,pass.height,pass.width,pass.height));
}
return input;
}
-bool EnhanceGraph::dispatchSlotPasses(ID3D12GraphicsCommandList* list,const std::vector<SlotPass>& passes,unsigned slot,const char* where,bool log){
- const auto& plan=*desc_.fixedExecutionPlan;
+bool EnhanceGraph::dispatchSlotPasses(ID3D12GraphicsCommandList* list,const std::vector<SlotPass>& passes,unsigned slot,const char* where,bool log,bool reset){
for(const auto& pass:passes){
- const auto& step=plan.steps[pass.step];
if(pass.type==engine::EffectType::Color){
gpuTimer_.mark(list,diagnostics::colorNodeStage(pass.parameter));
- if(!nodeColorInstances_[pass.parameter]->dispatch(list,tracker_,slot,step.output.width,step.output.height,desc_.hdrWorking()))return false;
+ if(!nodeColorInstances_[pass.parameter]->dispatch(list,tracker_,slot,pass.width,pass.height,desc_.hdrWorking()))return false;
gpuTimer_.mark(list,diagnostics::colorNodeStage(pass.parameter),true);
+ }else if(pass.type==engine::EffectType::AntiAliasing){
+ gpuTimer_.mark(list,diagnostics::aaNodeStage(pass.parameter));
+ if(!antiAliasPasses_[pass.parameter]->dispatch(list,tracker_,desc_.hdrWorking(),reset))return false;
+ gpuTimer_.mark(list,diagnostics::aaNodeStage(pass.parameter),true);
}
- if(log)veyra::log::info("node-dispatch",std::format("recorded {} {} step={} parameter={} resource={}",where,engine::effectTypeName(pass.type),pass.step,pass.parameter,step.resourceIndex));
+ if(log)veyra::log::info("node-dispatch",std::format("recorded {} {} step={} parameter={} resource={}",where,engine::effectTypeName(pass.type),pass.step,pass.parameter,pass.resource));
}
return true;
}
@@ -2366,7 +2393,7 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Frame
if (desc_.stageMark) desc_.stageMark("yuv");
cpuTrace.mark("color");
if(!sourcePostPasses_.empty()){
- if(!dispatchSlotPasses(list,sourcePostPasses_,slot,"source-size",!sourcePostExecutionLogged_))return false;
+ if(!dispatchSlotPasses(list,sourcePostPasses_,slot,"source-size",!sourcePostExecutionLogged_,reset))return false;
tracker_.transition(list,sourcePostOutput_,D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
sourcePostExecutionLogged_=true;
if (desc_.stageMark) desc_.stageMark("source-size-pass");
@@ -2603,7 +2630,7 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Frame
const auto& passes=beforeSr?preSrPasses_:preNrPasses_;
if(!passes.empty()){
auto& logged=beforeSr?preSrColorExecutionLogged_:preNrColorExecutionLogged_;
- if(!dispatchSlotPasses(list,passes,slot,beforeSr?"pre-SR":"pre-NR",!logged))return false;
+ if(!dispatchSlotPasses(list,passes,slot,beforeSr?"pre-SR":"pre-NR",!logged,reset))return false;
if(desc_.stageMark)desc_.stageMark(beforeSr?"pre-sr-color":"pre-nr-color");
logged=true;
}
@@ -2696,7 +2723,7 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Frame
const uint32_t sourceW=layer->fullWidth(),sourceH=layer->fullHeight();
if ((layer->handle() == nullptr && !layer->amd) || !layer->enabled) continue;
if(size_t(layerIndex)<interNrPasses_.size()&&!interNrPasses_[layerIndex].empty()){
- if(!dispatchSlotPasses(list,interNrPasses_[layerIndex],slot,"inter-NR",!interNrColorExecutionLogged_))return false;
+ if(!dispatchSlotPasses(list,interNrPasses_[layerIndex],slot,"inter-NR",!interNrColorExecutionLogged_,reset))return false;
if(desc_.stageMark)desc_.stageMark("inter-nr-color");
}
const uint32_t nrW=layer->width(),nrH=layer->height();
@@ -2906,7 +2933,7 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Frame
if(!desc_.splitNrAcrossSr()&&!runBoundaryColor(true))return false;
if(desc_.nrBeforeSr&&!desc_.splitNrAcrossSr()&&!runSr())return false;
if(!tailPasses_.empty()){
- if(!dispatchSlotPasses(list,tailPasses_,slot,"tail",!tailColorExecutionLogged_))return false;
+ if(!dispatchSlotPasses(list,tailPasses_,slot,"tail",!tailColorExecutionLogged_,reset))return false;
if(desc_.stageMark)desc_.stageMark("tail-color");
tailColorExecutionLogged_=true;
cpuTrace.mark("tailColor");
@@ -3295,6 +3322,7 @@ bool EnhanceGraph::applySettings(const engine::EnhancementSettings& s){
}
}
desc_.antiAlias=nextNr.antiAlias;
+ for(size_t i=0;i<antiAliasPasses_.size();++i)if(antiAliasPasses_[i])antiAliasPasses_[i]->refresh(desc_.antiAlias[i]);
desc_.contentRate=s.content;desc_.model=s.model;desc_.residual=s.residual;desc_.protection=s.protection;desc_.settingsRevision=s.revision;
desc_.nrHoldStrength=s.nrHoldStrength;desc_.nrHoldTolerance=s.nrHoldTolerance;
desc_.nrLayersModel=std::move(nextNr.nrLayersModel);
@@ -3521,6 +3549,8 @@ void EnhanceGraph::shutdown()
nodeColorOutputs_={};tailColorActiveCount_=preNrColorActiveCount_=preSrColorActiveCount_=interNrColorActiveCount_=sourcePostColorActiveCount_=0;
sourcePostPasses_.clear();preSrPasses_.clear();preNrPasses_.clear();tailPasses_.clear();
for(auto& passes:interNrPasses_)passes.clear();
+ for(auto& pass:antiAliasPasses_)pass.reset();
+ antiAliasOutputs_={};
sourcePostOutput_=nullptr;
preSrColorOutput_=nullptr;preSrColorExecutionLogged_=false;
interNrColorOutputs_={};interNrColorExecutionLogged_=false;
diff --git a/src/pipeline/SmaaLookupTables.cpp b/src/pipeline/SmaaLookupTables.cpp
new file mode 100644
index 00000000..8bd3d879
--- /dev/null
+++ b/src/pipeline/SmaaLookupTables.cpp
@@ -0,0 +1,4547 @@
+// Generated by scripts/generate-smaa-lookup-tables.py - do not edit.
+// SMAA precomputed lookup textures (https://github.com/iryoku/smaa, MIT notice
+// below), taken from src/Effects/SMAA/AreaTex.dds and SearchTex.dds of
+// SAOG0721/Magpie d687997. AreaTex: 160x560 R8G8 (the DDS's constant B=0/A=255
+// channels dropped), SHA-256 35065cef2a02cabcad711d6bf430239ae64e27d71c4e4fa06f29cce2c992f0d2.
+// SearchTex: 64x16 R8, SHA-256 3694eae5e9d44b8ebb4415a13f8c7b94dc08a2fc86658434d771c4610fe5744d.
+/**
+ * Copyright (C) 2013 Jorge Jimenez ([email protected])
+ * Copyright (C) 2013 Jose I. Echevarria ([email protected])
+ * Copyright (C) 2013 Belen Masia ([email protected])
+ * Copyright (C) 2013 Fernando Navarro ([email protected])
+ * Copyright (C) 2013 Diego Gutierrez ([email protected])
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is furnished to
+ * do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software. As clarification, there
+ * is no requirement that the copyright notice and permission be included in
+ * binary distributions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#include "veyra/pipeline/SmaaLookupTables.h"
+
+namespace veyra::pipeline::smaa {
+const uint8_t kAreaTex[kAreaTexBytes]={
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+64,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+68,123,65,93,66,84,65,79,66,75,66,73,66,72,65,71,66,70,66,69,66,69,66,68,66,68,66,68,66,67,65,67,66,67,66,67,66,67,66,67,
+4,127,34,61,43,61,48,61,51,61,53,61,55,61,56,61,57,61,57,61,58,61,58,61,59,61,59,61,59,61,60,61,60,61,60,61,60,61,60,61,
+64,127,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,10,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+98,32,77,42,72,48,68,51,68,53,68,54,67,55,66,56,67,57,66,57,66,58,66,58,66,59,66,59,66,59,65,59,66,60,66,60,66,60,66,60,
+0,93,12,73,22,67,29,65,34,64,38,63,41,63,44,63,46,62,47,62,49,62,50,62,51,62,51,62,52,62,53,62,53,62,54,62,55,62,55,62,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,0,63,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,0,0,0,0,0,0,0,0,0,0,102,0,63,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,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+109,11,87,22,79,29,74,34,72,38,71,41,70,43,68,45,68,47,68,48,68,49,68,50,67,51,67,52,67,52,66,53,67,54,66,54,66,55,66,55,
+0,104,6,84,13,75,20,71,25,68,29,67,32,65,35,65,38,64,39,64,41,63,43,63,44,63,45,63,46,63,47,63,48,63,48,62,49,62,50,62,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,0,92,0,45,0,1,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,0,92,0,45,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+114,6,95,13,86,20,79,25,77,29,74,32,73,35,71,37,70,39,70,41,69,42,69,44,68,45,68,46,68,47,67,48,68,48,68,49,67,50,67,51,
+0,109,4,91,9,81,14,76,19,72,23,70,26,68,29,67,31,66,34,66,36,65,37,65,39,64,40,64,41,64,42,63,43,63,44,63,45,63,46,63,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,0,106,0,72,0,34,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,0,106,0,72,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+117,3,100,9,90,14,84,19,81,23,78,26,76,29,73,31,73,34,72,35,71,37,70,38,70,40,69,41,69,42,68,43,68,44,68,45,68,46,68,46,
+0,112,2,96,7,86,11,80,15,76,18,73,22,71,24,70,27,69,29,68,31,67,33,66,34,66,36,65,37,65,38,64,39,64,40,64,41,64,42,63,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,122,0,113,0,89,0,58,
+0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,122,0,113,0,89,0,58,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+119,2,104,6,95,11,88,15,84,18,81,21,79,24,76,27,75,29,74,31,73,33,72,34,72,35,71,37,70,38,69,39,69,40,69,41,69,42,68,43,
+0,114,2,100,5,91,8,84,12,80,15,77,18,74,20,72,23,71,25,70,27,69,29,68,31,68,32,66,33,66,34,66,36,65,37,65,38,65,39,64,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,117,0,99,0,74,
+0,48,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,117,0,99,0,74,0,48,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+120,2,107,5,98,8,91,12,87,15,84,18,81,20,78,23,77,25,76,27,75,29,74,30,73,32,72,33,72,34,70,36,70,37,70,38,70,39,69,39,
+0,116,1,102,4,94,7,87,10,83,13,79,16,77,18,75,20,73,22,72,24,70,26,69,27,69,29,68,30,68,32,67,33,66,34,66,35,66,36,65,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,120,0,106,0,86,
+0,63,0,40,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,120,0,106,0,86,0,63,0,40,0,19,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+121,1,109,4,101,7,94,10,90,13,86,15,84,18,81,20,79,22,78,24,76,26,75,27,75,29,74,30,73,31,72,33,72,34,72,35,71,35,70,37,
+0,117,1,105,3,97,6,90,8,86,11,82,13,79,16,77,18,75,20,74,22,72,23,71,25,70,26,69,28,69,29,68,30,68,31,68,32,67,33,66,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,121,0,110,0,94,
+0,75,0,55,0,35,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,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,121,0,110,0,94,0,75,0,55,0,35,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+122,1,111,3,103,6,96,8,93,11,89,13,86,16,83,17,81,20,80,21,78,23,77,25,76,26,75,27,75,29,72,30,73,31,73,32,72,33,72,34,
+0,118,1,107,3,99,5,93,7,88,9,84,12,82,14,79,16,77,17,76,19,74,21,73,23,72,24,71,25,70,27,69,28,69,29,68,30,68,31,68,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,122,0,114,0,100,
+0,84,0,66,0,48,0,31,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,122,0,114,0,100,0,84,0,66,0,48,0,31,0,14,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+123,1,113,2,105,5,99,7,95,9,91,12,88,14,85,16,83,17,82,19,80,21,78,22,78,24,76,25,76,26,74,28,75,29,73,30,73,31,73,32,
+0,119,0,108,2,101,4,95,6,90,8,87,10,84,12,81,14,79,16,77,17,76,19,74,21,73,22,72,24,72,24,70,26,70,27,69,28,69,29,69,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,123,0,116,0,105,
+0,91,0,75,0,59,0,43,0,27,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,123,0,116,0,105,0,91,0,75,0,59,0,43,0,27,0,13,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+123,0,114,2,107,4,100,6,97,8,93,10,90,12,86,14,85,16,83,17,82,19,80,21,79,22,78,23,77,24,75,26,75,26,75,28,75,29,73,29,
+0,119,0,110,2,102,4,97,5,92,7,89,9,86,11,83,13,81,15,79,16,78,17,76,19,75,20,74,21,72,23,72,24,71,25,70,27,70,27,69,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,118,0,109,
+0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,118,0,109,0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+124,0,115,2,108,3,102,5,99,7,94,9,92,11,88,12,87,14,85,16,83,17,82,19,80,20,79,21,78,23,76,24,76,25,76,26,75,26,75,28,
+0,119,0,111,2,104,3,99,5,94,6,90,8,87,10,85,11,83,13,80,15,79,16,78,17,76,19,75,20,74,21,73,22,72,24,72,24,70,25,70,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,119,0,111,
+0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,119,0,111,0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+124,0,116,2,110,3,104,5,100,6,96,8,93,10,90,11,88,13,86,14,85,16,83,17,82,19,80,20,80,21,77,22,78,24,76,24,76,25,76,26,
+0,120,0,112,1,105,3,100,4,96,6,92,7,89,9,86,11,84,12,82,13,80,15,79,16,78,17,76,19,75,19,74,21,74,21,72,23,72,24,71,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,120,0,113,
+0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,120,0,113,0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,
+10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,117,1,111,2,105,4,101,6,98,7,95,9,91,11,90,12,88,13,86,14,85,16,83,17,82,19,80,19,79,21,78,21,78,23,77,24,76,24,
+0,120,0,113,1,106,3,102,4,97,5,93,6,90,8,88,9,85,11,83,13,82,14,80,15,78,16,78,17,76,19,76,19,74,21,74,21,73,22,72,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,121,0,115,
+0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,19,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,121,0,115,0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,
+19,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,118,1,112,2,106,3,103,5,99,6,96,8,93,9,91,11,89,12,87,13,85,14,85,16,83,17,82,19,79,19,80,21,79,21,78,22,78,24,
+0,121,0,113,1,108,2,102,4,98,5,95,6,92,7,89,9,87,10,85,11,83,13,81,14,80,15,78,17,78,17,76,19,76,19,75,20,74,21,74,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,
+0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,27,0,18,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,
+27,0,18,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,118,1,113,2,108,3,104,5,100,6,97,7,94,9,92,10,90,11,89,12,87,14,85,14,85,17,82,17,81,18,81,19,80,20,79,21,78,21,
+0,121,0,114,1,109,2,104,3,99,4,96,6,93,7,91,8,88,9,86,11,84,12,83,13,81,14,80,15,78,17,78,17,76,18,76,19,75,20,74,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,31,0,63,0,102,0,114,0,120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,0,126,0,126,0,126,0,126,0,125,0,88,0,112,0,119,
+0,121,0,123,0,124,0,124,0,125,0,125,0,126,0,126,0,126,0,126,0,126,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,31,0,63,0,102,0,114,0,120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,
+0,126,0,126,0,126,0,126,31,31,0,63,0,102,0,114,0,120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,0,126,0,126,0,126,0,126,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,119,1,114,2,109,3,105,4,102,6,99,7,95,8,94,9,92,11,90,12,88,12,87,14,85,15,84,17,81,17,82,18,81,19,80,20,80,21,
+0,121,0,115,1,109,2,105,3,101,4,97,5,94,6,92,7,89,9,87,10,85,11,84,13,83,13,81,15,80,15,78,17,78,17,76,18,76,19,75,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,10,0,63,0,92,0,106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,0,124,0,125,0,125,0,125,0,88,0,68,0,85,0,103,
+0,110,0,114,0,117,0,120,0,121,0,122,0,123,0,124,0,124,0,125,0,125,0,125,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,10,10,0,63,0,92,0,106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,
+0,124,0,125,0,125,0,125,63,0,10,10,0,63,0,92,0,106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,0,124,0,125,0,125,0,125,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,120,1,114,2,110,2,106,3,103,5,100,6,96,7,95,9,92,10,91,11,90,12,87,12,86,14,85,15,83,17,82,17,82,18,81,19,80,19,
+0,121,0,115,1,110,2,105,3,102,4,98,5,95,6,93,7,91,8,88,9,86,11,85,11,83,13,82,13,80,15,80,15,78,17,78,17,77,18,76,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,3,0,45,0,72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,0,119,0,120,0,121,0,122,0,112,0,85,0,32,0,62,
+0,80,0,90,0,99,0,106,0,110,0,114,0,116,0,118,0,119,0,120,0,121,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,0,63,0,3,3,0,45,0,72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,
+0,119,0,120,0,121,0,122,102,0,63,0,3,3,0,45,0,72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,0,119,0,120,0,121,0,122,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+126,0,120,1,115,2,110,2,107,3,104,5,101,6,97,7,95,7,94,9,92,11,90,11,89,12,87,13,86,14,84,15,84,17,82,17,82,18,81,19,
+0,121,0,116,0,111,2,106,3,102,4,99,5,96,5,94,6,91,7,89,9,88,9,85,11,85,12,83,13,82,13,80,15,80,15,78,17,78,17,77,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,1,0,34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,111,0,113,0,115,0,117,0,119,0,103,0,62,0,13,
+0,40,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,111,0,113,0,115,0,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,0,92,0,45,0,1,1,0,34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,
+0,111,0,113,0,115,0,117,114,0,92,0,45,0,1,1,0,34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,111,0,113,0,115,0,117,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+126,0,120,0,116,1,111,2,108,3,104,4,101,5,98,6,97,7,95,9,92,9,91,11,90,11,88,12,87,13,85,14,85,15,84,17,82,17,82,18,
+0,121,0,116,0,112,1,107,2,103,3,100,4,97,5,95,6,93,7,91,8,88,9,87,10,85,11,84,12,83,13,81,14,80,15,80,15,78,17,78,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,101,0,104,0,107,0,110,0,121,0,110,0,80,0,40,
+0,1,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,101,0,104,0,107,0,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,0,106,0,72,0,34,0,0,0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,
+0,101,0,104,0,107,0,110,120,0,106,0,72,0,34,0,0,0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,101,0,104,0,107,0,110,
+33,93,12,104,6,109,4,113,2,114,2,116,1,117,1,118,1,119,0,119,0,119,0,120,0,120,0,121,0,121,0,121,0,121,0,121,0,121,0,122,
+66,64,23,85,12,96,8,102,5,106,4,109,3,111,2,113,2,115,1,115,1,116,1,117,1,118,1,119,0,119,0,119,0,120,0,120,0,120,0,120,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+33,93,12,104,6,109,4,113,2,114,2,116,1,117,1,118,1,119,0,119,0,119,0,120,0,120,0,121,0,121,0,121,0,121,0,121,0,121,0,122,
+0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,40,0,55,0,66,0,75,0,83,0,89,0,94,0,98,0,101,0,123,0,114,0,90,0,58,
+0,27,0,1,0,22,0,40,0,55,0,66,0,75,0,83,0,89,0,94,0,98,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,122,0,113,0,89,0,58,0,27,0,0,0,0,22,0,40,0,55,0,66,0,75,0,83,
+0,89,0,94,0,98,0,101,122,0,113,0,89,0,58,0,27,0,0,0,0,22,0,40,0,55,0,66,0,75,0,83,0,89,0,94,0,98,0,101,
+43,73,22,83,13,91,9,96,7,100,5,103,4,105,3,107,3,108,2,110,2,111,2,112,1,113,1,113,1,114,1,115,1,115,1,116,0,116,0,117,
+87,22,45,44,27,59,18,69,13,77,11,83,8,87,7,91,5,94,5,97,4,99,4,101,3,103,2,104,2,105,2,107,2,108,1,109,1,110,1,111,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+43,73,22,83,13,91,9,96,7,100,5,103,4,105,3,107,3,108,2,110,2,111,2,112,1,113,1,113,1,114,1,115,1,115,1,116,0,116,0,117,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,35,0,48,0,59,0,68,0,76,0,82,0,87,0,91,0,124,0,117,0,99,0,74,
+0,48,0,22,0,0,0,19,0,35,0,48,0,59,0,68,0,76,0,82,0,87,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,117,0,99,0,74,0,48,0,22,0,0,0,0,19,0,35,0,48,0,59,0,68,
+0,76,0,82,0,87,0,91,124,0,117,0,99,0,74,0,48,0,22,0,0,0,0,19,0,35,0,48,0,59,0,68,0,76,0,82,0,87,0,91,
+49,67,29,75,20,81,14,86,11,91,8,94,7,97,6,99,5,101,4,103,4,104,3,105,3,106,3,108,2,109,2,109,2,110,2,111,2,112,1,112,
+97,12,59,27,40,40,29,50,22,58,17,65,14,71,12,75,10,79,9,83,7,85,6,88,5,90,5,92,5,94,4,96,4,97,4,99,3,100,2,102,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+49,67,29,75,20,81,14,86,11,91,8,94,7,97,6,99,5,101,4,103,4,104,3,105,3,106,3,108,2,109,2,109,2,110,2,111,2,112,1,112,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,31,0,43,0,53,0,62,0,69,0,76,0,81,0,124,0,120,0,106,0,86,
+0,63,0,40,0,19,0,0,0,16,0,31,0,43,0,53,0,62,0,69,0,76,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,120,0,106,0,86,0,63,0,40,0,19,0,0,0,0,16,0,31,0,43,0,53,
+0,62,0,69,0,76,0,81,124,0,120,0,106,0,86,0,63,0,40,0,19,0,0,0,0,16,0,31,0,43,0,53,0,62,0,69,0,76,0,81,
+51,65,34,70,25,76,19,80,15,84,12,87,10,90,8,93,7,95,6,97,5,99,5,100,4,102,4,102,4,104,3,105,3,105,3,106,3,107,2,108,
+103,7,69,18,50,29,38,38,30,46,24,52,20,58,17,63,15,68,12,71,11,75,10,77,9,81,7,82,7,85,6,87,5,88,5,90,5,92,4,93,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+51,65,34,70,25,76,19,80,15,84,12,87,10,90,8,93,7,95,6,97,5,99,5,100,4,102,4,102,4,104,3,105,3,105,3,106,3,107,2,108,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,27,0,39,0,48,0,57,0,64,0,70,0,125,0,121,0,110,0,94,
+0,75,0,55,0,35,0,16,0,0,0,14,0,27,0,39,0,48,0,57,0,64,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,121,0,110,0,94,0,75,0,55,0,35,0,16,0,0,0,0,14,0,27,0,39,
+0,48,0,57,0,64,0,70,125,0,121,0,110,0,94,0,75,0,55,0,35,0,16,0,0,0,0,14,0,27,0,39,0,48,0,57,0,64,0,70,
+53,64,39,68,29,72,23,76,18,80,15,83,13,86,11,88,9,90,8,92,7,94,6,96,6,97,5,98,5,99,4,101,4,102,4,102,4,103,3,104,
+107,5,77,13,59,22,46,30,37,37,31,43,26,49,22,54,19,58,16,62,15,66,13,69,12,71,10,74,10,76,9,79,7,81,7,82,7,84,6,86,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+53,64,39,68,29,72,23,76,18,80,15,83,13,86,11,88,9,90,8,92,7,94,6,96,6,97,5,98,5,99,4,101,4,102,4,102,4,103,3,104,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,25,0,35,0,44,0,52,0,59,0,125,0,122,0,114,0,100,
+0,84,0,66,0,48,0,31,0,14,0,0,0,13,0,25,0,35,0,44,0,52,0,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,122,0,114,0,100,0,84,0,66,0,48,0,31,0,14,0,0,0,0,13,0,25,
+0,35,0,44,0,52,0,59,125,0,122,0,114,0,100,0,84,0,66,0,48,0,31,0,14,0,0,0,0,13,0,25,0,35,0,44,0,52,0,59,
+55,63,41,67,33,70,26,73,22,77,18,80,16,82,13,84,12,87,10,89,9,90,8,92,7,93,6,95,6,96,6,97,5,98,5,99,4,100,4,101,
+110,4,83,10,65,17,52,24,43,31,36,36,31,41,27,46,23,51,21,55,18,58,16,61,15,64,13,67,12,69,12,72,10,74,10,76,9,78,7,79,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+55,63,41,67,33,70,26,73,22,77,18,80,16,82,13,84,12,87,10,89,9,90,8,92,7,93,6,95,6,96,6,97,5,98,5,99,4,100,4,101,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,22,0,32,0,41,0,48,0,126,0,123,0,116,0,105,
+0,91,0,75,0,59,0,43,0,27,0,13,0,0,0,12,0,22,0,32,0,41,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,123,0,116,0,105,0,91,0,75,0,59,0,43,0,27,0,13,0,0,0,0,12,
+0,22,0,32,0,41,0,48,126,0,123,0,116,0,105,0,91,0,75,0,59,0,43,0,27,0,13,0,0,0,0,12,0,22,0,32,0,41,0,48,
+56,63,44,65,35,68,29,71,25,74,20,77,18,79,16,82,14,84,12,86,11,87,10,89,9,90,8,92,7,93,7,94,6,95,6,97,5,97,5,98,
+112,3,88,8,71,14,58,20,49,26,41,31,36,36,32,40,28,45,25,49,22,52,20,55,18,58,16,61,15,63,14,66,12,68,12,70,11,71,10,74,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+56,63,44,65,35,68,29,71,25,74,20,77,18,79,16,82,14,84,12,86,11,87,10,89,9,90,8,92,7,93,7,94,6,95,6,97,5,97,5,98,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,21,0,30,0,38,0,126,0,124,0,118,0,109,
+0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,0,11,0,21,0,30,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,118,0,109,0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,0,
+0,11,0,21,0,30,0,38,126,0,124,0,118,0,109,0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,0,0,11,0,21,0,30,0,38,
+57,63,46,65,38,67,32,70,27,72,23,75,20,77,18,79,16,81,14,83,13,85,11,86,11,88,9,89,9,91,8,91,7,93,7,94,6,95,6,96,
+113,2,91,7,76,12,63,17,54,22,46,27,41,32,36,35,32,40,29,43,25,47,23,50,22,53,18,55,18,58,16,60,15,63,14,65,12,66,12,69,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+57,63,46,65,38,67,32,70,27,72,23,75,20,77,18,79,16,81,14,83,13,85,11,86,11,88,9,89,9,91,8,91,7,93,7,94,6,95,6,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,19,0,27,0,126,0,124,0,119,0,111,
+0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,0,0,10,0,19,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,119,0,111,0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,
+0,0,0,10,0,19,0,27,126,0,124,0,119,0,111,0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,0,0,0,10,0,19,0,27,
+57,62,47,64,40,66,34,69,29,71,25,73,22,75,20,77,17,79,16,81,15,83,13,84,12,85,11,87,10,88,9,89,9,91,8,91,7,92,7,94,
+115,2,94,5,79,10,68,15,58,19,51,24,45,28,39,32,35,35,32,39,29,42,26,45,24,48,22,51,20,53,18,56,18,58,16,60,15,62,15,65,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+57,62,47,64,40,66,34,69,29,71,25,73,22,75,20,77,17,79,16,81,15,83,13,84,12,85,11,87,10,88,9,89,9,91,8,91,7,92,7,94,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,18,0,126,0,125,0,120,0,113,
+0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,10,0,0,0,9,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,120,0,113,0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,
+10,0,0,0,0,9,0,18,126,0,125,0,120,0,113,0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,10,0,0,0,0,9,0,18,
+58,62,49,64,41,66,35,68,31,70,27,72,24,74,21,76,19,77,17,79,16,80,15,82,13,83,13,85,11,86,11,87,10,88,9,89,9,91,8,91,
+116,1,98,5,83,8,71,12,62,17,55,21,49,25,43,29,39,32,35,35,32,38,29,42,27,44,25,47,22,49,22,52,19,53,18,56,18,59,15,59,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+58,62,49,64,41,66,35,68,31,70,27,72,24,74,21,76,19,77,17,79,16,80,15,82,13,83,13,85,11,86,11,87,10,88,9,89,9,91,8,91,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,126,0,125,0,121,0,115,
+0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,19,0,9,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,121,0,115,0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,
+19,0,9,0,0,0,0,8,126,0,125,0,121,0,115,0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,19,0,9,0,0,0,0,8,
+58,62,50,63,43,65,37,67,33,69,29,70,26,72,23,74,21,76,19,78,17,79,16,80,15,82,14,83,13,84,12,85,11,86,11,88,9,88,9,89,
+117,1,100,4,86,7,75,11,66,15,58,18,52,22,47,25,42,29,38,32,35,35,33,38,29,41,27,43,25,46,24,48,22,50,21,53,18,53,18,56,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+58,62,50,63,43,65,37,67,33,69,29,70,26,72,23,74,21,76,19,78,17,79,16,80,15,82,14,83,13,84,12,85,11,86,11,88,9,88,9,89,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,
+0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,27,0,18,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,
+27,0,18,0,8,0,0,0,126,0,125,0,122,0,117,0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,27,0,18,0,8,0,0,0,
+59,62,51,63,44,65,39,66,34,68,31,69,28,71,25,73,23,74,21,76,19,78,17,79,16,80,15,81,14,83,13,84,12,85,11,85,11,87,10,88,
+118,1,102,4,88,6,77,10,69,13,62,16,55,20,50,23,45,26,42,29,38,33,34,34,33,38,29,40,28,43,25,44,25,48,22,48,22,51,20,53,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+59,62,51,63,44,65,39,66,34,68,31,69,28,71,25,73,23,74,21,76,19,78,17,79,16,80,15,81,14,83,13,84,12,85,11,85,11,87,10,88,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,62,51,63,45,64,40,66,36,68,32,69,29,70,26,72,24,73,22,75,20,76,19,78,17,78,16,80,15,81,15,83,13,83,13,85,11,85,11,86,
+119,1,103,3,90,5,81,9,72,12,64,15,58,18,53,22,48,24,44,27,41,29,38,33,34,34,33,38,29,39,29,43,26,43,25,46,23,48,22,49,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+59,62,51,63,45,64,40,66,36,68,32,69,29,70,26,72,24,73,22,75,20,76,19,78,17,78,16,80,15,81,15,83,13,83,13,85,11,85,11,86,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,62,52,63,46,64,41,65,37,67,33,68,30,69,28,71,25,72,24,74,21,75,20,76,19,78,17,78,17,80,15,80,15,82,13,83,13,84,12,85,
+119,1,104,2,93,5,82,7,74,10,67,13,61,16,56,18,51,22,47,25,43,27,40,29,38,33,34,34,33,38,30,38,29,42,26,43,25,45,24,48,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+59,62,52,63,46,64,41,65,37,67,33,68,30,69,28,71,25,72,24,74,21,75,20,76,19,78,17,78,17,80,15,80,15,82,13,83,13,84,12,85,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,53,63,47,64,42,65,38,66,34,68,32,69,29,70,27,72,24,72,23,74,21,75,19,76,19,78,17,78,17,80,15,80,15,82,13,83,13,83,
+119,0,106,2,94,4,85,7,76,10,69,12,64,15,58,18,53,20,49,22,46,25,43,28,39,29,38,34,33,34,33,37,30,38,29,41,27,43,25,43,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+60,62,53,63,47,64,42,65,38,66,34,68,32,69,29,70,27,72,24,72,23,74,21,75,19,76,19,78,17,78,17,80,15,80,15,82,13,83,13,83,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,53,63,48,63,43,64,39,66,36,67,33,68,30,69,28,70,26,72,24,73,22,74,21,76,19,76,19,78,17,78,17,80,15,80,15,81,14,83,
+120,0,107,2,96,4,87,6,79,9,72,12,66,14,60,16,56,18,52,22,48,24,45,25,43,29,38,30,37,34,33,34,33,37,30,38,29,40,28,43,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+60,62,53,63,48,63,43,64,39,66,36,67,33,68,30,69,28,70,26,72,24,73,22,74,21,76,19,76,19,78,17,78,17,80,15,80,15,81,14,83,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,54,63,48,63,44,64,40,65,37,66,34,68,31,69,29,70,27,71,25,72,24,74,21,74,21,76,19,76,19,78,17,78,17,80,15,80,15,81,
+120,0,109,2,97,4,88,5,81,7,74,10,68,12,63,15,58,18,53,20,50,22,48,25,43,25,42,29,38,30,37,34,33,34,33,37,30,38,29,39,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+60,62,54,63,48,63,44,64,40,65,37,66,34,68,31,69,29,70,27,71,25,72,24,74,21,74,21,76,19,76,19,78,17,78,17,80,15,80,15,81,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,55,62,49,63,45,64,41,65,38,66,35,68,32,69,30,69,28,70,26,72,24,72,23,74,21,74,20,76,19,76,18,78,17,78,17,80,15,80,
+120,0,109,2,99,4,90,5,83,7,76,10,70,12,65,15,60,15,56,18,53,22,48,22,46,25,43,26,41,29,38,30,37,34,33,34,33,37,31,38,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+60,62,55,62,49,63,45,64,41,65,38,66,35,68,32,69,30,69,28,70,26,72,24,72,23,74,21,74,20,76,19,76,18,78,17,78,17,80,15,80,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,55,62,50,63,46,64,42,65,39,66,36,67,33,68,31,69,29,70,27,71,26,72,24,73,22,74,21,75,20,76,19,77,18,78,17,78,17,80,
+120,0,110,1,101,3,92,5,84,7,78,9,72,11,67,12,62,15,59,18,54,18,51,22,48,23,45,25,43,27,40,29,38,30,37,34,33,34,33,36,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+60,62,55,62,50,63,46,64,42,65,39,66,36,67,33,68,31,69,29,70,27,71,26,72,24,73,22,74,21,75,20,76,19,77,18,78,17,78,17,80,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,55,62,51,63,46,63,43,64,40,65,37,66,34,68,32,69,30,69,28,70,27,72,25,72,24,74,22,74,21,75,19,76,19,77,18,78,17,78,
+121,0,111,1,102,2,93,4,86,6,79,7,74,10,69,12,65,15,59,15,56,18,53,20,49,22,48,24,43,25,43,28,39,29,38,31,36,34,33,34,
+0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,0,123,
+60,62,55,62,51,63,46,63,43,64,40,65,37,66,34,68,32,69,30,69,28,70,27,72,25,72,24,74,22,74,21,75,19,76,19,77,18,78,17,78,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+98,0,108,0,114,0,116,0,119,0,121,0,121,0,122,0,123,0,123,0,124,0,124,0,125,0,125,0,125,0,124,0,126,0,126,0,126,0,126,0,
+129,0,130,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+8,0,68,0,86,0,97,0,103,0,107,0,110,0,112,0,113,0,115,0,116,0,117,0,118,0,118,0,119,0,119,0,119,0,120,0,120,0,120,0,
+68,0,99,0,108,0,113,0,117,0,119,0,121,0,121,0,122,0,123,0,123,0,124,0,124,0,125,0,125,0,124,0,125,0,126,0,126,0,126,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+76,11,87,6,95,3,99,2,104,2,107,1,109,1,110,1,113,0,114,0,115,0,116,0,117,0,118,0,118,0,118,0,120,0,120,0,120,0,121,0,
+130,0,130,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,64,23,23,44,12,59,7,69,5,77,4,83,3,87,2,92,2,94,1,97,1,99,1,102,1,103,1,104,0,105,0,107,0,108,0,109,0,110,0,
+65,32,77,11,88,6,94,3,100,2,104,2,107,1,108,1,111,1,113,0,114,0,115,0,116,0,117,0,118,0,117,0,119,0,120,0,120,0,120,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+71,21,79,13,86,9,89,6,95,5,98,4,101,3,103,2,105,2,107,2,108,2,110,1,111,1,112,1,113,1,112,1,114,0,115,0,116,0,116,0,
+131,0,130,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,85,12,44,27,27,39,18,50,13,58,11,65,8,71,7,76,5,79,5,83,4,86,4,88,3,90,2,93,2,94,2,96,2,97,1,99,1,100,1,
+65,42,71,22,79,13,84,9,91,6,95,5,98,4,100,3,103,2,105,2,107,2,108,2,110,1,111,1,112,1,112,1,113,1,114,0,115,0,116,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+69,29,74,20,80,14,84,11,89,8,92,7,95,6,96,5,100,4,101,3,103,3,104,2,106,2,107,2,108,2,108,2,110,2,111,1,112,1,112,1,
+131,0,130,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,96,8,59,18,40,29,29,38,22,46,17,52,14,58,12,63,10,68,8,71,7,75,6,77,5,81,5,82,4,85,4,87,4,88,4,90,3,92,2,
+66,48,69,29,75,20,79,14,85,11,89,8,92,7,94,6,97,5,100,4,101,3,103,3,104,2,106,2,107,2,107,2,109,2,110,2,111,1,112,1,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+68,34,72,25,77,19,80,15,84,12,87,10,90,8,92,7,95,6,97,5,99,5,100,4,101,3,103,3,104,3,104,2,106,2,107,2,108,2,109,2,
+131,0,130,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,102,5,69,13,50,22,38,30,30,37,24,43,20,49,17,54,15,58,12,62,11,66,10,69,9,71,7,74,7,76,6,79,5,81,5,82,5,84,4,
+65,51,68,34,72,25,76,19,81,15,84,12,87,10,89,8,93,7,95,6,97,5,99,5,100,4,101,3,103,3,103,3,105,2,106,2,107,2,108,2,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,38,71,29,74,23,77,18,81,15,84,13,86,11,88,9,91,8,93,7,95,6,96,6,98,5,99,5,100,4,101,3,103,3,103,3,104,3,105,2,
+131,0,131,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,106,4,77,11,58,17,46,24,37,31,31,36,26,41,22,46,19,51,17,55,15,58,13,61,12,64,10,67,10,69,9,72,7,74,7,76,7,78,6,
+65,53,67,38,71,29,73,23,78,18,81,15,84,13,85,11,89,9,91,8,93,7,95,6,96,6,98,5,99,5,99,4,101,3,103,3,103,3,104,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,41,69,32,73,26,75,21,79,18,81,15,84,13,85,11,88,10,90,9,91,8,93,7,95,6,96,6,97,5,98,5,100,5,101,4,101,3,102,3,
+131,0,131,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,109,3,82,8,65,14,52,20,43,26,36,31,31,36,27,40,23,45,21,49,18,52,16,55,15,58,13,61,12,64,11,66,10,68,10,70,9,71,7,
+65,54,67,41,70,32,72,26,76,21,79,18,81,15,83,13,86,11,88,10,90,9,91,8,93,7,95,6,96,6,96,5,98,5,100,5,101,4,101,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,43,69,35,72,29,73,24,77,20,79,18,81,16,83,14,85,12,87,11,89,10,90,9,92,8,93,7,95,7,95,6,97,6,98,5,99,5,100,5,
+131,0,131,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,111,2,87,7,71,12,58,17,49,22,41,27,36,32,32,35,28,40,25,43,22,47,20,50,18,53,16,56,15,58,14,60,12,63,12,65,11,66,10,
+65,55,67,43,69,35,71,29,74,24,77,20,79,18,81,16,83,14,85,12,87,11,89,10,90,9,92,8,93,7,94,7,96,6,97,6,98,5,99,5,
+31,0,63,0,102,0,114,0,120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,0,126,0,126,0,126,0,126,0,31,31,63,0,102,0,114,0,
+120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,0,126,0,126,0,126,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,88,0,112,0,119,0,121,0,123,0,124,0,124,0,125,0,125,0,126,0,126,0,
+126,0,126,0,126,0,126,0,31,31,63,0,102,0,114,0,120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,0,126,0,126,0,126,0,126,0,
+67,45,68,37,70,31,72,27,75,23,77,20,80,18,81,16,83,14,85,12,87,11,88,11,90,9,91,9,92,8,92,7,95,7,96,6,97,6,98,6,
+131,0,131,0,131,0,129,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,113,2,91,5,75,10,63,15,54,19,46,24,41,28,35,32,32,35,29,39,25,42,23,45,22,48,18,51,18,53,16,56,15,59,14,60,12,62,12,
+65,56,67,45,68,37,69,31,73,27,75,23,77,20,79,17,81,16,83,14,85,12,87,11,88,11,90,9,91,9,91,8,94,7,95,7,96,6,97,6,
+0,0,10,0,63,0,92,0,106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,0,124,0,125,0,125,0,125,0,0,63,10,10,63,0,92,0,
+106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,0,124,0,125,0,125,0,125,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,0,68,0,85,0,103,0,110,0,114,0,117,0,120,0,121,0,122,0,123,0,124,0,
+124,0,125,0,125,0,125,0,0,63,10,10,63,0,92,0,106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,0,124,0,125,0,125,0,125,0,
+66,47,68,39,70,34,71,29,74,25,76,22,78,19,79,17,82,16,83,14,85,13,86,12,88,11,89,10,90,9,91,9,92,7,94,7,95,7,95,6,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,115,1,94,5,79,8,68,12,58,16,51,21,45,25,40,29,35,32,32,35,29,38,26,42,24,44,22,47,20,49,18,52,18,53,15,56,15,59,15,
+65,57,66,47,68,39,69,34,72,29,74,25,76,22,77,20,80,17,82,16,83,14,85,13,86,12,88,11,89,10,89,9,92,9,92,7,94,7,95,7,
+0,0,0,0,3,0,45,0,72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,0,119,0,120,0,121,0,122,0,0,102,0,63,3,3,45,0,
+72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,0,119,0,120,0,121,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,85,0,32,0,62,0,80,0,90,0,99,0,106,0,110,0,114,0,116,0,118,0,
+119,0,120,0,121,0,122,0,0,102,0,63,3,3,45,0,72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,0,119,0,120,0,121,0,122,0,
+66,48,68,41,69,35,70,31,73,27,75,24,76,21,77,19,80,17,82,16,83,14,85,13,86,12,87,11,89,11,89,9,91,9,92,9,92,7,94,7,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,115,1,97,4,82,7,71,11,62,15,55,18,49,22,43,25,39,29,35,32,32,35,29,38,27,41,25,43,22,46,22,48,19,50,18,53,18,54,15,
+65,57,66,48,68,41,68,35,71,31,73,27,75,24,76,21,78,19,80,17,82,16,83,14,85,13,86,12,87,11,87,11,90,9,91,9,92,9,92,7,
+0,0,0,0,0,0,1,0,34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,111,0,113,0,115,0,117,0,0,114,0,92,0,45,1,1,
+34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,111,0,113,0,115,0,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,119,0,103,0,62,0,13,0,40,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,
+111,0,113,0,115,0,117,0,0,114,0,92,0,45,1,1,34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,111,0,113,0,115,0,117,0,
+66,50,68,42,69,37,70,33,72,29,74,26,75,23,76,21,78,19,80,17,82,16,83,14,85,13,85,12,87,12,87,11,90,10,90,9,91,9,92,9,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,116,1,100,4,85,6,74,10,66,13,58,16,52,20,47,23,42,26,38,29,35,33,33,34,29,38,27,40,25,43,24,44,22,48,21,48,18,51,18,
+65,58,66,50,68,42,68,37,70,33,72,29,74,26,75,23,77,21,78,19,80,17,82,16,83,14,85,13,85,12,86,12,88,11,90,10,90,9,91,9,
+0,0,0,0,0,0,0,0,0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,101,0,104,0,107,0,110,0,0,120,0,106,0,72,0,34,
+0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,101,0,104,0,107,0,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,121,0,110,0,80,0,40,0,1,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,
+101,0,104,0,107,0,110,0,0,120,0,106,0,72,0,34,0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,101,0,104,0,107,0,110,0,
+66,50,67,44,68,38,69,34,72,31,73,27,75,25,76,22,78,21,79,19,80,17,82,16,83,14,85,14,85,12,86,12,87,11,89,11,90,10,90,9,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,117,1,101,3,88,5,77,9,69,12,62,15,55,18,50,22,45,24,42,27,38,29,34,33,33,34,29,38,28,39,25,43,25,43,22,46,22,48,20,
+65,58,66,50,67,44,68,38,70,34,72,31,73,27,74,25,76,22,78,21,79,19,80,17,82,16,83,14,85,14,84,12,87,12,87,11,89,11,90,10,
+0,0,0,0,0,0,0,0,0,0,0,0,22,0,40,0,55,0,66,0,75,0,83,0,89,0,94,0,98,0,101,0,0,122,0,113,0,89,0,58,
+0,27,0,0,22,0,40,0,55,0,66,0,75,0,83,0,89,0,94,0,98,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,123,0,114,0,90,0,58,0,27,0,1,0,22,0,40,0,55,0,66,0,75,0,83,0,
+89,0,94,0,98,0,101,0,0,122,0,113,0,89,0,58,0,27,0,0,22,0,40,0,55,0,66,0,75,0,83,0,89,0,94,0,98,0,101,0,
+66,51,67,45,68,40,69,35,71,32,72,29,74,26,74,24,76,22,78,20,79,19,80,17,82,16,83,14,85,14,84,13,87,12,87,11,88,11,90,11,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,118,1,103,2,90,5,80,7,71,10,64,13,58,16,53,18,48,22,44,25,41,27,38,29,34,33,33,34,29,38,29,38,26,42,25,43,23,45,22,
+65,59,66,51,67,45,68,40,69,35,71,32,72,29,73,26,75,24,76,22,78,20,79,19,80,17,82,16,83,14,84,14,85,13,87,12,87,11,88,11,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,35,0,48,0,59,0,68,0,76,0,82,0,87,0,91,0,0,124,0,117,0,99,0,74,
+0,48,0,22,0,0,19,0,35,0,48,0,59,0,68,0,76,0,82,0,87,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,117,0,99,0,74,0,48,0,22,0,0,0,19,0,35,0,48,0,59,0,68,0,
+76,0,82,0,87,0,91,0,0,124,0,117,0,99,0,74,0,48,0,22,0,0,19,0,35,0,48,0,59,0,68,0,76,0,82,0,87,0,91,0,
+66,52,67,46,68,41,69,37,70,33,72,30,73,27,74,25,76,23,77,21,78,20,80,19,80,17,82,17,82,15,83,14,85,13,86,12,87,12,87,11,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,119,0,104,2,92,5,82,7,74,10,67,12,61,15,55,18,51,20,47,22,43,25,40,28,38,29,34,33,34,33,30,37,29,38,26,41,25,43,24,
+65,59,66,52,67,46,68,41,69,37,70,33,72,30,72,27,75,25,76,23,77,21,78,20,80,19,80,17,82,17,81,15,84,14,85,13,86,12,87,12,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,31,0,43,0,53,0,62,0,69,0,76,0,81,0,0,124,0,120,0,106,0,86,
+0,63,0,40,0,19,0,0,16,0,31,0,43,0,53,0,62,0,69,0,76,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,120,0,106,0,86,0,63,0,40,0,19,0,0,0,16,0,31,0,43,0,53,0,
+62,0,69,0,76,0,81,0,0,124,0,120,0,106,0,86,0,63,0,40,0,19,0,0,16,0,31,0,43,0,53,0,62,0,69,0,76,0,81,0,
+66,52,67,47,68,42,68,38,70,34,71,31,72,29,73,26,75,24,76,23,78,21,78,19,80,19,80,17,82,17,81,15,84,14,85,13,86,12,87,12,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,119,0,105,2,94,4,85,6,76,9,69,12,63,14,58,16,53,18,49,22,46,24,43,25,39,29,38,30,34,33,34,33,30,37,29,38,27,40,25,
+65,59,66,52,67,47,67,42,69,38,70,34,71,31,72,29,74,26,75,24,76,23,78,21,78,19,80,19,80,17,81,17,82,15,84,14,85,13,86,12,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,27,0,39,0,48,0,57,0,64,0,70,0,0,125,0,121,0,110,0,94,
+0,75,0,55,0,35,0,16,0,0,14,0,27,0,39,0,48,0,57,0,64,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,121,0,110,0,94,0,75,0,55,0,35,0,16,0,0,0,14,0,27,0,39,0,
+48,0,57,0,64,0,70,0,0,125,0,121,0,110,0,94,0,75,0,55,0,35,0,16,0,0,14,0,27,0,39,0,48,0,57,0,64,0,70,0,
+66,53,67,48,68,43,68,39,69,36,70,33,72,30,72,28,75,26,75,24,76,22,78,21,78,19,80,18,80,17,81,17,82,15,84,14,85,14,85,12,
+131,0,131,0,131,0,131,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,119,0,107,2,96,4,87,5,79,7,72,10,66,12,60,15,56,18,52,20,48,22,44,25,43,25,38,29,37,30,34,33,34,33,30,37,29,38,28,
+65,59,66,53,67,48,67,43,68,39,69,36,70,33,71,30,73,28,75,26,75,24,76,22,78,21,78,19,80,18,80,17,82,17,82,15,84,14,85,14,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,25,0,35,0,44,0,52,0,59,0,0,125,0,122,0,114,0,100,
+0,84,0,66,0,48,0,31,0,14,0,0,13,0,25,0,35,0,44,0,52,0,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,122,0,114,0,100,0,84,0,66,0,48,0,31,0,14,0,0,0,13,0,25,0,
+35,0,44,0,52,0,59,0,0,125,0,122,0,114,0,100,0,84,0,66,0,48,0,31,0,14,0,0,13,0,25,0,35,0,44,0,52,0,59,0,
+66,54,67,48,68,44,68,40,69,37,70,34,72,31,72,29,73,26,75,25,76,24,77,21,78,21,79,19,80,18,80,17,82,17,82,15,84,14,85,14,
+131,0,131,0,131,0,131,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,119,0,108,2,97,4,88,5,81,7,74,10,68,12,63,15,58,16,53,18,50,22,48,22,43,25,42,26,38,29,37,30,34,33,34,33,30,37,29,
+65,59,66,54,67,48,67,44,68,40,69,37,70,34,71,31,73,29,73,26,75,25,76,24,77,21,78,21,79,19,79,18,81,17,82,17,82,15,84,14,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,22,0,32,0,41,0,48,0,0,126,0,123,0,116,0,105,
+0,91,0,75,0,59,0,43,0,27,0,13,0,0,12,0,22,0,32,0,41,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,123,0,116,0,105,0,91,0,75,0,59,0,43,0,27,0,13,0,0,0,12,0,
+22,0,32,0,41,0,48,0,0,126,0,123,0,116,0,105,0,91,0,75,0,59,0,43,0,27,0,13,0,0,12,0,22,0,32,0,41,0,48,0,
+66,54,66,49,67,45,68,41,69,38,70,35,71,32,71,30,73,28,75,26,75,24,76,23,77,21,78,20,79,19,79,18,81,17,82,17,82,15,84,14,
+131,0,131,0,131,0,130,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,120,0,109,1,98,3,90,5,82,7,76,9,70,11,65,12,60,15,56,18,53,18,48,22,46,23,43,25,41,27,38,29,37,30,34,33,34,33,31,
+65,60,66,54,66,49,67,45,68,41,69,38,70,35,70,32,72,30,73,28,75,26,75,24,76,23,77,21,78,20,78,19,80,18,81,17,82,17,82,15,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,21,0,30,0,38,0,0,126,0,124,0,118,0,109,
+0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,11,0,21,0,30,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,118,0,109,0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,0,
+11,0,21,0,30,0,38,0,0,126,0,124,0,118,0,109,0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,11,0,21,0,30,0,38,0,
+66,55,66,50,67,45,68,42,69,39,69,35,70,33,71,31,73,29,73,26,75,25,76,24,76,22,78,21,78,20,79,19,80,18,81,17,82,17,82,15,
+131,0,131,0,131,0,131,0,131,0,131,0,131,0,130,0,131,0,131,0,131,0,131,0,131,0,131,0,131,0,129,0,131,0,131,0,131,0,131,0,
+0,120,0,110,1,100,2,91,4,84,6,78,7,71,10,66,12,62,15,59,15,53,18,51,20,48,22,45,25,43,25,40,28,38,29,37,31,34,33,34,
+65,60,66,55,66,50,67,45,68,42,69,39,69,35,70,33,72,31,73,29,73,26,75,25,76,24,76,22,78,21,77,20,80,19,80,18,81,17,82,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,19,0,27,0,0,126,0,124,0,119,0,111,
+0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,0,10,0,19,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,119,0,111,0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,
+0,0,10,0,19,0,27,0,0,126,0,124,0,119,0,111,0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,0,10,0,19,0,27,0,
+64,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+97,32,77,42,72,48,68,51,68,53,68,54,67,55,66,56,67,57,66,57,66,58,66,58,66,59,66,59,66,59,65,59,66,60,66,60,66,60,66,60,
+4,61,34,61,43,61,48,61,51,61,53,61,55,61,56,61,57,61,57,61,58,61,58,61,59,61,59,61,59,61,60,61,60,61,60,61,60,61,60,61,
+64,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,18,0,0,126,0,125,0,120,0,113,
+0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,10,0,0,9,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,120,0,113,0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,
+10,0,0,0,9,0,18,0,0,126,0,125,0,120,0,113,0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,10,0,0,9,0,18,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+108,11,87,22,79,29,74,34,72,38,71,41,70,43,68,45,68,47,68,48,68,49,68,50,67,51,67,52,67,52,66,53,67,54,66,54,66,55,66,55,
+0,93,12,73,22,67,29,65,34,64,38,63,41,63,44,63,46,62,47,62,49,62,50,62,51,62,51,62,52,62,53,62,53,62,54,62,55,62,55,62,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,126,0,125,0,121,0,115,
+0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,19,0,9,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,121,0,115,0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,
+19,0,9,0,0,0,8,0,0,126,0,125,0,121,0,115,0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,19,0,9,0,0,8,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+114,6,95,13,86,20,79,25,77,29,74,32,73,35,71,37,70,39,70,41,69,42,69,44,68,45,68,46,68,47,67,48,68,48,68,49,67,50,67,51,
+0,104,6,84,13,75,20,71,25,68,29,67,32,65,35,65,38,64,39,64,41,63,43,63,44,63,45,63,46,63,47,63,48,63,48,62,49,62,50,62,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,
+0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,27,0,18,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,
+27,0,18,0,8,0,0,0,0,126,0,125,0,122,0,117,0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,27,0,18,0,8,0,0,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+117,3,100,9,90,14,84,19,81,23,78,26,76,29,73,31,73,34,72,35,71,37,70,38,70,40,69,41,69,42,68,43,68,44,68,45,68,46,68,46,
+0,109,4,91,9,81,14,76,19,72,23,70,26,68,29,67,31,66,34,66,36,65,37,65,39,64,40,64,41,64,42,63,43,63,44,63,45,63,46,63,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,31,63,0,102,0,114,0,
+120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,0,126,0,126,0,126,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,31,0,63,0,102,0,114,0,120,0,122,0,124,0,124,0,125,0,125,0,126,0,126,
+0,126,0,126,0,126,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+119,2,104,6,95,11,88,15,84,18,81,21,79,24,76,27,75,29,74,31,73,33,72,34,72,35,71,37,70,38,69,39,69,40,69,41,69,42,68,43,
+0,112,2,96,7,86,11,80,15,76,18,73,22,71,24,70,27,69,29,68,31,67,33,66,34,66,36,65,37,65,38,64,39,64,40,64,41,64,42,63,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,10,10,63,0,92,0,
+106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,0,124,0,125,0,125,0,125,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,10,10,0,63,0,92,0,106,0,113,0,117,0,120,0,121,0,122,0,123,0,124,
+0,124,0,125,0,125,0,125,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+120,2,107,5,98,8,91,12,87,15,84,18,81,20,78,23,77,25,76,27,75,29,74,30,73,32,72,33,72,34,70,36,70,37,70,38,70,39,69,39,
+0,114,2,100,5,91,8,84,12,80,15,77,18,74,20,72,23,71,25,70,27,69,29,68,31,68,32,66,33,66,34,66,36,65,37,65,38,65,39,64,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,0,63,3,3,45,0,
+72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,0,119,0,120,0,121,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,0,63,0,3,3,0,45,0,72,0,89,0,99,0,106,0,110,0,114,0,116,0,118,
+0,119,0,120,0,121,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+121,1,109,4,101,7,94,10,90,13,86,15,84,18,81,20,79,22,78,24,76,26,75,27,75,29,74,30,73,31,72,33,72,34,72,35,71,35,70,37,
+0,116,1,102,4,94,7,87,10,83,13,79,16,77,18,75,20,73,22,72,24,70,26,69,27,69,29,68,30,68,32,67,33,66,34,66,35,66,36,65,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,0,92,0,45,1,1,
+34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,0,111,0,113,0,115,0,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,0,92,0,45,0,1,1,0,34,0,58,0,74,0,86,0,94,0,100,0,105,0,109,
+0,111,0,113,0,115,0,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+122,1,111,3,103,6,96,8,93,11,89,13,86,16,83,17,81,20,80,21,78,23,77,25,76,26,75,27,75,29,72,30,73,31,73,32,72,33,72,34,
+0,117,1,105,3,97,6,90,8,86,11,82,13,79,16,77,18,75,20,74,22,72,23,71,25,70,26,69,28,69,29,68,30,68,31,68,32,67,33,66,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,0,106,0,72,0,34,
+0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,0,101,0,104,0,107,0,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,0,106,0,72,0,34,0,0,0,0,27,0,48,0,63,0,75,0,84,0,91,0,97,
+0,101,0,104,0,107,0,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+123,1,113,2,105,5,98,7,95,9,91,12,88,14,85,16,83,17,82,19,80,21,78,22,78,24,76,25,76,26,74,28,75,29,73,30,73,31,73,32,
+0,118,1,107,3,99,5,93,7,88,9,84,12,82,14,79,16,77,17,76,19,74,21,73,23,72,24,71,25,70,27,69,28,69,29,68,30,68,31,68,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,122,0,113,0,89,0,58,
+0,27,0,0,22,0,40,0,55,0,66,0,75,0,83,0,89,0,94,0,98,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,122,0,113,0,89,0,58,0,27,0,0,0,0,22,0,40,0,55,0,66,0,75,0,83,
+0,89,0,94,0,98,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+123,0,114,2,107,4,100,6,97,8,93,10,90,12,86,14,85,16,83,17,82,19,80,21,79,22,78,23,77,24,75,26,75,26,75,28,75,29,73,29,
+0,119,0,108,2,101,4,95,6,90,8,87,10,84,12,81,14,79,16,77,17,76,19,74,21,73,22,72,24,72,24,70,26,70,27,69,28,69,29,69,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,117,0,99,0,74,
+0,48,0,22,0,0,19,0,35,0,48,0,59,0,68,0,76,0,82,0,87,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,117,0,99,0,74,0,48,0,22,0,0,0,0,19,0,35,0,48,0,59,0,68,
+0,76,0,82,0,87,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+124,0,115,2,108,3,102,5,99,7,94,9,92,11,88,12,87,14,85,16,83,17,82,19,80,20,79,21,78,23,76,24,76,25,76,26,75,26,75,28,
+0,119,0,110,2,102,4,97,5,92,7,89,9,86,11,83,13,81,15,79,16,78,17,76,19,75,20,74,21,72,23,72,24,71,25,70,27,70,27,69,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,120,0,106,0,86,
+0,63,0,40,0,19,0,0,16,0,31,0,43,0,53,0,62,0,69,0,76,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,120,0,106,0,86,0,63,0,40,0,19,0,0,0,0,16,0,31,0,43,0,53,
+0,62,0,69,0,76,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+124,0,116,2,110,3,104,5,100,6,96,8,93,10,90,11,88,13,86,14,85,16,83,17,82,19,80,20,80,21,77,22,78,24,76,24,76,25,76,26,
+0,119,0,111,2,104,3,99,5,94,6,90,8,87,10,85,11,83,13,80,15,79,16,78,17,76,19,75,20,74,21,73,22,72,24,72,24,70,25,70,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,121,0,110,0,94,
+0,75,0,55,0,35,0,16,0,0,14,0,27,0,39,0,48,0,57,0,64,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,121,0,110,0,94,0,75,0,55,0,35,0,16,0,0,0,0,14,0,27,0,39,
+0,48,0,57,0,64,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,117,1,111,2,105,4,101,6,98,7,95,9,91,11,90,12,88,13,86,14,85,16,83,17,82,19,80,19,79,21,78,21,78,23,77,24,76,24,
+0,120,0,112,1,105,3,100,4,96,6,92,7,89,9,86,11,84,12,82,13,80,15,79,16,78,17,76,19,75,19,74,21,74,21,72,23,72,24,71,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,122,0,114,0,100,
+0,84,0,66,0,48,0,31,0,14,0,0,13,0,25,0,35,0,44,0,52,0,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,122,0,114,0,100,0,84,0,66,0,48,0,31,0,14,0,0,0,0,13,0,25,
+0,35,0,44,0,52,0,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,118,1,112,2,106,3,103,5,99,6,96,8,93,9,91,11,89,12,87,13,85,14,85,16,83,17,82,19,79,19,80,21,79,21,78,22,78,24,
+0,120,0,113,1,106,3,102,4,97,5,93,6,90,8,88,9,85,11,83,13,82,14,80,15,78,16,78,17,76,19,76,19,74,21,74,21,73,22,72,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,123,0,116,0,105,
+0,91,0,75,0,59,0,43,0,27,0,13,0,0,12,0,22,0,32,0,41,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,123,0,116,0,105,0,91,0,75,0,59,0,43,0,27,0,13,0,0,0,0,12,
+0,22,0,32,0,41,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,118,1,113,2,108,3,104,5,100,6,97,7,94,9,92,10,90,11,89,12,87,14,85,14,85,17,82,17,81,18,81,19,80,20,79,21,78,21,
+0,121,0,113,1,108,2,102,4,98,5,95,6,92,7,89,9,87,10,85,11,83,13,81,14,80,15,78,17,78,17,76,19,76,19,75,20,74,21,74,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,118,0,109,
+0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,11,0,21,0,30,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,118,0,109,0,97,0,83,0,68,0,53,0,39,0,25,0,12,0,0,0,
+0,11,0,21,0,30,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,119,1,114,2,109,3,105,4,102,6,99,7,95,8,94,9,92,11,90,12,88,12,87,14,85,15,84,17,81,17,82,18,81,19,80,20,80,21,
+0,121,0,114,1,109,2,104,3,99,4,96,6,93,7,91,8,88,9,86,11,84,12,83,13,81,14,80,15,78,17,78,17,76,18,76,19,75,20,74,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,119,0,111,
+0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,0,10,0,19,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,124,0,119,0,111,0,101,0,89,0,76,0,62,0,48,0,35,0,22,0,11,0,
+0,0,0,10,0,19,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+125,0,120,1,114,2,110,2,106,3,103,5,100,6,96,7,95,9,92,10,91,11,90,12,87,12,86,14,85,15,83,17,82,17,82,18,81,19,80,19,
+0,121,0,115,1,109,2,105,3,101,4,97,5,94,6,92,7,89,9,87,10,85,11,84,13,83,13,81,15,80,15,78,17,78,17,76,18,76,19,75,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,120,0,113,
+0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,10,0,0,9,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,120,0,113,0,104,0,94,0,82,0,69,0,57,0,44,0,32,0,21,0,
+10,0,0,0,0,9,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+126,0,120,1,115,2,110,2,107,3,104,5,101,6,98,7,95,7,94,9,92,11,90,11,89,12,87,13,86,14,84,15,84,17,82,17,82,18,81,19,
+0,121,0,115,1,110,2,105,3,102,4,98,5,95,6,93,7,91,8,88,9,86,11,85,11,83,13,82,13,80,15,80,15,78,17,78,17,77,18,76,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,121,0,115,
+0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,19,0,9,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,121,0,115,0,107,0,98,0,87,0,76,0,64,0,52,0,41,0,30,0,
+19,0,9,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+126,0,120,0,116,1,111,2,108,3,104,4,101,5,98,6,97,7,95,9,92,9,91,11,90,11,88,12,87,13,85,14,85,15,84,17,82,17,82,18,
+0,121,0,116,0,111,2,106,3,102,4,99,5,96,5,94,6,91,7,89,9,88,9,85,11,85,12,83,13,82,13,80,15,80,15,78,17,78,17,77,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,
+0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,27,0,18,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,125,0,122,0,117,0,110,0,101,0,91,0,81,0,70,0,59,0,48,0,38,0,
+27,0,18,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+126,0,121,0,116,1,112,2,108,3,105,3,102,5,99,6,98,7,95,7,94,9,92,10,90,11,90,12,87,12,86,14,85,14,85,15,84,17,82,17,
+0,121,0,116,0,112,1,107,2,103,3,100,4,97,5,95,6,93,7,91,8,88,9,87,10,85,11,84,12,83,13,81,14,80,15,80,15,78,17,78,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+64,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+102,127,77,104,73,92,71,85,69,81,69,78,68,76,67,74,67,73,67,72,67,71,66,71,66,70,66,70,66,69,66,69,66,69,66,68,66,68,66,68,
+87,127,46,88,52,77,55,73,57,71,58,69,59,68,59,68,60,67,60,67,60,67,61,66,61,66,61,66,61,65,61,65,61,65,61,65,61,65,61,65,
+153,127,77,88,73,77,71,73,69,71,69,69,68,68,67,68,67,67,67,67,67,67,66,66,66,66,66,66,66,65,66,65,66,65,66,65,66,65,66,65,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,5,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+165,22,116,35,98,41,89,45,83,48,80,50,78,52,76,53,74,54,73,55,72,56,72,56,71,57,70,57,70,57,70,58,69,58,69,58,69,58,68,59,
+35,47,37,53,42,55,46,57,49,58,51,59,52,59,53,60,55,60,55,60,56,61,56,61,57,61,57,61,57,61,58,61,58,61,58,61,59,61,59,61,
+119,39,95,49,86,53,82,56,79,57,76,58,75,59,73,59,72,60,72,60,71,60,71,60,70,61,70,61,69,61,69,61,69,61,68,61,68,61,68,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0,31,0,1,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,0,95,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+187,1,145,9,120,17,107,23,98,28,92,32,88,35,85,37,82,40,81,42,79,43,78,44,77,46,76,47,75,48,74,49,73,49,73,50,72,51,71,51,
+34,37,35,42,38,46,42,49,44,51,46,52,48,54,49,55,50,55,51,56,52,56,53,57,54,57,54,58,55,58,55,58,56,58,56,59,57,59,57,59,
+122,26,104,36,95,42,90,46,85,49,83,51,81,52,79,53,77,54,76,55,75,56,75,56,74,57,73,57,73,57,72,58,71,58,71,58,70,59,70,59,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57,0,46,0,22,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,0,139,0,68,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+198,0,163,2,138,7,122,12,111,17,104,21,98,24,94,27,91,29,88,32,86,34,84,35,83,37,81,38,80,40,78,41,77,42,77,43,77,44,76,44,
+34,35,34,39,37,42,39,44,42,46,43,48,45,50,46,51,48,52,49,52,50,53,51,54,51,54,52,55,52,55,53,56,54,56,54,57,54,57,54,57,
+123,22,109,31,101,36,95,40,91,43,88,45,85,47,84,49,82,50,80,51,79,52,78,53,77,53,76,54,75,54,74,55,74,56,74,56,74,57,73,57,
+0,0,0,0,0,0,0,0,0,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,0,53,0,36,0,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179,0,159,0,109,0,51,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+204,0,175,0,152,3,135,6,123,10,115,14,108,17,103,19,99,22,95,24,92,26,90,28,88,30,86,32,85,33,84,34,82,36,81,37,80,38,79,39,
+34,34,34,37,36,39,38,42,40,43,41,45,43,47,44,48,45,49,47,50,48,51,48,51,49,52,50,53,51,53,51,54,51,54,52,54,53,54,53,55,
+124,21,113,27,104,32,99,36,95,39,92,41,89,44,87,45,85,47,84,48,83,49,81,50,80,50,79,51,79,52,78,53,77,53,76,53,75,53,74,54,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,56,0,44,0,29,
+0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,183,0,170,0,133,0,87,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+207,0,183,0,162,0,146,3,133,6,124,9,117,11,111,14,106,17,102,19,99,21,95,23,94,25,92,26,90,28,87,29,86,31,85,31,85,33,84,34,
+34,34,34,36,35,38,37,40,38,41,40,43,41,44,43,45,44,47,45,48,45,48,47,49,48,50,48,51,48,51,50,51,50,52,51,53,51,54,51,54,
+124,20,115,25,108,30,103,34,99,36,95,38,92,40,90,42,88,44,87,45,85,46,83,47,83,48,82,49,81,49,79,50,79,51,79,51,79,52,78,53,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,58,0,49,0,37,
+0,24,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,186,0,176,0,149,0,112,0,72,0,33,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+210,0,189,0,170,0,155,1,142,3,132,5,124,8,118,10,113,12,108,15,105,17,102,18,99,20,96,22,94,23,93,25,91,26,89,27,87,28,86,30,
+34,34,34,35,35,37,36,39,37,40,39,41,40,43,41,44,43,45,43,45,45,47,45,48,45,48,47,48,48,50,48,51,48,51,49,51,50,51,51,51,
+125,19,117,24,110,28,105,31,101,34,98,36,96,38,92,40,91,41,89,42,87,44,87,45,85,46,83,46,83,47,83,49,81,49,80,49,79,49,79,50,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,53,0,43,
+0,31,0,20,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,187,0,179,0,159,0,129,0,95,0,61,0,28,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+211,0,194,0,177,0,162,0,150,2,140,3,131,5,125,7,119,9,115,11,111,13,106,15,104,17,102,18,99,20,96,21,95,22,94,24,92,25,90,26,
+34,34,34,35,35,36,36,37,37,39,38,41,39,41,40,43,41,43,43,45,43,45,44,46,45,47,45,48,46,48,47,48,48,49,48,50,48,51,48,51,
+125,19,118,23,112,27,107,30,104,32,101,34,97,36,96,38,93,39,92,41,90,42,88,43,87,44,87,45,85,46,83,46,83,47,83,48,83,49,81,49,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,55,0,47,
+0,37,0,27,0,17,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,182,0,166,0,142,0,113,0,82,0,53,0,25,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+212,0,197,0,182,0,168,0,156,0,146,2,138,3,130,5,125,7,120,9,116,10,113,12,108,14,105,15,104,17,101,18,99,19,96,20,95,22,94,23,
+33,34,34,35,34,36,35,37,36,38,37,39,39,40,39,41,40,43,41,43,43,44,43,45,43,45,45,46,45,47,45,48,46,48,47,48,48,48,48,49,
+125,18,119,22,113,25,109,28,105,31,102,32,100,35,97,36,96,38,93,39,92,40,91,42,88,42,87,43,87,44,86,46,84,46,83,46,83,46,83,47,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,61,0,57,0,50,
+0,42,0,33,0,24,0,15,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,184,0,171,0,151,0,126,0,100,0,72,0,46,0,22,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+213,0,199,0,186,0,173,0,162,0,152,1,143,2,136,3,130,5,126,7,120,8,116,10,114,11,110,12,107,14,105,15,103,17,101,18,99,19,96,20,
+33,34,34,34,34,35,35,36,36,37,37,39,38,39,39,40,39,41,40,43,41,43,43,43,43,45,42,45,44,45,45,46,45,47,45,48,46,48,47,48,
+125,18,119,21,114,24,110,27,107,29,104,32,101,33,100,35,96,36,96,38,93,39,92,39,92,41,89,42,87,42,87,43,87,44,86,46,84,46,83,46,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,58,0,52,
+0,45,0,37,0,29,0,21,0,13,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,185,0,174,0,158,0,137,0,113,0,89,0,65,0,41,0,19,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+214,0,201,0,189,0,178,0,167,0,157,0,149,1,142,2,135,3,130,5,126,6,121,8,117,9,115,11,112,12,108,13,106,14,104,15,103,17,101,18,
+33,34,34,34,34,35,35,36,36,37,36,38,37,39,39,40,39,40,40,41,40,43,40,43,42,43,43,44,42,45,43,45,45,45,45,46,45,47,45,48,
+125,18,120,21,115,24,112,26,109,29,105,30,103,32,101,33,99,35,96,36,96,38,93,39,92,39,92,40,90,42,88,42,87,42,87,43,87,44,86,46,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,59,0,54,
+0,48,0,41,0,34,0,26,0,19,0,12,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,186,0,177,0,163,0,145,0,124,0,102,0,80,0,58,0,37,0,18,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+215,0,203,0,192,0,181,0,171,0,162,0,154,0,146,2,141,2,135,3,129,5,126,6,121,7,118,9,116,10,113,11,110,12,107,13,106,14,104,16,
+33,34,34,34,34,35,35,36,35,37,36,37,37,39,37,39,39,40,39,40,40,41,40,43,40,43,42,43,43,44,43,45,43,45,45,45,45,45,45,46,
+126,18,121,21,117,23,113,26,109,27,106,29,105,31,101,32,101,34,98,35,96,35,96,37,93,39,92,39,92,40,92,41,89,42,87,42,87,42,87,43,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,59,0,55,
+0,50,0,44,0,38,0,31,0,24,0,17,0,11,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,187,0,179,0,167,0,152,0,133,0,114,0,93,0,73,0,53,0,34,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+215,0,204,0,194,0,185,0,174,0,166,0,158,0,151,1,144,2,139,2,133,4,129,5,126,6,122,7,118,8,116,9,114,11,111,12,108,12,106,14,
+33,34,34,34,34,35,35,36,35,36,36,37,37,37,37,39,38,39,39,40,38,40,40,40,40,42,40,43,42,43,43,43,43,45,43,45,44,45,45,45,
+126,18,121,21,117,23,114,25,110,26,108,29,105,29,104,32,101,32,101,34,97,35,96,35,96,37,94,39,92,39,92,39,92,41,90,42,88,42,87,42,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,56,
+0,52,0,47,0,41,0,34,0,28,0,22,0,16,0,10,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,187,0,181,0,170,0,157,0,141,0,123,0,104,0,85,0,67,0,48,0,31,0,
+15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+216,0,206,0,197,0,187,0,178,0,170,0,161,0,155,0,148,1,143,2,138,3,132,4,129,5,126,6,123,7,119,8,117,9,115,10,113,11,110,12,
+33,34,34,34,34,35,34,35,35,36,36,37,36,37,37,38,37,39,39,39,39,40,39,40,40,40,40,42,40,43,42,43,43,43,43,44,43,45,43,45,
+126,18,122,20,118,22,114,24,111,26,109,27,106,29,105,30,102,32,101,32,100,35,97,35,96,35,96,37,94,39,92,39,92,39,92,40,91,42,89,42,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,57,
+0,53,0,49,0,43,0,38,0,32,0,26,0,20,0,15,0,9,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,182,0,173,0,161,0,147,0,131,0,114,0,96,0,79,0,61,0,45,0,
+29,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+216,0,207,0,198,0,189,0,181,0,173,0,166,0,158,0,153,0,146,1,142,2,137,3,132,4,129,5,126,6,123,7,119,7,117,9,115,9,114,11,
+33,34,34,34,34,34,34,35,35,36,36,36,36,37,37,37,37,39,37,39,39,39,39,40,39,40,40,40,40,42,40,43,42,43,43,43,43,43,43,45,
+126,18,122,20,118,21,114,24,113,26,109,26,108,29,105,29,104,31,101,32,101,33,100,35,96,35,96,35,96,37,94,39,92,39,92,39,92,39,92,41,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,61,0,58,
+0,55,0,50,0,45,0,40,0,35,0,29,0,24,0,19,0,13,0,9,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,183,0,175,0,165,0,152,0,137,0,122,0,106,0,89,0,73,0,57,0,
+41,0,27,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+216,0,208,0,199,0,191,0,184,0,175,0,169,0,161,0,156,0,150,1,144,2,141,2,136,3,132,4,129,5,127,6,123,7,119,7,118,9,116,9,
+33,34,34,34,34,34,34,35,35,36,35,36,36,37,36,37,37,38,37,39,38,39,39,39,38,40,40,40,40,40,40,42,40,43,42,43,43,43,43,43,
+126,17,122,19,118,21,116,24,114,25,110,26,109,28,105,29,105,30,103,32,101,32,101,33,99,35,96,35,96,35,96,37,94,39,92,39,92,39,92,39,
+0,15,0,31,0,51,0,57,0,60,0,61,0,62,0,62,0,62,0,62,0,63,0,63,0,63,0,63,0,63,0,63,0,88,0,61,0,76,0,76,
+0,72,0,66,0,62,0,62,0,62,0,62,0,63,0,63,0,63,0,63,0,63,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,59,11,7,23,0,44,0,54,0,58,0,60,0,61,0,61,0,62,0,62,0,62,0,62,
+0,63,0,63,0,63,0,63,71,7,15,15,0,38,0,51,0,56,0,58,0,60,0,61,0,61,0,62,0,62,0,62,0,62,0,63,0,63,0,63,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+217,0,209,0,201,0,193,0,186,0,178,0,172,0,165,0,158,0,154,0,147,1,143,2,140,2,136,3,131,4,129,5,127,6,123,6,120,7,118,8,
+33,34,34,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,39,37,39,39,39,39,40,39,40,40,40,40,40,40,42,40,43,42,43,43,43,
+126,17,123,19,119,21,117,23,114,24,111,26,109,26,108,29,105,29,105,31,101,32,101,32,101,34,98,35,96,35,96,35,96,37,95,39,92,39,92,39,
+0,0,0,5,0,31,0,46,0,53,0,56,0,58,0,60,0,60,0,61,0,61,0,62,0,62,0,62,0,62,0,62,0,61,0,48,0,57,0,66,
+0,65,0,61,0,58,0,60,0,60,0,61,0,61,0,62,0,62,0,62,0,62,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,111,0,39,2,2,18,0,37,0,47,0,53,0,56,0,58,0,59,0,60,0,60,0,61,
+0,61,0,62,0,62,0,62,127,0,63,0,5,5,0,28,0,42,0,49,0,53,0,56,0,57,0,59,0,60,0,60,0,61,0,61,0,61,0,62,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+217,0,210,0,202,0,195,0,187,0,181,0,174,0,168,0,161,0,157,0,152,0,146,1,142,2,139,2,135,3,131,4,129,5,127,6,124,6,120,7,
+33,34,34,34,34,34,34,35,35,35,35,36,36,36,36,37,36,37,37,37,37,39,38,39,39,39,39,40,39,40,40,40,40,40,40,42,40,43,41,43,
+126,17,123,19,119,21,118,23,114,24,113,26,109,26,109,28,105,29,105,29,104,32,101,32,101,32,101,34,97,35,96,35,96,35,96,37,95,39,92,39,
+0,0,0,0,0,1,0,22,0,36,0,44,0,49,0,53,0,55,0,57,0,58,0,59,0,59,0,60,0,60,0,61,0,76,0,57,0,22,0,40,
+0,47,0,46,0,49,0,53,0,55,0,57,0,58,0,59,0,59,0,60,0,60,0,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,159,0,111,0,34,0,9,11,0,22,0,35,0,42,0,47,0,51,0,53,0,55,0,56,
+0,57,0,58,0,59,0,60,165,0,127,0,63,0,18,0,0,9,0,25,0,35,0,42,0,47,0,50,0,52,0,54,0,56,0,57,0,58,0,58,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+217,0,210,0,202,0,197,0,189,0,183,0,176,0,171,0,164,0,159,0,155,0,149,1,145,1,142,2,138,2,134,3,131,4,129,5,127,6,124,6,
+33,34,34,34,34,34,34,35,34,35,35,36,35,36,36,36,36,37,37,37,37,38,37,39,39,39,39,39,39,40,39,40,40,40,40,40,40,42,40,43,
+127,17,123,19,119,21,118,22,114,24,114,25,109,26,109,27,107,29,105,29,105,30,102,32,101,32,101,32,100,34,97,35,96,35,96,35,96,36,95,38,
+0,0,0,0,0,0,0,0,0,17,0,29,0,37,0,43,0,47,0,50,0,52,0,54,0,55,0,56,0,57,0,58,0,76,0,66,0,40,0,9,
+0,22,0,29,0,37,0,43,0,47,0,50,0,52,0,54,0,55,0,56,0,57,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,175,0,147,0,88,0,33,0,14,8,2,14,0,24,0,32,0,39,0,43,0,47,0,49,
+0,51,0,53,0,54,0,56,178,0,156,0,109,0,63,0,29,0,5,0,0,11,0,22,0,31,0,37,0,41,0,45,0,48,0,50,0,51,0,53,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+218,0,210,0,203,0,198,0,190,0,185,0,178,0,172,0,168,0,161,0,157,0,153,0,147,1,144,2,141,2,137,2,133,3,131,4,129,5,127,6,
+33,34,34,34,34,34,34,34,34,35,35,35,35,36,36,36,36,37,36,37,37,37,37,39,37,39,39,39,39,39,39,41,39,40,40,40,40,40,40,41,
+127,17,123,19,120,21,118,21,115,24,114,24,111,26,109,26,109,28,105,29,105,29,105,31,101,32,101,32,101,33,100,35,96,35,96,35,96,35,96,36,
+0,0,0,0,0,0,0,0,0,0,0,13,0,24,0,31,0,37,0,42,0,45,0,48,0,50,0,52,0,53,0,55,0,72,0,65,0,47,0,22,
+0,0,0,13,0,24,0,31,0,37,0,42,0,45,0,48,0,50,0,52,0,53,0,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181,0,164,0,122,0,74,0,32,0,18,6,7,12,0,16,0,24,0,31,0,36,0,40,
+0,44,0,46,0,48,0,50,183,0,170,0,136,0,98,0,63,0,36,0,15,0,0,0,0,11,0,20,0,27,0,33,0,37,0,41,0,43,0,46,
+51,34,40,34,37,34,36,34,35,34,35,34,34,34,34,33,34,34,34,34,34,34,34,33,34,33,34,33,34,33,34,34,34,33,34,33,34,33,34,33,
+157,5,107,13,81,18,69,21,61,23,56,24,53,26,50,27,48,27,47,28,45,28,45,28,44,29,43,29,42,30,42,30,41,30,41,30,40,30,40,30,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+95,19,70,23,57,26,51,27,47,28,45,29,43,30,42,30,41,30,40,31,39,31,39,31,39,31,38,31,38,32,38,32,37,32,37,32,37,32,37,32,
+0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,20,0,27,0,33,0,37,0,41,0,44,0,47,0,49,0,50,0,66,0,61,0,46,0,29,
+0,13,0,0,0,11,0,20,0,27,0,33,0,37,0,41,0,44,0,47,0,49,0,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,185,0,173,0,143,0,104,0,66,0,32,0,20,5,11,10,4,13,0,18,0,25,0,30,
+0,35,0,38,0,41,0,44,186,0,177,0,153,0,122,0,91,0,63,0,41,0,22,0,8,0,0,2,0,12,0,19,0,25,0,30,0,34,0,37,
+55,40,45,37,40,35,38,35,37,35,36,34,36,34,35,34,35,34,35,34,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+188,0,142,1,115,4,96,8,85,11,76,13,71,15,66,17,62,18,59,19,57,20,55,21,54,22,52,22,51,23,50,24,49,24,48,25,47,25,47,25,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+111,17,88,17,74,19,65,21,59,22,55,23,52,24,50,25,48,26,46,26,45,27,44,27,44,28,43,28,42,28,42,29,41,29,41,29,40,29,40,29,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,17,0,24,0,29,0,34,0,38,0,41,0,43,0,45,0,62,0,58,0,49,0,37,
+0,24,0,11,0,0,0,9,0,17,0,24,0,29,0,34,0,38,0,41,0,43,0,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,186,0,178,0,156,0,125,0,92,0,60,0,32,0,22,4,14,8,7,12,2,14,0,19,
+0,25,0,29,0,33,0,37,187,0,181,0,163,0,138,0,111,0,86,0,63,0,44,0,28,0,15,0,4,0,0,4,0,12,0,18,0,23,0,28,
+56,44,48,40,43,38,41,37,39,36,38,36,37,35,36,35,36,35,36,34,35,34,35,34,35,34,35,34,35,34,35,34,34,34,34,34,34,34,34,34,
+198,0,164,0,137,0,119,2,103,4,94,6,85,8,80,10,75,12,71,13,68,14,65,15,62,16,61,17,59,18,57,18,56,19,55,20,53,21,53,22,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+116,17,99,17,85,17,76,18,68,19,64,20,59,21,57,22,54,23,52,23,51,24,49,24,48,25,47,25,46,26,45,26,45,26,44,27,43,27,43,28,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,15,0,21,0,26,0,31,0,34,0,38,0,40,0,62,0,60,0,53,0,43,
+0,31,0,20,0,9,0,0,0,8,0,15,0,21,0,26,0,31,0,34,0,38,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,181,0,164,0,139,0,111,0,82,0,55,0,32,0,23,4,16,7,10,10,5,13,
+0,15,0,20,0,25,0,29,188,0,183,0,170,0,150,0,127,0,104,0,83,0,63,0,46,0,32,0,20,0,10,0,1,0,0,6,0,12,0,17,
+58,47,50,43,46,40,43,39,40,37,39,37,39,36,37,36,37,36,36,35,36,35,36,35,36,35,35,35,35,34,35,34,35,34,35,34,35,34,35,34,
+205,0,176,0,154,0,135,0,120,1,108,3,100,4,92,5,87,7,81,9,78,10,74,11,72,12,69,12,67,14,64,15,63,15,61,15,60,17,59,18,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+119,17,105,17,94,17,84,17,77,17,71,18,67,19,63,19,60,20,57,21,56,22,54,22,53,23,51,23,50,24,49,24,48,24,47,24,47,25,46,26,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,13,0,19,0,24,0,28,0,32,0,35,0,62,0,60,0,55,0,47,
+0,37,0,27,0,17,0,8,0,0,0,7,0,13,0,19,0,24,0,28,0,32,0,35,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,184,0,170,0,150,0,126,0,100,0,76,0,52,0,32,0,24,3,17,6,12,9,
+7,12,3,14,0,16,0,21,189,0,185,0,174,0,158,0,139,0,119,0,99,0,80,0,63,0,48,0,35,0,24,0,14,0,6,0,0,0,0,7,
+59,50,52,45,47,42,44,40,42,39,41,38,39,37,39,37,38,36,37,36,37,36,37,36,36,35,36,35,36,35,36,35,35,35,35,35,35,35,35,34,
+207,0,185,0,164,0,148,0,133,0,122,1,112,2,104,3,97,4,92,5,87,7,83,7,80,9,76,10,74,10,72,12,69,12,68,12,66,13,65,15,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+120,17,109,17,99,17,91,17,83,17,78,17,73,18,69,18,65,19,63,19,60,20,58,20,57,21,55,22,54,22,53,23,51,23,51,23,50,23,49,24,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,12,0,17,0,22,0,26,0,29,0,62,0,61,0,57,0,50,
+0,42,0,33,0,24,0,15,0,7,0,0,0,6,0,12,0,17,0,22,0,26,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,185,0,174,0,157,0,137,0,115,0,92,0,70,0,50,0,32,0,25,3,19,6,
+14,8,9,11,5,13,1,14,189,0,186,0,177,0,164,0,148,0,130,0,112,0,94,0,78,0,63,0,50,0,38,0,28,0,19,0,11,0,3,0,
+60,52,53,47,49,44,46,42,44,40,42,39,40,39,40,38,39,37,39,37,37,36,37,36,37,36,37,36,36,36,36,35,36,35,36,35,36,35,35,35,
+210,0,190,0,173,0,157,0,144,0,132,0,122,0,114,1,107,2,101,4,96,4,91,5,88,6,84,7,81,7,79,9,76,10,74,10,72,11,70,12,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+122,17,112,17,103,17,95,17,89,17,83,17,78,17,74,17,70,18,67,19,65,19,62,19,61,20,59,20,57,20,56,21,55,22,54,22,53,22,52,23,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,11,0,16,0,20,0,24,0,63,0,61,0,58,0,52,
+0,45,0,37,0,29,0,21,0,13,0,6,0,0,0,6,0,11,0,16,0,20,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,186,0,177,0,163,0,146,0,126,0,106,0,86,0,66,0,48,0,31,0,25,3,
+20,5,15,8,11,10,7,12,189,0,187,0,180,0,169,0,155,0,139,0,123,0,107,0,91,0,77,0,63,0,51,0,40,0,31,0,22,0,14,0,
+60,53,54,49,50,46,47,43,45,42,43,40,42,40,40,39,40,39,39,37,39,37,38,37,37,37,37,36,37,36,37,36,36,36,36,36,36,35,36,35,
+211,0,194,0,178,0,164,0,152,0,141,0,131,0,123,0,115,1,110,2,103,2,99,4,95,4,91,5,88,5,85,7,82,7,80,7,78,9,76,10,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+122,17,114,17,106,17,99,17,93,17,87,17,82,17,78,17,74,17,72,18,68,18,66,19,64,19,62,19,61,19,59,20,58,20,57,20,56,21,55,22,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,10,0,15,0,19,0,63,0,62,0,59,0,54,
+0,48,0,41,0,34,0,26,0,19,0,12,0,6,0,0,0,5,0,10,0,15,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,187,0,179,0,168,0,153,0,135,0,117,0,98,0,80,0,63,0,46,0,31,0,
+26,2,21,5,16,7,12,9,190,0,188,0,182,0,172,0,160,0,147,0,132,0,117,0,102,0,88,0,75,0,63,0,52,0,42,0,33,0,25,0,
+60,54,55,50,51,47,48,45,46,43,45,42,43,40,42,40,40,39,40,39,39,38,39,37,39,37,38,37,37,37,37,36,37,36,37,36,36,36,36,36,
+213,0,197,0,183,0,170,0,159,0,149,0,139,0,131,0,124,0,117,1,111,1,105,2,102,2,97,4,94,4,90,5,88,5,85,6,83,7,81,7,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+123,17,115,17,108,17,102,17,96,17,91,17,86,17,82,17,79,17,75,17,72,17,69,18,68,18,65,19,64,19,62,19,61,19,59,20,58,20,57,20,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,9,0,13,0,63,0,62,0,59,0,55,
+0,50,0,44,0,38,0,31,0,24,0,17,0,11,0,5,0,0,0,5,0,9,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,187,0,181,0,171,0,158,0,143,0,126,0,109,0,92,0,76,0,60,0,45,0,
+31,0,26,2,22,4,17,6,190,0,188,0,183,0,175,0,165,0,153,0,139,0,126,0,112,0,99,0,86,0,74,0,63,0,53,0,44,0,35,0,
+60,55,56,51,52,48,49,46,47,44,45,42,44,42,43,40,42,40,40,39,40,39,39,39,39,38,39,37,39,37,37,37,37,37,37,36,37,36,37,36,
+213,0,200,0,187,0,175,0,165,0,155,0,146,0,138,0,130,0,124,0,118,0,112,1,108,2,103,2,100,3,96,4,93,4,91,5,88,5,85,5,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+123,17,117,17,110,17,104,17,99,17,94,17,90,17,86,17,82,17,79,17,76,17,73,17,71,18,68,18,67,18,65,19,63,19,62,19,61,19,59,19,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,9,0,63,0,62,0,60,0,56,
+0,52,0,47,0,41,0,34,0,28,0,22,0,16,0,10,0,5,0,0,0,4,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,183,0,174,0,162,0,149,0,134,0,119,0,103,0,87,0,72,0,58,0,
+44,0,31,0,27,2,22,4,190,0,189,0,184,0,177,0,168,0,157,0,146,0,133,0,120,0,108,0,96,0,84,0,73,0,63,0,54,0,45,0,
+61,56,56,52,53,49,51,47,48,45,46,44,45,43,43,42,43,40,42,40,40,39,40,39,40,39,39,39,39,37,39,37,38,37,37,37,37,37,37,36,
+214,0,202,0,190,0,179,0,170,0,160,0,152,0,144,0,136,0,130,0,125,0,119,0,113,1,109,1,105,2,102,2,99,4,96,4,93,4,91,5,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+124,17,118,17,112,17,106,17,102,17,97,17,93,17,89,17,85,17,82,17,79,17,76,17,73,17,71,17,69,18,68,18,66,19,65,19,63,19,62,19,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,63,0,62,0,60,0,57,
+0,53,0,49,0,43,0,38,0,32,0,26,0,20,0,15,0,9,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,184,0,176,0,166,0,154,0,141,0,127,0,112,0,97,0,83,0,69,0,
+56,0,43,0,31,0,27,2,190,0,189,0,185,0,179,0,171,0,161,0,151,0,139,0,128,0,116,0,104,0,93,0,83,0,73,0,63,0,54,0,
+61,56,57,53,54,50,51,48,49,46,48,45,45,43,45,43,43,42,43,40,42,40,40,40,40,38,40,39,39,39,39,38,39,37,39,37,38,37,37,37,
+214,0,204,0,192,0,183,0,173,0,165,0,157,0,150,0,143,0,136,0,129,0,125,0,119,0,115,1,111,1,107,2,103,2,100,2,98,4,95,4,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+124,17,119,17,113,17,108,17,103,17,99,17,95,17,92,17,88,17,85,17,81,17,79,17,76,17,74,17,72,17,70,18,68,18,67,18,66,19,64,19,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,61,0,58,
+0,55,0,50,0,45,0,40,0,35,0,29,0,24,0,19,0,13,0,9,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,185,0,178,0,169,0,158,0,146,0,133,0,120,0,106,0,92,0,79,0,
+66,0,54,0,42,0,31,0,190,0,189,0,186,0,180,0,173,0,165,0,155,0,145,0,134,0,123,0,112,0,101,0,91,0,81,0,72,0,63,0,
+61,57,57,54,54,51,51,48,50,47,48,45,46,45,45,42,44,43,43,41,43,40,41,40,40,40,40,38,40,39,39,39,39,39,39,38,39,37,39,37,
+215,0,204,0,195,0,186,0,177,0,168,0,160,0,153,0,147,0,141,0,135,0,129,0,125,0,120,0,116,0,112,1,108,1,105,2,102,2,99,2,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+124,17,119,17,114,17,110,17,105,17,101,17,97,17,93,17,90,17,87,17,84,17,81,17,79,17,77,17,75,17,73,17,71,17,69,18,68,18,66,18,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,57,57,54,54,51,52,50,51,48,48,46,48,45,45,44,45,43,43,43,43,41,43,40,41,40,40,40,40,39,41,39,39,39,39,39,39,39,39,37,
+215,0,206,0,197,0,188,0,180,0,172,0,165,0,158,0,151,0,145,0,140,0,135,0,129,0,125,0,120,0,117,0,113,1,109,1,107,2,104,2,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+124,17,120,17,115,17,111,17,107,17,103,17,99,17,96,17,92,17,89,17,87,17,84,17,81,17,79,17,77,17,75,17,73,17,71,17,70,18,69,18,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,57,58,54,55,52,53,51,51,48,49,48,48,45,46,45,45,43,45,43,43,43,43,41,43,40,41,40,40,40,40,39,40,39,40,39,39,39,39,39,
+216,0,207,0,198,0,190,0,182,0,175,0,168,0,161,0,156,0,150,0,144,0,138,0,134,0,129,0,125,0,121,0,117,0,114,1,111,1,107,1,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+125,17,120,17,116,17,112,17,108,17,104,17,101,17,97,17,95,17,92,17,89,17,86,17,84,17,81,17,79,17,77,17,75,17,74,17,72,17,70,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,58,58,55,56,53,54,51,51,49,50,48,48,46,48,45,45,45,45,43,44,43,43,43,43,41,43,40,41,40,40,40,40,39,40,38,40,39,39,39,
+216,0,208,0,200,0,192,0,185,0,178,0,171,0,165,0,159,0,153,0,148,0,143,0,138,0,134,0,129,0,125,0,121,0,118,0,115,0,112,1,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+125,17,121,17,117,17,113,17,109,17,106,17,102,17,99,17,96,17,93,17,91,17,88,17,86,17,84,17,81,17,79,17,77,17,76,17,74,17,73,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,58,58,55,56,54,54,51,51,50,51,48,48,48,48,45,47,45,45,44,45,43,44,43,43,43,43,41,43,40,41,40,40,40,40,40,40,39,41,39,
+217,0,209,0,201,0,194,0,187,0,180,0,174,0,168,0,162,0,156,0,151,0,146,0,142,0,137,0,133,0,129,0,125,0,122,0,118,0,115,0,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+125,17,121,17,117,17,114,17,110,17,107,17,104,17,101,17,98,17,95,17,92,17,90,17,88,17,85,17,83,17,81,17,79,17,78,17,76,17,74,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,58,59,56,57,54,54,51,52,51,51,48,50,48,48,46,48,45,45,45,45,44,45,43,43,43,43,43,43,41,43,40,41,40,40,40,40,40,40,39,
+217,0,209,0,202,0,195,0,188,0,182,0,176,0,170,0,165,0,160,0,154,0,150,0,145,0,141,0,137,0,132,0,129,0,125,0,122,0,119,0,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+125,17,121,17,118,17,114,17,111,17,108,17,105,17,102,17,99,17,97,17,94,17,92,17,89,17,87,17,85,17,83,17,81,17,79,17,78,17,76,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,58,59,57,57,54,54,52,53,51,51,49,51,48,48,48,48,45,47,45,45,45,45,43,45,43,43,43,43,43,43,41,43,40,41,40,40,40,40,40,
+217,0,210,0,203,0,196,0,190,0,184,0,178,0,173,0,168,0,162,0,157,0,153,0,148,0,144,0,139,0,136,0,132,0,129,0,125,0,123,0,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+125,17,122,17,118,17,115,17,112,17,109,17,106,17,103,17,101,17,98,17,95,17,93,17,91,17,89,17,86,17,85,17,83,17,81,17,79,17,78,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,59,59,57,58,54,54,53,54,51,51,50,51,48,49,48,48,47,48,45,45,45,45,45,45,43,44,43,43,43,43,43,43,40,43,40,40,40,40,40,
+217,0,211,0,204,0,198,0,192,0,186,0,180,0,175,0,170,0,165,0,160,0,155,0,151,0,147,0,143,0,139,0,136,0,131,0,129,0,125,0,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+125,17,122,17,119,17,116,17,113,17,110,17,107,17,104,17,102,17,99,17,97,17,94,17,92,17,90,17,88,17,86,17,85,17,82,17,81,17,79,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,59,59,57,57,54,55,54,54,51,52,51,51,49,50,48,48,48,48,45,47,45,45,45,45,44,45,43,43,43,43,43,43,42,43,40,42,40,40,40,
+217,0,211,0,205,0,199,0,193,0,188,0,183,0,176,0,172,0,167,0,162,0,158,0,154,0,149,0,147,0,142,0,139,0,135,0,131,0,129,0,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+125,17,122,17,119,17,116,17,113,17,111,17,108,17,105,17,103,17,100,17,98,17,96,17,94,17,91,17,90,17,88,17,86,17,84,17,82,17,81,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+152,0,184,0,197,0,203,0,207,0,209,0,211,0,212,0,213,0,214,0,214,0,215,0,216,0,216,0,216,0,217,0,217,0,217,0,217,0,218,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+68,0,157,0,188,0,198,0,205,0,207,0,210,0,211,0,213,0,213,0,214,0,214,0,215,0,215,0,216,0,216,0,217,0,217,0,217,0,217,0,
+144,0,189,0,204,0,209,0,213,0,214,0,215,0,216,0,217,0,217,0,217,0,217,0,218,0,218,0,218,0,218,0,219,0,219,0,219,0,219,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+104,1,139,0,160,0,173,0,182,0,188,0,193,0,196,0,199,0,201,0,203,0,204,0,205,0,207,0,208,0,209,0,210,0,210,0,210,0,211,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+37,5,107,0,142,0,164,0,176,0,185,0,190,0,194,0,197,0,200,0,202,0,204,0,204,0,206,0,207,0,208,0,209,0,209,0,210,0,211,0,
+129,2,164,0,181,0,192,0,198,0,203,0,205,0,207,0,209,0,210,0,211,0,212,0,212,0,213,0,214,0,214,0,215,0,215,0,215,0,216,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+86,9,114,2,135,0,150,0,160,0,169,0,176,0,181,0,185,0,189,0,191,0,194,0,196,0,198,0,199,0,201,0,202,0,202,0,203,0,204,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+35,13,81,1,115,0,137,0,154,0,164,0,173,0,178,0,183,0,187,0,190,0,192,0,195,0,197,0,198,0,200,0,201,0,202,0,203,0,204,0,
+128,6,151,0,168,0,179,0,187,0,192,0,197,0,199,0,202,0,204,0,205,0,206,0,208,0,209,0,209,0,210,0,211,0,211,0,212,0,212,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+79,17,101,7,118,3,132,1,143,0,153,0,161,0,167,0,173,0,177,0,180,0,184,0,187,0,189,0,190,0,192,0,194,0,196,0,198,0,199,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+34,18,69,4,96,0,119,0,135,0,148,0,157,0,164,0,170,0,175,0,179,0,183,0,186,0,188,0,190,0,192,0,194,0,195,0,196,0,198,0,
+127,9,145,2,158,0,170,0,178,0,184,0,189,0,192,0,195,0,198,0,200,0,202,0,203,0,204,0,205,0,206,0,207,0,208,0,208,0,209,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+75,23,93,12,108,6,120,3,131,1,140,0,148,0,155,0,161,0,166,0,170,0,174,0,177,0,180,0,183,0,186,0,187,0,189,0,190,0,191,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+34,21,61,8,85,2,103,0,120,0,133,0,144,0,152,0,159,0,165,0,170,0,173,0,177,0,180,0,182,0,185,0,187,0,188,0,190,0,192,0,
+127,10,141,4,153,1,162,0,170,0,177,0,182,0,186,0,190,0,193,0,195,0,197,0,199,0,200,0,201,0,203,0,204,0,204,0,205,0,206,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+73,28,87,17,100,10,112,6,121,3,130,2,138,0,145,0,151,0,156,0,161,0,165,0,169,0,173,0,175,0,177,0,180,0,182,0,185,0,186,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,23,56,11,76,4,94,1,108,0,122,0,132,0,141,0,149,0,155,0,160,0,165,0,168,0,172,0,175,0,178,0,180,0,182,0,184,0,186,0,
+127,11,138,5,148,2,157,0,164,0,171,0,176,0,181,0,185,0,188,0,190,0,193,0,194,0,196,0,198,0,199,0,200,0,201,0,202,0,203,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+71,32,84,21,95,14,105,9,114,5,122,3,130,2,136,1,143,0,148,0,153,0,158,0,161,0,164,0,168,0,172,0,174,0,176,0,177,0,180,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+34,24,53,13,71,6,85,3,100,1,112,0,122,0,131,0,139,0,146,0,152,0,157,0,160,0,165,0,168,0,171,0,174,0,176,0,178,0,180,0,
+127,12,137,6,146,3,153,1,160,0,166,0,171,0,176,0,180,0,183,0,186,0,189,0,190,0,193,0,194,0,196,0,197,0,198,0,199,0,200,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+70,35,80,24,91,17,100,11,108,8,116,5,123,3,130,2,135,1,140,0,145,0,149,0,154,0,158,0,161,0,164,0,167,0,171,0,172,0,175,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,26,50,15,66,8,80,4,92,2,104,0,114,0,123,0,131,0,138,0,144,0,150,0,153,0,158,0,161,0,165,0,168,0,170,0,173,0,175,0,
+127,13,136,7,143,4,150,2,156,1,162,0,167,0,172,0,176,0,179,0,182,0,185,0,187,0,189,0,191,0,193,0,194,0,195,0,197,0,198,0,
+47,0,95,0,153,0,172,0,179,0,183,0,186,0,187,0,188,0,188,0,189,0,189,0,189,0,190,0,190,0,190,0,59,11,111,0,159,0,175,0,
+181,0,185,0,186,0,188,0,188,0,189,0,189,0,189,0,190,0,190,0,190,0,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,154,0,109,0,141,0,155,0,166,0,178,0,186,0,187,0,188,0,188,0,189,0,189,0,
+189,0,190,0,190,0,190,0,71,7,127,0,165,0,178,0,183,0,186,0,187,0,188,0,189,0,189,0,189,0,190,0,190,0,190,0,190,0,190,0,
+69,37,78,27,87,19,96,14,104,10,111,7,118,5,123,3,130,2,134,2,139,1,144,0,147,0,151,0,155,0,158,0,161,0,163,0,166,0,170,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+34,27,48,17,62,10,75,5,87,3,97,1,107,0,115,0,124,0,130,0,136,0,143,0,147,0,151,0,156,0,159,0,162,0,165,0,168,0,170,0,
+127,13,134,8,141,5,148,2,154,1,159,0,164,0,168,0,172,0,175,0,178,0,182,0,184,0,186,0,188,0,190,0,191,0,193,0,194,0,195,0,
+0,0,15,0,95,0,139,0,159,0,170,0,176,0,179,0,182,0,184,0,185,0,186,0,187,0,187,0,188,0,188,0,7,23,39,2,111,0,147,0,
+164,0,173,0,178,0,181,0,184,0,185,0,186,0,187,0,187,0,188,0,188,0,189,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,0,84,0,107,0,135,0,152,0,166,0,176,0,179,0,182,0,184,0,185,0,186,0,
+187,0,187,0,188,0,188,0,15,15,63,0,127,0,156,0,170,0,177,0,181,0,183,0,185,0,186,0,187,0,188,0,188,0,189,0,189,0,189,0,
+69,40,77,29,85,22,93,17,100,12,107,9,113,7,119,5,123,3,129,2,133,2,138,1,142,0,146,0,149,0,152,0,157,0,159,0,161,0,163,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,27,47,18,59,12,71,7,81,4,92,2,101,1,110,0,117,0,124,0,130,0,136,0,141,0,145,0,150,0,153,0,156,0,160,0,162,0,165,0,
+127,13,134,9,140,6,146,3,151,2,156,1,161,0,165,0,169,0,172,0,175,0,178,0,181,0,183,0,185,0,187,0,188,0,190,0,191,0,193,0,
+0,0,0,0,5,0,68,0,109,0,133,0,149,0,159,0,166,0,171,0,174,0,177,0,179,0,181,0,182,0,183,0,0,44,2,18,34,0,88,0,
+122,0,143,0,156,0,164,0,170,0,174,0,177,0,179,0,181,0,183,0,184,0,185,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,0,107,0,40,0,82,0,112,0,133,0,149,0,159,0,166,0,171,0,174,0,177,0,
+179,0,181,0,182,0,183,0,0,38,5,5,63,0,109,0,136,0,153,0,163,0,170,0,174,0,177,0,180,0,182,0,183,0,184,0,185,0,186,0,
+68,42,75,32,83,24,90,19,97,15,103,11,109,9,115,7,119,5,124,3,129,2,133,2,136,1,141,1,144,0,147,0,150,0,154,0,157,0,159,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+34,28,45,19,57,13,68,9,78,5,87,4,96,2,103,1,111,0,118,0,125,0,129,0,135,0,140,0,144,0,148,0,151,0,154,0,157,0,160,0,
+127,14,133,9,139,6,144,4,149,2,154,2,158,1,162,0,166,0,169,0,173,0,175,0,178,0,180,0,182,0,184,0,186,0,187,0,189,0,190,0,
+0,0,0,0,0,0,2,0,51,0,87,0,112,0,129,0,142,0,151,0,158,0,163,0,167,0,170,0,173,0,175,0,0,54,0,37,9,11,33,0,
+74,0,104,0,125,0,139,0,150,0,157,0,163,0,168,0,171,0,174,0,176,0,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,135,0,82,0,17,0,57,0,87,0,112,0,129,0,142,0,151,0,158,0,163,0,
+167,0,170,0,173,0,175,0,0,51,0,28,18,0,63,0,98,0,122,0,138,0,150,0,158,0,164,0,169,0,172,0,175,0,177,0,179,0,180,0,
+67,43,74,34,81,26,87,21,94,17,99,13,105,10,110,8,116,6,120,5,124,4,129,3,132,2,135,2,140,1,143,0,146,0,148,0,151,0,155,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,28,45,20,55,14,65,10,74,7,83,4,91,2,99,1,105,0,112,0,119,0,125,0,129,0,135,0,138,0,143,0,146,0,150,0,153,0,155,0,
+127,14,133,10,138,7,143,5,147,3,152,2,156,1,160,0,163,0,166,0,170,0,173,0,175,0,178,0,179,0,182,0,183,0,185,0,187,0,188,0,
+0,0,0,0,0,0,0,0,1,0,40,0,72,0,95,0,113,0,126,0,137,0,145,0,152,0,157,0,161,0,165,0,0,58,0,47,0,22,14,8,
+32,0,66,0,92,0,111,0,126,0,137,0,146,0,153,0,158,0,162,0,166,0,169,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,166,0,152,0,112,0,57,0,2,0,40,0,72,0,95,0,113,0,126,0,137,0,145,0,
+152,0,157,0,161,0,165,0,0,56,0,42,0,9,29,0,63,0,91,0,111,0,127,0,139,0,148,0,155,0,160,0,165,0,168,0,171,0,173,0,
+67,44,73,35,80,28,86,23,91,18,97,15,102,12,107,10,111,8,117,6,120,5,124,4,129,3,132,2,135,2,139,1,142,1,145,0,147,0,149,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+34,28,44,21,54,15,62,11,72,7,80,5,88,4,95,2,102,1,108,0,113,0,119,0,125,0,129,0,134,0,138,0,142,0,145,0,148,0,151,0,
+127,14,132,10,137,7,141,5,146,3,150,2,154,2,158,1,161,0,164,0,167,0,170,0,173,0,175,0,177,0,179,0,181,0,183,0,184,0,186,0,
+0,0,0,0,0,0,0,0,0,0,0,0,33,0,61,0,82,0,100,0,113,0,124,0,133,0,141,0,147,0,152,0,0,60,0,53,0,35,2,14,
+18,6,32,0,60,0,82,0,100,0,115,0,126,0,135,0,143,0,149,0,154,0,158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,166,0,133,0,87,0,40,0,1,0,33,0,61,0,82,0,100,0,113,0,124,0,
+133,0,141,0,147,0,152,0,0,58,0,49,0,25,5,0,36,0,63,0,86,0,104,0,119,0,130,0,139,0,147,0,153,0,157,0,161,0,165,0,
+67,46,72,37,78,30,84,25,89,20,95,17,99,14,105,11,108,9,113,7,118,6,120,5,124,4,129,3,132,2,134,2,138,1,142,1,144,0,146,0,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,29,43,22,52,16,61,12,69,9,76,6,84,4,91,2,97,2,103,1,109,0,115,0,120,0,125,0,129,0,134,0,137,0,141,0,144,0,147,0,
+127,14,132,11,136,8,141,6,145,4,148,3,152,2,156,1,159,1,162,0,165,0,168,0,170,0,173,0,175,0,177,0,179,0,181,0,182,0,184,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,53,0,72,0,89,0,102,0,114,0,123,0,131,0,137,0,0,61,0,56,0,42,0,24,
+7,12,20,5,32,0,55,0,76,0,92,0,106,0,117,0,126,0,134,0,141,0,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,186,0,176,0,149,0,112,0,72,0,33,0,1,0,28,0,53,0,72,0,89,0,102,0,
+114,0,123,0,131,0,137,0,0,60,0,53,0,35,0,11,15,0,41,0,63,0,83,0,99,0,112,0,123,0,132,0,139,0,146,0,151,0,155,0,
+66,47,72,38,77,32,82,26,88,22,92,18,97,15,102,12,107,11,109,9,115,7,118,6,121,5,125,4,129,3,131,2,134,2,137,2,141,1,143,1,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+34,29,42,22,51,17,59,12,67,10,74,7,81,5,88,4,94,2,100,1,105,1,111,0,116,0,120,0,125,0,129,0,133,0,137,0,139,0,143,0,
+127,14,131,11,136,8,140,6,144,5,147,3,151,2,154,2,157,1,160,0,163,0,166,0,168,0,170,0,173,0,175,0,177,0,179,0,180,0,182,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,46,0,65,0,80,0,93,0,104,0,114,0,122,0,0,61,0,58,0,47,0,32,
+0,16,11,10,22,4,32,0,52,0,70,0,86,0,98,0,109,0,119,0,127,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,187,0,179,0,159,0,129,0,95,0,61,0,28,0,0,0,25,0,46,0,65,0,80,0,
+93,0,104,0,114,0,122,0,0,61,0,56,0,42,0,22,0,0,22,0,44,0,63,0,80,0,94,0,107,0,117,0,126,0,133,0,139,0,145,0,
+66,48,71,40,76,33,81,28,86,23,90,20,96,17,99,14,104,12,108,10,111,8,116,7,119,6,121,5,125,4,129,3,131,2,133,2,136,2,140,1,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,30,42,23,50,18,57,14,64,10,72,7,79,5,85,4,90,3,96,2,102,1,107,0,112,0,117,0,121,0,125,0,129,0,132,0,136,0,139,0,
+127,15,131,11,135,9,139,7,142,5,146,3,150,2,153,2,155,1,158,1,161,0,164,0,166,0,169,0,171,0,173,0,175,0,176,0,178,0,180,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,41,0,58,0,73,0,85,0,96,0,106,0,0,62,0,59,0,51,0,39,
+0,24,4,13,14,8,23,4,32,0,50,0,66,0,80,0,92,0,103,0,112,0,120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,182,0,166,0,142,0,113,0,82,0,53,0,25,0,0,0,22,0,41,0,58,0,
+73,0,85,0,96,0,106,0,0,61,0,57,0,47,0,31,0,11,8,0,28,0,46,0,63,0,78,0,91,0,102,0,112,0,120,0,128,0,134,0,
+66,49,71,41,75,34,80,29,85,25,88,21,94,18,97,15,101,13,106,11,108,9,112,8,117,7,119,6,121,5,125,4,129,3,131,2,133,2,135,2,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,30,41,24,49,18,56,15,63,12,69,9,76,7,82,5,88,4,93,2,99,2,103,1,108,0,113,0,117,0,121,0,125,0,129,0,132,0,136,0,
+127,15,131,12,135,9,138,7,142,6,145,4,148,3,151,2,154,2,157,1,160,1,162,0,164,0,167,0,169,0,171,0,173,0,175,0,176,0,178,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,37,0,53,0,67,0,79,0,89,0,0,62,0,60,0,53,0,43,
+0,31,0,18,7,12,16,7,24,3,32,0,48,0,63,0,76,0,87,0,97,0,106,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,184,0,171,0,151,0,126,0,100,0,72,0,46,0,22,0,0,0,19,0,37,0,
+53,0,67,0,79,0,89,0,0,62,0,59,0,50,0,37,0,20,0,2,15,0,32,0,48,0,63,0,77,0,88,0,99,0,108,0,116,0,123,0,
+66,49,70,42,74,36,79,31,83,26,88,22,92,19,96,17,99,14,103,12,107,11,109,9,114,7,117,7,119,6,121,5,126,4,129,3,131,2,133,2,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,30,41,24,48,19,55,15,61,12,68,10,74,7,80,5,85,4,91,4,96,2,100,1,105,1,109,0,114,0,118,0,122,0,125,0,129,0,131,0,
+127,15,131,12,134,9,138,7,141,6,144,5,147,3,150,2,153,2,156,2,158,1,160,0,163,0,165,0,167,0,169,0,171,0,173,0,175,0,176,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,34,0,48,0,61,0,73,0,0,62,0,60,0,55,0,47,
+0,36,0,25,2,14,10,10,17,6,25,3,31,0,46,0,60,0,72,0,83,0,92,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,185,0,174,0,158,0,137,0,113,0,89,0,65,0,41,0,19,0,0,0,18,0,
+34,0,48,0,61,0,73,0,0,62,0,60,0,52,0,41,0,27,0,12,4,0,20,0,35,0,50,0,63,0,75,0,86,0,96,0,104,0,112,0,
+66,50,70,43,73,37,79,31,82,27,87,24,89,20,95,18,98,15,101,13,106,12,108,10,110,9,115,7,118,6,120,6,122,5,126,4,129,3,131,2,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,30,40,25,47,20,53,15,60,12,66,10,72,7,78,6,83,5,88,4,93,2,98,2,102,1,107,1,111,0,115,0,118,0,122,0,125,0,129,0,
+127,15,130,12,134,10,137,7,140,6,143,5,146,3,149,3,152,2,154,2,157,1,159,1,161,0,164,0,166,0,168,0,169,0,171,0,173,0,175,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,31,0,45,0,57,0,0,62,0,61,0,56,0,49,
+0,40,0,30,0,19,5,13,12,9,19,6,25,3,31,0,45,0,58,0,69,0,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,186,0,177,0,163,0,145,0,124,0,102,0,80,0,58,0,37,0,18,0,0,0,
+16,0,31,0,45,0,57,0,0,62,0,60,0,54,0,45,0,33,0,19,0,4,10,0,24,0,38,0,51,0,63,0,74,0,84,0,93,0,101,0,
+66,51,69,44,72,38,78,33,80,28,86,25,88,22,92,19,96,17,98,14,103,12,106,11,109,10,112,9,116,7,118,6,120,6,122,5,126,4,129,3,
+221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,
+33,30,40,25,47,21,53,17,59,13,65,11,70,9,76,7,81,5,85,4,91,4,95,2,99,2,104,1,107,0,112,0,115,0,119,0,123,0,125,0,
+127,15,130,12,134,10,137,8,140,6,143,5,145,4,148,3,151,2,153,2,156,2,158,1,160,1,162,0,164,0,166,0,168,0,170,0,172,0,173,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,29,0,41,0,0,63,0,61,0,57,0,51,
+0,44,0,35,0,25,0,15,7,12,14,8,20,5,26,2,31,0,44,0,56,0,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,187,0,179,0,167,0,152,0,133,0,114,0,93,0,73,0,53,0,34,0,16,0,
+0,0,15,0,29,0,41,0,0,62,0,61,0,56,0,48,0,37,0,25,0,12,1,0,14,0,28,0,40,0,52,0,63,0,73,0,83,0,91,0,
+93,26,109,22,114,21,117,20,119,19,120,19,121,19,122,18,122,18,123,18,123,18,123,18,124,18,124,17,124,17,124,17,124,17,124,17,124,17,125,17,
+189,2,164,6,151,9,145,10,141,11,138,12,137,13,136,13,134,13,134,14,133,14,133,14,132,14,132,14,131,15,131,15,131,15,131,15,130,15,130,15,
+51,17,95,17,111,17,116,17,119,17,120,17,122,17,122,17,123,17,123,17,124,17,124,17,124,17,124,17,125,17,125,17,125,17,125,17,125,17,125,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,27,0,0,63,0,62,0,58,0,53,
+0,46,0,38,0,29,0,20,3,14,9,11,15,8,21,5,26,2,31,0,43,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,187,0,181,0,170,0,157,0,141,0,123,0,104,0,85,0,67,0,48,0,31,0,
+15,0,0,0,14,0,27,0,0,63,0,61,0,57,0,50,0,41,0,30,0,18,0,6,6,0,19,0,31,0,42,0,53,0,63,0,73,0,81,0,
+80,36,95,31,102,27,107,25,110,24,112,23,115,22,115,21,117,21,118,21,118,21,119,20,119,20,120,19,120,19,121,19,121,19,122,19,122,19,123,19,
+204,0,181,0,168,2,158,4,153,5,148,6,146,7,143,8,141,9,140,9,139,10,138,10,137,11,136,11,136,11,135,12,135,12,134,12,134,12,134,12,
+35,19,70,17,88,17,99,17,105,17,109,17,112,17,114,17,115,17,117,17,118,17,119,17,119,17,120,17,120,17,121,17,121,17,121,17,122,17,122,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,63,0,62,0,59,0,54,
+0,48,0,41,0,33,0,25,0,16,5,13,11,10,16,7,22,4,27,2,31,0,42,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,182,0,173,0,161,0,147,0,131,0,114,0,96,0,79,0,61,0,45,0,
+29,0,14,0,0,0,13,0,0,63,0,61,0,58,0,51,0,43,0,34,0,23,0,12,0,0,11,0,22,0,33,0,44,0,54,0,63,0,72,0,
+74,42,87,36,95,32,100,30,104,28,106,27,109,25,110,24,112,24,114,23,114,23,115,22,116,21,117,21,118,21,118,21,118,21,118,21,118,21,119,20,
+209,0,192,0,179,0,170,1,162,2,157,3,153,4,150,5,148,6,146,6,144,7,143,7,141,8,141,8,140,9,139,9,138,9,138,10,137,10,137,11,
+34,23,57,17,74,17,85,17,94,17,99,17,103,17,106,17,108,17,110,17,112,17,113,17,114,17,115,17,116,17,117,17,117,17,118,17,118,17,119,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,56,
+0,50,0,44,0,37,0,29,0,21,1,14,7,12,12,9,17,6,22,4,27,2,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,183,0,175,0,165,0,152,0,137,0,122,0,106,0,89,0,73,0,57,0,
+41,0,27,0,13,0,0,0,0,63,0,62,0,58,0,53,0,46,0,37,0,28,0,17,0,7,3,0,14,0,25,0,35,0,45,0,54,0,63,0,
+72,46,83,40,90,36,95,34,99,31,102,30,105,28,106,27,108,26,109,26,110,25,112,24,113,24,114,24,114,23,114,23,115,22,116,21,117,21,118,21,
+213,0,198,0,187,0,178,0,170,0,164,1,160,2,156,2,154,3,151,4,149,5,147,5,146,6,145,6,144,7,142,7,142,7,141,7,140,8,140,9,
+34,26,51,19,65,17,76,17,84,17,91,17,95,17,99,17,102,17,104,17,106,17,108,17,110,17,111,17,112,17,113,17,114,17,114,17,115,17,116,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71,7,127,0,165,0,178,0,
+183,0,186,0,187,0,188,0,189,0,189,0,189,0,190,0,190,0,190,0,190,0,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71,7,15,15,0,38,0,51,0,56,0,58,0,60,0,61,0,61,0,62,0,62,0,62,
+0,62,0,63,0,63,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+70,49,80,43,86,39,91,36,95,34,98,32,101,31,103,29,105,29,106,27,108,26,109,26,109,26,110,25,111,24,113,24,114,24,114,24,114,24,114,23,
+214,0,203,0,192,0,184,0,177,0,171,0,166,1,162,1,159,2,156,2,154,3,152,3,150,4,148,5,147,5,146,6,145,6,144,6,143,6,143,7,
+34,27,47,21,59,18,68,17,77,17,83,17,89,17,93,17,96,17,99,17,102,17,103,17,105,17,107,17,108,17,109,17,110,17,111,17,112,17,113,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,63,0,127,0,156,0,
+170,0,177,0,181,0,183,0,185,0,186,0,187,0,188,0,188,0,189,0,189,0,189,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,0,63,0,5,5,0,28,0,42,0,49,0,53,0,56,0,57,0,59,0,60,0,60,
+0,61,0,61,0,61,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+69,51,77,46,83,41,88,38,92,36,95,34,97,33,101,32,101,30,104,29,105,29,106,27,107,26,109,26,109,26,109,26,110,25,111,24,113,24,114,24,
+215,0,205,0,197,0,189,0,182,0,176,0,171,0,167,0,164,1,161,2,158,2,156,2,154,3,152,3,151,3,150,4,148,5,147,5,146,5,145,6,
+33,28,45,22,55,19,64,17,71,17,78,17,83,17,87,17,91,17,94,17,97,17,99,17,101,17,103,17,104,17,106,17,107,17,108,17,109,17,110,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,38,5,5,63,0,109,0,
+136,0,153,0,163,0,170,0,174,0,177,0,180,0,182,0,183,0,184,0,185,0,186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,165,0,127,0,63,0,18,0,0,9,0,25,0,35,0,42,0,47,0,50,0,52,0,54,
+0,56,0,57,0,58,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+68,52,76,47,81,44,86,40,90,38,92,36,96,35,97,33,100,32,101,31,102,29,105,29,105,29,105,28,107,26,109,26,109,26,109,26,109,26,110,25,
+216,0,207,0,199,0,192,0,186,0,181,0,176,0,172,0,168,0,165,1,162,1,160,2,158,2,156,2,154,2,153,3,151,3,150,3,149,4,148,5,
+34,29,43,23,52,20,59,18,67,17,73,17,78,17,82,17,86,17,90,17,93,17,95,17,97,17,99,17,101,17,102,17,104,17,105,17,106,17,107,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0,28,18,0,63,0,
+98,0,122,0,138,0,150,0,158,0,164,0,169,0,172,0,175,0,177,0,179,0,180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,156,0,109,0,63,0,29,0,5,0,0,11,0,22,0,31,0,37,0,41,0,45,
+0,48,0,50,0,51,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+68,54,74,49,80,45,84,42,87,40,91,38,92,36,96,35,97,33,99,32,101,32,101,30,103,29,105,29,105,29,105,28,106,27,109,26,109,26,109,26,
+217,0,209,0,202,0,195,0,190,0,185,0,180,0,176,0,172,0,169,0,166,0,163,1,161,1,159,2,157,2,155,2,154,2,153,3,152,3,151,3,
+33,30,42,24,50,21,57,19,63,18,69,17,74,17,78,17,82,17,86,17,89,17,92,17,93,17,96,17,97,17,99,17,101,17,102,17,103,17,104,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,42,0,9,29,0,
+63,0,91,0,111,0,127,0,139,0,148,0,155,0,160,0,165,0,168,0,171,0,173,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,183,0,170,0,136,0,98,0,63,0,36,0,15,0,0,0,0,11,0,20,0,27,0,33,
+0,37,0,41,0,43,0,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,54,73,50,78,47,82,44,86,41,88,39,91,38,93,36,96,35,96,34,98,32,101,32,101,31,102,30,104,29,105,29,105,29,105,28,106,27,108,26,
+217,0,210,0,204,0,198,0,193,0,188,0,183,0,179,0,175,0,172,0,169,0,166,0,164,1,162,1,160,1,158,2,157,2,156,2,154,2,153,2,
+34,30,41,25,48,22,54,19,60,18,65,17,70,17,74,17,79,17,82,17,85,17,88,17,90,17,92,17,95,17,96,17,98,17,99,17,101,17,102,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,58,0,49,0,25,5,0,
+36,0,63,0,86,0,104,0,119,0,130,0,139,0,147,0,153,0,157,0,161,0,165,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,186,0,177,0,153,0,122,0,91,0,63,0,41,0,22,0,8,0,0,2,0,12,0,19,
+0,25,0,30,0,34,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,55,72,51,77,48,81,45,84,42,87,41,89,39,92,38,93,36,96,35,96,34,98,32,101,32,101,32,101,31,102,29,105,29,105,29,105,29,105,29,
+217,0,211,0,205,0,200,0,195,0,190,0,186,0,182,0,178,0,175,0,173,0,170,0,167,0,165,0,163,1,161,1,160,2,158,2,157,2,156,2,
+33,30,40,26,46,23,52,20,57,19,63,18,67,17,72,17,75,17,79,17,82,17,85,17,87,17,89,17,92,17,93,17,95,17,97,17,98,17,99,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,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,0,53,0,35,0,11,
+15,0,41,0,63,0,83,0,99,0,112,0,123,0,132,0,139,0,146,0,151,0,155,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,187,0,181,0,163,0,138,0,111,0,86,0,63,0,44,0,28,0,15,0,4,0,0,4,
+0,12,0,18,0,23,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,56,72,52,76,49,79,46,83,44,86,42,87,40,90,39,92,38,93,35,96,35,96,35,97,33,100,32,101,32,101,32,101,30,103,29,105,29,105,29,
+217,0,212,0,206,0,202,0,197,0,193,0,189,0,185,0,182,0,178,0,175,0,173,0,170,0,168,0,166,0,164,1,162,1,160,1,159,2,158,2,
+34,31,39,26,45,23,51,21,56,19,60,19,65,18,68,17,72,17,76,17,79,17,81,17,84,17,87,17,89,17,91,17,92,17,94,17,95,17,97,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,56,0,42,0,22,
+0,0,22,0,44,0,63,0,80,0,94,0,107,0,117,0,126,0,133,0,139,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,183,0,170,0,150,0,127,0,104,0,83,0,63,0,46,0,32,0,20,0,10,0,
+1,0,0,6,0,12,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,56,71,53,75,50,78,47,82,45,83,43,87,42,88,39,91,39,92,37,93,35,96,35,96,35,97,33,100,32,101,32,101,32,101,31,102,30,104,29,
+218,0,212,0,208,0,203,0,199,0,194,0,190,0,187,0,184,0,181,0,178,0,175,0,173,0,170,0,168,0,166,0,164,0,163,1,161,1,160,1,
+33,31,39,27,44,24,49,22,54,20,58,19,62,18,66,17,69,17,73,17,76,17,79,17,81,17,84,17,86,17,88,17,90,17,92,17,93,17,94,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,57,0,47,0,31,
+0,11,8,0,28,0,46,0,63,0,78,0,91,0,102,0,112,0,120,0,128,0,134,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,185,0,174,0,158,0,139,0,119,0,99,0,80,0,63,0,48,0,35,0,24,0,
+14,0,6,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,57,70,53,74,50,78,48,80,46,83,44,85,42,87,41,88,39,92,39,92,37,93,35,96,35,96,35,96,34,99,32,101,32,101,32,101,32,101,31,
+218,0,213,0,209,0,204,0,200,0,196,0,193,0,189,0,186,0,183,0,180,0,178,0,175,0,173,0,170,0,169,0,167,0,165,0,164,1,162,1,
+34,31,39,27,44,24,48,22,53,20,57,19,61,19,64,18,68,17,71,17,73,17,76,17,79,17,81,17,84,17,86,17,88,17,89,17,91,17,92,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,59,0,50,0,37,
+0,20,0,2,15,0,32,0,48,0,63,0,77,0,88,0,99,0,108,0,116,0,123,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,186,0,177,0,164,0,148,0,130,0,112,0,94,0,78,0,63,0,50,0,38,0,
+28,0,19,0,11,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,
+66,57,70,54,74,51,77,49,79,46,82,45,83,43,87,42,87,40,90,39,92,39,92,37,94,35,96,35,96,35,96,34,98,32,101,32,101,32,101,32,
+218,0,214,0,209,0,205,0,201,0,198,0,194,0,191,0,188,0,185,0,182,0,179,0,177,0,175,0,173,0,171,0,169,0,167,0,166,0,164,0,
+33,31,38,28,43,25,47,23,51,21,55,20,59,19,62,18,65,18,68,17,71,17,74,17,77,17,79,17,81,17,84,17,85,17,87,17,89,17,90,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,52,0,41,
+0,27,0,12,4,0,20,0,35,0,50,0,63,0,75,0,86,0,96,0,104,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,187,0,180,0,169,0,155,0,139,0,123,0,107,0,91,0,77,0,63,0,51,0,
+40,0,31,0,22,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,57,69,54,73,52,76,49,79,48,81,46,83,44,85,42,87,42,87,40,91,39,92,39,92,37,94,35,96,35,96,35,96,34,97,33,100,32,101,32,
+218,0,214,0,210,0,206,0,203,0,199,0,196,0,193,0,190,0,187,0,184,0,182,0,179,0,177,0,175,0,173,0,171,0,169,0,168,0,166,0,
+34,31,38,28,42,25,46,23,50,22,54,20,57,19,61,19,64,18,67,17,69,17,72,17,75,17,77,17,79,17,81,17,83,17,85,17,86,17,88,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,54,0,45,
+0,33,0,19,0,4,10,0,24,0,38,0,51,0,63,0,74,0,84,0,93,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,182,0,172,0,160,0,147,0,132,0,117,0,102,0,88,0,75,0,63,0,
+52,0,42,0,33,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,58,69,55,72,53,74,50,78,49,80,46,83,46,83,43,87,42,87,41,88,39,91,39,92,39,92,37,94,35,96,35,96,35,96,35,97,33,100,32,
+219,0,215,0,211,0,207,0,204,0,200,0,197,0,194,0,191,0,188,0,186,0,183,0,181,0,179,0,177,0,175,0,173,0,171,0,169,0,168,0,
+33,32,38,28,42,26,45,24,49,22,53,20,56,19,59,19,62,18,65,18,68,17,70,17,73,17,75,17,77,17,79,17,81,17,83,17,85,17,86,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,61,0,56,0,48,
+0,37,0,25,0,12,1,0,14,0,28,0,40,0,52,0,63,0,73,0,83,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,183,0,175,0,165,0,153,0,139,0,126,0,112,0,99,0,86,0,74,0,
+63,0,53,0,44,0,35,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,58,69,55,72,53,74,51,77,49,79,47,82,46,83,44,85,42,87,42,87,41,89,39,92,39,92,39,92,37,95,35,96,35,96,35,96,35,96,34,
+219,0,215,0,211,0,208,0,204,0,201,0,198,0,195,0,193,0,190,0,187,0,185,0,183,0,181,0,179,0,176,0,175,0,173,0,171,0,170,0,
+33,32,37,29,41,26,45,24,48,23,51,21,55,20,58,19,61,19,63,18,66,18,68,17,71,17,73,17,75,17,77,17,79,17,81,17,83,17,85,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,57,0,50,
+0,41,0,30,0,18,0,6,6,0,19,0,31,0,42,0,53,0,63,0,73,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,184,0,177,0,168,0,157,0,146,0,133,0,120,0,108,0,96,0,84,0,
+73,0,63,0,54,0,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,58,69,56,71,53,74,51,77,49,79,48,81,46,83,46,83,43,86,42,87,42,87,40,90,39,92,39,92,39,92,37,95,35,96,35,96,35,96,35,
+219,0,215,0,212,0,208,0,205,0,202,0,199,0,197,0,194,0,191,0,189,0,187,0,184,0,182,0,180,0,178,0,176,0,175,0,173,0,172,0,
+33,32,37,29,41,26,44,24,47,23,51,22,54,20,57,19,59,19,62,19,65,18,67,17,69,17,71,17,74,17,76,17,78,17,79,17,81,17,82,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,58,0,51,
+0,43,0,34,0,23,0,12,0,0,11,0,22,0,33,0,44,0,54,0,63,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,185,0,179,0,171,0,161,0,151,0,139,0,128,0,116,0,104,0,93,0,
+83,0,73,0,63,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,59,68,57,70,53,74,52,76,49,79,49,79,46,83,46,83,44,85,42,87,42,87,42,88,39,91,39,92,39,92,39,92,36,95,35,96,35,96,35,
+219,0,216,0,212,0,209,0,206,0,203,0,200,0,198,0,195,0,193,0,190,0,188,0,186,0,184,0,182,0,180,0,178,0,176,0,175,0,173,0,
+33,32,37,29,40,27,43,24,47,23,50,22,53,20,56,20,58,19,61,19,63,18,66,18,68,17,70,17,72,17,74,17,76,17,78,17,79,17,81,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,58,0,53,
+0,46,0,37,0,28,0,17,0,7,3,0,14,0,25,0,35,0,45,0,54,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,186,0,180,0,173,0,165,0,155,0,145,0,134,0,123,0,112,0,101,0,
+91,0,81,0,72,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,59,68,57,70,54,74,53,74,50,78,49,79,47,81,46,83,46,83,43,86,42,87,42,87,41,89,39,92,39,92,39,92,38,92,36,95,35,96,35,
+219,0,216,0,213,0,210,0,207,0,204,0,202,0,198,0,196,0,194,0,191,0,189,0,187,0,185,0,184,0,181,0,180,0,178,0,176,0,175,0,
+33,32,37,29,40,27,43,25,46,23,49,22,52,21,55,20,57,19,59,19,62,19,64,18,66,18,69,17,70,17,73,17,74,17,76,17,78,17,79,17,
+127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,127,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+64,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+39,104,50,81,54,74,56,71,58,70,58,69,59,68,60,67,60,67,60,67,60,66,61,66,61,66,61,66,61,65,61,65,61,65,61,65,61,65,61,65,
+65,14,22,39,35,49,42,53,46,56,49,57,51,58,52,59,53,59,54,60,55,60,56,60,56,60,57,61,57,61,58,61,58,61,58,61,58,61,59,61,
+104,0,50,39,54,49,56,53,58,56,58,57,59,58,60,59,60,59,60,60,60,60,61,60,61,60,61,61,61,61,61,61,61,61,61,61,61,61,61,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,15,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,50,40,54,44,56,47,58,50,58,52,59,53,60,54,60,55,60,55,60,56,61,57,61,57,61,57,61,58,61,58,61,58,61,58,61,59,61,59,61,
+0,151,1,103,9,86,17,79,23,75,28,73,32,71,35,70,37,69,40,68,42,68,43,67,44,67,46,67,47,66,48,66,49,66,49,66,50,66,51,66,
+26,92,37,79,42,74,46,72,49,70,51,69,52,68,54,68,55,67,55,67,56,67,56,66,57,66,57,66,57,65,58,65,58,65,58,65,59,65,59,65,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,0,95,0,5,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0,31,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,40,37,45,40,48,43,50,46,52,47,53,49,54,50,55,51,56,52,56,53,57,54,57,54,57,54,58,55,58,55,58,56,59,56,59,57,59,57,59,
+0,183,0,139,2,114,7,101,12,92,17,87,21,83,24,80,27,78,29,77,32,75,34,74,35,73,37,72,38,72,40,71,41,71,42,70,43,70,44,69,
+22,109,31,95,36,87,40,83,43,80,45,77,47,76,49,74,50,73,51,72,52,72,53,71,53,70,54,70,54,69,55,69,56,69,56,69,57,68,57,68,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,0,139,0,68,0,2,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57,0,46,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,37,35,40,38,43,40,46,42,47,44,49,46,50,47,51,48,52,49,53,50,54,51,54,51,54,52,55,53,56,54,56,54,57,54,57,54,57,54,57,
+0,197,0,160,0,135,3,118,6,107,10,100,14,95,17,91,19,87,22,85,24,83,26,81,28,80,30,78,32,77,33,76,34,75,36,74,37,73,38,72,
+21,114,27,102,32,95,36,90,39,86,41,83,44,81,45,80,47,78,48,77,49,76,50,75,50,74,51,73,52,73,53,72,53,72,53,71,53,70,54,70,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,179,0,159,0,109,0,51,
+0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,0,53,0,36,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,36,35,38,37,41,39,43,40,44,42,46,44,47,45,48,46,49,47,50,48,51,48,51,50,52,51,53,51,54,51,54,51,54,52,54,53,54,54,55,
+0,203,0,173,0,150,1,132,3,120,6,112,9,105,11,100,14,96,16,93,19,89,21,87,23,86,25,84,26,82,28,81,29,80,31,79,31,79,33,78,
+20,117,25,107,30,100,34,95,36,91,39,88,41,86,42,84,44,82,45,81,46,79,47,78,48,78,49,77,49,76,50,74,51,74,51,74,52,74,53,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,183,0,170,0,133,0,87,
+0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,56,0,44,0,29,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,35,35,37,36,39,37,40,39,42,40,44,42,45,43,46,44,47,45,48,46,49,47,50,48,50,48,51,49,51,50,51,51,52,51,53,51,54,51,54,
+0,207,0,182,0,160,0,143,1,131,3,121,5,114,8,108,10,104,12,100,15,97,16,94,18,91,20,89,22,88,23,86,25,85,26,83,27,82,28,80,
+19,119,24,110,28,104,31,99,34,95,36,92,38,89,40,87,41,86,42,84,44,83,45,82,46,80,46,79,47,79,49,78,49,77,49,77,49,76,50,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,186,0,176,0,149,0,112,
+0,72,0,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,58,0,49,0,37,0,24,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,35,34,36,36,38,37,39,38,41,39,42,40,43,42,45,42,45,44,46,45,48,45,48,46,48,48,49,48,50,48,51,48,51,49,51,50,51,51,52,
+0,209,0,188,0,169,0,153,0,140,2,130,3,122,5,116,7,111,9,107,11,103,13,99,15,97,16,95,18,92,20,90,21,88,22,88,24,87,25,86,
+19,120,23,112,27,106,30,102,32,98,34,95,36,92,38,91,39,88,41,87,42,86,43,83,44,83,45,82,46,81,46,80,47,79,48,79,49,79,49,78,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,187,0,179,0,159,0,129,
+0,95,0,61,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,53,0,43,0,31,0,20,0,9,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,36,35,37,36,39,37,39,39,40,40,42,40,43,42,44,43,45,43,45,45,46,45,48,45,48,46,48,48,48,48,49,48,51,48,51,49,51,
+0,211,0,193,0,175,0,161,0,148,0,138,2,130,3,123,5,118,7,113,9,109,10,105,12,102,14,99,15,97,16,96,18,93,19,92,20,89,22,88,
+19,121,22,114,25,109,28,105,31,101,32,97,35,96,36,92,38,91,39,89,40,87,42,87,42,85,43,83,44,83,46,83,46,82,46,81,46,79,47,79,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,182,0,166,0,142,
+0,113,0,82,0,53,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,55,0,47,0,37,0,27,0,17,0,8,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,35,35,36,36,37,37,39,38,40,38,40,40,42,40,43,42,43,43,45,42,45,44,45,45,46,45,48,45,48,46,48,48,48,48,49,48,50,
+0,212,0,196,0,181,0,167,0,155,0,145,1,136,2,130,3,123,5,119,7,115,8,110,10,107,11,105,12,102,14,99,15,97,16,96,18,95,19,92,
+18,121,21,115,24,110,27,106,29,103,32,101,33,97,35,96,36,93,38,92,39,90,39,88,41,87,42,87,42,85,43,83,44,83,46,83,46,83,46,81,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,184,0,171,0,151,
+0,126,0,100,0,72,0,46,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,61,0,57,0,50,0,42,0,33,0,24,0,15,0,7,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,35,35,36,36,37,36,38,37,39,39,40,39,40,40,42,40,43,42,43,43,44,43,45,43,45,45,45,45,47,45,48,45,48,47,48,48,48,
+0,213,0,199,0,185,0,173,0,161,0,151,0,143,1,135,2,130,3,123,5,119,6,116,8,111,9,108,11,107,12,104,13,101,14,99,15,98,16,96,
+18,122,21,117,24,112,26,108,29,105,30,101,32,100,33,97,35,96,36,93,38,92,39,91,39,88,40,87,42,87,42,87,42,85,43,83,44,83,46,83,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,185,0,174,0,158,
+0,137,0,113,0,89,0,65,0,41,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,58,0,52,0,45,0,37,0,29,0,21,0,13,0,6,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+33,34,34,35,35,36,35,36,36,37,37,39,37,39,39,40,39,40,40,42,40,43,41,43,43,43,43,45,43,45,44,45,45,45,45,47,45,48,45,48,
+0,214,0,201,0,188,0,177,0,166,0,156,0,148,0,140,2,134,2,129,3,124,5,120,6,117,7,113,9,109,10,108,11,106,12,103,13,101,14,98,
+18,123,21,118,24,114,26,109,27,106,29,104,31,101,32,99,34,96,35,96,35,93,37,92,39,92,39,90,40,87,41,87,42,87,42,86,42,85,43,83,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,186,0,177,0,163,
+0,145,0,124,0,102,0,80,0,58,0,37,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,59,0,54,0,48,0,41,0,34,0,26,0,19,0,12,0,6,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+33,34,34,35,34,35,35,36,36,37,36,37,37,39,38,39,39,40,39,40,40,42,40,43,41,43,43,43,43,44,43,45,44,45,45,45,45,45,45,47,
+0,214,0,203,0,191,0,180,0,171,0,161,0,153,0,145,1,139,2,133,2,129,4,124,5,120,6,118,7,115,8,111,9,108,11,107,12,106,12,103,
+18,123,21,118,23,114,25,110,26,108,29,105,29,102,32,101,32,98,34,96,35,96,35,93,37,92,39,92,39,91,39,88,41,87,42,87,42,87,42,86,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,187,0,179,0,167,
+0,152,0,133,0,114,0,93,0,73,0,53,0,34,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,59,0,55,0,50,0,44,0,38,0,31,0,24,0,17,0,11,0,5,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,34,34,35,35,36,36,37,36,37,37,38,37,39,39,39,39,40,40,40,40,41,40,43,41,43,43,43,43,44,43,45,43,45,45,45,45,45,
+0,215,0,204,0,194,0,184,0,174,0,165,0,158,0,149,0,144,1,138,2,133,3,129,4,124,5,120,6,118,7,116,8,112,9,109,10,108,11,106,
+18,123,20,119,22,115,24,112,26,109,28,106,29,105,30,101,32,101,32,98,35,96,35,96,35,93,37,92,39,92,39,92,39,89,40,87,42,87,42,87,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,187,0,181,0,170,
+0,157,0,141,0,123,0,104,0,85,0,67,0,48,0,31,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,56,0,52,0,47,0,41,0,34,0,28,0,22,0,16,0,10,0,
+5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,34,34,35,35,36,35,36,36,37,37,37,37,39,38,39,39,40,38,40,40,40,40,41,40,43,41,43,43,43,43,43,43,45,43,45,44,45,
+0,215,0,205,0,196,0,187,0,177,0,169,0,161,0,154,0,147,0,142,1,136,2,132,3,129,4,124,5,121,6,119,7,117,7,114,9,110,9,109,
+18,123,20,119,21,115,24,113,26,109,26,107,29,105,29,103,31,101,32,101,33,97,35,96,35,96,35,94,37,92,39,92,39,92,39,90,39,88,41,87,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,182,0,173,
+0,161,0,147,0,131,0,114,0,96,0,79,0,61,0,45,0,29,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,57,0,53,0,49,0,43,0,38,0,32,0,26,0,20,0,15,0,
+9,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,34,34,35,35,35,35,36,36,37,36,37,37,38,37,39,39,39,39,40,38,40,40,40,40,41,40,43,41,43,43,43,43,43,43,44,43,45,
+0,216,0,207,0,198,0,189,0,180,0,173,0,164,0,158,0,151,0,146,1,141,2,136,2,132,3,129,4,125,5,121,6,119,7,117,7,115,9,112,
+18,124,19,120,21,117,24,114,25,110,26,109,28,105,29,105,30,102,32,101,32,100,33,97,35,96,35,96,35,94,37,92,39,92,39,92,39,91,39,89,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,183,0,175,
+0,165,0,152,0,137,0,122,0,106,0,89,0,73,0,57,0,41,0,27,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,61,0,58,0,55,0,50,0,45,0,40,0,35,0,29,0,24,0,19,0,
+13,0,9,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,34,34,35,34,35,35,36,36,36,36,37,37,37,37,39,37,39,39,39,39,40,39,40,40,40,40,41,40,43,41,43,43,43,43,43,43,43,
+0,216,0,208,0,199,0,190,0,183,0,175,0,168,0,161,0,155,0,149,0,144,1,140,2,135,2,132,3,129,4,125,5,121,6,119,6,118,7,116,
+17,124,19,120,21,118,23,114,24,111,26,109,27,106,29,105,29,104,31,101,32,101,32,100,34,96,35,96,35,96,35,94,37,92,39,92,39,92,39,92,
+0,47,0,95,0,153,0,172,0,179,0,183,0,186,0,187,0,188,0,188,0,189,0,189,0,189,0,190,0,190,0,190,0,154,0,109,0,141,0,155,
+0,166,0,178,0,186,0,187,0,188,0,188,0,189,0,189,0,189,0,190,0,190,0,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,59,0,111,0,159,0,175,0,181,0,185,0,186,0,188,0,188,0,189,0,189,0,189,
+0,190,0,190,0,190,0,190,7,71,0,127,0,165,0,178,0,183,0,186,0,187,0,188,0,189,0,189,0,189,0,190,0,190,0,190,0,190,0,190,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,34,34,34,34,35,35,36,35,36,36,37,36,37,37,37,37,39,38,39,39,39,39,41,39,40,40,40,40,41,40,43,41,43,43,43,43,43,
+0,216,0,209,0,201,0,192,0,186,0,177,0,172,0,164,0,158,0,152,0,147,0,143,1,139,2,134,2,131,3,129,4,125,5,121,6,120,6,118,
+17,124,19,121,21,118,23,114,24,113,26,109,26,109,28,105,29,105,29,102,32,101,32,101,32,99,34,96,35,96,35,96,35,95,37,92,39,92,39,92,
+0,0,0,15,0,95,0,139,0,159,0,170,0,176,0,179,0,182,0,184,0,185,0,186,0,187,0,187,0,188,0,188,0,109,0,84,0,107,0,135,
+0,152,0,166,0,176,0,179,0,182,0,184,0,185,0,186,0,187,0,187,0,188,0,188,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,7,2,39,0,111,0,147,0,164,0,173,0,178,0,181,0,184,0,185,0,186,0,187,
+0,187,0,188,0,188,0,189,15,15,0,63,0,127,0,156,0,170,0,177,0,181,0,183,0,185,0,186,0,187,0,188,0,188,0,189,0,189,0,189,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,37,39,39,39,39,39,39,40,39,40,40,40,40,41,40,43,40,43,42,43,
+0,217,0,210,0,201,0,194,0,187,0,180,0,174,0,167,0,161,0,157,0,150,0,146,1,142,1,137,2,134,2,131,3,129,4,126,5,122,6,120,
+17,124,19,121,21,118,22,115,24,114,25,110,26,109,27,106,29,105,29,105,30,101,32,101,32,101,32,98,34,96,35,96,35,96,35,95,36,92,38,92,
+0,0,0,0,0,5,0,68,0,109,0,133,0,149,0,159,0,166,0,171,0,174,0,177,0,179,0,181,0,182,0,183,0,141,0,107,0,40,0,82,
+0,112,0,133,0,149,0,159,0,166,0,171,0,174,0,177,0,179,0,181,0,182,0,183,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,18,2,0,34,0,88,0,122,0,143,0,156,0,164,0,170,0,174,0,177,0,179,
+0,181,0,183,0,184,0,185,38,0,5,5,0,63,0,109,0,136,0,153,0,163,0,170,0,174,0,177,0,180,0,182,0,183,0,184,0,185,0,186,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+34,34,34,34,34,34,34,35,35,35,35,36,36,36,36,37,36,37,37,37,37,39,38,39,39,39,39,40,39,40,40,40,40,40,40,41,40,43,40,43,
+0,217,0,210,0,202,0,196,0,189,0,182,0,176,0,170,0,163,0,159,0,154,0,148,0,145,1,142,2,137,2,133,2,131,3,129,4,126,5,122,
+17,124,19,122,21,118,21,116,24,114,24,111,26,109,26,108,28,105,29,105,29,103,31,101,32,101,32,101,33,97,35,96,35,96,35,96,35,95,36,92,
+0,0,0,0,0,0,0,2,0,51,0,87,0,112,0,129,0,142,0,151,0,158,0,163,0,167,0,170,0,173,0,175,0,155,0,135,0,82,0,17,
+0,57,0,87,0,112,0,129,0,142,0,151,0,158,0,163,0,167,0,170,0,173,0,175,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,37,0,11,9,0,33,0,74,0,104,0,125,0,139,0,150,0,157,0,163,0,168,
+0,171,0,174,0,176,0,178,51,0,28,0,0,18,0,63,0,98,0,122,0,138,0,150,0,158,0,164,0,169,0,172,0,175,0,177,0,179,0,180,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+33,34,34,34,34,34,34,35,35,35,35,36,35,36,36,36,36,37,37,37,37,38,37,39,39,39,39,39,39,40,39,40,40,40,40,40,40,40,40,42,
+0,217,0,210,0,203,0,198,0,190,0,185,0,177,0,172,0,166,0,161,0,157,0,151,0,147,0,144,1,141,2,136,2,133,2,131,3,129,4,126,
+17,124,19,122,21,118,21,117,24,114,24,113,26,109,26,109,27,106,29,105,29,105,30,102,32,101,32,101,32,100,33,97,35,96,35,96,35,96,35,95,
+0,0,0,0,0,0,0,0,0,1,0,40,0,72,0,95,0,113,0,126,0,137,0,145,0,152,0,157,0,161,0,165,0,166,0,152,0,112,0,57,
+0,2,0,40,0,72,0,95,0,113,0,126,0,137,0,145,0,152,0,157,0,161,0,165,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,58,0,47,0,22,0,8,14,0,32,0,66,0,92,0,111,0,126,0,137,0,146,0,153,
+0,158,0,162,0,166,0,169,56,0,42,0,9,0,0,29,0,63,0,91,0,111,0,127,0,139,0,148,0,155,0,160,0,165,0,168,0,171,0,173,
+22,164,1,187,0,198,0,204,0,207,0,209,0,211,0,212,0,213,0,214,0,215,0,215,0,216,0,216,0,216,0,217,0,217,0,217,0,217,0,218,
+5,157,0,188,0,198,0,205,0,207,0,210,0,211,0,213,0,213,0,214,0,214,0,215,0,215,0,216,0,216,0,217,0,217,0,217,0,217,0,217,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+2,189,0,204,0,209,0,213,0,214,0,215,0,216,0,217,0,217,0,217,0,217,0,218,0,218,0,218,0,218,0,219,0,219,0,219,0,219,0,219,
+0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,61,0,82,0,100,0,113,0,124,0,133,0,141,0,147,0,152,0,178,0,166,0,133,0,87,
+0,40,0,1,0,33,0,61,0,82,0,100,0,113,0,124,0,133,0,141,0,147,0,152,0,0,0,0,0,0,0,0,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,0,53,0,35,0,14,2,6,18,0,32,0,60,0,82,0,100,0,115,0,126,0,135,
+0,143,0,149,0,154,0,158,58,0,49,0,25,0,0,5,0,36,0,63,0,86,0,104,0,119,0,130,0,139,0,147,0,153,0,157,0,161,0,165,
+35,116,9,145,2,163,0,175,0,183,0,189,0,194,0,197,0,199,0,201,0,203,0,204,0,206,0,207,0,208,0,209,0,210,0,210,0,210,0,211,
+13,107,1,142,0,164,0,176,0,185,0,190,0,194,0,197,0,200,0,202,0,204,0,204,0,206,0,207,0,208,0,209,0,209,0,210,0,211,0,211,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+6,164,0,181,0,192,0,198,0,203,0,205,0,207,0,209,0,210,0,211,0,212,0,212,0,213,0,214,0,214,0,215,0,215,0,215,0,216,0,216,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,53,0,72,0,89,0,102,0,114,0,123,0,131,0,137,0,186,0,176,0,149,0,112,
+0,72,0,33,0,1,0,28,0,53,0,72,0,89,0,102,0,114,0,123,0,131,0,137,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,56,0,42,0,24,0,12,7,5,20,0,32,0,55,0,76,0,92,0,106,0,117,
+0,126,0,134,0,141,0,146,60,0,53,0,35,0,11,0,0,15,0,41,0,63,0,83,0,99,0,112,0,123,0,132,0,139,0,146,0,151,0,155,
+42,97,17,120,7,138,3,152,1,162,0,170,0,177,0,182,0,186,0,189,0,192,0,194,0,197,0,198,0,199,0,201,0,201,0,202,0,203,0,204,
+18,81,4,115,0,137,0,154,0,164,0,173,0,178,0,183,0,187,0,190,0,192,0,195,0,197,0,198,0,200,0,201,0,202,0,203,0,204,0,205,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+9,151,2,168,0,179,0,187,0,192,0,197,0,199,0,202,0,204,0,205,0,206,0,208,0,209,0,209,0,210,0,211,0,211,0,212,0,212,0,213,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,46,0,65,0,80,0,93,0,104,0,114,0,122,0,187,0,179,0,159,0,129,
+0,95,0,61,0,28,0,0,0,25,0,46,0,65,0,80,0,93,0,104,0,114,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,58,0,47,0,32,0,16,0,10,11,4,22,0,32,0,52,0,70,0,86,0,98,
+0,109,0,119,0,127,0,133,61,0,56,0,42,0,22,0,0,0,0,22,0,44,0,63,0,80,0,94,0,107,0,117,0,126,0,133,0,139,0,145,
+46,89,23,107,12,122,6,135,3,146,1,155,0,162,0,168,0,173,0,177,0,181,0,185,0,187,0,189,0,190,0,193,0,195,0,196,0,198,0,199,
+21,69,8,96,2,119,0,135,0,148,0,157,0,164,0,170,0,175,0,179,0,183,0,186,0,188,0,190,0,192,0,194,0,195,0,196,0,198,0,199,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+10,145,4,158,1,170,0,178,0,184,0,189,0,192,0,195,0,198,0,200,0,202,0,203,0,204,0,205,0,206,0,207,0,208,0,208,0,209,0,210,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,41,0,58,0,73,0,85,0,96,0,106,0,188,0,182,0,166,0,142,
+0,113,0,82,0,53,0,25,0,0,0,22,0,41,0,58,0,73,0,85,0,96,0,106,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,59,0,51,0,39,0,24,0,13,4,8,14,4,23,0,32,0,50,0,66,0,80,
+0,92,0,103,0,112,0,120,61,0,57,0,47,0,31,0,11,0,0,8,0,28,0,46,0,63,0,78,0,91,0,102,0,112,0,120,0,128,0,134,
+49,83,28,98,17,112,10,123,6,133,3,142,2,150,0,156,0,162,0,167,0,171,0,174,0,178,0,181,0,184,0,186,0,187,0,189,0,190,0,191,
+23,61,11,85,4,103,1,120,0,133,0,144,0,152,0,159,0,165,0,170,0,173,0,177,0,180,0,182,0,185,0,187,0,188,0,190,0,192,0,193,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+11,141,5,153,2,162,0,170,0,177,0,182,0,186,0,190,0,193,0,195,0,197,0,199,0,200,0,201,0,203,0,204,0,204,0,205,0,206,0,207,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,37,0,53,0,67,0,79,0,89,0,188,0,184,0,171,0,151,
+0,126,0,100,0,72,0,46,0,22,0,0,0,19,0,37,0,53,0,67,0,79,0,89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,53,0,43,0,31,0,18,0,12,7,7,16,3,24,0,32,0,48,0,63,
+0,76,0,87,0,97,0,106,62,0,59,0,50,0,37,0,20,0,2,0,0,15,0,32,0,48,0,63,0,77,0,88,0,99,0,108,0,116,0,123,
+51,80,32,92,21,104,14,114,9,124,5,132,3,140,2,146,1,152,0,157,0,161,0,166,0,170,0,173,0,175,0,178,0,181,0,183,0,185,0,186,
+24,56,13,76,6,94,3,108,1,122,0,132,0,141,0,149,0,155,0,160,0,165,0,168,0,172,0,175,0,178,0,180,0,182,0,184,0,186,0,188,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+12,138,6,148,3,157,1,164,0,171,0,176,0,181,0,185,0,188,0,190,0,193,0,194,0,196,0,198,0,199,0,200,0,201,0,202,0,203,0,204,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,34,0,48,0,61,0,73,0,189,0,185,0,174,0,158,
+0,137,0,113,0,89,0,65,0,41,0,19,0,0,0,18,0,34,0,48,0,61,0,73,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,55,0,47,0,36,0,25,0,14,2,10,10,6,17,3,25,0,31,0,46,
+0,60,0,72,0,83,0,92,62,0,60,0,52,0,41,0,27,0,12,0,0,4,0,20,0,35,0,50,0,63,0,75,0,86,0,96,0,104,0,112,
+52,78,35,88,24,98,16,108,11,117,8,124,5,131,3,138,2,143,1,149,0,154,0,158,0,161,0,165,0,169,0,172,0,174,0,176,0,178,0,181,
+26,53,15,71,8,85,4,100,2,112,0,122,0,131,0,139,0,146,0,152,0,157,0,160,0,165,0,168,0,171,0,174,0,176,0,178,0,180,0,183,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+13,137,7,146,4,153,2,160,1,166,0,171,0,176,0,180,0,183,0,186,0,189,0,190,0,193,0,194,0,196,0,197,0,198,0,199,0,200,0,202,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,31,0,45,0,57,0,189,0,186,0,177,0,163,
+0,145,0,124,0,102,0,80,0,58,0,37,0,18,0,0,0,16,0,31,0,45,0,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,61,0,56,0,49,0,40,0,30,0,19,0,13,5,9,12,6,19,3,25,0,31,
+0,45,0,58,0,69,0,79,62,0,60,0,54,0,45,0,33,0,19,0,4,0,0,10,0,24,0,38,0,51,0,63,0,74,0,84,0,93,0,101,
+53,76,38,85,27,94,19,103,14,111,10,118,7,125,5,130,3,136,2,142,2,146,1,151,0,155,0,158,0,161,0,165,0,168,0,171,0,172,0,175,
+27,51,16,66,10,80,5,92,3,104,1,114,0,123,0,131,0,138,0,144,0,150,0,153,0,158,0,161,0,165,0,168,0,170,0,173,0,175,0,176,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+13,136,8,143,5,150,2,156,1,162,0,167,0,172,0,176,0,179,0,182,0,185,0,187,0,189,0,191,0,193,0,194,0,195,0,197,0,198,0,198,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,29,0,41,0,189,0,187,0,179,0,167,
+0,152,0,133,0,114,0,93,0,73,0,53,0,34,0,16,0,0,0,15,0,29,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,57,0,51,0,44,0,35,0,25,0,15,0,12,7,8,14,5,20,2,26,
+0,31,0,44,0,56,0,66,62,0,61,0,56,0,48,0,37,0,25,0,12,0,0,1,0,14,0,28,0,40,0,52,0,63,0,73,0,83,0,91,
+54,74,40,82,29,91,22,99,16,106,12,113,9,119,7,125,5,130,3,135,2,140,2,144,1,148,0,153,0,156,0,158,0,161,0,164,0,167,0,170,
+27,48,18,62,12,75,7,87,4,97,2,107,1,115,0,124,0,130,0,136,0,143,0,147,0,151,0,156,0,159,0,162,0,165,0,168,0,170,0,172,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+13,134,9,141,6,148,3,154,2,159,1,164,0,168,0,172,0,175,0,178,0,182,0,184,0,186,0,188,0,190,0,191,0,193,0,194,0,195,0,196,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,27,0,190,0,187,0,181,0,170,
+0,157,0,141,0,123,0,104,0,85,0,67,0,48,0,31,0,15,0,0,0,14,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,58,0,53,0,46,0,38,0,29,0,20,0,14,3,11,9,8,15,5,21,
+2,26,0,31,0,43,0,54,63,0,61,0,57,0,50,0,41,0,30,0,18,0,6,0,0,6,0,19,0,31,0,42,0,53,0,63,0,73,0,81,
+55,73,42,81,32,88,24,95,19,102,15,108,11,115,9,120,7,126,5,130,3,134,2,139,2,143,1,146,1,150,0,154,0,157,0,159,0,161,0,164,
+28,47,19,59,13,71,9,81,5,92,4,101,2,110,1,117,0,124,0,130,0,136,0,141,0,145,0,150,0,153,0,156,0,160,0,162,0,165,0,167,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+14,134,9,140,6,146,4,151,2,156,2,161,1,165,0,169,0,172,0,175,0,178,0,181,0,183,0,185,0,187,0,188,0,190,0,191,0,193,0,194,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,190,0,188,0,182,0,173,
+0,161,0,147,0,131,0,114,0,96,0,79,0,61,0,45,0,29,0,14,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,59,0,54,0,48,0,41,0,33,0,25,0,16,0,13,5,10,11,7,16,
+4,22,2,27,0,31,0,42,63,0,61,0,58,0,51,0,43,0,34,0,23,0,12,0,0,0,0,11,0,22,0,33,0,44,0,54,0,63,0,72,
+56,72,43,79,34,86,26,92,21,99,17,105,13,110,10,116,8,120,6,126,5,129,4,133,3,138,2,142,2,144,1,147,0,152,0,155,0,157,0,159,
+28,45,20,57,14,68,10,78,7,87,4,96,2,103,1,111,0,118,0,125,0,129,0,135,0,140,0,144,0,148,0,151,0,154,0,157,0,160,0,162,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+14,133,10,139,7,144,5,149,3,154,2,158,1,162,0,166,0,169,0,173,0,175,0,178,0,180,0,182,0,184,0,186,0,187,0,189,0,190,0,191,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,183,0,175,
+0,165,0,152,0,137,0,122,0,106,0,89,0,73,0,57,0,41,0,27,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,56,0,50,0,44,0,37,0,29,0,21,0,14,1,12,7,9,12,
+6,17,4,22,2,27,0,31,63,0,62,0,58,0,53,0,46,0,37,0,28,0,17,0,7,0,0,3,0,14,0,25,0,35,0,45,0,54,0,63,
+56,72,45,78,35,84,28,90,23,95,18,102,15,106,12,113,10,116,8,121,6,126,5,129,4,132,3,137,2,141,2,143,1,146,1,149,0,153,0,155,
+28,45,21,55,15,65,11,74,7,83,5,91,4,99,2,105,1,112,0,119,0,125,0,129,0,135,0,138,0,143,0,146,0,150,0,153,0,155,0,158,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+14,133,10,138,7,143,5,147,3,152,2,156,2,160,1,163,0,166,0,170,0,173,0,175,0,178,0,179,0,182,0,183,0,185,0,187,0,188,0,189,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+57,71,46,77,37,83,30,88,25,94,20,99,17,104,14,108,11,114,9,117,7,121,6,126,5,129,4,132,3,136,2,140,2,142,1,145,1,147,0,151,
+29,44,22,54,16,62,12,72,9,80,6,88,4,95,2,102,2,108,1,113,0,119,0,125,0,129,0,134,0,138,0,142,0,145,0,148,0,151,0,154,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+14,132,11,137,8,141,6,146,4,150,3,154,2,158,1,161,1,164,0,167,0,170,0,173,0,175,0,177,0,179,0,181,0,183,0,184,0,186,0,187,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+57,70,47,76,38,81,32,86,26,92,22,96,18,102,15,105,12,110,11,115,9,118,7,122,6,126,5,129,4,132,3,136,2,139,2,142,2,144,1,146,
+29,43,22,52,17,61,12,69,10,76,7,84,5,91,4,97,2,103,1,109,1,115,0,120,0,125,0,129,0,134,0,137,0,141,0,144,0,147,0,149,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+14,132,11,136,8,141,6,145,5,148,3,152,2,156,2,159,1,162,0,165,0,168,0,170,0,173,0,175,0,177,0,179,0,181,0,182,0,184,0,185,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+57,70,48,75,40,80,33,85,28,89,23,94,20,99,16,104,14,107,12,112,10,116,8,118,7,123,6,126,5,129,4,131,3,135,2,138,2,141,2,143,
+30,42,23,51,18,59,14,67,10,74,7,81,5,88,4,94,3,100,2,105,1,111,0,116,0,120,0,125,0,129,0,133,0,137,0,139,0,143,0,147,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+15,131,11,136,9,140,7,144,5,147,3,151,2,154,2,157,1,160,1,163,0,166,0,168,0,170,0,173,0,175,0,177,0,179,0,180,0,182,0,184,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,70,49,74,41,78,34,84,29,87,25,93,21,96,18,101,15,105,13,108,11,113,9,116,8,119,7,123,6,127,5,129,4,131,3,134,2,138,2,140,
+30,42,24,50,18,57,15,64,12,72,9,79,7,85,5,90,4,96,2,102,2,107,1,112,0,117,0,121,0,125,0,129,0,132,0,136,0,139,0,142,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+15,131,12,135,9,139,7,142,6,146,4,150,3,153,2,155,2,158,1,161,1,164,0,166,0,169,0,171,0,173,0,175,0,176,0,178,0,180,0,181,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,69,49,73,42,77,36,82,31,86,26,91,22,95,19,99,16,103,14,106,12,110,11,114,9,117,7,119,7,123,6,127,5,129,4,131,3,133,2,137,
+30,41,24,49,19,56,15,63,12,69,10,76,7,82,5,88,4,93,4,99,2,103,1,108,1,113,0,117,0,121,0,125,0,129,0,132,0,136,0,139,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+15,131,12,135,9,138,7,142,6,145,5,148,3,151,2,154,2,157,2,160,1,162,0,164,0,167,0,169,0,171,0,173,0,175,0,176,0,178,0,180,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,69,50,72,43,77,37,81,32,85,27,89,24,94,20,96,18,101,15,104,13,107,12,111,10,115,9,117,7,119,6,123,6,127,5,129,4,131,3,133,
+30,41,25,48,20,55,15,61,12,68,10,74,7,80,6,85,5,91,4,96,2,100,2,105,1,109,1,114,0,118,0,122,0,125,0,129,0,131,0,135,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+15,131,12,134,10,138,7,141,6,144,5,147,3,150,3,153,2,156,2,158,1,160,1,163,0,165,0,167,0,169,0,171,0,173,0,175,0,176,0,178,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,69,51,72,44,77,38,79,33,85,28,87,25,92,22,95,19,99,16,103,14,106,12,108,11,113,10,115,9,118,7,120,6,124,6,127,5,129,4,131,
+30,40,25,47,21,53,16,60,13,66,11,72,9,78,7,83,5,88,4,93,4,98,2,102,2,107,1,111,0,115,0,118,0,122,0,125,0,129,0,131,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+15,130,12,134,10,137,8,140,6,143,5,146,4,149,3,152,2,154,2,157,2,159,1,161,1,164,0,166,0,168,0,169,0,171,0,173,0,175,0,176,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,68,51,71,44,76,39,79,34,84,30,86,26,90,23,94,20,96,18,101,16,104,14,106,12,110,11,114,9,116,8,118,7,120,6,124,6,127,5,129,
+30,40,25,47,22,53,18,59,15,65,12,70,10,76,7,81,5,85,5,91,4,95,2,99,2,104,1,107,1,112,0,115,0,119,0,123,0,125,0,129,
+0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,0,221,
+15,130,12,134,11,137,9,140,7,143,6,145,5,148,3,151,2,153,2,156,2,158,1,160,1,162,0,164,0,166,0,168,0,170,0,172,0,173,0,175,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+47,35,37,34,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,33,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,68,5,37,13,35,18,34,21,34,23,34,24,34,26,34,27,34,27,34,28,34,28,34,28,34,29,34,29,34,30,34,30,34,30,34,30,34,30,34,
+16,51,19,35,23,34,26,34,27,34,28,34,29,34,30,34,30,34,30,34,31,34,31,34,31,34,31,34,31,34,32,34,32,34,32,34,32,34,32,34,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+53,37,43,35,39,34,37,34,36,34,35,34,35,34,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,157,0,107,1,81,4,69,8,61,11,56,13,53,15,51,16,48,18,47,19,45,20,45,21,44,22,43,22,42,23,42,24,41,24,41,25,40,25,40,
+16,95,16,70,17,57,19,51,21,47,22,45,23,43,24,42,25,41,26,40,26,39,27,39,27,39,28,38,28,38,28,38,29,37,29,37,29,37,29,37,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+56,42,46,38,42,37,39,36,38,35,37,35,36,35,36,34,35,34,35,34,35,34,35,34,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,188,0,142,0,115,0,96,2,85,4,76,6,71,8,66,10,62,12,59,13,57,14,55,15,54,16,52,17,51,18,50,18,49,19,48,20,47,21,47,
+16,111,16,88,16,74,17,65,18,59,19,55,20,52,21,50,22,48,23,46,23,45,24,44,24,44,25,43,25,42,26,42,26,41,26,41,27,40,27,40,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+57,46,49,41,44,39,42,38,40,37,39,36,37,36,37,35,36,35,36,35,36,35,36,35,35,34,35,34,35,34,35,34,35,34,35,34,34,34,34,34,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,198,0,164,0,137,0,119,0,103,1,94,3,85,4,80,5,75,7,71,9,68,10,65,11,62,12,61,12,59,14,57,15,56,15,55,15,53,16,53,
+16,116,16,99,16,85,16,76,17,68,17,64,18,59,19,57,19,54,20,52,21,51,22,49,22,48,23,47,23,46,24,45,24,45,24,44,24,43,25,43,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,49,51,44,47,41,43,40,41,38,40,37,39,37,38,36,37,36,37,36,37,35,36,35,36,35,36,35,36,35,35,35,35,35,35,34,35,34,35,34,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,205,0,176,0,154,0,135,0,120,0,108,1,100,2,92,3,87,4,81,5,78,7,74,7,72,9,69,10,67,10,64,12,63,12,61,12,60,13,59,
+16,119,16,105,16,94,16,84,16,77,17,71,17,67,18,63,18,60,19,57,19,56,20,54,20,53,21,51,22,50,22,49,23,48,23,47,23,47,23,46,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,51,52,46,48,43,45,41,43,40,41,39,41,38,39,37,39,37,38,36,37,36,37,36,37,36,36,36,36,35,36,35,36,35,36,35,35,35,35,35,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,207,0,185,0,164,0,148,0,133,0,122,0,112,0,104,1,97,2,92,4,87,4,83,5,80,6,76,7,74,7,72,9,69,10,68,10,66,11,65,
+16,120,16,109,16,99,16,91,16,83,16,78,17,73,17,69,17,65,18,63,19,60,19,58,19,57,20,55,20,54,20,53,21,51,22,51,22,50,22,49,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,52,54,48,50,45,47,43,45,41,43,40,41,39,40,39,39,38,39,37,39,37,37,37,37,36,37,36,37,36,36,36,36,36,36,35,36,35,36,35,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,210,0,190,0,173,0,157,0,144,0,132,0,122,0,114,0,107,1,101,2,96,2,91,4,88,4,84,5,81,5,79,7,76,7,74,7,72,9,70,
+16,122,16,112,16,103,16,95,16,89,16,83,16,78,17,74,17,70,17,67,18,65,18,62,19,61,19,59,19,57,19,56,20,55,20,54,20,53,21,52,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,53,55,49,51,46,48,44,45,42,44,41,43,40,41,39,40,39,40,39,39,37,39,37,38,37,37,37,37,36,37,36,37,36,36,36,36,36,36,36,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,211,0,194,0,178,0,164,0,152,0,141,0,131,0,123,0,115,0,110,1,103,1,99,2,95,2,91,4,88,4,85,5,82,5,80,6,78,7,76,
+16,122,16,114,16,106,16,99,16,93,16,87,16,82,16,78,17,74,17,72,17,68,17,66,18,64,18,62,19,61,19,59,19,58,19,57,20,56,20,55,
+15,0,31,0,51,0,57,0,60,0,61,0,62,0,62,0,62,0,62,0,63,0,63,0,63,0,63,0,63,0,63,0,11,59,23,7,44,0,54,0,
+58,0,60,0,61,0,61,0,62,0,62,0,62,0,62,0,63,0,63,0,63,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,0,61,0,76,0,76,0,72,0,66,0,62,0,62,0,62,0,62,0,63,0,63,0,
+63,0,63,0,63,0,63,0,7,71,15,15,38,0,51,0,56,0,58,0,60,0,61,0,61,0,62,0,62,0,62,0,62,0,63,0,63,0,63,0,
+60,55,55,50,52,48,49,45,47,44,45,43,43,41,43,40,41,39,40,39,40,39,39,38,39,37,39,37,38,37,37,37,37,36,37,36,37,36,36,36,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,213,0,197,0,183,0,170,0,159,0,149,0,139,0,131,0,124,0,117,0,111,0,105,1,102,2,97,2,94,3,90,4,88,4,85,5,83,5,81,
+16,123,16,115,16,108,16,102,16,96,16,91,16,86,16,82,16,79,17,75,17,72,17,69,17,68,18,65,18,64,18,62,19,61,19,59,19,58,19,57,
+0,0,5,0,31,0,46,0,53,0,56,0,58,0,60,0,60,0,61,0,61,0,62,0,62,0,62,0,62,0,62,0,0,111,2,39,18,2,37,0,
+47,0,53,0,56,0,58,0,59,0,60,0,60,0,61,0,61,0,62,0,62,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,48,0,57,0,66,0,65,0,61,0,58,0,60,0,60,0,61,0,61,0,62,0,
+62,0,62,0,62,0,62,0,0,127,0,63,5,5,28,0,42,0,49,0,53,0,56,0,57,0,59,0,60,0,60,0,61,0,61,0,61,0,62,0,
+60,55,56,51,52,49,50,47,48,45,45,43,45,43,43,41,43,40,41,40,40,39,40,39,39,39,39,37,39,37,39,37,37,37,37,37,37,36,37,36,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,213,0,200,0,187,0,175,0,165,0,155,0,146,0,138,0,130,0,124,0,118,0,112,0,108,1,103,1,100,2,96,2,93,4,91,4,88,4,85,
+16,123,16,117,16,110,16,104,16,99,16,94,16,90,16,86,16,82,16,79,17,76,17,73,17,71,17,68,17,67,18,65,18,63,19,62,19,61,19,59,
+0,0,0,0,1,0,22,0,36,0,44,0,49,0,53,0,55,0,57,0,58,0,59,0,59,0,60,0,60,0,61,0,0,159,0,111,0,34,11,9,
+22,0,35,0,42,0,47,0,51,0,53,0,55,0,56,0,57,0,58,0,59,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,57,0,22,0,40,0,47,0,46,0,49,0,53,0,55,0,57,0,58,0,59,0,
+59,0,60,0,60,0,61,0,0,165,0,127,0,63,0,18,9,0,25,0,35,0,42,0,47,0,50,0,52,0,54,0,56,0,57,0,58,0,58,0,
+61,56,57,52,53,50,51,48,48,45,47,45,45,43,44,43,43,41,43,40,41,40,40,38,40,39,39,39,39,38,39,37,39,37,38,37,37,37,37,37,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,214,0,202,0,190,0,179,0,170,0,160,0,152,0,144,0,136,0,130,0,125,0,119,0,113,0,109,1,105,1,102,2,99,2,96,2,93,4,91,
+16,124,16,118,16,112,16,106,16,101,16,97,16,93,16,89,16,85,16,82,16,79,17,76,17,73,17,71,17,69,17,68,18,66,18,65,18,63,19,62,
+0,0,0,0,0,0,0,0,17,0,29,0,37,0,43,0,47,0,50,0,52,0,54,0,55,0,56,0,57,0,58,0,0,175,0,147,0,88,0,33,
+8,14,14,2,24,0,32,0,39,0,43,0,47,0,49,0,51,0,53,0,54,0,56,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,66,0,40,0,9,0,22,0,29,0,37,0,43,0,47,0,50,0,52,0,54,0,
+55,0,56,0,57,0,58,0,0,178,0,156,0,109,0,63,0,29,0,5,11,0,22,0,31,0,37,0,41,0,45,0,48,0,50,0,51,0,53,0,
+61,56,57,53,54,51,51,48,49,47,48,45,46,44,45,43,43,43,43,40,43,40,40,40,40,39,40,39,39,39,39,39,39,38,39,37,39,37,37,37,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,214,0,204,0,192,0,183,0,173,0,165,0,157,0,150,0,143,0,136,0,129,0,125,0,119,0,115,0,111,0,107,1,103,1,100,2,98,2,95,
+16,124,16,119,16,113,16,108,16,103,16,99,16,95,16,92,16,88,16,85,16,81,16,79,17,76,17,74,17,72,17,70,17,68,17,67,18,66,18,64,
+0,0,0,0,0,0,0,0,0,0,13,0,24,0,31,0,37,0,42,0,45,0,48,0,50,0,52,0,53,0,55,0,0,181,0,164,0,122,0,74,
+0,32,6,18,12,7,16,0,24,0,31,0,36,0,40,0,44,0,46,0,48,0,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,65,0,47,0,22,0,0,0,13,0,24,0,31,0,37,0,42,0,45,0,48,0,
+50,0,52,0,53,0,55,0,0,183,0,170,0,136,0,98,0,63,0,36,0,15,0,0,11,0,20,0,27,0,33,0,37,0,41,0,43,0,46,0,
+61,57,58,54,54,51,52,49,50,48,48,45,47,45,45,43,45,43,43,42,43,40,42,40,40,40,40,39,40,38,40,39,39,39,39,39,39,37,39,37,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,215,0,204,0,195,0,186,0,177,0,168,0,160,0,153,0,147,0,141,0,135,0,129,0,125,0,120,0,116,0,112,0,108,1,105,1,102,2,99,
+16,124,16,119,16,114,16,110,16,105,16,101,16,97,16,93,16,90,16,87,16,84,16,81,16,79,17,77,17,75,17,73,17,71,17,69,17,68,18,66,
+0,0,0,0,0,0,0,0,0,0,0,0,11,0,20,0,27,0,33,0,37,0,41,0,44,0,47,0,49,0,50,0,0,185,0,173,0,143,0,104,
+0,66,0,32,5,20,10,11,13,4,18,0,25,0,30,0,35,0,38,0,41,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,0,61,0,46,0,29,0,13,0,0,0,11,0,20,0,27,0,33,0,37,0,41,0,
+44,0,47,0,49,0,50,0,0,186,0,177,0,153,0,122,0,91,0,63,0,41,0,22,0,8,2,0,12,0,19,0,25,0,30,0,34,0,37,0,
+61,57,58,54,55,52,53,50,51,48,49,47,48,45,46,45,45,42,44,43,43,42,43,40,42,40,40,40,40,40,40,39,40,39,39,39,39,39,39,38,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,215,0,206,0,197,0,188,0,180,0,172,0,165,0,158,0,151,0,145,0,140,0,135,0,129,0,125,0,120,0,117,0,113,0,109,1,107,1,104,
+16,124,16,120,16,115,16,111,16,107,16,103,16,99,16,96,16,92,16,89,16,87,16,84,16,81,16,79,17,77,17,75,17,73,17,71,17,70,17,69,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,17,0,24,0,29,0,34,0,38,0,41,0,43,0,45,0,0,186,0,178,0,156,0,125,
+0,92,0,60,0,32,4,22,8,14,12,7,14,2,19,0,25,0,29,0,33,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,58,0,49,0,37,0,24,0,11,0,0,0,9,0,17,0,24,0,29,0,34,0,
+38,0,41,0,43,0,45,0,0,187,0,181,0,163,0,138,0,111,0,86,0,63,0,44,0,28,0,15,0,4,4,0,12,0,18,0,23,0,28,0,
+61,57,58,54,55,52,53,51,51,48,50,48,48,46,47,45,45,44,45,42,44,43,43,42,43,40,42,40,40,40,40,40,40,38,40,39,39,39,39,39,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,216,0,207,0,198,0,190,0,182,0,175,0,168,0,161,0,156,0,150,0,144,0,138,0,134,0,129,0,125,0,121,0,117,0,114,0,111,0,107,
+16,125,16,120,16,116,16,112,16,108,16,104,16,101,16,97,16,95,16,92,16,89,16,86,16,84,16,81,16,79,17,77,17,75,17,74,17,72,17,70,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,15,0,21,0,26,0,31,0,34,0,38,0,40,0,0,188,0,181,0,164,0,139,
+0,111,0,82,0,55,0,32,4,23,7,16,10,10,13,5,15,0,20,0,25,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,53,0,43,0,31,0,20,0,9,0,0,0,8,0,15,0,21,0,26,0,
+31,0,34,0,38,0,40,0,0,188,0,183,0,170,0,150,0,127,0,104,0,83,0,63,0,46,0,32,0,20,0,10,0,1,6,0,12,0,17,0,
+61,58,58,55,56,53,54,51,51,50,51,48,48,47,48,45,46,45,45,43,45,43,43,43,43,42,43,40,42,40,40,40,40,40,40,39,41,39,39,39,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,216,0,208,0,200,0,192,0,185,0,178,0,171,0,165,0,159,0,153,0,148,0,143,0,138,0,134,0,129,0,125,0,121,0,118,0,115,0,112,
+16,125,16,121,16,117,16,113,16,109,16,106,16,102,16,99,16,96,16,93,16,91,16,88,16,86,16,84,16,81,16,79,17,77,17,76,17,74,17,73,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,13,0,19,0,24,0,28,0,32,0,35,0,0,188,0,184,0,170,0,150,
+0,126,0,100,0,76,0,52,0,32,3,24,6,17,9,12,12,7,14,3,16,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,55,0,47,0,37,0,27,0,17,0,8,0,0,0,7,0,13,0,19,0,
+24,0,28,0,32,0,35,0,0,189,0,185,0,174,0,158,0,139,0,119,0,99,0,80,0,63,0,48,0,35,0,24,0,14,0,6,0,0,7,0,
+61,58,58,56,56,54,54,51,52,51,51,48,49,48,48,46,47,45,45,45,45,43,45,43,43,43,43,42,43,40,42,40,40,40,40,40,40,39,40,39,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,217,0,209,0,201,0,194,0,187,0,180,0,174,0,168,0,162,0,156,0,151,0,146,0,142,0,137,0,133,0,129,0,125,0,122,0,118,0,115,
+16,125,16,121,16,117,16,114,16,110,16,107,16,104,16,101,16,98,16,95,16,92,16,90,16,88,16,85,16,83,16,81,16,79,17,78,17,76,17,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,12,0,17,0,22,0,26,0,29,0,0,189,0,185,0,174,0,157,
+0,137,0,115,0,92,0,70,0,50,0,32,3,25,6,19,8,14,11,9,13,5,14,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,61,0,57,0,50,0,42,0,33,0,24,0,15,0,7,0,0,0,6,0,12,0,
+17,0,22,0,26,0,29,0,0,189,0,186,0,177,0,164,0,148,0,130,0,112,0,94,0,78,0,63,0,50,0,38,0,28,0,19,0,11,0,3,
+61,58,59,56,57,54,54,52,53,51,51,49,50,48,48,47,48,45,46,45,45,44,45,42,44,43,43,43,43,42,43,40,42,40,40,40,40,40,40,40,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,217,0,209,0,202,0,195,0,188,0,182,0,176,0,170,0,165,0,160,0,154,0,150,0,145,0,141,0,137,0,132,0,129,0,125,0,122,0,119,
+16,125,16,121,16,118,16,114,16,111,16,108,16,105,16,102,16,99,16,97,16,94,16,92,16,89,16,87,16,85,16,83,16,81,16,79,17,78,17,76,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,11,0,16,0,20,0,24,0,0,189,0,186,0,177,0,163,
+0,146,0,126,0,106,0,86,0,66,0,48,0,31,3,25,5,20,8,15,10,11,12,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,58,0,52,0,45,0,37,0,29,0,21,0,13,0,6,0,0,0,6,0,
+11,0,16,0,20,0,24,0,0,189,0,187,0,180,0,169,0,155,0,139,0,123,0,107,0,91,0,77,0,63,0,51,0,40,0,31,0,22,0,14,
+61,59,59,57,58,54,54,53,54,51,51,50,51,48,48,48,48,46,47,45,45,45,45,44,45,43,43,43,43,43,43,42,43,40,42,40,40,40,40,40,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,217,0,210,0,203,0,196,0,190,0,184,0,178,0,173,0,168,0,162,0,157,0,153,0,148,0,144,0,139,0,136,0,132,0,129,0,125,0,123,
+16,125,16,122,16,118,16,115,16,112,16,109,16,106,16,103,16,101,16,98,16,95,16,93,16,91,16,89,16,86,16,85,16,83,16,81,16,79,17,78,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,10,0,15,0,19,0,0,189,0,187,0,179,0,168,
+0,153,0,135,0,117,0,98,0,80,0,63,0,46,0,31,2,26,5,21,7,16,9,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,59,0,54,0,48,0,41,0,34,0,26,0,19,0,12,0,6,0,0,0,
+5,0,10,0,15,0,19,0,0,190,0,188,0,182,0,172,0,160,0,147,0,132,0,117,0,102,0,88,0,75,0,63,0,52,0,42,0,33,0,25,
+61,59,59,57,57,54,55,53,54,51,51,51,51,48,49,48,48,47,48,45,46,45,45,45,45,43,45,43,43,43,43,43,43,41,43,40,41,40,40,40,
+33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,33,34,
+0,217,0,211,0,204,0,198,0,192,0,186,0,180,0,175,0,170,0,165,0,160,0,155,0,151,0,147,0,143,0,139,0,136,0,131,0,129,0,125,
+16,125,16,122,16,119,16,116,16,113,16,110,16,107,16,104,16,101,16,99,16,97,16,94,16,92,16,90,16,88,16,86,16,85,16,82,16,81,16,79,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,9,0,13,0,0,190,0,187,0,181,0,171,
+0,158,0,143,0,126,0,109,0,92,0,76,0,60,0,45,0,31,2,26,4,22,6,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,59,0,55,0,50,0,44,0,38,0,31,0,24,0,17,0,11,0,5,0,
+0,0,5,0,9,0,13,0,0,190,0,188,0,183,0,175,0,165,0,153,0,139,0,126,0,112,0,99,0,86,0,74,0,63,0,53,0,44,0,35,
+39,118,26,121,22,123,21,124,20,124,19,125,19,125,19,125,18,125,18,125,18,126,18,126,18,126,18,126,18,126,17,126,17,126,17,126,17,127,17,127,
+19,95,16,111,16,116,16,119,16,120,16,122,16,122,16,123,16,123,16,124,16,124,16,124,16,124,16,125,16,125,16,125,16,125,16,125,16,125,16,125,
+0,144,2,129,6,128,9,127,10,127,11,127,12,127,13,127,13,127,13,127,14,127,14,127,14,127,14,127,14,127,15,127,15,127,15,127,15,127,15,127,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,9,0,0,190,0,188,0,183,0,174,
+0,162,0,149,0,134,0,119,0,103,0,87,0,72,0,58,0,44,0,31,2,27,4,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,56,0,52,0,47,0,41,0,34,0,28,0,22,0,16,0,10,0,
+5,0,0,0,4,0,9,0,0,190,0,189,0,184,0,177,0,168,0,157,0,146,0,133,0,120,0,108,0,96,0,84,0,73,0,63,0,54,0,45,
+50,95,37,104,31,109,28,113,25,114,24,116,23,118,22,119,22,119,21,120,21,121,21,121,20,122,20,122,19,122,19,123,19,123,19,123,19,123,19,123,
+23,70,17,88,16,99,16,105,16,109,16,112,16,114,16,115,16,117,16,118,16,119,16,119,16,120,16,120,16,121,16,121,16,121,16,122,16,122,16,122,
+0,189,0,164,0,151,2,145,4,141,5,138,6,137,7,136,8,134,9,134,9,133,10,133,10,132,11,132,11,131,11,131,12,131,12,131,12,130,12,130,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,190,0,188,0,184,0,176,
+0,166,0,154,0,141,0,127,0,112,0,97,0,83,0,69,0,56,0,43,0,31,2,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,60,0,57,0,53,0,49,0,43,0,38,0,32,0,26,0,20,0,15,0,
+9,0,4,0,0,0,4,0,0,190,0,189,0,185,0,179,0,171,0,161,0,151,0,139,0,128,0,116,0,104,0,93,0,83,0,73,0,63,0,54,
+54,86,42,95,36,101,32,104,30,108,28,110,27,112,25,113,24,114,24,115,24,117,23,117,22,118,21,118,21,118,21,119,21,119,21,119,21,120,21,121,
+26,57,19,74,17,85,16,94,16,99,16,103,16,106,16,108,16,110,16,112,16,113,16,114,16,115,16,116,16,117,16,117,16,118,16,118,16,119,16,119,
+0,204,0,181,0,168,0,158,1,153,2,148,3,146,4,143,5,141,6,140,6,139,7,138,7,137,8,136,8,136,9,135,9,135,9,134,10,134,10,134,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,185,0,178,
+0,169,0,158,0,146,0,133,0,120,0,106,0,92,0,79,0,66,0,54,0,42,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,61,0,58,0,55,0,50,0,45,0,40,0,35,0,29,0,24,0,19,0,
+13,0,9,0,4,0,0,0,0,190,0,189,0,186,0,180,0,173,0,165,0,155,0,145,0,134,0,123,0,112,0,101,0,91,0,81,0,72,0,63,
+56,82,46,89,40,95,36,99,34,103,31,105,30,107,28,109,27,110,26,112,26,113,25,114,24,114,24,114,24,115,23,117,23,118,22,118,21,118,21,118,
+27,51,21,65,18,76,17,84,16,91,16,95,16,99,16,102,16,104,16,106,16,108,16,110,16,111,16,112,16,113,16,114,16,114,16,115,16,116,16,116,
+0,209,0,192,0,179,0,170,0,162,0,157,1,153,2,150,2,148,3,146,4,144,5,143,5,141,6,141,6,140,7,139,7,138,7,138,7,137,8,137,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,71,15,15,38,0,51,0,
+56,0,58,0,60,0,61,0,61,0,62,0,62,0,62,0,62,0,63,0,63,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,71,0,127,0,165,0,178,0,183,0,186,0,187,0,188,0,189,0,189,0,189,0,190,
+0,190,0,190,0,190,0,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+57,79,49,85,43,91,39,95,36,99,34,101,32,104,31,105,29,107,29,109,27,109,26,110,26,111,26,113,25,114,24,114,24,114,24,114,24,115,24,116,
+28,47,22,59,19,68,17,77,17,83,16,89,16,93,16,96,16,99,16,101,16,103,16,105,16,107,16,108,16,109,16,110,16,111,16,112,16,113,16,113,
+0,213,0,198,0,187,0,178,0,170,0,164,0,160,1,156,1,154,2,151,2,149,3,147,3,146,4,145,5,144,5,142,6,142,6,141,6,140,6,140,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,0,63,5,5,28,0,
+42,0,49,0,53,0,56,0,57,0,59,0,60,0,60,0,61,0,61,0,61,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,0,63,0,127,0,156,0,170,0,177,0,181,0,183,0,185,0,186,0,187,0,188,
+0,188,0,189,0,189,0,189,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,76,51,83,46,88,41,92,39,95,36,98,34,100,32,102,32,104,30,105,29,106,29,108,28,109,26,109,26,110,26,111,26,113,25,114,24,114,24,114,
+29,45,23,55,20,64,18,71,17,78,17,83,16,87,16,91,16,94,16,97,16,99,16,101,16,103,16,104,16,106,16,107,16,108,16,109,16,110,16,111,
+0,214,0,203,0,192,0,184,0,177,0,171,0,166,0,162,0,159,1,156,2,154,2,152,2,150,3,148,3,147,3,146,4,145,5,144,5,143,5,143,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,165,0,127,0,63,0,18,
+9,0,25,0,35,0,42,0,47,0,50,0,52,0,54,0,56,0,57,0,58,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,38,0,5,5,0,63,0,109,0,136,0,153,0,163,0,170,0,174,0,177,0,180,0,182,
+0,183,0,184,0,185,0,186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,75,52,81,47,85,44,89,41,92,38,96,36,97,35,100,33,101,32,103,31,105,29,105,29,106,29,108,28,109,27,109,26,109,26,109,26,111,26,113,
+30,43,24,52,21,59,19,67,18,73,17,78,17,82,16,86,16,90,16,93,16,95,16,97,16,99,16,101,16,102,16,104,16,105,16,106,16,107,16,108,
+0,215,0,205,0,197,0,189,0,182,0,176,0,171,0,167,0,164,0,161,1,158,1,156,2,154,2,152,2,151,2,150,3,148,3,147,3,146,4,145,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,156,0,109,0,63,
+0,29,0,5,11,0,22,0,31,0,37,0,41,0,45,0,48,0,50,0,51,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0,28,0,0,18,0,63,0,98,0,122,0,138,0,150,0,158,0,164,0,169,0,172,
+0,175,0,177,0,179,0,180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,73,54,79,49,84,45,87,42,90,40,92,38,96,36,97,35,100,33,101,32,101,32,104,30,105,29,105,29,105,29,107,28,109,27,109,26,109,26,109,
+30,42,25,50,22,57,19,63,18,69,17,74,17,78,17,82,16,86,16,89,16,92,16,93,16,96,16,97,16,99,16,101,16,102,16,103,16,104,16,105,
+0,216,0,207,0,199,0,192,0,186,0,181,0,176,0,172,0,168,0,165,0,162,0,160,1,158,1,156,2,154,2,153,2,151,2,150,3,149,3,148,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,183,0,170,0,136,0,98,
+0,63,0,36,0,15,0,0,11,0,20,0,27,0,33,0,37,0,41,0,43,0,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,42,0,9,0,0,29,0,63,0,91,0,111,0,127,0,139,0,148,0,155,0,160,
+0,165,0,168,0,171,0,173,0,0,0,0,0,0,0,0,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,72,55,77,50,81,47,85,44,88,41,91,39,93,38,96,36,96,35,99,34,101,32,101,32,102,31,104,30,105,29,105,29,105,29,107,28,109,27,109,
+30,41,26,48,23,54,20,60,19,65,18,70,17,74,17,79,17,82,16,85,16,88,16,90,16,92,16,95,16,96,16,98,16,99,16,101,16,101,16,103,
+0,217,0,209,0,202,0,195,0,190,0,185,0,180,0,176,0,172,0,169,0,166,0,163,0,161,1,159,1,157,1,155,2,154,2,153,2,152,2,151,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,186,0,177,0,153,0,122,
+0,91,0,63,0,41,0,22,0,8,2,0,12,0,19,0,25,0,30,0,34,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,58,0,49,0,25,0,0,5,0,36,0,63,0,86,0,104,0,119,0,130,0,139,0,147,
+0,153,0,157,0,161,0,165,0,0,0,0,0,0,0,0,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,72,55,76,51,80,48,84,45,87,42,89,41,92,39,93,38,96,36,96,35,98,34,101,32,101,32,101,32,103,31,105,29,105,29,105,29,105,29,106,
+31,40,26,46,23,52,21,57,19,63,19,67,18,72,17,75,17,79,17,82,16,85,16,87,16,89,16,92,16,93,16,95,16,97,16,98,16,99,16,100,
+0,217,0,210,0,204,0,198,0,193,0,188,0,183,0,179,0,175,0,172,0,169,0,166,0,164,0,162,0,160,1,158,1,157,2,156,2,154,2,153,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,187,0,181,0,163,0,138,
+0,111,0,86,0,63,0,44,0,28,0,15,0,4,4,0,12,0,18,0,23,0,28,0,0,0,0,0,0,0,0,0,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,0,53,0,35,0,11,0,0,15,0,41,0,63,0,83,0,99,0,112,0,123,0,132,
+0,139,0,146,0,151,0,155,0,0,0,0,0,0,0,0,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,71,56,75,52,79,49,83,46,85,44,87,42,90,40,92,39,93,38,96,35,96,35,97,35,100,33,101,32,101,32,101,32,104,30,105,29,105,29,105,
+31,39,27,45,24,51,22,56,20,60,19,65,18,68,17,72,17,76,17,79,17,81,16,84,16,87,16,89,16,91,16,92,16,94,16,95,16,97,16,98,
+0,217,0,211,0,205,0,200,0,195,0,190,0,186,0,182,0,178,0,175,0,173,0,170,0,167,0,165,0,163,0,161,1,160,1,158,1,157,2,156,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,183,0,170,0,150,
+0,127,0,104,0,83,0,63,0,46,0,32,0,20,0,10,0,1,6,0,12,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,56,0,42,0,22,0,0,0,0,22,0,44,0,63,0,80,0,94,0,107,0,117,
+0,126,0,133,0,139,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,71,56,75,53,78,50,81,47,83,45,87,43,88,42,91,39,92,39,93,37,96,35,96,35,97,35,100,33,101,32,101,32,101,32,102,31,105,30,105,
+31,39,27,44,24,49,22,54,20,58,19,62,19,66,18,69,17,73,17,76,17,79,17,81,16,84,16,86,16,88,16,90,16,92,16,93,16,94,16,96,
+0,217,0,212,0,206,0,202,0,197,0,193,0,189,0,185,0,182,0,178,0,175,0,173,0,170,0,168,0,166,0,164,0,162,0,160,1,159,1,158,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,185,0,174,0,158,
+0,139,0,119,0,99,0,80,0,63,0,48,0,35,0,24,0,14,0,6,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,0,57,0,47,0,31,0,11,0,0,8,0,28,0,46,0,63,0,78,0,91,0,102,
+0,112,0,120,0,128,0,134,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,70,57,74,53,77,50,80,48,83,46,85,44,87,42,88,41,92,39,92,39,93,37,96,35,96,35,96,35,99,34,101,32,101,32,101,32,101,32,103,
+31,39,28,44,25,48,23,53,21,57,20,61,19,64,18,68,18,71,17,73,17,76,17,79,17,81,16,84,16,86,16,88,16,89,16,91,16,92,16,94,
+0,218,0,212,0,208,0,203,0,199,0,194,0,190,0,187,0,184,0,181,0,178,0,175,0,173,0,170,0,168,0,166,0,164,0,163,0,161,1,160,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,186,0,177,0,164,
+0,148,0,130,0,112,0,94,0,78,0,63,0,50,0,38,0,28,0,19,0,11,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,62,0,59,0,50,0,37,0,20,0,2,0,0,15,0,32,0,48,0,63,0,77,0,88,
+0,99,0,108,0,116,0,123,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,70,57,73,54,76,51,79,49,82,46,83,45,87,43,87,42,89,40,92,39,92,39,94,37,96,35,96,35,96,35,98,34,101,32,101,32,101,32,101,
+31,38,28,43,25,47,23,51,22,55,20,59,19,62,19,65,18,68,17,71,17,74,17,77,17,79,17,81,16,84,16,85,16,87,16,89,16,90,16,91,
+0,218,0,213,0,209,0,204,0,200,0,196,0,193,0,189,0,186,0,183,0,180,0,178,0,175,0,173,0,170,0,169,0,167,0,165,0,164,0,162,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,187,0,180,0,169,
+0,155,0,139,0,123,0,107,0,91,0,77,0,63,0,51,0,40,0,31,0,22,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,52,0,41,0,27,0,12,0,0,4,0,20,0,35,0,50,0,63,0,75,
+0,86,0,96,0,104,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,69,57,72,54,75,52,79,49,80,48,83,46,85,44,87,42,87,42,90,40,92,39,92,39,94,37,96,35,96,35,96,35,97,34,100,33,101,32,101,
+32,38,28,42,26,46,24,50,22,54,20,57,19,61,19,64,18,67,18,69,17,72,17,75,17,77,17,79,17,81,16,83,16,85,16,86,16,88,16,90,
+0,218,0,214,0,209,0,205,0,201,0,198,0,194,0,191,0,188,0,185,0,182,0,179,0,177,0,175,0,173,0,171,0,169,0,167,0,166,0,164,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,182,0,172,
+0,160,0,147,0,132,0,117,0,102,0,88,0,75,0,63,0,52,0,42,0,33,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,60,0,54,0,45,0,33,0,19,0,4,0,0,10,0,24,0,38,0,51,0,63,
+0,74,0,84,0,93,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,69,58,72,55,74,53,78,50,79,49,83,46,83,46,86,43,87,42,88,41,91,39,92,39,92,39,94,37,96,35,96,35,96,35,97,35,100,33,101,
+32,38,29,42,26,45,24,49,23,53,21,56,20,59,19,62,19,65,18,68,18,70,17,73,17,75,17,77,17,79,17,81,16,83,16,85,16,86,16,88,
+0,218,0,214,0,210,0,206,0,203,0,199,0,196,0,193,0,190,0,187,0,184,0,182,0,179,0,177,0,175,0,173,0,171,0,169,0,168,0,166,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,188,0,183,0,175,
+0,165,0,153,0,139,0,126,0,112,0,99,0,86,0,74,0,63,0,53,0,44,0,35,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,61,0,56,0,48,0,37,0,25,0,12,0,0,1,0,14,0,28,0,40,0,52,
+0,63,0,73,0,83,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,69,58,71,56,74,53,77,51,79,49,81,47,83,46,84,44,87,42,87,42,89,41,92,39,92,39,92,39,94,37,96,35,96,35,96,35,96,35,99,
+32,37,29,41,26,45,24,48,23,51,22,55,20,58,19,61,19,63,19,66,18,68,17,71,17,73,17,75,17,77,17,79,17,81,16,83,16,85,16,86,
+0,219,0,215,0,211,0,207,0,204,0,200,0,197,0,194,0,191,0,188,0,186,0,183,0,181,0,179,0,177,0,175,0,173,0,171,0,169,0,168,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,184,0,177,
+0,168,0,157,0,146,0,133,0,120,0,108,0,96,0,84,0,73,0,63,0,54,0,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,57,0,50,0,41,0,30,0,18,0,6,0,0,6,0,19,0,31,0,42,
+0,53,0,63,0,73,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,68,58,71,56,74,53,76,51,79,49,80,48,83,46,83,46,86,43,87,42,87,42,90,40,92,39,92,39,92,39,95,37,96,35,96,35,96,35,96,
+32,37,29,41,27,44,24,47,23,51,22,54,20,57,20,59,19,62,19,65,18,67,18,69,17,71,17,74,17,76,17,78,17,79,17,81,16,82,16,84,
+0,219,0,215,0,211,0,208,0,204,0,201,0,198,0,195,0,193,0,190,0,187,0,185,0,183,0,181,0,179,0,176,0,175,0,173,0,171,0,170,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,185,0,179,
+0,171,0,161,0,151,0,139,0,128,0,116,0,104,0,93,0,83,0,73,0,63,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,61,0,58,0,51,0,43,0,34,0,23,0,12,0,0,0,0,11,0,22,0,33,
+0,44,0,54,0,63,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,68,59,70,57,74,53,75,52,79,49,79,49,83,46,83,46,84,44,87,42,87,42,88,42,91,39,92,39,92,39,92,39,95,36,96,35,96,35,96,
+32,37,29,40,27,43,25,47,23,50,22,53,21,56,20,58,19,61,19,63,19,66,18,68,18,70,17,72,17,74,17,76,17,78,17,79,17,81,16,82,
+0,219,0,215,0,212,0,208,0,205,0,202,0,199,0,197,0,194,0,191,0,189,0,187,0,184,0,182,0,180,0,178,0,176,0,175,0,173,0,172,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,0,189,0,186,0,180,
+0,173,0,165,0,155,0,145,0,134,0,123,0,112,0,101,0,91,0,81,0,72,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,62,0,58,0,53,0,46,0,37,0,28,0,17,0,7,0,0,3,0,14,0,25,
+0,35,0,45,0,54,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,68,59,70,57,73,54,74,53,78,50,79,49,81,47,83,46,83,46,86,43,87,42,87,42,88,41,92,39,92,39,92,39,92,38,95,36,96,35,96,
+32,37,29,40,28,43,26,46,24,49,23,52,22,55,20,57,19,59,19,62,19,64,18,66,18,69,17,70,17,73,17,74,17,76,17,78,17,79,17,81,
+0,219,0,216,0,212,0,209,0,206,0,203,0,200,0,198,0,195,0,193,0,190,0,188,0,186,0,184,0,182,0,180,0,178,0,176,0,175,0,173,
+16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,16,127,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+64,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+86,127,71,99,68,87,67,82,67,78,66,76,66,74,66,73,66,72,66,71,66,70,66,69,66,69,66,69,66,68,66,68,66,68,66,67,66,67,66,67,
+76,127,39,77,47,70,51,68,54,67,55,67,57,66,58,65,58,65,59,65,59,65,59,65,60,65,60,65,60,65,60,65,60,65,61,65,61,65,61,65,
+142,127,71,77,68,70,67,68,67,67,66,67,66,66,66,65,66,65,66,65,66,65,66,65,66,65,66,65,66,65,66,65,66,65,66,65,66,65,66,65,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,7,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,79,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+133,27,96,39,84,45,78,48,75,51,73,52,71,53,70,55,69,56,69,56,68,57,67,57,67,58,66,58,66,58,66,59,66,59,66,59,66,59,66,59,
+9,67,22,63,31,62,37,62,41,62,44,62,47,62,48,62,50,62,51,62,52,62,53,62,54,62,54,62,55,62,55,62,56,62,56,62,56,62,57,62,
+89,49,79,56,75,58,72,59,71,60,70,60,69,61,69,61,68,61,67,61,67,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,47,0,2,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,0,79,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+150,5,116,15,99,23,90,29,84,33,81,36,78,39,76,41,74,43,73,45,73,46,72,47,72,49,71,49,70,50,70,51,68,51,68,52,67,52,67,53,
+9,67,17,62,24,60,29,60,34,60,37,60,39,60,42,60,44,61,45,61,47,61,48,62,49,62,49,62,50,62,51,62,51,62,52,62,53,62,53,62,
+91,42,83,49,79,52,76,54,75,56,74,57,72,57,71,58,70,59,70,59,70,60,70,60,70,61,69,61,68,61,68,61,67,61,67,61,66,61,66,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,86,0,69,0,34,0,1,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,115,0,56,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+158,1,129,6,111,13,100,18,93,22,88,26,84,29,83,32,80,34,78,36,76,38,75,39,74,41,73,42,73,43,73,44,72,45,72,46,72,47,71,47,
+9,68,15,62,20,60,25,60,29,59,32,59,35,59,37,60,39,60,40,60,42,59,44,59,44,59,45,59,47,60,47,60,48,61,49,62,50,62,50,62,
+92,40,86,45,82,49,79,51,78,53,75,54,74,55,74,56,73,57,71,57,70,57,70,57,70,57,70,58,70,58,70,59,70,60,70,60,70,61,69,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89,0,79,0,54,0,25,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,132,0,91,0,42,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+164,0,138,3,120,7,109,12,101,16,96,19,91,22,87,25,85,27,83,30,82,31,79,34,77,35,76,36,75,37,75,39,74,40,73,41,73,41,73,43,
+9,69,13,64,17,61,22,60,25,59,29,59,31,59,33,58,35,59,37,59,38,60,40,60,41,60,42,59,43,59,44,59,45,59,46,59,46,59,47,59,
+93,39,87,44,84,47,82,49,79,50,78,52,76,53,74,53,74,54,74,55,74,56,72,57,71,57,70,57,70,57,70,57,70,57,70,57,70,57,70,58,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,91,0,85,0,66,0,43,
+0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,0,141,0,111,0,72,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+167,0,145,1,128,4,117,8,108,11,101,14,97,17,93,20,89,22,86,25,85,26,84,28,83,30,81,31,79,33,77,34,76,35,75,36,75,37,75,38,
+9,69,13,65,16,62,20,61,23,60,26,59,28,59,30,59,32,59,34,58,35,58,37,59,38,60,40,60,40,60,41,60,42,60,43,59,44,59,45,59,
+93,38,89,42,86,45,83,47,81,49,79,50,79,51,77,53,75,53,74,53,74,53,74,55,74,56,73,57,72,57,71,57,70,57,70,57,70,57,70,57,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,88,0,74,0,56,
+0,36,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,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,146,0,124,0,93,0,60,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+169,0,150,0,134,2,122,5,114,8,107,11,101,14,98,16,95,18,91,20,88,22,86,24,85,26,84,27,83,29,82,30,80,31,79,32,77,33,76,34,
+9,70,12,65,15,63,18,61,21,60,23,60,26,59,28,58,30,59,31,59,33,58,34,58,36,58,37,58,38,59,39,60,40,60,41,60,42,60,42,60,
+94,38,90,41,87,44,83,46,83,48,80,49,79,49,79,51,78,52,76,53,74,53,74,53,74,53,74,54,74,55,74,56,72,57,71,57,70,57,70,57,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,89,0,79,0,64,
+0,47,0,30,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,149,0,132,0,108,0,79,0,50,0,24,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+171,0,154,0,139,1,127,3,119,6,113,8,106,11,102,13,99,15,96,17,93,19,89,20,87,22,86,24,85,25,84,27,83,28,83,29,81,30,80,31,
+10,70,12,66,14,63,17,63,19,60,22,60,24,60,26,59,28,58,30,59,31,59,32,59,33,58,35,58,36,58,37,57,38,58,39,60,39,60,40,60,
+94,38,90,41,87,43,85,45,83,46,83,48,80,49,79,49,79,50,79,52,77,53,75,53,74,53,74,53,74,53,74,53,74,54,74,56,74,57,72,57,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,83,0,71,
+0,56,0,41,0,26,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,152,0,138,0,118,0,94,0,69,0,44,0,20,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+172,0,157,0,143,1,133,2,123,4,117,6,111,8,105,11,102,13,99,14,97,16,94,18,91,19,88,21,87,22,86,24,85,25,85,26,84,27,83,28,
+10,71,11,66,14,64,16,63,18,61,21,60,23,60,24,60,26,59,28,58,29,59,31,59,32,59,33,59,34,58,35,58,36,58,37,57,38,58,39,59,
+94,38,91,40,87,42,87,44,83,46,83,46,82,48,79,49,79,49,79,49,79,51,78,53,75,53,74,53,74,53,74,53,74,53,74,53,74,54,74,55,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,85,0,75,
+0,63,0,50,0,36,0,23,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,153,0,142,0,126,0,105,0,83,0,60,0,38,0,18,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+173,0,160,0,146,0,137,2,127,3,120,5,115,7,110,9,105,11,102,12,100,14,98,15,96,17,92,18,89,20,88,21,87,22,86,24,85,24,85,26,
+10,71,11,67,13,65,15,63,17,63,19,60,21,59,23,60,24,60,26,59,28,58,29,58,31,59,31,59,33,59,33,59,34,58,36,58,36,58,36,57,
+94,38,92,39,88,42,87,43,85,46,83,46,83,47,82,49,79,49,79,49,79,49,79,50,78,52,76,53,74,53,74,53,74,53,74,53,74,53,74,53,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,87,0,79,
+0,68,0,56,0,44,0,32,0,20,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,154,0,145,0,131,0,114,0,94,0,74,0,54,0,34,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+174,0,162,0,149,0,139,1,131,2,123,4,118,5,115,7,110,9,105,10,102,12,100,13,98,15,97,16,94,17,91,19,88,20,88,21,86,22,86,24,
+10,71,11,67,13,66,15,63,17,63,18,62,20,60,22,60,23,60,25,60,26,59,28,58,29,57,31,59,31,59,32,59,33,59,33,58,34,58,36,58,
+94,38,92,39,89,42,87,42,86,44,83,46,83,46,83,47,81,49,79,49,79,49,79,49,79,50,79,51,77,53,75,53,74,53,74,53,74,53,74,53,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,88,0,81,
+0,72,0,62,0,51,0,40,0,29,0,18,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,155,0,147,0,136,0,121,0,104,0,85,0,67,0,48,0,31,0,15,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+175,0,163,0,152,0,142,0,135,2,127,3,121,4,117,6,113,7,108,9,104,10,102,12,100,13,99,14,97,16,95,17,92,18,89,19,88,20,88,21,
+10,71,11,67,13,66,14,64,16,62,17,63,19,60,21,59,23,60,23,60,25,60,26,59,28,59,28,57,30,58,31,59,31,59,33,59,33,59,34,58,
+94,37,92,39,90,41,87,42,87,43,84,46,83,46,83,46,83,47,80,49,79,49,79,49,79,49,79,49,79,51,78,52,76,53,74,53,74,53,74,53,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,83,
+0,76,0,66,0,57,0,46,0,36,0,26,0,17,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,149,0,139,0,126,0,111,0,95,0,78,0,61,0,44,0,28,0,13,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+175,0,165,0,154,0,144,0,138,1,131,2,124,3,119,5,116,6,112,7,108,9,104,10,102,11,100,12,99,14,97,15,96,17,93,17,91,19,89,19,
+10,71,10,68,13,66,14,65,15,62,17,63,19,62,20,60,21,58,23,60,23,60,25,60,26,59,28,59,28,57,30,58,31,59,31,59,32,59,33,59,
+94,37,92,39,90,41,87,42,87,42,86,45,83,46,83,46,83,46,83,48,80,49,79,49,79,49,79,49,79,49,79,50,79,51,77,53,75,53,74,53,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,93,0,90,0,85,
+0,78,0,70,0,61,0,52,0,42,0,33,0,24,0,15,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,151,0,142,0,131,0,117,0,102,0,87,0,71,0,55,0,40,0,26,0,
+12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+176,0,166,0,157,0,146,0,140,1,134,2,126,2,122,4,118,5,115,6,112,7,107,9,104,10,102,11,101,12,99,14,98,14,97,16,94,17,92,18,
+10,71,10,68,12,66,13,65,15,63,17,63,17,63,19,61,21,60,22,59,23,60,24,60,25,60,26,59,28,59,28,57,30,57,31,59,31,59,31,59,
+95,37,92,39,91,40,87,42,87,42,87,43,84,46,83,46,83,46,83,46,82,48,79,49,79,49,79,49,79,49,79,49,79,49,79,51,78,52,76,53,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,86,
+0,80,0,73,0,65,0,57,0,48,0,39,0,30,0,22,0,14,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,152,0,144,0,134,0,122,0,109,0,95,0,80,0,65,0,51,0,37,0,
+24,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+176,0,167,0,159,0,149,0,142,0,136,1,130,2,124,3,120,5,117,6,114,7,111,8,106,9,104,10,102,11,101,12,99,13,98,14,97,15,96,17,
+10,71,10,69,12,66,13,66,14,64,16,61,17,63,19,62,20,60,21,59,23,59,23,60,24,60,25,60,26,59,28,59,28,58,29,57,31,58,31,59,
+95,37,92,39,92,39,88,42,87,42,87,42,86,45,83,46,83,46,83,46,83,46,82,49,79,49,79,49,79,49,79,49,79,49,79,49,79,50,79,52,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,87,
+0,82,0,76,0,68,0,61,0,53,0,44,0,36,0,28,0,20,0,13,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,146,0,137,0,126,0,114,0,102,0,88,0,74,0,61,0,47,0,
+34,0,22,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+177,0,167,0,160,0,151,0,144,0,138,1,133,2,126,2,122,3,119,5,116,6,114,7,110,8,106,9,104,10,102,11,101,12,99,13,99,14,97,15,
+10,71,10,69,11,66,13,66,14,64,15,62,17,63,18,63,19,61,21,60,21,58,23,60,23,60,25,60,25,60,26,59,28,59,28,58,29,57,31,57,
+95,37,92,39,92,39,89,42,87,42,87,42,87,44,83,46,83,46,83,46,83,46,83,47,81,49,79,49,79,49,79,49,79,49,79,49,79,49,79,49,
+0,23,0,47,0,76,0,86,0,89,0,91,0,93,0,93,0,94,0,94,0,94,0,94,0,94,0,95,0,95,0,95,0,108,0,76,0,95,0,98,
+0,98,0,95,0,93,0,93,0,94,0,94,0,94,0,94,0,94,0,95,0,95,0,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,20,1,41,0,73,0,84,0,89,0,91,0,92,0,93,0,93,0,94,0,94,0,94,
+0,94,0,94,0,95,0,95,49,17,3,35,0,70,0,82,0,88,0,90,0,92,0,93,0,93,0,94,0,94,0,94,0,94,0,94,0,94,0,95,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+177,0,168,0,161,0,153,0,145,0,140,0,136,1,130,2,124,3,121,4,118,5,116,6,113,7,109,8,106,9,104,10,102,11,101,12,100,12,99,14,
+10,71,10,69,11,66,13,66,14,65,15,63,17,62,17,63,19,62,19,60,21,60,22,58,23,60,23,60,25,60,25,60,26,59,28,59,28,58,29,57,
+95,37,92,39,92,39,90,41,87,42,87,42,87,42,85,45,83,46,83,46,83,46,83,46,83,47,81,49,79,49,79,49,79,49,79,49,79,49,79,49,
+0,0,0,7,0,47,0,69,0,79,0,85,0,88,0,89,0,91,0,92,0,92,0,93,0,93,0,93,0,94,0,94,0,76,0,59,0,72,0,85,
+0,88,0,87,0,88,0,89,0,91,0,92,0,92,0,93,0,93,0,93,0,94,0,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,87,0,22,4,0,39,0,65,0,77,0,83,0,86,0,89,0,90,0,91,0,92,0,92,
+0,93,0,93,0,93,0,94,95,0,32,0,0,31,0,60,0,74,0,81,0,85,0,88,0,89,0,91,0,91,0,92,0,93,0,93,0,93,0,93,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+177,0,169,0,162,0,155,0,147,0,142,0,137,1,132,2,126,2,122,3,120,5,117,5,115,6,113,7,108,8,105,9,104,10,102,11,101,12,100,12,
+10,71,10,70,11,67,13,66,14,66,15,64,16,61,17,63,18,63,19,61,21,60,21,59,23,58,23,60,23,60,25,60,25,60,26,59,28,59,28,59,
+95,37,92,39,92,39,91,40,87,42,87,42,87,42,87,44,83,46,83,46,83,46,83,46,83,46,83,48,80,49,79,49,79,49,79,49,79,49,79,49,
+0,0,0,0,0,2,0,34,0,54,0,66,0,74,0,79,0,83,0,85,0,87,0,88,0,89,0,90,0,91,0,91,0,95,0,72,0,27,0,52,
+0,64,0,68,0,74,0,79,0,83,0,85,0,87,0,88,0,89,0,90,0,91,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,87,0,18,1,0,23,0,47,0,62,0,71,0,77,0,81,0,83,0,86,0,87,
+0,88,0,89,0,90,0,91,133,0,95,0,31,0,0,13,0,40,0,57,0,67,0,74,0,78,0,82,0,84,0,86,0,87,0,89,0,89,0,90,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+178,0,169,0,163,0,157,0,148,0,143,0,139,1,135,2,129,2,124,3,121,3,119,5,117,6,114,6,112,7,108,8,105,9,104,10,102,11,101,12,
+10,71,10,70,11,67,13,66,13,66,14,64,15,62,17,62,17,63,19,63,19,60,21,60,21,58,23,59,23,60,24,60,25,60,25,60,26,59,28,59,
+95,36,92,39,92,39,91,40,87,42,87,42,87,42,87,43,85,46,83,46,83,46,83,46,83,46,83,46,82,48,80,49,79,49,79,49,79,49,79,49,
+0,0,0,0,0,0,0,1,0,25,0,43,0,56,0,64,0,71,0,75,0,79,0,81,0,83,0,85,0,86,0,87,0,98,0,85,0,52,0,11,
+0,31,0,43,0,56,0,64,0,71,0,75,0,79,0,81,0,83,0,85,0,86,0,87,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,0,120,0,67,0,16,0,0,14,0,35,0,49,0,59,0,66,0,72,0,76,0,79,
+0,81,0,83,0,85,0,86,146,0,124,0,77,0,31,0,0,2,0,26,0,42,0,54,0,62,0,69,0,73,0,77,0,79,0,82,0,83,0,85,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+178,0,170,0,164,0,158,0,150,0,144,0,140,0,136,1,132,2,126,2,123,3,120,4,118,5,116,6,114,7,111,7,107,9,105,9,104,10,102,11,
+10,71,10,70,11,68,13,66,13,66,14,64,15,63,16,61,17,63,18,63,19,62,20,60,21,60,22,58,23,59,23,60,24,60,25,60,25,60,26,59,
+95,36,92,39,92,39,92,39,88,42,87,42,87,42,87,42,86,44,83,46,83,46,83,46,83,46,83,46,83,46,82,48,79,49,79,49,79,49,79,49,
+0,0,0,0,0,0,0,0,0,0,0,20,0,36,0,47,0,56,0,63,0,68,0,72,0,76,0,78,0,80,0,82,0,98,0,88,0,64,0,31,
+0,1,0,20,0,36,0,47,0,56,0,63,0,68,0,72,0,76,0,78,0,80,0,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,135,0,97,0,54,0,16,0,2,10,0,26,0,39,0,50,0,58,0,64,0,68,
+0,72,0,75,0,78,0,80,151,0,138,0,104,0,66,0,31,0,4,0,0,16,0,31,0,43,0,52,0,59,0,65,0,69,0,73,0,75,0,78,
+40,60,22,65,17,67,15,68,14,69,13,70,12,70,12,70,11,71,11,71,11,71,11,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+110,28,58,41,39,49,30,54,25,58,23,59,20,61,19,63,17,64,17,64,16,65,15,66,15,67,15,67,14,67,14,68,13,68,13,68,12,68,12,68,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+60,50,34,56,24,60,20,63,17,64,16,65,15,66,14,67,14,68,13,68,13,68,12,68,12,69,12,69,12,69,12,69,11,69,11,69,11,70,11,70,
+0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,30,0,41,0,50,0,56,0,62,0,66,0,70,0,73,0,76,0,95,0,87,0,68,0,43,
+0,20,0,0,0,16,0,30,0,41,0,50,0,56,0,62,0,66,0,70,0,73,0,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,0,143,0,116,0,81,0,46,0,16,0,4,8,0,19,0,32,0,42,0,50,0,56,
+0,62,0,66,0,69,0,72,154,0,145,0,121,0,90,0,59,0,31,0,9,0,0,8,0,23,0,34,0,44,0,51,0,57,0,62,0,66,0,69,
+48,56,32,58,24,61,20,62,18,64,16,65,15,66,14,66,14,66,13,67,13,67,13,68,13,68,12,69,12,69,11,69,11,70,11,70,11,70,11,71,
+138,3,89,15,64,24,50,31,42,36,36,40,32,44,28,47,27,49,24,51,23,52,22,54,21,55,20,56,19,57,18,58,18,58,18,59,17,60,16,60,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+74,37,49,43,37,48,30,51,26,54,23,56,21,57,19,59,18,60,17,61,16,62,16,63,15,63,15,64,14,64,14,64,14,65,14,65,13,66,13,66,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,26,0,36,0,44,0,51,0,57,0,61,0,65,0,68,0,93,0,88,0,74,0,56,
+0,36,0,16,0,0,0,14,0,26,0,36,0,44,0,51,0,57,0,61,0,65,0,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,148,0,127,0,100,0,70,0,41,0,16,0,6,7,0,14,0,26,0,36,0,44,
+0,50,0,56,0,60,0,64,155,0,149,0,131,0,106,0,79,0,54,0,31,0,12,0,0,3,0,16,0,27,0,36,0,44,0,50,0,55,0,60,
+52,56,37,57,30,59,25,60,22,61,20,61,19,63,17,64,16,65,15,65,15,66,14,66,14,66,13,66,13,66,13,66,13,67,13,67,13,68,13,68,
+151,0,108,6,82,13,67,18,56,24,48,28,42,32,39,35,35,38,32,40,30,42,28,44,27,46,25,47,24,49,23,50,22,51,22,52,22,53,21,53,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+80,36,59,39,46,42,38,45,33,47,29,50,26,51,24,53,22,54,21,56,20,57,19,58,18,58,17,59,17,60,17,60,16,61,16,62,16,62,15,62,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,23,0,32,0,40,0,46,0,52,0,57,0,61,0,93,0,89,0,79,0,64,
+0,47,0,30,0,14,0,0,0,12,0,23,0,32,0,40,0,46,0,52,0,57,0,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,150,0,135,0,113,0,87,0,61,0,37,0,16,0,7,6,0,11,0,21,0,31,
+0,38,0,45,0,50,0,55,156,0,151,0,138,0,118,0,95,0,72,0,51,0,31,0,15,0,0,0,0,11,0,21,0,30,0,37,0,44,0,49,
+54,57,42,57,34,57,29,58,26,59,23,61,21,61,19,61,19,62,18,63,17,64,16,65,15,65,15,66,14,65,14,66,14,66,14,65,14,66,13,66,
+158,0,121,2,97,7,80,11,68,16,59,20,52,24,47,27,43,30,40,32,37,35,35,37,33,39,31,40,29,42,28,43,27,44,25,46,25,47,25,48,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+84,35,66,37,53,39,45,41,39,44,34,46,31,47,28,49,26,51,25,52,23,53,22,54,21,55,20,56,19,56,19,57,18,58,17,58,17,59,17,60,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,20,0,29,0,36,0,42,0,48,0,53,0,94,0,91,0,83,0,71,
+0,56,0,41,0,26,0,12,0,0,0,11,0,20,0,29,0,36,0,42,0,48,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,152,0,140,0,122,0,100,0,78,0,55,0,34,0,16,0,8,5,2,10,0,18,
+0,26,0,34,0,40,0,45,157,0,153,0,142,0,126,0,107,0,87,0,67,0,48,0,31,0,17,0,4,0,0,7,0,16,0,25,0,32,0,38,
+56,57,45,57,37,57,32,58,29,59,26,59,24,60,22,61,20,61,19,61,19,61,18,62,17,63,17,64,16,64,15,65,15,66,15,66,14,66,14,66,
+162,0,132,0,108,4,90,7,78,11,69,15,62,18,56,21,50,24,47,26,44,29,41,31,38,33,36,34,34,36,33,38,31,39,30,40,29,42,28,43,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+86,35,71,36,59,37,50,39,44,41,39,43,36,45,33,46,30,48,28,49,27,50,25,51,24,52,23,53,22,54,21,55,20,55,20,56,19,56,19,57,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,18,0,26,0,33,0,39,0,44,0,94,0,92,0,85,0,75,
+0,63,0,50,0,36,0,23,0,11,0,0,0,9,0,18,0,26,0,33,0,39,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,154,0,144,0,129,0,111,0,91,0,70,0,50,0,32,0,16,0,9,4,3,9,
+0,15,0,23,0,30,0,36,157,0,154,0,146,0,132,0,116,0,98,0,80,0,63,0,46,0,31,0,18,0,6,0,0,3,0,12,0,20,0,27,
+57,58,47,57,40,57,35,57,32,58,28,59,26,58,24,59,23,60,21,62,20,62,19,61,19,61,18,61,17,62,17,63,17,64,16,64,15,64,15,65,
+166,0,139,0,117,2,99,5,87,7,77,11,69,14,62,17,57,19,53,22,50,24,46,26,44,28,41,29,39,31,38,34,36,34,33,35,33,37,32,38,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+88,35,74,35,63,36,54,38,48,39,43,41,39,42,36,44,34,45,32,46,30,48,28,48,27,50,26,50,24,51,24,52,23,52,22,53,22,54,21,55,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,17,0,24,0,30,0,36,0,94,0,92,0,87,0,79,
+0,68,0,56,0,44,0,32,0,20,0,9,0,0,0,9,0,17,0,24,0,30,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,155,0,147,0,134,0,118,0,101,0,82,0,64,0,47,0,30,0,16,0,9,4,
+4,8,0,12,0,20,0,26,158,0,155,0,148,0,137,0,123,0,107,0,91,0,75,0,59,0,45,0,31,0,19,0,8,0,0,0,0,9,0,17,
+58,58,49,58,42,57,37,58,34,57,30,59,28,59,26,58,25,58,23,60,22,60,21,62,20,62,19,61,19,61,18,61,17,61,17,62,17,63,16,64,
+168,0,144,0,124,1,107,2,95,5,85,7,76,10,69,13,64,15,60,18,55,20,52,22,49,24,46,25,43,27,42,29,40,30,38,32,37,34,35,34,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+89,35,77,35,67,36,59,37,52,38,47,39,43,41,40,42,37,43,35,45,33,46,31,46,29,48,28,48,27,49,26,50,25,50,24,51,23,52,22,52,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,15,0,22,0,28,0,94,0,93,0,88,0,81,
+0,72,0,62,0,51,0,40,0,29,0,18,0,9,0,0,0,8,0,15,0,22,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,155,0,149,0,138,0,125,0,109,0,93,0,76,0,59,0,44,0,29,0,16,0,
+10,4,5,7,0,11,0,17,158,0,156,0,150,0,140,0,128,0,115,0,100,0,85,0,70,0,56,0,43,0,31,0,20,0,10,0,1,0,0,6,
+58,59,50,58,44,57,39,58,35,57,33,57,30,59,28,60,26,58,25,58,23,59,23,60,21,61,21,62,20,62,19,61,19,61,19,61,17,61,17,62,
+170,0,148,0,130,0,114,1,101,4,91,5,83,7,75,10,69,12,65,15,61,17,57,18,54,21,51,22,48,24,46,25,43,26,43,29,41,29,38,30,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+90,35,79,35,70,36,62,36,55,37,50,38,46,39,43,40,40,42,37,43,35,44,33,45,32,46,30,46,29,48,28,48,27,49,26,50,25,50,24,51,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,14,0,20,0,94,0,93,0,89,0,83,
+0,76,0,66,0,57,0,46,0,36,0,26,0,17,0,8,0,0,0,7,0,14,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,150,0,141,0,129,0,116,0,101,0,86,0,70,0,55,0,41,0,28,0,
+16,0,10,3,6,7,1,10,158,0,156,0,151,0,143,0,133,0,121,0,107,0,94,0,80,0,67,0,54,0,42,0,31,0,21,0,12,0,3,0,
+59,59,51,59,45,57,41,57,37,58,34,57,32,57,30,59,28,60,26,58,25,58,24,58,23,60,22,60,21,61,21,62,19,63,19,61,19,61,19,61,
+170,0,152,0,135,0,120,1,107,2,97,4,88,6,81,8,75,10,70,12,66,14,62,15,58,18,55,18,53,22,50,22,48,24,46,25,43,26,43,28,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+90,35,81,35,72,35,65,36,58,37,53,37,49,38,46,39,42,40,40,42,38,43,36,43,34,45,33,45,31,46,30,46,29,48,28,48,27,48,26,50,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,13,0,95,0,93,0,90,0,85,
+0,78,0,70,0,61,0,52,0,42,0,33,0,24,0,15,0,7,0,0,0,7,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,151,0,144,0,133,0,121,0,108,0,94,0,80,0,66,0,52,0,39,0,
+27,0,15,0,11,3,6,6,158,0,157,0,152,0,145,0,136,0,126,0,114,0,101,0,89,0,76,0,64,0,52,0,42,0,31,0,22,0,13,0,
+59,60,52,58,47,58,42,57,38,58,35,58,33,57,31,58,29,59,28,60,26,59,25,58,24,58,23,59,23,60,21,60,21,61,21,63,19,63,19,62,
+172,0,155,0,139,0,124,0,113,1,103,3,94,5,87,7,81,8,75,10,70,12,66,13,63,15,59,17,57,18,53,20,52,22,49,22,48,24,46,25,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+91,35,82,35,74,35,67,36,61,36,56,37,52,38,48,39,45,39,42,40,40,42,38,42,36,43,34,44,33,45,32,45,31,46,29,46,29,48,28,48,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,95,0,94,0,91,0,86,
+0,80,0,73,0,65,0,57,0,48,0,39,0,30,0,22,0,14,0,7,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,152,0,146,0,137,0,126,0,114,0,101,0,88,0,75,0,62,0,49,0,
+37,0,26,0,15,0,11,3,158,0,157,0,153,0,147,0,139,0,130,0,119,0,108,0,96,0,84,0,73,0,61,0,51,0,41,0,31,0,23,0,
+59,60,53,58,48,59,44,57,40,58,37,59,34,57,33,57,31,58,29,59,28,60,26,59,25,58,25,58,23,58,23,60,22,60,21,60,21,62,20,63,
+173,0,157,0,142,0,129,0,118,1,107,2,99,4,92,5,86,7,80,8,75,10,71,12,67,12,64,15,60,15,58,18,55,18,53,20,51,22,48,22,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+91,35,83,35,76,35,69,35,64,36,59,37,54,37,51,38,48,39,45,40,42,40,40,42,38,42,37,43,35,43,34,45,32,45,32,46,30,46,29,46,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,87,
+0,82,0,76,0,68,0,61,0,53,0,44,0,36,0,28,0,20,0,13,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,147,0,139,0,130,0,119,0,107,0,95,0,83,0,70,0,58,0,
+47,0,36,0,25,0,15,0,158,0,157,0,154,0,149,0,141,0,133,0,123,0,113,0,102,0,91,0,80,0,70,0,59,0,49,0,40,0,31,0,
+60,61,54,58,49,59,44,58,41,57,38,58,36,59,33,57,32,57,31,58,29,59,28,60,26,60,25,58,25,58,23,58,23,59,23,60,21,60,21,60,
+173,0,159,0,145,0,133,0,121,0,111,1,103,2,96,4,89,5,84,7,79,8,75,10,71,12,67,12,65,15,61,15,59,17,56,18,53,18,53,21,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+91,35,84,35,78,35,71,35,66,36,60,36,56,37,53,37,50,38,47,39,45,40,42,40,40,42,38,42,37,43,35,43,34,44,33,45,32,45,32,46,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,61,54,58,50,59,45,59,43,57,40,58,37,58,35,58,33,57,31,57,31,59,28,59,28,60,26,60,25,58,25,58,24,58,23,58,23,60,22,60,
+173,0,160,0,148,0,136,0,126,0,116,1,108,2,101,3,94,4,88,5,83,7,79,8,75,10,71,11,68,12,65,14,62,15,59,15,58,18,55,18,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+92,35,85,35,79,35,73,35,68,36,63,36,59,37,55,37,52,38,49,38,46,39,44,40,42,40,40,41,39,42,37,43,36,43,34,43,34,45,32,45,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,55,59,51,59,47,59,43,57,41,57,38,58,36,59,34,58,33,57,31,57,30,59,28,59,28,60,26,60,25,59,25,58,24,58,23,58,23,59,
+174,0,162,0,151,0,139,0,128,0,119,0,111,1,103,2,97,4,92,5,87,5,82,7,78,8,75,10,71,11,68,12,65,13,63,15,60,15,59,17,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+92,35,86,35,80,35,74,35,69,35,64,36,60,36,57,37,53,37,51,38,48,38,46,39,44,40,42,40,40,41,39,42,37,42,36,43,35,43,34,44,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,55,59,51,58,47,59,44,58,42,57,39,58,37,58,35,59,33,57,32,57,31,57,30,59,28,59,28,60,26,60,25,59,25,58,25,58,23,58,
+175,0,163,0,152,0,142,0,132,0,122,0,114,1,108,2,101,2,95,4,90,5,86,5,82,7,78,9,74,10,71,11,69,12,65,12,64,15,61,15,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+92,35,86,35,81,35,76,35,71,35,66,36,62,36,59,37,55,37,52,37,50,38,48,38,46,39,44,40,42,40,40,41,39,42,37,42,37,43,35,43,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,62,56,60,52,58,48,59,45,59,42,57,40,57,38,58,36,59,34,59,33,57,32,57,31,57,30,59,28,59,28,60,26,60,25,59,25,58,25,58,
+175,0,165,0,153,0,144,0,135,0,126,0,118,0,111,1,104,2,98,4,94,4,89,5,85,6,81,7,78,9,74,10,71,10,69,12,65,12,65,15,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+92,35,87,35,82,35,77,35,72,35,68,35,64,36,60,36,57,37,54,37,52,37,49,38,47,39,45,39,44,40,42,40,40,41,39,42,37,42,37,43,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,62,56,60,52,58,49,59,46,60,43,57,41,57,39,58,37,58,36,59,33,58,33,57,31,57,31,58,29,59,28,59,28,60,26,60,25,60,25,58,
+175,0,166,0,155,0,145,0,136,0,128,0,120,0,113,1,107,2,102,2,97,4,92,4,88,5,85,7,80,7,78,9,74,10,71,10,69,12,66,12,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+92,35,88,35,83,35,77,35,73,35,69,35,65,36,61,36,59,36,56,37,53,37,51,38,49,38,47,39,45,39,44,40,42,40,40,40,40,42,38,42,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,62,56,61,53,58,50,59,46,59,44,58,42,57,39,57,38,58,36,58,35,59,33,57,33,57,31,57,31,58,29,59,28,59,28,60,26,60,25,60,
+176,0,166,0,157,0,147,0,139,0,131,0,124,0,117,0,110,1,105,2,99,3,95,4,91,5,86,5,84,7,79,7,78,9,74,10,71,10,70,12,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+93,35,88,35,83,35,79,35,74,35,70,35,67,36,63,36,60,36,57,37,54,37,52,37,51,38,48,38,47,39,45,39,44,40,42,40,40,40,40,42,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,62,57,62,53,58,50,58,47,59,45,60,42,57,40,57,39,58,36,58,36,59,34,59,33,57,32,57,31,57,31,58,29,59,28,59,28,60,26,60,
+176,0,167,0,158,0,150,0,141,0,134,0,126,0,119,0,113,1,107,1,102,2,98,4,93,4,90,5,85,5,83,7,79,7,78,9,74,10,71,10,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+93,35,88,35,84,35,80,35,76,35,72,35,68,35,64,36,61,36,58,36,56,37,54,37,51,37,50,38,47,38,47,39,44,39,44,40,42,40,40,40,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,62,57,62,53,59,50,58,48,59,46,60,43,58,42,57,39,57,38,58,36,58,35,59,33,58,33,57,31,57,31,57,30,59,28,59,28,59,28,60,
+177,0,167,0,159,0,151,0,143,0,135,0,128,0,121,0,115,0,110,1,105,2,100,2,96,4,92,4,89,5,85,5,83,7,78,7,78,9,74,10,
+10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,
+93,35,88,35,84,35,80,35,76,35,72,35,69,35,66,36,63,36,60,36,57,37,55,37,53,37,51,37,49,38,47,38,46,39,44,39,44,40,42,40,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+127,0,148,0,158,0,163,0,167,0,169,0,171,0,172,0,173,0,174,0,174,0,175,0,175,0,176,0,176,0,177,0,177,0,177,0,178,0,178,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+33,0,110,0,138,0,151,0,158,0,162,0,166,0,168,0,170,0,170,0,172,0,173,0,173,0,173,0,174,0,175,0,175,0,175,0,176,0,176,0,
+108,0,146,0,161,0,167,0,170,0,172,0,174,0,175,0,176,0,177,0,177,0,178,0,178,0,178,0,179,0,179,0,179,0,179,0,179,0,180,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+89,4,112,1,127,0,136,0,144,0,149,0,153,0,156,0,159,0,162,0,163,0,165,0,166,0,167,0,167,0,168,0,169,0,169,0,170,0,170,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,28,58,3,89,0,108,0,121,0,132,0,139,0,144,0,148,0,152,0,155,0,157,0,159,0,160,0,162,0,163,0,165,0,166,0,166,0,167,0,
+96,14,121,1,136,0,146,0,152,0,157,0,161,0,163,0,165,0,168,0,169,0,170,0,171,0,172,0,172,0,173,0,174,0,174,0,174,0,175,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+78,15,96,7,109,3,119,1,127,0,133,0,139,0,143,0,146,0,148,0,151,0,154,0,156,0,158,0,160,0,161,0,162,0,163,0,164,0,164,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,41,39,15,64,6,82,2,97,0,108,0,117,0,124,0,130,0,135,0,139,0,142,0,145,0,148,0,151,0,152,0,153,0,155,0,157,0,158,0,
+96,20,111,7,123,3,132,1,140,0,145,0,150,0,153,0,157,0,159,0,161,0,162,0,164,0,165,0,167,0,167,0,168,0,169,0,170,0,170,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+73,23,86,13,98,7,107,4,115,2,121,1,126,1,131,0,136,0,139,0,142,0,144,0,146,0,148,0,150,0,152,0,154,0,156,0,158,0,159,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,49,30,24,50,13,67,7,80,4,90,2,99,1,107,0,114,0,120,0,124,0,129,0,133,0,136,0,139,0,142,0,144,0,145,0,147,0,150,0,
+96,24,107,12,116,6,125,3,131,2,137,1,141,0,145,0,149,0,152,0,154,0,156,0,158,0,159,0,161,0,163,0,163,0,164,0,165,0,166,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+71,29,81,18,91,12,99,8,106,5,112,3,119,2,123,2,126,1,130,0,134,0,138,0,140,0,142,0,144,0,145,0,147,0,148,0,149,0,151,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,54,25,31,42,18,56,11,68,7,78,5,87,2,95,1,101,1,107,0,113,0,118,0,121,0,126,0,128,0,132,0,135,0,136,0,139,0,141,0,
+96,27,104,15,112,9,119,5,125,3,130,2,135,1,139,0,142,0,145,0,148,0,150,0,152,0,154,0,155,0,157,0,159,0,160,0,161,0,162,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+69,33,78,22,86,16,93,11,101,8,105,6,111,4,116,3,120,2,123,2,126,1,129,1,133,0,136,0,138,0,140,0,142,0,143,0,144,0,146,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,58,23,36,36,24,48,16,59,11,69,7,77,5,85,4,91,2,97,1,103,1,107,0,111,0,116,0,119,0,122,0,126,0,128,0,131,0,134,0,
+96,29,103,18,109,12,115,8,121,5,126,3,130,2,134,2,137,1,140,0,143,0,145,0,147,0,150,0,151,0,153,0,154,0,155,0,157,0,158,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+68,36,76,26,83,19,89,14,95,11,101,8,105,6,109,5,115,4,118,3,121,2,124,2,126,1,129,1,132,0,135,0,137,0,139,0,140,0,141,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,59,20,40,32,28,42,20,52,15,62,11,69,7,76,5,83,4,88,3,94,2,99,1,103,1,108,0,111,0,114,0,118,0,120,0,124,0,126,0,
+96,29,102,20,107,14,113,10,118,7,122,5,126,3,129,2,133,2,136,1,139,1,141,0,143,0,145,0,147,0,149,0,150,0,152,0,153,0,154,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,39,74,29,79,22,87,17,91,14,97,11,102,8,105,7,109,5,113,4,117,3,119,2,122,2,124,2,126,1,128,1,131,1,134,0,136,0,137,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,61,19,44,28,32,39,24,47,18,56,14,62,10,69,7,75,6,81,5,87,4,92,2,96,2,101,1,103,1,108,0,111,0,113,0,117,0,119,0,
+96,30,101,22,106,16,111,12,115,9,119,7,123,5,126,3,129,3,132,2,135,2,137,1,139,1,142,0,143,0,145,0,147,0,148,0,150,0,151,0,
+39,0,79,0,127,0,143,0,150,0,153,0,155,0,156,0,156,0,157,0,157,0,158,0,158,0,158,0,158,0,158,0,44,20,87,0,130,0,145,0,
+150,0,153,0,155,0,156,0,157,0,157,0,157,0,158,0,158,0,158,0,158,0,158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,140,0,99,0,127,0,137,0,144,0,150,0,155,0,156,0,156,0,157,0,157,0,158,0,
+158,0,158,0,158,0,158,0,49,17,95,0,133,0,146,0,151,0,154,0,155,0,156,0,157,0,157,0,158,0,158,0,158,0,158,0,158,0,158,0,
+67,41,72,32,77,25,84,20,88,16,92,13,98,11,102,9,105,7,108,6,112,5,116,4,118,3,120,2,122,2,124,2,126,2,128,1,130,1,133,0,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,63,17,47,27,35,35,27,43,21,50,17,57,13,64,10,69,8,75,7,81,5,86,4,89,3,94,2,97,2,101,1,104,1,107,0,110,0,113,0,
+96,31,100,23,105,17,109,13,113,10,117,8,120,6,123,5,126,4,129,3,132,2,134,2,136,1,138,1,140,1,142,0,143,0,145,0,147,0,148,0,
+0,0,13,0,79,0,115,0,132,0,141,0,146,0,149,0,152,0,153,0,154,0,155,0,156,0,156,0,156,0,157,0,1,41,22,4,87,0,120,0,
+135,0,143,0,148,0,150,0,152,0,154,0,155,0,155,0,156,0,156,0,157,0,157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,99,0,77,0,96,0,119,0,131,0,140,0,146,0,149,0,152,0,153,0,154,0,155,0,
+156,0,156,0,156,0,157,0,3,35,32,0,95,0,124,0,138,0,145,0,149,0,151,0,153,0,154,0,155,0,156,0,156,0,157,0,157,0,157,0,
+67,43,71,34,76,27,81,22,86,18,89,15,94,13,99,11,102,9,105,7,107,6,111,5,115,5,117,3,119,3,121,2,122,2,124,2,126,2,127,1,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,64,17,49,24,38,32,30,40,24,47,19,53,15,60,12,65,10,70,8,75,7,80,5,84,4,88,4,92,2,95,2,98,2,102,1,105,1,107,0,
+96,32,100,24,104,19,107,15,111,12,115,9,118,7,121,6,124,5,126,4,129,3,131,2,133,2,136,2,137,1,139,1,141,1,142,0,144,0,145,0,
+0,0,0,0,4,0,56,0,91,0,111,0,124,0,132,0,138,0,142,0,145,0,147,0,149,0,151,0,152,0,153,0,0,73,0,39,18,1,67,0,
+97,0,116,0,127,0,135,0,140,0,144,0,147,0,149,0,150,0,151,0,152,0,153,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,0,96,0,36,0,72,0,96,0,112,0,124,0,132,0,138,0,142,0,145,0,147,0,
+149,0,151,0,152,0,153,0,0,70,0,31,31,0,77,0,104,0,121,0,131,0,138,0,142,0,146,0,148,0,150,0,151,0,152,0,153,0,154,0,
+67,45,70,36,75,30,79,25,85,20,88,17,91,14,95,12,100,10,102,9,104,7,106,6,110,6,114,5,116,4,118,3,120,3,121,2,123,2,124,2,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,64,16,51,23,40,30,32,37,26,44,22,50,18,55,15,61,12,66,10,70,8,75,7,79,5,83,5,87,4,90,4,94,2,97,2,99,1,102,1,
+96,32,99,25,103,20,106,16,110,13,113,11,116,9,119,7,122,6,124,5,127,4,129,3,131,2,133,2,135,2,136,2,138,1,140,1,141,0,142,0,
+0,0,0,0,0,0,2,0,42,0,72,0,93,0,108,0,118,0,126,0,131,0,136,0,139,0,142,0,144,0,146,0,0,84,0,65,0,23,16,0,
+54,0,81,0,100,0,113,0,122,0,129,0,134,0,138,0,141,0,144,0,146,0,147,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,119,0,72,0,15,0,48,0,72,0,93,0,108,0,118,0,126,0,131,0,136,0,
+139,0,142,0,144,0,146,0,0,82,0,60,0,13,31,0,66,0,90,0,106,0,118,0,126,0,132,0,137,0,140,0,143,0,145,0,147,0,149,0,
+66,46,69,38,75,31,77,26,82,22,86,19,89,16,92,14,97,12,100,10,102,9,104,7,106,7,109,6,113,5,116,5,117,3,119,3,120,2,122,2,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,65,15,52,22,42,28,35,35,29,41,24,46,20,52,17,57,14,62,12,66,10,71,8,75,7,79,5,82,5,86,4,89,4,92,3,95,2,98,2,
+96,32,99,26,102,21,106,17,109,14,112,12,115,10,117,8,120,7,122,6,125,5,127,4,129,3,131,2,133,2,134,2,136,2,137,1,139,1,140,1,
+0,0,0,0,0,0,0,0,1,0,34,0,60,0,79,0,94,0,105,0,114,0,121,0,126,0,131,0,134,0,137,0,0,89,0,77,0,47,0,14,
+16,0,46,0,70,0,87,0,100,0,111,0,118,0,125,0,129,0,133,0,137,0,139,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,0,131,0,96,0,48,0,2,0,34,0,60,0,79,0,94,0,105,0,114,0,121,0,
+126,0,131,0,134,0,137,0,0,88,0,74,0,40,0,2,31,0,59,0,79,0,95,0,107,0,116,0,123,0,128,0,133,0,136,0,139,0,141,0,
+66,47,68,39,74,34,76,28,80,24,85,20,87,18,90,15,93,13,98,12,100,10,102,9,104,8,106,7,108,6,112,5,115,5,117,4,118,3,120,3,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,66,15,54,21,44,27,37,33,31,38,26,44,22,49,18,54,15,58,13,63,12,67,10,71,8,75,7,78,5,82,5,85,4,88,4,91,4,93,2,
+96,33,99,27,102,22,105,18,108,15,110,13,113,11,116,9,118,7,121,6,123,6,125,5,127,4,129,3,130,2,132,2,134,2,135,2,137,2,138,1,
+0,0,0,0,0,0,0,0,0,0,0,0,28,0,51,0,69,0,83,0,94,0,104,0,111,0,117,0,122,0,126,0,0,91,0,83,0,62,0,35,
+2,10,16,0,41,0,61,0,78,0,91,0,101,0,109,0,116,0,121,0,126,0,130,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,140,0,112,0,72,0,34,0,1,0,28,0,51,0,69,0,83,0,94,0,104,0,
+111,0,117,0,122,0,126,0,0,90,0,81,0,57,0,26,4,0,31,0,54,0,72,0,87,0,98,0,107,0,115,0,121,0,126,0,130,0,133,0,
+66,49,68,41,73,35,76,30,78,26,83,22,86,19,88,17,90,15,95,13,99,11,100,10,102,9,104,8,106,7,107,6,111,6,114,5,116,5,117,3,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+9,67,15,55,20,46,25,39,31,33,36,28,41,24,46,21,51,18,55,15,59,12,64,12,67,10,71,8,75,7,78,6,81,5,85,5,86,4,90,4,
+96,33,99,27,101,23,104,19,107,16,110,14,112,12,115,10,117,9,119,7,121,6,123,6,125,5,127,4,129,3,130,3,132,2,134,2,135,2,136,2,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,0,44,0,60,0,74,0,85,0,95,0,102,0,109,0,114,0,0,92,0,86,0,71,0,49,
+0,26,4,8,16,0,37,0,55,0,70,0,82,0,93,0,101,0,108,0,114,0,119,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,146,0,124,0,93,0,60,0,28,0,1,0,24,0,44,0,60,0,74,0,85,0,
+95,0,102,0,109,0,114,0,0,92,0,85,0,67,0,42,0,16,9,0,31,0,51,0,67,0,80,0,91,0,100,0,107,0,114,0,119,0,123,0,
+66,49,68,42,72,36,75,31,77,27,81,24,85,21,87,18,89,16,91,14,95,12,99,11,101,10,102,9,104,8,106,7,107,6,110,6,113,5,115,5,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,67,14,56,19,47,24,40,29,34,34,29,39,25,43,22,48,18,53,17,57,15,60,12,65,11,68,10,71,9,74,7,78,7,80,5,84,5,85,4,
+96,33,99,28,101,23,104,20,106,17,108,14,111,12,113,11,115,9,118,8,120,7,121,6,124,5,125,5,127,4,129,3,130,3,132,2,133,2,134,2,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,0,38,0,54,0,67,0,78,0,87,0,95,0,102,0,0,93,0,89,0,77,0,59,
+0,39,0,19,6,7,16,0,34,0,50,0,64,0,76,0,86,0,94,0,101,0,107,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,149,0,132,0,108,0,79,0,50,0,24,0,0,0,20,0,38,0,54,0,67,0,
+78,0,87,0,95,0,102,0,0,93,0,88,0,74,0,54,0,31,0,8,12,0,31,0,48,0,63,0,75,0,85,0,94,0,101,0,108,0,113,0,
+66,50,68,43,71,37,75,33,76,29,79,25,84,22,86,20,88,17,90,16,93,14,97,12,99,11,101,10,102,9,104,8,105,7,107,7,109,6,113,5,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,67,14,57,18,49,23,42,28,36,33,31,38,27,42,24,46,22,50,18,53,15,58,15,61,12,65,11,68,10,71,9,74,7,78,7,79,5,83,5,
+96,33,98,28,101,24,103,21,106,18,108,15,110,13,113,12,115,11,116,9,118,7,121,7,122,6,124,5,125,5,127,4,129,3,130,3,131,2,133,2,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,34,0,48,0,61,0,71,0,80,0,88,0,0,93,0,90,0,81,0,66,
+0,50,0,32,0,14,7,6,16,0,32,0,47,0,59,0,70,0,80,0,88,0,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,152,0,138,0,118,0,94,0,69,0,44,0,20,0,0,0,18,0,34,0,48,0,
+61,0,71,0,80,0,88,0,0,93,0,89,0,78,0,62,0,43,0,23,0,3,15,0,31,0,46,0,59,0,70,0,80,0,89,0,96,0,102,0,
+66,51,67,44,70,39,74,34,76,30,77,27,82,24,85,21,87,19,88,17,90,15,94,14,98,12,99,11,101,10,102,9,104,8,105,7,107,7,108,6,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,68,13,58,18,50,22,43,27,38,31,34,36,29,40,25,43,22,48,20,52,18,55,15,59,14,62,12,65,11,69,10,71,9,74,7,78,7,79,5,
+96,34,98,29,101,25,102,21,105,19,107,17,109,14,111,12,113,11,115,10,118,9,119,7,121,7,122,6,124,5,126,5,127,4,128,3,130,3,131,2,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,31,0,44,0,55,0,65,0,74,0,0,94,0,91,0,83,0,72,
+0,58,0,42,0,26,0,11,8,5,16,0,30,0,44,0,55,0,66,0,75,0,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,153,0,142,0,126,0,105,0,83,0,60,0,38,0,18,0,0,0,16,0,31,0,
+44,0,55,0,65,0,74,0,0,94,0,91,0,82,0,69,0,52,0,34,0,16,0,0,17,0,31,0,45,0,56,0,67,0,76,0,84,0,91,0,
+66,51,67,45,69,40,73,35,75,31,77,28,80,25,85,22,86,20,88,18,89,17,91,14,95,13,98,12,99,11,101,10,102,9,104,9,105,7,107,7,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,68,13,58,18,51,22,44,25,39,30,34,33,30,38,26,43,24,46,22,49,18,53,17,56,15,59,13,63,12,65,10,69,10,71,9,74,7,78,7,
+96,34,98,29,100,25,102,22,104,19,106,17,108,15,110,13,113,12,115,11,116,9,118,8,120,7,121,6,123,6,124,5,126,5,127,4,128,3,130,3,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,28,0,40,0,51,0,61,0,0,94,0,92,0,86,0,76,
+0,64,0,50,0,36,0,21,2,10,9,4,16,0,29,0,41,0,52,0,62,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,154,0,145,0,131,0,114,0,94,0,74,0,54,0,34,0,16,0,0,0,15,0,
+28,0,40,0,51,0,61,0,0,94,0,91,0,84,0,73,0,59,0,44,0,27,0,11,4,0,18,0,31,0,43,0,54,0,64,0,73,0,80,0,
+66,52,67,46,68,41,73,36,75,32,76,29,78,26,83,24,85,21,86,19,88,17,90,16,92,14,96,13,99,12,100,11,101,10,102,9,104,9,105,7,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,68,12,59,17,52,22,46,25,40,29,35,33,32,37,29,41,25,43,22,48,20,51,18,53,15,58,15,60,12,64,12,65,10,69,10,71,9,74,7,
+96,34,98,29,100,26,102,23,104,20,106,17,108,16,110,14,112,12,113,11,115,10,117,9,118,7,120,7,121,6,123,6,124,5,126,5,127,4,128,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,13,0,26,0,37,0,47,0,0,94,0,92,0,87,0,79,
+0,68,0,56,0,44,0,31,0,18,3,9,9,4,16,0,28,0,39,0,49,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,155,0,147,0,136,0,121,0,104,0,85,0,67,0,48,0,31,0,15,0,0,0,
+13,0,26,0,37,0,47,0,0,94,0,92,0,86,0,77,0,65,0,51,0,36,0,21,0,7,6,0,19,0,31,0,42,0,52,0,61,0,70,0,
+66,52,67,47,68,41,73,37,75,33,76,30,77,27,81,24,85,22,86,20,88,19,89,17,90,15,93,14,97,12,99,12,100,11,101,10,102,9,104,9,
+183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,
+10,68,12,60,16,53,21,47,25,42,28,37,32,34,35,29,38,26,43,24,46,22,48,18,53,18,55,15,59,15,61,12,65,12,66,10,70,10,71,9,
+96,34,98,30,100,26,102,23,104,21,106,18,107,17,109,14,110,13,113,12,114,11,116,9,118,9,119,7,121,7,122,6,124,6,124,5,126,5,127,4,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,24,0,34,0,0,94,0,93,0,88,0,81,
+0,72,0,62,0,50,0,38,0,26,0,15,4,8,10,4,16,0,27,0,37,0,47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,149,0,139,0,126,0,111,0,95,0,78,0,61,0,44,0,28,0,13,0,
+0,0,12,0,24,0,34,0,0,94,0,93,0,87,0,79,0,69,0,57,0,44,0,30,0,16,0,3,8,0,20,0,31,0,42,0,51,0,59,0,
+79,42,86,40,89,39,90,38,92,38,92,38,92,38,93,38,93,38,93,37,93,37,93,37,93,37,93,37,94,37,94,37,94,36,94,36,94,36,94,36,
+146,14,121,20,111,24,107,27,104,29,103,29,102,30,101,31,100,32,100,32,99,32,99,33,99,33,99,33,99,33,98,34,98,34,98,34,98,34,98,34,
+22,35,60,35,74,35,80,35,84,35,86,35,88,35,89,35,90,35,90,35,91,35,91,35,91,35,92,35,92,35,92,35,92,35,92,35,93,35,93,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,22,0,0,94,0,93,0,89,0,83,
+0,75,0,66,0,56,0,45,0,34,0,23,0,12,5,7,10,3,15,0,26,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,151,0,142,0,131,0,117,0,102,0,87,0,71,0,55,0,40,0,26,0,
+12,0,0,0,11,0,22,0,0,94,0,93,0,89,0,82,0,73,0,62,0,50,0,37,0,25,0,12,0,0,10,0,21,0,31,0,41,0,49,0,
+72,49,79,46,83,44,85,42,87,41,88,41,89,40,89,39,90,39,91,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,
+161,1,136,7,123,12,116,15,112,18,109,20,107,22,106,23,105,24,104,25,103,26,102,27,102,27,101,28,101,28,101,29,101,29,100,29,100,30,100,30,
+10,50,34,37,49,36,59,35,66,35,71,35,74,35,77,35,79,35,81,35,82,35,83,35,84,35,85,35,86,35,86,35,87,35,88,35,88,35,88,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,95,0,93,0,90,0,85,
+0,78,0,69,0,60,0,50,0,40,0,30,0,20,0,11,6,7,11,3,15,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,152,0,144,0,134,0,122,0,109,0,95,0,80,0,65,0,51,0,37,0,
+24,0,11,0,0,0,10,0,0,94,0,93,0,89,0,83,0,75,0,66,0,55,0,44,0,32,0,20,0,9,1,0,12,0,22,0,31,0,40,0,
+69,52,75,49,79,47,82,45,84,44,85,43,87,42,87,42,87,42,87,41,88,41,89,40,89,39,90,39,92,39,92,39,92,39,92,39,92,39,92,39,
+167,0,146,3,132,6,125,9,119,12,115,14,113,16,111,17,109,19,107,20,106,21,106,22,105,23,104,23,104,24,103,25,102,25,102,26,102,26,102,26,
+10,56,24,43,37,39,46,37,53,36,59,35,63,35,67,35,70,35,72,35,74,35,76,35,78,35,79,35,80,35,81,35,82,35,83,35,83,35,84,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,86,
+0,80,0,72,0,64,0,55,0,45,0,36,0,26,0,17,1,10,6,6,11,3,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,146,0,137,0,126,0,114,0,102,0,88,0,74,0,61,0,47,0,
+34,0,22,0,10,0,0,0,0,95,0,93,0,90,0,85,0,78,0,69,0,60,0,49,0,38,0,27,0,17,0,6,3,0,13,0,23,0,31,0,
+68,54,73,51,77,49,79,47,81,46,83,45,83,44,85,43,86,42,87,42,87,42,87,42,87,42,87,42,87,41,88,41,89,40,90,39,91,39,92,39,
+170,0,152,1,140,3,131,5,125,8,121,10,118,12,115,13,113,15,111,16,110,17,109,18,108,19,107,20,106,21,106,21,105,22,104,23,104,23,104,24,
+10,60,20,48,30,42,38,39,45,37,50,36,54,36,59,36,62,35,65,35,67,35,69,35,71,35,73,35,74,35,76,35,77,35,77,35,79,35,80,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,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,17,95,0,133,0,146,0,
+151,0,154,0,155,0,156,0,157,0,157,0,158,0,158,0,158,0,158,0,158,0,158,0,0,0,0,0,0,0,0,0,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,17,3,35,0,70,0,82,0,88,0,90,0,92,0,93,0,93,0,94,0,94,0,94,
+0,94,0,94,0,94,0,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,56,72,53,75,50,78,49,79,48,80,46,83,46,83,46,83,44,84,43,86,42,87,42,87,42,87,42,87,42,87,42,87,42,87,42,87,42,88,41,
+172,0,157,0,145,2,137,3,130,5,126,7,122,9,119,10,117,12,115,13,113,14,112,15,110,16,110,17,108,18,108,19,107,19,106,20,106,21,106,21,
+9,63,17,51,26,45,33,41,39,39,44,38,48,37,52,36,55,36,58,36,61,35,64,35,66,35,68,35,69,35,71,35,72,35,73,35,74,35,76,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,35,32,0,95,0,124,0,
+138,0,145,0,149,0,151,0,153,0,154,0,155,0,156,0,156,0,157,0,157,0,157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,32,0,0,31,0,60,0,74,0,81,0,85,0,88,0,89,0,91,0,91,0,92,
+0,93,0,93,0,93,0,93,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+67,57,70,54,74,52,75,50,78,49,79,48,80,46,83,46,83,46,83,46,83,45,84,43,85,42,87,42,87,42,87,42,87,42,87,42,87,42,87,42,
+174,0,161,0,150,1,141,2,135,3,130,5,126,7,123,8,120,9,118,11,116,12,115,13,113,14,112,14,111,15,110,17,109,17,108,17,108,18,107,19,
+9,64,16,54,23,47,29,44,34,41,39,39,43,38,47,37,50,37,53,36,56,36,59,36,60,36,63,35,64,35,66,35,68,35,69,35,70,35,72,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,0,31,31,0,77,0,
+104,0,121,0,131,0,138,0,142,0,146,0,148,0,150,0,151,0,152,0,153,0,154,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,133,0,95,0,31,0,0,13,0,40,0,57,0,67,0,74,0,78,0,82,0,84,0,86,
+0,87,0,89,0,89,0,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,57,69,55,72,53,74,51,76,49,79,49,79,48,80,46,82,46,83,46,83,46,83,46,83,45,84,44,85,42,87,42,87,42,87,42,87,42,87,42,
+175,0,163,0,153,0,145,1,139,2,134,3,129,5,126,6,123,7,121,9,119,10,117,11,116,12,115,12,113,13,113,14,111,15,110,16,110,17,109,17,
+9,65,15,56,21,50,26,46,31,43,36,41,39,39,43,38,46,37,49,37,52,37,54,36,56,36,59,36,60,36,62,35,64,35,65,35,67,35,68,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,60,0,13,31,0,
+66,0,90,0,106,0,118,0,126,0,132,0,137,0,140,0,143,0,145,0,147,0,149,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,146,0,124,0,77,0,31,0,0,2,0,26,0,42,0,54,0,62,0,69,0,73,0,77,
+0,79,0,82,0,83,0,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,58,69,56,71,53,74,53,74,51,77,49,79,49,79,49,79,47,82,46,83,46,83,46,83,46,83,46,83,45,83,44,85,43,87,42,87,42,87,42,
+176,0,165,0,157,0,149,0,142,2,137,2,133,3,129,5,126,6,124,7,122,8,120,9,118,10,117,11,115,12,115,12,113,13,113,14,112,14,110,15,
+9,66,14,57,19,51,24,47,28,45,33,42,36,41,40,39,43,38,46,38,48,37,51,37,53,37,55,36,57,36,59,36,60,36,61,36,63,35,64,35,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,0,74,0,40,0,2,
+31,0,59,0,79,0,95,0,107,0,116,0,123,0,128,0,133,0,136,0,139,0,141,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,151,0,138,0,104,0,66,0,31,0,4,0,0,16,0,31,0,43,0,52,0,59,0,65,
+0,69,0,73,0,75,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,59,68,57,70,54,73,53,74,52,75,50,78,49,79,49,79,49,79,47,81,46,83,46,83,46,83,46,83,46,83,46,83,46,83,44,84,43,86,42,
+177,0,168,0,159,0,152,0,145,1,140,2,136,3,132,4,129,5,126,6,124,7,122,7,121,9,119,9,118,11,116,11,115,12,115,12,113,13,113,14,
+9,67,14,59,18,53,22,49,26,46,30,44,34,42,37,40,40,39,42,39,45,38,48,37,50,37,52,37,53,37,55,36,57,36,59,36,60,36,61,36,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,90,0,81,0,57,0,26,
+4,0,31,0,54,0,72,0,87,0,98,0,107,0,115,0,121,0,126,0,130,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,154,0,145,0,121,0,90,0,59,0,31,0,9,0,0,8,0,23,0,34,0,44,0,51,
+0,57,0,62,0,66,0,69,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,59,68,57,70,55,72,53,74,53,74,52,76,49,79,49,79,49,79,49,79,48,80,46,83,46,83,46,83,46,83,46,83,46,83,46,83,46,83,45,
+177,0,169,0,161,0,154,0,148,0,143,1,139,2,135,3,132,4,129,5,127,6,125,6,123,7,121,8,120,9,118,10,118,11,116,11,115,12,114,12,
+9,68,13,60,17,54,21,51,25,48,28,45,32,43,35,42,37,40,40,39,42,39,45,38,47,38,49,37,51,37,52,37,54,36,56,36,57,36,58,36,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,92,0,85,0,67,0,42,
+0,16,9,0,31,0,51,0,67,0,80,0,91,0,100,0,107,0,114,0,119,0,123,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,149,0,131,0,106,0,79,0,54,0,31,0,12,0,0,3,0,16,0,27,0,36,
+0,44,0,50,0,55,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,60,67,57,70,56,70,53,74,53,74,53,74,51,77,49,79,49,79,49,79,49,79,48,80,46,82,46,83,46,83,46,83,46,83,46,83,46,83,46,
+178,0,170,0,162,0,156,0,150,0,145,1,141,2,137,2,134,3,131,4,129,5,127,6,125,6,123,7,121,7,121,9,119,9,118,10,117,11,116,11,
+10,68,13,61,16,56,20,52,23,49,27,46,30,45,33,43,35,42,38,40,40,40,42,39,45,38,46,38,48,37,50,37,52,37,53,37,54,36,56,36,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,88,0,74,0,54,
+0,31,0,8,12,0,31,0,48,0,63,0,75,0,85,0,94,0,101,0,108,0,113,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,151,0,138,0,118,0,95,0,72,0,51,0,31,0,15,0,0,0,0,11,0,21,
+0,30,0,37,0,44,0,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,60,67,57,70,57,70,55,73,53,74,53,74,53,75,50,78,49,79,49,79,49,79,49,79,49,79,47,82,46,83,46,83,46,83,46,83,46,83,46,
+178,0,171,0,164,0,158,0,152,0,147,0,143,1,139,2,136,2,133,3,131,4,129,5,127,6,125,6,124,7,122,7,121,8,120,9,118,9,118,10,
+10,68,12,62,16,57,19,53,22,50,25,48,28,46,31,44,33,43,36,42,38,40,40,40,42,39,44,38,46,38,48,37,49,37,51,37,52,37,54,37,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,89,0,78,0,62,
+0,43,0,23,0,3,15,0,31,0,46,0,59,0,70,0,80,0,89,0,96,0,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,153,0,142,0,126,0,107,0,87,0,67,0,48,0,31,0,17,0,4,0,0,7,
+0,16,0,25,0,32,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,66,57,70,57,70,56,71,53,74,53,74,53,74,52,75,50,78,49,79,49,79,49,79,49,79,49,79,47,81,46,83,46,83,46,83,46,83,46,
+178,0,172,0,165,0,159,0,154,0,150,0,145,1,142,1,138,2,136,2,133,3,131,4,129,5,127,5,125,6,124,7,122,7,121,7,120,9,119,9,
+10,68,12,63,15,58,18,54,21,51,24,48,27,46,29,45,32,43,34,42,36,42,38,40,40,40,42,39,44,38,46,38,47,38,49,37,51,37,51,37,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,82,0,69,
+0,52,0,34,0,16,0,0,17,0,31,0,45,0,56,0,67,0,76,0,84,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,154,0,146,0,132,0,116,0,98,0,80,0,63,0,46,0,31,0,18,0,6,0,
+0,3,0,12,0,20,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,66,58,69,57,70,57,70,54,73,53,74,53,74,53,74,51,77,49,79,49,79,49,79,49,79,49,79,49,79,48,80,46,83,46,83,46,83,46,
+179,0,172,0,167,0,161,0,155,0,151,0,147,0,143,1,140,2,137,2,135,2,133,3,130,4,129,5,127,5,125,6,124,6,123,7,121,7,121,8,
+10,69,12,63,15,58,17,55,20,52,23,50,26,48,28,46,30,45,33,43,34,42,37,42,38,40,40,40,42,39,44,39,45,38,47,38,48,37,50,37,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,84,0,73,
+0,59,0,44,0,27,0,11,4,0,18,0,31,0,43,0,54,0,64,0,73,0,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,155,0,148,0,137,0,123,0,107,0,91,0,75,0,59,0,45,0,31,0,19,0,
+8,0,0,0,0,9,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,66,58,68,57,70,57,70,55,72,53,74,53,74,53,74,53,74,51,77,49,79,49,79,49,79,49,79,49,79,49,79,48,80,46,83,46,83,46,
+179,0,173,0,167,0,163,0,157,0,153,0,149,0,145,1,142,1,139,2,136,2,134,2,132,3,130,4,129,5,127,5,126,6,124,6,123,7,122,7,
+10,69,12,64,14,59,17,56,19,53,22,50,24,48,27,46,29,45,31,44,33,43,35,42,37,41,39,40,40,40,42,39,44,39,45,38,47,38,47,37,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,86,0,77,
+0,65,0,51,0,36,0,21,0,7,6,0,19,0,31,0,42,0,52,0,61,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,150,0,140,0,128,0,115,0,100,0,85,0,70,0,56,0,43,0,31,0,
+20,0,10,0,1,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,66,59,68,57,70,57,70,56,71,53,74,53,74,53,74,53,74,52,75,50,78,49,79,49,79,49,79,49,79,49,79,49,79,48,80,47,82,46,
+179,0,174,0,168,0,163,0,159,0,154,0,150,0,147,0,143,1,141,2,138,2,136,2,134,3,132,3,130,4,129,5,127,5,126,6,124,6,124,7,
+10,69,12,64,14,60,17,56,19,54,21,51,24,49,26,48,28,46,30,45,32,43,34,43,35,42,37,41,39,40,40,40,42,39,44,39,45,38,47,38,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,87,0,79,
+0,69,0,57,0,44,0,30,0,16,0,3,8,0,20,0,31,0,42,0,51,0,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,151,0,143,0,133,0,121,0,107,0,94,0,80,0,67,0,54,0,42,0,
+31,0,21,0,12,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,
+66,61,66,60,67,57,70,57,70,57,70,54,73,53,74,53,74,53,74,53,74,51,76,49,79,49,79,49,79,49,79,49,79,49,79,49,79,49,79,47,
+179,0,174,0,169,0,164,0,160,0,155,0,152,0,148,0,145,1,142,1,140,2,137,2,135,2,134,3,132,3,130,4,128,5,127,5,126,6,124,6,
+10,69,11,64,14,60,16,57,18,55,20,52,23,50,25,48,27,46,29,45,31,45,32,43,34,43,36,42,37,41,39,40,40,40,42,39,44,39,44,38,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,82,
+0,73,0,62,0,50,0,37,0,25,0,12,0,0,10,0,21,0,31,0,41,0,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,152,0,145,0,136,0,126,0,114,0,101,0,89,0,76,0,64,0,52,0,
+42,0,31,0,22,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,66,60,67,57,70,57,70,57,70,55,72,53,74,53,74,53,74,53,74,53,74,51,77,49,79,49,79,49,79,49,79,49,79,49,79,49,79,49,
+179,0,174,0,170,0,165,0,161,0,157,0,153,0,150,0,147,0,144,1,141,1,139,2,137,2,135,2,133,3,131,3,130,4,128,5,127,5,126,6,
+10,69,11,65,14,61,16,58,17,55,20,52,22,50,24,49,26,48,28,46,29,45,32,44,33,43,34,42,36,42,37,41,39,40,40,40,42,39,44,39,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,83,
+0,75,0,66,0,55,0,44,0,32,0,20,0,9,1,0,12,0,22,0,31,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,147,0,139,0,130,0,119,0,108,0,96,0,84,0,73,0,61,0,
+51,0,41,0,31,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,66,61,66,57,70,57,70,57,70,57,70,54,74,53,74,53,74,53,74,53,74,52,75,50,78,49,79,49,79,49,79,49,79,49,79,49,79,49,
+180,0,175,0,170,0,166,0,162,0,158,0,154,0,151,0,148,0,145,0,142,1,140,2,138,2,136,2,134,2,133,3,131,3,130,4,128,5,127,5,
+10,69,11,65,13,62,16,58,17,56,19,53,22,51,23,50,25,48,27,46,29,46,30,45,32,43,34,43,35,42,37,42,37,40,40,40,40,40,42,39,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,93,0,90,0,85,
+0,78,0,69,0,60,0,49,0,38,0,27,0,17,0,6,3,0,13,0,23,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,154,0,149,0,141,0,133,0,123,0,113,0,102,0,91,0,80,0,70,0,
+59,0,49,0,40,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,66,61,66,58,69,57,70,57,70,57,70,55,73,53,74,53,74,53,74,53,74,53,74,52,76,49,79,49,79,49,79,49,79,49,79,49,79,49,
+180,0,175,0,171,0,167,0,163,0,159,0,155,0,152,0,149,0,146,0,144,1,141,1,139,2,137,2,136,2,134,2,133,3,130,3,130,4,128,5,
+10,70,11,66,13,62,15,59,17,56,19,54,21,52,22,50,24,48,26,48,28,46,29,45,32,45,32,43,34,43,35,42,37,42,38,40,40,40,40,40,
+96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+64,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+50,116,56,87,58,79,60,75,60,73,61,71,61,70,61,69,61,69,61,68,61,67,61,67,61,67,61,67,61,67,61,66,61,66,61,66,61,66,61,66,
+65,9,27,49,39,56,45,58,49,59,51,60,53,60,54,61,55,61,56,61,56,61,57,61,58,61,58,61,58,61,58,61,59,61,59,61,59,61,60,61,
+115,0,56,49,58,56,60,58,60,59,61,60,61,60,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,79,0,13,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+61,40,56,48,56,52,57,54,57,56,58,57,58,57,59,58,59,59,60,59,60,59,61,60,61,60,62,60,62,60,62,60,62,60,62,61,62,61,62,61,
+0,126,5,88,15,78,23,73,29,71,33,69,36,68,39,67,41,67,43,67,45,67,46,66,47,66,49,66,49,66,50,66,51,66,51,66,52,66,52,66,
+43,78,49,71,52,69,54,68,56,67,57,66,57,66,58,65,59,65,59,65,60,65,60,65,61,65,61,65,61,65,61,65,61,65,61,65,61,65,61,65,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,0,79,0,4,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,47,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+65,22,58,32,57,37,57,41,57,45,57,47,58,49,58,50,59,51,58,52,58,53,58,54,58,54,59,55,59,55,60,56,60,56,61,56,62,57,62,57,
+0,147,1,112,6,96,13,86,18,82,22,78,26,76,29,74,32,72,34,71,36,70,38,69,39,68,41,68,42,68,43,68,44,67,45,67,46,67,47,67,
+40,86,46,79,49,75,51,73,53,72,54,70,55,69,56,69,57,68,57,68,57,67,57,67,57,66,58,66,58,66,59,66,60,66,60,66,61,66,61,66,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,115,0,56,0,2,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,86,0,69,0,34,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+66,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+67,17,61,24,59,30,58,34,57,37,57,40,57,42,57,44,57,45,58,47,59,48,59,49,59,50,59,51,58,51,58,52,58,52,58,53,58,53,59,53,
+0,157,0,127,3,109,7,98,12,91,16,86,19,82,22,80,25,77,28,76,30,75,31,75,34,74,35,73,36,72,37,71,39,70,40,69,41,68,41,68,
+39,89,44,83,47,79,49,77,50,75,52,74,53,72,53,71,54,70,55,70,56,70,57,70,57,70,57,69,57,68,57,68,57,67,57,67,57,66,58,66,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,132,0,91,0,42,
+0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89,0,79,0,54,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+68,15,62,20,60,25,58,29,58,32,57,35,58,37,58,39,57,41,57,42,57,44,58,44,59,45,59,47,59,47,59,48,59,49,59,50,58,50,58,51,
+0,163,0,136,1,119,4,107,8,99,11,93,14,89,17,87,20,84,22,81,25,79,26,77,28,76,30,76,31,75,33,75,34,74,35,73,36,73,37,73,
+39,90,42,85,45,82,47,79,49,78,50,75,51,74,53,74,53,73,53,72,53,70,55,70,56,70,57,70,57,70,57,70,57,70,57,70,57,70,57,69,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,0,141,0,111,0,72,
+0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,91,0,85,0,66,0,43,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+69,14,64,18,61,22,59,26,59,29,58,32,57,34,57,35,58,37,58,38,58,40,57,41,57,42,57,43,58,44,59,45,60,46,59,46,59,47,59,48,
+0,167,0,144,0,126,2,115,5,106,8,101,11,95,13,91,16,88,18,86,20,85,22,82,24,80,26,78,27,77,29,76,30,76,31,75,32,75,33,75,
+38,91,42,87,44,84,46,81,48,79,49,78,49,76,51,74,52,74,53,74,53,74,53,73,53,71,54,70,55,70,56,70,57,70,57,70,57,70,57,70,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,146,0,124,0,93,
+0,60,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,88,0,74,0,56,0,36,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+70,13,65,17,61,20,61,23,59,26,59,28,59,30,57,33,57,34,58,35,58,37,58,38,58,40,57,41,57,42,57,42,57,43,59,44,60,45,60,46,
+0,169,0,149,0,133,1,121,3,112,6,105,8,101,11,97,13,92,15,89,17,88,19,86,20,85,22,83,24,81,25,79,27,77,28,77,29,76,30,76,
+38,92,41,88,43,85,45,83,46,80,48,79,49,79,49,77,50,75,52,74,53,74,53,74,53,74,53,73,53,72,53,71,54,70,56,70,57,70,57,70,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,149,0,132,0,108,
+0,79,0,50,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,89,0,79,0,64,0,47,0,30,0,14,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+70,12,66,15,63,19,61,21,60,24,58,26,59,28,59,30,57,32,57,33,57,34,59,36,58,37,58,38,58,39,57,40,57,41,57,42,57,42,58,43,
+0,171,0,153,0,139,1,126,2,119,4,111,6,105,8,102,11,98,13,94,14,91,16,89,18,87,19,86,21,85,22,84,24,82,25,80,26,78,27,77,
+38,92,40,89,42,87,44,83,46,83,46,80,48,79,49,79,49,78,49,76,51,74,53,74,53,74,53,74,53,74,53,74,53,73,53,72,54,70,55,70,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,152,0,138,0,118,
+0,94,0,69,0,44,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,83,0,71,0,56,0,41,0,26,0,12,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+70,12,66,14,64,17,61,19,61,22,59,24,59,26,60,28,59,30,58,31,57,33,57,33,58,35,59,36,58,37,58,38,58,39,57,39,57,40,57,42,
+0,172,0,156,0,143,0,131,2,123,3,116,5,109,7,105,9,102,11,99,12,95,14,92,15,90,17,88,18,87,20,86,21,85,22,85,24,83,24,81,
+38,93,39,89,42,87,43,85,46,83,46,83,47,80,49,79,49,79,49,79,49,77,50,75,52,74,53,74,53,74,53,74,53,74,53,74,53,74,53,73,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,153,0,142,0,126,
+0,105,0,83,0,60,0,38,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,85,0,75,0,63,0,50,0,36,0,23,0,11,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,11,66,13,65,16,62,19,61,21,60,23,58,25,59,26,60,28,59,29,58,31,57,32,57,33,58,34,59,35,59,36,58,37,58,38,58,39,57,39,
+0,173,0,159,0,146,0,136,1,126,2,120,4,114,5,109,7,105,9,102,10,100,12,97,13,93,15,90,16,89,17,88,19,87,20,86,21,85,22,85,
+38,93,39,90,42,87,42,86,44,83,46,83,46,82,47,79,49,79,49,79,49,79,49,78,50,75,51,74,53,74,53,74,53,74,53,74,53,74,53,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,154,0,145,0,131,
+0,114,0,94,0,74,0,54,0,34,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,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,87,0,79,0,68,0,56,0,44,0,32,0,20,0,9,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,11,67,13,65,15,63,18,61,19,62,21,60,23,58,25,58,26,60,28,59,29,58,31,57,31,57,33,57,33,59,34,59,36,58,36,58,36,58,38,
+0,174,0,162,0,148,0,139,0,130,2,123,3,118,5,113,6,108,7,105,9,102,10,100,12,98,13,95,14,91,16,90,16,88,18,88,19,86,20,86,
+37,93,39,91,41,87,42,87,43,84,46,83,46,83,46,82,47,79,49,79,49,79,49,79,49,78,49,77,51,74,52,74,53,74,53,74,53,74,53,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,155,0,147,0,136,
+0,121,0,104,0,85,0,67,0,48,0,31,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,88,0,81,0,72,0,62,0,51,0,40,0,29,0,18,0,9,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,11,67,13,66,15,64,17,61,19,62,20,60,22,59,23,58,25,59,26,60,28,59,29,59,31,57,31,57,32,57,33,58,33,59,34,59,36,58,36,
+0,174,0,163,0,151,0,142,0,134,1,126,2,121,3,117,5,112,6,107,7,104,9,102,10,100,11,99,12,95,14,93,15,90,16,89,17,88,19,88,
+37,93,39,92,41,88,42,87,42,86,45,83,46,83,46,83,46,81,48,79,49,79,49,79,49,79,49,79,49,77,50,75,51,74,53,74,53,74,53,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,149,0,139,
+0,126,0,111,0,95,0,78,0,61,0,44,0,28,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,83,0,76,0,66,0,57,0,46,0,36,0,26,0,17,0,8,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,11,68,13,66,14,65,16,62,18,61,19,62,21,60,23,58,24,59,25,59,26,60,28,59,28,59,30,57,31,57,32,57,33,57,33,59,34,59,35,
+0,175,0,165,0,153,0,144,0,138,1,129,2,124,2,119,4,116,5,111,6,106,7,104,9,102,10,100,11,99,12,97,14,94,14,91,16,90,16,89,
+37,93,39,92,40,89,42,87,42,87,43,84,46,83,46,83,46,83,46,80,48,79,49,79,49,79,49,79,49,79,49,78,49,76,51,74,52,74,53,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,151,0,142,
+0,131,0,117,0,102,0,87,0,71,0,55,0,40,0,26,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,93,0,90,0,85,0,78,0,70,0,61,0,52,0,42,0,33,0,24,0,15,0,
+7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,10,68,13,66,14,65,15,63,17,61,19,62,20,61,21,60,23,58,24,58,25,60,26,60,28,59,28,59,30,57,31,57,31,57,33,57,33,58,33,
+0,175,0,166,0,156,0,146,0,140,0,133,1,126,2,122,3,118,5,115,6,110,7,106,8,104,9,102,10,101,11,99,12,98,13,95,14,92,15,90,
+37,93,39,92,39,89,42,87,42,87,42,85,45,83,46,83,46,83,46,83,46,80,49,79,49,79,49,79,49,79,49,79,49,79,49,77,50,75,52,74,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,152,0,144,
+0,134,0,122,0,109,0,95,0,80,0,65,0,51,0,37,0,24,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,86,0,80,0,73,0,65,0,57,0,48,0,39,0,30,0,22,0,
+14,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,10,69,12,66,13,66,15,64,17,61,18,61,19,62,21,60,22,59,23,58,25,58,25,60,26,60,28,59,28,59,30,58,31,57,31,57,32,57,33,
+0,176,0,167,0,158,0,148,0,142,0,136,1,129,2,124,2,120,3,117,5,114,6,109,7,106,8,104,9,102,10,101,11,99,12,98,13,96,14,93,
+37,93,39,92,39,90,42,87,42,87,42,87,44,84,46,83,46,83,46,83,46,82,47,79,49,79,49,79,49,79,49,79,49,79,49,79,49,78,49,76,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,146,
+0,137,0,126,0,114,0,102,0,88,0,74,0,61,0,47,0,34,0,22,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,87,0,82,0,76,0,68,0,61,0,53,0,44,0,36,0,28,0,
+20,0,13,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,10,69,12,66,13,66,14,64,16,62,17,61,19,62,20,61,21,60,23,58,23,58,25,59,25,60,26,60,28,59,28,59,29,58,31,57,31,57,31,
+0,176,0,167,0,160,0,150,0,144,0,138,0,132,1,126,2,122,3,119,4,116,5,113,6,108,7,106,8,104,9,102,10,101,11,99,12,99,12,97,
+37,94,39,92,39,92,41,87,42,87,42,87,42,85,45,83,46,83,46,83,46,83,46,82,47,79,49,79,49,79,49,79,49,79,49,79,49,79,49,79,
+0,39,0,79,0,127,0,143,0,150,0,153,0,155,0,156,0,156,0,157,0,157,0,158,0,158,0,158,0,158,0,158,0,140,0,99,0,127,0,137,
+0,144,0,150,0,155,0,156,0,156,0,157,0,157,0,158,0,158,0,158,0,158,0,158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,44,0,87,0,130,0,145,0,150,0,153,0,155,0,156,0,157,0,157,0,157,0,158,
+0,158,0,158,0,158,0,158,17,49,0,95,0,133,0,146,0,151,0,154,0,155,0,156,0,157,0,157,0,158,0,158,0,158,0,158,0,158,0,158,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,10,69,11,66,13,66,14,65,15,63,17,61,18,61,19,62,21,60,21,60,23,58,23,58,25,59,25,60,26,60,28,59,28,59,29,58,31,57,31,
+0,177,0,168,0,161,0,152,0,145,0,140,0,135,1,128,2,124,2,121,3,118,5,116,5,112,6,107,7,106,8,104,9,102,10,101,11,100,12,99,
+37,94,39,92,39,92,41,88,42,87,42,87,42,87,44,83,46,83,46,83,46,83,46,83,46,81,48,79,49,79,49,79,49,79,49,79,49,79,49,79,
+0,0,0,13,0,79,0,115,0,132,0,141,0,146,0,149,0,152,0,153,0,154,0,155,0,156,0,156,0,156,0,157,0,99,0,77,0,96,0,119,
+0,131,0,140,0,146,0,149,0,152,0,153,0,154,0,155,0,156,0,156,0,156,0,157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,1,4,22,0,87,0,120,0,135,0,143,0,148,0,150,0,152,0,154,0,155,0,155,
+0,156,0,156,0,157,0,157,35,3,0,32,0,95,0,124,0,138,0,145,0,149,0,151,0,153,0,154,0,155,0,156,0,156,0,157,0,157,0,157,
+65,61,66,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,10,70,11,67,13,65,14,66,15,64,17,61,17,61,19,63,19,61,21,60,22,59,23,58,24,58,25,59,25,60,26,60,28,59,28,59,29,59,30,
+0,177,0,169,0,162,0,154,0,147,0,141,0,137,1,131,2,126,2,122,3,120,3,117,5,115,6,111,6,107,7,105,8,104,9,102,10,102,11,100,
+36,94,39,92,39,92,40,89,42,87,42,87,42,87,43,85,46,83,46,83,46,83,46,83,46,83,46,80,48,79,49,79,49,79,49,79,49,79,49,79,
+0,0,0,0,0,4,0,56,0,91,0,111,0,124,0,132,0,138,0,142,0,145,0,147,0,149,0,151,0,152,0,153,0,127,0,96,0,36,0,72,
+0,96,0,112,0,124,0,132,0,138,0,142,0,145,0,147,0,149,0,151,0,152,0,153,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,73,0,39,0,1,18,0,67,0,97,0,116,0,127,0,135,0,140,0,144,0,147,0,149,
+0,150,0,151,0,152,0,153,70,0,31,0,0,31,0,77,0,104,0,121,0,131,0,138,0,142,0,146,0,148,0,150,0,151,0,152,0,153,0,154,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,10,70,11,67,13,65,14,66,15,64,16,62,17,61,19,61,19,63,21,60,21,60,23,58,23,58,24,59,25,59,25,60,26,60,28,59,28,59,28,
+0,177,0,169,0,163,0,156,0,148,0,143,0,139,0,134,1,128,2,124,2,121,3,119,4,117,5,114,6,110,7,107,7,105,9,104,9,102,10,102,
+36,94,39,92,39,92,39,90,42,87,42,87,42,87,42,87,44,83,46,83,46,83,46,83,46,83,46,83,46,80,48,79,49,79,49,79,49,79,49,79,
+0,0,0,0,0,0,0,2,0,42,0,72,0,93,0,108,0,118,0,126,0,131,0,136,0,139,0,142,0,144,0,146,0,137,0,119,0,72,0,15,
+0,48,0,72,0,93,0,108,0,118,0,126,0,131,0,136,0,139,0,142,0,144,0,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,65,0,23,0,0,16,0,54,0,81,0,100,0,113,0,122,0,129,0,134,0,138,
+0,141,0,144,0,146,0,147,82,0,60,0,13,0,0,31,0,66,0,90,0,106,0,118,0,126,0,132,0,137,0,140,0,143,0,145,0,147,0,149,
+65,61,65,61,66,61,65,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,66,61,66,61,66,61,65,61,66,61,66,61,66,61,66,61,
+71,10,70,11,68,13,66,13,66,14,64,15,64,17,61,17,61,19,63,19,62,21,60,21,60,23,58,23,58,24,59,25,60,25,60,26,60,28,59,28,
+0,178,0,170,0,164,0,158,0,149,0,144,0,140,0,136,1,130,2,126,2,123,2,120,3,118,5,116,5,113,6,109,7,107,7,105,9,104,9,102,
+36,94,39,92,39,92,39,91,42,87,42,87,42,87,42,87,43,84,46,83,46,83,46,83,46,83,46,83,46,82,47,80,49,79,49,79,49,79,49,79,
+0,0,0,0,0,0,0,0,0,1,0,34,0,60,0,79,0,94,0,105,0,114,0,121,0,126,0,131,0,134,0,137,0,144,0,131,0,96,0,48,
+0,2,0,34,0,60,0,79,0,94,0,105,0,114,0,121,0,126,0,131,0,134,0,137,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89,0,77,0,47,0,14,0,0,16,0,46,0,70,0,87,0,100,0,111,0,118,0,125,
+0,129,0,133,0,137,0,139,88,0,74,0,40,0,2,0,0,31,0,59,0,79,0,95,0,107,0,116,0,123,0,128,0,133,0,136,0,139,0,141,
+27,133,5,150,1,158,0,164,0,167,0,169,0,171,0,172,0,173,0,174,0,175,0,175,0,176,0,176,0,177,0,177,0,177,0,178,0,178,0,178,
+28,110,3,138,0,151,0,158,0,162,0,166,0,168,0,170,0,170,0,172,0,173,0,173,0,173,0,174,0,175,0,175,0,175,0,176,0,176,0,177,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+14,146,1,161,0,167,0,170,0,172,0,174,0,175,0,176,0,177,0,177,0,178,0,178,0,178,0,179,0,179,0,179,0,179,0,179,0,180,0,180,
+0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,51,0,69,0,83,0,94,0,104,0,111,0,117,0,122,0,126,0,150,0,140,0,112,0,72,
+0,34,0,1,0,28,0,51,0,69,0,83,0,94,0,104,0,111,0,117,0,122,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,91,0,83,0,62,0,35,0,10,2,0,16,0,41,0,61,0,78,0,91,0,101,0,109,
+0,116,0,121,0,126,0,130,90,0,81,0,57,0,26,0,0,4,0,31,0,54,0,72,0,87,0,98,0,107,0,115,0,121,0,126,0,130,0,133,
+39,96,15,115,7,129,3,138,1,145,0,149,0,153,0,157,0,160,0,162,0,163,0,165,0,166,0,167,0,167,0,168,0,169,0,169,0,170,0,170,
+41,58,15,89,6,108,2,121,0,132,0,139,0,144,0,148,0,152,0,155,0,157,0,159,0,160,0,162,0,163,0,165,0,166,0,166,0,167,0,167,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+20,121,7,136,3,146,1,152,0,157,0,161,0,163,0,165,0,168,0,169,0,170,0,171,0,172,0,172,0,173,0,174,0,174,0,174,0,175,0,175,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,0,44,0,60,0,74,0,85,0,95,0,102,0,109,0,114,0,155,0,146,0,124,0,93,
+0,60,0,28,0,1,0,24,0,44,0,60,0,74,0,85,0,95,0,102,0,109,0,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,92,0,86,0,71,0,49,0,26,0,8,4,0,16,0,37,0,55,0,70,0,82,0,93,
+0,101,0,108,0,114,0,119,92,0,85,0,67,0,42,0,16,0,0,9,0,31,0,51,0,67,0,80,0,91,0,100,0,107,0,114,0,119,0,123,
+45,84,23,99,13,111,7,120,4,128,2,134,1,139,1,143,0,146,0,149,0,152,0,154,0,157,0,159,0,160,0,161,0,162,0,163,0,164,0,164,
+49,39,24,64,13,82,7,97,4,108,2,117,1,124,0,130,0,135,0,139,0,142,0,145,0,148,0,151,0,152,0,153,0,155,0,157,0,158,0,159,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+24,111,12,123,6,132,3,140,2,145,1,150,0,153,0,157,0,159,0,161,0,162,0,164,0,165,0,167,0,167,0,168,0,169,0,170,0,170,0,171,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,0,38,0,54,0,67,0,78,0,87,0,95,0,102,0,156,0,149,0,132,0,108,
+0,79,0,50,0,24,0,0,0,20,0,38,0,54,0,67,0,78,0,87,0,95,0,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,89,0,77,0,59,0,39,0,19,0,7,6,0,16,0,34,0,50,0,64,0,76,
+0,86,0,94,0,101,0,107,93,0,88,0,74,0,54,0,31,0,8,0,0,12,0,31,0,48,0,63,0,75,0,85,0,94,0,101,0,108,0,113,
+48,78,29,90,18,100,12,109,8,117,5,122,3,127,2,133,2,137,1,139,0,142,0,144,0,146,0,148,0,151,0,153,0,155,0,156,0,158,0,159,
+54,30,31,50,18,67,11,80,7,90,5,99,2,107,1,114,1,120,0,124,0,129,0,133,0,136,0,139,0,142,0,144,0,145,0,147,0,150,0,151,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+27,107,15,116,9,125,5,131,3,137,2,141,1,145,0,149,0,152,0,154,0,156,0,158,0,159,0,161,0,163,0,163,0,164,0,165,0,166,0,167,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,34,0,48,0,61,0,71,0,80,0,88,0,156,0,152,0,138,0,118,
+0,94,0,69,0,44,0,20,0,0,0,18,0,34,0,48,0,61,0,71,0,80,0,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,90,0,81,0,66,0,50,0,32,0,14,0,6,7,0,16,0,32,0,47,0,59,
+0,70,0,80,0,88,0,95,93,0,89,0,78,0,62,0,43,0,23,0,3,0,0,15,0,31,0,46,0,59,0,70,0,80,0,89,0,96,0,102,
+51,75,33,84,22,93,16,101,11,108,8,114,6,119,4,123,3,127,2,131,2,135,1,138,1,140,0,142,0,144,0,145,0,147,0,148,0,149,0,152,
+58,25,36,42,24,56,16,68,11,78,7,87,5,95,4,101,2,107,1,113,1,118,0,121,0,126,0,128,0,132,0,135,0,136,0,139,0,141,0,143,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+29,104,18,112,12,119,8,125,5,130,3,135,2,139,2,142,1,145,0,148,0,150,0,152,0,154,0,155,0,157,0,159,0,160,0,161,0,162,0,163,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,31,0,44,0,55,0,65,0,74,0,157,0,153,0,142,0,126,
+0,105,0,83,0,60,0,38,0,18,0,0,0,16,0,31,0,44,0,55,0,65,0,74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,83,0,72,0,58,0,42,0,26,0,11,0,5,8,0,16,0,30,0,44,
+0,55,0,66,0,75,0,83,94,0,91,0,82,0,69,0,52,0,34,0,16,0,0,0,0,17,0,31,0,45,0,56,0,67,0,76,0,84,0,91,
+52,73,37,81,26,88,19,96,14,101,11,107,8,113,6,117,5,120,4,123,3,127,2,131,2,134,1,136,1,138,0,140,0,141,0,143,0,144,0,146,
+59,23,40,36,28,48,20,59,15,69,11,77,7,85,5,91,4,97,3,103,2,107,1,111,1,116,0,119,0,122,0,126,0,128,0,131,0,134,0,135,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+29,103,20,109,14,115,10,121,7,126,5,130,3,134,2,137,2,140,1,143,1,145,0,147,0,150,0,151,0,153,0,154,0,155,0,157,0,158,0,159,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,28,0,40,0,51,0,61,0,157,0,154,0,145,0,131,
+0,114,0,94,0,74,0,54,0,34,0,16,0,0,0,15,0,28,0,40,0,51,0,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,86,0,76,0,64,0,50,0,36,0,21,0,10,2,4,9,0,16,0,29,
+0,41,0,52,0,62,0,70,94,0,91,0,84,0,73,0,59,0,44,0,27,0,11,0,0,4,0,18,0,31,0,43,0,54,0,64,0,73,0,80,
+54,71,39,78,29,84,22,91,17,97,14,101,11,106,8,111,7,115,5,118,5,121,3,124,2,126,2,130,2,133,1,136,1,137,1,139,0,140,0,141,
+61,20,44,32,32,42,24,52,18,62,14,69,10,76,7,83,6,88,5,94,4,99,2,103,2,108,1,111,1,114,0,118,0,120,0,124,0,126,0,128,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+30,102,22,107,16,113,12,118,9,122,7,126,5,129,3,133,3,136,2,139,2,141,1,143,1,145,0,147,0,149,0,150,0,152,0,153,0,154,0,155,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,26,0,37,0,47,0,158,0,155,0,147,0,136,
+0,121,0,104,0,85,0,67,0,48,0,31,0,15,0,0,0,13,0,26,0,37,0,47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,87,0,79,0,68,0,56,0,44,0,31,0,18,0,9,3,4,9,0,16,
+0,28,0,39,0,49,0,58,94,0,92,0,86,0,77,0,65,0,51,0,36,0,21,0,7,0,0,6,0,19,0,31,0,42,0,52,0,61,0,70,
+55,70,41,76,32,82,25,87,20,93,16,98,13,102,11,105,9,110,7,115,6,117,5,119,4,122,3,124,2,126,2,130,2,132,2,135,1,136,1,137,
+63,19,47,28,35,39,27,47,21,56,16,62,13,69,10,75,8,81,7,87,5,92,4,96,3,101,2,103,2,108,1,111,1,113,0,117,0,119,0,121,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+31,101,23,106,17,111,13,115,10,119,8,123,6,126,5,129,4,132,3,135,2,137,2,139,1,142,1,143,1,145,0,147,0,148,0,150,0,151,0,152,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,24,0,34,0,158,0,156,0,149,0,139,
+0,126,0,111,0,95,0,78,0,61,0,44,0,28,0,13,0,0,0,12,0,24,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,88,0,81,0,72,0,62,0,50,0,38,0,26,0,15,0,8,4,4,10,
+0,16,0,27,0,37,0,47,94,0,93,0,87,0,79,0,69,0,57,0,44,0,30,0,16,0,3,0,0,8,0,20,0,31,0,42,0,51,0,59,
+56,69,43,74,34,80,28,85,22,89,18,95,15,99,13,102,11,105,9,110,7,113,6,116,5,118,5,120,3,122,3,124,2,126,2,129,2,132,2,134,
+64,17,49,27,38,35,30,43,24,51,19,57,15,64,12,69,10,75,8,81,7,86,5,89,4,94,4,97,2,101,2,104,2,107,1,110,1,113,0,115,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+32,100,24,105,19,109,15,113,12,117,9,120,7,123,6,126,5,129,4,132,3,134,2,136,2,138,2,140,1,142,1,143,1,145,0,147,0,148,0,149,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,22,0,158,0,156,0,151,0,142,
+0,131,0,117,0,102,0,87,0,71,0,55,0,40,0,26,0,12,0,0,0,11,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,83,0,75,0,66,0,56,0,45,0,34,0,23,0,12,0,7,5,
+3,10,0,15,0,26,0,36,94,0,93,0,89,0,82,0,73,0,62,0,50,0,37,0,25,0,12,0,0,0,0,10,0,21,0,31,0,41,0,49,
+56,69,45,73,36,78,30,83,25,86,20,91,17,96,14,99,12,102,10,105,9,108,7,112,6,115,6,117,5,119,4,121,3,122,3,124,2,126,2,128,
+64,17,50,24,40,32,32,40,26,47,22,53,18,60,15,65,12,70,10,75,8,80,7,84,5,88,5,92,4,95,4,98,2,102,2,105,1,107,1,110,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+32,100,25,104,20,107,16,111,13,115,11,118,9,121,7,124,6,126,5,129,4,131,3,133,2,136,2,137,2,139,2,141,1,142,1,144,0,145,0,146,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,158,0,156,0,152,0,144,
+0,134,0,122,0,109,0,95,0,80,0,65,0,51,0,37,0,24,0,11,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,93,0,90,0,85,0,78,0,69,0,60,0,50,0,40,0,30,0,20,0,11,0,
+7,6,3,11,0,15,0,25,94,0,93,0,89,0,83,0,75,0,66,0,55,0,44,0,32,0,20,0,9,0,0,1,0,12,0,22,0,31,0,40,
+57,68,46,73,38,76,31,82,26,85,22,88,19,93,16,97,14,100,12,102,10,104,9,108,7,112,7,114,6,116,5,118,5,120,3,121,3,123,2,124,
+65,16,52,23,42,30,35,37,29,44,24,50,20,55,16,61,14,66,12,70,10,75,8,79,7,83,5,87,5,90,4,94,4,97,3,99,2,102,2,105,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+32,99,26,103,21,106,17,110,14,113,12,116,10,119,8,122,7,124,6,127,5,129,4,131,3,133,2,135,2,136,2,138,2,140,1,141,1,142,1,144,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,146,
+0,137,0,126,0,114,0,102,0,88,0,74,0,61,0,47,0,34,0,22,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,86,0,80,0,72,0,64,0,55,0,45,0,36,0,26,0,17,0,
+10,1,6,6,3,11,0,15,95,0,93,0,90,0,85,0,78,0,69,0,60,0,49,0,38,0,27,0,17,0,6,0,0,3,0,13,0,23,0,31,
+57,67,47,72,39,75,34,79,28,84,24,86,20,89,18,94,15,98,13,100,12,102,10,104,9,107,8,111,7,114,6,116,5,117,5,119,4,120,3,122,
+66,15,54,22,44,28,37,35,31,41,26,46,22,52,18,57,15,62,13,66,12,71,10,75,8,79,7,82,5,86,5,89,4,92,4,95,4,98,2,100,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+33,99,27,102,22,106,18,109,15,112,13,115,11,117,9,120,7,122,6,125,6,127,5,129,4,131,3,133,2,134,2,136,2,137,2,139,2,140,1,141,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,67,49,72,41,74,35,77,30,83,26,85,22,87,19,91,17,96,15,98,13,100,11,102,10,104,9,106,8,110,7,113,6,115,6,117,5,118,5,120,
+67,15,55,21,46,27,39,33,33,38,28,44,24,49,21,54,18,58,15,63,12,67,12,71,10,75,8,78,7,82,6,85,5,88,5,91,4,93,4,96,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+33,99,27,102,23,105,19,108,16,110,14,113,12,116,10,118,9,121,7,123,6,125,6,127,5,129,4,130,3,132,3,134,2,135,2,137,2,138,2,139,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,66,49,71,42,73,36,76,31,81,27,84,24,86,21,88,18,92,16,97,14,99,12,100,11,102,10,104,9,106,8,109,7,113,6,114,6,116,5,117,
+67,15,56,20,47,25,40,31,34,36,29,41,25,46,22,51,18,55,17,59,15,64,12,67,11,71,10,75,9,78,7,81,7,85,5,86,5,90,4,92,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+33,99,28,101,23,104,20,107,17,110,14,112,12,115,11,117,9,119,8,121,7,123,6,125,5,127,5,129,4,130,3,132,3,134,2,135,2,136,2,137,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+58,66,50,70,43,73,37,75,33,79,29,83,25,85,22,87,20,89,17,94,16,97,14,99,12,101,11,102,10,104,9,106,8,108,7,112,7,114,6,115,
+67,14,57,19,49,24,42,29,36,34,31,39,27,43,24,48,22,53,18,57,15,60,15,65,12,68,11,71,10,74,9,78,7,80,7,84,5,85,5,89,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+33,99,28,101,24,104,21,106,18,108,15,111,13,113,12,115,11,118,9,120,7,121,7,124,6,125,5,127,5,129,4,130,3,132,3,133,2,134,2,136,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,66,51,69,44,73,39,75,34,77,30,82,27,84,24,86,21,88,19,91,16,95,15,97,14,99,12,101,11,102,10,104,9,105,8,108,7,111,7,114,
+68,14,58,18,50,23,43,28,38,33,33,38,29,42,25,46,22,50,20,53,18,58,15,61,14,65,12,68,11,71,10,74,9,78,7,79,7,83,5,85,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+34,98,29,101,25,103,21,106,19,108,16,110,14,113,12,115,11,116,10,118,9,121,7,122,7,124,6,125,5,127,5,129,4,130,3,131,3,133,2,134,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,66,51,68,45,72,40,74,35,76,31,80,28,83,25,85,22,87,20,88,18,92,16,96,14,98,13,99,12,101,11,102,10,104,9,105,9,107,7,110,
+68,13,58,18,51,22,44,27,39,31,33,36,30,40,26,43,24,48,22,52,18,55,17,59,15,62,13,65,12,69,10,71,10,74,9,78,7,79,7,83,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+34,98,29,101,25,102,22,105,19,107,16,109,15,111,13,113,12,115,11,118,9,119,8,121,7,122,6,124,6,126,5,127,5,128,4,130,3,131,3,133,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,66,52,68,46,72,41,73,36,75,32,79,29,83,26,85,24,86,21,88,19,89,17,93,16,97,14,98,13,99,12,101,11,102,10,104,9,105,9,107,
+68,13,59,18,52,22,46,25,40,30,35,34,32,38,29,43,25,46,22,49,20,53,18,56,15,59,15,63,12,65,12,69,10,71,10,74,9,78,7,78,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+34,98,29,100,26,102,23,104,20,106,17,108,16,110,14,113,12,115,11,116,10,118,9,120,7,121,7,123,6,124,6,126,5,127,5,128,4,130,3,130,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,66,52,67,47,72,41,73,37,75,33,77,30,81,27,84,24,85,22,86,20,88,19,91,16,94,15,97,14,99,12,100,12,102,11,102,10,104,9,105,
+68,12,60,17,53,22,47,25,42,29,37,34,33,37,29,41,26,43,24,48,22,51,18,53,18,58,15,60,15,64,12,65,12,69,10,71,10,74,9,78,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+34,98,30,100,26,102,23,104,21,106,18,108,16,110,14,112,13,113,12,115,11,117,9,118,9,120,7,121,7,123,6,124,6,126,5,127,5,128,4,130,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+59,66,53,67,47,71,43,73,38,75,34,76,31,79,28,83,26,85,24,86,21,88,19,89,18,92,16,96,15,97,14,99,12,100,12,102,11,102,10,104,
+68,12,60,16,53,21,48,25,43,28,38,32,33,35,30,38,28,43,25,46,22,48,21,53,18,55,17,59,15,61,15,65,12,66,12,70,10,71,10,74,
+0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,0,183,
+34,98,30,100,26,102,24,104,21,106,19,107,16,109,15,110,14,113,12,114,11,116,10,118,9,119,8,121,7,122,7,124,6,124,6,126,5,127,5,128,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+68,9,67,9,68,9,69,9,69,9,70,9,70,9,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,34,28,10,41,10,49,9,54,9,58,9,59,9,61,9,63,9,64,9,64,9,65,9,66,9,67,9,67,10,67,10,68,10,68,10,68,10,68,10,
+35,22,50,10,56,10,60,10,63,9,64,9,65,9,66,9,67,9,68,9,68,10,68,10,68,10,69,10,69,10,69,10,69,10,69,10,69,10,70,10,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+63,22,62,17,63,15,64,13,65,13,65,12,66,12,67,11,67,11,67,11,67,11,68,10,68,10,69,10,69,10,69,10,70,10,70,10,70,10,71,10,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,110,3,58,15,39,24,30,31,25,36,23,40,20,44,19,47,17,49,17,50,16,52,15,54,15,55,15,56,14,57,14,58,13,58,13,59,12,60,12,
+35,60,37,34,43,24,48,20,51,17,54,16,56,15,57,14,59,14,60,13,61,13,62,12,63,12,63,12,64,12,64,12,64,11,65,11,65,11,66,11,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+62,31,60,24,60,20,61,17,62,17,63,15,63,14,64,14,65,13,66,13,66,13,66,13,66,12,66,12,66,11,66,11,67,11,67,11,68,11,68,11,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,138,0,89,6,64,13,50,18,42,24,36,28,32,32,28,35,27,38,24,40,23,42,22,44,21,46,20,47,19,49,18,50,18,51,18,52,17,53,16,
+35,74,36,49,39,37,42,30,45,26,47,23,50,21,51,19,53,18,54,17,56,16,57,16,58,15,58,15,59,14,60,14,60,14,61,14,62,13,62,13,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+62,37,60,29,60,25,60,22,61,20,61,18,63,17,63,16,63,15,63,15,64,14,65,14,65,13,66,13,66,13,66,13,66,13,66,13,66,13,66,12,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,151,0,108,2,82,7,67,11,56,16,48,20,42,24,39,27,35,30,32,32,30,35,28,37,27,39,25,40,24,42,23,43,22,44,22,46,22,47,21,
+35,80,35,59,37,46,39,38,41,33,44,29,46,26,47,24,49,22,51,21,52,20,53,19,54,18,55,17,56,17,56,17,57,16,58,16,58,16,59,15,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+62,41,60,34,59,29,59,25,60,23,60,21,60,19,61,18,63,17,63,17,62,16,62,15,63,15,64,14,64,14,65,14,66,14,66,13,66,13,66,13,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,158,0,121,0,97,4,80,7,68,11,59,15,52,18,47,21,43,24,40,26,37,29,35,31,33,33,31,34,29,36,28,38,27,39,25,40,25,42,25,
+35,84,35,66,36,53,37,45,39,39,41,34,43,31,45,28,46,26,48,25,49,23,50,22,51,21,52,20,53,19,54,19,55,18,55,17,56,17,56,17,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+62,44,60,37,59,32,59,29,59,26,60,23,60,22,60,20,60,19,62,18,63,17,63,17,63,17,61,16,62,15,63,15,64,15,64,14,64,14,65,14,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,162,0,132,0,108,2,90,5,78,7,69,11,62,14,56,16,51,19,47,22,44,24,41,26,38,28,36,29,34,31,33,33,31,33,30,35,29,37,28,
+35,86,35,71,35,59,36,50,38,44,39,39,41,36,42,33,44,30,45,28,46,27,48,25,48,24,50,23,50,22,51,21,52,20,52,20,53,19,54,19,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+62,46,60,39,59,35,59,31,59,28,59,26,60,24,60,23,59,21,60,20,60,19,62,19,63,17,63,17,63,17,62,17,61,16,62,15,63,15,64,15,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,166,0,139,0,117,1,99,2,87,5,77,7,69,10,62,13,57,15,53,18,50,20,46,22,44,24,41,25,39,27,38,29,36,30,34,32,34,33,32,
+35,88,35,74,35,63,36,54,37,48,38,43,39,39,41,36,42,34,43,32,45,30,46,28,46,27,48,26,48,24,49,24,50,23,50,22,51,22,52,21,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+62,48,60,42,60,37,58,33,59,30,58,28,59,26,60,24,60,23,60,22,59,21,60,20,61,19,62,19,63,18,63,17,63,17,62,17,61,16,62,15,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,168,0,144,0,124,0,107,1,95,4,85,5,76,7,69,10,64,12,60,15,55,16,52,18,49,21,46,22,43,24,42,25,40,26,38,29,37,29,35,
+35,89,35,77,35,67,36,59,36,52,37,47,38,43,39,40,40,37,42,35,43,33,44,31,45,29,46,28,46,27,48,26,48,25,49,24,50,23,50,22,
+23,0,47,0,76,0,86,0,89,0,91,0,93,0,93,0,94,0,94,0,94,0,94,0,94,0,95,0,95,0,95,0,20,44,41,1,73,0,84,0,
+89,0,91,0,92,0,93,0,93,0,94,0,94,0,94,0,94,0,94,0,95,0,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,108,0,76,0,95,0,98,0,98,0,95,0,93,0,93,0,94,0,94,0,94,0,94,0,
+94,0,95,0,95,0,95,0,17,49,35,3,70,0,82,0,88,0,90,0,92,0,93,0,93,0,94,0,94,0,94,0,94,0,94,0,94,0,95,0,
+62,50,61,44,60,38,59,35,59,32,59,30,58,28,59,26,60,24,60,23,60,23,58,21,60,21,60,20,61,19,62,19,63,18,63,17,63,17,62,17,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,170,0,148,0,130,0,114,1,101,2,91,4,83,6,75,8,69,10,65,12,61,14,57,15,54,18,51,18,48,22,46,22,43,24,43,25,41,26,38,
+35,90,35,79,35,70,35,62,36,55,37,50,37,46,38,43,39,40,40,37,42,35,43,33,43,32,45,30,45,29,46,28,46,27,48,26,48,25,48,24,
+0,0,7,0,47,0,69,0,79,0,85,0,88,0,89,0,91,0,92,0,92,0,93,0,93,0,93,0,94,0,94,0,0,87,4,22,39,0,65,0,
+77,0,83,0,86,0,89,0,90,0,91,0,92,0,92,0,93,0,93,0,93,0,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,59,0,72,0,85,0,88,0,87,0,88,0,89,0,91,0,92,0,92,0,93,0,
+93,0,93,0,94,0,94,0,0,95,0,32,31,0,60,0,74,0,81,0,85,0,88,0,89,0,91,0,91,0,92,0,93,0,93,0,93,0,93,0,
+62,51,61,45,60,40,59,37,58,34,59,31,59,30,58,28,59,26,60,25,60,23,60,23,59,22,59,21,60,21,60,19,61,19,63,19,63,18,63,17,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,170,0,152,0,135,0,120,0,107,1,97,3,88,5,81,7,75,8,70,10,66,12,62,13,58,15,55,17,53,18,50,20,48,22,46,22,43,24,43,
+35,90,35,81,35,72,35,65,36,58,36,53,37,49,38,46,39,42,39,40,40,38,42,36,42,34,43,33,44,31,45,30,45,29,46,28,46,27,48,26,
+0,0,0,0,2,0,34,0,54,0,66,0,74,0,79,0,83,0,85,0,87,0,88,0,89,0,90,0,91,0,91,0,0,130,0,87,1,18,23,0,
+47,0,62,0,71,0,77,0,81,0,83,0,86,0,87,0,88,0,89,0,90,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,72,0,27,0,52,0,64,0,68,0,74,0,79,0,83,0,85,0,87,0,88,0,
+89,0,90,0,91,0,91,0,0,133,0,95,0,31,13,0,40,0,57,0,67,0,74,0,78,0,82,0,84,0,86,0,87,0,89,0,89,0,90,0,
+62,52,61,47,59,42,60,38,58,35,59,33,59,31,59,29,58,28,59,26,60,25,60,23,60,23,59,23,58,21,60,21,60,21,60,19,62,19,63,19,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,172,0,155,0,139,0,124,0,113,1,103,2,94,4,87,5,81,7,75,8,70,10,66,12,63,12,59,15,57,15,53,18,52,18,49,20,48,22,46,
+35,91,35,82,35,74,35,67,35,61,36,56,37,52,37,48,38,45,39,42,40,40,40,38,42,36,42,34,43,33,43,32,45,31,45,29,46,29,46,28,
+0,0,0,0,0,0,1,0,25,0,43,0,56,0,64,0,71,0,75,0,79,0,81,0,83,0,85,0,86,0,87,0,0,145,0,120,0,67,0,16,
+14,0,35,0,49,0,59,0,66,0,72,0,76,0,79,0,81,0,83,0,85,0,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,85,0,52,0,11,0,31,0,43,0,56,0,64,0,71,0,75,0,79,0,81,0,
+83,0,85,0,86,0,87,0,0,146,0,124,0,77,0,31,2,0,26,0,42,0,54,0,62,0,69,0,73,0,77,0,79,0,82,0,83,0,85,0,
+62,53,62,48,59,44,60,40,59,37,58,34,59,32,59,31,58,29,58,28,59,26,60,25,60,24,60,23,60,23,58,22,59,21,60,21,60,20,60,19,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,173,0,157,0,142,0,129,0,118,0,107,1,99,2,92,4,86,5,80,7,75,8,71,10,67,12,64,12,60,15,58,15,55,17,53,18,51,18,48,
+35,91,35,83,35,76,35,69,35,64,36,59,36,54,37,51,37,48,38,45,39,42,40,40,40,38,42,37,42,35,43,34,43,32,44,32,45,30,45,29,
+0,0,0,0,0,0,0,0,0,0,20,0,36,0,47,0,56,0,63,0,68,0,72,0,76,0,78,0,80,0,82,0,0,150,0,135,0,97,0,54,
+0,16,10,2,26,0,39,0,50,0,58,0,64,0,68,0,72,0,75,0,78,0,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,88,0,64,0,31,0,1,0,20,0,36,0,47,0,56,0,63,0,68,0,72,0,
+76,0,78,0,80,0,82,0,0,151,0,138,0,104,0,66,0,31,0,4,16,0,31,0,43,0,52,0,59,0,65,0,69,0,73,0,75,0,78,0,
+62,54,62,49,59,44,60,41,60,38,58,36,58,33,59,32,59,31,57,29,59,28,59,26,60,25,60,24,60,23,60,23,58,23,58,21,60,21,60,21,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,173,0,159,0,145,0,133,0,121,0,111,1,103,2,96,3,89,4,84,5,79,7,75,8,71,10,67,11,65,12,61,14,59,15,56,15,53,18,53,
+35,91,35,84,35,78,35,71,35,66,36,60,36,56,37,53,37,50,38,47,38,45,39,42,40,40,40,38,41,37,42,35,43,34,43,33,43,32,45,32,
+0,0,0,0,0,0,0,0,0,0,0,0,16,0,30,0,41,0,50,0,56,0,62,0,66,0,70,0,73,0,76,0,0,153,0,143,0,116,0,81,
+0,46,0,16,8,4,19,0,32,0,42,0,50,0,56,0,62,0,66,0,69,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,87,0,68,0,43,0,20,0,0,0,16,0,30,0,41,0,50,0,56,0,62,0,
+66,0,70,0,73,0,76,0,0,154,0,145,0,121,0,90,0,59,0,31,0,9,8,0,23,0,34,0,44,0,51,0,57,0,62,0,66,0,69,0,
+62,54,62,49,59,45,59,42,60,39,58,37,58,35,59,33,59,31,59,31,57,28,59,28,59,26,60,25,60,25,60,23,60,23,59,23,58,22,59,21,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,173,0,160,0,148,0,136,0,126,0,116,0,108,1,101,2,94,4,88,5,83,5,79,7,75,8,71,10,68,11,65,12,62,13,59,15,58,15,55,
+35,92,35,85,35,79,35,73,35,68,35,63,36,59,36,55,37,52,37,49,38,46,38,44,39,42,40,40,40,39,41,37,42,36,42,34,43,34,43,32,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,26,0,36,0,44,0,51,0,57,0,61,0,65,0,68,0,0,155,0,148,0,127,0,100,
+0,70,0,41,0,16,7,6,14,0,26,0,36,0,44,0,50,0,56,0,60,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,88,0,74,0,56,0,36,0,16,0,0,0,14,0,26,0,36,0,44,0,51,0,
+57,0,61,0,65,0,68,0,0,155,0,149,0,131,0,106,0,79,0,54,0,31,0,12,3,0,16,0,27,0,36,0,44,0,50,0,55,0,60,0,
+62,55,62,50,60,47,59,43,60,40,59,38,58,36,58,34,59,33,59,31,58,30,57,28,59,28,59,26,60,25,60,25,60,23,60,23,59,23,58,23,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,174,0,162,0,151,0,139,0,128,0,119,0,111,1,103,2,97,2,92,4,87,5,82,5,78,7,75,9,71,10,68,11,65,12,63,12,60,15,59,
+35,92,35,86,35,80,35,74,35,69,35,64,36,60,36,57,37,53,37,51,37,48,38,46,38,44,39,42,40,40,40,39,41,37,42,36,42,35,43,34,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,23,0,32,0,40,0,46,0,52,0,57,0,61,0,0,156,0,150,0,135,0,113,
+0,87,0,61,0,37,0,16,6,7,11,0,21,0,31,0,38,0,45,0,50,0,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,89,0,79,0,64,0,47,0,30,0,14,0,0,0,12,0,23,0,32,0,40,0,
+46,0,52,0,57,0,61,0,0,156,0,151,0,138,0,118,0,95,0,72,0,51,0,31,0,15,0,0,11,0,21,0,30,0,37,0,44,0,49,0,
+62,55,62,51,60,47,59,44,60,41,60,39,57,37,58,35,59,33,59,32,59,31,58,30,57,28,59,28,59,26,60,25,60,25,60,24,60,23,59,23,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,175,0,163,0,152,0,142,0,132,0,122,0,114,0,108,1,101,2,95,4,90,4,86,5,82,6,78,7,74,9,71,10,69,10,65,12,64,12,61,
+35,92,35,86,35,81,35,76,35,71,35,66,35,62,36,59,36,55,37,52,37,50,37,48,38,46,39,44,39,42,40,40,40,39,41,37,42,37,42,35,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,20,0,29,0,36,0,42,0,48,0,53,0,0,157,0,152,0,140,0,122,
+0,100,0,78,0,55,0,34,0,16,5,8,10,2,18,0,26,0,34,0,40,0,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,83,0,71,0,56,0,41,0,26,0,12,0,0,0,11,0,20,0,29,0,
+36,0,42,0,48,0,53,0,0,157,0,153,0,142,0,126,0,107,0,87,0,67,0,48,0,31,0,17,0,4,7,0,16,0,25,0,32,0,38,0,
+62,56,62,51,61,48,59,45,60,42,60,39,58,38,58,36,58,34,59,33,59,31,59,31,57,30,58,28,59,28,59,26,60,25,60,25,60,24,60,23,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,175,0,165,0,153,0,144,0,135,0,126,0,118,0,111,1,104,2,98,2,94,4,89,4,85,5,81,7,78,7,74,9,71,10,69,10,65,12,65,
+35,92,35,87,35,82,35,77,35,72,35,68,35,64,36,60,36,57,36,54,37,52,37,49,38,47,38,45,39,44,39,42,40,40,40,39,40,37,42,37,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,18,0,26,0,33,0,39,0,44,0,0,157,0,154,0,144,0,129,
+0,111,0,91,0,70,0,50,0,32,0,16,4,9,9,3,15,0,23,0,30,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,85,0,75,0,63,0,50,0,36,0,23,0,11,0,0,0,9,0,18,0,
+26,0,33,0,39,0,44,0,0,157,0,154,0,146,0,132,0,116,0,98,0,80,0,63,0,46,0,31,0,18,0,6,3,0,12,0,20,0,27,0,
+62,56,62,52,62,49,59,46,59,43,60,41,60,39,57,37,58,36,58,33,59,33,59,31,59,31,57,29,58,28,59,28,59,26,60,25,60,25,60,25,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,175,0,166,0,155,0,145,0,136,0,128,0,120,0,113,0,107,1,102,2,97,3,92,4,88,5,85,5,80,7,78,7,74,9,71,10,69,10,66,
+35,92,35,88,35,83,35,77,35,73,35,69,35,65,36,61,36,59,36,56,37,53,37,51,37,49,38,47,38,45,39,44,39,42,40,40,40,40,40,38,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,17,0,24,0,30,0,36,0,0,157,0,155,0,147,0,134,
+0,118,0,101,0,82,0,64,0,47,0,30,0,16,4,9,8,4,12,0,20,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,87,0,79,0,68,0,56,0,44,0,32,0,20,0,9,0,0,0,9,0,
+17,0,24,0,30,0,36,0,0,158,0,155,0,148,0,137,0,123,0,107,0,91,0,75,0,59,0,45,0,31,0,19,0,8,0,0,9,0,17,0,
+62,56,62,53,62,50,59,46,59,44,60,42,60,39,58,38,58,36,58,35,59,33,59,32,59,31,58,31,57,29,58,28,59,28,59,26,60,25,60,25,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,176,0,166,0,157,0,147,0,139,0,131,0,124,0,117,0,110,1,105,1,99,2,95,4,91,4,86,5,84,5,79,7,78,7,74,9,71,10,70,
+35,93,35,88,35,83,35,79,35,74,35,70,35,67,35,63,36,60,36,57,36,54,37,52,37,50,37,48,38,47,38,45,39,44,39,42,40,40,40,40,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,15,0,22,0,28,0,0,158,0,155,0,149,0,138,
+0,125,0,109,0,93,0,76,0,59,0,44,0,29,0,16,4,10,7,5,11,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,88,0,81,0,72,0,62,0,51,0,40,0,29,0,18,0,9,0,0,0,
+8,0,15,0,22,0,28,0,0,158,0,156,0,150,0,140,0,128,0,115,0,100,0,85,0,70,0,56,0,43,0,31,0,20,0,10,0,1,6,0,
+62,57,62,53,62,50,59,47,59,45,60,42,60,40,59,39,57,36,58,36,58,34,59,33,59,31,59,31,57,31,57,29,59,28,59,28,59,26,60,25,
+71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,71,10,
+0,176,0,167,0,158,0,150,0,141,0,134,0,126,0,119,0,113,0,107,1,102,2,98,2,93,4,90,4,85,5,83,5,79,7,78,7,74,9,71,
+35,93,35,88,35,84,35,80,35,76,35,72,35,68,35,64,36,61,36,58,36,56,37,54,37,51,37,50,37,47,38,47,38,44,39,44,39,42,40,40,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,14,0,20,0,0,158,0,156,0,150,0,141,
+0,129,0,116,0,101,0,86,0,70,0,55,0,41,0,28,0,16,3,10,7,6,10,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,83,0,76,0,66,0,57,0,46,0,36,0,26,0,17,0,8,0,
+0,0,7,0,14,0,20,0,0,158,0,156,0,151,0,143,0,133,0,121,0,107,0,94,0,80,0,67,0,54,0,42,0,31,0,21,0,12,0,3,
+50,89,42,91,40,92,39,93,39,93,38,94,38,94,38,94,38,94,38,94,37,94,37,94,37,95,37,95,37,95,37,95,37,95,36,95,36,95,36,96,
+50,60,37,74,36,80,35,84,35,86,35,88,35,89,35,90,35,90,35,91,35,91,35,91,35,92,35,92,35,92,35,92,35,92,35,93,35,93,35,93,
+0,108,14,96,20,96,24,96,27,96,29,96,29,96,30,96,31,96,32,96,32,96,32,96,33,96,33,96,33,96,33,96,34,96,34,96,34,96,34,96,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,13,0,0,158,0,156,0,151,0,144,
+0,133,0,121,0,108,0,94,0,80,0,66,0,52,0,39,0,27,0,15,3,11,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,93,0,90,0,85,0,78,0,70,0,61,0,52,0,42,0,33,0,24,0,15,0,
+7,0,0,0,7,0,13,0,0,158,0,157,0,152,0,145,0,136,0,126,0,114,0,101,0,89,0,76,0,64,0,52,0,42,0,31,0,22,0,13,
+56,79,49,83,46,86,44,87,42,89,41,90,41,90,40,91,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,39,92,
+56,34,43,49,39,59,37,66,36,71,35,74,35,77,35,79,35,81,35,82,35,83,35,84,35,85,35,86,35,86,35,87,35,88,35,88,35,88,35,88,
+0,146,1,121,7,111,12,107,15,104,18,103,20,102,22,101,23,100,24,100,25,99,26,99,27,99,27,99,28,99,28,98,29,98,29,98,29,98,30,98,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,158,0,157,0,152,0,146,
+0,137,0,126,0,114,0,101,0,88,0,75,0,62,0,49,0,37,0,26,0,15,3,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,86,0,80,0,73,0,65,0,57,0,48,0,39,0,30,0,22,0,
+14,0,7,0,0,0,6,0,0,158,0,157,0,153,0,147,0,139,0,130,0,119,0,108,0,96,0,84,0,73,0,61,0,51,0,41,0,31,0,23,
+58,75,52,79,49,82,47,84,45,86,44,87,43,87,42,87,42,87,42,89,41,90,41,90,40,91,39,92,39,92,39,92,39,92,39,92,39,92,39,92,
+60,24,48,37,42,46,39,53,37,59,36,63,36,67,36,70,35,72,35,74,35,76,35,78,35,79,35,80,35,81,35,82,35,83,35,83,35,84,35,84,
+0,161,0,136,3,123,6,116,9,112,12,109,14,107,16,106,17,105,19,104,20,103,21,102,22,102,23,101,23,101,24,101,25,101,25,100,26,100,26,100,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,147,
+0,139,0,130,0,119,0,107,0,95,0,83,0,70,0,58,0,47,0,36,0,25,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,94,0,91,0,87,0,82,0,76,0,68,0,61,0,53,0,44,0,36,0,28,0,
+20,0,13,0,6,0,0,0,0,158,0,157,0,154,0,149,0,141,0,133,0,123,0,113,0,102,0,91,0,80,0,70,0,59,0,49,0,40,0,31,
+59,72,54,76,51,79,49,82,47,83,46,83,45,85,44,87,43,87,42,87,42,87,42,87,42,87,42,88,42,89,41,90,41,91,40,91,39,92,39,92,
+63,20,51,30,45,38,41,45,39,50,38,54,37,59,36,62,36,65,36,67,35,69,35,71,35,73,35,74,35,76,35,77,35,77,35,79,35,80,35,80,
+0,167,0,146,1,132,3,125,5,119,8,115,10,113,12,111,13,109,15,107,16,106,17,106,18,105,19,104,20,104,21,103,21,102,22,102,23,102,23,102,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,49,35,3,70,0,82,0,
+88,0,90,0,92,0,93,0,93,0,94,0,94,0,94,0,94,0,94,0,94,0,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,49,0,95,0,133,0,146,0,151,0,154,0,155,0,156,0,157,0,157,0,158,0,158,
+0,158,0,158,0,158,0,158,0,0,0,0,0,0,0,0,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,71,56,75,53,78,50,79,49,81,48,83,46,83,46,83,46,85,44,86,43,87,42,87,42,87,42,87,42,87,42,87,42,87,42,87,42,88,42,89,
+64,17,54,26,47,33,44,39,41,44,39,48,38,52,37,55,37,58,36,61,36,64,36,66,36,68,35,69,35,71,35,72,35,73,35,74,35,76,35,76,
+0,170,0,152,0,140,2,131,3,125,5,121,7,118,9,115,10,113,12,111,13,110,14,109,15,108,16,107,17,106,18,106,19,105,19,104,20,104,21,104,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,32,31,0,60,0,
+74,0,81,0,85,0,88,0,89,0,91,0,91,0,92,0,93,0,93,0,93,0,93,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,3,0,32,0,95,0,124,0,138,0,145,0,149,0,151,0,153,0,154,0,155,0,156,
+0,156,0,157,0,157,0,157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,70,57,74,54,75,52,78,50,79,49,80,48,83,46,83,46,83,46,83,46,84,45,86,43,87,42,87,42,87,42,87,42,87,42,87,42,87,42,87,
+65,16,56,23,50,29,46,34,43,39,41,43,39,47,38,50,37,53,37,56,37,59,36,60,36,63,36,64,36,66,35,68,35,69,35,70,35,72,35,72,
+0,172,0,157,0,145,1,137,2,130,3,126,5,122,7,119,8,117,9,115,11,113,12,112,13,110,14,110,14,108,15,108,16,107,16,106,17,106,18,106,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,133,0,95,0,31,13,0,
+40,0,57,0,67,0,74,0,78,0,82,0,84,0,86,0,87,0,89,0,89,0,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,0,31,0,0,31,0,77,0,104,0,121,0,131,0,138,0,142,0,146,0,148,0,150,
+0,151,0,152,0,153,0,154,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,69,57,72,55,74,53,76,51,79,49,79,49,80,48,82,46,83,46,83,46,83,46,83,46,84,45,86,44,87,42,87,42,87,42,87,42,87,42,87,
+66,15,57,21,51,26,47,31,45,36,42,39,41,43,39,46,38,49,38,52,37,54,37,56,37,59,36,60,36,62,36,64,36,65,36,67,35,68,35,69,
+0,174,0,161,0,150,0,141,1,135,2,130,3,126,5,123,6,120,7,118,9,116,10,115,11,113,12,112,12,111,13,110,14,109,15,108,16,108,16,107,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,146,0,124,0,77,0,31,
+2,0,26,0,42,0,54,0,62,0,69,0,73,0,77,0,79,0,82,0,83,0,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,60,0,13,0,0,31,0,66,0,90,0,106,0,118,0,126,0,132,0,137,0,140,
+0,143,0,145,0,147,0,149,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,69,58,71,56,74,53,74,53,77,51,79,49,79,49,79,49,82,47,83,46,83,46,83,46,83,46,83,46,83,45,85,44,87,43,87,42,87,42,87,
+67,14,59,19,53,24,49,28,46,33,44,36,42,40,40,43,39,46,39,48,38,51,37,53,37,55,37,57,37,59,36,60,36,61,36,63,36,64,36,66,
+0,175,0,163,0,153,0,145,0,139,2,134,2,129,3,126,5,123,6,121,7,119,8,117,9,116,10,115,11,113,12,113,12,111,13,110,14,110,14,109,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,151,0,138,0,104,0,66,
+0,31,0,4,16,0,31,0,43,0,52,0,59,0,65,0,69,0,73,0,75,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,0,74,0,40,0,2,0,0,31,0,59,0,79,0,95,0,107,0,116,0,123,0,128,
+0,133,0,136,0,139,0,141,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,68,59,70,57,73,54,74,53,75,52,78,50,79,49,79,49,79,49,81,47,83,46,83,46,83,46,83,46,83,46,83,46,83,46,85,44,86,43,87,
+68,14,60,18,54,22,51,26,48,30,45,34,43,37,42,40,40,42,39,45,39,48,38,50,38,52,37,53,37,55,37,57,36,59,36,60,36,61,36,63,
+0,176,0,165,0,157,0,149,0,142,1,137,2,133,3,129,4,126,5,124,6,122,7,120,7,118,9,117,9,115,11,115,11,113,12,113,12,112,13,110,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,154,0,145,0,121,0,90,
+0,59,0,31,0,9,8,0,23,0,34,0,44,0,51,0,57,0,62,0,66,0,69,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,90,0,81,0,57,0,26,0,0,4,0,31,0,54,0,72,0,87,0,98,0,107,0,115,
+0,121,0,126,0,130,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,68,59,70,57,72,55,74,53,74,53,76,52,79,49,79,49,79,49,79,49,80,48,83,46,83,46,83,46,83,46,83,46,83,46,83,46,83,46,85,
+68,13,61,17,56,21,52,25,49,28,46,32,45,35,43,37,42,40,40,42,40,45,39,47,38,49,38,51,37,52,37,54,37,56,37,57,36,58,36,60,
+0,177,0,168,0,159,0,152,0,145,0,140,1,136,2,132,3,129,4,126,5,124,6,122,6,121,7,119,8,118,9,116,10,115,11,115,11,113,12,113,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,149,0,131,0,106,
+0,79,0,54,0,31,0,12,3,0,16,0,27,0,36,0,44,0,50,0,55,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,92,0,85,0,67,0,42,0,16,0,0,9,0,31,0,51,0,67,0,80,0,91,0,100,
+0,107,0,114,0,119,0,123,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,67,60,70,57,70,57,74,53,74,53,74,53,77,51,79,49,79,49,79,49,79,49,80,48,82,46,83,46,83,46,83,46,83,46,83,46,83,46,83,
+68,13,62,16,57,20,53,23,50,27,48,30,46,33,44,35,43,38,42,40,40,42,40,45,39,46,38,48,38,50,37,52,37,53,37,54,37,56,37,57,
+0,177,0,169,0,161,0,154,0,148,0,143,1,139,2,135,2,132,3,129,4,127,5,125,6,123,6,121,7,120,7,118,9,118,9,116,10,115,11,114,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,0,151,0,138,0,118,
+0,95,0,72,0,51,0,31,0,15,0,0,11,0,21,0,30,0,37,0,44,0,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,88,0,74,0,54,0,31,0,8,0,0,12,0,31,0,48,0,63,0,75,0,85,
+0,94,0,101,0,108,0,113,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,60,70,57,70,57,72,55,74,53,74,53,75,53,78,50,79,49,79,49,79,49,79,49,79,49,82,47,83,46,83,46,83,46,83,46,83,46,83,
+68,12,63,16,58,19,54,22,51,25,48,28,46,31,45,33,43,36,42,38,42,40,40,42,40,44,39,46,38,48,38,49,38,51,37,52,37,54,37,55,
+0,178,0,170,0,162,0,156,0,150,0,145,0,141,1,137,2,134,2,131,3,129,4,127,5,125,6,123,6,121,7,121,7,119,8,118,9,117,9,116,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,153,0,142,0,126,
+0,107,0,87,0,67,0,48,0,31,0,17,0,4,7,0,16,0,25,0,32,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,93,0,89,0,78,0,62,0,43,0,23,0,3,0,0,15,0,31,0,46,0,59,0,70,
+0,80,0,89,0,96,0,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,70,57,70,57,71,56,74,53,74,53,74,53,75,52,78,50,79,49,79,49,79,49,79,49,79,49,81,47,83,46,83,46,83,46,83,46,83,
+69,12,63,15,58,18,55,21,52,24,50,27,48,29,46,32,45,34,43,36,42,38,42,40,40,42,40,44,39,46,39,47,38,49,38,50,37,51,37,53,
+0,178,0,171,0,164,0,158,0,152,0,147,0,143,1,139,1,136,2,133,2,131,3,129,4,127,5,125,5,124,6,122,7,121,7,120,7,118,9,118,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,0,154,0,146,0,132,
+0,116,0,98,0,80,0,63,0,46,0,31,0,18,0,6,3,0,12,0,20,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,82,0,69,0,52,0,34,0,16,0,0,0,0,17,0,31,0,45,0,56,
+0,67,0,76,0,84,0,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,69,58,70,57,70,57,73,54,74,53,74,53,74,53,76,51,79,49,79,49,79,49,79,49,79,49,79,49,81,48,83,46,83,46,83,46,83,
+69,12,64,15,59,17,56,20,53,23,50,26,48,28,46,30,45,33,44,34,43,37,42,38,41,40,40,42,40,44,39,45,39,47,38,48,38,50,37,51,
+0,178,0,172,0,165,0,159,0,154,0,150,0,145,0,142,1,138,2,136,2,133,2,131,3,129,4,127,5,125,5,124,6,122,6,121,7,120,7,119,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,155,0,148,0,137,
+0,123,0,107,0,91,0,75,0,59,0,45,0,31,0,19,0,8,0,0,9,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,91,0,84,0,73,0,59,0,44,0,27,0,11,0,0,4,0,18,0,31,0,43,
+0,54,0,64,0,73,0,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,68,58,70,57,70,57,72,55,74,53,74,53,74,53,74,53,77,51,79,49,79,49,79,49,79,49,79,49,79,49,80,48,83,46,83,46,83,
+69,12,64,14,60,17,56,19,54,22,51,24,49,27,48,29,46,31,45,33,43,35,43,37,42,39,41,40,40,42,40,44,39,45,39,47,38,47,38,49,
+0,179,0,172,0,167,0,161,0,155,0,151,0,147,0,143,1,140,1,137,2,135,2,133,2,130,3,129,4,127,5,125,5,124,6,123,6,121,7,121,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,150,0,140,
+0,128,0,115,0,100,0,85,0,70,0,56,0,43,0,31,0,20,0,10,0,1,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,92,0,86,0,77,0,65,0,51,0,36,0,21,0,7,0,0,6,0,19,0,31,
+0,42,0,52,0,61,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,68,59,70,57,70,57,71,56,74,53,74,53,74,53,74,53,75,52,78,50,79,49,79,49,79,49,79,49,79,49,79,49,80,48,82,47,83,
+69,12,64,14,60,17,57,19,55,21,52,24,50,26,48,28,46,30,45,32,45,34,43,35,43,37,42,39,41,40,40,42,40,44,39,45,39,47,38,47,
+0,179,0,173,0,167,0,163,0,157,0,153,0,149,0,145,0,142,1,139,2,136,2,134,2,132,3,130,3,129,4,127,5,126,5,124,6,123,6,122,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,156,0,151,0,143,
+0,133,0,121,0,107,0,94,0,80,0,67,0,54,0,42,0,31,0,21,0,12,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,94,0,93,0,87,0,79,0,69,0,57,0,44,0,30,0,16,0,3,0,0,8,0,20,
+0,31,0,42,0,51,0,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,67,60,70,57,70,57,70,57,73,54,74,53,74,53,74,53,74,53,76,51,79,49,79,49,79,49,79,49,79,49,79,49,79,49,79,49,82,
+69,11,65,14,61,16,58,18,55,20,52,23,50,25,49,27,48,29,46,31,45,32,44,34,43,36,42,37,42,39,41,40,40,42,40,44,39,44,39,46,
+0,179,0,174,0,168,0,163,0,159,0,154,0,150,0,147,0,143,1,141,1,138,2,136,2,134,2,132,3,130,3,129,4,127,5,126,5,124,6,124,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,152,0,145,
+0,136,0,126,0,114,0,101,0,89,0,76,0,64,0,52,0,42,0,31,0,22,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,82,0,73,0,62,0,50,0,37,0,25,0,12,0,0,0,0,10,
+0,21,0,31,0,41,0,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,67,60,70,57,70,57,70,57,71,56,74,53,74,53,74,53,74,53,74,53,77,51,79,49,79,49,79,49,79,49,79,49,79,49,79,49,79,
+69,11,65,14,62,16,58,17,56,20,53,22,51,24,50,26,48,28,46,29,46,32,45,33,43,34,43,36,42,37,42,39,40,40,40,42,40,44,39,44,
+0,179,0,174,0,169,0,164,0,160,0,155,0,152,0,148,0,145,0,142,1,140,1,137,2,135,2,134,2,132,3,130,3,128,4,127,5,126,5,124,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,153,0,147,
+0,139,0,130,0,119,0,108,0,96,0,84,0,73,0,61,0,51,0,41,0,31,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,94,0,93,0,89,0,83,0,75,0,66,0,55,0,44,0,32,0,20,0,9,0,0,1,
+0,12,0,22,0,31,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,66,61,70,57,70,57,70,57,70,57,74,54,74,53,74,53,74,53,74,53,75,52,78,50,79,49,79,49,79,49,79,49,79,49,79,49,79,
+70,11,66,13,62,16,59,17,56,19,54,22,52,23,50,25,48,27,48,29,46,30,45,32,45,34,43,35,43,37,42,37,42,40,40,40,40,42,40,44,
+0,179,0,174,0,170,0,165,0,161,0,157,0,153,0,150,0,147,0,144,0,141,1,139,2,137,2,135,2,133,2,131,3,130,3,128,4,127,5,126,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,157,0,154,0,149,
+0,141,0,133,0,123,0,113,0,102,0,91,0,80,0,70,0,59,0,49,0,40,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,0,93,0,90,0,85,0,78,0,69,0,60,0,49,0,38,0,27,0,17,0,6,0,
+0,3,0,13,0,23,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+61,66,61,66,61,69,58,70,57,70,57,70,57,72,55,74,53,74,53,74,53,74,53,74,53,76,52,79,49,79,49,79,49,79,49,79,49,79,49,79,
+70,11,66,13,62,15,60,17,57,19,55,21,52,22,51,24,50,26,48,28,46,29,46,32,45,32,44,34,43,35,43,37,42,38,42,40,40,40,40,42,
+0,180,0,175,0,170,0,166,0,162,0,158,0,154,0,151,0,148,0,145,0,142,1,140,1,138,2,136,2,134,2,133,2,131,3,130,3,128,4,127,
+35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,35,96,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,
+0,0,0,0,0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,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,8,0,14,0,18,0,21,0,23,0,25,0,26,0,27,0,27,0,28,0,28,0,29,0,50,0,43,0,26,0,6,
+0,13,0,14,0,18,0,21,0,23,0,25,0,26,0,27,0,27,0,28,0,28,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,205,0,175,0,110,0,49,0,30,4,18,7,10,9,4,10,0,11,0,15,0,18,0,20,
+0,22,0,23,0,24,0,25,210,0,188,0,141,0,95,0,61,0,37,0,20,0,9,0,0,0,0,5,0,9,0,13,0,16,0,18,0,20,0,21,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,6,0,12,0,15,0,18,0,21,0,22,0,24,0,25,0,26,0,26,0,27,0,44,0,40,0,28,0,13,
+0,0,0,6,0,12,0,15,0,18,0,21,0,22,0,24,0,25,0,26,0,26,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,212,0,193,0,147,0,95,0,48,0,34,3,23,6,15,7,10,9,5,10,2,11,0,12,
+0,15,0,17,0,19,0,21,215,0,201,0,168,0,129,0,95,0,68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,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,8,0,12,0,14,0,17,0,19,0,20,0,21,0,22,0,31,0,29,0,24,0,18,
+0,12,0,5,0,0,0,4,0,8,0,12,0,14,0,17,0,19,0,20,0,21,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,218,0,209,0,184,0,150,0,113,0,78,0,48,0,38,2,30,4,23,6,18,7,13,8,
+9,9,6,10,4,10,1,11,219,0,213,0,195,0,170,0,143,0,118,0,95,0,76,0,60,0,47,0,36,0,27,0,19,0,13,0,8,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,7,0,10,0,13,0,15,0,17,0,19,0,20,0,31,0,30,0,26,0,21,
+0,15,0,10,0,4,0,0,0,4,0,7,0,10,0,13,0,15,0,17,0,19,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,219,0,212,0,193,0,166,0,135,0,103,0,74,0,48,0,39,2,32,3,26,5,20,6,
+16,7,12,8,9,9,7,10,220,0,215,0,201,0,182,0,159,0,136,0,114,0,95,0,78,0,64,0,52,0,41,0,33,0,25,0,19,0,14,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,25,
+0,21,0,16,0,12,0,7,0,3,0,0,0,3,0,6,0,8,0,11,0,13,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,220,0,216,0,204,0,186,0,164,0,139,0,114,0,90,0,68,0,47,0,41,1,35,3,
+30,4,25,5,21,6,17,7,221,0,218,0,209,0,196,0,180,0,162,0,144,0,126,0,110,0,95,0,82,0,70,0,60,0,50,0,42,0,35,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,5,0,8,0,10,0,12,0,31,0,30,0,29,0,26,
+0,22,0,18,0,14,0,10,0,6,0,3,0,0,0,3,0,5,0,8,0,10,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,221,0,217,0,208,0,192,0,173,0,152,0,129,0,107,0,86,0,66,0,47,0,41,1,
+36,2,31,4,27,5,23,6,221,0,219,0,212,0,201,0,187,0,171,0,155,0,138,0,123,0,108,0,95,0,83,0,72,0,63,0,54,0,46,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,221,0,219,0,212,0,201,0,187,0,170,0,152,0,133,0,114,0,96,0,79,0,62,0,
+47,0,42,1,38,2,33,3,222,0,220,0,215,0,207,0,196,0,184,0,171,0,158,0,144,0,131,0,118,0,106,0,95,0,85,0,76,0,67,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,4,0,31,0,31,0,30,0,28,
+0,26,0,23,0,20,0,17,0,14,0,11,0,8,0,5,0,2,0,0,0,2,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,222,0,220,0,214,0,204,0,192,0,177,0,160,0,143,0,126,0,109,0,92,0,76,0,
+61,0,47,0,43,1,38,2,222,0,220,0,216,0,209,0,200,0,189,0,177,0,165,0,152,0,140,0,128,0,116,0,105,0,95,0,86,0,77,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+55,0,111,0,178,0,200,0,210,0,214,0,217,0,218,0,219,0,220,0,220,0,221,0,221,0,221,0,221,0,222,0,76,4,135,0,188,0,205,0,
+212,0,216,0,218,0,219,0,220,0,220,0,221,0,221,0,221,0,222,0,222,0,222,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,166,0,118,0,155,0,172,0,188,0,205,0,217,0,218,0,219,0,220,0,220,0,221,0,
+221,0,221,0,221,0,222,0,97,1,159,0,197,0,210,0,215,0,218,0,219,0,220,0,221,0,221,0,221,0,222,0,222,0,222,0,222,0,222,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,18,0,111,0,162,0,185,0,198,0,205,0,210,0,212,0,215,0,216,0,217,0,218,0,219,0,219,0,220,0,17,9,57,1,135,0,175,0,
+193,0,203,0,209,0,212,0,215,0,216,0,217,0,218,0,219,0,220,0,220,0,220,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,118,0,91,0,117,0,150,0,171,0,192,0,205,0,210,0,212,0,215,0,216,0,217,0,
+218,0,219,0,219,0,220,0,35,3,95,0,159,0,188,0,201,0,208,0,213,0,215,0,217,0,218,0,219,0,220,0,220,0,220,0,221,0,221,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,6,0,79,0,127,0,156,0,174,0,185,0,194,0,199,0,204,0,207,0,209,0,211,0,213,0,214,0,1,17,15,7,50,0,110,0,
+147,0,170,0,184,0,193,0,200,0,204,0,208,0,210,0,212,0,214,0,215,0,216,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155,0,117,0,43,0,91,0,127,0,155,0,174,0,185,0,194,0,199,0,204,0,207,0,
+209,0,211,0,213,0,214,0,3,9,31,0,95,0,141,0,168,0,184,0,195,0,201,0,206,0,209,0,212,0,214,0,215,0,216,0,217,0,218,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,2,0,60,0,102,0,130,0,151,0,165,0,176,0,184,0,190,0,195,0,199,0,202,0,205,0,0,23,2,12,25,5,49,0,
+95,0,127,0,150,0,166,0,178,0,186,0,192,0,197,0,201,0,204,0,206,0,208,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,0,150,0,91,0,19,0,65,0,102,0,130,0,151,0,165,0,176,0,184,0,190,0,
+195,0,199,0,202,0,205,0,0,19,4,1,50,0,95,0,129,0,153,0,170,0,182,0,190,0,196,0,201,0,204,0,207,0,209,0,211,0,212,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,1,0,47,0,84,0,111,0,132,0,147,0,160,0,169,0,177,0,183,0,188,0,192,0,0,27,0,18,11,9,30,4,
+48,0,85,0,113,0,135,0,151,0,164,0,173,0,181,0,187,0,192,0,195,0,199,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,188,0,171,0,127,0,65,0,3,0,47,0,84,0,111,0,132,0,147,0,160,0,169,0,
+177,0,183,0,188,0,192,0,0,24,0,10,22,0,61,0,95,0,122,0,143,0,159,0,171,0,180,0,187,0,192,0,196,0,200,0,203,0,205,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,1,0,39,0,71,0,96,0,116,0,132,0,145,0,156,0,164,0,171,0,177,0,0,28,0,23,3,11,18,7,
+34,3,48,0,78,0,103,0,123,0,139,0,152,0,162,0,170,0,177,0,182,0,187,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,205,0,192,0,155,0,102,0,47,0,2,0,39,0,71,0,96,0,116,0,132,0,145,0,
+156,0,164,0,171,0,177,0,0,26,0,17,6,0,37,0,68,0,95,0,118,0,136,0,150,0,162,0,171,0,178,0,184,0,189,0,193,0,197,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,61,0,85,0,104,0,120,0,133,0,144,0,153,0,160,0,0,29,0,25,0,14,10,9,
+23,6,36,2,48,0,74,0,96,0,114,0,129,0,142,0,152,0,160,0,168,0,174,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,217,0,205,0,174,0,130,0,84,0,39,0,1,0,33,0,61,0,85,0,104,0,120,0,
+133,0,144,0,153,0,160,0,0,28,0,21,0,3,20,0,47,0,73,0,95,0,114,0,130,0,144,0,155,0,164,0,171,0,177,0,183,0,187,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,0,54,0,75,0,93,0,109,0,122,0,133,0,142,0,0,30,0,27,0,18,4,10,
+15,7,27,5,38,2,48,0,70,0,90,0,107,0,121,0,133,0,143,0,152,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,218,0,210,0,185,0,151,0,111,0,71,0,33,0,1,0,29,0,54,0,75,0,93,0,
+109,0,122,0,133,0,142,0,0,29,0,24,0,10,9,0,31,0,54,0,76,0,95,0,112,0,126,0,138,0,149,0,158,0,165,0,171,0,177,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,48,0,68,0,85,0,100,0,112,0,123,0,0,30,0,28,0,21,0,11,
+10,9,20,6,30,4,39,2,48,0,68,0,86,0,101,0,114,0,126,0,136,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,219,0,212,0,194,0,165,0,132,0,96,0,61,0,29,0,0,0,25,0,48,0,68,0,
+85,0,100,0,112,0,123,0,0,29,0,26,0,15,0,0,20,0,40,0,60,0,78,0,95,0,110,0,123,0,134,0,144,0,152,0,160,0,166,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,43,0,62,0,78,0,92,0,104,0,0,30,0,28,0,23,0,15,
+5,10,14,8,23,6,32,3,40,1,47,0,66,0,82,0,96,0,109,0,120,0,130,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,220,0,215,0,199,0,176,0,147,0,116,0,85,0,54,0,25,0,0,0,23,0,43,0,
+62,0,78,0,92,0,104,0,0,30,0,27,0,18,0,5,11,0,28,0,47,0,64,0,80,0,95,0,108,0,120,0,131,0,140,0,148,0,155,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,40,0,57,0,72,0,85,0,0,31,0,29,0,25,0,18,
+2,11,9,9,18,7,26,5,33,3,41,1,47,0,64,0,79,0,92,0,104,0,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,220,0,216,0,204,0,184,0,160,0,132,0,104,0,75,0,48,0,23,0,0,0,21,0,
+40,0,57,0,72,0,85,0,0,30,0,28,0,20,0,9,4,0,19,0,36,0,52,0,67,0,82,0,95,0,107,0,118,0,128,0,136,0,144,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,36,0,52,0,66,0,0,31,0,29,0,26,0,20,
+0,12,6,10,13,8,20,6,28,4,35,3,41,1,47,0,62,0,76,0,89,0,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,221,0,217,0,207,0,190,0,169,0,145,0,120,0,93,0,68,0,43,0,21,0,0,0,
+19,0,36,0,52,0,66,0,0,30,0,28,0,22,0,13,0,1,12,0,27,0,41,0,56,0,70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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,31,0,0,31,0,30,0,27,0,23,
+0,17,0,11,6,10,12,8,19,7,25,5,31,4,37,2,42,1,47,0,60,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,221,0,219,0,211,0,199,0,183,0,164,0,144,0,122,0,100,0,78,0,57,0,36,0,
+17,0,0,0,16,0,31,0,0,31,0,29,0,25,0,18,0,9,1,0,13,0,25,0,38,0,50,0,63,0,74,0,85,0,95,0,105,0,113,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,31,0,30,0,28,0,24,
+0,19,0,13,4,10,9,9,15,8,21,6,27,5,32,3,38,2,43,1,47,0,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,221,0,219,0,213,0,202,0,188,0,171,0,153,0,133,0,112,0,92,0,72,0,52,0,
+34,0,16,0,0,0,15,0,0,31,0,29,0,26,0,20,0,12,0,2,8,0,19,0,31,0,42,0,54,0,65,0,76,0,86,0,95,0,104,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,12,0,9,0,
+6,0,4,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,55,0,111,0,178,0,200,0,210,0,214,0,217,0,218,0,219,0,220,0,220,0,221,0,221,0,221,0,221,0,222,0,166,0,118,0,155,0,172,
+0,188,0,205,0,217,0,218,0,219,0,220,0,220,0,221,0,221,0,221,0,221,0,222,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,76,0,135,0,188,0,205,0,212,0,216,0,218,0,219,0,220,0,220,0,221,0,221,
+0,221,0,222,0,222,0,222,1,97,0,159,0,197,0,210,0,215,0,218,0,219,0,220,0,221,0,221,0,221,0,222,0,222,0,222,0,222,0,222,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,18,0,111,0,162,0,185,0,198,0,205,0,210,0,212,0,215,0,216,0,217,0,218,0,219,0,219,0,220,0,118,0,91,0,117,0,150,
+0,171,0,192,0,205,0,210,0,212,0,215,0,216,0,217,0,218,0,219,0,219,0,220,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,17,1,57,0,135,0,175,0,193,0,203,0,209,0,212,0,215,0,216,0,217,0,218,
+0,219,0,220,0,220,0,220,3,35,0,95,0,159,0,188,0,201,0,208,0,213,0,215,0,217,0,218,0,219,0,220,0,220,0,220,0,221,0,221,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,6,0,79,0,127,0,156,0,174,0,185,0,194,0,199,0,204,0,207,0,209,0,211,0,213,0,214,0,155,0,117,0,43,0,91,
+0,127,0,155,0,174,0,185,0,194,0,199,0,204,0,207,0,209,0,211,0,213,0,214,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,1,7,15,0,50,0,110,0,147,0,170,0,184,0,193,0,200,0,204,0,208,0,210,
+0,212,0,214,0,215,0,216,9,3,0,31,0,95,0,141,0,168,0,184,0,195,0,201,0,206,0,209,0,212,0,214,0,215,0,216,0,217,0,218,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,2,0,60,0,102,0,130,0,151,0,165,0,176,0,184,0,190,0,195,0,199,0,202,0,205,0,172,0,150,0,91,0,19,
+0,65,0,102,0,130,0,151,0,165,0,176,0,184,0,190,0,195,0,199,0,202,0,205,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,12,2,5,25,0,49,0,95,0,127,0,150,0,166,0,178,0,186,0,192,0,197,
+0,201,0,204,0,206,0,208,19,0,1,4,0,50,0,95,0,129,0,153,0,170,0,182,0,190,0,196,0,201,0,204,0,207,0,209,0,211,0,212,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,1,0,47,0,84,0,111,0,132,0,147,0,160,0,169,0,177,0,183,0,188,0,192,0,188,0,171,0,127,0,65,
+0,3,0,47,0,84,0,111,0,132,0,147,0,160,0,169,0,177,0,183,0,188,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,0,18,0,9,11,4,30,0,48,0,85,0,113,0,135,0,151,0,164,0,173,0,181,
+0,187,0,192,0,195,0,199,24,0,10,0,0,22,0,61,0,95,0,122,0,143,0,159,0,171,0,180,0,187,0,192,0,196,0,200,0,203,0,205,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,1,0,39,0,71,0,96,0,116,0,132,0,145,0,156,0,164,0,171,0,177,0,205,0,192,0,155,0,102,
+0,47,0,2,0,39,0,71,0,96,0,116,0,132,0,145,0,156,0,164,0,171,0,177,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,23,0,11,3,7,18,3,34,0,48,0,78,0,103,0,123,0,139,0,152,0,162,
+0,170,0,177,0,182,0,187,26,0,17,0,0,6,0,37,0,68,0,95,0,118,0,136,0,150,0,162,0,171,0,178,0,184,0,189,0,193,0,197,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,61,0,85,0,104,0,120,0,133,0,144,0,153,0,160,0,217,0,205,0,174,0,130,
+0,84,0,39,0,1,0,33,0,61,0,85,0,104,0,120,0,133,0,144,0,153,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,0,25,0,14,0,9,10,6,23,2,36,0,48,0,74,0,96,0,114,0,129,0,142,
+0,152,0,160,0,168,0,174,28,0,21,0,3,0,0,20,0,47,0,73,0,95,0,114,0,130,0,144,0,155,0,164,0,171,0,177,0,183,0,187,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,0,54,0,75,0,93,0,109,0,122,0,133,0,142,0,218,0,210,0,185,0,151,
+0,111,0,71,0,33,0,1,0,29,0,54,0,75,0,93,0,109,0,122,0,133,0,142,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,30,0,27,0,18,0,10,4,7,15,5,27,2,38,0,48,0,70,0,90,0,107,0,121,
+0,133,0,143,0,152,0,160,29,0,24,0,10,0,0,9,0,31,0,54,0,76,0,95,0,112,0,126,0,138,0,149,0,158,0,165,0,171,0,177,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,48,0,68,0,85,0,100,0,112,0,123,0,219,0,212,0,194,0,165,
+0,132,0,96,0,61,0,29,0,0,0,25,0,48,0,68,0,85,0,100,0,112,0,123,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,30,0,28,0,21,0,11,0,9,10,6,20,4,30,2,39,0,48,0,68,0,86,0,101,
+0,114,0,126,0,136,0,145,29,0,26,0,15,0,0,0,0,20,0,40,0,60,0,78,0,95,0,110,0,123,0,134,0,144,0,152,0,160,0,166,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,30,0,30,0,30,0,31,0,31,0,31,0,31,0,31,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,43,0,52,0,50,0,44,0,36,0,31,0,31,0,31,0,31,0,31,0,31,0,
+31,0,31,0,31,0,31,0,1,97,3,35,9,3,19,0,24,0,26,0,28,0,29,0,29,0,30,0,30,0,30,0,30,0,31,0,31,0,31,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,2,0,15,0,23,0,26,0,28,0,29,0,30,0,30,0,30,0,30,0,31,0,31,0,31,0,31,0,31,0,0,135,1,57,7,15,12,2,
+18,0,23,0,25,0,27,0,28,0,28,0,29,0,29,0,30,0,30,0,30,0,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,0,33,0,39,0,43,0,40,0,33,0,29,0,30,0,30,0,30,0,30,0,31,0,
+31,0,31,0,31,0,31,0,0,159,0,95,0,31,1,4,10,0,17,0,21,0,24,0,26,0,27,0,28,0,28,0,29,0,29,0,29,0,30,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,6,0,9,0,12,0,14,0,16,0,17,0,0,220,0,215,0,200,0,178,
+0,151,0,123,0,96,0,70,0,48,1,40,3,33,4,28,6,23,7,19,8,15,8,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,30,0,27,0,23,0,18,0,13,0,8,0,4,0,0,0,3,0,6,0,9,0,
+12,0,14,0,16,0,17,0,0,221,0,217,0,206,0,190,0,171,0,150,0,130,0,112,0,95,0,80,0,67,0,56,0,46,0,38,0,31,0,24,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,6,0,8,0,11,0,13,0,14,0,0,220,0,216,0,204,0,186,
+0,164,0,139,0,114,0,90,0,68,0,47,1,41,3,35,4,30,5,25,6,21,7,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,30,0,28,0,25,0,21,0,16,0,12,0,7,0,3,0,0,0,3,0,6,0,
+8,0,11,0,13,0,14,0,0,221,0,218,0,209,0,196,0,180,0,162,0,144,0,126,0,110,0,95,0,82,0,70,0,60,0,50,0,42,0,35,
+0,0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,0,0,2,0,5,0,7,0,9,0,0,221,0,218,0,210,0,197,
+0,181,0,162,0,142,0,121,0,101,0,82,0,64,0,47,1,42,2,37,3,32,4,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,31,0,29,0,27,0,24,0,20,0,17,0,13,0,9,0,6,0,3,0,0,0,
+2,0,5,0,7,0,9,0,0,222,0,220,0,214,0,204,0,192,0,178,0,164,0,149,0,134,0,120,0,107,0,95,0,84,0,74,0,65,0,57,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,4,0,6,0,0,221,0,219,0,212,0,201,
+0,187,0,170,0,152,0,133,0,114,0,96,0,79,0,62,0,47,1,42,2,38,3,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,31,0,29,0,27,0,25,0,22,0,19,0,15,0,12,0,8,0,5,0,2,0,
+0,0,2,0,4,0,6,0,0,222,0,220,0,215,0,207,0,196,0,184,0,171,0,158,0,144,0,131,0,118,0,106,0,95,0,85,0,76,0,67,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0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,47,1,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,31,0,30,0,28,0,26,0,24,0,21,0,19,0,16,0,13,0,10,0,7,0,
+4,0,2,0,0,0,2,0,0,222,0,221,0,217,0,211,0,203,0,193,0,183,0,171,0,160,0,148,0,136,0,125,0,115,0,105,0,95,0,86,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,222,0,220,0,216,0,208,
+0,199,0,187,0,174,0,160,0,145,0,130,0,115,0,100,0,86,0,72,0,59,0,47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,31,0,30,0,29,0,27,0,25,0,22,0,20,0,17,0,14,0,12,0,9,0,
+6,0,4,0,2,0,0,0,0,222,0,221,0,218,0,212,0,205,0,197,0,187,0,177,0,166,0,155,0,144,0,133,0,123,0,113,0,104,0,95,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
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,0,46,0,57,
+0,67,0,77,0,86,0,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
+};
+const uint8_t kSearchTex[kSearchTexBytes]={
+254,254,0,127,127,0,0,254,254,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,
+127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,254,254,0,127,127,0,0,254,254,0,127,127,0,0,0,0,
+0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,254,254,0,127,127,0,0,254,
+254,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,127,127,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,254,254,0,127,127,0,0,254,254,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,
+127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,
+127,127,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,
+127,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,127,127,0,0,0,0,0,127,127,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+127,127,0,127,127,0,0,127,127,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,127,127,0,0,0,0,0,
+127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,0,0,0,0,
+0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,127,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
+};
+}
diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cpp
index 936d2d7c..f080c9ab 100644
--- a/src/ui/QmlPlayerBridge.cpp
+++ b/src/ui/QmlPlayerBridge.cpp
@@ -1764,6 +1764,8 @@ QVariantList QmlPlayerBridge::stageTimings() const {
struct Row { const char* label; Stage stage; const char* color; };
const Row rows[] = {
{"输入", Stage::Color, "#A8A8B8"},
+ {"抗锯齿", Stage::AaNode0, "#7FD4FF"},
+ {"抗锯齿 2", Stage::AaNode1, "#A9E2FF"},
{"超分", Stage::Sr, "#6EA8FF"},
{"光流", Stage::Flow, "#9A85FF"},
{"NR采样", Stage::Nr, "#FF8A3D"},
@@ -1783,6 +1785,7 @@ QVariantList QmlPlayerBridge::stageTimings() const {
static const char* const layerLabels[] = {"NR 第1层", "NR 第2层", "NR 第3层", "NR 第4层"};
static const char* const layerColors[] = {"#FF8A3D", "#FFA866", "#FFC28F", "#FFD9B8"};
for (const auto& r : rows) {
+ if ((r.stage == Stage::AaNode0 || r.stage == Stage::AaNode1) && s.metrics.flow.gpuTiming[size_t(r.stage)].samples == 0) continue;
if (r.stage == Stage::Nr && measuredLayers >= 2) {
for (unsigned i = 0; i < diagnostics::kTimedNrLayers; ++i)
if (s.metrics.flow.gpuTiming[size_t(diagnostics::nrLayerStage(i))].samples > 0)
@@ -1863,7 +1866,7 @@ QVariantMap QmlPlayerBridge::nodeTimings() const {
for (const int i : path) onPath[size_t(i)] = true;
for (uint32_t i = 0; i < c.nodeCount; ++i)
if (!onPath[i]) publish(i, draft ? QStringLiteral("draft") : QStringLiteral("idle"), std::nullopt);
- unsigned enabledNr = 0, colour = 0;
+ unsigned enabledNr = 0, colour = 0, antiAlias = 0;
for (const int index : path) {
const auto i = uint32_t(index);
const auto& n = c.nodes[i];
@@ -1882,6 +1885,11 @@ QVariantMap QmlPlayerBridge::nodeTimings() const {
if (colour == 0) waiting = live ? QStringLiteral("fused") : waiting;
++colour;
break;
+ case engine::EffectType::AntiAliasing:
+ // Indexed by parameter ordinal, like Color: every anti-aliasing node on the path counts.
+ if (antiAlias < diagnostics::kTimedAaNodes) stage = diagnostics::aaNodeStage(antiAlias);
+ ++antiAlias;
+ break;
case engine::EffectType::SuperResolution: stage = Stage::Sr; break;
case engine::EffectType::VideoHdr:
stage = Stage::VideoHdr;
@@ -5312,6 +5320,129 @@ void QmlPlayerBridge::setVideoHdr(bool enabled) {
}
// RTX Video HDR tuning lives on the chain's HDR node, like NR parameters on
// NR nodes: the same values AppShell's settings sliders edited.
+namespace {
+// Spatial anti-aliasing (#53): one node's values for the editors, and the edits they send.
+QString antiAliasSummary(const engine::AntiAliasSettings& a) {
+ using engine::AntiAliasMethod;
+ if (a.method == AntiAliasMethod::Mlaa)
+ return QStringLiteral("MLAA · ") + QmlPlayerBridge::tr("阈值 %1").arg(double(a.mlaaThreshold), 0, 'f', 2);
+ const QStringList fxaa{QmlPlayerBridge::tr("中"), QmlPlayerBridge::tr("高"), QmlPlayerBridge::tr("极高")};
+ const QStringList smaa{QmlPlayerBridge::tr("低"), QmlPlayerBridge::tr("中"), QmlPlayerBridge::tr("高"), QmlPlayerBridge::tr("极高")};
+ QString text = a.method == AntiAliasMethod::Fxaa ? QStringLiteral("FXAA · ") + fxaa.value(int(a.quality))
+ : QStringLiteral("SMAA · ") + smaa.value(int(a.quality));
+ if (a.usesTemporal())
+ text += a.temporal == engine::AntiAliasTemporal::T2x ? QmlPlayerBridge::tr(" · 时域 T2x(实验)") : QmlPlayerBridge::tr(" · 时域 4x(实验)");
+ return text;
+}
+QVariantMap antiAliasMap(const engine::ChainNode* node, int index) {
+ const engine::AntiAliasSettings a = node ? node->aa : engine::AntiAliasSettings{};
+ return {{"index", index}, {"present", node != nullptr}, {"enabled", node && node->enabled},
+ {"method", int(a.method)}, {"quality", int(a.quality)},
+ {"mlaaThreshold", double(a.mlaaThreshold)}, {"mlaaStrength", double(a.mlaaStrength)},
+ {"temporal", int(a.temporal)}, {"historyWeight", double(a.historyWeight)},
+ {"historyRejection", double(a.historyRejection)}, {"summary", antiAliasSummary(a)}};
+}
+// A method change starts from its high tier; the experimental modes keep Magpie's
+// history defaults (T2x 0.5, 4x 0.75) unless the weight was tuned.
+uint8_t defaultAntiAliasQuality(engine::AntiAliasMethod method) {
+ return method == engine::AntiAliasMethod::Fxaa ? 1 : method == engine::AntiAliasMethod::Smaa ? 2 : 0;
+}
+float defaultHistoryWeight(engine::AntiAliasTemporal temporal) {
+ return temporal == engine::AntiAliasTemporal::X4 ? 0.75f : 0.5f;
+}
+bool applyAntiAliasKey(engine::AntiAliasSettings& a, bool& enabled, const QString& key, double value) {
+ using engine::AntiAliasMethod; using engine::AntiAliasTemporal;
+ if (!std::isfinite(value)) return false;
+ const int whole = int(std::lround(value));
+ if (key == "enabled") { enabled = value != 0; return true; }
+ if (key == "method") {
+ if (whole < 0 || whole > 2) return false;
+ const auto method = AntiAliasMethod(whole);
+ if (method != a.method) { a.method = method; a.quality = defaultAntiAliasQuality(method); }
+ if (method != AntiAliasMethod::Smaa) a.temporal = AntiAliasTemporal::Off;
+ return true;
+ }
+ if (key == "quality") {
+ if (whole < 0 || whole >= int(engine::antiAliasQualityCount(a.method))) return false;
+ a.quality = uint8_t(whole); return true;
+ }
+ if (key == "temporal") {
+ if (whole < 0 || whole > 2 || (whole && a.method != AntiAliasMethod::Smaa)) return false;
+ const auto next = AntiAliasTemporal(whole);
+ if (next != a.temporal && a.historyWeight == defaultHistoryWeight(a.temporal)) a.historyWeight = defaultHistoryWeight(next);
+ a.temporal = next; return true;
+ }
+ if (key == "mlaaThreshold") { a.mlaaThreshold = float(value); return true; }
+ if (key == "mlaaStrength") { a.mlaaStrength = float(value); return true; }
+ if (key == "historyWeight") { a.historyWeight = float(value); return true; }
+ if (key == "historyRejection") { a.historyRejection = float(value); return true; }
+ return false;
+}
+}
+bool QmlPlayerBridge::antiAliasEnabled() const {
+ const auto* node = impl_->chain.firstOf(engine::EffectType::AntiAliasing);
+ return node && node->enabled;
+}
+void QmlPlayerBridge::setAntiAliasEnabled(bool enabled) {
+ if (enabled != antiAliasEnabled()) (void)setAntiAliasParameter(QStringLiteral("enabled"), enabled ? 1 : 0);
+}
+QVariantMap QmlPlayerBridge::antiAliasParams() const {
+ for (uint32_t i = 0; i < impl_->chain.nodeCount; ++i)
+ if (impl_->chain.nodes[i].type == engine::EffectType::AntiAliasing) return antiAliasMap(&impl_->chain.nodes[i], int(i));
+ return antiAliasMap(nullptr, -1);
+}
+QVariantMap QmlPlayerBridge::antiAliasParamsAt(int index) const {
+ if (index < 0 || uint32_t(index) >= impl_->chain.nodeCount ||
+ impl_->chain.nodes[index].type != engine::EffectType::AntiAliasing) return antiAliasMap(nullptr, -1);
+ return antiAliasMap(&impl_->chain.nodes[index], index);
+}
+bool QmlPlayerBridge::setAntiAliasParameter(const QString& key, double value) {
+ auto& c = impl_->chain;
+ for (uint32_t i = 0; i < c.nodeCount; ++i)
+ if (c.nodes[i].type == engine::EffectType::AntiAliasing) return setAntiAliasParameterAt(int(i), key, value);
+ if (c.mode != engine::ChainMode::List) { emit notice(tr("请先添加抗锯齿节点"), true); return false; }
+ // The list card's instance exists once it is used: after the grades, in
+ // front of SR, where toChain() puts it.
+ engine::ChainNode node; node.type = engine::EffectType::AntiAliasing;
+ bool enabled = false;
+ if (!applyAntiAliasKey(node.aa, enabled, key, value)) return false;
+ node.enabled = node.aa.enabled = enabled;
+ if (!node.aa.validate().empty()) return false;
+ if (c.nodeCount >= engine::kMaxChainNodes) { emit notice(tr("效果链已满"), true); return false; }
+ uint32_t insertAt = 0;
+ while (insertAt < c.nodeCount && c.nodes[insertAt].type == engine::EffectType::Color) ++insertAt;
+ const auto before = std::make_unique<engine::EffectChain>(c);
+ const int selected = impl_->selectedNr, colourSelected = impl_->selectedColour;
+ for (uint32_t i = c.nodeCount; i > insertAt; --i) c.nodes[i] = c.nodes[i - 1];
+ c.nodes[insertAt] = node; ++c.nodeCount;
+ if (impl_->selectedNr >= int(insertAt)) ++impl_->selectedNr;
+ if (impl_->selectedColour >= int(insertAt)) ++impl_->selectedColour;
+ if (!impl_->revalidate(true)) {
+ const auto error = impl_->validation.message;
+ c = *before; impl_->selectedNr = selected; impl_->selectedColour = colourSelected; impl_->revalidate();
+ emit notice(uiText(error), true); return false;
+ }
+ emit settingsChanged(); emitChainChanged();
+ return true;
+}
+bool QmlPlayerBridge::setAntiAliasParameterAt(int index, const QString& key, double value) {
+ auto& c = impl_->chain;
+ if (index < 0 || uint32_t(index) >= c.nodeCount || c.nodes[index].type != engine::EffectType::AntiAliasing) return false;
+ auto& node = c.nodes[index];
+ const auto before = node; const bool wasValid = chainValid();
+ bool enabled = node.enabled;
+ if (!applyAntiAliasKey(node.aa, enabled, key, value)) return false;
+ node.enabled = node.aa.enabled = enabled;
+ if (!node.aa.validate().empty()) { node = before; return false; }
+ if (node == before) return true;
+ const bool accepted = impl_->revalidate(true);
+ if (!accepted) { const auto error = impl_->validation.message; node = before; impl_->revalidate(); emit notice(uiText(error), true); }
+ emit settingsChanged();
+ // The switch also strikes the chip through; parameters notify only their group.
+ if (before.enabled != node.enabled) emitChainChanged();
+ else emitParameterChanged(&QmlPlayerBridge::antiAliasChanged, wasValid);
+ return accepted;
+}
QVariantMap QmlPlayerBridge::videoHdrParams() const {
for (uint32_t i = 0; i < impl_->chain.nodeCount; ++i)
if (impl_->chain.nodes[i].type == engine::EffectType::VideoHdr) {
@@ -5708,7 +5839,7 @@ QVariantList QmlPlayerBridge::effectCatalog() const {
QString QmlPlayerBridge::chainError() const { return uiText(impl_->validation.message); }
void QmlPlayerBridge::emitChainChanged() {
emit chainChanged(); emit nrLayersChanged(); emit videoHdrParamsChanged();
- emit colourParamsChanged(); emit protectionChanged();
+ emit antiAliasChanged(); emit colourParamsChanged(); emit protectionChanged();
}
// Every chainChanged re-evaluated all chain-bound bindings on every page (the pro
// and node pages stay loaded) and repainted the node wires: 65-80 ms of interface
diff --git a/tests/integration/AntiAliasGpuTests.cpp b/tests/integration/AntiAliasGpuTests.cpp
new file mode 100644
index 00000000..da12b9d8
--- /dev/null
+++ b/tests/integration/AntiAliasGpuTests.cpp
@@ -0,0 +1,632 @@
+// GPU checks for the spatial anti-aliasing effect (#53), one case per process
+// (like veyra_effect_slot_regression_tests):
+//
+// veyra_anti_alias_gpu_tests.exe --list
+// veyra_anti_alias_gpu_tests.exe --case <name>
+//
+// sdr-*: an aliased synthetic picture (rotated rectangle, circle, thin lines on
+// a flat background) runs through the real graph with one method / tier. Flat
+// areas must stay bit-identical to the effect switched off, edges must change,
+// and the edge error against a 16x16 supersampled linear-light reference must
+// drop. hdr-*: P010 PQ input, scRGB output: no NaN/Inf, flat highlights and
+// out-of-709 (negative) colours unchanged, edges changed. temporal-*: a reset
+// frame is deterministic, later frames use the history. node-*: real NGX SR /
+// NR graphs with anti-aliasing in node slots. tiled-image: the tiled
+// full-resolution image path (no compiled plan) matches one whole-image graph.
+// timing-*: GPU milliseconds of the anti-aliasing span per method.
+// VEYRA_AA_GPU_DEBUG=1 enables the D3D12 debug layer and fails on its errors.
+#include "veyra/engine/PreviewGpuSession.h"
+#include "veyra/engine/GraphDescription.h"
+#include "veyra/engine/EffectChain.h"
+#include "veyra/engine/TiledImageProcessor.h"
+#include "veyra/sink/ImageExportSink.h"
+#include "veyra/RuntimePaths.h"
+#include <d3d12sdklayers.h>
+#include <DirectXPackedVector.h>
+#include <algorithm>
+#include <atomic>
+#include <cmath>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <format>
+#include <functional>
+#include <iostream>
+#include <memory>
+#include <optional>
+#include <string>
+#include <string_view>
+#include <vector>
+extern "C" {
+#include <libavutil/frame.h>
+#include <libavutil/pixfmt.h>
+}
+
+namespace {
+using namespace veyra;
+using engine::AntiAliasMethod;
+using engine::AntiAliasSettings;
+using engine::AntiAliasTemporal;
+using engine::EffectType;
+
+constexpr double kPi = 3.14159265358979323846;
+int failures = 0;
+void check(bool ok, const std::string& label) {
+ std::printf("%s %s\n", ok ? "PASS" : "FAIL", label.c_str());
+ if (!ok) ++failures;
+}
+double srgbToLinear(double c) { return c <= 0.04045 ? c / 12.92 : std::pow((c + 0.055) / 1.055, 2.4); }
+double linearToSrgb(double l) {
+ l = std::clamp(l, 0.0, 1.0);
+ return l <= 0.0031308 ? 12.92 * l : 1.055 * std::pow(l, 1.0 / 2.4) - 0.055;
+}
+
+// ---- synthetic scene -----------------------------------------------------------
+// Laid out on 640x360 and scaled; thin lines stay one pixel wide.
+struct Scene {
+ unsigned width = 640, height = 360;
+ double s = 1.0;
+ // Worst case for the edge searches: thin rotated stripes everywhere (timing only).
+ bool dense = false;
+ explicit Scene(unsigned w = 640, unsigned h = 360, bool stripes = false) : width(w), height(h), s(double(w) / 640.0), dense(stripes) {}
+ bool rectangle(double x, double y) const {
+ const double a = 15 * kPi / 180, c = std::cos(a), sn = std::sin(a);
+ const double dx = x - 200 * s, dy = y - 180 * s, u = dx * c + dy * sn, v = -dx * sn + dy * c;
+ return std::abs(u) <= 95 * s && std::abs(v) <= 62 * s;
+ }
+ bool circle(double x, double y) const { const double dx = x - 470 * s, dy = y - 115 * s; return dx * dx + dy * dy <= 58 * 58 * s * s; }
+ static double segment(double x, double y, double ax, double ay, double bx, double by) {
+ const double vx = bx - ax, vy = by - ay, t = std::clamp(((x - ax) * vx + (y - ay) * vy) / (vx * vx + vy * vy), 0.0, 1.0);
+ const double px = ax + t * vx - x, py = ay + t * vy - y;
+ return std::sqrt(px * px + py * py);
+ }
+ bool line(double x, double y) const {
+ return segment(x, y, 380 * s, 235 * s, 620 * s, 300 * s) <= 0.5 || segment(x, y, 400 * s, 345 * s, 455 * s, 205 * s) <= 0.5;
+ }
+ // 0 background, 1 rectangle / circle, 2 thin line
+ int label(double x, double y) const {
+ if (dense) return int(std::floor((x * 0.9659 + y * 0.2588) / 3.0)) & 1; // 3 px stripes at 15 degrees
+ return rectangle(x, y) || circle(x, y) ? 1 : line(x, y) ? 2 : 0;
+ }
+ int pixel(unsigned x, unsigned y) const { return label(x + 0.5, y + 0.5); }
+};
+// Fraction of 16x16 subsamples per group (rectangle+circle, lines).
+struct Coverage { std::vector<float> shape, line; };
+Coverage supersample(const Scene& scene) {
+ Coverage c; c.shape.assign(size_t(scene.width) * scene.height, 0); c.line = c.shape;
+ constexpr int n = 16;
+ for (unsigned y = 0; y < scene.height; ++y)
+ for (unsigned x = 0; x < scene.width; ++x) {
+ int shape = 0, line = 0;
+ for (int j = 0; j < n; ++j)
+ for (int i = 0; i < n; ++i) {
+ const int l = scene.label(x + (i + 0.5) / n, y + (j + 0.5) / n);
+ shape += l == 1; line += l == 2;
+ }
+ c.shape[size_t(y) * scene.width + x] = float(shape) / (n * n);
+ c.line[size_t(y) * scene.width + x] = float(line) / (n * n);
+ }
+ return c;
+}
+// A pixel is flat when its 9x9 neighbourhood in the aliased input has one label.
+std::vector<uint8_t> flatMask(const Scene& scene) {
+ std::vector<int> labels(size_t(scene.width) * scene.height);
+ for (unsigned y = 0; y < scene.height; ++y)
+ for (unsigned x = 0; x < scene.width; ++x) labels[size_t(y) * scene.width + x] = scene.pixel(x, y);
+ std::vector<uint8_t> flat(labels.size(), 0);
+ for (int y = 4; y + 4 < int(scene.height); ++y)
+ for (int x = 4; x + 4 < int(scene.width); ++x) {
+ const int l = labels[size_t(y) * scene.width + x];
+ bool same = true;
+ for (int dy = -4; dy <= 4 && same; ++dy)
+ for (int dx = -4; dx <= 4 && same; ++dx) same = labels[size_t(y + dy) * scene.width + x + dx] == l;
+ flat[size_t(y) * scene.width + x] = same;
+ }
+ return flat;
+}
+
+constexpr uint8_t kBackground[3] = {30, 45, 70}, kShape[3] = {230, 200, 120}, kLine[3] = {240, 240, 235};
+AVFrame* sdrFrame(const Scene& scene) {
+ AVFrame* f = av_frame_alloc();
+ if (!f) return nullptr;
+ f->format = AV_PIX_FMT_BGR0; f->width = int(scene.width); f->height = int(scene.height);
+ f->color_range = AVCOL_RANGE_UNSPECIFIED; f->color_trc = AVCOL_TRC_IEC61966_2_1; f->colorspace = AVCOL_SPC_RGB;
+ if (av_frame_get_buffer(f, 32) < 0) { av_frame_free(&f); return nullptr; }
+ for (unsigned y = 0; y < scene.height; ++y)
+ for (unsigned x = 0; x < scene.width; ++x) {
+ const int l = scene.pixel(x, y);
+ const uint8_t* c = l == 1 ? kShape : l == 2 ? kLine : kBackground;
+ auto* p = f->data[0] + size_t(y) * f->linesize[0] + size_t(x) * 4;
+ p[0] = c[2]; p[1] = c[1]; p[2] = c[0]; p[3] = 255;
+ }
+ return f;
+}
+// The supersampled reference, mixed in linear light and coded like the output.
+std::vector<double> reference(const Scene& scene, const Coverage& coverage) {
+ std::vector<double> out(size_t(scene.width) * scene.height * 3);
+ for (size_t i = 0; i < coverage.shape.size(); ++i)
+ for (unsigned c = 0; c < 3; ++c) {
+ const double bg = srgbToLinear(kBackground[c] / 255.0);
+ const double lin = bg + coverage.shape[i] * (srgbToLinear(kShape[c] / 255.0) - bg) +
+ coverage.line[i] * (srgbToLinear(kLine[c] / 255.0) - bg);
+ out[i * 3 + c] = linearToSrgb(lin) * 255.0;
+ }
+ return out;
+}
+
+// ---- HDR (P010 PQ BT.2020) ---------------------------------------------------------
+double pq(double nits) {
+ const double y = std::pow(std::clamp(nits / 10000.0, 0.0, 1.0), 2610.0 / 16384.0);
+ return std::pow((3424.0 / 4096.0 + 2413.0 / 128.0 * y) / (1 + 2392.0 / 128.0 * y), 2523.0 / 32.0);
+}
+struct Code10 { uint16_t y, cb, cr; };
+Code10 encode2020(double r, double g, double b) {
+ const double R = pq(r), G = pq(g), B = pq(b), Y = 0.2627 * R + 0.6780 * G + 0.0593 * B;
+ const auto q = [](double v) { return uint16_t(std::clamp(std::lround(v), 0l, 1023l)); };
+ return {q(64 + 876 * Y), q(512 + 896 * (B - Y) / 1.8814), q(512 + 896 * (R - Y) / 1.4746)};
+}
+// Dark background, a 1000-nit rectangle / circle / lines, and a flat out-of-709
+// green patch aligned to the 4:2:0 chroma grid.
+constexpr unsigned kPatchX0 = 24, kPatchY0 = 300, kPatchX1 = 88, kPatchY1 = 352;
+bool inPatch(unsigned x, unsigned y) { return x >= kPatchX0 && x < kPatchX1 && y >= kPatchY0 && y < kPatchY1; }
+AVFrame* hdrFrame(const Scene& scene) {
+ AVFrame* f = av_frame_alloc();
+ if (!f) return nullptr;
+ f->format = AV_PIX_FMT_P010; f->width = int(scene.width); f->height = int(scene.height);
+ f->color_range = AVCOL_RANGE_MPEG; f->colorspace = AVCOL_SPC_BT2020_NCL; f->color_primaries = AVCOL_PRI_BT2020;
+ f->color_trc = AVCOL_TRC_SMPTE2084;
+ if (av_frame_get_buffer(f, 32) < 0) { av_frame_free(&f); return nullptr; }
+ const Code10 dark = encode2020(2, 2, 2), bright = encode2020(1000, 1000, 1000), green = encode2020(8, 120, 8);
+ for (unsigned y = 0; y < scene.height; ++y)
+ for (unsigned x = 0; x < scene.width; ++x) {
+ const Code10 c = inPatch(x, y) ? green : scene.pixel(x, y) ? bright : dark;
+ reinterpret_cast<uint16_t*>(f->data[0] + size_t(y) * f->linesize[0])[x] = uint16_t(c.y << 6);
+ }
+ for (unsigned y = 0; y < scene.height / 2; ++y)
+ for (unsigned x = 0; x < scene.width / 2; ++x) {
+ const Code10 c = inPatch(x * 2, y * 2) ? green : dark; // neutral elsewhere
+ auto* row = reinterpret_cast<uint16_t*>(f->data[1] + size_t(y) * f->linesize[1]);
+ row[x * 2] = uint16_t(c.cb << 6); row[x * 2 + 1] = uint16_t(c.cr << 6);
+ }
+ return f;
+}
+
+AntiAliasSettings aa(AntiAliasMethod method, uint8_t quality, AntiAliasTemporal temporal = AntiAliasTemporal::Off) {
+ AntiAliasSettings a; a.enabled = true; a.method = method; a.quality = quality; a.temporal = temporal;
+ return a;
+}
+
+// ---- graph without NGX ----------------------------------------------------------------
+struct Gpu {
+ gfx::D3D12DeviceContext ctx; gfx::CommandSlotRing ring;
+ std::unique_ptr<pipeline::EnhanceGraph> graph = std::make_unique<pipeline::EnhanceGraph>(ctx, ring);
+ pipeline::EnhanceGraphDesc desc;
+ bool up = false, debug = std::getenv("VEYRA_AA_GPU_DEBUG") != nullptr;
+ uint64_t frameId = 0;
+ bool start(const engine::EnhancementSettings& settings, unsigned w, unsigned h, bool hdr) {
+ if (!up) {
+ gfx::DeviceContextDesc device; Status st;
+ device.enableDebugLayer = debug;
+ if (!ctx.initialize(device, st) || !ring.initialize(ctx.device(), ctx.directQueue(), ctx.fence(), ctx.fenceEvent(), 4, st)) return false;
+ up = true;
+ } else { ring.drainQueue(); graph->shutdown(); }
+ desc = {};
+ desc.sourceWidth = desc.workWidth = w; desc.sourceHeight = desc.workHeight = h;
+ desc.rgbInput = !hdr; desc.hdrInput = hdr; desc.hdrOutput = hdr;
+ desc.stillImage = true; desc.noFeatures = true; desc.noNgx = true;
+ desc.enableNr = desc.enableSr = desc.enableFg = false; desc.outputDitherStep = 0;
+ engine::StageRequest request; request.width = w; request.height = h; request.stillImage = true;
+ engine::describeStages(request, settings, desc);
+ if (!desc.fixedExecutionPlanError.empty()) { std::cout << "plan error: " << desc.fixedExecutionPlanError << std::endl; return false; }
+ return graph->initialize(desc) && graph->createViews();
+ }
+ bool render(AVFrame* frame, bool reset, sink::RgbaImage& out) {
+ pipeline::EnhanceGraph::FrameOutputs outputs;
+ if (!graph->process(frame, double(frameId) * 1000.0 / 60.0, reset, outputs, ++frameId)) return false;
+ auto* texture = graph->videoFrameResource(outputs.videoSlot);
+ if (!texture) return false;
+ if (texture->GetDesc().Format == DXGI_FORMAT_R8G8B8A8_UNORM) return sink::readRgba8(ctx, ring, texture, out);
+ return readHalf(texture, out);
+ }
+ // FP16 readback of the scRGB output (8 bytes per pixel in `out.pixels`).
+ bool readHalf(ID3D12Resource* texture, sink::RgbaImage& out) {
+ const auto d = texture->GetDesc();
+ if (d.Format != DXGI_FORMAT_R16G16B16A16_FLOAT) return false;
+ D3D12_PLACED_SUBRESOURCE_FOOTPRINT fp{}; UINT64 bytes = 0;
+ ctx.device()->GetCopyableFootprints(&d, 0, 1, 0, &fp, nullptr, nullptr, &bytes);
+ D3D12_HEAP_PROPERTIES heap{}; heap.Type = D3D12_HEAP_TYPE_READBACK;
+ D3D12_RESOURCE_DESC buffer{}; buffer.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; buffer.Width = bytes;
+ buffer.Height = 1; buffer.DepthOrArraySize = 1; buffer.MipLevels = 1; buffer.SampleDesc.Count = 1;
+ buffer.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR;
+ Microsoft::WRL::ComPtr<ID3D12Resource> readback;
+ if (FAILED(ctx.device()->CreateCommittedResource(&heap, D3D12_HEAP_FLAG_NONE, &buffer, D3D12_RESOURCE_STATE_COPY_DEST, nullptr, IID_PPV_ARGS(&readback)))) return false;
+ Status st = Status::Ok; const auto slot = ring.slotCount() - 1; auto* list = ring.acquire(slot, st);
+ if (!list) return false;
+ D3D12_RESOURCE_BARRIER b{}; b.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION;
+ b.Transition = {texture, D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES, D3D12_RESOURCE_STATE_COMMON, D3D12_RESOURCE_STATE_COPY_SOURCE};
+ list->ResourceBarrier(1, &b);
+ D3D12_TEXTURE_COPY_LOCATION src{}, dst{};
+ src.pResource = texture; src.Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;
+ dst.pResource = readback.Get(); dst.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT; dst.PlacedFootprint = fp;
+ list->CopyTextureRegion(&dst, 0, 0, 0, &src, nullptr);
+ std::swap(b.Transition.StateBefore, b.Transition.StateAfter); list->ResourceBarrier(1, &b);
+ if (!ring.submitAndSignal(slot) || !ring.waitIdle()) return false;
+ uint8_t* data = nullptr; D3D12_RANGE range{0, SIZE_T(bytes)};
+ if (FAILED(readback->Map(0, &range, reinterpret_cast<void**>(&data)))) return false;
+ out.width = uint32_t(d.Width); out.height = d.Height; out.pixels.resize(size_t(out.width) * out.height * 8);
+ for (UINT y = 0; y < out.height; ++y)
+ std::memcpy(out.pixels.data() + size_t(y) * out.width * 8, data + fp.Offset + size_t(y) * fp.Footprint.RowPitch, size_t(out.width) * 8);
+ D3D12_RANGE empty{}; readback->Unmap(0, &empty);
+ return true;
+ }
+ std::optional<double> aaMs(unsigned parameter) {
+ const auto m = graph->gpuMetrics();
+ const auto& s = m.gpu[size_t(diagnostics::aaNodeStage(parameter))];
+ if (s.state != diagnostics::SampleState::Measured) return std::nullopt;
+ return s.milliseconds;
+ }
+ unsigned debugErrors() {
+ if (!debug || !up) return 0;
+ Microsoft::WRL::ComPtr<ID3D12InfoQueue> info;
+ if (FAILED(ctx.device()->QueryInterface(IID_PPV_ARGS(&info)))) { std::printf("D3D12 debug info queue unavailable\n"); return 1; }
+ unsigned errors = 0;
+ for (UINT64 i = 0; i < info->GetNumStoredMessagesAllowedByRetrievalFilter(); ++i) {
+ SIZE_T size = 0; info->GetMessage(i, nullptr, &size); std::vector<uint8_t> storage(size);
+ auto* message = reinterpret_cast<D3D12_MESSAGE*>(storage.data());
+ if (SUCCEEDED(info->GetMessage(i, message, &size)) && message->Severity <= D3D12_MESSAGE_SEVERITY_ERROR) {
+ std::printf("D3D12_ERROR id=%u %s\n", unsigned(message->ID), message->pDescription); ++errors;
+ }
+ }
+ return errors;
+ }
+ ~Gpu() { if (up) { ring.drainQueue(); graph->shutdown(); ring.shutdown(); } }
+};
+
+engine::EnhancementSettings withAa(const AntiAliasSettings& a) { engine::EnhancementSettings s; s.antiAlias = a; return s; }
+// scRGB FP16 output (the HDR10 default would write PQ R10G10B10A2).
+engine::EnhancementSettings withAaHdr(const AntiAliasSettings& a) { auto s = withAa(a); s.hdrOutputMode = engine::HdrOutputMode::ScRgb; return s; }
+
+struct Quality { double shapeMae = 0, lineMae = 0; size_t shapeEdges = 0, lineEdges = 0, flat = 0, flatChanged = 0, changed = 0; };
+Quality measure(const Scene& scene, const sink::RgbaImage& out, const sink::RgbaImage& off, const Coverage& coverage,
+ const std::vector<double>& truth, const std::vector<uint8_t>& flat) {
+ Quality q;
+ for (size_t i = 0; i < coverage.shape.size(); ++i) {
+ bool differs = false;
+ for (unsigned c = 0; c < 3; ++c) differs |= out.pixels[i * 4 + c] != off.pixels[i * 4 + c];
+ q.changed += differs;
+ if (flat[i]) { ++q.flat; q.flatChanged += differs; }
+ double error = 0;
+ for (unsigned c = 0; c < 3; ++c) error += std::abs(double(out.pixels[i * 4 + c]) - truth[i * 3 + c]) / 3.0;
+ if (coverage.shape[i] > 0 && coverage.shape[i] < 1) { q.shapeMae += error; ++q.shapeEdges; }
+ if (coverage.line[i] > 0 && coverage.line[i] < 1) { q.lineMae += error; ++q.lineEdges; }
+ }
+ if (q.shapeEdges) q.shapeMae /= double(q.shapeEdges);
+ if (q.lineEdges) q.lineMae /= double(q.lineEdges);
+ (void)scene;
+ return q;
+}
+
+int sdrCase(const std::string& name, const AntiAliasSettings& setting) {
+ const Scene scene;
+ const auto coverage = supersample(scene);
+ const auto truth = reference(scene, coverage);
+ const auto flat = flatMask(scene);
+ AVFrame* frame = sdrFrame(scene);
+ auto gpu = std::make_unique<Gpu>();
+ sink::RgbaImage off, on;
+ AntiAliasSettings disabled = setting; disabled.enabled = false;
+ bool ok = frame && gpu->start(withAa(disabled), scene.width, scene.height, false) && gpu->render(frame, true, off) &&
+ gpu->start(withAa(setting), scene.width, scene.height, false) && gpu->render(frame, true, on) &&
+ off.pixels.size() == on.pixels.size() && on.pixels.size() == size_t(scene.width) * scene.height * 4;
+ check(ok, name + ": graph runs with the effect off and on");
+ if (ok) {
+ const auto base = measure(scene, off, off, coverage, truth, flat);
+ const auto q = measure(scene, on, off, coverage, truth, flat);
+ std::printf("METRIC case=%s changed=%zu flat=%zu flatChanged=%zu shapeEdges=%zu shapeMae=%.3f (off %.3f) lineEdges=%zu lineMae=%.3f (off %.3f)\n",
+ name.c_str(), q.changed, q.flat, q.flatChanged, q.shapeEdges, q.shapeMae, base.shapeMae, q.lineEdges, q.lineMae, base.lineMae);
+ check(q.flat > 100000 && q.flatChanged == 0, name + ": flat areas are bit-identical to the effect switched off");
+ check(q.changed > 500, name + ": edges are processed");
+ check(q.shapeMae < base.shapeMae * 0.85, name + ": edge error against the supersampled reference drops by more than 15%");
+ }
+ av_frame_free(&frame);
+ const auto errors = gpu->debugErrors();
+ check(errors == 0, name + ": no D3D12 debug-layer errors");
+ return failures ? 1 : 0;
+}
+
+bool finiteHalf(const sink::RgbaImage& image, float& maxValue, float& minValue) {
+ maxValue = -1e30f; minValue = 1e30f;
+ const auto* h = reinterpret_cast<const uint16_t*>(image.pixels.data());
+ for (size_t i = 0; i < image.pixels.size() / 2; ++i) {
+ if (i % 4 == 3) continue;
+ const float v = DirectX::PackedVector::XMConvertHalfToFloat(h[i]);
+ if (!std::isfinite(v)) return false;
+ maxValue = std::max(maxValue, v); minValue = std::min(minValue, v);
+ }
+ return true;
+}
+
+int hdrCase(const std::string& name, const AntiAliasSettings& setting) {
+ const Scene scene;
+ const auto flat = flatMask(scene);
+ AVFrame* frame = hdrFrame(scene);
+ auto gpu = std::make_unique<Gpu>();
+ sink::RgbaImage off, on;
+ AntiAliasSettings disabled = setting; disabled.enabled = false;
+ bool ok = frame && gpu->start(withAaHdr(disabled), scene.width, scene.height, true) && gpu->render(frame, true, off) &&
+ gpu->start(withAaHdr(setting), scene.width, scene.height, true) && gpu->render(frame, true, on) &&
+ on.pixels.size() == size_t(scene.width) * scene.height * 8 && off.pixels.size() == on.pixels.size();
+ check(ok, name + ": HDR graph runs with the effect off and on (scRGB FP16 output)");
+ if (ok) {
+ float maxOn = 0, minOn = 0, maxOff = 0, minOff = 0;
+ const bool finite = finiteHalf(on, maxOn, minOn) && finiteHalf(off, maxOff, minOff);
+ size_t flatPixels = 0, flatChanged = 0, changed = 0, patchNegative = 0, patchPixels = 0;
+ const auto* a = reinterpret_cast<const uint16_t*>(on.pixels.data());
+ const auto* b = reinterpret_cast<const uint16_t*>(off.pixels.data());
+ for (unsigned y = 0; y < scene.height; ++y)
+ for (unsigned x = 0; x < scene.width; ++x) {
+ const size_t i = size_t(y) * scene.width + x;
+ const bool differs = a[i * 4] != b[i * 4] || a[i * 4 + 1] != b[i * 4 + 1] || a[i * 4 + 2] != b[i * 4 + 2];
+ changed += differs;
+ // The patch is flat away from its own border; the scene there is background.
+ const bool patchCore = x >= kPatchX0 + 6 && x + 6 < kPatchX1 && y >= kPatchY0 + 6 && y + 6 < kPatchY1;
+ const bool nearPatch = x + 8 >= kPatchX0 && x < kPatchX1 + 8 && y + 8 >= kPatchY0 && y < kPatchY1 + 8;
+ if ((flat[i] && !nearPatch) || patchCore) { ++flatPixels; flatChanged += differs; }
+ if (patchCore) {
+ ++patchPixels;
+ const float r = DirectX::PackedVector::XMConvertHalfToFloat(a[i * 4]);
+ const float bl = DirectX::PackedVector::XMConvertHalfToFloat(a[i * 4 + 2]);
+ patchNegative += r < 0 || bl < 0;
+ }
+ }
+ std::printf("METRIC case=%s changed=%zu flat=%zu flatChanged=%zu max=%.3f (off %.3f) min=%.4f (off %.4f) patchNegative=%zu/%zu\n",
+ name.c_str(), changed, flatPixels, flatChanged, maxOn, maxOff, minOn, minOff, patchNegative, patchPixels);
+ check(finite, name + ": no NaN or infinity in the HDR output");
+ check(flatPixels > 100000 && flatChanged == 0, name + ": flat highlights, background and out-of-709 patch are bit-identical");
+ check(changed > 500, name + ": HDR edges are processed");
+ check(maxOn > 10.0f && std::abs(maxOn - maxOff) < 0.05f * maxOff, name + ": 1000-nit highlights keep their level");
+ check(patchPixels && patchNegative == patchPixels, name + ": out-of-709 colours keep their negative components");
+ }
+ av_frame_free(&frame);
+ const auto errors = gpu->debugErrors();
+ check(errors == 0, name + ": no D3D12 debug-layer errors");
+ return failures ? 1 : 0;
+}
+
+int temporalCase(const std::string& name, AntiAliasTemporal temporal) {
+ const Scene scene;
+ AVFrame* frame = sdrFrame(scene);
+ auto gpu = std::make_unique<Gpu>();
+ auto setting = aa(AntiAliasMethod::Smaa, 2, temporal);
+ sink::RgbaImage first, second, third, again, plain;
+ bool ok = frame && gpu->start(withAa(setting), scene.width, scene.height, false) && gpu->render(frame, true, first) &&
+ gpu->render(frame, false, second) && gpu->render(frame, false, third) && gpu->render(frame, true, again);
+ check(ok, name + ": temporal SMAA runs four frames");
+ if (ok) {
+ size_t historyChanged = 0;
+ for (size_t i = 0; i < first.pixels.size(); ++i) historyChanged += first.pixels[i] != third.pixels[i];
+ std::printf("METRIC case=%s historyChangedBytes=%zu\n", name.c_str(), historyChanged);
+ check(first.pixels == again.pixels, name + ": a reset frame ignores the history (deterministic)");
+ check(historyChanged > 0, name + ": later frames accumulate the history");
+ // A live history-weight edit is a uniform update, not a rebuild.
+ auto edited = withAa(setting); edited.antiAlias.historyWeight = 0.0f;
+ sink::RgbaImage noHistory;
+ ok = gpu->graph->applySettings(edited) && gpu->render(frame, false, noHistory);
+ // `again` reset the history to phase 0, so this frame is phase 1 like `second`,
+ // which carried the first frame's history.
+ size_t differsFromAccumulated = 0;
+ for (size_t i = 0; ok && i < second.pixels.size(); ++i) differsFromAccumulated += noHistory.pixels[i] != second.pixels[i];
+ check(ok && differsFromAccumulated > 0, name + ": history weight 0 is applied live and drops the accumulation");
+ }
+ av_frame_free(&frame);
+ const auto errors = gpu->debugErrors();
+ check(errors == 0, name + ": no D3D12 debug-layer errors");
+ return failures ? 1 : 0;
+}
+
+int liveMlaaCase() {
+ const Scene scene;
+ AVFrame* frame = sdrFrame(scene);
+ auto gpu = std::make_unique<Gpu>();
+ auto setting = aa(AntiAliasMethod::Mlaa, 0);
+ sink::RgbaImage strong, weak, rebuilt;
+ auto weakSettings = withAa(setting); weakSettings.antiAlias.mlaaStrength = 0.3f;
+ bool ok = frame && gpu->start(withAa(setting), scene.width, scene.height, false) && gpu->render(frame, true, strong) &&
+ gpu->graph->applySettings(weakSettings) && gpu->render(frame, true, weak) &&
+ gpu->start(weakSettings, scene.width, scene.height, false) && gpu->render(frame, true, rebuilt);
+ check(ok, "mlaa-live: strength edit applies without a rebuild");
+ check(ok && weak.pixels != strong.pixels && weak.pixels == rebuilt.pixels, "mlaa-live: the live value equals a graph built with it");
+ av_frame_free(&frame);
+ return failures ? 1 : 0;
+}
+
+// ---- real NGX graphs: node slots ------------------------------------------------------
+int nodeCase(const std::string& name, std::initializer_list<engine::ChainNode> nodes, unsigned expectedAa) {
+ HRESULT com = CoInitializeEx(nullptr, COINIT_MULTITHREADED); (void)com;
+ auto chain = std::make_unique<engine::EffectChain>(); chain->mode = engine::ChainMode::Node;
+ bool nr = false, sr = false;
+ for (const auto& n : nodes) {
+ chain->nodes[chain->nodeCount++] = n;
+ nr |= n.type == EffectType::NrEnhance; sr |= n.type == EffectType::SuperResolution;
+ }
+ engine::EnhancementSettings settings; engine::fromChain(*chain, settings);
+ settings.multiplier = 1; settings.nrMotion = engine::MotionSource::Zero; settings.srTarget = pipeline::SrTarget::Qhd;
+ const auto order = engine::runtimeOrder(*chain);
+ engine::StageRequest request; request.width = 640; request.height = 360; request.nr = nr; request.sr = sr; request.nodeOrder = &*order;
+ pipeline::EnhanceGraphDesc desc; engine::describeStages(request, settings, desc);
+ check(desc.fixedExecutionPlanError.empty() && desc.validateFixedExecutionPlan().empty(), name + ": plan accepted");
+ if (!failures) {
+ desc.rgbInput = true; desc.runtimeAbsPath = runtime::localRuntimeDirectory().wstring();
+ engine::PreviewGpuSession session;
+ const Scene scene;
+ AVFrame* frame = sdrFrame(scene);
+ bool ok = frame && session.initialize() && session.graph->initialize(desc) && session.graph->createViews();
+ pipeline::EnhanceGraph::FrameOutputs out;
+ sink::RgbaImage image;
+ ok = ok && session.graph->process(frame, 0.0, true, out, 1) && session.ring.waitIdle() &&
+ sink::readRgba8(session.context, session.ring, session.graph->videoFrameResource(out.videoSlot), image);
+ unsigned measured = 0;
+ const auto metrics = session.graph->gpuMetrics();
+ for (unsigned i = 0; i < engine::kMaxAntiAliasInstances; ++i)
+ if (metrics.gpu[size_t(diagnostics::aaNodeStage(i))].state == diagnostics::SampleState::Measured) ++measured;
+ std::string extents;
+ for (uint32_t i = 0; desc.fixedExecutionPlan && i < desc.fixedExecutionPlan->stepCount; ++i) {
+ const auto& step = desc.fixedExecutionPlan->steps[i];
+ if (step.type == EffectType::AntiAliasing)
+ extents += std::format(" aa{}={}x{}@slot{}", step.parameterIndex, step.output.width, step.output.height, int(desc.slotOfStep(i)));
+ }
+ std::printf("METRIC case=%s out=%ux%u nrEval=%llu srEval=%llu aaMeasured=%u%s\n", name.c_str(), image.width, image.height,
+ (unsigned long long)session.graph->metrics().nrEvaluateCount, (unsigned long long)session.graph->metrics().srEvaluateCount,
+ measured, extents.c_str());
+ check(ok && measured == expectedAa, name + ": every anti-aliasing node executed on the GPU");
+ check(ok && (!nr || session.graph->metrics().nrEvaluateCount > 0) && (!sr || session.graph->srEnabled()), name + ": SR / NR ran alongside");
+ out = {};
+ session.ring.drainQueue(); session.graph->shutdown(); av_frame_free(&frame); session.shutdown();
+ }
+ return failures ? 1 : 0;
+}
+engine::ChainNode aaNode(const AntiAliasSettings& a) { engine::ChainNode n; n.type = EffectType::AntiAliasing; n.enabled = true; n.aa = a; return n; }
+engine::ChainNode srNode() { engine::ChainNode n; n.type = EffectType::SuperResolution; n.enabled = true; return n; }
+engine::ChainNode nrNode() {
+ engine::ChainNode n; n.type = EffectType::NrEnhance; n.enabled = true;
+ n.nr.sizePolicy = pipeline::NrSizePolicy::Realtime; n.nr.temporal = false; return n;
+}
+
+// ---- tiled full-resolution image path -------------------------------------------------
+// MLAA only uses integer loads, so tiles with a halo past its reach must match a
+// whole-image graph exactly. SMAA / FXAA search with normalised coordinates;
+// a different texture size changes their bilinear sample positions by rounding,
+// so they are held to a small tolerance that must not cluster at the tile seams.
+bool tiledMatches(const char* label, const AntiAliasSettings& setting, bool exact) {
+ const Scene scene(2900, 1700);
+ AVFrame* frame = sdrFrame(scene);
+ auto gpu = std::make_unique<Gpu>();
+ sink::RgbaImage whole, input, tiled, tiledOff;
+ bool ok = frame && gpu->start(withAa(setting), scene.width, scene.height, false) && gpu->render(frame, true, whole);
+ input.width = scene.width; input.height = scene.height; input.pixels.resize(size_t(scene.width) * scene.height * 4);
+ for (unsigned y = 0; frame && y < scene.height; ++y)
+ for (unsigned x = 0; x < scene.width; ++x) {
+ const auto* p = frame->data[0] + size_t(y) * frame->linesize[0] + size_t(x) * 4;
+ auto* q = input.pixels.data() + (size_t(y) * scene.width + x) * 4;
+ q[0] = p[2]; q[1] = p[1]; q[2] = p[0]; q[3] = 255;
+ }
+ std::atomic<bool> cancel{false};
+ engine::TiledImageProcessor::Stats stats, statsOff;
+ pipeline::EnhanceGraphDesc desc; desc.enableNr = false; desc.noFeatures = true; desc.settingsRevision = 1; desc.outputDitherStep = 0;
+ desc.runtimeAbsPath = runtime::localRuntimeDirectory().wstring();
+ engine::describeAntiAlias(withAa(setting), desc);
+ pipeline::EnhanceGraphDesc descOff = desc; descOff.antiAlias = {};
+ ok = ok && engine::TiledImageProcessor::process(gpu->ctx, gpu->ring, input, tiled, desc, cancel, stats, {}) &&
+ engine::TiledImageProcessor::process(gpu->ctx, gpu->ring, input, tiledOff, descOff, cancel, statsOff, {});
+ check(ok && stats.tiles > 1 && tiled.pixels.size() == whole.pixels.size(), std::string(label) + ": the tiled path runs anti-aliasing per tile");
+ bool matches = false;
+ if (ok && tiled.pixels.size() == whole.pixels.size()) {
+ int maxDifference = 0; size_t differing = 0, changed = 0, nearSeam = 0;
+ for (size_t i = 0; i < whole.pixels.size(); ++i) {
+ if (i % 4 == 3) continue;
+ const int d = std::abs(int(tiled.pixels[i]) - int(whole.pixels[i]));
+ maxDifference = std::max(maxDifference, d); differing += d != 0; changed += tiled.pixels[i] != tiledOff.pixels[i];
+ if (!d) continue;
+ // Within 64 px of an internal tile core boundary (cores are 1280 px).
+ const unsigned x = unsigned(i / 4 % scene.width), y = unsigned(i / 4 / scene.width);
+ const unsigned dx = std::min(x % 1280, 1280 - x % 1280), dy = std::min(y % 1280, 1280 - y % 1280);
+ nearSeam += (x >= 640 && dx <= 64) || (y >= 640 && dy <= 64);
+ }
+ const size_t channels = whole.pixels.size() / 4 * 3;
+ std::printf("METRIC case=tiled-%s tiles=%u maxDifference=%d differingBytes=%zu of %zu nearSeam=%zu changedBytes=%zu\n",
+ label, stats.tiles, maxDifference, differing, channels, nearSeam, changed);
+ // About a sixth of the picture lies within 64 px of a seam.
+ matches = exact ? differing == 0 : maxDifference <= 4 && differing * 10000 <= channels && nearSeam * 3 <= differing + 3;
+ check(matches, std::string(label) + (exact ? ": tiles match one whole-image graph exactly" :
+ ": tiles match one whole-image graph within the bilinear rounding tolerance, not clustered at seams"));
+ check(changed > 1000, std::string(label) + ": anti-aliasing changed the tiled result");
+ }
+ av_frame_free(&frame);
+ return matches;
+}
+int tiledCase() {
+ tiledMatches("mlaa", aa(AntiAliasMethod::Mlaa, 0), true);
+ tiledMatches("smaa-high", aa(AntiAliasMethod::Smaa, 2), false);
+ return failures ? 1 : 0;
+}
+
+// ---- timing -----------------------------------------------------------------------------
+int timingCase(unsigned width, unsigned height, bool dense = false) {
+ const Scene scene(width, height, dense);
+ AVFrame* frame = sdrFrame(scene);
+ auto gpu = std::make_unique<Gpu>();
+ const struct { const char* label; AntiAliasSettings a; } methods[] = {
+ {"FXAA-medium", aa(AntiAliasMethod::Fxaa, 0)}, {"FXAA-high", aa(AntiAliasMethod::Fxaa, 1)}, {"FXAA-ultra", aa(AntiAliasMethod::Fxaa, 2)},
+ {"SMAA-low", aa(AntiAliasMethod::Smaa, 0)}, {"SMAA-medium", aa(AntiAliasMethod::Smaa, 1)}, {"SMAA-high", aa(AntiAliasMethod::Smaa, 2)},
+ {"SMAA-ultra", aa(AntiAliasMethod::Smaa, 3)}, {"SMAA-high-T2x", aa(AntiAliasMethod::Smaa, 2, AntiAliasTemporal::T2x)},
+ {"SMAA-high-4x", aa(AntiAliasMethod::Smaa, 2, AntiAliasTemporal::X4)}, {"MLAA", aa(AntiAliasMethod::Mlaa, 0)},
+ };
+ bool ok = frame != nullptr;
+ for (const auto& m : methods) {
+ ok = ok && gpu->start(withAa(m.a), width, height, false);
+ std::vector<double> samples;
+ sink::RgbaImage image;
+ for (int i = 0; ok && i < 40; ++i) {
+ pipeline::EnhanceGraph::FrameOutputs outputs;
+ ok = gpu->graph->process(frame, double(i) * 1000.0 / 60.0, i == 0, outputs, ++gpu->frameId) && gpu->ring.waitIdle();
+ if (const auto ms = gpu->aaMs(0); ok && i >= 8 && ms) samples.push_back(*ms);
+ }
+ std::sort(samples.begin(), samples.end());
+ const double median = samples.empty() ? -1 : samples[samples.size() / 2];
+ const double p95 = samples.empty() ? -1 : samples[std::min(samples.size() - 1, size_t(double(samples.size()) * 0.95))];
+ std::printf("TIMING extent=%ux%u content=%s method=%s samples=%zu medianMs=%.3f p95Ms=%.3f\n", width, height,
+ dense ? "dense-stripes" : "sparse-shapes", m.label, samples.size(), median, p95);
+ ok = ok && samples.size() >= 20;
+ }
+ check(ok, std::format("timing-{}x{}: every method measured", width, height));
+ av_frame_free(&frame);
+ return failures ? 1 : 0;
+}
+
+struct Case { std::string name; std::function<int()> run; };
+std::vector<Case> cases() {
+ std::vector<Case> c;
+ const struct { const char* name; AntiAliasSettings a; } sdr[] = {
+ {"sdr-fxaa-medium", aa(AntiAliasMethod::Fxaa, 0)}, {"sdr-fxaa-high", aa(AntiAliasMethod::Fxaa, 1)}, {"sdr-fxaa-ultra", aa(AntiAliasMethod::Fxaa, 2)},
+ {"sdr-smaa-low", aa(AntiAliasMethod::Smaa, 0)}, {"sdr-smaa-medium", aa(AntiAliasMethod::Smaa, 1)}, {"sdr-smaa-high", aa(AntiAliasMethod::Smaa, 2)},
+ {"sdr-smaa-ultra", aa(AntiAliasMethod::Smaa, 3)}, {"sdr-mlaa", aa(AntiAliasMethod::Mlaa, 0)},
+ };
+ for (const auto& s : sdr) c.push_back({s.name, [s] { return sdrCase(s.name, s.a); }});
+ c.push_back({"hdr-fxaa", [] { return hdrCase("hdr-fxaa", aa(AntiAliasMethod::Fxaa, 1)); }});
+ c.push_back({"hdr-smaa", [] { return hdrCase("hdr-smaa", aa(AntiAliasMethod::Smaa, 2)); }});
+ c.push_back({"hdr-mlaa", [] { return hdrCase("hdr-mlaa", aa(AntiAliasMethod::Mlaa, 0)); }});
+ c.push_back({"temporal-t2x", [] { return temporalCase("temporal-t2x", AntiAliasTemporal::T2x); }});
+ c.push_back({"temporal-4x", [] { return temporalCase("temporal-4x", AntiAliasTemporal::X4); }});
+ c.push_back({"mlaa-live", [] { return liveMlaaCase(); }});
+ c.push_back({"node-prenr", [] { return nodeCase("node-prenr", {srNode(), aaNode(aa(AntiAliasMethod::Smaa, 2)), nrNode()}, 1); }});
+ c.push_back({"node-source-and-tail", [] {
+ return nodeCase("node-source-and-tail", {aaNode(aa(AntiAliasMethod::Smaa, 0)), srNode(), nrNode(), aaNode(aa(AntiAliasMethod::Fxaa, 1))}, 2); }});
+ c.push_back({"tiled-image", [] { return tiledCase(); }});
+ c.push_back({"timing-1080p", [] { return timingCase(1920, 1080); }});
+ c.push_back({"timing-1440p", [] { return timingCase(2560, 1440); }});
+ c.push_back({"timing-2160p", [] { return timingCase(3840, 2160); }});
+ c.push_back({"timing-dense-2160p", [] { return timingCase(3840, 2160, true); }});
+ return c;
+}
+} // namespace
+
+int wmain(int argc, wchar_t** argv) {
+ std::setvbuf(stdout, nullptr, _IONBF, 0);
+ const auto all = cases();
+ if (argc == 2 && std::wstring_view(argv[1]) == L"--list") {
+ for (const auto& c : all) std::cout << c.name << '\n';
+ return 0;
+ }
+ if (argc == 3 && std::wstring_view(argv[1]) == L"--case") {
+ const std::wstring wanted = argv[2];
+ for (const auto& c : all)
+ if (std::wstring(c.name.begin(), c.name.end()) == wanted) {
+ const int result = c.run();
+ std::printf(result ? "anti-alias gpu: %s FAILED\n" : "anti-alias gpu: %s passed\n", c.name.c_str());
+ return result;
+ }
+ std::cout << "unknown case" << std::endl;
+ return 2;
+ }
+ return 2;
+}
diff --git a/tests/integration/ExportWorkflowTests.cpp b/tests/integration/ExportWorkflowTests.cpp
index fdc69f42..629889fc 100644
--- a/tests/integration/ExportWorkflowTests.cpp
+++ b/tests/integration/ExportWorkflowTests.cpp
@@ -60,6 +60,10 @@ int wmain(int argc,wchar_t** argv){
settings.model.style=2;settings.nrPolicy=veyra::pipeline::NrSizePolicy::P480;
settings.flow=FlowQuality::Performance;settings.content=ContentRate::Transport;
}
+ // Anti-aliasing (#53): the frozen settings cross the worker protocol and the
+ // worker's graph runs the pass (its log names the instance).
+ const bool antiAlias=mode==L"aa"||mode==L"aa-mkv";
+ if(antiAlias){settings.antiAlias.enabled=true;settings.antiAlias.method=AntiAliasMethod::Smaa;settings.antiAlias.quality=2;}
if(mode==L"queue"){
std::filesystem::create_directories(output);
ExportQueue queue(manager);
@@ -170,6 +174,13 @@ int wmain(int argc,wchar_t** argv){
std::wcout<<L"FSR_TEXTURE_EXPORT source="<<s.sourceFrames<<L" encoded="<<s.encoded<<L" validGenerated="<<s.generated<<L" holds="<<s.holds<<L"\n";
}
if(mode.find(L"skip")!=std::wstring::npos)require(s.message.find(L"未保留")!=std::wstring::npos,"skipped tracks not reported");
+ if(antiAlias){
+ require(s.frozen.antiAlias==settings.antiAlias,"frozen job lost the anti-aliasing settings");
+ std::ifstream log(s.workerLog);const std::string text((std::istreambuf_iterator<char>(log)),{});
+ require(text.find("[anti-alias] instance=0 SMAA high")!=std::string::npos,"export worker did not create the anti-aliasing pass");
+ // The log path may hold non-ASCII folders, which would fail the narrow console stream.
+ std::wcout<<L"ANTI_ALIAS_EXPORT encoded="<<s.encoded<<L" passCreated=1\n";
+ }
}
passed=true;
}catch(const std::exception& e){std::cerr<<"FAILED: "<<e.what()<<'\n';}
diff --git a/tests/qml/quick/tst_anti_alias_editor.qml b/tests/qml/quick/tst_anti_alias_editor.qml
new file mode 100644
index 00000000..8f05b6f9
--- /dev/null
+++ b/tests/qml/quick/tst_anti_alias_editor.qml
@@ -0,0 +1,75 @@
+import QtQuick
+import QtTest
+import Veyra
+
+// The anti-aliasing editor (#53) shared by the list card and the node card: the
+// rows follow the method, and edits leave with the bridge's key names.
+Item {
+ id: root
+ width: 520; height: 560
+ readonly property var smaa: ({index: 3, present: true, enabled: true, method: 1, quality: 2, mlaaThreshold: 0.08,
+ mlaaStrength: 1, temporal: 0, historyWeight: 0.5, historyRejection: 8, summary: "SMAA"})
+ property var params: smaa
+ property var edits: []
+ AntiAliasEditor {
+ id: editor
+ x: 10; y: 10; width: 480
+ params: root.params
+ namePrefix: "t-aa"
+ onEdited: (key, amount) => { const next = root.edits.slice(); next.push({key: key, amount: amount}); root.edits = next }
+ }
+ TestCase {
+ name: "AntiAliasEditor"
+ when: windowShown
+ function init() { root.edits = []; root.params = root.smaa }
+ function withParams(changes) {
+ const p = Object.assign({}, root.smaa)
+ for (const k in changes) p[k] = changes[k]
+ root.params = p
+ }
+ function child(name) { const c = findChild(editor, "t-aa-" + name); verify(c !== null, name); return c }
+ function test_smaa_rows() {
+ compare(child("quality").visible, true)
+ compare(child("quality").options.length, 4)
+ compare(child("quality").current, "2")
+ compare(child("temporal").visible, true)
+ compare(child("mlaa-threshold").visible, false)
+ compare(child("history-weight").visible, false)
+ withParams({temporal: 1})
+ compare(child("history-weight").visible, true)
+ compare(child("history-rejection").visible, true)
+ }
+ function test_fxaa_rows() {
+ withParams({method: 0, quality: 1})
+ compare(child("quality").options.length, 3)
+ compare(child("temporal").visible, false)
+ compare(child("mlaa-strength").visible, false)
+ }
+ function test_mlaa_rows() {
+ withParams({method: 2, quality: 0, mlaaThreshold: 0.12, mlaaStrength: 0.6})
+ compare(child("quality").visible, false)
+ compare(child("mlaa-threshold").visible, true)
+ compare(child("mlaa-strength").visible, true)
+ compare(child("mlaa-threshold").value, 0.12)
+ compare(child("temporal").visible, false)
+ }
+ function test_clicks_send_bridge_keys() {
+ // The rightmost option of a segment sits at its right edge.
+ const method = child("method")
+ mouseClick(method, method.width - 14, method.height / 2)
+ const temporal = child("temporal")
+ mouseClick(temporal, temporal.width - 12, temporal.height / 2)
+ compare(root.edits.length, 2)
+ compare(root.edits[0].key, "method"); compare(root.edits[0].amount, 2)
+ compare(root.edits[1].key, "temporal"); compare(root.edits[1].amount, 2)
+ }
+ function test_slider_edits_round() {
+ withParams({method: 2, quality: 0})
+ child("mlaa-threshold").moved(0.1234)
+ child("mlaa-strength").moved(0.4321)
+ compare(root.edits.length, 2)
+ compare(root.edits[0].key, "mlaaThreshold"); compare(root.edits[0].amount, 0.12)
+ compare(root.edits[1].key, "mlaaStrength"); compare(root.edits[1].amount, 0.45)
+ }
+ }
+}