Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

M9.7: AV1 headers, symbol decoder, CDFs, intra decoding, transforms, intra prediction

Brandon Thomas1813bbaca2bc
diff --git a/Cargo.lock b/Cargo.lock
index fa2abe37d..fce3e6473 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1352,6 +1352,16 @@ dependencies = [
"tokio",
]
+[[package]]
+name = "filmcraft-av1"
+version = "0.1.0"
+dependencies = [
+ "filmcraft-bitstream",
+ "filmcraft-testkit",
+ "rayon",
+ "thiserror 2.0.21",
+]
+
[[package]]
name = "filmcraft-bitstream"
version = "0.1.0"
diff --git a/Cargo.toml b/Cargo.toml
index cad78fb55..71799d381 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,6 +23,7 @@ filmcraft-hevc = { path = "crates/hevc" }
filmcraft-vp9 = { path = "crates/vp9" }
filmcraft-prores = { path = "crates/prores" }
filmcraft-dnx = { path = "crates/dnx" }
+filmcraft-av1 = { path = "crates/av1" }
filmcraft-aac = { path = "crates/aac" }
filmcraft-opus = { path = "crates/opus" }
filmcraft-h264enc = { path = "crates/h264enc" }
@@ -91,6 +92,9 @@ opt-level = 3
[profile.dev.package.filmcraft-dnx]
opt-level = 3
+[profile.dev.package.filmcraft-av1]
+opt-level = 3
+
[profile.dev.package.filmcraft-aac]
opt-level = 3
diff --git a/crates/av1/Cargo.toml b/crates/av1/Cargo.toml
new file mode 100644
index 000000000..a51574974
--- /dev/null
+++ b/crates/av1/Cargo.toml
@@ -0,0 +1,22 @@
+[package]
+name = "filmcraft-av1"
+description = "Clean-room AV1 decoder (AV1 Bitstream & Decoding Process Specification v1.0.0 with Errata 1)"
+version.workspace = true
+edition.workspace = true
+license.workspace = true
+rust-version.workspace = true
+
+[lints]
+workspace = true
+
+[features]
+default = ["threads"]
+threads = ["dep:rayon"]
+
+[dependencies]
+filmcraft-bitstream = { workspace = true }
+thiserror = { workspace = true }
+rayon = { workspace = true, optional = true }
+
+[dev-dependencies]
+filmcraft-testkit = { workspace = true }
diff --git a/crates/av1/README.md b/crates/av1/README.md
new file mode 100644
index 000000000..2418bf2d5
--- /dev/null
+++ b/crates/av1/README.md
@@ -0,0 +1,55 @@
+# filmcraft-av1
+
+Clean-room, pure-Rust (no `unsafe`) AV1 decoder, implemented from the public **AV1 Bitstream &
+Decoding Process Specification, version 1.0.0 with Errata 1** (AOMediaCodec/av1-spec, git
+commit `5e04f3f`, 2023-06-12). It is an L0 crate: it depends only on `filmcraft-bitstream`,
+`thiserror` and (optional, feature `threads`) `rayon`, and builds for `wasm32-unknown-unknown`.
+
+All constant tables (default CDFs, scan orders, quantiser lookups, filter taps, …) and the
+named constants are extracted from the specification's Markdown source by
+[`tools/extract_tables.py`](tools/extract_tables.py) into `src/spec_tables.rs` (every table's
+shape is checked against its declared dimensions; one missing comma in the spec's
+`Split_Tx_Size` initialiser is reported and repaired). No code was taken from libaom, dav1d,
+SVT-AV1 or any other implementation; ffmpeg (libsvtav1 to encode fixtures, libdav1d to decode the
+reference) is used only as an external test oracle.
+
+## Conformance status
+
+| Stage | Spec | Status |
+|---|---|---|
+| OBU parsing (low-overhead format), temporal delimiters, operating-point dropping | 5.3, 7.5 | done |
+| Sequence header, color config, timing / decoder model info | 5.5 | done |
+| Uncompressed frame header (all fields, frame size / superres / render size, tile info, quantiser, segmentation, delta q/lf, loop filter, CDEF, LR, tx mode, skip mode, global motion, film grain params) | 5.9 | done |
+| Reference frame state: set_frame_refs, setup_past_independence, load_previous, reference update, show_existing_frame | 7.8, 7.20, 7.21 | done |
+| Symbol decoder, CDF adaptation, init / load / save / frame-end CDF update | 8.2, 8.3 | done |
+| Tiles and tile groups (uniform and explicit spacing, tile size bytes) | 5.11 | done (decoded sequentially) |
+| Intra frame mode info: partitions, skip, segment id, CDEF index, delta q / lf, y / uv modes, angle deltas, CfL alphas, palette (colors, cache, color index map), filter intra, tx size (incl. var-tx syntax) | 5.11 | done, bit-exact |
+| Coefficients (all_zero, eob, base / br levels, Golomb, dc sign, tx type sets, scans) | 5.11.39 | done, bit-exact |
+| Dequantisation incl. quantiser matrices | 7.12 | done (qmatrix not yet oracle-tested) |
+| Inverse transforms: DCT 4–64, ADST 4/8/16, flip ADST, identity 4–32, WHT (lossless), rectangular | 7.13 | done, bit-exact |
+| Intra prediction: DC, V/H + directional with edge filter and upsampling, smooth (3), Paeth, recursive filter intra, CfL, palette | 7.11.2, 7.11.4, 7.11.5 | done, bit-exact |
+| Intra block copy | 7.11.3 | missing |
+| Inter prediction: MV prediction, motion field, scaling, filters, warp / global motion, OBMC, compound / masks, inter-intra | 7.9–7.11.3 | missing |
+| Loop filter | 7.14 | missing |
+| CDEF | 7.15 | missing |
+| Super-resolution upscaling | 7.16 | missing |
+| Loop restoration (Wiener, self-guided) | 7.17 | syntax done, filter missing |
+| Film grain synthesis | 7.18.3 | missing |
+| Large-scale tile / tile list OBUs | 7.3 | not planned |
+
+## Accuracy
+
+`tests/oracle_intra.rs` encodes all-intra streams with ffmpeg's libsvtav1 (in-loop filters off)
+and compares every decoded frame with libdav1d: **bit-exact** on all fixtures (8- and 10-bit
+4:2:0; 128×128 to 1280×720 including odd sizes; testsrc2, mandelbrot and noise; presets 2–8).
+
+## API
+
+```rust
+let mut dec = filmcraft_av1::Decoder::new();
+for sample in samples { // one temporal unit (MP4 / Matroska sample) each
+ for pic in dec.decode(&sample)? { // shown frames, planar u16
+ // pic.width, pic.height, pic.bit_depth, pic.planes[0..3]
+ }
+}
+```
diff --git a/crates/av1/src/bits.rs b/crates/av1/src/bits.rs
new file mode 100644
index 000000000..2bb54bb01
--- /dev/null
+++ b/crates/av1/src/bits.rs
@@ -0,0 +1,124 @@
+//! MSB-first bit reader for OBU headers and the uncompressed frame header (spec 4.10 descriptors).
+
+use crate::{Error, Result};
+
+#[derive(Clone)]
+pub(crate) struct BitReader<'a> {
+ data: &'a [u8],
+ /// Position in bits.
+ pos: usize,
+}
+
+impl<'a> BitReader<'a> {
+ pub fn new(data: &'a [u8]) -> Self {
+ BitReader { data, pos: 0 }
+ }
+
+ /// `get_position()`: bits consumed.
+ pub fn position(&self) -> usize {
+ self.pos
+ }
+
+ pub fn byte_pos(&self) -> usize {
+ self.pos.div_ceil(8)
+ }
+
+ #[inline]
+ pub fn bit(&mut self) -> Result<u32> {
+ let byte = *self.data.get(self.pos >> 3).ok_or(Error::Truncated)?;
+ let b = (byte >> (7 - (self.pos & 7))) & 1;
+ self.pos += 1;
+ Ok(b as u32)
+ }
+
+ /// `f(n)`, n ≤ 32.
+ pub fn f(&mut self, n: u32) -> Result<u32> {
+ let mut x: u64 = 0;
+ for _ in 0..n {
+ x = (x << 1) | self.bit()? as u64;
+ }
+ Ok(x as u32)
+ }
+
+ pub fn flag(&mut self) -> Result<bool> {
+ Ok(self.bit()? == 1)
+ }
+
+ /// `uvlc()`
+ pub fn uvlc(&mut self) -> Result<u32> {
+ let mut leading = 0u32;
+ while self.bit()? == 0 {
+ leading += 1;
+ if leading > 40 {
+ return Err(Error::Invalid("uvlc"));
+ }
+ }
+ if leading >= 32 {
+ return Ok(u32::MAX);
+ }
+ let v = self.f(leading)?;
+ Ok(v + ((1u64 << leading) - 1) as u32)
+ }
+
+ /// `le(n)`
+ pub fn le(&mut self, n: u32) -> Result<u32> {
+ let mut t = 0u32;
+ for i in 0..n {
+ t |= self.f(8)? << (8 * i);
+ }
+ Ok(t)
+ }
+
+ /// `leb128()`
+ pub fn leb128(&mut self) -> Result<u64> {
+ let mut v = 0u64;
+ for i in 0..8 {
+ let b = self.f(8)? as u64;
+ v |= (b & 0x7f) << (7 * i);
+ if b & 0x80 == 0 {
+ break;
+ }
+ }
+ Ok(v)
+ }
+
+ /// `su(n)`
+ pub fn su(&mut self, n: u32) -> Result<i32> {
+ let v = self.f(n)? as i64;
+ let sign = 1i64 << (n - 1);
+ Ok(if v & sign != 0 { (v - 2 * sign) as i32 } else { v as i32 })
+ }
+
+ /// `ns(n)`
+ pub fn ns(&mut self, n: u32) -> Result<u32> {
+ if n <= 1 {
+ return Ok(0);
+ }
+ let w = 32 - n.leading_zeros(); // FloorLog2(n) + 1
+ let m = (1u32 << w) - n;
+ let v = self.f(w - 1)?;
+ if v < m {
+ return Ok(v);
+ }
+ let extra = self.bit()?;
+ Ok((v << 1) - m + extra)
+ }
+
+ /// `byte_alignment()`
+ pub fn byte_align(&mut self) {
+ self.pos = self.pos.div_ceil(8) * 8;
+ }
+}
+
+/// Read a leb128 from a byte slice; returns (value, bytes used).
+pub(crate) fn leb128(data: &[u8]) -> Result<(u64, usize)> {
+ let mut v = 0u64;
+ for i in 0..8 {
+ let b = *data.get(i).ok_or(Error::Truncated)? as u64;
+ v |= (b & 0x7f) << (7 * i);
+ if b & 0x80 == 0 {
+ return Ok((v, i + 1));
+ }
+ }
+ Ok((v, 8))
+}
diff --git a/crates/av1/src/cdf.rs b/crates/av1/src/cdf.rs
new file mode 100644
index 000000000..a2d5e7610
--- /dev/null
+++ b/crates/av1/src/cdf.rs
@@ -0,0 +1,359 @@
+//! The adaptive CDF arrays (spec 6.8.2 init_non_coeff_cdfs / init_coeff_cdfs, load_cdfs).
+
+use crate::spec_tables::*;
+
+/// Every CDF array listed by init_non_coeff_cdfs and init_coeff_cdfs. Each innermost array holds
+/// N cumulative values (the last is 32768) plus the adaptation counter.
+#[derive(Clone)]
+pub(crate) struct Cdfs {
+ pub y_mode: [[u16; 14]; 4],
+ pub uv_mode_cfl_not_allowed: [[u16; 14]; 13],
+ pub uv_mode_cfl_allowed: [[u16; 15]; 13],
+ pub angle_delta: [[u16; 8]; 8],
+ pub intrabc: [u16; 3],
+ pub partition_w8: [[u16; 5]; 4],
+ pub partition_w16: [[u16; 11]; 4],
+ pub partition_w32: [[u16; 11]; 4],
+ pub partition_w64: [[u16; 11]; 4],
+ pub partition_w128: [[u16; 9]; 4],
+ pub segment_id: [[u16; 9]; 3],
+ pub segment_id_predicted: [[u16; 3]; 3],
+ pub tx_8x8: [[u16; 3]; 3],
+ pub tx_16x16: [[u16; 4]; 3],
+ pub tx_32x32: [[u16; 4]; 3],
+ pub tx_64x64: [[u16; 4]; 3],
+ pub txfm_split: [[u16; 3]; 21],
+ pub filter_intra_mode: [u16; 6],
+ pub filter_intra: [[u16; 3]; 22],
+ pub interp_filter: [[u16; 4]; 16],
+ pub motion_mode: [[u16; 4]; 22],
+ pub new_mv: [[u16; 3]; 6],
+ pub zero_mv: [[u16; 3]; 2],
+ pub ref_mv: [[u16; 3]; 6],
+ pub compound_mode: [[u16; 9]; 8],
+ pub drl_mode: [[u16; 3]; 3],
+ pub is_inter: [[u16; 3]; 4],
+ pub comp_mode: [[u16; 3]; 5],
+ pub skip_mode: [[u16; 3]; 3],
+ pub skip: [[u16; 3]; 3],
+ pub comp_ref: [[[u16; 3]; 3]; 3],
+ pub comp_bwd_ref: [[[u16; 3]; 2]; 3],
+ pub single_ref: [[[u16; 3]; 6]; 3],
+ pub mv_joint: [[u16; 5]; MV_CONTEXTS],
+ pub mv_class: [[[u16; 12]; 2]; MV_CONTEXTS],
+ pub mv_class0_bit: [[[u16; 3]; 2]; MV_CONTEXTS],
+ pub mv_fr: [[[u16; 5]; 2]; MV_CONTEXTS],
+ pub mv_class0_fr: [[[[u16; 5]; 2]; 2]; MV_CONTEXTS],
+ pub mv_class0_hp: [[[u16; 3]; 2]; MV_CONTEXTS],
+ pub mv_sign: [[[u16; 3]; 2]; MV_CONTEXTS],
+ pub mv_bit: [[[[u16; 3]; 10]; 2]; MV_CONTEXTS],
+ pub mv_hp: [[[u16; 3]; 2]; MV_CONTEXTS],
+ pub palette_y_mode: [[[u16; 3]; 3]; 7],
+ pub palette_uv_mode: [[u16; 3]; 2],
+ pub palette_y_size: [[u16; 8]; 7],
+ pub palette_uv_size: [[u16; 8]; 7],
+ pub palette_2_y_color: [[u16; 3]; 5],
+ pub palette_2_uv_color: [[u16; 3]; 5],
+ pub palette_3_y_color: [[u16; 4]; 5],
+ pub palette_3_uv_color: [[u16; 4]; 5],
+ pub palette_4_y_color: [[u16; 5]; 5],
+ pub palette_4_uv_color: [[u16; 5]; 5],
+ pub palette_5_y_color: [[u16; 6]; 5],
+ pub palette_5_uv_color: [[u16; 6]; 5],
+ pub palette_6_y_color: [[u16; 7]; 5],
+ pub palette_6_uv_color: [[u16; 7]; 5],
+ pub palette_7_y_color: [[u16; 8]; 5],
+ pub palette_7_uv_color: [[u16; 8]; 5],
+ pub palette_8_y_color: [[u16; 9]; 5],
+ pub palette_8_uv_color: [[u16; 9]; 5],
+ pub delta_q: [u16; 5],
+ pub delta_lf: [u16; 5],
+ pub delta_lf_multi: [[u16; 5]; FRAME_LF_COUNT],
+ pub intra_tx_type_set1: [[[u16; 8]; 13]; 2],
+ pub intra_tx_type_set2: [[[u16; 6]; 13]; 3],
+ pub inter_tx_type_set1: [[u16; 17]; 2],
+ pub inter_tx_type_set2: [u16; 13],
+ pub inter_tx_type_set3: [[u16; 3]; 4],
+ pub use_obmc: [[u16; 3]; 22],
+ pub inter_intra: [[u16; 3]; 3],
+ pub comp_ref_type: [[u16; 3]; 5],
+ pub cfl_sign: [u16; 9],
+ pub uni_comp_ref: [[[u16; 3]; 3]; 3],
+ pub wedge_inter_intra: [[u16; 3]; 22],
+ pub comp_group_idx: [[u16; 3]; 6],
+ pub compound_idx: [[u16; 3]; 6],
+ pub compound_type: [[u16; 3]; 22],
+ pub inter_intra_mode: [[u16; 5]; 3],
+ pub wedge_index: [[u16; 17]; 22],
+ pub cfl_alpha: [[u16; 17]; 6],
+ pub use_wiener: [u16; 3],
+ pub use_sgrproj: [u16; 3],
+ pub restoration_type: [u16; 4],
+ // coefficient CDFs
+ pub txb_skip: [[[u16; 3]; 13]; 5],
+ pub eob_pt_16: [[[u16; 6]; 2]; 2],
+ pub eob_pt_32: [[[u16; 7]; 2]; 2],
+ pub eob_pt_64: [[[u16; 8]; 2]; 2],
+ pub eob_pt_128: [[[u16; 9]; 2]; 2],
+ pub eob_pt_256: [[[u16; 10]; 2]; 2],
+ pub eob_pt_512: [[u16; 11]; 2],
+ pub eob_pt_1024: [[u16; 12]; 2],
+ pub eob_extra: [[[[u16; 3]; 9]; 2]; 5],
+ pub dc_sign: [[[u16; 3]; 3]; 2],
+ pub coeff_base_eob: [[[[u16; 4]; 4]; 2]; 5],
+ pub coeff_base: [[[[u16; 5]; 42]; 2]; 5],
+ pub coeff_br: [[[[u16; 5]; 21]; 2]; 5],
+}
+
+impl Cdfs {
+ /// init_non_coeff_cdfs( ) followed by init_coeff_cdfs( ) for `base_q_idx`.
+ pub fn new(base_q_idx: u32) -> Box<Cdfs> {
+ let mut c = Box::new(Cdfs {
+ y_mode: DEFAULT_Y_MODE_CDF,
+ uv_mode_cfl_not_allowed: DEFAULT_UV_MODE_CFL_NOT_ALLOWED_CDF,
+ uv_mode_cfl_allowed: DEFAULT_UV_MODE_CFL_ALLOWED_CDF,
+ angle_delta: DEFAULT_ANGLE_DELTA_CDF,
+ intrabc: DEFAULT_INTRABC_CDF,
+ partition_w8: DEFAULT_PARTITION_W8_CDF,
+ partition_w16: DEFAULT_PARTITION_W16_CDF,
+ partition_w32: DEFAULT_PARTITION_W32_CDF,
+ partition_w64: DEFAULT_PARTITION_W64_CDF,
+ partition_w128: DEFAULT_PARTITION_W128_CDF,
+ segment_id: DEFAULT_SEGMENT_ID_CDF,
+ segment_id_predicted: DEFAULT_SEGMENT_ID_PREDICTED_CDF,
+ tx_8x8: DEFAULT_TX_8X8_CDF,
+ tx_16x16: DEFAULT_TX_16X16_CDF,
+ tx_32x32: DEFAULT_TX_32X32_CDF,
+ tx_64x64: DEFAULT_TX_64X64_CDF,
+ txfm_split: DEFAULT_TXFM_SPLIT_CDF,
+ filter_intra_mode: DEFAULT_FILTER_INTRA_MODE_CDF,
+ filter_intra: DEFAULT_FILTER_INTRA_CDF,
+ interp_filter: DEFAULT_INTERP_FILTER_CDF,
+ motion_mode: DEFAULT_MOTION_MODE_CDF,
+ new_mv: DEFAULT_NEW_MV_CDF,
+ zero_mv: DEFAULT_ZERO_MV_CDF,
+ ref_mv: DEFAULT_REF_MV_CDF,
+ compound_mode: DEFAULT_COMPOUND_MODE_CDF,
+ drl_mode: DEFAULT_DRL_MODE_CDF,
+ is_inter: DEFAULT_IS_INTER_CDF,
+ comp_mode: DEFAULT_COMP_MODE_CDF,
+ skip_mode: DEFAULT_SKIP_MODE_CDF,
+ skip: DEFAULT_SKIP_CDF,
+ comp_ref: DEFAULT_COMP_REF_CDF,
+ comp_bwd_ref: DEFAULT_COMP_BWD_REF_CDF,
+ single_ref: DEFAULT_SINGLE_REF_CDF,
+ mv_joint: [DEFAULT_MV_JOINT_CDF; MV_CONTEXTS],
+ mv_class: [DEFAULT_MV_CLASS_CDF; MV_CONTEXTS],
+ mv_class0_bit: [[DEFAULT_MV_CLASS0_BIT_CDF; 2]; MV_CONTEXTS],
+ mv_fr: [DEFAULT_MV_FR_CDF; MV_CONTEXTS],
+ mv_class0_fr: [DEFAULT_MV_CLASS0_FR_CDF; MV_CONTEXTS],
+ mv_class0_hp: [[DEFAULT_MV_CLASS0_HP_CDF; 2]; MV_CONTEXTS],
+ mv_sign: [[DEFAULT_MV_SIGN_CDF; 2]; MV_CONTEXTS],
+ mv_bit: [[DEFAULT_MV_BIT_CDF; 2]; MV_CONTEXTS],
+ mv_hp: [[DEFAULT_MV_HP_CDF; 2]; MV_CONTEXTS],
+ palette_y_mode: DEFAULT_PALETTE_Y_MODE_CDF,
+ palette_uv_mode: DEFAULT_PALETTE_UV_MODE_CDF,
+ palette_y_size: DEFAULT_PALETTE_Y_SIZE_CDF,
+ palette_uv_size: DEFAULT_PALETTE_UV_SIZE_CDF,
+ palette_2_y_color: DEFAULT_PALETTE_SIZE_2_Y_COLOR_CDF,
+ palette_2_uv_color: DEFAULT_PALETTE_SIZE_2_UV_COLOR_CDF,
+ palette_3_y_color: DEFAULT_PALETTE_SIZE_3_Y_COLOR_CDF,
+ palette_3_uv_color: DEFAULT_PALETTE_SIZE_3_UV_COLOR_CDF,
+ palette_4_y_color: DEFAULT_PALETTE_SIZE_4_Y_COLOR_CDF,
+ palette_4_uv_color: DEFAULT_PALETTE_SIZE_4_UV_COLOR_CDF,
+ palette_5_y_color: DEFAULT_PALETTE_SIZE_5_Y_COLOR_CDF,
+ palette_5_uv_color: DEFAULT_PALETTE_SIZE_5_UV_COLOR_CDF,
+ palette_6_y_color: DEFAULT_PALETTE_SIZE_6_Y_COLOR_CDF,
+ palette_6_uv_color: DEFAULT_PALETTE_SIZE_6_UV_COLOR_CDF,
+ palette_7_y_color: DEFAULT_PALETTE_SIZE_7_Y_COLOR_CDF,
+ palette_7_uv_color: DEFAULT_PALETTE_SIZE_7_UV_COLOR_CDF,
+ palette_8_y_color: DEFAULT_PALETTE_SIZE_8_Y_COLOR_CDF,
+ palette_8_uv_color: DEFAULT_PALETTE_SIZE_8_UV_COLOR_CDF,
+ delta_q: DEFAULT_DELTA_Q_CDF,
+ delta_lf: DEFAULT_DELTA_LF_CDF,
+ delta_lf_multi: [DEFAULT_DELTA_LF_CDF; FRAME_LF_COUNT],
+ intra_tx_type_set1: DEFAULT_INTRA_TX_TYPE_SET1_CDF,
+ intra_tx_type_set2: DEFAULT_INTRA_TX_TYPE_SET2_CDF,
+ inter_tx_type_set1: DEFAULT_INTER_TX_TYPE_SET1_CDF,
+ inter_tx_type_set2: DEFAULT_INTER_TX_TYPE_SET2_CDF,
+ inter_tx_type_set3: DEFAULT_INTER_TX_TYPE_SET3_CDF,
+ use_obmc: DEFAULT_USE_OBMC_CDF,
+ inter_intra: DEFAULT_INTER_INTRA_CDF,
+ comp_ref_type: DEFAULT_COMP_REF_TYPE_CDF,
+ cfl_sign: DEFAULT_CFL_SIGN_CDF,
+ uni_comp_ref: DEFAULT_UNI_COMP_REF_CDF,
+ wedge_inter_intra: DEFAULT_WEDGE_INTER_INTRA_CDF,
+ comp_group_idx: DEFAULT_COMP_GROUP_IDX_CDF,
+ compound_idx: DEFAULT_COMPOUND_IDX_CDF,
+ compound_type: DEFAULT_COMPOUND_TYPE_CDF,
+ inter_intra_mode: DEFAULT_INTER_INTRA_MODE_CDF,
+ wedge_index: DEFAULT_WEDGE_INDEX_CDF,
+ cfl_alpha: DEFAULT_CFL_ALPHA_CDF,
+ use_wiener: DEFAULT_USE_WIENER_CDF,
+ use_sgrproj: DEFAULT_USE_SGRPROJ_CDF,
+ restoration_type: DEFAULT_RESTORATION_TYPE_CDF,
+ txb_skip: DEFAULT_TXB_SKIP_CDF[0],
+ eob_pt_16: DEFAULT_EOB_PT_16_CDF[0],
+ eob_pt_32: DEFAULT_EOB_PT_32_CDF[0],
+ eob_pt_64: DEFAULT_EOB_PT_64_CDF[0],
+ eob_pt_128: DEFAULT_EOB_PT_128_CDF[0],
+ eob_pt_256: DEFAULT_EOB_PT_256_CDF[0],
+ eob_pt_512: DEFAULT_EOB_PT_512_CDF[0],
+ eob_pt_1024: DEFAULT_EOB_PT_1024_CDF[0],
+ eob_extra: DEFAULT_EOB_EXTRA_CDF[0],
+ dc_sign: DEFAULT_DC_SIGN_CDF[0],
+ coeff_base_eob: DEFAULT_COEFF_BASE_EOB_CDF[0],
+ coeff_base: DEFAULT_COEFF_BASE_CDF[0],
+ coeff_br: DEFAULT_COEFF_BR_CDF[0],
+ });
+ c.init_coeff(base_q_idx);
+ c
+ }
+
+ /// init_coeff_cdfs( )
+ pub fn init_coeff(&mut self, base_q_idx: u32) {
+ let idx = match base_q_idx {
+ 0..=20 => 0,
+ 21..=60 => 1,
+ 61..=120 => 2,
+ _ => 3,
+ };
+ self.txb_skip = DEFAULT_TXB_SKIP_CDF[idx];
+ self.eob_pt_16 = DEFAULT_EOB_PT_16_CDF[idx];
+ self.eob_pt_32 = DEFAULT_EOB_PT_32_CDF[idx];
+ self.eob_pt_64 = DEFAULT_EOB_PT_64_CDF[idx];
+ self.eob_pt_128 = DEFAULT_EOB_PT_128_CDF[idx];
+ self.eob_pt_256 = DEFAULT_EOB_PT_256_CDF[idx];
+ self.eob_pt_512 = DEFAULT_EOB_PT_512_CDF[idx];
+ self.eob_pt_1024 = DEFAULT_EOB_PT_1024_CDF[idx];
+ self.eob_extra = DEFAULT_EOB_EXTRA_CDF[idx];
+ self.dc_sign = DEFAULT_DC_SIGN_CDF[idx];
+ self.coeff_base_eob = DEFAULT_COEFF_BASE_EOB_CDF[idx];
+ self.coeff_base = DEFAULT_COEFF_BASE_CDF[idx];
+ self.coeff_br = DEFAULT_COEFF_BR_CDF[idx];
+ }
+
+ /// The counter reset of load_cdfs( ): the last entry of every CDF array is set to 0.
+ pub fn clear_counts(&mut self) {
+ macro_rules! clr {
+ ($($f:ident),*) => { $( self.$f.clear_count(); )* };
+ }
+ clr!(
+ y_mode,
+ uv_mode_cfl_not_allowed,
+ uv_mode_cfl_allowed,
+ angle_delta,
+ intrabc,
+ partition_w8,
+ partition_w16,
+ partition_w32,
+ partition_w64,
+ partition_w128,
+ segment_id,
+ segment_id_predicted,
+ tx_8x8,
+ tx_16x16,
+ tx_32x32,
+ tx_64x64,
+ txfm_split,
+ filter_intra_mode,
+ filter_intra,
+ interp_filter,
+ motion_mode,
+ new_mv,
+ zero_mv,
+ ref_mv,
+ compound_mode,
+ drl_mode,
+ is_inter,
+ comp_mode,
+ skip_mode,
+ skip,
+ comp_ref,
+ comp_bwd_ref,
+ single_ref,
+ mv_joint,
+ mv_class,
+ mv_class0_bit,
+ mv_fr,
+ mv_class0_fr,
+ mv_class0_hp,
+ mv_sign,
+ mv_bit,
+ mv_hp,
+ palette_y_mode,
+ palette_uv_mode,
+ palette_y_size,
+ palette_uv_size,
+ palette_2_y_color,
+ palette_2_uv_color,
+ palette_3_y_color,
+ palette_3_uv_color,
+ palette_4_y_color,
+ palette_4_uv_color,
+ palette_5_y_color,
+ palette_5_uv_color,
+ palette_6_y_color,
+ palette_6_uv_color,
+ palette_7_y_color,
+ palette_7_uv_color,
+ palette_8_y_color,
+ palette_8_uv_color,
+ delta_q,
+ delta_lf,
+ delta_lf_multi,
+ intra_tx_type_set1,
+ intra_tx_type_set2,
+ inter_tx_type_set1,
+ inter_tx_type_set2,
+ inter_tx_type_set3,
+ use_obmc,
+ inter_intra,
+ comp_ref_type,
+ cfl_sign,
+ uni_comp_ref,
+ wedge_inter_intra,
+ comp_group_idx,
+ compound_idx,
+ compound_type,
+ inter_intra_mode,
+ wedge_index,
+ cfl_alpha,
+ use_wiener,
+ use_sgrproj,
+ restoration_type,
+ txb_skip,
+ eob_pt_16,
+ eob_pt_32,
+ eob_pt_64,
+ eob_pt_128,
+ eob_pt_256,
+ eob_pt_512,
+ eob_pt_1024,
+ eob_extra,
+ dc_sign,
+ coeff_base_eob,
+ coeff_base,
+ coeff_br
+ );
+ }
+}
+
+/// Zeroes the adaptation counter (last element) of every innermost CDF array.
+trait ClearCount {
+ fn clear_count(&mut self);
+}
+
+impl<const N: usize> ClearCount for [u16; N] {
+ fn clear_count(&mut self) {
+ self[N - 1] = 0;
+ }
+}
+
+impl<T: ClearCount, const M: usize> ClearCount for [T; M] {
+ fn clear_count(&mut self) {
+ for e in self.iter_mut() {
+ e.clear_count();
+ }
+ }
+}
diff --git a/crates/av1/src/decoder.rs b/crates/av1/src/decoder.rs
new file mode 100644
index 000000000..5a5cfc390
--- /dev/null
+++ b/crates/av1/src/decoder.rs
@@ -0,0 +1,365 @@
+//! Top-level decoder: OBU parsing (5.3), frame / tile group handling, reference frame update
+//! (7.20), show-existing-frame and output (7.18).
+
+use std::sync::Arc;
+
+use crate::bits::{BitReader, leb128};
+use crate::cdf::Cdfs;
+use crate::frame::FrameBuf;
+use crate::header::{FrameHeader, HeaderState, LoopFilterDeltas, RefInfo, SegmentationFeatures, SequenceHeader, default_gm_params};
+use crate::spec_tables::*;
+use crate::state::FrameState;
+use crate::tile::TileDecoder;
+use crate::{Error, Picture, Result};
+
+const OBU_SEQUENCE_HEADER_T: u32 = 1;
+const OBU_TEMPORAL_DELIMITER_T: u32 = 2;
+const OBU_FRAME_HEADER_T: u32 = 3;
+const OBU_TILE_GROUP_T: u32 = 4;
+const OBU_METADATA_T: u32 = 5;
+const OBU_FRAME_T: u32 = 6;
+const OBU_REDUNDANT_FRAME_HEADER_T: u32 = 7;
+const OBU_TILE_LIST_T: u32 = 8;
+
+/// A stored reference frame (FrameStore plus the saved per-frame state).
+pub(crate) struct RefFrame {
+ pub buf: FrameBuf,
+ pub cdfs: Box<Cdfs>,
+ pub bit_depth: u8,
+ pub subsampling_x: u8,
+ pub subsampling_y: u8,
+ pub segment_ids: Vec<u8>,
+ pub mi_cols: usize,
+ pub mi_rows: usize,
+ pub film_grain_present: bool,
+ pub color: (u8, u8, u8, bool),
+}
+
+/// An AV1 decoder. Feed it temporal units (one MP4 / Matroska sample each, or any run of
+/// OBUs in the low-overhead format) and collect the shown frames.
+pub struct Decoder {
+ seq: Option<SequenceHeader>,
+ refs: [RefInfo; NUM_REF_FRAMES],
+ ref_frames: [Option<Arc<RefFrame>>; NUM_REF_FRAMES],
+ lf_deltas: LoopFilterDeltas,
+ seg_features: SegmentationFeatures,
+ prev_gm_params: [[i32; 6]; 8],
+ current_frame_id: u32,
+ /// Frame being decoded (between its header and its last tile group).
+ cur: Option<Box<CurFrame>>,
+ seen_frame_header: bool,
+ /// Apply film grain synthesis to output frames (default true).
+ pub apply_film_grain: bool,
+}
+
+struct CurFrame {
+ fs: FrameState,
+ cdfs: Box<Cdfs>,
+ saved_cdfs: Option<Box<Cdfs>>,
+}
+
+impl Default for Decoder {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
+impl Decoder {
+ pub fn new() -> Decoder {
+ Decoder {
+ seq: None,
+ refs: Default::default(),
+ ref_frames: Default::default(),
+ lf_deltas: LoopFilterDeltas::defaults(),
+ seg_features: SegmentationFeatures::default(),
+ prev_gm_params: default_gm_params(),
+ current_frame_id: 0,
+ cur: None,
+ seen_frame_header: false,
+ apply_film_grain: true,
+ }
+ }
+
+ /// The active sequence header, once one has been decoded.
+ pub fn sequence_header(&self) -> Option<&SequenceHeader> {
+ self.seq.as_ref()
+ }
+
+ /// Decode a chunk of OBUs; returns the frames shown by it.
+ pub fn decode(&mut self, data: &[u8]) -> Result<Vec<Picture>> {
+ let mut out = Vec::new();
+ let mut pos = 0;
+ while pos < data.len() {
+ let h = data[pos];
+ if h & 0x80 != 0 {
+ return Err(Error::Invalid("obu_forbidden_bit"));
+ }
+ let obu_type = ((h >> 3) & 0xf) as u32;
+ let ext = h & 4 != 0;
+ let has_size = h & 2 != 0;
+ let mut p = pos + 1;
+ let (mut temporal_id, mut spatial_id) = (0, 0);
+ if ext {
+ let e = *data.get(p).ok_or(Error::Truncated)?;
+ temporal_id = (e >> 5) as u32;
+ spatial_id = ((e >> 3) & 3) as u32;
+ p += 1;
+ }
+ let size = if has_size {
+ let (v, n) = leb128(&data[p..])?;
+ p += n;
+ v as usize
+ } else {
+ data.len() - p
+ };
+ let end = p.checked_add(size).filter(|&e| e <= data.len()).ok_or(Error::Truncated)?;
+ let payload = &data[p..end];
+ pos = end;
+ if obu_type != OBU_SEQUENCE_HEADER_T
+ && obu_type != OBU_TEMPORAL_DELIMITER_T
+ && ext
+ && let Some(seq) = &self.seq
+ && seq.op_idc != 0
+ {
+ let idc = seq.op_idc;
+ let in_t = (idc >> temporal_id) & 1;
+ let in_s = (idc >> (spatial_id + 8)) & 1;
+ if in_t == 0 || in_s == 0 {
+ continue;
+ }
+ }
+ match obu_type {
+ OBU_SEQUENCE_HEADER_T => {
+ let s = SequenceHeader::parse(payload)?;
+ self.seq = Some(s);
+ }
+ OBU_TEMPORAL_DELIMITER_T => self.seen_frame_header = false,
+ OBU_FRAME_HEADER_T | OBU_REDUNDANT_FRAME_HEADER_T | OBU_FRAME_T => {
+ if self.seen_frame_header {
+ // frame_header_copy(): identical to the active header
+ if obu_type != OBU_FRAME_T {
+ continue;
+ }
+ }
+ let mut r = BitReader::new(payload);
+ let shown = self.frame_header(&mut r, temporal_id, spatial_id)?;
+ if let Some(pic) = shown {
+ out.push(pic);
+ continue;
+ }
+ if obu_type == OBU_FRAME_T {
+ r.byte_align();
+ let rest = &payload[r.byte_pos()..];
+ if let Some(pic) = self.tile_group(rest)? {
+ out.push(pic);
+ }
+ }
+ }
+ OBU_TILE_GROUP_T => {
+ if let Some(pic) = self.tile_group(payload)? {
+ out.push(pic);
+ }
+ }
+ OBU_METADATA_T | OBU_TILE_LIST_T => {}
+ _ => {}
+ }
+ }
+ Ok(out)
+ }
+
+ /// frame_header_obu( ): returns a picture for show_existing_frame.
+ fn frame_header(&mut self, r: &mut BitReader, temporal_id: u32, spatial_id: u32) -> Result<Option<Picture>> {
+ let seq = self.seq.clone().ok_or(Error::Invalid("frame before sequence header"))?;
+ self.seen_frame_header = true;
+ let mut st = HeaderState {
+ seq: &seq,
+ refs: &mut self.refs,
+ lf_deltas: self.lf_deltas,
+ seg_features: self.seg_features,
+ prev_gm_params: self.prev_gm_params,
+ current_frame_id: self.current_frame_id,
+ };
+ let fh = FrameHeader::parse(r, &mut st, temporal_id, spatial_id)?;
+ self.lf_deltas = st.lf_deltas;
+ self.seg_features = st.seg_features;
+ self.prev_gm_params = st.prev_gm_params;
+ self.current_frame_id = st.current_frame_id;
+ if fh.show_existing_frame {
+ self.seen_frame_header = false;
+ let idx = fh.frame_to_show_map_idx;
+ let rf = self.ref_frames[idx].clone().ok_or(Error::Invalid("show_existing_frame of an empty slot"))?;
+ let info = self.refs[idx].clone();
+ let pic = self.output_picture(&seq, &rf, info.upscaled_width as usize, info.frame_height as usize, &fh.film_grain);
+ if fh.frame_type == KEY_FRAME as u8 {
+ // reference frame loading process (7.21) then refresh every slot (7.20)
+ self.lf_deltas = info.lf_deltas;
+ self.seg_features = info.seg_features;
+ for i in 0..NUM_REF_FRAMES {
+ self.refs[i] = info.clone();
+ self.ref_frames[i] = Some(rf.clone());
+ }
+ }
+ return Ok(Some(pic));
+ }
+ if fh.frame_width > seq.max_frame_width || fh.frame_height > seq.max_frame_height {
+ return Err(Error::Invalid("frame larger than the sequence maximum"));
+ }
+ let fs = FrameState::new(&seq, &fh);
+ let cdfs = if fh.primary_ref_frame == PRIMARY_REF_NONE {
+ Cdfs::new(fh.quant.base_q_idx)
+ } else {
+ let slot = fh.ref_frame_idx[fh.primary_ref_frame];
+ let rf = self.ref_frames[slot].as_ref().ok_or(Error::Invalid("primary reference frame missing"))?;
+ let mut c = rf.cdfs.clone();
+ c.clear_counts();
+ c
+ };
+ self.cur = Some(Box::new(CurFrame { fs, cdfs, saved_cdfs: None }));
+ Ok(None)
+ }
+
+ /// tile_group_obu( sz ): returns the output picture when the frame completes and is shown.
+ fn tile_group(&mut self, data: &[u8]) -> Result<Option<Picture>> {
+ let mut cur = self.cur.take().ok_or(Error::Invalid("tile group without a frame header"))?;
+ let (cols, rows, cols_log2, rows_log2, tsb, ctx_tile) = {
+ let t = &cur.fs.fh.tile_info;
+ (t.cols, t.rows, t.cols_log2, t.rows_log2, t.tile_size_bytes, t.context_update_tile_id as usize)
+ };
+ let num_tiles = cols * rows;
+ let mut r = BitReader::new(data);
+ let mut tg_start = 0;
+ let mut tg_end = num_tiles - 1;
+ if num_tiles > 1 && r.flag()? {
+ let bits = cols_log2 + rows_log2;
+ tg_start = r.f(bits)? as usize;
+ tg_end = r.f(bits)? as usize;
+ }
+ r.byte_align();
+ if tg_end >= num_tiles || tg_start > tg_end {
+ return Err(Error::Invalid("tile group range"));
+ }
+ let mut pos = r.byte_pos();
+ for tile_num in tg_start..=tg_end {
+ let tile_row = tile_num / cols;
+ let tile_col = tile_num % cols;
+ let size = if tile_num == tg_end {
+ data.len() - pos
+ } else {
+ let mut v = 0usize;
+ for i in 0..tsb as usize {
+ v |= (*data.get(pos + i).ok_or(Error::Truncated)? as usize) << (8 * i);
+ }
+ pos += tsb as usize;
+ v + 1
+ };
+ let end = pos.checked_add(size).filter(|&e| e <= data.len()).ok_or(Error::Truncated)?;
+ let tile_data = &data[pos..end];
+ pos = end;
+ let cdfs = cur.cdfs.clone();
+ cur.fs.intra_frame_y_mode_cdf = DEFAULT_INTRA_FRAME_Y_MODE_CDF;
+ let mut td = TileDecoder::new(&mut cur.fs, tile_data, cdfs, tile_row, tile_col);
+ td.decode_tile()?;
+ if !td.fs.fh.disable_frame_end_update_cdf && tile_num == ctx_tile {
+ cur.saved_cdfs = Some(td.cdf);
+ }
+ }
+ if tg_end != num_tiles - 1 {
+ self.cur = Some(cur);
+ return Ok(None);
+ }
+ let mut cur = *cur;
+ if !cur.fs.fh.disable_frame_end_update_cdf
+ && let Some(saved) = cur.saved_cdfs.take()
+ {
+ cur.cdfs = saved;
+ }
+ self.seen_frame_header = false;
+ self.decode_frame_wrapup(cur)
+ }
+
+ fn decode_frame_wrapup(&mut self, cur: CurFrame) -> Result<Option<Picture>> {
+ let CurFrame { mut fs, cdfs, .. } = cur;
+ crate::postfilter::apply(&mut fs);
+ let seq = fs.seq.clone();
+ let fh = fs.fh.clone();
+ if fh.seg.enabled && !fh.seg.update_map {
+ // SegmentIds = PrevSegmentIds (load_previous_segment_ids)
+ if fh.primary_ref_frame != PRIMARY_REF_NONE
+ && let Some(rf) = &self.ref_frames[fh.ref_frame_idx[fh.primary_ref_frame]]
+ && rf.mi_cols == fs.mi.cols
+ && rf.mi_rows == fs.mi.rows
+ {
+ fs.mi.segment_id.copy_from_slice(&rf.segment_ids);
+ }
+ }
+ let rf = Arc::new(RefFrame {
+ buf: std::mem::take(&mut fs.cur),
+ cdfs,
+ bit_depth: seq.color.bit_depth,
+ subsampling_x: seq.color.subsampling_x,
+ subsampling_y: seq.color.subsampling_y,
+ segment_ids: std::mem::take(&mut fs.mi.segment_id),
+ mi_cols: fs.mi.cols,
+ mi_rows: fs.mi.rows,
+ film_grain_present: seq.film_grain_params_present,
+ color: (seq.color.color_primaries, seq.color.transfer_characteristics, seq.color.matrix_coefficients, seq.color.color_range),
+ });
+ // reference frame update process (7.20)
+ for i in 0..NUM_REF_FRAMES {
+ if (fh.refresh_frame_flags >> i) & 1 == 1 {
+ let ri = &mut self.refs[i];
+ ri.valid = true;
+ ri.frame_id = fh.current_frame_id;
+ ri.upscaled_width = fh.upscaled_width;
+ ri.frame_width = fh.frame_width;
+ ri.frame_height = fh.frame_height;
+ ri.render_width = fh.render_width;
+ ri.render_height = fh.render_height;
+ ri.mi_cols = fh.mi_cols;
+ ri.mi_rows = fh.mi_rows;
+ ri.frame_type = fh.frame_type;
+ ri.order_hint = fh.order_hint;
+ ri.saved_order_hints = fh.order_hints;
+ ri.gm_params = fh.gm_params;
+ ri.lf_deltas = fh.lf.deltas;
+ ri.seg_features = fh.seg.features;
+ ri.grain = fh.film_grain.clone();
+ self.ref_frames[i] = Some(rf.clone());
+ }
+ }
+ if fh.show_frame { Ok(Some(self.output_picture(&seq, &rf, fh.upscaled_width as usize, fh.frame_height as usize, &fh.film_grain))) } else { Ok(None) }
+ }
+
+ fn output_picture(&self, seq: &SequenceHeader, rf: &RefFrame, w: usize, h: usize, grain: &crate::header::FilmGrainParams) -> Picture {
+ let ssx = rf.subsampling_x as usize;
+ let ssy = rf.subsampling_y as usize;
+ let num_planes = rf.buf.num_planes;
+ let mut planes: [Vec<u16>; 3] = Default::default();
+ for p in 0..num_planes {
+ let (pw, ph) = if p == 0 { (w, h) } else { ((w + ssx) >> ssx, (h + ssy) >> ssy) };
+ let src = &rf.buf.planes[p];
+ let mut v = Vec::with_capacity(pw * ph);
+ for y in 0..ph {
+ v.extend_from_slice(&src.row(y)[..pw]);
+ }
+ planes[p] = v;
+ }
+ let mut pic = Picture {
+ width: w as u32,
+ height: h as u32,
+ bit_depth: rf.bit_depth,
+ subsampling_x: rf.subsampling_x,
+ subsampling_y: rf.subsampling_y,
+ mono_chrome: num_planes == 1,
+ planes,
+ color_primaries: rf.color.0,
+ transfer_characteristics: rf.color.1,
+ matrix_coefficients: rf.color.2,
+ full_range: rf.color.3,
+ };
+ if self.apply_film_grain && seq.film_grain_params_present && grain.apply_grain {
+ crate::grain::apply(&mut pic, grain, seq);
+ }
+ pic
+ }
+}
diff --git a/crates/av1/src/frame.rs b/crates/av1/src/frame.rs
new file mode 100644
index 000000000..dc8984a30
--- /dev/null
+++ b/crates/av1/src/frame.rs
@@ -0,0 +1,142 @@
+//! Frame sample buffers and per-4x4 mode info storage.
+
+/// One plane of samples (u16 at every bit depth).
+#[derive(Clone, Default)]
+pub struct Plane {
+ pub data: Vec<u16>,
+ pub stride: usize,
+ /// Allocated rows.
+ pub rows: usize,
+}
+
+impl Plane {
+ pub fn new(width: usize, height: usize) -> Plane {
+ Plane { data: vec![0; width * height], stride: width, rows: height }
+ }
+ #[inline(always)]
+ pub fn at(&self, x: usize, y: usize) -> u16 {
+ self.data[y * self.stride + x]
+ }
+ #[inline(always)]
+ pub fn set(&mut self, x: usize, y: usize, v: u16) {
+ self.data[y * self.stride + x] = v;
+ }
+ pub fn row(&self, y: usize) -> &[u16] {
+ &self.data[y * self.stride..(y + 1) * self.stride]
+ }
+ pub fn row_mut(&mut self, y: usize) -> &mut [u16] {
+ &mut self.data[y * self.stride..(y + 1) * self.stride]
+ }
+}
+
+/// A frame's three planes, sized to the macroblock-aligned coded area plus margins.
+#[derive(Clone, Default)]
+pub struct FrameBuf {
+ pub planes: [Plane; 3],
+ pub num_planes: usize,
+ pub subsampling_x: usize,
+ pub subsampling_y: usize,
+ pub bit_depth: u8,
+ /// Frame dimensions (luma) the samples are valid for.
+ pub width: usize,
+ pub height: usize,
+}
+
+impl FrameBuf {
+ /// Allocate a frame for a coded area of `width` x `height` luma samples (rounded up to the
+ /// 128x128 superblock grid plus 160 samples of slack for blocks extending past the edge).
+ pub fn new(width: usize, height: usize, num_planes: usize, subsampling_x: usize, subsampling_y: usize, bit_depth: u8) -> FrameBuf {
+ let aw = width.div_ceil(128) * 128 + 160;
+ let ah = height.div_ceil(128) * 128 + 160;
+ let mut planes: [Plane; 3] = Default::default();
+ planes[0] = Plane::new(aw, ah);
+ for p in planes.iter_mut().take(num_planes).skip(1) {
+ *p = Plane::new(aw >> subsampling_x, ah >> subsampling_y);
+ }
+ FrameBuf { planes, num_planes, subsampling_x, subsampling_y, bit_depth, width, height }
+ }
+
+ pub fn plane_width(&self, plane: usize) -> usize {
+ if plane == 0 { self.width } else { (self.width + self.subsampling_x) >> self.subsampling_x }
+ }
+
+ pub fn plane_height(&self, plane: usize) -> usize {
+ if plane == 0 { self.height } else { (self.height + self.subsampling_y) >> self.subsampling_y }
+ }
+}
+
+/// A motion vector (row, col) in 1/8 sample units.
+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+pub struct Mv {
+ pub row: i16,
+ pub col: i16,
+}
+
+impl Mv {
+ pub const ZERO: Mv = Mv { row: 0, col: 0 };
+ pub fn new(row: i32, col: i32) -> Mv {
+ Mv { row: row as i16, col: col as i16 }
+ }
+}
+
+/// Mode info stored for every 4x4 luma position (the arrays the spec indexes by
+/// `[ row ][ col ]` in mode-info units).
+#[derive(Clone, Default)]
+pub struct MiInfo {
+ pub cols: usize,
+ pub rows: usize,
+ pub y_mode: Vec<u8>,
+ pub uv_mode: Vec<u8>,
+ pub ref_frame: Vec<[i8; 2]>,
+ pub mv: Vec<[Mv; 2]>,
+ pub is_inter: Vec<bool>,
+ pub skip_mode: Vec<bool>,
+ pub skip: Vec<bool>,
+ pub tx_size: Vec<u8>,
+ pub inter_tx_size: Vec<u8>,
+ pub mi_size: Vec<u8>,
+ pub segment_id: Vec<u8>,
+ pub palette_size: [Vec<u8>; 2],
+ pub palette_colors: [Vec<[u16; 8]>; 2],
+ pub delta_lf: Vec<[i8; 4]>,
+ pub comp_group_idx: Vec<u8>,
+ pub compound_idx: Vec<u8>,
+ pub interp_filter: Vec<[u8; 2]>,
+ pub motion_mode: Vec<u8>,
+ /// TxTypes[ row ][ col ] (luma 4x4 units).
+ pub tx_type: Vec<u8>,
+}
+
+impl MiInfo {
+ pub fn new(cols: usize, rows: usize) -> MiInfo {
+ let n = cols * rows;
+ MiInfo {
+ cols,
+ rows,
+ y_mode: vec![0; n],
+ uv_mode: vec![0; n],
+ ref_frame: vec![[0, -1]; n],
+ mv: vec![[Mv::ZERO; 2]; n],
+ is_inter: vec![false; n],
+ skip_mode: vec![false; n],
+ skip: vec![false; n],
+ tx_size: vec![0; n],
+ inter_tx_size: vec![0; n],
+ mi_size: vec![0; n],
+ segment_id: vec![0; n],
+ palette_size: [vec![0; n], vec![0; n]],
+ palette_colors: [vec![[0; 8]; n], vec![[0; 8]; n]],
+ delta_lf: vec![[0; 4]; n],
+ comp_group_idx: vec![0; n],
+ compound_idx: vec![0; n],
+ interp_filter: vec![[0; 2]; n],
+ motion_mode: vec![0; n],
+ tx_type: vec![0; n],
+ }
+ }
+
+ #[inline(always)]
+ pub fn idx(&self, row: usize, col: usize) -> usize {
+ row * self.cols + col
+ }
+}
diff --git a/crates/av1/src/grain.rs b/crates/av1/src/grain.rs
new file mode 100644
index 000000000..5a15607cb
--- /dev/null
+++ b/crates/av1/src/grain.rs
@@ -0,0 +1,8 @@
+//! Film grain synthesis (7.18.3).
+
+use crate::Picture;
+use crate::header::{FilmGrainParams, SequenceHeader};
+
+pub(crate) fn apply(pic: &mut Picture, g: &FilmGrainParams, seq: &SequenceHeader) {
+ let _ = (pic, g, seq);
+}
diff --git a/crates/av1/src/header.rs b/crates/av1/src/header.rs
new file mode 100644
index 000000000..73d7ec437
--- /dev/null
+++ b/crates/av1/src/header.rs
@@ -0,0 +1,1361 @@
+//! Sequence header (5.5) and uncompressed frame header (5.9) parsing.
+
+use crate::bits::BitReader;
+use crate::spec_tables::*;
+use crate::{Error, Result};
+
+pub const EIGHTTAP: u8 = 0;
+pub const BILINEAR: u8 = 3;
+pub const SWITCHABLE: u8 = 4;
+/// `NONE` reference frame.
+pub const NONE: i8 = -1;
+
+/// Color configuration (5.5.2).
+#[derive(Debug, Clone, Default, PartialEq, Eq)]
+pub struct ColorConfig {
+ pub bit_depth: u8,
+ pub mono_chrome: bool,
+ pub num_planes: usize,
+ pub color_primaries: u8,
+ pub transfer_characteristics: u8,
+ pub matrix_coefficients: u8,
+ pub color_range: bool,
+ pub subsampling_x: u8,
+ pub subsampling_y: u8,
+ pub chroma_sample_position: u8,
+ pub separate_uv_delta_q: bool,
+}
+
+/// A parsed sequence header OBU.
+#[derive(Debug, Clone, Default, PartialEq, Eq)]
+pub struct SequenceHeader {
+ pub profile: u8,
+ pub still_picture: bool,
+ pub reduced_still_picture_header: bool,
+ pub timing_info_present: bool,
+ pub decoder_model_info_present: bool,
+ pub equal_picture_interval: bool,
+ pub buffer_removal_time_length_minus_1: u32,
+ pub frame_presentation_time_length_minus_1: u32,
+ pub operating_points_cnt_minus_1: usize,
+ pub operating_point_idc: [u32; 32],
+ pub seq_level_idx: [u8; 32],
+ pub decoder_model_present_for_this_op: [bool; 32],
+ /// OperatingPointIdc of the chosen operating point (0).
+ pub op_idc: u32,
+ pub frame_width_bits: u32,
+ pub frame_height_bits: u32,
+ pub max_frame_width: u32,
+ pub max_frame_height: u32,
+ pub frame_id_numbers_present: bool,
+ pub delta_frame_id_length_minus_2: u32,
+ pub additional_frame_id_length_minus_1: u32,
+ pub use_128x128_superblock: bool,
+ pub enable_filter_intra: bool,
+ pub enable_intra_edge_filter: bool,
+ pub enable_interintra_compound: bool,
+ pub enable_masked_compound: bool,
+ pub enable_warped_motion: bool,
+ pub enable_dual_filter: bool,
+ pub enable_order_hint: bool,
+ pub enable_jnt_comp: bool,
+ pub enable_ref_frame_mvs: bool,
+ pub seq_force_screen_content_tools: u32,
+ pub seq_force_integer_mv: u32,
+ pub order_hint_bits: u32,
+ pub enable_superres: bool,
+ pub enable_cdef: bool,
+ pub enable_restoration: bool,
+ pub color: ColorConfig,
+ pub film_grain_params_present: bool,
+}
+
+impl SequenceHeader {
+ pub fn parse(data: &[u8]) -> Result<SequenceHeader> {
+ let mut r = BitReader::new(data);
+ let mut s = SequenceHeader { profile: r.f(3)? as u8, ..Default::default() };
+ if s.profile > 2 {
+ return Err(Error::Unsupported("seq_profile > 2"));
+ }
+ s.still_picture = r.flag()?;
+ s.reduced_still_picture_header = r.flag()?;
+ if s.reduced_still_picture_header {
+ s.seq_level_idx[0] = r.f(5)? as u8;
+ } else {
+ s.timing_info_present = r.flag()?;
+ let mut buffer_delay_length_minus_1 = 0;
+ if s.timing_info_present {
+ r.f(32)?; // num_units_in_display_tick
+ r.f(32)?; // time_scale
+ s.equal_picture_interval = r.flag()?;
+ if s.equal_picture_interval {
+ r.uvlc()?;
+ }
+ s.decoder_model_info_present = r.flag()?;
+ if s.decoder_model_info_present {
+ buffer_delay_length_minus_1 = r.f(5)?;
+ r.f(32)?; // num_units_in_decoding_tick
+ s.buffer_removal_time_length_minus_1 = r.f(5)?;
+ s.frame_presentation_time_length_minus_1 = r.f(5)?;
+ }
+ }
+ let initial_display_delay_present = r.flag()?;
+ s.operating_points_cnt_minus_1 = r.f(5)? as usize;
+ for i in 0..=s.operating_points_cnt_minus_1 {
+ s.operating_point_idc[i] = r.f(12)?;
+ s.seq_level_idx[i] = r.f(5)? as u8;
+ if s.seq_level_idx[i] > 7 {
+ r.f(1)?; // seq_tier
+ }
+ if s.decoder_model_info_present {
+ s.decoder_model_present_for_this_op[i] = r.flag()?;
+ if s.decoder_model_present_for_this_op[i] {
+ let n = buffer_delay_length_minus_1 + 1;
+ r.f(n)?;
+ r.f(n)?;
+ r.f(1)?;
+ }
+ }
+ if initial_display_delay_present && r.flag()? {
+ r.f(4)?;
+ }
+ }
+ }
+ s.op_idc = s.operating_point_idc[0];
+ s.frame_width_bits = r.f(4)? + 1;
+ s.frame_height_bits = r.f(4)? + 1;
+ s.max_frame_width = r.f(s.frame_width_bits)? + 1;
+ s.max_frame_height = r.f(s.frame_height_bits)? + 1;
+ s.frame_id_numbers_present = if s.reduced_still_picture_header { false } else { r.flag()? };
+ if s.frame_id_numbers_present {
+ s.delta_frame_id_length_minus_2 = r.f(4)?;
+ s.additional_frame_id_length_minus_1 = r.f(3)?;
+ }
+ s.use_128x128_superblock = r.flag()?;
+ s.enable_filter_intra = r.flag()?;
+ s.enable_intra_edge_filter = r.flag()?;
+ if s.reduced_still_picture_header {
+ s.seq_force_screen_content_tools = SELECT_SCREEN_CONTENT_TOOLS as u32;
+ s.seq_force_integer_mv = SELECT_INTEGER_MV as u32;
+ } else {
+ s.enable_interintra_compound = r.flag()?;
+ s.enable_masked_compound = r.flag()?;
+ s.enable_warped_motion = r.flag()?;
+ s.enable_dual_filter = r.flag()?;
+ s.enable_order_hint = r.flag()?;
+ if s.enable_order_hint {
+ s.enable_jnt_comp = r.flag()?;
+ s.enable_ref_frame_mvs = r.flag()?;
+ }
+ s.seq_force_screen_content_tools = if r.flag()? { SELECT_SCREEN_CONTENT_TOOLS as u32 } else { r.f(1)? };
+ if s.seq_force_screen_content_tools > 0 {
+ s.seq_force_integer_mv = if r.flag()? { SELECT_INTEGER_MV as u32 } else { r.f(1)? };
+ } else {
+ s.seq_force_integer_mv = SELECT_INTEGER_MV as u32;
+ }
+ if s.enable_order_hint {
+ s.order_hint_bits = r.f(3)? + 1;
+ }
+ }
+ s.enable_superres = r.flag()?;
+ s.enable_cdef = r.flag()?;
+ s.enable_restoration = r.flag()?;
+ s.color = parse_color_config(&mut r, s.profile)?;
+ s.film_grain_params_present = r.flag()?;
+ Ok(s)
+ }
+}
+
+fn parse_color_config(r: &mut BitReader, profile: u8) -> Result<ColorConfig> {
+ let mut c = ColorConfig::default();
+ let high = r.flag()?;
+ c.bit_depth = if profile == 2 && high {
+ if r.flag()? { 12 } else { 10 }
+ } else if high {
+ 10
+ } else {
+ 8
+ };
+ c.mono_chrome = if profile == 1 { false } else { r.flag()? };
+ c.num_planes = if c.mono_chrome { 1 } else { 3 };
+ if r.flag()? {
+ c.color_primaries = r.f(8)? as u8;
+ c.transfer_characteristics = r.f(8)? as u8;
+ c.matrix_coefficients = r.f(8)? as u8;
+ } else {
+ c.color_primaries = 2;
+ c.transfer_characteristics = 2;
+ c.matrix_coefficients = 2;
+ }
+ if c.mono_chrome {
+ c.color_range = r.flag()?;
+ c.subsampling_x = 1;
+ c.subsampling_y = 1;
+ return Ok(c);
+ } else if c.color_primaries == 1 && c.transfer_characteristics == 13 && c.matrix_coefficients == 0 {
+ c.color_range = true;
+ } else {
+ c.color_range = r.flag()?;
+ match profile {
+ 0 => {
+ c.subsampling_x = 1;
+ c.subsampling_y = 1;
+ }
+ 1 => {}
+ _ => {
+ if c.bit_depth == 12 {
+ c.subsampling_x = r.f(1)? as u8;
+ c.subsampling_y = if c.subsampling_x == 1 { r.f(1)? as u8 } else { 0 };
+ } else {
+ c.subsampling_x = 1;
+ }
+ }
+ }
+ if c.subsampling_x == 1 && c.subsampling_y == 1 {
+ c.chroma_sample_position = r.f(2)? as u8;
+ }
+ }
+ c.separate_uv_delta_q = r.flag()?;
+ Ok(c)
+}
+
+/// Tile layout (5.9.15).
+#[derive(Debug, Clone, Default)]
+pub struct TileInfo {
+ pub cols: usize,
+ pub rows: usize,
+ pub cols_log2: u32,
+ pub rows_log2: u32,
+ pub mi_col_starts: Vec<u32>,
+ pub mi_row_starts: Vec<u32>,
+ pub context_update_tile_id: u32,
+ pub tile_size_bytes: u32,
+}
+
+#[derive(Debug, Clone, Default)]
+pub struct QuantParams {
+ pub base_q_idx: u32,
+ pub delta_q_y_dc: i32,
+ pub delta_q_u_dc: i32,
+ pub delta_q_u_ac: i32,
+ pub delta_q_v_dc: i32,
+ pub delta_q_v_ac: i32,
+ pub using_qmatrix: bool,
+ pub qm_y: u32,
+ pub qm_u: u32,
+ pub qm_v: u32,
+}
+
+#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
+pub struct SegmentationFeatures {
+ pub enabled: [[bool; SEG_LVL_MAX]; MAX_SEGMENTS],
+ pub data: [[i32; SEG_LVL_MAX]; MAX_SEGMENTS],
+}
+
+#[derive(Debug, Clone, Default)]
+pub struct Segmentation {
+ pub enabled: bool,
+ pub update_map: bool,
+ pub temporal_update: bool,
+ pub update_data: bool,
+ pub features: SegmentationFeatures,
+ pub seg_id_pre_skip: bool,
+ pub last_active_seg_id: u32,
+}
+
+#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
+pub struct LoopFilterDeltas {
+ pub ref_deltas: [i32; TOTAL_REFS_PER_FRAME],
+ pub mode_deltas: [i32; 2],
+}
+
+impl LoopFilterDeltas {
+ pub fn defaults() -> Self {
+ LoopFilterDeltas { ref_deltas: [1, 0, 0, 0, -1, 0, -1, -1], mode_deltas: [0, 0] }
+ }
+}
+
+#[derive(Debug, Clone, Default)]
+pub struct LoopFilterParams {
+ pub level: [u32; 4],
+ pub sharpness: u32,
+ pub delta_enabled: bool,
+ pub delta_update: bool,
+ pub deltas: LoopFilterDeltas,
+}
+
+#[derive(Debug, Clone, Default)]
+pub struct CdefParams {
+ pub damping: u32,
+ pub bits: u32,
+ pub y_pri: [u32; 8],
+ pub y_sec: [u32; 8],
+ pub uv_pri: [u32; 8],
+ pub uv_sec: [u32; 8],
+}
+
+#[derive(Debug, Clone, Default)]
+pub struct LrParams {
+ pub frame_restoration_type: [u8; 3],
+ pub uses_lr: bool,
+ pub loop_restoration_size: [u32; 3],
+}
+
+/// Film grain parameters (5.9.30).
+#[derive(Debug, Clone, Default, PartialEq, Eq)]
+pub struct FilmGrainParams {
+ pub apply_grain: bool,
+ pub grain_seed: u32,
+ pub update_grain: bool,
+ pub num_y_points: usize,
+ pub point_y_value: [u8; 16],
+ pub point_y_scaling: [u8; 16],
+ pub chroma_scaling_from_luma: bool,
+ pub num_cb_points: usize,
+ pub point_cb_value: [u8; 16],
+ pub point_cb_scaling: [u8; 16],
+ pub num_cr_points: usize,
+ pub point_cr_value: [u8; 16],
+ pub point_cr_scaling: [u8; 16],
+ pub grain_scaling_minus_8: u32,
+ pub ar_coeff_lag: u32,
+ pub ar_coeffs_y_plus_128: [u8; 24],
+ pub ar_coeffs_cb_plus_128: [u8; 25],
+ pub ar_coeffs_cr_plus_128: [u8; 25],
+ pub ar_coeff_shift_minus_6: u32,
+ pub grain_scale_shift: u32,
+ pub cb_mult: u32,
+ pub cb_luma_mult: u32,
+ pub cb_offset: u32,
+ pub cr_mult: u32,
+ pub cr_luma_mult: u32,
+ pub cr_offset: u32,
+ pub overlap_flag: bool,
+ pub clip_to_restricted_range: bool,
+}
+
+/// The values of one reference slot that the frame header needs (7.20).
+#[derive(Debug, Clone, Default)]
+pub struct RefInfo {
+ pub valid: bool,
+ pub frame_id: u32,
+ pub upscaled_width: u32,
+ pub frame_width: u32,
+ pub frame_height: u32,
+ pub render_width: u32,
+ pub render_height: u32,
+ pub mi_cols: u32,
+ pub mi_rows: u32,
+ pub frame_type: u8,
+ pub order_hint: u32,
+ pub saved_order_hints: [u32; 8],
+ pub gm_params: [[i32; 6]; 8],
+ pub lf_deltas: LoopFilterDeltas,
+ pub seg_features: SegmentationFeatures,
+ pub grain: FilmGrainParams,
+}
+
+/// A parsed uncompressed frame header with its derived variables.
+#[derive(Debug, Clone, Default)]
+pub struct FrameHeader {
+ pub show_existing_frame: bool,
+ pub frame_to_show_map_idx: usize,
+ pub frame_type: u8,
+ pub frame_is_intra: bool,
+ pub show_frame: bool,
+ pub showable_frame: bool,
+ pub error_resilient_mode: bool,
+ pub disable_cdf_update: bool,
+ pub allow_screen_content_tools: bool,
+ pub force_integer_mv: bool,
+ pub current_frame_id: u32,
+ pub frame_size_override_flag: bool,
+ pub order_hint: u32,
+ pub primary_ref_frame: usize,
+ pub refresh_frame_flags: u32,
+ pub allow_intrabc: bool,
+ pub ref_frame_idx: [usize; REFS_PER_FRAME],
+ pub allow_high_precision_mv: bool,
+ pub interpolation_filter: u8,
+ pub is_motion_mode_switchable: bool,
+ pub use_ref_frame_mvs: bool,
+ /// OrderHints[ LAST_FRAME..ALTREF_FRAME ] (index 0 unused).
+ pub order_hints: [u32; 8],
+ pub ref_frame_sign_bias: [bool; 8],
+ pub disable_frame_end_update_cdf: bool,
+ pub frame_width: u32,
+ pub frame_height: u32,
+ pub upscaled_width: u32,
+ pub render_width: u32,
+ pub render_height: u32,
+ pub use_superres: bool,
+ pub superres_denom: u32,
+ pub mi_cols: u32,
+ pub mi_rows: u32,
+ pub tile_info: TileInfo,
+ pub quant: QuantParams,
+ pub seg: Segmentation,
+ pub delta_q_present: bool,
+ pub delta_q_res: u32,
+ pub delta_lf_present: bool,
+ pub delta_lf_res: u32,
+ pub delta_lf_multi: bool,
+ pub coded_lossless: bool,
+ pub all_lossless: bool,
+ pub lossless_array: [bool; MAX_SEGMENTS],
+ pub seg_qm_level: [[u32; MAX_SEGMENTS]; 3],
+ pub lf: LoopFilterParams,
+ pub cdef: CdefParams,
+ pub lr: LrParams,
+ pub tx_mode: u8,
+ pub reference_select: bool,
+ pub skip_mode_present: bool,
+ pub skip_mode_frame: [usize; 2],
+ pub allow_warped_motion: bool,
+ pub reduced_tx_set: bool,
+ pub gm_type: [u8; 8],
+ pub gm_params: [[i32; 6]; 8],
+ pub prev_gm_params: [[i32; 6]; 8],
+ pub film_grain: FilmGrainParams,
+ /// Temporal / spatial id of the OBU carrying the header.
+ pub temporal_id: u32,
+ pub spatial_id: u32,
+}
+
+impl FrameHeader {
+ pub fn get_relative_dist(&self, seq: &SequenceHeader, a: u32, b: u32) -> i32 {
+ relative_dist(seq, a, b)
+ }
+
+ /// get_qindex( ignoreDeltaQ, segmentId ) with CurrentQIndex.
+ pub fn get_qindex(&self, ignore_delta_q: bool, segment_id: usize, current_q_index: i32) -> i32 {
+ let base = self.quant.base_q_idx as i32;
+ if self.seg.enabled && self.seg.features.enabled[segment_id][SEG_LVL_ALT_Q] {
+ let data = self.seg.features.data[segment_id][SEG_LVL_ALT_Q];
+ let mut q = base + data;
+ if !ignore_delta_q && self.delta_q_present {
+ q = current_q_index + data;
+ }
+ q.clamp(0, 255)
+ } else if !ignore_delta_q && self.delta_q_present {
+ current_q_index
+ } else {
+ base
+ }
+ }
+}
+
+pub(crate) fn relative_dist(seq: &SequenceHeader, a: u32, b: u32) -> i32 {
+ if !seq.enable_order_hint {
+ return 0;
+ }
+ let diff = a as i32 - b as i32;
+ let m = 1i32 << (seq.order_hint_bits - 1);
+ (diff & (m - 1)) - (diff & m)
+}
+
+/// Decoder state the frame header reads and updates across frames.
+pub struct HeaderState<'a> {
+ pub seq: &'a SequenceHeader,
+ pub refs: &'a mut [RefInfo; NUM_REF_FRAMES],
+ /// Loop filter deltas carried from the previous frame (setup_past_independence / load_previous).
+ pub lf_deltas: LoopFilterDeltas,
+ pub seg_features: SegmentationFeatures,
+ pub prev_gm_params: [[i32; 6]; 8],
+ pub current_frame_id: u32,
+}
+
+fn tile_log2(blk: u32, target: u32) -> u32 {
+ let mut k = 0;
+ while (blk << k) < target {
+ k += 1;
+ }
+ k
+}
+
+impl FrameHeader {
+ /// uncompressed_header( ). `st` holds the cross-frame state.
+ pub(crate) fn parse(r: &mut BitReader, st: &mut HeaderState, temporal_id: u32, spatial_id: u32) -> Result<FrameHeader> {
+ let seq = st.seq;
+ let mut h = FrameHeader { temporal_id, spatial_id, ..Default::default() };
+ let id_len = if seq.frame_id_numbers_present { seq.additional_frame_id_length_minus_1 + seq.delta_frame_id_length_minus_2 + 3 } else { 0 };
+ let all_frames = (1u32 << NUM_REF_FRAMES) - 1;
+ if seq.reduced_still_picture_header {
+ h.frame_type = KEY_FRAME as u8;
+ h.frame_is_intra = true;
+ h.show_frame = true;
+ } else {
+ h.show_existing_frame = r.flag()?;
+ if h.show_existing_frame {
+ h.frame_to_show_map_idx = r.f(3)? as usize;
+ if seq.decoder_model_info_present && !seq.equal_picture_interval {
+ r.f(seq.frame_presentation_time_length_minus_1 + 1)?;
+ }
+ if seq.frame_id_numbers_present {
+ r.f(id_len)?;
+ }
+ let rs = &st.refs[h.frame_to_show_map_idx];
+ if !rs.valid {
+ return Err(Error::Invalid("show_existing_frame of an empty slot"));
+ }
+ h.frame_type = rs.frame_type;
+ if h.frame_type == KEY_FRAME as u8 {
+ h.refresh_frame_flags = all_frames;
+ }
+ if seq.film_grain_params_present {
+ h.film_grain = rs.grain.clone();
+ }
+ return Ok(h);
+ }
+ h.frame_type = r.f(2)? as u8;
+ h.frame_is_intra = h.frame_type == INTRA_ONLY_FRAME as u8 || h.frame_type == KEY_FRAME as u8;
+ h.show_frame = r.flag()?;
+ if h.show_frame && seq.decoder_model_info_present && !seq.equal_picture_interval {
+ r.f(seq.frame_presentation_time_length_minus_1 + 1)?;
+ }
+ h.showable_frame = if h.show_frame { h.frame_type != KEY_FRAME as u8 } else { r.flag()? };
+ h.error_resilient_mode = if h.frame_type == SWITCH_FRAME as u8 || (h.frame_type == KEY_FRAME as u8 && h.show_frame) { true } else { r.flag()? };
+ }
+ if h.frame_type == KEY_FRAME as u8 && h.show_frame {
+ for rs in st.refs.iter_mut() {
+ rs.valid = false;
+ rs.order_hint = 0;
+ }
+ for i in 0..REFS_PER_FRAME {
+ h.order_hints[LAST_FRAME + i] = 0;
+ }
+ }
+ h.disable_cdf_update = r.flag()?;
+ h.allow_screen_content_tools =
+ if seq.seq_force_screen_content_tools == SELECT_SCREEN_CONTENT_TOOLS as u32 { r.flag()? } else { seq.seq_force_screen_content_tools != 0 };
+ if h.allow_screen_content_tools {
+ h.force_integer_mv = if seq.seq_force_integer_mv == SELECT_INTEGER_MV as u32 { r.flag()? } else { seq.seq_force_integer_mv != 0 };
+ }
+ if h.frame_is_intra {
+ h.force_integer_mv = true;
+ }
+ if seq.frame_id_numbers_present {
+ h.current_frame_id = r.f(id_len)?;
+ // mark_ref_frames( idLen )
+ let diff_len = seq.delta_frame_id_length_minus_2 + 2;
+ let cur = h.current_frame_id;
+ for rs in st.refs.iter_mut() {
+ if cur > (1 << diff_len) {
+ if rs.frame_id > cur || rs.frame_id < cur - (1 << diff_len) {
+ rs.valid = false;
+ }
+ } else if rs.frame_id > cur && rs.frame_id < (1 << id_len) + cur - (1 << diff_len) {
+ rs.valid = false;
+ }
+ }
+ st.current_frame_id = cur;
+ }
+ h.frame_size_override_flag = if h.frame_type == SWITCH_FRAME as u8 {
+ true
+ } else if seq.reduced_still_picture_header {
+ false
+ } else {
+ r.flag()?
+ };
+ h.order_hint = r.f(seq.order_hint_bits)?;
+ h.primary_ref_frame = if h.frame_is_intra || h.error_resilient_mode { PRIMARY_REF_NONE } else { r.f(3)? as usize };
+ if seq.decoder_model_info_present && r.flag()? {
+ for op in 0..=seq.operating_points_cnt_minus_1 {
+ if seq.decoder_model_present_for_this_op[op] {
+ let idc = seq.operating_point_idc[op];
+ let in_t = (idc >> temporal_id) & 1;
+ let in_s = (idc >> (spatial_id + 8)) & 1;
+ if idc == 0 || (in_t == 1 && in_s == 1) {
+ r.f(seq.buffer_removal_time_length_minus_1 + 1)?;
+ }
+ }
+ }
+ }
+ h.refresh_frame_flags = if h.frame_type == SWITCH_FRAME as u8 || (h.frame_type == KEY_FRAME as u8 && h.show_frame) { all_frames } else { r.f(8)? };
+ if (!h.frame_is_intra || h.refresh_frame_flags != all_frames) && h.error_resilient_mode && seq.enable_order_hint {
+ for rs in st.refs.iter_mut() {
+ let roh = r.f(seq.order_hint_bits)?;
+ if roh != rs.order_hint {
+ rs.valid = false;
+ }
+ }
+ }
+ if h.frame_is_intra {
+ h.frame_size(r, seq)?;
+ h.render_size(r)?;
+ if h.allow_screen_content_tools && h.upscaled_width == h.frame_width {
+ h.allow_intrabc = r.flag()?;
+ }
+ } else {
+ let mut short = false;
+ if seq.enable_order_hint {
+ short = r.flag()?;
+ if short {
+ let last = r.f(3)? as usize;
+ let gold = r.f(3)? as usize;
+ h.set_frame_refs(seq, st.refs, last, gold);
+ }
+ }
+ for i in 0..REFS_PER_FRAME {
+ if !short {
+ h.ref_frame_idx[i] = r.f(3)? as usize;
+ }
+ if seq.frame_id_numbers_present {
+ r.f(seq.delta_frame_id_length_minus_2 + 2)?;
+ }
+ }
+ for i in 0..REFS_PER_FRAME {
+ if !st.refs[h.ref_frame_idx[i]].valid {
+ return Err(Error::Invalid("reference to an empty slot"));
+ }
+ }
+ if h.frame_size_override_flag && !h.error_resilient_mode {
+ // frame_size_with_refs( )
+ let mut found = false;
+ for i in 0..REFS_PER_FRAME {
+ if r.flag()? {
+ let rs = &st.refs[h.ref_frame_idx[i]];
+ h.upscaled_width = rs.upscaled_width;
+ h.frame_width = h.upscaled_width;
+ h.frame_height = rs.frame_height;
+ h.render_width = rs.render_width;
+ h.render_height = rs.render_height;
+ found = true;
+ break;
+ }
+ }
+ if !found {
+ h.frame_size(r, seq)?;
+ h.render_size(r)?;
+ } else {
+ h.superres_params(r, seq)?;
+ h.compute_image_size();
+ }
+ } else {
+ h.frame_size(r, seq)?;
+ h.render_size(r)?;
+ }
+ h.allow_high_precision_mv = if h.force_integer_mv { false } else { r.flag()? };
+ h.interpolation_filter = if r.flag()? { SWITCHABLE } else { r.f(2)? as u8 };
+ h.is_motion_mode_switchable = r.flag()?;
+ h.use_ref_frame_mvs = if h.error_resilient_mode || !seq.enable_ref_frame_mvs { false } else { r.flag()? };
+ for i in 0..REFS_PER_FRAME {
+ let rf = LAST_FRAME + i;
+ let hint = st.refs[h.ref_frame_idx[i]].order_hint;
+ h.order_hints[rf] = hint;
+ h.ref_frame_sign_bias[rf] = seq.enable_order_hint && relative_dist(seq, hint, h.order_hint) > 0;
+ }
+ }
+ h.disable_frame_end_update_cdf = if seq.reduced_still_picture_header || h.disable_cdf_update { true } else { r.flag()? };
+ if h.primary_ref_frame == PRIMARY_REF_NONE {
+ // setup_past_independence( )
+ st.seg_features = SegmentationFeatures::default();
+ st.prev_gm_params = default_gm_params();
+ st.lf_deltas = LoopFilterDeltas::defaults();
+ h.lf.delta_enabled = true;
+ } else {
+ // load_previous( )
+ let prev = &st.refs[h.ref_frame_idx[h.primary_ref_frame]];
+ st.prev_gm_params = prev.gm_params;
+ st.lf_deltas = prev.lf_deltas;
+ st.seg_features = prev.seg_features;
+ }
+ h.prev_gm_params = st.prev_gm_params;
+ h.tile_info(r, seq)?;
+ h.quantization_params(r, seq)?;
+ h.segmentation_params(r, st)?;
+ // delta_q_params( )
+ if h.quant.base_q_idx > 0 {
+ h.delta_q_present = r.flag()?;
+ }
+ if h.delta_q_present {
+ h.delta_q_res = r.f(2)?;
+ }
+ // delta_lf_params( )
+ if h.delta_q_present {
+ if !h.allow_intrabc {
+ h.delta_lf_present = r.flag()?;
+ }
+ if h.delta_lf_present {
+ h.delta_lf_res = r.f(2)?;
+ h.delta_lf_multi = r.flag()?;
+ }
+ }
+ h.coded_lossless = true;
+ for seg_id in 0..MAX_SEGMENTS {
+ let q = h.get_qindex(true, seg_id, 0);
+ let ll = q == 0
+ && h.quant.delta_q_y_dc == 0
+ && h.quant.delta_q_u_ac == 0
+ && h.quant.delta_q_u_dc == 0
+ && h.quant.delta_q_v_ac == 0
+ && h.quant.delta_q_v_dc == 0;
+ h.lossless_array[seg_id] = ll;
+ if !ll {
+ h.coded_lossless = false;
+ }
+ if h.quant.using_qmatrix {
+ if ll {
+ h.seg_qm_level[0][seg_id] = 15;
+ h.seg_qm_level[1][seg_id] = 15;
+ h.seg_qm_level[2][seg_id] = 15;
+ } else {
+ h.seg_qm_level[0][seg_id] = h.quant.qm_y;
+ h.seg_qm_level[1][seg_id] = h.quant.qm_u;
+ h.seg_qm_level[2][seg_id] = h.quant.qm_v;
+ }
+ }
+ }
+ h.all_lossless = h.coded_lossless && h.frame_width == h.upscaled_width;
+ h.loop_filter_params(r, seq, st)?;
+ h.cdef_params(r, seq)?;
+ h.lr_params(r, seq)?;
+ // read_tx_mode( )
+ h.tx_mode = if h.coded_lossless {
+ ONLY_4X4 as u8
+ } else if r.flag()? {
+ TX_MODE_SELECT as u8
+ } else {
+ TX_MODE_LARGEST as u8
+ };
+ h.reference_select = if h.frame_is_intra { false } else { r.flag()? };
+ h.skip_mode_params(r, seq, st.refs)?;
+ h.allow_warped_motion = if h.frame_is_intra || h.error_resilient_mode || !seq.enable_warped_motion { false } else { r.flag()? };
+ h.reduced_tx_set = r.flag()?;
+ h.global_motion_params(r)?;
+ h.film_grain_params(r, seq, st.refs)?;
+ Ok(h)
+ }
+
+ fn superres_params(&mut self, r: &mut BitReader, seq: &SequenceHeader) -> Result<()> {
+ self.use_superres = if seq.enable_superres { r.flag()? } else { false };
+ self.superres_denom = if self.use_superres { r.f(SUPERRES_DENOM_BITS as u32)? + SUPERRES_DENOM_MIN as u32 } else { SUPERRES_NUM as u32 };
+ self.upscaled_width = self.frame_width;
+ self.frame_width = (self.upscaled_width * SUPERRES_NUM as u32 + self.superres_denom / 2) / self.superres_denom;
+ Ok(())
+ }
+
+ fn compute_image_size(&mut self) {
+ self.mi_cols = 2 * ((self.frame_width + 7) >> 3);
+ self.mi_rows = 2 * ((self.frame_height + 7) >> 3);
+ }
+
+ fn frame_size(&mut self, r: &mut BitReader, seq: &SequenceHeader) -> Result<()> {
+ if self.frame_size_override_flag {
+ self.frame_width = r.f(seq.frame_width_bits)? + 1;
+ self.frame_height = r.f(seq.frame_height_bits)? + 1;
+ } else {
+ self.frame_width = seq.max_frame_width;
+ self.frame_height = seq.max_frame_height;
+ }
+ self.superres_params(r, seq)?;
+ self.compute_image_size();
+ Ok(())
+ }
+
+ fn render_size(&mut self, r: &mut BitReader) -> Result<()> {
+ if r.flag()? {
+ self.render_width = r.f(16)? + 1;
+ self.render_height = r.f(16)? + 1;
+ } else {
+ self.render_width = self.upscaled_width;
+ self.render_height = self.frame_height;
+ }
+ Ok(())
+ }
+
+ /// Set frame refs process (7.8).
+ fn set_frame_refs(&mut self, seq: &SequenceHeader, refs: &[RefInfo; NUM_REF_FRAMES], last: usize, gold: usize) {
+ let mut idx = [-1i32; REFS_PER_FRAME];
+ idx[0] = last as i32;
+ idx[GOLDEN_FRAME - LAST_FRAME] = gold as i32;
+ let mut used = [false; NUM_REF_FRAMES];
+ used[last] = true;
+ used[gold] = true;
+ let cur = 1i32 << (seq.order_hint_bits - 1);
+ let shifted: Vec<i32> = (0..NUM_REF_FRAMES).map(|i| cur + relative_dist(seq, refs[i].order_hint, self.order_hint)).collect();
+ // ALTREF: latest backward
+ {
+ let mut rf = -1i32;
+ let mut latest = 0;
+ for i in 0..NUM_REF_FRAMES {
+ let hint = shifted[i];
+ if !used[i] && hint >= cur && (rf < 0 || hint >= latest) {
+ rf = i as i32;
+ latest = hint;
+ }
+ }
+ if rf >= 0 {
+ idx[ALTREF_FRAME - LAST_FRAME] = rf;
+ used[rf as usize] = true;
+ }
+ }
+ // BWDREF then ALTREF2: earliest backward
+ for target in [BWDREF_FRAME, ALTREF2_FRAME] {
+ let mut rf = -1i32;
+ let mut earliest = 0;
+ for i in 0..NUM_REF_FRAMES {
+ let hint = shifted[i];
+ if !used[i] && hint >= cur && (rf < 0 || hint < earliest) {
+ rf = i as i32;
+ earliest = hint;
+ }
+ }
+ if rf >= 0 {
+ idx[target - LAST_FRAME] = rf;
+ used[rf as usize] = true;
+ }
+ }
+ for &rf_frame in REF_FRAME_LIST.iter() {
+ let rf_frame = rf_frame as usize;
+ if idx[rf_frame - LAST_FRAME] < 0 {
+ let mut rf = -1i32;
+ let mut latest = 0;
+ for i in 0..NUM_REF_FRAMES {
+ let hint = shifted[i];
+ if !used[i] && hint < cur && (rf < 0 || hint >= latest) {
+ rf = i as i32;
+ latest = hint;
+ }
+ }
+ if rf >= 0 {
+ idx[rf_frame - LAST_FRAME] = rf;
+ used[rf as usize] = true;
+ }
+ }
+ }
+ let mut rf = -1i32;
+ let mut earliest = 0;
+ for i in 0..NUM_REF_FRAMES {
+ let hint = shifted[i];
+ if rf < 0 || hint < earliest {
+ rf = i as i32;
+ earliest = hint;
+ }
+ }
+ for i in 0..REFS_PER_FRAME {
+ if idx[i] < 0 {
+ idx[i] = rf;
+ }
+ self.ref_frame_idx[i] = idx[i] as usize;
+ }
+ }
+
+ fn tile_info(&mut self, r: &mut BitReader, seq: &SequenceHeader) -> Result<()> {
+ let sb128 = seq.use_128x128_superblock;
+ let sb_cols = if sb128 { (self.mi_cols + 31) >> 5 } else { (self.mi_cols + 15) >> 4 };
+ let sb_rows = if sb128 { (self.mi_rows + 31) >> 5 } else { (self.mi_rows + 15) >> 4 };
+ let sb_shift = if sb128 { 5 } else { 4 };
+ let sb_size = sb_shift + 2;
+ let max_tile_width_sb = MAX_TILE_WIDTH as u32 >> sb_size;
+ let mut max_tile_area_sb = MAX_TILE_AREA as u32 >> (2 * sb_size);
+ let min_log2_tile_cols = tile_log2(max_tile_width_sb, sb_cols);
+ let max_log2_tile_cols = tile_log2(1, sb_cols.min(MAX_TILE_COLS as u32));
+ let max_log2_tile_rows = tile_log2(1, sb_rows.min(MAX_TILE_ROWS as u32));
+ let min_log2_tiles = min_log2_tile_cols.max(tile_log2(max_tile_area_sb, sb_rows * sb_cols));
+ let t = &mut self.tile_info;
+ t.mi_col_starts.clear();
+ t.mi_row_starts.clear();
+ if r.flag()? {
+ t.cols_log2 = min_log2_tile_cols;
+ while t.cols_log2 < max_log2_tile_cols {
+ if r.flag()? {
+ t.cols_log2 += 1;
+ } else {
+ break;
+ }
+ }
+ let tile_width_sb = (sb_cols + (1 << t.cols_log2) - 1) >> t.cols_log2;
+ let mut start = 0;
+ while start < sb_cols {
+ t.mi_col_starts.push(start << sb_shift);
+ start += tile_width_sb;
+ }
+ t.cols = t.mi_col_starts.len();
+ t.mi_col_starts.push(self.mi_cols);
+ let min_log2_tile_rows = min_log2_tiles.saturating_sub(t.cols_log2);
+ t.rows_log2 = min_log2_tile_rows;
+ while t.rows_log2 < max_log2_tile_rows {
+ if r.flag()? {
+ t.rows_log2 += 1;
+ } else {
+ break;
+ }
+ }
+ let tile_height_sb = (sb_rows + (1 << t.rows_log2) - 1) >> t.rows_log2;
+ let mut start = 0;
+ while start < sb_rows {
+ t.mi_row_starts.push(start << sb_shift);
+ start += tile_height_sb;
+ }
+ t.rows = t.mi_row_starts.len();
+ t.mi_row_starts.push(self.mi_rows);
+ } else {
+ let mut widest = 0;
+ let mut start = 0;
+ while start < sb_cols {
+ t.mi_col_starts.push(start << sb_shift);
+ let max_width = (sb_cols - start).min(max_tile_width_sb);
+ let size = r.ns(max_width)? + 1;
+ widest = widest.max(size);
+ start += size;
+ }
+ t.cols = t.mi_col_starts.len();
+ t.mi_col_starts.push(self.mi_cols);
+ t.cols_log2 = tile_log2(1, t.cols as u32);
+ if min_log2_tiles > 0 {
+ max_tile_area_sb = (sb_rows * sb_cols) >> (min_log2_tiles + 1);
+ } else {
+ max_tile_area_sb = sb_rows * sb_cols;
+ }
+ let max_tile_height_sb = (max_tile_area_sb / widest.max(1)).max(1);
+ let mut start = 0;
+ while start < sb_rows {
+ t.mi_row_starts.push(start << sb_shift);
+ let max_height = (sb_rows - start).min(max_tile_height_sb);
+ let size = r.ns(max_height)? + 1;
+ start += size;
+ }
+ t.rows = t.mi_row_starts.len();
+ t.mi_row_starts.push(self.mi_rows);
+ t.rows_log2 = tile_log2(1, t.rows as u32);
+ }
+ if t.cols_log2 > 0 || t.rows_log2 > 0 {
+ t.context_update_tile_id = r.f(t.rows_log2 + t.cols_log2)?;
+ t.tile_size_bytes = r.f(2)? + 1;
+ } else {
+ t.context_update_tile_id = 0;
+ }
+ if t.context_update_tile_id as usize >= t.cols * t.rows {
+ return Err(Error::Invalid("context_update_tile_id"));
+ }
+ Ok(())
+ }
+
+ fn quantization_params(&mut self, r: &mut BitReader, seq: &SequenceHeader) -> Result<()> {
+ let q = &mut self.quant;
+ q.base_q_idx = r.f(8)?;
+ let read_delta_q = |r: &mut BitReader| -> Result<i32> { if r.flag()? { r.su(7) } else { Ok(0) } };
+ q.delta_q_y_dc = read_delta_q(r)?;
+ if seq.color.num_planes > 1 {
+ let diff_uv_delta = if seq.color.separate_uv_delta_q { r.flag()? } else { false };
+ q.delta_q_u_dc = read_delta_q(r)?;
+ q.delta_q_u_ac = read_delta_q(r)?;
+ if diff_uv_delta {
+ q.delta_q_v_dc = read_delta_q(r)?;
+ q.delta_q_v_ac = read_delta_q(r)?;
+ } else {
+ q.delta_q_v_dc = q.delta_q_u_dc;
+ q.delta_q_v_ac = q.delta_q_u_ac;
+ }
+ }
+ q.using_qmatrix = r.flag()?;
+ if q.using_qmatrix {
+ q.qm_y = r.f(4)?;
+ q.qm_u = r.f(4)?;
+ q.qm_v = if !seq.color.separate_uv_delta_q { q.qm_u } else { r.f(4)? };
+ }
+ Ok(())
+ }
+
+ fn segmentation_params(&mut self, r: &mut BitReader, st: &mut HeaderState) -> Result<()> {
+ const BITS: [u32; SEG_LVL_MAX] = [8, 6, 6, 6, 6, 3, 0, 0];
+ const SIGNED: [bool; SEG_LVL_MAX] = [true, true, true, true, true, false, false, false];
+ const MAX: [i32; SEG_LVL_MAX] = [255, 63, 63, 63, 63, 7, 0, 0];
+ let s = &mut self.seg;
+ s.enabled = r.flag()?;
+ if s.enabled {
+ if self.primary_ref_frame == PRIMARY_REF_NONE {
+ s.update_map = true;
+ s.temporal_update = false;
+ s.update_data = true;
+ } else {
+ s.update_map = r.flag()?;
+ if s.update_map {
+ s.temporal_update = r.flag()?;
+ }
+ s.update_data = r.flag()?;
+ }
+ if s.update_data {
+ for i in 0..MAX_SEGMENTS {
+ for j in 0..SEG_LVL_MAX {
+ let en = r.flag()?;
+ st.seg_features.enabled[i][j] = en;
+ let mut v = 0;
+ if en {
+ let bits = BITS[j];
+ let limit = MAX[j];
+ if SIGNED[j] {
+ v = r.su(1 + bits)?.clamp(-limit, limit);
+ } else {
+ v = (r.f(bits)? as i32).clamp(0, limit);
+ }
+ }
+ st.seg_features.data[i][j] = v;
+ }
+ }
+ }
+ } else {
+ st.seg_features = SegmentationFeatures::default();
+ }
+ s.features = st.seg_features;
+ s.seg_id_pre_skip = false;
+ s.last_active_seg_id = 0;
+ for i in 0..MAX_SEGMENTS {
+ for j in 0..SEG_LVL_MAX {
+ if s.features.enabled[i][j] {
+ s.last_active_seg_id = i as u32;
+ if j >= SEG_LVL_REF_FRAME {
+ s.seg_id_pre_skip = true;
+ }
+ }
+ }
+ }
+ Ok(())
+ }
+
+ fn loop_filter_params(&mut self, r: &mut BitReader, seq: &SequenceHeader, st: &mut HeaderState) -> Result<()> {
+ let lf = &mut self.lf;
+ if self.coded_lossless || self.allow_intrabc {
+ lf.level = [0; 4];
+ st.lf_deltas = LoopFilterDeltas::defaults();
+ lf.deltas = st.lf_deltas;
+ return Ok(());
+ }
+ lf.level[0] = r.f(6)?;
+ lf.level[1] = r.f(6)?;
+ if seq.color.num_planes > 1 && (lf.level[0] != 0 || lf.level[1] != 0) {
+ lf.level[2] = r.f(6)?;
+ lf.level[3] = r.f(6)?;
+ }
+ lf.sharpness = r.f(3)?;
+ lf.delta_enabled = r.flag()?;
+ if lf.delta_enabled {
+ lf.delta_update = r.flag()?;
+ if lf.delta_update {
+ for i in 0..TOTAL_REFS_PER_FRAME {
+ if r.flag()? {
+ st.lf_deltas.ref_deltas[i] = r.su(7)?;
+ }
+ }
+ for i in 0..2 {
+ if r.flag()? {
+ st.lf_deltas.mode_deltas[i] = r.su(7)?;
+ }
+ }
+ }
+ }
+ lf.deltas = st.lf_deltas;
+ Ok(())
+ }
+
+ fn cdef_params(&mut self, r: &mut BitReader, seq: &SequenceHeader) -> Result<()> {
+ let c = &mut self.cdef;
+ if self.coded_lossless || self.allow_intrabc || !seq.enable_cdef {
+ c.bits = 0;
+ c.y_pri[0] = 0;
+ c.y_sec[0] = 0;
+ c.uv_pri[0] = 0;
+ c.uv_sec[0] = 0;
+ c.damping = 3;
+ return Ok(());
+ }
+ c.damping = r.f(2)? + 3;
+ c.bits = r.f(2)?;
+ for i in 0..(1 << c.bits) {
+ c.y_pri[i] = r.f(4)?;
+ c.y_sec[i] = r.f(2)?;
+ if c.y_sec[i] == 3 {
+ c.y_sec[i] += 1;
+ }
+ if seq.color.num_planes > 1 {
+ c.uv_pri[i] = r.f(4)?;
+ c.uv_sec[i] = r.f(2)?;
+ if c.uv_sec[i] == 3 {
+ c.uv_sec[i] += 1;
+ }
+ }
+ }
+ Ok(())
+ }
+
+ fn lr_params(&mut self, r: &mut BitReader, seq: &SequenceHeader) -> Result<()> {
+ const REMAP: [u8; 4] = [RESTORE_NONE as u8, RESTORE_SWITCHABLE as u8, RESTORE_WIENER as u8, RESTORE_SGRPROJ as u8];
+ let l = &mut self.lr;
+ if self.all_lossless || self.allow_intrabc || !seq.enable_restoration {
+ l.frame_restoration_type = [RESTORE_NONE as u8; 3];
+ l.uses_lr = false;
+ return Ok(());
+ }
+ let mut uses_chroma = false;
+ for i in 0..seq.color.num_planes {
+ let t = REMAP[r.f(2)? as usize];
+ l.frame_restoration_type[i] = t;
+ if t != RESTORE_NONE as u8 {
+ l.uses_lr = true;
+ if i > 0 {
+ uses_chroma = true;
+ }
+ }
+ }
+ if l.uses_lr {
+ let mut shift;
+ if seq.use_128x128_superblock {
+ shift = r.f(1)?;
+ shift += 1;
+ } else {
+ shift = r.f(1)?;
+ if shift != 0 {
+ shift += r.f(1)?;
+ }
+ }
+ l.loop_restoration_size[0] = (RESTORATION_TILESIZE_MAX as u32) >> (2 - shift);
+ let uv_shift = if seq.color.subsampling_x == 1 && seq.color.subsampling_y == 1 && uses_chroma { r.f(1)? } else { 0 };
+ l.loop_restoration_size[1] = l.loop_restoration_size[0] >> uv_shift;
+ l.loop_restoration_size[2] = l.loop_restoration_size[0] >> uv_shift;
+ }
+ Ok(())
+ }
+
+ fn skip_mode_params(&mut self, r: &mut BitReader, seq: &SequenceHeader, refs: &[RefInfo; NUM_REF_FRAMES]) -> Result<()> {
+ let mut allowed = false;
+ if !(self.frame_is_intra || !self.reference_select || !seq.enable_order_hint) {
+ let mut fwd = -1i32;
+ let mut bwd = -1i32;
+ let (mut fwd_hint, mut bwd_hint) = (0u32, 0u32);
+ for i in 0..REFS_PER_FRAME {
+ let ref_hint = refs[self.ref_frame_idx[i]].order_hint;
+ if relative_dist(seq, ref_hint, self.order_hint) < 0 {
+ if fwd < 0 || relative_dist(seq, ref_hint, fwd_hint) > 0 {
+ fwd = i as i32;
+ fwd_hint = ref_hint;
+ }
+ } else if relative_dist(seq, ref_hint, self.order_hint) > 0 && (bwd < 0 || relative_dist(seq, ref_hint, bwd_hint) < 0) {
+ bwd = i as i32;
+ bwd_hint = ref_hint;
+ }
+ }
+ if fwd < 0 {
+ allowed = false;
+ } else if bwd >= 0 {
+ allowed = true;
+ self.skip_mode_frame = [LAST_FRAME + fwd.min(bwd) as usize, LAST_FRAME + fwd.max(bwd) as usize];
+ } else {
+ let mut second = -1i32;
+ let mut second_hint = 0u32;
+ for i in 0..REFS_PER_FRAME {
+ let ref_hint = refs[self.ref_frame_idx[i]].order_hint;
+ if relative_dist(seq, ref_hint, fwd_hint) < 0 && (second < 0 || relative_dist(seq, ref_hint, second_hint) > 0) {
+ second = i as i32;
+ second_hint = ref_hint;
+ }
+ }
+ if second >= 0 {
+ allowed = true;
+ self.skip_mode_frame = [LAST_FRAME + fwd.min(second) as usize, LAST_FRAME + fwd.max(second) as usize];
+ }
+ }
+ }
+ self.skip_mode_present = if allowed { r.flag()? } else { false };
+ Ok(())
+ }
+
+ fn global_motion_params(&mut self, r: &mut BitReader) -> Result<()> {
+ for rf in LAST_FRAME..=ALTREF_FRAME {
+ self.gm_type[rf] = IDENTITY as u8;
+ self.gm_params[rf] = default_gm_params()[rf];
+ }
+ if self.frame_is_intra {
+ return Ok(());
+ }
+ for rf in LAST_FRAME..=ALTREF_FRAME {
+ let typ = if r.flag()? {
+ if r.flag()? {
+ ROTZOOM
+ } else if r.flag()? {
+ TRANSLATION
+ } else {
+ AFFINE
+ }
+ } else {
+ IDENTITY
+ };
+ self.gm_type[rf] = typ as u8;
+ if typ >= ROTZOOM {
+ self.read_global_param(r, typ, rf, 2)?;
+ self.read_global_param(r, typ, rf, 3)?;
+ if typ == AFFINE {
+ self.read_global_param(r, typ, rf, 4)?;
+ self.read_global_param(r, typ, rf, 5)?;
+ } else {
+ self.gm_params[rf][4] = -self.gm_params[rf][3];
+ self.gm_params[rf][5] = self.gm_params[rf][2];
+ }
+ }
+ if typ >= TRANSLATION {
+ self.read_global_param(r, typ, rf, 0)?;
+ self.read_global_param(r, typ, rf, 1)?;
+ }
+ }
+ Ok(())
+ }
+
+ fn read_global_param(&mut self, r: &mut BitReader, typ: usize, rf: usize, idx: usize) -> Result<()> {
+ let mut abs_bits = GM_ABS_ALPHA_BITS as u32;
+ let mut prec_bits = GM_ALPHA_PREC_BITS as u32;
+ if idx < 2 {
+ if typ == TRANSLATION {
+ let hp = !self.allow_high_precision_mv as u32;
+ abs_bits = GM_ABS_TRANS_ONLY_BITS as u32 - hp;
+ prec_bits = GM_TRANS_ONLY_PREC_BITS as u32 - hp;
+ } else {
+ abs_bits = GM_ABS_TRANS_BITS as u32;
+ prec_bits = GM_TRANS_PREC_BITS as u32;
+ }
+ }
+ let prec_diff = WARPEDMODEL_PREC_BITS as u32 - prec_bits;
+ let round = if idx % 3 == 2 { 1i32 << WARPEDMODEL_PREC_BITS } else { 0 };
+ let sub = if idx % 3 == 2 { 1i32 << prec_bits } else { 0 };
+ let mx = 1i32 << abs_bits;
+ let rr = (self.prev_gm_params[rf][idx] >> prec_diff) - sub;
+ let v = decode_signed_subexp_with_ref(r, -mx, mx + 1, rr)?;
+ self.gm_params[rf][idx] = (v << prec_diff) + round;
+ Ok(())
+ }
+
+ fn film_grain_params(&mut self, r: &mut BitReader, seq: &SequenceHeader, refs: &[RefInfo; NUM_REF_FRAMES]) -> Result<()> {
+ if !seq.film_grain_params_present || (!self.show_frame && !self.showable_frame) {
+ self.film_grain = FilmGrainParams::default();
+ return Ok(());
+ }
+ let mut g = FilmGrainParams { apply_grain: r.flag()?, ..Default::default() };
+ if !g.apply_grain {
+ self.film_grain = FilmGrainParams::default();
+ return Ok(());
+ }
+ g.grain_seed = r.f(16)?;
+ g.update_grain = if self.frame_type == INTER_FRAME as u8 { r.flag()? } else { true };
+ if !g.update_grain {
+ let idx = r.f(3)? as usize;
+ let seed = g.grain_seed;
+ g = refs[idx].grain.clone();
+ g.grain_seed = seed;
+ self.film_grain = g;
+ return Ok(());
+ }
+ g.num_y_points = r.f(4)? as usize;
+ if g.num_y_points > 14 {
+ return Err(Error::Invalid("num_y_points"));
+ }
+ for i in 0..g.num_y_points {
+ g.point_y_value[i] = r.f(8)? as u8;
+ g.point_y_scaling[i] = r.f(8)? as u8;
+ }
+ g.chroma_scaling_from_luma = if seq.color.mono_chrome { false } else { r.flag()? };
+ if seq.color.mono_chrome || g.chroma_scaling_from_luma || (seq.color.subsampling_x == 1 && seq.color.subsampling_y == 1 && g.num_y_points == 0) {
+ g.num_cb_points = 0;
+ g.num_cr_points = 0;
+ } else {
+ g.num_cb_points = r.f(4)? as usize;
+ if g.num_cb_points > 10 {
+ return Err(Error::Invalid("num_cb_points"));
+ }
+ for i in 0..g.num_cb_points {
+ g.point_cb_value[i] = r.f(8)? as u8;
+ g.point_cb_scaling[i] = r.f(8)? as u8;
+ }
+ g.num_cr_points = r.f(4)? as usize;
+ if g.num_cr_points > 10 {
+ return Err(Error::Invalid("num_cr_points"));
+ }
+ for i in 0..g.num_cr_points {
+ g.point_cr_value[i] = r.f(8)? as u8;
+ g.point_cr_scaling[i] = r.f(8)? as u8;
+ }
+ }
+ g.grain_scaling_minus_8 = r.f(2)?;
+ g.ar_coeff_lag = r.f(2)?;
+ let num_pos_luma = 2 * g.ar_coeff_lag * (g.ar_coeff_lag + 1);
+ let num_pos_chroma = if g.num_y_points > 0 {
+ for i in 0..num_pos_luma as usize {
+ g.ar_coeffs_y_plus_128[i] = r.f(8)? as u8;
+ }
+ num_pos_luma + 1
+ } else {
+ num_pos_luma
+ };
+ if g.chroma_scaling_from_luma || g.num_cb_points > 0 {
+ for i in 0..num_pos_chroma as usize {
+ g.ar_coeffs_cb_plus_128[i] = r.f(8)? as u8;
+ }
+ }
+ if g.chroma_scaling_from_luma || g.num_cr_points > 0 {
+ for i in 0..num_pos_chroma as usize {
+ g.ar_coeffs_cr_plus_128[i] = r.f(8)? as u8;
+ }
+ }
+ g.ar_coeff_shift_minus_6 = r.f(2)?;
+ g.grain_scale_shift = r.f(2)?;
+ if g.num_cb_points > 0 {
+ g.cb_mult = r.f(8)?;
+ g.cb_luma_mult = r.f(8)?;
+ g.cb_offset = r.f(9)?;
+ }
+ if g.num_cr_points > 0 {
+ g.cr_mult = r.f(8)?;
+ g.cr_luma_mult = r.f(8)?;
+ g.cr_offset = r.f(9)?;
+ }
+ g.overlap_flag = r.flag()?;
+ g.clip_to_restricted_range = r.flag()?;
+ self.film_grain = g;
+ Ok(())
+ }
+}
+
+pub(crate) fn default_gm_params() -> [[i32; 6]; 8] {
+ let mut p = [[0i32; 6]; 8];
+ for row in p.iter_mut() {
+ row[2] = 1 << WARPEDMODEL_PREC_BITS;
+ row[5] = 1 << WARPEDMODEL_PREC_BITS;
+ }
+ p
+}
+
+fn inverse_recenter(r: i32, v: i32) -> i32 {
+ if v > 2 * r {
+ v
+ } else if v & 1 == 1 {
+ r - ((v + 1) >> 1)
+ } else {
+ r + (v >> 1)
+ }
+}
+
+fn decode_signed_subexp_with_ref(r: &mut BitReader, low: i32, high: i32, rr: i32) -> Result<i32> {
+ let x = decode_unsigned_subexp_with_ref(r, high - low, rr - low)?;
+ Ok(x + low)
+}
+
+fn decode_unsigned_subexp_with_ref(r: &mut BitReader, mx: i32, rr: i32) -> Result<i32> {
+ let v = decode_subexp(r, mx)?;
+ Ok(if (rr << 1) <= mx { inverse_recenter(rr, v) } else { mx - 1 - inverse_recenter(mx - 1 - rr, v) })
+}
+
+fn decode_subexp(r: &mut BitReader, num_syms: i32) -> Result<i32> {
+ let mut i = 0;
+ let mut mk = 0;
+ let k = 3;
+ loop {
+ let b2 = if i > 0 { k + i - 1 } else { k };
+ let a = 1 << b2;
+ if num_syms <= mk + 3 * a {
+ return Ok(r.ns((num_syms - mk) as u32)? as i32 + mk);
+ } else if r.flag()? {
+ i += 1;
+ mk += a;
+ } else {
+ return Ok(r.f(b2 as u32)? as i32 + mk);
+ }
+ }
+}
diff --git a/crates/av1/src/intra.rs b/crates/av1/src/intra.rs
new file mode 100644
index 000000000..4d68e09fb
--- /dev/null
+++ b/crates/av1/src/intra.rs
@@ -0,0 +1,403 @@
+//! Intra prediction (spec 7.11.2), palette prediction (7.11.4) and chroma from luma (7.11.5).
+
+use crate::frame::Plane;
+use crate::spec_tables::*;
+use crate::transform::round2;
+
+/// Inputs of the intra prediction process that come from the block.
+pub(crate) struct IntraParams {
+ pub plane: usize,
+ pub x: usize,
+ pub y: usize,
+ pub have_left: bool,
+ pub have_above: bool,
+ pub have_above_right: bool,
+ pub have_below_left: bool,
+ pub mode: usize,
+ pub log2w: u32,
+ pub log2h: u32,
+ /// Largest valid x / y in the plane: ((MiCols * MI_SIZE) >> subX) - 1.
+ pub max_x: i32,
+ pub max_y: i32,
+ pub bit_depth: u32,
+ pub angle_delta: i32,
+ pub use_filter_intra: bool,
+ pub filter_intra_mode: usize,
+ pub enable_intra_edge_filter: bool,
+ /// Result of the intra filter type process (7.11.2.8).
+ pub filter_type: bool,
+}
+
+const EDGE: usize = 32; // offset of index 0 in the edge buffers (they start at index -2 .. -1)
+
+#[inline(always)]
+fn clip1(v: i32, bd: u32) -> u16 {
+ v.clamp(0, (1 << bd) - 1) as u16
+}
+
+pub(crate) fn is_directional_mode(mode: usize) -> bool {
+ (V_PRED..=D67_PRED).contains(&mode)
+}
+
+/// Predict the w x h block at (x, y) of `pl` (writes into the plane).
+pub(crate) fn predict_intra(pl: &mut Plane, p: &IntraParams) {
+ let w = 1usize << p.log2w;
+ let h = 1usize << p.log2h;
+ let bd = p.bit_depth;
+ let (x, y) = (p.x, p.y);
+ // edge arrays with room for index -2 .. 2*(w+h)
+ let mut above = [0i32; 2 * 128 + 2 * EDGE];
+ let mut left = [0i32; 2 * 128 + 2 * EDGE];
+ let n = w + h;
+ if !p.have_above && p.have_left {
+ let v = pl.at(x - 1, y) as i32;
+ above[EDGE..EDGE + n].iter_mut().for_each(|a| *a = v);
+ } else if !p.have_above && !p.have_left {
+ let v = (1 << (bd - 1)) - 1;
+ above[EDGE..EDGE + n].iter_mut().for_each(|a| *a = v);
+ } else {
+ let above_limit = (p.max_x).min(x as i32 + if p.have_above_right { 2 * w as i32 } else { w as i32 } - 1);
+ let row = pl.row(y - 1);
+ for i in 0..n {
+ above[EDGE + i] = row[(above_limit.min(x as i32 + i as i32)) as usize] as i32;
+ }
+ }
+ if !p.have_left && p.have_above {
+ let v = pl.at(x, y - 1) as i32;
+ left[EDGE..EDGE + n].iter_mut().for_each(|a| *a = v);
+ } else if !p.have_left && !p.have_above {
+ let v = (1 << (bd - 1)) + 1;
+ left[EDGE..EDGE + n].iter_mut().for_each(|a| *a = v);
+ } else {
+ let left_limit = (p.max_y).min(y as i32 + if p.have_below_left { 2 * h as i32 } else { h as i32 } - 1);
+ for i in 0..n {
+ left[EDGE + i] = pl.at(x - 1, left_limit.min(y as i32 + i as i32) as usize) as i32;
+ }
+ }
+ let corner = if p.have_above && p.have_left {
+ pl.at(x - 1, y - 1) as i32
+ } else if p.have_above {
+ pl.at(x, y - 1) as i32
+ } else if p.have_left {
+ pl.at(x - 1, y) as i32
+ } else {
+ 1 << (bd - 1)
+ };
+ above[EDGE - 1] = corner;
+ left[EDGE - 1] = corner;
+
+ let mut pred = [0u16; 64 * 64];
+ if p.plane == 0 && p.use_filter_intra {
+ recursive_intra(&above, &left, w, h, p.filter_intra_mode, bd, &mut pred);
+ } else if is_directional_mode(p.mode) {
+ directional(&mut above, &mut left, p, w, h, &mut pred);
+ } else if p.mode == SMOOTH_PRED || p.mode == SMOOTH_V_PRED || p.mode == SMOOTH_H_PRED {
+ smooth(&above, &left, p.mode, p.log2w, p.log2h, w, h, &mut pred);
+ } else if p.mode == DC_PRED {
+ dc(&above, &left, p.have_left, p.have_above, p.log2w, p.log2h, w, h, bd, &mut pred);
+ } else {
+ // PAETH_PRED
+ let tl = above[EDGE - 1];
+ for i in 0..h {
+ for j in 0..w {
+ let a = above[EDGE + j];
+ let l = left[EDGE + i];
+ let base = a + l - tl;
+ let p_left = (base - l).abs();
+ let p_top = (base - a).abs();
+ let p_tl = (base - tl).abs();
+ pred[i * w + j] = if p_left <= p_top && p_left <= p_tl {
+ l as u16
+ } else if p_top <= p_tl {
+ a as u16
+ } else {
+ tl as u16
+ };
+ }
+ }
+ }
+ for i in 0..h {
+ pl.row_mut(y + i)[x..x + w].copy_from_slice(&pred[i * w..i * w + w]);
+ }
+}
+
+fn recursive_intra(above: &[i32], left: &[i32], w: usize, h: usize, mode: usize, bd: u32, pred: &mut [u16]) {
+ let w4 = w >> 2;
+ let h2 = h >> 1;
+ for i2 in 0..h2 {
+ for j4 in 0..w4 {
+ let mut pv = [0i32; 7];
+ for (i, v) in pv.iter_mut().enumerate() {
+ *v = if i < 5 {
+ if i2 == 0 {
+ above[EDGE + (j4 << 2) + i - 1]
+ } else if j4 == 0 && i == 0 {
+ left[EDGE + (i2 << 1) - 1]
+ } else {
+ pred[((i2 << 1) - 1) * w + (j4 << 2) + i - 1] as i32
+ }
+ } else if j4 == 0 {
+ left[EDGE + (i2 << 1) + i - 5]
+ } else {
+ pred[((i2 << 1) + i - 5) * w + (j4 << 2) - 1] as i32
+ };
+ }
+ for i1 in 0..2 {
+ for j1 in 0..4 {
+ let mut pr = 0i32;
+ for i in 0..7 {
+ pr += INTRA_FILTER_TAPS[mode][(i1 << 2) + j1][i] as i32 * pv[i];
+ }
+ pred[((i2 << 1) + i1) * w + (j4 << 2) + j1] = clip1(round2_signed(pr, INTRA_FILTER_SCALE_BITS as u32), bd);
+ }
+ }
+ }
+ }
+}
+
+#[inline(always)]
+pub(crate) fn round2_signed(x: i32, n: u32) -> i32 {
+ if x >= 0 { round2(x, n) } else { -round2(-x, n) }
+}
+
+fn sm_weights(log2: u32) -> &'static [u8] {
+ match log2 {
+ 2 => &SM_WEIGHTS_TX_4X4,
+ 3 => &SM_WEIGHTS_TX_8X8,
+ 4 => &SM_WEIGHTS_TX_16X16,
+ 5 => &SM_WEIGHTS_TX_32X32,
+ _ => &SM_WEIGHTS_TX_64X64,
+ }
+}
+
+#[allow(clippy::too_many_arguments)]
+fn smooth(above: &[i32], left: &[i32], mode: usize, log2w: u32, log2h: u32, w: usize, h: usize, pred: &mut [u16]) {
+ let wx = sm_weights(log2w);
+ let wy = sm_weights(log2h);
+ for i in 0..h {
+ for j in 0..w {
+ let v = if mode == SMOOTH_PRED {
+ let s = wy[i] as i32 * above[EDGE + j]
+ + (256 - wy[i] as i32) * left[EDGE + h - 1]
+ + wx[j] as i32 * left[EDGE + i]
+ + (256 - wx[j] as i32) * above[EDGE + w - 1];
+ round2(s, 9)
+ } else if mode == SMOOTH_V_PRED {
+ round2(wy[i] as i32 * above[EDGE + j] + (256 - wy[i] as i32) * left[EDGE + h - 1], 8)
+ } else {
+ round2(wx[j] as i32 * left[EDGE + i] + (256 - wx[j] as i32) * above[EDGE + w - 1], 8)
+ };
+ pred[i * w + j] = v as u16;
+ }
+ }
+}
+
+#[allow(clippy::too_many_arguments)]
+fn dc(above: &[i32], left: &[i32], have_left: bool, have_above: bool, log2w: u32, log2h: u32, w: usize, h: usize, bd: u32, pred: &mut [u16]) {
+ let v = if have_left && have_above {
+ let mut sum: i32 = left[EDGE..EDGE + h].iter().sum::<i32>() + above[EDGE..EDGE + w].iter().sum::<i32>();
+ sum += ((w + h) >> 1) as i32;
+ sum / (w + h) as i32
+ } else if have_left {
+ let sum: i32 = left[EDGE..EDGE + h].iter().sum();
+ (sum + (h >> 1) as i32) >> log2h
+ } else if have_above {
+ let sum: i32 = above[EDGE..EDGE + w].iter().sum();
+ (sum + (w >> 1) as i32) >> log2w
+ } else {
+ 1 << (bd - 1)
+ };
+ let v = clip1(v, bd);
+ pred[..w * h].iter_mut().for_each(|p| *p = v);
+}
+
+fn edge_filter_strength(w: usize, h: usize, filter_type: bool, delta: i32) -> u32 {
+ let d = delta.abs();
+ let blk_wh = w + h;
+ let mut strength = 0;
+ if !filter_type {
+ if blk_wh <= 8 {
+ if d >= 56 {
+ strength = 1;
+ }
+ } else if blk_wh <= 16 {
+ if d >= 40 {
+ strength = 1;
+ }
+ } else if blk_wh <= 24 {
+ if d >= 8 {
+ strength = 1;
+ }
+ if d >= 16 {
+ strength = 2;
+ }
+ if d >= 32 {
+ strength = 3;
+ }
+ } else if blk_wh <= 32 {
+ strength = 1;
+ if d >= 4 {
+ strength = 2;
+ }
+ if d >= 32 {
+ strength = 3;
+ }
+ } else {
+ strength = 3;
+ }
+ } else if blk_wh <= 8 {
+ if d >= 40 {
+ strength = 1;
+ }
+ if d >= 64 {
+ strength = 2;
+ }
+ } else if blk_wh <= 16 {
+ if d >= 20 {
+ strength = 1;
+ }
+ if d >= 48 {
+ strength = 2;
+ }
+ } else if blk_wh <= 24 {
+ if d >= 4 {
+ strength = 3;
+ }
+ } else {
+ strength = 3;
+ }
+ strength
+}
+
+fn use_upsample(w: usize, h: usize, filter_type: bool, delta: i32) -> bool {
+ let d = delta.abs();
+ let blk_wh = w + h;
+ if d <= 0 || d >= 40 {
+ false
+ } else if !filter_type {
+ blk_wh <= 16
+ } else {
+ blk_wh <= 8
+ }
+}
+
+/// Intra edge filter (7.11.2.12) on buf[-1 .. sz-2] (edge[i] = buf[i - 1]).
+fn edge_filter(buf: &mut [i32], sz: usize, strength: u32) {
+ if strength == 0 {
+ return;
+ }
+ let mut edge = [0i32; 2 * 128 + 2 * EDGE];
+ for i in 0..sz {
+ edge[i] = buf[EDGE + i - 1];
+ }
+ for i in 1..sz {
+ let mut s = 0;
+ for j in 0..INTRA_EDGE_TAPS {
+ let k = (i as i32 - 2 + j as i32).clamp(0, sz as i32 - 1) as usize;
+ s += INTRA_EDGE_KERNEL[strength as usize - 1][j] as i32 * edge[k];
+ }
+ buf[EDGE + i - 1] = (s + 8) >> 4;
+ }
+}
+
+/// Intra edge upsample (7.11.2.11).
+fn edge_upsample(buf: &mut [i32], num_px: usize, bd: u32) {
+ let mut dup = [0i32; 2 * 128 + 8];
+ dup[0] = buf[EDGE - 1];
+ for i in -1..num_px as i32 {
+ dup[(i + 2) as usize] = buf[(EDGE as i32 + i) as usize];
+ }
+ dup[num_px + 2] = buf[EDGE + num_px - 1];
+ buf[EDGE - 2] = dup[0];
+ for i in 0..num_px {
+ let s = -dup[i] + 9 * dup[i + 1] + 9 * dup[i + 2] - dup[i + 3];
+ let s = clip1(round2(s, 4), bd) as i32;
+ buf[EDGE + 2 * i - 1] = s;
+ buf[EDGE + 2 * i] = dup[i + 2];
+ }
+}
+
+fn directional(above: &mut [i32], left: &mut [i32], p: &IntraParams, w: usize, h: usize, pred: &mut [u16]) {
+ let p_angle = MODE_TO_ANGLE[p.mode] as i32 + p.angle_delta * ANGLE_STEP as i32;
+ let mut upsample_above = 0u32;
+ let mut upsample_left = 0u32;
+ if p.enable_intra_edge_filter {
+ if p_angle != 90 && p_angle != 180 {
+ if p_angle > 90 && p_angle < 180 && (w + h) >= 24 {
+ let s = left[EDGE] * 5 + above[EDGE - 1] * 6 + above[EDGE] * 5;
+ let c = round2(s, 4);
+ left[EDGE - 1] = c;
+ above[EDGE - 1] = c;
+ }
+ if p.have_above {
+ let strength = edge_filter_strength(w, h, p.filter_type, p_angle - 90);
+ let num_px = w.min((p.max_x - p.x as i32 + 1) as usize) + if p_angle < 90 { h } else { 0 } + 1;
+ edge_filter(above, num_px, strength);
+ }
+ if p.have_left {
+ let strength = edge_filter_strength(w, h, p.filter_type, p_angle - 180);
+ let num_px = h.min((p.max_y - p.y as i32 + 1) as usize) + if p_angle > 180 { w } else { 0 } + 1;
+ edge_filter(left, num_px, strength);
+ }
+ }
+ if use_upsample(w, h, p.filter_type, p_angle - 90) {
+ upsample_above = 1;
+ let num_px = w + if p_angle < 90 { h } else { 0 };
+ edge_upsample(above, num_px, p.bit_depth);
+ }
+ if use_upsample(w, h, p.filter_type, p_angle - 180) {
+ upsample_left = 1;
+ let num_px = h + if p_angle > 180 { w } else { 0 };
+ edge_upsample(left, num_px, p.bit_depth);
+ }
+ }
+ let dx = if p_angle < 90 {
+ DR_INTRA_DERIVATIVE[p_angle as usize] as i32
+ } else if p_angle > 90 && p_angle < 180 {
+ DR_INTRA_DERIVATIVE[(180 - p_angle) as usize] as i32
+ } else {
+ 0
+ };
+ let dy = if p_angle > 90 && p_angle < 180 {
+ DR_INTRA_DERIVATIVE[(p_angle - 90) as usize] as i32
+ } else if p_angle > 180 {
+ DR_INTRA_DERIVATIVE[(270 - p_angle) as usize] as i32
+ } else {
+ 0
+ };
+ let a = |i: i32| above[(EDGE as i32 + i) as usize];
+ let l = |i: i32| left[(EDGE as i32 + i) as usize];
+ for i in 0..h as i32 {
+ for j in 0..w as i32 {
+ let v = if p_angle < 90 {
+ let idx = (i + 1) * dx;
+ let base = (idx >> (6 - upsample_above)) + (j << upsample_above);
+ let shift = ((idx << upsample_above) >> 1) & 0x1f;
+ let max_base_x = (w as i32 + h as i32 - 1) << upsample_above;
+ if base < max_base_x { round2(a(base) * (32 - shift) + a(base + 1) * shift, 5) } else { a(max_base_x) }
+ } else if p_angle > 90 && p_angle < 180 {
+ let idx = (j << 6) - (i + 1) * dx;
+ let base = idx >> (6 - upsample_above);
+ if base >= -(1 << upsample_above) {
+ let shift = ((idx << upsample_above) >> 1) & 0x1f;
+ round2(a(base) * (32 - shift) + a(base + 1) * shift, 5)
+ } else {
+ let idx = (i << 6) - (j + 1) * dy;
+ let base = idx >> (6 - upsample_left);
+ let shift = ((idx << upsample_left) >> 1) & 0x1f;
+ round2(l(base) * (32 - shift) + l(base + 1) * shift, 5)
+ }
+ } else if p_angle > 180 {
+ let idx = (j + 1) * dy;
+ let base = (idx >> (6 - upsample_left)) + (i << upsample_left);
+ let shift = ((idx << upsample_left) >> 1) & 0x1f;
+ round2(l(base) * (32 - shift) + l(base + 1) * shift, 5)
+ } else if p_angle == 90 {
+ a(j)
+ } else {
+ l(i)
+ };
+ pred[(i as usize) * w + j as usize] = v as u16;
+ }
+ }
+}
diff --git a/crates/av1/src/lib.rs b/crates/av1/src/lib.rs
new file mode 100644
index 000000000..e20d63d6d
--- /dev/null
+++ b/crates/av1/src/lib.rs
@@ -0,0 +1,106 @@
+//! Clean-room AV1 decoder, implemented from the AV1 Bitstream & Decoding Process Specification
+//! v1.0.0 with Errata 1 (AOMediaCodec/av1-spec).
+//!
+//! See the crate README for the conformance status of each decoding stage.
+
+// Items used only by stages still being written (inter prediction, post filters).
+#![allow(dead_code)]
+
+mod bits;
+mod cdf;
+mod decoder;
+mod frame;
+mod grain;
+pub mod header;
+mod intra;
+mod postfilter;
+mod spec_tables;
+mod state;
+mod symbol;
+mod tile;
+mod transform;
+
+pub use decoder::Decoder;
+pub use header::{ColorConfig, FrameHeader, SequenceHeader};
+
+/// Decoder errors.
+#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
+pub enum Error {
+ #[error("truncated AV1 data")]
+ Truncated,
+ #[error("invalid AV1 data: {0}")]
+ Invalid(&'static str),
+ #[error("unsupported AV1 feature: {0}")]
+ Unsupported(&'static str),
+}
+
+pub type Result<T> = std::result::Result<T, Error>;
+
+/// A decoded (shown) frame: planar samples without row padding, `bit_depth` significant bits in
+/// `u16`. Chroma planes are `((width + ssx) >> ssx) x ((height + ssy) >> ssy)`; they are empty
+/// for monochrome streams.
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct Picture {
+ pub width: u32,
+ pub height: u32,
+ pub bit_depth: u8,
+ pub subsampling_x: u8,
+ pub subsampling_y: u8,
+ pub mono_chrome: bool,
+ pub planes: [Vec<u16>; 3],
+ pub color_primaries: u8,
+ pub transfer_characteristics: u8,
+ pub matrix_coefficients: u8,
+ pub full_range: bool,
+}
+
+impl Picture {
+ pub fn plane_width(&self, plane: usize) -> u32 {
+ if plane == 0 { self.width } else { (self.width + self.subsampling_x as u32) >> self.subsampling_x }
+ }
+ pub fn plane_height(&self, plane: usize) -> u32 {
+ if plane == 0 { self.height } else { (self.height + self.subsampling_y as u32) >> self.subsampling_y }
+ }
+}
+
+/// Whether a temporal unit starts a random access point: it contains a sequence header and a
+/// shown key frame (used for keyframe detection by demuxers without sync-sample tables).
+pub fn is_key_frame_unit(data: &[u8]) -> bool {
+ let mut pos = 0;
+ let mut seq_seen = false;
+ while pos < data.len() {
+ let h = data[pos];
+ let obu_type = (h >> 3) & 0xf;
+ let ext = h & 4 != 0;
+ let has_size = h & 2 != 0;
+ let mut p = pos + 1 + ext as usize;
+ let size = if has_size {
+ match bits::leb128(data.get(p..).unwrap_or(&[])) {
+ Ok((v, n)) => {
+ p += n;
+ v as usize
+ }
+ Err(_) => return false,
+ }
+ } else {
+ data.len().saturating_sub(p)
+ };
+ if p > data.len() {
+ return false;
+ }
+ match obu_type {
+ 1 => seq_seen = true,
+ 3 | 6 => {
+ let b = data.get(p).copied().unwrap_or(0);
+ // show_existing_frame = 0, frame_type = KEY_FRAME (0), show_frame = 1
+ let show_existing = b >> 7;
+ let frame_type = (b >> 5) & 3;
+ let show_frame = (b >> 4) & 1;
+ return seq_seen && show_existing == 0 && frame_type == 0 && show_frame == 1;
+ }
+ _ => {}
+ }
+ pos = p.saturating_add(size);
+ }
+ false
+}
diff --git a/crates/av1/src/postfilter.rs b/crates/av1/src/postfilter.rs
new file mode 100644
index 000000000..4372a41fd
--- /dev/null
+++ b/crates/av1/src/postfilter.rs
@@ -0,0 +1,8 @@
+//! In-loop post filters run by decode_frame_wrapup: loop filter (7.14), CDEF (7.15),
+//! super-resolution upscaling (7.16) and loop restoration (7.17).
+
+use crate::state::FrameState;
+
+pub(crate) fn apply(fs: &mut FrameState) {
+ let _ = fs;
+}
diff --git a/crates/av1/src/spec_tables.rs b/crates/av1/src/spec_tables.rs
new file mode 100644
index 000000000..db3805ddd
--- /dev/null
+++ b/crates/av1/src/spec_tables.rs
@@ -0,0 +1,8889 @@
+// Generated by tools/extract_tables.py from the AV1 Bitstream & Decoding Process Specification
+// v1.0.0 with Errata 1 (AOMediaCodec/av1-spec 5e04f3f). Do not edit by hand.
+#![allow(dead_code, clippy::unreadable_literal, clippy::excessive_precision)]
+
+pub const ADST_ADST: usize = 3;
+pub const ADST_DCT: usize = 1;
+pub const ADST_FLIPADST: usize = 7;
+pub const AFFINE: usize = 3;
+pub const ALTREF2_FRAME: usize = 6;
+pub const ALTREF_FRAME: usize = 7;
+pub const ANGLE_STEP: usize = 3;
+pub const BIDIR_COMP_REFERENCE: usize = 1;
+pub const BLOCK_128X128: usize = 15;
+pub const BLOCK_128X64: usize = 14;
+pub const BLOCK_16X16: usize = 6;
+pub const BLOCK_16X32: usize = 7;
+pub const BLOCK_16X4: usize = 17;
+pub const BLOCK_16X64: usize = 20;
+pub const BLOCK_16X8: usize = 5;
+pub const BLOCK_32X16: usize = 8;
+pub const BLOCK_32X32: usize = 9;
+pub const BLOCK_32X64: usize = 10;
+pub const BLOCK_32X8: usize = 19;
+pub const BLOCK_4X16: usize = 16;
+pub const BLOCK_4X4: usize = 0;
+pub const BLOCK_4X8: usize = 1;
+pub const BLOCK_64X128: usize = 13;
+pub const BLOCK_64X16: usize = 21;
+pub const BLOCK_64X32: usize = 11;
+pub const BLOCK_64X64: usize = 12;
+pub const BLOCK_8X16: usize = 4;
+pub const BLOCK_8X32: usize = 18;
+pub const BLOCK_8X4: usize = 2;
+pub const BLOCK_8X8: usize = 3;
+pub const BLOCK_INVALID: usize = 22;
+pub const BLOCK_SIZES: usize = 22;
+pub const BLOCK_SIZE_GROUPS: usize = 4;
+pub const BR_CDF_SIZE: usize = 4;
+pub const BUFFER_POOL_MAX_SIZE: usize = 10;
+pub const BWDREF_FRAME: usize = 5;
+pub const BWD_REFS: usize = 3;
+pub const CFL_ALPHABET_SIZE: usize = 16;
+pub const CFL_ALPHA_CONTEXTS: usize = 6;
+pub const CFL_JOINT_SIGNS: usize = 8;
+pub const CFL_SIGN_NEG: usize = 1;
+pub const CFL_SIGN_POS: usize = 2;
+pub const CFL_SIGN_ZERO: usize = 0;
+pub const CLASS0_SIZE: usize = 2;
+pub const COEFF_BASE_RANGE: usize = 12;
+pub const COEFF_CDF_Q_CTXS: usize = 4;
+pub const COMPOUND_AVERAGE: usize = 2;
+pub const COMPOUND_DIFFWTD: usize = 1;
+pub const COMPOUND_DISTANCE: usize = 4;
+pub const COMPOUND_IDX_CONTEXTS: usize = 6;
+pub const COMPOUND_INTRA: usize = 3;
+pub const COMPOUND_MODES: usize = 8;
+pub const COMPOUND_MODE_CONTEXTS: usize = 8;
+pub const COMPOUND_REFERENCE: usize = 1;
+pub const COMPOUND_TYPES: usize = 2;
+pub const COMPOUND_WEDGE: usize = 0;
+pub const COMP_GROUP_IDX_CONTEXTS: usize = 6;
+pub const COMP_INTER_CONTEXTS: usize = 5;
+pub const COMP_NEWMV_CTXS: usize = 5;
+pub const COMP_REF_TYPE_CONTEXTS: usize = 5;
+pub const CP_BT_2020: usize = 9;
+pub const CP_BT_470_B_G: usize = 5;
+pub const CP_BT_470_M: usize = 4;
+pub const CP_BT_601: usize = 6;
+pub const CP_BT_709: usize = 1;
+pub const CP_EBU_3213: usize = 22;
+pub const CP_GENERIC_FILM: usize = 8;
+pub const CP_SMPTE_240: usize = 7;
+pub const CP_SMPTE_431: usize = 11;
+pub const CP_SMPTE_432: usize = 12;
+pub const CP_UNSPECIFIED: usize = 2;
+pub const CP_XYZ: usize = 10;
+pub const CSP_COLOCATED: usize = 2;
+pub const CSP_RESERVED: usize = 3;
+pub const CSP_UNKNOWN: usize = 0;
+pub const CSP_VERTICAL: usize = 1;
+pub const D113_PRED: usize = 5;
+pub const D135_PRED: usize = 4;
+pub const D157_PRED: usize = 6;
+pub const D203_PRED: usize = 7;
+pub const D45_PRED: usize = 3;
+pub const D67_PRED: usize = 8;
+pub const DCT_ADST: usize = 2;
+pub const DCT_DCT: usize = 0;
+pub const DCT_FLIPADST: usize = 5;
+pub const DC_PRED: usize = 0;
+pub const DC_SIGN_CONTEXTS: usize = 3;
+pub const DELTA_LF_SMALL: usize = 3;
+pub const DELTA_Q_SMALL: usize = 3;
+pub const DIRECTIONAL_MODES: usize = 8;
+pub const DIV_LUT_BITS: usize = 8;
+pub const DIV_LUT_NUM: usize = 257;
+pub const DIV_LUT_PREC_BITS: usize = 14;
+pub const DRL_MODE_CONTEXTS: usize = 3;
+pub const EC_MIN_PROB: usize = 4;
+pub const EC_PROB_SHIFT: usize = 6;
+pub const EIGHTTAP_SHARP: usize = 2;
+pub const EIGHTTAP_SMOOTH: usize = 1;
+pub const EOB_COEF_CONTEXTS: usize = 9;
+pub const FILTER_BITS: usize = 7;
+pub const FILTER_D157_PRED: usize = 3;
+pub const FILTER_DC_PRED: usize = 0;
+pub const FILTER_H_PRED: usize = 2;
+pub const FILTER_PAETH_PRED: usize = 4;
+pub const FILTER_V_PRED: usize = 1;
+pub const FLIPADST_ADST: usize = 8;
+pub const FLIPADST_DCT: usize = 4;
+pub const FLIPADST_FLIPADST: usize = 6;
+pub const FRAME_LF_COUNT: usize = 4;
+pub const FWD_REFS: usize = 4;
+pub const GLOBAL_GLOBALMV: usize = 24;
+pub const GM_ABS_ALPHA_BITS: usize = 12;
+pub const GM_ABS_TRANS_BITS: usize = 12;
+pub const GM_ABS_TRANS_ONLY_BITS: usize = 9;
+pub const GM_ALPHA_PREC_BITS: usize = 15;
+pub const GM_TRANS_ONLY_PREC_BITS: usize = 3;
+pub const GM_TRANS_PREC_BITS: usize = 6;
+pub const GOLDEN_FRAME: usize = 4;
+pub const H_ADST: usize = 13;
+pub const H_DCT: usize = 11;
+pub const H_FLIPADST: usize = 15;
+pub const H_PRED: usize = 2;
+pub const IDENTITY: usize = 0;
+pub const IDTX: usize = 9;
+pub const II_DC_PRED: usize = 0;
+pub const II_H_PRED: usize = 2;
+pub const II_SMOOTH_PRED: usize = 3;
+pub const II_V_PRED: usize = 1;
+pub const INTERINTRA_MODES: usize = 4;
+pub const INTERP_FILTERS: usize = 3;
+pub const INTERP_FILTER_CONTEXTS: usize = 16;
+pub const INTER_FRAME: usize = 1;
+pub const INTRABC_DELAY_PIXELS: usize = 256;
+pub const INTRABC_DELAY_SB64: usize = 4;
+pub const INTRA_EDGE_KERNELS: usize = 3;
+pub const INTRA_EDGE_TAPS: usize = 5;
+pub const INTRA_FILTER_MODES: usize = 5;
+pub const INTRA_FILTER_SCALE_BITS: usize = 4;
+pub const INTRA_FRAME: usize = 0;
+pub const INTRA_MODES: usize = 13;
+pub const INTRA_MODE_CONTEXTS: usize = 5;
+pub const INTRA_ONLY_FRAME: usize = 2;
+pub const IS_INTER_CONTEXTS: usize = 4;
+pub const KEY_FRAME: usize = 0;
+pub const LAST2_FRAME: usize = 2;
+pub const LAST3_FRAME: usize = 3;
+pub const LAST_FRAME: usize = 1;
+pub const LEAST_SQUARES_SAMPLES_MAX: usize = 8;
+pub const LEVEL_CONTEXTS: usize = 21;
+pub const LOCALWARP: usize = 2;
+pub const LS_MV_MAX: usize = 256;
+pub const MASK_MASTER_SIZE: usize = 64;
+pub const MAX_ANGLE_DELTA: usize = 3;
+pub const MAX_FRAME_DISTANCE: usize = 31;
+pub const MAX_LOOP_FILTER: usize = 63;
+pub const MAX_OFFSET_HEIGHT: usize = 0;
+pub const MAX_OFFSET_WIDTH: usize = 8;
+pub const MAX_REF_MV_STACK_SIZE: usize = 8;
+pub const MAX_SB_SIZE: usize = 128;
+pub const MAX_SEGMENTS: usize = 8;
+pub const MAX_TILE_AREA: usize = 9437184;
+pub const MAX_TILE_COLS: usize = 64;
+pub const MAX_TILE_ROWS: usize = 64;
+pub const MAX_TILE_WIDTH: usize = 4096;
+pub const MAX_TX_DEPTH: usize = 2;
+pub const MAX_VARTX_DEPTH: usize = 2;
+pub const MB_MODE_COUNT: usize = 17;
+pub const MC_BT_2020_CL: usize = 10;
+pub const MC_BT_2020_NCL: usize = 9;
+pub const MC_BT_470_B_G: usize = 5;
+pub const MC_BT_601: usize = 6;
+pub const MC_BT_709: usize = 1;
+pub const MC_CHROMAT_CL: usize = 13;
+pub const MC_CHROMAT_NCL: usize = 12;
+pub const MC_FCC: usize = 4;
+pub const MC_ICTCP: usize = 14;
+pub const MC_IDENTITY: usize = 0;
+pub const MC_RESERVED_3: usize = 3;
+pub const MC_SMPTE_2085: usize = 11;
+pub const MC_SMPTE_240: usize = 7;
+pub const MC_SMPTE_YCGCO: usize = 8;
+pub const MC_UNSPECIFIED: usize = 2;
+pub const METADATA_TYPE_HDR_CLL: usize = 1;
+pub const METADATA_TYPE_HDR_MDCV: usize = 2;
+pub const METADATA_TYPE_ITUT_T35: usize = 4;
+pub const METADATA_TYPE_SCALABILITY: usize = 3;
+pub const METADATA_TYPE_TIMECODE: usize = 5;
+pub const MFMV_STACK_SIZE: usize = 3;
+pub const MI_SIZE: usize = 4;
+pub const MI_SIZE_LOG2: usize = 2;
+pub const MOTION_MODES: usize = 3;
+pub const MV_BORDER: usize = 128;
+pub const MV_CLASSES: usize = 11;
+pub const MV_CLASS_0: usize = 0;
+pub const MV_CLASS_1: usize = 1;
+pub const MV_CLASS_10: usize = 10;
+pub const MV_CLASS_2: usize = 2;
+pub const MV_CLASS_3: usize = 3;
+pub const MV_CLASS_4: usize = 4;
+pub const MV_CLASS_5: usize = 5;
+pub const MV_CLASS_6: usize = 6;
+pub const MV_CLASS_7: usize = 7;
+pub const MV_CLASS_8: usize = 8;
+pub const MV_CLASS_9: usize = 9;
+pub const MV_CONTEXTS: usize = 2;
+pub const MV_INTRABC_CONTEXT: usize = 1;
+pub const MV_JOINTS: usize = 4;
+pub const MV_JOINT_HNZVNZ: usize = 3;
+pub const MV_JOINT_HNZVZ: usize = 1;
+pub const MV_JOINT_HZVNZ: usize = 2;
+pub const MV_JOINT_ZERO: usize = 0;
+pub const MV_OFFSET_BITS: usize = 10;
+pub const NEAREST_NEARESTMV: usize = 18;
+pub const NEAREST_NEWMV: usize = 20;
+pub const NEAR_NEARMV: usize = 19;
+pub const NEAR_NEWMV: usize = 22;
+pub const NEW_MV_CONTEXTS: usize = 6;
+pub const NEW_NEARESTMV: usize = 21;
+pub const NEW_NEARMV: usize = 23;
+pub const NEW_NEWMV: usize = 25;
+pub const NUM_BASE_LEVELS: usize = 2;
+pub const NUM_REF_FRAMES: usize = 8;
+pub const OBMC: usize = 1;
+pub const OBU_FRAME: usize = 6;
+pub const OBU_FRAME_HEADER: usize = 3;
+pub const OBU_METADATA: usize = 5;
+pub const OBU_PADDING: usize = 15;
+pub const OBU_REDUNDANT_FRAME_HEADER: usize = 7;
+pub const OBU_SEQUENCE_HEADER: usize = 1;
+pub const OBU_TEMPORAL_DELIMITER: usize = 2;
+pub const OBU_TILE_GROUP: usize = 4;
+pub const OBU_TILE_LIST: usize = 8;
+pub const ONLY_4X4: usize = 0;
+pub const PAETH_PRED: usize = 12;
+pub const PALETTE_BLOCK_SIZE_CONTEXTS: usize = 7;
+pub const PALETTE_COLORS: usize = 8;
+pub const PALETTE_COLOR_CONTEXTS: usize = 5;
+pub const PALETTE_MAX_COLOR_CONTEXT_HASH: usize = 8;
+pub const PALETTE_NUM_NEIGHBORS: usize = 3;
+pub const PALETTE_SIZES: usize = 7;
+pub const PALETTE_UV_MODE_CONTEXTS: usize = 2;
+pub const PALETTE_Y_MODE_CONTEXTS: usize = 3;
+pub const PARTITION_CONTEXTS: usize = 4;
+pub const PARTITION_HORZ: usize = 1;
+pub const PARTITION_HORZ_4: usize = 8;
+pub const PARTITION_HORZ_A: usize = 4;
+pub const PARTITION_HORZ_B: usize = 5;
+pub const PARTITION_NONE: usize = 0;
+pub const PARTITION_SPLIT: usize = 3;
+pub const PARTITION_VERT: usize = 2;
+pub const PARTITION_VERT_4: usize = 9;
+pub const PARTITION_VERT_A: usize = 6;
+pub const PARTITION_VERT_B: usize = 7;
+pub const PLANE_TYPES: usize = 2;
+pub const PRIMARY_REF_NONE: usize = 7;
+pub const QM_TOTAL_SIZE: usize = 3344;
+pub const REFMVS_LIMIT: usize = 4095;
+pub const REFS_PER_FRAME: usize = 7;
+pub const REF_CAT_LEVEL: usize = 640;
+pub const REF_CONTEXTS: usize = 3;
+pub const REF_MV_CONTEXTS: usize = 6;
+pub const REF_SCALE_SHIFT: usize = 14;
+pub const RESTORATION_TILESIZE_MAX: usize = 256;
+pub const RESTORE_NONE: usize = 0;
+pub const RESTORE_SGRPROJ: usize = 2;
+pub const RESTORE_SWITCHABLE: usize = 3;
+pub const RESTORE_WIENER: usize = 1;
+pub const ROTZOOM: usize = 2;
+pub const SCALABILITY_L1T2: usize = 0;
+pub const SCALABILITY_L1T3: usize = 1;
+pub const SCALABILITY_L2T1: usize = 2;
+pub const SCALABILITY_L2T2: usize = 3;
+pub const SCALABILITY_L2T3: usize = 4;
+pub const SCALABILITY_L3T1: usize = 15;
+pub const SCALABILITY_L3T2: usize = 16;
+pub const SCALABILITY_L3T2_KEY: usize = 21;
+pub const SCALABILITY_L3T2_KEY_SHIFT: usize = 25;
+pub const SCALABILITY_L3T3: usize = 17;
+pub const SCALABILITY_L3T3_KEY: usize = 22;
+pub const SCALABILITY_L3T3_KEY_SHIFT: usize = 26;
+pub const SCALABILITY_L4T5_KEY: usize = 23;
+pub const SCALABILITY_L4T5_KEY_SHIFT: usize = 27;
+pub const SCALABILITY_L4T7_KEY: usize = 24;
+pub const SCALABILITY_L4T7_KEY_SHIFT: usize = 28;
+pub const SCALABILITY_S2T1: usize = 5;
+pub const SCALABILITY_S2T2: usize = 6;
+pub const SCALABILITY_S2T3: usize = 7;
+pub const SCALABILITY_S3T1: usize = 18;
+pub const SCALABILITY_S3T2: usize = 19;
+pub const SCALABILITY_S3T3: usize = 20;
+pub const SCALABILITY_SS: usize = 14;
+pub const SCALE_SUBPEL_BITS: usize = 10;
+pub const SEGMENT_ID_CONTEXTS: usize = 3;
+pub const SEGMENT_ID_PREDICTED_CONTEXTS: usize = 3;
+pub const SEG_LVL_ALT_LF_Y_V: usize = 1;
+pub const SEG_LVL_ALT_Q: usize = 0;
+pub const SEG_LVL_GLOBALMV: usize = 7;
+pub const SEG_LVL_MAX: usize = 8;
+pub const SEG_LVL_REF_FRAME: usize = 5;
+pub const SEG_LVL_SKIP: usize = 6;
+pub const SELECT_INTEGER_MV: usize = 2;
+pub const SELECT_SCREEN_CONTENT_TOOLS: usize = 2;
+pub const SGRPROJ_MTABLE_BITS: usize = 20;
+pub const SGRPROJ_PARAMS_BITS: usize = 4;
+pub const SGRPROJ_PRJ_BITS: usize = 7;
+pub const SGRPROJ_PRJ_SUBEXP_K: usize = 4;
+pub const SGRPROJ_RECIP_BITS: usize = 12;
+pub const SGRPROJ_RST_BITS: usize = 4;
+pub const SGRPROJ_SGR_BITS: usize = 8;
+pub const SIG_COEF_CONTEXTS: usize = 42;
+pub const SIG_COEF_CONTEXTS_2D: usize = 26;
+pub const SIG_COEF_CONTEXTS_EOB: usize = 4;
+pub const SIG_REF_DIFF_OFFSET_NUM: usize = 5;
+pub const SIMPLE: usize = 0;
+pub const SINGLE_REFERENCE: usize = 0;
+pub const SINGLE_REFS: usize = 7;
+pub const SINPI_1_9: usize = 1321;
+pub const SINPI_2_9: usize = 2482;
+pub const SINPI_3_9: usize = 3344;
+pub const SINPI_4_9: usize = 3803;
+pub const SKIP_CONTEXTS: usize = 3;
+pub const SKIP_MODE_CONTEXTS: usize = 3;
+pub const SMOOTH_H_PRED: usize = 11;
+pub const SMOOTH_PRED: usize = 9;
+pub const SMOOTH_V_PRED: usize = 10;
+pub const SUBPEL_BITS: usize = 4;
+pub const SUBPEL_MASK: usize = 15;
+pub const SUPERRES_DENOM_BITS: usize = 3;
+pub const SUPERRES_DENOM_MIN: usize = 9;
+pub const SUPERRES_EXTRA_BITS: usize = 8;
+pub const SUPERRES_FILTER_BITS: usize = 6;
+pub const SUPERRES_FILTER_OFFSET: usize = 3;
+pub const SUPERRES_FILTER_SHIFTS: usize = 64;
+pub const SUPERRES_FILTER_TAPS: usize = 8;
+pub const SUPERRES_NUM: usize = 8;
+pub const SUPERRES_SCALE_BITS: usize = 14;
+pub const SUPERRES_SCALE_MASK: usize = 16383;
+pub const SWITCH_FRAME: usize = 3;
+pub const TC_BT_1361: usize = 12;
+pub const TC_BT_2020_10_BIT: usize = 14;
+pub const TC_BT_2020_12_BIT: usize = 15;
+pub const TC_BT_470_B_G: usize = 5;
+pub const TC_BT_470_M: usize = 4;
+pub const TC_BT_601: usize = 6;
+pub const TC_BT_709: usize = 1;
+pub const TC_HLG: usize = 18;
+pub const TC_IEC_61966: usize = 11;
+pub const TC_LINEAR: usize = 8;
+pub const TC_LOG_100: usize = 9;
+pub const TC_LOG_100_SQRT10: usize = 10;
+pub const TC_RESERVED_0: usize = 0;
+pub const TC_RESERVED_3: usize = 3;
+pub const TC_SMPTE_2084: usize = 16;
+pub const TC_SMPTE_240: usize = 7;
+pub const TC_SMPTE_428: usize = 17;
+pub const TC_SRGB: usize = 13;
+pub const TC_UNSPECIFIED: usize = 2;
+pub const TOTAL_REFS_PER_FRAME: usize = 8;
+pub const TRANSLATION: usize = 1;
+pub const TXB_SKIP_CONTEXTS: usize = 13;
+pub const TXFM_PARTITION_CONTEXTS: usize = 21;
+pub const TX_16X16: usize = 2;
+pub const TX_16X32: usize = 9;
+pub const TX_16X4: usize = 14;
+pub const TX_16X64: usize = 17;
+pub const TX_16X8: usize = 8;
+pub const TX_32X16: usize = 10;
+pub const TX_32X32: usize = 3;
+pub const TX_32X64: usize = 11;
+pub const TX_32X8: usize = 16;
+pub const TX_4X16: usize = 13;
+pub const TX_4X4: usize = 0;
+pub const TX_4X8: usize = 5;
+pub const TX_64X16: usize = 18;
+pub const TX_64X32: usize = 12;
+pub const TX_64X64: usize = 4;
+pub const TX_8X16: usize = 7;
+pub const TX_8X32: usize = 15;
+pub const TX_8X4: usize = 6;
+pub const TX_8X8: usize = 1;
+pub const TX_CLASS_2D: usize = 0;
+pub const TX_CLASS_HORIZ: usize = 1;
+pub const TX_CLASS_VERT: usize = 2;
+pub const TX_MODES: usize = 3;
+pub const TX_MODE_LARGEST: usize = 1;
+pub const TX_MODE_SELECT: usize = 2;
+pub const TX_SET_DCTONLY: usize = 0;
+pub const TX_SET_INTER_1: usize = 1;
+pub const TX_SET_INTER_2: usize = 2;
+pub const TX_SET_INTER_3: usize = 3;
+pub const TX_SET_INTRA_1: usize = 1;
+pub const TX_SET_INTRA_2: usize = 2;
+pub const TX_SET_TYPES_INTER: usize = 4;
+pub const TX_SET_TYPES_INTRA: usize = 3;
+pub const TX_SIZES: usize = 5;
+pub const TX_SIZES_ALL: usize = 19;
+pub const TX_SIZE_CONTEXTS: usize = 3;
+pub const TX_TYPES: usize = 16;
+pub const UNIDIR_COMP_REFERENCE: usize = 0;
+pub const UNIDIR_COMP_REFS: usize = 4;
+pub const UNIFORM_45: usize = 0;
+pub const UNIFORM_45_INV: usize = 1;
+pub const UV_CFL_PRED: usize = 13;
+pub const UV_INTRA_MODES_CFL_ALLOWED: usize = 14;
+pub const UV_INTRA_MODES_CFL_NOT_ALLOWED: usize = 13;
+pub const V_ADST: usize = 12;
+pub const V_DCT: usize = 10;
+pub const V_FLIPADST: usize = 14;
+pub const V_PRED: usize = 1;
+pub const WARPEDDIFF_PREC_BITS: usize = 10;
+pub const WARPEDMODEL_NONDIAGAFFINE_CLAMP: usize = 8192;
+pub const WARPEDMODEL_PREC_BITS: usize = 16;
+pub const WARPEDMODEL_TRANS_CLAMP: usize = 8388608;
+pub const WARPEDPIXEL_PREC_SHIFTS: usize = 64;
+pub const WARP_PARAM_REDUCE_BITS: usize = 6;
+pub const WEDGE_HORIZONTAL: usize = 0;
+pub const WEDGE_OBLIQUE117: usize = 4;
+pub const WEDGE_OBLIQUE153: usize = 5;
+pub const WEDGE_OBLIQUE27: usize = 2;
+pub const WEDGE_OBLIQUE63: usize = 3;
+pub const WEDGE_TYPES: usize = 16;
+pub const WEDGE_VERTICAL: usize = 1;
+pub const WIENER_COEFFS: usize = 3;
+pub const ZERO_MV_CONTEXTS: usize = 2;
+
+pub static AC_QLOOKUP: [[u16; 256]; 3] = [
+ [
+ 4, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
+ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128,
+ 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 155, 158, 161, 164, 167, 170, 173, 176, 179, 182, 185, 188, 191, 194, 197, 200, 203, 207,
+ 211, 215, 219, 223, 227, 231, 235, 239, 243, 247, 251, 255, 260, 265, 270, 275, 280, 285, 290, 295, 300, 305, 311, 317, 323, 329, 335, 341, 347, 353,
+ 359, 366, 373, 380, 387, 394, 401, 408, 416, 424, 432, 440, 448, 456, 465, 474, 483, 492, 501, 510, 520, 530, 540, 550, 560, 571, 582, 593, 604, 615,
+ 627, 639, 651, 663, 676, 689, 702, 715, 729, 743, 757, 771, 786, 801, 816, 832, 848, 864, 881, 898, 915, 933, 951, 969, 988, 1007, 1026, 1046, 1066,
+ 1087, 1108, 1129, 1151, 1173, 1196, 1219, 1243, 1267, 1292, 1317, 1343, 1369, 1396, 1423, 1451, 1479, 1508, 1537, 1567, 1597, 1628, 1660, 1692, 1725,
+ 1759, 1793, 1828,
+ ],
+ [
+ 4, 9, 11, 13, 16, 18, 21, 24, 27, 30, 33, 37, 40, 44, 48, 51, 55, 59, 63, 67, 71, 75, 79, 83, 88, 92, 96, 100, 105, 109, 114, 118, 122, 127, 131, 136,
+ 140, 145, 149, 154, 158, 163, 168, 172, 177, 181, 186, 190, 195, 199, 204, 208, 213, 217, 222, 226, 231, 235, 240, 244, 249, 253, 258, 262, 267, 271,
+ 275, 280, 284, 289, 293, 297, 302, 306, 311, 315, 319, 324, 328, 332, 337, 341, 345, 349, 354, 358, 362, 367, 371, 375, 379, 384, 388, 392, 396, 401,
+ 409, 417, 425, 433, 441, 449, 458, 466, 474, 482, 490, 498, 506, 514, 523, 531, 539, 547, 555, 563, 571, 579, 588, 596, 604, 616, 628, 640, 652, 664,
+ 676, 688, 700, 713, 725, 737, 749, 761, 773, 785, 797, 809, 825, 841, 857, 873, 889, 905, 922, 938, 954, 970, 986, 1002, 1018, 1038, 1058, 1078, 1098,
+ 1118, 1138, 1158, 1178, 1198, 1218, 1242, 1266, 1290, 1314, 1338, 1362, 1386, 1411, 1435, 1463, 1491, 1519, 1547, 1575, 1603, 1631, 1663, 1695, 1727,
+ 1759, 1791, 1823, 1859, 1895, 1931, 1967, 2003, 2039, 2079, 2119, 2159, 2199, 2239, 2283, 2327, 2371, 2415, 2459, 2507, 2555, 2603, 2651, 2703, 2755,
+ 2807, 2859, 2915, 2971, 3027, 3083, 3143, 3203, 3263, 3327, 3391, 3455, 3523, 3591, 3659, 3731, 3803, 3876, 3952, 4028, 4104, 4184, 4264, 4348, 4432,
+ 4516, 4604, 4692, 4784, 4876, 4972, 5068, 5168, 5268, 5372, 5476, 5584, 5692, 5804, 5916, 6032, 6148, 6268, 6388, 6512, 6640, 6768, 6900, 7036, 7172,
+ 7312,
+ ],
+ [
+ 4, 13, 19, 27, 35, 44, 54, 64, 75, 87, 99, 112, 126, 139, 154, 168, 183, 199, 214, 230, 247, 263, 280, 297, 314, 331, 349, 366, 384, 402, 420, 438,
+ 456, 475, 493, 511, 530, 548, 567, 586, 604, 623, 642, 660, 679, 698, 716, 735, 753, 772, 791, 809, 828, 846, 865, 884, 902, 920, 939, 957, 976, 994,
+ 1012, 1030, 1049, 1067, 1085, 1103, 1121, 1139, 1157, 1175, 1193, 1211, 1229, 1246, 1264, 1282, 1299, 1317, 1335, 1352, 1370, 1387, 1405, 1422, 1440,
+ 1457, 1474, 1491, 1509, 1526, 1543, 1560, 1577, 1595, 1627, 1660, 1693, 1725, 1758, 1791, 1824, 1856, 1889, 1922, 1954, 1987, 2020, 2052, 2085, 2118,
+ 2150, 2183, 2216, 2248, 2281, 2313, 2346, 2378, 2411, 2459, 2508, 2556, 2605, 2653, 2701, 2750, 2798, 2847, 2895, 2943, 2992, 3040, 3088, 3137, 3185,
+ 3234, 3298, 3362, 3426, 3491, 3555, 3619, 3684, 3748, 3812, 3876, 3941, 4005, 4069, 4149, 4230, 4310, 4390, 4470, 4550, 4631, 4711, 4791, 4871, 4967,
+ 5064, 5160, 5256, 5352, 5448, 5544, 5641, 5737, 5849, 5961, 6073, 6185, 6297, 6410, 6522, 6650, 6778, 6906, 7034, 7162, 7290, 7435, 7579, 7723, 7867,
+ 8011, 8155, 8315, 8475, 8635, 8795, 8956, 9132, 9308, 9484, 9660, 9836, 10028, 10220, 10412, 10604, 10812, 11020, 11228, 11437, 11661, 11885, 12109,
+ 12333, 12573, 12813, 13053, 13309, 13565, 13821, 14093, 14365, 14637, 14925, 15213, 15502, 15806, 16110, 16414, 16734, 17054, 17390, 17726, 18062,
+ 18414, 18766, 19134, 19502, 19886, 20270, 20670, 21070, 21486, 21902, 22334, 22766, 23214, 23662, 24126, 24590, 25070, 25551, 26047, 26559, 27071,
+ 27599, 28143, 28687, 29247,
+ ],
+];
+
+pub static ADJUSTED_TX_SIZE: [u8; 19] = [0, 1, 2, 3, 3, 5, 6, 7, 8, 9, 10, 3, 3, 13, 14, 15, 16, 9, 10];
+
+pub static CDEF_DIRECTIONS: [[[i8; 2]; 2]; 8] =
+ [[[-1, 1], [-2, 2]], [[0, 1], [-1, 2]], [[0, 1], [0, 2]], [[0, 1], [1, 2]], [[1, 1], [2, 2]], [[1, 0], [2, 1]], [[1, 0], [2, 0]], [[1, 0], [2, -1]]];
+
+pub static CDEF_PRI_TAPS: [[u8; 2]; 2] = [[4, 2], [3, 3]];
+
+pub static CDEF_SEC_TAPS: [[u8; 2]; 2] = [[2, 1], [2, 1]];
+
+pub static CDEF_UV_DIR: [[[u8; 8]; 2]; 2] = [[[0, 1, 2, 3, 4, 5, 6, 7], [1, 2, 2, 2, 3, 4, 6, 0]], [[7, 0, 2, 4, 5, 6, 6, 6], [0, 1, 2, 3, 4, 5, 6, 7]]];
+
+pub static COEFF_BASE_CTX_OFFSET: [[[u8; 5]; 5]; 19] = [
+ [[0, 1, 6, 6, 0], [1, 6, 6, 21, 0], [6, 6, 21, 21, 0], [6, 21, 21, 21, 0], [0, 0, 0, 0, 0]],
+ [[0, 1, 6, 6, 21], [1, 6, 6, 21, 21], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 1, 6, 6, 21], [1, 6, 6, 21, 21], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 1, 6, 6, 21], [1, 6, 6, 21, 21], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 1, 6, 6, 21], [1, 6, 6, 21, 21], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 11, 11, 11, 0], [11, 11, 11, 11, 0], [6, 6, 21, 21, 0], [6, 21, 21, 21, 0], [21, 21, 21, 21, 0]],
+ [[0, 16, 6, 6, 21], [16, 16, 6, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21], [0, 0, 0, 0, 0]],
+ [[0, 11, 11, 11, 11], [11, 11, 11, 11, 11], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 16, 6, 6, 21], [16, 16, 6, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21]],
+ [[0, 11, 11, 11, 11], [11, 11, 11, 11, 11], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 16, 6, 6, 21], [16, 16, 6, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21]],
+ [[0, 11, 11, 11, 11], [11, 11, 11, 11, 11], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 16, 6, 6, 21], [16, 16, 6, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21]],
+ [[0, 11, 11, 11, 0], [11, 11, 11, 11, 0], [6, 6, 21, 21, 0], [6, 21, 21, 21, 0], [21, 21, 21, 21, 0]],
+ [[0, 16, 6, 6, 21], [16, 16, 6, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21], [0, 0, 0, 0, 0]],
+ [[0, 11, 11, 11, 11], [11, 11, 11, 11, 11], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 16, 6, 6, 21], [16, 16, 6, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21]],
+ [[0, 11, 11, 11, 11], [11, 11, 11, 11, 11], [6, 6, 21, 21, 21], [6, 21, 21, 21, 21], [21, 21, 21, 21, 21]],
+ [[0, 16, 6, 6, 21], [16, 16, 6, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21], [16, 16, 21, 21, 21]],
+];
+
+pub static COEFF_BASE_POS_CTX_OFFSET: [u8; 3] = [26, 31, 36];
+
+pub static COMPOUND_MODE_CTX_MAP: [[u8; 5]; 3] = [[0, 1, 1, 1, 1], [1, 2, 3, 4, 4], [4, 4, 5, 6, 7]];
+
+pub static COS128_LOOKUP: [u16; 65] = [
+ 4096, 4095, 4091, 4085, 4076, 4065, 4052, 4036, 4017, 3996, 3973, 3948, 3920, 3889, 3857, 3822, 3784, 3745, 3703, 3659, 3612, 3564, 3513, 3461, 3406, 3349,
+ 3290, 3229, 3166, 3102, 3035, 2967, 2896, 2824, 2751, 2675, 2598, 2520, 2440, 2359, 2276, 2191, 2106, 2019, 1931, 1842, 1751, 1660, 1567, 1474, 1380, 1285,
+ 1189, 1092, 995, 897, 799, 700, 601, 501, 401, 301, 201, 101, 0,
+];
+
+pub static DC_QLOOKUP: [[u16; 256]; 3] = [
+ [
+ 4, 8, 8, 9, 10, 11, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 23, 24, 25, 26, 26, 27, 28, 29, 30, 31, 32, 32, 33, 34, 35, 36, 37, 38, 38, 39,
+ 40, 41, 42, 43, 43, 44, 45, 46, 47, 48, 48, 49, 50, 51, 52, 53, 53, 54, 55, 56, 57, 57, 58, 59, 60, 61, 62, 62, 63, 64, 65, 66, 66, 67, 68, 69, 70, 70,
+ 71, 72, 73, 74, 74, 75, 76, 77, 78, 78, 79, 80, 81, 81, 82, 83, 84, 85, 85, 87, 88, 90, 92, 93, 95, 96, 98, 99, 101, 102, 104, 105, 107, 108, 110, 111,
+ 113, 114, 116, 117, 118, 120, 121, 123, 125, 127, 129, 131, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 161, 164, 166, 169, 172,
+ 174, 177, 180, 182, 185, 187, 190, 192, 195, 199, 202, 205, 208, 211, 214, 217, 220, 223, 226, 230, 233, 237, 240, 243, 247, 250, 253, 257, 261, 265,
+ 269, 272, 276, 280, 284, 288, 292, 296, 300, 304, 309, 313, 317, 322, 326, 330, 335, 340, 344, 349, 354, 359, 364, 369, 374, 379, 384, 389, 395, 400,
+ 406, 411, 417, 423, 429, 435, 441, 447, 454, 461, 467, 475, 482, 489, 497, 505, 513, 522, 530, 539, 549, 559, 569, 579, 590, 602, 614, 626, 640, 654,
+ 668, 684, 700, 717, 736, 755, 775, 796, 819, 843, 869, 896, 925, 955, 988, 1022, 1058, 1098, 1139, 1184, 1232, 1282, 1336,
+ ],
+ [
+ 4, 9, 10, 13, 15, 17, 20, 22, 25, 28, 31, 34, 37, 40, 43, 47, 50, 53, 57, 60, 64, 68, 71, 75, 78, 82, 86, 90, 93, 97, 101, 105, 109, 113, 116, 120,
+ 124, 128, 132, 136, 140, 143, 147, 151, 155, 159, 163, 166, 170, 174, 178, 182, 185, 189, 193, 197, 200, 204, 208, 212, 215, 219, 223, 226, 230, 233,
+ 237, 241, 244, 248, 251, 255, 259, 262, 266, 269, 273, 276, 280, 283, 287, 290, 293, 297, 300, 304, 307, 310, 314, 317, 321, 324, 327, 331, 334, 337,
+ 343, 350, 356, 362, 369, 375, 381, 387, 394, 400, 406, 412, 418, 424, 430, 436, 442, 448, 454, 460, 466, 472, 478, 484, 490, 499, 507, 516, 525, 533,
+ 542, 550, 559, 567, 576, 584, 592, 601, 609, 617, 625, 634, 644, 655, 666, 676, 687, 698, 708, 718, 729, 739, 749, 759, 770, 782, 795, 807, 819, 831,
+ 844, 856, 868, 880, 891, 906, 920, 933, 947, 961, 975, 988, 1001, 1015, 1030, 1045, 1061, 1076, 1090, 1105, 1120, 1137, 1153, 1170, 1186, 1202, 1218,
+ 1236, 1253, 1271, 1288, 1306, 1323, 1342, 1361, 1379, 1398, 1416, 1436, 1456, 1476, 1496, 1516, 1537, 1559, 1580, 1601, 1624, 1647, 1670, 1692, 1717,
+ 1741, 1766, 1791, 1817, 1844, 1871, 1900, 1929, 1958, 1990, 2021, 2054, 2088, 2123, 2159, 2197, 2236, 2276, 2319, 2363, 2410, 2458, 2508, 2561, 2616,
+ 2675, 2737, 2802, 2871, 2944, 3020, 3102, 3188, 3280, 3375, 3478, 3586, 3702, 3823, 3953, 4089, 4236, 4394, 4559, 4737, 4929, 5130, 5347,
+ ],
+ [
+ 4, 12, 18, 25, 33, 41, 50, 60, 70, 80, 91, 103, 115, 127, 140, 153, 166, 180, 194, 208, 222, 237, 251, 266, 281, 296, 312, 327, 343, 358, 374, 390,
+ 405, 421, 437, 453, 469, 484, 500, 516, 532, 548, 564, 580, 596, 611, 627, 643, 659, 674, 690, 706, 721, 737, 752, 768, 783, 798, 814, 829, 844, 859,
+ 874, 889, 904, 919, 934, 949, 964, 978, 993, 1008, 1022, 1037, 1051, 1065, 1080, 1094, 1108, 1122, 1136, 1151, 1165, 1179, 1192, 1206, 1220, 1234,
+ 1248, 1261, 1275, 1288, 1302, 1315, 1329, 1342, 1368, 1393, 1419, 1444, 1469, 1494, 1519, 1544, 1569, 1594, 1618, 1643, 1668, 1692, 1717, 1741, 1765,
+ 1789, 1814, 1838, 1862, 1885, 1909, 1933, 1957, 1992, 2027, 2061, 2096, 2130, 2165, 2199, 2233, 2267, 2300, 2334, 2367, 2400, 2434, 2467, 2499, 2532,
+ 2575, 2618, 2661, 2704, 2746, 2788, 2830, 2872, 2913, 2954, 2995, 3036, 3076, 3127, 3177, 3226, 3275, 3324, 3373, 3421, 3469, 3517, 3565, 3621, 3677,
+ 3733, 3788, 3843, 3897, 3951, 4005, 4058, 4119, 4181, 4241, 4301, 4361, 4420, 4479, 4546, 4612, 4677, 4742, 4807, 4871, 4942, 5013, 5083, 5153, 5222,
+ 5291, 5367, 5442, 5517, 5591, 5665, 5745, 5825, 5905, 5984, 6063, 6149, 6234, 6319, 6404, 6495, 6587, 6678, 6769, 6867, 6966, 7064, 7163, 7269, 7376,
+ 7483, 7599, 7715, 7832, 7958, 8085, 8214, 8352, 8492, 8635, 8788, 8945, 9104, 9275, 9450, 9639, 9832, 10031, 10245, 10465, 10702, 10946, 11210, 11482,
+ 11776, 12081, 12409, 12750, 13118, 13501, 13913, 14343, 14807, 15290, 15812, 16356, 16943, 17575, 18237, 18949, 19718, 20521, 21387,
+ ],
+];
+
+pub static DEFAULT_ANGLE_DELTA_CDF: [[u16; 8]; 8] = [
+ [2180, 5032, 7567, 22776, 26989, 30217, 32768, 0],
+ [2301, 5608, 8801, 23487, 26974, 30330, 32768, 0],
+ [3780, 11018, 13699, 19354, 23083, 31286, 32768, 0],
+ [4581, 11226, 15147, 17138, 21834, 28397, 32768, 0],
+ [1737, 10927, 14509, 19588, 22745, 28823, 32768, 0],
+ [2664, 10176, 12485, 17650, 21600, 30495, 32768, 0],
+ [2240, 11096, 15453, 20341, 22561, 28917, 32768, 0],
+ [3605, 10428, 12459, 17676, 21244, 30655, 32768, 0],
+];
+
+pub static DEFAULT_CFL_ALPHA_CDF: [[u16; 17]; 6] = [
+ [7637, 20719, 31401, 32481, 32657, 32688, 32692, 32696, 32700, 32704, 32708, 32712, 32716, 32720, 32724, 32768, 0],
+ [14365, 23603, 28135, 31168, 32167, 32395, 32487, 32573, 32620, 32647, 32668, 32672, 32676, 32680, 32684, 32768, 0],
+ [11532, 22380, 28445, 31360, 32349, 32523, 32584, 32649, 32673, 32677, 32681, 32685, 32689, 32693, 32697, 32768, 0],
+ [26990, 31402, 32282, 32571, 32692, 32696, 32700, 32704, 32708, 32712, 32716, 32720, 32724, 32728, 32732, 32768, 0],
+ [17248, 26058, 28904, 30608, 31305, 31877, 32126, 32321, 32394, 32464, 32516, 32560, 32576, 32593, 32622, 32768, 0],
+ [14738, 21678, 25779, 27901, 29024, 30302, 30980, 31843, 32144, 32413, 32520, 32594, 32622, 32656, 32660, 32768, 0],
+];
+
+pub static DEFAULT_CFL_SIGN_CDF: [u16; 9] = [1418, 2123, 13340, 18405, 26972, 28343, 32294, 32768, 0];
+
+pub static DEFAULT_COEFF_BASE_CDF: [[[[[u16; 5]; 42]; 2]; 5]; 4] = [
+ [
+ [
+ [
+ [4034, 8930, 12727, 32768, 0],
+ [18082, 29741, 31877, 32768, 0],
+ [12596, 26124, 30493, 32768, 0],
+ [9446, 21118, 27005, 32768, 0],
+ [6308, 15141, 21279, 32768, 0],
+ [2463, 6357, 9783, 32768, 0],
+ [20667, 30546, 31929, 32768, 0],
+ [13043, 26123, 30134, 32768, 0],
+ [8151, 18757, 24778, 32768, 0],
+ [5255, 12839, 18632, 32768, 0],
+ [2820, 7206, 11161, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [15736, 27553, 30604, 32768, 0],
+ [11210, 23794, 28787, 32768, 0],
+ [5947, 13874, 19701, 32768, 0],
+ [4215, 9323, 13891, 32768, 0],
+ [2833, 6462, 10059, 32768, 0],
+ [19605, 30393, 31582, 32768, 0],
+ [13523, 26252, 30248, 32768, 0],
+ [8446, 18622, 24512, 32768, 0],
+ [3818, 10343, 15974, 32768, 0],
+ [1481, 4117, 6796, 32768, 0],
+ [22649, 31302, 32190, 32768, 0],
+ [14829, 27127, 30449, 32768, 0],
+ [8313, 17702, 23304, 32768, 0],
+ [3022, 8301, 12786, 32768, 0],
+ [1536, 4412, 7184, 32768, 0],
+ [22354, 29774, 31372, 32768, 0],
+ [14723, 25472, 29214, 32768, 0],
+ [6673, 13745, 18662, 32768, 0],
+ [2068, 5766, 9322, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [6302, 16444, 21761, 32768, 0],
+ [23040, 31538, 32475, 32768, 0],
+ [15196, 28452, 31496, 32768, 0],
+ [10020, 22946, 28514, 32768, 0],
+ [6533, 16862, 23501, 32768, 0],
+ [3538, 9816, 15076, 32768, 0],
+ [24444, 31875, 32525, 32768, 0],
+ [15881, 28924, 31635, 32768, 0],
+ [9922, 22873, 28466, 32768, 0],
+ [6527, 16966, 23691, 32768, 0],
+ [4114, 11303, 17220, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [20201, 30770, 32209, 32768, 0],
+ [14754, 28071, 31258, 32768, 0],
+ [8378, 20186, 26517, 32768, 0],
+ [5916, 15299, 21978, 32768, 0],
+ [4268, 11583, 17901, 32768, 0],
+ [24361, 32025, 32581, 32768, 0],
+ [18673, 30105, 31943, 32768, 0],
+ [10196, 22244, 27576, 32768, 0],
+ [5495, 14349, 20417, 32768, 0],
+ [2676, 7415, 11498, 32768, 0],
+ [24678, 31958, 32585, 32768, 0],
+ [18629, 29906, 31831, 32768, 0],
+ [9364, 20724, 26315, 32768, 0],
+ [4641, 12318, 18094, 32768, 0],
+ [2758, 7387, 11579, 32768, 0],
+ [25433, 31842, 32469, 32768, 0],
+ [18795, 29289, 31411, 32768, 0],
+ [7644, 17584, 23592, 32768, 0],
+ [3408, 9014, 15047, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [4536, 10072, 14001, 32768, 0],
+ [25459, 31416, 32206, 32768, 0],
+ [16605, 28048, 30818, 32768, 0],
+ [11008, 22857, 27719, 32768, 0],
+ [6915, 16268, 22315, 32768, 0],
+ [2625, 6812, 10537, 32768, 0],
+ [24257, 31788, 32499, 32768, 0],
+ [16880, 29454, 31879, 32768, 0],
+ [11958, 25054, 29778, 32768, 0],
+ [7916, 18718, 25084, 32768, 0],
+ [3383, 8777, 13446, 32768, 0],
+ [22720, 31603, 32393, 32768, 0],
+ [14960, 28125, 31335, 32768, 0],
+ [9731, 22210, 27928, 32768, 0],
+ [6304, 15832, 22277, 32768, 0],
+ [2910, 7818, 12166, 32768, 0],
+ [20375, 30627, 32131, 32768, 0],
+ [13904, 27284, 30887, 32768, 0],
+ [9368, 21558, 27144, 32768, 0],
+ [5937, 14966, 21119, 32768, 0],
+ [2667, 7225, 11319, 32768, 0],
+ [23970, 31470, 32378, 32768, 0],
+ [17173, 29734, 32018, 32768, 0],
+ [12795, 25441, 29965, 32768, 0],
+ [8981, 19680, 25893, 32768, 0],
+ [4728, 11372, 16902, 32768, 0],
+ [24287, 31797, 32439, 32768, 0],
+ [16703, 29145, 31696, 32768, 0],
+ [10833, 23554, 28725, 32768, 0],
+ [6468, 16566, 23057, 32768, 0],
+ [2415, 6562, 10278, 32768, 0],
+ [26610, 32395, 32659, 32768, 0],
+ [18590, 30498, 32117, 32768, 0],
+ [12420, 25756, 29950, 32768, 0],
+ [7639, 18746, 24710, 32768, 0],
+ [3001, 8086, 12347, 32768, 0],
+ [25076, 32064, 32580, 32768, 0],
+ [17946, 30128, 32028, 32768, 0],
+ [12024, 24985, 29378, 32768, 0],
+ [7517, 18390, 24304, 32768, 0],
+ [3243, 8781, 13331, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [6037, 16771, 21957, 32768, 0],
+ [24774, 31704, 32426, 32768, 0],
+ [16830, 28589, 31056, 32768, 0],
+ [10602, 22828, 27760, 32768, 0],
+ [6733, 16829, 23071, 32768, 0],
+ [3250, 8914, 13556, 32768, 0],
+ [25582, 32220, 32668, 32768, 0],
+ [18659, 30342, 32223, 32768, 0],
+ [12546, 26149, 30515, 32768, 0],
+ [8420, 20451, 26801, 32768, 0],
+ [4636, 12420, 18344, 32768, 0],
+ [27581, 32362, 32639, 32768, 0],
+ [18987, 30083, 31978, 32768, 0],
+ [11327, 24248, 29084, 32768, 0],
+ [7264, 17719, 24120, 32768, 0],
+ [3995, 10768, 16169, 32768, 0],
+ [25893, 31831, 32487, 32768, 0],
+ [16577, 28587, 31379, 32768, 0],
+ [10189, 22748, 28182, 32768, 0],
+ [6832, 17094, 23556, 32768, 0],
+ [3708, 10110, 15334, 32768, 0],
+ [25904, 32282, 32656, 32768, 0],
+ [19721, 30792, 32276, 32768, 0],
+ [12819, 26243, 30411, 32768, 0],
+ [8572, 20614, 26891, 32768, 0],
+ [5364, 14059, 20467, 32768, 0],
+ [26580, 32438, 32677, 32768, 0],
+ [20852, 31225, 32340, 32768, 0],
+ [12435, 25700, 29967, 32768, 0],
+ [8691, 20825, 26976, 32768, 0],
+ [4446, 12209, 17269, 32768, 0],
+ [27350, 32429, 32696, 32768, 0],
+ [21372, 30977, 32272, 32768, 0],
+ [12673, 25270, 29853, 32768, 0],
+ [9208, 20925, 26640, 32768, 0],
+ [5018, 13351, 18732, 32768, 0],
+ [27351, 32479, 32713, 32768, 0],
+ [21398, 31209, 32387, 32768, 0],
+ [12162, 25047, 29842, 32768, 0],
+ [7896, 18691, 25319, 32768, 0],
+ [4670, 12882, 18881, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [5487, 10460, 13708, 32768, 0],
+ [21597, 28303, 30674, 32768, 0],
+ [11037, 21953, 26476, 32768, 0],
+ [8147, 17962, 22952, 32768, 0],
+ [5242, 13061, 18532, 32768, 0],
+ [1889, 5208, 8182, 32768, 0],
+ [26774, 32133, 32590, 32768, 0],
+ [17844, 29564, 31767, 32768, 0],
+ [11690, 24438, 29171, 32768, 0],
+ [7542, 18215, 24459, 32768, 0],
+ [2993, 8050, 12319, 32768, 0],
+ [28023, 32328, 32591, 32768, 0],
+ [18651, 30126, 31954, 32768, 0],
+ [12164, 25146, 29589, 32768, 0],
+ [7762, 18530, 24771, 32768, 0],
+ [3492, 9183, 13920, 32768, 0],
+ [27591, 32008, 32491, 32768, 0],
+ [17149, 28853, 31510, 32768, 0],
+ [11485, 24003, 28860, 32768, 0],
+ [7697, 18086, 24210, 32768, 0],
+ [3075, 7999, 12218, 32768, 0],
+ [28268, 32482, 32654, 32768, 0],
+ [19631, 31051, 32404, 32768, 0],
+ [13860, 27260, 31020, 32768, 0],
+ [9605, 21613, 27594, 32768, 0],
+ [4876, 12162, 17908, 32768, 0],
+ [27248, 32316, 32576, 32768, 0],
+ [18955, 30457, 32075, 32768, 0],
+ [11824, 23997, 28795, 32768, 0],
+ [7346, 18196, 24647, 32768, 0],
+ [3403, 9247, 14111, 32768, 0],
+ [29711, 32655, 32735, 32768, 0],
+ [21169, 31394, 32417, 32768, 0],
+ [13487, 27198, 30957, 32768, 0],
+ [8828, 21683, 27614, 32768, 0],
+ [4270, 11451, 17038, 32768, 0],
+ [28708, 32578, 32731, 32768, 0],
+ [20120, 31241, 32482, 32768, 0],
+ [13692, 27550, 31321, 32768, 0],
+ [9418, 22514, 28439, 32768, 0],
+ [4999, 13283, 19462, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [5673, 14302, 19711, 32768, 0],
+ [26251, 30701, 31834, 32768, 0],
+ [12782, 23783, 27803, 32768, 0],
+ [9127, 20657, 25808, 32768, 0],
+ [6368, 16208, 21462, 32768, 0],
+ [2465, 7177, 10822, 32768, 0],
+ [29961, 32563, 32719, 32768, 0],
+ [18318, 29891, 31949, 32768, 0],
+ [11361, 24514, 29357, 32768, 0],
+ [7900, 19603, 25607, 32768, 0],
+ [4002, 10590, 15546, 32768, 0],
+ [29637, 32310, 32595, 32768, 0],
+ [18296, 29913, 31809, 32768, 0],
+ [10144, 21515, 26871, 32768, 0],
+ [5358, 14322, 20394, 32768, 0],
+ [3067, 8362, 13346, 32768, 0],
+ [28652, 32470, 32676, 32768, 0],
+ [17538, 30771, 32209, 32768, 0],
+ [13924, 26882, 30494, 32768, 0],
+ [10496, 22837, 27869, 32768, 0],
+ [7236, 16396, 21621, 32768, 0],
+ [30743, 32687, 32746, 32768, 0],
+ [23006, 31676, 32489, 32768, 0],
+ [14494, 27828, 31120, 32768, 0],
+ [10174, 22801, 28352, 32768, 0],
+ [6242, 15281, 21043, 32768, 0],
+ [25817, 32243, 32720, 32768, 0],
+ [18618, 31367, 32325, 32768, 0],
+ [13997, 28318, 31878, 32768, 0],
+ [12255, 26534, 31383, 32768, 0],
+ [9561, 21588, 28450, 32768, 0],
+ [28188, 32635, 32724, 32768, 0],
+ [22060, 32365, 32728, 32768, 0],
+ [18102, 30690, 32528, 32768, 0],
+ [14196, 28864, 31999, 32768, 0],
+ [12262, 25792, 30865, 32768, 0],
+ [24176, 32109, 32628, 32768, 0],
+ [18280, 29681, 31963, 32768, 0],
+ [10205, 23703, 29664, 32768, 0],
+ [7889, 20025, 27676, 32768, 0],
+ [6060, 16743, 23970, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [5141, 7096, 8260, 32768, 0],
+ [27186, 29022, 29789, 32768, 0],
+ [6668, 12568, 15682, 32768, 0],
+ [2172, 6181, 8638, 32768, 0],
+ [1126, 3379, 4531, 32768, 0],
+ [443, 1361, 2254, 32768, 0],
+ [26083, 31153, 32436, 32768, 0],
+ [13486, 24603, 28483, 32768, 0],
+ [6508, 14840, 19910, 32768, 0],
+ [3386, 8800, 13286, 32768, 0],
+ [1530, 4322, 7054, 32768, 0],
+ [29639, 32080, 32548, 32768, 0],
+ [15897, 27552, 30290, 32768, 0],
+ [8588, 20047, 25383, 32768, 0],
+ [4889, 13339, 19269, 32768, 0],
+ [2240, 6871, 10498, 32768, 0],
+ [28165, 32197, 32517, 32768, 0],
+ [20735, 30427, 31568, 32768, 0],
+ [14325, 24671, 27692, 32768, 0],
+ [5119, 12554, 17805, 32768, 0],
+ [1810, 5441, 8261, 32768, 0],
+ [31212, 32724, 32748, 32768, 0],
+ [23352, 31766, 32545, 32768, 0],
+ [14669, 27570, 31059, 32768, 0],
+ [8492, 20894, 27272, 32768, 0],
+ [3644, 10194, 15204, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [2461, 7013, 9371, 32768, 0],
+ [24749, 29600, 30986, 32768, 0],
+ [9466, 19037, 22417, 32768, 0],
+ [3584, 9280, 14400, 32768, 0],
+ [1505, 3929, 5433, 32768, 0],
+ [677, 1500, 2736, 32768, 0],
+ [23987, 30702, 32117, 32768, 0],
+ [13554, 24571, 29263, 32768, 0],
+ [6211, 14556, 21155, 32768, 0],
+ [3135, 10972, 15625, 32768, 0],
+ [2435, 7127, 11427, 32768, 0],
+ [31300, 32532, 32550, 32768, 0],
+ [14757, 30365, 31954, 32768, 0],
+ [4405, 11612, 18553, 32768, 0],
+ [580, 4132, 7322, 32768, 0],
+ [1695, 10169, 14124, 32768, 0],
+ [30008, 32282, 32591, 32768, 0],
+ [19244, 30108, 31748, 32768, 0],
+ [11180, 24158, 29555, 32768, 0],
+ [5650, 14972, 19209, 32768, 0],
+ [2114, 5109, 8456, 32768, 0],
+ [31856, 32716, 32748, 32768, 0],
+ [23012, 31664, 32572, 32768, 0],
+ [13694, 26656, 30636, 32768, 0],
+ [8142, 19508, 26093, 32768, 0],
+ [4253, 10955, 16724, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [601, 983, 1311, 32768, 0],
+ [18725, 23406, 28087, 32768, 0],
+ [5461, 8192, 10923, 32768, 0],
+ [3781, 15124, 21425, 32768, 0],
+ [2587, 7761, 12072, 32768, 0],
+ [106, 458, 810, 32768, 0],
+ [22282, 29710, 31894, 32768, 0],
+ [8508, 20926, 25984, 32768, 0],
+ [3726, 12713, 18083, 32768, 0],
+ [1620, 7112, 10893, 32768, 0],
+ [729, 2236, 3495, 32768, 0],
+ [30163, 32474, 32684, 32768, 0],
+ [18304, 30464, 32000, 32768, 0],
+ [11443, 26526, 29647, 32768, 0],
+ [6007, 15292, 21299, 32768, 0],
+ [2234, 6703, 8937, 32768, 0],
+ [30954, 32177, 32571, 32768, 0],
+ [17363, 29562, 31076, 32768, 0],
+ [9686, 22464, 27410, 32768, 0],
+ [8192, 16384, 21390, 32768, 0],
+ [1755, 8046, 11264, 32768, 0],
+ [31168, 32734, 32748, 32768, 0],
+ [22486, 31441, 32471, 32768, 0],
+ [12833, 25627, 29738, 32768, 0],
+ [6980, 17379, 23122, 32768, 0],
+ [3111, 8887, 13479, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [6041, 11854, 15927, 32768, 0],
+ [20326, 30905, 32251, 32768, 0],
+ [14164, 26831, 30725, 32768, 0],
+ [9760, 20647, 26585, 32768, 0],
+ [6416, 14953, 21219, 32768, 0],
+ [2966, 7151, 10891, 32768, 0],
+ [23567, 31374, 32254, 32768, 0],
+ [14978, 27416, 30946, 32768, 0],
+ [9434, 20225, 26254, 32768, 0],
+ [6658, 14558, 20535, 32768, 0],
+ [3916, 8677, 12989, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [18088, 29545, 31587, 32768, 0],
+ [13062, 25843, 30073, 32768, 0],
+ [8940, 16827, 22251, 32768, 0],
+ [7654, 13220, 17973, 32768, 0],
+ [5733, 10316, 14456, 32768, 0],
+ [22879, 31388, 32114, 32768, 0],
+ [15215, 27993, 30955, 32768, 0],
+ [9397, 19445, 24978, 32768, 0],
+ [3442, 9813, 15344, 32768, 0],
+ [1368, 3936, 6532, 32768, 0],
+ [25494, 32033, 32406, 32768, 0],
+ [16772, 27963, 30718, 32768, 0],
+ [9419, 18165, 23260, 32768, 0],
+ [2677, 7501, 11797, 32768, 0],
+ [1516, 4344, 7170, 32768, 0],
+ [26556, 31454, 32101, 32768, 0],
+ [17128, 27035, 30108, 32768, 0],
+ [8324, 15344, 20249, 32768, 0],
+ [1903, 5696, 9469, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8455, 19003, 24368, 32768, 0],
+ [23563, 32021, 32604, 32768, 0],
+ [16237, 29446, 31935, 32768, 0],
+ [10724, 23999, 29358, 32768, 0],
+ [6725, 17528, 24416, 32768, 0],
+ [3927, 10927, 16825, 32768, 0],
+ [26313, 32288, 32634, 32768, 0],
+ [17430, 30095, 32095, 32768, 0],
+ [11116, 24606, 29679, 32768, 0],
+ [7195, 18384, 25269, 32768, 0],
+ [4726, 12852, 19315, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [22822, 31648, 32483, 32768, 0],
+ [16724, 29633, 31929, 32768, 0],
+ [10261, 23033, 28725, 32768, 0],
+ [7029, 17840, 24528, 32768, 0],
+ [4867, 13886, 21502, 32768, 0],
+ [25298, 31892, 32491, 32768, 0],
+ [17809, 29330, 31512, 32768, 0],
+ [9668, 21329, 26579, 32768, 0],
+ [4774, 12956, 18976, 32768, 0],
+ [2322, 7030, 11540, 32768, 0],
+ [25472, 31920, 32543, 32768, 0],
+ [17957, 29387, 31632, 32768, 0],
+ [9196, 20593, 26400, 32768, 0],
+ [4680, 12705, 19202, 32768, 0],
+ [2917, 8456, 13436, 32768, 0],
+ [26471, 32059, 32574, 32768, 0],
+ [18458, 29783, 31909, 32768, 0],
+ [8400, 19464, 25956, 32768, 0],
+ [3812, 10973, 17206, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [6779, 13743, 17678, 32768, 0],
+ [24806, 31797, 32457, 32768, 0],
+ [17616, 29047, 31372, 32768, 0],
+ [11063, 23175, 28003, 32768, 0],
+ [6521, 16110, 22324, 32768, 0],
+ [2764, 7504, 11654, 32768, 0],
+ [25266, 32367, 32637, 32768, 0],
+ [19054, 30553, 32175, 32768, 0],
+ [12139, 25212, 29807, 32768, 0],
+ [7311, 18162, 24704, 32768, 0],
+ [3397, 9164, 14074, 32768, 0],
+ [25988, 32208, 32522, 32768, 0],
+ [16253, 28912, 31526, 32768, 0],
+ [9151, 21387, 27372, 32768, 0],
+ [5688, 14915, 21496, 32768, 0],
+ [2717, 7627, 12004, 32768, 0],
+ [23144, 31855, 32443, 32768, 0],
+ [16070, 28491, 31325, 32768, 0],
+ [8702, 20467, 26517, 32768, 0],
+ [5243, 13956, 20367, 32768, 0],
+ [2621, 7335, 11567, 32768, 0],
+ [26636, 32340, 32630, 32768, 0],
+ [19990, 31050, 32341, 32768, 0],
+ [13243, 26105, 30315, 32768, 0],
+ [8588, 19521, 25918, 32768, 0],
+ [4717, 11585, 17304, 32768, 0],
+ [25844, 32292, 32582, 32768, 0],
+ [19090, 30635, 32097, 32768, 0],
+ [11963, 24546, 28939, 32768, 0],
+ [6218, 16087, 22354, 32768, 0],
+ [2340, 6608, 10426, 32768, 0],
+ [28046, 32576, 32694, 32768, 0],
+ [21178, 31313, 32296, 32768, 0],
+ [13486, 26184, 29870, 32768, 0],
+ [7149, 17871, 23723, 32768, 0],
+ [2833, 7958, 12259, 32768, 0],
+ [27710, 32528, 32686, 32768, 0],
+ [20674, 31076, 32268, 32768, 0],
+ [12413, 24955, 29243, 32768, 0],
+ [6676, 16927, 23097, 32768, 0],
+ [2966, 8333, 12919, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8639, 19339, 24429, 32768, 0],
+ [24404, 31837, 32525, 32768, 0],
+ [16997, 29425, 31784, 32768, 0],
+ [11253, 24234, 29149, 32768, 0],
+ [6751, 17394, 24028, 32768, 0],
+ [3490, 9830, 15191, 32768, 0],
+ [26283, 32471, 32714, 32768, 0],
+ [19599, 31168, 32442, 32768, 0],
+ [13146, 26954, 30893, 32768, 0],
+ [8214, 20588, 26890, 32768, 0],
+ [4699, 13081, 19300, 32768, 0],
+ [28212, 32458, 32669, 32768, 0],
+ [18594, 30316, 32100, 32768, 0],
+ [11219, 24408, 29234, 32768, 0],
+ [6865, 17656, 24149, 32768, 0],
+ [3678, 10362, 16006, 32768, 0],
+ [25825, 32136, 32616, 32768, 0],
+ [17313, 29853, 32021, 32768, 0],
+ [11197, 24471, 29472, 32768, 0],
+ [6947, 17781, 24405, 32768, 0],
+ [3768, 10660, 16261, 32768, 0],
+ [27352, 32500, 32706, 32768, 0],
+ [20850, 31468, 32469, 32768, 0],
+ [14021, 27707, 31133, 32768, 0],
+ [8964, 21748, 27838, 32768, 0],
+ [5437, 14665, 21187, 32768, 0],
+ [26304, 32492, 32698, 32768, 0],
+ [20409, 31380, 32385, 32768, 0],
+ [13682, 27222, 30632, 32768, 0],
+ [8974, 21236, 26685, 32768, 0],
+ [4234, 11665, 16934, 32768, 0],
+ [26273, 32357, 32711, 32768, 0],
+ [20672, 31242, 32441, 32768, 0],
+ [14172, 27254, 30902, 32768, 0],
+ [9870, 21898, 27275, 32768, 0],
+ [5164, 13506, 19270, 32768, 0],
+ [26725, 32459, 32728, 32768, 0],
+ [20991, 31442, 32527, 32768, 0],
+ [13071, 26434, 30811, 32768, 0],
+ [8184, 20090, 26742, 32768, 0],
+ [4803, 13255, 19895, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [7555, 14942, 18501, 32768, 0],
+ [24410, 31178, 32287, 32768, 0],
+ [14394, 26738, 30253, 32768, 0],
+ [8413, 19554, 25195, 32768, 0],
+ [4766, 12924, 18785, 32768, 0],
+ [2029, 5806, 9207, 32768, 0],
+ [26776, 32364, 32663, 32768, 0],
+ [18732, 29967, 31931, 32768, 0],
+ [11005, 23786, 28852, 32768, 0],
+ [6466, 16909, 23510, 32768, 0],
+ [3044, 8638, 13419, 32768, 0],
+ [29208, 32582, 32704, 32768, 0],
+ [20068, 30857, 32208, 32768, 0],
+ [12003, 25085, 29595, 32768, 0],
+ [6947, 17750, 24189, 32768, 0],
+ [3245, 9103, 14007, 32768, 0],
+ [27359, 32465, 32669, 32768, 0],
+ [19421, 30614, 32174, 32768, 0],
+ [11915, 25010, 29579, 32768, 0],
+ [6950, 17676, 24074, 32768, 0],
+ [3007, 8473, 13096, 32768, 0],
+ [29002, 32676, 32735, 32768, 0],
+ [22102, 31849, 32576, 32768, 0],
+ [14408, 28009, 31405, 32768, 0],
+ [9027, 21679, 27931, 32768, 0],
+ [4694, 12678, 18748, 32768, 0],
+ [28216, 32528, 32682, 32768, 0],
+ [20849, 31264, 32318, 32768, 0],
+ [12756, 25815, 29751, 32768, 0],
+ [7565, 18801, 24923, 32768, 0],
+ [3509, 9533, 14477, 32768, 0],
+ [30133, 32687, 32739, 32768, 0],
+ [23063, 31910, 32515, 32768, 0],
+ [14588, 28051, 31132, 32768, 0],
+ [9085, 21649, 27457, 32768, 0],
+ [4261, 11654, 17264, 32768, 0],
+ [29518, 32691, 32748, 32768, 0],
+ [22451, 31959, 32613, 32768, 0],
+ [14864, 28722, 31700, 32768, 0],
+ [9695, 22964, 28716, 32768, 0],
+ [4932, 13358, 19502, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [6465, 16958, 21688, 32768, 0],
+ [25199, 31514, 32360, 32768, 0],
+ [14774, 27149, 30607, 32768, 0],
+ [9257, 21438, 26972, 32768, 0],
+ [5723, 15183, 21882, 32768, 0],
+ [3150, 8879, 13731, 32768, 0],
+ [26989, 32262, 32682, 32768, 0],
+ [17396, 29937, 32085, 32768, 0],
+ [11387, 24901, 29784, 32768, 0],
+ [7289, 18821, 25548, 32768, 0],
+ [3734, 10577, 16086, 32768, 0],
+ [29728, 32501, 32695, 32768, 0],
+ [17431, 29701, 31903, 32768, 0],
+ [9921, 22826, 28300, 32768, 0],
+ [5896, 15434, 22068, 32768, 0],
+ [3430, 9646, 14757, 32768, 0],
+ [28614, 32511, 32705, 32768, 0],
+ [19364, 30638, 32263, 32768, 0],
+ [13129, 26254, 30402, 32768, 0],
+ [8754, 20484, 26440, 32768, 0],
+ [4378, 11607, 17110, 32768, 0],
+ [30292, 32671, 32744, 32768, 0],
+ [21780, 31603, 32501, 32768, 0],
+ [14314, 27829, 31291, 32768, 0],
+ [9611, 22327, 28263, 32768, 0],
+ [4890, 13087, 19065, 32768, 0],
+ [25862, 32567, 32733, 32768, 0],
+ [20794, 32050, 32567, 32768, 0],
+ [17243, 30625, 32254, 32768, 0],
+ [13283, 27628, 31474, 32768, 0],
+ [9669, 22532, 28918, 32768, 0],
+ [27435, 32697, 32748, 32768, 0],
+ [24922, 32390, 32714, 32768, 0],
+ [21449, 31504, 32536, 32768, 0],
+ [16392, 29729, 31832, 32768, 0],
+ [11692, 24884, 29076, 32768, 0],
+ [24193, 32290, 32735, 32768, 0],
+ [18909, 31104, 32563, 32768, 0],
+ [12236, 26841, 31403, 32768, 0],
+ [8171, 21840, 29082, 32768, 0],
+ [7224, 17280, 25275, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [3078, 6839, 9890, 32768, 0],
+ [13837, 20450, 24479, 32768, 0],
+ [5914, 14222, 19328, 32768, 0],
+ [3866, 10267, 14762, 32768, 0],
+ [2612, 7208, 11042, 32768, 0],
+ [1067, 2991, 4776, 32768, 0],
+ [25817, 31646, 32529, 32768, 0],
+ [13708, 26338, 30385, 32768, 0],
+ [7328, 18585, 24870, 32768, 0],
+ [4691, 13080, 19276, 32768, 0],
+ [1825, 5253, 8352, 32768, 0],
+ [29386, 32315, 32624, 32768, 0],
+ [17160, 29001, 31360, 32768, 0],
+ [9602, 21862, 27396, 32768, 0],
+ [5915, 15772, 22148, 32768, 0],
+ [2786, 7779, 12047, 32768, 0],
+ [29246, 32450, 32663, 32768, 0],
+ [18696, 29929, 31818, 32768, 0],
+ [10510, 23369, 28560, 32768, 0],
+ [6229, 16499, 23125, 32768, 0],
+ [2608, 7448, 11705, 32768, 0],
+ [30753, 32710, 32748, 32768, 0],
+ [21638, 31487, 32503, 32768, 0],
+ [12937, 26854, 30870, 32768, 0],
+ [8182, 20596, 26970, 32768, 0],
+ [3637, 10269, 15497, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [5244, 12150, 16906, 32768, 0],
+ [20486, 26858, 29701, 32768, 0],
+ [7756, 18317, 23735, 32768, 0],
+ [3452, 9256, 13146, 32768, 0],
+ [2020, 5206, 8229, 32768, 0],
+ [1801, 4993, 7903, 32768, 0],
+ [27051, 31858, 32531, 32768, 0],
+ [15988, 27531, 30619, 32768, 0],
+ [9188, 21484, 26719, 32768, 0],
+ [6273, 17186, 23800, 32768, 0],
+ [3108, 9355, 14764, 32768, 0],
+ [31076, 32520, 32680, 32768, 0],
+ [18119, 30037, 31850, 32768, 0],
+ [10244, 22969, 27472, 32768, 0],
+ [4692, 14077, 19273, 32768, 0],
+ [3694, 11677, 17556, 32768, 0],
+ [30060, 32581, 32720, 32768, 0],
+ [21011, 30775, 32120, 32768, 0],
+ [11931, 24820, 29289, 32768, 0],
+ [7119, 17662, 24356, 32768, 0],
+ [3833, 10706, 16304, 32768, 0],
+ [31954, 32731, 32748, 32768, 0],
+ [23913, 31724, 32489, 32768, 0],
+ [15520, 28060, 31286, 32768, 0],
+ [11517, 23008, 28571, 32768, 0],
+ [6193, 14508, 20629, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [1035, 2807, 4156, 32768, 0],
+ [13162, 18138, 20939, 32768, 0],
+ [2696, 6633, 8755, 32768, 0],
+ [1373, 4161, 6853, 32768, 0],
+ [1099, 2746, 4716, 32768, 0],
+ [340, 1021, 1599, 32768, 0],
+ [22826, 30419, 32135, 32768, 0],
+ [10395, 21762, 26942, 32768, 0],
+ [4726, 12407, 17361, 32768, 0],
+ [2447, 7080, 10593, 32768, 0],
+ [1227, 3717, 6011, 32768, 0],
+ [28156, 31424, 31934, 32768, 0],
+ [16915, 27754, 30373, 32768, 0],
+ [9148, 20990, 26431, 32768, 0],
+ [5950, 15515, 21148, 32768, 0],
+ [2492, 7327, 11526, 32768, 0],
+ [30602, 32477, 32670, 32768, 0],
+ [20026, 29955, 31568, 32768, 0],
+ [11220, 23628, 28105, 32768, 0],
+ [6652, 17019, 22973, 32768, 0],
+ [3064, 8536, 13043, 32768, 0],
+ [31769, 32724, 32748, 32768, 0],
+ [22230, 30887, 32373, 32768, 0],
+ [12234, 25079, 29731, 32768, 0],
+ [7326, 18816, 25353, 32768, 0],
+ [3933, 10907, 16616, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [8896, 16227, 20630, 32768, 0],
+ [23629, 31782, 32527, 32768, 0],
+ [15173, 27755, 31321, 32768, 0],
+ [10158, 21233, 27382, 32768, 0],
+ [6420, 14857, 21558, 32768, 0],
+ [3269, 8155, 12646, 32768, 0],
+ [24835, 32009, 32496, 32768, 0],
+ [16509, 28421, 31579, 32768, 0],
+ [10957, 21514, 27418, 32768, 0],
+ [7881, 15930, 22096, 32768, 0],
+ [5388, 10960, 15918, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [20745, 30773, 32093, 32768, 0],
+ [15200, 27221, 30861, 32768, 0],
+ [13032, 20873, 25667, 32768, 0],
+ [12285, 18663, 23494, 32768, 0],
+ [11563, 17481, 21489, 32768, 0],
+ [26260, 31982, 32320, 32768, 0],
+ [15397, 28083, 31100, 32768, 0],
+ [9742, 19217, 24824, 32768, 0],
+ [3261, 9629, 15362, 32768, 0],
+ [1480, 4322, 7499, 32768, 0],
+ [27599, 32256, 32460, 32768, 0],
+ [16857, 27659, 30774, 32768, 0],
+ [9551, 18290, 23748, 32768, 0],
+ [3052, 8933, 14103, 32768, 0],
+ [2021, 5910, 9787, 32768, 0],
+ [29005, 32015, 32392, 32768, 0],
+ [17677, 27694, 30863, 32768, 0],
+ [9204, 17356, 23219, 32768, 0],
+ [2403, 7516, 12814, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [10808, 22056, 26896, 32768, 0],
+ [25739, 32313, 32676, 32768, 0],
+ [17288, 30203, 32221, 32768, 0],
+ [11359, 24878, 29896, 32768, 0],
+ [6949, 17767, 24893, 32768, 0],
+ [4287, 11796, 18071, 32768, 0],
+ [27880, 32521, 32705, 32768, 0],
+ [19038, 31004, 32414, 32768, 0],
+ [12564, 26345, 30768, 32768, 0],
+ [8269, 19947, 26779, 32768, 0],
+ [5674, 14657, 21674, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [25742, 32319, 32671, 32768, 0],
+ [19557, 31164, 32454, 32768, 0],
+ [13381, 26381, 30755, 32768, 0],
+ [10101, 21466, 26722, 32768, 0],
+ [9209, 19650, 26825, 32768, 0],
+ [27107, 31917, 32432, 32768, 0],
+ [18056, 28893, 31203, 32768, 0],
+ [10200, 21434, 26764, 32768, 0],
+ [4660, 12913, 19502, 32768, 0],
+ [2368, 6930, 12504, 32768, 0],
+ [26960, 32158, 32613, 32768, 0],
+ [18628, 30005, 32031, 32768, 0],
+ [10233, 22442, 28232, 32768, 0],
+ [5471, 14630, 21516, 32768, 0],
+ [3235, 10767, 17109, 32768, 0],
+ [27696, 32440, 32692, 32768, 0],
+ [20032, 31167, 32438, 32768, 0],
+ [8700, 21341, 28442, 32768, 0],
+ [5662, 14831, 21795, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [9704, 17294, 21132, 32768, 0],
+ [26762, 32278, 32633, 32768, 0],
+ [18382, 29620, 31819, 32768, 0],
+ [10891, 23475, 28723, 32768, 0],
+ [6358, 16583, 23309, 32768, 0],
+ [3248, 9118, 14141, 32768, 0],
+ [27204, 32573, 32699, 32768, 0],
+ [19818, 30824, 32329, 32768, 0],
+ [11772, 25120, 30041, 32768, 0],
+ [6995, 18033, 25039, 32768, 0],
+ [3752, 10442, 16098, 32768, 0],
+ [27222, 32256, 32559, 32768, 0],
+ [15356, 28399, 31475, 32768, 0],
+ [8821, 20635, 27057, 32768, 0],
+ [5511, 14404, 21239, 32768, 0],
+ [2935, 8222, 13051, 32768, 0],
+ [24875, 32120, 32529, 32768, 0],
+ [15233, 28265, 31445, 32768, 0],
+ [8605, 20570, 26932, 32768, 0],
+ [5431, 14413, 21196, 32768, 0],
+ [2994, 8341, 13223, 32768, 0],
+ [28201, 32604, 32700, 32768, 0],
+ [21041, 31446, 32456, 32768, 0],
+ [13221, 26213, 30475, 32768, 0],
+ [8255, 19385, 26037, 32768, 0],
+ [4930, 12585, 18830, 32768, 0],
+ [28768, 32448, 32627, 32768, 0],
+ [19705, 30561, 32021, 32768, 0],
+ [11572, 23589, 28220, 32768, 0],
+ [5532, 15034, 21446, 32768, 0],
+ [2460, 7150, 11456, 32768, 0],
+ [29874, 32619, 32699, 32768, 0],
+ [21621, 31071, 32201, 32768, 0],
+ [12511, 24747, 28992, 32768, 0],
+ [6281, 16395, 22748, 32768, 0],
+ [3246, 9278, 14497, 32768, 0],
+ [29715, 32625, 32712, 32768, 0],
+ [20958, 31011, 32283, 32768, 0],
+ [11233, 23671, 28806, 32768, 0],
+ [6012, 16128, 22868, 32768, 0],
+ [3427, 9851, 15414, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [11016, 22111, 26794, 32768, 0],
+ [25946, 32357, 32677, 32768, 0],
+ [17890, 30452, 32252, 32768, 0],
+ [11678, 25142, 29816, 32768, 0],
+ [6720, 17534, 24584, 32768, 0],
+ [4230, 11665, 17820, 32768, 0],
+ [28400, 32623, 32747, 32768, 0],
+ [21164, 31668, 32575, 32768, 0],
+ [13572, 27388, 31182, 32768, 0],
+ [8234, 20750, 27358, 32768, 0],
+ [5065, 14055, 20897, 32768, 0],
+ [28981, 32547, 32705, 32768, 0],
+ [18681, 30543, 32239, 32768, 0],
+ [10919, 24075, 29286, 32768, 0],
+ [6431, 17199, 24077, 32768, 0],
+ [3819, 10464, 16618, 32768, 0],
+ [26870, 32467, 32693, 32768, 0],
+ [19041, 30831, 32347, 32768, 0],
+ [11794, 25211, 30016, 32768, 0],
+ [6888, 18019, 24970, 32768, 0],
+ [4370, 12363, 18992, 32768, 0],
+ [29578, 32670, 32744, 32768, 0],
+ [23159, 32007, 32613, 32768, 0],
+ [15315, 28669, 31676, 32768, 0],
+ [9298, 22607, 28782, 32768, 0],
+ [6144, 15913, 22968, 32768, 0],
+ [28110, 32499, 32669, 32768, 0],
+ [21574, 30937, 32015, 32768, 0],
+ [12759, 24818, 28727, 32768, 0],
+ [6545, 16761, 23042, 32768, 0],
+ [3649, 10597, 16833, 32768, 0],
+ [28163, 32552, 32728, 32768, 0],
+ [22101, 31469, 32464, 32768, 0],
+ [13160, 25472, 30143, 32768, 0],
+ [7303, 18684, 25468, 32768, 0],
+ [5241, 13975, 20955, 32768, 0],
+ [28400, 32631, 32744, 32768, 0],
+ [22104, 31793, 32603, 32768, 0],
+ [13557, 26571, 30846, 32768, 0],
+ [7749, 19861, 26675, 32768, 0],
+ [4873, 14030, 21234, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [9800, 17635, 21073, 32768, 0],
+ [26153, 31885, 32527, 32768, 0],
+ [15038, 27852, 31006, 32768, 0],
+ [8718, 20564, 26486, 32768, 0],
+ [5128, 14076, 20514, 32768, 0],
+ [2636, 7566, 11925, 32768, 0],
+ [27551, 32504, 32701, 32768, 0],
+ [18310, 30054, 32100, 32768, 0],
+ [10211, 23420, 29082, 32768, 0],
+ [6222, 16876, 23916, 32768, 0],
+ [3462, 9954, 15498, 32768, 0],
+ [29991, 32633, 32721, 32768, 0],
+ [19883, 30751, 32201, 32768, 0],
+ [11141, 24184, 29285, 32768, 0],
+ [6420, 16940, 23774, 32768, 0],
+ [3392, 9753, 15118, 32768, 0],
+ [28465, 32616, 32712, 32768, 0],
+ [19850, 30702, 32244, 32768, 0],
+ [10983, 24024, 29223, 32768, 0],
+ [6294, 16770, 23582, 32768, 0],
+ [3244, 9283, 14509, 32768, 0],
+ [30023, 32717, 32748, 32768, 0],
+ [22940, 32032, 32626, 32768, 0],
+ [14282, 27928, 31473, 32768, 0],
+ [8562, 21327, 27914, 32768, 0],
+ [4846, 13393, 19919, 32768, 0],
+ [29981, 32590, 32695, 32768, 0],
+ [20465, 30963, 32166, 32768, 0],
+ [11479, 23579, 28195, 32768, 0],
+ [5916, 15648, 22073, 32768, 0],
+ [3031, 8605, 13398, 32768, 0],
+ [31146, 32691, 32739, 32768, 0],
+ [23106, 31724, 32444, 32768, 0],
+ [13783, 26738, 30439, 32768, 0],
+ [7852, 19468, 25807, 32768, 0],
+ [3860, 11124, 16853, 32768, 0],
+ [31014, 32724, 32748, 32768, 0],
+ [23629, 32109, 32628, 32768, 0],
+ [14747, 28115, 31403, 32768, 0],
+ [8545, 21242, 27478, 32768, 0],
+ [4574, 12781, 19067, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [9185, 19694, 24688, 32768, 0],
+ [26081, 31985, 32621, 32768, 0],
+ [16015, 29000, 31787, 32768, 0],
+ [10542, 23690, 29206, 32768, 0],
+ [6732, 17945, 24677, 32768, 0],
+ [3916, 11039, 16722, 32768, 0],
+ [28224, 32566, 32744, 32768, 0],
+ [19100, 31138, 32485, 32768, 0],
+ [12528, 26620, 30879, 32768, 0],
+ [7741, 20277, 26885, 32768, 0],
+ [4566, 12845, 18990, 32768, 0],
+ [29933, 32593, 32718, 32768, 0],
+ [17670, 30333, 32155, 32768, 0],
+ [10385, 23600, 28909, 32768, 0],
+ [6243, 16236, 22407, 32768, 0],
+ [3976, 10389, 16017, 32768, 0],
+ [28377, 32561, 32738, 32768, 0],
+ [19366, 31175, 32482, 32768, 0],
+ [13327, 27175, 31094, 32768, 0],
+ [8258, 20769, 27143, 32768, 0],
+ [4703, 13198, 19527, 32768, 0],
+ [31086, 32706, 32748, 32768, 0],
+ [22853, 31902, 32583, 32768, 0],
+ [14759, 28186, 31419, 32768, 0],
+ [9284, 22382, 28348, 32768, 0],
+ [5585, 15192, 21868, 32768, 0],
+ [28291, 32652, 32746, 32768, 0],
+ [19849, 32107, 32571, 32768, 0],
+ [14834, 26818, 29214, 32768, 0],
+ [10306, 22594, 28672, 32768, 0],
+ [6615, 17384, 23384, 32768, 0],
+ [28947, 32604, 32745, 32768, 0],
+ [25625, 32289, 32646, 32768, 0],
+ [18758, 28672, 31403, 32768, 0],
+ [10017, 23430, 28523, 32768, 0],
+ [6862, 15269, 22131, 32768, 0],
+ [23933, 32509, 32739, 32768, 0],
+ [19927, 31495, 32631, 32768, 0],
+ [11903, 26023, 30621, 32768, 0],
+ [7026, 20094, 27252, 32768, 0],
+ [5998, 18106, 24437, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [4456, 11274, 15533, 32768, 0],
+ [21219, 29079, 31616, 32768, 0],
+ [11173, 23774, 28567, 32768, 0],
+ [7282, 18293, 24263, 32768, 0],
+ [4890, 13286, 19115, 32768, 0],
+ [1890, 5508, 8659, 32768, 0],
+ [26651, 32136, 32647, 32768, 0],
+ [14630, 28254, 31455, 32768, 0],
+ [8716, 21287, 27395, 32768, 0],
+ [5615, 15331, 22008, 32768, 0],
+ [2675, 7700, 12150, 32768, 0],
+ [29954, 32526, 32690, 32768, 0],
+ [16126, 28982, 31633, 32768, 0],
+ [9030, 21361, 27352, 32768, 0],
+ [5411, 14793, 21271, 32768, 0],
+ [2943, 8422, 13163, 32768, 0],
+ [29539, 32601, 32730, 32768, 0],
+ [18125, 30385, 32201, 32768, 0],
+ [10422, 24090, 29468, 32768, 0],
+ [6468, 17487, 24438, 32768, 0],
+ [2970, 8653, 13531, 32768, 0],
+ [30912, 32715, 32748, 32768, 0],
+ [20666, 31373, 32497, 32768, 0],
+ [12509, 26640, 30917, 32768, 0],
+ [8058, 20629, 27290, 32768, 0],
+ [4231, 12006, 18052, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [10202, 20633, 25484, 32768, 0],
+ [27336, 31445, 32352, 32768, 0],
+ [12420, 24384, 28552, 32768, 0],
+ [7648, 18115, 23856, 32768, 0],
+ [5662, 14341, 19902, 32768, 0],
+ [3611, 10328, 15390, 32768, 0],
+ [30945, 32616, 32736, 32768, 0],
+ [18682, 30505, 32253, 32768, 0],
+ [11513, 25336, 30203, 32768, 0],
+ [7449, 19452, 26148, 32768, 0],
+ [4482, 13051, 18886, 32768, 0],
+ [32022, 32690, 32747, 32768, 0],
+ [18578, 30501, 32146, 32768, 0],
+ [11249, 23368, 28631, 32768, 0],
+ [5645, 16958, 22158, 32768, 0],
+ [5009, 11444, 16637, 32768, 0],
+ [31357, 32710, 32748, 32768, 0],
+ [21552, 31494, 32504, 32768, 0],
+ [13891, 27677, 31340, 32768, 0],
+ [9051, 22098, 28172, 32768, 0],
+ [5190, 13377, 19486, 32768, 0],
+ [32364, 32740, 32748, 32768, 0],
+ [24839, 31907, 32551, 32768, 0],
+ [17160, 28779, 31696, 32768, 0],
+ [12452, 24137, 29602, 32768, 0],
+ [6165, 15389, 22477, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [2575, 7281, 11077, 32768, 0],
+ [14002, 20866, 25402, 32768, 0],
+ [6343, 15056, 19658, 32768, 0],
+ [4474, 11858, 17041, 32768, 0],
+ [2865, 8299, 12534, 32768, 0],
+ [1344, 3949, 6391, 32768, 0],
+ [24720, 31239, 32459, 32768, 0],
+ [12585, 25356, 29968, 32768, 0],
+ [7181, 18246, 24444, 32768, 0],
+ [5025, 13667, 19885, 32768, 0],
+ [2521, 7304, 11605, 32768, 0],
+ [29908, 32252, 32584, 32768, 0],
+ [17421, 29156, 31575, 32768, 0],
+ [9889, 22188, 27782, 32768, 0],
+ [5878, 15647, 22123, 32768, 0],
+ [2814, 8665, 13323, 32768, 0],
+ [30183, 32568, 32713, 32768, 0],
+ [18528, 30195, 32049, 32768, 0],
+ [10982, 24606, 29657, 32768, 0],
+ [6957, 18165, 25231, 32768, 0],
+ [3508, 10118, 15468, 32768, 0],
+ [31761, 32736, 32748, 32768, 0],
+ [21041, 31328, 32546, 32768, 0],
+ [12568, 26732, 31166, 32768, 0],
+ [8052, 20720, 27733, 32768, 0],
+ [4336, 12192, 18396, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [7062, 16472, 22319, 32768, 0],
+ [24538, 32261, 32674, 32768, 0],
+ [13675, 28041, 31779, 32768, 0],
+ [8590, 20674, 27631, 32768, 0],
+ [5685, 14675, 22013, 32768, 0],
+ [3655, 9898, 15731, 32768, 0],
+ [26493, 32418, 32658, 32768, 0],
+ [16376, 29342, 32090, 32768, 0],
+ [10594, 22649, 28970, 32768, 0],
+ [8176, 17170, 24303, 32768, 0],
+ [5605, 12694, 19139, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [23888, 31902, 32542, 32768, 0],
+ [18612, 29687, 31987, 32768, 0],
+ [16245, 24852, 29249, 32768, 0],
+ [15765, 22608, 27559, 32768, 0],
+ [19895, 24699, 27510, 32768, 0],
+ [28401, 32212, 32457, 32768, 0],
+ [15274, 27825, 30980, 32768, 0],
+ [9364, 18128, 24332, 32768, 0],
+ [2283, 8193, 15082, 32768, 0],
+ [1228, 3972, 7881, 32768, 0],
+ [29455, 32469, 32620, 32768, 0],
+ [17981, 28245, 31388, 32768, 0],
+ [10921, 20098, 26240, 32768, 0],
+ [3743, 11829, 18657, 32768, 0],
+ [2374, 9593, 15715, 32768, 0],
+ [31068, 32466, 32635, 32768, 0],
+ [20321, 29572, 31971, 32768, 0],
+ [10771, 20255, 27119, 32768, 0],
+ [2795, 10410, 17361, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [9320, 22102, 27840, 32768, 0],
+ [27057, 32464, 32724, 32768, 0],
+ [16331, 30268, 32309, 32768, 0],
+ [10319, 23935, 29720, 32768, 0],
+ [6189, 16448, 24106, 32768, 0],
+ [3589, 10884, 18808, 32768, 0],
+ [29026, 32624, 32748, 32768, 0],
+ [19226, 31507, 32587, 32768, 0],
+ [12692, 26921, 31203, 32768, 0],
+ [7049, 19532, 27635, 32768, 0],
+ [7727, 15669, 23252, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [28056, 32625, 32748, 32768, 0],
+ [22383, 32075, 32669, 32768, 0],
+ [15417, 27098, 31749, 32768, 0],
+ [18127, 26493, 27190, 32768, 0],
+ [5461, 16384, 21845, 32768, 0],
+ [27982, 32091, 32584, 32768, 0],
+ [19045, 29868, 31972, 32768, 0],
+ [10397, 22266, 27932, 32768, 0],
+ [5990, 13697, 21500, 32768, 0],
+ [1792, 6912, 15104, 32768, 0],
+ [28198, 32501, 32718, 32768, 0],
+ [21534, 31521, 32569, 32768, 0],
+ [11109, 25217, 30017, 32768, 0],
+ [5671, 15124, 26151, 32768, 0],
+ [4681, 14043, 18725, 32768, 0],
+ [28688, 32580, 32741, 32768, 0],
+ [22576, 32079, 32661, 32768, 0],
+ [10627, 22141, 28340, 32768, 0],
+ [9362, 14043, 28087, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [7754, 16948, 22142, 32768, 0],
+ [25670, 32330, 32691, 32768, 0],
+ [15663, 29225, 31994, 32768, 0],
+ [9878, 23288, 29158, 32768, 0],
+ [6419, 17088, 24336, 32768, 0],
+ [3859, 11003, 17039, 32768, 0],
+ [27562, 32595, 32725, 32768, 0],
+ [17575, 30588, 32399, 32768, 0],
+ [10819, 24838, 30309, 32768, 0],
+ [7124, 18686, 25916, 32768, 0],
+ [4479, 12688, 19340, 32768, 0],
+ [28385, 32476, 32673, 32768, 0],
+ [15306, 29005, 31938, 32768, 0],
+ [8937, 21615, 28322, 32768, 0],
+ [5982, 15603, 22786, 32768, 0],
+ [3620, 10267, 16136, 32768, 0],
+ [27280, 32464, 32667, 32768, 0],
+ [15607, 29160, 32004, 32768, 0],
+ [9091, 22135, 28740, 32768, 0],
+ [6232, 16632, 24020, 32768, 0],
+ [4047, 11377, 17672, 32768, 0],
+ [29220, 32630, 32718, 32768, 0],
+ [19650, 31220, 32462, 32768, 0],
+ [13050, 26312, 30827, 32768, 0],
+ [9228, 20870, 27468, 32768, 0],
+ [6146, 15149, 21971, 32768, 0],
+ [30169, 32481, 32623, 32768, 0],
+ [17212, 29311, 31554, 32768, 0],
+ [9911, 21311, 26882, 32768, 0],
+ [4487, 13314, 20372, 32768, 0],
+ [2570, 7772, 12889, 32768, 0],
+ [30924, 32613, 32708, 32768, 0],
+ [19490, 30206, 32107, 32768, 0],
+ [11232, 23998, 29276, 32768, 0],
+ [6769, 17955, 25035, 32768, 0],
+ [4398, 12623, 19214, 32768, 0],
+ [30609, 32627, 32722, 32768, 0],
+ [19370, 30582, 32287, 32768, 0],
+ [10457, 23619, 29409, 32768, 0],
+ [6443, 17637, 24834, 32768, 0],
+ [4645, 13236, 20106, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8626, 20271, 26216, 32768, 0],
+ [26707, 32406, 32711, 32768, 0],
+ [16999, 30329, 32286, 32768, 0],
+ [11445, 25123, 30286, 32768, 0],
+ [6411, 18828, 25601, 32768, 0],
+ [6801, 12458, 20248, 32768, 0],
+ [29918, 32682, 32748, 32768, 0],
+ [20649, 31739, 32618, 32768, 0],
+ [12879, 27773, 31581, 32768, 0],
+ [7896, 21751, 28244, 32768, 0],
+ [5260, 14870, 23698, 32768, 0],
+ [29252, 32593, 32731, 32768, 0],
+ [17072, 30460, 32294, 32768, 0],
+ [10653, 24143, 29365, 32768, 0],
+ [6536, 17490, 23983, 32768, 0],
+ [4929, 13170, 20085, 32768, 0],
+ [28137, 32518, 32715, 32768, 0],
+ [18171, 30784, 32407, 32768, 0],
+ [11437, 25436, 30459, 32768, 0],
+ [7252, 18534, 26176, 32768, 0],
+ [4126, 13353, 20978, 32768, 0],
+ [31162, 32726, 32748, 32768, 0],
+ [23017, 32222, 32701, 32768, 0],
+ [15629, 29233, 32046, 32768, 0],
+ [9387, 22621, 29480, 32768, 0],
+ [6922, 17616, 25010, 32768, 0],
+ [28838, 32265, 32614, 32768, 0],
+ [19701, 30206, 31920, 32768, 0],
+ [11214, 22410, 27933, 32768, 0],
+ [5320, 14177, 23034, 32768, 0],
+ [5049, 12881, 17827, 32768, 0],
+ [27484, 32471, 32734, 32768, 0],
+ [21076, 31526, 32561, 32768, 0],
+ [12707, 26303, 31211, 32768, 0],
+ [8169, 21722, 28219, 32768, 0],
+ [6045, 19406, 27042, 32768, 0],
+ [27753, 32572, 32745, 32768, 0],
+ [20832, 31878, 32653, 32768, 0],
+ [13250, 27356, 31674, 32768, 0],
+ [7718, 21508, 29858, 32768, 0],
+ [7209, 18350, 25559, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [7876, 16901, 21741, 32768, 0],
+ [24001, 31898, 32625, 32768, 0],
+ [14529, 27959, 31451, 32768, 0],
+ [8273, 20818, 27258, 32768, 0],
+ [5278, 14673, 21510, 32768, 0],
+ [2983, 8843, 14039, 32768, 0],
+ [28016, 32574, 32732, 32768, 0],
+ [17471, 30306, 32301, 32768, 0],
+ [10224, 24063, 29728, 32768, 0],
+ [6602, 17954, 25052, 32768, 0],
+ [4002, 11585, 17759, 32768, 0],
+ [30190, 32634, 32739, 32768, 0],
+ [17497, 30282, 32270, 32768, 0],
+ [10229, 23729, 29538, 32768, 0],
+ [6344, 17211, 24440, 32768, 0],
+ [3849, 11189, 17108, 32768, 0],
+ [28570, 32583, 32726, 32768, 0],
+ [17521, 30161, 32238, 32768, 0],
+ [10153, 23565, 29378, 32768, 0],
+ [6455, 17341, 24443, 32768, 0],
+ [3907, 11042, 17024, 32768, 0],
+ [30689, 32715, 32748, 32768, 0],
+ [21546, 31840, 32610, 32768, 0],
+ [13547, 27581, 31459, 32768, 0],
+ [8912, 21757, 28309, 32768, 0],
+ [5548, 15080, 22046, 32768, 0],
+ [30783, 32540, 32685, 32768, 0],
+ [17540, 29528, 31668, 32768, 0],
+ [10160, 21468, 26783, 32768, 0],
+ [4724, 13393, 20054, 32768, 0],
+ [2702, 8174, 13102, 32768, 0],
+ [31648, 32686, 32742, 32768, 0],
+ [20954, 31094, 32337, 32768, 0],
+ [12420, 25698, 30179, 32768, 0],
+ [7304, 19320, 26248, 32768, 0],
+ [4366, 12261, 18864, 32768, 0],
+ [31581, 32723, 32748, 32768, 0],
+ [21373, 31586, 32525, 32768, 0],
+ [12744, 26625, 30885, 32768, 0],
+ [7431, 20322, 26950, 32768, 0],
+ [4692, 13323, 20111, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [7833, 18369, 24095, 32768, 0],
+ [26650, 32273, 32702, 32768, 0],
+ [16371, 29961, 32191, 32768, 0],
+ [11055, 24082, 29629, 32768, 0],
+ [6892, 18644, 25400, 32768, 0],
+ [5006, 13057, 19240, 32768, 0],
+ [29834, 32666, 32748, 32768, 0],
+ [19577, 31335, 32570, 32768, 0],
+ [12253, 26509, 31122, 32768, 0],
+ [7991, 20772, 27711, 32768, 0],
+ [5677, 15910, 23059, 32768, 0],
+ [30109, 32532, 32720, 32768, 0],
+ [16747, 30166, 32252, 32768, 0],
+ [10134, 23542, 29184, 32768, 0],
+ [5791, 16176, 23556, 32768, 0],
+ [4362, 10414, 17284, 32768, 0],
+ [29492, 32626, 32748, 32768, 0],
+ [19894, 31402, 32525, 32768, 0],
+ [12942, 27071, 30869, 32768, 0],
+ [8346, 21216, 27405, 32768, 0],
+ [6572, 17087, 23859, 32768, 0],
+ [32035, 32735, 32748, 32768, 0],
+ [22957, 31838, 32618, 32768, 0],
+ [14724, 28572, 31772, 32768, 0],
+ [10364, 23999, 29553, 32768, 0],
+ [7004, 18433, 25655, 32768, 0],
+ [27528, 32277, 32681, 32768, 0],
+ [16959, 31171, 32096, 32768, 0],
+ [10486, 23593, 27962, 32768, 0],
+ [8192, 16384, 23211, 32768, 0],
+ [8937, 17873, 20852, 32768, 0],
+ [27715, 32002, 32615, 32768, 0],
+ [15073, 29491, 31676, 32768, 0],
+ [11264, 24576, 28672, 32768, 0],
+ [2341, 18725, 23406, 32768, 0],
+ [7282, 18204, 25486, 32768, 0],
+ [28547, 32213, 32657, 32768, 0],
+ [20788, 29773, 32239, 32768, 0],
+ [6780, 21469, 30508, 32768, 0],
+ [5958, 14895, 23831, 32768, 0],
+ [16384, 21845, 27307, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [5992, 14304, 19765, 32768, 0],
+ [22612, 31238, 32456, 32768, 0],
+ [13456, 27162, 31087, 32768, 0],
+ [8001, 20062, 26504, 32768, 0],
+ [5168, 14105, 20764, 32768, 0],
+ [2632, 7771, 12385, 32768, 0],
+ [27034, 32344, 32709, 32768, 0],
+ [15850, 29415, 31997, 32768, 0],
+ [9494, 22776, 28841, 32768, 0],
+ [6151, 16830, 23969, 32768, 0],
+ [3461, 10039, 15722, 32768, 0],
+ [30134, 32569, 32731, 32768, 0],
+ [15638, 29422, 31945, 32768, 0],
+ [9150, 21865, 28218, 32768, 0],
+ [5647, 15719, 22676, 32768, 0],
+ [3402, 9772, 15477, 32768, 0],
+ [28530, 32586, 32735, 32768, 0],
+ [17139, 30298, 32292, 32768, 0],
+ [10200, 24039, 29685, 32768, 0],
+ [6419, 17674, 24786, 32768, 0],
+ [3544, 10225, 15824, 32768, 0],
+ [31333, 32726, 32748, 32768, 0],
+ [20618, 31487, 32544, 32768, 0],
+ [12901, 27217, 31232, 32768, 0],
+ [8624, 21734, 28171, 32768, 0],
+ [5104, 14191, 20748, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [11206, 21090, 26561, 32768, 0],
+ [28759, 32279, 32671, 32768, 0],
+ [14171, 27952, 31569, 32768, 0],
+ [9743, 22907, 29141, 32768, 0],
+ [6871, 17886, 24868, 32768, 0],
+ [4960, 13152, 19315, 32768, 0],
+ [31077, 32661, 32748, 32768, 0],
+ [19400, 31195, 32515, 32768, 0],
+ [12752, 26858, 31040, 32768, 0],
+ [8370, 22098, 28591, 32768, 0],
+ [5457, 15373, 22298, 32768, 0],
+ [31697, 32706, 32748, 32768, 0],
+ [17860, 30657, 32333, 32768, 0],
+ [12510, 24812, 29261, 32768, 0],
+ [6180, 19124, 24722, 32768, 0],
+ [5041, 13548, 17959, 32768, 0],
+ [31552, 32716, 32748, 32768, 0],
+ [21908, 31769, 32623, 32768, 0],
+ [14470, 28201, 31565, 32768, 0],
+ [9493, 22982, 28608, 32768, 0],
+ [6858, 17240, 24137, 32768, 0],
+ [32543, 32752, 32756, 32768, 0],
+ [24286, 32097, 32666, 32768, 0],
+ [15958, 29217, 32024, 32768, 0],
+ [10207, 24234, 29958, 32768, 0],
+ [6929, 18305, 25652, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [4137, 10847, 15682, 32768, 0],
+ [17824, 27001, 30058, 32768, 0],
+ [10204, 22796, 28291, 32768, 0],
+ [6076, 15935, 22125, 32768, 0],
+ [3852, 10937, 16816, 32768, 0],
+ [2252, 6324, 10131, 32768, 0],
+ [25840, 32016, 32662, 32768, 0],
+ [15109, 28268, 31531, 32768, 0],
+ [9385, 22231, 28340, 32768, 0],
+ [6082, 16672, 23479, 32768, 0],
+ [3318, 9427, 14681, 32768, 0],
+ [30594, 32574, 32718, 32768, 0],
+ [16836, 29552, 31859, 32768, 0],
+ [9556, 22542, 28356, 32768, 0],
+ [6305, 16725, 23540, 32768, 0],
+ [3376, 9895, 15184, 32768, 0],
+ [29383, 32617, 32745, 32768, 0],
+ [18891, 30809, 32401, 32768, 0],
+ [11688, 25942, 30687, 32768, 0],
+ [7468, 19469, 26651, 32768, 0],
+ [3909, 11358, 17012, 32768, 0],
+ [31564, 32736, 32748, 32768, 0],
+ [20906, 31611, 32600, 32768, 0],
+ [13191, 27621, 31537, 32768, 0],
+ [8768, 22029, 28676, 32768, 0],
+ [5079, 14109, 20906, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+];
+
+pub static DEFAULT_COEFF_BASE_EOB_CDF: [[[[[u16; 4]; 4]; 2]; 5]; 4] = [
+ [
+ [
+ [[17837, 29055, 32768, 0], [29600, 31446, 32768, 0], [30844, 31878, 32768, 0], [24926, 28948, 32768, 0]],
+ [[21365, 30026, 32768, 0], [30512, 32423, 32768, 0], [31658, 32621, 32768, 0], [29630, 31881, 32768, 0]],
+ ],
+ [
+ [[5717, 26477, 32768, 0], [30491, 31703, 32768, 0], [31550, 32158, 32768, 0], [29648, 31491, 32768, 0]],
+ [[12608, 27820, 32768, 0], [30680, 32225, 32768, 0], [30809, 32335, 32768, 0], [31299, 32423, 32768, 0]],
+ ],
+ [
+ [[1786, 12612, 32768, 0], [30663, 31625, 32768, 0], [32339, 32468, 32768, 0], [31148, 31833, 32768, 0]],
+ [[18857, 23865, 32768, 0], [31428, 32428, 32768, 0], [31744, 32373, 32768, 0], [31775, 32526, 32768, 0]],
+ ],
+ [
+ [[1787, 2532, 32768, 0], [30832, 31662, 32768, 0], [31824, 32682, 32768, 0], [32133, 32569, 32768, 0]],
+ [[13751, 22235, 32768, 0], [32089, 32409, 32768, 0], [27084, 27920, 32768, 0], [29291, 32594, 32768, 0]],
+ ],
+ [
+ [[1725, 3449, 32768, 0], [31102, 31935, 32768, 0], [32457, 32613, 32768, 0], [32412, 32649, 32768, 0]],
+ [[10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0]],
+ ],
+ ],
+ [
+ [
+ [[17560, 29888, 32768, 0], [29671, 31549, 32768, 0], [31007, 32056, 32768, 0], [27286, 30006, 32768, 0]],
+ [[26594, 31212, 32768, 0], [31208, 32582, 32768, 0], [31835, 32637, 32768, 0], [30595, 32206, 32768, 0]],
+ ],
+ [
+ [[15239, 29932, 32768, 0], [31315, 32095, 32768, 0], [32130, 32434, 32768, 0], [30864, 31996, 32768, 0]],
+ [[26279, 30968, 32768, 0], [31142, 32495, 32768, 0], [31713, 32540, 32768, 0], [31929, 32594, 32768, 0]],
+ ],
+ [
+ [[2644, 25198, 32768, 0], [32038, 32451, 32768, 0], [32639, 32695, 32768, 0], [32166, 32518, 32768, 0]],
+ [[17187, 27668, 32768, 0], [31714, 32550, 32768, 0], [32283, 32678, 32768, 0], [31930, 32563, 32768, 0]],
+ ],
+ [
+ [[1044, 2257, 32768, 0], [30755, 31923, 32768, 0], [32208, 32693, 32768, 0], [32244, 32615, 32768, 0]],
+ [[21317, 26207, 32768, 0], [29133, 30868, 32768, 0], [29311, 31231, 32768, 0], [29657, 31087, 32768, 0]],
+ ],
+ [
+ [[478, 1834, 32768, 0], [31005, 31987, 32768, 0], [32317, 32724, 32768, 0], [30865, 32648, 32768, 0]],
+ [[10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0]],
+ ],
+ ],
+ [
+ [
+ [[20092, 30774, 32768, 0], [30695, 32020, 32768, 0], [31131, 32103, 32768, 0], [28666, 30870, 32768, 0]],
+ [[27258, 31095, 32768, 0], [31804, 32623, 32768, 0], [31763, 32528, 32768, 0], [31438, 32506, 32768, 0]],
+ ],
+ [
+ [[18049, 30489, 32768, 0], [31706, 32286, 32768, 0], [32163, 32473, 32768, 0], [31550, 32184, 32768, 0]],
+ [[27116, 30842, 32768, 0], [31971, 32598, 32768, 0], [32088, 32576, 32768, 0], [32067, 32664, 32768, 0]],
+ ],
+ [
+ [[12854, 29093, 32768, 0], [32272, 32558, 32768, 0], [32667, 32729, 32768, 0], [32306, 32585, 32768, 0]],
+ [[25476, 30366, 32768, 0], [32169, 32687, 32768, 0], [32479, 32689, 32768, 0], [31673, 32634, 32768, 0]],
+ ],
+ [
+ [[2809, 19301, 32768, 0], [32205, 32622, 32768, 0], [32338, 32730, 32768, 0], [31786, 32616, 32768, 0]],
+ [[22737, 29105, 32768, 0], [30810, 32362, 32768, 0], [30014, 32627, 32768, 0], [30528, 32574, 32768, 0]],
+ ],
+ [
+ [[935, 3382, 32768, 0], [30789, 31909, 32768, 0], [32466, 32756, 32768, 0], [30860, 32513, 32768, 0]],
+ [[10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0]],
+ ],
+ ],
+ [
+ [
+ [[22497, 31198, 32768, 0], [31715, 32495, 32768, 0], [31606, 32337, 32768, 0], [30388, 31990, 32768, 0]],
+ [[27877, 31584, 32768, 0], [32170, 32728, 32768, 0], [32155, 32688, 32768, 0], [32219, 32702, 32768, 0]],
+ ],
+ [
+ [[21457, 31043, 32768, 0], [31951, 32483, 32768, 0], [32153, 32562, 32768, 0], [31473, 32215, 32768, 0]],
+ [[27558, 31151, 32768, 0], [32020, 32640, 32768, 0], [32097, 32575, 32768, 0], [32242, 32719, 32768, 0]],
+ ],
+ [
+ [[19980, 30591, 32768, 0], [32219, 32597, 32768, 0], [32581, 32706, 32768, 0], [31803, 32287, 32768, 0]],
+ [[26473, 30507, 32768, 0], [32431, 32723, 32768, 0], [32196, 32611, 32768, 0], [31588, 32528, 32768, 0]],
+ ],
+ [
+ [[24647, 30463, 32768, 0], [32412, 32695, 32768, 0], [32468, 32720, 32768, 0], [31269, 32523, 32768, 0]],
+ [[28482, 31505, 32768, 0], [32152, 32701, 32768, 0], [31732, 32598, 32768, 0], [31767, 32712, 32768, 0]],
+ ],
+ [
+ [[12358, 24977, 32768, 0], [31331, 32385, 32768, 0], [32634, 32756, 32768, 0], [30411, 32548, 32768, 0]],
+ [[10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0], [10923, 21845, 32768, 0]],
+ ],
+ ],
+];
+
+pub static DEFAULT_COEFF_BR_CDF: [[[[[u16; 5]; 21]; 2]; 5]; 4] = [
+ [
+ [
+ [
+ [14298, 20718, 24174, 32768, 0],
+ [12536, 19601, 23789, 32768, 0],
+ [8712, 15051, 19503, 32768, 0],
+ [6170, 11327, 15434, 32768, 0],
+ [4742, 8926, 12538, 32768, 0],
+ [3803, 7317, 10546, 32768, 0],
+ [1696, 3317, 4871, 32768, 0],
+ [14392, 19951, 22756, 32768, 0],
+ [15978, 23218, 26818, 32768, 0],
+ [12187, 19474, 23889, 32768, 0],
+ [9176, 15640, 20259, 32768, 0],
+ [7068, 12655, 17028, 32768, 0],
+ [5656, 10442, 14472, 32768, 0],
+ [2580, 4992, 7244, 32768, 0],
+ [12136, 18049, 21426, 32768, 0],
+ [13784, 20721, 24481, 32768, 0],
+ [10836, 17621, 21900, 32768, 0],
+ [8372, 14444, 18847, 32768, 0],
+ [6523, 11779, 16000, 32768, 0],
+ [5337, 9898, 13760, 32768, 0],
+ [3034, 5860, 8462, 32768, 0],
+ ],
+ [
+ [15967, 22905, 26286, 32768, 0],
+ [13534, 20654, 24579, 32768, 0],
+ [9504, 16092, 20535, 32768, 0],
+ [6975, 12568, 16903, 32768, 0],
+ [5364, 10091, 14020, 32768, 0],
+ [4357, 8370, 11857, 32768, 0],
+ [2506, 4934, 7218, 32768, 0],
+ [23032, 28815, 30936, 32768, 0],
+ [19540, 26704, 29719, 32768, 0],
+ [15158, 22969, 27097, 32768, 0],
+ [11408, 18865, 23650, 32768, 0],
+ [8885, 15448, 20250, 32768, 0],
+ [7108, 12853, 17416, 32768, 0],
+ [4231, 8041, 11480, 32768, 0],
+ [19823, 26490, 29156, 32768, 0],
+ [18890, 25929, 28932, 32768, 0],
+ [15660, 23491, 27433, 32768, 0],
+ [12147, 19776, 24488, 32768, 0],
+ [9728, 16774, 21649, 32768, 0],
+ [7919, 14277, 19066, 32768, 0],
+ [5440, 10170, 14185, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [14406, 20862, 24414, 32768, 0],
+ [11824, 18907, 23109, 32768, 0],
+ [8257, 14393, 18803, 32768, 0],
+ [5860, 10747, 14778, 32768, 0],
+ [4475, 8486, 11984, 32768, 0],
+ [3606, 6954, 10043, 32768, 0],
+ [1736, 3410, 5048, 32768, 0],
+ [14430, 20046, 22882, 32768, 0],
+ [15593, 22899, 26709, 32768, 0],
+ [12102, 19368, 23811, 32768, 0],
+ [9059, 15584, 20262, 32768, 0],
+ [6999, 12603, 17048, 32768, 0],
+ [5684, 10497, 14553, 32768, 0],
+ [2822, 5438, 7862, 32768, 0],
+ [15785, 21585, 24359, 32768, 0],
+ [18347, 25229, 28266, 32768, 0],
+ [14974, 22487, 26389, 32768, 0],
+ [11423, 18681, 23271, 32768, 0],
+ [8863, 15350, 20008, 32768, 0],
+ [7153, 12852, 17278, 32768, 0],
+ [3707, 7036, 9982, 32768, 0],
+ ],
+ [
+ [15460, 21696, 25469, 32768, 0],
+ [12170, 19249, 23191, 32768, 0],
+ [8723, 15027, 19332, 32768, 0],
+ [6428, 11704, 15874, 32768, 0],
+ [4922, 9292, 13052, 32768, 0],
+ [4139, 7695, 11010, 32768, 0],
+ [2291, 4508, 6598, 32768, 0],
+ [19856, 26920, 29828, 32768, 0],
+ [17923, 25289, 28792, 32768, 0],
+ [14278, 21968, 26297, 32768, 0],
+ [10910, 18136, 22950, 32768, 0],
+ [8423, 14815, 19627, 32768, 0],
+ [6771, 12283, 16774, 32768, 0],
+ [4074, 7750, 11081, 32768, 0],
+ [19852, 26074, 28672, 32768, 0],
+ [19371, 26110, 28989, 32768, 0],
+ [16265, 23873, 27663, 32768, 0],
+ [12758, 20378, 24952, 32768, 0],
+ [10095, 17098, 21961, 32768, 0],
+ [8250, 14628, 19451, 32768, 0],
+ [5205, 9745, 13622, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [10563, 16233, 19763, 32768, 0],
+ [9794, 16022, 19804, 32768, 0],
+ [6750, 11945, 15759, 32768, 0],
+ [4963, 9186, 12752, 32768, 0],
+ [3845, 7435, 10627, 32768, 0],
+ [3051, 6085, 8834, 32768, 0],
+ [1311, 2596, 3830, 32768, 0],
+ [11246, 16404, 19689, 32768, 0],
+ [12315, 18911, 22731, 32768, 0],
+ [10557, 17095, 21289, 32768, 0],
+ [8136, 14006, 18249, 32768, 0],
+ [6348, 11474, 15565, 32768, 0],
+ [5196, 9655, 13400, 32768, 0],
+ [2349, 4526, 6587, 32768, 0],
+ [13337, 18730, 21569, 32768, 0],
+ [19306, 26071, 28882, 32768, 0],
+ [15952, 23540, 27254, 32768, 0],
+ [12409, 19934, 24430, 32768, 0],
+ [9760, 16706, 21389, 32768, 0],
+ [8004, 14220, 18818, 32768, 0],
+ [4138, 7794, 10961, 32768, 0],
+ ],
+ [
+ [10870, 16684, 20949, 32768, 0],
+ [9664, 15230, 18680, 32768, 0],
+ [6886, 12109, 15408, 32768, 0],
+ [4825, 8900, 12305, 32768, 0],
+ [3630, 7162, 10314, 32768, 0],
+ [3036, 6429, 9387, 32768, 0],
+ [1671, 3296, 4940, 32768, 0],
+ [13819, 19159, 23026, 32768, 0],
+ [11984, 19108, 23120, 32768, 0],
+ [10690, 17210, 21663, 32768, 0],
+ [7984, 14154, 18333, 32768, 0],
+ [6868, 12294, 16124, 32768, 0],
+ [5274, 8994, 12868, 32768, 0],
+ [2988, 5771, 8424, 32768, 0],
+ [19736, 26647, 29141, 32768, 0],
+ [18933, 26070, 28984, 32768, 0],
+ [15779, 23048, 27200, 32768, 0],
+ [12638, 20061, 24532, 32768, 0],
+ [10692, 17545, 22220, 32768, 0],
+ [9217, 15251, 20054, 32768, 0],
+ [5078, 9284, 12594, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [2331, 3662, 5244, 32768, 0],
+ [2891, 4771, 6145, 32768, 0],
+ [4598, 7623, 9729, 32768, 0],
+ [3520, 6845, 9199, 32768, 0],
+ [3417, 6119, 9324, 32768, 0],
+ [2601, 5412, 7385, 32768, 0],
+ [600, 1173, 1744, 32768, 0],
+ [7672, 13286, 17469, 32768, 0],
+ [4232, 7792, 10793, 32768, 0],
+ [2915, 5317, 7397, 32768, 0],
+ [2318, 4356, 6152, 32768, 0],
+ [2127, 4000, 5554, 32768, 0],
+ [1850, 3478, 5275, 32768, 0],
+ [977, 1933, 2843, 32768, 0],
+ [18280, 24387, 27989, 32768, 0],
+ [15852, 22671, 26185, 32768, 0],
+ [13845, 20951, 24789, 32768, 0],
+ [11055, 17966, 22129, 32768, 0],
+ [9138, 15422, 19801, 32768, 0],
+ [7454, 13145, 17456, 32768, 0],
+ [3370, 6393, 9013, 32768, 0],
+ ],
+ [
+ [5842, 9229, 10838, 32768, 0],
+ [2313, 3491, 4276, 32768, 0],
+ [2998, 6104, 7496, 32768, 0],
+ [2420, 7447, 9868, 32768, 0],
+ [3034, 8495, 10923, 32768, 0],
+ [4076, 8937, 10975, 32768, 0],
+ [1086, 2370, 3299, 32768, 0],
+ [9714, 17254, 20444, 32768, 0],
+ [8543, 13698, 17123, 32768, 0],
+ [4918, 9007, 11910, 32768, 0],
+ [4129, 7532, 10553, 32768, 0],
+ [2364, 5533, 8058, 32768, 0],
+ [1834, 3546, 5563, 32768, 0],
+ [1473, 2908, 4133, 32768, 0],
+ [15405, 21193, 25619, 32768, 0],
+ [15691, 21952, 26561, 32768, 0],
+ [12962, 19194, 24165, 32768, 0],
+ [10272, 17855, 22129, 32768, 0],
+ [8588, 15270, 20718, 32768, 0],
+ [8682, 14669, 19500, 32768, 0],
+ [4870, 9636, 13205, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [14995, 21341, 24749, 32768, 0],
+ [13158, 20289, 24601, 32768, 0],
+ [8941, 15326, 19876, 32768, 0],
+ [6297, 11541, 15807, 32768, 0],
+ [4817, 9029, 12776, 32768, 0],
+ [3731, 7273, 10627, 32768, 0],
+ [1847, 3617, 5354, 32768, 0],
+ [14472, 19659, 22343, 32768, 0],
+ [16806, 24162, 27533, 32768, 0],
+ [12900, 20404, 24713, 32768, 0],
+ [9411, 16112, 20797, 32768, 0],
+ [7056, 12697, 17148, 32768, 0],
+ [5544, 10339, 14460, 32768, 0],
+ [2954, 5704, 8319, 32768, 0],
+ [12464, 18071, 21354, 32768, 0],
+ [15482, 22528, 26034, 32768, 0],
+ [12070, 19269, 23624, 32768, 0],
+ [8953, 15406, 20106, 32768, 0],
+ [7027, 12730, 17220, 32768, 0],
+ [5887, 10913, 15140, 32768, 0],
+ [3793, 7278, 10447, 32768, 0],
+ ],
+ [
+ [15571, 22232, 25749, 32768, 0],
+ [14506, 21575, 25374, 32768, 0],
+ [10189, 17089, 21569, 32768, 0],
+ [7316, 13301, 17915, 32768, 0],
+ [5783, 10912, 15190, 32768, 0],
+ [4760, 9155, 13088, 32768, 0],
+ [2993, 5966, 8774, 32768, 0],
+ [23424, 28903, 30778, 32768, 0],
+ [20775, 27666, 30290, 32768, 0],
+ [16474, 24410, 28299, 32768, 0],
+ [12471, 20180, 24987, 32768, 0],
+ [9410, 16487, 21439, 32768, 0],
+ [7536, 13614, 18529, 32768, 0],
+ [5048, 9586, 13549, 32768, 0],
+ [21090, 27290, 29756, 32768, 0],
+ [20796, 27402, 30026, 32768, 0],
+ [17819, 25485, 28969, 32768, 0],
+ [13860, 21909, 26462, 32768, 0],
+ [11002, 18494, 23529, 32768, 0],
+ [8953, 15929, 20897, 32768, 0],
+ [6448, 11918, 16454, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [15999, 22208, 25449, 32768, 0],
+ [13050, 19988, 24122, 32768, 0],
+ [8594, 14864, 19378, 32768, 0],
+ [6033, 11079, 15238, 32768, 0],
+ [4554, 8683, 12347, 32768, 0],
+ [3672, 7139, 10337, 32768, 0],
+ [1900, 3771, 5576, 32768, 0],
+ [15788, 21340, 23949, 32768, 0],
+ [16825, 24235, 27758, 32768, 0],
+ [12873, 20402, 24810, 32768, 0],
+ [9590, 16363, 21094, 32768, 0],
+ [7352, 13209, 17733, 32768, 0],
+ [5960, 10989, 15184, 32768, 0],
+ [3232, 6234, 9007, 32768, 0],
+ [15761, 20716, 23224, 32768, 0],
+ [19318, 25989, 28759, 32768, 0],
+ [15529, 23094, 26929, 32768, 0],
+ [11662, 18989, 23641, 32768, 0],
+ [8955, 15568, 20366, 32768, 0],
+ [7281, 13106, 17708, 32768, 0],
+ [4248, 8059, 11440, 32768, 0],
+ ],
+ [
+ [14899, 21217, 24503, 32768, 0],
+ [13519, 20283, 24047, 32768, 0],
+ [9429, 15966, 20365, 32768, 0],
+ [6700, 12355, 16652, 32768, 0],
+ [5088, 9704, 13716, 32768, 0],
+ [4243, 8154, 11731, 32768, 0],
+ [2702, 5364, 7861, 32768, 0],
+ [22745, 28388, 30454, 32768, 0],
+ [20235, 27146, 29922, 32768, 0],
+ [15896, 23715, 27637, 32768, 0],
+ [11840, 19350, 24131, 32768, 0],
+ [9122, 15932, 20880, 32768, 0],
+ [7488, 13581, 18362, 32768, 0],
+ [5114, 9568, 13370, 32768, 0],
+ [20845, 26553, 28932, 32768, 0],
+ [20981, 27372, 29884, 32768, 0],
+ [17781, 25335, 28785, 32768, 0],
+ [13760, 21708, 26297, 32768, 0],
+ [10975, 18415, 23365, 32768, 0],
+ [9045, 15789, 20686, 32768, 0],
+ [6130, 11199, 15423, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [13549, 19724, 23158, 32768, 0],
+ [11844, 18382, 22246, 32768, 0],
+ [7919, 13619, 17773, 32768, 0],
+ [5486, 10143, 13946, 32768, 0],
+ [4166, 7983, 11324, 32768, 0],
+ [3364, 6506, 9427, 32768, 0],
+ [1598, 3160, 4674, 32768, 0],
+ [15281, 20979, 23781, 32768, 0],
+ [14939, 22119, 25952, 32768, 0],
+ [11363, 18407, 22812, 32768, 0],
+ [8609, 14857, 19370, 32768, 0],
+ [6737, 12184, 16480, 32768, 0],
+ [5506, 10263, 14262, 32768, 0],
+ [2990, 5786, 8380, 32768, 0],
+ [20249, 25253, 27417, 32768, 0],
+ [21070, 27518, 30001, 32768, 0],
+ [16854, 24469, 28074, 32768, 0],
+ [12864, 20486, 25000, 32768, 0],
+ [9962, 16978, 21778, 32768, 0],
+ [8074, 14338, 19048, 32768, 0],
+ [4494, 8479, 11906, 32768, 0],
+ ],
+ [
+ [13960, 19617, 22829, 32768, 0],
+ [11150, 17341, 21228, 32768, 0],
+ [7150, 12964, 17190, 32768, 0],
+ [5331, 10002, 13867, 32768, 0],
+ [4167, 7744, 11057, 32768, 0],
+ [3480, 6629, 9646, 32768, 0],
+ [1883, 3784, 5686, 32768, 0],
+ [18752, 25660, 28912, 32768, 0],
+ [16968, 24586, 28030, 32768, 0],
+ [13520, 21055, 25313, 32768, 0],
+ [10453, 17626, 22280, 32768, 0],
+ [8386, 14505, 19116, 32768, 0],
+ [6742, 12595, 17008, 32768, 0],
+ [4273, 8140, 11499, 32768, 0],
+ [22120, 27827, 30233, 32768, 0],
+ [20563, 27358, 29895, 32768, 0],
+ [17076, 24644, 28153, 32768, 0],
+ [13362, 20942, 25309, 32768, 0],
+ [10794, 17965, 22695, 32768, 0],
+ [9014, 15652, 20319, 32768, 0],
+ [5708, 10512, 14497, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [5705, 10930, 15725, 32768, 0],
+ [7946, 12765, 16115, 32768, 0],
+ [6801, 12123, 16226, 32768, 0],
+ [5462, 10135, 14200, 32768, 0],
+ [4189, 8011, 11507, 32768, 0],
+ [3191, 6229, 9408, 32768, 0],
+ [1057, 2137, 3212, 32768, 0],
+ [10018, 17067, 21491, 32768, 0],
+ [7380, 12582, 16453, 32768, 0],
+ [6068, 10845, 14339, 32768, 0],
+ [5098, 9198, 12555, 32768, 0],
+ [4312, 8010, 11119, 32768, 0],
+ [3700, 6966, 9781, 32768, 0],
+ [1693, 3326, 4887, 32768, 0],
+ [18757, 24930, 27774, 32768, 0],
+ [17648, 24596, 27817, 32768, 0],
+ [14707, 22052, 26026, 32768, 0],
+ [11720, 18852, 23292, 32768, 0],
+ [9357, 15952, 20525, 32768, 0],
+ [7810, 13753, 18210, 32768, 0],
+ [3879, 7333, 10328, 32768, 0],
+ ],
+ [
+ [8278, 13242, 15922, 32768, 0],
+ [10547, 15867, 18919, 32768, 0],
+ [9106, 15842, 20609, 32768, 0],
+ [6833, 13007, 17218, 32768, 0],
+ [4811, 9712, 13923, 32768, 0],
+ [3985, 7352, 11128, 32768, 0],
+ [1688, 3458, 5262, 32768, 0],
+ [12951, 21861, 26510, 32768, 0],
+ [9788, 16044, 20276, 32768, 0],
+ [6309, 11244, 14870, 32768, 0],
+ [5183, 9349, 12566, 32768, 0],
+ [4389, 8229, 11492, 32768, 0],
+ [3633, 6945, 10620, 32768, 0],
+ [3600, 6847, 9907, 32768, 0],
+ [21748, 28137, 30255, 32768, 0],
+ [19436, 26581, 29560, 32768, 0],
+ [16359, 24201, 27953, 32768, 0],
+ [13961, 21693, 25871, 32768, 0],
+ [11544, 18686, 23322, 32768, 0],
+ [9372, 16462, 20952, 32768, 0],
+ [6138, 11210, 15390, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [16138, 22223, 25509, 32768, 0],
+ [15347, 22430, 26332, 32768, 0],
+ [9614, 16736, 21332, 32768, 0],
+ [6600, 12275, 16907, 32768, 0],
+ [4811, 9424, 13547, 32768, 0],
+ [3748, 7809, 11420, 32768, 0],
+ [2254, 4587, 6890, 32768, 0],
+ [15196, 20284, 23177, 32768, 0],
+ [18317, 25469, 28451, 32768, 0],
+ [13918, 21651, 25842, 32768, 0],
+ [10052, 17150, 21995, 32768, 0],
+ [7499, 13630, 18587, 32768, 0],
+ [6158, 11417, 16003, 32768, 0],
+ [4014, 7785, 11252, 32768, 0],
+ [15048, 21067, 24384, 32768, 0],
+ [18202, 25346, 28553, 32768, 0],
+ [14302, 22019, 26356, 32768, 0],
+ [10839, 18139, 23166, 32768, 0],
+ [8715, 15744, 20806, 32768, 0],
+ [7536, 13576, 18544, 32768, 0],
+ [5413, 10335, 14498, 32768, 0],
+ ],
+ [
+ [17394, 24501, 27895, 32768, 0],
+ [15889, 23420, 27185, 32768, 0],
+ [11561, 19133, 23870, 32768, 0],
+ [8285, 14812, 19844, 32768, 0],
+ [6496, 12043, 16550, 32768, 0],
+ [4771, 9574, 13677, 32768, 0],
+ [3603, 6830, 10144, 32768, 0],
+ [21656, 27704, 30200, 32768, 0],
+ [21324, 27915, 30511, 32768, 0],
+ [17327, 25336, 28997, 32768, 0],
+ [13417, 21381, 26033, 32768, 0],
+ [10132, 17425, 22338, 32768, 0],
+ [8580, 15016, 19633, 32768, 0],
+ [5694, 11477, 16411, 32768, 0],
+ [24116, 29780, 31450, 32768, 0],
+ [23853, 29695, 31591, 32768, 0],
+ [20085, 27614, 30428, 32768, 0],
+ [15326, 24335, 28575, 32768, 0],
+ [11814, 19472, 24810, 32768, 0],
+ [10221, 18611, 24767, 32768, 0],
+ [7689, 14558, 20321, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [16214, 22380, 25770, 32768, 0],
+ [14213, 21304, 25295, 32768, 0],
+ [9213, 15823, 20455, 32768, 0],
+ [6395, 11758, 16139, 32768, 0],
+ [4779, 9187, 13066, 32768, 0],
+ [3821, 7501, 10953, 32768, 0],
+ [2293, 4567, 6795, 32768, 0],
+ [15859, 21283, 23820, 32768, 0],
+ [18404, 25602, 28726, 32768, 0],
+ [14325, 21980, 26206, 32768, 0],
+ [10669, 17937, 22720, 32768, 0],
+ [8297, 14642, 19447, 32768, 0],
+ [6746, 12389, 16893, 32768, 0],
+ [4324, 8251, 11770, 32768, 0],
+ [16532, 21631, 24475, 32768, 0],
+ [20667, 27150, 29668, 32768, 0],
+ [16728, 24510, 28175, 32768, 0],
+ [12861, 20645, 25332, 32768, 0],
+ [10076, 17361, 22417, 32768, 0],
+ [8395, 14940, 19963, 32768, 0],
+ [5731, 10683, 14912, 32768, 0],
+ ],
+ [
+ [14433, 21155, 24938, 32768, 0],
+ [14658, 21716, 25545, 32768, 0],
+ [9923, 16824, 21557, 32768, 0],
+ [6982, 13052, 17721, 32768, 0],
+ [5419, 10503, 15050, 32768, 0],
+ [4852, 9162, 13014, 32768, 0],
+ [3271, 6395, 9630, 32768, 0],
+ [22210, 27833, 30109, 32768, 0],
+ [20750, 27368, 29821, 32768, 0],
+ [16894, 24828, 28573, 32768, 0],
+ [13247, 21276, 25757, 32768, 0],
+ [10038, 17265, 22563, 32768, 0],
+ [8587, 14947, 20327, 32768, 0],
+ [5645, 11371, 15252, 32768, 0],
+ [22027, 27526, 29714, 32768, 0],
+ [23098, 29146, 31221, 32768, 0],
+ [19886, 27341, 30272, 32768, 0],
+ [15609, 23747, 28046, 32768, 0],
+ [11993, 20065, 24939, 32768, 0],
+ [9637, 18267, 23671, 32768, 0],
+ [7625, 13801, 19144, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [14438, 20798, 24089, 32768, 0],
+ [12621, 19203, 23097, 32768, 0],
+ [8177, 14125, 18402, 32768, 0],
+ [5674, 10501, 14456, 32768, 0],
+ [4236, 8239, 11733, 32768, 0],
+ [3447, 6750, 9806, 32768, 0],
+ [1986, 3950, 5864, 32768, 0],
+ [16208, 22099, 24930, 32768, 0],
+ [16537, 24025, 27585, 32768, 0],
+ [12780, 20381, 24867, 32768, 0],
+ [9767, 16612, 21416, 32768, 0],
+ [7686, 13738, 18398, 32768, 0],
+ [6333, 11614, 15964, 32768, 0],
+ [3941, 7571, 10836, 32768, 0],
+ [22819, 27422, 29202, 32768, 0],
+ [22224, 28514, 30721, 32768, 0],
+ [17660, 25433, 28913, 32768, 0],
+ [13574, 21482, 26002, 32768, 0],
+ [10629, 17977, 22938, 32768, 0],
+ [8612, 15298, 20265, 32768, 0],
+ [5607, 10491, 14596, 32768, 0],
+ ],
+ [
+ [13569, 19800, 23206, 32768, 0],
+ [13128, 19924, 23869, 32768, 0],
+ [8329, 14841, 19403, 32768, 0],
+ [6130, 10976, 15057, 32768, 0],
+ [4682, 8839, 12518, 32768, 0],
+ [3656, 7409, 10588, 32768, 0],
+ [2577, 5099, 7412, 32768, 0],
+ [22427, 28684, 30585, 32768, 0],
+ [20913, 27750, 30139, 32768, 0],
+ [15840, 24109, 27834, 32768, 0],
+ [12308, 20029, 24569, 32768, 0],
+ [10216, 16785, 21458, 32768, 0],
+ [8309, 14203, 19113, 32768, 0],
+ [6043, 11168, 15307, 32768, 0],
+ [23166, 28901, 30998, 32768, 0],
+ [21899, 28405, 30751, 32768, 0],
+ [18413, 26091, 29443, 32768, 0],
+ [15233, 23114, 27352, 32768, 0],
+ [12683, 20472, 25288, 32768, 0],
+ [10702, 18259, 23409, 32768, 0],
+ [8125, 14464, 19226, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [9040, 14786, 18360, 32768, 0],
+ [9979, 15718, 19415, 32768, 0],
+ [7913, 13918, 18311, 32768, 0],
+ [5859, 10889, 15184, 32768, 0],
+ [4593, 8677, 12510, 32768, 0],
+ [3820, 7396, 10791, 32768, 0],
+ [1730, 3471, 5192, 32768, 0],
+ [11803, 18365, 22709, 32768, 0],
+ [11419, 18058, 22225, 32768, 0],
+ [9418, 15774, 20243, 32768, 0],
+ [7539, 13325, 17657, 32768, 0],
+ [6233, 11317, 15384, 32768, 0],
+ [5137, 9656, 13545, 32768, 0],
+ [2977, 5774, 8349, 32768, 0],
+ [21207, 27246, 29640, 32768, 0],
+ [19547, 26578, 29497, 32768, 0],
+ [16169, 23871, 27690, 32768, 0],
+ [12820, 20458, 25018, 32768, 0],
+ [10224, 17332, 22214, 32768, 0],
+ [8526, 15048, 19884, 32768, 0],
+ [5037, 9410, 13118, 32768, 0],
+ ],
+ [
+ [12339, 17329, 20140, 32768, 0],
+ [13505, 19895, 23225, 32768, 0],
+ [9847, 16944, 21564, 32768, 0],
+ [7280, 13256, 18348, 32768, 0],
+ [4712, 10009, 14454, 32768, 0],
+ [4361, 7914, 12477, 32768, 0],
+ [2870, 5628, 7995, 32768, 0],
+ [20061, 25504, 28526, 32768, 0],
+ [15235, 22878, 26145, 32768, 0],
+ [12985, 19958, 24155, 32768, 0],
+ [9782, 16641, 21403, 32768, 0],
+ [9456, 16360, 20760, 32768, 0],
+ [6855, 12940, 18557, 32768, 0],
+ [5661, 10564, 15002, 32768, 0],
+ [25656, 30602, 31894, 32768, 0],
+ [22570, 29107, 31092, 32768, 0],
+ [18917, 26423, 29541, 32768, 0],
+ [15940, 23649, 27754, 32768, 0],
+ [12803, 20581, 25219, 32768, 0],
+ [11082, 18695, 23376, 32768, 0],
+ [7939, 14373, 19005, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [18315, 24289, 27551, 32768, 0],
+ [16854, 24068, 27835, 32768, 0],
+ [10140, 17927, 23173, 32768, 0],
+ [6722, 12982, 18267, 32768, 0],
+ [4661, 9826, 14706, 32768, 0],
+ [3832, 8165, 12294, 32768, 0],
+ [2795, 6098, 9245, 32768, 0],
+ [17145, 23326, 26672, 32768, 0],
+ [20733, 27680, 30308, 32768, 0],
+ [16032, 24461, 28546, 32768, 0],
+ [11653, 20093, 25081, 32768, 0],
+ [9290, 16429, 22086, 32768, 0],
+ [7796, 14598, 19982, 32768, 0],
+ [6502, 12378, 17441, 32768, 0],
+ [21681, 27732, 30320, 32768, 0],
+ [22389, 29044, 31261, 32768, 0],
+ [19027, 26731, 30087, 32768, 0],
+ [14739, 23755, 28624, 32768, 0],
+ [11358, 20778, 25511, 32768, 0],
+ [10995, 18073, 24190, 32768, 0],
+ [9162, 14990, 20617, 32768, 0],
+ ],
+ [
+ [21425, 27952, 30388, 32768, 0],
+ [18062, 25838, 29034, 32768, 0],
+ [11956, 19881, 24808, 32768, 0],
+ [7718, 15000, 20980, 32768, 0],
+ [5702, 11254, 16143, 32768, 0],
+ [4898, 9088, 16864, 32768, 0],
+ [3679, 6776, 11907, 32768, 0],
+ [23294, 30160, 31663, 32768, 0],
+ [24397, 29896, 31836, 32768, 0],
+ [19245, 27128, 30593, 32768, 0],
+ [13202, 19825, 26404, 32768, 0],
+ [11578, 19297, 23957, 32768, 0],
+ [8073, 13297, 21370, 32768, 0],
+ [5461, 10923, 19745, 32768, 0],
+ [27367, 30521, 31934, 32768, 0],
+ [24904, 30671, 31940, 32768, 0],
+ [23075, 28460, 31299, 32768, 0],
+ [14400, 23658, 30417, 32768, 0],
+ [13885, 23882, 28325, 32768, 0],
+ [14746, 22938, 27853, 32768, 0],
+ [5461, 16384, 27307, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [18274, 24813, 27890, 32768, 0],
+ [15537, 23149, 27003, 32768, 0],
+ [9449, 16740, 21827, 32768, 0],
+ [6700, 12498, 17261, 32768, 0],
+ [4988, 9866, 14198, 32768, 0],
+ [4236, 8147, 11902, 32768, 0],
+ [2867, 5860, 8654, 32768, 0],
+ [17124, 23171, 26101, 32768, 0],
+ [20396, 27477, 30148, 32768, 0],
+ [16573, 24629, 28492, 32768, 0],
+ [12749, 20846, 25674, 32768, 0],
+ [10233, 17878, 22818, 32768, 0],
+ [8525, 15332, 20363, 32768, 0],
+ [6283, 11632, 16255, 32768, 0],
+ [20466, 26511, 29286, 32768, 0],
+ [23059, 29174, 31191, 32768, 0],
+ [19481, 27263, 30241, 32768, 0],
+ [15458, 23631, 28137, 32768, 0],
+ [12416, 20608, 25693, 32768, 0],
+ [10261, 18011, 23261, 32768, 0],
+ [8016, 14655, 19666, 32768, 0],
+ ],
+ [
+ [17616, 24586, 28112, 32768, 0],
+ [15809, 23299, 27155, 32768, 0],
+ [10767, 18890, 23793, 32768, 0],
+ [7727, 14255, 18865, 32768, 0],
+ [6129, 11926, 16882, 32768, 0],
+ [4482, 9704, 14861, 32768, 0],
+ [3277, 7452, 11522, 32768, 0],
+ [22956, 28551, 30730, 32768, 0],
+ [22724, 28937, 30961, 32768, 0],
+ [18467, 26324, 29580, 32768, 0],
+ [13234, 20713, 25649, 32768, 0],
+ [11181, 17592, 22481, 32768, 0],
+ [8291, 18358, 24576, 32768, 0],
+ [7568, 11881, 14984, 32768, 0],
+ [24948, 29001, 31147, 32768, 0],
+ [25674, 30619, 32151, 32768, 0],
+ [20841, 26793, 29603, 32768, 0],
+ [14669, 24356, 28666, 32768, 0],
+ [11334, 23593, 28219, 32768, 0],
+ [8922, 14762, 22873, 32768, 0],
+ [8301, 13544, 20535, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [17113, 23733, 27081, 32768, 0],
+ [14139, 21406, 25452, 32768, 0],
+ [8552, 15002, 19776, 32768, 0],
+ [5871, 11120, 15378, 32768, 0],
+ [4455, 8616, 12253, 32768, 0],
+ [3469, 6910, 10386, 32768, 0],
+ [2255, 4553, 6782, 32768, 0],
+ [18224, 24376, 27053, 32768, 0],
+ [19290, 26710, 29614, 32768, 0],
+ [14936, 22991, 27184, 32768, 0],
+ [11238, 18951, 23762, 32768, 0],
+ [8786, 15617, 20588, 32768, 0],
+ [7317, 13228, 18003, 32768, 0],
+ [5101, 9512, 13493, 32768, 0],
+ [22639, 28222, 30210, 32768, 0],
+ [23216, 29331, 31307, 32768, 0],
+ [19075, 26762, 29895, 32768, 0],
+ [15014, 23113, 27457, 32768, 0],
+ [11938, 19857, 24752, 32768, 0],
+ [9942, 17280, 22282, 32768, 0],
+ [7167, 13144, 17752, 32768, 0],
+ ],
+ [
+ [15820, 22738, 26488, 32768, 0],
+ [13530, 20885, 25216, 32768, 0],
+ [8395, 15530, 20452, 32768, 0],
+ [6574, 12321, 16380, 32768, 0],
+ [5353, 10419, 14568, 32768, 0],
+ [4613, 8446, 12381, 32768, 0],
+ [3440, 7158, 9903, 32768, 0],
+ [24247, 29051, 31224, 32768, 0],
+ [22118, 28058, 30369, 32768, 0],
+ [16498, 24768, 28389, 32768, 0],
+ [12920, 21175, 26137, 32768, 0],
+ [10730, 18619, 25352, 32768, 0],
+ [10187, 16279, 22791, 32768, 0],
+ [9310, 14631, 22127, 32768, 0],
+ [24970, 30558, 32057, 32768, 0],
+ [24801, 29942, 31698, 32768, 0],
+ [22432, 28453, 30855, 32768, 0],
+ [19054, 25680, 29580, 32768, 0],
+ [14392, 23036, 28109, 32768, 0],
+ [12495, 20947, 26650, 32768, 0],
+ [12442, 20326, 26214, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [12162, 18785, 22648, 32768, 0],
+ [12749, 19697, 23806, 32768, 0],
+ [8580, 15297, 20346, 32768, 0],
+ [6169, 11749, 16543, 32768, 0],
+ [4836, 9391, 13448, 32768, 0],
+ [3821, 7711, 11613, 32768, 0],
+ [2228, 4601, 7070, 32768, 0],
+ [16319, 24725, 28280, 32768, 0],
+ [15698, 23277, 27168, 32768, 0],
+ [12726, 20368, 25047, 32768, 0],
+ [9912, 17015, 21976, 32768, 0],
+ [7888, 14220, 19179, 32768, 0],
+ [6777, 12284, 17018, 32768, 0],
+ [4492, 8590, 12252, 32768, 0],
+ [23249, 28904, 30947, 32768, 0],
+ [21050, 27908, 30512, 32768, 0],
+ [17440, 25340, 28949, 32768, 0],
+ [14059, 22018, 26541, 32768, 0],
+ [11288, 18903, 23898, 32768, 0],
+ [9411, 16342, 21428, 32768, 0],
+ [6278, 11588, 15944, 32768, 0],
+ ],
+ [
+ [13981, 20067, 23226, 32768, 0],
+ [16922, 23580, 26783, 32768, 0],
+ [11005, 19039, 24487, 32768, 0],
+ [7389, 14218, 19798, 32768, 0],
+ [5598, 11505, 17206, 32768, 0],
+ [6090, 11213, 15659, 32768, 0],
+ [3820, 7371, 10119, 32768, 0],
+ [21082, 26925, 29675, 32768, 0],
+ [21262, 28627, 31128, 32768, 0],
+ [18392, 26454, 30437, 32768, 0],
+ [14870, 22910, 27096, 32768, 0],
+ [12620, 19484, 24908, 32768, 0],
+ [9290, 16553, 22802, 32768, 0],
+ [6668, 14288, 20004, 32768, 0],
+ [27704, 31055, 31949, 32768, 0],
+ [24709, 29978, 31788, 32768, 0],
+ [21668, 29264, 31657, 32768, 0],
+ [18295, 26968, 30074, 32768, 0],
+ [16399, 24422, 29313, 32768, 0],
+ [14347, 23026, 28104, 32768, 0],
+ [12370, 19806, 24477, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ [
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ [8192, 16384, 24576, 32768, 0],
+ ],
+ ],
+ ],
+];
+
+pub static DEFAULT_COMP_BWD_REF_CDF: [[[u16; 3]; 2]; 3] =
+ [[[2235, 32768, 0], [1423, 32768, 0]], [[17182, 32768, 0], [15175, 32768, 0]], [[30606, 32768, 0], [30489, 32768, 0]]];
+
+pub static DEFAULT_COMP_GROUP_IDX_CDF: [[u16; 3]; 6] =
+ [[26607, 32768, 0], [22891, 32768, 0], [18840, 32768, 0], [24594, 32768, 0], [19934, 32768, 0], [22674, 32768, 0]];
+
+pub static DEFAULT_COMP_MODE_CDF: [[u16; 3]; 5] = [[26828, 32768, 0], [24035, 32768, 0], [12031, 32768, 0], [10640, 32768, 0], [2901, 32768, 0]];
+
+pub static DEFAULT_COMP_REF_CDF: [[[u16; 3]; 3]; 3] = [
+ [[4946, 32768, 0], [9468, 32768, 0], [1503, 32768, 0]],
+ [[19891, 32768, 0], [22441, 32768, 0], [15160, 32768, 0]],
+ [[30731, 32768, 0], [31059, 32768, 0], [27544, 32768, 0]],
+];
+
+pub static DEFAULT_COMP_REF_TYPE_CDF: [[u16; 3]; 5] = [[1198, 32768, 0], [2070, 32768, 0], [9166, 32768, 0], [7499, 32768, 0], [22475, 32768, 0]];
+
+pub static DEFAULT_COMPOUND_IDX_CDF: [[u16; 3]; 6] =
+ [[18244, 32768, 0], [12865, 32768, 0], [7053, 32768, 0], [13259, 32768, 0], [9334, 32768, 0], [4644, 32768, 0]];
+
+pub static DEFAULT_COMPOUND_MODE_CDF: [[u16; 9]; 8] = [
+ [7760, 13823, 15808, 17641, 19156, 20666, 26891, 32768, 0],
+ [10730, 19452, 21145, 22749, 24039, 25131, 28724, 32768, 0],
+ [10664, 20221, 21588, 22906, 24295, 25387, 28436, 32768, 0],
+ [13298, 16984, 20471, 24182, 25067, 25736, 26422, 32768, 0],
+ [18904, 23325, 25242, 27432, 27898, 28258, 30758, 32768, 0],
+ [10725, 17454, 20124, 22820, 24195, 25168, 26046, 32768, 0],
+ [17125, 24273, 25814, 27492, 28214, 28704, 30592, 32768, 0],
+ [13046, 23214, 24505, 25942, 27435, 28442, 29330, 32768, 0],
+];
+
+pub static DEFAULT_COMPOUND_TYPE_CDF: [[u16; 3]; 22] = [
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [23431, 32768, 0],
+ [13171, 32768, 0],
+ [11470, 32768, 0],
+ [9770, 32768, 0],
+ [9100, 32768, 0],
+ [8233, 32768, 0],
+ [6172, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [11820, 32768, 0],
+ [7701, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+];
+
+pub static DEFAULT_DC_SIGN_CDF: [[[[u16; 3]; 3]; 2]; 4] = [
+ [[[16000, 32768, 0], [13056, 32768, 0], [18816, 32768, 0]], [[15232, 32768, 0], [12928, 32768, 0], [17280, 32768, 0]]],
+ [[[16000, 32768, 0], [13056, 32768, 0], [18816, 32768, 0]], [[15232, 32768, 0], [12928, 32768, 0], [17280, 32768, 0]]],
+ [[[16000, 32768, 0], [13056, 32768, 0], [18816, 32768, 0]], [[15232, 32768, 0], [12928, 32768, 0], [17280, 32768, 0]]],
+ [[[16000, 32768, 0], [13056, 32768, 0], [18816, 32768, 0]], [[15232, 32768, 0], [12928, 32768, 0], [17280, 32768, 0]]],
+];
+
+pub static DEFAULT_DELTA_LF_CDF: [u16; 5] = [28160, 32120, 32677, 32768, 0];
+
+pub static DEFAULT_DELTA_Q_CDF: [u16; 5] = [28160, 32120, 32677, 32768, 0];
+
+pub static DEFAULT_DRL_MODE_CDF: [[u16; 3]; 3] = [[13104, 32768, 0], [24560, 32768, 0], [18945, 32768, 0]];
+
+pub static DEFAULT_EOB_EXTRA_CDF: [[[[[u16; 3]; 9]; 2]; 5]; 4] = [
+ [
+ [
+ [
+ [16961, 32768, 0],
+ [17223, 32768, 0],
+ [7621, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [19069, 32768, 0],
+ [22525, 32768, 0],
+ [13377, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [20401, 32768, 0],
+ [17025, 32768, 0],
+ [12845, 32768, 0],
+ [12873, 32768, 0],
+ [14094, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [20681, 32768, 0],
+ [20701, 32768, 0],
+ [15250, 32768, 0],
+ [15017, 32768, 0],
+ [14928, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [23905, 32768, 0],
+ [17194, 32768, 0],
+ [16170, 32768, 0],
+ [17695, 32768, 0],
+ [13826, 32768, 0],
+ [15810, 32768, 0],
+ [12036, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [23959, 32768, 0],
+ [20799, 32768, 0],
+ [19021, 32768, 0],
+ [16203, 32768, 0],
+ [17886, 32768, 0],
+ [14144, 32768, 0],
+ [12010, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [27399, 32768, 0],
+ [16327, 32768, 0],
+ [18071, 32768, 0],
+ [19584, 32768, 0],
+ [20721, 32768, 0],
+ [18432, 32768, 0],
+ [19560, 32768, 0],
+ [10150, 32768, 0],
+ [8805, 32768, 0],
+ ],
+ [
+ [24932, 32768, 0],
+ [20833, 32768, 0],
+ [12027, 32768, 0],
+ [16670, 32768, 0],
+ [19914, 32768, 0],
+ [15106, 32768, 0],
+ [17662, 32768, 0],
+ [13783, 32768, 0],
+ [28756, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [23406, 32768, 0],
+ [21845, 32768, 0],
+ [18432, 32768, 0],
+ [16384, 32768, 0],
+ [17096, 32768, 0],
+ [12561, 32768, 0],
+ [17320, 32768, 0],
+ [22395, 32768, 0],
+ [21370, 32768, 0],
+ ],
+ [
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [17471, 32768, 0],
+ [20223, 32768, 0],
+ [11357, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [20335, 32768, 0],
+ [21667, 32768, 0],
+ [14818, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [20430, 32768, 0],
+ [20662, 32768, 0],
+ [15367, 32768, 0],
+ [16970, 32768, 0],
+ [14657, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [22117, 32768, 0],
+ [22028, 32768, 0],
+ [18650, 32768, 0],
+ [16042, 32768, 0],
+ [15885, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [22409, 32768, 0],
+ [21012, 32768, 0],
+ [15650, 32768, 0],
+ [17395, 32768, 0],
+ [15469, 32768, 0],
+ [20205, 32768, 0],
+ [19511, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [24220, 32768, 0],
+ [22480, 32768, 0],
+ [17737, 32768, 0],
+ [18916, 32768, 0],
+ [19268, 32768, 0],
+ [18412, 32768, 0],
+ [18844, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [25991, 32768, 0],
+ [20314, 32768, 0],
+ [17731, 32768, 0],
+ [19678, 32768, 0],
+ [18649, 32768, 0],
+ [17307, 32768, 0],
+ [21798, 32768, 0],
+ [17549, 32768, 0],
+ [15630, 32768, 0],
+ ],
+ [
+ [26585, 32768, 0],
+ [21469, 32768, 0],
+ [20432, 32768, 0],
+ [17735, 32768, 0],
+ [19280, 32768, 0],
+ [15235, 32768, 0],
+ [20297, 32768, 0],
+ [22471, 32768, 0],
+ [28997, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [26605, 32768, 0],
+ [11304, 32768, 0],
+ [16726, 32768, 0],
+ [16560, 32768, 0],
+ [20866, 32768, 0],
+ [23524, 32768, 0],
+ [19878, 32768, 0],
+ [13469, 32768, 0],
+ [23084, 32768, 0],
+ ],
+ [
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [18983, 32768, 0],
+ [20512, 32768, 0],
+ [14885, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [20090, 32768, 0],
+ [19444, 32768, 0],
+ [17286, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [19139, 32768, 0],
+ [21487, 32768, 0],
+ [18959, 32768, 0],
+ [20910, 32768, 0],
+ [19089, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [20536, 32768, 0],
+ [20664, 32768, 0],
+ [20625, 32768, 0],
+ [19123, 32768, 0],
+ [14862, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [19833, 32768, 0],
+ [21502, 32768, 0],
+ [17485, 32768, 0],
+ [20267, 32768, 0],
+ [18353, 32768, 0],
+ [23329, 32768, 0],
+ [21478, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [22041, 32768, 0],
+ [23434, 32768, 0],
+ [20001, 32768, 0],
+ [20554, 32768, 0],
+ [20951, 32768, 0],
+ [20145, 32768, 0],
+ [15562, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [23312, 32768, 0],
+ [21607, 32768, 0],
+ [16526, 32768, 0],
+ [18957, 32768, 0],
+ [18034, 32768, 0],
+ [18934, 32768, 0],
+ [24247, 32768, 0],
+ [16921, 32768, 0],
+ [17080, 32768, 0],
+ ],
+ [
+ [26579, 32768, 0],
+ [24910, 32768, 0],
+ [18637, 32768, 0],
+ [19800, 32768, 0],
+ [20388, 32768, 0],
+ [9887, 32768, 0],
+ [15642, 32768, 0],
+ [30198, 32768, 0],
+ [24721, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [26998, 32768, 0],
+ [16737, 32768, 0],
+ [17838, 32768, 0],
+ [18922, 32768, 0],
+ [19515, 32768, 0],
+ [18636, 32768, 0],
+ [17333, 32768, 0],
+ [15776, 32768, 0],
+ [22658, 32768, 0],
+ ],
+ [
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ ],
+ [
+ [
+ [
+ [20177, 32768, 0],
+ [20789, 32768, 0],
+ [20262, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [21416, 32768, 0],
+ [20855, 32768, 0],
+ [23410, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [20238, 32768, 0],
+ [21057, 32768, 0],
+ [19159, 32768, 0],
+ [22337, 32768, 0],
+ [20159, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [20125, 32768, 0],
+ [20559, 32768, 0],
+ [21707, 32768, 0],
+ [22296, 32768, 0],
+ [17333, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [19941, 32768, 0],
+ [20527, 32768, 0],
+ [21470, 32768, 0],
+ [22487, 32768, 0],
+ [19558, 32768, 0],
+ [22354, 32768, 0],
+ [20331, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [22752, 32768, 0],
+ [25006, 32768, 0],
+ [22075, 32768, 0],
+ [21576, 32768, 0],
+ [17740, 32768, 0],
+ [21690, 32768, 0],
+ [19211, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [21442, 32768, 0],
+ [22358, 32768, 0],
+ [18503, 32768, 0],
+ [20291, 32768, 0],
+ [19945, 32768, 0],
+ [21294, 32768, 0],
+ [21178, 32768, 0],
+ [19400, 32768, 0],
+ [10556, 32768, 0],
+ ],
+ [
+ [24648, 32768, 0],
+ [24949, 32768, 0],
+ [20708, 32768, 0],
+ [23905, 32768, 0],
+ [20501, 32768, 0],
+ [9558, 32768, 0],
+ [9423, 32768, 0],
+ [30365, 32768, 0],
+ [19253, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [26064, 32768, 0],
+ [22098, 32768, 0],
+ [19613, 32768, 0],
+ [20525, 32768, 0],
+ [17595, 32768, 0],
+ [16618, 32768, 0],
+ [20497, 32768, 0],
+ [18989, 32768, 0],
+ [15513, 32768, 0],
+ ],
+ [
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ ],
+];
+
+pub static DEFAULT_EOB_PT_1024_CDF: [[[u16; 12]; 2]; 4] = [
+ [[393, 421, 751, 1623, 3160, 6352, 13345, 18047, 22571, 25830, 32768, 0], [1865, 1988, 2930, 4242, 10533, 16538, 21354, 27255, 28546, 31784, 32768, 0]],
+ [[696, 948, 3145, 5702, 9706, 13217, 17851, 21856, 25692, 28034, 32768, 0], [2672, 3591, 9330, 17084, 22725, 24284, 26527, 28027, 28377, 30876, 32768, 0]],
+ [
+ [2784, 3831, 7041, 10521, 14847, 18844, 23155, 26682, 29229, 31045, 32768, 0],
+ [9577, 12466, 17739, 20750, 22061, 23215, 24601, 25483, 25843, 32056, 32768, 0],
+ ],
+ [
+ [6698, 8334, 11961, 15762, 20186, 23862, 27434, 29326, 31082, 32050, 32768, 0],
+ [20569, 22426, 25569, 26859, 28053, 28913, 29486, 29724, 29807, 32570, 32768, 0],
+ ],
+];
+
+pub static DEFAULT_EOB_PT_128_CDF: [[[[u16; 9]; 2]; 2]; 4] = [
+ [
+ [[219, 482, 1140, 2091, 3680, 6028, 12586, 32768, 0], [371, 699, 1254, 4830, 9479, 12562, 17497, 32768, 0]],
+ [[5245, 7456, 12880, 15852, 20033, 23932, 27608, 32768, 0], [2054, 3472, 5869, 14232, 18242, 20590, 26752, 32768, 0]],
+ ],
+ [
+ [[685, 933, 1488, 2714, 4766, 8562, 19254, 32768, 0], [217, 352, 618, 2303, 5261, 9969, 17472, 32768, 0]],
+ [[8045, 11200, 15497, 19595, 23948, 27408, 30938, 32768, 0], [2310, 4160, 7471, 14997, 17931, 20768, 30240, 32768, 0]],
+ ],
+ [
+ [[1366, 1738, 2527, 5016, 9355, 15797, 24643, 32768, 0], [354, 558, 944, 2760, 7287, 14037, 21779, 32768, 0]],
+ [[13627, 16246, 20173, 24429, 27948, 30415, 31863, 32768, 0], [6275, 9889, 14769, 23164, 27988, 30493, 32272, 32768, 0]],
+ ],
+ [
+ [[3472, 4885, 7489, 12481, 18517, 24536, 29635, 32768, 0], [886, 1731, 3271, 8469, 15569, 22126, 28383, 32768, 0]],
+ [[24313, 26062, 28385, 30107, 31217, 31898, 32345, 32768, 0], [9165, 13282, 21150, 30286, 31894, 32571, 32712, 32768, 0]],
+ ],
+];
+
+pub static DEFAULT_EOB_PT_16_CDF: [[[[u16; 6]; 2]; 2]; 4] = [
+ [[[840, 1039, 1980, 4895, 32768, 0], [370, 671, 1883, 4471, 32768, 0]], [[3247, 4950, 9688, 14563, 32768, 0], [1904, 3354, 7763, 14647, 32768, 0]]],
+ [[[2125, 2551, 5165, 8946, 32768, 0], [513, 765, 1859, 6339, 32768, 0]], [[7637, 9498, 14259, 19108, 32768, 0], [2497, 4096, 8866, 16993, 32768, 0]]],
+ [[[4016, 4897, 8881, 14968, 32768, 0], [716, 1105, 2646, 10056, 32768, 0]], [[11139, 13270, 18241, 23566, 32768, 0], [3192, 5032, 10297, 19755, 32768, 0]]],
+ [
+ [[6708, 8958, 14746, 22133, 32768, 0], [1222, 2074, 4783, 15410, 32768, 0]],
+ [[19575, 21766, 26044, 29709, 32768, 0], [7297, 10767, 19273, 28194, 32768, 0]],
+ ],
+];
+
+pub static DEFAULT_EOB_PT_256_CDF: [[[[u16; 10]; 2]; 2]; 4] = [
+ [
+ [[310, 584, 1887, 3589, 6168, 8611, 11352, 15652, 32768, 0], [998, 1850, 2998, 5604, 17341, 19888, 22899, 25583, 32768, 0]],
+ [[2520, 3240, 5952, 8870, 12577, 17558, 19954, 24168, 32768, 0], [2203, 4130, 7435, 10739, 20652, 23681, 25609, 27261, 32768, 0]],
+ ],
+ [
+ [[1448, 2109, 4151, 6263, 9329, 13260, 17944, 23300, 32768, 0], [399, 1019, 1749, 3038, 10444, 15546, 22739, 27294, 32768, 0]],
+ [[6402, 8148, 12623, 15072, 18728, 22847, 26447, 29377, 32768, 0], [1674, 3252, 5734, 10159, 22397, 23802, 24821, 30940, 32768, 0]],
+ ],
+ [
+ [[3089, 3920, 6038, 9460, 14266, 19881, 25766, 29176, 32768, 0], [1084, 2358, 3488, 5122, 11483, 18103, 26023, 29799, 32768, 0]],
+ [[11514, 13794, 17480, 20754, 24361, 27378, 29492, 31277, 32768, 0], [6571, 9610, 15516, 21826, 29092, 30829, 31842, 32708, 32768, 0]],
+ ],
+ [
+ [[5348, 7113, 11820, 15924, 22106, 26777, 30334, 31757, 32768, 0], [2453, 4474, 6307, 8777, 16474, 22975, 29000, 31547, 32768, 0]],
+ [[23110, 24597, 27140, 28894, 30167, 30927, 31392, 32094, 32768, 0], [9998, 17661, 25178, 28097, 31308, 32038, 32403, 32695, 32768, 0]],
+ ],
+];
+
+pub static DEFAULT_EOB_PT_32_CDF: [[[[u16; 7]; 2]; 2]; 4] = [
+ [
+ [[400, 520, 977, 2102, 6542, 32768, 0], [210, 405, 1315, 3326, 7537, 32768, 0]],
+ [[2636, 4273, 7588, 11794, 20401, 32768, 0], [1786, 3179, 6902, 11357, 19054, 32768, 0]],
+ ],
+ [
+ [[989, 1249, 2019, 4151, 10785, 32768, 0], [313, 441, 1099, 2917, 8562, 32768, 0]],
+ [[8394, 10352, 13932, 18855, 26014, 32768, 0], [2578, 4124, 8181, 13670, 24234, 32768, 0]],
+ ],
+ [
+ [[2515, 3003, 4452, 8162, 16041, 32768, 0], [574, 821, 1836, 5089, 13128, 32768, 0]],
+ [[13468, 16303, 20361, 25105, 29281, 32768, 0], [3542, 5502, 10415, 16760, 25644, 32768, 0]],
+ ],
+ [
+ [[4617, 5709, 8446, 13584, 23135, 32768, 0], [1156, 1702, 3675, 9274, 20539, 32768, 0]],
+ [[22086, 24282, 27010, 29770, 31743, 32768, 0], [7699, 10897, 20891, 26926, 31628, 32768, 0]],
+ ],
+];
+
+pub static DEFAULT_EOB_PT_512_CDF: [[[u16; 11]; 2]; 4] = [
+ [[641, 983, 3707, 5430, 10234, 14958, 18788, 23412, 26061, 32768, 0], [5095, 6446, 9996, 13354, 16017, 17986, 20919, 26129, 29140, 32768, 0]],
+ [[1230, 2278, 5035, 7776, 11871, 15346, 19590, 24584, 28749, 32768, 0], [7265, 9979, 15819, 19250, 21780, 23846, 26478, 28396, 31811, 32768, 0]],
+ [[2624, 3936, 6480, 9686, 13979, 17726, 23267, 28410, 31078, 32768, 0], [12015, 14769, 19588, 22052, 24222, 25812, 27300, 29219, 32114, 32768, 0]],
+ [[5927, 7809, 10923, 14597, 19439, 24135, 28456, 31142, 32060, 32768, 0], [21093, 23043, 25742, 27658, 29097, 29716, 30073, 30820, 31956, 32768, 0]],
+];
+
+pub static DEFAULT_EOB_PT_64_CDF: [[[[u16; 8]; 2]; 2]; 4] = [
+ [
+ [[329, 498, 1101, 1784, 3265, 7758, 32768, 0], [335, 730, 1459, 5494, 8755, 12997, 32768, 0]],
+ [[3505, 5304, 10086, 13814, 17684, 23370, 32768, 0], [1563, 2700, 4876, 10911, 14706, 22480, 32768, 0]],
+ ],
+ [
+ [[1260, 1446, 2253, 3712, 6652, 13369, 32768, 0], [401, 605, 1029, 2563, 5845, 12626, 32768, 0]],
+ [[8609, 10612, 14624, 18714, 22614, 29024, 32768, 0], [1923, 3127, 5867, 9703, 14277, 27100, 32768, 0]],
+ ],
+ [
+ [[2374, 2772, 4583, 7276, 12288, 19706, 32768, 0], [497, 810, 1315, 3000, 7004, 15641, 32768, 0]],
+ [[15050, 17126, 21410, 24886, 28156, 30726, 32768, 0], [4034, 6290, 10235, 14982, 21214, 28491, 32768, 0]],
+ ],
+ [
+ [[6307, 7541, 12060, 16358, 22553, 27865, 32768, 0], [1289, 2320, 3971, 7926, 14153, 24291, 32768, 0]],
+ [[24212, 25708, 28268, 30035, 31307, 32049, 32768, 0], [8726, 12378, 19409, 26450, 30038, 32462, 32768, 0]],
+ ],
+];
+
+pub static DEFAULT_FILTER_INTRA_CDF: [[u16; 3]; 22] = [
+ [4621, 32768, 0],
+ [6743, 32768, 0],
+ [5893, 32768, 0],
+ [7866, 32768, 0],
+ [12551, 32768, 0],
+ [9394, 32768, 0],
+ [12408, 32768, 0],
+ [14301, 32768, 0],
+ [12756, 32768, 0],
+ [22343, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [12770, 32768, 0],
+ [10368, 32768, 0],
+ [20229, 32768, 0],
+ [18101, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+];
+
+pub static DEFAULT_FILTER_INTRA_MODE_CDF: [u16; 6] = [8949, 12776, 17211, 29558, 32768, 0];
+
+pub static DEFAULT_INTER_INTRA_CDF: [[u16; 3]; 3] = [[26887, 32768, 0], [27597, 32768, 0], [30237, 32768, 0]];
+
+pub static DEFAULT_INTER_INTRA_MODE_CDF: [[u16; 5]; 3] = [[1875, 11082, 27332, 32768, 0], [2473, 9996, 26388, 32768, 0], [4238, 11537, 25926, 32768, 0]];
+
+pub static DEFAULT_INTER_TX_TYPE_SET1_CDF: [[u16; 17]; 2] = [
+ [4458, 5560, 7695, 9709, 13330, 14789, 17537, 20266, 21504, 22848, 23934, 25474, 27727, 28915, 30631, 32768, 0],
+ [1645, 2573, 4778, 5711, 7807, 8622, 10522, 15357, 17674, 20408, 22517, 25010, 27116, 28856, 30749, 32768, 0],
+];
+
+pub static DEFAULT_INTER_TX_TYPE_SET2_CDF: [u16; 13] = [770, 2421, 5225, 12907, 15819, 18927, 21561, 24089, 26595, 28526, 30529, 32768, 0];
+
+pub static DEFAULT_INTER_TX_TYPE_SET3_CDF: [[u16; 3]; 4] = [[16384, 32768, 0], [4167, 32768, 0], [1998, 32768, 0], [748, 32768, 0]];
+
+pub static DEFAULT_INTERP_FILTER_CDF: [[u16; 4]; 16] = [
+ [31935, 32720, 32768, 0],
+ [5568, 32719, 32768, 0],
+ [422, 2938, 32768, 0],
+ [28244, 32608, 32768, 0],
+ [31206, 31953, 32768, 0],
+ [4862, 32121, 32768, 0],
+ [770, 1152, 32768, 0],
+ [20889, 25637, 32768, 0],
+ [31910, 32724, 32768, 0],
+ [4120, 32712, 32768, 0],
+ [305, 2247, 32768, 0],
+ [27403, 32636, 32768, 0],
+ [31022, 32009, 32768, 0],
+ [2963, 32093, 32768, 0],
+ [601, 943, 32768, 0],
+ [14969, 21398, 32768, 0],
+];
+
+pub static DEFAULT_INTRA_FRAME_Y_MODE_CDF: [[[u16; 14]; 5]; 5] = [
+ [
+ [15588, 17027, 19338, 20218, 20682, 21110, 21825, 23244, 24189, 28165, 29093, 30466, 32768, 0],
+ [12016, 18066, 19516, 20303, 20719, 21444, 21888, 23032, 24434, 28658, 30172, 31409, 32768, 0],
+ [10052, 10771, 22296, 22788, 23055, 23239, 24133, 25620, 26160, 29336, 29929, 31567, 32768, 0],
+ [14091, 15406, 16442, 18808, 19136, 19546, 19998, 22096, 24746, 29585, 30958, 32462, 32768, 0],
+ [12122, 13265, 15603, 16501, 18609, 20033, 22391, 25583, 26437, 30261, 31073, 32475, 32768, 0],
+ ],
+ [
+ [10023, 19585, 20848, 21440, 21832, 22760, 23089, 24023, 25381, 29014, 30482, 31436, 32768, 0],
+ [5983, 24099, 24560, 24886, 25066, 25795, 25913, 26423, 27610, 29905, 31276, 31794, 32768, 0],
+ [7444, 12781, 20177, 20728, 21077, 21607, 22170, 23405, 24469, 27915, 29090, 30492, 32768, 0],
+ [8537, 14689, 15432, 17087, 17408, 18172, 18408, 19825, 24649, 29153, 31096, 32210, 32768, 0],
+ [7543, 14231, 15496, 16195, 17905, 20717, 21984, 24516, 26001, 29675, 30981, 31994, 32768, 0],
+ ],
+ [
+ [12613, 13591, 21383, 22004, 22312, 22577, 23401, 25055, 25729, 29538, 30305, 32077, 32768, 0],
+ [9687, 13470, 18506, 19230, 19604, 20147, 20695, 22062, 23219, 27743, 29211, 30907, 32768, 0],
+ [6183, 6505, 26024, 26252, 26366, 26434, 27082, 28354, 28555, 30467, 30794, 32086, 32768, 0],
+ [10718, 11734, 14954, 17224, 17565, 17924, 18561, 21523, 23878, 28975, 30287, 32252, 32768, 0],
+ [9194, 9858, 16501, 17263, 18424, 19171, 21563, 25961, 26561, 30072, 30737, 32463, 32768, 0],
+ ],
+ [
+ [12602, 14399, 15488, 18381, 18778, 19315, 19724, 21419, 25060, 29696, 30917, 32409, 32768, 0],
+ [8203, 13821, 14524, 17105, 17439, 18131, 18404, 19468, 25225, 29485, 31158, 32342, 32768, 0],
+ [8451, 9731, 15004, 17643, 18012, 18425, 19070, 21538, 24605, 29118, 30078, 32018, 32768, 0],
+ [7714, 9048, 9516, 16667, 16817, 16994, 17153, 18767, 26743, 30389, 31536, 32528, 32768, 0],
+ [8843, 10280, 11496, 15317, 16652, 17943, 19108, 22718, 25769, 29953, 30983, 32485, 32768, 0],
+ ],
+ [
+ [12578, 13671, 15979, 16834, 19075, 20913, 22989, 25449, 26219, 30214, 31150, 32477, 32768, 0],
+ [9563, 13626, 15080, 15892, 17756, 20863, 22207, 24236, 25380, 29653, 31143, 32277, 32768, 0],
+ [8356, 8901, 17616, 18256, 19350, 20106, 22598, 25947, 26466, 29900, 30523, 32261, 32768, 0],
+ [10835, 11815, 13124, 16042, 17018, 18039, 18947, 22753, 24615, 29489, 30883, 32482, 32768, 0],
+ [7618, 8288, 9859, 10509, 15386, 18657, 22903, 28776, 29180, 31355, 31802, 32593, 32768, 0],
+ ],
+];
+
+pub static DEFAULT_INTRA_TX_TYPE_SET1_CDF: [[[u16; 8]; 13]; 2] = [
+ [
+ [1535, 8035, 9461, 12751, 23467, 27825, 32768, 0],
+ [564, 3335, 9709, 10870, 18143, 28094, 32768, 0],
+ [672, 3247, 3676, 11982, 19415, 23127, 32768, 0],
+ [5279, 13885, 15487, 18044, 23527, 30252, 32768, 0],
+ [4423, 6074, 7985, 10416, 25693, 29298, 32768, 0],
+ [1486, 4241, 9460, 10662, 16456, 27694, 32768, 0],
+ [439, 2838, 3522, 6737, 18058, 23754, 32768, 0],
+ [1190, 4233, 4855, 11670, 20281, 24377, 32768, 0],
+ [1045, 4312, 8647, 10159, 18644, 29335, 32768, 0],
+ [202, 3734, 4747, 7298, 17127, 24016, 32768, 0],
+ [447, 4312, 6819, 8884, 16010, 23858, 32768, 0],
+ [277, 4369, 5255, 8905, 16465, 22271, 32768, 0],
+ [3409, 5436, 10599, 15599, 19687, 24040, 32768, 0],
+ ],
+ [
+ [1870, 13742, 14530, 16498, 23770, 27698, 32768, 0],
+ [326, 8796, 14632, 15079, 19272, 27486, 32768, 0],
+ [484, 7576, 7712, 14443, 19159, 22591, 32768, 0],
+ [1126, 15340, 15895, 17023, 20896, 30279, 32768, 0],
+ [655, 4854, 5249, 5913, 22099, 27138, 32768, 0],
+ [1299, 6458, 8885, 9290, 14851, 25497, 32768, 0],
+ [311, 5295, 5552, 6885, 16107, 22672, 32768, 0],
+ [883, 8059, 8270, 11258, 17289, 21549, 32768, 0],
+ [741, 7580, 9318, 10345, 16688, 29046, 32768, 0],
+ [110, 7406, 7915, 9195, 16041, 23329, 32768, 0],
+ [363, 7974, 9357, 10673, 15629, 24474, 32768, 0],
+ [153, 7647, 8112, 9936, 15307, 19996, 32768, 0],
+ [3511, 6332, 11165, 15335, 19323, 23594, 32768, 0],
+ ],
+];
+
+pub static DEFAULT_INTRA_TX_TYPE_SET2_CDF: [[[u16; 6]; 13]; 3] = [
+ [
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ ],
+ [
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ [6554, 13107, 19661, 26214, 32768, 0],
+ ],
+ [
+ [1127, 12814, 22772, 27483, 32768, 0],
+ [145, 6761, 11980, 26667, 32768, 0],
+ [362, 5887, 11678, 16725, 32768, 0],
+ [385, 15213, 18587, 30693, 32768, 0],
+ [25, 2914, 23134, 27903, 32768, 0],
+ [60, 4470, 11749, 23991, 32768, 0],
+ [37, 3332, 14511, 21448, 32768, 0],
+ [157, 6320, 13036, 17439, 32768, 0],
+ [119, 6719, 12906, 29396, 32768, 0],
+ [47, 5537, 12576, 21499, 32768, 0],
+ [269, 6076, 11258, 23115, 32768, 0],
+ [83, 5615, 12001, 17228, 32768, 0],
+ [1968, 5556, 12023, 18547, 32768, 0],
+ ],
+];
+
+pub static DEFAULT_INTRABC_CDF: [u16; 3] = [30531, 32768, 0];
+
+pub static DEFAULT_IS_INTER_CDF: [[u16; 3]; 4] = [[806, 32768, 0], [16662, 32768, 0], [20186, 32768, 0], [26538, 32768, 0]];
+
+pub static DEFAULT_MOTION_MODE_CDF: [[u16; 4]; 22] = [
+ [10923, 21845, 32768, 0],
+ [10923, 21845, 32768, 0],
+ [10923, 21845, 32768, 0],
+ [7651, 24760, 32768, 0],
+ [4738, 24765, 32768, 0],
+ [5391, 25528, 32768, 0],
+ [19419, 26810, 32768, 0],
+ [5123, 23606, 32768, 0],
+ [11606, 24308, 32768, 0],
+ [26260, 29116, 32768, 0],
+ [20360, 28062, 32768, 0],
+ [21679, 26830, 32768, 0],
+ [29516, 30701, 32768, 0],
+ [28898, 30397, 32768, 0],
+ [30878, 31335, 32768, 0],
+ [32507, 32558, 32768, 0],
+ [10923, 21845, 32768, 0],
+ [10923, 21845, 32768, 0],
+ [28799, 31390, 32768, 0],
+ [26431, 30774, 32768, 0],
+ [28973, 31594, 32768, 0],
+ [29742, 31203, 32768, 0],
+];
+
+pub static DEFAULT_MV_BIT_CDF: [[u16; 3]; 10] = [
+ [17408, 32768, 0],
+ [17920, 32768, 0],
+ [18944, 32768, 0],
+ [20480, 32768, 0],
+ [22528, 32768, 0],
+ [24576, 32768, 0],
+ [28672, 32768, 0],
+ [29952, 32768, 0],
+ [29952, 32768, 0],
+ [30720, 32768, 0],
+];
+
+pub static DEFAULT_MV_CLASS0_BIT_CDF: [u16; 3] = [27648, 32768, 0];
+
+pub static DEFAULT_MV_CLASS0_FR_CDF: [[[u16; 5]; 2]; 2] =
+ [[[16384, 24576, 26624, 32768, 0], [12288, 21248, 24128, 32768, 0]], [[16384, 24576, 26624, 32768, 0], [12288, 21248, 24128, 32768, 0]]];
+
+pub static DEFAULT_MV_CLASS0_HP_CDF: [u16; 3] = [20480, 32768, 0];
+
+pub static DEFAULT_MV_CLASS_CDF: [[u16; 12]; 2] = [
+ [28672, 30976, 31858, 32320, 32551, 32656, 32740, 32757, 32762, 32767, 32768, 0],
+ [28672, 30976, 31858, 32320, 32551, 32656, 32740, 32757, 32762, 32767, 32768, 0],
+];
+
+pub static DEFAULT_MV_FR_CDF: [[u16; 5]; 2] = [[8192, 17408, 21248, 32768, 0], [8192, 17408, 21248, 32768, 0]];
+
+pub static DEFAULT_MV_HP_CDF: [u16; 3] = [16384, 32768, 0];
+
+pub static DEFAULT_MV_JOINT_CDF: [u16; 5] = [4096, 11264, 19328, 32768, 0];
+
+pub static DEFAULT_MV_SIGN_CDF: [u16; 3] = [16384, 32768, 0];
+
+pub static DEFAULT_NEW_MV_CDF: [[u16; 3]; 6] = [[24035, 32768, 0], [16630, 32768, 0], [15339, 32768, 0], [8386, 32768, 0], [12222, 32768, 0], [4676, 32768, 0]];
+
+pub static DEFAULT_PALETTE_SIZE_2_UV_COLOR_CDF: [[u16; 3]; 5] = [[29089, 32768, 0], [16384, 32768, 0], [8713, 32768, 0], [29257, 32768, 0], [31610, 32768, 0]];
+
+pub static DEFAULT_PALETTE_SIZE_2_Y_COLOR_CDF: [[u16; 3]; 5] = [[28710, 32768, 0], [16384, 32768, 0], [10553, 32768, 0], [27036, 32768, 0], [31603, 32768, 0]];
+
+pub static DEFAULT_PALETTE_SIZE_3_UV_COLOR_CDF: [[u16; 4]; 5] =
+ [[25257, 29145, 32768, 0], [12287, 27293, 32768, 0], [7033, 27960, 32768, 0], [20145, 25405, 32768, 0], [30608, 31639, 32768, 0]];
+
+pub static DEFAULT_PALETTE_SIZE_3_Y_COLOR_CDF: [[u16; 4]; 5] =
+ [[27877, 30490, 32768, 0], [11532, 25697, 32768, 0], [6544, 30234, 32768, 0], [23018, 28072, 32768, 0], [31915, 32385, 32768, 0]];
+
+pub static DEFAULT_PALETTE_SIZE_4_UV_COLOR_CDF: [[u16; 5]; 5] = [
+ [24210, 27175, 29903, 32768, 0],
+ [9888, 22386, 27214, 32768, 0],
+ [5901, 26053, 29293, 32768, 0],
+ [18318, 22152, 28333, 32768, 0],
+ [30459, 31136, 31926, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_4_Y_COLOR_CDF: [[u16; 5]; 5] = [
+ [25572, 28046, 30045, 32768, 0],
+ [9478, 21590, 27256, 32768, 0],
+ [7248, 26837, 29824, 32768, 0],
+ [19167, 24486, 28349, 32768, 0],
+ [31400, 31825, 32250, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_5_UV_COLOR_CDF: [[u16; 6]; 5] = [
+ [22980, 25479, 27781, 29986, 32768, 0],
+ [8413, 21408, 24859, 28874, 32768, 0],
+ [2257, 29449, 30594, 31598, 32768, 0],
+ [19189, 21202, 25915, 28620, 32768, 0],
+ [31844, 32044, 32281, 32518, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_5_Y_COLOR_CDF: [[u16; 6]; 5] = [
+ [24779, 26955, 28576, 30282, 32768, 0],
+ [8669, 20364, 24073, 28093, 32768, 0],
+ [4255, 27565, 29377, 31067, 32768, 0],
+ [19864, 23674, 26716, 29530, 32768, 0],
+ [31646, 31893, 32147, 32426, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_6_UV_COLOR_CDF: [[u16; 7]; 5] = [
+ [22217, 24567, 26637, 28683, 30548, 32768, 0],
+ [7307, 16406, 19636, 24632, 28424, 32768, 0],
+ [4441, 25064, 26879, 28942, 30919, 32768, 0],
+ [17210, 20528, 23319, 26750, 29582, 32768, 0],
+ [30674, 30953, 31396, 31735, 32207, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_6_Y_COLOR_CDF: [[u16; 7]; 5] = [
+ [23132, 25407, 26970, 28435, 30073, 32768, 0],
+ [7443, 17242, 20717, 24762, 27982, 32768, 0],
+ [6300, 24862, 26944, 28784, 30671, 32768, 0],
+ [18916, 22895, 25267, 27435, 29652, 32768, 0],
+ [31270, 31550, 31808, 32059, 32353, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_7_UV_COLOR_CDF: [[u16; 8]; 5] = [
+ [21239, 23168, 25044, 26962, 28705, 30506, 32768, 0],
+ [6545, 15012, 18004, 21817, 25503, 28701, 32768, 0],
+ [3448, 26295, 27437, 28704, 30126, 31442, 32768, 0],
+ [15889, 18323, 21704, 24698, 26976, 29690, 32768, 0],
+ [30988, 31204, 31479, 31734, 31983, 32325, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_7_Y_COLOR_CDF: [[u16; 8]; 5] = [
+ [23105, 25199, 26464, 27684, 28931, 30318, 32768, 0],
+ [6950, 15447, 18952, 22681, 25567, 28563, 32768, 0],
+ [7560, 23474, 25490, 27203, 28921, 30708, 32768, 0],
+ [18544, 22373, 24457, 26195, 28119, 30045, 32768, 0],
+ [31198, 31451, 31670, 31882, 32123, 32391, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_8_UV_COLOR_CDF: [[u16; 9]; 5] = [
+ [21442, 23288, 24758, 26246, 27649, 28980, 30563, 32768, 0],
+ [5863, 14933, 17552, 20668, 23683, 26411, 29273, 32768, 0],
+ [3415, 25810, 26877, 27990, 29223, 30394, 31618, 32768, 0],
+ [17965, 20084, 22232, 23974, 26274, 28402, 30390, 32768, 0],
+ [31190, 31329, 31516, 31679, 31825, 32026, 32322, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_SIZE_8_Y_COLOR_CDF: [[u16; 9]; 5] = [
+ [21689, 23883, 25163, 26352, 27506, 28827, 30195, 32768, 0],
+ [6892, 15385, 17840, 21606, 24287, 26753, 29204, 32768, 0],
+ [5651, 23182, 25042, 26518, 27982, 29392, 30900, 32768, 0],
+ [19349, 22578, 24418, 25994, 27524, 29031, 30448, 32768, 0],
+ [31028, 31270, 31504, 31705, 31927, 32153, 32392, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_UV_MODE_CDF: [[u16; 3]; 2] = [[32461, 32768, 0], [21488, 32768, 0]];
+
+pub static DEFAULT_PALETTE_UV_SIZE_CDF: [[u16; 8]; 7] = [
+ [8713, 19979, 27128, 29609, 31331, 32272, 32768, 0],
+ [5839, 15573, 23581, 26947, 29848, 31700, 32768, 0],
+ [4426, 11260, 17999, 21483, 25863, 29430, 32768, 0],
+ [3228, 9464, 14993, 18089, 22523, 27420, 32768, 0],
+ [3768, 8886, 13091, 17852, 22495, 27207, 32768, 0],
+ [2464, 8451, 12861, 21632, 25525, 28555, 32768, 0],
+ [1269, 5435, 10433, 18963, 21700, 25865, 32768, 0],
+];
+
+pub static DEFAULT_PALETTE_Y_MODE_CDF: [[[u16; 3]; 3]; 7] = [
+ [[31676, 32768, 0], [3419, 32768, 0], [1261, 32768, 0]],
+ [[31912, 32768, 0], [2859, 32768, 0], [980, 32768, 0]],
+ [[31823, 32768, 0], [3400, 32768, 0], [781, 32768, 0]],
+ [[32030, 32768, 0], [3561, 32768, 0], [904, 32768, 0]],
+ [[32309, 32768, 0], [7337, 32768, 0], [1462, 32768, 0]],
+ [[32265, 32768, 0], [4015, 32768, 0], [1521, 32768, 0]],
+ [[32450, 32768, 0], [7946, 32768, 0], [129, 32768, 0]],
+];
+
+pub static DEFAULT_PALETTE_Y_SIZE_CDF: [[u16; 8]; 7] = [
+ [7952, 13000, 18149, 21478, 25527, 29241, 32768, 0],
+ [7139, 11421, 16195, 19544, 23666, 28073, 32768, 0],
+ [7788, 12741, 17325, 20500, 24315, 28530, 32768, 0],
+ [8271, 14064, 18246, 21564, 25071, 28533, 32768, 0],
+ [12725, 19180, 21863, 24839, 27535, 30120, 32768, 0],
+ [9711, 14888, 16923, 21052, 25661, 27875, 32768, 0],
+ [14940, 20797, 21678, 24186, 27033, 28999, 32768, 0],
+];
+
+pub static DEFAULT_PARTITION_W128_CDF: [[u16; 9]; 4] = [
+ [27899, 28219, 28529, 32484, 32539, 32619, 32639, 32768, 0],
+ [6607, 6990, 8268, 32060, 32219, 32338, 32371, 32768, 0],
+ [5429, 6676, 7122, 32027, 32227, 32531, 32582, 32768, 0],
+ [711, 966, 1172, 32448, 32538, 32617, 32664, 32768, 0],
+];
+
+pub static DEFAULT_PARTITION_W16_CDF: [[u16; 11]; 4] = [
+ [15597, 20929, 24571, 26706, 27664, 28821, 29601, 30571, 31902, 32768, 0],
+ [7925, 11043, 16785, 22470, 23971, 25043, 26651, 28701, 29834, 32768, 0],
+ [5414, 13269, 15111, 20488, 22360, 24500, 25537, 26336, 32117, 32768, 0],
+ [2662, 6362, 8614, 20860, 23053, 24778, 26436, 27829, 31171, 32768, 0],
+];
+
+pub static DEFAULT_PARTITION_W32_CDF: [[u16; 11]; 4] = [
+ [18462, 20920, 23124, 27647, 28227, 29049, 29519, 30178, 31544, 32768, 0],
+ [7689, 9060, 12056, 24992, 25660, 26182, 26951, 28041, 29052, 32768, 0],
+ [6015, 9009, 10062, 24544, 25409, 26545, 27071, 27526, 32047, 32768, 0],
+ [1394, 2208, 2796, 28614, 29061, 29466, 29840, 30185, 31899, 32768, 0],
+];
+
+pub static DEFAULT_PARTITION_W64_CDF: [[u16; 11]; 4] = [
+ [20137, 21547, 23078, 29566, 29837, 30261, 30524, 30892, 31724, 32768, 0],
+ [6732, 7490, 9497, 27944, 28250, 28515, 28969, 29630, 30104, 32768, 0],
+ [5945, 7663, 8348, 28683, 29117, 29749, 30064, 30298, 32238, 32768, 0],
+ [870, 1212, 1487, 31198, 31394, 31574, 31743, 31881, 32332, 32768, 0],
+];
+
+pub static DEFAULT_PARTITION_W8_CDF: [[u16; 5]; 4] =
+ [[19132, 25510, 30392, 32768, 0], [13928, 19855, 28540, 32768, 0], [12522, 23679, 28629, 32768, 0], [9896, 18783, 25853, 32768, 0]];
+
+pub static DEFAULT_REF_MV_CDF: [[u16; 3]; 6] =
+ [[23974, 32768, 0], [24188, 32768, 0], [17848, 32768, 0], [28622, 32768, 0], [24312, 32768, 0], [19923, 32768, 0]];
+
+pub static DEFAULT_RESTORATION_TYPE_CDF: [u16; 4] = [9413, 22581, 32768, 0];
+
+pub static DEFAULT_SCAN_16X16: [u16; 256] = [
+ 0, 1, 16, 32, 17, 2, 3, 18, 33, 48, 64, 49, 34, 19, 4, 5, 20, 35, 50, 65, 80, 96, 81, 66, 51, 36, 21, 6, 7, 22, 37, 52, 67, 82, 97, 112, 128, 113, 98, 83,
+ 68, 53, 38, 23, 8, 9, 24, 39, 54, 69, 84, 99, 114, 129, 144, 160, 145, 130, 115, 100, 85, 70, 55, 40, 25, 10, 11, 26, 41, 56, 71, 86, 101, 116, 131, 146,
+ 161, 176, 192, 177, 162, 147, 132, 117, 102, 87, 72, 57, 42, 27, 12, 13, 28, 43, 58, 73, 88, 103, 118, 133, 148, 163, 178, 193, 208, 224, 209, 194, 179,
+ 164, 149, 134, 119, 104, 89, 74, 59, 44, 29, 14, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225, 240, 241, 226, 211, 196, 181, 166,
+ 151, 136, 121, 106, 91, 76, 61, 46, 31, 47, 62, 77, 92, 107, 122, 137, 152, 167, 182, 197, 212, 227, 242, 243, 228, 213, 198, 183, 168, 153, 138, 123, 108,
+ 93, 78, 63, 79, 94, 109, 124, 139, 154, 169, 184, 199, 214, 229, 244, 245, 230, 215, 200, 185, 170, 155, 140, 125, 110, 95, 111, 126, 141, 156, 171, 186,
+ 201, 216, 231, 246, 247, 232, 217, 202, 187, 172, 157, 142, 127, 143, 158, 173, 188, 203, 218, 233, 248, 249, 234, 219, 204, 189, 174, 159, 175, 190, 205,
+ 220, 235, 250, 251, 236, 221, 206, 191, 207, 222, 237, 252, 253, 238, 223, 239, 254, 255,
+];
+
+pub static DEFAULT_SCAN_16X32: [u16; 512] = [
+ 0, 1, 16, 2, 17, 32, 3, 18, 33, 48, 4, 19, 34, 49, 64, 5, 20, 35, 50, 65, 80, 6, 21, 36, 51, 66, 81, 96, 7, 22, 37, 52, 67, 82, 97, 112, 8, 23, 38, 53, 68,
+ 83, 98, 113, 128, 9, 24, 39, 54, 69, 84, 99, 114, 129, 144, 10, 25, 40, 55, 70, 85, 100, 115, 130, 145, 160, 11, 26, 41, 56, 71, 86, 101, 116, 131, 146,
+ 161, 176, 12, 27, 42, 57, 72, 87, 102, 117, 132, 147, 162, 177, 192, 13, 28, 43, 58, 73, 88, 103, 118, 133, 148, 163, 178, 193, 208, 14, 29, 44, 59, 74,
+ 89, 104, 119, 134, 149, 164, 179, 194, 209, 224, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225, 240, 31, 46, 61, 76, 91, 106, 121,
+ 136, 151, 166, 181, 196, 211, 226, 241, 256, 47, 62, 77, 92, 107, 122, 137, 152, 167, 182, 197, 212, 227, 242, 257, 272, 63, 78, 93, 108, 123, 138, 153,
+ 168, 183, 198, 213, 228, 243, 258, 273, 288, 79, 94, 109, 124, 139, 154, 169, 184, 199, 214, 229, 244, 259, 274, 289, 304, 95, 110, 125, 140, 155, 170,
+ 185, 200, 215, 230, 245, 260, 275, 290, 305, 320, 111, 126, 141, 156, 171, 186, 201, 216, 231, 246, 261, 276, 291, 306, 321, 336, 127, 142, 157, 172, 187,
+ 202, 217, 232, 247, 262, 277, 292, 307, 322, 337, 352, 143, 158, 173, 188, 203, 218, 233, 248, 263, 278, 293, 308, 323, 338, 353, 368, 159, 174, 189, 204,
+ 219, 234, 249, 264, 279, 294, 309, 324, 339, 354, 369, 384, 175, 190, 205, 220, 235, 250, 265, 280, 295, 310, 325, 340, 355, 370, 385, 400, 191, 206, 221,
+ 236, 251, 266, 281, 296, 311, 326, 341, 356, 371, 386, 401, 416, 207, 222, 237, 252, 267, 282, 297, 312, 327, 342, 357, 372, 387, 402, 417, 432, 223, 238,
+ 253, 268, 283, 298, 313, 328, 343, 358, 373, 388, 403, 418, 433, 448, 239, 254, 269, 284, 299, 314, 329, 344, 359, 374, 389, 404, 419, 434, 449, 464, 255,
+ 270, 285, 300, 315, 330, 345, 360, 375, 390, 405, 420, 435, 450, 465, 480, 271, 286, 301, 316, 331, 346, 361, 376, 391, 406, 421, 436, 451, 466, 481, 496,
+ 287, 302, 317, 332, 347, 362, 377, 392, 407, 422, 437, 452, 467, 482, 497, 303, 318, 333, 348, 363, 378, 393, 408, 423, 438, 453, 468, 483, 498, 319, 334,
+ 349, 364, 379, 394, 409, 424, 439, 454, 469, 484, 499, 335, 350, 365, 380, 395, 410, 425, 440, 455, 470, 485, 500, 351, 366, 381, 396, 411, 426, 441, 456,
+ 471, 486, 501, 367, 382, 397, 412, 427, 442, 457, 472, 487, 502, 383, 398, 413, 428, 443, 458, 473, 488, 503, 399, 414, 429, 444, 459, 474, 489, 504, 415,
+ 430, 445, 460, 475, 490, 505, 431, 446, 461, 476, 491, 506, 447, 462, 477, 492, 507, 463, 478, 493, 508, 479, 494, 509, 495, 510, 511,
+];
+
+pub static DEFAULT_SCAN_16X4: [u16; 64] = [
+ 0, 16, 1, 32, 17, 2, 48, 33, 18, 3, 49, 34, 19, 4, 50, 35, 20, 5, 51, 36, 21, 6, 52, 37, 22, 7, 53, 38, 23, 8, 54, 39, 24, 9, 55, 40, 25, 10, 56, 41, 26,
+ 11, 57, 42, 27, 12, 58, 43, 28, 13, 59, 44, 29, 14, 60, 45, 30, 15, 61, 46, 31, 62, 47, 63,
+];
+
+pub static DEFAULT_SCAN_16X8: [u16; 128] = [
+ 0, 16, 1, 32, 17, 2, 48, 33, 18, 3, 64, 49, 34, 19, 4, 80, 65, 50, 35, 20, 5, 96, 81, 66, 51, 36, 21, 6, 112, 97, 82, 67, 52, 37, 22, 7, 113, 98, 83, 68,
+ 53, 38, 23, 8, 114, 99, 84, 69, 54, 39, 24, 9, 115, 100, 85, 70, 55, 40, 25, 10, 116, 101, 86, 71, 56, 41, 26, 11, 117, 102, 87, 72, 57, 42, 27, 12, 118,
+ 103, 88, 73, 58, 43, 28, 13, 119, 104, 89, 74, 59, 44, 29, 14, 120, 105, 90, 75, 60, 45, 30, 15, 121, 106, 91, 76, 61, 46, 31, 122, 107, 92, 77, 62, 47,
+ 123, 108, 93, 78, 63, 124, 109, 94, 79, 125, 110, 95, 126, 111, 127,
+];
+
+pub static DEFAULT_SCAN_32X16: [u16; 512] = [
+ 0, 32, 1, 64, 33, 2, 96, 65, 34, 3, 128, 97, 66, 35, 4, 160, 129, 98, 67, 36, 5, 192, 161, 130, 99, 68, 37, 6, 224, 193, 162, 131, 100, 69, 38, 7, 256,
+ 225, 194, 163, 132, 101, 70, 39, 8, 288, 257, 226, 195, 164, 133, 102, 71, 40, 9, 320, 289, 258, 227, 196, 165, 134, 103, 72, 41, 10, 352, 321, 290, 259,
+ 228, 197, 166, 135, 104, 73, 42, 11, 384, 353, 322, 291, 260, 229, 198, 167, 136, 105, 74, 43, 12, 416, 385, 354, 323, 292, 261, 230, 199, 168, 137, 106,
+ 75, 44, 13, 448, 417, 386, 355, 324, 293, 262, 231, 200, 169, 138, 107, 76, 45, 14, 480, 449, 418, 387, 356, 325, 294, 263, 232, 201, 170, 139, 108, 77,
+ 46, 15, 481, 450, 419, 388, 357, 326, 295, 264, 233, 202, 171, 140, 109, 78, 47, 16, 482, 451, 420, 389, 358, 327, 296, 265, 234, 203, 172, 141, 110, 79,
+ 48, 17, 483, 452, 421, 390, 359, 328, 297, 266, 235, 204, 173, 142, 111, 80, 49, 18, 484, 453, 422, 391, 360, 329, 298, 267, 236, 205, 174, 143, 112, 81,
+ 50, 19, 485, 454, 423, 392, 361, 330, 299, 268, 237, 206, 175, 144, 113, 82, 51, 20, 486, 455, 424, 393, 362, 331, 300, 269, 238, 207, 176, 145, 114, 83,
+ 52, 21, 487, 456, 425, 394, 363, 332, 301, 270, 239, 208, 177, 146, 115, 84, 53, 22, 488, 457, 426, 395, 364, 333, 302, 271, 240, 209, 178, 147, 116, 85,
+ 54, 23, 489, 458, 427, 396, 365, 334, 303, 272, 241, 210, 179, 148, 117, 86, 55, 24, 490, 459, 428, 397, 366, 335, 304, 273, 242, 211, 180, 149, 118, 87,
+ 56, 25, 491, 460, 429, 398, 367, 336, 305, 274, 243, 212, 181, 150, 119, 88, 57, 26, 492, 461, 430, 399, 368, 337, 306, 275, 244, 213, 182, 151, 120, 89,
+ 58, 27, 493, 462, 431, 400, 369, 338, 307, 276, 245, 214, 183, 152, 121, 90, 59, 28, 494, 463, 432, 401, 370, 339, 308, 277, 246, 215, 184, 153, 122, 91,
+ 60, 29, 495, 464, 433, 402, 371, 340, 309, 278, 247, 216, 185, 154, 123, 92, 61, 30, 496, 465, 434, 403, 372, 341, 310, 279, 248, 217, 186, 155, 124, 93,
+ 62, 31, 497, 466, 435, 404, 373, 342, 311, 280, 249, 218, 187, 156, 125, 94, 63, 498, 467, 436, 405, 374, 343, 312, 281, 250, 219, 188, 157, 126, 95, 499,
+ 468, 437, 406, 375, 344, 313, 282, 251, 220, 189, 158, 127, 500, 469, 438, 407, 376, 345, 314, 283, 252, 221, 190, 159, 501, 470, 439, 408, 377, 346, 315,
+ 284, 253, 222, 191, 502, 471, 440, 409, 378, 347, 316, 285, 254, 223, 503, 472, 441, 410, 379, 348, 317, 286, 255, 504, 473, 442, 411, 380, 349, 318, 287,
+ 505, 474, 443, 412, 381, 350, 319, 506, 475, 444, 413, 382, 351, 507, 476, 445, 414, 383, 508, 477, 446, 415, 509, 478, 447, 510, 479, 511,
+];
+
+pub static DEFAULT_SCAN_32X32: [u16; 1024] = [
+ 0, 1, 32, 64, 33, 2, 3, 34, 65, 96, 128, 97, 66, 35, 4, 5, 36, 67, 98, 129, 160, 192, 161, 130, 99, 68, 37, 6, 7, 38, 69, 100, 131, 162, 193, 224, 256,
+ 225, 194, 163, 132, 101, 70, 39, 8, 9, 40, 71, 102, 133, 164, 195, 226, 257, 288, 320, 289, 258, 227, 196, 165, 134, 103, 72, 41, 10, 11, 42, 73, 104, 135,
+ 166, 197, 228, 259, 290, 321, 352, 384, 353, 322, 291, 260, 229, 198, 167, 136, 105, 74, 43, 12, 13, 44, 75, 106, 137, 168, 199, 230, 261, 292, 323, 354,
+ 385, 416, 448, 417, 386, 355, 324, 293, 262, 231, 200, 169, 138, 107, 76, 45, 14, 15, 46, 77, 108, 139, 170, 201, 232, 263, 294, 325, 356, 387, 418, 449,
+ 480, 512, 481, 450, 419, 388, 357, 326, 295, 264, 233, 202, 171, 140, 109, 78, 47, 16, 17, 48, 79, 110, 141, 172, 203, 234, 265, 296, 327, 358, 389, 420,
+ 451, 482, 513, 544, 576, 545, 514, 483, 452, 421, 390, 359, 328, 297, 266, 235, 204, 173, 142, 111, 80, 49, 18, 19, 50, 81, 112, 143, 174, 205, 236, 267,
+ 298, 329, 360, 391, 422, 453, 484, 515, 546, 577, 608, 640, 609, 578, 547, 516, 485, 454, 423, 392, 361, 330, 299, 268, 237, 206, 175, 144, 113, 82, 51,
+ 20, 21, 52, 83, 114, 145, 176, 207, 238, 269, 300, 331, 362, 393, 424, 455, 486, 517, 548, 579, 610, 641, 672, 704, 673, 642, 611, 580, 549, 518, 487, 456,
+ 425, 394, 363, 332, 301, 270, 239, 208, 177, 146, 115, 84, 53, 22, 23, 54, 85, 116, 147, 178, 209, 240, 271, 302, 333, 364, 395, 426, 457, 488, 519, 550,
+ 581, 612, 643, 674, 705, 736, 768, 737, 706, 675, 644, 613, 582, 551, 520, 489, 458, 427, 396, 365, 334, 303, 272, 241, 210, 179, 148, 117, 86, 55, 24, 25,
+ 56, 87, 118, 149, 180, 211, 242, 273, 304, 335, 366, 397, 428, 459, 490, 521, 552, 583, 614, 645, 676, 707, 738, 769, 800, 832, 801, 770, 739, 708, 677,
+ 646, 615, 584, 553, 522, 491, 460, 429, 398, 367, 336, 305, 274, 243, 212, 181, 150, 119, 88, 57, 26, 27, 58, 89, 120, 151, 182, 213, 244, 275, 306, 337,
+ 368, 399, 430, 461, 492, 523, 554, 585, 616, 647, 678, 709, 740, 771, 802, 833, 864, 896, 865, 834, 803, 772, 741, 710, 679, 648, 617, 586, 555, 524, 493,
+ 462, 431, 400, 369, 338, 307, 276, 245, 214, 183, 152, 121, 90, 59, 28, 29, 60, 91, 122, 153, 184, 215, 246, 277, 308, 339, 370, 401, 432, 463, 494, 525,
+ 556, 587, 618, 649, 680, 711, 742, 773, 804, 835, 866, 897, 928, 960, 929, 898, 867, 836, 805, 774, 743, 712, 681, 650, 619, 588, 557, 526, 495, 464, 433,
+ 402, 371, 340, 309, 278, 247, 216, 185, 154, 123, 92, 61, 30, 31, 62, 93, 124, 155, 186, 217, 248, 279, 310, 341, 372, 403, 434, 465, 496, 527, 558, 589,
+ 620, 651, 682, 713, 744, 775, 806, 837, 868, 899, 930, 961, 992, 993, 962, 931, 900, 869, 838, 807, 776, 745, 714, 683, 652, 621, 590, 559, 528, 497, 466,
+ 435, 404, 373, 342, 311, 280, 249, 218, 187, 156, 125, 94, 63, 95, 126, 157, 188, 219, 250, 281, 312, 343, 374, 405, 436, 467, 498, 529, 560, 591, 622,
+ 653, 684, 715, 746, 777, 808, 839, 870, 901, 932, 963, 994, 995, 964, 933, 902, 871, 840, 809, 778, 747, 716, 685, 654, 623, 592, 561, 530, 499, 468, 437,
+ 406, 375, 344, 313, 282, 251, 220, 189, 158, 127, 159, 190, 221, 252, 283, 314, 345, 376, 407, 438, 469, 500, 531, 562, 593, 624, 655, 686, 717, 748, 779,
+ 810, 841, 872, 903, 934, 965, 996, 997, 966, 935, 904, 873, 842, 811, 780, 749, 718, 687, 656, 625, 594, 563, 532, 501, 470, 439, 408, 377, 346, 315, 284,
+ 253, 222, 191, 223, 254, 285, 316, 347, 378, 409, 440, 471, 502, 533, 564, 595, 626, 657, 688, 719, 750, 781, 812, 843, 874, 905, 936, 967, 998, 999, 968,
+ 937, 906, 875, 844, 813, 782, 751, 720, 689, 658, 627, 596, 565, 534, 503, 472, 441, 410, 379, 348, 317, 286, 255, 287, 318, 349, 380, 411, 442, 473, 504,
+ 535, 566, 597, 628, 659, 690, 721, 752, 783, 814, 845, 876, 907, 938, 969, 1000, 1001, 970, 939, 908, 877, 846, 815, 784, 753, 722, 691, 660, 629, 598,
+ 567, 536, 505, 474, 443, 412, 381, 350, 319, 351, 382, 413, 444, 475, 506, 537, 568, 599, 630, 661, 692, 723, 754, 785, 816, 847, 878, 909, 940, 971, 1002,
+ 1003, 972, 941, 910, 879, 848, 817, 786, 755, 724, 693, 662, 631, 600, 569, 538, 507, 476, 445, 414, 383, 415, 446, 477, 508, 539, 570, 601, 632, 663, 694,
+ 725, 756, 787, 818, 849, 880, 911, 942, 973, 1004, 1005, 974, 943, 912, 881, 850, 819, 788, 757, 726, 695, 664, 633, 602, 571, 540, 509, 478, 447, 479,
+ 510, 541, 572, 603, 634, 665, 696, 727, 758, 789, 820, 851, 882, 913, 944, 975, 1006, 1007, 976, 945, 914, 883, 852, 821, 790, 759, 728, 697, 666, 635,
+ 604, 573, 542, 511, 543, 574, 605, 636, 667, 698, 729, 760, 791, 822, 853, 884, 915, 946, 977, 1008, 1009, 978, 947, 916, 885, 854, 823, 792, 761, 730,
+ 699, 668, 637, 606, 575, 607, 638, 669, 700, 731, 762, 793, 824, 855, 886, 917, 948, 979, 1010, 1011, 980, 949, 918, 887, 856, 825, 794, 763, 732, 701,
+ 670, 639, 671, 702, 733, 764, 795, 826, 857, 888, 919, 950, 981, 1012, 1013, 982, 951, 920, 889, 858, 827, 796, 765, 734, 703, 735, 766, 797, 828, 859,
+ 890, 921, 952, 983, 1014, 1015, 984, 953, 922, 891, 860, 829, 798, 767, 799, 830, 861, 892, 923, 954, 985, 1016, 1017, 986, 955, 924, 893, 862, 831, 863,
+ 894, 925, 956, 987, 1018, 1019, 988, 957, 926, 895, 927, 958, 989, 1020, 1021, 990, 959, 991, 1022, 1023,
+];
+
+pub static DEFAULT_SCAN_32X8: [u16; 256] = [
+ 0, 32, 1, 64, 33, 2, 96, 65, 34, 3, 128, 97, 66, 35, 4, 160, 129, 98, 67, 36, 5, 192, 161, 130, 99, 68, 37, 6, 224, 193, 162, 131, 100, 69, 38, 7, 225,
+ 194, 163, 132, 101, 70, 39, 8, 226, 195, 164, 133, 102, 71, 40, 9, 227, 196, 165, 134, 103, 72, 41, 10, 228, 197, 166, 135, 104, 73, 42, 11, 229, 198, 167,
+ 136, 105, 74, 43, 12, 230, 199, 168, 137, 106, 75, 44, 13, 231, 200, 169, 138, 107, 76, 45, 14, 232, 201, 170, 139, 108, 77, 46, 15, 233, 202, 171, 140,
+ 109, 78, 47, 16, 234, 203, 172, 141, 110, 79, 48, 17, 235, 204, 173, 142, 111, 80, 49, 18, 236, 205, 174, 143, 112, 81, 50, 19, 237, 206, 175, 144, 113,
+ 82, 51, 20, 238, 207, 176, 145, 114, 83, 52, 21, 239, 208, 177, 146, 115, 84, 53, 22, 240, 209, 178, 147, 116, 85, 54, 23, 241, 210, 179, 148, 117, 86, 55,
+ 24, 242, 211, 180, 149, 118, 87, 56, 25, 243, 212, 181, 150, 119, 88, 57, 26, 244, 213, 182, 151, 120, 89, 58, 27, 245, 214, 183, 152, 121, 90, 59, 28,
+ 246, 215, 184, 153, 122, 91, 60, 29, 247, 216, 185, 154, 123, 92, 61, 30, 248, 217, 186, 155, 124, 93, 62, 31, 249, 218, 187, 156, 125, 94, 63, 250, 219,
+ 188, 157, 126, 95, 251, 220, 189, 158, 127, 252, 221, 190, 159, 253, 222, 191, 254, 223, 255,
+];
+
+pub static DEFAULT_SCAN_4X16: [u16; 64] = [
+ 0, 1, 4, 2, 5, 8, 3, 6, 9, 12, 7, 10, 13, 16, 11, 14, 17, 20, 15, 18, 21, 24, 19, 22, 25, 28, 23, 26, 29, 32, 27, 30, 33, 36, 31, 34, 37, 40, 35, 38, 41,
+ 44, 39, 42, 45, 48, 43, 46, 49, 52, 47, 50, 53, 56, 51, 54, 57, 60, 55, 58, 61, 59, 62, 63,
+];
+
+pub static DEFAULT_SCAN_4X4: [u16; 16] = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15];
+
+pub static DEFAULT_SCAN_4X8: [u16; 32] = [0, 1, 4, 2, 5, 8, 3, 6, 9, 12, 7, 10, 13, 16, 11, 14, 17, 20, 15, 18, 21, 24, 19, 22, 25, 28, 23, 26, 29, 27, 30, 31];
+
+pub static DEFAULT_SCAN_8X16: [u16; 128] = [
+ 0, 1, 8, 2, 9, 16, 3, 10, 17, 24, 4, 11, 18, 25, 32, 5, 12, 19, 26, 33, 40, 6, 13, 20, 27, 34, 41, 48, 7, 14, 21, 28, 35, 42, 49, 56, 15, 22, 29, 36, 43,
+ 50, 57, 64, 23, 30, 37, 44, 51, 58, 65, 72, 31, 38, 45, 52, 59, 66, 73, 80, 39, 46, 53, 60, 67, 74, 81, 88, 47, 54, 61, 68, 75, 82, 89, 96, 55, 62, 69, 76,
+ 83, 90, 97, 104, 63, 70, 77, 84, 91, 98, 105, 112, 71, 78, 85, 92, 99, 106, 113, 120, 79, 86, 93, 100, 107, 114, 121, 87, 94, 101, 108, 115, 122, 95, 102,
+ 109, 116, 123, 103, 110, 117, 124, 111, 118, 125, 119, 126, 127,
+];
+
+pub static DEFAULT_SCAN_8X32: [u16; 256] = [
+ 0, 1, 8, 2, 9, 16, 3, 10, 17, 24, 4, 11, 18, 25, 32, 5, 12, 19, 26, 33, 40, 6, 13, 20, 27, 34, 41, 48, 7, 14, 21, 28, 35, 42, 49, 56, 15, 22, 29, 36, 43,
+ 50, 57, 64, 23, 30, 37, 44, 51, 58, 65, 72, 31, 38, 45, 52, 59, 66, 73, 80, 39, 46, 53, 60, 67, 74, 81, 88, 47, 54, 61, 68, 75, 82, 89, 96, 55, 62, 69, 76,
+ 83, 90, 97, 104, 63, 70, 77, 84, 91, 98, 105, 112, 71, 78, 85, 92, 99, 106, 113, 120, 79, 86, 93, 100, 107, 114, 121, 128, 87, 94, 101, 108, 115, 122, 129,
+ 136, 95, 102, 109, 116, 123, 130, 137, 144, 103, 110, 117, 124, 131, 138, 145, 152, 111, 118, 125, 132, 139, 146, 153, 160, 119, 126, 133, 140, 147, 154,
+ 161, 168, 127, 134, 141, 148, 155, 162, 169, 176, 135, 142, 149, 156, 163, 170, 177, 184, 143, 150, 157, 164, 171, 178, 185, 192, 151, 158, 165, 172, 179,
+ 186, 193, 200, 159, 166, 173, 180, 187, 194, 201, 208, 167, 174, 181, 188, 195, 202, 209, 216, 175, 182, 189, 196, 203, 210, 217, 224, 183, 190, 197, 204,
+ 211, 218, 225, 232, 191, 198, 205, 212, 219, 226, 233, 240, 199, 206, 213, 220, 227, 234, 241, 248, 207, 214, 221, 228, 235, 242, 249, 215, 222, 229, 236,
+ 243, 250, 223, 230, 237, 244, 251, 231, 238, 245, 252, 239, 246, 253, 247, 254, 255,
+];
+
+pub static DEFAULT_SCAN_8X4: [u16; 32] = [0, 8, 1, 16, 9, 2, 24, 17, 10, 3, 25, 18, 11, 4, 26, 19, 12, 5, 27, 20, 13, 6, 28, 21, 14, 7, 29, 22, 15, 30, 23, 31];
+
+pub static DEFAULT_SCAN_8X8: [u16; 64] = [
+ 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29,
+ 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63,
+];
+
+pub static DEFAULT_SEGMENT_ID_CDF: [[u16; 9]; 3] = [
+ [5622, 7893, 16093, 18233, 27809, 28373, 32533, 32768, 0],
+ [14274, 18230, 22557, 24935, 29980, 30851, 32344, 32768, 0],
+ [27527, 28487, 28723, 28890, 32397, 32647, 32679, 32768, 0],
+];
+
+pub static DEFAULT_SEGMENT_ID_PREDICTED_CDF: [[u16; 3]; 3] = [[16384, 32768, 0], [16384, 32768, 0], [16384, 32768, 0]];
+
+pub static DEFAULT_SINGLE_REF_CDF: [[[u16; 3]; 6]; 3] = [
+ [[4897, 32768, 0], [1555, 32768, 0], [4236, 32768, 0], [8650, 32768, 0], [904, 32768, 0], [1444, 32768, 0]],
+ [[16973, 32768, 0], [16751, 32768, 0], [19647, 32768, 0], [24773, 32768, 0], [11014, 32768, 0], [15087, 32768, 0]],
+ [[29744, 32768, 0], [30279, 32768, 0], [31194, 32768, 0], [31895, 32768, 0], [26875, 32768, 0], [30304, 32768, 0]],
+];
+
+pub static DEFAULT_SKIP_CDF: [[u16; 3]; 3] = [[31671, 32768, 0], [16515, 32768, 0], [4576, 32768, 0]];
+
+pub static DEFAULT_SKIP_MODE_CDF: [[u16; 3]; 3] = [[32621, 32768, 0], [20708, 32768, 0], [8127, 32768, 0]];
+
+pub static DEFAULT_TX_16X16_CDF: [[u16; 4]; 3] = [[12272, 30172, 32768, 0], [12272, 30172, 32768, 0], [18677, 30848, 32768, 0]];
+
+pub static DEFAULT_TX_32X32_CDF: [[u16; 4]; 3] = [[12986, 15180, 32768, 0], [12986, 15180, 32768, 0], [24302, 25602, 32768, 0]];
+
+pub static DEFAULT_TX_64X64_CDF: [[u16; 4]; 3] = [[5782, 11475, 32768, 0], [5782, 11475, 32768, 0], [16803, 22759, 32768, 0]];
+
+pub static DEFAULT_TX_8X8_CDF: [[u16; 3]; 3] = [[19968, 32768, 0], [19968, 32768, 0], [24320, 32768, 0]];
+
+pub static DEFAULT_TXB_SKIP_CDF: [[[[u16; 3]; 13]; 5]; 4] = [
+ [
+ [
+ [31849, 32768, 0],
+ [5892, 32768, 0],
+ [12112, 32768, 0],
+ [21935, 32768, 0],
+ [20289, 32768, 0],
+ [27473, 32768, 0],
+ [32487, 32768, 0],
+ [7654, 32768, 0],
+ [19473, 32768, 0],
+ [29984, 32768, 0],
+ [9961, 32768, 0],
+ [30242, 32768, 0],
+ [32117, 32768, 0],
+ ],
+ [
+ [31548, 32768, 0],
+ [1549, 32768, 0],
+ [10130, 32768, 0],
+ [16656, 32768, 0],
+ [18591, 32768, 0],
+ [26308, 32768, 0],
+ [32537, 32768, 0],
+ [5403, 32768, 0],
+ [18096, 32768, 0],
+ [30003, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [29957, 32768, 0],
+ [5391, 32768, 0],
+ [18039, 32768, 0],
+ [23566, 32768, 0],
+ [22431, 32768, 0],
+ [25822, 32768, 0],
+ [32197, 32768, 0],
+ [3778, 32768, 0],
+ [15336, 32768, 0],
+ [28981, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [17920, 32768, 0],
+ [1818, 32768, 0],
+ [7282, 32768, 0],
+ [25273, 32768, 0],
+ [10923, 32768, 0],
+ [31554, 32768, 0],
+ [32624, 32768, 0],
+ [1366, 32768, 0],
+ [15628, 32768, 0],
+ [30462, 32768, 0],
+ [146, 32768, 0],
+ [5132, 32768, 0],
+ [31657, 32768, 0],
+ ],
+ [
+ [6308, 32768, 0],
+ [117, 32768, 0],
+ [1638, 32768, 0],
+ [2161, 32768, 0],
+ [16384, 32768, 0],
+ [10923, 32768, 0],
+ [30247, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [30371, 32768, 0],
+ [7570, 32768, 0],
+ [13155, 32768, 0],
+ [20751, 32768, 0],
+ [20969, 32768, 0],
+ [27067, 32768, 0],
+ [32013, 32768, 0],
+ [5495, 32768, 0],
+ [17942, 32768, 0],
+ [28280, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [31782, 32768, 0],
+ [1836, 32768, 0],
+ [10689, 32768, 0],
+ [17604, 32768, 0],
+ [21622, 32768, 0],
+ [27518, 32768, 0],
+ [32399, 32768, 0],
+ [4419, 32768, 0],
+ [16294, 32768, 0],
+ [28345, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [31901, 32768, 0],
+ [10311, 32768, 0],
+ [18047, 32768, 0],
+ [24806, 32768, 0],
+ [23288, 32768, 0],
+ [27914, 32768, 0],
+ [32296, 32768, 0],
+ [4215, 32768, 0],
+ [15756, 32768, 0],
+ [28341, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [26726, 32768, 0],
+ [1045, 32768, 0],
+ [11703, 32768, 0],
+ [20590, 32768, 0],
+ [18554, 32768, 0],
+ [25970, 32768, 0],
+ [31938, 32768, 0],
+ [5583, 32768, 0],
+ [21313, 32768, 0],
+ [29390, 32768, 0],
+ [641, 32768, 0],
+ [22265, 32768, 0],
+ [31452, 32768, 0],
+ ],
+ [
+ [26584, 32768, 0],
+ [188, 32768, 0],
+ [8847, 32768, 0],
+ [24519, 32768, 0],
+ [22938, 32768, 0],
+ [30583, 32768, 0],
+ [32608, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [29614, 32768, 0],
+ [9068, 32768, 0],
+ [12924, 32768, 0],
+ [19538, 32768, 0],
+ [17737, 32768, 0],
+ [24619, 32768, 0],
+ [30642, 32768, 0],
+ [4119, 32768, 0],
+ [16026, 32768, 0],
+ [25657, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [31957, 32768, 0],
+ [3230, 32768, 0],
+ [11153, 32768, 0],
+ [18123, 32768, 0],
+ [20143, 32768, 0],
+ [26536, 32768, 0],
+ [31986, 32768, 0],
+ [3050, 32768, 0],
+ [14603, 32768, 0],
+ [25155, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [32363, 32768, 0],
+ [10692, 32768, 0],
+ [19090, 32768, 0],
+ [24357, 32768, 0],
+ [24442, 32768, 0],
+ [28312, 32768, 0],
+ [32169, 32768, 0],
+ [3648, 32768, 0],
+ [15690, 32768, 0],
+ [26815, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [30669, 32768, 0],
+ [3832, 32768, 0],
+ [11663, 32768, 0],
+ [18889, 32768, 0],
+ [19782, 32768, 0],
+ [23313, 32768, 0],
+ [31330, 32768, 0],
+ [5124, 32768, 0],
+ [18719, 32768, 0],
+ [28468, 32768, 0],
+ [3082, 32768, 0],
+ [20982, 32768, 0],
+ [29443, 32768, 0],
+ ],
+ [
+ [28573, 32768, 0],
+ [3183, 32768, 0],
+ [17802, 32768, 0],
+ [25977, 32768, 0],
+ [26677, 32768, 0],
+ [27832, 32768, 0],
+ [32387, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+ [
+ [
+ [26887, 32768, 0],
+ [6729, 32768, 0],
+ [10361, 32768, 0],
+ [17442, 32768, 0],
+ [15045, 32768, 0],
+ [22478, 32768, 0],
+ [29072, 32768, 0],
+ [2713, 32768, 0],
+ [11861, 32768, 0],
+ [20773, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [31903, 32768, 0],
+ [2044, 32768, 0],
+ [7528, 32768, 0],
+ [14618, 32768, 0],
+ [16182, 32768, 0],
+ [24168, 32768, 0],
+ [31037, 32768, 0],
+ [2786, 32768, 0],
+ [11194, 32768, 0],
+ [20155, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [32510, 32768, 0],
+ [8430, 32768, 0],
+ [17318, 32768, 0],
+ [24154, 32768, 0],
+ [23674, 32768, 0],
+ [28789, 32768, 0],
+ [32139, 32768, 0],
+ [3440, 32768, 0],
+ [13117, 32768, 0],
+ [22702, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ [
+ [31671, 32768, 0],
+ [2056, 32768, 0],
+ [11746, 32768, 0],
+ [16852, 32768, 0],
+ [18635, 32768, 0],
+ [24715, 32768, 0],
+ [31484, 32768, 0],
+ [4656, 32768, 0],
+ [16074, 32768, 0],
+ [24704, 32768, 0],
+ [1806, 32768, 0],
+ [14645, 32768, 0],
+ [25336, 32768, 0],
+ ],
+ [
+ [31539, 32768, 0],
+ [8433, 32768, 0],
+ [20576, 32768, 0],
+ [27904, 32768, 0],
+ [27852, 32768, 0],
+ [30026, 32768, 0],
+ [32441, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ ],
+ ],
+];
+
+pub static DEFAULT_TXFM_SPLIT_CDF: [[u16; 3]; 21] = [
+ [28581, 32768, 0],
+ [23846, 32768, 0],
+ [20847, 32768, 0],
+ [24315, 32768, 0],
+ [18196, 32768, 0],
+ [12133, 32768, 0],
+ [18791, 32768, 0],
+ [10887, 32768, 0],
+ [11005, 32768, 0],
+ [27179, 32768, 0],
+ [20004, 32768, 0],
+ [11281, 32768, 0],
+ [26549, 32768, 0],
+ [19308, 32768, 0],
+ [14224, 32768, 0],
+ [28015, 32768, 0],
+ [21546, 32768, 0],
+ [14400, 32768, 0],
+ [28165, 32768, 0],
+ [22401, 32768, 0],
+ [16088, 32768, 0],
+];
+
+pub static DEFAULT_UNI_COMP_REF_CDF: [[[u16; 3]; 3]; 3] = [
+ [[5284, 32768, 0], [3865, 32768, 0], [3128, 32768, 0]],
+ [[23152, 32768, 0], [14173, 32768, 0], [15270, 32768, 0]],
+ [[31774, 32768, 0], [25120, 32768, 0], [26710, 32768, 0]],
+];
+
+pub static DEFAULT_USE_OBMC_CDF: [[u16; 3]; 22] = [
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [10437, 32768, 0],
+ [9371, 32768, 0],
+ [9301, 32768, 0],
+ [17432, 32768, 0],
+ [14423, 32768, 0],
+ [15142, 32768, 0],
+ [25817, 32768, 0],
+ [22823, 32768, 0],
+ [22083, 32768, 0],
+ [30128, 32768, 0],
+ [31014, 32768, 0],
+ [31560, 32768, 0],
+ [32638, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [23664, 32768, 0],
+ [20901, 32768, 0],
+ [24008, 32768, 0],
+ [26879, 32768, 0],
+];
+
+pub static DEFAULT_USE_SGRPROJ_CDF: [u16; 3] = [16855, 32768, 0];
+
+pub static DEFAULT_USE_WIENER_CDF: [u16; 3] = [11570, 32768, 0];
+
+pub static DEFAULT_UV_MODE_CFL_ALLOWED_CDF: [[u16; 15]; 13] = [
+ [10407, 11208, 12900, 13181, 13823, 14175, 14899, 15656, 15986, 20086, 20995, 22455, 24212, 32768, 0],
+ [4532, 19780, 20057, 20215, 20428, 21071, 21199, 21451, 22099, 24228, 24693, 27032, 29472, 32768, 0],
+ [5273, 5379, 20177, 20270, 20385, 20439, 20949, 21695, 21774, 23138, 24256, 24703, 26679, 32768, 0],
+ [6740, 7167, 7662, 14152, 14536, 14785, 15034, 16741, 18371, 21520, 22206, 23389, 24182, 32768, 0],
+ [4987, 5368, 5928, 6068, 19114, 20315, 21857, 22253, 22411, 24911, 25380, 26027, 26376, 32768, 0],
+ [5370, 6889, 7247, 7393, 9498, 21114, 21402, 21753, 21981, 24780, 25386, 26517, 27176, 32768, 0],
+ [4816, 4961, 7204, 7326, 8765, 8930, 20169, 20682, 20803, 23188, 23763, 24455, 24940, 32768, 0],
+ [6608, 6740, 8529, 9049, 9257, 9356, 9735, 18827, 19059, 22336, 23204, 23964, 24793, 32768, 0],
+ [5998, 7419, 7781, 8933, 9255, 9549, 9753, 10417, 18898, 22494, 23139, 24764, 25989, 32768, 0],
+ [10660, 11298, 12550, 12957, 13322, 13624, 14040, 15004, 15534, 20714, 21789, 23443, 24861, 32768, 0],
+ [10522, 11530, 12552, 12963, 13378, 13779, 14245, 15235, 15902, 20102, 22696, 23774, 25838, 32768, 0],
+ [10099, 10691, 12639, 13049, 13386, 13665, 14125, 15163, 15636, 19676, 20474, 23519, 25208, 32768, 0],
+ [3144, 5087, 7382, 7504, 7593, 7690, 7801, 8064, 8232, 9248, 9875, 10521, 29048, 32768, 0],
+];
+
+pub static DEFAULT_UV_MODE_CFL_NOT_ALLOWED_CDF: [[u16; 14]; 13] = [
+ [22631, 24152, 25378, 25661, 25986, 26520, 27055, 27923, 28244, 30059, 30941, 31961, 32768, 0],
+ [9513, 26881, 26973, 27046, 27118, 27664, 27739, 27824, 28359, 29505, 29800, 31796, 32768, 0],
+ [9845, 9915, 28663, 28704, 28757, 28780, 29198, 29822, 29854, 30764, 31777, 32029, 32768, 0],
+ [13639, 13897, 14171, 25331, 25606, 25727, 25953, 27148, 28577, 30612, 31355, 32493, 32768, 0],
+ [9764, 9835, 9930, 9954, 25386, 27053, 27958, 28148, 28243, 31101, 31744, 32363, 32768, 0],
+ [11825, 13589, 13677, 13720, 15048, 29213, 29301, 29458, 29711, 31161, 31441, 32550, 32768, 0],
+ [14175, 14399, 16608, 16821, 17718, 17775, 28551, 30200, 30245, 31837, 32342, 32667, 32768, 0],
+ [12885, 13038, 14978, 15590, 15673, 15748, 16176, 29128, 29267, 30643, 31961, 32461, 32768, 0],
+ [12026, 13661, 13874, 15305, 15490, 15726, 15995, 16273, 28443, 30388, 30767, 32416, 32768, 0],
+ [19052, 19840, 20579, 20916, 21150, 21467, 21885, 22719, 23174, 28861, 30379, 32175, 32768, 0],
+ [18627, 19649, 20974, 21219, 21492, 21816, 22199, 23119, 23527, 27053, 31397, 32148, 32768, 0],
+ [17026, 19004, 19997, 20339, 20586, 21103, 21349, 21907, 22482, 25896, 26541, 31819, 32768, 0],
+ [12124, 13759, 14959, 14992, 15007, 15051, 15078, 15166, 15255, 15753, 16039, 16606, 32768, 0],
+];
+
+pub static DEFAULT_WEDGE_INDEX_CDF: [[u16; 17]; 22] = [
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2438, 4440, 6599, 8663, 11005, 12874, 15751, 18094, 20359, 22362, 24127, 25702, 27752, 29450, 31171, 32768, 0],
+ [806, 3266, 6005, 6738, 7218, 7367, 7771, 14588, 16323, 17367, 18452, 19422, 22839, 26127, 29629, 32768, 0],
+ [2779, 3738, 4683, 7213, 7775, 8017, 8655, 14357, 17939, 21332, 24520, 27470, 29456, 30529, 31656, 32768, 0],
+ [1684, 3625, 5675, 7108, 9302, 11274, 14429, 17144, 19163, 20961, 22884, 24471, 26719, 28714, 30877, 32768, 0],
+ [1142, 3491, 6277, 7314, 8089, 8355, 9023, 13624, 15369, 16730, 18114, 19313, 22521, 26012, 29550, 32768, 0],
+ [2742, 4195, 5727, 8035, 8980, 9336, 10146, 14124, 17270, 20533, 23434, 25972, 27944, 29570, 31416, 32768, 0],
+ [1727, 3948, 6101, 7796, 9841, 12344, 15766, 18944, 20638, 22038, 23963, 25311, 26988, 28766, 31012, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [154, 987, 1925, 2051, 2088, 2111, 2151, 23033, 23703, 24284, 24985, 25684, 27259, 28883, 30911, 32768, 0],
+ [1135, 1322, 1493, 2635, 2696, 2737, 2770, 21016, 22935, 25057, 27251, 29173, 30089, 30960, 31933, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+ [2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0],
+];
+
+pub static DEFAULT_WEDGE_INTER_INTRA_CDF: [[u16; 3]; 22] = [
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [20036, 32768, 0],
+ [24957, 32768, 0],
+ [26704, 32768, 0],
+ [27530, 32768, 0],
+ [29564, 32768, 0],
+ [29444, 32768, 0],
+ [26872, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+ [16384, 32768, 0],
+];
+
+pub static DEFAULT_Y_MODE_CDF: [[u16; 14]; 4] = [
+ [22801, 23489, 24293, 24756, 25601, 26123, 26606, 27418, 27945, 29228, 29685, 30349, 32768, 0],
+ [18673, 19845, 22631, 23318, 23950, 24649, 25527, 27364, 28152, 29701, 29984, 30852, 32768, 0],
+ [19770, 20979, 23396, 23939, 24241, 24654, 25136, 27073, 27830, 29360, 29730, 30659, 32768, 0],
+ [20155, 21301, 22838, 23178, 23261, 23533, 23703, 24804, 25352, 26575, 27016, 28049, 32768, 0],
+];
+
+pub static DEFAULT_ZERO_MV_CDF: [[u16; 3]; 2] = [[2175, 32768, 0], [1054, 32768, 0]];
+
+pub static DIV_LUT: [u16; 257] = [
+ 16384, 16320, 16257, 16194, 16132, 16070, 16009, 15948, 15888, 15828, 15768, 15709, 15650, 15592, 15534, 15477, 15420, 15364, 15308, 15252, 15197, 15142,
+ 15087, 15033, 14980, 14926, 14873, 14821, 14769, 14717, 14665, 14614, 14564, 14513, 14463, 14413, 14364, 14315, 14266, 14218, 14170, 14122, 14075, 14028,
+ 13981, 13935, 13888, 13843, 13797, 13752, 13707, 13662, 13618, 13574, 13530, 13487, 13443, 13400, 13358, 13315, 13273, 13231, 13190, 13148, 13107, 13066,
+ 13026, 12985, 12945, 12906, 12866, 12827, 12788, 12749, 12710, 12672, 12633, 12596, 12558, 12520, 12483, 12446, 12409, 12373, 12336, 12300, 12264, 12228,
+ 12193, 12157, 12122, 12087, 12053, 12018, 11984, 11950, 11916, 11882, 11848, 11815, 11782, 11749, 11716, 11683, 11651, 11619, 11586, 11555, 11523, 11491,
+ 11460, 11429, 11398, 11367, 11336, 11305, 11275, 11245, 11215, 11185, 11155, 11125, 11096, 11067, 11038, 11009, 10980, 10951, 10923, 10894, 10866, 10838,
+ 10810, 10782, 10755, 10727, 10700, 10673, 10645, 10618, 10592, 10565, 10538, 10512, 10486, 10460, 10434, 10408, 10382, 10356, 10331, 10305, 10280, 10255,
+ 10230, 10205, 10180, 10156, 10131, 10107, 10082, 10058, 10034, 10010, 9986, 9963, 9939, 9916, 9892, 9869, 9846, 9823, 9800, 9777, 9754, 9732, 9709, 9687,
+ 9664, 9642, 9620, 9598, 9576, 9554, 9533, 9511, 9489, 9468, 9447, 9425, 9404, 9383, 9362, 9341, 9321, 9300, 9279, 9259, 9239, 9218, 9198, 9178, 9158, 9138,
+ 9118, 9098, 9079, 9059, 9039, 9020, 9001, 8981, 8962, 8943, 8924, 8905, 8886, 8867, 8849, 8830, 8812, 8793, 8775, 8756, 8738, 8720, 8702, 8684, 8666, 8648,
+ 8630, 8613, 8595, 8577, 8560, 8542, 8525, 8508, 8490, 8473, 8456, 8439, 8422, 8405, 8389, 8372, 8355, 8339, 8322, 8306, 8289, 8273, 8257, 8240, 8224, 8208,
+ 8192,
+];
+
+pub static DIV_MULT: [u16; 32] = [
+ 0, 16384, 8192, 5461, 4096, 3276, 2730, 2340, 2048, 1820, 1638, 1489, 1365, 1260, 1170, 1092, 1024, 963, 910, 862, 819, 780, 744, 712, 682, 655, 630, 606,
+ 585, 564, 546, 528,
+];
+
+pub static DIV_TABLE: [u16; 9] = [0, 840, 420, 280, 210, 168, 140, 120, 105];
+
+pub static DR_INTRA_DERIVATIVE: [u16; 90] = [
+ 0, 0, 0, 1023, 0, 0, 547, 0, 0, 372, 0, 0, 0, 0, 273, 0, 0, 215, 0, 0, 178, 0, 0, 151, 0, 0, 132, 0, 0, 116, 0, 0, 102, 0, 0, 0, 90, 0, 0, 80, 0, 0, 71, 0,
+ 0, 64, 0, 0, 57, 0, 0, 51, 0, 0, 45, 0, 0, 0, 40, 0, 0, 35, 0, 0, 31, 0, 0, 27, 0, 0, 23, 0, 0, 19, 0, 0, 15, 0, 0, 0, 0, 11, 0, 0, 7, 0, 0, 3, 0, 0,
+];
+
+pub static FILTER_INTRA_MODE_TO_INTRA_DIR: [u8; 5] = [0, 1, 2, 6, 0];
+
+pub static GAUSSIAN_SEQUENCE: [i16; 2048] = [
+ 56, 568, -180, 172, 124, -84, 172, -64, -900, 24, 820, 224, 1248, 996, 272, -8, -916, -388, -732, -104, -188, 800, 112, -652, -320, -376, 140, -252, 492,
+ -168, 44, -788, 588, -584, 500, -228, 12, 680, 272, -476, 972, -100, 652, 368, 432, -196, -720, -192, 1000, -332, 652, -136, -552, -604, -4, 192, -220,
+ -136, 1000, -52, 372, -96, -624, 124, -24, 396, 540, -12, -104, 640, 464, 244, -208, -84, 368, -528, -740, 248, -968, -848, 608, 376, -60, -292, -40, -156,
+ 252, -292, 248, 224, -280, 400, -244, 244, -60, 76, -80, 212, 532, 340, 128, -36, 824, -352, -60, -264, -96, -612, 416, -704, 220, -204, 640, -160, 1220,
+ -408, 900, 336, 20, -336, -96, -792, 304, 48, -28, -1232, -1172, -448, 104, -292, -520, 244, 60, -948, 0, -708, 268, 108, 356, -548, 488, -344, -136, 488,
+ -196, -224, 656, -236, -1128, 60, 4, 140, 276, -676, -376, 168, -108, 464, 8, 564, 64, 240, 308, -300, -400, -456, -136, 56, 120, -408, -116, 436, 504,
+ -232, 328, 844, -164, -84, 784, -168, 232, -224, 348, -376, 128, 568, 96, -1244, -288, 276, 848, 832, -360, 656, 464, -384, -332, -356, 728, -388, 160,
+ -192, 468, 296, 224, 140, -776, -100, 280, 4, 196, 44, -36, -648, 932, 16, 1428, 28, 528, 808, 772, 20, 268, 88, -332, -284, 124, -384, -448, 208, -228,
+ -1044, -328, 660, 380, -148, -300, 588, 240, 540, 28, 136, -88, -436, 256, 296, -1000, 1400, 0, -48, 1056, -136, 264, -528, -1108, 632, -484, -592, -344,
+ 796, 124, -668, -768, 388, 1296, -232, -188, -200, -288, -4, 308, 100, -168, 256, -500, 204, -508, 648, -136, 372, -272, -120, -1004, -552, -548, -384,
+ 548, -296, 428, -108, -8, -912, -324, -224, -88, -112, -220, -100, 996, -796, 548, 360, -216, 180, 428, -200, -212, 148, 96, 148, 284, 216, -412, -320,
+ 120, -300, -384, -604, -572, -332, -8, -180, -176, 696, 116, -88, 628, 76, 44, -516, 240, -208, -40, 100, -592, 344, -308, -452, -228, 20, 916, -1752,
+ -136, -340, -804, 140, 40, 512, 340, 248, 184, -492, 896, -156, 932, -628, 328, -688, -448, -616, -752, -100, 560, -1020, 180, -800, -64, 76, 576, 1068,
+ 396, 660, 552, -108, -28, 320, -628, 312, -92, -92, -472, 268, 16, 560, 516, -672, -52, 492, -100, 260, 384, 284, 292, 304, -148, 88, -152, 1012, 1064,
+ -228, 164, -376, -684, 592, -392, 156, 196, -524, -64, -884, 160, -176, 636, 648, 404, -396, -436, 864, 424, -728, 988, -604, 904, -592, 296, -224, 536,
+ -176, -920, 436, -48, 1176, -884, 416, -776, -824, -884, 524, -548, -564, -68, -164, -96, 692, 364, -692, -1012, -68, 260, -480, 876, -1116, 452, -332,
+ -352, 892, -1088, 1220, -676, 12, -292, 244, 496, 372, -32, 280, 200, 112, -440, -96, 24, -644, -184, 56, -432, 224, -980, 272, -260, 144, -436, 420, 356,
+ 364, -528, 76, 172, -744, -368, 404, -752, -416, 684, -688, 72, 540, 416, 92, 444, 480, -72, -1416, 164, -1172, -68, 24, 424, 264, 1040, 128, -912, -524,
+ -356, 64, 876, -12, 4, -88, 532, 272, -524, 320, 276, -508, 940, 24, -400, -120, 756, 60, 236, -412, 100, 376, -484, 400, -100, -740, -108, -260, 328,
+ -268, 224, -200, -416, 184, -604, -564, -20, 296, 60, 892, -888, 60, 164, 68, -760, 216, -296, 904, -336, -28, 404, -356, -568, -208, -1480, -512, 296,
+ 328, -360, -164, -1560, -776, 1156, -428, 164, -504, -112, 120, -216, -148, -264, 308, 32, 64, -72, 72, 116, 176, -64, -272, 460, -536, -784, -280, 348,
+ 108, -752, -132, 524, -540, -776, 116, -296, -1196, -288, -560, 1040, -472, 116, -848, -1116, 116, 636, 696, 284, -176, 1016, 204, -864, -648, -248, 356,
+ 972, -584, -204, 264, 880, 528, -24, -184, 116, 448, -144, 828, 524, 212, -212, 52, 12, 200, 268, -488, -404, -880, 824, -672, -40, 908, -248, 500, 716,
+ -576, 492, -576, 16, 720, -108, 384, 124, 344, 280, 576, -500, 252, 104, -308, 196, -188, -8, 1268, 296, 1032, -1196, 436, 316, 372, -432, -200, -660, 704,
+ -224, 596, -132, 268, 32, -452, 884, 104, -1008, 424, -1348, -280, 4, -1168, 368, 476, 696, 300, -8, 24, 180, -592, -196, 388, 304, 500, 724, -160, 244,
+ -84, 272, -256, -420, 320, 208, -144, -156, 156, 364, 452, 28, 540, 316, 220, -644, -248, 464, 72, 360, 32, -388, 496, -680, -48, 208, -116, -408, 60,
+ -604, -392, 548, -840, 784, -460, 656, -544, -388, -264, 908, -800, -628, -612, -568, 572, -220, 164, 288, -16, -308, 308, -112, -636, -760, 280, -668,
+ 432, 364, 240, -196, 604, 340, 384, 196, 592, -44, -500, 432, -580, -132, 636, -76, 392, 4, -412, 540, 508, 328, -356, -36, 16, -220, -64, -248, -60, 24,
+ -192, 368, 1040, 92, -24, -1044, -32, 40, 104, 148, 192, -136, -520, 56, -816, -224, 732, 392, 356, 212, -80, -424, -1008, -324, 588, -1496, 576, 460,
+ -816, -848, 56, -580, -92, -1372, -112, -496, 200, 364, 52, -140, 48, -48, -60, 84, 72, 40, 132, -356, -268, -104, -284, -404, 732, -520, 164, -304, -540,
+ 120, 328, -76, -460, 756, 388, 588, 236, -436, -72, -176, -404, -316, -148, 716, -604, 404, -72, -88, -888, -68, 944, 88, -220, -344, 960, 472, 460, -232,
+ 704, 120, 832, -228, 692, -508, 132, -476, 844, -748, -364, -44, 1116, -1104, -1056, 76, 428, 552, -692, 60, 356, 96, -384, -188, -612, -576, 736, 508,
+ 892, 352, -1132, 504, -24, -352, 324, 332, -600, -312, 292, 508, -144, -8, 484, 48, 284, -260, -240, 256, -100, -292, -204, -44, 472, -204, 908, -188,
+ -1000, -256, 92, 1164, -392, 564, 356, 652, -28, -884, 256, 484, -192, 760, -176, 376, -524, -452, -436, 860, -736, 212, 124, 504, -476, 468, 76, -472,
+ 552, -692, -944, -620, 740, -240, 400, 132, 20, 192, -196, 264, -668, -1012, -60, 296, -316, -828, 76, -156, 284, -768, -448, -832, 148, 248, 652, 616,
+ 1236, 288, -328, -400, -124, 588, 220, 520, -696, 1032, 768, -740, -92, -272, 296, 448, -464, 412, -200, 392, 440, -200, 264, -152, -260, 320, 1032, 216,
+ 320, -8, -64, 156, -1016, 1084, 1172, 536, 484, -432, 132, 372, -52, -256, 84, 116, -352, 48, 116, 304, -384, 412, 924, -300, 528, 628, 180, 648, 44, -980,
+ -220, 1320, 48, 332, 748, 524, -268, -720, 540, -276, 564, -344, -208, -196, 436, 896, 88, -392, 132, 80, -964, -288, 568, 56, -48, -456, 888, 8, 552,
+ -156, -292, 948, 288, 128, -716, -292, 1192, -152, 876, 352, -600, -260, -812, -468, -28, -120, -32, -44, 1284, 496, 192, 464, 312, -76, -516, -380, -456,
+ -1012, -48, 308, -156, 36, 492, -156, -808, 188, 1652, 68, -120, -116, 316, 160, -140, 352, 808, -416, 592, 316, -480, 56, 528, -204, -568, 372, -232, 752,
+ -344, 744, -4, 324, -416, -600, 768, 268, -248, -88, -132, -420, -432, 80, -288, 404, -316, -1216, -588, 520, -108, 92, -320, 368, -480, -216, -92, 1688,
+ -300, 180, 1020, -176, 820, -68, -228, -260, 436, -904, 20, 40, -508, 440, -736, 312, 332, 204, 760, -372, 728, 96, -20, -632, -520, -560, 336, 1076, -64,
+ -532, 776, 584, 192, 396, -728, -520, 276, -188, 80, -52, -612, -252, -48, 648, 212, -688, 228, -52, -260, 428, -412, -272, -404, 180, 816, -796, 48, 152,
+ 484, -88, -216, 988, 696, 188, -528, 648, -116, -180, 316, 476, 12, -564, 96, 476, -252, -364, -376, -392, 556, -256, -576, 260, -352, 120, -16, -136,
+ -260, -492, 72, 556, 660, 580, 616, 772, 436, 424, -32, -324, -1268, 416, -324, -80, 920, 160, 228, 724, 32, -516, 64, 384, 68, -128, 136, 240, 248, -204,
+ -68, 252, -932, -120, -480, -628, -84, 192, 852, -404, -288, -132, 204, 100, 168, -68, -196, -868, 460, 1080, 380, -80, 244, 0, 484, -888, 64, 184, 352,
+ 600, 460, 164, 604, -196, 320, -64, 588, -184, 228, 12, 372, 48, -848, -344, 224, 208, -200, 484, 128, -20, 272, -468, -840, 384, 256, -720, -520, -464,
+ -580, 112, -120, 644, -356, -208, -608, -528, 704, 560, -424, 392, 828, 40, 84, 200, -152, 0, -144, 584, 280, -120, 80, -556, -972, -196, -472, 724, 80,
+ 168, -32, 88, 160, -688, 0, 160, 356, 372, -776, 740, -128, 676, -248, -480, 4, -364, 96, 544, 232, -1032, 956, 236, 356, 20, -40, 300, 24, -676, -596,
+ 132, 1120, -104, 532, -1096, 568, 648, 444, 508, 380, 188, -376, -604, 1488, 424, 24, 756, -220, -192, 716, 120, 920, 688, 168, 44, -460, 568, 284, 1144,
+ 1160, 600, 424, 888, 656, -356, -320, 220, 316, -176, -724, -188, -816, -628, -348, -228, -380, 1012, -452, -660, 736, 928, 404, -696, -72, -268, -892,
+ 128, 184, -344, -780, 360, 336, 400, 344, 428, 548, -112, 136, -228, -216, -820, -516, 340, 92, -136, 116, -300, 376, -244, 100, -316, -520, -284, -12,
+ 824, 164, -548, -180, -128, 116, -924, -828, 268, -368, -580, 620, 192, 160, 0, -1676, 1068, 424, -56, -360, 468, -156, 720, 288, -528, 556, -364, 548,
+ -148, 504, 316, 152, -648, -620, -684, -24, -376, -384, -108, -920, -1032, 768, 180, -264, -508, -1268, -260, -60, 300, -240, 988, 724, -376, -576, -212,
+ -736, 556, 192, 1092, -620, -880, 376, -56, -4, -216, -32, 836, 268, 396, 1332, 864, -600, 100, 56, -412, -92, 356, 180, 884, -468, -436, 292, -388, -804,
+ -704, -840, 368, -348, 140, -724, 1536, 940, 372, 112, -372, 436, -480, 1136, 296, -32, -228, 132, -48, -220, 868, -1016, -60, -1044, -464, 328, 916, 244,
+ 12, -736, -296, 360, 468, -376, -108, -92, 788, 368, -56, 544, 400, -672, -420, 728, 16, 320, 44, -284, -380, -796, 488, 132, 204, -596, -372, 88, -152,
+ -908, -636, -572, -624, -116, -692, -200, -56, 276, -88, 484, -324, 948, 864, 1000, -456, -184, -276, 292, -296, 156, 676, 320, 160, 908, -84, -1236, -288,
+ -116, 260, -372, -644, 732, -756, -96, 84, 344, -520, 348, -688, 240, -84, 216, -1044, -136, -676, -396, -1500, 960, -40, 176, 168, 1516, 420, -504, -344,
+ -364, -360, 1216, -940, -380, -212, 252, -660, -708, 484, -444, -152, 928, -120, 1112, 476, -260, 560, -148, -344, 108, -196, 228, -288, 504, 560, -328,
+ -88, 288, -1008, 460, -228, 468, -836, -196, 76, 388, 232, 412, -1168, -716, -644, 756, -172, -356, -504, 116, 432, 528, 48, 476, -168, -608, 448, 160,
+ -532, -272, 28, -676, -12, 828, 980, 456, 520, 104, -104, 256, -344, -4, -28, -368, -52, -524, -572, -556, -200, 768, 1124, -208, -512, 176, 232, 248,
+ -148, -888, 604, -600, -304, 804, -156, -212, 488, -192, -804, -256, 368, -360, -916, -328, 228, -240, -448, -472, 856, -556, -364, 572, -12, -156, -368,
+ -340, 432, 252, -752, -152, 288, 268, -580, -848, -592, 108, -76, 244, 312, -716, 592, -80, 436, 360, 4, -248, 160, 516, 584, 732, 44, -468, -280, -292,
+ -156, -588, 28, 308, 912, 24, 124, 156, 180, -252, 944, -924, -772, -520, -428, -624, 300, -212, -1144, 32, -724, 800, -1128, -212, -1288, -848, 180, -416,
+ 440, 192, -576, -792, -76, -1080, 80, -532, -352, -132, 380, -820, 148, 1112, 128, 164, 456, 700, -924, 144, -668, -384, 648, -832, 508, 552, -52, -100,
+ -656, 208, -568, 748, -88, 680, 232, 300, 192, -408, -1012, -152, -252, -268, 272, -876, -664, -648, -332, -136, 16, 12, 1152, -28, 332, -536, 320, -672,
+ -460, -316, 532, -260, 228, -40, 1052, -816, 180, 88, -496, -556, -672, -368, 428, 92, 356, 404, -408, 252, 196, -176, -556, 792, 268, 32, 372, 40, 96,
+ -332, 328, 120, 372, -900, -40, 472, -264, -592, 952, 128, 656, 112, 664, -232, 420, 4, -344, -464, 556, 244, -416, -32, 252, 0, -412, 188, -696, 508,
+ -476, 324, -1096, 656, -312, 560, 264, -136, 304, 160, -64, -580, 248, 336, -720, 560, -348, -288, -276, -196, -500, 852, -544, -236, -1128, -992, -776,
+ 116, 56, 52, 860, 884, 212, -12, 168, 1020, 512, -552, 924, -148, 716, 188, 164, -340, -520, -184, 880, -152, -680, -208, -1156, -300, -528, -472, 364,
+ 100, -744, -1056, -32, 540, 280, 144, -676, -32, -232, -280, -224, 96, 568, -76, 172, 148, 148, 104, 32, -296, -32, 788, -80, 32, -16, 280, 288, 944, 428,
+ -484,
+];
+
+pub static II_WEIGHTS_1D: [u8; 128] = [
+ 60, 58, 56, 54, 52, 50, 48, 47, 45, 44, 42, 41, 39, 38, 37, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 22, 21, 20, 19, 19, 18, 18, 17, 16, 16,
+ 15, 15, 14, 14, 13, 13, 12, 12, 12, 11, 11, 10, 10, 10, 9, 9, 9, 8, 8, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+];
+
+pub static INTRA_EDGE_KERNEL: [[u8; 5]; 3] = [[0, 4, 8, 4, 0], [0, 5, 6, 5, 0], [2, 4, 4, 4, 2]];
+
+pub static INTRA_FILTER_TAPS: [[[i8; 7]; 8]; 5] = [
+ [
+ [-6, 10, 0, 0, 0, 12, 0],
+ [-5, 2, 10, 0, 0, 9, 0],
+ [-3, 1, 1, 10, 0, 7, 0],
+ [-3, 1, 1, 2, 10, 5, 0],
+ [-4, 6, 0, 0, 0, 2, 12],
+ [-3, 2, 6, 0, 0, 2, 9],
+ [-3, 2, 2, 6, 0, 2, 7],
+ [-3, 1, 2, 2, 6, 3, 5],
+ ],
+ [
+ [-10, 16, 0, 0, 0, 10, 0],
+ [-6, 0, 16, 0, 0, 6, 0],
+ [-4, 0, 0, 16, 0, 4, 0],
+ [-2, 0, 0, 0, 16, 2, 0],
+ [-10, 16, 0, 0, 0, 0, 10],
+ [-6, 0, 16, 0, 0, 0, 6],
+ [-4, 0, 0, 16, 0, 0, 4],
+ [-2, 0, 0, 0, 16, 0, 2],
+ ],
+ [
+ [-8, 8, 0, 0, 0, 16, 0],
+ [-8, 0, 8, 0, 0, 16, 0],
+ [-8, 0, 0, 8, 0, 16, 0],
+ [-8, 0, 0, 0, 8, 16, 0],
+ [-4, 4, 0, 0, 0, 0, 16],
+ [-4, 0, 4, 0, 0, 0, 16],
+ [-4, 0, 0, 4, 0, 0, 16],
+ [-4, 0, 0, 0, 4, 0, 16],
+ ],
+ [
+ [-2, 8, 0, 0, 0, 10, 0],
+ [-1, 3, 8, 0, 0, 6, 0],
+ [-1, 2, 3, 8, 0, 4, 0],
+ [0, 1, 2, 3, 8, 2, 0],
+ [-1, 4, 0, 0, 0, 3, 10],
+ [-1, 3, 4, 0, 0, 4, 6],
+ [-1, 2, 3, 4, 0, 4, 4],
+ [-1, 2, 2, 3, 4, 3, 3],
+ ],
+ [
+ [-12, 14, 0, 0, 0, 14, 0],
+ [-10, 0, 14, 0, 0, 12, 0],
+ [-9, 0, 0, 14, 0, 11, 0],
+ [-8, 0, 0, 0, 14, 10, 0],
+ [-10, 12, 0, 0, 0, 0, 14],
+ [-9, 1, 12, 0, 0, 0, 12],
+ [-8, 0, 0, 12, 0, 1, 11],
+ [-7, 0, 0, 1, 12, 1, 9],
+ ],
+];
+
+pub static INTRA_MODE_CONTEXT: [u8; 13] = [0, 1, 2, 3, 4, 4, 4, 4, 3, 0, 1, 2, 0];
+
+pub static MAG_REF_OFFSET_WITH_TX_CLASS: [[[u8; 2]; 3]; 3] = [[[0, 1], [1, 0], [1, 1]], [[0, 1], [1, 0], [0, 2]], [[0, 1], [1, 0], [2, 0]]];
+
+pub static MAX_TX_DEPTH_TABLE: [u8; 22] = [0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 2, 2, 3, 3, 4, 4];
+
+pub static MAX_TX_SIZE_RECT: [u8; 22] = [0, 5, 6, 1, 7, 8, 2, 9, 10, 3, 11, 12, 4, 4, 4, 4, 13, 14, 15, 16, 17, 18];
+
+pub static MCOL_SCAN_16X16: [u16; 256] = [
+ 0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 1, 17, 33, 49, 65, 81, 97, 113, 129, 145, 161, 177, 193, 209, 225, 241, 2, 18, 34,
+ 50, 66, 82, 98, 114, 130, 146, 162, 178, 194, 210, 226, 242, 3, 19, 35, 51, 67, 83, 99, 115, 131, 147, 163, 179, 195, 211, 227, 243, 4, 20, 36, 52, 68, 84,
+ 100, 116, 132, 148, 164, 180, 196, 212, 228, 244, 5, 21, 37, 53, 69, 85, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245, 6, 22, 38, 54, 70, 86, 102, 118,
+ 134, 150, 166, 182, 198, 214, 230, 246, 7, 23, 39, 55, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247, 8, 24, 40, 56, 72, 88, 104, 120, 136, 152,
+ 168, 184, 200, 216, 232, 248, 9, 25, 41, 57, 73, 89, 105, 121, 137, 153, 169, 185, 201, 217, 233, 249, 10, 26, 42, 58, 74, 90, 106, 122, 138, 154, 170,
+ 186, 202, 218, 234, 250, 11, 27, 43, 59, 75, 91, 107, 123, 139, 155, 171, 187, 203, 219, 235, 251, 12, 28, 44, 60, 76, 92, 108, 124, 140, 156, 172, 188,
+ 204, 220, 236, 252, 13, 29, 45, 61, 77, 93, 109, 125, 141, 157, 173, 189, 205, 221, 237, 253, 14, 30, 46, 62, 78, 94, 110, 126, 142, 158, 174, 190, 206,
+ 222, 238, 254, 15, 31, 47, 63, 79, 95, 111, 127, 143, 159, 175, 191, 207, 223, 239, 255,
+];
+
+pub static MCOL_SCAN_16X4: [u16; 64] = [
+ 0, 16, 32, 48, 1, 17, 33, 49, 2, 18, 34, 50, 3, 19, 35, 51, 4, 20, 36, 52, 5, 21, 37, 53, 6, 22, 38, 54, 7, 23, 39, 55, 8, 24, 40, 56, 9, 25, 41, 57, 10,
+ 26, 42, 58, 11, 27, 43, 59, 12, 28, 44, 60, 13, 29, 45, 61, 14, 30, 46, 62, 15, 31, 47, 63,
+];
+
+pub static MCOL_SCAN_16X8: [u16; 128] = [
+ 0, 16, 32, 48, 64, 80, 96, 112, 1, 17, 33, 49, 65, 81, 97, 113, 2, 18, 34, 50, 66, 82, 98, 114, 3, 19, 35, 51, 67, 83, 99, 115, 4, 20, 36, 52, 68, 84, 100,
+ 116, 5, 21, 37, 53, 69, 85, 101, 117, 6, 22, 38, 54, 70, 86, 102, 118, 7, 23, 39, 55, 71, 87, 103, 119, 8, 24, 40, 56, 72, 88, 104, 120, 9, 25, 41, 57, 73,
+ 89, 105, 121, 10, 26, 42, 58, 74, 90, 106, 122, 11, 27, 43, 59, 75, 91, 107, 123, 12, 28, 44, 60, 76, 92, 108, 124, 13, 29, 45, 61, 77, 93, 109, 125, 14,
+ 30, 46, 62, 78, 94, 110, 126, 15, 31, 47, 63, 79, 95, 111, 127,
+];
+
+pub static MCOL_SCAN_4X16: [u16; 64] = [
+ 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 2, 6, 10, 14, 18, 22, 26, 30, 34,
+ 38, 42, 46, 50, 54, 58, 62, 3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63,
+];
+
+pub static MCOL_SCAN_4X4: [u16; 16] = [0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15];
+
+pub static MCOL_SCAN_4X8: [u16; 32] = [0, 4, 8, 12, 16, 20, 24, 28, 1, 5, 9, 13, 17, 21, 25, 29, 2, 6, 10, 14, 18, 22, 26, 30, 3, 7, 11, 15, 19, 23, 27, 31];
+
+pub static MCOL_SCAN_8X16: [u16; 128] = [
+ 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 113, 121, 2, 10, 18, 26, 34, 42,
+ 50, 58, 66, 74, 82, 90, 98, 106, 114, 122, 3, 11, 19, 27, 35, 43, 51, 59, 67, 75, 83, 91, 99, 107, 115, 123, 4, 12, 20, 28, 36, 44, 52, 60, 68, 76, 84, 92,
+ 100, 108, 116, 124, 5, 13, 21, 29, 37, 45, 53, 61, 69, 77, 85, 93, 101, 109, 117, 125, 6, 14, 22, 30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 110, 118, 126,
+ 7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127,
+];
+
+pub static MCOL_SCAN_8X4: [u16; 32] = [0, 8, 16, 24, 1, 9, 17, 25, 2, 10, 18, 26, 3, 11, 19, 27, 4, 12, 20, 28, 5, 13, 21, 29, 6, 14, 22, 30, 7, 15, 23, 31];
+
+pub static MCOL_SCAN_8X8: [u16; 64] = [
+ 0, 8, 16, 24, 32, 40, 48, 56, 1, 9, 17, 25, 33, 41, 49, 57, 2, 10, 18, 26, 34, 42, 50, 58, 3, 11, 19, 27, 35, 43, 51, 59, 4, 12, 20, 28, 36, 44, 52, 60, 5,
+ 13, 21, 29, 37, 45, 53, 61, 6, 14, 22, 30, 38, 46, 54, 62, 7, 15, 23, 31, 39, 47, 55, 63,
+];
+
+pub static MI_HEIGHT_LOG2: [u8; 22] = [0, 1, 0, 1, 2, 1, 2, 3, 2, 3, 4, 3, 4, 5, 4, 5, 2, 0, 3, 1, 4, 2];
+
+pub static MI_WIDTH_LOG2: [u8; 22] = [0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 0, 2, 1, 3, 2, 4];
+
+pub static MODE_TO_ANGLE: [u8; 13] = [0, 90, 180, 45, 135, 113, 157, 203, 67, 0, 0, 0, 0];
+
+pub static MODE_TO_TXFM: [u8; 14] = [0, 1, 2, 0, 3, 1, 2, 2, 1, 3, 1, 2, 3, 0];
+
+pub static MROW_SCAN_16X16: [u16; 256] = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145,
+ 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
+ 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,
+ 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
+ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255,
+];
+
+pub static MROW_SCAN_16X4: [u16; 64] = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+];
+
+pub static MROW_SCAN_16X8: [u16; 128] = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
+];
+
+pub static MROW_SCAN_4X16: [u16; 64] = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+];
+
+pub static MROW_SCAN_4X4: [u16; 16] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
+
+pub static MROW_SCAN_4X8: [u16; 32] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
+
+pub static MROW_SCAN_8X16: [u16; 128] = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
+];
+
+pub static MROW_SCAN_8X4: [u16; 32] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
+
+pub static MROW_SCAN_8X8: [u16; 64] = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+];
+
+pub static NUM_4X4_BLOCKS_HIGH: [u8; 22] = [1, 2, 1, 2, 4, 2, 4, 8, 4, 8, 16, 8, 16, 32, 16, 32, 4, 1, 8, 2, 16, 4];
+
+pub static NUM_4X4_BLOCKS_WIDE: [u8; 22] = [1, 1, 2, 2, 2, 4, 4, 4, 8, 8, 8, 16, 16, 16, 32, 32, 1, 4, 2, 8, 4, 16];
+
+pub static OBMC_MASK_16: [u8; 16] = [34, 37, 40, 43, 46, 49, 52, 54, 56, 58, 60, 61, 64, 64, 64, 64];
+
+pub static OBMC_MASK_2: [u8; 2] = [45, 64];
+
+pub static OBMC_MASK_32: [u8; 32] =
+ [33, 35, 36, 38, 40, 41, 43, 44, 45, 47, 48, 50, 51, 52, 53, 55, 56, 57, 58, 59, 60, 60, 61, 62, 64, 64, 64, 64, 64, 64, 64, 64];
+
+pub static OBMC_MASK_4: [u8; 4] = [39, 50, 59, 64];
+
+pub static OBMC_MASK_8: [u8; 8] = [36, 42, 48, 53, 57, 61, 64, 64];
+
+pub static PALETTE_COLOR_CONTEXT: [i8; 9] = [-1, -1, 0, -1, -1, 4, 3, 2, 1];
+
+pub static PALETTE_COLOR_HASH_MULTIPLIERS: [u8; 3] = [1, 2, 2];
+
+pub static PARTITION_SUBSIZE: [[u8; 22]; 10] = [
+ [0, 22, 22, 3, 22, 22, 6, 22, 22, 9, 22, 22, 12, 22, 22, 15, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 2, 22, 22, 5, 22, 22, 8, 22, 22, 11, 22, 22, 14, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 1, 22, 22, 4, 22, 22, 7, 22, 22, 10, 22, 22, 13, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 0, 22, 22, 3, 22, 22, 6, 22, 22, 9, 22, 22, 12, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 2, 22, 22, 5, 22, 22, 8, 22, 22, 11, 22, 22, 14, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 2, 22, 22, 5, 22, 22, 8, 22, 22, 11, 22, 22, 14, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 1, 22, 22, 4, 22, 22, 7, 22, 22, 10, 22, 22, 13, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 1, 22, 22, 4, 22, 22, 7, 22, 22, 10, 22, 22, 13, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 22, 22, 22, 17, 22, 22, 19, 22, 22, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22],
+ [22, 22, 22, 22, 22, 22, 16, 22, 22, 18, 22, 22, 20, 22, 22, 22, 22, 22, 22, 22, 22, 22],
+];
+
+pub static QM_OFFSET: [u16; 19] = [0, 16, 80, 336, 336, 1360, 1392, 1424, 1552, 1680, 2192, 336, 336, 2704, 2768, 2832, 3088, 1680, 2192];
+
+pub static QUANT_DIST_LOOKUP: [[u8; 2]; 4] = [[9, 7], [11, 5], [12, 4], [13, 3]];
+
+pub static QUANT_DIST_WEIGHT: [[u8; 2]; 4] = [[2, 3], [2, 5], [2, 7], [1, 31]];
+
+pub static QUANTIZER_MATRIX: [[[u8; 3344]; 2]; 15] = [
+ [
+ [
+ 32, 43, 73, 97, 43, 67, 94, 110, 73, 94, 137, 150, 97, 110, 150, 200, 32, 32, 38, 51, 68, 84, 95, 109, 32, 35, 40, 49, 63, 76, 89, 102, 38, 40, 54,
+ 65, 78, 91, 98, 106, 51, 49, 65, 82, 97, 111, 113, 121, 68, 63, 78, 97, 117, 134, 138, 142, 84, 76, 91, 111, 134, 152, 159, 168, 95, 89, 98, 113,
+ 138, 159, 183, 199, 109, 102, 106, 121, 142, 168, 199, 220, 32, 31, 31, 34, 36, 44, 48, 59, 65, 80, 83, 91, 97, 104, 111, 119, 31, 32, 32, 33, 34,
+ 41, 44, 54, 59, 72, 75, 83, 90, 97, 104, 112, 31, 32, 33, 35, 36, 42, 45, 54, 59, 71, 74, 81, 86, 93, 100, 107, 34, 33, 35, 39, 42, 47, 51, 58, 63,
+ 74, 76, 81, 84, 90, 97, 105, 36, 34, 36, 42, 48, 54, 57, 64, 68, 79, 81, 88, 91, 96, 102, 105, 44, 41, 42, 47, 54, 63, 67, 75, 79, 90, 92, 95, 100,
+ 102, 109, 112, 48, 44, 45, 51, 57, 67, 71, 80, 85, 96, 99, 107, 108, 111, 117, 120, 59, 54, 54, 58, 64, 75, 80, 92, 98, 110, 113, 115, 116, 122,
+ 125, 130, 65, 59, 59, 63, 68, 79, 85, 98, 105, 118, 121, 127, 130, 134, 135, 140, 80, 72, 71, 74, 79, 90, 96, 110, 118, 134, 137, 140, 143, 144,
+ 146, 152, 83, 75, 74, 76, 81, 92, 99, 113, 121, 137, 140, 151, 152, 155, 158, 165, 91, 83, 81, 81, 88, 95, 107, 115, 127, 140, 151, 159, 166, 169,
+ 173, 179, 97, 90, 86, 84, 91, 100, 108, 116, 130, 143, 152, 166, 174, 182, 189, 193, 104, 97, 93, 90, 96, 102, 111, 122, 134, 144, 155, 169, 182,
+ 191, 200, 210, 111, 104, 100, 97, 102, 109, 117, 125, 135, 146, 158, 173, 189, 200, 210, 220, 119, 112, 107, 105, 105, 112, 120, 130, 140, 152,
+ 165, 179, 193, 210, 220, 231, 32, 31, 31, 31, 31, 32, 34, 35, 36, 39, 44, 46, 48, 54, 59, 62, 65, 71, 80, 81, 83, 88, 91, 94, 97, 101, 104, 107,
+ 111, 115, 119, 123, 31, 32, 32, 32, 32, 32, 34, 34, 35, 38, 42, 44, 46, 51, 56, 59, 62, 68, 76, 77, 78, 84, 86, 89, 92, 95, 99, 102, 105, 109, 113,
+ 116, 31, 32, 32, 32, 32, 32, 33, 34, 34, 37, 41, 42, 44, 49, 54, 56, 59, 65, 72, 73, 75, 80, 83, 86, 90, 93, 97, 101, 104, 108, 112, 116, 31, 32,
+ 32, 32, 33, 33, 34, 35, 35, 38, 41, 43, 45, 49, 54, 56, 59, 64, 72, 73, 74, 79, 82, 85, 88, 91, 94, 97, 101, 104, 107, 111, 31, 32, 32, 33, 33, 34,
+ 35, 36, 36, 39, 42, 44, 45, 50, 54, 56, 59, 64, 71, 72, 74, 78, 81, 84, 86, 89, 93, 96, 100, 104, 107, 111, 32, 32, 32, 33, 34, 35, 37, 37, 38, 40,
+ 42, 44, 46, 49, 53, 55, 58, 63, 69, 70, 72, 76, 79, 82, 85, 89, 93, 96, 99, 102, 106, 109, 34, 34, 33, 34, 35, 37, 39, 41, 42, 45, 47, 49, 51, 54,
+ 58, 60, 63, 68, 74, 75, 76, 80, 81, 82, 84, 87, 90, 93, 97, 101, 105, 110, 35, 34, 34, 35, 36, 37, 41, 43, 45, 47, 50, 52, 53, 57, 61, 63, 65, 70,
+ 76, 77, 79, 82, 84, 86, 89, 91, 92, 93, 96, 100, 103, 107, 36, 35, 34, 35, 36, 38, 42, 45, 48, 50, 54, 55, 57, 60, 64, 66, 68, 73, 79, 80, 81, 85,
+ 88, 90, 91, 93, 96, 99, 102, 103, 105, 107, 39, 38, 37, 38, 39, 40, 45, 47, 50, 54, 58, 59, 61, 65, 69, 71, 73, 78, 84, 85, 86, 91, 92, 92, 95, 98,
+ 100, 101, 103, 106, 110, 114, 44, 42, 41, 41, 42, 42, 47, 50, 54, 58, 63, 65, 67, 71, 75, 77, 79, 84, 90, 91, 92, 95, 95, 97, 100, 101, 102, 105,
+ 109, 111, 112, 114, 46, 44, 42, 43, 44, 44, 49, 52, 55, 59, 65, 67, 69, 74, 78, 80, 82, 87, 93, 94, 95, 98, 100, 103, 102, 105, 108, 110, 111, 113,
+ 117, 121, 48, 46, 44, 45, 45, 46, 51, 53, 57, 61, 67, 69, 71, 76, 80, 83, 85, 90, 96, 97, 99, 103, 107, 105, 108, 111, 111, 113, 117, 119, 120,
+ 122, 54, 51, 49, 49, 50, 49, 54, 57, 60, 65, 71, 74, 76, 82, 87, 89, 92, 97, 104, 105, 106, 111, 110, 111, 114, 113, 116, 120, 120, 121, 125, 130,
+ 59, 56, 54, 54, 54, 53, 58, 61, 64, 69, 75, 78, 80, 87, 92, 95, 98, 103, 110, 111, 113, 115, 115, 119, 116, 120, 122, 122, 125, 129, 130, 130, 62,
+ 59, 56, 56, 56, 55, 60, 63, 66, 71, 77, 80, 83, 89, 95, 98, 101, 107, 114, 115, 117, 119, 123, 121, 125, 126, 125, 129, 131, 131, 135, 140, 65, 62,
+ 59, 59, 59, 58, 63, 65, 68, 73, 79, 82, 85, 92, 98, 101, 105, 111, 118, 119, 121, 126, 127, 128, 130, 130, 134, 133, 135, 140, 140, 140, 71, 68,
+ 65, 64, 64, 63, 68, 70, 73, 78, 84, 87, 90, 97, 103, 107, 111, 117, 125, 126, 128, 134, 132, 136, 133, 138, 137, 140, 143, 142, 145, 150, 80, 76,
+ 72, 72, 71, 69, 74, 76, 79, 84, 90, 93, 96, 104, 110, 114, 118, 125, 134, 135, 137, 139, 140, 139, 143, 142, 144, 146, 146, 151, 152, 151, 81, 77,
+ 73, 73, 72, 70, 75, 77, 80, 85, 91, 94, 97, 105, 111, 115, 119, 126, 135, 137, 138, 144, 147, 146, 148, 149, 151, 150, 156, 155, 157, 163, 83, 78,
+ 75, 74, 74, 72, 76, 79, 81, 86, 92, 95, 99, 106, 113, 117, 121, 128, 137, 138, 140, 147, 151, 156, 152, 157, 155, 161, 158, 162, 165, 164, 88, 84,
+ 80, 79, 78, 76, 80, 82, 85, 91, 95, 98, 103, 111, 115, 119, 126, 134, 139, 144, 147, 152, 154, 158, 163, 159, 165, 163, 168, 168, 169, 176, 91, 86,
+ 83, 82, 81, 79, 81, 84, 88, 92, 95, 100, 107, 110, 115, 123, 127, 132, 140, 147, 151, 154, 159, 161, 166, 171, 169, 173, 173, 176, 179, 177, 94,
+ 89, 86, 85, 84, 82, 82, 86, 90, 92, 97, 103, 105, 111, 119, 121, 128, 136, 139, 146, 156, 158, 161, 166, 168, 174, 179, 178, 180, 183, 183, 190,
+ 97, 92, 90, 88, 86, 85, 84, 89, 91, 95, 100, 102, 108, 114, 116, 125, 130, 133, 143, 148, 152, 163, 166, 168, 174, 176, 182, 187, 189, 188, 193,
+ 191, 101, 95, 93, 91, 89, 89, 87, 91, 93, 98, 101, 105, 111, 113, 120, 126, 130, 138, 142, 149, 157, 159, 171, 174, 176, 183, 184, 191, 195, 199,
+ 197, 204, 104, 99, 97, 94, 93, 93, 90, 92, 96, 100, 102, 108, 111, 116, 122, 125, 134, 137, 144, 151, 155, 165, 169, 179, 182, 184, 191, 193, 200,
+ 204, 210, 206, 107, 102, 101, 97, 96, 96, 93, 93, 99, 101, 105, 110, 113, 120, 122, 129, 133, 140, 146, 150, 161, 163, 173, 178, 187, 191, 193,
+ 200, 202, 210, 214, 222, 111, 105, 104, 101, 100, 99, 97, 96, 102, 103, 109, 111, 117, 120, 125, 131, 135, 143, 146, 156, 158, 168, 173, 180, 189,
+ 195, 200, 202, 210, 212, 220, 224, 115, 109, 108, 104, 104, 102, 101, 100, 103, 106, 111, 113, 119, 121, 129, 131, 140, 142, 151, 155, 162, 168,
+ 176, 183, 188, 199, 204, 210, 212, 220, 222, 230, 119, 113, 112, 107, 107, 106, 105, 103, 105, 110, 112, 117, 120, 125, 130, 135, 140, 145, 152,
+ 157, 165, 169, 179, 183, 193, 197, 210, 214, 220, 222, 231, 232, 123, 116, 116, 111, 111, 109, 110, 107, 107, 114, 114, 121, 122, 130, 130, 140,
+ 140, 150, 151, 163, 164, 176, 177, 190, 191, 204, 206, 222, 224, 230, 232, 242, 32, 42, 75, 91, 33, 42, 69, 86, 37, 58, 84, 91, 49, 71, 103, 110,
+ 65, 84, 125, 128, 80, 97, 142, 152, 91, 100, 145, 178, 104, 112, 146, 190, 32, 33, 37, 49, 65, 80, 91, 104, 42, 42, 58, 71, 84, 97, 100, 112, 75,
+ 69, 84, 103, 125, 142, 145, 146, 91, 86, 91, 110, 128, 152, 178, 190, 32, 32, 36, 53, 65, 87, 93, 99, 31, 33, 34, 49, 59, 78, 86, 93, 32, 34, 36,
+ 50, 59, 77, 82, 89, 34, 37, 42, 54, 63, 79, 80, 88, 36, 38, 48, 60, 68, 84, 86, 90, 44, 43, 53, 71, 79, 95, 94, 97, 48, 46, 56, 76, 85, 102, 105,
+ 105, 58, 54, 63, 87, 98, 116, 112, 115, 65, 58, 68, 92, 105, 124, 122, 124, 79, 70, 79, 104, 118, 141, 135, 135, 82, 72, 81, 106, 121, 144, 149,
+ 146, 91, 80, 88, 106, 130, 148, 162, 159, 97, 86, 94, 107, 128, 157, 167, 171, 103, 93, 98, 114, 131, 150, 174, 186, 110, 100, 101, 117, 138, 161,
+ 183, 193, 118, 107, 105, 118, 136, 157, 182, 203, 32, 31, 32, 34, 36, 44, 48, 58, 65, 79, 82, 91, 97, 103, 110, 118, 32, 33, 34, 37, 38, 43, 46,
+ 54, 58, 70, 72, 80, 86, 93, 100, 107, 36, 34, 36, 42, 48, 53, 56, 63, 68, 79, 81, 88, 94, 98, 101, 105, 53, 49, 50, 54, 60, 71, 76, 87, 92, 104,
+ 106, 106, 107, 114, 117, 118, 65, 59, 59, 63, 68, 79, 85, 98, 105, 118, 121, 130, 128, 131, 138, 136, 87, 78, 77, 79, 84, 95, 102, 116, 124, 141,
+ 144, 148, 157, 150, 161, 157, 93, 86, 82, 80, 86, 94, 105, 112, 122, 135, 149, 162, 167, 174, 183, 182, 99, 93, 89, 88, 90, 97, 105, 115, 124, 135,
+ 146, 159, 171, 186, 193, 203, 32, 31, 32, 34, 36, 44, 53, 59, 65, 79, 87, 90, 93, 96, 99, 102, 31, 32, 32, 34, 35, 42, 51, 56, 62, 75, 82, 85, 88,
+ 91, 94, 97, 31, 32, 33, 33, 34, 41, 49, 54, 59, 72, 78, 82, 86, 90, 93, 97, 31, 32, 33, 34, 35, 41, 49, 54, 59, 71, 78, 81, 84, 87, 90, 93, 32, 32,
+ 34, 35, 36, 42, 50, 54, 59, 71, 77, 80, 82, 86, 89, 93, 32, 33, 35, 37, 38, 42, 49, 53, 58, 69, 75, 78, 82, 86, 89, 92, 34, 34, 37, 39, 42, 48, 54,
+ 58, 63, 73, 79, 78, 80, 83, 88, 92, 35, 34, 37, 41, 45, 50, 57, 61, 65, 76, 82, 83, 84, 84, 87, 90, 36, 34, 38, 43, 48, 54, 60, 64, 68, 78, 84, 87,
+ 86, 89, 90, 90, 39, 37, 40, 45, 50, 58, 65, 69, 73, 84, 89, 89, 91, 91, 93, 96, 44, 41, 43, 48, 53, 63, 71, 75, 79, 90, 95, 93, 94, 95, 97, 97, 46,
+ 43, 44, 49, 55, 65, 73, 78, 82, 93, 98, 100, 98, 100, 99, 103, 48, 45, 46, 51, 56, 67, 76, 80, 85, 96, 102, 102, 105, 102, 105, 104, 53, 49, 50,
+ 54, 60, 71, 82, 87, 92, 103, 109, 107, 107, 110, 107, 111, 58, 54, 54, 58, 63, 75, 87, 92, 98, 110, 116, 115, 112, 111, 115, 112, 61, 57, 56, 60,
+ 66, 77, 89, 95, 101, 114, 120, 118, 119, 118, 116, 120, 65, 60, 58, 63, 68, 79, 92, 98, 105, 118, 124, 123, 122, 123, 124, 121, 71, 65, 63, 68, 73,
+ 84, 97, 103, 111, 125, 132, 132, 130, 128, 127, 130, 79, 72, 70, 74, 79, 90, 104, 110, 118, 133, 141, 136, 135, 135, 135, 131, 81, 74, 71, 75, 80,
+ 91, 105, 112, 119, 135, 142, 140, 140, 138, 139, 142, 82, 75, 72, 76, 81, 92, 106, 113, 121, 136, 144, 151, 149, 149, 146, 143, 88, 80, 77, 80, 85,
+ 97, 108, 115, 126, 142, 149, 153, 153, 152, 152, 154, 91, 83, 80, 81, 88, 100, 106, 114, 130, 142, 148, 155, 162, 160, 159, 155, 94, 85, 83, 82,
+ 91, 100, 105, 118, 131, 137, 153, 160, 165, 167, 166, 168, 97, 88, 86, 85, 94, 100, 107, 123, 128, 140, 157, 161, 167, 173, 171, 169, 100, 91, 89,
+ 87, 97, 100, 111, 121, 127, 145, 152, 164, 173, 178, 182, 181, 103, 94, 93, 90, 98, 101, 114, 120, 131, 144, 150, 170, 174, 180, 186, 183, 107, 97,
+ 96, 93, 100, 104, 117, 119, 136, 142, 155, 168, 177, 187, 191, 198, 110, 101, 100, 97, 101, 108, 117, 123, 138, 141, 161, 165, 183, 188, 193, 200,
+ 114, 104, 104, 100, 103, 112, 117, 127, 137, 146, 159, 167, 185, 190, 201, 206, 118, 108, 107, 103, 105, 115, 118, 131, 136, 151, 157, 172, 182,
+ 197, 203, 208, 122, 111, 111, 107, 107, 119, 119, 136, 136, 156, 156, 178, 179, 203, 204, 217, 32, 31, 31, 31, 32, 32, 34, 35, 36, 39, 44, 46, 48,
+ 53, 58, 61, 65, 71, 79, 81, 82, 88, 91, 94, 97, 100, 103, 107, 110, 114, 118, 122, 31, 32, 32, 32, 32, 33, 34, 34, 34, 37, 41, 43, 45, 49, 54, 57,
+ 60, 65, 72, 74, 75, 80, 83, 85, 88, 91, 94, 97, 101, 104, 108, 111, 32, 32, 33, 33, 34, 35, 37, 37, 38, 40, 43, 44, 46, 50, 54, 56, 58, 63, 70, 71,
+ 72, 77, 80, 83, 86, 89, 93, 96, 100, 104, 107, 111, 34, 34, 33, 34, 35, 37, 39, 41, 43, 45, 48, 49, 51, 54, 58, 60, 63, 68, 74, 75, 76, 80, 81, 82,
+ 85, 87, 90, 93, 97, 100, 103, 107, 36, 35, 34, 35, 36, 38, 42, 45, 48, 50, 53, 55, 56, 60, 63, 66, 68, 73, 79, 80, 81, 85, 88, 91, 94, 97, 98, 100,
+ 101, 103, 105, 107, 44, 42, 41, 41, 42, 42, 48, 50, 54, 58, 63, 65, 67, 71, 75, 77, 79, 84, 90, 91, 92, 97, 100, 100, 100, 100, 101, 104, 108, 112,
+ 115, 119, 53, 51, 49, 49, 50, 49, 54, 57, 60, 65, 71, 73, 76, 82, 87, 89, 92, 97, 104, 105, 106, 108, 106, 105, 107, 111, 114, 117, 117, 117, 118,
+ 119, 59, 56, 54, 54, 54, 53, 58, 61, 64, 69, 75, 78, 80, 87, 92, 95, 98, 103, 110, 112, 113, 115, 114, 118, 123, 121, 120, 119, 123, 127, 131, 136,
+ 65, 62, 59, 59, 59, 58, 63, 65, 68, 73, 79, 82, 85, 92, 98, 101, 105, 111, 118, 119, 121, 126, 130, 131, 128, 127, 131, 136, 138, 137, 136, 136,
+ 79, 75, 72, 71, 71, 69, 73, 76, 78, 84, 90, 93, 96, 103, 110, 114, 118, 125, 133, 135, 136, 142, 142, 137, 140, 145, 144, 142, 141, 146, 151, 156,
+ 87, 82, 78, 78, 77, 75, 79, 82, 84, 89, 95, 98, 102, 109, 116, 120, 124, 132, 141, 142, 144, 149, 148, 153, 157, 152, 150, 155, 161, 159, 157, 156,
+ 90, 85, 82, 81, 80, 78, 78, 83, 87, 89, 93, 100, 102, 107, 115, 118, 123, 132, 136, 140, 151, 153, 155, 160, 161, 164, 170, 168, 165, 167, 172,
+ 178, 93, 88, 86, 84, 82, 82, 80, 84, 86, 91, 94, 98, 105, 107, 112, 119, 122, 130, 135, 140, 149, 153, 162, 165, 167, 173, 174, 177, 183, 185, 182,
+ 179, 96, 91, 90, 87, 86, 86, 83, 84, 89, 91, 95, 100, 102, 110, 111, 118, 123, 128, 135, 138, 149, 152, 160, 167, 173, 178, 180, 187, 188, 190,
+ 197, 203, 99, 94, 93, 90, 89, 89, 88, 87, 90, 93, 97, 99, 105, 107, 115, 116, 124, 127, 135, 139, 146, 152, 159, 166, 171, 182, 186, 191, 193, 201,
+ 203, 204, 102, 97, 97, 93, 93, 92, 92, 90, 90, 96, 97, 103, 104, 111, 112, 120, 121, 130, 131, 142, 143, 154, 155, 168, 169, 181, 183, 198, 200,
+ 206, 208, 217, 31, 44, 79, 96, 32, 41, 72, 90, 32, 42, 71, 86, 34, 48, 73, 83, 34, 54, 78, 89, 41, 63, 90, 95, 45, 67, 96, 102, 54, 75, 110, 111,
+ 60, 79, 118, 123, 72, 90, 133, 135, 75, 92, 136, 149, 83, 100, 142, 160, 88, 100, 140, 173, 94, 101, 144, 180, 101, 108, 141, 188, 108, 115, 151,
+ 197, 31, 32, 32, 34, 34, 41, 45, 54, 60, 72, 75, 83, 88, 94, 101, 108, 44, 41, 42, 48, 54, 63, 67, 75, 79, 90, 92, 100, 100, 101, 108, 115, 79, 72,
+ 71, 73, 78, 90, 96, 110, 118, 133, 136, 142, 140, 144, 141, 151, 96, 90, 86, 83, 89, 95, 102, 111, 123, 135, 149, 160, 173, 180, 188, 197, 32, 32,
+ 36, 53, 65, 87, 93, 99, 31, 32, 35, 51, 62, 82, 88, 94, 31, 33, 34, 49, 59, 78, 86, 93, 31, 33, 35, 49, 59, 78, 84, 90, 32, 34, 36, 50, 59, 77, 82,
+ 89, 32, 35, 38, 49, 58, 75, 82, 89, 34, 37, 42, 54, 63, 79, 80, 88, 35, 37, 45, 57, 65, 82, 84, 87, 36, 38, 48, 60, 68, 84, 86, 90, 39, 40, 50, 65,
+ 73, 89, 91, 93, 44, 43, 53, 71, 79, 95, 94, 97, 46, 44, 55, 73, 82, 98, 98, 99, 48, 46, 56, 76, 85, 102, 105, 105, 53, 50, 60, 82, 92, 109, 107,
+ 107, 58, 54, 63, 87, 98, 116, 112, 115, 61, 56, 66, 89, 101, 120, 119, 116, 65, 58, 68, 92, 105, 124, 122, 124, 71, 63, 73, 97, 111, 132, 130, 127,
+ 79, 70, 79, 104, 118, 141, 135, 135, 81, 71, 80, 105, 119, 142, 140, 139, 82, 72, 81, 106, 121, 144, 149, 146, 88, 77, 85, 108, 126, 149, 153, 152,
+ 91, 80, 88, 106, 130, 148, 162, 159, 94, 83, 91, 105, 131, 153, 165, 166, 97, 86, 94, 107, 128, 157, 167, 171, 100, 89, 97, 111, 127, 152, 173,
+ 182, 103, 93, 98, 114, 131, 150, 174, 186, 107, 96, 100, 117, 136, 155, 177, 191, 110, 100, 101, 117, 138, 161, 183, 193, 114, 104, 103, 117, 137,
+ 159, 185, 201, 118, 107, 105, 118, 136, 157, 182, 203, 122, 111, 107, 119, 136, 156, 179, 204, 32, 31, 31, 31, 32, 32, 34, 35, 36, 39, 44, 46, 48,
+ 53, 58, 61, 65, 71, 79, 81, 82, 88, 91, 94, 97, 100, 103, 107, 110, 114, 118, 122, 32, 32, 33, 33, 34, 35, 37, 37, 38, 40, 43, 44, 46, 50, 54, 56,
+ 58, 63, 70, 71, 72, 77, 80, 83, 86, 89, 93, 96, 100, 104, 107, 111, 36, 35, 34, 35, 36, 38, 42, 45, 48, 50, 53, 55, 56, 60, 63, 66, 68, 73, 79, 80,
+ 81, 85, 88, 91, 94, 97, 98, 100, 101, 103, 105, 107, 53, 51, 49, 49, 50, 49, 54, 57, 60, 65, 71, 73, 76, 82, 87, 89, 92, 97, 104, 105, 106, 108,
+ 106, 105, 107, 111, 114, 117, 117, 117, 118, 119, 65, 62, 59, 59, 59, 58, 63, 65, 68, 73, 79, 82, 85, 92, 98, 101, 105, 111, 118, 119, 121, 126,
+ 130, 131, 128, 127, 131, 136, 138, 137, 136, 136, 87, 82, 78, 78, 77, 75, 79, 82, 84, 89, 95, 98, 102, 109, 116, 120, 124, 132, 141, 142, 144, 149,
+ 148, 153, 157, 152, 150, 155, 161, 159, 157, 156, 93, 88, 86, 84, 82, 82, 80, 84, 86, 91, 94, 98, 105, 107, 112, 119, 122, 130, 135, 140, 149, 153,
+ 162, 165, 167, 173, 174, 177, 183, 185, 182, 179, 99, 94, 93, 90, 89, 89, 88, 87, 90, 93, 97, 99, 105, 107, 115, 116, 124, 127, 135, 139, 146, 152,
+ 159, 166, 171, 182, 186, 191, 193, 201, 203, 204,
+ ],
+ [
+ 35, 46, 57, 66, 46, 60, 69, 71, 57, 69, 90, 90, 66, 71, 90, 109, 31, 38, 47, 50, 57, 63, 67, 71, 38, 47, 46, 47, 52, 57, 62, 67, 47, 46, 54, 57,
+ 61, 66, 67, 68, 50, 47, 57, 66, 72, 77, 75, 75, 57, 52, 61, 72, 82, 88, 86, 84, 63, 57, 66, 77, 88, 96, 95, 95, 67, 62, 67, 75, 86, 95, 104, 107,
+ 71, 67, 68, 75, 84, 95, 107, 113, 32, 30, 33, 41, 49, 49, 50, 54, 57, 63, 65, 68, 70, 72, 74, 76, 30, 32, 35, 42, 46, 45, 46, 49, 52, 57, 58, 62,
+ 64, 67, 70, 72, 33, 35, 39, 45, 47, 45, 46, 49, 51, 56, 57, 60, 62, 64, 66, 69, 41, 42, 45, 48, 50, 49, 50, 52, 53, 57, 58, 59, 60, 61, 64, 67, 49,
+ 46, 47, 50, 53, 53, 54, 55, 56, 60, 61, 64, 64, 65, 66, 66, 49, 45, 45, 49, 53, 58, 60, 62, 63, 67, 68, 67, 69, 68, 70, 70, 50, 46, 46, 50, 54, 60,
+ 61, 65, 67, 71, 71, 74, 73, 73, 74, 74, 54, 49, 49, 52, 55, 62, 65, 71, 73, 78, 79, 78, 77, 78, 78, 78, 57, 52, 51, 53, 56, 63, 67, 73, 76, 82, 83,
+ 84, 84, 84, 82, 83, 63, 57, 56, 57, 60, 67, 71, 78, 82, 89, 90, 90, 89, 88, 87, 88, 65, 58, 57, 58, 61, 68, 71, 79, 83, 90, 91, 94, 93, 93, 92, 93,
+ 68, 62, 60, 59, 64, 67, 74, 78, 84, 90, 94, 98, 99, 98, 98, 98, 70, 64, 62, 60, 64, 69, 73, 77, 84, 89, 93, 99, 102, 103, 104, 104, 72, 67, 64, 61,
+ 65, 68, 73, 78, 84, 88, 93, 98, 103, 106, 108, 109, 74, 70, 66, 64, 66, 70, 74, 78, 82, 87, 92, 98, 104, 108, 111, 112, 76, 72, 69, 67, 66, 70, 74,
+ 78, 83, 88, 93, 98, 104, 109, 112, 116, 32, 31, 30, 32, 33, 36, 41, 45, 49, 48, 49, 50, 50, 52, 54, 56, 57, 60, 63, 64, 65, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 78, 31, 31, 31, 33, 34, 38, 42, 45, 47, 47, 47, 47, 48, 50, 52, 53, 54, 57, 60, 61, 61, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 74,
+ 30, 31, 32, 33, 35, 40, 42, 44, 46, 45, 45, 45, 46, 47, 49, 51, 52, 54, 57, 58, 58, 61, 62, 63, 64, 66, 67, 68, 70, 71, 72, 74, 32, 33, 33, 35, 37,
+ 41, 43, 45, 47, 46, 45, 46, 46, 47, 49, 50, 51, 54, 57, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 33, 34, 35, 37, 39, 43, 45, 46, 47, 46,
+ 45, 46, 46, 47, 49, 50, 51, 53, 56, 57, 57, 59, 60, 61, 62, 63, 64, 65, 66, 68, 69, 70, 36, 38, 40, 41, 43, 47, 47, 47, 48, 46, 45, 46, 46, 47, 48,
+ 49, 50, 52, 54, 55, 55, 57, 58, 59, 61, 62, 64, 65, 66, 67, 68, 69, 41, 42, 42, 43, 45, 47, 48, 49, 50, 49, 49, 49, 50, 50, 52, 52, 53, 55, 57, 58,
+ 58, 60, 59, 59, 60, 61, 61, 63, 64, 66, 67, 69, 45, 45, 44, 45, 46, 47, 49, 50, 51, 51, 51, 51, 52, 52, 53, 54, 55, 57, 59, 59, 60, 61, 61, 62, 63,
+ 63, 63, 63, 63, 64, 65, 66, 49, 47, 46, 47, 47, 48, 50, 51, 53, 53, 53, 54, 54, 54, 55, 56, 56, 58, 60, 61, 61, 63, 64, 64, 64, 64, 65, 66, 66, 66,
+ 66, 66, 48, 47, 45, 46, 46, 46, 49, 51, 53, 54, 55, 56, 56, 57, 58, 59, 60, 61, 63, 64, 64, 66, 66, 65, 66, 67, 67, 67, 67, 68, 69, 70, 49, 47, 45,
+ 45, 45, 45, 49, 51, 53, 55, 58, 59, 60, 61, 62, 63, 63, 65, 67, 67, 68, 69, 67, 68, 69, 68, 68, 69, 70, 70, 70, 70, 50, 47, 45, 46, 46, 46, 49, 51,
+ 54, 56, 59, 60, 60, 62, 64, 64, 65, 67, 69, 69, 70, 70, 71, 71, 70, 70, 71, 71, 71, 71, 72, 74, 50, 48, 46, 46, 46, 46, 50, 52, 54, 56, 60, 60, 61,
+ 63, 65, 66, 67, 68, 71, 71, 71, 73, 74, 72, 73, 74, 73, 73, 74, 74, 74, 74, 52, 50, 47, 47, 47, 47, 50, 52, 54, 57, 61, 62, 63, 66, 68, 69, 70, 72,
+ 75, 75, 75, 77, 75, 75, 76, 75, 75, 76, 75, 75, 76, 77, 54, 52, 49, 49, 49, 48, 52, 53, 55, 58, 62, 64, 65, 68, 71, 72, 73, 75, 78, 78, 79, 79, 78,
+ 79, 77, 78, 78, 77, 78, 79, 78, 78, 56, 53, 51, 50, 50, 49, 52, 54, 56, 59, 63, 64, 66, 69, 72, 73, 75, 77, 80, 80, 81, 81, 82, 80, 81, 81, 79, 81,
+ 80, 79, 81, 82, 57, 54, 52, 51, 51, 50, 53, 55, 56, 60, 63, 65, 67, 70, 73, 75, 76, 79, 82, 82, 83, 85, 84, 83, 84, 83, 84, 82, 82, 84, 83, 82, 60,
+ 57, 54, 54, 53, 52, 55, 57, 58, 61, 65, 67, 68, 72, 75, 77, 79, 82, 85, 85, 86, 88, 86, 87, 85, 86, 85, 85, 86, 84, 85, 86, 63, 60, 57, 57, 56, 54,
+ 57, 59, 60, 63, 67, 69, 71, 75, 78, 80, 82, 85, 89, 89, 90, 90, 90, 89, 89, 88, 88, 88, 87, 88, 88, 87, 64, 61, 58, 57, 57, 55, 58, 59, 61, 64, 67,
+ 69, 71, 75, 78, 80, 82, 85, 89, 90, 91, 92, 93, 92, 92, 91, 91, 90, 91, 90, 90, 92, 65, 61, 58, 58, 57, 55, 58, 60, 61, 64, 68, 70, 71, 75, 79, 81,
+ 83, 86, 90, 91, 91, 94, 94, 96, 93, 94, 93, 94, 92, 93, 93, 92, 67, 63, 61, 60, 59, 57, 60, 61, 63, 66, 69, 70, 73, 77, 79, 81, 85, 88, 90, 92, 94,
+ 96, 96, 97, 98, 95, 97, 95, 96, 95, 95, 96, 68, 64, 62, 61, 60, 58, 59, 61, 64, 66, 67, 71, 74, 75, 78, 82, 84, 86, 90, 93, 94, 96, 98, 98, 99,
+ 100, 98, 99, 98, 98, 98, 97, 69, 65, 63, 62, 61, 59, 59, 62, 64, 65, 68, 71, 72, 75, 79, 80, 83, 87, 89, 92, 96, 97, 98, 100, 100, 101, 102, 101,
+ 101, 101, 100, 102, 70, 66, 64, 63, 62, 61, 60, 63, 64, 66, 69, 70, 73, 76, 77, 81, 84, 85, 89, 92, 93, 98, 99, 100, 102, 102, 103, 104, 104, 103,
+ 104, 102, 71, 67, 66, 64, 63, 62, 61, 63, 64, 67, 68, 70, 74, 75, 78, 81, 83, 86, 88, 91, 94, 95, 100, 101, 102, 104, 104, 105, 106, 107, 105, 107,
+ 72, 68, 67, 65, 64, 64, 61, 63, 65, 67, 68, 71, 73, 75, 78, 79, 84, 85, 88, 91, 93, 97, 98, 102, 103, 104, 106, 106, 108, 108, 109, 107, 73, 69,
+ 68, 66, 65, 65, 63, 63, 66, 67, 69, 71, 73, 76, 77, 81, 82, 85, 88, 90, 94, 95, 99, 101, 104, 105, 106, 109, 108, 110, 111, 112, 74, 70, 70, 67,
+ 66, 66, 64, 63, 66, 67, 70, 71, 74, 75, 78, 80, 82, 86, 87, 91, 92, 96, 98, 101, 104, 106, 108, 108, 111, 111, 112, 113, 75, 71, 71, 68, 68, 67,
+ 66, 64, 66, 68, 70, 71, 74, 75, 79, 79, 84, 84, 88, 90, 93, 95, 98, 101, 103, 107, 108, 110, 111, 113, 113, 115, 76, 72, 72, 69, 69, 68, 67, 65,
+ 66, 69, 70, 72, 74, 76, 78, 81, 83, 85, 88, 90, 93, 95, 98, 100, 104, 105, 109, 111, 112, 113, 116, 115, 78, 74, 74, 70, 70, 69, 69, 66, 66, 70,
+ 70, 74, 74, 77, 78, 82, 82, 86, 87, 92, 92, 96, 97, 102, 102, 107, 107, 112, 113, 115, 115, 118, 31, 47, 60, 66, 40, 45, 54, 61, 46, 56, 64, 64,
+ 48, 61, 75, 73, 54, 65, 85, 82, 61, 69, 92, 92, 64, 68, 90, 102, 68, 71, 87, 105, 31, 40, 46, 48, 54, 61, 64, 68, 47, 45, 56, 61, 65, 69, 68, 71,
+ 60, 54, 64, 75, 85, 92, 90, 87, 66, 61, 64, 73, 82, 92, 102, 105, 32, 37, 48, 52, 57, 66, 68, 71, 30, 40, 46, 48, 52, 60, 63, 66, 33, 43, 47, 47,
+ 51, 59, 60, 63, 42, 47, 50, 50, 53, 60, 59, 62, 49, 48, 53, 54, 57, 62, 62, 62, 49, 46, 53, 61, 64, 69, 66, 66, 50, 46, 54, 64, 67, 73, 72, 70, 54,
+ 49, 55, 68, 73, 80, 76, 75, 57, 50, 56, 70, 76, 84, 80, 79, 63, 55, 60, 75, 82, 92, 87, 84, 64, 56, 61, 75, 83, 93, 93, 89, 68, 59, 64, 74, 86, 94,
+ 98, 94, 70, 62, 66, 73, 83, 96, 99, 98, 72, 64, 66, 75, 83, 92, 101, 104, 74, 67, 66, 74, 84, 94, 103, 106, 76, 69, 67, 73, 82, 91, 101, 109, 32,
+ 30, 33, 42, 49, 49, 50, 54, 57, 63, 64, 68, 70, 72, 74, 76, 37, 40, 43, 47, 48, 46, 46, 49, 50, 55, 56, 59, 62, 64, 67, 69, 48, 46, 47, 50, 53, 53,
+ 54, 55, 56, 60, 61, 64, 66, 66, 66, 67, 52, 48, 47, 50, 54, 61, 64, 68, 70, 75, 75, 74, 73, 75, 74, 73, 57, 52, 51, 53, 57, 64, 67, 73, 76, 82, 83,
+ 86, 83, 83, 84, 82, 66, 60, 59, 60, 62, 69, 73, 80, 84, 92, 93, 94, 96, 92, 94, 91, 68, 63, 60, 59, 62, 66, 72, 76, 80, 87, 93, 98, 99, 101, 103,
+ 101, 71, 66, 63, 62, 62, 66, 70, 75, 79, 84, 89, 94, 98, 104, 106, 109, 32, 31, 37, 42, 48, 49, 52, 54, 57, 63, 66, 67, 68, 69, 71, 72, 31, 31, 38,
+ 42, 47, 47, 50, 52, 54, 60, 63, 64, 65, 66, 67, 68, 30, 32, 40, 42, 46, 45, 48, 50, 52, 57, 60, 62, 63, 65, 66, 68, 32, 34, 41, 44, 46, 45, 48, 49,
+ 51, 57, 59, 61, 62, 63, 64, 65, 33, 36, 43, 45, 47, 46, 47, 49, 51, 56, 59, 60, 60, 62, 63, 65, 37, 40, 47, 47, 47, 45, 47, 48, 50, 54, 57, 58, 60,
+ 61, 62, 63, 42, 43, 47, 48, 50, 49, 50, 52, 53, 57, 60, 58, 59, 60, 62, 63, 45, 44, 47, 49, 51, 51, 52, 54, 55, 59, 61, 61, 61, 60, 61, 61, 49, 46,
+ 48, 50, 53, 53, 54, 55, 57, 60, 62, 63, 62, 63, 62, 62, 48, 46, 47, 50, 53, 56, 57, 59, 60, 64, 66, 65, 65, 64, 64, 65, 49, 45, 46, 49, 53, 58, 61,
+ 62, 64, 67, 69, 67, 66, 66, 66, 65, 49, 46, 46, 49, 53, 59, 62, 64, 65, 69, 71, 70, 68, 68, 67, 68, 50, 46, 46, 50, 54, 59, 64, 65, 67, 71, 73, 72,
+ 72, 70, 70, 69, 52, 48, 47, 50, 54, 61, 66, 68, 71, 75, 77, 74, 73, 73, 71, 72, 54, 50, 49, 52, 55, 62, 68, 71, 73, 78, 80, 78, 76, 74, 75, 73, 55,
+ 51, 49, 52, 56, 63, 69, 72, 75, 80, 82, 80, 79, 78, 76, 77, 57, 52, 50, 53, 56, 64, 70, 73, 76, 82, 84, 82, 80, 80, 79, 77, 60, 54, 52, 55, 58, 65,
+ 72, 75, 79, 85, 88, 86, 84, 82, 81, 81, 63, 57, 55, 58, 60, 67, 75, 78, 82, 89, 92, 88, 87, 85, 84, 81, 64, 58, 55, 58, 61, 68, 75, 78, 82, 89, 92,
+ 90, 89, 87, 86, 86, 64, 59, 56, 58, 61, 68, 75, 79, 83, 90, 93, 95, 93, 91, 89, 87, 67, 61, 58, 60, 63, 69, 76, 79, 85, 92, 95, 96, 94, 92, 91, 91,
+ 68, 62, 59, 60, 64, 71, 74, 78, 86, 91, 94, 96, 98, 96, 94, 91, 69, 62, 60, 60, 65, 70, 72, 79, 85, 88, 95, 98, 99, 98, 97, 96, 70, 63, 62, 60, 66,
+ 69, 73, 81, 83, 89, 96, 97, 99, 101, 98, 97, 71, 64, 63, 61, 67, 68, 74, 79, 82, 90, 93, 98, 102, 102, 102, 101, 72, 65, 64, 62, 66, 68, 75, 78,
+ 83, 89, 92, 100, 101, 103, 104, 102, 73, 66, 65, 63, 66, 69, 75, 76, 84, 87, 93, 98, 102, 105, 106, 107, 74, 67, 67, 64, 66, 70, 74, 77, 84, 86,
+ 94, 96, 103, 105, 106, 107, 75, 68, 68, 65, 66, 71, 74, 78, 83, 87, 93, 96, 103, 105, 109, 109, 76, 69, 69, 66, 67, 72, 73, 80, 82, 88, 91, 97,
+ 101, 107, 109, 110, 77, 70, 70, 67, 67, 73, 73, 81, 81, 90, 90, 99, 99, 108, 108, 113, 32, 31, 30, 32, 33, 37, 42, 45, 49, 48, 49, 49, 50, 52, 54,
+ 55, 57, 60, 63, 64, 64, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 31, 31, 32, 34, 36, 40, 43, 44, 46, 46, 45, 46, 46, 48, 50, 51, 52, 54, 57, 58,
+ 59, 61, 62, 62, 63, 64, 65, 66, 67, 68, 69, 70, 37, 38, 40, 41, 43, 47, 47, 47, 48, 47, 46, 46, 46, 47, 49, 49, 50, 52, 55, 55, 56, 58, 59, 60, 62,
+ 63, 64, 65, 67, 68, 69, 70, 42, 42, 42, 44, 45, 47, 48, 49, 50, 50, 49, 49, 50, 50, 52, 52, 53, 55, 58, 58, 58, 60, 60, 60, 60, 61, 62, 63, 64, 65,
+ 66, 67, 48, 47, 46, 46, 47, 47, 50, 51, 53, 53, 53, 53, 54, 54, 55, 56, 56, 58, 60, 61, 61, 63, 64, 65, 66, 67, 66, 66, 66, 66, 67, 67, 49, 47, 45,
+ 45, 46, 45, 49, 51, 53, 56, 58, 59, 59, 61, 62, 63, 64, 65, 67, 68, 68, 69, 71, 70, 69, 68, 68, 69, 70, 71, 72, 73, 52, 50, 48, 48, 47, 47, 50, 52,
+ 54, 57, 61, 62, 64, 66, 68, 69, 70, 72, 75, 75, 75, 76, 74, 72, 73, 74, 75, 75, 74, 74, 73, 73, 54, 52, 50, 49, 49, 48, 52, 54, 55, 59, 62, 64, 65,
+ 68, 71, 72, 73, 75, 78, 78, 79, 79, 78, 79, 81, 79, 78, 76, 77, 78, 80, 81, 57, 54, 52, 51, 51, 50, 53, 55, 57, 60, 64, 65, 67, 71, 73, 75, 76, 79,
+ 82, 82, 83, 85, 86, 85, 83, 82, 83, 84, 84, 83, 82, 81, 63, 60, 57, 57, 56, 54, 57, 59, 60, 64, 67, 69, 71, 75, 78, 80, 82, 85, 89, 89, 90, 92, 91,
+ 88, 89, 90, 89, 87, 86, 87, 88, 90, 66, 63, 60, 59, 59, 57, 60, 61, 62, 66, 69, 71, 73, 77, 80, 82, 84, 88, 92, 92, 93, 95, 94, 95, 96, 93, 92, 93,
+ 94, 93, 91, 90, 67, 64, 62, 61, 60, 58, 58, 61, 63, 65, 67, 70, 72, 74, 78, 80, 82, 86, 88, 90, 95, 96, 96, 98, 97, 98, 100, 98, 96, 96, 97, 99,
+ 68, 65, 63, 62, 60, 60, 59, 61, 62, 65, 66, 68, 72, 73, 76, 79, 80, 84, 87, 89, 93, 94, 98, 99, 99, 102, 101, 102, 103, 103, 101, 99, 69, 66, 65,
+ 63, 62, 61, 60, 60, 63, 64, 66, 68, 70, 73, 74, 78, 80, 82, 85, 87, 91, 92, 96, 98, 101, 102, 103, 105, 105, 105, 107, 108, 71, 67, 66, 64, 63, 62,
+ 62, 61, 62, 64, 66, 67, 70, 71, 75, 76, 79, 81, 84, 86, 89, 91, 94, 97, 98, 102, 104, 106, 106, 109, 109, 108, 72, 68, 68, 65, 65, 63, 63, 61, 62,
+ 65, 65, 68, 69, 72, 73, 77, 77, 81, 81, 86, 87, 91, 91, 96, 97, 101, 102, 107, 107, 109, 110, 113, 31, 49, 63, 69, 32, 45, 57, 65, 36, 46, 56, 62,
+ 43, 49, 57, 60, 46, 53, 60, 63, 45, 58, 67, 66, 46, 59, 71, 70, 50, 62, 78, 74, 52, 64, 82, 80, 57, 67, 89, 85, 59, 68, 90, 91, 62, 71, 91, 96, 63,
+ 69, 89, 101, 65, 68, 89, 103, 67, 70, 86, 105, 69, 72, 88, 107, 31, 32, 36, 43, 46, 45, 46, 50, 52, 57, 59, 62, 63, 65, 67, 69, 49, 45, 46, 49, 53,
+ 58, 59, 62, 64, 67, 68, 71, 69, 68, 70, 72, 63, 57, 56, 57, 60, 67, 71, 78, 82, 89, 90, 91, 89, 89, 86, 88, 69, 65, 62, 60, 63, 66, 70, 74, 80, 85,
+ 91, 96, 101, 103, 105, 107, 32, 37, 48, 52, 57, 66, 68, 71, 31, 38, 47, 50, 54, 63, 65, 67, 30, 40, 46, 48, 52, 60, 63, 66, 32, 41, 46, 48, 51, 59,
+ 62, 64, 33, 43, 47, 47, 51, 59, 60, 63, 37, 47, 47, 47, 50, 57, 60, 62, 42, 47, 50, 50, 53, 60, 59, 62, 45, 47, 51, 52, 55, 61, 61, 61, 49, 48, 53,
+ 54, 57, 62, 62, 62, 48, 47, 53, 57, 60, 66, 65, 64, 49, 46, 53, 61, 64, 69, 66, 66, 49, 46, 53, 62, 65, 71, 68, 67, 50, 46, 54, 64, 67, 73, 72, 70,
+ 52, 47, 54, 66, 71, 77, 73, 71, 54, 49, 55, 68, 73, 80, 76, 75, 55, 49, 56, 69, 75, 82, 79, 76, 57, 50, 56, 70, 76, 84, 80, 79, 60, 52, 58, 72, 79,
+ 88, 84, 81, 63, 55, 60, 75, 82, 92, 87, 84, 64, 55, 61, 75, 82, 92, 89, 86, 64, 56, 61, 75, 83, 93, 93, 89, 67, 58, 63, 76, 85, 95, 94, 91, 68, 59,
+ 64, 74, 86, 94, 98, 94, 69, 60, 65, 72, 85, 95, 99, 97, 70, 62, 66, 73, 83, 96, 99, 98, 71, 63, 67, 74, 82, 93, 102, 102, 72, 64, 66, 75, 83, 92,
+ 101, 104, 73, 65, 66, 75, 84, 93, 102, 106, 74, 67, 66, 74, 84, 94, 103, 106, 75, 68, 66, 74, 83, 93, 103, 109, 76, 69, 67, 73, 82, 91, 101, 109,
+ 77, 70, 67, 73, 81, 90, 99, 108, 32, 31, 30, 32, 33, 37, 42, 45, 49, 48, 49, 49, 50, 52, 54, 55, 57, 60, 63, 64, 64, 67, 68, 69, 70, 71, 72, 73,
+ 74, 75, 76, 77, 37, 38, 40, 41, 43, 47, 47, 47, 48, 47, 46, 46, 46, 47, 49, 49, 50, 52, 55, 55, 56, 58, 59, 60, 62, 63, 64, 65, 67, 68, 69, 70, 48,
+ 47, 46, 46, 47, 47, 50, 51, 53, 53, 53, 53, 54, 54, 55, 56, 56, 58, 60, 61, 61, 63, 64, 65, 66, 67, 66, 66, 66, 66, 67, 67, 52, 50, 48, 48, 47, 47,
+ 50, 52, 54, 57, 61, 62, 64, 66, 68, 69, 70, 72, 75, 75, 75, 76, 74, 72, 73, 74, 75, 75, 74, 74, 73, 73, 57, 54, 52, 51, 51, 50, 53, 55, 57, 60, 64,
+ 65, 67, 71, 73, 75, 76, 79, 82, 82, 83, 85, 86, 85, 83, 82, 83, 84, 84, 83, 82, 81, 66, 63, 60, 59, 59, 57, 60, 61, 62, 66, 69, 71, 73, 77, 80, 82,
+ 84, 88, 92, 92, 93, 95, 94, 95, 96, 93, 92, 93, 94, 93, 91, 90, 68, 65, 63, 62, 60, 60, 59, 61, 62, 65, 66, 68, 72, 73, 76, 79, 80, 84, 87, 89, 93,
+ 94, 98, 99, 99, 102, 101, 102, 103, 103, 101, 99, 71, 67, 66, 64, 63, 62, 62, 61, 62, 64, 66, 67, 70, 71, 75, 76, 79, 81, 84, 86, 89, 91, 94, 97,
+ 98, 102, 104, 106, 106, 109, 109, 108,
+ ],
+ ],
+ [
+ [
+ 32, 41, 69, 92, 41, 63, 88, 103, 69, 88, 127, 140, 92, 103, 140, 184, 32, 32, 37, 47, 62, 78, 90, 102, 32, 35, 39, 46, 58, 72, 84, 96, 37, 39, 51,
+ 60, 71, 84, 93, 100, 47, 46, 60, 73, 87, 100, 106, 113, 62, 58, 71, 87, 105, 121, 129, 132, 78, 72, 84, 100, 121, 140, 148, 155, 90, 84, 93, 106,
+ 129, 148, 169, 183, 102, 96, 100, 113, 132, 155, 183, 201, 32, 31, 31, 32, 36, 39, 47, 54, 61, 71, 80, 86, 92, 98, 104, 111, 31, 32, 32, 33, 34,
+ 37, 44, 50, 56, 65, 73, 79, 85, 91, 98, 105, 31, 32, 33, 34, 36, 39, 45, 50, 56, 64, 71, 77, 82, 88, 94, 100, 32, 33, 34, 36, 40, 42, 47, 51, 57,
+ 65, 71, 76, 80, 85, 91, 98, 36, 34, 36, 40, 48, 50, 56, 60, 65, 73, 79, 84, 86, 90, 95, 98, 39, 37, 39, 42, 50, 54, 60, 65, 70, 78, 84, 89, 95, 96,
+ 102, 105, 47, 44, 45, 47, 56, 60, 69, 75, 81, 89, 95, 100, 102, 104, 109, 112, 54, 50, 50, 51, 60, 65, 75, 82, 89, 97, 104, 109, 110, 114, 117,
+ 121, 61, 56, 56, 57, 65, 70, 81, 89, 97, 106, 113, 119, 122, 126, 125, 130, 71, 65, 64, 65, 73, 78, 89, 97, 106, 117, 125, 131, 134, 134, 136, 141,
+ 80, 73, 71, 71, 79, 84, 95, 104, 113, 125, 134, 140, 142, 145, 146, 152, 86, 79, 77, 76, 84, 89, 100, 109, 119, 131, 140, 147, 154, 157, 160, 165,
+ 92, 85, 82, 80, 86, 95, 102, 110, 122, 134, 142, 154, 162, 168, 174, 178, 98, 91, 88, 85, 90, 96, 104, 114, 126, 134, 145, 157, 168, 176, 184, 193,
+ 104, 98, 94, 91, 95, 102, 109, 117, 125, 136, 146, 160, 174, 184, 193, 201, 111, 105, 100, 98, 98, 105, 112, 121, 130, 141, 152, 165, 178, 193,
+ 201, 210, 32, 31, 31, 31, 31, 32, 32, 34, 36, 38, 39, 44, 47, 49, 54, 59, 61, 65, 71, 76, 80, 83, 86, 89, 92, 95, 98, 101, 104, 108, 111, 114, 31,
+ 32, 32, 32, 32, 32, 33, 34, 35, 37, 38, 42, 45, 47, 51, 56, 58, 62, 68, 72, 76, 78, 82, 85, 88, 90, 93, 96, 99, 102, 105, 109, 31, 32, 32, 32, 32,
+ 32, 33, 33, 34, 36, 37, 41, 44, 46, 50, 54, 56, 60, 65, 70, 73, 76, 79, 82, 85, 88, 91, 95, 98, 101, 105, 109, 31, 32, 32, 32, 32, 33, 33, 34, 35,
+ 36, 38, 41, 44, 45, 49, 54, 56, 59, 65, 69, 72, 75, 78, 81, 84, 86, 89, 92, 95, 98, 101, 104, 31, 32, 32, 32, 33, 34, 34, 35, 36, 38, 39, 42, 45,
+ 46, 50, 54, 56, 59, 64, 68, 71, 74, 77, 79, 82, 85, 88, 91, 94, 97, 100, 104, 32, 32, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 45, 46, 49, 53, 55,
+ 58, 63, 66, 69, 72, 74, 78, 81, 84, 87, 90, 93, 96, 99, 102, 32, 33, 33, 33, 34, 36, 36, 38, 40, 41, 42, 44, 47, 48, 51, 55, 57, 60, 65, 68, 71,
+ 73, 76, 78, 80, 82, 85, 88, 91, 95, 98, 102, 34, 34, 33, 34, 35, 37, 38, 39, 42, 44, 45, 47, 50, 51, 54, 58, 60, 63, 68, 71, 74, 76, 79, 82, 85,
+ 86, 87, 88, 90, 93, 96, 99, 36, 35, 34, 35, 36, 38, 40, 42, 48, 50, 50, 54, 56, 57, 60, 64, 65, 68, 73, 76, 79, 81, 84, 86, 86, 88, 90, 93, 95, 97,
+ 98, 100, 38, 37, 36, 36, 38, 39, 41, 44, 50, 51, 52, 56, 58, 60, 63, 67, 68, 71, 76, 79, 82, 84, 87, 87, 90, 93, 94, 95, 96, 100, 103, 106, 39, 38,
+ 37, 38, 39, 40, 42, 45, 50, 52, 54, 58, 60, 62, 65, 69, 70, 73, 78, 81, 84, 86, 89, 92, 95, 95, 96, 99, 102, 104, 105, 106, 44, 42, 41, 41, 42, 42,
+ 44, 47, 54, 56, 58, 63, 66, 68, 71, 75, 77, 79, 84, 88, 90, 92, 95, 97, 97, 99, 102, 103, 103, 106, 109, 113, 47, 45, 44, 44, 45, 45, 47, 50, 56,
+ 58, 60, 66, 69, 71, 75, 79, 81, 84, 89, 92, 95, 97, 100, 100, 102, 105, 104, 106, 109, 111, 112, 113, 49, 47, 46, 45, 46, 46, 48, 51, 57, 60, 62,
+ 68, 71, 73, 77, 81, 83, 87, 92, 95, 98, 100, 103, 105, 107, 106, 109, 112, 112, 113, 117, 120, 54, 51, 50, 49, 50, 49, 51, 54, 60, 63, 65, 71, 75,
+ 77, 82, 87, 89, 92, 97, 101, 104, 106, 109, 112, 110, 113, 114, 114, 117, 121, 121, 121, 59, 56, 54, 54, 54, 53, 55, 58, 64, 67, 69, 75, 79, 81,
+ 87, 92, 94, 98, 103, 107, 110, 113, 116, 114, 117, 118, 117, 121, 122, 122, 125, 129, 61, 58, 56, 56, 56, 55, 57, 60, 65, 68, 70, 77, 81, 83, 89,
+ 94, 97, 101, 106, 110, 113, 116, 119, 120, 122, 121, 126, 124, 125, 130, 130, 130, 65, 62, 60, 59, 59, 58, 60, 63, 68, 71, 73, 79, 84, 87, 92, 98,
+ 101, 105, 111, 115, 118, 121, 124, 128, 125, 129, 128, 131, 133, 132, 135, 139, 71, 68, 65, 65, 64, 63, 65, 68, 73, 76, 78, 84, 89, 92, 97, 103,
+ 106, 111, 117, 122, 125, 128, 131, 131, 134, 132, 134, 136, 136, 140, 141, 140, 76, 72, 70, 69, 68, 66, 68, 71, 76, 79, 81, 88, 92, 95, 101, 107,
+ 110, 115, 122, 127, 130, 133, 136, 136, 138, 139, 141, 140, 145, 143, 146, 151, 80, 76, 73, 72, 71, 69, 71, 74, 79, 82, 84, 90, 95, 98, 104, 110,
+ 113, 118, 125, 130, 134, 137, 140, 146, 142, 146, 145, 149, 146, 150, 152, 151, 83, 78, 76, 75, 74, 72, 73, 76, 81, 84, 86, 92, 97, 100, 106, 113,
+ 116, 121, 128, 133, 137, 140, 144, 147, 152, 148, 154, 151, 156, 155, 156, 162, 86, 82, 79, 78, 77, 74, 76, 79, 84, 87, 89, 95, 100, 103, 109, 116,
+ 119, 124, 131, 136, 140, 144, 147, 150, 154, 159, 157, 160, 160, 162, 165, 162, 89, 85, 82, 81, 79, 78, 78, 82, 86, 87, 92, 97, 100, 105, 112, 114,
+ 120, 128, 131, 136, 146, 147, 150, 155, 156, 161, 166, 165, 167, 169, 169, 175, 92, 88, 85, 84, 82, 81, 80, 85, 86, 90, 95, 97, 102, 107, 110, 117,
+ 122, 125, 134, 138, 142, 152, 154, 156, 162, 163, 168, 173, 174, 174, 178, 176, 95, 90, 88, 86, 85, 84, 82, 86, 88, 93, 95, 99, 105, 106, 113, 118,
+ 121, 129, 132, 139, 146, 148, 159, 161, 163, 169, 170, 176, 180, 183, 181, 187, 98, 93, 91, 89, 88, 87, 85, 87, 90, 94, 96, 102, 104, 109, 114,
+ 117, 126, 128, 134, 141, 145, 154, 157, 166, 168, 170, 176, 178, 184, 188, 193, 188, 101, 96, 95, 92, 91, 90, 88, 88, 93, 95, 99, 103, 106, 112,
+ 114, 121, 124, 131, 136, 140, 149, 151, 160, 165, 173, 176, 178, 184, 186, 192, 196, 203, 104, 99, 98, 95, 94, 93, 91, 90, 95, 96, 102, 103, 109,
+ 112, 117, 122, 125, 133, 136, 145, 146, 156, 160, 167, 174, 180, 184, 186, 193, 194, 201, 204, 108, 102, 101, 98, 97, 96, 95, 93, 97, 100, 104,
+ 106, 111, 113, 121, 122, 130, 132, 140, 143, 150, 155, 162, 169, 174, 183, 188, 192, 194, 201, 202, 210, 111, 105, 105, 101, 100, 99, 98, 96, 98,
+ 103, 105, 109, 112, 117, 121, 125, 130, 135, 141, 146, 152, 156, 165, 169, 178, 181, 193, 196, 201, 202, 210, 211, 114, 109, 109, 104, 104, 102,
+ 102, 99, 100, 106, 106, 113, 113, 120, 121, 129, 130, 139, 140, 151, 151, 162, 162, 175, 176, 187, 188, 203, 204, 210, 211, 219, 32, 42, 69, 88,
+ 33, 42, 64, 83, 36, 56, 77, 88, 46, 67, 93, 105, 60, 79, 112, 122, 75, 92, 130, 144, 86, 95, 136, 167, 98, 105, 136, 177, 32, 33, 36, 46, 60, 75,
+ 86, 98, 42, 42, 56, 67, 79, 92, 95, 105, 69, 64, 77, 93, 112, 130, 136, 136, 88, 83, 88, 105, 122, 144, 167, 177, 32, 32, 36, 47, 65, 79, 90, 96,
+ 31, 32, 35, 44, 60, 72, 84, 90, 32, 34, 36, 45, 59, 71, 80, 87, 32, 35, 40, 47, 60, 71, 78, 85, 36, 37, 48, 56, 68, 78, 83, 87, 39, 40, 50, 60, 73,
+ 84, 91, 94, 47, 45, 56, 69, 84, 95, 101, 101, 53, 50, 60, 75, 92, 103, 108, 110, 61, 56, 65, 81, 100, 113, 116, 118, 71, 64, 73, 89, 111, 125, 129,
+ 129, 79, 70, 79, 95, 118, 133, 142, 138, 86, 76, 84, 100, 124, 140, 153, 150, 92, 82, 89, 101, 121, 148, 157, 161, 98, 88, 93, 108, 124, 141, 163,
+ 174, 104, 94, 95, 110, 129, 151, 171, 181, 110, 100, 98, 111, 127, 147, 169, 188, 32, 31, 32, 32, 36, 39, 47, 53, 61, 71, 79, 86, 92, 98, 104, 110,
+ 32, 32, 34, 35, 37, 40, 45, 50, 56, 64, 70, 76, 82, 88, 94, 100, 36, 35, 36, 40, 48, 50, 56, 60, 65, 73, 79, 84, 89, 93, 95, 98, 47, 44, 45, 47,
+ 56, 60, 69, 75, 81, 89, 95, 100, 101, 108, 110, 111, 65, 60, 59, 60, 68, 73, 84, 92, 100, 111, 118, 124, 121, 124, 129, 127, 79, 72, 71, 71, 78,
+ 84, 95, 103, 113, 125, 133, 140, 148, 141, 151, 147, 90, 84, 80, 78, 83, 91, 101, 108, 116, 129, 142, 153, 157, 163, 171, 169, 96, 90, 87, 85, 87,
+ 94, 101, 110, 118, 129, 138, 150, 161, 174, 181, 188, 32, 31, 32, 32, 36, 44, 47, 53, 65, 73, 79, 87, 90, 93, 96, 99, 31, 32, 32, 33, 35, 42, 45,
+ 51, 62, 69, 75, 83, 86, 88, 91, 94, 31, 32, 32, 33, 35, 41, 44, 49, 60, 67, 72, 80, 84, 87, 90, 94, 31, 32, 33, 33, 35, 41, 44, 49, 59, 66, 71, 79,
+ 82, 84, 87, 90, 32, 32, 34, 34, 36, 42, 45, 50, 59, 65, 71, 78, 80, 83, 87, 90, 32, 33, 35, 36, 38, 42, 45, 49, 58, 64, 69, 76, 80, 83, 86, 88, 32,
+ 33, 35, 36, 40, 44, 47, 51, 60, 66, 71, 76, 78, 81, 85, 89, 34, 34, 36, 38, 42, 48, 50, 54, 63, 69, 73, 80, 82, 81, 84, 86, 36, 34, 37, 40, 48, 54,
+ 56, 60, 68, 74, 78, 84, 83, 86, 87, 87, 38, 36, 39, 41, 49, 56, 58, 63, 71, 77, 81, 86, 88, 88, 90, 93, 39, 37, 40, 42, 50, 58, 60, 65, 73, 79, 84,
+ 90, 91, 92, 94, 93, 44, 41, 42, 45, 53, 63, 66, 71, 79, 85, 90, 96, 94, 96, 96, 99, 47, 44, 45, 47, 56, 66, 69, 75, 84, 90, 95, 99, 101, 98, 101,
+ 99, 49, 46, 47, 48, 57, 67, 71, 77, 86, 93, 97, 103, 103, 105, 102, 106, 53, 49, 50, 51, 60, 71, 75, 82, 92, 99, 103, 111, 108, 107, 110, 107, 58,
+ 54, 54, 55, 63, 75, 79, 87, 98, 105, 110, 114, 114, 113, 111, 115, 61, 56, 56, 57, 65, 77, 81, 89, 100, 107, 113, 118, 116, 117, 118, 116, 65, 60,
+ 59, 60, 68, 79, 84, 92, 105, 112, 118, 126, 124, 122, 121, 124, 71, 65, 64, 65, 73, 84, 89, 97, 111, 119, 125, 130, 129, 129, 129, 125, 76, 69, 68,
+ 69, 76, 88, 92, 101, 115, 123, 130, 134, 134, 131, 132, 135, 79, 72, 70, 71, 79, 90, 95, 104, 118, 127, 133, 143, 142, 141, 138, 136, 82, 75, 73,
+ 74, 81, 92, 97, 106, 121, 130, 136, 146, 145, 144, 144, 145, 86, 78, 76, 77, 84, 95, 100, 109, 124, 133, 140, 147, 153, 151, 150, 146, 89, 81, 79,
+ 78, 87, 95, 99, 112, 124, 130, 145, 152, 156, 157, 156, 158, 92, 84, 82, 80, 89, 95, 101, 116, 121, 132, 148, 151, 157, 163, 161, 159, 95, 86, 85,
+ 83, 92, 95, 105, 114, 120, 136, 143, 155, 163, 167, 171, 170, 98, 89, 88, 85, 93, 95, 108, 113, 124, 136, 141, 160, 163, 169, 174, 171, 101, 92,
+ 91, 88, 94, 98, 110, 112, 128, 133, 146, 158, 166, 175, 179, 185, 104, 95, 94, 91, 95, 101, 110, 115, 129, 132, 151, 154, 171, 175, 181, 186, 107,
+ 98, 97, 94, 96, 105, 110, 119, 128, 136, 149, 156, 173, 177, 188, 192, 110, 101, 100, 97, 98, 108, 111, 123, 127, 141, 147, 161, 169, 183, 188,
+ 193, 114, 104, 104, 100, 100, 111, 111, 126, 127, 145, 145, 166, 166, 189, 190, 201, 32, 31, 31, 31, 32, 32, 32, 34, 36, 38, 39, 44, 47, 49, 53,
+ 58, 61, 65, 71, 76, 79, 82, 86, 89, 92, 95, 98, 101, 104, 107, 110, 114, 31, 32, 32, 32, 32, 33, 33, 34, 34, 36, 37, 41, 44, 46, 49, 54, 56, 60,
+ 65, 69, 72, 75, 78, 81, 84, 86, 89, 92, 95, 98, 101, 104, 32, 32, 32, 33, 34, 35, 35, 36, 37, 39, 40, 42, 45, 47, 50, 54, 56, 59, 64, 68, 70, 73,
+ 76, 79, 82, 85, 88, 91, 94, 97, 100, 104, 32, 33, 33, 33, 34, 36, 36, 38, 40, 41, 42, 45, 47, 48, 51, 55, 57, 60, 65, 69, 71, 74, 77, 78, 80, 83,
+ 85, 88, 91, 94, 97, 100, 36, 35, 35, 35, 36, 38, 40, 42, 48, 49, 50, 53, 56, 57, 60, 63, 65, 68, 73, 76, 79, 81, 84, 87, 89, 92, 93, 94, 95, 96,
+ 98, 100, 44, 42, 41, 41, 42, 42, 44, 48, 54, 56, 58, 63, 66, 67, 71, 75, 77, 79, 84, 88, 90, 92, 95, 95, 95, 95, 95, 98, 101, 105, 108, 111, 47,
+ 45, 44, 44, 45, 45, 47, 50, 56, 58, 60, 66, 69, 71, 75, 79, 81, 84, 89, 92, 95, 97, 100, 99, 101, 105, 108, 110, 110, 110, 111, 111, 53, 51, 49,
+ 49, 50, 49, 51, 54, 60, 63, 65, 71, 75, 77, 82, 87, 89, 92, 97, 101, 104, 106, 109, 112, 116, 114, 113, 112, 115, 119, 123, 126, 65, 62, 60, 59,
+ 59, 58, 60, 63, 68, 71, 73, 79, 84, 86, 92, 98, 100, 105, 111, 115, 118, 121, 124, 124, 121, 120, 124, 128, 129, 128, 127, 127, 73, 69, 67, 66, 65,
+ 64, 66, 69, 74, 77, 79, 85, 90, 93, 99, 105, 107, 112, 119, 123, 127, 130, 133, 130, 132, 136, 136, 133, 132, 136, 141, 145, 79, 75, 72, 71, 71,
+ 69, 71, 73, 78, 81, 84, 90, 95, 97, 103, 110, 113, 118, 125, 130, 133, 136, 140, 145, 148, 143, 141, 146, 151, 149, 147, 145, 87, 83, 80, 79, 78,
+ 76, 76, 80, 84, 86, 90, 96, 99, 103, 111, 114, 118, 126, 130, 134, 143, 146, 147, 152, 151, 155, 160, 158, 154, 156, 161, 166, 90, 86, 84, 82, 80,
+ 80, 78, 82, 83, 88, 91, 94, 101, 103, 108, 114, 116, 124, 129, 134, 142, 145, 153, 156, 157, 163, 163, 166, 171, 173, 169, 166, 93, 88, 87, 84, 83,
+ 83, 81, 81, 86, 88, 92, 96, 98, 105, 107, 113, 117, 122, 129, 131, 141, 144, 151, 157, 163, 167, 169, 175, 175, 177, 183, 189, 96, 91, 90, 87, 87,
+ 86, 85, 84, 87, 90, 94, 96, 101, 102, 110, 111, 118, 121, 129, 132, 138, 144, 150, 156, 161, 171, 174, 179, 181, 188, 188, 190, 99, 94, 94, 90, 90,
+ 88, 89, 86, 87, 93, 93, 99, 99, 106, 107, 115, 116, 124, 125, 135, 136, 145, 146, 158, 159, 170, 171, 185, 186, 192, 193, 201, 31, 44, 73, 93, 32,
+ 41, 67, 87, 32, 42, 65, 83, 33, 44, 66, 81, 34, 54, 74, 86, 37, 58, 79, 92, 44, 66, 90, 98, 49, 71, 99, 107, 56, 77, 107, 117, 65, 84, 119, 129,
+ 72, 90, 127, 141, 78, 95, 133, 151, 84, 95, 132, 163, 89, 95, 136, 169, 95, 101, 132, 175, 101, 108, 141, 183, 31, 32, 32, 33, 34, 37, 44, 49, 56,
+ 65, 72, 78, 84, 89, 95, 101, 44, 41, 42, 44, 54, 58, 66, 71, 77, 84, 90, 95, 95, 95, 101, 108, 73, 67, 65, 66, 74, 79, 90, 99, 107, 119, 127, 133,
+ 132, 136, 132, 141, 93, 87, 83, 81, 86, 92, 98, 107, 117, 129, 141, 151, 163, 169, 175, 183, 32, 32, 36, 47, 65, 79, 90, 96, 31, 32, 35, 45, 62,
+ 75, 86, 91, 31, 32, 35, 44, 60, 72, 84, 90, 31, 33, 35, 44, 59, 71, 82, 87, 32, 34, 36, 45, 59, 71, 80, 87, 32, 35, 38, 45, 58, 69, 80, 86, 32, 35,
+ 40, 47, 60, 71, 78, 85, 34, 36, 42, 50, 63, 73, 82, 84, 36, 37, 48, 56, 68, 78, 83, 87, 38, 39, 49, 58, 71, 81, 88, 90, 39, 40, 50, 60, 73, 84, 91,
+ 94, 44, 42, 53, 66, 79, 90, 94, 96, 47, 45, 56, 69, 84, 95, 101, 101, 49, 47, 57, 71, 86, 97, 103, 102, 53, 50, 60, 75, 92, 103, 108, 110, 58, 54,
+ 63, 79, 98, 110, 114, 111, 61, 56, 65, 81, 100, 113, 116, 118, 65, 59, 68, 84, 105, 118, 124, 121, 71, 64, 73, 89, 111, 125, 129, 129, 76, 68, 76,
+ 92, 115, 130, 134, 132, 79, 70, 79, 95, 118, 133, 142, 138, 82, 73, 81, 97, 121, 136, 145, 144, 86, 76, 84, 100, 124, 140, 153, 150, 89, 79, 87,
+ 99, 124, 145, 156, 156, 92, 82, 89, 101, 121, 148, 157, 161, 95, 85, 92, 105, 120, 143, 163, 171, 98, 88, 93, 108, 124, 141, 163, 174, 101, 91, 94,
+ 110, 128, 146, 166, 179, 104, 94, 95, 110, 129, 151, 171, 181, 107, 97, 96, 110, 128, 149, 173, 188, 110, 100, 98, 111, 127, 147, 169, 188, 114,
+ 104, 100, 111, 127, 145, 166, 190, 32, 31, 31, 31, 32, 32, 32, 34, 36, 38, 39, 44, 47, 49, 53, 58, 61, 65, 71, 76, 79, 82, 86, 89, 92, 95, 98, 101,
+ 104, 107, 110, 114, 32, 32, 32, 33, 34, 35, 35, 36, 37, 39, 40, 42, 45, 47, 50, 54, 56, 59, 64, 68, 70, 73, 76, 79, 82, 85, 88, 91, 94, 97, 100,
+ 104, 36, 35, 35, 35, 36, 38, 40, 42, 48, 49, 50, 53, 56, 57, 60, 63, 65, 68, 73, 76, 79, 81, 84, 87, 89, 92, 93, 94, 95, 96, 98, 100, 47, 45, 44,
+ 44, 45, 45, 47, 50, 56, 58, 60, 66, 69, 71, 75, 79, 81, 84, 89, 92, 95, 97, 100, 99, 101, 105, 108, 110, 110, 110, 111, 111, 65, 62, 60, 59, 59,
+ 58, 60, 63, 68, 71, 73, 79, 84, 86, 92, 98, 100, 105, 111, 115, 118, 121, 124, 124, 121, 120, 124, 128, 129, 128, 127, 127, 79, 75, 72, 71, 71, 69,
+ 71, 73, 78, 81, 84, 90, 95, 97, 103, 110, 113, 118, 125, 130, 133, 136, 140, 145, 148, 143, 141, 146, 151, 149, 147, 145, 90, 86, 84, 82, 80, 80,
+ 78, 82, 83, 88, 91, 94, 101, 103, 108, 114, 116, 124, 129, 134, 142, 145, 153, 156, 157, 163, 163, 166, 171, 173, 169, 166, 96, 91, 90, 87, 87, 86,
+ 85, 84, 87, 90, 94, 96, 101, 102, 110, 111, 118, 121, 129, 132, 138, 144, 150, 156, 161, 171, 174, 179, 181, 188, 188, 190,
+ ],
+ [
+ 33, 45, 56, 64, 45, 58, 66, 69, 56, 66, 86, 87, 64, 69, 87, 105, 31, 38, 47, 48, 54, 61, 66, 69, 38, 47, 47, 46, 50, 55, 61, 65, 47, 47, 53, 55,
+ 58, 63, 65, 66, 48, 46, 55, 62, 67, 72, 73, 73, 54, 50, 58, 67, 76, 83, 84, 82, 61, 55, 63, 72, 83, 91, 92, 92, 66, 61, 65, 73, 84, 92, 101, 103,
+ 69, 65, 66, 73, 82, 92, 103, 109, 32, 30, 33, 38, 49, 48, 50, 52, 55, 60, 63, 66, 68, 70, 72, 74, 30, 31, 35, 41, 46, 46, 46, 48, 51, 55, 58, 60,
+ 63, 65, 68, 70, 33, 35, 39, 44, 47, 46, 46, 47, 50, 53, 56, 58, 60, 62, 65, 67, 38, 41, 44, 47, 49, 48, 47, 48, 50, 53, 55, 58, 58, 60, 62, 65, 49,
+ 46, 47, 49, 53, 53, 54, 54, 56, 58, 60, 62, 62, 63, 64, 64, 48, 46, 46, 48, 53, 54, 56, 57, 59, 61, 63, 65, 67, 66, 68, 68, 50, 46, 46, 47, 54, 56,
+ 61, 63, 65, 68, 70, 72, 71, 71, 72, 72, 52, 48, 47, 48, 54, 57, 63, 66, 69, 72, 75, 76, 75, 76, 76, 76, 55, 51, 50, 50, 56, 59, 65, 69, 73, 77, 79,
+ 81, 81, 81, 80, 80, 60, 55, 53, 53, 58, 61, 68, 72, 77, 82, 85, 87, 87, 85, 84, 85, 63, 58, 56, 55, 60, 63, 70, 75, 79, 85, 89, 91, 91, 90, 89, 90,
+ 66, 60, 58, 58, 62, 65, 72, 76, 81, 87, 91, 94, 96, 95, 95, 95, 68, 63, 60, 58, 62, 67, 71, 75, 81, 87, 91, 96, 99, 100, 100, 100, 70, 65, 62, 60,
+ 63, 66, 71, 76, 81, 85, 90, 95, 100, 103, 104, 105, 72, 68, 65, 62, 64, 68, 72, 76, 80, 84, 89, 95, 100, 104, 107, 108, 74, 70, 67, 65, 64, 68, 72,
+ 76, 80, 85, 90, 95, 100, 105, 108, 111, 32, 31, 30, 31, 33, 36, 38, 41, 49, 49, 48, 49, 50, 51, 52, 54, 55, 57, 60, 62, 63, 65, 66, 67, 68, 69, 70,
+ 71, 72, 73, 74, 75, 31, 31, 31, 32, 34, 38, 40, 42, 47, 47, 47, 47, 48, 48, 50, 52, 53, 54, 57, 59, 60, 61, 63, 64, 65, 66, 67, 67, 68, 69, 70, 71,
+ 30, 31, 31, 32, 35, 39, 41, 42, 46, 46, 46, 45, 46, 47, 48, 50, 51, 52, 55, 57, 58, 59, 60, 62, 63, 64, 65, 67, 68, 69, 70, 71, 31, 32, 32, 33, 36,
+ 40, 41, 43, 46, 46, 45, 45, 46, 46, 47, 49, 50, 51, 54, 56, 57, 58, 59, 61, 62, 63, 63, 64, 65, 66, 67, 68, 33, 34, 35, 36, 39, 43, 44, 45, 47, 46,
+ 46, 45, 46, 47, 47, 49, 50, 51, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 36, 38, 39, 40, 43, 47, 47, 47, 48, 47, 46, 45, 46, 46, 47,
+ 48, 49, 50, 52, 53, 54, 55, 56, 58, 59, 61, 62, 63, 64, 65, 66, 66, 38, 40, 41, 41, 44, 47, 47, 48, 49, 48, 48, 47, 47, 47, 48, 49, 50, 51, 53, 54,
+ 55, 56, 58, 58, 58, 59, 60, 61, 62, 64, 65, 66, 41, 42, 42, 43, 45, 47, 48, 48, 50, 50, 49, 49, 50, 50, 50, 52, 52, 53, 55, 56, 57, 58, 59, 60, 61,
+ 61, 61, 61, 62, 63, 63, 64, 49, 47, 46, 46, 47, 48, 49, 50, 53, 53, 53, 53, 54, 54, 54, 55, 56, 56, 58, 59, 60, 61, 62, 63, 62, 62, 63, 64, 64, 64,
+ 64, 64, 49, 47, 46, 46, 46, 47, 48, 50, 53, 53, 54, 55, 55, 55, 56, 57, 58, 58, 60, 61, 62, 63, 64, 64, 64, 65, 65, 65, 65, 66, 67, 68, 48, 47, 46,
+ 45, 46, 46, 48, 49, 53, 54, 54, 55, 56, 56, 57, 58, 59, 60, 61, 63, 63, 64, 65, 66, 67, 66, 66, 67, 68, 68, 68, 68, 49, 47, 45, 45, 45, 45, 47, 49,
+ 53, 55, 55, 58, 59, 60, 61, 62, 63, 63, 65, 66, 67, 68, 69, 69, 68, 68, 69, 69, 69, 69, 70, 71, 50, 48, 46, 46, 46, 46, 47, 50, 54, 55, 56, 59, 61,
+ 61, 63, 64, 65, 66, 68, 69, 70, 71, 72, 71, 71, 72, 71, 71, 72, 72, 72, 71, 51, 48, 47, 46, 47, 46, 47, 50, 54, 55, 56, 60, 61, 62, 64, 66, 66, 67,
+ 69, 70, 71, 72, 73, 73, 74, 73, 73, 74, 73, 73, 74, 75, 52, 50, 48, 47, 47, 47, 48, 50, 54, 56, 57, 61, 63, 64, 66, 68, 69, 70, 72, 74, 75, 75, 76,
+ 77, 75, 76, 76, 75, 76, 77, 76, 75, 54, 52, 50, 49, 49, 48, 49, 52, 55, 57, 58, 62, 64, 66, 68, 71, 72, 73, 75, 77, 78, 79, 80, 78, 79, 78, 77, 78,
+ 78, 77, 78, 79, 55, 53, 51, 50, 50, 49, 50, 52, 56, 58, 59, 63, 65, 66, 69, 72, 73, 74, 77, 78, 79, 80, 81, 81, 81, 80, 81, 80, 80, 81, 80, 79, 57,
+ 54, 52, 51, 51, 50, 51, 53, 56, 58, 60, 63, 66, 67, 70, 73, 74, 76, 79, 80, 82, 83, 84, 85, 83, 84, 83, 83, 83, 82, 82, 83, 60, 57, 55, 54, 53, 52,
+ 53, 55, 58, 60, 61, 65, 68, 69, 72, 75, 77, 79, 82, 84, 85, 86, 87, 86, 87, 85, 85, 85, 84, 86, 85, 84, 62, 59, 57, 56, 55, 53, 54, 56, 59, 61, 63,
+ 66, 69, 70, 74, 77, 78, 80, 84, 86, 87, 88, 90, 89, 89, 88, 88, 87, 88, 87, 87, 88, 63, 60, 58, 57, 56, 54, 55, 57, 60, 62, 63, 67, 70, 71, 75, 78,
+ 79, 82, 85, 87, 89, 90, 91, 93, 91, 91, 90, 91, 89, 90, 90, 89, 65, 61, 59, 58, 57, 55, 56, 58, 61, 63, 64, 68, 71, 72, 75, 79, 80, 83, 86, 88, 90,
+ 91, 93, 94, 95, 92, 94, 92, 93, 92, 91, 93, 66, 63, 60, 59, 58, 56, 58, 59, 62, 64, 65, 69, 72, 73, 76, 80, 81, 84, 87, 90, 91, 93, 94, 95, 96, 97,
+ 95, 95, 95, 95, 95, 93, 67, 64, 62, 61, 59, 58, 58, 60, 63, 64, 66, 69, 71, 73, 77, 78, 81, 85, 86, 89, 93, 94, 95, 97, 97, 98, 99, 97, 97, 97, 96,
+ 98, 68, 65, 63, 62, 60, 59, 58, 61, 62, 64, 67, 68, 71, 74, 75, 79, 81, 83, 87, 89, 91, 95, 96, 97, 99, 98, 100, 100, 100, 99, 100, 98, 69, 66, 64,
+ 63, 61, 61, 59, 61, 62, 65, 66, 68, 72, 73, 76, 78, 80, 84, 85, 88, 91, 92, 97, 98, 98, 101, 100, 102, 102, 103, 101, 102, 70, 67, 65, 63, 62, 62,
+ 60, 61, 63, 65, 66, 69, 71, 73, 76, 77, 81, 83, 85, 88, 90, 94, 95, 99, 100, 100, 103, 102, 104, 104, 105, 103, 71, 67, 67, 64, 63, 63, 61, 61, 64,
+ 65, 67, 69, 71, 74, 75, 78, 80, 83, 85, 87, 91, 92, 95, 97, 100, 102, 102, 105, 104, 106, 106, 108, 72, 68, 68, 65, 65, 64, 62, 62, 64, 65, 68, 69,
+ 72, 73, 76, 78, 80, 83, 84, 88, 89, 93, 95, 97, 100, 102, 104, 104, 107, 106, 108, 108, 73, 69, 69, 66, 66, 65, 64, 63, 64, 66, 68, 69, 72, 73, 77,
+ 77, 81, 82, 86, 87, 90, 92, 95, 97, 99, 103, 104, 106, 106, 109, 108, 110, 74, 70, 70, 67, 67, 66, 65, 63, 64, 67, 68, 70, 72, 74, 76, 78, 80, 82,
+ 85, 87, 90, 91, 95, 96, 100, 101, 105, 106, 108, 108, 111, 110, 75, 71, 71, 68, 68, 66, 66, 64, 64, 68, 68, 71, 71, 75, 75, 79, 79, 83, 84, 88, 89,
+ 93, 93, 98, 98, 102, 103, 108, 108, 110, 110, 113, 31, 47, 57, 65, 40, 45, 52, 61, 46, 55, 61, 63, 47, 60, 70, 72, 52, 64, 79, 81, 59, 68, 87, 90,
+ 63, 66, 88, 99, 66, 69, 85, 102, 31, 40, 46, 47, 52, 59, 63, 66, 47, 45, 55, 60, 64, 68, 66, 69, 57, 52, 61, 70, 79, 87, 88, 85, 65, 61, 63, 72,
+ 81, 90, 99, 102, 32, 35, 48, 50, 57, 63, 68, 70, 30, 38, 46, 46, 52, 58, 63, 65, 33, 41, 47, 46, 51, 56, 60, 63, 39, 46, 48, 47, 51, 55, 58, 61,
+ 49, 48, 53, 54, 57, 60, 61, 61, 48, 46, 53, 56, 60, 64, 65, 65, 50, 46, 54, 61, 66, 70, 71, 69, 52, 47, 54, 63, 71, 75, 75, 74, 55, 49, 56, 65, 74,
+ 79, 79, 78, 60, 53, 58, 68, 79, 85, 85, 82, 63, 55, 60, 70, 82, 89, 91, 87, 66, 58, 62, 72, 84, 91, 95, 91, 68, 60, 64, 71, 81, 94, 97, 96, 70, 62,
+ 65, 73, 81, 89, 98, 101, 72, 65, 65, 72, 82, 92, 100, 103, 74, 67, 65, 71, 79, 89, 98, 105, 32, 30, 33, 39, 49, 48, 50, 52, 55, 60, 63, 66, 68, 70,
+ 72, 74, 35, 38, 41, 46, 48, 46, 46, 47, 49, 53, 55, 58, 60, 62, 65, 67, 48, 46, 47, 48, 53, 53, 54, 54, 56, 58, 60, 62, 64, 65, 65, 65, 50, 46, 46,
+ 47, 54, 56, 61, 63, 65, 68, 70, 72, 71, 73, 72, 71, 57, 52, 51, 51, 57, 60, 66, 71, 74, 79, 82, 84, 81, 81, 82, 79, 63, 58, 56, 55, 60, 64, 70, 75,
+ 79, 85, 89, 91, 94, 89, 92, 89, 68, 63, 60, 58, 61, 65, 71, 75, 79, 85, 91, 95, 97, 98, 100, 98, 70, 65, 63, 61, 61, 65, 69, 74, 78, 82, 87, 91,
+ 96, 101, 103, 105, 32, 31, 35, 38, 48, 49, 50, 52, 57, 61, 63, 67, 68, 69, 70, 71, 31, 31, 37, 40, 47, 47, 48, 50, 54, 57, 60, 63, 64, 65, 66, 67,
+ 30, 32, 38, 40, 46, 45, 46, 48, 52, 55, 58, 61, 63, 64, 65, 67, 31, 33, 38, 41, 46, 45, 46, 48, 52, 55, 57, 60, 61, 62, 63, 64, 33, 36, 41, 44, 47,
+ 46, 46, 47, 51, 54, 56, 59, 60, 61, 63, 64, 37, 40, 45, 47, 47, 45, 46, 47, 50, 52, 54, 57, 59, 61, 62, 62, 39, 41, 46, 47, 48, 47, 47, 48, 51, 54,
+ 55, 57, 58, 59, 61, 62, 42, 43, 46, 48, 50, 49, 50, 50, 53, 56, 57, 60, 60, 59, 60, 60, 49, 46, 48, 49, 53, 53, 54, 54, 57, 59, 60, 63, 61, 62, 61,
+ 61, 48, 46, 47, 48, 53, 55, 55, 56, 58, 61, 62, 64, 64, 63, 63, 64, 48, 46, 46, 48, 53, 56, 56, 57, 60, 62, 64, 66, 65, 65, 65, 64, 49, 45, 45, 47,
+ 53, 58, 59, 61, 64, 66, 67, 69, 67, 67, 66, 67, 50, 46, 46, 48, 54, 59, 61, 63, 66, 68, 70, 71, 71, 68, 69, 67, 51, 47, 47, 48, 54, 60, 61, 64, 68,
+ 70, 71, 73, 72, 72, 70, 71, 52, 48, 47, 48, 54, 61, 63, 66, 71, 73, 75, 77, 75, 73, 74, 71, 54, 50, 49, 50, 55, 62, 65, 68, 73, 76, 78, 79, 78, 76,
+ 74, 75, 55, 51, 49, 50, 56, 63, 65, 69, 74, 77, 79, 81, 79, 78, 78, 75, 57, 52, 50, 51, 56, 64, 66, 70, 76, 79, 82, 85, 83, 81, 79, 79, 60, 54, 53,
+ 53, 58, 65, 68, 72, 79, 82, 85, 87, 85, 84, 82, 80, 62, 56, 54, 55, 60, 66, 69, 74, 81, 84, 87, 88, 87, 85, 84, 84, 63, 57, 55, 56, 60, 67, 70, 75,
+ 82, 86, 89, 92, 91, 89, 87, 84, 64, 59, 56, 57, 61, 68, 71, 75, 83, 87, 90, 93, 92, 90, 89, 89, 66, 60, 58, 58, 62, 69, 72, 76, 84, 88, 91, 94, 95,
+ 93, 91, 89, 67, 61, 59, 58, 63, 68, 71, 78, 83, 86, 93, 96, 96, 96, 94, 94, 68, 62, 60, 59, 64, 67, 71, 79, 81, 86, 94, 95, 97, 98, 96, 94, 69, 63,
+ 61, 60, 65, 66, 72, 77, 80, 88, 91, 96, 99, 99, 100, 98, 70, 64, 62, 60, 65, 66, 73, 76, 81, 87, 89, 97, 98, 100, 101, 99, 71, 65, 64, 61, 65, 67,
+ 73, 74, 82, 85, 90, 95, 99, 102, 103, 104, 72, 65, 65, 62, 65, 68, 72, 75, 82, 83, 92, 93, 100, 102, 103, 104, 73, 66, 66, 63, 65, 69, 72, 76, 81,
+ 85, 90, 93, 100, 102, 105, 106, 74, 67, 67, 64, 65, 70, 71, 77, 79, 86, 89, 94, 98, 103, 105, 106, 75, 68, 68, 65, 65, 71, 71, 78, 78, 87, 87, 96,
+ 96, 105, 105, 109, 32, 31, 30, 31, 33, 37, 39, 42, 49, 48, 48, 49, 50, 51, 52, 54, 55, 57, 60, 62, 63, 64, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
+ 31, 31, 32, 33, 36, 40, 41, 43, 46, 46, 46, 45, 46, 47, 48, 50, 51, 52, 54, 56, 57, 59, 60, 61, 62, 63, 64, 65, 65, 66, 67, 68, 35, 37, 38, 38, 41,
+ 45, 46, 46, 48, 47, 46, 45, 46, 47, 47, 49, 49, 50, 53, 54, 55, 56, 58, 59, 60, 61, 62, 64, 65, 66, 67, 68, 38, 40, 40, 41, 44, 47, 47, 48, 49, 48,
+ 48, 47, 48, 48, 48, 50, 50, 51, 53, 55, 56, 57, 58, 58, 59, 60, 60, 61, 62, 63, 64, 65, 48, 47, 46, 46, 47, 47, 48, 50, 53, 53, 53, 53, 54, 54, 54,
+ 55, 56, 56, 58, 60, 60, 61, 62, 63, 64, 65, 65, 65, 65, 65, 65, 65, 49, 47, 45, 45, 46, 45, 47, 49, 53, 55, 56, 58, 59, 60, 61, 62, 63, 64, 65, 66,
+ 67, 68, 69, 68, 67, 66, 66, 67, 68, 69, 70, 71, 50, 48, 46, 46, 46, 46, 47, 50, 54, 55, 56, 59, 61, 61, 63, 65, 65, 66, 68, 69, 70, 71, 72, 71, 71,
+ 72, 73, 73, 72, 72, 71, 71, 52, 50, 48, 48, 47, 47, 48, 50, 54, 56, 57, 61, 63, 64, 66, 68, 69, 70, 72, 74, 75, 75, 76, 78, 79, 77, 76, 74, 75, 76,
+ 77, 78, 57, 54, 52, 52, 51, 50, 51, 53, 57, 58, 60, 64, 66, 68, 71, 73, 74, 76, 79, 81, 82, 83, 84, 83, 81, 80, 81, 82, 82, 81, 79, 78, 61, 57, 55,
+ 55, 54, 52, 54, 56, 59, 61, 62, 66, 68, 70, 73, 76, 77, 79, 82, 84, 86, 87, 88, 86, 86, 88, 87, 85, 83, 85, 86, 87, 63, 60, 58, 57, 56, 54, 55, 57,
+ 60, 62, 64, 67, 70, 71, 75, 78, 79, 82, 85, 87, 89, 90, 91, 93, 94, 91, 89, 90, 92, 90, 89, 87, 67, 63, 61, 60, 59, 57, 57, 60, 63, 64, 66, 69, 71,
+ 73, 77, 79, 81, 85, 87, 88, 92, 93, 94, 96, 95, 96, 97, 95, 93, 93, 94, 96, 68, 64, 63, 61, 60, 59, 58, 60, 61, 64, 65, 67, 71, 72, 75, 78, 79, 83,
+ 85, 87, 91, 92, 95, 96, 97, 99, 98, 99, 100, 100, 98, 96, 69, 65, 64, 62, 61, 61, 59, 59, 62, 63, 65, 67, 68, 72, 73, 76, 78, 81, 84, 85, 89, 90,
+ 93, 96, 98, 99, 100, 102, 102, 102, 103, 105, 70, 66, 65, 63, 63, 62, 61, 60, 61, 63, 65, 66, 69, 70, 74, 74, 78, 79, 82, 84, 87, 89, 91, 94, 96,
+ 100, 101, 103, 103, 105, 105, 105, 71, 67, 67, 64, 64, 62, 62, 60, 61, 64, 64, 67, 67, 71, 71, 75, 75, 79, 80, 84, 84, 89, 89, 94, 94, 98, 99, 104,
+ 104, 106, 106, 109, 31, 49, 61, 69, 32, 45, 55, 64, 36, 46, 54, 61, 41, 47, 54, 59, 46, 53, 59, 62, 46, 56, 62, 65, 46, 59, 68, 68, 48, 61, 73, 73,
+ 51, 63, 77, 78, 54, 65, 82, 84, 57, 67, 86, 89, 60, 69, 88, 93, 62, 67, 86, 98, 64, 66, 87, 100, 65, 68, 83, 102, 67, 70, 86, 103, 31, 32, 36, 41,
+ 46, 46, 46, 48, 51, 54, 57, 60, 62, 64, 65, 67, 49, 45, 46, 47, 53, 56, 59, 61, 63, 65, 67, 69, 67, 66, 68, 70, 61, 55, 54, 54, 59, 62, 68, 73, 77,
+ 82, 86, 88, 86, 87, 83, 86, 69, 64, 61, 59, 62, 65, 68, 73, 78, 84, 89, 93, 98, 100, 102, 103, 32, 35, 48, 50, 57, 63, 68, 70, 31, 37, 47, 48, 54,
+ 60, 64, 66, 30, 38, 46, 46, 52, 58, 63, 65, 31, 38, 46, 46, 52, 57, 61, 63, 33, 41, 47, 46, 51, 56, 60, 63, 37, 45, 47, 46, 50, 54, 59, 62, 39, 46,
+ 48, 47, 51, 55, 58, 61, 42, 46, 50, 50, 53, 57, 60, 60, 49, 48, 53, 54, 57, 60, 61, 61, 48, 47, 53, 55, 58, 62, 64, 63, 48, 46, 53, 56, 60, 64, 65,
+ 65, 49, 45, 53, 59, 64, 67, 67, 66, 50, 46, 54, 61, 66, 70, 71, 69, 51, 47, 54, 61, 68, 71, 72, 70, 52, 47, 54, 63, 71, 75, 75, 74, 54, 49, 55, 65,
+ 73, 78, 78, 74, 55, 49, 56, 65, 74, 79, 79, 78, 57, 50, 56, 66, 76, 82, 83, 79, 60, 53, 58, 68, 79, 85, 85, 82, 62, 54, 60, 69, 81, 87, 87, 84, 63,
+ 55, 60, 70, 82, 89, 91, 87, 64, 56, 61, 71, 83, 90, 92, 89, 66, 58, 62, 72, 84, 91, 95, 91, 67, 59, 63, 71, 83, 93, 96, 94, 68, 60, 64, 71, 81, 94,
+ 97, 96, 69, 61, 65, 72, 80, 91, 99, 100, 70, 62, 65, 73, 81, 89, 98, 101, 71, 64, 65, 73, 82, 90, 99, 103, 72, 65, 65, 72, 82, 92, 100, 103, 73,
+ 66, 65, 72, 81, 90, 100, 105, 74, 67, 65, 71, 79, 89, 98, 105, 75, 68, 65, 71, 78, 87, 96, 105, 32, 31, 30, 31, 33, 37, 39, 42, 49, 48, 48, 49, 50,
+ 51, 52, 54, 55, 57, 60, 62, 63, 64, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 35, 37, 38, 38, 41, 45, 46, 46, 48, 47, 46, 45, 46, 47, 47, 49, 49, 50,
+ 53, 54, 55, 56, 58, 59, 60, 61, 62, 64, 65, 66, 67, 68, 48, 47, 46, 46, 47, 47, 48, 50, 53, 53, 53, 53, 54, 54, 54, 55, 56, 56, 58, 60, 60, 61, 62,
+ 63, 64, 65, 65, 65, 65, 65, 65, 65, 50, 48, 46, 46, 46, 46, 47, 50, 54, 55, 56, 59, 61, 61, 63, 65, 65, 66, 68, 69, 70, 71, 72, 71, 71, 72, 73, 73,
+ 72, 72, 71, 71, 57, 54, 52, 52, 51, 50, 51, 53, 57, 58, 60, 64, 66, 68, 71, 73, 74, 76, 79, 81, 82, 83, 84, 83, 81, 80, 81, 82, 82, 81, 79, 78, 63,
+ 60, 58, 57, 56, 54, 55, 57, 60, 62, 64, 67, 70, 71, 75, 78, 79, 82, 85, 87, 89, 90, 91, 93, 94, 91, 89, 90, 92, 90, 89, 87, 68, 64, 63, 61, 60, 59,
+ 58, 60, 61, 64, 65, 67, 71, 72, 75, 78, 79, 83, 85, 87, 91, 92, 95, 96, 97, 99, 98, 99, 100, 100, 98, 96, 70, 66, 65, 63, 63, 62, 61, 60, 61, 63,
+ 65, 66, 69, 70, 74, 74, 78, 79, 82, 84, 87, 89, 91, 94, 96, 100, 101, 103, 103, 105, 105, 105,
+ ],
+ ],
+ [
+ [
+ 32, 38, 63, 86, 38, 56, 78, 97, 63, 78, 113, 130, 86, 97, 130, 169, 32, 32, 35, 46, 57, 76, 85, 96, 32, 34, 37, 45, 54, 70, 79, 90, 35, 37, 48, 56,
+ 64, 79, 87, 93, 46, 45, 56, 70, 80, 96, 100, 105, 57, 54, 64, 80, 93, 111, 121, 122, 76, 70, 79, 96, 111, 134, 138, 144, 85, 79, 87, 100, 121, 138,
+ 156, 168, 96, 90, 93, 105, 122, 144, 168, 184, 32, 31, 31, 32, 34, 39, 44, 49, 58, 65, 71, 81, 87, 93, 98, 104, 31, 32, 32, 32, 34, 38, 41, 46, 54,
+ 60, 66, 75, 81, 86, 92, 98, 31, 32, 33, 34, 36, 39, 42, 46, 53, 59, 64, 73, 78, 83, 88, 94, 32, 32, 34, 35, 37, 40, 42, 46, 52, 58, 63, 71, 75, 80,
+ 86, 92, 34, 34, 36, 37, 42, 47, 50, 53, 59, 65, 70, 77, 82, 85, 89, 92, 39, 38, 39, 40, 47, 54, 58, 62, 68, 73, 78, 85, 90, 90, 96, 98, 44, 41, 42,
+ 42, 50, 58, 63, 68, 74, 79, 84, 91, 96, 98, 102, 104, 49, 46, 46, 46, 53, 62, 68, 73, 81, 87, 92, 99, 103, 107, 109, 112, 58, 54, 53, 52, 59, 68,
+ 74, 81, 90, 97, 102, 110, 114, 118, 117, 121, 65, 60, 59, 58, 65, 73, 79, 87, 97, 105, 111, 120, 125, 125, 126, 130, 71, 66, 64, 63, 70, 78, 84,
+ 92, 102, 111, 117, 127, 133, 134, 136, 141, 81, 75, 73, 71, 77, 85, 91, 99, 110, 120, 127, 137, 143, 145, 148, 152, 87, 81, 78, 75, 82, 90, 96,
+ 103, 114, 125, 133, 143, 150, 156, 160, 163, 93, 86, 83, 80, 85, 90, 98, 107, 118, 125, 134, 145, 156, 163, 169, 177, 98, 92, 88, 86, 89, 96, 102,
+ 109, 117, 126, 136, 148, 160, 169, 176, 184, 104, 98, 94, 92, 92, 98, 104, 112, 121, 130, 141, 152, 163, 177, 184, 191, 32, 31, 31, 31, 31, 32, 32,
+ 34, 34, 36, 39, 41, 44, 48, 49, 54, 58, 59, 65, 69, 71, 80, 81, 83, 87, 90, 93, 95, 98, 101, 104, 107, 31, 32, 32, 32, 32, 32, 32, 34, 34, 35, 38,
+ 39, 42, 46, 47, 51, 55, 57, 62, 66, 68, 76, 77, 78, 83, 85, 88, 90, 93, 96, 99, 101, 31, 32, 32, 32, 32, 32, 32, 33, 34, 34, 38, 39, 41, 45, 46,
+ 50, 54, 55, 60, 64, 66, 73, 75, 76, 81, 83, 86, 89, 92, 95, 98, 101, 31, 32, 32, 32, 32, 32, 32, 33, 34, 34, 37, 38, 41, 44, 45, 49, 53, 54, 59,
+ 63, 65, 72, 74, 75, 79, 81, 84, 86, 89, 91, 94, 97, 31, 32, 32, 32, 33, 33, 34, 35, 36, 36, 39, 40, 42, 45, 46, 50, 53, 54, 59, 63, 64, 71, 73, 74,
+ 78, 80, 83, 85, 88, 91, 94, 97, 32, 32, 32, 32, 33, 34, 34, 36, 36, 37, 40, 40, 42, 45, 46, 49, 53, 54, 58, 62, 63, 70, 72, 73, 77, 79, 82, 85, 87,
+ 90, 92, 95, 32, 32, 32, 32, 34, 34, 35, 37, 37, 38, 40, 41, 42, 45, 46, 49, 52, 54, 58, 61, 63, 69, 71, 72, 75, 78, 80, 83, 86, 89, 92, 95, 34, 34,
+ 33, 33, 35, 36, 37, 39, 41, 42, 45, 46, 47, 50, 51, 54, 57, 59, 63, 66, 68, 74, 75, 76, 80, 81, 82, 83, 85, 87, 90, 93, 34, 34, 34, 34, 36, 36, 37,
+ 41, 42, 45, 47, 48, 50, 53, 53, 56, 59, 61, 65, 68, 70, 76, 77, 78, 82, 83, 85, 88, 89, 90, 92, 93, 36, 35, 34, 34, 36, 37, 38, 42, 45, 48, 50, 51,
+ 54, 56, 57, 60, 63, 64, 68, 71, 73, 79, 80, 81, 85, 87, 89, 89, 90, 93, 96, 99, 39, 38, 38, 37, 39, 40, 40, 45, 47, 50, 54, 55, 58, 61, 62, 65, 68,
+ 69, 73, 76, 78, 84, 85, 86, 90, 89, 90, 93, 96, 97, 98, 99, 41, 39, 39, 38, 40, 40, 41, 46, 48, 51, 55, 56, 59, 62, 63, 67, 70, 71, 75, 78, 80, 86,
+ 87, 88, 91, 93, 96, 97, 97, 99, 102, 105, 44, 42, 41, 41, 42, 42, 42, 47, 50, 54, 58, 59, 63, 66, 68, 71, 74, 75, 79, 83, 84, 90, 91, 92, 96, 98,
+ 98, 99, 102, 104, 104, 105, 48, 46, 45, 44, 45, 45, 45, 50, 53, 56, 61, 62, 66, 70, 71, 76, 79, 80, 85, 88, 90, 96, 97, 98, 101, 100, 102, 105,
+ 105, 105, 109, 112, 49, 47, 46, 45, 46, 46, 46, 51, 53, 57, 62, 63, 68, 71, 73, 77, 81, 82, 87, 90, 92, 98, 99, 100, 103, 106, 107, 106, 109, 112,
+ 112, 112, 54, 51, 50, 49, 50, 49, 49, 54, 56, 60, 65, 67, 71, 76, 77, 82, 86, 87, 92, 96, 97, 104, 105, 106, 110, 110, 109, 113, 114, 113, 116,
+ 120, 58, 55, 54, 53, 53, 53, 52, 57, 59, 63, 68, 70, 74, 79, 81, 86, 90, 91, 97, 100, 102, 109, 110, 111, 114, 114, 118, 116, 117, 121, 121, 120,
+ 59, 57, 55, 54, 54, 54, 54, 59, 61, 64, 69, 71, 75, 80, 82, 87, 91, 93, 99, 102, 104, 111, 112, 113, 117, 121, 120, 122, 124, 122, 125, 129, 65,
+ 62, 60, 59, 59, 58, 58, 63, 65, 68, 73, 75, 79, 85, 87, 92, 97, 99, 105, 109, 111, 118, 120, 121, 125, 124, 125, 127, 126, 130, 130, 129, 69, 66,
+ 64, 63, 63, 62, 61, 66, 68, 71, 76, 78, 83, 88, 90, 96, 100, 102, 109, 113, 115, 123, 125, 126, 129, 130, 131, 130, 134, 133, 135, 139, 71, 68, 66,
+ 65, 64, 63, 63, 68, 70, 73, 78, 80, 84, 90, 92, 97, 102, 104, 111, 115, 117, 125, 127, 128, 133, 136, 134, 139, 136, 139, 141, 140, 80, 76, 73, 72,
+ 71, 70, 69, 74, 76, 79, 84, 86, 90, 96, 98, 104, 109, 111, 118, 123, 125, 134, 136, 137, 142, 138, 143, 140, 144, 144, 144, 149, 81, 77, 75, 74,
+ 73, 72, 71, 75, 77, 80, 85, 87, 91, 97, 99, 105, 110, 112, 120, 125, 127, 136, 137, 139, 143, 148, 145, 148, 148, 150, 152, 149, 83, 78, 76, 75,
+ 74, 73, 72, 76, 78, 81, 86, 88, 92, 98, 100, 106, 111, 113, 121, 126, 128, 137, 139, 140, 145, 149, 153, 153, 154, 155, 155, 161, 87, 83, 81, 79,
+ 78, 77, 75, 80, 82, 85, 90, 91, 96, 101, 103, 110, 114, 117, 125, 129, 133, 142, 143, 145, 150, 151, 156, 159, 160, 160, 163, 161, 90, 85, 83, 81,
+ 80, 79, 78, 81, 83, 87, 89, 93, 98, 100, 106, 110, 114, 121, 124, 130, 136, 138, 148, 149, 151, 156, 157, 162, 166, 168, 166, 172, 93, 88, 86, 84,
+ 83, 82, 80, 82, 85, 89, 90, 96, 98, 102, 107, 109, 118, 120, 125, 131, 134, 143, 145, 153, 156, 157, 163, 164, 169, 172, 177, 172, 95, 90, 89, 86,
+ 85, 85, 83, 83, 88, 89, 93, 97, 99, 105, 106, 113, 116, 122, 127, 130, 139, 140, 148, 153, 159, 162, 164, 169, 170, 176, 179, 185, 98, 93, 92, 89,
+ 88, 87, 86, 85, 89, 90, 96, 97, 102, 105, 109, 114, 117, 124, 126, 134, 136, 144, 148, 154, 160, 166, 169, 170, 176, 177, 184, 186, 101, 96, 95,
+ 91, 91, 90, 89, 87, 90, 93, 97, 99, 104, 105, 112, 113, 121, 122, 130, 133, 139, 144, 150, 155, 160, 168, 172, 176, 177, 184, 185, 191, 104, 99,
+ 98, 94, 94, 92, 92, 90, 92, 96, 98, 102, 104, 109, 112, 116, 121, 125, 130, 135, 141, 144, 152, 155, 163, 166, 177, 179, 184, 185, 191, 192, 107,
+ 101, 101, 97, 97, 95, 95, 93, 93, 99, 99, 105, 105, 112, 112, 120, 120, 129, 129, 139, 140, 149, 149, 161, 161, 172, 172, 185, 186, 191, 192, 199,
+ 32, 38, 62, 86, 32, 40, 58, 80, 34, 51, 68, 85, 44, 61, 85, 101, 54, 69, 98, 117, 72, 84, 118, 136, 82, 89, 129, 157, 92, 98, 127, 165, 32, 32, 34,
+ 44, 54, 72, 82, 92, 38, 40, 51, 61, 69, 84, 89, 98, 62, 58, 68, 85, 98, 118, 129, 127, 86, 80, 85, 101, 117, 136, 157, 165, 32, 32, 36, 44, 58, 79,
+ 88, 93, 31, 32, 35, 41, 54, 73, 81, 88, 32, 33, 36, 42, 53, 71, 78, 84, 32, 34, 38, 42, 52, 69, 76, 82, 34, 36, 44, 50, 59, 75, 81, 84, 39, 39, 50,
+ 58, 68, 84, 88, 90, 44, 42, 53, 63, 74, 90, 97, 97, 49, 46, 57, 67, 81, 97, 104, 105, 57, 53, 63, 74, 90, 108, 111, 113, 65, 59, 68, 79, 97, 118,
+ 123, 122, 71, 64, 73, 84, 102, 125, 135, 131, 81, 72, 80, 91, 110, 135, 145, 141, 87, 77, 85, 96, 114, 140, 148, 151, 92, 83, 88, 102, 117, 133,
+ 153, 163, 98, 88, 89, 103, 121, 141, 160, 169, 103, 94, 92, 103, 119, 137, 158, 175, 32, 31, 32, 32, 34, 39, 44, 49, 57, 65, 71, 81, 87, 92, 98,
+ 103, 32, 32, 33, 34, 36, 39, 42, 46, 53, 59, 64, 72, 77, 83, 88, 94, 36, 35, 36, 38, 44, 50, 53, 57, 63, 68, 73, 80, 85, 88, 89, 92, 44, 41, 42,
+ 42, 50, 58, 63, 67, 74, 79, 84, 91, 96, 102, 103, 103, 58, 54, 53, 52, 59, 68, 74, 81, 90, 97, 102, 110, 114, 117, 121, 119, 79, 73, 71, 69, 75,
+ 84, 90, 97, 108, 118, 125, 135, 140, 133, 141, 137, 88, 81, 78, 76, 81, 88, 97, 104, 111, 123, 135, 145, 148, 153, 160, 158, 93, 88, 84, 82, 84,
+ 90, 97, 105, 113, 122, 131, 141, 151, 163, 169, 175, 32, 31, 32, 32, 36, 39, 44, 53, 58, 65, 79, 81, 88, 90, 93, 96, 31, 32, 32, 32, 35, 38, 42,
+ 51, 55, 62, 75, 77, 83, 86, 88, 91, 31, 32, 32, 32, 35, 38, 41, 50, 54, 60, 73, 75, 81, 84, 88, 91, 31, 32, 32, 33, 34, 37, 41, 49, 53, 59, 72, 74,
+ 79, 82, 84, 87, 32, 32, 33, 34, 36, 39, 42, 50, 53, 59, 71, 72, 78, 81, 84, 87, 32, 32, 34, 34, 37, 40, 42, 49, 53, 58, 70, 71, 77, 80, 83, 85, 32,
+ 33, 34, 35, 38, 40, 42, 49, 52, 58, 69, 70, 76, 78, 82, 86, 34, 34, 35, 37, 42, 45, 48, 54, 57, 63, 73, 75, 79, 79, 81, 83, 34, 34, 36, 37, 44, 47,
+ 50, 56, 59, 65, 75, 77, 81, 83, 84, 84, 36, 34, 37, 38, 48, 51, 54, 60, 63, 68, 78, 80, 85, 85, 86, 89, 39, 37, 39, 40, 50, 54, 58, 65, 68, 73, 84,
+ 85, 88, 89, 90, 89, 40, 38, 40, 41, 51, 55, 59, 67, 70, 75, 85, 87, 91, 92, 92, 95, 44, 41, 42, 43, 53, 58, 63, 71, 74, 79, 90, 91, 97, 94, 97, 95,
+ 47, 44, 45, 46, 56, 61, 66, 75, 79, 85, 95, 97, 99, 101, 98, 102, 49, 46, 46, 47, 57, 62, 67, 77, 81, 86, 97, 99, 104, 102, 105, 102, 53, 49, 50,
+ 50, 60, 65, 71, 82, 86, 92, 103, 105, 109, 108, 106, 110, 57, 53, 53, 53, 63, 68, 74, 86, 90, 97, 108, 110, 111, 112, 113, 110, 59, 54, 54, 54, 64,
+ 69, 75, 87, 91, 98, 111, 112, 119, 117, 115, 118, 65, 60, 59, 58, 68, 73, 79, 92, 97, 105, 118, 119, 123, 123, 122, 119, 69, 63, 62, 62, 71, 76,
+ 83, 96, 100, 109, 122, 124, 127, 125, 125, 128, 71, 65, 64, 63, 73, 78, 84, 97, 102, 111, 125, 127, 135, 134, 131, 129, 79, 72, 71, 70, 79, 84, 90,
+ 104, 109, 118, 133, 135, 137, 136, 136, 137, 81, 74, 72, 71, 80, 85, 91, 105, 110, 120, 135, 137, 145, 143, 141, 138, 82, 75, 73, 72, 81, 86, 92,
+ 106, 111, 121, 136, 139, 147, 148, 147, 149, 87, 79, 77, 76, 85, 90, 96, 110, 114, 125, 140, 143, 148, 154, 151, 149, 90, 82, 80, 78, 87, 89, 99,
+ 108, 113, 129, 135, 146, 153, 157, 160, 159, 92, 84, 83, 81, 88, 90, 102, 106, 117, 128, 133, 150, 153, 158, 163, 160, 95, 87, 85, 83, 88, 92, 103,
+ 105, 120, 125, 137, 148, 155, 164, 168, 173, 98, 89, 88, 85, 89, 95, 103, 108, 121, 124, 141, 144, 160, 164, 169, 174, 100, 92, 91, 88, 90, 98,
+ 103, 111, 120, 127, 139, 146, 161, 165, 175, 179, 103, 94, 94, 90, 92, 101, 103, 114, 119, 131, 137, 150, 158, 170, 175, 180, 106, 97, 97, 93, 93,
+ 104, 104, 118, 118, 135, 135, 154, 155, 175, 176, 187, 32, 31, 31, 31, 32, 32, 32, 34, 34, 36, 39, 40, 44, 47, 49, 53, 57, 59, 65, 69, 71, 79, 81,
+ 82, 87, 90, 92, 95, 98, 100, 103, 106, 31, 32, 32, 32, 32, 32, 33, 34, 34, 34, 37, 38, 41, 44, 46, 49, 53, 54, 60, 63, 65, 72, 74, 75, 79, 82, 84,
+ 87, 89, 92, 94, 97, 32, 32, 32, 32, 33, 34, 34, 35, 36, 37, 39, 40, 42, 45, 46, 50, 53, 54, 59, 62, 64, 71, 72, 73, 77, 80, 83, 85, 88, 91, 94, 97,
+ 32, 32, 32, 33, 34, 34, 35, 37, 37, 38, 40, 41, 43, 46, 47, 50, 53, 54, 58, 62, 63, 70, 71, 72, 76, 78, 81, 83, 85, 88, 90, 93, 36, 35, 35, 34, 36,
+ 37, 38, 42, 44, 48, 50, 51, 53, 56, 57, 60, 63, 64, 68, 71, 73, 79, 80, 81, 85, 87, 88, 88, 89, 90, 92, 93, 39, 38, 38, 37, 39, 40, 40, 45, 47, 51,
+ 54, 55, 58, 61, 62, 65, 68, 69, 73, 76, 78, 84, 85, 86, 90, 89, 90, 92, 95, 98, 101, 104, 44, 42, 41, 41, 42, 42, 42, 48, 50, 54, 58, 59, 63, 66,
+ 67, 71, 74, 75, 79, 83, 84, 90, 91, 92, 96, 99, 102, 103, 103, 103, 103, 104, 53, 51, 50, 49, 50, 49, 49, 54, 56, 60, 65, 67, 71, 75, 77, 82, 86,
+ 87, 92, 96, 97, 104, 105, 106, 110, 108, 106, 105, 108, 111, 114, 118, 58, 55, 54, 53, 53, 53, 52, 57, 59, 63, 68, 70, 74, 79, 81, 86, 90, 91, 97,
+ 100, 102, 109, 110, 111, 114, 113, 117, 120, 121, 120, 119, 118, 65, 62, 60, 59, 59, 58, 58, 63, 65, 68, 73, 75, 79, 85, 86, 92, 97, 98, 105, 109,
+ 111, 118, 120, 121, 125, 129, 128, 125, 124, 127, 131, 135, 79, 75, 73, 72, 71, 70, 69, 73, 75, 78, 84, 85, 90, 95, 97, 103, 108, 111, 118, 122,
+ 125, 133, 135, 136, 140, 135, 133, 137, 141, 139, 137, 135, 81, 77, 75, 74, 72, 71, 70, 75, 77, 80, 85, 87, 91, 97, 99, 105, 110, 112, 119, 124,
+ 127, 135, 137, 139, 143, 146, 150, 148, 144, 146, 150, 154, 88, 83, 81, 79, 78, 77, 76, 79, 81, 85, 88, 91, 97, 99, 104, 109, 111, 119, 123, 127,
+ 135, 137, 145, 147, 148, 153, 153, 155, 160, 161, 158, 155, 90, 86, 84, 82, 81, 80, 78, 79, 83, 85, 89, 92, 94, 101, 102, 108, 112, 117, 123, 125,
+ 134, 136, 143, 148, 154, 157, 158, 164, 164, 165, 170, 175, 93, 88, 88, 84, 84, 83, 82, 81, 84, 86, 90, 92, 97, 98, 105, 106, 113, 115, 122, 125,
+ 131, 136, 141, 147, 151, 160, 163, 168, 169, 175, 175, 176, 96, 91, 91, 87, 87, 85, 86, 83, 84, 89, 89, 95, 95, 102, 102, 110, 110, 118, 119, 128,
+ 129, 137, 138, 149, 149, 159, 160, 173, 174, 179, 180, 187, 31, 39, 65, 90, 32, 38, 60, 84, 32, 39, 59, 81, 33, 40, 58, 78, 34, 47, 65, 83, 37, 54,
+ 73, 89, 41, 58, 79, 94, 46, 62, 86, 102, 53, 68, 97, 112, 60, 73, 105, 123, 65, 78, 111, 134, 74, 85, 120, 143, 79, 90, 125, 154, 84, 90, 128, 158,
+ 89, 95, 124, 164, 94, 101, 131, 170, 31, 32, 32, 33, 34, 37, 41, 46, 53, 60, 65, 74, 79, 84, 89, 94, 39, 38, 39, 40, 47, 54, 58, 62, 68, 73, 78,
+ 85, 90, 90, 95, 101, 65, 60, 59, 58, 65, 73, 79, 86, 97, 105, 111, 120, 125, 128, 124, 131, 90, 84, 81, 78, 83, 89, 94, 102, 112, 123, 134, 143,
+ 154, 158, 164, 170, 32, 32, 36, 44, 58, 79, 88, 93, 31, 32, 35, 42, 55, 75, 83, 88, 31, 32, 35, 41, 54, 73, 81, 88, 31, 32, 34, 41, 53, 72, 79, 84,
+ 32, 33, 36, 42, 53, 71, 78, 84, 32, 34, 37, 42, 53, 70, 77, 83, 32, 34, 38, 42, 52, 69, 76, 82, 34, 35, 42, 48, 57, 73, 79, 81, 34, 36, 44, 50, 59,
+ 75, 81, 84, 36, 37, 48, 54, 63, 78, 85, 86, 39, 39, 50, 58, 68, 84, 88, 90, 40, 40, 51, 59, 70, 85, 91, 92, 44, 42, 53, 63, 74, 90, 97, 97, 47, 45,
+ 56, 66, 79, 95, 99, 98, 49, 46, 57, 67, 81, 97, 104, 105, 53, 50, 60, 71, 86, 103, 109, 106, 57, 53, 63, 74, 90, 108, 111, 113, 59, 54, 64, 75, 91,
+ 111, 119, 115, 65, 59, 68, 79, 97, 118, 123, 122, 69, 62, 71, 83, 100, 122, 127, 125, 71, 64, 73, 84, 102, 125, 135, 131, 79, 71, 79, 90, 109, 133,
+ 137, 136, 81, 72, 80, 91, 110, 135, 145, 141, 82, 73, 81, 92, 111, 136, 147, 147, 87, 77, 85, 96, 114, 140, 148, 151, 90, 80, 87, 99, 113, 135,
+ 153, 160, 92, 83, 88, 102, 117, 133, 153, 163, 95, 85, 88, 103, 120, 137, 155, 168, 98, 88, 89, 103, 121, 141, 160, 169, 100, 91, 90, 103, 120,
+ 139, 161, 175, 103, 94, 92, 103, 119, 137, 158, 175, 106, 97, 93, 104, 118, 135, 155, 176, 32, 31, 31, 31, 32, 32, 32, 34, 34, 36, 39, 40, 44, 47,
+ 49, 53, 57, 59, 65, 69, 71, 79, 81, 82, 87, 90, 92, 95, 98, 100, 103, 106, 32, 32, 32, 32, 33, 34, 34, 35, 36, 37, 39, 40, 42, 45, 46, 50, 53, 54,
+ 59, 62, 64, 71, 72, 73, 77, 80, 83, 85, 88, 91, 94, 97, 36, 35, 35, 34, 36, 37, 38, 42, 44, 48, 50, 51, 53, 56, 57, 60, 63, 64, 68, 71, 73, 79, 80,
+ 81, 85, 87, 88, 88, 89, 90, 92, 93, 44, 42, 41, 41, 42, 42, 42, 48, 50, 54, 58, 59, 63, 66, 67, 71, 74, 75, 79, 83, 84, 90, 91, 92, 96, 99, 102,
+ 103, 103, 103, 103, 104, 58, 55, 54, 53, 53, 53, 52, 57, 59, 63, 68, 70, 74, 79, 81, 86, 90, 91, 97, 100, 102, 109, 110, 111, 114, 113, 117, 120,
+ 121, 120, 119, 118, 79, 75, 73, 72, 71, 70, 69, 73, 75, 78, 84, 85, 90, 95, 97, 103, 108, 111, 118, 122, 125, 133, 135, 136, 140, 135, 133, 137,
+ 141, 139, 137, 135, 88, 83, 81, 79, 78, 77, 76, 79, 81, 85, 88, 91, 97, 99, 104, 109, 111, 119, 123, 127, 135, 137, 145, 147, 148, 153, 153, 155,
+ 160, 161, 158, 155, 93, 88, 88, 84, 84, 83, 82, 81, 84, 86, 90, 92, 97, 98, 105, 106, 113, 115, 122, 125, 131, 136, 141, 147, 151, 160, 163, 168,
+ 169, 175, 175, 176,
+ ],
+ [
+ 32, 45, 53, 63, 45, 55, 62, 67, 53, 62, 80, 84, 63, 67, 84, 101, 31, 36, 47, 48, 52, 60, 64, 67, 36, 43, 47, 46, 49, 55, 59, 63, 47, 47, 53, 54,
+ 55, 60, 63, 64, 48, 46, 54, 61, 65, 70, 71, 71, 52, 49, 55, 65, 71, 78, 81, 79, 60, 55, 60, 70, 78, 89, 89, 89, 64, 59, 63, 71, 81, 89, 97, 99, 67,
+ 63, 64, 71, 79, 89, 99, 104, 32, 30, 33, 36, 44, 48, 49, 51, 54, 57, 60, 64, 67, 68, 70, 72, 30, 31, 35, 39, 44, 46, 46, 47, 50, 53, 55, 59, 61,
+ 64, 66, 68, 33, 35, 39, 43, 46, 46, 45, 47, 49, 51, 53, 57, 59, 61, 63, 65, 36, 39, 43, 47, 47, 46, 45, 46, 48, 50, 52, 55, 57, 58, 61, 63, 44, 44,
+ 46, 47, 50, 51, 51, 51, 53, 54, 56, 59, 61, 61, 63, 62, 48, 46, 46, 46, 51, 54, 55, 56, 58, 60, 61, 64, 65, 64, 66, 66, 49, 46, 45, 45, 51, 55, 58,
+ 60, 62, 63, 65, 68, 69, 69, 69, 69, 51, 47, 47, 46, 51, 56, 60, 62, 65, 67, 69, 72, 73, 74, 73, 73, 54, 50, 49, 48, 53, 58, 62, 65, 70, 73, 75, 78,
+ 79, 79, 77, 77, 57, 53, 51, 50, 54, 60, 63, 67, 73, 76, 79, 82, 84, 83, 82, 82, 60, 55, 53, 52, 56, 61, 65, 69, 75, 79, 82, 86, 88, 87, 86, 87, 64,
+ 59, 57, 55, 59, 64, 68, 72, 78, 82, 86, 90, 93, 92, 91, 92, 67, 61, 59, 57, 61, 65, 69, 73, 79, 84, 88, 93, 95, 96, 96, 96, 68, 64, 61, 58, 61, 64,
+ 69, 74, 79, 83, 87, 92, 96, 99, 100, 101, 70, 66, 63, 61, 63, 66, 69, 73, 77, 82, 86, 91, 96, 100, 103, 104, 72, 68, 65, 63, 62, 66, 69, 73, 77,
+ 82, 87, 92, 96, 101, 104, 106, 32, 31, 30, 30, 33, 35, 36, 41, 44, 49, 48, 48, 49, 50, 51, 52, 54, 55, 57, 59, 60, 63, 64, 65, 67, 68, 68, 69, 70,
+ 71, 72, 73, 31, 31, 31, 31, 34, 36, 38, 42, 44, 47, 47, 47, 47, 48, 48, 50, 51, 52, 54, 56, 57, 60, 61, 61, 63, 64, 65, 66, 67, 67, 68, 69, 30, 31,
+ 31, 31, 35, 37, 39, 42, 44, 47, 46, 46, 46, 47, 47, 48, 50, 51, 53, 54, 55, 58, 59, 60, 61, 63, 64, 65, 66, 67, 68, 69, 30, 31, 31, 32, 35, 37, 40,
+ 42, 44, 46, 45, 45, 45, 46, 46, 47, 49, 50, 52, 53, 54, 57, 58, 58, 60, 61, 62, 63, 63, 64, 65, 66, 33, 34, 35, 35, 39, 41, 43, 45, 46, 47, 46, 46,
+ 45, 46, 47, 47, 49, 49, 51, 53, 53, 56, 57, 57, 59, 60, 61, 62, 63, 64, 65, 66, 35, 36, 37, 37, 41, 43, 45, 46, 46, 47, 46, 46, 45, 46, 46, 47, 48,
+ 49, 50, 52, 53, 55, 56, 56, 58, 59, 60, 61, 62, 63, 64, 64, 36, 38, 39, 40, 43, 45, 47, 47, 47, 48, 46, 46, 45, 46, 46, 47, 48, 48, 50, 51, 52, 54,
+ 55, 55, 57, 58, 58, 59, 61, 62, 63, 64, 41, 42, 42, 42, 45, 46, 47, 48, 49, 50, 49, 49, 49, 50, 50, 50, 51, 52, 53, 54, 55, 57, 58, 58, 60, 60, 59,
+ 59, 60, 61, 61, 62, 44, 44, 44, 44, 46, 46, 47, 49, 50, 51, 51, 51, 51, 51, 51, 52, 53, 53, 54, 56, 56, 59, 59, 59, 61, 61, 61, 62, 63, 62, 62, 62,
+ 49, 47, 47, 46, 47, 47, 48, 50, 51, 53, 53, 53, 53, 54, 54, 54, 55, 55, 56, 58, 58, 60, 61, 61, 63, 63, 64, 63, 63, 64, 65, 66, 48, 47, 46, 45, 46,
+ 46, 46, 49, 51, 53, 54, 54, 55, 56, 56, 57, 58, 59, 60, 61, 61, 63, 64, 64, 65, 65, 64, 65, 66, 66, 66, 66, 48, 47, 46, 45, 46, 46, 46, 49, 51, 53,
+ 54, 55, 56, 57, 57, 58, 59, 60, 61, 62, 63, 65, 65, 65, 66, 67, 68, 67, 67, 67, 68, 69, 49, 47, 46, 45, 45, 45, 45, 49, 51, 53, 55, 56, 58, 59, 60,
+ 61, 62, 62, 63, 65, 65, 67, 68, 68, 69, 70, 69, 69, 69, 70, 69, 69, 50, 48, 47, 46, 46, 46, 46, 50, 51, 54, 56, 57, 59, 61, 62, 63, 64, 65, 66, 68,
+ 68, 70, 71, 71, 72, 71, 71, 72, 71, 71, 71, 72, 51, 48, 47, 46, 47, 46, 46, 50, 51, 54, 56, 57, 60, 62, 62, 64, 65, 66, 67, 69, 69, 71, 72, 72, 73,
+ 74, 74, 72, 73, 74, 73, 73, 52, 50, 48, 47, 47, 47, 47, 50, 52, 54, 57, 58, 61, 63, 64, 66, 68, 68, 70, 72, 72, 75, 75, 75, 77, 76, 75, 76, 76, 74,
+ 75, 76, 54, 51, 50, 49, 49, 48, 48, 51, 53, 55, 58, 59, 62, 64, 65, 68, 70, 70, 73, 74, 75, 77, 78, 78, 79, 78, 79, 78, 77, 78, 77, 77, 55, 52, 51,
+ 50, 49, 49, 48, 52, 53, 55, 59, 60, 62, 65, 66, 68, 70, 71, 73, 75, 76, 78, 79, 79, 80, 81, 80, 80, 81, 79, 79, 81, 57, 54, 53, 52, 51, 50, 50, 53,
+ 54, 56, 60, 61, 63, 66, 67, 70, 73, 73, 76, 78, 79, 82, 82, 83, 84, 83, 83, 83, 82, 83, 82, 81, 59, 56, 54, 53, 53, 52, 51, 54, 56, 58, 61, 62, 65,
+ 68, 69, 72, 74, 75, 78, 80, 81, 84, 85, 85, 86, 86, 86, 84, 85, 84, 84, 85, 60, 57, 55, 54, 53, 53, 52, 55, 56, 58, 61, 63, 65, 68, 69, 72, 75, 76,
+ 79, 81, 82, 85, 86, 86, 88, 88, 87, 88, 86, 87, 87, 85, 63, 60, 58, 57, 56, 55, 54, 57, 59, 60, 63, 65, 67, 70, 71, 75, 77, 78, 82, 84, 85, 89, 89,
+ 90, 92, 89, 91, 89, 90, 89, 88, 89, 64, 61, 59, 58, 57, 56, 55, 58, 59, 61, 64, 65, 68, 71, 72, 75, 78, 79, 82, 85, 86, 89, 90, 91, 93, 94, 92, 92,
+ 91, 91, 92, 90, 65, 61, 60, 58, 57, 56, 55, 58, 59, 61, 64, 65, 68, 71, 72, 75, 78, 79, 83, 85, 86, 90, 91, 91, 93, 94, 95, 94, 94, 94, 93, 94, 67,
+ 63, 61, 60, 59, 58, 57, 60, 61, 63, 65, 66, 69, 72, 73, 77, 79, 80, 84, 86, 88, 92, 93, 93, 95, 95, 96, 97, 96, 95, 96, 94, 68, 64, 63, 61, 60, 59,
+ 58, 60, 61, 63, 65, 67, 70, 71, 74, 76, 78, 81, 83, 86, 88, 89, 94, 94, 95, 97, 97, 98, 99, 99, 97, 99, 68, 65, 64, 62, 61, 60, 58, 59, 61, 64, 64,
+ 68, 69, 71, 74, 75, 79, 80, 83, 86, 87, 91, 92, 95, 96, 97, 99, 99, 100, 100, 101, 99, 69, 66, 65, 63, 62, 61, 59, 59, 62, 63, 65, 67, 69, 72, 72,
+ 76, 78, 80, 83, 84, 88, 89, 92, 94, 97, 98, 99, 101, 100, 102, 102, 104, 70, 67, 66, 63, 63, 62, 61, 60, 63, 63, 66, 67, 69, 71, 73, 76, 77, 81,
+ 82, 85, 86, 90, 91, 94, 96, 99, 100, 100, 103, 102, 104, 104, 71, 67, 67, 64, 64, 63, 62, 61, 62, 64, 66, 67, 70, 71, 74, 74, 78, 79, 83, 84, 87,
+ 89, 91, 94, 95, 99, 100, 102, 102, 104, 104, 106, 72, 68, 68, 65, 65, 64, 63, 61, 62, 65, 66, 68, 69, 71, 73, 75, 77, 79, 82, 84, 87, 88, 92, 93,
+ 96, 97, 101, 102, 104, 104, 106, 106, 73, 69, 69, 66, 66, 64, 64, 62, 62, 66, 66, 69, 69, 72, 73, 76, 77, 81, 81, 85, 85, 89, 90, 94, 94, 99, 99,
+ 104, 104, 106, 106, 108, 31, 47, 54, 64, 38, 46, 50, 60, 46, 53, 57, 62, 46, 56, 66, 71, 50, 59, 74, 79, 57, 64, 82, 88, 61, 65, 85, 97, 65, 67,
+ 82, 99, 31, 38, 46, 46, 50, 57, 61, 65, 47, 46, 53, 56, 59, 64, 65, 67, 54, 50, 57, 66, 74, 82, 85, 82, 64, 60, 62, 71, 79, 88, 97, 99, 32, 34, 48,
+ 49, 54, 63, 67, 69, 31, 36, 46, 46, 50, 58, 62, 65, 33, 40, 47, 46, 49, 56, 59, 62, 37, 44, 47, 45, 48, 54, 57, 60, 44, 46, 51, 51, 53, 59, 60, 61,
+ 48, 46, 53, 56, 58, 64, 64, 64, 49, 45, 53, 58, 62, 67, 70, 68, 51, 47, 54, 60, 65, 71, 73, 72, 54, 49, 55, 62, 70, 77, 77, 76, 57, 51, 56, 64, 73,
+ 82, 83, 81, 60, 53, 58, 65, 75, 85, 89, 85, 64, 57, 61, 68, 78, 89, 93, 89, 66, 59, 63, 69, 79, 91, 94, 93, 68, 61, 63, 71, 79, 87, 96, 98, 70, 63,
+ 63, 70, 80, 89, 97, 100, 72, 65, 63, 69, 77, 86, 95, 102, 32, 31, 33, 37, 44, 48, 49, 51, 54, 57, 60, 64, 66, 68, 70, 72, 34, 36, 40, 44, 46, 46,
+ 45, 47, 49, 51, 53, 57, 59, 61, 63, 65, 48, 46, 47, 47, 51, 53, 53, 54, 55, 56, 58, 61, 63, 63, 63, 63, 49, 46, 46, 45, 51, 56, 58, 60, 62, 64, 65,
+ 68, 69, 71, 70, 69, 54, 50, 49, 48, 53, 58, 62, 65, 70, 73, 75, 78, 79, 79, 80, 77, 63, 58, 56, 54, 59, 64, 67, 71, 77, 82, 85, 89, 91, 87, 89, 86,
+ 67, 62, 59, 57, 60, 64, 70, 73, 77, 83, 89, 93, 94, 96, 97, 95, 69, 65, 62, 60, 61, 64, 68, 72, 76, 81, 85, 89, 93, 98, 100, 102, 32, 31, 34, 37,
+ 48, 48, 49, 52, 54, 57, 63, 64, 67, 68, 69, 69, 31, 31, 35, 38, 47, 47, 47, 50, 51, 54, 60, 61, 63, 64, 65, 66, 31, 32, 36, 39, 46, 46, 46, 48, 50,
+ 53, 58, 59, 62, 63, 65, 66, 30, 32, 36, 40, 46, 45, 45, 48, 49, 52, 57, 58, 60, 61, 62, 63, 33, 36, 40, 43, 47, 46, 46, 47, 49, 51, 56, 57, 59, 60,
+ 62, 63, 35, 38, 42, 45, 47, 46, 45, 47, 48, 50, 55, 56, 58, 60, 61, 61, 37, 40, 44, 47, 47, 46, 45, 47, 48, 50, 54, 55, 57, 58, 60, 61, 42, 43, 45,
+ 47, 50, 50, 49, 50, 51, 53, 57, 58, 59, 58, 59, 59, 44, 44, 46, 47, 51, 51, 51, 52, 53, 54, 59, 59, 60, 61, 61, 60, 49, 46, 47, 48, 53, 53, 53, 54,
+ 55, 57, 60, 61, 63, 62, 62, 63, 48, 46, 46, 47, 53, 54, 56, 57, 58, 60, 64, 64, 64, 64, 64, 63, 48, 45, 46, 46, 53, 55, 56, 58, 59, 61, 65, 65, 66,
+ 66, 65, 66, 49, 45, 45, 46, 53, 56, 58, 61, 62, 64, 67, 68, 70, 67, 68, 66, 50, 46, 46, 46, 54, 56, 59, 63, 65, 66, 70, 71, 70, 71, 68, 70, 51, 47,
+ 47, 47, 54, 57, 60, 64, 65, 68, 71, 72, 73, 71, 72, 70, 52, 48, 47, 47, 54, 57, 61, 66, 68, 71, 75, 75, 76, 75, 73, 73, 54, 49, 49, 48, 55, 58, 62,
+ 68, 70, 73, 77, 78, 77, 77, 76, 74, 54, 50, 49, 49, 55, 59, 62, 68, 70, 74, 78, 79, 81, 79, 77, 78, 57, 52, 51, 50, 56, 60, 64, 70, 73, 76, 82, 82,
+ 83, 82, 81, 78, 59, 54, 52, 52, 58, 61, 65, 72, 74, 78, 84, 85, 85, 83, 82, 82, 60, 54, 53, 52, 58, 62, 65, 72, 75, 79, 85, 86, 89, 87, 85, 82, 63,
+ 57, 56, 55, 60, 64, 67, 75, 77, 82, 89, 90, 90, 88, 87, 86, 64, 58, 57, 55, 61, 64, 68, 75, 78, 82, 89, 90, 93, 91, 89, 87, 64, 59, 57, 56, 61, 65,
+ 68, 75, 78, 83, 90, 91, 94, 93, 92, 91, 66, 60, 59, 57, 63, 66, 69, 77, 79, 84, 91, 93, 94, 95, 93, 91, 67, 61, 60, 58, 63, 65, 70, 75, 78, 85, 88,
+ 93, 96, 97, 97, 95, 68, 62, 61, 59, 63, 64, 71, 74, 79, 84, 87, 94, 96, 97, 98, 96, 69, 63, 62, 60, 63, 65, 71, 72, 80, 82, 88, 93, 96, 99, 100,
+ 101, 70, 64, 63, 60, 63, 66, 70, 73, 80, 81, 89, 90, 97, 99, 100, 101, 71, 65, 64, 61, 63, 67, 70, 74, 78, 82, 88, 90, 97, 99, 102, 103, 72, 65,
+ 65, 62, 63, 68, 69, 75, 77, 83, 86, 92, 95, 100, 102, 103, 73, 66, 66, 63, 63, 69, 69, 76, 76, 84, 84, 93, 93, 101, 101, 105, 32, 31, 31, 30, 33,
+ 35, 37, 42, 44, 49, 48, 48, 49, 50, 51, 52, 54, 54, 57, 59, 60, 63, 64, 64, 66, 67, 68, 69, 70, 71, 72, 73, 31, 31, 32, 32, 36, 38, 40, 43, 44, 46,
+ 46, 45, 45, 46, 47, 48, 49, 50, 52, 54, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 65, 66, 34, 35, 36, 36, 40, 42, 44, 45, 46, 47, 46, 46, 45, 46, 47,
+ 47, 49, 49, 51, 52, 53, 56, 57, 57, 59, 60, 61, 62, 63, 64, 65, 66, 37, 38, 39, 40, 43, 45, 47, 47, 47, 48, 47, 46, 46, 46, 47, 47, 48, 49, 50, 52,
+ 52, 55, 55, 56, 57, 58, 59, 60, 60, 61, 62, 63, 48, 47, 46, 46, 47, 47, 47, 50, 51, 53, 53, 53, 53, 54, 54, 54, 55, 55, 56, 58, 58, 60, 61, 61, 63,
+ 63, 63, 63, 63, 63, 63, 63, 48, 47, 46, 45, 46, 46, 46, 50, 51, 53, 54, 55, 56, 56, 57, 57, 58, 59, 60, 61, 62, 64, 64, 65, 66, 65, 64, 65, 66, 67,
+ 68, 69, 49, 47, 46, 45, 46, 45, 45, 49, 51, 53, 56, 56, 58, 59, 60, 61, 62, 62, 64, 65, 65, 67, 68, 68, 69, 70, 71, 71, 70, 70, 69, 69, 52, 50, 48,
+ 48, 47, 47, 47, 50, 52, 54, 57, 58, 61, 63, 64, 66, 68, 68, 70, 72, 72, 75, 75, 75, 77, 75, 74, 72, 73, 74, 75, 76, 54, 51, 50, 49, 49, 48, 48, 51,
+ 53, 55, 58, 59, 62, 65, 65, 68, 70, 70, 73, 74, 75, 77, 78, 78, 79, 78, 79, 80, 80, 78, 77, 76, 57, 54, 53, 52, 51, 50, 50, 53, 54, 57, 60, 61, 64,
+ 66, 68, 71, 73, 74, 76, 78, 79, 82, 82, 83, 84, 85, 84, 82, 81, 82, 83, 84, 63, 60, 58, 57, 56, 55, 54, 57, 59, 60, 64, 65, 67, 70, 71, 75, 77, 78,
+ 82, 84, 85, 89, 89, 90, 91, 88, 87, 88, 89, 88, 86, 84, 64, 61, 59, 58, 57, 56, 55, 58, 59, 61, 64, 65, 68, 71, 72, 75, 78, 79, 82, 85, 86, 90, 90,
+ 91, 93, 93, 94, 93, 90, 90, 92, 93, 67, 63, 62, 60, 59, 58, 57, 59, 60, 63, 64, 66, 70, 70, 73, 76, 77, 81, 83, 85, 89, 90, 93, 94, 94, 96, 96, 96,
+ 97, 97, 95, 93, 68, 64, 63, 61, 60, 60, 58, 58, 61, 62, 64, 66, 67, 71, 71, 75, 77, 79, 82, 83, 87, 88, 91, 93, 95, 97, 97, 99, 99, 99, 100, 101,
+ 69, 65, 65, 62, 62, 61, 60, 59, 61, 62, 64, 65, 68, 68, 72, 73, 76, 77, 81, 82, 85, 87, 89, 92, 93, 97, 98, 100, 100, 102, 102, 101, 69, 66, 66,
+ 63, 63, 61, 61, 59, 60, 63, 63, 66, 66, 70, 70, 73, 74, 78, 78, 82, 82, 86, 87, 91, 91, 95, 96, 101, 101, 103, 103, 105, 31, 48, 57, 68, 32, 46,
+ 53, 63, 36, 46, 51, 60, 40, 46, 50, 58, 44, 51, 54, 61, 46, 54, 60, 64, 45, 56, 64, 67, 47, 57, 68, 71, 49, 58, 73, 77, 52, 60, 76, 82, 54, 62, 79,
+ 87, 58, 64, 82, 91, 60, 66, 84, 95, 62, 64, 84, 97, 64, 66, 81, 99, 65, 68, 83, 100, 31, 32, 36, 40, 44, 46, 45, 47, 49, 52, 54, 58, 60, 62, 64,
+ 65, 48, 46, 46, 46, 51, 54, 56, 57, 58, 60, 62, 64, 66, 64, 66, 68, 57, 53, 51, 50, 54, 60, 64, 68, 73, 76, 79, 82, 84, 84, 81, 83, 68, 63, 60, 58,
+ 61, 64, 67, 71, 77, 82, 87, 91, 95, 97, 99, 100, 32, 34, 48, 49, 54, 63, 67, 69, 31, 35, 47, 47, 51, 60, 63, 65, 31, 36, 46, 46, 50, 58, 62, 65,
+ 30, 36, 46, 45, 49, 57, 60, 62, 33, 40, 47, 46, 49, 56, 59, 62, 35, 42, 47, 45, 48, 55, 58, 61, 37, 44, 47, 45, 48, 54, 57, 60, 42, 45, 50, 49, 51,
+ 57, 59, 59, 44, 46, 51, 51, 53, 59, 60, 61, 49, 47, 53, 53, 55, 60, 63, 62, 48, 46, 53, 56, 58, 64, 64, 64, 48, 46, 53, 56, 59, 65, 66, 65, 49, 45,
+ 53, 58, 62, 67, 70, 68, 50, 46, 54, 59, 65, 70, 70, 68, 51, 47, 54, 60, 65, 71, 73, 72, 52, 47, 54, 61, 68, 75, 76, 73, 54, 49, 55, 62, 70, 77, 77,
+ 76, 54, 49, 55, 62, 70, 78, 81, 77, 57, 51, 56, 64, 73, 82, 83, 81, 59, 52, 58, 65, 74, 84, 85, 82, 60, 53, 58, 65, 75, 85, 89, 85, 63, 56, 60, 67,
+ 77, 89, 90, 87, 64, 57, 61, 68, 78, 89, 93, 89, 64, 57, 61, 68, 78, 90, 94, 92, 66, 59, 63, 69, 79, 91, 94, 93, 67, 60, 63, 70, 78, 88, 96, 97, 68,
+ 61, 63, 71, 79, 87, 96, 98, 69, 62, 63, 71, 80, 88, 96, 100, 70, 63, 63, 70, 80, 89, 97, 100, 71, 64, 63, 70, 78, 88, 97, 102, 72, 65, 63, 69, 77,
+ 86, 95, 102, 73, 66, 63, 69, 76, 84, 93, 101, 32, 31, 31, 30, 33, 35, 37, 42, 44, 49, 48, 48, 49, 50, 51, 52, 54, 54, 57, 59, 60, 63, 64, 64, 66,
+ 67, 68, 69, 70, 71, 72, 73, 34, 35, 36, 36, 40, 42, 44, 45, 46, 47, 46, 46, 45, 46, 47, 47, 49, 49, 51, 52, 53, 56, 57, 57, 59, 60, 61, 62, 63, 64,
+ 65, 66, 48, 47, 46, 46, 47, 47, 47, 50, 51, 53, 53, 53, 53, 54, 54, 54, 55, 55, 56, 58, 58, 60, 61, 61, 63, 63, 63, 63, 63, 63, 63, 63, 49, 47, 46,
+ 45, 46, 45, 45, 49, 51, 53, 56, 56, 58, 59, 60, 61, 62, 62, 64, 65, 65, 67, 68, 68, 69, 70, 71, 71, 70, 70, 69, 69, 54, 51, 50, 49, 49, 48, 48, 51,
+ 53, 55, 58, 59, 62, 65, 65, 68, 70, 70, 73, 74, 75, 77, 78, 78, 79, 78, 79, 80, 80, 78, 77, 76, 63, 60, 58, 57, 56, 55, 54, 57, 59, 60, 64, 65, 67,
+ 70, 71, 75, 77, 78, 82, 84, 85, 89, 89, 90, 91, 88, 87, 88, 89, 88, 86, 84, 67, 63, 62, 60, 59, 58, 57, 59, 60, 63, 64, 66, 70, 70, 73, 76, 77, 81,
+ 83, 85, 89, 90, 93, 94, 94, 96, 96, 96, 97, 97, 95, 93, 69, 65, 65, 62, 62, 61, 60, 59, 61, 62, 64, 65, 68, 68, 72, 73, 76, 77, 81, 82, 85, 87, 89,
+ 92, 93, 97, 98, 100, 100, 102, 102, 101,
+ ],
+ ],
+ [
+ [
+ 32, 37, 58, 81, 37, 54, 72, 91, 58, 72, 102, 121, 81, 91, 121, 156, 32, 32, 35, 42, 53, 68, 78, 90, 32, 33, 36, 42, 51, 64, 74, 84, 35, 36, 46, 52,
+ 60, 72, 80, 87, 42, 42, 52, 63, 73, 84, 92, 98, 53, 51, 60, 73, 86, 100, 109, 114, 68, 64, 72, 84, 100, 117, 128, 133, 78, 74, 80, 92, 109, 128,
+ 140, 155, 90, 84, 87, 98, 114, 133, 155, 168, 32, 31, 31, 32, 34, 36, 41, 47, 54, 59, 65, 74, 82, 87, 92, 97, 31, 32, 32, 32, 34, 35, 39, 45, 50,
+ 55, 61, 69, 76, 81, 87, 92, 31, 32, 33, 33, 35, 36, 40, 44, 49, 54, 59, 67, 73, 78, 83, 88, 32, 32, 33, 35, 37, 38, 41, 45, 49, 53, 58, 65, 71, 75,
+ 80, 86, 34, 34, 35, 37, 39, 42, 46, 50, 54, 58, 63, 70, 76, 80, 84, 85, 36, 35, 36, 38, 42, 48, 52, 56, 60, 64, 68, 75, 80, 85, 90, 91, 41, 39, 40,
+ 41, 46, 52, 57, 62, 67, 71, 75, 83, 88, 92, 95, 97, 47, 45, 44, 45, 50, 56, 62, 69, 75, 79, 84, 91, 97, 100, 102, 104, 54, 50, 49, 49, 54, 60, 67,
+ 75, 82, 87, 92, 100, 106, 110, 109, 112, 59, 55, 54, 53, 58, 64, 71, 79, 87, 92, 98, 106, 112, 117, 117, 121, 65, 61, 59, 58, 63, 68, 75, 84, 92,
+ 98, 105, 114, 120, 125, 126, 130, 74, 69, 67, 65, 70, 75, 83, 91, 100, 106, 114, 123, 131, 135, 137, 140, 82, 76, 73, 71, 76, 80, 88, 97, 106, 112,
+ 120, 131, 139, 144, 148, 150, 87, 81, 78, 75, 80, 85, 92, 100, 110, 117, 125, 135, 144, 150, 155, 162, 92, 87, 83, 80, 84, 90, 95, 102, 109, 117,
+ 126, 137, 148, 155, 162, 168, 97, 92, 88, 86, 85, 91, 97, 104, 112, 121, 130, 140, 150, 162, 168, 174, 32, 31, 31, 31, 31, 31, 32, 32, 34, 35, 36,
+ 39, 41, 44, 47, 48, 54, 56, 59, 64, 65, 71, 74, 80, 82, 83, 87, 90, 92, 95, 97, 100, 31, 32, 32, 32, 32, 32, 32, 33, 34, 35, 35, 38, 40, 42, 45,
+ 46, 51, 53, 56, 61, 62, 68, 71, 76, 78, 78, 83, 85, 88, 90, 92, 95, 31, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 38, 39, 42, 45, 45, 50, 52, 55, 60,
+ 61, 67, 69, 74, 76, 77, 81, 84, 87, 89, 92, 95, 31, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 37, 38, 41, 44, 44, 49, 51, 54, 58, 59, 65, 68, 72, 74,
+ 75, 79, 81, 84, 86, 88, 90, 31, 32, 32, 32, 33, 33, 33, 34, 35, 36, 36, 39, 40, 42, 44, 45, 49, 51, 54, 58, 59, 64, 67, 71, 73, 74, 78, 80, 83, 85,
+ 88, 90, 31, 32, 32, 32, 33, 33, 34, 34, 35, 36, 36, 39, 40, 42, 45, 45, 50, 51, 54, 58, 59, 64, 67, 71, 73, 74, 78, 80, 82, 84, 86, 89, 32, 32, 32,
+ 32, 33, 34, 35, 36, 37, 38, 38, 40, 41, 42, 45, 46, 49, 51, 53, 57, 58, 63, 65, 69, 71, 72, 75, 78, 80, 83, 86, 89, 32, 33, 33, 33, 34, 34, 36, 36,
+ 38, 39, 40, 42, 43, 44, 47, 47, 51, 53, 55, 59, 60, 65, 67, 71, 73, 73, 77, 78, 80, 82, 84, 86, 34, 34, 34, 33, 35, 35, 37, 38, 39, 42, 42, 45, 46,
+ 47, 50, 51, 54, 56, 58, 62, 63, 68, 70, 74, 76, 76, 80, 82, 84, 85, 85, 86, 35, 35, 34, 34, 36, 36, 38, 39, 42, 46, 47, 49, 50, 52, 55, 55, 59, 60,
+ 62, 66, 67, 72, 74, 78, 79, 80, 83, 84, 85, 87, 90, 92, 36, 35, 35, 34, 36, 36, 38, 40, 42, 47, 48, 50, 52, 54, 56, 57, 60, 61, 64, 67, 68, 73, 75,
+ 79, 80, 81, 85, 87, 90, 91, 91, 92, 39, 38, 38, 37, 39, 39, 40, 42, 45, 49, 50, 54, 55, 58, 60, 61, 65, 66, 69, 72, 73, 78, 80, 84, 86, 86, 90, 91,
+ 91, 92, 95, 97, 41, 40, 39, 38, 40, 40, 41, 43, 46, 50, 52, 55, 57, 60, 62, 63, 67, 69, 71, 75, 75, 80, 83, 86, 88, 89, 92, 93, 95, 97, 97, 98, 44,
+ 42, 42, 41, 42, 42, 42, 44, 47, 52, 54, 58, 60, 63, 66, 67, 71, 73, 75, 79, 79, 84, 86, 90, 92, 92, 96, 98, 98, 98, 101, 104, 47, 45, 45, 44, 44,
+ 45, 45, 47, 50, 55, 56, 60, 62, 66, 69, 70, 75, 77, 79, 83, 84, 89, 91, 95, 97, 97, 100, 99, 102, 105, 104, 104, 48, 46, 45, 44, 45, 45, 46, 47,
+ 51, 55, 57, 61, 63, 67, 70, 71, 76, 78, 80, 84, 85, 90, 93, 96, 98, 99, 102, 106, 106, 105, 108, 111, 54, 51, 50, 49, 49, 50, 49, 51, 54, 59, 60,
+ 65, 67, 71, 75, 76, 82, 84, 87, 91, 92, 97, 100, 104, 106, 106, 110, 108, 109, 112, 112, 111, 56, 53, 52, 51, 51, 51, 51, 53, 56, 60, 61, 66, 69,
+ 73, 77, 78, 84, 86, 89, 93, 94, 100, 102, 106, 108, 109, 112, 113, 115, 114, 116, 119, 59, 56, 55, 54, 54, 54, 53, 55, 58, 62, 64, 69, 71, 75, 79,
+ 80, 87, 89, 92, 97, 98, 103, 106, 110, 112, 113, 117, 118, 117, 121, 121, 119, 64, 61, 60, 58, 58, 58, 57, 59, 62, 66, 67, 72, 75, 79, 83, 84, 91,
+ 93, 97, 102, 103, 109, 112, 116, 118, 119, 122, 121, 125, 123, 125, 128, 65, 62, 61, 59, 59, 59, 58, 60, 63, 67, 68, 73, 75, 79, 84, 85, 92, 94,
+ 98, 103, 105, 111, 114, 118, 120, 121, 125, 129, 126, 129, 130, 129, 71, 68, 67, 65, 64, 64, 63, 65, 68, 72, 73, 78, 80, 84, 89, 90, 97, 100, 103,
+ 109, 111, 117, 120, 125, 127, 128, 133, 130, 134, 133, 133, 137, 74, 71, 69, 68, 67, 67, 65, 67, 70, 74, 75, 80, 83, 86, 91, 93, 100, 102, 106,
+ 112, 114, 120, 123, 128, 131, 131, 135, 137, 137, 138, 140, 137, 80, 76, 74, 72, 71, 71, 69, 71, 74, 78, 79, 84, 86, 90, 95, 96, 104, 106, 110,
+ 116, 118, 125, 128, 134, 136, 137, 142, 141, 142, 143, 143, 147, 82, 78, 76, 74, 73, 73, 71, 73, 76, 79, 80, 86, 88, 92, 97, 98, 106, 108, 112,
+ 118, 120, 127, 131, 136, 139, 139, 144, 147, 148, 147, 150, 148, 83, 78, 77, 75, 74, 74, 72, 73, 76, 80, 81, 86, 89, 92, 97, 99, 106, 109, 113,
+ 119, 121, 128, 131, 137, 139, 140, 145, 150, 152, 155, 152, 157, 87, 83, 81, 79, 78, 78, 75, 77, 80, 83, 85, 90, 92, 96, 100, 102, 110, 112, 117,
+ 122, 125, 133, 135, 142, 144, 145, 150, 151, 155, 158, 162, 158, 90, 85, 84, 81, 80, 80, 78, 78, 82, 84, 87, 91, 93, 98, 99, 106, 108, 113, 118,
+ 121, 129, 130, 137, 141, 147, 150, 151, 156, 156, 161, 164, 169, 92, 88, 87, 84, 83, 82, 80, 80, 84, 85, 90, 91, 95, 98, 102, 106, 109, 115, 117,
+ 125, 126, 134, 137, 142, 148, 152, 155, 156, 162, 162, 168, 170, 95, 90, 89, 86, 85, 84, 83, 82, 85, 87, 91, 92, 97, 98, 105, 105, 112, 114, 121,
+ 123, 129, 133, 138, 143, 147, 155, 158, 161, 162, 168, 168, 174, 97, 92, 92, 88, 88, 86, 86, 84, 85, 90, 91, 95, 97, 101, 104, 108, 112, 116, 121,
+ 125, 130, 133, 140, 143, 150, 152, 162, 164, 168, 168, 174, 175, 100, 95, 95, 90, 90, 89, 89, 86, 86, 92, 92, 97, 98, 104, 104, 111, 111, 119, 119,
+ 128, 129, 137, 137, 147, 148, 157, 158, 169, 170, 174, 175, 181, 32, 35, 59, 83, 32, 36, 57, 78, 34, 47, 65, 82, 41, 53, 78, 97, 51, 61, 92, 111,
+ 65, 73, 108, 129, 75, 81, 117, 148, 86, 92, 119, 154, 32, 32, 34, 41, 51, 65, 75, 86, 35, 36, 47, 53, 61, 73, 81, 92, 59, 57, 65, 78, 92, 108, 117,
+ 119, 83, 78, 82, 97, 111, 129, 148, 154, 32, 31, 35, 44, 53, 65, 82, 90, 31, 32, 34, 41, 50, 61, 76, 85, 31, 33, 35, 42, 49, 59, 73, 81, 32, 34,
+ 37, 42, 49, 58, 71, 79, 34, 35, 41, 48, 54, 63, 76, 81, 36, 36, 46, 54, 60, 68, 80, 87, 41, 40, 49, 60, 67, 76, 88, 93, 47, 44, 53, 66, 75, 84, 97,
+ 101, 53, 50, 57, 71, 82, 92, 106, 108, 58, 54, 61, 75, 87, 98, 112, 116, 65, 59, 66, 79, 92, 105, 120, 124, 74, 67, 73, 86, 100, 113, 131, 134, 82,
+ 73, 79, 92, 105, 120, 139, 142, 87, 78, 83, 96, 110, 125, 144, 153, 92, 83, 84, 97, 114, 132, 150, 157, 97, 88, 86, 97, 111, 128, 147, 163, 32, 31,
+ 31, 32, 34, 36, 41, 47, 53, 58, 65, 74, 82, 87, 92, 97, 31, 32, 33, 34, 35, 36, 40, 44, 50, 54, 59, 67, 73, 78, 83, 88, 35, 34, 35, 37, 41, 46, 49,
+ 53, 57, 61, 66, 73, 79, 83, 84, 86, 44, 41, 42, 42, 48, 54, 60, 66, 71, 75, 79, 86, 92, 96, 97, 97, 53, 50, 49, 49, 54, 60, 67, 75, 82, 87, 92,
+ 100, 105, 110, 114, 111, 65, 61, 59, 58, 63, 68, 76, 84, 92, 98, 105, 113, 120, 125, 132, 128, 82, 76, 73, 71, 76, 80, 88, 97, 106, 112, 120, 131,
+ 139, 144, 150, 147, 90, 85, 81, 79, 81, 87, 93, 101, 108, 116, 124, 134, 142, 153, 157, 163, 32, 31, 31, 32, 35, 36, 44, 47, 53, 62, 65, 79, 82,
+ 88, 90, 93, 31, 32, 32, 32, 35, 35, 42, 45, 51, 59, 62, 75, 78, 83, 86, 88, 31, 32, 32, 32, 34, 35, 41, 45, 50, 58, 61, 74, 76, 82, 85, 88, 31, 32,
+ 32, 33, 34, 34, 41, 44, 49, 57, 59, 72, 74, 79, 82, 84, 31, 32, 33, 34, 35, 36, 42, 44, 49, 57, 59, 71, 73, 79, 81, 84, 32, 32, 33, 34, 36, 36, 42,
+ 45, 50, 57, 59, 71, 73, 78, 80, 82, 32, 33, 34, 35, 37, 38, 42, 45, 49, 56, 58, 69, 71, 76, 79, 83, 32, 33, 34, 36, 39, 40, 44, 47, 51, 58, 60, 71,
+ 73, 76, 78, 80, 34, 34, 35, 37, 41, 42, 48, 50, 54, 61, 63, 73, 76, 81, 81, 80, 35, 34, 36, 38, 45, 47, 52, 55, 59, 65, 67, 77, 79, 82, 83, 86, 36,
+ 34, 36, 38, 46, 48, 54, 56, 60, 66, 68, 78, 80, 85, 87, 86, 39, 37, 39, 40, 48, 50, 58, 60, 65, 71, 73, 84, 86, 89, 88, 91, 41, 39, 40, 41, 49, 51,
+ 60, 62, 67, 74, 76, 86, 88, 91, 93, 91, 44, 41, 42, 43, 51, 53, 63, 66, 71, 78, 79, 90, 92, 97, 94, 97, 47, 44, 44, 45, 53, 56, 66, 69, 75, 82, 84,
+ 95, 97, 98, 101, 98, 48, 45, 45, 46, 54, 56, 67, 70, 76, 83, 85, 96, 98, 104, 101, 105, 53, 49, 50, 50, 57, 60, 71, 75, 82, 90, 92, 103, 106, 107,
+ 108, 105, 55, 51, 51, 51, 59, 61, 72, 77, 84, 92, 94, 106, 108, 111, 110, 112, 58, 54, 54, 54, 61, 63, 75, 79, 87, 95, 98, 110, 112, 117, 116, 113,
+ 63, 58, 58, 57, 65, 67, 78, 83, 91, 100, 103, 116, 118, 119, 119, 121, 65, 60, 59, 58, 66, 68, 79, 84, 92, 102, 105, 118, 120, 127, 124, 122, 71,
+ 65, 64, 63, 71, 73, 84, 89, 97, 108, 111, 125, 127, 129, 129, 130, 74, 68, 67, 66, 73, 75, 86, 91, 100, 110, 113, 128, 131, 135, 134, 130, 79, 72,
+ 71, 70, 77, 79, 90, 95, 104, 115, 118, 133, 136, 140, 139, 140, 82, 75, 73, 72, 79, 81, 92, 97, 105, 117, 120, 136, 139, 145, 142, 140, 82, 75, 74,
+ 72, 79, 81, 92, 97, 106, 117, 121, 136, 139, 148, 150, 149, 87, 79, 78, 76, 83, 85, 96, 100, 110, 120, 125, 141, 144, 148, 153, 150, 89, 82, 81,
+ 78, 83, 87, 97, 99, 113, 118, 128, 139, 145, 153, 157, 161, 92, 84, 83, 80, 84, 89, 97, 101, 114, 116, 132, 135, 150, 153, 157, 162, 94, 86, 85,
+ 82, 85, 92, 97, 104, 112, 119, 130, 136, 151, 154, 163, 166, 97, 88, 88, 85, 86, 94, 97, 107, 111, 123, 128, 140, 147, 159, 163, 167, 99, 91, 91,
+ 87, 87, 97, 97, 110, 110, 126, 126, 144, 144, 163, 163, 173, 32, 31, 31, 31, 31, 32, 32, 32, 34, 35, 36, 39, 41, 44, 47, 48, 53, 55, 58, 63, 65,
+ 71, 74, 79, 82, 82, 87, 89, 92, 94, 97, 99, 31, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 37, 39, 41, 44, 45, 49, 51, 54, 58, 60, 65, 68, 72, 75, 75,
+ 79, 82, 84, 86, 88, 91, 31, 32, 32, 32, 33, 33, 34, 34, 35, 36, 36, 39, 40, 42, 44, 45, 50, 51, 54, 58, 59, 64, 67, 71, 73, 74, 78, 81, 83, 85, 88,
+ 91, 32, 32, 32, 33, 34, 34, 35, 36, 37, 38, 38, 40, 41, 43, 45, 46, 50, 51, 54, 57, 58, 63, 66, 70, 72, 72, 76, 78, 80, 82, 85, 87, 35, 35, 34, 34,
+ 35, 36, 37, 39, 41, 45, 46, 48, 49, 51, 53, 54, 57, 59, 61, 65, 66, 71, 73, 77, 79, 79, 83, 83, 84, 85, 86, 87, 36, 35, 35, 34, 36, 36, 38, 40, 42,
+ 47, 48, 50, 51, 53, 56, 56, 60, 61, 63, 67, 68, 73, 75, 79, 81, 81, 85, 87, 89, 92, 94, 97, 44, 42, 41, 41, 42, 42, 42, 44, 48, 52, 54, 58, 60, 63,
+ 66, 67, 71, 72, 75, 78, 79, 84, 86, 90, 92, 92, 96, 97, 97, 97, 97, 97, 47, 45, 45, 44, 44, 45, 45, 47, 50, 55, 56, 60, 62, 66, 69, 70, 75, 77, 79,
+ 83, 84, 89, 91, 95, 97, 97, 100, 99, 101, 104, 107, 110, 53, 51, 50, 49, 49, 50, 49, 51, 54, 59, 60, 65, 67, 71, 75, 76, 82, 84, 87, 91, 92, 97,
+ 100, 104, 105, 106, 110, 113, 114, 112, 111, 110, 62, 59, 58, 57, 57, 57, 56, 58, 61, 65, 66, 71, 74, 78, 82, 83, 90, 92, 95, 100, 102, 108, 110,
+ 115, 117, 117, 120, 118, 116, 119, 123, 126, 65, 62, 61, 59, 59, 59, 58, 60, 63, 67, 68, 73, 76, 79, 84, 85, 92, 94, 98, 103, 105, 111, 113, 118,
+ 120, 121, 125, 128, 132, 130, 128, 126, 79, 75, 74, 72, 71, 71, 69, 71, 73, 77, 78, 84, 86, 90, 95, 96, 103, 106, 110, 116, 118, 125, 128, 133,
+ 136, 136, 141, 139, 135, 136, 140, 144, 82, 78, 76, 74, 73, 73, 71, 73, 76, 79, 80, 86, 88, 92, 97, 98, 106, 108, 112, 118, 120, 127, 131, 136,
+ 139, 139, 144, 145, 150, 151, 147, 144, 88, 83, 82, 79, 79, 78, 76, 76, 81, 82, 85, 89, 91, 97, 98, 104, 107, 111, 117, 119, 127, 129, 135, 140,
+ 145, 148, 148, 153, 153, 154, 159, 163, 90, 86, 85, 82, 81, 80, 79, 78, 81, 83, 87, 88, 93, 94, 101, 101, 108, 110, 116, 119, 124, 129, 134, 139,
+ 142, 150, 153, 157, 157, 163, 163, 163, 93, 88, 88, 84, 84, 82, 83, 80, 80, 86, 86, 91, 91, 97, 98, 105, 105, 112, 113, 121, 122, 130, 130, 140,
+ 140, 149, 150, 161, 162, 166, 167, 173, 31, 36, 62, 88, 32, 35, 58, 82, 32, 36, 57, 79, 33, 38, 56, 76, 34, 42, 61, 81, 34, 48, 66, 85, 39, 51, 74,
+ 91, 44, 56, 82, 98, 49, 60, 90, 107, 54, 63, 95, 117, 60, 68, 102, 127, 68, 75, 110, 135, 75, 81, 117, 145, 79, 85, 120, 148, 84, 89, 116, 153, 88,
+ 94, 123, 159, 31, 32, 32, 33, 34, 34, 39, 44, 49, 54, 60, 68, 75, 79, 84, 88, 36, 35, 36, 38, 42, 48, 51, 56, 60, 63, 68, 75, 81, 85, 89, 94, 62,
+ 58, 57, 56, 61, 66, 74, 82, 90, 95, 102, 110, 117, 120, 116, 123, 88, 82, 79, 76, 81, 85, 91, 98, 107, 117, 127, 135, 145, 148, 153, 159, 32, 31,
+ 35, 44, 53, 65, 82, 90, 31, 32, 35, 42, 51, 62, 78, 86, 31, 32, 34, 41, 50, 61, 76, 85, 31, 32, 34, 41, 49, 59, 74, 82, 31, 33, 35, 42, 49, 59, 73,
+ 81, 32, 33, 36, 42, 50, 59, 73, 80, 32, 34, 37, 42, 49, 58, 71, 79, 32, 34, 39, 44, 51, 60, 73, 78, 34, 35, 41, 48, 54, 63, 76, 81, 35, 36, 45, 52,
+ 59, 67, 79, 83, 36, 36, 46, 54, 60, 68, 80, 87, 39, 39, 48, 58, 65, 73, 86, 88, 41, 40, 49, 60, 67, 76, 88, 93, 44, 42, 51, 63, 71, 79, 92, 94, 47,
+ 44, 53, 66, 75, 84, 97, 101, 48, 45, 54, 67, 76, 85, 98, 101, 53, 50, 57, 71, 82, 92, 106, 108, 55, 51, 59, 72, 84, 94, 108, 110, 58, 54, 61, 75,
+ 87, 98, 112, 116, 63, 58, 65, 78, 91, 103, 118, 119, 65, 59, 66, 79, 92, 105, 120, 124, 71, 64, 71, 84, 97, 111, 127, 129, 74, 67, 73, 86, 100,
+ 113, 131, 134, 79, 71, 77, 90, 104, 118, 136, 139, 82, 73, 79, 92, 105, 120, 139, 142, 82, 74, 79, 92, 106, 121, 139, 150, 87, 78, 83, 96, 110,
+ 125, 144, 153, 89, 81, 83, 97, 113, 128, 145, 157, 92, 83, 84, 97, 114, 132, 150, 157, 94, 85, 85, 97, 112, 130, 151, 163, 97, 88, 86, 97, 111,
+ 128, 147, 163, 99, 91, 87, 97, 110, 126, 144, 163, 32, 31, 31, 31, 31, 32, 32, 32, 34, 35, 36, 39, 41, 44, 47, 48, 53, 55, 58, 63, 65, 71, 74, 79,
+ 82, 82, 87, 89, 92, 94, 97, 99, 31, 32, 32, 32, 33, 33, 34, 34, 35, 36, 36, 39, 40, 42, 44, 45, 50, 51, 54, 58, 59, 64, 67, 71, 73, 74, 78, 81, 83,
+ 85, 88, 91, 35, 35, 34, 34, 35, 36, 37, 39, 41, 45, 46, 48, 49, 51, 53, 54, 57, 59, 61, 65, 66, 71, 73, 77, 79, 79, 83, 83, 84, 85, 86, 87, 44, 42,
+ 41, 41, 42, 42, 42, 44, 48, 52, 54, 58, 60, 63, 66, 67, 71, 72, 75, 78, 79, 84, 86, 90, 92, 92, 96, 97, 97, 97, 97, 97, 53, 51, 50, 49, 49, 50, 49,
+ 51, 54, 59, 60, 65, 67, 71, 75, 76, 82, 84, 87, 91, 92, 97, 100, 104, 105, 106, 110, 113, 114, 112, 111, 110, 65, 62, 61, 59, 59, 59, 58, 60, 63,
+ 67, 68, 73, 76, 79, 84, 85, 92, 94, 98, 103, 105, 111, 113, 118, 120, 121, 125, 128, 132, 130, 128, 126, 82, 78, 76, 74, 73, 73, 71, 73, 76, 79,
+ 80, 86, 88, 92, 97, 98, 106, 108, 112, 118, 120, 127, 131, 136, 139, 139, 144, 145, 150, 151, 147, 144, 90, 86, 85, 82, 81, 80, 79, 78, 81, 83, 87,
+ 88, 93, 94, 101, 101, 108, 110, 116, 119, 124, 129, 134, 139, 142, 150, 153, 157, 157, 163, 163, 163,
+ ],
+ [
+ 32, 45, 51, 61, 45, 54, 59, 65, 51, 59, 75, 81, 61, 65, 81, 97, 31, 34, 46, 47, 50, 57, 61, 65, 34, 39, 47, 45, 48, 53, 57, 61, 46, 47, 52, 52, 54,
+ 58, 61, 62, 47, 45, 52, 58, 62, 65, 68, 68, 50, 48, 54, 62, 68, 73, 77, 76, 57, 53, 58, 65, 73, 82, 86, 86, 61, 57, 61, 68, 77, 86, 91, 95, 65, 61,
+ 62, 68, 76, 86, 95, 100, 32, 31, 33, 36, 41, 49, 49, 50, 52, 54, 57, 61, 64, 67, 68, 70, 31, 31, 34, 39, 42, 47, 46, 47, 49, 51, 53, 57, 60, 62,
+ 64, 66, 33, 34, 37, 42, 44, 47, 46, 46, 47, 49, 51, 55, 57, 59, 61, 63, 36, 39, 42, 47, 47, 48, 46, 46, 47, 48, 50, 53, 55, 57, 59, 61, 41, 42, 44,
+ 47, 48, 50, 49, 50, 50, 52, 53, 56, 58, 60, 61, 60, 49, 47, 47, 48, 50, 53, 53, 54, 54, 55, 56, 59, 61, 63, 64, 64, 49, 46, 46, 46, 49, 53, 55, 57,
+ 59, 60, 61, 64, 66, 67, 67, 67, 50, 47, 46, 46, 50, 54, 57, 61, 63, 64, 66, 69, 70, 72, 71, 71, 52, 49, 47, 47, 50, 54, 59, 63, 66, 68, 70, 73, 75,
+ 77, 75, 75, 54, 51, 49, 48, 52, 55, 60, 64, 68, 71, 73, 76, 79, 80, 79, 79, 57, 53, 51, 50, 53, 56, 61, 66, 70, 73, 76, 80, 82, 84, 83, 84, 61, 57,
+ 55, 53, 56, 59, 64, 69, 73, 76, 80, 84, 87, 89, 88, 88, 64, 60, 57, 55, 58, 61, 66, 70, 75, 79, 82, 87, 91, 93, 93, 93, 67, 62, 59, 57, 60, 63, 67,
+ 72, 77, 80, 84, 89, 93, 95, 96, 97, 68, 64, 61, 59, 61, 64, 67, 71, 75, 79, 83, 88, 93, 96, 99, 100, 70, 66, 63, 61, 60, 64, 67, 71, 75, 79, 84,
+ 88, 93, 97, 100, 102, 32, 31, 31, 30, 33, 33, 36, 38, 41, 47, 49, 48, 49, 49, 50, 50, 52, 53, 54, 56, 57, 60, 61, 63, 64, 65, 67, 67, 68, 69, 70,
+ 71, 31, 31, 31, 31, 34, 34, 38, 40, 42, 46, 47, 47, 47, 47, 48, 48, 50, 50, 52, 54, 54, 57, 58, 60, 61, 61, 63, 64, 65, 65, 66, 67, 31, 31, 31, 31,
+ 34, 35, 39, 40, 42, 46, 47, 46, 46, 46, 47, 47, 49, 50, 51, 53, 53, 56, 57, 59, 60, 60, 62, 63, 64, 65, 66, 67, 30, 31, 31, 32, 34, 35, 40, 41, 42,
+ 45, 46, 45, 45, 45, 46, 46, 47, 48, 49, 51, 52, 54, 55, 57, 58, 58, 60, 61, 62, 62, 63, 64, 33, 34, 34, 34, 37, 38, 42, 43, 44, 46, 47, 46, 46, 45,
+ 46, 46, 47, 48, 49, 51, 51, 53, 55, 56, 57, 57, 59, 60, 61, 62, 63, 64, 33, 34, 35, 35, 38, 39, 43, 44, 45, 47, 47, 46, 46, 45, 46, 46, 47, 48, 49,
+ 51, 51, 53, 54, 56, 57, 57, 59, 60, 60, 61, 62, 62, 36, 38, 39, 40, 42, 43, 47, 47, 47, 47, 48, 46, 46, 45, 46, 46, 47, 47, 48, 49, 50, 52, 53, 54,
+ 55, 55, 57, 58, 59, 60, 61, 62, 38, 40, 40, 41, 43, 44, 47, 47, 48, 48, 49, 48, 47, 47, 47, 47, 48, 49, 49, 51, 51, 53, 54, 55, 56, 56, 58, 58, 58,
+ 59, 60, 60, 41, 42, 42, 42, 44, 45, 47, 48, 48, 50, 50, 49, 49, 49, 50, 50, 50, 51, 52, 53, 53, 55, 56, 57, 58, 58, 60, 61, 61, 61, 60, 60, 47, 46,
+ 46, 45, 46, 47, 47, 48, 50, 52, 52, 52, 52, 52, 53, 53, 53, 54, 55, 55, 56, 58, 58, 60, 60, 61, 62, 61, 61, 62, 63, 64, 49, 47, 47, 46, 47, 47, 48,
+ 49, 50, 52, 53, 53, 53, 53, 54, 54, 54, 55, 55, 56, 56, 58, 59, 60, 61, 61, 63, 63, 64, 64, 64, 64, 48, 47, 46, 45, 46, 46, 46, 48, 49, 52, 53, 54,
+ 55, 55, 56, 56, 57, 58, 58, 59, 60, 61, 62, 63, 64, 64, 66, 65, 65, 65, 66, 67, 49, 47, 46, 45, 46, 46, 46, 47, 49, 52, 53, 55, 55, 57, 57, 58, 59,
+ 59, 60, 61, 61, 63, 64, 65, 66, 66, 67, 67, 67, 68, 67, 67, 49, 47, 46, 45, 45, 45, 45, 47, 49, 52, 53, 55, 57, 58, 59, 60, 61, 62, 62, 63, 63, 65,
+ 66, 67, 68, 68, 69, 70, 69, 68, 69, 70, 50, 48, 47, 46, 46, 46, 46, 47, 50, 53, 54, 56, 57, 59, 61, 61, 63, 64, 64, 66, 66, 68, 69, 70, 70, 71, 72,
+ 70, 71, 72, 71, 70, 50, 48, 47, 46, 46, 46, 46, 47, 50, 53, 54, 56, 58, 60, 61, 61, 63, 64, 65, 66, 67, 68, 69, 71, 71, 71, 73, 74, 73, 72, 73, 74,
+ 52, 50, 49, 47, 47, 47, 47, 48, 50, 53, 54, 57, 59, 61, 63, 63, 66, 67, 68, 70, 70, 72, 73, 75, 75, 75, 77, 75, 75, 76, 75, 74, 53, 50, 50, 48, 48,
+ 48, 47, 49, 51, 54, 55, 58, 59, 62, 64, 64, 67, 68, 69, 71, 71, 73, 74, 76, 77, 77, 78, 78, 78, 76, 77, 78, 54, 52, 51, 49, 49, 49, 48, 49, 52, 55,
+ 55, 58, 60, 62, 64, 65, 68, 69, 71, 73, 73, 75, 76, 78, 79, 79, 80, 80, 79, 80, 79, 78, 56, 54, 53, 51, 51, 51, 49, 51, 53, 55, 56, 59, 61, 63, 66,
+ 66, 70, 71, 73, 75, 76, 78, 79, 81, 82, 82, 83, 81, 83, 81, 81, 82, 57, 54, 53, 52, 51, 51, 50, 51, 53, 56, 56, 60, 61, 63, 66, 67, 70, 71, 73, 76,
+ 76, 79, 80, 82, 82, 83, 84, 85, 83, 84, 84, 82, 60, 57, 56, 54, 53, 53, 52, 53, 55, 58, 58, 61, 63, 65, 68, 68, 72, 73, 75, 78, 79, 82, 83, 85, 86,
+ 86, 88, 86, 87, 86, 85, 86, 61, 58, 57, 55, 55, 54, 53, 54, 56, 58, 59, 62, 64, 66, 69, 69, 73, 74, 76, 79, 80, 83, 84, 86, 87, 88, 89, 89, 88, 88,
+ 88, 86, 63, 60, 59, 57, 56, 56, 54, 55, 57, 60, 60, 63, 65, 67, 70, 71, 75, 76, 78, 81, 82, 85, 86, 89, 90, 90, 92, 91, 91, 90, 89, 91, 64, 61, 60,
+ 58, 57, 57, 55, 56, 58, 60, 61, 64, 66, 68, 70, 71, 75, 77, 79, 82, 82, 86, 87, 90, 91, 91, 93, 93, 93, 92, 93, 91, 65, 61, 60, 58, 57, 57, 55, 56,
+ 58, 61, 61, 64, 66, 68, 71, 71, 75, 77, 79, 82, 83, 86, 88, 90, 91, 91, 93, 94, 95, 95, 93, 95, 67, 63, 62, 60, 59, 59, 57, 58, 60, 62, 63, 66, 67,
+ 69, 72, 73, 77, 78, 80, 83, 84, 88, 89, 92, 93, 93, 95, 95, 96, 96, 97, 95, 67, 64, 63, 61, 60, 60, 58, 58, 61, 61, 63, 65, 67, 70, 70, 74, 75, 78,
+ 80, 81, 85, 86, 89, 91, 93, 94, 95, 97, 97, 98, 98, 100, 68, 65, 64, 62, 61, 60, 59, 58, 61, 61, 64, 65, 67, 69, 71, 73, 75, 78, 79, 83, 83, 87,
+ 88, 91, 93, 95, 96, 97, 99, 98, 100, 100, 69, 65, 65, 62, 62, 61, 60, 59, 61, 62, 64, 65, 68, 68, 72, 72, 76, 76, 80, 81, 84, 86, 88, 90, 92, 95,
+ 96, 98, 98, 100, 100, 101, 70, 66, 66, 63, 63, 62, 61, 60, 60, 63, 64, 66, 67, 69, 71, 73, 75, 77, 79, 81, 84, 85, 88, 89, 93, 93, 97, 98, 100,
+ 100, 102, 101, 71, 67, 67, 64, 64, 62, 62, 60, 60, 64, 64, 67, 67, 70, 70, 74, 74, 78, 78, 82, 82, 86, 86, 91, 91, 95, 95, 100, 100, 101, 101, 104,
+ 31, 47, 53, 63, 36, 47, 50, 59, 46, 52, 55, 61, 45, 53, 63, 70, 49, 55, 71, 77, 54, 58, 77, 86, 59, 61, 81, 94, 63, 65, 80, 95, 31, 36, 46, 45, 49,
+ 54, 59, 63, 47, 47, 52, 53, 55, 58, 61, 65, 53, 50, 55, 63, 71, 77, 81, 80, 63, 59, 61, 70, 77, 86, 94, 95, 32, 33, 45, 49, 52, 57, 64, 68, 31, 34,
+ 45, 46, 49, 53, 60, 64, 33, 37, 46, 45, 47, 51, 57, 61, 37, 43, 47, 45, 47, 50, 55, 59, 42, 44, 49, 49, 50, 53, 58, 60, 49, 47, 52, 53, 54, 57, 61,
+ 63, 48, 46, 51, 57, 59, 61, 66, 67, 50, 46, 52, 59, 63, 66, 71, 71, 52, 47, 53, 61, 66, 71, 75, 74, 54, 49, 54, 62, 68, 73, 79, 79, 57, 51, 55, 64,
+ 70, 76, 83, 83, 61, 55, 58, 66, 73, 80, 87, 87, 64, 57, 60, 68, 75, 83, 91, 91, 66, 59, 61, 69, 77, 84, 93, 95, 68, 61, 61, 68, 77, 86, 94, 97, 70,
+ 63, 61, 67, 75, 83, 92, 98, 32, 31, 33, 37, 42, 49, 48, 50, 52, 54, 57, 61, 64, 66, 68, 70, 33, 34, 37, 43, 44, 47, 46, 46, 47, 49, 51, 55, 57, 59,
+ 61, 63, 45, 45, 46, 47, 49, 52, 51, 52, 53, 54, 55, 58, 60, 61, 61, 61, 49, 46, 45, 45, 49, 53, 57, 59, 61, 62, 64, 66, 68, 69, 68, 67, 52, 49, 47,
+ 47, 50, 54, 59, 63, 66, 68, 70, 73, 75, 77, 77, 75, 57, 53, 51, 50, 53, 57, 61, 66, 71, 73, 76, 80, 83, 84, 86, 83, 64, 60, 57, 55, 58, 61, 66, 71,
+ 75, 79, 83, 87, 91, 93, 94, 92, 68, 64, 61, 59, 60, 63, 67, 71, 74, 79, 83, 87, 91, 95, 97, 98, 32, 31, 33, 37, 45, 48, 49, 50, 52, 56, 57, 63, 64,
+ 67, 68, 68, 31, 31, 34, 38, 45, 47, 47, 48, 50, 53, 54, 60, 61, 63, 64, 65, 31, 32, 34, 39, 45, 46, 46, 47, 49, 52, 53, 59, 60, 62, 64, 65, 30, 32,
+ 35, 40, 44, 46, 45, 46, 48, 51, 52, 57, 58, 60, 61, 62, 33, 35, 37, 42, 46, 47, 45, 46, 47, 50, 51, 56, 57, 60, 61, 62, 33, 36, 38, 43, 46, 47, 46,
+ 46, 47, 50, 51, 56, 57, 59, 60, 60, 37, 40, 43, 47, 47, 47, 45, 46, 47, 49, 50, 54, 55, 57, 59, 61, 39, 41, 43, 47, 48, 48, 47, 47, 48, 50, 51, 55,
+ 56, 57, 58, 59, 42, 43, 44, 47, 49, 50, 49, 50, 50, 53, 53, 57, 58, 60, 60, 59, 47, 46, 46, 48, 51, 52, 53, 53, 53, 55, 56, 60, 61, 61, 61, 62, 49,
+ 46, 47, 48, 52, 53, 53, 54, 54, 56, 57, 60, 61, 63, 63, 62, 48, 46, 46, 47, 51, 53, 56, 56, 57, 59, 60, 64, 64, 65, 64, 65, 48, 45, 46, 46, 51, 53,
+ 57, 57, 59, 61, 61, 65, 66, 66, 67, 65, 49, 45, 45, 46, 51, 53, 58, 59, 61, 63, 64, 67, 68, 70, 67, 68, 50, 46, 46, 46, 52, 54, 59, 61, 63, 65, 66,
+ 70, 71, 70, 71, 68, 50, 46, 46, 46, 52, 54, 59, 61, 64, 66, 67, 71, 71, 73, 71, 72, 52, 48, 47, 47, 53, 54, 61, 63, 66, 70, 71, 75, 75, 75, 74, 72,
+ 53, 49, 48, 48, 53, 55, 61, 64, 67, 71, 72, 76, 77, 77, 75, 76, 54, 50, 49, 49, 54, 55, 62, 65, 68, 72, 73, 78, 79, 80, 79, 76, 56, 51, 51, 50, 55,
+ 56, 63, 66, 70, 74, 76, 81, 82, 81, 80, 80, 57, 52, 51, 50, 55, 56, 64, 66, 70, 75, 76, 82, 83, 85, 83, 80, 60, 54, 54, 52, 57, 58, 65, 68, 72, 77,
+ 79, 85, 86, 86, 85, 84, 61, 56, 55, 53, 58, 59, 66, 69, 73, 79, 80, 86, 87, 89, 87, 84, 63, 57, 56, 55, 59, 60, 67, 70, 75, 80, 82, 89, 90, 91, 89,
+ 89, 64, 58, 57, 56, 60, 61, 68, 71, 75, 81, 83, 90, 91, 93, 91, 89, 64, 59, 58, 56, 60, 61, 68, 71, 75, 81, 83, 90, 91, 94, 94, 93, 66, 60, 59, 57,
+ 61, 63, 69, 72, 77, 82, 84, 92, 93, 94, 95, 93, 67, 61, 60, 58, 61, 63, 69, 70, 78, 80, 85, 90, 93, 96, 97, 97, 68, 62, 61, 59, 61, 64, 68, 71, 77,
+ 79, 86, 88, 94, 96, 97, 98, 69, 63, 62, 59, 61, 65, 68, 72, 76, 80, 85, 88, 94, 95, 99, 99, 70, 63, 63, 60, 61, 66, 67, 73, 75, 81, 83, 89, 92, 97,
+ 98, 99, 70, 64, 64, 61, 61, 67, 67, 74, 74, 82, 82, 90, 90, 98, 98, 102, 32, 31, 31, 30, 33, 33, 37, 39, 42, 47, 49, 48, 48, 49, 50, 50, 52, 53,
+ 54, 56, 57, 60, 61, 63, 64, 64, 66, 67, 68, 69, 70, 70, 31, 31, 32, 32, 35, 36, 40, 41, 43, 46, 46, 46, 45, 45, 46, 46, 48, 49, 50, 51, 52, 54, 56,
+ 57, 58, 59, 60, 61, 62, 63, 63, 64, 33, 34, 34, 35, 37, 38, 43, 43, 44, 46, 47, 46, 46, 45, 46, 46, 47, 48, 49, 51, 51, 54, 55, 56, 57, 58, 59, 60,
+ 61, 62, 63, 64, 37, 38, 39, 40, 42, 43, 47, 47, 47, 48, 48, 47, 46, 46, 46, 46, 47, 48, 49, 50, 50, 52, 53, 55, 56, 56, 57, 58, 59, 59, 60, 61, 45,
+ 45, 45, 44, 46, 46, 47, 48, 49, 51, 52, 51, 51, 51, 52, 52, 53, 53, 54, 55, 55, 57, 58, 59, 60, 60, 61, 61, 61, 61, 61, 61, 48, 47, 46, 46, 47, 47,
+ 47, 48, 50, 52, 53, 53, 53, 53, 54, 54, 54, 55, 55, 56, 56, 58, 59, 60, 61, 61, 63, 63, 64, 65, 66, 67, 49, 47, 46, 45, 45, 46, 45, 47, 49, 53, 53,
+ 56, 57, 58, 59, 59, 61, 61, 62, 63, 64, 65, 66, 67, 68, 68, 69, 69, 68, 68, 67, 67, 50, 48, 47, 46, 46, 46, 46, 47, 50, 53, 54, 56, 57, 59, 61, 61,
+ 63, 64, 65, 66, 66, 68, 69, 70, 71, 71, 72, 70, 71, 72, 73, 74, 52, 50, 49, 48, 47, 47, 47, 48, 50, 53, 54, 57, 59, 61, 63, 64, 66, 67, 68, 70, 70,
+ 72, 73, 75, 75, 75, 77, 78, 77, 76, 75, 74, 56, 53, 52, 51, 50, 50, 49, 50, 53, 55, 56, 59, 61, 63, 65, 66, 70, 71, 72, 74, 75, 77, 79, 80, 81, 81,
+ 82, 80, 79, 80, 81, 82, 57, 54, 53, 52, 51, 51, 50, 51, 53, 56, 57, 60, 61, 64, 66, 67, 71, 72, 73, 76, 76, 79, 80, 82, 83, 83, 84, 85, 86, 85, 83,
+ 82, 63, 60, 59, 57, 56, 56, 54, 55, 57, 60, 60, 64, 65, 67, 70, 71, 75, 76, 78, 81, 82, 85, 86, 89, 90, 90, 92, 90, 88, 88, 89, 90, 64, 61, 60, 58,
+ 57, 57, 55, 56, 58, 61, 61, 64, 66, 68, 71, 71, 75, 77, 79, 82, 83, 86, 87, 90, 91, 91, 93, 93, 94, 94, 92, 90, 67, 63, 62, 60, 60, 59, 57, 57, 60,
+ 61, 63, 65, 66, 70, 70, 73, 75, 77, 80, 81, 85, 86, 89, 91, 93, 94, 94, 96, 96, 95, 97, 98, 68, 64, 64, 61, 61, 60, 59, 58, 60, 61, 63, 64, 67, 67,
+ 71, 71, 74, 75, 79, 80, 83, 85, 87, 89, 91, 94, 95, 97, 97, 99, 98, 98, 68, 65, 65, 62, 62, 60, 61, 59, 59, 62, 62, 65, 65, 68, 68, 72, 72, 76, 76,
+ 80, 80, 84, 84, 89, 89, 93, 93, 97, 98, 99, 99, 102, 31, 48, 56, 67, 32, 46, 52, 62, 35, 47, 50, 60, 40, 47, 49, 57, 43, 50, 53, 60, 46, 53, 56,
+ 63, 45, 53, 61, 66, 46, 54, 65, 70, 48, 54, 70, 75, 50, 55, 72, 80, 52, 56, 75, 85, 56, 59, 79, 89, 58, 61, 81, 93, 60, 63, 82, 94, 62, 64, 79, 96,
+ 63, 66, 81, 97, 31, 32, 35, 40, 43, 46, 45, 46, 48, 50, 52, 56, 58, 60, 62, 63, 48, 46, 47, 47, 50, 53, 53, 54, 54, 55, 56, 59, 61, 63, 64, 66, 56,
+ 52, 50, 49, 53, 56, 61, 65, 70, 72, 75, 79, 81, 82, 79, 81, 67, 62, 60, 57, 60, 63, 66, 70, 75, 80, 85, 89, 93, 94, 96, 97, 32, 33, 45, 49, 52, 57,
+ 64, 68, 31, 34, 45, 47, 50, 54, 61, 64, 31, 34, 45, 46, 49, 53, 60, 64, 30, 35, 44, 45, 48, 52, 58, 61, 33, 37, 46, 45, 47, 51, 57, 61, 33, 38, 46,
+ 46, 47, 51, 57, 60, 37, 43, 47, 45, 47, 50, 55, 59, 39, 43, 48, 47, 48, 51, 56, 58, 42, 44, 49, 49, 50, 53, 58, 60, 47, 46, 51, 53, 53, 56, 61, 61,
+ 49, 47, 52, 53, 54, 57, 61, 63, 48, 46, 51, 56, 57, 60, 64, 64, 48, 46, 51, 57, 59, 61, 66, 67, 49, 45, 51, 58, 61, 64, 68, 67, 50, 46, 52, 59, 63,
+ 66, 71, 71, 50, 46, 52, 59, 64, 67, 71, 71, 52, 47, 53, 61, 66, 71, 75, 74, 53, 48, 53, 61, 67, 72, 77, 75, 54, 49, 54, 62, 68, 73, 79, 79, 56, 51,
+ 55, 63, 70, 76, 82, 80, 57, 51, 55, 64, 70, 76, 83, 83, 60, 54, 57, 65, 72, 79, 86, 85, 61, 55, 58, 66, 73, 80, 87, 87, 63, 56, 59, 67, 75, 82, 90,
+ 89, 64, 57, 60, 68, 75, 83, 91, 91, 64, 58, 60, 68, 75, 83, 91, 94, 66, 59, 61, 69, 77, 84, 93, 95, 67, 60, 61, 69, 78, 85, 93, 97, 68, 61, 61, 68,
+ 77, 86, 94, 97, 69, 62, 61, 68, 76, 85, 94, 99, 70, 63, 61, 67, 75, 83, 92, 98, 70, 64, 61, 67, 74, 82, 90, 98, 32, 31, 31, 30, 33, 33, 37, 39, 42,
+ 47, 49, 48, 48, 49, 50, 50, 52, 53, 54, 56, 57, 60, 61, 63, 64, 64, 66, 67, 68, 69, 70, 70, 33, 34, 34, 35, 37, 38, 43, 43, 44, 46, 47, 46, 46, 45,
+ 46, 46, 47, 48, 49, 51, 51, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 45, 45, 45, 44, 46, 46, 47, 48, 49, 51, 52, 51, 51, 51, 52, 52, 53, 53, 54,
+ 55, 55, 57, 58, 59, 60, 60, 61, 61, 61, 61, 61, 61, 49, 47, 46, 45, 45, 46, 45, 47, 49, 53, 53, 56, 57, 58, 59, 59, 61, 61, 62, 63, 64, 65, 66, 67,
+ 68, 68, 69, 69, 68, 68, 67, 67, 52, 50, 49, 48, 47, 47, 47, 48, 50, 53, 54, 57, 59, 61, 63, 64, 66, 67, 68, 70, 70, 72, 73, 75, 75, 75, 77, 78, 77,
+ 76, 75, 74, 57, 54, 53, 52, 51, 51, 50, 51, 53, 56, 57, 60, 61, 64, 66, 67, 71, 72, 73, 76, 76, 79, 80, 82, 83, 83, 84, 85, 86, 85, 83, 82, 64, 61,
+ 60, 58, 57, 57, 55, 56, 58, 61, 61, 64, 66, 68, 71, 71, 75, 77, 79, 82, 83, 86, 87, 90, 91, 91, 93, 93, 94, 94, 92, 90, 68, 64, 64, 61, 61, 60, 59,
+ 58, 60, 61, 63, 64, 67, 67, 71, 71, 74, 75, 79, 80, 83, 85, 87, 89, 91, 94, 95, 97, 97, 99, 98, 98,
+ ],
+ ],
+ [
+ [
+ 32, 34, 53, 75, 34, 49, 64, 81, 53, 64, 91, 112, 75, 81, 112, 140, 32, 32, 34, 39, 50, 62, 76, 84, 32, 33, 35, 40, 48, 59, 71, 79, 34, 35, 39, 46,
+ 53, 63, 74, 81, 39, 40, 46, 56, 65, 75, 86, 92, 50, 48, 53, 65, 78, 90, 101, 106, 62, 59, 63, 75, 90, 105, 118, 123, 76, 71, 74, 86, 101, 118, 134,
+ 142, 84, 79, 81, 92, 106, 123, 142, 153, 32, 31, 31, 32, 33, 36, 39, 44, 48, 54, 59, 66, 74, 81, 86, 91, 31, 32, 32, 32, 33, 35, 38, 42, 46, 51,
+ 56, 63, 70, 77, 81, 86, 31, 32, 32, 33, 34, 35, 38, 41, 45, 49, 54, 60, 67, 73, 77, 82, 32, 32, 33, 34, 36, 37, 40, 42, 45, 49, 53, 59, 66, 71, 75,
+ 80, 33, 33, 34, 36, 38, 42, 44, 46, 50, 53, 57, 63, 69, 74, 78, 80, 36, 35, 35, 37, 42, 48, 50, 54, 57, 60, 64, 69, 75, 80, 84, 85, 39, 38, 38, 40,
+ 44, 50, 54, 58, 61, 65, 69, 74, 80, 85, 89, 91, 44, 42, 41, 42, 46, 54, 58, 63, 67, 71, 75, 80, 86, 91, 95, 97, 48, 46, 45, 45, 50, 57, 61, 67, 71,
+ 76, 80, 86, 93, 98, 101, 104, 54, 51, 49, 49, 53, 60, 65, 71, 76, 82, 87, 93, 100, 105, 109, 112, 59, 56, 54, 53, 57, 64, 69, 75, 80, 87, 92, 99,
+ 106, 112, 116, 120, 66, 63, 60, 59, 63, 69, 74, 80, 86, 93, 99, 107, 115, 121, 125, 129, 74, 70, 67, 66, 69, 75, 80, 86, 93, 100, 106, 115, 123,
+ 130, 135, 138, 81, 77, 73, 71, 74, 80, 85, 91, 98, 105, 112, 121, 130, 137, 142, 148, 86, 81, 77, 75, 78, 84, 89, 95, 101, 109, 116, 125, 135, 142,
+ 147, 153, 91, 86, 82, 80, 80, 85, 91, 97, 104, 112, 120, 129, 138, 148, 153, 159, 32, 31, 31, 31, 31, 31, 32, 32, 33, 34, 36, 36, 39, 41, 44, 46,
+ 48, 52, 54, 58, 59, 65, 66, 71, 74, 80, 81, 83, 86, 89, 91, 93, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 35, 35, 38, 39, 42, 44, 46, 50, 51, 56, 56,
+ 62, 63, 68, 71, 76, 77, 78, 82, 84, 86, 88, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 35, 35, 38, 39, 42, 44, 46, 49, 51, 55, 56, 61, 63, 67, 70, 75,
+ 77, 78, 81, 84, 86, 88, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 37, 38, 41, 42, 44, 48, 49, 53, 54, 59, 60, 65, 68, 72, 74, 75, 78, 80, 82,
+ 84, 31, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 38, 39, 41, 43, 45, 48, 49, 53, 54, 59, 60, 65, 67, 72, 73, 74, 77, 80, 82, 84, 31, 32, 32, 32,
+ 33, 33, 33, 34, 35, 35, 36, 36, 39, 40, 42, 44, 45, 48, 50, 53, 54, 59, 60, 64, 67, 71, 73, 74, 77, 79, 81, 83, 32, 32, 32, 32, 33, 33, 34, 35, 36,
+ 36, 37, 38, 40, 40, 42, 44, 45, 48, 49, 53, 53, 58, 59, 63, 66, 70, 71, 72, 75, 78, 80, 83, 32, 32, 32, 32, 33, 34, 35, 35, 36, 37, 38, 38, 40, 41,
+ 42, 44, 46, 48, 49, 53, 53, 58, 59, 63, 65, 69, 71, 72, 74, 77, 79, 80, 33, 33, 33, 33, 34, 35, 36, 36, 38, 39, 42, 42, 44, 45, 46, 48, 50, 52, 53,
+ 57, 57, 62, 63, 67, 69, 73, 74, 75, 78, 79, 80, 81, 34, 34, 34, 33, 34, 35, 36, 37, 39, 39, 42, 43, 45, 46, 47, 49, 51, 53, 54, 58, 58, 63, 64, 68,
+ 70, 74, 75, 76, 79, 81, 84, 86, 36, 35, 35, 34, 35, 36, 37, 38, 42, 42, 48, 48, 50, 51, 54, 55, 57, 59, 60, 63, 64, 68, 69, 73, 75, 79, 80, 81, 84,
+ 85, 85, 86, 36, 35, 35, 34, 35, 36, 38, 38, 42, 43, 48, 49, 51, 52, 54, 55, 57, 59, 60, 64, 64, 68, 69, 73, 75, 79, 80, 81, 84, 86, 88, 91, 39, 38,
+ 38, 37, 38, 39, 40, 40, 44, 45, 50, 51, 54, 55, 58, 59, 61, 64, 65, 68, 69, 73, 74, 78, 80, 84, 85, 86, 89, 91, 91, 91, 41, 39, 39, 38, 39, 40, 40,
+ 41, 45, 46, 51, 52, 55, 56, 59, 61, 63, 65, 67, 70, 70, 75, 76, 80, 82, 86, 87, 88, 91, 92, 94, 96, 44, 42, 42, 41, 41, 42, 42, 42, 46, 47, 54, 54,
+ 58, 59, 63, 65, 67, 70, 71, 75, 75, 79, 80, 84, 86, 90, 91, 92, 95, 97, 97, 97, 46, 44, 44, 42, 43, 44, 44, 44, 48, 49, 55, 55, 59, 61, 65, 67, 69,
+ 72, 74, 77, 78, 82, 83, 87, 89, 93, 94, 95, 98, 98, 100, 103, 48, 46, 46, 44, 45, 45, 45, 46, 50, 51, 57, 57, 61, 63, 67, 69, 71, 74, 76, 80, 80,
+ 85, 86, 90, 93, 96, 98, 99, 101, 104, 104, 103, 52, 50, 49, 48, 48, 48, 48, 48, 52, 53, 59, 59, 64, 65, 70, 72, 74, 78, 80, 84, 85, 90, 91, 95, 97,
+ 101, 103, 104, 106, 106, 107, 110, 54, 51, 51, 49, 49, 50, 49, 49, 53, 54, 60, 60, 65, 67, 71, 74, 76, 80, 82, 86, 87, 92, 93, 97, 100, 104, 105,
+ 106, 109, 112, 112, 110, 58, 56, 55, 53, 53, 53, 53, 53, 57, 58, 63, 64, 68, 70, 75, 77, 80, 84, 86, 91, 91, 97, 98, 103, 105, 110, 111, 112, 115,
+ 114, 115, 118, 59, 56, 56, 54, 54, 54, 53, 53, 57, 58, 64, 64, 69, 70, 75, 78, 80, 85, 87, 91, 92, 98, 99, 103, 106, 110, 112, 113, 116, 119, 120,
+ 119, 65, 62, 61, 59, 59, 59, 58, 58, 62, 63, 68, 68, 73, 75, 79, 82, 85, 90, 92, 97, 98, 105, 106, 111, 114, 118, 120, 121, 124, 123, 123, 126, 66,
+ 63, 63, 60, 60, 60, 59, 59, 63, 64, 69, 69, 74, 76, 80, 83, 86, 91, 93, 98, 99, 106, 107, 112, 115, 119, 121, 122, 125, 128, 129, 126, 71, 68, 67,
+ 65, 65, 64, 63, 63, 67, 68, 73, 73, 78, 80, 84, 87, 90, 95, 97, 103, 103, 111, 112, 117, 120, 125, 127, 128, 131, 132, 132, 135, 74, 71, 70, 68,
+ 67, 67, 66, 65, 69, 70, 75, 75, 80, 82, 86, 89, 93, 97, 100, 105, 106, 114, 115, 120, 123, 128, 130, 131, 135, 135, 138, 136, 80, 76, 75, 72, 72,
+ 71, 70, 69, 73, 74, 79, 79, 84, 86, 90, 93, 96, 101, 104, 110, 110, 118, 119, 125, 128, 134, 136, 137, 140, 142, 140, 144, 81, 77, 77, 74, 73, 73,
+ 71, 71, 74, 75, 80, 80, 85, 87, 91, 94, 98, 103, 105, 111, 112, 120, 121, 127, 130, 136, 137, 139, 142, 145, 148, 144, 83, 78, 78, 75, 74, 74, 72,
+ 72, 75, 76, 81, 81, 86, 88, 92, 95, 99, 104, 106, 112, 113, 121, 122, 128, 131, 137, 139, 140, 144, 148, 150, 155, 86, 82, 81, 78, 77, 77, 75, 74,
+ 78, 79, 84, 84, 89, 91, 95, 98, 101, 106, 109, 115, 116, 124, 125, 131, 135, 140, 142, 144, 147, 149, 153, 155, 89, 84, 84, 80, 80, 79, 78, 77, 79,
+ 81, 85, 86, 91, 92, 97, 98, 104, 106, 112, 114, 119, 123, 128, 132, 135, 142, 145, 148, 149, 153, 154, 159, 91, 86, 86, 82, 82, 81, 80, 79, 80, 84,
+ 85, 88, 91, 94, 97, 100, 104, 107, 112, 115, 120, 123, 129, 132, 138, 140, 148, 150, 153, 154, 159, 159, 93, 88, 88, 84, 84, 83, 83, 80, 81, 86,
+ 86, 91, 91, 96, 97, 103, 103, 110, 110, 118, 119, 126, 126, 135, 136, 144, 144, 155, 155, 159, 159, 164, 32, 35, 51, 77, 32, 36, 50, 72, 34, 42,
+ 54, 75, 38, 51, 67, 87, 48, 59, 80, 103, 60, 68, 92, 119, 72, 79, 104, 135, 81, 86, 112, 144, 32, 32, 34, 38, 48, 60, 72, 81, 35, 36, 42, 51, 59,
+ 68, 79, 86, 51, 50, 54, 67, 80, 92, 104, 112, 77, 72, 75, 87, 103, 119, 135, 144, 32, 31, 33, 40, 51, 65, 79, 87, 31, 32, 33, 39, 49, 61, 74, 82,
+ 31, 32, 34, 38, 47, 59, 71, 79, 32, 33, 36, 40, 48, 58, 69, 77, 33, 34, 38, 44, 52, 62, 72, 78, 36, 35, 42, 51, 58, 68, 78, 84, 39, 38, 44, 54, 63,
+ 73, 84, 89, 44, 41, 46, 59, 69, 79, 90, 96, 48, 45, 50, 62, 74, 85, 96, 103, 53, 49, 53, 66, 79, 92, 103, 111, 58, 54, 57, 70, 84, 98, 110, 118,
+ 66, 60, 63, 75, 90, 106, 119, 126, 74, 67, 69, 81, 97, 113, 128, 134, 81, 73, 75, 86, 102, 120, 135, 143, 86, 78, 78, 90, 106, 124, 140, 147, 91,
+ 82, 80, 90, 103, 119, 137, 151, 32, 31, 31, 32, 33, 36, 39, 44, 48, 53, 58, 66, 74, 81, 86, 91, 31, 32, 32, 33, 34, 35, 38, 41, 45, 49, 54, 60, 67,
+ 73, 78, 82, 33, 33, 34, 36, 38, 42, 44, 46, 50, 53, 57, 63, 69, 75, 78, 80, 40, 39, 38, 40, 44, 51, 54, 59, 62, 66, 70, 75, 81, 86, 90, 90, 51, 49,
+ 47, 48, 52, 58, 63, 69, 74, 79, 84, 90, 97, 102, 106, 103, 65, 61, 59, 58, 62, 68, 73, 79, 85, 92, 98, 106, 113, 120, 124, 119, 79, 74, 71, 69, 72,
+ 78, 84, 90, 96, 103, 110, 119, 128, 135, 140, 137, 87, 82, 79, 77, 78, 84, 89, 96, 103, 111, 118, 126, 134, 143, 147, 151, 32, 31, 31, 32, 33, 36,
+ 40, 44, 51, 53, 65, 66, 79, 81, 87, 90, 31, 32, 32, 32, 33, 35, 39, 42, 49, 51, 62, 63, 75, 77, 83, 85, 31, 32, 32, 32, 33, 35, 39, 42, 49, 51, 61,
+ 62, 74, 76, 82, 85, 31, 32, 32, 33, 33, 34, 38, 41, 47, 49, 59, 60, 72, 74, 79, 81, 31, 32, 32, 33, 34, 35, 38, 41, 47, 49, 59, 60, 71, 73, 79, 81,
+ 32, 32, 33, 34, 35, 36, 39, 42, 48, 50, 59, 60, 71, 72, 78, 80, 32, 32, 33, 35, 36, 37, 40, 42, 48, 49, 58, 59, 69, 71, 77, 80, 32, 33, 33, 35, 36,
+ 38, 41, 42, 48, 49, 58, 59, 69, 70, 75, 77, 33, 33, 34, 36, 38, 41, 44, 46, 52, 53, 62, 63, 72, 74, 78, 78, 34, 34, 34, 37, 39, 42, 45, 48, 53, 54,
+ 63, 64, 73, 75, 80, 83, 36, 34, 35, 38, 42, 48, 51, 54, 58, 60, 68, 69, 78, 80, 84, 83, 36, 35, 35, 38, 42, 48, 51, 54, 59, 60, 68, 69, 79, 80, 85,
+ 87, 39, 37, 38, 40, 44, 50, 54, 58, 63, 65, 73, 74, 84, 85, 89, 88, 40, 38, 39, 41, 45, 51, 56, 59, 65, 67, 75, 76, 85, 87, 90, 93, 44, 41, 41, 43,
+ 46, 53, 59, 63, 69, 71, 79, 80, 90, 91, 96, 93, 46, 43, 43, 44, 48, 55, 60, 65, 72, 73, 82, 83, 93, 94, 97, 100, 48, 45, 45, 46, 50, 56, 62, 67,
+ 74, 76, 85, 86, 96, 98, 103, 100, 52, 48, 48, 49, 52, 59, 65, 70, 78, 80, 90, 91, 101, 103, 105, 107, 53, 49, 49, 50, 53, 60, 66, 71, 79, 82, 92,
+ 93, 103, 105, 111, 107, 58, 53, 53, 53, 57, 63, 69, 74, 83, 86, 97, 98, 109, 111, 113, 115, 58, 54, 54, 54, 57, 63, 70, 75, 84, 87, 98, 99, 110,
+ 112, 118, 115, 65, 60, 59, 58, 62, 68, 74, 79, 89, 92, 105, 106, 118, 119, 122, 123, 66, 61, 60, 59, 63, 69, 75, 80, 90, 93, 106, 107, 119, 121,
+ 126, 123, 71, 65, 65, 63, 67, 73, 79, 84, 94, 97, 111, 112, 125, 127, 131, 132, 74, 68, 67, 66, 69, 75, 81, 86, 97, 100, 113, 115, 128, 130, 134,
+ 132, 79, 72, 72, 70, 73, 79, 85, 90, 101, 104, 118, 119, 133, 135, 141, 140, 81, 74, 73, 71, 75, 80, 86, 91, 102, 105, 120, 121, 135, 137, 143,
+ 140, 82, 75, 74, 72, 75, 81, 87, 92, 103, 106, 121, 122, 136, 139, 147, 151, 86, 78, 78, 75, 78, 84, 90, 95, 106, 109, 124, 125, 140, 142, 147,
+ 151, 88, 81, 80, 77, 80, 86, 90, 98, 105, 112, 122, 127, 140, 144, 152, 155, 91, 83, 82, 79, 80, 88, 90, 100, 103, 114, 119, 130, 137, 148, 151,
+ 155, 93, 85, 85, 81, 81, 90, 90, 102, 103, 117, 117, 134, 134, 151, 152, 160, 32, 31, 31, 31, 31, 32, 32, 32, 33, 34, 36, 36, 39, 40, 44, 46, 48,
+ 52, 53, 58, 58, 65, 66, 71, 74, 79, 81, 82, 86, 88, 91, 93, 31, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 35, 37, 38, 41, 43, 45, 48, 49, 53, 54, 60,
+ 61, 65, 68, 72, 74, 75, 78, 81, 83, 85, 31, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 38, 39, 41, 43, 45, 48, 49, 53, 54, 59, 60, 65, 67, 72, 73,
+ 74, 78, 80, 82, 85, 32, 32, 32, 33, 33, 34, 35, 35, 36, 37, 38, 38, 40, 41, 43, 44, 46, 49, 50, 53, 54, 58, 59, 63, 66, 70, 71, 72, 75, 77, 79, 81,
+ 33, 33, 33, 33, 34, 35, 36, 36, 38, 39, 42, 42, 44, 45, 46, 48, 50, 52, 53, 57, 57, 62, 63, 67, 69, 73, 75, 75, 78, 80, 80, 81, 36, 35, 35, 34, 35,
+ 36, 37, 38, 41, 42, 48, 48, 50, 51, 53, 55, 56, 59, 60, 63, 63, 68, 69, 73, 75, 79, 80, 81, 84, 86, 88, 90, 40, 39, 39, 38, 38, 39, 40, 41, 44, 45,
+ 51, 51, 54, 56, 59, 60, 62, 65, 66, 69, 70, 74, 75, 79, 81, 85, 86, 87, 90, 90, 90, 90, 44, 42, 42, 41, 41, 42, 42, 42, 46, 48, 54, 54, 58, 59, 63,
+ 65, 67, 70, 71, 74, 75, 79, 80, 84, 86, 90, 91, 92, 95, 98, 100, 102, 51, 49, 49, 47, 47, 48, 48, 48, 52, 53, 58, 59, 63, 65, 69, 72, 74, 78, 79,
+ 83, 84, 89, 90, 94, 97, 101, 102, 103, 106, 105, 103, 103, 53, 51, 51, 49, 49, 50, 49, 49, 53, 54, 60, 60, 65, 67, 71, 73, 76, 80, 82, 86, 87, 92,
+ 93, 97, 100, 104, 105, 106, 109, 112, 114, 117, 65, 62, 61, 59, 59, 59, 58, 58, 62, 63, 68, 68, 73, 75, 79, 82, 85, 90, 92, 97, 98, 105, 106, 111,
+ 113, 118, 120, 121, 124, 122, 119, 117, 66, 63, 62, 60, 60, 60, 59, 59, 63, 64, 69, 69, 74, 76, 80, 83, 86, 91, 93, 98, 99, 106, 107, 112, 115,
+ 119, 121, 122, 125, 127, 130, 134, 79, 75, 74, 72, 71, 71, 69, 69, 72, 73, 78, 79, 84, 85, 90, 93, 96, 101, 103, 109, 110, 118, 119, 125, 128, 133,
+ 135, 136, 140, 140, 137, 134, 81, 77, 76, 74, 73, 72, 71, 70, 74, 75, 80, 80, 85, 87, 91, 94, 98, 103, 105, 111, 112, 119, 121, 127, 130, 135, 137,
+ 139, 142, 144, 148, 151, 87, 83, 82, 79, 79, 78, 77, 75, 78, 80, 84, 85, 89, 90, 96, 97, 103, 105, 111, 113, 118, 122, 126, 131, 134, 141, 143,
+ 147, 147, 152, 151, 152, 90, 85, 85, 81, 81, 80, 80, 77, 78, 83, 83, 87, 88, 93, 93, 100, 100, 107, 107, 115, 115, 123, 123, 132, 132, 140, 140,
+ 151, 151, 155, 155, 160, 31, 36, 53, 81, 32, 35, 51, 76, 32, 35, 49, 73, 32, 37, 49, 71, 33, 41, 53, 74, 34, 48, 60, 80, 37, 50, 65, 85, 41, 53,
+ 71, 91, 45, 56, 76, 98, 49, 60, 82, 105, 54, 63, 87, 112, 61, 69, 93, 121, 68, 75, 100, 130, 74, 80, 105, 137, 78, 84, 109, 142, 83, 88, 114, 148,
+ 31, 32, 32, 32, 33, 34, 37, 41, 45, 49, 54, 61, 68, 74, 78, 83, 36, 35, 35, 37, 41, 48, 50, 53, 56, 60, 63, 69, 75, 80, 84, 88, 53, 51, 49, 49, 53,
+ 60, 65, 71, 76, 82, 87, 93, 100, 105, 109, 114, 81, 76, 73, 71, 74, 80, 85, 91, 98, 105, 112, 121, 130, 137, 142, 148, 32, 31, 33, 40, 51, 65, 79,
+ 87, 31, 32, 33, 39, 49, 62, 75, 83, 31, 32, 33, 39, 49, 61, 74, 82, 31, 32, 33, 38, 47, 59, 72, 79, 31, 32, 34, 38, 47, 59, 71, 79, 32, 33, 35, 39,
+ 48, 59, 71, 78, 32, 33, 36, 40, 48, 58, 69, 77, 32, 33, 36, 41, 48, 58, 69, 75, 33, 34, 38, 44, 52, 62, 72, 78, 34, 34, 39, 45, 53, 63, 73, 80, 36,
+ 35, 42, 51, 58, 68, 78, 84, 36, 35, 42, 51, 59, 68, 79, 85, 39, 38, 44, 54, 63, 73, 84, 89, 40, 39, 45, 56, 65, 75, 85, 90, 44, 41, 46, 59, 69, 79,
+ 90, 96, 46, 43, 48, 60, 72, 82, 93, 97, 48, 45, 50, 62, 74, 85, 96, 103, 52, 48, 52, 65, 78, 90, 101, 105, 53, 49, 53, 66, 79, 92, 103, 111, 58,
+ 53, 57, 69, 83, 97, 109, 113, 58, 54, 57, 70, 84, 98, 110, 118, 65, 59, 62, 74, 89, 105, 118, 122, 66, 60, 63, 75, 90, 106, 119, 126, 71, 65, 67,
+ 79, 94, 111, 125, 131, 74, 67, 69, 81, 97, 113, 128, 134, 79, 72, 73, 85, 101, 118, 133, 141, 81, 73, 75, 86, 102, 120, 135, 143, 82, 74, 75, 87,
+ 103, 121, 136, 147, 86, 78, 78, 90, 106, 124, 140, 147, 88, 80, 80, 90, 105, 122, 140, 152, 91, 82, 80, 90, 103, 119, 137, 151, 93, 85, 81, 90,
+ 103, 117, 134, 152, 32, 31, 31, 31, 31, 32, 32, 32, 33, 34, 36, 36, 39, 40, 44, 46, 48, 52, 53, 58, 58, 65, 66, 71, 74, 79, 81, 82, 86, 88, 91, 93,
+ 31, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 38, 39, 41, 43, 45, 48, 49, 53, 54, 59, 60, 65, 67, 72, 73, 74, 78, 80, 82, 85, 33, 33, 33, 33, 34,
+ 35, 36, 36, 38, 39, 42, 42, 44, 45, 46, 48, 50, 52, 53, 57, 57, 62, 63, 67, 69, 73, 75, 75, 78, 80, 80, 81, 40, 39, 39, 38, 38, 39, 40, 41, 44, 45,
+ 51, 51, 54, 56, 59, 60, 62, 65, 66, 69, 70, 74, 75, 79, 81, 85, 86, 87, 90, 90, 90, 90, 51, 49, 49, 47, 47, 48, 48, 48, 52, 53, 58, 59, 63, 65, 69,
+ 72, 74, 78, 79, 83, 84, 89, 90, 94, 97, 101, 102, 103, 106, 105, 103, 103, 65, 62, 61, 59, 59, 59, 58, 58, 62, 63, 68, 68, 73, 75, 79, 82, 85, 90,
+ 92, 97, 98, 105, 106, 111, 113, 118, 120, 121, 124, 122, 119, 117, 79, 75, 74, 72, 71, 71, 69, 69, 72, 73, 78, 79, 84, 85, 90, 93, 96, 101, 103,
+ 109, 110, 118, 119, 125, 128, 133, 135, 136, 140, 140, 137, 134, 87, 83, 82, 79, 79, 78, 77, 75, 78, 80, 84, 85, 89, 90, 96, 97, 103, 105, 111,
+ 113, 118, 122, 126, 131, 134, 141, 143, 147, 147, 152, 151, 152,
+ ],
+ [
+ 32, 46, 49, 58, 46, 53, 55, 62, 49, 55, 70, 78, 58, 62, 78, 91, 31, 34, 42, 47, 49, 54, 60, 64, 34, 39, 45, 46, 47, 51, 56, 59, 42, 45, 48, 49, 50,
+ 53, 57, 60, 47, 46, 49, 55, 58, 61, 65, 66, 49, 47, 50, 58, 65, 69, 73, 74, 54, 51, 53, 61, 69, 76, 82, 83, 60, 56, 57, 65, 73, 82, 89, 92, 64, 59,
+ 60, 66, 74, 83, 92, 96, 32, 31, 31, 35, 40, 49, 48, 49, 50, 52, 54, 57, 61, 64, 66, 68, 31, 31, 32, 37, 41, 47, 47, 46, 48, 49, 51, 54, 57, 60, 62,
+ 64, 31, 32, 34, 39, 43, 46, 46, 45, 46, 47, 49, 52, 55, 57, 59, 61, 35, 37, 39, 44, 46, 47, 46, 45, 46, 47, 48, 51, 53, 56, 57, 59, 40, 41, 43, 46,
+ 48, 50, 49, 48, 49, 49, 51, 53, 55, 57, 59, 59, 49, 47, 46, 47, 50, 53, 53, 53, 54, 54, 55, 57, 59, 61, 62, 62, 48, 47, 46, 46, 49, 53, 54, 55, 56,
+ 57, 58, 60, 62, 64, 65, 65, 49, 46, 45, 45, 48, 53, 55, 58, 60, 61, 62, 64, 66, 68, 69, 69, 50, 48, 46, 46, 49, 54, 56, 60, 61, 63, 65, 67, 69, 71,
+ 72, 72, 52, 49, 47, 47, 49, 54, 57, 61, 63, 66, 68, 71, 73, 75, 76, 77, 54, 51, 49, 48, 51, 55, 58, 62, 65, 68, 71, 74, 76, 78, 80, 81, 57, 54, 52,
+ 51, 53, 57, 60, 64, 67, 71, 74, 77, 80, 83, 84, 85, 61, 57, 55, 53, 55, 59, 62, 66, 69, 73, 76, 80, 84, 87, 89, 89, 64, 60, 57, 56, 57, 61, 64, 68,
+ 71, 75, 78, 83, 87, 90, 92, 94, 66, 62, 59, 57, 59, 62, 65, 69, 72, 76, 80, 84, 89, 92, 94, 96, 68, 64, 61, 59, 59, 62, 65, 69, 72, 77, 81, 85, 89,
+ 94, 96, 98, 32, 31, 31, 30, 31, 33, 35, 36, 40, 41, 49, 49, 48, 48, 49, 50, 50, 52, 52, 54, 54, 57, 57, 60, 61, 63, 64, 65, 66, 67, 68, 69, 31, 31,
+ 31, 31, 32, 34, 37, 38, 41, 42, 47, 47, 47, 47, 47, 47, 48, 49, 50, 52, 52, 54, 55, 57, 58, 60, 61, 61, 63, 64, 64, 65, 31, 31, 31, 31, 32, 35, 37,
+ 39, 41, 42, 47, 47, 47, 46, 46, 47, 48, 49, 49, 51, 51, 54, 54, 56, 57, 59, 60, 61, 62, 63, 64, 65, 30, 31, 31, 32, 33, 35, 38, 40, 42, 42, 46, 46,
+ 45, 45, 45, 45, 46, 47, 47, 49, 49, 52, 52, 54, 55, 57, 58, 58, 60, 61, 61, 62, 31, 32, 32, 33, 34, 37, 39, 41, 43, 43, 46, 46, 46, 45, 45, 46, 46,
+ 47, 47, 49, 49, 51, 52, 54, 55, 57, 57, 58, 59, 60, 61, 62, 33, 34, 35, 35, 37, 39, 41, 43, 44, 45, 47, 47, 46, 46, 45, 46, 46, 47, 47, 49, 49, 51,
+ 51, 53, 54, 56, 57, 57, 58, 59, 60, 61, 35, 37, 37, 38, 39, 41, 44, 46, 46, 46, 47, 47, 46, 46, 45, 46, 46, 47, 47, 48, 48, 50, 51, 52, 53, 55, 56,
+ 56, 57, 58, 59, 61, 36, 38, 39, 40, 41, 43, 46, 47, 47, 47, 48, 47, 46, 46, 45, 46, 46, 46, 47, 48, 48, 50, 50, 52, 53, 54, 55, 55, 56, 57, 58, 58,
+ 40, 41, 41, 42, 43, 44, 46, 47, 48, 48, 50, 49, 49, 49, 48, 49, 49, 49, 49, 51, 51, 52, 53, 54, 55, 57, 57, 58, 59, 59, 59, 59, 41, 42, 42, 42, 43,
+ 45, 46, 47, 48, 48, 50, 50, 49, 49, 49, 49, 50, 50, 50, 52, 52, 53, 53, 55, 56, 57, 58, 58, 59, 60, 61, 62, 49, 47, 47, 46, 46, 47, 47, 48, 50, 50,
+ 53, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 56, 57, 58, 59, 60, 61, 61, 62, 62, 62, 62, 49, 47, 47, 46, 46, 47, 47, 47, 49, 50, 53, 53, 53, 53, 54,
+ 54, 54, 54, 54, 55, 56, 57, 57, 59, 59, 61, 61, 62, 63, 63, 64, 65, 48, 47, 47, 45, 46, 46, 46, 46, 49, 49, 53, 53, 54, 54, 55, 56, 56, 57, 57, 58,
+ 58, 60, 60, 61, 62, 63, 64, 64, 65, 66, 65, 65, 48, 47, 46, 45, 45, 46, 46, 46, 49, 49, 53, 53, 54, 55, 56, 57, 57, 58, 58, 59, 60, 61, 61, 63, 63,
+ 65, 65, 65, 66, 66, 67, 68, 49, 47, 46, 45, 45, 45, 45, 45, 48, 49, 53, 54, 55, 56, 58, 59, 60, 61, 61, 62, 62, 63, 64, 65, 66, 67, 68, 68, 69, 70,
+ 69, 68, 50, 47, 47, 45, 46, 46, 46, 46, 49, 49, 54, 54, 56, 57, 59, 60, 60, 62, 62, 63, 64, 65, 65, 67, 68, 69, 69, 70, 70, 70, 71, 71, 50, 48, 48,
+ 46, 46, 46, 46, 46, 49, 50, 54, 54, 56, 57, 60, 60, 61, 63, 63, 65, 65, 67, 67, 68, 69, 71, 71, 71, 72, 73, 72, 71, 52, 49, 49, 47, 47, 47, 47, 46,
+ 49, 50, 54, 54, 57, 58, 61, 62, 63, 65, 65, 67, 67, 69, 70, 71, 72, 73, 74, 74, 75, 74, 74, 75, 52, 50, 49, 47, 47, 47, 47, 47, 49, 50, 54, 54, 57,
+ 58, 61, 62, 63, 65, 66, 68, 68, 70, 71, 72, 73, 75, 75, 75, 76, 77, 77, 75, 54, 52, 51, 49, 49, 49, 48, 48, 51, 52, 55, 55, 58, 59, 62, 63, 65, 67,
+ 68, 70, 70, 73, 73, 75, 76, 78, 78, 78, 79, 78, 78, 79, 54, 52, 51, 49, 49, 49, 48, 48, 51, 52, 55, 56, 58, 60, 62, 64, 65, 67, 68, 70, 71, 73, 74,
+ 75, 76, 78, 78, 79, 80, 81, 81, 79, 57, 54, 54, 52, 51, 51, 50, 50, 52, 53, 56, 57, 60, 61, 63, 65, 67, 69, 70, 73, 73, 76, 77, 79, 80, 82, 82, 83,
+ 84, 83, 82, 83, 57, 55, 54, 52, 52, 51, 51, 50, 53, 53, 57, 57, 60, 61, 64, 65, 67, 70, 71, 73, 74, 77, 77, 79, 80, 82, 83, 83, 84, 85, 85, 83, 60,
+ 57, 56, 54, 54, 53, 52, 52, 54, 55, 58, 59, 61, 63, 65, 67, 68, 71, 72, 75, 75, 79, 79, 82, 83, 85, 86, 86, 87, 87, 86, 87, 61, 58, 57, 55, 55, 54,
+ 53, 53, 55, 56, 59, 59, 62, 63, 66, 68, 69, 72, 73, 76, 76, 80, 80, 83, 84, 86, 87, 88, 89, 89, 89, 87, 63, 60, 59, 57, 57, 56, 55, 54, 57, 57, 60,
+ 61, 63, 65, 67, 69, 71, 73, 75, 78, 78, 82, 82, 85, 86, 89, 89, 90, 91, 92, 90, 91, 64, 61, 60, 58, 57, 57, 56, 55, 57, 58, 61, 61, 64, 65, 68, 69,
+ 71, 74, 75, 78, 78, 82, 83, 86, 87, 89, 90, 91, 92, 93, 94, 91, 65, 61, 61, 58, 58, 57, 56, 55, 58, 58, 61, 62, 64, 65, 68, 70, 71, 74, 75, 78, 79,
+ 83, 83, 86, 88, 90, 91, 91, 93, 94, 94, 96, 66, 63, 62, 60, 59, 58, 57, 56, 59, 59, 62, 63, 65, 66, 69, 70, 72, 75, 76, 79, 80, 84, 84, 87, 89, 91,
+ 92, 93, 94, 94, 96, 96, 67, 64, 63, 61, 60, 59, 58, 57, 59, 60, 62, 63, 66, 66, 70, 70, 73, 74, 77, 78, 81, 83, 85, 87, 89, 92, 93, 94, 94, 96, 96,
+ 97, 68, 64, 64, 61, 61, 60, 59, 58, 59, 61, 62, 64, 65, 67, 69, 71, 72, 74, 77, 78, 81, 82, 85, 86, 89, 90, 94, 94, 96, 96, 98, 97, 69, 65, 65, 62,
+ 62, 61, 61, 58, 59, 62, 62, 65, 65, 68, 68, 71, 71, 75, 75, 79, 79, 83, 83, 87, 87, 91, 91, 96, 96, 97, 97, 99, 31, 47, 50, 61, 36, 47, 47, 57, 43,
+ 50, 50, 58, 45, 53, 58, 65, 47, 54, 66, 74, 52, 56, 70, 82, 57, 60, 75, 90, 61, 63, 77, 93, 31, 36, 43, 45, 47, 52, 57, 61, 47, 47, 50, 53, 54, 56,
+ 60, 63, 50, 47, 50, 58, 66, 70, 75, 77, 61, 57, 58, 65, 74, 82, 90, 93, 32, 32, 40, 49, 51, 57, 63, 67, 31, 33, 41, 47, 49, 54, 59, 63, 31, 35, 43,
+ 46, 47, 51, 57, 60, 35, 39, 46, 46, 47, 50, 55, 58, 41, 43, 48, 49, 49, 52, 57, 59, 49, 47, 50, 53, 54, 57, 60, 62, 48, 46, 49, 54, 57, 60, 64, 65,
+ 49, 45, 48, 56, 61, 64, 67, 69, 50, 46, 49, 57, 63, 67, 71, 73, 52, 48, 50, 58, 65, 71, 75, 77, 54, 50, 51, 59, 67, 73, 78, 81, 57, 52, 53, 61, 69,
+ 77, 82, 85, 61, 55, 56, 63, 72, 80, 86, 88, 64, 58, 58, 65, 73, 82, 89, 92, 66, 59, 59, 66, 75, 84, 91, 94, 68, 61, 59, 65, 72, 81, 89, 95, 32, 31,
+ 31, 35, 41, 49, 48, 49, 50, 52, 54, 57, 61, 64, 66, 68, 32, 33, 35, 39, 43, 47, 46, 45, 46, 48, 50, 52, 55, 58, 59, 61, 40, 41, 43, 46, 48, 50, 49,
+ 48, 49, 50, 51, 53, 56, 58, 59, 59, 49, 47, 46, 46, 49, 53, 54, 56, 57, 58, 59, 61, 63, 65, 66, 65, 51, 49, 47, 47, 49, 54, 57, 61, 63, 65, 67, 69,
+ 72, 73, 75, 72, 57, 54, 51, 50, 52, 57, 60, 64, 67, 71, 73, 77, 80, 82, 84, 81, 63, 59, 57, 55, 57, 60, 64, 67, 71, 75, 78, 82, 86, 89, 91, 89, 67,
+ 63, 60, 58, 59, 62, 65, 69, 73, 77, 81, 85, 88, 92, 94, 95, 32, 31, 32, 37, 40, 48, 49, 49, 51, 52, 57, 58, 63, 64, 67, 67, 31, 31, 33, 38, 41, 47,
+ 47, 47, 49, 50, 54, 55, 60, 61, 63, 64, 31, 31, 33, 38, 41, 47, 47, 47, 49, 49, 54, 54, 59, 60, 63, 64, 30, 32, 33, 40, 42, 46, 45, 45, 47, 48, 52,
+ 52, 57, 58, 60, 61, 31, 33, 35, 41, 43, 46, 46, 45, 47, 48, 51, 52, 57, 57, 60, 61, 33, 36, 37, 43, 44, 47, 46, 46, 47, 47, 51, 52, 56, 57, 59, 60,
+ 35, 38, 39, 45, 46, 47, 46, 45, 47, 47, 50, 51, 55, 56, 58, 60, 37, 40, 41, 47, 47, 47, 46, 45, 46, 47, 50, 50, 54, 55, 57, 58, 41, 42, 43, 47, 48,
+ 49, 49, 48, 49, 50, 52, 53, 57, 57, 59, 58, 42, 43, 43, 47, 48, 50, 49, 49, 50, 50, 53, 54, 57, 58, 60, 61, 49, 46, 47, 48, 50, 53, 53, 53, 54, 54,
+ 57, 57, 60, 61, 62, 61, 49, 46, 47, 48, 50, 53, 53, 54, 54, 55, 57, 57, 61, 61, 63, 64, 48, 46, 46, 47, 49, 53, 54, 56, 57, 57, 60, 60, 64, 64, 65,
+ 64, 48, 45, 46, 46, 49, 53, 55, 56, 58, 58, 61, 61, 65, 65, 66, 67, 49, 45, 45, 46, 48, 53, 56, 58, 61, 61, 64, 64, 67, 68, 69, 67, 49, 46, 46, 46,
+ 49, 53, 57, 59, 62, 62, 65, 66, 69, 69, 70, 70, 50, 46, 46, 46, 49, 54, 57, 59, 63, 64, 67, 67, 71, 71, 73, 71, 51, 47, 47, 47, 49, 54, 58, 61, 64,
+ 66, 69, 70, 73, 74, 74, 74, 52, 48, 48, 47, 50, 54, 58, 61, 65, 66, 71, 71, 75, 75, 77, 74, 54, 50, 49, 48, 51, 55, 59, 62, 67, 68, 73, 73, 77, 78,
+ 78, 78, 54, 50, 50, 49, 51, 55, 59, 62, 67, 68, 73, 74, 78, 78, 81, 78, 57, 52, 52, 50, 52, 56, 60, 64, 69, 70, 76, 77, 82, 82, 83, 82, 57, 52, 52,
+ 51, 53, 57, 61, 64, 69, 71, 77, 77, 82, 83, 85, 82, 60, 54, 54, 52, 55, 58, 62, 65, 71, 72, 79, 79, 85, 86, 87, 86, 61, 56, 55, 53, 56, 59, 63, 66,
+ 72, 73, 80, 81, 86, 87, 88, 86, 63, 57, 57, 55, 57, 60, 64, 67, 73, 75, 82, 82, 89, 90, 92, 90, 64, 58, 58, 55, 58, 61, 65, 68, 73, 75, 82, 83, 89,
+ 90, 92, 90, 64, 59, 58, 56, 58, 61, 65, 68, 74, 75, 83, 83, 90, 91, 94, 95, 66, 60, 59, 57, 59, 62, 66, 69, 75, 76, 84, 85, 91, 92, 94, 95, 67, 61,
+ 60, 58, 59, 63, 66, 70, 74, 77, 82, 85, 91, 93, 96, 96, 68, 62, 61, 58, 59, 64, 65, 71, 72, 78, 81, 86, 89, 94, 95, 96, 68, 62, 62, 59, 59, 65, 65,
+ 71, 71, 79, 79, 87, 87, 95, 95, 98, 32, 31, 31, 30, 31, 33, 35, 37, 41, 42, 49, 49, 48, 48, 49, 49, 50, 51, 52, 54, 54, 57, 57, 60, 61, 63, 64, 64,
+ 66, 67, 68, 68, 31, 31, 31, 32, 33, 36, 38, 40, 42, 43, 46, 46, 46, 45, 45, 46, 46, 47, 48, 50, 50, 52, 52, 54, 56, 57, 58, 59, 60, 61, 62, 62, 32,
+ 33, 33, 33, 35, 37, 39, 41, 43, 43, 47, 47, 46, 46, 45, 46, 46, 47, 48, 49, 50, 52, 52, 54, 55, 57, 58, 58, 59, 60, 61, 62, 37, 38, 38, 40, 41, 43,
+ 45, 47, 47, 47, 48, 48, 47, 46, 46, 46, 46, 47, 47, 48, 49, 50, 51, 52, 53, 55, 55, 56, 57, 58, 58, 59, 40, 41, 41, 42, 43, 44, 46, 47, 48, 48, 50,
+ 50, 49, 49, 48, 49, 49, 49, 50, 51, 51, 52, 53, 55, 56, 57, 58, 58, 59, 59, 59, 59, 48, 47, 47, 46, 46, 47, 47, 47, 49, 50, 53, 53, 53, 53, 53, 53,
+ 54, 54, 54, 55, 55, 56, 57, 58, 59, 60, 61, 61, 62, 63, 64, 65, 49, 47, 47, 45, 46, 46, 46, 46, 49, 49, 53, 53, 54, 55, 56, 57, 57, 58, 58, 59, 59,
+ 60, 61, 62, 63, 64, 65, 65, 66, 66, 65, 65, 49, 47, 47, 45, 45, 46, 45, 45, 48, 49, 53, 54, 56, 56, 58, 59, 59, 61, 61, 62, 62, 64, 64, 65, 66, 67,
+ 68, 68, 69, 70, 71, 71, 51, 49, 49, 47, 47, 47, 47, 46, 49, 50, 54, 54, 57, 58, 61, 62, 63, 64, 65, 67, 67, 69, 69, 71, 72, 73, 73, 74, 75, 74, 72,
+ 71, 52, 50, 49, 48, 48, 47, 47, 47, 50, 50, 54, 55, 57, 58, 61, 62, 64, 66, 66, 68, 68, 70, 71, 72, 73, 75, 75, 75, 76, 77, 78, 79, 57, 54, 54, 52,
+ 51, 51, 50, 50, 52, 53, 57, 57, 60, 61, 64, 65, 67, 69, 71, 73, 73, 76, 77, 79, 80, 82, 82, 83, 84, 82, 81, 79, 58, 55, 54, 52, 52, 52, 51, 50, 53,
+ 54, 57, 57, 60, 61, 64, 66, 67, 70, 71, 73, 74, 77, 77, 79, 81, 82, 83, 83, 85, 85, 86, 87, 63, 60, 59, 57, 57, 56, 55, 54, 57, 57, 60, 61, 64, 65,
+ 67, 69, 71, 73, 75, 77, 78, 82, 82, 85, 86, 89, 89, 90, 91, 91, 89, 87, 64, 61, 60, 58, 57, 57, 56, 55, 57, 58, 61, 61, 64, 65, 68, 69, 71, 74, 75,
+ 78, 78, 82, 83, 86, 87, 90, 90, 91, 92, 93, 94, 95, 67, 63, 63, 60, 60, 59, 58, 57, 59, 60, 62, 63, 65, 66, 69, 70, 73, 74, 77, 78, 81, 83, 85, 87,
+ 88, 92, 92, 94, 94, 96, 95, 95, 67, 64, 64, 61, 61, 60, 60, 58, 58, 61, 61, 64, 64, 67, 67, 70, 71, 74, 74, 78, 78, 82, 82, 86, 86, 90, 90, 95, 95,
+ 96, 96, 98, 31, 48, 52, 64, 31, 47, 49, 60, 33, 46, 48, 57, 38, 47, 47, 56, 42, 49, 50, 57, 46, 53, 54, 61, 46, 53, 57, 64, 45, 53, 61, 68, 46, 54,
+ 64, 71, 48, 54, 66, 75, 50, 55, 68, 78, 52, 57, 71, 83, 56, 59, 73, 87, 58, 61, 75, 90, 60, 62, 76, 92, 62, 64, 78, 94, 31, 31, 33, 38, 42, 46, 46,
+ 45, 46, 48, 50, 52, 56, 58, 60, 62, 48, 47, 46, 47, 49, 53, 53, 53, 54, 54, 55, 57, 59, 61, 62, 64, 52, 49, 48, 47, 50, 54, 57, 61, 64, 66, 68, 71,
+ 73, 75, 76, 78, 64, 60, 57, 56, 57, 61, 64, 68, 71, 75, 78, 83, 87, 90, 92, 94, 32, 32, 40, 49, 51, 57, 63, 67, 31, 33, 41, 47, 49, 54, 60, 63, 31,
+ 33, 41, 47, 49, 54, 59, 63, 30, 33, 42, 45, 47, 52, 57, 60, 31, 35, 43, 46, 47, 51, 57, 60, 33, 37, 44, 46, 47, 51, 56, 59, 35, 39, 46, 46, 47, 50,
+ 55, 58, 37, 41, 47, 46, 46, 50, 54, 57, 41, 43, 48, 49, 49, 52, 57, 59, 42, 43, 48, 49, 50, 53, 57, 60, 49, 47, 50, 53, 54, 57, 60, 62, 49, 47, 50,
+ 53, 54, 57, 61, 63, 48, 46, 49, 54, 57, 60, 64, 65, 48, 46, 49, 55, 58, 61, 65, 66, 49, 45, 48, 56, 61, 64, 67, 69, 49, 46, 49, 57, 62, 65, 69, 70,
+ 50, 46, 49, 57, 63, 67, 71, 73, 51, 47, 49, 58, 64, 69, 73, 74, 52, 48, 50, 58, 65, 71, 75, 77, 54, 49, 51, 59, 67, 73, 77, 78, 54, 50, 51, 59, 67,
+ 73, 78, 81, 57, 52, 52, 60, 69, 76, 82, 83, 57, 52, 53, 61, 69, 77, 82, 85, 60, 54, 55, 62, 71, 79, 85, 87, 61, 55, 56, 63, 72, 80, 86, 88, 63, 57,
+ 57, 64, 73, 82, 89, 92, 64, 58, 58, 65, 73, 82, 89, 92, 64, 58, 58, 65, 74, 83, 90, 94, 66, 59, 59, 66, 75, 84, 91, 94, 67, 60, 59, 66, 74, 82, 91,
+ 96, 68, 61, 59, 65, 72, 81, 89, 95, 68, 62, 59, 65, 71, 79, 87, 95, 32, 31, 31, 30, 31, 33, 35, 37, 41, 42, 49, 49, 48, 48, 49, 49, 50, 51, 52, 54,
+ 54, 57, 57, 60, 61, 63, 64, 64, 66, 67, 68, 68, 32, 33, 33, 33, 35, 37, 39, 41, 43, 43, 47, 47, 46, 46, 45, 46, 46, 47, 48, 49, 50, 52, 52, 54, 55,
+ 57, 58, 58, 59, 60, 61, 62, 40, 41, 41, 42, 43, 44, 46, 47, 48, 48, 50, 50, 49, 49, 48, 49, 49, 49, 50, 51, 51, 52, 53, 55, 56, 57, 58, 58, 59, 59,
+ 59, 59, 49, 47, 47, 45, 46, 46, 46, 46, 49, 49, 53, 53, 54, 55, 56, 57, 57, 58, 58, 59, 59, 60, 61, 62, 63, 64, 65, 65, 66, 66, 65, 65, 51, 49, 49,
+ 47, 47, 47, 47, 46, 49, 50, 54, 54, 57, 58, 61, 62, 63, 64, 65, 67, 67, 69, 69, 71, 72, 73, 73, 74, 75, 74, 72, 71, 57, 54, 54, 52, 51, 51, 50, 50,
+ 52, 53, 57, 57, 60, 61, 64, 65, 67, 69, 71, 73, 73, 76, 77, 79, 80, 82, 82, 83, 84, 82, 81, 79, 63, 60, 59, 57, 57, 56, 55, 54, 57, 57, 60, 61, 64,
+ 65, 67, 69, 71, 73, 75, 77, 78, 82, 82, 85, 86, 89, 89, 90, 91, 91, 89, 87, 67, 63, 63, 60, 60, 59, 58, 57, 59, 60, 62, 63, 65, 66, 69, 70, 73, 74,
+ 77, 78, 81, 83, 85, 87, 88, 92, 92, 94, 94, 96, 95, 95,
+ ],
+ ],
+ [
+ [
+ 32, 34, 49, 72, 34, 48, 60, 79, 49, 60, 82, 104, 72, 79, 104, 134, 32, 32, 34, 38, 46, 56, 68, 78, 32, 33, 35, 39, 45, 54, 64, 74, 34, 35, 39, 45,
+ 51, 58, 68, 76, 38, 39, 45, 54, 61, 69, 78, 86, 46, 45, 51, 61, 71, 80, 90, 99, 56, 54, 58, 69, 80, 92, 103, 113, 68, 64, 68, 78, 90, 103, 117,
+ 128, 78, 74, 76, 86, 99, 113, 128, 140, 32, 31, 31, 31, 32, 34, 36, 39, 44, 48, 54, 59, 65, 71, 80, 83, 31, 32, 32, 32, 32, 34, 35, 38, 42, 46, 51,
+ 56, 62, 68, 76, 78, 31, 32, 32, 32, 32, 33, 34, 37, 41, 44, 49, 54, 59, 65, 72, 75, 31, 32, 32, 33, 34, 35, 36, 39, 42, 45, 50, 54, 59, 64, 71, 74,
+ 32, 32, 32, 34, 35, 37, 38, 40, 42, 46, 49, 53, 58, 63, 69, 72, 34, 34, 33, 35, 37, 39, 42, 45, 47, 51, 54, 58, 63, 68, 74, 76, 36, 35, 34, 36, 38,
+ 42, 48, 50, 54, 57, 60, 64, 68, 73, 79, 81, 39, 38, 37, 39, 40, 45, 50, 54, 58, 61, 65, 69, 73, 78, 84, 86, 44, 42, 41, 42, 42, 47, 54, 58, 63, 67,
+ 71, 75, 79, 84, 90, 92, 48, 46, 44, 45, 46, 51, 57, 61, 67, 71, 76, 80, 85, 90, 96, 99, 54, 51, 49, 50, 49, 54, 60, 65, 71, 76, 82, 87, 92, 97,
+ 104, 106, 59, 56, 54, 54, 53, 58, 64, 69, 75, 80, 87, 92, 98, 103, 110, 113, 65, 62, 59, 59, 58, 63, 68, 73, 79, 85, 92, 98, 105, 111, 118, 121,
+ 71, 68, 65, 64, 63, 68, 73, 78, 84, 90, 97, 103, 111, 117, 125, 128, 80, 76, 72, 71, 69, 74, 79, 84, 90, 96, 104, 110, 118, 125, 134, 137, 83, 78,
+ 75, 74, 72, 76, 81, 86, 92, 99, 106, 113, 121, 128, 137, 140, 32, 31, 31, 31, 31, 31, 31, 32, 32, 34, 34, 36, 36, 39, 39, 44, 44, 48, 48, 54, 54,
+ 59, 59, 65, 65, 71, 71, 80, 80, 83, 83, 87, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 35, 35, 38, 38, 42, 42, 46, 46, 51, 51, 56, 56, 62, 62, 68,
+ 68, 76, 76, 78, 78, 83, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 35, 35, 38, 38, 42, 42, 46, 46, 51, 51, 56, 56, 62, 62, 68, 68, 76, 76, 78, 78,
+ 83, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 37, 37, 41, 41, 44, 44, 49, 49, 54, 54, 59, 59, 65, 65, 72, 72, 75, 75, 79, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 33, 34, 34, 37, 37, 41, 41, 44, 44, 49, 49, 54, 54, 59, 59, 65, 65, 72, 72, 75, 75, 79, 31, 32, 32, 32, 32, 33, 33, 34, 34,
+ 35, 35, 36, 36, 39, 39, 42, 42, 45, 45, 50, 50, 54, 54, 59, 59, 64, 64, 71, 71, 74, 74, 77, 31, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 39,
+ 39, 42, 42, 45, 45, 50, 50, 54, 54, 59, 59, 64, 64, 71, 71, 74, 74, 77, 32, 32, 32, 32, 32, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 42, 42, 46, 46,
+ 49, 49, 53, 53, 58, 58, 63, 63, 69, 69, 72, 72, 75, 32, 32, 32, 32, 32, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 42, 42, 46, 46, 49, 49, 53, 53, 58,
+ 58, 63, 63, 69, 69, 72, 72, 75, 34, 34, 34, 33, 33, 35, 35, 37, 37, 39, 39, 42, 42, 45, 45, 47, 47, 51, 51, 54, 54, 58, 58, 63, 63, 68, 68, 74, 74,
+ 76, 76, 80, 34, 34, 34, 33, 33, 35, 35, 37, 37, 39, 39, 42, 42, 45, 45, 47, 47, 51, 51, 54, 54, 58, 58, 63, 63, 68, 68, 74, 74, 76, 76, 80, 36, 35,
+ 35, 34, 34, 36, 36, 38, 38, 42, 42, 48, 48, 50, 50, 54, 54, 57, 57, 60, 60, 64, 64, 68, 68, 73, 73, 79, 79, 81, 81, 84, 36, 35, 35, 34, 34, 36, 36,
+ 38, 38, 42, 42, 48, 48, 50, 50, 54, 54, 57, 57, 60, 60, 64, 64, 68, 68, 73, 73, 79, 79, 81, 81, 84, 39, 38, 38, 37, 37, 39, 39, 40, 40, 45, 45, 50,
+ 50, 54, 54, 58, 58, 61, 61, 65, 65, 69, 69, 73, 73, 78, 78, 84, 84, 86, 86, 90, 39, 38, 38, 37, 37, 39, 39, 40, 40, 45, 45, 50, 50, 54, 54, 58, 58,
+ 61, 61, 65, 65, 69, 69, 73, 73, 78, 78, 84, 84, 86, 86, 90, 44, 42, 42, 41, 41, 42, 42, 42, 42, 47, 47, 54, 54, 58, 58, 63, 63, 67, 67, 71, 71, 75,
+ 75, 79, 79, 84, 84, 90, 90, 92, 92, 96, 44, 42, 42, 41, 41, 42, 42, 42, 42, 47, 47, 54, 54, 58, 58, 63, 63, 67, 67, 71, 71, 75, 75, 79, 79, 84, 84,
+ 90, 90, 92, 92, 96, 48, 46, 46, 44, 44, 45, 45, 46, 46, 51, 51, 57, 57, 61, 61, 67, 67, 71, 71, 76, 76, 80, 80, 85, 85, 90, 90, 96, 96, 99, 99,
+ 102, 48, 46, 46, 44, 44, 45, 45, 46, 46, 51, 51, 57, 57, 61, 61, 67, 67, 71, 71, 76, 76, 80, 80, 85, 85, 90, 90, 96, 96, 99, 99, 102, 54, 51, 51,
+ 49, 49, 50, 50, 49, 49, 54, 54, 60, 60, 65, 65, 71, 71, 76, 76, 82, 82, 87, 87, 92, 92, 97, 97, 104, 104, 106, 106, 109, 54, 51, 51, 49, 49, 50,
+ 50, 49, 49, 54, 54, 60, 60, 65, 65, 71, 71, 76, 76, 82, 82, 87, 87, 92, 92, 97, 97, 104, 104, 106, 106, 109, 59, 56, 56, 54, 54, 54, 54, 53, 53,
+ 58, 58, 64, 64, 69, 69, 75, 75, 80, 80, 87, 87, 92, 92, 98, 98, 103, 103, 110, 110, 113, 113, 116, 59, 56, 56, 54, 54, 54, 54, 53, 53, 58, 58, 64,
+ 64, 69, 69, 75, 75, 80, 80, 87, 87, 92, 92, 98, 98, 103, 103, 110, 110, 113, 113, 116, 65, 62, 62, 59, 59, 59, 59, 58, 58, 63, 63, 68, 68, 73, 73,
+ 79, 79, 85, 85, 92, 92, 98, 98, 105, 105, 111, 111, 118, 118, 121, 121, 124, 65, 62, 62, 59, 59, 59, 59, 58, 58, 63, 63, 68, 68, 73, 73, 79, 79,
+ 85, 85, 92, 92, 98, 98, 105, 105, 111, 111, 118, 118, 121, 121, 124, 71, 68, 68, 65, 65, 64, 64, 63, 63, 68, 68, 73, 73, 78, 78, 84, 84, 90, 90,
+ 97, 97, 103, 103, 111, 111, 117, 117, 125, 125, 128, 128, 132, 71, 68, 68, 65, 65, 64, 64, 63, 63, 68, 68, 73, 73, 78, 78, 84, 84, 90, 90, 97, 97,
+ 103, 103, 111, 111, 117, 117, 125, 125, 128, 128, 132, 80, 76, 76, 72, 72, 71, 71, 69, 69, 74, 74, 79, 79, 84, 84, 90, 90, 96, 96, 104, 104, 110,
+ 110, 118, 118, 125, 125, 134, 134, 137, 137, 141, 80, 76, 76, 72, 72, 71, 71, 69, 69, 74, 74, 79, 79, 84, 84, 90, 90, 96, 96, 104, 104, 110, 110,
+ 118, 118, 125, 125, 134, 134, 137, 137, 141, 83, 78, 78, 75, 75, 74, 74, 72, 72, 76, 76, 81, 81, 86, 86, 92, 92, 99, 99, 106, 106, 113, 113, 121,
+ 121, 128, 128, 137, 137, 140, 140, 144, 83, 78, 78, 75, 75, 74, 74, 72, 72, 76, 76, 81, 81, 86, 86, 92, 92, 99, 99, 106, 106, 113, 113, 121, 121,
+ 128, 128, 137, 137, 140, 140, 144, 87, 83, 83, 79, 79, 77, 77, 75, 75, 80, 80, 84, 84, 90, 90, 96, 96, 102, 102, 109, 109, 116, 116, 124, 124, 132,
+ 132, 141, 141, 144, 144, 149, 32, 35, 51, 75, 32, 36, 50, 71, 34, 42, 54, 73, 37, 50, 65, 84, 45, 56, 76, 96, 54, 63, 87, 110, 65, 73, 97, 125, 75,
+ 81, 106, 136, 32, 32, 34, 37, 45, 54, 65, 75, 35, 36, 42, 50, 56, 63, 73, 81, 51, 50, 54, 65, 76, 87, 97, 106, 75, 71, 73, 84, 96, 110, 125, 136,
+ 32, 31, 32, 36, 44, 53, 65, 79, 31, 32, 32, 35, 42, 51, 62, 75, 31, 32, 33, 34, 41, 49, 59, 72, 32, 32, 34, 36, 42, 50, 59, 71, 32, 33, 35, 38, 42,
+ 49, 58, 69, 34, 34, 37, 42, 48, 54, 63, 73, 36, 34, 38, 48, 54, 60, 68, 78, 39, 37, 40, 50, 58, 65, 73, 84, 44, 41, 43, 53, 63, 71, 79, 90, 48, 45,
+ 46, 56, 67, 76, 85, 96, 53, 49, 50, 60, 71, 82, 92, 103, 58, 54, 54, 63, 75, 87, 98, 110, 65, 60, 58, 68, 79, 92, 105, 118, 71, 65, 63, 73, 84, 97,
+ 111, 125, 79, 72, 70, 79, 90, 104, 118, 133, 82, 75, 72, 81, 92, 106, 121, 136, 32, 31, 31, 32, 32, 34, 36, 39, 44, 48, 53, 58, 65, 71, 79, 82, 31,
+ 32, 32, 32, 33, 34, 34, 37, 41, 45, 49, 54, 60, 65, 72, 75, 32, 32, 33, 34, 35, 37, 38, 40, 43, 46, 50, 54, 58, 63, 70, 72, 36, 35, 34, 36, 38, 42,
+ 48, 50, 53, 56, 60, 63, 68, 73, 79, 81, 44, 42, 41, 42, 42, 48, 54, 58, 63, 67, 71, 75, 79, 84, 90, 92, 53, 51, 49, 50, 49, 54, 60, 65, 71, 76, 82,
+ 87, 92, 97, 104, 106, 65, 62, 59, 59, 58, 63, 68, 73, 79, 85, 92, 98, 105, 111, 118, 121, 79, 75, 72, 71, 69, 73, 78, 84, 90, 96, 103, 110, 118,
+ 125, 133, 136, 32, 31, 31, 32, 32, 36, 36, 44, 44, 53, 53, 65, 65, 79, 79, 87, 31, 32, 32, 32, 32, 35, 35, 42, 42, 51, 51, 62, 62, 75, 75, 82, 31,
+ 32, 32, 32, 32, 35, 35, 42, 42, 51, 51, 62, 62, 75, 75, 82, 31, 32, 32, 33, 33, 34, 34, 41, 41, 49, 49, 59, 59, 72, 72, 78, 31, 32, 32, 33, 33, 34,
+ 34, 41, 41, 49, 49, 59, 59, 72, 72, 78, 32, 32, 32, 34, 34, 36, 36, 42, 42, 50, 50, 59, 59, 71, 71, 77, 32, 32, 32, 34, 34, 36, 36, 42, 42, 50, 50,
+ 59, 59, 71, 71, 77, 32, 33, 33, 35, 35, 38, 38, 42, 42, 49, 49, 58, 58, 69, 69, 75, 32, 33, 33, 35, 35, 38, 38, 42, 42, 49, 49, 58, 58, 69, 69, 75,
+ 34, 34, 34, 37, 37, 42, 42, 48, 48, 54, 54, 63, 63, 73, 73, 79, 34, 34, 34, 37, 37, 42, 42, 48, 48, 54, 54, 63, 63, 73, 73, 79, 36, 34, 34, 38, 38,
+ 48, 48, 54, 54, 60, 60, 68, 68, 78, 78, 84, 36, 34, 34, 38, 38, 48, 48, 54, 54, 60, 60, 68, 68, 78, 78, 84, 39, 37, 37, 40, 40, 50, 50, 58, 58, 65,
+ 65, 73, 73, 84, 84, 89, 39, 37, 37, 40, 40, 50, 50, 58, 58, 65, 65, 73, 73, 84, 84, 89, 44, 41, 41, 43, 43, 53, 53, 63, 63, 71, 71, 79, 79, 90, 90,
+ 95, 44, 41, 41, 43, 43, 53, 53, 63, 63, 71, 71, 79, 79, 90, 90, 95, 48, 45, 45, 46, 46, 56, 56, 67, 67, 76, 76, 85, 85, 96, 96, 102, 48, 45, 45,
+ 46, 46, 56, 56, 67, 67, 76, 76, 85, 85, 96, 96, 102, 53, 49, 49, 50, 50, 60, 60, 71, 71, 82, 82, 92, 92, 103, 103, 109, 53, 49, 49, 50, 50, 60, 60,
+ 71, 71, 82, 82, 92, 92, 103, 103, 109, 58, 54, 54, 54, 54, 63, 63, 75, 75, 87, 87, 98, 98, 110, 110, 116, 58, 54, 54, 54, 54, 63, 63, 75, 75, 87,
+ 87, 98, 98, 110, 110, 116, 65, 60, 60, 58, 58, 68, 68, 79, 79, 92, 92, 105, 105, 118, 118, 124, 65, 60, 60, 58, 58, 68, 68, 79, 79, 92, 92, 105,
+ 105, 118, 118, 124, 71, 65, 65, 63, 63, 73, 73, 84, 84, 97, 97, 111, 111, 125, 125, 132, 71, 65, 65, 63, 63, 73, 73, 84, 84, 97, 97, 111, 111, 125,
+ 125, 132, 79, 72, 72, 70, 70, 79, 79, 90, 90, 104, 104, 118, 118, 133, 133, 141, 79, 72, 72, 70, 70, 79, 79, 90, 90, 104, 104, 118, 118, 133, 133,
+ 141, 82, 75, 75, 72, 72, 81, 81, 92, 92, 106, 106, 121, 121, 136, 136, 144, 82, 75, 75, 72, 72, 81, 81, 92, 92, 106, 106, 121, 121, 136, 136, 144,
+ 87, 79, 79, 76, 76, 84, 84, 96, 96, 109, 109, 124, 124, 141, 141, 149, 32, 31, 31, 31, 31, 32, 32, 32, 32, 34, 34, 36, 36, 39, 39, 44, 44, 48, 48,
+ 53, 53, 58, 58, 65, 65, 71, 71, 79, 79, 82, 82, 87, 31, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 37, 37, 41, 41, 45, 45, 49, 49, 54, 54, 60,
+ 60, 65, 65, 72, 72, 75, 75, 79, 31, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 37, 37, 41, 41, 45, 45, 49, 49, 54, 54, 60, 60, 65, 65, 72, 72,
+ 75, 75, 79, 32, 32, 32, 33, 33, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 43, 43, 46, 46, 50, 50, 54, 54, 58, 58, 63, 63, 70, 70, 72, 72, 76, 32, 32,
+ 32, 33, 33, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 43, 43, 46, 46, 50, 50, 54, 54, 58, 58, 63, 63, 70, 70, 72, 72, 76, 36, 35, 35, 34, 34, 36, 36,
+ 38, 38, 42, 42, 48, 48, 50, 50, 53, 53, 56, 56, 60, 60, 63, 63, 68, 68, 73, 73, 79, 79, 81, 81, 84, 36, 35, 35, 34, 34, 36, 36, 38, 38, 42, 42, 48,
+ 48, 50, 50, 53, 53, 56, 56, 60, 60, 63, 63, 68, 68, 73, 73, 79, 79, 81, 81, 84, 44, 42, 42, 41, 41, 42, 42, 42, 42, 48, 48, 54, 54, 58, 58, 63, 63,
+ 67, 67, 71, 71, 75, 75, 79, 79, 84, 84, 90, 90, 92, 92, 96, 44, 42, 42, 41, 41, 42, 42, 42, 42, 48, 48, 54, 54, 58, 58, 63, 63, 67, 67, 71, 71, 75,
+ 75, 79, 79, 84, 84, 90, 90, 92, 92, 96, 53, 51, 51, 49, 49, 50, 50, 49, 49, 54, 54, 60, 60, 65, 65, 71, 71, 76, 76, 82, 82, 87, 87, 92, 92, 97, 97,
+ 104, 104, 106, 106, 109, 53, 51, 51, 49, 49, 50, 50, 49, 49, 54, 54, 60, 60, 65, 65, 71, 71, 76, 76, 82, 82, 87, 87, 92, 92, 97, 97, 104, 104, 106,
+ 106, 109, 65, 62, 62, 59, 59, 59, 59, 58, 58, 63, 63, 68, 68, 73, 73, 79, 79, 85, 85, 92, 92, 98, 98, 105, 105, 111, 111, 118, 118, 121, 121, 124,
+ 65, 62, 62, 59, 59, 59, 59, 58, 58, 63, 63, 68, 68, 73, 73, 79, 79, 85, 85, 92, 92, 98, 98, 105, 105, 111, 111, 118, 118, 121, 121, 124, 79, 75,
+ 75, 72, 72, 71, 71, 69, 69, 73, 73, 78, 78, 84, 84, 90, 90, 96, 96, 103, 103, 110, 110, 118, 118, 125, 125, 133, 133, 136, 136, 141, 79, 75, 75,
+ 72, 72, 71, 71, 69, 69, 73, 73, 78, 78, 84, 84, 90, 90, 96, 96, 103, 103, 110, 110, 118, 118, 125, 125, 133, 133, 136, 136, 141, 87, 82, 82, 78,
+ 78, 77, 77, 75, 75, 79, 79, 84, 84, 89, 89, 95, 95, 102, 102, 109, 109, 116, 116, 124, 124, 132, 132, 141, 141, 144, 144, 149, 31, 36, 53, 79, 32,
+ 35, 51, 75, 32, 34, 49, 72, 32, 36, 50, 71, 33, 38, 49, 69, 34, 42, 54, 73, 34, 48, 60, 78, 37, 50, 65, 84, 41, 53, 71, 90, 45, 56, 76, 96, 49, 60,
+ 82, 103, 54, 63, 87, 110, 60, 68, 92, 118, 65, 73, 97, 125, 72, 79, 104, 133, 75, 81, 106, 136, 31, 32, 32, 32, 33, 34, 34, 37, 41, 45, 49, 54, 60,
+ 65, 72, 75, 36, 35, 34, 36, 38, 42, 48, 50, 53, 56, 60, 63, 68, 73, 79, 81, 53, 51, 49, 50, 49, 54, 60, 65, 71, 76, 82, 87, 92, 97, 104, 106, 79,
+ 75, 72, 71, 69, 73, 78, 84, 90, 96, 103, 110, 118, 125, 133, 136, 32, 31, 32, 36, 44, 53, 65, 79, 31, 32, 32, 35, 42, 51, 62, 75, 31, 32, 32, 35,
+ 42, 51, 62, 75, 31, 32, 33, 34, 41, 49, 59, 72, 31, 32, 33, 34, 41, 49, 59, 72, 32, 32, 34, 36, 42, 50, 59, 71, 32, 32, 34, 36, 42, 50, 59, 71, 32,
+ 33, 35, 38, 42, 49, 58, 69, 32, 33, 35, 38, 42, 49, 58, 69, 34, 34, 37, 42, 48, 54, 63, 73, 34, 34, 37, 42, 48, 54, 63, 73, 36, 34, 38, 48, 54, 60,
+ 68, 78, 36, 34, 38, 48, 54, 60, 68, 78, 39, 37, 40, 50, 58, 65, 73, 84, 39, 37, 40, 50, 58, 65, 73, 84, 44, 41, 43, 53, 63, 71, 79, 90, 44, 41, 43,
+ 53, 63, 71, 79, 90, 48, 45, 46, 56, 67, 76, 85, 96, 48, 45, 46, 56, 67, 76, 85, 96, 53, 49, 50, 60, 71, 82, 92, 103, 53, 49, 50, 60, 71, 82, 92,
+ 103, 58, 54, 54, 63, 75, 87, 98, 110, 58, 54, 54, 63, 75, 87, 98, 110, 65, 60, 58, 68, 79, 92, 105, 118, 65, 60, 58, 68, 79, 92, 105, 118, 71, 65,
+ 63, 73, 84, 97, 111, 125, 71, 65, 63, 73, 84, 97, 111, 125, 79, 72, 70, 79, 90, 104, 118, 133, 79, 72, 70, 79, 90, 104, 118, 133, 82, 75, 72, 81,
+ 92, 106, 121, 136, 82, 75, 72, 81, 92, 106, 121, 136, 87, 79, 76, 84, 96, 109, 124, 141, 32, 31, 31, 31, 31, 32, 32, 32, 32, 34, 34, 36, 36, 39,
+ 39, 44, 44, 48, 48, 53, 53, 58, 58, 65, 65, 71, 71, 79, 79, 82, 82, 87, 31, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 37, 37, 41, 41, 45, 45,
+ 49, 49, 54, 54, 60, 60, 65, 65, 72, 72, 75, 75, 79, 32, 32, 32, 33, 33, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 43, 43, 46, 46, 50, 50, 54, 54, 58,
+ 58, 63, 63, 70, 70, 72, 72, 76, 36, 35, 35, 34, 34, 36, 36, 38, 38, 42, 42, 48, 48, 50, 50, 53, 53, 56, 56, 60, 60, 63, 63, 68, 68, 73, 73, 79, 79,
+ 81, 81, 84, 44, 42, 42, 41, 41, 42, 42, 42, 42, 48, 48, 54, 54, 58, 58, 63, 63, 67, 67, 71, 71, 75, 75, 79, 79, 84, 84, 90, 90, 92, 92, 96, 53, 51,
+ 51, 49, 49, 50, 50, 49, 49, 54, 54, 60, 60, 65, 65, 71, 71, 76, 76, 82, 82, 87, 87, 92, 92, 97, 97, 104, 104, 106, 106, 109, 65, 62, 62, 59, 59,
+ 59, 59, 58, 58, 63, 63, 68, 68, 73, 73, 79, 79, 85, 85, 92, 92, 98, 98, 105, 105, 111, 111, 118, 118, 121, 121, 124, 79, 75, 75, 72, 72, 71, 71,
+ 69, 69, 73, 73, 78, 78, 84, 84, 90, 90, 96, 96, 103, 103, 110, 110, 118, 118, 125, 125, 133, 133, 136, 136, 141,
+ ],
+ [
+ 32, 46, 47, 57, 46, 53, 54, 60, 47, 54, 66, 75, 57, 60, 75, 89, 31, 34, 42, 47, 48, 52, 57, 61, 34, 39, 45, 46, 46, 49, 53, 57, 42, 45, 48, 49, 50,
+ 52, 55, 58, 47, 46, 49, 54, 56, 58, 61, 64, 48, 46, 50, 56, 61, 65, 68, 71, 52, 49, 52, 58, 65, 71, 75, 79, 57, 53, 55, 61, 68, 75, 82, 86, 61, 57,
+ 58, 64, 71, 79, 86, 91, 32, 31, 30, 33, 36, 41, 49, 48, 49, 50, 52, 54, 57, 60, 63, 65, 31, 31, 31, 34, 38, 42, 47, 47, 47, 48, 50, 52, 54, 57, 60,
+ 61, 30, 31, 32, 35, 40, 42, 46, 45, 45, 46, 47, 49, 52, 54, 57, 58, 33, 34, 35, 39, 43, 45, 47, 46, 45, 46, 47, 49, 51, 53, 56, 57, 36, 38, 40, 43,
+ 47, 47, 48, 46, 45, 46, 47, 48, 50, 52, 54, 55, 41, 42, 42, 45, 47, 48, 50, 49, 49, 50, 50, 52, 53, 55, 57, 58, 49, 47, 46, 47, 48, 50, 53, 53, 53,
+ 54, 54, 55, 56, 58, 60, 61, 48, 47, 45, 46, 46, 49, 53, 54, 55, 56, 57, 58, 60, 61, 63, 64, 49, 47, 45, 45, 45, 49, 53, 55, 58, 60, 61, 62, 63, 65,
+ 67, 68, 50, 48, 46, 46, 46, 50, 54, 56, 60, 61, 63, 65, 67, 68, 71, 71, 52, 50, 47, 47, 47, 50, 54, 57, 61, 63, 66, 68, 70, 72, 75, 75, 54, 52, 49,
+ 49, 48, 52, 55, 58, 62, 65, 68, 71, 73, 75, 78, 79, 57, 54, 52, 51, 50, 53, 56, 60, 63, 67, 70, 73, 76, 79, 82, 83, 60, 57, 54, 53, 52, 55, 58, 61,
+ 65, 68, 72, 75, 79, 82, 85, 86, 63, 60, 57, 56, 54, 57, 60, 63, 67, 71, 75, 78, 82, 85, 89, 90, 65, 61, 58, 57, 55, 58, 61, 64, 68, 71, 75, 79, 83,
+ 86, 90, 91, 32, 31, 31, 30, 30, 33, 33, 36, 36, 41, 41, 49, 49, 48, 48, 49, 49, 50, 50, 52, 52, 54, 54, 57, 57, 60, 60, 63, 63, 65, 65, 67, 31, 31,
+ 31, 31, 31, 34, 34, 38, 38, 42, 42, 47, 47, 47, 47, 47, 47, 48, 48, 50, 50, 52, 52, 54, 54, 57, 57, 60, 60, 61, 61, 63, 31, 31, 31, 31, 31, 34, 34,
+ 38, 38, 42, 42, 47, 47, 47, 47, 47, 47, 48, 48, 50, 50, 52, 52, 54, 54, 57, 57, 60, 60, 61, 61, 63, 30, 31, 31, 32, 32, 35, 35, 40, 40, 42, 42, 46,
+ 46, 45, 45, 45, 45, 46, 46, 47, 47, 49, 49, 52, 52, 54, 54, 57, 57, 58, 58, 60, 30, 31, 31, 32, 32, 35, 35, 40, 40, 42, 42, 46, 46, 45, 45, 45, 45,
+ 46, 46, 47, 47, 49, 49, 52, 52, 54, 54, 57, 57, 58, 58, 60, 33, 34, 34, 35, 35, 39, 39, 43, 43, 45, 45, 47, 47, 46, 46, 45, 45, 46, 46, 47, 47, 49,
+ 49, 51, 51, 53, 53, 56, 56, 57, 57, 59, 33, 34, 34, 35, 35, 39, 39, 43, 43, 45, 45, 47, 47, 46, 46, 45, 45, 46, 46, 47, 47, 49, 49, 51, 51, 53, 53,
+ 56, 56, 57, 57, 59, 36, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47, 48, 48, 46, 46, 45, 45, 46, 46, 47, 47, 48, 48, 50, 50, 52, 52, 54, 54, 55, 55, 57,
+ 36, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47, 48, 48, 46, 46, 45, 45, 46, 46, 47, 47, 48, 48, 50, 50, 52, 52, 54, 54, 55, 55, 57, 41, 42, 42, 42, 42,
+ 45, 45, 47, 47, 48, 48, 50, 50, 49, 49, 49, 49, 50, 50, 50, 50, 52, 52, 53, 53, 55, 55, 57, 57, 58, 58, 60, 41, 42, 42, 42, 42, 45, 45, 47, 47, 48,
+ 48, 50, 50, 49, 49, 49, 49, 50, 50, 50, 50, 52, 52, 53, 53, 55, 55, 57, 57, 58, 58, 60, 49, 47, 47, 46, 46, 47, 47, 48, 48, 50, 50, 53, 53, 53, 53,
+ 53, 53, 54, 54, 54, 54, 55, 55, 56, 56, 58, 58, 60, 60, 61, 61, 62, 49, 47, 47, 46, 46, 47, 47, 48, 48, 50, 50, 53, 53, 53, 53, 53, 53, 54, 54, 54,
+ 54, 55, 55, 56, 56, 58, 58, 60, 60, 61, 61, 62, 48, 47, 47, 45, 45, 46, 46, 46, 46, 49, 49, 53, 53, 54, 54, 55, 55, 56, 56, 57, 57, 58, 58, 60, 60,
+ 61, 61, 63, 63, 64, 64, 66, 48, 47, 47, 45, 45, 46, 46, 46, 46, 49, 49, 53, 53, 54, 54, 55, 55, 56, 56, 57, 57, 58, 58, 60, 60, 61, 61, 63, 63, 64,
+ 64, 66, 49, 47, 47, 45, 45, 45, 45, 45, 45, 49, 49, 53, 53, 55, 55, 58, 58, 60, 60, 61, 61, 62, 62, 63, 63, 65, 65, 67, 67, 68, 68, 69, 49, 47, 47,
+ 45, 45, 45, 45, 45, 45, 49, 49, 53, 53, 55, 55, 58, 58, 60, 60, 61, 61, 62, 62, 63, 63, 65, 65, 67, 67, 68, 68, 69, 50, 48, 48, 46, 46, 46, 46, 46,
+ 46, 50, 50, 54, 54, 56, 56, 60, 60, 61, 61, 63, 63, 65, 65, 67, 67, 68, 68, 71, 71, 71, 71, 72, 50, 48, 48, 46, 46, 46, 46, 46, 46, 50, 50, 54, 54,
+ 56, 56, 60, 60, 61, 61, 63, 63, 65, 65, 67, 67, 68, 68, 71, 71, 71, 71, 72, 52, 50, 50, 47, 47, 47, 47, 47, 47, 50, 50, 54, 54, 57, 57, 61, 61, 63,
+ 63, 66, 66, 68, 68, 70, 70, 72, 72, 75, 75, 75, 75, 76, 52, 50, 50, 47, 47, 47, 47, 47, 47, 50, 50, 54, 54, 57, 57, 61, 61, 63, 63, 66, 66, 68, 68,
+ 70, 70, 72, 72, 75, 75, 75, 75, 76, 54, 52, 52, 49, 49, 49, 49, 48, 48, 52, 52, 55, 55, 58, 58, 62, 62, 65, 65, 68, 68, 71, 71, 73, 73, 75, 75, 78,
+ 78, 79, 79, 80, 54, 52, 52, 49, 49, 49, 49, 48, 48, 52, 52, 55, 55, 58, 58, 62, 62, 65, 65, 68, 68, 71, 71, 73, 73, 75, 75, 78, 78, 79, 79, 80, 57,
+ 54, 54, 52, 52, 51, 51, 50, 50, 53, 53, 56, 56, 60, 60, 63, 63, 67, 67, 70, 70, 73, 73, 76, 76, 79, 79, 82, 82, 83, 83, 84, 57, 54, 54, 52, 52, 51,
+ 51, 50, 50, 53, 53, 56, 56, 60, 60, 63, 63, 67, 67, 70, 70, 73, 73, 76, 76, 79, 79, 82, 82, 83, 83, 84, 60, 57, 57, 54, 54, 53, 53, 52, 52, 55, 55,
+ 58, 58, 61, 61, 65, 65, 68, 68, 72, 72, 75, 75, 79, 79, 82, 82, 85, 85, 86, 86, 88, 60, 57, 57, 54, 54, 53, 53, 52, 52, 55, 55, 58, 58, 61, 61, 65,
+ 65, 68, 68, 72, 72, 75, 75, 79, 79, 82, 82, 85, 85, 86, 86, 88, 63, 60, 60, 57, 57, 56, 56, 54, 54, 57, 57, 60, 60, 63, 63, 67, 67, 71, 71, 75, 75,
+ 78, 78, 82, 82, 85, 85, 89, 89, 90, 90, 92, 63, 60, 60, 57, 57, 56, 56, 54, 54, 57, 57, 60, 60, 63, 63, 67, 67, 71, 71, 75, 75, 78, 78, 82, 82, 85,
+ 85, 89, 89, 90, 90, 92, 65, 61, 61, 58, 58, 57, 57, 55, 55, 58, 58, 61, 61, 64, 64, 68, 68, 71, 71, 75, 75, 79, 79, 83, 83, 86, 86, 90, 90, 91, 91,
+ 93, 65, 61, 61, 58, 58, 57, 57, 55, 55, 58, 58, 61, 61, 64, 64, 68, 68, 71, 71, 75, 75, 79, 79, 83, 83, 86, 86, 90, 90, 91, 91, 93, 67, 63, 63, 60,
+ 60, 59, 59, 57, 57, 60, 60, 62, 62, 66, 66, 69, 69, 72, 72, 76, 76, 80, 80, 84, 84, 88, 88, 92, 92, 93, 93, 95, 31, 47, 50, 60, 36, 47, 47, 56, 43,
+ 50, 50, 57, 46, 53, 57, 64, 46, 54, 64, 71, 50, 55, 68, 78, 54, 58, 72, 85, 59, 61, 75, 90, 31, 36, 43, 46, 46, 50, 54, 59, 47, 47, 50, 53, 54, 55,
+ 58, 61, 50, 47, 50, 57, 64, 68, 72, 75, 60, 56, 57, 64, 71, 78, 85, 90, 32, 31, 37, 48, 49, 52, 57, 63, 31, 31, 38, 47, 47, 50, 54, 60, 30, 32, 40,
+ 46, 45, 48, 52, 57, 33, 36, 43, 47, 46, 47, 51, 56, 37, 40, 47, 47, 45, 47, 50, 54, 42, 43, 47, 50, 49, 50, 53, 57, 49, 46, 48, 53, 53, 54, 57, 60,
+ 48, 46, 47, 53, 56, 57, 60, 64, 49, 45, 46, 53, 58, 61, 64, 67, 50, 46, 46, 54, 59, 64, 67, 71, 52, 48, 47, 54, 61, 66, 71, 75, 54, 50, 49, 55, 62,
+ 68, 73, 78, 57, 52, 50, 56, 64, 70, 76, 82, 60, 54, 52, 58, 65, 72, 79, 85, 63, 57, 55, 60, 67, 75, 82, 89, 64, 59, 56, 61, 68, 75, 83, 90, 32, 31,
+ 30, 33, 37, 42, 49, 48, 49, 50, 52, 54, 57, 60, 63, 64, 31, 31, 32, 36, 40, 43, 46, 46, 45, 46, 48, 50, 52, 54, 57, 59, 37, 38, 40, 43, 47, 47, 48,
+ 47, 46, 46, 47, 49, 50, 52, 55, 56, 48, 47, 46, 47, 47, 50, 53, 53, 53, 54, 54, 55, 56, 58, 60, 61, 49, 47, 45, 46, 45, 49, 53, 56, 58, 59, 61, 62,
+ 64, 65, 67, 68, 52, 50, 48, 47, 47, 50, 54, 57, 61, 64, 66, 68, 70, 72, 75, 75, 57, 54, 52, 51, 50, 53, 57, 60, 64, 67, 71, 73, 76, 79, 82, 83, 63,
+ 60, 57, 56, 54, 57, 60, 64, 67, 71, 75, 78, 82, 85, 89, 90, 32, 31, 31, 37, 37, 48, 48, 49, 49, 52, 52, 57, 57, 63, 63, 66, 31, 31, 31, 38, 38, 47,
+ 47, 47, 47, 50, 50, 54, 54, 60, 60, 63, 31, 31, 31, 38, 38, 47, 47, 47, 47, 50, 50, 54, 54, 60, 60, 63, 30, 32, 32, 40, 40, 46, 46, 45, 45, 48, 48,
+ 52, 52, 57, 57, 60, 30, 32, 32, 40, 40, 46, 46, 45, 45, 48, 48, 52, 52, 57, 57, 60, 33, 36, 36, 43, 43, 47, 47, 46, 46, 47, 47, 51, 51, 56, 56, 59,
+ 33, 36, 36, 43, 43, 47, 47, 46, 46, 47, 47, 51, 51, 56, 56, 59, 37, 40, 40, 47, 47, 47, 47, 45, 45, 47, 47, 50, 50, 54, 54, 57, 37, 40, 40, 47, 47,
+ 47, 47, 45, 45, 47, 47, 50, 50, 54, 54, 57, 42, 43, 43, 47, 47, 50, 50, 49, 49, 50, 50, 53, 53, 57, 57, 60, 42, 43, 43, 47, 47, 50, 50, 49, 49, 50,
+ 50, 53, 53, 57, 57, 60, 49, 46, 46, 48, 48, 53, 53, 53, 53, 54, 54, 57, 57, 60, 60, 62, 49, 46, 46, 48, 48, 53, 53, 53, 53, 54, 54, 57, 57, 60, 60,
+ 62, 48, 46, 46, 47, 47, 53, 53, 56, 56, 57, 57, 60, 60, 64, 64, 66, 48, 46, 46, 47, 47, 53, 53, 56, 56, 57, 57, 60, 60, 64, 64, 66, 49, 45, 45, 46,
+ 46, 53, 53, 58, 58, 61, 61, 64, 64, 67, 67, 69, 49, 45, 45, 46, 46, 53, 53, 58, 58, 61, 61, 64, 64, 67, 67, 69, 50, 46, 46, 46, 46, 54, 54, 59, 59,
+ 64, 64, 67, 67, 71, 71, 73, 50, 46, 46, 46, 46, 54, 54, 59, 59, 64, 64, 67, 67, 71, 71, 73, 52, 48, 48, 47, 47, 54, 54, 61, 61, 66, 66, 71, 71, 75,
+ 75, 77, 52, 48, 48, 47, 47, 54, 54, 61, 61, 66, 66, 71, 71, 75, 75, 77, 54, 50, 50, 49, 49, 55, 55, 62, 62, 68, 68, 73, 73, 78, 78, 80, 54, 50, 50,
+ 49, 49, 55, 55, 62, 62, 68, 68, 73, 73, 78, 78, 80, 57, 52, 52, 50, 50, 56, 56, 64, 64, 70, 70, 76, 76, 82, 82, 84, 57, 52, 52, 50, 50, 56, 56, 64,
+ 64, 70, 70, 76, 76, 82, 82, 84, 60, 54, 54, 52, 52, 58, 58, 65, 65, 72, 72, 79, 79, 85, 85, 88, 60, 54, 54, 52, 52, 58, 58, 65, 65, 72, 72, 79, 79,
+ 85, 85, 88, 63, 57, 57, 55, 55, 60, 60, 67, 67, 75, 75, 82, 82, 89, 89, 92, 63, 57, 57, 55, 55, 60, 60, 67, 67, 75, 75, 82, 82, 89, 89, 92, 64, 59,
+ 59, 56, 56, 61, 61, 68, 68, 75, 75, 83, 83, 90, 90, 93, 64, 59, 59, 56, 56, 61, 61, 68, 68, 75, 75, 83, 83, 90, 90, 93, 66, 60, 60, 57, 57, 63, 63,
+ 69, 69, 77, 77, 84, 84, 92, 92, 95, 32, 31, 31, 30, 30, 33, 33, 37, 37, 42, 42, 49, 49, 48, 48, 49, 49, 50, 50, 52, 52, 54, 54, 57, 57, 60, 60, 63,
+ 63, 64, 64, 66, 31, 31, 31, 32, 32, 36, 36, 40, 40, 43, 43, 46, 46, 46, 46, 45, 45, 46, 46, 48, 48, 50, 50, 52, 52, 54, 54, 57, 57, 59, 59, 60, 31,
+ 31, 31, 32, 32, 36, 36, 40, 40, 43, 43, 46, 46, 46, 46, 45, 45, 46, 46, 48, 48, 50, 50, 52, 52, 54, 54, 57, 57, 59, 59, 60, 37, 38, 38, 40, 40, 43,
+ 43, 47, 47, 47, 47, 48, 48, 47, 47, 46, 46, 46, 46, 47, 47, 49, 49, 50, 50, 52, 52, 55, 55, 56, 56, 57, 37, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47,
+ 48, 48, 47, 47, 46, 46, 46, 46, 47, 47, 49, 49, 50, 50, 52, 52, 55, 55, 56, 56, 57, 48, 47, 47, 46, 46, 47, 47, 47, 47, 50, 50, 53, 53, 53, 53, 53,
+ 53, 54, 54, 54, 54, 55, 55, 56, 56, 58, 58, 60, 60, 61, 61, 63, 48, 47, 47, 46, 46, 47, 47, 47, 47, 50, 50, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54,
+ 55, 55, 56, 56, 58, 58, 60, 60, 61, 61, 63, 49, 47, 47, 45, 45, 46, 46, 45, 45, 49, 49, 53, 53, 56, 56, 58, 58, 59, 59, 61, 61, 62, 62, 64, 64, 65,
+ 65, 67, 67, 68, 68, 69, 49, 47, 47, 45, 45, 46, 46, 45, 45, 49, 49, 53, 53, 56, 56, 58, 58, 59, 59, 61, 61, 62, 62, 64, 64, 65, 65, 67, 67, 68, 68,
+ 69, 52, 50, 50, 48, 48, 47, 47, 47, 47, 50, 50, 54, 54, 57, 57, 61, 61, 64, 64, 66, 66, 68, 68, 70, 70, 72, 72, 75, 75, 75, 75, 77, 52, 50, 50, 48,
+ 48, 47, 47, 47, 47, 50, 50, 54, 54, 57, 57, 61, 61, 64, 64, 66, 66, 68, 68, 70, 70, 72, 72, 75, 75, 75, 75, 77, 57, 54, 54, 52, 52, 51, 51, 50, 50,
+ 53, 53, 57, 57, 60, 60, 64, 64, 67, 67, 71, 71, 73, 73, 76, 76, 79, 79, 82, 82, 83, 83, 84, 57, 54, 54, 52, 52, 51, 51, 50, 50, 53, 53, 57, 57, 60,
+ 60, 64, 64, 67, 67, 71, 71, 73, 73, 76, 76, 79, 79, 82, 82, 83, 83, 84, 63, 60, 60, 57, 57, 56, 56, 54, 54, 57, 57, 60, 60, 64, 64, 67, 67, 71, 71,
+ 75, 75, 78, 78, 82, 82, 85, 85, 89, 89, 90, 90, 92, 63, 60, 60, 57, 57, 56, 56, 54, 54, 57, 57, 60, 60, 64, 64, 67, 67, 71, 71, 75, 75, 78, 78, 82,
+ 82, 85, 85, 89, 89, 90, 90, 92, 66, 63, 63, 60, 60, 59, 59, 57, 57, 60, 60, 62, 62, 66, 66, 69, 69, 73, 73, 77, 77, 80, 80, 84, 84, 88, 88, 92, 92,
+ 93, 93, 95, 31, 48, 52, 63, 31, 47, 50, 60, 32, 46, 48, 57, 36, 47, 47, 56, 40, 47, 47, 54, 43, 50, 50, 57, 46, 53, 54, 60, 46, 53, 57, 64, 45, 53,
+ 61, 67, 46, 54, 64, 71, 48, 54, 66, 75, 50, 55, 68, 78, 52, 56, 70, 82, 54, 58, 72, 85, 57, 60, 75, 89, 59, 61, 75, 90, 31, 31, 32, 36, 40, 43, 46,
+ 46, 45, 46, 48, 50, 52, 54, 57, 59, 48, 47, 46, 47, 47, 50, 53, 53, 53, 54, 54, 55, 56, 58, 60, 61, 52, 50, 48, 47, 47, 50, 54, 57, 61, 64, 66, 68,
+ 70, 72, 75, 75, 63, 60, 57, 56, 54, 57, 60, 64, 67, 71, 75, 78, 82, 85, 89, 90, 32, 31, 37, 48, 49, 52, 57, 63, 31, 31, 38, 47, 47, 50, 54, 60, 31,
+ 31, 38, 47, 47, 50, 54, 60, 30, 32, 40, 46, 45, 48, 52, 57, 30, 32, 40, 46, 45, 48, 52, 57, 33, 36, 43, 47, 46, 47, 51, 56, 33, 36, 43, 47, 46, 47,
+ 51, 56, 37, 40, 47, 47, 45, 47, 50, 54, 37, 40, 47, 47, 45, 47, 50, 54, 42, 43, 47, 50, 49, 50, 53, 57, 42, 43, 47, 50, 49, 50, 53, 57, 49, 46, 48,
+ 53, 53, 54, 57, 60, 49, 46, 48, 53, 53, 54, 57, 60, 48, 46, 47, 53, 56, 57, 60, 64, 48, 46, 47, 53, 56, 57, 60, 64, 49, 45, 46, 53, 58, 61, 64, 67,
+ 49, 45, 46, 53, 58, 61, 64, 67, 50, 46, 46, 54, 59, 64, 67, 71, 50, 46, 46, 54, 59, 64, 67, 71, 52, 48, 47, 54, 61, 66, 71, 75, 52, 48, 47, 54, 61,
+ 66, 71, 75, 54, 50, 49, 55, 62, 68, 73, 78, 54, 50, 49, 55, 62, 68, 73, 78, 57, 52, 50, 56, 64, 70, 76, 82, 57, 52, 50, 56, 64, 70, 76, 82, 60, 54,
+ 52, 58, 65, 72, 79, 85, 60, 54, 52, 58, 65, 72, 79, 85, 63, 57, 55, 60, 67, 75, 82, 89, 63, 57, 55, 60, 67, 75, 82, 89, 64, 59, 56, 61, 68, 75, 83,
+ 90, 64, 59, 56, 61, 68, 75, 83, 90, 66, 60, 57, 63, 69, 77, 84, 92, 32, 31, 31, 30, 30, 33, 33, 37, 37, 42, 42, 49, 49, 48, 48, 49, 49, 50, 50, 52,
+ 52, 54, 54, 57, 57, 60, 60, 63, 63, 64, 64, 66, 31, 31, 31, 32, 32, 36, 36, 40, 40, 43, 43, 46, 46, 46, 46, 45, 45, 46, 46, 48, 48, 50, 50, 52, 52,
+ 54, 54, 57, 57, 59, 59, 60, 37, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47, 48, 48, 47, 47, 46, 46, 46, 46, 47, 47, 49, 49, 50, 50, 52, 52, 55, 55, 56,
+ 56, 57, 48, 47, 47, 46, 46, 47, 47, 47, 47, 50, 50, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 56, 56, 58, 58, 60, 60, 61, 61, 63, 49, 47, 47,
+ 45, 45, 46, 46, 45, 45, 49, 49, 53, 53, 56, 56, 58, 58, 59, 59, 61, 61, 62, 62, 64, 64, 65, 65, 67, 67, 68, 68, 69, 52, 50, 50, 48, 48, 47, 47, 47,
+ 47, 50, 50, 54, 54, 57, 57, 61, 61, 64, 64, 66, 66, 68, 68, 70, 70, 72, 72, 75, 75, 75, 75, 77, 57, 54, 54, 52, 52, 51, 51, 50, 50, 53, 53, 57, 57,
+ 60, 60, 64, 64, 67, 67, 71, 71, 73, 73, 76, 76, 79, 79, 82, 82, 83, 83, 84, 63, 60, 60, 57, 57, 56, 56, 54, 54, 57, 57, 60, 60, 64, 64, 67, 67, 71,
+ 71, 75, 75, 78, 78, 82, 82, 85, 85, 89, 89, 90, 90, 92,
+ ],
+ ],
+ [
+ [
+ 32, 33, 45, 62, 33, 39, 51, 64, 45, 51, 71, 87, 62, 64, 87, 108, 31, 32, 32, 35, 42, 51, 59, 69, 32, 32, 33, 35, 41, 49, 56, 65, 32, 33, 35, 38,
+ 43, 49, 56, 64, 35, 35, 38, 48, 54, 59, 66, 73, 42, 41, 43, 54, 63, 71, 77, 85, 51, 49, 49, 59, 71, 81, 89, 97, 59, 56, 56, 66, 77, 89, 98, 108,
+ 69, 65, 64, 73, 85, 97, 108, 119, 32, 31, 31, 31, 32, 34, 35, 38, 41, 45, 48, 54, 59, 65, 71, 80, 31, 32, 32, 32, 32, 34, 35, 37, 40, 43, 46, 51,
+ 56, 62, 68, 76, 31, 32, 32, 32, 32, 33, 34, 36, 38, 41, 44, 49, 54, 59, 65, 72, 31, 32, 32, 33, 34, 35, 36, 38, 40, 42, 45, 50, 54, 59, 64, 71, 32,
+ 32, 32, 34, 35, 37, 38, 39, 41, 43, 46, 49, 53, 58, 63, 69, 34, 34, 33, 35, 37, 39, 42, 44, 46, 48, 51, 54, 58, 63, 68, 74, 35, 35, 34, 36, 38, 42,
+ 46, 48, 50, 53, 55, 59, 62, 67, 72, 78, 38, 37, 36, 38, 39, 44, 48, 51, 54, 57, 59, 63, 67, 71, 76, 82, 41, 40, 38, 40, 41, 46, 50, 54, 57, 60, 63,
+ 67, 71, 75, 80, 86, 45, 43, 41, 42, 43, 48, 53, 57, 60, 65, 68, 72, 76, 81, 85, 91, 48, 46, 44, 45, 46, 51, 55, 59, 63, 68, 71, 76, 80, 85, 90, 96,
+ 54, 51, 49, 50, 49, 54, 59, 63, 67, 72, 76, 82, 87, 92, 97, 104, 59, 56, 54, 54, 53, 58, 62, 67, 71, 76, 80, 87, 92, 98, 103, 110, 65, 62, 59, 59,
+ 58, 63, 67, 71, 75, 81, 85, 92, 98, 105, 111, 118, 71, 68, 65, 64, 63, 68, 72, 76, 80, 85, 90, 97, 103, 111, 117, 125, 80, 76, 72, 71, 69, 74, 78,
+ 82, 86, 91, 96, 104, 110, 118, 125, 134, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 34, 34, 35, 36, 38, 39, 41, 44, 45, 48, 48, 53, 54, 57, 59, 62,
+ 65, 67, 71, 72, 80, 80, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 35, 35, 37, 38, 40, 42, 43, 46, 46, 51, 52, 55, 56, 59, 62, 64, 68, 69, 76,
+ 76, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 35, 35, 37, 38, 40, 42, 43, 46, 46, 51, 51, 55, 56, 59, 62, 64, 68, 69, 76, 76, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 36, 38, 39, 41, 42, 45, 45, 49, 50, 53, 54, 57, 60, 62, 66, 66, 73, 73, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 33, 33, 33, 34, 34, 36, 37, 38, 41, 41, 44, 44, 49, 49, 52, 54, 56, 59, 61, 65, 65, 72, 72, 31, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 35, 35,
+ 37, 38, 39, 41, 42, 45, 45, 49, 49, 52, 54, 56, 59, 61, 64, 65, 72, 72, 31, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 36, 36, 38, 39, 40, 42, 42,
+ 45, 45, 49, 50, 52, 54, 56, 59, 60, 64, 65, 71, 71, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 35, 36, 37, 38, 39, 40, 42, 43, 45, 45, 49, 49, 52,
+ 54, 56, 59, 60, 64, 64, 70, 70, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 37, 37, 38, 38, 39, 40, 41, 42, 43, 46, 46, 49, 49, 52, 53, 55, 58, 59, 63,
+ 63, 69, 69, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 37, 37, 38, 38, 40, 41, 41, 43, 43, 46, 46, 49, 50, 52, 54, 56, 58, 60, 63, 64, 70, 70, 34, 34,
+ 34, 33, 33, 34, 35, 35, 37, 37, 39, 39, 42, 42, 44, 45, 46, 47, 48, 51, 51, 54, 54, 57, 58, 60, 63, 64, 68, 68, 74, 74, 34, 34, 34, 33, 33, 34, 35,
+ 35, 37, 37, 39, 39, 42, 42, 44, 45, 46, 47, 48, 51, 51, 54, 54, 57, 58, 60, 63, 64, 68, 68, 74, 74, 35, 35, 35, 34, 34, 35, 36, 36, 38, 38, 42, 42,
+ 46, 47, 48, 49, 50, 52, 53, 55, 55, 58, 59, 61, 62, 64, 67, 68, 72, 72, 78, 78, 36, 35, 35, 34, 34, 35, 36, 37, 38, 38, 42, 42, 47, 48, 50, 50, 52,
+ 54, 54, 57, 57, 59, 60, 62, 64, 66, 68, 69, 73, 73, 79, 79, 38, 37, 37, 36, 36, 37, 38, 38, 39, 40, 44, 44, 48, 50, 51, 52, 54, 56, 57, 59, 59, 62,
+ 63, 65, 67, 69, 71, 72, 76, 76, 82, 82, 39, 38, 38, 38, 37, 38, 39, 39, 40, 41, 45, 45, 49, 50, 52, 54, 55, 58, 58, 61, 61, 64, 65, 67, 69, 71, 73,
+ 74, 78, 78, 84, 84, 41, 40, 40, 39, 38, 39, 40, 40, 41, 41, 46, 46, 50, 52, 54, 55, 57, 60, 60, 63, 63, 67, 67, 70, 71, 73, 75, 77, 80, 81, 86, 86,
+ 44, 42, 42, 41, 41, 41, 42, 42, 42, 43, 47, 47, 52, 54, 56, 58, 60, 63, 64, 67, 67, 71, 71, 74, 75, 77, 79, 81, 84, 85, 90, 90, 45, 43, 43, 42, 41,
+ 42, 42, 43, 43, 43, 48, 48, 53, 54, 57, 58, 60, 64, 65, 68, 68, 72, 72, 75, 76, 78, 81, 82, 85, 86, 91, 91, 48, 46, 46, 45, 44, 45, 45, 45, 46, 46,
+ 51, 51, 55, 57, 59, 61, 63, 67, 68, 71, 71, 75, 76, 79, 80, 83, 85, 87, 90, 91, 96, 96, 48, 46, 46, 45, 44, 45, 45, 45, 46, 46, 51, 51, 55, 57, 59,
+ 61, 63, 67, 68, 71, 71, 75, 76, 79, 80, 83, 85, 87, 90, 91, 96, 96, 53, 51, 51, 49, 49, 49, 49, 49, 49, 49, 54, 54, 58, 59, 62, 64, 67, 71, 72, 75,
+ 75, 81, 81, 85, 86, 89, 91, 93, 97, 97, 103, 103, 54, 52, 51, 50, 49, 49, 50, 49, 49, 50, 54, 54, 59, 60, 63, 65, 67, 71, 72, 76, 76, 81, 82, 85,
+ 87, 89, 92, 94, 97, 98, 104, 104, 57, 55, 55, 53, 52, 52, 52, 52, 52, 52, 57, 57, 61, 62, 65, 67, 70, 74, 75, 79, 79, 85, 85, 89, 90, 93, 96, 98,
+ 102, 102, 108, 108, 59, 56, 56, 54, 54, 54, 54, 54, 53, 54, 58, 58, 62, 64, 67, 69, 71, 75, 76, 80, 80, 86, 87, 90, 92, 95, 98, 99, 103, 104, 110,
+ 110, 62, 59, 59, 57, 56, 56, 56, 56, 55, 56, 60, 60, 64, 66, 69, 71, 73, 77, 78, 83, 83, 89, 89, 93, 95, 98, 101, 103, 107, 108, 114, 114, 65, 62,
+ 62, 60, 59, 59, 59, 59, 58, 58, 63, 63, 67, 68, 71, 73, 75, 79, 81, 85, 85, 91, 92, 96, 98, 101, 105, 106, 111, 111, 118, 118, 67, 64, 64, 62, 61,
+ 61, 60, 60, 59, 60, 64, 64, 68, 69, 72, 74, 77, 81, 82, 87, 87, 93, 94, 98, 99, 103, 106, 108, 113, 113, 120, 120, 71, 68, 68, 66, 65, 64, 64, 64,
+ 63, 63, 68, 68, 72, 73, 76, 78, 80, 84, 85, 90, 90, 97, 97, 102, 103, 107, 111, 113, 117, 118, 125, 125, 72, 69, 69, 66, 65, 65, 65, 64, 63, 64,
+ 68, 68, 72, 73, 76, 78, 81, 85, 86, 91, 91, 97, 98, 102, 104, 108, 111, 113, 118, 119, 126, 126, 80, 76, 76, 73, 72, 72, 71, 70, 69, 70, 74, 74,
+ 78, 79, 82, 84, 86, 90, 91, 96, 96, 103, 104, 108, 110, 114, 118, 120, 125, 126, 134, 134, 80, 76, 76, 73, 72, 72, 71, 70, 69, 70, 74, 74, 78, 79,
+ 82, 84, 86, 90, 91, 96, 96, 103, 104, 108, 110, 114, 118, 120, 125, 126, 134, 134, 32, 34, 43, 62, 32, 34, 42, 59, 33, 37, 44, 58, 35, 43, 54, 68,
+ 41, 48, 64, 79, 49, 54, 71, 91, 57, 60, 78, 101, 66, 68, 86, 111, 32, 32, 33, 35, 41, 49, 57, 66, 34, 34, 37, 43, 48, 54, 60, 68, 43, 42, 44, 54,
+ 64, 71, 78, 86, 62, 59, 58, 68, 79, 91, 101, 111, 32, 31, 32, 36, 44, 53, 62, 73, 31, 32, 32, 35, 42, 51, 59, 69, 31, 32, 33, 34, 41, 49, 57, 66,
+ 32, 32, 34, 36, 42, 50, 57, 65, 32, 33, 35, 38, 42, 49, 56, 64, 34, 34, 37, 42, 48, 54, 61, 69, 35, 34, 38, 47, 52, 59, 65, 73, 38, 36, 40, 49, 56,
+ 63, 69, 77, 41, 39, 41, 51, 60, 67, 74, 81, 44, 42, 43, 54, 64, 72, 79, 86, 48, 45, 46, 56, 67, 76, 83, 91, 53, 49, 50, 60, 71, 82, 90, 99, 58, 54,
+ 54, 63, 75, 87, 95, 105, 65, 60, 58, 68, 79, 92, 102, 112, 71, 65, 63, 73, 84, 97, 108, 119, 79, 72, 70, 79, 90, 104, 115, 127, 32, 31, 31, 32, 32,
+ 34, 35, 38, 41, 44, 48, 53, 58, 65, 71, 79, 31, 32, 32, 32, 33, 34, 34, 36, 39, 42, 45, 49, 54, 60, 65, 72, 32, 32, 33, 34, 35, 37, 38, 40, 41, 43,
+ 46, 50, 54, 58, 63, 70, 36, 35, 34, 36, 38, 42, 47, 49, 51, 54, 56, 60, 63, 68, 73, 79, 44, 42, 41, 42, 42, 48, 52, 56, 60, 64, 67, 71, 75, 79, 84,
+ 90, 53, 51, 49, 50, 49, 54, 59, 63, 67, 72, 76, 82, 87, 92, 97, 104, 62, 59, 57, 57, 56, 61, 65, 69, 74, 79, 83, 90, 95, 102, 108, 115, 73, 69, 66,
+ 65, 64, 69, 73, 77, 81, 86, 91, 99, 105, 112, 119, 127, 32, 31, 31, 32, 32, 34, 36, 38, 44, 44, 53, 53, 62, 65, 73, 79, 31, 32, 32, 32, 32, 34, 35,
+ 37, 42, 43, 51, 51, 60, 62, 70, 75, 31, 32, 32, 32, 32, 34, 35, 37, 42, 43, 51, 51, 59, 62, 69, 75, 31, 32, 32, 32, 32, 33, 35, 36, 41, 42, 50, 50,
+ 58, 60, 67, 73, 31, 32, 32, 32, 33, 33, 34, 36, 41, 41, 49, 49, 57, 59, 66, 72, 31, 32, 32, 33, 33, 34, 35, 37, 41, 42, 49, 49, 57, 59, 66, 71, 32,
+ 32, 32, 33, 34, 35, 36, 38, 42, 43, 50, 50, 57, 59, 65, 71, 32, 32, 32, 34, 34, 35, 37, 38, 42, 43, 49, 49, 56, 59, 65, 70, 32, 32, 33, 34, 35, 37,
+ 38, 39, 42, 43, 49, 49, 56, 58, 64, 69, 32, 33, 33, 34, 35, 37, 39, 40, 43, 44, 50, 50, 56, 58, 64, 69, 34, 34, 34, 36, 37, 39, 42, 44, 48, 48, 54,
+ 54, 61, 63, 69, 73, 34, 34, 34, 36, 37, 39, 42, 44, 48, 48, 54, 54, 61, 63, 69, 73, 35, 34, 34, 37, 38, 42, 47, 48, 52, 53, 59, 59, 65, 67, 73, 77,
+ 36, 35, 34, 37, 38, 43, 48, 49, 54, 54, 60, 60, 66, 68, 74, 78, 38, 36, 36, 38, 40, 44, 49, 51, 56, 57, 63, 63, 69, 71, 77, 81, 39, 38, 37, 40, 40,
+ 45, 50, 52, 58, 58, 65, 65, 71, 73, 79, 84, 41, 39, 39, 41, 41, 46, 51, 54, 60, 60, 67, 67, 74, 76, 81, 86, 44, 41, 41, 42, 43, 48, 53, 56, 63, 64,
+ 71, 71, 78, 79, 85, 90, 44, 42, 42, 43, 43, 48, 54, 56, 64, 64, 72, 72, 79, 81, 86, 91, 48, 45, 45, 46, 46, 51, 56, 59, 67, 67, 76, 76, 83, 85, 91,
+ 96, 48, 45, 45, 46, 46, 51, 56, 59, 67, 67, 76, 76, 83, 85, 91, 96, 53, 49, 49, 49, 49, 54, 59, 62, 71, 71, 81, 81, 89, 91, 98, 103, 53, 50, 49,
+ 50, 50, 54, 60, 63, 71, 72, 82, 82, 90, 92, 99, 103, 57, 53, 52, 52, 52, 57, 62, 65, 74, 75, 85, 85, 94, 96, 103, 108, 58, 54, 54, 54, 54, 58, 63,
+ 67, 75, 76, 87, 87, 95, 98, 105, 110, 61, 57, 57, 56, 56, 60, 66, 69, 77, 78, 89, 89, 98, 101, 108, 114, 65, 60, 60, 59, 58, 63, 68, 71, 79, 80,
+ 92, 92, 102, 105, 112, 118, 67, 62, 61, 60, 60, 64, 69, 72, 81, 82, 94, 94, 103, 106, 114, 120, 71, 66, 65, 64, 63, 68, 73, 76, 84, 85, 97, 97,
+ 108, 111, 119, 125, 72, 66, 66, 64, 64, 68, 73, 76, 85, 86, 98, 98, 108, 111, 119, 125, 79, 73, 72, 71, 70, 74, 79, 82, 90, 91, 104, 104, 115, 118,
+ 127, 133, 79, 73, 72, 71, 70, 74, 79, 82, 90, 91, 104, 104, 115, 118, 127, 133, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 34, 35, 36, 38, 39, 41,
+ 44, 44, 48, 48, 53, 53, 57, 58, 61, 65, 67, 71, 72, 79, 79, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 36, 38, 39, 41, 42, 45, 45, 49,
+ 50, 53, 54, 57, 60, 62, 66, 66, 73, 73, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 36, 37, 39, 41, 42, 45, 45, 49, 49, 52, 54, 57, 60,
+ 61, 65, 66, 72, 72, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 36, 36, 37, 37, 38, 40, 41, 42, 43, 46, 46, 49, 50, 52, 54, 56, 59, 60, 64, 64, 71, 71,
+ 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 41, 43, 43, 46, 46, 49, 50, 52, 54, 56, 58, 60, 63, 64, 70, 70, 34, 34, 34, 33, 33,
+ 34, 35, 35, 37, 37, 39, 39, 42, 43, 44, 45, 46, 48, 48, 51, 51, 54, 54, 57, 58, 60, 63, 64, 68, 68, 74, 74, 36, 35, 35, 35, 34, 35, 36, 37, 38, 39,
+ 42, 42, 47, 48, 49, 50, 51, 53, 54, 56, 56, 59, 60, 62, 63, 66, 68, 69, 73, 73, 79, 79, 38, 37, 37, 36, 36, 37, 38, 38, 39, 40, 44, 44, 48, 49, 51,
+ 52, 54, 56, 56, 59, 59, 62, 63, 65, 67, 69, 71, 72, 76, 76, 82, 82, 44, 42, 42, 41, 41, 41, 42, 42, 42, 43, 48, 48, 52, 54, 56, 58, 60, 63, 64, 67,
+ 67, 71, 71, 74, 75, 77, 79, 81, 84, 85, 90, 90, 44, 43, 43, 42, 41, 42, 43, 43, 43, 44, 48, 48, 53, 54, 57, 58, 60, 64, 64, 67, 67, 71, 72, 75, 76,
+ 78, 80, 82, 85, 86, 91, 91, 53, 51, 51, 50, 49, 49, 50, 49, 49, 50, 54, 54, 59, 60, 63, 65, 67, 71, 72, 76, 76, 81, 82, 85, 87, 89, 92, 94, 97, 98,
+ 104, 104, 53, 51, 51, 50, 49, 49, 50, 49, 49, 50, 54, 54, 59, 60, 63, 65, 67, 71, 72, 76, 76, 81, 82, 85, 87, 89, 92, 94, 97, 98, 104, 104, 62, 60,
+ 59, 58, 57, 57, 57, 56, 56, 56, 61, 61, 65, 66, 69, 71, 74, 78, 79, 83, 83, 89, 90, 94, 95, 98, 102, 103, 108, 108, 115, 115, 65, 62, 62, 60, 59,
+ 59, 59, 59, 58, 58, 63, 63, 67, 68, 71, 73, 76, 79, 81, 85, 85, 91, 92, 96, 98, 101, 105, 106, 111, 111, 118, 118, 73, 70, 69, 67, 66, 66, 65, 65,
+ 64, 64, 69, 69, 73, 74, 77, 79, 81, 85, 86, 91, 91, 98, 99, 103, 105, 108, 112, 114, 119, 119, 127, 127, 79, 75, 75, 73, 72, 71, 71, 70, 69, 69,
+ 73, 73, 77, 78, 81, 84, 86, 90, 91, 96, 96, 103, 103, 108, 110, 114, 118, 120, 125, 125, 133, 133, 31, 34, 44, 65, 32, 34, 43, 62, 32, 33, 41, 59,
+ 32, 35, 43, 59, 32, 37, 43, 58, 34, 39, 48, 63, 34, 42, 53, 67, 36, 44, 57, 71, 39, 46, 60, 76, 42, 48, 64, 81, 45, 51, 67, 85, 50, 54, 72, 92, 54,
+ 58, 76, 98, 60, 63, 80, 105, 66, 68, 85, 111, 73, 74, 91, 118, 31, 32, 32, 32, 32, 34, 34, 36, 39, 42, 45, 50, 54, 60, 66, 73, 34, 34, 33, 35, 37,
+ 39, 42, 44, 46, 48, 51, 54, 58, 63, 68, 74, 44, 43, 41, 43, 43, 48, 53, 57, 60, 64, 67, 72, 76, 80, 85, 91, 65, 62, 59, 59, 58, 63, 67, 71, 76, 81,
+ 85, 92, 98, 105, 111, 118, 32, 31, 32, 36, 44, 53, 62, 73, 31, 32, 32, 35, 42, 51, 60, 70, 31, 32, 32, 35, 42, 51, 59, 69, 31, 32, 32, 35, 41, 50,
+ 58, 67, 31, 32, 33, 34, 41, 49, 57, 66, 31, 32, 33, 35, 41, 49, 57, 66, 32, 32, 34, 36, 42, 50, 57, 65, 32, 32, 34, 37, 42, 49, 56, 65, 32, 33, 35,
+ 38, 42, 49, 56, 64, 32, 33, 35, 39, 43, 50, 56, 64, 34, 34, 37, 42, 48, 54, 61, 69, 34, 34, 37, 42, 48, 54, 61, 69, 35, 34, 38, 47, 52, 59, 65, 73,
+ 36, 34, 38, 48, 54, 60, 66, 74, 38, 36, 40, 49, 56, 63, 69, 77, 39, 37, 40, 50, 58, 65, 71, 79, 41, 39, 41, 51, 60, 67, 74, 81, 44, 41, 43, 53, 63,
+ 71, 78, 85, 44, 42, 43, 54, 64, 72, 79, 86, 48, 45, 46, 56, 67, 76, 83, 91, 48, 45, 46, 56, 67, 76, 83, 91, 53, 49, 49, 59, 71, 81, 89, 98, 53, 49,
+ 50, 60, 71, 82, 90, 99, 57, 52, 52, 62, 74, 85, 94, 103, 58, 54, 54, 63, 75, 87, 95, 105, 61, 57, 56, 66, 77, 89, 98, 108, 65, 60, 58, 68, 79, 92,
+ 102, 112, 67, 61, 60, 69, 81, 94, 103, 114, 71, 65, 63, 73, 84, 97, 108, 119, 72, 66, 64, 73, 85, 98, 108, 119, 79, 72, 70, 79, 90, 104, 115, 127,
+ 79, 72, 70, 79, 90, 104, 115, 127, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 34, 35, 36, 38, 39, 41, 44, 44, 48, 48, 53, 53, 57, 58, 61, 65, 67,
+ 71, 72, 79, 79, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 36, 37, 39, 41, 42, 45, 45, 49, 49, 52, 54, 57, 60, 61, 65, 66, 72, 72, 32,
+ 32, 32, 32, 33, 33, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 41, 43, 43, 46, 46, 49, 50, 52, 54, 56, 58, 60, 63, 64, 70, 70, 36, 35, 35, 35, 34, 35,
+ 36, 37, 38, 39, 42, 42, 47, 48, 49, 50, 51, 53, 54, 56, 56, 59, 60, 62, 63, 66, 68, 69, 73, 73, 79, 79, 44, 42, 42, 41, 41, 41, 42, 42, 42, 43, 48,
+ 48, 52, 54, 56, 58, 60, 63, 64, 67, 67, 71, 71, 74, 75, 77, 79, 81, 84, 85, 90, 90, 53, 51, 51, 50, 49, 49, 50, 49, 49, 50, 54, 54, 59, 60, 63, 65,
+ 67, 71, 72, 76, 76, 81, 82, 85, 87, 89, 92, 94, 97, 98, 104, 104, 62, 60, 59, 58, 57, 57, 57, 56, 56, 56, 61, 61, 65, 66, 69, 71, 74, 78, 79, 83,
+ 83, 89, 90, 94, 95, 98, 102, 103, 108, 108, 115, 115, 73, 70, 69, 67, 66, 66, 65, 65, 64, 64, 69, 69, 73, 74, 77, 79, 81, 85, 86, 91, 91, 98, 99,
+ 103, 105, 108, 112, 114, 119, 119, 127, 127,
+ ],
+ [
+ 31, 42, 47, 53, 42, 48, 50, 54, 47, 50, 61, 67, 53, 54, 67, 78, 31, 32, 38, 48, 47, 50, 53, 57, 32, 35, 42, 47, 45, 47, 50, 54, 38, 42, 47, 48, 45,
+ 47, 49, 52, 48, 47, 48, 53, 53, 54, 56, 58, 47, 45, 45, 53, 58, 61, 63, 65, 50, 47, 47, 54, 61, 66, 69, 72, 53, 50, 49, 56, 63, 69, 73, 77, 57, 54,
+ 52, 58, 65, 72, 77, 82, 32, 31, 30, 33, 36, 41, 47, 49, 49, 49, 50, 52, 54, 57, 60, 63, 31, 31, 31, 34, 38, 42, 46, 47, 47, 47, 48, 50, 52, 54, 57,
+ 60, 30, 31, 32, 35, 40, 42, 45, 46, 45, 45, 46, 47, 49, 52, 54, 57, 33, 34, 35, 39, 43, 45, 47, 46, 46, 45, 46, 47, 49, 51, 53, 56, 36, 38, 40, 43,
+ 47, 47, 47, 47, 46, 45, 46, 47, 48, 50, 52, 54, 41, 42, 42, 45, 47, 48, 50, 50, 49, 49, 50, 50, 52, 53, 55, 57, 47, 46, 45, 47, 47, 50, 52, 52, 52,
+ 52, 53, 53, 55, 56, 58, 60, 49, 47, 46, 46, 47, 50, 52, 53, 54, 55, 55, 56, 57, 58, 60, 62, 49, 47, 45, 46, 46, 49, 52, 54, 55, 57, 58, 59, 60, 61,
+ 63, 65, 49, 47, 45, 45, 45, 49, 52, 55, 57, 59, 60, 61, 63, 64, 66, 68, 50, 48, 46, 46, 46, 50, 53, 55, 58, 60, 61, 63, 65, 67, 68, 71, 52, 50, 47,
+ 47, 47, 50, 53, 56, 59, 61, 63, 66, 68, 70, 72, 75, 54, 52, 49, 49, 48, 52, 55, 57, 60, 63, 65, 68, 71, 73, 75, 78, 57, 54, 52, 51, 50, 53, 56, 58,
+ 61, 64, 67, 70, 73, 76, 79, 82, 60, 57, 54, 53, 52, 55, 58, 60, 63, 66, 68, 72, 75, 79, 82, 85, 63, 60, 57, 56, 54, 57, 60, 62, 65, 68, 71, 75, 78,
+ 82, 85, 89, 32, 31, 31, 30, 30, 32, 33, 34, 36, 37, 41, 41, 47, 49, 49, 48, 49, 49, 49, 50, 50, 52, 52, 54, 54, 56, 57, 58, 60, 60, 63, 63, 31, 31,
+ 31, 31, 31, 32, 34, 35, 38, 38, 42, 42, 46, 48, 47, 47, 47, 47, 47, 48, 48, 50, 50, 51, 52, 53, 54, 55, 57, 57, 60, 60, 31, 31, 31, 31, 31, 33, 34,
+ 35, 38, 39, 42, 42, 46, 47, 47, 47, 47, 47, 47, 48, 48, 49, 50, 51, 52, 53, 54, 55, 57, 57, 60, 60, 30, 31, 31, 31, 31, 33, 35, 36, 39, 40, 42, 42,
+ 46, 47, 46, 46, 46, 45, 46, 47, 47, 48, 48, 50, 50, 51, 52, 53, 55, 55, 58, 58, 30, 31, 31, 31, 32, 33, 35, 36, 40, 40, 42, 42, 45, 46, 46, 45, 45,
+ 45, 45, 46, 46, 47, 47, 49, 49, 51, 52, 52, 54, 54, 57, 57, 32, 32, 33, 33, 33, 35, 37, 38, 41, 42, 43, 43, 46, 47, 46, 46, 45, 45, 45, 46, 46, 47,
+ 47, 49, 49, 50, 51, 52, 54, 54, 57, 57, 33, 34, 34, 35, 35, 37, 39, 40, 43, 43, 45, 45, 47, 47, 46, 46, 46, 45, 45, 46, 46, 47, 47, 49, 49, 50, 51,
+ 52, 53, 54, 56, 56, 34, 35, 35, 36, 36, 38, 40, 41, 44, 44, 45, 45, 47, 47, 47, 46, 46, 45, 45, 46, 46, 47, 47, 48, 49, 50, 51, 51, 53, 53, 55, 55,
+ 36, 38, 38, 39, 40, 41, 43, 44, 47, 47, 47, 47, 47, 48, 47, 46, 46, 45, 45, 46, 46, 46, 47, 48, 48, 49, 50, 50, 52, 52, 54, 54, 37, 38, 39, 40, 40,
+ 42, 43, 44, 47, 47, 47, 47, 48, 48, 47, 47, 46, 45, 46, 46, 46, 47, 47, 48, 48, 49, 50, 51, 52, 52, 55, 55, 41, 42, 42, 42, 42, 43, 45, 45, 47, 47,
+ 48, 48, 50, 50, 50, 49, 49, 49, 49, 50, 50, 50, 50, 51, 52, 52, 53, 54, 55, 55, 57, 57, 41, 42, 42, 42, 42, 43, 45, 45, 47, 47, 48, 48, 50, 50, 50,
+ 49, 49, 49, 49, 50, 50, 50, 50, 51, 52, 52, 53, 54, 55, 55, 57, 57, 47, 46, 46, 46, 45, 46, 47, 47, 47, 48, 50, 50, 52, 52, 52, 52, 52, 52, 52, 53,
+ 53, 53, 53, 54, 55, 55, 56, 56, 58, 58, 60, 60, 49, 48, 47, 47, 46, 47, 47, 47, 48, 48, 50, 50, 52, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55,
+ 56, 56, 57, 58, 58, 60, 60, 49, 47, 47, 46, 46, 46, 46, 47, 47, 47, 50, 50, 52, 53, 53, 54, 54, 55, 55, 55, 55, 56, 56, 57, 57, 58, 58, 59, 60, 60,
+ 62, 62, 48, 47, 47, 46, 45, 46, 46, 46, 46, 47, 49, 49, 52, 53, 54, 54, 55, 55, 56, 56, 56, 57, 57, 58, 58, 59, 60, 60, 61, 62, 63, 63, 49, 47, 47,
+ 46, 45, 45, 46, 46, 46, 46, 49, 49, 52, 53, 54, 55, 55, 57, 57, 58, 58, 59, 59, 60, 60, 61, 61, 62, 63, 63, 65, 65, 49, 47, 47, 45, 45, 45, 45, 45,
+ 45, 45, 49, 49, 52, 53, 55, 55, 57, 58, 59, 60, 60, 61, 61, 62, 62, 63, 63, 64, 65, 65, 67, 67, 49, 47, 47, 46, 45, 45, 45, 45, 45, 46, 49, 49, 52,
+ 53, 55, 56, 57, 59, 59, 60, 60, 61, 61, 62, 63, 63, 64, 65, 66, 66, 68, 68, 50, 48, 48, 47, 46, 46, 46, 46, 46, 46, 50, 50, 53, 54, 55, 56, 58, 60,
+ 60, 61, 61, 63, 63, 65, 65, 66, 67, 67, 68, 69, 71, 71, 50, 48, 48, 47, 46, 46, 46, 46, 46, 46, 50, 50, 53, 54, 55, 56, 58, 60, 60, 61, 61, 63, 63,
+ 65, 65, 66, 67, 67, 68, 69, 71, 71, 52, 50, 49, 48, 47, 47, 47, 47, 46, 47, 50, 50, 53, 54, 56, 57, 59, 61, 61, 63, 63, 66, 66, 67, 68, 69, 70, 71,
+ 72, 72, 74, 74, 52, 50, 50, 48, 47, 47, 47, 47, 47, 47, 50, 50, 53, 54, 56, 57, 59, 61, 61, 63, 63, 66, 66, 68, 68, 69, 70, 71, 72, 73, 75, 75, 54,
+ 51, 51, 50, 49, 49, 49, 48, 48, 48, 51, 51, 54, 55, 57, 58, 60, 62, 62, 65, 65, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 77, 54, 52, 52, 50, 49, 49,
+ 49, 49, 48, 48, 52, 52, 55, 55, 57, 58, 60, 62, 63, 65, 65, 68, 68, 70, 71, 72, 73, 74, 75, 76, 78, 78, 56, 53, 53, 51, 51, 50, 50, 50, 49, 49, 52,
+ 52, 55, 56, 58, 59, 61, 63, 63, 66, 66, 69, 69, 71, 72, 73, 75, 75, 77, 77, 80, 80, 57, 54, 54, 52, 52, 51, 51, 51, 50, 50, 53, 53, 56, 56, 58, 60,
+ 61, 63, 64, 67, 67, 70, 70, 72, 73, 75, 76, 77, 79, 79, 82, 82, 58, 55, 55, 53, 52, 52, 52, 51, 50, 51, 54, 54, 56, 57, 59, 60, 62, 64, 65, 67, 67,
+ 71, 71, 73, 74, 75, 77, 78, 80, 80, 83, 83, 60, 57, 57, 55, 54, 54, 53, 53, 52, 52, 55, 55, 58, 58, 60, 61, 63, 65, 66, 68, 68, 72, 72, 74, 75, 77,
+ 79, 80, 82, 82, 85, 85, 60, 57, 57, 55, 54, 54, 54, 53, 52, 52, 55, 55, 58, 58, 60, 62, 63, 65, 66, 69, 69, 72, 73, 75, 76, 77, 79, 80, 82, 82, 85,
+ 85, 63, 60, 60, 58, 57, 57, 56, 55, 54, 55, 57, 57, 60, 60, 62, 63, 65, 67, 68, 71, 71, 74, 75, 77, 78, 80, 82, 83, 85, 85, 89, 89, 63, 60, 60, 58,
+ 57, 57, 56, 55, 54, 55, 57, 57, 60, 60, 62, 63, 65, 67, 68, 71, 71, 74, 75, 77, 78, 80, 82, 83, 85, 85, 89, 89, 31, 42, 47, 54, 33, 44, 45, 51, 40,
+ 47, 46, 50, 47, 50, 54, 57, 45, 49, 59, 64, 48, 50, 61, 70, 51, 52, 63, 75, 55, 55, 66, 79, 31, 33, 40, 47, 45, 48, 51, 55, 42, 44, 47, 50, 49, 50,
+ 52, 55, 47, 45, 46, 54, 59, 61, 63, 66, 54, 51, 50, 57, 64, 70, 75, 79, 32, 31, 37, 48, 49, 52, 56, 61, 31, 31, 38, 47, 47, 50, 53, 57, 30, 32, 40,
+ 46, 45, 48, 51, 55, 33, 36, 43, 47, 46, 47, 50, 54, 37, 40, 47, 47, 45, 47, 49, 52, 42, 43, 47, 50, 49, 50, 53, 56, 47, 46, 48, 52, 53, 53, 55, 58,
+ 48, 46, 47, 53, 55, 56, 58, 61, 48, 45, 46, 53, 57, 59, 61, 63, 49, 45, 46, 53, 58, 62, 64, 66, 50, 46, 46, 54, 59, 64, 66, 69, 52, 48, 47, 54, 61,
+ 66, 70, 73, 54, 50, 49, 55, 62, 68, 72, 76, 57, 52, 50, 56, 64, 70, 75, 79, 60, 54, 52, 58, 65, 72, 77, 82, 63, 57, 55, 60, 67, 75, 80, 86, 32, 31,
+ 30, 33, 37, 42, 47, 48, 48, 49, 50, 52, 54, 57, 60, 63, 31, 31, 32, 36, 40, 43, 46, 46, 45, 45, 46, 48, 50, 52, 54, 57, 37, 38, 40, 43, 47, 47, 48,
+ 47, 46, 46, 46, 47, 49, 50, 52, 55, 48, 47, 46, 47, 47, 50, 52, 53, 53, 53, 54, 54, 55, 56, 58, 60, 49, 47, 45, 46, 45, 49, 53, 55, 57, 58, 59, 61,
+ 62, 64, 65, 67, 52, 50, 48, 47, 47, 50, 53, 56, 59, 62, 64, 66, 68, 70, 72, 75, 56, 53, 51, 50, 49, 53, 55, 58, 61, 64, 66, 70, 72, 75, 77, 80, 61,
+ 57, 55, 54, 52, 56, 58, 61, 63, 66, 69, 73, 76, 79, 82, 86, 32, 31, 31, 35, 37, 42, 48, 48, 49, 49, 52, 52, 56, 57, 61, 63, 31, 31, 31, 36, 38, 42,
+ 47, 47, 47, 47, 50, 50, 54, 54, 58, 60, 31, 31, 31, 36, 38, 42, 47, 47, 47, 47, 50, 50, 53, 54, 57, 60, 30, 32, 32, 37, 39, 42, 46, 46, 46, 46, 48,
+ 48, 52, 52, 56, 58, 30, 32, 32, 37, 40, 42, 46, 46, 45, 45, 48, 48, 51, 52, 55, 57, 32, 33, 34, 39, 41, 44, 46, 46, 45, 45, 48, 48, 51, 51, 54, 57,
+ 33, 35, 36, 40, 43, 45, 47, 46, 46, 46, 47, 47, 50, 51, 54, 56, 34, 37, 37, 42, 44, 45, 47, 47, 45, 46, 47, 47, 50, 51, 53, 55, 37, 40, 40, 45, 47,
+ 47, 47, 47, 45, 46, 47, 47, 49, 50, 52, 54, 37, 40, 40, 45, 47, 47, 48, 47, 46, 46, 47, 47, 49, 50, 53, 55, 42, 43, 43, 46, 47, 48, 50, 50, 49, 49,
+ 50, 50, 53, 53, 56, 57, 42, 43, 43, 46, 47, 48, 50, 50, 49, 49, 50, 50, 53, 53, 56, 57, 47, 46, 46, 47, 48, 50, 52, 52, 53, 53, 53, 53, 55, 56, 58,
+ 60, 49, 47, 46, 47, 48, 50, 53, 53, 53, 54, 54, 54, 56, 57, 59, 60, 48, 46, 46, 47, 47, 50, 53, 53, 55, 55, 56, 56, 58, 58, 61, 62, 48, 46, 46, 46,
+ 47, 50, 53, 54, 56, 56, 57, 57, 59, 60, 62, 64, 48, 46, 45, 46, 46, 49, 53, 54, 57, 57, 59, 59, 61, 61, 63, 65, 49, 45, 45, 45, 46, 49, 53, 55, 58,
+ 59, 61, 61, 63, 64, 66, 67, 49, 46, 45, 46, 46, 49, 53, 55, 58, 59, 62, 62, 64, 64, 66, 68, 50, 47, 46, 46, 46, 50, 54, 55, 59, 60, 64, 64, 66, 67,
+ 69, 71, 50, 47, 46, 46, 46, 50, 54, 55, 59, 60, 64, 64, 66, 67, 69, 71, 52, 48, 48, 47, 47, 50, 54, 56, 61, 61, 66, 66, 69, 70, 72, 74, 52, 48, 48,
+ 47, 47, 50, 54, 56, 61, 61, 66, 66, 70, 71, 73, 75, 53, 50, 49, 48, 48, 51, 55, 57, 62, 62, 68, 68, 71, 72, 75, 77, 54, 50, 50, 49, 49, 52, 55, 57,
+ 62, 63, 68, 68, 72, 73, 76, 78, 55, 51, 51, 50, 49, 52, 56, 58, 63, 63, 69, 69, 74, 75, 78, 80, 57, 52, 52, 51, 50, 53, 56, 58, 64, 64, 70, 70, 75,
+ 76, 79, 82, 58, 53, 53, 51, 51, 54, 57, 59, 64, 65, 71, 71, 76, 77, 80, 83, 60, 55, 54, 53, 52, 55, 58, 60, 65, 66, 72, 72, 77, 79, 82, 85, 60, 55,
+ 55, 53, 53, 55, 59, 60, 65, 66, 73, 73, 78, 79, 83, 85, 63, 58, 57, 56, 55, 58, 60, 62, 67, 68, 75, 75, 80, 82, 86, 89, 63, 58, 57, 56, 55, 58, 60,
+ 62, 67, 68, 75, 75, 80, 82, 86, 89, 32, 31, 31, 30, 30, 32, 33, 34, 37, 37, 42, 42, 47, 49, 48, 48, 48, 49, 49, 50, 50, 52, 52, 53, 54, 55, 57, 58,
+ 60, 60, 63, 63, 31, 31, 31, 32, 32, 33, 35, 37, 40, 40, 43, 43, 46, 47, 46, 46, 46, 45, 46, 47, 47, 48, 48, 50, 50, 51, 52, 53, 55, 55, 58, 58, 31,
+ 31, 31, 32, 32, 34, 36, 37, 40, 40, 43, 43, 46, 46, 46, 46, 45, 45, 45, 46, 46, 48, 48, 49, 50, 51, 52, 53, 54, 55, 57, 57, 35, 36, 36, 37, 37, 39,
+ 40, 42, 45, 45, 46, 46, 47, 47, 47, 46, 46, 45, 46, 46, 46, 47, 47, 48, 49, 50, 51, 51, 53, 53, 56, 56, 37, 38, 38, 39, 40, 41, 43, 44, 47, 47, 47,
+ 47, 48, 48, 47, 47, 46, 46, 46, 46, 46, 47, 47, 48, 49, 49, 50, 51, 52, 53, 55, 55, 42, 42, 42, 42, 42, 44, 45, 45, 47, 47, 48, 48, 50, 50, 50, 50,
+ 49, 49, 49, 50, 50, 50, 50, 51, 52, 52, 53, 54, 55, 55, 58, 58, 48, 47, 47, 46, 46, 46, 47, 47, 47, 48, 50, 50, 52, 53, 53, 53, 53, 53, 53, 54, 54,
+ 54, 54, 55, 55, 56, 56, 57, 58, 59, 60, 60, 48, 47, 47, 46, 46, 46, 46, 47, 47, 47, 50, 50, 52, 53, 53, 54, 54, 55, 55, 55, 55, 56, 56, 57, 57, 58,
+ 58, 59, 60, 60, 62, 62, 49, 47, 47, 46, 45, 45, 46, 45, 45, 46, 49, 49, 53, 53, 55, 56, 57, 58, 58, 59, 59, 61, 61, 62, 62, 63, 64, 64, 65, 65, 67,
+ 67, 49, 47, 47, 46, 45, 45, 46, 46, 46, 46, 49, 49, 53, 54, 55, 56, 57, 59, 59, 60, 60, 61, 61, 62, 63, 63, 64, 65, 66, 66, 68, 68, 52, 50, 50, 48,
+ 48, 48, 47, 47, 47, 47, 50, 50, 53, 54, 56, 57, 59, 61, 62, 64, 64, 66, 66, 68, 68, 69, 70, 71, 72, 73, 75, 75, 52, 50, 50, 48, 48, 48, 47, 47, 47,
+ 47, 50, 50, 53, 54, 56, 57, 59, 61, 62, 64, 64, 66, 66, 68, 68, 69, 70, 71, 72, 73, 75, 75, 56, 54, 53, 52, 51, 51, 50, 50, 49, 49, 53, 53, 55, 56,
+ 58, 59, 61, 63, 64, 66, 66, 69, 70, 71, 72, 74, 75, 76, 77, 78, 80, 80, 57, 54, 54, 52, 52, 51, 51, 51, 50, 50, 53, 53, 56, 57, 58, 60, 61, 64, 64,
+ 67, 67, 70, 71, 72, 73, 75, 76, 77, 79, 79, 82, 82, 61, 58, 57, 56, 55, 54, 54, 53, 52, 53, 56, 56, 58, 59, 61, 62, 63, 66, 66, 69, 69, 72, 73, 75,
+ 76, 78, 79, 80, 82, 83, 86, 86, 63, 60, 60, 58, 57, 57, 56, 55, 54, 55, 57, 57, 60, 60, 62, 64, 65, 67, 68, 71, 71, 74, 75, 77, 78, 80, 82, 83, 85,
+ 85, 89, 89, 31, 42, 49, 57, 31, 42, 47, 54, 32, 42, 45, 52, 35, 45, 46, 51, 40, 47, 46, 50, 43, 48, 49, 53, 46, 50, 53, 56, 46, 50, 55, 58, 46, 49,
+ 57, 61, 46, 49, 59, 64, 47, 50, 60, 67, 48, 50, 61, 71, 50, 52, 63, 73, 52, 53, 64, 76, 55, 55, 66, 79, 58, 58, 68, 82, 31, 31, 32, 35, 40, 43, 46,
+ 46, 46, 46, 47, 48, 50, 52, 55, 58, 42, 42, 42, 45, 47, 48, 50, 50, 49, 49, 50, 50, 52, 53, 55, 58, 49, 47, 45, 46, 46, 49, 53, 55, 57, 59, 60, 61,
+ 63, 64, 66, 68, 57, 54, 52, 51, 50, 53, 56, 58, 61, 64, 67, 71, 73, 76, 79, 82, 32, 31, 37, 48, 49, 52, 56, 61, 31, 31, 38, 47, 47, 50, 54, 58, 31,
+ 31, 38, 47, 47, 50, 53, 57, 30, 32, 39, 46, 46, 48, 52, 56, 30, 32, 40, 46, 45, 48, 51, 55, 32, 34, 41, 46, 45, 48, 51, 54, 33, 36, 43, 47, 46, 47,
+ 50, 54, 34, 37, 44, 47, 45, 47, 50, 53, 37, 40, 47, 47, 45, 47, 49, 52, 37, 40, 47, 48, 46, 47, 49, 53, 42, 43, 47, 50, 49, 50, 53, 56, 42, 43, 47,
+ 50, 49, 50, 53, 56, 47, 46, 48, 52, 53, 53, 55, 58, 49, 46, 48, 53, 53, 54, 56, 59, 48, 46, 47, 53, 55, 56, 58, 61, 48, 46, 47, 53, 56, 57, 59, 62,
+ 48, 45, 46, 53, 57, 59, 61, 63, 49, 45, 46, 53, 58, 61, 63, 66, 49, 45, 46, 53, 58, 62, 64, 66, 50, 46, 46, 54, 59, 64, 66, 69, 50, 46, 46, 54, 59,
+ 64, 66, 69, 52, 48, 47, 54, 61, 66, 69, 72, 52, 48, 47, 54, 61, 66, 70, 73, 53, 49, 48, 55, 62, 68, 71, 75, 54, 50, 49, 55, 62, 68, 72, 76, 55, 51,
+ 49, 56, 63, 69, 74, 78, 57, 52, 50, 56, 64, 70, 75, 79, 58, 53, 51, 57, 64, 71, 76, 80, 60, 54, 52, 58, 65, 72, 77, 82, 60, 55, 53, 59, 65, 73, 78,
+ 83, 63, 57, 55, 60, 67, 75, 80, 86, 63, 57, 55, 60, 67, 75, 80, 86, 32, 31, 31, 30, 30, 32, 33, 34, 37, 37, 42, 42, 47, 49, 48, 48, 48, 49, 49, 50,
+ 50, 52, 52, 53, 54, 55, 57, 58, 60, 60, 63, 63, 31, 31, 31, 32, 32, 34, 36, 37, 40, 40, 43, 43, 46, 46, 46, 46, 45, 45, 45, 46, 46, 48, 48, 49, 50,
+ 51, 52, 53, 54, 55, 57, 57, 37, 38, 38, 39, 40, 41, 43, 44, 47, 47, 47, 47, 48, 48, 47, 47, 46, 46, 46, 46, 46, 47, 47, 48, 49, 49, 50, 51, 52, 53,
+ 55, 55, 48, 47, 47, 46, 46, 46, 47, 47, 47, 48, 50, 50, 52, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 56, 56, 57, 58, 59, 60, 60, 49, 47, 47,
+ 46, 45, 45, 46, 45, 45, 46, 49, 49, 53, 53, 55, 56, 57, 58, 58, 59, 59, 61, 61, 62, 62, 63, 64, 64, 65, 65, 67, 67, 52, 50, 50, 48, 48, 48, 47, 47,
+ 47, 47, 50, 50, 53, 54, 56, 57, 59, 61, 62, 64, 64, 66, 66, 68, 68, 69, 70, 71, 72, 73, 75, 75, 56, 54, 53, 52, 51, 51, 50, 50, 49, 49, 53, 53, 55,
+ 56, 58, 59, 61, 63, 64, 66, 66, 69, 70, 71, 72, 74, 75, 76, 77, 78, 80, 80, 61, 58, 57, 56, 55, 54, 54, 53, 52, 53, 56, 56, 58, 59, 61, 62, 63, 66,
+ 66, 69, 69, 72, 73, 75, 76, 78, 79, 80, 82, 83, 86, 86,
+ ],
+ ],
+ [
+ [
+ 32, 33, 42, 55, 33, 38, 46, 57, 42, 46, 63, 75, 55, 57, 75, 92, 31, 32, 32, 34, 38, 46, 52, 63, 32, 32, 32, 34, 37, 44, 49, 59, 32, 32, 35, 37, 40,
+ 45, 49, 58, 34, 34, 37, 42, 47, 52, 56, 65, 38, 37, 40, 47, 54, 60, 65, 73, 46, 44, 45, 52, 60, 69, 75, 84, 52, 49, 49, 56, 65, 75, 82, 92, 63, 59,
+ 58, 65, 73, 84, 92, 105, 32, 31, 31, 31, 32, 32, 34, 36, 38, 41, 44, 48, 54, 58, 61, 65, 31, 32, 32, 32, 32, 32, 34, 35, 38, 40, 42, 46, 51, 55,
+ 58, 62, 31, 32, 32, 32, 32, 32, 33, 34, 37, 38, 41, 44, 49, 53, 56, 59, 31, 32, 32, 33, 33, 33, 35, 36, 38, 40, 42, 45, 49, 53, 56, 59, 32, 32, 32,
+ 33, 34, 34, 36, 37, 39, 40, 42, 45, 49, 53, 55, 59, 32, 32, 32, 33, 34, 35, 37, 38, 40, 41, 42, 46, 49, 52, 55, 58, 34, 34, 33, 35, 36, 37, 39, 42,
+ 44, 46, 47, 51, 54, 57, 60, 63, 36, 35, 34, 36, 37, 38, 42, 48, 50, 52, 54, 57, 60, 63, 65, 68, 38, 38, 37, 38, 39, 40, 44, 50, 52, 54, 57, 60, 64,
+ 67, 69, 72, 41, 40, 38, 40, 40, 41, 46, 52, 54, 57, 60, 63, 67, 70, 73, 75, 44, 42, 41, 42, 42, 42, 47, 54, 57, 60, 63, 67, 71, 74, 77, 79, 48, 46,
+ 44, 45, 45, 46, 51, 57, 60, 63, 67, 71, 76, 79, 82, 85, 54, 51, 49, 49, 49, 49, 54, 60, 64, 67, 71, 76, 82, 86, 89, 92, 58, 55, 53, 53, 53, 52, 57,
+ 63, 67, 70, 74, 79, 86, 90, 93, 97, 61, 58, 56, 56, 55, 55, 60, 65, 69, 73, 77, 82, 89, 93, 97, 101, 65, 62, 59, 59, 59, 58, 63, 68, 72, 75, 79,
+ 85, 92, 97, 101, 105, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 34, 36, 36, 38, 39, 41, 44, 44, 47, 48, 50, 54, 54, 58, 59, 61, 65, 65,
+ 70, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 38, 38, 40, 42, 42, 46, 47, 49, 52, 52, 56, 57, 59, 63, 63, 67, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 38, 38, 40, 42, 42, 45, 46, 48, 51, 51, 55, 56, 58, 62, 62, 67, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 34, 34, 35, 35, 37, 38, 39, 42, 42, 45, 45, 47, 50, 50, 54, 55, 57, 61, 61, 65, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34,
+ 34, 34, 37, 37, 38, 41, 41, 44, 44, 46, 49, 49, 53, 54, 56, 59, 59, 64, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 37, 37, 38,
+ 41, 41, 44, 44, 46, 49, 49, 53, 54, 56, 59, 59, 64, 31, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 35, 35, 36, 36, 38, 39, 40, 42, 42, 44, 45, 47,
+ 49, 49, 53, 54, 56, 59, 59, 63, 31, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 36, 36, 36, 38, 39, 40, 42, 42, 45, 45, 47, 50, 50, 53, 54, 56,
+ 59, 59, 63, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 36, 36, 37, 37, 39, 39, 40, 42, 42, 45, 45, 47, 49, 49, 53, 54, 55, 59, 59, 63, 32, 32,
+ 32, 32, 32, 32, 33, 34, 34, 35, 35, 36, 37, 37, 38, 38, 40, 40, 41, 42, 42, 45, 46, 47, 49, 49, 52, 53, 55, 58, 58, 62, 32, 32, 32, 32, 32, 32, 33,
+ 34, 34, 35, 35, 36, 37, 37, 38, 38, 40, 40, 41, 42, 42, 45, 46, 47, 49, 49, 52, 53, 55, 58, 58, 62, 33, 33, 33, 33, 33, 33, 34, 35, 35, 36, 36, 38,
+ 39, 40, 42, 42, 43, 44, 45, 46, 46, 49, 50, 51, 53, 53, 56, 57, 59, 62, 62, 66, 34, 34, 34, 34, 33, 33, 35, 35, 36, 37, 37, 39, 39, 41, 42, 42, 44,
+ 45, 46, 47, 47, 50, 51, 52, 54, 54, 57, 58, 60, 63, 63, 67, 34, 34, 34, 34, 34, 34, 35, 36, 36, 37, 37, 40, 41, 42, 45, 45, 46, 47, 48, 50, 50, 52,
+ 53, 54, 56, 56, 59, 60, 62, 65, 65, 69, 36, 35, 35, 35, 34, 34, 36, 36, 37, 38, 38, 42, 42, 45, 48, 48, 50, 50, 52, 54, 54, 56, 57, 58, 60, 60, 63,
+ 64, 65, 68, 68, 72, 36, 35, 35, 35, 34, 34, 36, 36, 37, 38, 38, 42, 42, 45, 48, 48, 50, 50, 52, 54, 54, 56, 57, 58, 60, 60, 63, 64, 65, 68, 68, 72,
+ 38, 38, 38, 37, 37, 37, 38, 38, 39, 40, 40, 43, 44, 46, 50, 50, 52, 53, 54, 57, 57, 59, 60, 61, 64, 64, 67, 68, 69, 72, 72, 76, 39, 38, 38, 38, 37,
+ 37, 39, 39, 39, 40, 40, 44, 45, 47, 50, 50, 53, 54, 55, 58, 58, 60, 61, 62, 65, 65, 68, 69, 70, 73, 73, 77, 41, 40, 40, 39, 38, 38, 40, 40, 40, 41,
+ 41, 45, 46, 48, 52, 52, 54, 55, 57, 60, 60, 62, 63, 65, 67, 67, 70, 71, 73, 75, 75, 79, 44, 42, 42, 42, 41, 41, 42, 42, 42, 42, 42, 46, 47, 50, 54,
+ 54, 57, 58, 60, 63, 63, 66, 67, 68, 71, 71, 74, 75, 77, 79, 79, 83, 44, 42, 42, 42, 41, 41, 42, 42, 42, 42, 42, 46, 47, 50, 54, 54, 57, 58, 60, 63,
+ 63, 66, 67, 68, 71, 71, 74, 75, 77, 79, 79, 83, 47, 46, 45, 45, 44, 44, 44, 45, 45, 45, 45, 49, 50, 52, 56, 56, 59, 60, 62, 66, 66, 69, 70, 72, 75,
+ 75, 78, 79, 81, 84, 84, 88, 48, 47, 46, 45, 44, 44, 45, 45, 45, 46, 46, 50, 51, 53, 57, 57, 60, 61, 63, 67, 67, 70, 71, 73, 76, 76, 79, 80, 82, 85,
+ 85, 89, 50, 49, 48, 47, 46, 46, 47, 47, 47, 47, 47, 51, 52, 54, 58, 58, 61, 62, 65, 68, 68, 72, 73, 75, 78, 78, 82, 83, 85, 88, 88, 92, 54, 52, 51,
+ 50, 49, 49, 49, 50, 49, 49, 49, 53, 54, 56, 60, 60, 64, 65, 67, 71, 71, 75, 76, 78, 82, 82, 86, 87, 89, 92, 92, 96, 54, 52, 51, 50, 49, 49, 49, 50,
+ 49, 49, 49, 53, 54, 56, 60, 60, 64, 65, 67, 71, 71, 75, 76, 78, 82, 82, 86, 87, 89, 92, 92, 96, 58, 56, 55, 54, 53, 53, 53, 53, 53, 52, 52, 56, 57,
+ 59, 63, 63, 67, 68, 70, 74, 74, 78, 79, 82, 86, 86, 90, 91, 93, 97, 97, 101, 59, 57, 56, 55, 54, 54, 54, 54, 54, 53, 53, 57, 58, 60, 64, 64, 68,
+ 69, 71, 75, 75, 79, 80, 83, 87, 87, 91, 92, 94, 98, 98, 102, 61, 59, 58, 57, 56, 56, 56, 56, 55, 55, 55, 59, 60, 62, 65, 65, 69, 70, 73, 77, 77,
+ 81, 82, 85, 89, 89, 93, 94, 97, 101, 101, 105, 65, 63, 62, 61, 59, 59, 59, 59, 59, 58, 58, 62, 63, 65, 68, 68, 72, 73, 75, 79, 79, 84, 85, 88, 92,
+ 92, 97, 98, 101, 105, 105, 109, 65, 63, 62, 61, 59, 59, 59, 59, 59, 58, 58, 62, 63, 65, 68, 68, 72, 73, 75, 79, 79, 84, 85, 88, 92, 92, 97, 98,
+ 101, 105, 105, 109, 70, 67, 67, 65, 64, 64, 63, 63, 63, 62, 62, 66, 67, 69, 72, 72, 76, 77, 79, 83, 83, 88, 89, 92, 96, 96, 101, 102, 105, 109,
+ 109, 114, 32, 32, 42, 56, 32, 33, 41, 53, 32, 35, 42, 52, 34, 37, 50, 59, 38, 40, 58, 68, 44, 45, 66, 78, 50, 50, 71, 86, 61, 58, 79, 97, 32, 32,
+ 32, 34, 38, 44, 50, 61, 32, 33, 35, 37, 40, 45, 50, 58, 42, 41, 42, 50, 58, 66, 71, 79, 56, 53, 52, 59, 68, 78, 86, 97, 32, 31, 32, 35, 39, 44, 53,
+ 65, 31, 32, 32, 35, 38, 42, 51, 62, 31, 32, 33, 34, 37, 41, 49, 59, 31, 32, 34, 35, 38, 42, 49, 59, 32, 32, 34, 36, 39, 42, 49, 58, 32, 33, 35, 37,
+ 40, 42, 49, 58, 34, 34, 37, 41, 44, 48, 54, 63, 36, 34, 38, 46, 50, 54, 60, 68, 38, 37, 40, 47, 52, 57, 64, 72, 41, 39, 41, 49, 54, 60, 67, 76, 44,
+ 41, 43, 51, 57, 63, 71, 79, 48, 45, 46, 54, 60, 67, 76, 85, 53, 49, 50, 57, 64, 71, 82, 92, 57, 53, 53, 60, 67, 74, 86, 97, 61, 56, 56, 63, 69, 77,
+ 89, 100, 65, 60, 58, 66, 72, 79, 92, 105, 32, 31, 31, 31, 32, 32, 34, 36, 38, 41, 44, 48, 53, 57, 61, 65, 31, 32, 32, 32, 32, 33, 34, 34, 37, 39,
+ 41, 45, 49, 53, 56, 60, 32, 32, 33, 34, 34, 35, 37, 38, 40, 41, 43, 46, 50, 53, 56, 58, 35, 35, 34, 35, 36, 37, 41, 46, 47, 49, 51, 54, 57, 60, 63,
+ 66, 39, 38, 37, 38, 39, 40, 44, 50, 52, 54, 57, 60, 64, 67, 69, 72, 44, 42, 41, 42, 42, 42, 48, 54, 57, 60, 63, 67, 71, 74, 77, 79, 53, 51, 49, 49,
+ 49, 49, 54, 60, 64, 67, 71, 76, 82, 86, 89, 92, 65, 62, 59, 59, 58, 58, 63, 68, 72, 76, 79, 85, 92, 97, 100, 105, 32, 31, 31, 31, 32, 32, 35, 36,
+ 39, 44, 44, 51, 53, 58, 65, 65, 31, 32, 32, 32, 32, 32, 35, 35, 38, 42, 42, 49, 52, 56, 63, 63, 31, 32, 32, 32, 32, 32, 35, 35, 38, 42, 42, 49, 51,
+ 55, 62, 62, 31, 32, 32, 32, 32, 32, 34, 35, 37, 41, 41, 48, 50, 54, 61, 61, 31, 32, 32, 32, 33, 33, 34, 34, 37, 41, 41, 47, 49, 53, 59, 59, 31, 32,
+ 32, 32, 33, 33, 34, 34, 37, 41, 41, 47, 49, 53, 59, 59, 31, 32, 32, 33, 34, 34, 35, 36, 38, 42, 42, 48, 49, 53, 59, 59, 32, 32, 32, 33, 34, 34, 36,
+ 36, 38, 42, 42, 48, 50, 53, 59, 59, 32, 32, 32, 33, 34, 34, 36, 37, 39, 42, 42, 48, 49, 53, 58, 58, 32, 32, 33, 34, 35, 35, 37, 38, 40, 42, 42, 48,
+ 49, 52, 58, 58, 32, 32, 33, 34, 35, 35, 37, 38, 40, 42, 42, 48, 49, 52, 58, 58, 33, 33, 33, 35, 36, 36, 40, 41, 43, 46, 46, 52, 53, 56, 62, 62, 34,
+ 34, 34, 35, 37, 37, 41, 42, 44, 48, 48, 53, 54, 57, 63, 63, 34, 34, 34, 35, 37, 37, 43, 44, 46, 50, 50, 55, 56, 59, 65, 65, 36, 35, 34, 36, 38, 38,
+ 46, 48, 50, 54, 54, 58, 60, 63, 68, 68, 36, 35, 34, 36, 38, 38, 46, 48, 50, 54, 54, 58, 60, 63, 68, 68, 38, 37, 37, 38, 40, 40, 47, 50, 52, 57, 57,
+ 62, 64, 67, 72, 72, 39, 38, 37, 39, 40, 40, 48, 50, 53, 58, 58, 63, 65, 68, 73, 73, 41, 39, 39, 40, 41, 41, 49, 51, 54, 60, 60, 66, 67, 70, 76, 76,
+ 44, 41, 41, 42, 43, 43, 51, 53, 57, 63, 63, 69, 71, 74, 79, 79, 44, 41, 41, 42, 43, 43, 51, 53, 57, 63, 63, 69, 71, 74, 79, 79, 47, 44, 44, 44, 45,
+ 45, 53, 56, 59, 66, 66, 73, 75, 78, 84, 84, 48, 45, 45, 45, 46, 46, 54, 56, 60, 67, 67, 74, 76, 79, 85, 85, 50, 47, 46, 47, 47, 47, 55, 58, 61, 68,
+ 68, 76, 78, 82, 88, 88, 53, 50, 49, 50, 50, 50, 57, 60, 64, 71, 71, 79, 82, 86, 92, 92, 53, 50, 49, 50, 50, 50, 57, 60, 64, 71, 71, 79, 82, 86, 92,
+ 92, 57, 54, 53, 53, 53, 53, 60, 63, 67, 74, 74, 83, 86, 90, 97, 97, 58, 55, 54, 54, 54, 54, 61, 63, 68, 75, 75, 84, 87, 91, 98, 98, 61, 57, 56, 56,
+ 56, 56, 63, 65, 69, 77, 77, 86, 89, 93, 100, 100, 65, 61, 60, 59, 58, 58, 66, 68, 72, 79, 79, 89, 92, 97, 105, 105, 65, 61, 60, 59, 58, 58, 66, 68,
+ 72, 79, 79, 89, 92, 97, 105, 105, 70, 65, 64, 63, 62, 62, 70, 72, 76, 83, 83, 93, 96, 101, 109, 109, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32,
+ 33, 34, 34, 36, 36, 38, 39, 41, 44, 44, 47, 48, 50, 53, 53, 57, 58, 61, 65, 65, 70, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35,
+ 37, 38, 39, 41, 41, 44, 45, 47, 50, 50, 54, 55, 57, 61, 61, 65, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 37, 37, 39, 41, 41,
+ 44, 45, 46, 49, 49, 53, 54, 56, 60, 60, 64, 31, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 35, 36, 36, 38, 39, 40, 42, 42, 44, 45, 47, 50, 50,
+ 53, 54, 56, 59, 59, 63, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 35, 36, 37, 37, 38, 38, 40, 40, 41, 43, 43, 45, 46, 47, 50, 50, 53, 54, 56, 58, 58,
+ 62, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 35, 36, 37, 37, 38, 38, 40, 40, 41, 43, 43, 45, 46, 47, 50, 50, 53, 54, 56, 58, 58, 62, 35, 35, 35, 34,
+ 34, 34, 35, 36, 36, 37, 37, 40, 41, 43, 46, 46, 47, 48, 49, 51, 51, 53, 54, 55, 57, 57, 60, 61, 63, 66, 66, 70, 36, 35, 35, 35, 34, 34, 36, 36, 37,
+ 38, 38, 41, 42, 44, 48, 48, 50, 50, 51, 53, 53, 56, 56, 58, 60, 60, 63, 63, 65, 68, 68, 72, 39, 38, 38, 37, 37, 37, 38, 38, 39, 40, 40, 43, 44, 46,
+ 50, 50, 52, 53, 54, 57, 57, 59, 60, 61, 64, 64, 67, 68, 69, 72, 72, 76, 44, 42, 42, 41, 41, 41, 42, 42, 42, 42, 42, 46, 48, 50, 54, 54, 57, 58, 60,
+ 63, 63, 66, 67, 68, 71, 71, 74, 75, 77, 79, 79, 83, 44, 42, 42, 41, 41, 41, 42, 42, 42, 42, 42, 46, 48, 50, 54, 54, 57, 58, 60, 63, 63, 66, 67, 68,
+ 71, 71, 74, 75, 77, 79, 79, 83, 51, 49, 49, 48, 47, 47, 48, 48, 48, 48, 48, 52, 53, 55, 58, 58, 62, 63, 66, 69, 69, 73, 74, 76, 79, 79, 83, 84, 86,
+ 89, 89, 93, 53, 52, 51, 50, 49, 49, 49, 50, 49, 49, 49, 53, 54, 56, 60, 60, 64, 65, 67, 71, 71, 75, 76, 78, 82, 82, 86, 87, 89, 92, 92, 96, 58, 56,
+ 55, 54, 53, 53, 53, 53, 53, 52, 52, 56, 57, 59, 63, 63, 67, 68, 70, 74, 74, 78, 79, 82, 86, 86, 90, 91, 93, 97, 97, 101, 65, 63, 62, 61, 59, 59,
+ 59, 59, 58, 58, 58, 62, 63, 65, 68, 68, 72, 73, 76, 79, 79, 84, 85, 88, 92, 92, 97, 98, 100, 105, 105, 109, 65, 63, 62, 61, 59, 59, 59, 59, 58, 58,
+ 58, 62, 63, 65, 68, 68, 72, 73, 76, 79, 79, 84, 85, 88, 92, 92, 97, 98, 100, 105, 105, 109, 31, 32, 44, 58, 32, 32, 42, 55, 32, 33, 41, 53, 32, 34,
+ 42, 53, 32, 34, 42, 53, 32, 35, 42, 52, 34, 37, 48, 57, 35, 38, 54, 63, 37, 40, 57, 67, 39, 41, 60, 70, 41, 43, 63, 74, 45, 46, 67, 79, 50, 50, 71,
+ 86, 54, 53, 74, 90, 57, 56, 77, 93, 61, 58, 79, 97, 31, 32, 32, 32, 32, 32, 34, 35, 37, 39, 41, 45, 50, 54, 57, 61, 32, 32, 33, 34, 34, 35, 37, 38,
+ 40, 41, 43, 46, 50, 53, 56, 58, 44, 42, 41, 42, 42, 42, 48, 54, 57, 60, 63, 67, 71, 74, 77, 79, 58, 55, 53, 53, 53, 52, 57, 63, 67, 70, 74, 79, 86,
+ 90, 93, 97, 32, 31, 32, 35, 39, 44, 53, 65, 31, 32, 32, 35, 38, 42, 52, 63, 31, 32, 32, 35, 38, 42, 51, 62, 31, 32, 32, 34, 37, 41, 50, 61, 31, 32,
+ 33, 34, 37, 41, 49, 59, 31, 32, 33, 34, 37, 41, 49, 59, 31, 32, 34, 35, 38, 42, 49, 59, 32, 32, 34, 36, 38, 42, 50, 59, 32, 32, 34, 36, 39, 42, 49,
+ 58, 32, 33, 35, 37, 40, 42, 49, 58, 32, 33, 35, 37, 40, 42, 49, 58, 33, 33, 36, 40, 43, 46, 53, 62, 34, 34, 37, 41, 44, 48, 54, 63, 34, 34, 37, 43,
+ 46, 50, 56, 65, 36, 34, 38, 46, 50, 54, 60, 68, 36, 34, 38, 46, 50, 54, 60, 68, 38, 37, 40, 47, 52, 57, 64, 72, 39, 37, 40, 48, 53, 58, 65, 73, 41,
+ 39, 41, 49, 54, 60, 67, 76, 44, 41, 43, 51, 57, 63, 71, 79, 44, 41, 43, 51, 57, 63, 71, 79, 47, 44, 45, 53, 59, 66, 75, 84, 48, 45, 46, 54, 60, 67,
+ 76, 85, 50, 46, 47, 55, 61, 68, 78, 88, 53, 49, 50, 57, 64, 71, 82, 92, 53, 49, 50, 57, 64, 71, 82, 92, 57, 53, 53, 60, 67, 74, 86, 97, 58, 54, 54,
+ 61, 68, 75, 87, 98, 61, 56, 56, 63, 69, 77, 89, 100, 65, 60, 58, 66, 72, 79, 92, 105, 65, 60, 58, 66, 72, 79, 92, 105, 70, 64, 62, 70, 76, 83, 96,
+ 109, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 33, 34, 34, 36, 36, 38, 39, 41, 44, 44, 47, 48, 50, 53, 53, 57, 58, 61, 65, 65, 70, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 37, 37, 39, 41, 41, 44, 45, 46, 49, 49, 53, 54, 56, 60, 60, 64, 32, 32, 32, 32, 33, 33, 34, 34,
+ 34, 35, 35, 36, 37, 37, 38, 38, 40, 40, 41, 43, 43, 45, 46, 47, 50, 50, 53, 54, 56, 58, 58, 62, 35, 35, 35, 34, 34, 34, 35, 36, 36, 37, 37, 40, 41,
+ 43, 46, 46, 47, 48, 49, 51, 51, 53, 54, 55, 57, 57, 60, 61, 63, 66, 66, 70, 39, 38, 38, 37, 37, 37, 38, 38, 39, 40, 40, 43, 44, 46, 50, 50, 52, 53,
+ 54, 57, 57, 59, 60, 61, 64, 64, 67, 68, 69, 72, 72, 76, 44, 42, 42, 41, 41, 41, 42, 42, 42, 42, 42, 46, 48, 50, 54, 54, 57, 58, 60, 63, 63, 66, 67,
+ 68, 71, 71, 74, 75, 77, 79, 79, 83, 53, 52, 51, 50, 49, 49, 49, 50, 49, 49, 49, 53, 54, 56, 60, 60, 64, 65, 67, 71, 71, 75, 76, 78, 82, 82, 86, 87,
+ 89, 92, 92, 96, 65, 63, 62, 61, 59, 59, 59, 59, 58, 58, 58, 62, 63, 65, 68, 68, 72, 73, 76, 79, 79, 84, 85, 88, 92, 92, 97, 98, 100, 105, 105, 109,
+ ],
+ [
+ 31, 41, 46, 51, 41, 48, 48, 51, 46, 48, 58, 62, 51, 51, 62, 71, 31, 31, 38, 44, 47, 48, 50, 55, 31, 32, 40, 44, 45, 46, 47, 52, 38, 40, 47, 47, 46,
+ 46, 47, 50, 44, 44, 47, 50, 51, 51, 52, 54, 47, 45, 46, 51, 54, 56, 57, 60, 48, 46, 46, 51, 56, 61, 63, 66, 50, 47, 47, 52, 57, 63, 66, 70, 55, 52,
+ 50, 54, 60, 66, 70, 76, 32, 31, 30, 33, 34, 36, 41, 49, 48, 49, 49, 50, 52, 54, 55, 57, 31, 31, 31, 34, 36, 38, 42, 47, 47, 47, 47, 48, 50, 51, 53,
+ 54, 30, 31, 32, 34, 37, 40, 42, 46, 45, 45, 45, 46, 47, 49, 50, 52, 33, 34, 34, 37, 40, 42, 44, 47, 46, 46, 45, 46, 47, 49, 50, 51, 34, 36, 37, 40,
+ 42, 45, 46, 47, 46, 46, 45, 46, 47, 48, 49, 50, 36, 38, 40, 42, 45, 47, 47, 48, 47, 46, 45, 46, 47, 48, 49, 50, 41, 42, 42, 44, 46, 47, 48, 50, 50,
+ 49, 49, 50, 50, 51, 52, 53, 49, 47, 46, 47, 47, 48, 50, 53, 53, 53, 53, 54, 54, 55, 56, 56, 48, 47, 45, 46, 46, 47, 50, 53, 54, 54, 55, 56, 57, 58,
+ 58, 59, 49, 47, 45, 46, 46, 46, 49, 53, 54, 55, 57, 58, 59, 60, 60, 61, 49, 47, 45, 45, 45, 45, 49, 53, 55, 57, 58, 60, 61, 62, 63, 63, 50, 48, 46,
+ 46, 46, 46, 50, 54, 56, 58, 60, 61, 63, 65, 66, 67, 52, 50, 47, 47, 47, 47, 50, 54, 57, 59, 61, 63, 66, 68, 69, 70, 54, 51, 49, 49, 48, 48, 51, 55,
+ 58, 60, 62, 65, 68, 70, 71, 73, 55, 53, 50, 50, 49, 49, 52, 56, 58, 60, 63, 66, 69, 71, 73, 74, 57, 54, 52, 51, 50, 50, 53, 56, 59, 61, 63, 67, 70,
+ 73, 74, 76, 32, 31, 31, 31, 30, 30, 33, 33, 34, 36, 36, 40, 41, 44, 49, 49, 48, 48, 49, 49, 49, 50, 50, 51, 52, 52, 54, 54, 55, 57, 57, 59, 31, 31,
+ 31, 31, 31, 31, 33, 34, 36, 38, 38, 41, 42, 44, 48, 48, 47, 47, 47, 47, 47, 48, 49, 49, 50, 50, 52, 52, 53, 55, 55, 57, 31, 31, 31, 31, 31, 31, 34,
+ 34, 36, 38, 38, 41, 42, 44, 47, 47, 47, 47, 47, 47, 47, 48, 48, 49, 50, 50, 51, 52, 53, 54, 54, 56, 31, 31, 31, 31, 31, 31, 34, 35, 36, 39, 39, 41,
+ 42, 44, 47, 47, 46, 46, 46, 46, 46, 47, 47, 48, 49, 49, 50, 51, 52, 53, 53, 55, 30, 31, 31, 31, 32, 32, 34, 35, 37, 40, 40, 42, 42, 44, 46, 46, 45,
+ 45, 45, 45, 45, 46, 46, 47, 47, 47, 49, 49, 50, 52, 52, 54, 30, 31, 31, 31, 32, 32, 34, 35, 37, 40, 40, 42, 42, 44, 46, 46, 45, 45, 45, 45, 45, 46,
+ 46, 47, 47, 47, 49, 49, 50, 52, 52, 54, 33, 33, 34, 34, 34, 34, 37, 38, 40, 42, 42, 44, 44, 45, 47, 47, 46, 46, 46, 45, 45, 46, 46, 47, 47, 47, 49,
+ 49, 50, 51, 51, 53, 33, 34, 34, 35, 35, 35, 38, 39, 40, 43, 43, 44, 45, 46, 47, 47, 46, 46, 46, 45, 45, 46, 46, 47, 47, 47, 49, 49, 50, 51, 51, 53,
+ 34, 36, 36, 36, 37, 37, 40, 40, 42, 45, 45, 45, 46, 46, 47, 47, 46, 46, 46, 45, 45, 46, 46, 47, 47, 47, 48, 49, 49, 50, 50, 52, 36, 38, 38, 39, 40,
+ 40, 42, 43, 45, 47, 47, 47, 47, 47, 48, 48, 47, 46, 46, 45, 45, 46, 46, 46, 47, 47, 48, 48, 49, 50, 50, 51, 36, 38, 38, 39, 40, 40, 42, 43, 45, 47,
+ 47, 47, 47, 47, 48, 48, 47, 46, 46, 45, 45, 46, 46, 46, 47, 47, 48, 48, 49, 50, 50, 51, 40, 41, 41, 41, 42, 42, 44, 44, 45, 47, 47, 48, 48, 49, 50,
+ 50, 49, 49, 49, 48, 48, 49, 49, 49, 49, 49, 51, 51, 51, 52, 52, 54, 41, 42, 42, 42, 42, 42, 44, 45, 46, 47, 47, 48, 48, 49, 50, 50, 50, 49, 49, 49,
+ 49, 50, 50, 50, 50, 50, 51, 52, 52, 53, 53, 55, 44, 44, 44, 44, 44, 44, 45, 46, 46, 47, 47, 49, 49, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52,
+ 52, 53, 53, 54, 54, 54, 56, 49, 48, 47, 47, 46, 46, 47, 47, 47, 48, 48, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 55, 55, 56, 56,
+ 56, 58, 49, 48, 47, 47, 46, 46, 47, 47, 47, 48, 48, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 55, 55, 56, 56, 56, 58, 48, 47, 47,
+ 46, 45, 45, 46, 46, 46, 47, 47, 49, 50, 51, 53, 53, 54, 54, 54, 55, 55, 56, 56, 56, 57, 57, 58, 58, 58, 59, 59, 60, 48, 47, 47, 46, 45, 45, 46, 46,
+ 46, 46, 46, 49, 49, 51, 53, 53, 54, 54, 55, 55, 55, 56, 56, 57, 57, 57, 58, 58, 59, 60, 60, 61, 49, 47, 47, 46, 45, 45, 46, 46, 46, 46, 46, 49, 49,
+ 51, 53, 53, 54, 55, 55, 57, 57, 57, 58, 58, 59, 59, 60, 60, 60, 61, 61, 63, 49, 47, 47, 46, 45, 45, 45, 45, 45, 45, 45, 48, 49, 51, 53, 53, 55, 55,
+ 57, 58, 58, 59, 60, 60, 61, 61, 62, 62, 63, 63, 63, 65, 49, 47, 47, 46, 45, 45, 45, 45, 45, 45, 45, 48, 49, 51, 53, 53, 55, 55, 57, 58, 58, 59, 60,
+ 60, 61, 61, 62, 62, 63, 63, 63, 65, 50, 48, 48, 47, 46, 46, 46, 46, 46, 46, 46, 49, 50, 51, 54, 54, 56, 56, 57, 59, 59, 61, 61, 62, 63, 63, 64, 64,
+ 65, 66, 66, 67, 50, 49, 48, 47, 46, 46, 46, 46, 46, 46, 46, 49, 50, 51, 54, 54, 56, 56, 58, 60, 60, 61, 61, 62, 63, 63, 65, 65, 66, 67, 67, 68, 51,
+ 49, 49, 48, 47, 47, 47, 47, 47, 46, 46, 49, 50, 51, 54, 54, 56, 57, 58, 60, 60, 62, 62, 63, 65, 65, 66, 66, 67, 68, 68, 70, 52, 50, 50, 49, 47, 47,
+ 47, 47, 47, 47, 47, 49, 50, 52, 54, 54, 57, 57, 59, 61, 61, 63, 63, 65, 66, 66, 68, 68, 69, 70, 70, 72, 52, 50, 50, 49, 47, 47, 47, 47, 47, 47, 47,
+ 49, 50, 52, 54, 54, 57, 57, 59, 61, 61, 63, 63, 65, 66, 66, 68, 68, 69, 70, 70, 72, 54, 52, 51, 50, 49, 49, 49, 49, 48, 48, 48, 51, 51, 53, 55, 55,
+ 58, 58, 60, 62, 62, 64, 65, 66, 68, 68, 70, 70, 71, 73, 73, 74, 54, 52, 52, 51, 49, 49, 49, 49, 49, 48, 48, 51, 52, 53, 55, 55, 58, 58, 60, 62, 62,
+ 64, 65, 66, 68, 68, 70, 71, 72, 73, 73, 75, 55, 53, 53, 52, 50, 50, 50, 50, 49, 49, 49, 51, 52, 54, 56, 56, 58, 59, 60, 63, 63, 65, 66, 67, 69, 69,
+ 71, 72, 73, 74, 74, 76, 57, 55, 54, 53, 52, 52, 51, 51, 50, 50, 50, 52, 53, 54, 56, 56, 59, 60, 61, 63, 63, 66, 67, 68, 70, 70, 73, 73, 74, 76, 76,
+ 78, 57, 55, 54, 53, 52, 52, 51, 51, 50, 50, 50, 52, 53, 54, 56, 56, 59, 60, 61, 63, 63, 66, 67, 68, 70, 70, 73, 73, 74, 76, 76, 78, 59, 57, 56, 55,
+ 54, 54, 53, 53, 52, 51, 51, 54, 55, 56, 58, 58, 60, 61, 63, 65, 65, 67, 68, 70, 72, 72, 74, 75, 76, 78, 78, 80, 31, 38, 47, 52, 32, 40, 45, 49, 39,
+ 47, 45, 48, 44, 47, 51, 53, 46, 47, 56, 58, 47, 46, 59, 64, 48, 47, 61, 68, 53, 50, 64, 73, 31, 32, 39, 44, 46, 47, 48, 53, 38, 40, 47, 47, 47, 46,
+ 47, 50, 47, 45, 45, 51, 56, 59, 61, 64, 52, 49, 48, 53, 58, 64, 68, 73, 32, 31, 37, 45, 48, 49, 52, 57, 31, 31, 38, 45, 47, 47, 50, 54, 30, 32, 40,
+ 44, 45, 45, 48, 52, 33, 35, 42, 46, 46, 45, 47, 51, 35, 37, 44, 46, 46, 45, 47, 51, 37, 40, 47, 47, 47, 45, 47, 50, 42, 43, 47, 49, 50, 49, 50, 53,
+ 49, 46, 48, 52, 53, 53, 54, 57, 48, 46, 47, 51, 54, 55, 57, 59, 48, 45, 46, 51, 54, 57, 59, 61, 49, 45, 46, 51, 55, 58, 61, 64, 50, 46, 46, 52, 56,
+ 59, 64, 67, 52, 48, 47, 53, 57, 61, 66, 71, 54, 49, 48, 54, 58, 62, 68, 73, 55, 51, 49, 54, 58, 63, 69, 74, 57, 52, 50, 55, 59, 64, 70, 76, 32, 31,
+ 30, 33, 35, 37, 42, 49, 48, 48, 49, 50, 52, 54, 55, 57, 31, 31, 32, 35, 37, 40, 43, 46, 46, 45, 45, 46, 48, 49, 51, 52, 37, 38, 40, 42, 44, 47, 47,
+ 48, 47, 46, 46, 46, 47, 48, 49, 50, 45, 45, 44, 46, 46, 47, 49, 52, 51, 51, 51, 52, 53, 54, 54, 55, 48, 47, 45, 46, 46, 47, 50, 53, 54, 54, 55, 56,
+ 57, 58, 58, 59, 49, 47, 45, 45, 45, 45, 49, 53, 55, 57, 58, 59, 61, 62, 63, 64, 52, 50, 48, 47, 47, 47, 50, 54, 57, 59, 61, 64, 66, 68, 69, 70, 57,
+ 54, 52, 51, 51, 50, 53, 57, 59, 61, 64, 67, 71, 73, 74, 76, 32, 31, 31, 33, 37, 37, 45, 48, 48, 49, 49, 51, 52, 54, 57, 57, 31, 31, 31, 34, 38, 38,
+ 45, 47, 47, 47, 47, 50, 50, 52, 55, 55, 31, 31, 31, 34, 38, 38, 45, 47, 47, 47, 47, 49, 50, 51, 54, 54, 31, 31, 32, 34, 39, 39, 45, 46, 46, 46, 46,
+ 48, 49, 51, 53, 53, 30, 32, 32, 35, 40, 40, 44, 46, 45, 45, 45, 47, 48, 49, 52, 52, 30, 32, 32, 35, 40, 40, 44, 46, 45, 45, 45, 47, 48, 49, 52, 52,
+ 33, 34, 35, 37, 42, 42, 46, 47, 46, 45, 45, 47, 47, 49, 51, 51, 33, 35, 36, 38, 43, 43, 46, 47, 46, 46, 46, 47, 47, 49, 51, 51, 35, 37, 37, 40, 44,
+ 44, 46, 47, 46, 45, 45, 47, 47, 48, 51, 51, 37, 39, 40, 43, 47, 47, 47, 47, 47, 45, 45, 46, 47, 48, 50, 50, 37, 39, 40, 43, 47, 47, 47, 47, 47, 45,
+ 45, 46, 47, 48, 50, 50, 41, 42, 42, 44, 47, 47, 49, 49, 49, 48, 48, 49, 50, 51, 52, 52, 42, 42, 43, 44, 47, 47, 49, 50, 50, 49, 49, 50, 50, 51, 53,
+ 53, 44, 44, 44, 45, 47, 47, 50, 51, 51, 51, 51, 52, 52, 53, 54, 54, 49, 47, 46, 47, 48, 48, 52, 53, 53, 53, 53, 54, 54, 55, 57, 57, 49, 47, 46, 47,
+ 48, 48, 52, 53, 53, 53, 53, 54, 54, 55, 57, 57, 48, 46, 46, 46, 47, 47, 51, 53, 54, 55, 55, 56, 57, 58, 59, 59, 48, 46, 46, 46, 47, 47, 51, 53, 54,
+ 56, 56, 57, 57, 58, 60, 60, 48, 46, 45, 46, 46, 46, 51, 53, 54, 57, 57, 58, 59, 60, 61, 61, 49, 46, 45, 45, 46, 46, 51, 53, 55, 58, 58, 61, 61, 62,
+ 64, 64, 49, 46, 45, 45, 46, 46, 51, 53, 55, 58, 58, 61, 61, 62, 64, 64, 50, 47, 46, 46, 46, 46, 52, 54, 56, 59, 59, 62, 63, 64, 66, 66, 50, 47, 46,
+ 46, 46, 46, 52, 54, 56, 59, 59, 63, 64, 65, 67, 67, 51, 48, 47, 47, 47, 47, 52, 54, 56, 60, 60, 64, 65, 66, 68, 68, 52, 48, 48, 47, 47, 47, 53, 54,
+ 57, 61, 61, 65, 66, 68, 71, 71, 52, 48, 48, 47, 47, 47, 53, 54, 57, 61, 61, 65, 66, 68, 71, 71, 54, 50, 49, 49, 48, 48, 54, 55, 58, 62, 62, 67, 68,
+ 70, 73, 73, 54, 51, 50, 49, 49, 49, 54, 55, 58, 62, 62, 67, 68, 70, 73, 73, 55, 51, 51, 50, 49, 49, 54, 56, 58, 63, 63, 68, 69, 71, 74, 74, 57, 53,
+ 52, 51, 50, 50, 55, 56, 59, 64, 64, 69, 70, 73, 76, 76, 57, 53, 52, 51, 50, 50, 55, 56, 59, 64, 64, 69, 70, 73, 76, 76, 59, 55, 54, 53, 52, 52, 57,
+ 58, 61, 65, 65, 70, 72, 74, 78, 78, 32, 31, 31, 31, 30, 30, 33, 33, 35, 37, 37, 41, 42, 44, 49, 49, 48, 48, 48, 49, 49, 50, 50, 51, 52, 52, 54, 54,
+ 55, 57, 57, 59, 31, 31, 31, 31, 32, 32, 34, 35, 37, 39, 39, 42, 42, 44, 47, 47, 46, 46, 46, 46, 46, 47, 47, 48, 48, 48, 50, 51, 51, 53, 53, 55, 31,
+ 31, 31, 32, 32, 32, 35, 36, 37, 40, 40, 42, 43, 44, 46, 46, 46, 46, 45, 45, 45, 46, 46, 47, 48, 48, 49, 50, 51, 52, 52, 54, 33, 34, 34, 34, 35, 35,
+ 37, 38, 40, 43, 43, 44, 44, 45, 47, 47, 46, 46, 46, 45, 45, 46, 46, 47, 47, 47, 49, 49, 50, 51, 51, 53, 37, 38, 38, 39, 40, 40, 42, 43, 44, 47, 47,
+ 47, 47, 47, 48, 48, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 48, 49, 49, 50, 50, 52, 37, 38, 38, 39, 40, 40, 42, 43, 44, 47, 47, 47, 47, 47, 48, 48,
+ 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 48, 49, 49, 50, 50, 52, 45, 45, 45, 45, 44, 44, 46, 46, 46, 47, 47, 49, 49, 50, 52, 52, 51, 51, 51, 51, 51,
+ 52, 52, 52, 53, 53, 54, 54, 54, 55, 55, 57, 48, 47, 47, 46, 46, 46, 47, 47, 47, 47, 47, 49, 50, 51, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54,
+ 55, 55, 56, 56, 56, 58, 48, 47, 47, 46, 45, 45, 46, 46, 46, 47, 47, 49, 50, 51, 53, 53, 54, 54, 54, 55, 55, 56, 56, 56, 57, 57, 58, 58, 58, 59, 59,
+ 61, 49, 47, 47, 46, 45, 45, 45, 46, 45, 45, 45, 48, 49, 51, 53, 53, 55, 56, 57, 58, 58, 59, 59, 60, 61, 61, 62, 62, 63, 64, 64, 65, 49, 47, 47, 46,
+ 45, 45, 45, 46, 45, 45, 45, 48, 49, 51, 53, 53, 55, 56, 57, 58, 58, 59, 59, 60, 61, 61, 62, 62, 63, 64, 64, 65, 51, 50, 49, 48, 47, 47, 47, 47, 47,
+ 46, 46, 49, 50, 52, 54, 54, 56, 57, 58, 61, 61, 62, 63, 64, 65, 65, 67, 67, 68, 69, 69, 70, 52, 50, 50, 49, 48, 48, 47, 47, 47, 47, 47, 50, 50, 52,
+ 54, 54, 57, 57, 59, 61, 61, 63, 64, 65, 66, 66, 68, 68, 69, 70, 70, 72, 54, 52, 51, 51, 49, 49, 49, 49, 48, 48, 48, 51, 51, 53, 55, 55, 58, 58, 60,
+ 62, 62, 64, 65, 66, 68, 68, 70, 70, 71, 73, 73, 74, 57, 55, 54, 53, 52, 52, 51, 51, 51, 50, 50, 52, 53, 54, 57, 57, 59, 60, 61, 64, 64, 66, 67, 68,
+ 71, 71, 73, 73, 74, 76, 76, 78, 57, 55, 54, 53, 52, 52, 51, 51, 51, 50, 50, 52, 53, 54, 57, 57, 59, 60, 61, 64, 64, 66, 67, 68, 71, 71, 73, 73, 74,
+ 76, 76, 78, 31, 37, 49, 54, 31, 38, 47, 51, 32, 40, 45, 49, 34, 42, 45, 49, 37, 44, 45, 48, 39, 47, 45, 48, 42, 47, 49, 51, 47, 48, 53, 55, 46, 47,
+ 55, 58, 46, 46, 57, 60, 46, 46, 58, 62, 47, 46, 59, 65, 48, 47, 61, 68, 50, 48, 62, 70, 51, 49, 63, 71, 53, 50, 64, 73, 31, 31, 32, 34, 37, 39, 42,
+ 47, 46, 46, 46, 47, 48, 50, 51, 53, 37, 38, 40, 42, 44, 47, 47, 48, 47, 46, 46, 46, 47, 48, 49, 50, 49, 47, 45, 45, 45, 45, 49, 53, 55, 57, 58, 59,
+ 61, 62, 63, 64, 54, 51, 49, 49, 48, 48, 51, 55, 58, 60, 62, 65, 68, 70, 71, 73, 32, 31, 37, 45, 48, 49, 52, 57, 31, 31, 38, 45, 47, 47, 50, 55, 31,
+ 31, 38, 45, 47, 47, 50, 54, 31, 32, 39, 45, 46, 46, 49, 53, 30, 32, 40, 44, 45, 45, 48, 52, 30, 32, 40, 44, 45, 45, 48, 52, 33, 35, 42, 46, 46, 45,
+ 47, 51, 33, 36, 43, 46, 46, 46, 47, 51, 35, 37, 44, 46, 46, 45, 47, 51, 37, 40, 47, 47, 47, 45, 47, 50, 37, 40, 47, 47, 47, 45, 47, 50, 41, 42, 47,
+ 49, 49, 48, 50, 52, 42, 43, 47, 49, 50, 49, 50, 53, 44, 44, 47, 50, 51, 51, 52, 54, 49, 46, 48, 52, 53, 53, 54, 57, 49, 46, 48, 52, 53, 53, 54, 57,
+ 48, 46, 47, 51, 54, 55, 57, 59, 48, 46, 47, 51, 54, 56, 57, 60, 48, 45, 46, 51, 54, 57, 59, 61, 49, 45, 46, 51, 55, 58, 61, 64, 49, 45, 46, 51, 55,
+ 58, 61, 64, 50, 46, 46, 52, 56, 59, 63, 66, 50, 46, 46, 52, 56, 59, 64, 67, 51, 47, 47, 52, 56, 60, 65, 68, 52, 48, 47, 53, 57, 61, 66, 71, 52, 48,
+ 47, 53, 57, 61, 66, 71, 54, 49, 48, 54, 58, 62, 68, 73, 54, 50, 49, 54, 58, 62, 68, 73, 55, 51, 49, 54, 58, 63, 69, 74, 57, 52, 50, 55, 59, 64, 70,
+ 76, 57, 52, 50, 55, 59, 64, 70, 76, 59, 54, 52, 57, 61, 65, 72, 78, 32, 31, 31, 31, 30, 30, 33, 33, 35, 37, 37, 41, 42, 44, 49, 49, 48, 48, 48, 49,
+ 49, 50, 50, 51, 52, 52, 54, 54, 55, 57, 57, 59, 31, 31, 31, 32, 32, 32, 35, 36, 37, 40, 40, 42, 43, 44, 46, 46, 46, 46, 45, 45, 45, 46, 46, 47, 48,
+ 48, 49, 50, 51, 52, 52, 54, 37, 38, 38, 39, 40, 40, 42, 43, 44, 47, 47, 47, 47, 47, 48, 48, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 48, 49, 49, 50,
+ 50, 52, 45, 45, 45, 45, 44, 44, 46, 46, 46, 47, 47, 49, 49, 50, 52, 52, 51, 51, 51, 51, 51, 52, 52, 52, 53, 53, 54, 54, 54, 55, 55, 57, 48, 47, 47,
+ 46, 45, 45, 46, 46, 46, 47, 47, 49, 50, 51, 53, 53, 54, 54, 54, 55, 55, 56, 56, 56, 57, 57, 58, 58, 58, 59, 59, 61, 49, 47, 47, 46, 45, 45, 45, 46,
+ 45, 45, 45, 48, 49, 51, 53, 53, 55, 56, 57, 58, 58, 59, 59, 60, 61, 61, 62, 62, 63, 64, 64, 65, 52, 50, 50, 49, 48, 48, 47, 47, 47, 47, 47, 50, 50,
+ 52, 54, 54, 57, 57, 59, 61, 61, 63, 64, 65, 66, 66, 68, 68, 69, 70, 70, 72, 57, 55, 54, 53, 52, 52, 51, 51, 51, 50, 50, 52, 53, 54, 57, 57, 59, 60,
+ 61, 64, 64, 66, 67, 68, 71, 71, 73, 73, 74, 76, 76, 78,
+ ],
+ ],
+ [
+ [
+ 32, 32, 38, 51, 32, 35, 40, 49, 38, 40, 54, 64, 51, 49, 64, 81, 31, 32, 32, 34, 35, 41, 47, 53, 32, 32, 32, 33, 34, 40, 44, 50, 32, 32, 34, 35, 37,
+ 41, 45, 51, 34, 33, 35, 39, 42, 47, 51, 55, 35, 34, 37, 42, 48, 53, 57, 61, 41, 40, 41, 47, 53, 60, 65, 70, 47, 44, 45, 51, 57, 65, 71, 77, 53, 50,
+ 51, 55, 61, 70, 77, 85, 32, 31, 31, 31, 31, 32, 32, 34, 36, 38, 39, 44, 47, 49, 54, 59, 31, 32, 32, 32, 32, 32, 33, 34, 35, 37, 38, 42, 45, 47, 51,
+ 56, 31, 32, 32, 32, 32, 32, 33, 33, 34, 36, 37, 41, 44, 46, 50, 54, 31, 32, 32, 32, 32, 33, 33, 34, 35, 36, 38, 41, 44, 45, 49, 54, 31, 32, 32, 32,
+ 33, 34, 34, 35, 36, 38, 39, 42, 45, 46, 50, 54, 32, 32, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 45, 46, 49, 53, 32, 33, 33, 33, 34, 36, 36, 38, 40,
+ 41, 42, 44, 47, 48, 51, 55, 34, 34, 33, 34, 35, 37, 38, 39, 42, 44, 45, 47, 50, 51, 54, 58, 36, 35, 34, 35, 36, 38, 40, 42, 48, 50, 50, 54, 56, 57,
+ 60, 64, 38, 37, 36, 36, 38, 39, 41, 44, 50, 51, 52, 56, 58, 60, 63, 67, 39, 38, 37, 38, 39, 40, 42, 45, 50, 52, 54, 58, 60, 62, 65, 69, 44, 42, 41,
+ 41, 42, 42, 44, 47, 54, 56, 58, 63, 66, 68, 71, 75, 47, 45, 44, 44, 45, 45, 47, 50, 56, 58, 60, 66, 69, 71, 75, 79, 49, 47, 46, 45, 46, 46, 48, 51,
+ 57, 60, 62, 68, 71, 73, 77, 81, 54, 51, 50, 49, 50, 49, 51, 54, 60, 63, 65, 71, 75, 77, 82, 87, 59, 56, 54, 54, 54, 53, 55, 58, 64, 67, 69, 75, 79,
+ 81, 87, 92, 32, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 34, 35, 36, 36, 38, 39, 39, 42, 44, 44, 47, 48, 49, 53, 54, 55, 59, 59, 31, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 35, 37, 39, 39, 41, 43, 43, 46, 47, 48, 51, 52, 53, 57, 57, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 35, 37, 38, 38, 41, 42, 43, 45, 46, 47, 51, 51, 53, 56, 56, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 33, 34, 34, 34, 35, 35, 37, 38, 38, 41, 42, 42, 45, 46, 47, 51, 51, 52, 56, 56, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34,
+ 34, 36, 37, 37, 40, 41, 41, 44, 45, 46, 49, 50, 51, 54, 54, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 36, 37, 37, 40,
+ 41, 41, 44, 44, 45, 49, 49, 50, 54, 54, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 35, 35, 36, 38, 38, 40, 41, 41, 44, 45, 45,
+ 49, 49, 50, 54, 54, 31, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 36, 38, 39, 39, 41, 42, 42, 44, 45, 46, 49, 50, 51, 54, 54,
+ 31, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 36, 36, 36, 38, 39, 39, 41, 42, 42, 45, 45, 46, 49, 50, 51, 54, 54, 32, 32, 32, 32, 32,
+ 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 37, 37, 38, 39, 39, 41, 42, 42, 45, 45, 46, 49, 49, 51, 54, 54, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34,
+ 35, 35, 36, 37, 37, 37, 38, 38, 39, 40, 40, 42, 42, 43, 45, 46, 46, 49, 49, 50, 53, 53, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 35, 36, 37, 37,
+ 37, 38, 38, 39, 40, 40, 42, 42, 43, 45, 46, 46, 49, 49, 50, 53, 53, 32, 33, 33, 33, 33, 33, 33, 34, 34, 35, 36, 36, 36, 38, 38, 39, 40, 40, 41, 42,
+ 42, 44, 44, 45, 47, 47, 48, 51, 51, 52, 55, 55, 34, 34, 34, 34, 33, 33, 34, 35, 35, 35, 37, 37, 38, 39, 39, 41, 42, 42, 44, 45, 45, 47, 47, 48, 50,
+ 51, 51, 54, 54, 55, 58, 58, 34, 34, 34, 34, 33, 33, 34, 35, 35, 35, 37, 37, 38, 39, 39, 41, 42, 42, 44, 45, 45, 47, 47, 48, 50, 51, 51, 54, 54, 55,
+ 58, 58, 35, 34, 34, 34, 34, 34, 34, 35, 36, 36, 37, 37, 39, 41, 41, 43, 45, 45, 47, 47, 47, 49, 50, 51, 53, 53, 54, 57, 57, 58, 61, 61, 36, 35, 35,
+ 35, 34, 34, 35, 36, 36, 37, 38, 38, 40, 42, 42, 45, 48, 48, 50, 50, 50, 53, 54, 54, 56, 57, 57, 59, 60, 61, 64, 64, 36, 35, 35, 35, 34, 34, 35, 36,
+ 36, 37, 38, 38, 40, 42, 42, 45, 48, 48, 50, 50, 50, 53, 54, 54, 56, 57, 57, 59, 60, 61, 64, 64, 38, 37, 37, 37, 36, 36, 36, 38, 38, 38, 39, 39, 41,
+ 44, 44, 47, 50, 50, 51, 52, 52, 55, 56, 56, 58, 59, 60, 62, 63, 64, 67, 67, 39, 39, 38, 38, 37, 37, 38, 39, 39, 39, 40, 40, 42, 45, 45, 47, 50, 50,
+ 52, 54, 54, 56, 58, 58, 60, 61, 62, 64, 65, 66, 69, 69, 39, 39, 38, 38, 37, 37, 38, 39, 39, 39, 40, 40, 42, 45, 45, 47, 50, 50, 52, 54, 54, 56, 58,
+ 58, 60, 61, 62, 64, 65, 66, 69, 69, 42, 41, 41, 41, 40, 40, 40, 41, 41, 41, 42, 42, 44, 47, 47, 49, 53, 53, 55, 56, 56, 60, 61, 62, 64, 65, 66, 69,
+ 69, 70, 73, 73, 44, 43, 42, 42, 41, 41, 41, 42, 42, 42, 42, 42, 44, 47, 47, 50, 54, 54, 56, 58, 58, 61, 63, 64, 66, 67, 68, 71, 71, 72, 75, 75, 44,
+ 43, 43, 42, 41, 41, 41, 42, 42, 42, 43, 43, 45, 48, 48, 51, 54, 54, 56, 58, 58, 62, 64, 64, 66, 67, 68, 71, 72, 73, 76, 76, 47, 46, 45, 45, 44, 44,
+ 44, 44, 45, 45, 45, 45, 47, 50, 50, 53, 56, 56, 58, 60, 60, 64, 66, 66, 69, 70, 71, 74, 75, 76, 79, 79, 48, 47, 46, 46, 45, 44, 45, 45, 45, 45, 46,
+ 46, 47, 51, 51, 53, 57, 57, 59, 61, 61, 65, 67, 67, 70, 71, 72, 75, 76, 77, 80, 80, 49, 48, 47, 47, 46, 45, 45, 46, 46, 46, 46, 46, 48, 51, 51, 54,
+ 57, 57, 60, 62, 62, 66, 68, 68, 71, 72, 73, 77, 77, 78, 81, 81, 53, 51, 51, 51, 49, 49, 49, 49, 49, 49, 49, 49, 51, 54, 54, 57, 59, 59, 62, 64, 64,
+ 69, 71, 71, 74, 75, 77, 81, 81, 83, 86, 86, 54, 52, 51, 51, 50, 49, 49, 50, 50, 49, 49, 49, 51, 54, 54, 57, 60, 60, 63, 65, 65, 69, 71, 72, 75, 76,
+ 77, 81, 82, 83, 87, 87, 55, 53, 53, 52, 51, 50, 50, 51, 51, 51, 50, 50, 52, 55, 55, 58, 61, 61, 64, 66, 66, 70, 72, 73, 76, 77, 78, 83, 83, 85, 88,
+ 88, 59, 57, 56, 56, 54, 54, 54, 54, 54, 54, 53, 53, 55, 58, 58, 61, 64, 64, 67, 69, 69, 73, 75, 76, 79, 80, 81, 86, 87, 88, 92, 92, 59, 57, 56, 56,
+ 54, 54, 54, 54, 54, 54, 53, 53, 55, 58, 58, 61, 64, 64, 67, 69, 69, 73, 75, 76, 79, 80, 81, 86, 87, 88, 92, 92, 32, 32, 37, 52, 32, 33, 36, 49, 32,
+ 34, 38, 49, 34, 37, 44, 54, 35, 38, 49, 60, 40, 42, 55, 69, 46, 46, 59, 76, 52, 51, 64, 83, 32, 32, 32, 34, 35, 40, 46, 52, 32, 33, 34, 37, 38, 42,
+ 46, 51, 37, 36, 38, 44, 49, 55, 59, 64, 52, 49, 49, 54, 60, 69, 76, 83, 32, 31, 32, 32, 36, 44, 47, 53, 31, 32, 32, 33, 35, 42, 45, 51, 31, 32, 32,
+ 33, 35, 41, 44, 49, 31, 32, 33, 33, 35, 41, 44, 49, 32, 32, 34, 34, 36, 42, 45, 50, 32, 33, 35, 36, 38, 42, 45, 49, 32, 33, 35, 36, 40, 44, 47, 51,
+ 34, 34, 36, 38, 42, 48, 50, 54, 36, 34, 37, 40, 48, 54, 56, 60, 38, 36, 39, 41, 49, 56, 58, 63, 39, 37, 40, 42, 50, 58, 60, 65, 44, 41, 42, 45, 53,
+ 63, 66, 71, 47, 44, 45, 47, 56, 66, 69, 75, 49, 46, 47, 48, 57, 67, 71, 77, 53, 49, 50, 51, 60, 71, 75, 82, 58, 54, 54, 55, 63, 75, 79, 87, 32, 31,
+ 31, 31, 32, 32, 32, 34, 36, 38, 39, 44, 47, 49, 53, 58, 31, 32, 32, 32, 32, 33, 33, 34, 34, 36, 37, 41, 44, 46, 49, 54, 32, 32, 32, 33, 34, 35, 35,
+ 36, 37, 39, 40, 42, 45, 47, 50, 54, 32, 33, 33, 33, 34, 36, 36, 38, 40, 41, 42, 45, 47, 48, 51, 55, 36, 35, 35, 35, 36, 38, 40, 42, 48, 49, 50, 53,
+ 56, 57, 60, 63, 44, 42, 41, 41, 42, 42, 44, 48, 54, 56, 58, 63, 66, 67, 71, 75, 47, 45, 44, 44, 45, 45, 47, 50, 56, 58, 60, 66, 69, 71, 75, 79, 53,
+ 51, 49, 49, 50, 49, 51, 54, 60, 63, 65, 71, 75, 77, 82, 87, 32, 31, 31, 31, 32, 32, 32, 35, 36, 38, 44, 44, 47, 53, 53, 59, 31, 32, 32, 32, 32, 32,
+ 33, 35, 35, 37, 43, 43, 46, 52, 52, 57, 31, 32, 32, 32, 32, 32, 33, 35, 35, 37, 42, 42, 45, 51, 51, 56, 31, 32, 32, 32, 32, 32, 33, 35, 35, 37, 42,
+ 42, 45, 51, 51, 56, 31, 32, 32, 32, 32, 32, 33, 34, 35, 36, 41, 41, 44, 49, 49, 54, 31, 32, 32, 32, 32, 33, 33, 34, 34, 36, 41, 41, 44, 49, 49, 54,
+ 31, 32, 32, 32, 33, 33, 33, 35, 35, 36, 41, 41, 44, 49, 49, 54, 32, 32, 32, 32, 33, 34, 34, 36, 36, 38, 42, 42, 45, 49, 49, 54, 32, 32, 32, 33, 34,
+ 34, 34, 36, 36, 38, 42, 42, 45, 50, 50, 54, 32, 32, 32, 33, 34, 34, 35, 37, 37, 38, 42, 42, 45, 49, 49, 54, 32, 32, 33, 33, 35, 35, 36, 38, 38, 39,
+ 42, 42, 45, 49, 49, 53, 32, 32, 33, 33, 35, 35, 36, 38, 38, 39, 42, 42, 45, 49, 49, 53, 32, 33, 33, 33, 35, 36, 36, 39, 40, 41, 44, 44, 47, 51, 51,
+ 55, 34, 34, 34, 34, 36, 37, 38, 42, 42, 44, 48, 48, 50, 54, 54, 58, 34, 34, 34, 34, 36, 37, 38, 42, 42, 44, 48, 48, 50, 54, 54, 58, 35, 34, 34, 34,
+ 37, 37, 39, 44, 45, 46, 50, 50, 53, 57, 57, 61, 36, 35, 34, 35, 37, 38, 40, 47, 48, 49, 54, 54, 56, 60, 60, 64, 36, 35, 34, 35, 37, 38, 40, 47, 48,
+ 49, 54, 54, 56, 60, 60, 64, 38, 37, 36, 37, 39, 40, 41, 48, 49, 51, 56, 56, 58, 63, 63, 67, 39, 38, 37, 38, 40, 40, 42, 49, 50, 52, 58, 58, 60, 65,
+ 65, 69, 39, 38, 37, 38, 40, 40, 42, 49, 50, 52, 58, 58, 60, 65, 65, 69, 42, 40, 40, 40, 42, 42, 44, 51, 52, 55, 61, 61, 64, 69, 69, 73, 44, 42, 41,
+ 41, 42, 43, 45, 52, 53, 56, 63, 63, 66, 71, 71, 75, 44, 42, 41, 41, 43, 43, 45, 52, 54, 56, 63, 63, 66, 72, 72, 76, 47, 45, 44, 44, 45, 45, 47, 54,
+ 56, 58, 66, 66, 69, 75, 75, 79, 48, 46, 45, 45, 46, 46, 48, 55, 56, 59, 67, 67, 70, 76, 76, 80, 49, 47, 46, 46, 47, 47, 48, 56, 57, 60, 67, 67, 71,
+ 77, 77, 81, 53, 50, 49, 49, 49, 49, 51, 58, 59, 62, 71, 71, 74, 81, 81, 86, 53, 51, 49, 49, 50, 50, 51, 59, 60, 63, 71, 71, 75, 82, 82, 87, 55, 52,
+ 51, 51, 51, 51, 53, 60, 61, 64, 72, 72, 76, 83, 83, 88, 58, 55, 54, 54, 54, 54, 55, 62, 63, 67, 75, 75, 79, 87, 87, 92, 58, 55, 54, 54, 54, 54, 55,
+ 62, 63, 67, 75, 75, 79, 87, 87, 92, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 34, 34, 35, 36, 36, 38, 39, 39, 42, 44, 44, 47, 48, 49, 53,
+ 53, 55, 58, 58, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 35, 37, 38, 38, 40, 42, 42, 45, 46, 47, 50, 51, 52, 55, 55, 31,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 36, 37, 37, 40, 41, 41, 44, 45, 46, 49, 49, 51, 54, 54, 31, 32, 32, 32, 32, 32,
+ 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 35, 35, 37, 38, 38, 40, 41, 41, 44, 45, 46, 49, 49, 51, 54, 54, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 35,
+ 35, 35, 36, 36, 37, 37, 37, 39, 40, 40, 42, 42, 43, 45, 46, 47, 49, 50, 51, 54, 54, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 35, 36, 37, 37, 37,
+ 38, 38, 40, 40, 40, 42, 43, 43, 45, 46, 47, 49, 50, 51, 54, 54, 32, 33, 33, 33, 33, 33, 33, 34, 34, 35, 36, 36, 36, 38, 38, 39, 40, 40, 41, 42, 42,
+ 44, 45, 45, 47, 48, 48, 51, 51, 53, 55, 55, 35, 35, 35, 35, 34, 34, 35, 36, 36, 37, 38, 38, 39, 42, 42, 44, 47, 47, 48, 49, 49, 51, 52, 52, 54, 55,
+ 56, 58, 59, 60, 62, 62, 36, 35, 35, 35, 35, 34, 35, 36, 36, 37, 38, 38, 40, 42, 42, 45, 48, 48, 49, 50, 50, 52, 53, 54, 56, 56, 57, 59, 60, 61, 63,
+ 63, 38, 37, 37, 37, 36, 36, 36, 38, 38, 38, 39, 39, 41, 44, 44, 46, 49, 49, 51, 52, 52, 55, 56, 56, 58, 59, 60, 62, 63, 64, 67, 67, 44, 43, 42, 42,
+ 41, 41, 41, 42, 42, 42, 42, 42, 44, 48, 48, 50, 54, 54, 56, 58, 58, 61, 63, 63, 66, 67, 67, 71, 71, 72, 75, 75, 44, 43, 42, 42, 41, 41, 41, 42, 42,
+ 42, 42, 42, 44, 48, 48, 50, 54, 54, 56, 58, 58, 61, 63, 63, 66, 67, 67, 71, 71, 72, 75, 75, 47, 46, 45, 45, 44, 44, 44, 45, 45, 45, 45, 45, 47, 50,
+ 50, 53, 56, 56, 58, 60, 60, 64, 66, 66, 69, 70, 71, 74, 75, 76, 79, 79, 53, 52, 51, 51, 49, 49, 49, 49, 50, 49, 49, 49, 51, 54, 54, 57, 60, 60, 63,
+ 65, 65, 69, 71, 72, 75, 76, 77, 81, 82, 83, 87, 87, 53, 52, 51, 51, 49, 49, 49, 49, 50, 49, 49, 49, 51, 54, 54, 57, 60, 60, 63, 65, 65, 69, 71, 72,
+ 75, 76, 77, 81, 82, 83, 87, 87, 59, 57, 56, 56, 54, 54, 54, 54, 54, 54, 53, 53, 55, 58, 58, 61, 64, 64, 67, 69, 69, 73, 75, 76, 79, 80, 81, 86, 87,
+ 88, 92, 92, 31, 32, 38, 53, 32, 32, 37, 51, 32, 32, 36, 49, 32, 33, 36, 49, 32, 34, 38, 50, 32, 35, 39, 49, 33, 36, 41, 51, 34, 37, 44, 54, 35, 38,
+ 49, 60, 37, 40, 51, 63, 38, 40, 52, 65, 42, 43, 56, 71, 45, 45, 58, 75, 47, 47, 60, 77, 51, 50, 63, 82, 55, 54, 67, 87, 31, 32, 32, 32, 32, 32, 33,
+ 34, 35, 37, 38, 42, 45, 47, 51, 55, 32, 32, 32, 33, 34, 35, 36, 37, 38, 40, 40, 43, 45, 47, 50, 54, 38, 37, 36, 36, 38, 39, 41, 44, 49, 51, 52, 56,
+ 58, 60, 63, 67, 53, 51, 49, 49, 50, 49, 51, 54, 60, 63, 65, 71, 75, 77, 82, 87, 32, 31, 32, 32, 36, 44, 47, 53, 31, 32, 32, 33, 35, 43, 46, 52, 31,
+ 32, 32, 33, 35, 42, 45, 51, 31, 32, 32, 33, 35, 42, 45, 51, 31, 32, 32, 33, 35, 41, 44, 49, 31, 32, 32, 33, 34, 41, 44, 49, 31, 32, 33, 33, 35, 41,
+ 44, 49, 32, 32, 33, 34, 36, 42, 45, 49, 32, 32, 34, 34, 36, 42, 45, 50, 32, 32, 34, 35, 37, 42, 45, 49, 32, 33, 35, 36, 38, 42, 45, 49, 32, 33, 35,
+ 36, 38, 42, 45, 49, 32, 33, 35, 36, 40, 44, 47, 51, 34, 34, 36, 38, 42, 48, 50, 54, 34, 34, 36, 38, 42, 48, 50, 54, 35, 34, 37, 39, 45, 50, 53, 57,
+ 36, 34, 37, 40, 48, 54, 56, 60, 36, 34, 37, 40, 48, 54, 56, 60, 38, 36, 39, 41, 49, 56, 58, 63, 39, 37, 40, 42, 50, 58, 60, 65, 39, 37, 40, 42, 50,
+ 58, 60, 65, 42, 40, 42, 44, 52, 61, 64, 69, 44, 41, 42, 45, 53, 63, 66, 71, 44, 41, 43, 45, 54, 63, 66, 72, 47, 44, 45, 47, 56, 66, 69, 75, 48, 45,
+ 46, 48, 56, 67, 70, 76, 49, 46, 47, 48, 57, 67, 71, 77, 53, 49, 49, 51, 59, 71, 74, 81, 53, 49, 50, 51, 60, 71, 75, 82, 55, 51, 51, 53, 61, 72, 76,
+ 83, 58, 54, 54, 55, 63, 75, 79, 87, 58, 54, 54, 55, 63, 75, 79, 87, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 34, 34, 35, 36, 36, 38, 39,
+ 39, 42, 44, 44, 47, 48, 49, 53, 53, 55, 58, 58, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 36, 37, 37, 40, 41, 41, 44,
+ 45, 46, 49, 49, 51, 54, 54, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 35, 36, 36, 37, 37, 37, 39, 40, 40, 42, 42, 43, 45, 46, 47, 49, 50, 51,
+ 54, 54, 32, 33, 33, 33, 33, 33, 33, 34, 34, 35, 36, 36, 36, 38, 38, 39, 40, 40, 41, 42, 42, 44, 45, 45, 47, 48, 48, 51, 51, 53, 55, 55, 36, 35, 35,
+ 35, 35, 34, 35, 36, 36, 37, 38, 38, 40, 42, 42, 45, 48, 48, 49, 50, 50, 52, 53, 54, 56, 56, 57, 59, 60, 61, 63, 63, 44, 43, 42, 42, 41, 41, 41, 42,
+ 42, 42, 42, 42, 44, 48, 48, 50, 54, 54, 56, 58, 58, 61, 63, 63, 66, 67, 67, 71, 71, 72, 75, 75, 47, 46, 45, 45, 44, 44, 44, 45, 45, 45, 45, 45, 47,
+ 50, 50, 53, 56, 56, 58, 60, 60, 64, 66, 66, 69, 70, 71, 74, 75, 76, 79, 79, 53, 52, 51, 51, 49, 49, 49, 49, 50, 49, 49, 49, 51, 54, 54, 57, 60, 60,
+ 63, 65, 65, 69, 71, 72, 75, 76, 77, 81, 82, 83, 87, 87,
+ ],
+ [
+ 31, 38, 47, 49, 38, 47, 46, 46, 47, 46, 54, 57, 49, 46, 57, 66, 31, 31, 35, 42, 48, 47, 49, 51, 31, 32, 36, 42, 46, 45, 46, 48, 35, 36, 41, 45, 47,
+ 45, 46, 48, 42, 42, 45, 48, 50, 49, 50, 51, 48, 46, 47, 50, 53, 53, 54, 54, 47, 45, 45, 49, 53, 57, 59, 60, 49, 46, 46, 50, 54, 59, 61, 64, 51, 48,
+ 48, 51, 54, 60, 64, 68, 32, 31, 30, 31, 33, 36, 38, 41, 49, 49, 48, 49, 50, 51, 52, 54, 31, 31, 31, 32, 34, 38, 40, 42, 47, 47, 47, 47, 48, 48, 50,
+ 52, 30, 31, 31, 32, 35, 39, 41, 42, 46, 46, 46, 45, 46, 47, 48, 50, 31, 32, 32, 33, 36, 40, 41, 43, 46, 46, 45, 45, 46, 46, 47, 49, 33, 34, 35, 36,
+ 39, 43, 44, 45, 47, 46, 46, 45, 46, 47, 47, 49, 36, 38, 39, 40, 43, 47, 47, 47, 48, 47, 46, 45, 46, 46, 47, 48, 38, 40, 41, 41, 44, 47, 47, 48, 49,
+ 48, 48, 47, 47, 47, 48, 49, 41, 42, 42, 43, 45, 47, 48, 48, 50, 50, 49, 49, 50, 50, 50, 52, 49, 47, 46, 46, 47, 48, 49, 50, 53, 53, 53, 53, 54, 54,
+ 54, 55, 49, 47, 46, 46, 46, 47, 48, 50, 53, 53, 54, 55, 55, 55, 56, 57, 48, 47, 46, 45, 46, 46, 48, 49, 53, 54, 54, 55, 56, 56, 57, 58, 49, 47, 45,
+ 45, 45, 45, 47, 49, 53, 55, 55, 58, 59, 60, 61, 62, 50, 48, 46, 46, 46, 46, 47, 50, 54, 55, 56, 59, 61, 61, 63, 64, 51, 48, 47, 46, 47, 46, 47, 50,
+ 54, 55, 56, 60, 61, 62, 64, 66, 52, 50, 48, 47, 47, 47, 48, 50, 54, 56, 57, 61, 63, 64, 66, 68, 54, 52, 50, 49, 49, 48, 49, 52, 55, 57, 58, 62, 64,
+ 66, 68, 71, 32, 31, 31, 31, 30, 30, 31, 33, 33, 34, 36, 36, 38, 41, 41, 45, 49, 49, 49, 48, 48, 49, 49, 49, 50, 50, 51, 52, 52, 53, 54, 54, 31, 31,
+ 31, 31, 31, 31, 31, 34, 34, 35, 38, 38, 39, 42, 42, 45, 48, 48, 47, 47, 47, 47, 47, 47, 49, 49, 49, 50, 50, 51, 53, 53, 31, 31, 31, 31, 31, 31, 32,
+ 34, 34, 35, 38, 38, 40, 42, 42, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 49, 50, 50, 52, 52, 31, 31, 31, 31, 31, 31, 32, 34, 34, 36, 38, 38,
+ 40, 42, 42, 45, 47, 47, 47, 47, 47, 47, 46, 47, 48, 48, 48, 49, 49, 50, 52, 52, 30, 31, 31, 31, 31, 31, 32, 35, 35, 36, 39, 39, 41, 42, 42, 44, 46,
+ 46, 46, 46, 46, 45, 45, 45, 46, 47, 47, 48, 48, 48, 50, 50, 30, 31, 31, 31, 31, 32, 32, 35, 35, 36, 40, 40, 41, 42, 42, 44, 46, 46, 46, 45, 45, 45,
+ 45, 45, 46, 46, 46, 47, 47, 48, 49, 49, 31, 31, 32, 32, 32, 32, 33, 35, 36, 37, 40, 40, 41, 43, 43, 44, 46, 46, 46, 45, 45, 45, 45, 45, 46, 46, 46,
+ 47, 47, 48, 49, 49, 33, 34, 34, 34, 35, 35, 35, 38, 38, 40, 43, 43, 43, 44, 44, 46, 47, 47, 46, 46, 46, 45, 45, 45, 46, 46, 47, 47, 47, 48, 49, 49,
+ 33, 34, 34, 34, 35, 35, 36, 38, 39, 40, 43, 43, 44, 45, 45, 46, 47, 47, 46, 46, 46, 45, 45, 45, 46, 46, 47, 47, 47, 48, 49, 49, 34, 35, 35, 36, 36,
+ 36, 37, 40, 40, 41, 44, 44, 45, 45, 45, 46, 47, 47, 47, 46, 46, 45, 45, 45, 46, 46, 46, 47, 47, 48, 49, 49, 36, 38, 38, 38, 39, 40, 40, 43, 43, 44,
+ 47, 47, 47, 47, 47, 47, 48, 48, 47, 46, 46, 45, 45, 45, 46, 46, 46, 46, 47, 47, 48, 48, 36, 38, 38, 38, 39, 40, 40, 43, 43, 44, 47, 47, 47, 47, 47,
+ 47, 48, 48, 47, 46, 46, 45, 45, 45, 46, 46, 46, 46, 47, 47, 48, 48, 38, 39, 40, 40, 41, 41, 41, 43, 44, 45, 47, 47, 47, 48, 48, 48, 49, 49, 48, 48,
+ 48, 47, 47, 47, 47, 47, 47, 48, 48, 48, 49, 49, 41, 42, 42, 42, 42, 42, 43, 44, 45, 45, 47, 47, 48, 48, 48, 49, 50, 50, 50, 49, 49, 49, 49, 49, 50,
+ 50, 50, 50, 50, 51, 52, 52, 41, 42, 42, 42, 42, 42, 43, 44, 45, 45, 47, 47, 48, 48, 48, 49, 50, 50, 50, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 51,
+ 52, 52, 45, 45, 45, 45, 44, 44, 44, 46, 46, 46, 47, 47, 48, 49, 49, 50, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 53, 53, 49, 48, 47,
+ 47, 46, 46, 46, 47, 47, 47, 48, 48, 49, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 55, 55, 49, 48, 47, 47, 46, 46, 46, 47,
+ 47, 47, 48, 48, 49, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 55, 55, 49, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 48,
+ 50, 50, 51, 53, 53, 53, 54, 54, 54, 55, 55, 55, 55, 55, 56, 56, 56, 57, 57, 48, 47, 47, 47, 46, 45, 45, 46, 46, 46, 46, 46, 48, 49, 49, 51, 53, 53,
+ 54, 54, 54, 55, 55, 56, 56, 56, 56, 57, 57, 58, 58, 58, 48, 47, 47, 47, 46, 45, 45, 46, 46, 46, 46, 46, 48, 49, 49, 51, 53, 53, 54, 54, 54, 55, 55,
+ 56, 56, 56, 56, 57, 57, 58, 58, 58, 49, 47, 47, 47, 45, 45, 45, 45, 45, 45, 45, 45, 47, 49, 49, 51, 53, 53, 54, 55, 55, 57, 57, 58, 58, 59, 59, 60,
+ 60, 60, 61, 61, 49, 47, 47, 46, 45, 45, 45, 45, 45, 45, 45, 45, 47, 49, 49, 51, 53, 53, 55, 55, 55, 57, 58, 58, 59, 60, 60, 61, 61, 61, 62, 62, 49,
+ 47, 47, 47, 45, 45, 45, 45, 45, 45, 45, 45, 47, 49, 49, 51, 53, 53, 55, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 63, 63, 50, 49, 48, 48, 46, 46,
+ 46, 46, 46, 46, 46, 46, 47, 50, 50, 52, 54, 54, 55, 56, 56, 58, 59, 59, 61, 61, 61, 63, 63, 63, 64, 64, 50, 49, 48, 48, 47, 46, 46, 46, 46, 46, 46,
+ 46, 47, 50, 50, 52, 54, 54, 55, 56, 56, 59, 60, 60, 61, 61, 62, 63, 63, 64, 65, 65, 51, 49, 48, 48, 47, 46, 46, 47, 47, 46, 46, 46, 47, 50, 50, 52,
+ 54, 54, 55, 56, 56, 59, 60, 60, 61, 62, 62, 64, 64, 64, 66, 66, 52, 50, 49, 49, 48, 47, 47, 47, 47, 47, 46, 46, 48, 50, 50, 52, 54, 54, 56, 57, 57,
+ 60, 61, 61, 63, 63, 64, 66, 66, 67, 68, 68, 52, 50, 50, 49, 48, 47, 47, 47, 47, 47, 47, 47, 48, 50, 50, 52, 54, 54, 56, 57, 57, 60, 61, 61, 63, 63,
+ 64, 66, 66, 67, 68, 68, 53, 51, 50, 50, 48, 48, 48, 48, 48, 48, 47, 47, 48, 51, 51, 52, 54, 54, 56, 58, 58, 60, 61, 62, 63, 64, 64, 67, 67, 68, 69,
+ 69, 54, 53, 52, 52, 50, 49, 49, 49, 49, 49, 48, 48, 49, 52, 52, 53, 55, 55, 57, 58, 58, 61, 62, 63, 64, 65, 66, 68, 68, 69, 71, 71, 54, 53, 52, 52,
+ 50, 49, 49, 49, 49, 49, 48, 48, 49, 52, 52, 53, 55, 55, 57, 58, 58, 61, 62, 63, 64, 65, 66, 68, 68, 69, 71, 71, 31, 38, 47, 50, 31, 40, 46, 48, 36,
+ 44, 47, 47, 42, 47, 50, 50, 47, 48, 53, 54, 46, 46, 54, 60, 48, 46, 55, 64, 50, 48, 56, 67, 31, 31, 36, 42, 47, 46, 48, 50, 38, 40, 44, 47, 48, 46,
+ 46, 48, 47, 46, 47, 50, 53, 54, 55, 56, 50, 48, 47, 50, 54, 60, 64, 67, 32, 31, 35, 38, 48, 49, 50, 52, 31, 31, 37, 40, 47, 47, 48, 50, 30, 32, 38,
+ 40, 46, 45, 46, 48, 31, 33, 38, 41, 46, 45, 46, 48, 33, 36, 41, 44, 47, 46, 46, 47, 37, 40, 45, 47, 47, 45, 46, 47, 39, 41, 46, 47, 48, 47, 47, 48,
+ 42, 43, 46, 48, 50, 49, 50, 50, 49, 46, 48, 49, 53, 53, 54, 54, 48, 46, 47, 48, 53, 55, 55, 56, 48, 46, 46, 48, 53, 56, 56, 57, 49, 45, 45, 47, 53,
+ 58, 59, 61, 50, 46, 46, 48, 54, 59, 61, 63, 51, 47, 47, 48, 54, 60, 61, 64, 52, 48, 47, 48, 54, 61, 63, 66, 54, 50, 49, 50, 55, 62, 65, 68, 32, 31,
+ 30, 31, 33, 37, 39, 42, 49, 48, 48, 49, 50, 51, 52, 54, 31, 31, 32, 33, 36, 40, 41, 43, 46, 46, 46, 45, 46, 47, 48, 50, 35, 37, 38, 38, 41, 45, 46,
+ 46, 48, 47, 46, 45, 46, 47, 47, 49, 38, 40, 40, 41, 44, 47, 47, 48, 49, 48, 48, 47, 48, 48, 48, 50, 48, 47, 46, 46, 47, 47, 48, 50, 53, 53, 53, 53,
+ 54, 54, 54, 55, 49, 47, 45, 45, 46, 45, 47, 49, 53, 55, 56, 58, 59, 60, 61, 62, 50, 48, 46, 46, 46, 46, 47, 50, 54, 55, 56, 59, 61, 61, 63, 65, 52,
+ 50, 48, 48, 47, 47, 48, 50, 54, 56, 57, 61, 63, 64, 66, 68, 32, 31, 31, 31, 35, 37, 38, 47, 48, 48, 49, 49, 50, 52, 52, 54, 31, 31, 31, 32, 36, 38,
+ 39, 46, 47, 47, 48, 48, 49, 50, 50, 53, 31, 31, 31, 32, 37, 38, 40, 46, 47, 47, 47, 47, 48, 50, 50, 52, 31, 31, 31, 32, 37, 38, 40, 46, 47, 47, 47,
+ 47, 48, 50, 50, 52, 30, 31, 32, 32, 38, 39, 40, 45, 46, 46, 45, 45, 46, 48, 48, 50, 30, 31, 32, 33, 38, 40, 41, 45, 46, 46, 45, 45, 46, 48, 48, 50,
+ 31, 32, 33, 33, 38, 40, 41, 45, 46, 46, 45, 45, 46, 48, 48, 50, 33, 35, 35, 36, 41, 43, 43, 46, 47, 46, 45, 45, 46, 47, 47, 49, 33, 35, 36, 36, 41,
+ 43, 44, 46, 47, 46, 46, 46, 46, 47, 47, 49, 34, 36, 37, 37, 42, 44, 45, 47, 47, 47, 45, 45, 46, 47, 47, 49, 37, 39, 40, 41, 45, 47, 47, 47, 47, 47,
+ 45, 45, 46, 47, 47, 48, 37, 39, 40, 41, 45, 47, 47, 47, 47, 47, 45, 45, 46, 47, 47, 48, 39, 40, 41, 42, 46, 47, 47, 48, 48, 48, 47, 47, 47, 48, 48,
+ 50, 42, 42, 43, 43, 46, 47, 48, 50, 50, 50, 49, 49, 50, 50, 50, 52, 42, 42, 43, 43, 46, 47, 48, 50, 50, 50, 49, 49, 50, 50, 50, 52, 45, 45, 44, 45,
+ 47, 47, 48, 51, 51, 51, 51, 51, 52, 52, 52, 54, 49, 47, 46, 47, 48, 48, 49, 52, 53, 53, 53, 53, 54, 54, 54, 55, 49, 47, 46, 47, 48, 48, 49, 52, 53,
+ 53, 53, 53, 54, 54, 54, 55, 48, 47, 46, 46, 47, 47, 48, 52, 53, 53, 55, 55, 55, 56, 56, 57, 48, 46, 46, 46, 46, 47, 48, 52, 53, 54, 56, 56, 56, 57,
+ 57, 59, 48, 46, 46, 46, 46, 47, 48, 52, 53, 54, 56, 56, 56, 57, 57, 59, 49, 46, 45, 45, 46, 46, 47, 52, 53, 54, 57, 57, 58, 60, 60, 61, 49, 46, 45,
+ 45, 45, 46, 47, 52, 53, 55, 58, 58, 59, 61, 61, 62, 49, 46, 45, 45, 46, 46, 47, 52, 53, 55, 58, 58, 60, 61, 61, 63, 50, 47, 46, 46, 46, 46, 48, 53,
+ 54, 55, 59, 59, 61, 63, 63, 65, 50, 48, 46, 46, 46, 46, 48, 53, 54, 55, 59, 59, 61, 64, 64, 65, 51, 48, 47, 47, 47, 47, 48, 53, 54, 55, 60, 60, 61,
+ 64, 64, 66, 52, 49, 48, 48, 47, 47, 48, 53, 54, 56, 61, 61, 63, 66, 66, 68, 52, 49, 48, 48, 47, 47, 48, 53, 54, 56, 61, 61, 63, 66, 66, 68, 53, 50,
+ 48, 48, 48, 48, 49, 54, 54, 56, 61, 61, 63, 67, 67, 69, 54, 51, 50, 50, 49, 49, 50, 55, 55, 57, 62, 62, 65, 68, 68, 71, 54, 51, 50, 50, 49, 49, 50,
+ 55, 55, 57, 62, 62, 65, 68, 68, 71, 32, 31, 31, 31, 30, 30, 31, 33, 33, 34, 37, 37, 39, 42, 42, 45, 49, 49, 48, 48, 48, 49, 49, 49, 50, 50, 51, 52,
+ 52, 53, 54, 54, 31, 31, 31, 31, 31, 31, 32, 35, 35, 36, 39, 39, 40, 42, 42, 45, 47, 47, 47, 46, 46, 46, 46, 46, 47, 48, 48, 49, 49, 50, 51, 51, 31,
+ 31, 31, 31, 32, 32, 33, 35, 36, 37, 40, 40, 41, 43, 43, 44, 46, 46, 46, 46, 46, 45, 45, 45, 46, 46, 47, 48, 48, 48, 50, 50, 31, 32, 32, 32, 32, 33,
+ 33, 36, 36, 37, 41, 41, 42, 43, 43, 45, 47, 47, 46, 46, 46, 45, 45, 45, 46, 46, 47, 48, 48, 48, 50, 50, 35, 36, 37, 37, 38, 38, 38, 41, 41, 42, 45,
+ 45, 46, 46, 46, 47, 48, 48, 47, 46, 46, 46, 45, 46, 46, 46, 47, 47, 47, 48, 49, 49, 37, 38, 38, 38, 39, 40, 40, 43, 43, 44, 47, 47, 47, 47, 47, 47,
+ 48, 48, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 48, 49, 49, 38, 39, 40, 40, 40, 41, 41, 43, 44, 45, 47, 47, 47, 48, 48, 48, 49, 49, 48, 48, 48,
+ 47, 47, 47, 48, 48, 48, 48, 48, 49, 50, 50, 47, 46, 46, 46, 45, 45, 45, 46, 46, 47, 47, 47, 48, 50, 50, 51, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53,
+ 53, 53, 53, 54, 55, 55, 48, 47, 47, 47, 46, 46, 46, 47, 47, 47, 47, 47, 48, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 55,
+ 55, 48, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 48, 50, 50, 51, 53, 53, 53, 54, 54, 54, 55, 55, 55, 55, 55, 56, 56, 56, 57, 57, 49, 48, 47, 47,
+ 45, 45, 45, 45, 46, 45, 45, 45, 47, 49, 49, 51, 53, 53, 55, 56, 56, 57, 58, 58, 59, 59, 60, 61, 61, 61, 62, 62, 49, 48, 47, 47, 45, 45, 45, 45, 46,
+ 45, 45, 45, 47, 49, 49, 51, 53, 53, 55, 56, 56, 57, 58, 58, 59, 59, 60, 61, 61, 61, 62, 62, 50, 49, 48, 48, 46, 46, 46, 46, 46, 46, 46, 46, 47, 50,
+ 50, 52, 54, 54, 55, 56, 56, 58, 59, 60, 61, 61, 61, 63, 63, 63, 65, 65, 52, 50, 50, 50, 48, 48, 48, 47, 47, 47, 47, 47, 48, 50, 50, 52, 54, 54, 56,
+ 57, 57, 60, 61, 61, 63, 64, 64, 66, 66, 67, 68, 68, 52, 50, 50, 50, 48, 48, 48, 47, 47, 47, 47, 47, 48, 50, 50, 52, 54, 54, 56, 57, 57, 60, 61, 61,
+ 63, 64, 64, 66, 66, 67, 68, 68, 54, 53, 52, 52, 50, 50, 50, 49, 49, 49, 48, 48, 50, 52, 52, 54, 55, 55, 57, 59, 59, 61, 62, 63, 65, 65, 66, 68, 68,
+ 69, 71, 71, 31, 37, 48, 52, 31, 38, 47, 50, 31, 39, 46, 48, 32, 40, 46, 48, 35, 43, 46, 47, 39, 47, 47, 47, 40, 47, 48, 48, 42, 47, 50, 50, 47, 48,
+ 53, 54, 47, 47, 53, 56, 46, 47, 54, 57, 46, 46, 55, 61, 47, 46, 55, 63, 48, 47, 55, 64, 49, 47, 56, 66, 51, 49, 57, 68, 31, 31, 31, 32, 35, 39, 40,
+ 42, 47, 47, 46, 46, 47, 48, 49, 51, 37, 38, 39, 40, 43, 47, 47, 47, 48, 47, 47, 46, 46, 47, 47, 49, 48, 47, 46, 46, 46, 47, 48, 50, 53, 53, 54, 55,
+ 55, 55, 56, 57, 52, 50, 48, 48, 47, 47, 48, 50, 54, 56, 57, 61, 63, 64, 66, 68, 32, 31, 35, 38, 48, 49, 50, 52, 31, 31, 36, 39, 47, 48, 49, 50, 31,
+ 31, 37, 40, 47, 47, 48, 50, 31, 31, 37, 40, 47, 47, 48, 50, 30, 32, 38, 40, 46, 45, 46, 48, 30, 32, 38, 41, 46, 45, 46, 48, 31, 33, 38, 41, 46, 45,
+ 46, 48, 33, 35, 41, 43, 47, 45, 46, 47, 33, 36, 41, 44, 47, 46, 46, 47, 34, 37, 42, 45, 47, 45, 46, 47, 37, 40, 45, 47, 47, 45, 46, 47, 37, 40, 45,
+ 47, 47, 45, 46, 47, 39, 41, 46, 47, 48, 47, 47, 48, 42, 43, 46, 48, 50, 49, 50, 50, 42, 43, 46, 48, 50, 49, 50, 50, 45, 44, 47, 48, 51, 51, 52, 52,
+ 49, 46, 48, 49, 53, 53, 54, 54, 49, 46, 48, 49, 53, 53, 54, 54, 48, 46, 47, 48, 53, 55, 55, 56, 48, 46, 46, 48, 53, 56, 56, 57, 48, 46, 46, 48, 53,
+ 56, 56, 57, 49, 45, 46, 47, 53, 57, 58, 60, 49, 45, 45, 47, 53, 58, 59, 61, 49, 45, 46, 47, 53, 58, 60, 61, 50, 46, 46, 48, 54, 59, 61, 63, 50, 46,
+ 46, 48, 54, 59, 61, 64, 51, 47, 47, 48, 54, 60, 61, 64, 52, 48, 47, 48, 54, 61, 63, 66, 52, 48, 47, 48, 54, 61, 63, 66, 53, 48, 48, 49, 54, 61, 63,
+ 67, 54, 50, 49, 50, 55, 62, 65, 68, 54, 50, 49, 50, 55, 62, 65, 68, 32, 31, 31, 31, 30, 30, 31, 33, 33, 34, 37, 37, 39, 42, 42, 45, 49, 49, 48, 48,
+ 48, 49, 49, 49, 50, 50, 51, 52, 52, 53, 54, 54, 31, 31, 31, 31, 32, 32, 33, 35, 36, 37, 40, 40, 41, 43, 43, 44, 46, 46, 46, 46, 46, 45, 45, 45, 46,
+ 46, 47, 48, 48, 48, 50, 50, 35, 36, 37, 37, 38, 38, 38, 41, 41, 42, 45, 45, 46, 46, 46, 47, 48, 48, 47, 46, 46, 46, 45, 46, 46, 46, 47, 47, 47, 48,
+ 49, 49, 38, 39, 40, 40, 40, 41, 41, 43, 44, 45, 47, 47, 47, 48, 48, 48, 49, 49, 48, 48, 48, 47, 47, 47, 48, 48, 48, 48, 48, 49, 50, 50, 48, 47, 47,
+ 47, 46, 46, 46, 47, 47, 47, 47, 47, 48, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 55, 55, 49, 48, 47, 47, 45, 45, 45, 45,
+ 46, 45, 45, 45, 47, 49, 49, 51, 53, 53, 55, 56, 56, 57, 58, 58, 59, 59, 60, 61, 61, 61, 62, 62, 50, 49, 48, 48, 46, 46, 46, 46, 46, 46, 46, 46, 47,
+ 50, 50, 52, 54, 54, 55, 56, 56, 58, 59, 60, 61, 61, 61, 63, 63, 63, 65, 65, 52, 50, 50, 50, 48, 48, 48, 47, 47, 47, 47, 47, 48, 50, 50, 52, 54, 54,
+ 56, 57, 57, 60, 61, 61, 63, 64, 64, 66, 66, 67, 68, 68,
+ ],
+ ],
+ [
+ [
+ 32, 32, 35, 43, 32, 34, 37, 43, 35, 37, 48, 54, 43, 43, 54, 65, 31, 31, 32, 32, 34, 37, 43, 47, 31, 32, 32, 32, 34, 36, 41, 44, 32, 32, 33, 34, 35,
+ 38, 42, 45, 32, 32, 34, 35, 37, 39, 42, 46, 34, 34, 35, 37, 41, 45, 49, 52, 37, 36, 38, 39, 45, 51, 56, 59, 43, 41, 42, 42, 49, 56, 63, 67, 47, 44,
+ 45, 46, 52, 59, 67, 71, 32, 31, 31, 31, 31, 31, 32, 32, 34, 35, 36, 39, 41, 44, 47, 48, 31, 32, 32, 32, 32, 32, 32, 33, 34, 35, 35, 38, 40, 42, 45,
+ 46, 31, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 38, 39, 42, 45, 45, 31, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 37, 38, 41, 44, 44, 31, 32, 32, 32,
+ 33, 33, 33, 34, 35, 36, 36, 39, 40, 42, 44, 45, 31, 32, 32, 32, 33, 33, 34, 34, 35, 36, 36, 39, 40, 42, 45, 45, 32, 32, 32, 32, 33, 34, 35, 36, 37,
+ 38, 38, 40, 41, 42, 45, 46, 32, 33, 33, 33, 34, 34, 36, 36, 38, 39, 40, 42, 43, 44, 47, 47, 34, 34, 34, 33, 35, 35, 37, 38, 39, 42, 42, 45, 46, 47,
+ 50, 51, 35, 35, 34, 34, 36, 36, 38, 39, 42, 46, 47, 49, 50, 52, 55, 55, 36, 35, 35, 34, 36, 36, 38, 40, 42, 47, 48, 50, 52, 54, 56, 57, 39, 38, 38,
+ 37, 39, 39, 40, 42, 45, 49, 50, 54, 55, 58, 60, 61, 41, 40, 39, 38, 40, 40, 41, 43, 46, 50, 52, 55, 57, 60, 62, 63, 44, 42, 42, 41, 42, 42, 42, 44,
+ 47, 52, 54, 58, 60, 63, 66, 67, 47, 45, 45, 44, 44, 45, 45, 47, 50, 55, 56, 60, 62, 66, 69, 70, 48, 46, 45, 44, 45, 45, 46, 47, 51, 55, 57, 61, 63,
+ 67, 70, 71, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 34, 34, 35, 36, 36, 38, 39, 39, 41, 44, 44, 45, 47, 48, 48, 51, 31, 31,
+ 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 35, 35, 37, 39, 39, 40, 43, 43, 44, 46, 47, 47, 50, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 35, 35, 37, 38, 38, 40, 42, 42, 43, 45, 46, 46, 49, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 34, 34, 34, 35, 35, 35, 37, 38, 38, 40, 42, 42, 43, 45, 46, 46, 49, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34,
+ 34, 34, 35, 35, 36, 38, 38, 39, 42, 42, 42, 45, 45, 45, 48, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 36,
+ 37, 37, 38, 41, 41, 41, 44, 44, 44, 47, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 36, 37, 37, 38, 41, 41,
+ 41, 44, 44, 44, 47, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 36, 38, 38, 39, 41, 41, 42, 44, 45, 45, 47,
+ 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 35, 35, 35, 36, 36, 36, 37, 39, 39, 40, 42, 42, 42, 44, 45, 45, 48, 31, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 36, 36, 38, 39, 39, 40, 42, 42, 42, 45, 45, 45, 48, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33,
+ 33, 33, 34, 34, 34, 35, 35, 35, 36, 36, 36, 38, 39, 39, 40, 42, 42, 42, 45, 45, 45, 48, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 35, 35, 35,
+ 36, 36, 36, 37, 37, 37, 39, 40, 40, 41, 42, 42, 43, 45, 45, 45, 48, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 35, 36, 37, 37, 37, 38, 38,
+ 38, 39, 40, 40, 41, 42, 42, 43, 45, 46, 46, 48, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 35, 36, 37, 37, 37, 38, 38, 38, 39, 40, 40, 41,
+ 42, 42, 43, 45, 46, 46, 48, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 36, 36, 36, 38, 38, 38, 39, 40, 40, 41, 42, 42, 43, 44, 44, 45, 47, 47,
+ 47, 50, 34, 34, 34, 34, 34, 33, 33, 34, 35, 35, 35, 36, 37, 37, 38, 39, 39, 40, 42, 42, 42, 44, 45, 45, 46, 47, 47, 48, 50, 51, 51, 53, 34, 34, 34,
+ 34, 34, 33, 33, 34, 35, 35, 35, 36, 37, 37, 38, 39, 39, 40, 42, 42, 42, 44, 45, 45, 46, 47, 47, 48, 50, 51, 51, 53, 34, 34, 34, 34, 34, 34, 34, 34,
+ 35, 35, 35, 36, 37, 37, 38, 40, 40, 41, 43, 44, 44, 45, 46, 46, 47, 49, 49, 49, 51, 52, 52, 54, 35, 35, 35, 35, 34, 34, 34, 34, 36, 36, 36, 37, 38,
+ 38, 39, 42, 42, 43, 46, 47, 47, 48, 49, 49, 50, 52, 52, 53, 55, 55, 55, 57, 36, 35, 35, 35, 35, 34, 34, 35, 36, 36, 36, 37, 38, 38, 40, 42, 42, 44,
+ 47, 48, 48, 50, 50, 50, 52, 54, 54, 54, 56, 57, 57, 58, 36, 35, 35, 35, 35, 34, 34, 35, 36, 36, 36, 37, 38, 38, 40, 42, 42, 44, 47, 48, 48, 50, 50,
+ 50, 52, 54, 54, 54, 56, 57, 57, 58, 38, 37, 37, 37, 36, 36, 36, 36, 37, 38, 38, 39, 39, 39, 41, 44, 44, 45, 48, 50, 50, 51, 52, 52, 54, 56, 56, 57,
+ 58, 59, 59, 61, 39, 39, 38, 38, 38, 37, 37, 38, 39, 39, 39, 40, 40, 40, 42, 45, 45, 46, 49, 50, 50, 52, 54, 54, 55, 58, 58, 58, 60, 61, 61, 63, 39,
+ 39, 38, 38, 38, 37, 37, 38, 39, 39, 39, 40, 40, 40, 42, 45, 45, 46, 49, 50, 50, 52, 54, 54, 55, 58, 58, 58, 60, 61, 61, 63, 41, 40, 40, 40, 39, 38,
+ 38, 39, 40, 40, 40, 41, 41, 41, 43, 46, 46, 47, 50, 52, 52, 54, 55, 55, 57, 60, 60, 60, 62, 63, 63, 66, 44, 43, 42, 42, 42, 41, 41, 41, 42, 42, 42,
+ 42, 42, 42, 44, 47, 47, 49, 52, 54, 54, 56, 58, 58, 60, 63, 63, 64, 66, 67, 67, 69, 44, 43, 42, 42, 42, 41, 41, 41, 42, 42, 42, 42, 42, 42, 44, 47,
+ 47, 49, 52, 54, 54, 56, 58, 58, 60, 63, 63, 64, 66, 67, 67, 69, 45, 44, 43, 43, 42, 41, 41, 42, 42, 42, 42, 43, 43, 43, 45, 48, 48, 49, 53, 54, 54,
+ 57, 58, 58, 60, 64, 64, 65, 67, 68, 68, 70, 47, 46, 45, 45, 45, 44, 44, 44, 44, 45, 45, 45, 45, 45, 47, 50, 50, 51, 55, 56, 56, 58, 60, 60, 62, 66,
+ 66, 67, 69, 70, 70, 73, 48, 47, 46, 46, 45, 44, 44, 45, 45, 45, 45, 45, 46, 46, 47, 51, 51, 52, 55, 57, 57, 59, 61, 61, 63, 67, 67, 68, 70, 71, 71,
+ 74, 48, 47, 46, 46, 45, 44, 44, 45, 45, 45, 45, 45, 46, 46, 47, 51, 51, 52, 55, 57, 57, 59, 61, 61, 63, 67, 67, 68, 70, 71, 71, 74, 51, 50, 49, 49,
+ 48, 47, 47, 47, 48, 48, 48, 48, 48, 48, 50, 53, 53, 54, 57, 58, 58, 61, 63, 63, 66, 69, 69, 70, 73, 74, 74, 77, 31, 32, 35, 43, 32, 33, 34, 41, 32,
+ 34, 36, 42, 32, 35, 38, 42, 34, 37, 43, 49, 37, 40, 49, 56, 42, 43, 53, 63, 46, 46, 56, 67, 31, 32, 32, 32, 34, 37, 42, 46, 32, 33, 34, 35, 37, 40,
+ 43, 46, 35, 34, 36, 38, 43, 49, 53, 56, 43, 41, 42, 42, 49, 56, 63, 67, 32, 31, 31, 32, 35, 36, 44, 47, 31, 32, 32, 32, 35, 35, 42, 45, 31, 32, 32,
+ 32, 34, 35, 41, 45, 31, 32, 32, 33, 34, 34, 41, 44, 31, 32, 33, 34, 35, 36, 42, 44, 32, 32, 33, 34, 36, 36, 42, 45, 32, 33, 34, 35, 37, 38, 42, 45,
+ 32, 33, 34, 36, 39, 40, 44, 47, 34, 34, 35, 37, 41, 42, 48, 50, 35, 34, 36, 38, 45, 47, 52, 55, 36, 34, 36, 38, 46, 48, 54, 56, 39, 37, 39, 40, 48,
+ 50, 58, 60, 41, 39, 40, 41, 49, 51, 60, 62, 44, 41, 42, 43, 51, 53, 63, 66, 47, 44, 44, 45, 53, 56, 66, 69, 48, 45, 45, 46, 54, 56, 67, 70, 32, 31,
+ 31, 31, 31, 32, 32, 32, 34, 35, 36, 39, 41, 44, 47, 48, 31, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 37, 39, 41, 44, 45, 31, 32, 32, 32, 33, 33, 34,
+ 34, 35, 36, 36, 39, 40, 42, 44, 45, 32, 32, 32, 33, 34, 34, 35, 36, 37, 38, 38, 40, 41, 43, 45, 46, 35, 35, 34, 34, 35, 36, 37, 39, 41, 45, 46, 48,
+ 49, 51, 53, 54, 36, 35, 35, 34, 36, 36, 38, 40, 42, 47, 48, 50, 51, 53, 56, 56, 44, 42, 41, 41, 42, 42, 42, 44, 48, 52, 54, 58, 60, 63, 66, 67, 47,
+ 45, 45, 44, 44, 45, 45, 47, 50, 55, 56, 60, 62, 66, 69, 70, 32, 31, 31, 31, 31, 32, 32, 32, 35, 36, 36, 40, 44, 44, 47, 53, 31, 31, 32, 32, 32, 32,
+ 32, 33, 35, 35, 35, 39, 43, 43, 46, 52, 31, 32, 32, 32, 32, 32, 32, 33, 35, 35, 35, 39, 42, 42, 45, 51, 31, 32, 32, 32, 32, 32, 32, 33, 35, 35, 35,
+ 39, 42, 42, 45, 51, 31, 32, 32, 32, 32, 32, 32, 33, 34, 35, 35, 39, 41, 41, 45, 50, 31, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 38, 41, 41, 44, 49,
+ 31, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 38, 41, 41, 44, 49, 31, 32, 32, 32, 32, 33, 33, 33, 34, 35, 35, 38, 41, 41, 44, 49, 31, 32, 32, 32, 33,
+ 34, 34, 34, 35, 36, 36, 39, 42, 42, 44, 49, 32, 32, 32, 32, 33, 34, 34, 34, 36, 36, 36, 39, 42, 42, 45, 50, 32, 32, 32, 32, 33, 34, 34, 34, 36, 36,
+ 36, 39, 42, 42, 45, 50, 32, 32, 32, 32, 33, 35, 35, 35, 37, 37, 37, 40, 42, 42, 45, 49, 32, 32, 33, 33, 34, 35, 35, 36, 37, 38, 38, 41, 42, 42, 45,
+ 49, 32, 32, 33, 33, 34, 35, 35, 36, 37, 38, 38, 41, 42, 42, 45, 49, 32, 33, 33, 33, 34, 36, 36, 36, 39, 40, 40, 42, 44, 44, 47, 51, 34, 34, 34, 34,
+ 35, 37, 37, 38, 41, 42, 42, 45, 48, 48, 50, 54, 34, 34, 34, 34, 35, 37, 37, 38, 41, 42, 42, 45, 48, 48, 50, 54, 34, 34, 34, 34, 35, 37, 37, 38, 42,
+ 43, 43, 46, 49, 49, 51, 55, 35, 35, 34, 34, 36, 38, 38, 39, 45, 47, 47, 50, 52, 52, 55, 59, 36, 35, 34, 34, 36, 38, 38, 40, 46, 48, 48, 51, 54, 54,
+ 56, 60, 36, 35, 34, 34, 36, 38, 38, 40, 46, 48, 48, 51, 54, 54, 56, 60, 38, 37, 36, 36, 37, 40, 40, 41, 47, 49, 49, 53, 56, 56, 58, 63, 39, 38, 37,
+ 37, 39, 40, 40, 42, 48, 50, 50, 54, 58, 58, 60, 65, 39, 38, 37, 37, 39, 40, 40, 42, 48, 50, 50, 54, 58, 58, 60, 65, 41, 40, 39, 39, 40, 41, 41, 43,
+ 49, 51, 51, 56, 60, 60, 62, 67, 44, 42, 41, 41, 42, 43, 43, 45, 51, 53, 53, 59, 63, 63, 66, 71, 44, 42, 41, 41, 42, 43, 43, 45, 51, 53, 53, 59, 63,
+ 63, 66, 71, 44, 43, 42, 42, 42, 43, 43, 45, 51, 54, 54, 59, 64, 64, 67, 72, 47, 45, 44, 44, 44, 45, 45, 47, 53, 56, 56, 61, 66, 66, 69, 75, 48, 46,
+ 45, 45, 45, 46, 46, 48, 54, 56, 56, 62, 67, 67, 70, 76, 48, 46, 45, 45, 45, 46, 46, 48, 54, 56, 56, 62, 67, 67, 70, 76, 51, 49, 47, 47, 48, 48, 48,
+ 50, 56, 58, 58, 64, 69, 69, 73, 79, 32, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 34, 34, 34, 35, 36, 36, 38, 39, 39, 41, 44, 44, 44,
+ 47, 48, 48, 51, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 35, 35, 37, 38, 38, 40, 42, 42, 43, 45, 46, 46, 49, 31,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 34, 36, 37, 37, 39, 41, 41, 42, 44, 45, 45, 47, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 34, 36, 37, 37, 39, 41, 41, 42, 44, 45, 45, 47, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33,
+ 33, 34, 34, 34, 35, 35, 35, 36, 36, 36, 37, 39, 39, 40, 42, 42, 42, 44, 45, 45, 48, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 37,
+ 37, 37, 38, 38, 38, 40, 40, 40, 41, 43, 43, 43, 45, 46, 46, 48, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 38, 38, 38,
+ 40, 40, 40, 41, 43, 43, 43, 45, 46, 46, 48, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 36, 36, 36, 38, 38, 38, 39, 40, 40, 41, 42, 42, 43, 45,
+ 45, 45, 47, 48, 48, 50, 35, 35, 35, 35, 34, 34, 34, 34, 35, 36, 36, 37, 37, 37, 39, 41, 41, 42, 45, 46, 46, 47, 48, 48, 49, 51, 51, 51, 53, 54, 54,
+ 56, 36, 35, 35, 35, 35, 34, 34, 35, 36, 36, 36, 37, 38, 38, 40, 42, 42, 43, 47, 48, 48, 49, 50, 50, 51, 53, 53, 54, 56, 56, 56, 58, 36, 35, 35, 35,
+ 35, 34, 34, 35, 36, 36, 36, 37, 38, 38, 40, 42, 42, 43, 47, 48, 48, 49, 50, 50, 51, 53, 53, 54, 56, 56, 56, 58, 40, 39, 39, 39, 39, 38, 38, 38, 39,
+ 39, 39, 40, 41, 41, 42, 45, 45, 46, 50, 51, 51, 53, 54, 54, 56, 59, 59, 59, 61, 62, 62, 64, 44, 43, 42, 42, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42,
+ 44, 48, 48, 49, 52, 54, 54, 56, 58, 58, 60, 63, 63, 64, 66, 67, 67, 69, 44, 43, 42, 42, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 44, 48, 48, 49, 52,
+ 54, 54, 56, 58, 58, 60, 63, 63, 64, 66, 67, 67, 69, 47, 46, 45, 45, 45, 44, 44, 44, 44, 45, 45, 45, 45, 45, 47, 50, 50, 51, 55, 56, 56, 58, 60, 60,
+ 62, 66, 66, 67, 69, 70, 70, 73, 53, 52, 51, 51, 50, 49, 49, 49, 49, 50, 50, 49, 49, 49, 51, 54, 54, 55, 59, 60, 60, 63, 65, 65, 67, 71, 71, 72, 75,
+ 76, 76, 79, 31, 32, 36, 44, 32, 32, 35, 42, 32, 32, 35, 41, 32, 33, 34, 41, 32, 34, 36, 42, 32, 34, 36, 42, 32, 35, 38, 42, 33, 36, 40, 44, 34, 37,
+ 42, 48, 35, 38, 47, 52, 35, 38, 48, 54, 38, 40, 50, 58, 40, 41, 51, 60, 42, 43, 53, 63, 45, 45, 56, 66, 46, 46, 56, 67, 31, 32, 32, 32, 32, 32, 32,
+ 33, 34, 35, 35, 38, 40, 42, 45, 46, 32, 32, 32, 33, 34, 34, 35, 36, 37, 38, 38, 40, 41, 43, 45, 46, 36, 35, 35, 34, 36, 36, 38, 40, 42, 47, 48, 50,
+ 51, 53, 56, 56, 44, 42, 41, 41, 42, 42, 42, 44, 48, 52, 54, 58, 60, 63, 66, 67, 32, 31, 31, 32, 35, 36, 44, 47, 31, 32, 32, 32, 35, 35, 43, 46, 31,
+ 32, 32, 32, 35, 35, 42, 45, 31, 32, 32, 32, 35, 35, 42, 45, 31, 32, 32, 32, 34, 35, 41, 45, 31, 32, 32, 33, 34, 34, 41, 44, 31, 32, 32, 33, 34, 34,
+ 41, 44, 31, 32, 32, 33, 34, 35, 41, 44, 31, 32, 33, 34, 35, 36, 42, 44, 32, 32, 33, 34, 36, 36, 42, 45, 32, 32, 33, 34, 36, 36, 42, 45, 32, 32, 33,
+ 35, 37, 37, 42, 45, 32, 33, 34, 35, 37, 38, 42, 45, 32, 33, 34, 35, 37, 38, 42, 45, 32, 33, 34, 36, 39, 40, 44, 47, 34, 34, 35, 37, 41, 42, 48, 50,
+ 34, 34, 35, 37, 41, 42, 48, 50, 34, 34, 35, 37, 42, 43, 49, 51, 35, 34, 36, 38, 45, 47, 52, 55, 36, 34, 36, 38, 46, 48, 54, 56, 36, 34, 36, 38, 46,
+ 48, 54, 56, 38, 36, 37, 40, 47, 49, 56, 58, 39, 37, 39, 40, 48, 50, 58, 60, 39, 37, 39, 40, 48, 50, 58, 60, 41, 39, 40, 41, 49, 51, 60, 62, 44, 41,
+ 42, 43, 51, 53, 63, 66, 44, 41, 42, 43, 51, 53, 63, 66, 44, 42, 42, 43, 51, 54, 64, 67, 47, 44, 44, 45, 53, 56, 66, 69, 48, 45, 45, 46, 54, 56, 67,
+ 70, 48, 45, 45, 46, 54, 56, 67, 70, 51, 47, 48, 48, 56, 58, 69, 73, 32, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 34, 34, 34, 35, 36,
+ 36, 38, 39, 39, 41, 44, 44, 44, 47, 48, 48, 51, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 34, 36, 37, 37, 39,
+ 41, 41, 42, 44, 45, 45, 47, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 36, 36, 37, 39, 39, 40, 42, 42, 42, 44, 45,
+ 45, 48, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 38, 38, 38, 40, 40, 40, 41, 43, 43, 43, 45, 46, 46, 48, 35, 35, 35,
+ 35, 34, 34, 34, 34, 35, 36, 36, 37, 37, 37, 39, 41, 41, 42, 45, 46, 46, 47, 48, 48, 49, 51, 51, 51, 53, 54, 54, 56, 36, 35, 35, 35, 35, 34, 34, 35,
+ 36, 36, 36, 37, 38, 38, 40, 42, 42, 43, 47, 48, 48, 49, 50, 50, 51, 53, 53, 54, 56, 56, 56, 58, 44, 43, 42, 42, 41, 41, 41, 41, 42, 42, 42, 42, 42,
+ 42, 44, 48, 48, 49, 52, 54, 54, 56, 58, 58, 60, 63, 63, 64, 66, 67, 67, 69, 47, 46, 45, 45, 45, 44, 44, 44, 44, 45, 45, 45, 45, 45, 47, 50, 50, 51,
+ 55, 56, 56, 58, 60, 60, 62, 66, 66, 67, 69, 70, 70, 73,
+ ],
+ [
+ 31, 37, 47, 47, 37, 44, 47, 45, 47, 47, 53, 53, 47, 45, 53, 59, 31, 31, 34, 37, 43, 48, 47, 49, 31, 32, 35, 40, 43, 46, 45, 46, 34, 35, 39, 43, 45,
+ 46, 45, 46, 37, 40, 43, 47, 47, 47, 45, 46, 43, 43, 45, 47, 49, 50, 50, 50, 48, 46, 46, 47, 50, 53, 55, 55, 47, 45, 45, 45, 50, 55, 58, 60, 49, 46,
+ 46, 46, 50, 55, 60, 61, 32, 31, 31, 30, 33, 33, 36, 38, 41, 47, 49, 48, 49, 49, 50, 50, 31, 31, 31, 31, 34, 34, 38, 40, 42, 46, 47, 47, 47, 47, 48,
+ 48, 31, 31, 31, 31, 34, 35, 39, 40, 42, 46, 47, 46, 46, 46, 47, 47, 30, 31, 31, 32, 34, 35, 40, 41, 42, 45, 46, 45, 45, 45, 46, 46, 33, 34, 34, 34,
+ 37, 38, 42, 43, 44, 46, 47, 46, 46, 45, 46, 46, 33, 34, 35, 35, 38, 39, 43, 44, 45, 47, 47, 46, 46, 45, 46, 46, 36, 38, 39, 40, 42, 43, 47, 47, 47,
+ 47, 48, 46, 46, 45, 46, 46, 38, 40, 40, 41, 43, 44, 47, 47, 48, 48, 49, 48, 47, 47, 47, 47, 41, 42, 42, 42, 44, 45, 47, 48, 48, 50, 50, 49, 49, 49,
+ 50, 50, 47, 46, 46, 45, 46, 47, 47, 48, 50, 52, 52, 52, 52, 52, 53, 53, 49, 47, 47, 46, 47, 47, 48, 49, 50, 52, 53, 53, 53, 53, 54, 54, 48, 47, 46,
+ 45, 46, 46, 46, 48, 49, 52, 53, 54, 55, 55, 56, 56, 49, 47, 46, 45, 46, 46, 46, 47, 49, 52, 53, 55, 55, 57, 57, 58, 49, 47, 46, 45, 45, 45, 45, 47,
+ 49, 52, 53, 55, 57, 58, 59, 60, 50, 48, 47, 46, 46, 46, 46, 47, 50, 53, 54, 56, 57, 59, 61, 61, 50, 48, 47, 46, 46, 46, 46, 47, 50, 53, 54, 56, 58,
+ 60, 61, 61, 32, 31, 31, 31, 31, 30, 30, 31, 33, 33, 33, 35, 36, 36, 38, 41, 41, 43, 47, 49, 49, 49, 48, 48, 49, 49, 49, 49, 50, 50, 50, 51, 31, 31,
+ 31, 31, 31, 31, 31, 31, 33, 34, 34, 36, 37, 37, 39, 42, 42, 43, 47, 48, 48, 48, 47, 47, 47, 47, 47, 48, 49, 49, 49, 50, 31, 31, 31, 31, 31, 31, 31,
+ 32, 34, 34, 34, 37, 38, 38, 40, 42, 42, 43, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 49, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 37,
+ 38, 38, 40, 42, 42, 43, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 49, 31, 31, 31, 31, 31, 31, 31, 32, 34, 35, 35, 37, 39, 39, 40, 42, 42,
+ 43, 46, 47, 47, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 48, 30, 31, 31, 31, 31, 32, 32, 32, 34, 35, 35, 38, 40, 40, 41, 42, 42, 43, 45, 46, 46, 46,
+ 45, 45, 45, 45, 45, 45, 46, 46, 46, 47, 30, 31, 31, 31, 31, 32, 32, 32, 34, 35, 35, 38, 40, 40, 41, 42, 42, 43, 45, 46, 46, 46, 45, 45, 45, 45, 45,
+ 45, 46, 46, 46, 47, 31, 31, 32, 32, 32, 32, 32, 33, 35, 36, 36, 38, 40, 40, 41, 43, 43, 43, 46, 46, 46, 46, 45, 45, 45, 45, 45, 45, 46, 46, 46, 47,
+ 33, 33, 34, 34, 34, 34, 34, 35, 37, 38, 38, 41, 42, 42, 43, 44, 44, 45, 46, 47, 47, 46, 46, 46, 46, 45, 45, 45, 46, 46, 46, 47, 33, 34, 34, 34, 35,
+ 35, 35, 36, 38, 39, 39, 41, 43, 43, 44, 45, 45, 45, 47, 47, 47, 46, 46, 46, 46, 45, 45, 45, 46, 46, 46, 47, 33, 34, 34, 34, 35, 35, 35, 36, 38, 39,
+ 39, 41, 43, 43, 44, 45, 45, 45, 47, 47, 47, 46, 46, 46, 46, 45, 45, 45, 46, 46, 46, 47, 35, 36, 37, 37, 37, 38, 38, 38, 41, 41, 41, 44, 46, 46, 46,
+ 46, 46, 46, 47, 47, 47, 47, 46, 46, 46, 45, 45, 45, 46, 46, 46, 47, 36, 37, 38, 38, 39, 40, 40, 40, 42, 43, 43, 46, 47, 47, 47, 47, 47, 47, 47, 48,
+ 48, 47, 46, 46, 46, 45, 45, 45, 46, 46, 46, 46, 36, 37, 38, 38, 39, 40, 40, 40, 42, 43, 43, 46, 47, 47, 47, 47, 47, 47, 47, 48, 48, 47, 46, 46, 46,
+ 45, 45, 45, 46, 46, 46, 46, 38, 39, 40, 40, 40, 41, 41, 41, 43, 44, 44, 46, 47, 47, 47, 48, 48, 48, 48, 49, 49, 48, 48, 48, 47, 47, 47, 47, 47, 47,
+ 47, 48, 41, 42, 42, 42, 42, 42, 42, 43, 44, 45, 45, 46, 47, 47, 48, 48, 48, 49, 50, 50, 50, 50, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 41, 42, 42,
+ 42, 42, 42, 42, 43, 44, 45, 45, 46, 47, 47, 48, 48, 48, 49, 50, 50, 50, 50, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 43, 43, 43, 43, 43, 43, 43, 43,
+ 45, 45, 45, 46, 47, 47, 48, 49, 49, 49, 50, 51, 51, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 47, 47, 46, 46, 46, 45, 45, 46, 46, 47, 47, 47, 47,
+ 47, 48, 50, 50, 50, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 49, 48, 47, 47, 47, 46, 46, 46, 47, 47, 47, 47, 48, 48, 49, 50, 50, 51,
+ 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 49, 48, 47, 47, 47, 46, 46, 46, 47, 47, 47, 47, 48, 48, 49, 50, 50, 51, 52, 53, 53, 53, 53,
+ 53, 53, 53, 53, 53, 54, 54, 54, 54, 49, 48, 47, 47, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 48, 50, 50, 50, 52, 53, 53, 53, 54, 54, 54, 55, 55, 55,
+ 55, 55, 55, 56, 48, 47, 47, 47, 46, 45, 45, 45, 46, 46, 46, 46, 46, 46, 48, 49, 49, 50, 52, 53, 53, 54, 54, 54, 55, 55, 55, 56, 56, 56, 56, 57, 48,
+ 47, 47, 47, 46, 45, 45, 45, 46, 46, 46, 46, 46, 46, 48, 49, 49, 50, 52, 53, 53, 54, 54, 54, 55, 55, 55, 56, 56, 56, 56, 57, 49, 47, 47, 47, 46, 45,
+ 45, 45, 46, 46, 46, 46, 46, 46, 47, 49, 49, 50, 52, 53, 53, 54, 55, 55, 55, 57, 57, 57, 57, 58, 58, 58, 49, 47, 47, 47, 46, 45, 45, 45, 45, 45, 45,
+ 45, 45, 45, 47, 49, 49, 50, 52, 53, 53, 55, 55, 55, 57, 58, 58, 59, 59, 60, 60, 60, 49, 47, 47, 47, 46, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47, 49,
+ 49, 50, 52, 53, 53, 55, 55, 55, 57, 58, 58, 59, 59, 60, 60, 60, 49, 48, 47, 47, 46, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47, 49, 49, 50, 52, 53, 53,
+ 55, 56, 56, 57, 59, 59, 59, 60, 60, 60, 61, 50, 49, 48, 48, 47, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 50, 50, 50, 53, 54, 54, 55, 56, 56, 57, 59,
+ 59, 60, 61, 61, 61, 62, 50, 49, 48, 48, 47, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 50, 50, 50, 53, 54, 54, 55, 56, 56, 58, 60, 60, 60, 61, 61, 61,
+ 63, 50, 49, 48, 48, 47, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 50, 50, 50, 53, 54, 54, 55, 56, 56, 58, 60, 60, 60, 61, 61, 61, 63, 51, 50, 49, 49,
+ 48, 47, 47, 47, 47, 47, 47, 47, 46, 46, 48, 50, 50, 51, 53, 54, 54, 56, 57, 57, 58, 60, 60, 61, 62, 63, 63, 64, 31, 38, 47, 48, 31, 40, 46, 45, 35,
+ 43, 47, 46, 39, 47, 47, 45, 43, 47, 50, 50, 47, 47, 53, 55, 46, 46, 53, 58, 48, 46, 54, 59, 31, 31, 35, 39, 43, 47, 46, 48, 38, 40, 43, 47, 47, 47,
+ 46, 46, 47, 46, 47, 47, 50, 53, 53, 54, 48, 45, 46, 45, 50, 55, 58, 59, 32, 31, 33, 37, 45, 48, 49, 50, 31, 31, 34, 38, 45, 47, 47, 48, 31, 32, 34,
+ 39, 45, 46, 46, 47, 30, 32, 35, 40, 44, 46, 45, 46, 33, 35, 37, 42, 46, 47, 45, 46, 33, 36, 38, 43, 46, 47, 46, 46, 37, 40, 43, 47, 47, 47, 45, 46,
+ 39, 41, 43, 47, 48, 48, 47, 47, 42, 43, 44, 47, 49, 50, 49, 50, 47, 46, 46, 48, 51, 52, 53, 53, 49, 46, 47, 48, 52, 53, 53, 54, 48, 46, 46, 47, 51,
+ 53, 56, 56, 48, 45, 46, 46, 51, 53, 57, 57, 49, 45, 45, 46, 51, 53, 58, 59, 50, 46, 46, 46, 52, 54, 59, 61, 50, 46, 46, 46, 52, 54, 59, 61, 32, 31,
+ 31, 30, 33, 33, 37, 39, 42, 47, 49, 48, 48, 49, 50, 50, 31, 31, 32, 32, 35, 36, 40, 41, 43, 46, 46, 46, 45, 45, 46, 46, 33, 34, 34, 35, 37, 38, 43,
+ 43, 44, 46, 47, 46, 46, 45, 46, 46, 37, 38, 39, 40, 42, 43, 47, 47, 47, 48, 48, 47, 46, 46, 46, 46, 45, 45, 45, 44, 46, 46, 47, 48, 49, 51, 52, 51,
+ 51, 51, 52, 52, 48, 47, 46, 46, 47, 47, 47, 48, 50, 52, 53, 53, 53, 53, 54, 54, 49, 47, 46, 45, 45, 46, 45, 47, 49, 53, 53, 56, 57, 58, 59, 59, 50,
+ 48, 47, 46, 46, 46, 46, 47, 50, 53, 54, 56, 57, 59, 61, 61, 32, 31, 31, 31, 33, 37, 37, 38, 45, 48, 48, 49, 49, 49, 50, 52, 31, 31, 31, 31, 33, 38,
+ 38, 39, 45, 47, 47, 48, 48, 48, 49, 51, 31, 31, 31, 31, 34, 38, 38, 40, 45, 47, 47, 47, 47, 47, 48, 50, 31, 31, 31, 31, 34, 38, 38, 40, 45, 47, 47,
+ 47, 47, 47, 48, 50, 31, 31, 32, 32, 34, 39, 39, 40, 45, 46, 46, 46, 46, 46, 47, 49, 30, 31, 32, 32, 35, 40, 40, 41, 44, 46, 46, 45, 45, 45, 46, 48,
+ 30, 31, 32, 32, 35, 40, 40, 41, 44, 46, 46, 45, 45, 45, 46, 48, 31, 32, 33, 33, 35, 40, 40, 41, 45, 46, 46, 45, 45, 45, 46, 48, 33, 34, 35, 35, 37,
+ 42, 42, 43, 46, 47, 47, 46, 45, 45, 46, 47, 33, 35, 36, 36, 38, 43, 43, 44, 46, 47, 47, 46, 46, 46, 46, 47, 33, 35, 36, 36, 38, 43, 43, 44, 46, 47,
+ 47, 46, 46, 46, 46, 47, 35, 37, 38, 38, 41, 45, 45, 46, 47, 47, 47, 46, 45, 45, 46, 47, 37, 39, 40, 40, 43, 47, 47, 47, 47, 47, 47, 46, 45, 45, 46,
+ 47, 37, 39, 40, 40, 43, 47, 47, 47, 47, 47, 47, 46, 45, 45, 46, 47, 39, 40, 41, 41, 43, 47, 47, 47, 48, 48, 48, 47, 47, 47, 47, 48, 42, 42, 43, 43,
+ 44, 47, 47, 48, 49, 50, 50, 49, 49, 49, 50, 50, 42, 42, 43, 43, 44, 47, 47, 48, 49, 50, 50, 49, 49, 49, 50, 50, 43, 43, 43, 43, 45, 47, 47, 48, 50,
+ 50, 50, 50, 50, 50, 50, 51, 47, 46, 46, 46, 46, 48, 48, 48, 51, 52, 52, 52, 53, 53, 53, 53, 49, 47, 46, 46, 47, 48, 48, 49, 52, 53, 53, 53, 53, 53,
+ 54, 54, 49, 47, 46, 46, 47, 48, 48, 49, 52, 53, 53, 53, 53, 53, 54, 54, 48, 47, 46, 46, 46, 47, 47, 48, 52, 53, 53, 54, 55, 55, 55, 56, 48, 47, 46,
+ 46, 46, 47, 47, 48, 51, 53, 53, 54, 56, 56, 56, 57, 48, 47, 46, 46, 46, 47, 47, 48, 51, 53, 53, 54, 56, 56, 56, 57, 48, 47, 45, 45, 46, 46, 46, 47,
+ 51, 53, 53, 55, 57, 57, 57, 59, 49, 46, 45, 45, 45, 46, 46, 47, 51, 53, 53, 56, 58, 58, 59, 61, 49, 46, 45, 45, 45, 46, 46, 47, 51, 53, 53, 56, 58,
+ 58, 59, 61, 49, 47, 45, 45, 45, 46, 46, 47, 52, 53, 53, 56, 58, 58, 60, 62, 50, 48, 46, 46, 46, 46, 46, 48, 52, 54, 54, 57, 59, 59, 61, 63, 50, 48,
+ 46, 46, 46, 46, 46, 48, 52, 54, 54, 57, 59, 59, 61, 64, 50, 48, 46, 46, 46, 46, 46, 48, 52, 54, 54, 57, 59, 59, 61, 64, 51, 49, 47, 47, 47, 47, 47,
+ 48, 52, 54, 54, 58, 60, 60, 62, 65, 32, 31, 31, 31, 31, 30, 30, 31, 33, 33, 33, 35, 37, 37, 39, 42, 42, 43, 47, 49, 49, 48, 48, 48, 48, 49, 49, 49,
+ 50, 50, 50, 51, 31, 31, 31, 31, 31, 31, 31, 32, 34, 35, 35, 37, 39, 39, 40, 42, 42, 43, 46, 47, 47, 47, 47, 47, 47, 46, 46, 47, 48, 48, 48, 49, 31,
+ 31, 31, 31, 32, 32, 32, 33, 35, 36, 36, 38, 40, 40, 41, 43, 43, 43, 46, 46, 46, 46, 46, 46, 45, 45, 45, 45, 46, 46, 46, 47, 31, 31, 31, 31, 32, 32,
+ 32, 33, 35, 36, 36, 38, 40, 40, 41, 43, 43, 43, 46, 46, 46, 46, 46, 46, 45, 45, 45, 45, 46, 46, 46, 47, 33, 33, 34, 34, 34, 35, 35, 35, 37, 38, 38,
+ 41, 43, 43, 43, 44, 44, 45, 46, 47, 47, 46, 46, 46, 46, 45, 45, 45, 46, 46, 46, 47, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 45, 47, 47, 47, 47,
+ 47, 47, 48, 48, 48, 47, 47, 47, 46, 46, 46, 46, 46, 46, 46, 47, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 45, 47, 47, 47, 47, 47, 47, 48, 48, 48,
+ 47, 47, 47, 46, 46, 46, 46, 46, 46, 46, 47, 38, 39, 40, 40, 40, 41, 41, 41, 43, 44, 44, 46, 47, 47, 47, 48, 48, 48, 48, 49, 49, 48, 48, 48, 47, 47,
+ 47, 47, 48, 48, 48, 48, 45, 45, 45, 45, 45, 44, 44, 45, 46, 46, 46, 47, 47, 47, 48, 49, 49, 50, 51, 52, 52, 52, 51, 51, 51, 51, 51, 52, 52, 52, 52,
+ 52, 48, 47, 47, 47, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 50, 50, 50, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 48, 47, 47, 47,
+ 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 50, 50, 50, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 49, 48, 47, 47, 46, 45, 45, 45, 46,
+ 46, 46, 46, 46, 46, 47, 49, 49, 50, 52, 53, 53, 54, 54, 54, 55, 56, 56, 56, 57, 57, 57, 58, 49, 48, 47, 47, 46, 45, 45, 45, 45, 46, 46, 45, 45, 45,
+ 47, 49, 49, 50, 53, 53, 53, 55, 56, 56, 57, 58, 58, 58, 59, 59, 59, 60, 49, 48, 47, 47, 46, 45, 45, 45, 45, 46, 46, 45, 45, 45, 47, 49, 49, 50, 53,
+ 53, 53, 55, 56, 56, 57, 58, 58, 58, 59, 59, 59, 60, 50, 49, 48, 48, 47, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 50, 50, 50, 53, 54, 54, 55, 56, 56,
+ 57, 59, 59, 60, 61, 61, 61, 62, 52, 51, 50, 50, 49, 48, 48, 48, 47, 47, 47, 47, 47, 47, 48, 50, 50, 51, 53, 54, 54, 56, 57, 57, 59, 61, 61, 62, 63,
+ 64, 64, 65, 31, 37, 48, 49, 31, 38, 47, 47, 31, 39, 46, 46, 31, 40, 46, 45, 34, 42, 47, 45, 35, 43, 47, 46, 39, 47, 47, 45, 40, 47, 48, 47, 42, 47,
+ 50, 49, 46, 48, 52, 53, 47, 48, 53, 53, 47, 47, 53, 56, 47, 46, 53, 57, 46, 46, 53, 58, 48, 46, 54, 59, 48, 46, 54, 59, 31, 31, 31, 31, 34, 35, 39,
+ 40, 42, 46, 47, 47, 47, 46, 48, 48, 37, 38, 39, 40, 42, 43, 47, 47, 47, 48, 48, 47, 46, 46, 46, 46, 48, 47, 46, 46, 47, 47, 47, 48, 50, 52, 53, 53,
+ 53, 53, 54, 54, 49, 47, 46, 45, 45, 46, 45, 47, 49, 53, 53, 56, 57, 58, 59, 59, 32, 31, 33, 37, 45, 48, 49, 50, 31, 31, 33, 38, 45, 47, 48, 49, 31,
+ 31, 34, 38, 45, 47, 47, 48, 31, 31, 34, 38, 45, 47, 47, 48, 31, 32, 34, 39, 45, 46, 46, 47, 30, 32, 35, 40, 44, 46, 45, 46, 30, 32, 35, 40, 44, 46,
+ 45, 46, 31, 33, 35, 40, 45, 46, 45, 46, 33, 35, 37, 42, 46, 47, 45, 46, 33, 36, 38, 43, 46, 47, 46, 46, 33, 36, 38, 43, 46, 47, 46, 46, 35, 38, 41,
+ 45, 47, 47, 45, 46, 37, 40, 43, 47, 47, 47, 45, 46, 37, 40, 43, 47, 47, 47, 45, 46, 39, 41, 43, 47, 48, 48, 47, 47, 42, 43, 44, 47, 49, 50, 49, 50,
+ 42, 43, 44, 47, 49, 50, 49, 50, 43, 43, 45, 47, 50, 50, 50, 50, 47, 46, 46, 48, 51, 52, 53, 53, 49, 46, 47, 48, 52, 53, 53, 54, 49, 46, 47, 48, 52,
+ 53, 53, 54, 48, 46, 46, 47, 52, 53, 55, 55, 48, 46, 46, 47, 51, 53, 56, 56, 48, 46, 46, 47, 51, 53, 56, 56, 48, 45, 46, 46, 51, 53, 57, 57, 49, 45,
+ 45, 46, 51, 53, 58, 59, 49, 45, 45, 46, 51, 53, 58, 59, 49, 45, 45, 46, 52, 53, 58, 60, 50, 46, 46, 46, 52, 54, 59, 61, 50, 46, 46, 46, 52, 54, 59,
+ 61, 50, 46, 46, 46, 52, 54, 59, 61, 51, 47, 47, 47, 52, 54, 60, 62, 32, 31, 31, 31, 31, 30, 30, 31, 33, 33, 33, 35, 37, 37, 39, 42, 42, 43, 47, 49,
+ 49, 48, 48, 48, 48, 49, 49, 49, 50, 50, 50, 51, 31, 31, 31, 31, 32, 32, 32, 33, 35, 36, 36, 38, 40, 40, 41, 43, 43, 43, 46, 46, 46, 46, 46, 46, 45,
+ 45, 45, 45, 46, 46, 46, 47, 33, 33, 34, 34, 34, 35, 35, 35, 37, 38, 38, 41, 43, 43, 43, 44, 44, 45, 46, 47, 47, 46, 46, 46, 46, 45, 45, 45, 46, 46,
+ 46, 47, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 45, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 47, 47, 46, 46, 46, 46, 46, 46, 46, 47, 45, 45, 45,
+ 45, 45, 44, 44, 45, 46, 46, 46, 47, 47, 47, 48, 49, 49, 50, 51, 52, 52, 52, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 48, 47, 47, 47, 46, 46, 46, 46,
+ 47, 47, 47, 47, 47, 47, 48, 50, 50, 50, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 49, 48, 47, 47, 46, 45, 45, 45, 45, 46, 46, 45, 45,
+ 45, 47, 49, 49, 50, 53, 53, 53, 55, 56, 56, 57, 58, 58, 58, 59, 59, 59, 60, 50, 49, 48, 48, 47, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 50, 50, 50,
+ 53, 54, 54, 55, 56, 56, 57, 59, 59, 60, 61, 61, 61, 62,
+ ],
+ ],
+ [
+ [
+ 32, 32, 34, 38, 32, 33, 35, 39, 34, 35, 39, 45, 38, 39, 45, 54, 31, 31, 32, 32, 33, 34, 37, 41, 31, 32, 32, 32, 33, 34, 36, 39, 32, 32, 32, 33, 34,
+ 35, 37, 40, 32, 32, 33, 34, 35, 36, 38, 41, 33, 33, 34, 35, 37, 39, 41, 44, 34, 34, 35, 36, 39, 43, 46, 49, 37, 36, 37, 38, 41, 46, 51, 54, 41, 39,
+ 40, 41, 44, 49, 54, 58, 32, 31, 31, 31, 31, 31, 31, 32, 32, 34, 34, 36, 36, 39, 39, 44, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 35, 35, 38, 38,
+ 42, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 35, 35, 38, 38, 42, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 37, 37, 41, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 33, 34, 34, 37, 37, 41, 31, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 39, 39, 42, 31, 32, 32, 32, 32, 33, 33, 34, 34,
+ 35, 35, 36, 36, 39, 39, 42, 32, 32, 32, 32, 32, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 42, 32, 32, 32, 32, 32, 34, 34, 35, 35, 37, 37, 38, 38, 40,
+ 40, 42, 34, 34, 34, 33, 33, 35, 35, 37, 37, 39, 39, 42, 42, 45, 45, 47, 34, 34, 34, 33, 33, 35, 35, 37, 37, 39, 39, 42, 42, 45, 45, 47, 36, 35, 35,
+ 34, 34, 36, 36, 38, 38, 42, 42, 48, 48, 50, 50, 54, 36, 35, 35, 34, 34, 36, 36, 38, 38, 42, 42, 48, 48, 50, 50, 54, 39, 38, 38, 37, 37, 39, 39, 40,
+ 40, 45, 45, 50, 50, 54, 54, 58, 39, 38, 38, 37, 37, 39, 39, 40, 40, 45, 45, 50, 50, 54, 54, 58, 44, 42, 42, 41, 41, 42, 42, 42, 42, 47, 47, 54, 54,
+ 58, 58, 63, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 33, 34, 34, 34, 35, 36, 36, 36, 37, 39, 39, 39, 41, 44, 44, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 37, 39, 39, 39, 41, 43, 43, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 37, 38, 38, 38, 40, 42, 42, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 37, 38, 38, 38, 40, 42, 42, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 33, 34, 34, 34, 34, 35, 35, 35, 37, 38, 38, 38, 40, 42, 42, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34,
+ 35, 35, 35, 36, 38, 38, 38, 39, 41, 41, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 36, 37,
+ 37, 37, 39, 41, 41, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 36, 37, 37, 37, 39, 41, 41,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 36, 37, 37, 37, 39, 41, 41, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 37, 38, 38, 38, 40, 41, 41, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33,
+ 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 36, 36, 36, 36, 38, 39, 39, 39, 40, 42, 42, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34,
+ 34, 34, 34, 35, 35, 35, 36, 36, 36, 36, 38, 39, 39, 39, 40, 42, 42, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35,
+ 35, 36, 36, 36, 36, 38, 39, 39, 39, 40, 42, 42, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 36, 36, 36, 36, 37, 37, 37,
+ 38, 40, 40, 40, 41, 42, 42, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 37, 38, 38, 38, 39, 40, 40, 40, 41,
+ 42, 42, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 37, 38, 38, 38, 39, 40, 40, 40, 41, 42, 42, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 37, 38, 38, 38, 39, 40, 40, 40, 41, 42, 42, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 34, 34, 34, 34, 35, 36, 36, 36, 37, 38, 38, 38, 39, 40, 40, 40, 41, 42, 42, 42, 44, 45, 45, 34, 34, 34, 34, 34, 34, 33, 33, 33, 34, 35, 35, 35,
+ 36, 37, 37, 37, 38, 39, 39, 39, 41, 42, 42, 42, 44, 45, 45, 45, 46, 47, 47, 34, 34, 34, 34, 34, 34, 33, 33, 33, 34, 35, 35, 35, 36, 37, 37, 37, 38,
+ 39, 39, 39, 41, 42, 42, 42, 44, 45, 45, 45, 46, 47, 47, 34, 34, 34, 34, 34, 34, 33, 33, 33, 34, 35, 35, 35, 36, 37, 37, 37, 38, 39, 39, 39, 41, 42,
+ 42, 42, 44, 45, 45, 45, 46, 47, 47, 35, 34, 34, 34, 34, 34, 34, 34, 34, 35, 36, 36, 36, 36, 37, 37, 37, 39, 41, 41, 41, 43, 45, 45, 45, 46, 47, 47,
+ 47, 49, 50, 50, 36, 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36, 37, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 54, 54, 36,
+ 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36, 37, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 54, 54, 36, 35, 35, 35, 35, 35,
+ 34, 34, 34, 35, 36, 36, 36, 37, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 54, 54, 37, 37, 37, 37, 37, 36, 36, 36, 36, 37, 38,
+ 38, 38, 38, 39, 39, 39, 41, 44, 44, 44, 46, 49, 49, 49, 51, 52, 52, 52, 54, 56, 56, 39, 39, 38, 38, 38, 38, 37, 37, 37, 38, 39, 39, 39, 40, 40, 40,
+ 40, 42, 45, 45, 45, 47, 50, 50, 50, 52, 54, 54, 54, 56, 58, 58, 39, 39, 38, 38, 38, 38, 37, 37, 37, 38, 39, 39, 39, 40, 40, 40, 40, 42, 45, 45, 45,
+ 47, 50, 50, 50, 52, 54, 54, 54, 56, 58, 58, 39, 39, 38, 38, 38, 38, 37, 37, 37, 38, 39, 39, 39, 40, 40, 40, 40, 42, 45, 45, 45, 47, 50, 50, 50, 52,
+ 54, 54, 54, 56, 58, 58, 41, 41, 40, 40, 40, 39, 39, 39, 39, 40, 40, 40, 40, 41, 41, 41, 41, 44, 46, 46, 46, 49, 52, 52, 52, 54, 56, 56, 56, 58, 60,
+ 60, 44, 43, 42, 42, 42, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 45, 47, 47, 47, 50, 54, 54, 54, 56, 58, 58, 58, 60, 63, 63, 44, 43, 42, 42,
+ 42, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 45, 47, 47, 47, 50, 54, 54, 54, 56, 58, 58, 58, 60, 63, 63, 31, 32, 34, 39, 32, 32, 34, 38, 32,
+ 33, 34, 38, 32, 33, 36, 40, 33, 34, 38, 42, 34, 36, 41, 47, 37, 38, 44, 52, 40, 40, 46, 56, 31, 32, 32, 32, 33, 34, 37, 40, 32, 32, 33, 33, 34, 36,
+ 38, 40, 34, 34, 34, 36, 38, 41, 44, 46, 39, 38, 38, 40, 42, 47, 52, 56, 32, 31, 31, 32, 32, 36, 36, 44, 31, 32, 32, 32, 32, 35, 35, 42, 31, 32, 32,
+ 32, 32, 35, 35, 42, 31, 32, 32, 33, 33, 34, 34, 41, 31, 32, 32, 33, 33, 34, 34, 41, 32, 32, 32, 34, 34, 36, 36, 42, 32, 32, 32, 34, 34, 36, 36, 42,
+ 32, 33, 33, 35, 35, 38, 38, 42, 32, 33, 33, 35, 35, 38, 38, 42, 34, 34, 34, 37, 37, 42, 42, 48, 34, 34, 34, 37, 37, 42, 42, 48, 36, 34, 34, 38, 38,
+ 48, 48, 54, 36, 34, 34, 38, 38, 48, 48, 54, 39, 37, 37, 40, 40, 50, 50, 58, 39, 37, 37, 40, 40, 50, 50, 58, 44, 41, 41, 43, 43, 53, 53, 63, 32, 31,
+ 31, 31, 31, 32, 32, 32, 32, 34, 34, 36, 36, 39, 39, 44, 31, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 37, 37, 41, 31, 32, 32, 32, 32, 32, 32,
+ 33, 33, 34, 34, 34, 34, 37, 37, 41, 32, 32, 32, 33, 33, 34, 34, 35, 35, 37, 37, 38, 38, 40, 40, 43, 32, 32, 32, 33, 33, 34, 34, 35, 35, 37, 37, 38,
+ 38, 40, 40, 43, 36, 35, 35, 34, 34, 36, 36, 38, 38, 42, 42, 48, 48, 50, 50, 53, 36, 35, 35, 34, 34, 36, 36, 38, 38, 42, 42, 48, 48, 50, 50, 53, 44,
+ 42, 42, 41, 41, 42, 42, 42, 42, 48, 48, 54, 54, 58, 58, 63, 32, 31, 31, 31, 31, 32, 32, 32, 32, 34, 36, 36, 36, 39, 44, 44, 31, 31, 31, 31, 31, 32,
+ 32, 32, 32, 34, 35, 35, 35, 39, 43, 43, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 35, 35, 35, 38, 42, 42, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 35,
+ 35, 35, 38, 42, 42, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 35, 35, 35, 38, 42, 42, 31, 32, 32, 32, 32, 32, 32, 32, 32, 34, 35, 35, 35, 38, 41, 41,
+ 31, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 37, 41, 41, 31, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 37, 41, 41, 31, 32, 32, 32, 32,
+ 32, 33, 33, 33, 33, 34, 34, 34, 37, 41, 41, 31, 32, 32, 32, 32, 33, 33, 33, 33, 34, 35, 35, 35, 38, 41, 41, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35,
+ 36, 36, 36, 39, 42, 42, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 36, 36, 36, 39, 42, 42, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 36, 36, 36, 39, 42,
+ 42, 32, 32, 32, 32, 32, 33, 34, 34, 34, 36, 37, 37, 37, 40, 42, 42, 32, 32, 33, 33, 33, 34, 35, 35, 35, 37, 38, 38, 38, 40, 42, 42, 32, 32, 33, 33,
+ 33, 34, 35, 35, 35, 37, 38, 38, 38, 40, 42, 42, 32, 32, 33, 33, 33, 34, 35, 35, 35, 37, 38, 38, 38, 40, 42, 42, 33, 33, 33, 33, 33, 34, 36, 36, 36,
+ 38, 40, 40, 40, 42, 45, 45, 34, 34, 34, 34, 34, 35, 37, 37, 37, 39, 42, 42, 42, 45, 48, 48, 34, 34, 34, 34, 34, 35, 37, 37, 37, 39, 42, 42, 42, 45,
+ 48, 48, 34, 34, 34, 34, 34, 35, 37, 37, 37, 39, 42, 42, 42, 45, 48, 48, 35, 34, 34, 34, 34, 36, 37, 37, 37, 41, 45, 45, 45, 47, 50, 50, 36, 35, 34,
+ 34, 34, 36, 38, 38, 38, 43, 48, 48, 48, 51, 54, 54, 36, 35, 34, 34, 34, 36, 38, 38, 38, 43, 48, 48, 48, 51, 54, 54, 36, 35, 34, 34, 34, 36, 38, 38,
+ 38, 43, 48, 48, 48, 51, 54, 54, 37, 37, 36, 36, 36, 38, 39, 39, 39, 44, 49, 49, 49, 52, 56, 56, 39, 38, 37, 37, 37, 39, 40, 40, 40, 45, 50, 50, 50,
+ 54, 58, 58, 39, 38, 37, 37, 37, 39, 40, 40, 40, 45, 50, 50, 50, 54, 58, 58, 39, 38, 37, 37, 37, 39, 40, 40, 40, 45, 50, 50, 50, 54, 58, 58, 41, 40,
+ 39, 39, 39, 40, 42, 42, 42, 46, 52, 52, 52, 56, 60, 60, 44, 42, 41, 41, 41, 42, 43, 43, 43, 48, 53, 53, 53, 58, 63, 63, 44, 42, 41, 41, 41, 42, 43,
+ 43, 43, 48, 53, 53, 53, 58, 63, 63, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 35, 36, 36, 36, 37, 39, 39,
+ 39, 41, 44, 44, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 37, 38, 38, 38, 40, 42, 42, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 36, 37, 37, 37, 39, 41, 41, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 36, 37, 37, 37, 39, 41, 41, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 36, 37, 37, 37, 39, 41, 41, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34,
+ 34, 34, 35, 35, 35, 36, 36, 36, 36, 38, 39, 39, 39, 40, 42, 42, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37,
+ 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 37, 38, 38, 38, 39,
+ 40, 40, 40, 42, 43, 43, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43,
+ 43, 34, 34, 34, 34, 34, 34, 33, 33, 33, 34, 35, 35, 35, 36, 37, 37, 37, 38, 39, 39, 39, 41, 43, 43, 43, 44, 45, 45, 45, 46, 48, 48, 36, 35, 35, 35,
+ 35, 35, 34, 34, 34, 35, 36, 36, 36, 37, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 53, 53, 36, 35, 35, 35, 35, 35, 34, 34, 34,
+ 35, 36, 36, 36, 37, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 53, 53, 36, 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36, 37,
+ 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 53, 53, 39, 39, 38, 38, 38, 38, 37, 37, 37, 38, 39, 39, 39, 40, 40, 40, 40, 42, 45,
+ 45, 45, 47, 51, 51, 51, 52, 54, 54, 54, 56, 58, 58, 44, 43, 42, 42, 42, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 45, 48, 48, 48, 50, 54, 54,
+ 54, 56, 58, 58, 58, 60, 63, 63, 44, 43, 42, 42, 42, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 45, 48, 48, 48, 50, 54, 54, 54, 56, 58, 58, 58,
+ 60, 63, 63, 31, 32, 34, 39, 32, 32, 34, 38, 32, 32, 34, 38, 32, 32, 33, 37, 32, 32, 33, 37, 32, 33, 35, 39, 32, 33, 35, 39, 32, 34, 37, 40, 32, 34,
+ 37, 40, 34, 35, 39, 45, 34, 35, 39, 45, 35, 36, 43, 51, 35, 36, 43, 51, 38, 39, 45, 54, 38, 39, 45, 54, 42, 42, 48, 58, 31, 32, 32, 32, 32, 32, 32,
+ 32, 32, 34, 34, 35, 35, 38, 38, 42, 32, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 39, 39, 42, 34, 34, 34, 33, 33, 35, 35, 37, 37, 39, 39, 43,
+ 43, 45, 45, 48, 39, 38, 38, 37, 37, 39, 39, 40, 40, 45, 45, 51, 51, 54, 54, 58, 32, 31, 31, 32, 32, 36, 36, 44, 31, 31, 31, 32, 32, 35, 35, 43, 31,
+ 32, 32, 32, 32, 35, 35, 42, 31, 32, 32, 32, 32, 35, 35, 42, 31, 32, 32, 32, 32, 35, 35, 42, 31, 32, 32, 32, 32, 35, 35, 41, 31, 32, 32, 33, 33, 34,
+ 34, 41, 31, 32, 32, 33, 33, 34, 34, 41, 31, 32, 32, 33, 33, 34, 34, 41, 31, 32, 32, 33, 33, 35, 35, 41, 32, 32, 32, 34, 34, 36, 36, 42, 32, 32, 32,
+ 34, 34, 36, 36, 42, 32, 32, 32, 34, 34, 36, 36, 42, 32, 32, 32, 34, 34, 37, 37, 42, 32, 33, 33, 35, 35, 38, 38, 42, 32, 33, 33, 35, 35, 38, 38, 42,
+ 32, 33, 33, 35, 35, 38, 38, 42, 33, 33, 33, 36, 36, 40, 40, 45, 34, 34, 34, 37, 37, 42, 42, 48, 34, 34, 34, 37, 37, 42, 42, 48, 34, 34, 34, 37, 37,
+ 42, 42, 48, 35, 34, 34, 37, 37, 45, 45, 50, 36, 34, 34, 38, 38, 48, 48, 54, 36, 34, 34, 38, 38, 48, 48, 54, 36, 34, 34, 38, 38, 48, 48, 54, 37, 36,
+ 36, 39, 39, 49, 49, 56, 39, 37, 37, 40, 40, 50, 50, 58, 39, 37, 37, 40, 40, 50, 50, 58, 39, 37, 37, 40, 40, 50, 50, 58, 41, 39, 39, 42, 42, 52, 52,
+ 60, 44, 41, 41, 43, 43, 53, 53, 63, 44, 41, 41, 43, 43, 53, 53, 63, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34,
+ 34, 35, 36, 36, 36, 37, 39, 39, 39, 41, 44, 44, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34,
+ 36, 37, 37, 37, 39, 41, 41, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 36, 37, 37, 37, 39,
+ 41, 41, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 36, 37, 37, 37, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 36, 35, 35, 35, 35, 35, 34, 34,
+ 34, 35, 36, 36, 36, 37, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 53, 53, 36, 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36,
+ 37, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 49, 50, 50, 50, 52, 53, 53, 44, 43, 42, 42, 42, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 45,
+ 48, 48, 48, 50, 54, 54, 54, 56, 58, 58, 58, 60, 63, 63,
+ ],
+ [
+ 31, 34, 42, 47, 34, 39, 45, 46, 42, 45, 48, 49, 47, 46, 49, 54, 31, 31, 32, 35, 39, 45, 48, 48, 31, 31, 33, 37, 41, 44, 46, 46, 32, 33, 35, 39, 42,
+ 45, 46, 45, 35, 37, 39, 43, 45, 47, 47, 46, 39, 41, 42, 45, 47, 48, 48, 47, 45, 44, 45, 47, 48, 50, 51, 51, 48, 46, 46, 47, 48, 51, 53, 54, 48, 46,
+ 45, 46, 47, 51, 54, 56, 32, 31, 31, 30, 30, 33, 33, 36, 36, 41, 41, 49, 49, 48, 48, 49, 31, 31, 31, 31, 31, 34, 34, 38, 38, 42, 42, 47, 47, 47, 47,
+ 47, 31, 31, 31, 31, 31, 34, 34, 38, 38, 42, 42, 47, 47, 47, 47, 47, 30, 31, 31, 32, 32, 35, 35, 40, 40, 42, 42, 46, 46, 45, 45, 45, 30, 31, 31, 32,
+ 32, 35, 35, 40, 40, 42, 42, 46, 46, 45, 45, 45, 33, 34, 34, 35, 35, 39, 39, 43, 43, 45, 45, 47, 47, 46, 46, 45, 33, 34, 34, 35, 35, 39, 39, 43, 43,
+ 45, 45, 47, 47, 46, 46, 45, 36, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47, 48, 48, 46, 46, 45, 36, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47, 48, 48, 46,
+ 46, 45, 41, 42, 42, 42, 42, 45, 45, 47, 47, 48, 48, 50, 50, 49, 49, 49, 41, 42, 42, 42, 42, 45, 45, 47, 47, 48, 48, 50, 50, 49, 49, 49, 49, 47, 47,
+ 46, 46, 47, 47, 48, 48, 50, 50, 53, 53, 53, 53, 53, 49, 47, 47, 46, 46, 47, 47, 48, 48, 50, 50, 53, 53, 53, 53, 53, 48, 47, 47, 45, 45, 46, 46, 46,
+ 46, 49, 49, 53, 53, 54, 54, 55, 48, 47, 47, 45, 45, 46, 46, 46, 46, 49, 49, 53, 53, 54, 54, 55, 49, 47, 47, 45, 45, 45, 45, 45, 45, 49, 49, 53, 53,
+ 55, 55, 58, 32, 31, 31, 31, 31, 31, 30, 30, 30, 32, 33, 33, 33, 35, 36, 36, 36, 39, 41, 41, 41, 45, 49, 49, 49, 49, 48, 48, 48, 49, 49, 49, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 35, 37, 37, 37, 39, 42, 42, 42, 45, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 33, 34, 34, 34, 36, 38, 38, 38, 40, 42, 42, 42, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 34,
+ 34, 36, 38, 38, 38, 40, 42, 42, 42, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 34, 34, 36, 38, 38, 38,
+ 40, 42, 42, 42, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 35, 35, 35, 37, 39, 39, 39, 41, 42, 42, 42, 44,
+ 47, 47, 47, 46, 46, 46, 46, 46, 46, 46, 30, 31, 31, 31, 31, 31, 32, 32, 32, 33, 35, 35, 35, 37, 40, 40, 40, 41, 42, 42, 42, 44, 46, 46, 46, 46, 45,
+ 45, 45, 45, 45, 45, 30, 31, 31, 31, 31, 31, 32, 32, 32, 33, 35, 35, 35, 37, 40, 40, 40, 41, 42, 42, 42, 44, 46, 46, 46, 46, 45, 45, 45, 45, 45, 45,
+ 30, 31, 31, 31, 31, 31, 32, 32, 32, 33, 35, 35, 35, 37, 40, 40, 40, 41, 42, 42, 42, 44, 46, 46, 46, 46, 45, 45, 45, 45, 45, 45, 32, 32, 33, 33, 33,
+ 33, 33, 33, 33, 35, 37, 37, 37, 39, 41, 41, 41, 42, 43, 43, 43, 45, 47, 47, 47, 46, 46, 46, 46, 45, 45, 45, 33, 34, 34, 34, 34, 35, 35, 35, 35, 37,
+ 39, 39, 39, 41, 43, 43, 43, 44, 45, 45, 45, 46, 47, 47, 47, 47, 46, 46, 46, 46, 45, 45, 33, 34, 34, 34, 34, 35, 35, 35, 35, 37, 39, 39, 39, 41, 43,
+ 43, 43, 44, 45, 45, 45, 46, 47, 47, 47, 47, 46, 46, 46, 46, 45, 45, 33, 34, 34, 34, 34, 35, 35, 35, 35, 37, 39, 39, 39, 41, 43, 43, 43, 44, 45, 45,
+ 45, 46, 47, 47, 47, 47, 46, 46, 46, 46, 45, 45, 35, 35, 36, 36, 36, 37, 37, 37, 37, 39, 41, 41, 41, 43, 45, 45, 45, 45, 46, 46, 46, 47, 47, 47, 47,
+ 47, 46, 46, 46, 46, 45, 45, 36, 37, 38, 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 46, 46, 46, 46,
+ 45, 45, 36, 37, 38, 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 46, 46, 46, 46, 45, 45, 36, 37, 38,
+ 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 46, 46, 46, 46, 45, 45, 39, 39, 40, 40, 40, 41, 41, 41,
+ 41, 42, 44, 44, 44, 45, 47, 47, 47, 47, 48, 48, 48, 48, 49, 49, 49, 48, 48, 48, 48, 47, 47, 47, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 45, 45, 45,
+ 46, 47, 47, 47, 48, 48, 48, 48, 49, 50, 50, 50, 50, 49, 49, 49, 49, 49, 49, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 45, 45, 45, 46, 47, 47, 47, 48,
+ 48, 48, 48, 49, 50, 50, 50, 50, 49, 49, 49, 49, 49, 49, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 45, 45, 45, 46, 47, 47, 47, 48, 48, 48, 48, 49, 50,
+ 50, 50, 50, 49, 49, 49, 49, 49, 49, 45, 45, 45, 45, 45, 44, 44, 44, 44, 45, 46, 46, 46, 47, 47, 47, 47, 48, 49, 49, 49, 50, 51, 51, 51, 51, 51, 51,
+ 51, 51, 51, 51, 49, 48, 47, 47, 47, 47, 46, 46, 46, 47, 47, 47, 47, 47, 48, 48, 48, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 49,
+ 48, 47, 47, 47, 47, 46, 46, 46, 47, 47, 47, 47, 47, 48, 48, 48, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 49, 48, 47, 47, 47, 47,
+ 46, 46, 46, 47, 47, 47, 47, 47, 48, 48, 48, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 49, 48, 47, 47, 47, 46, 46, 46, 46, 46, 47,
+ 47, 47, 47, 47, 47, 47, 48, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 48, 48, 47, 47, 47, 46, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46,
+ 46, 48, 49, 49, 49, 51, 53, 53, 53, 53, 54, 54, 54, 55, 55, 55, 48, 48, 47, 47, 47, 46, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 48, 49, 49, 49,
+ 51, 53, 53, 53, 53, 54, 54, 54, 55, 55, 55, 48, 48, 47, 47, 47, 46, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 48, 49, 49, 49, 51, 53, 53, 53, 53,
+ 54, 54, 54, 55, 55, 55, 49, 48, 47, 47, 47, 46, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 47, 49, 49, 49, 51, 53, 53, 53, 54, 55, 55, 55, 56, 57,
+ 57, 49, 48, 47, 47, 47, 46, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47, 49, 49, 49, 51, 53, 53, 53, 54, 55, 55, 55, 57, 58, 58, 49, 48, 47, 47,
+ 47, 46, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47, 49, 49, 49, 51, 53, 53, 53, 54, 55, 55, 55, 57, 58, 58, 31, 34, 42, 48, 31, 35, 42, 46, 33,
+ 37, 44, 46, 36, 41, 46, 46, 40, 44, 48, 48, 45, 46, 49, 51, 47, 47, 50, 54, 47, 46, 49, 55, 31, 31, 33, 36, 40, 45, 47, 47, 34, 35, 37, 41, 44, 46,
+ 47, 46, 42, 42, 44, 46, 48, 49, 50, 49, 48, 46, 46, 46, 48, 51, 54, 55, 32, 31, 31, 37, 37, 48, 48, 49, 31, 31, 31, 38, 38, 47, 47, 47, 31, 31, 31,
+ 38, 38, 47, 47, 47, 30, 32, 32, 40, 40, 46, 46, 45, 30, 32, 32, 40, 40, 46, 46, 45, 33, 36, 36, 43, 43, 47, 47, 46, 33, 36, 36, 43, 43, 47, 47, 46,
+ 37, 40, 40, 47, 47, 47, 47, 45, 37, 40, 40, 47, 47, 47, 47, 45, 42, 43, 43, 47, 47, 50, 50, 49, 42, 43, 43, 47, 47, 50, 50, 49, 49, 46, 46, 48, 48,
+ 53, 53, 53, 49, 46, 46, 48, 48, 53, 53, 53, 48, 46, 46, 47, 47, 53, 53, 56, 48, 46, 46, 47, 47, 53, 53, 56, 49, 45, 45, 46, 46, 53, 53, 58, 32, 31,
+ 31, 30, 30, 33, 33, 37, 37, 42, 42, 49, 49, 48, 48, 49, 31, 31, 31, 32, 32, 36, 36, 40, 40, 43, 43, 46, 46, 46, 46, 45, 31, 31, 31, 32, 32, 36, 36,
+ 40, 40, 43, 43, 46, 46, 46, 46, 45, 37, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47, 48, 48, 47, 47, 46, 37, 38, 38, 40, 40, 43, 43, 47, 47, 47, 47, 48,
+ 48, 47, 47, 46, 48, 47, 47, 46, 46, 47, 47, 47, 47, 50, 50, 53, 53, 53, 53, 53, 48, 47, 47, 46, 46, 47, 47, 47, 47, 50, 50, 53, 53, 53, 53, 53, 49,
+ 47, 47, 45, 45, 46, 46, 45, 45, 49, 49, 53, 53, 56, 56, 58, 32, 31, 31, 31, 31, 33, 37, 37, 37, 42, 48, 48, 48, 48, 49, 49, 31, 31, 31, 31, 31, 34,
+ 37, 37, 37, 42, 47, 47, 47, 48, 48, 48, 31, 31, 31, 31, 31, 34, 38, 38, 38, 42, 47, 47, 47, 47, 47, 47, 31, 31, 31, 31, 31, 34, 38, 38, 38, 42, 47,
+ 47, 47, 47, 47, 47, 31, 31, 31, 31, 31, 34, 38, 38, 38, 42, 47, 47, 47, 47, 47, 47, 31, 31, 32, 32, 32, 35, 39, 39, 39, 42, 46, 46, 46, 46, 46, 46,
+ 30, 31, 32, 32, 32, 35, 40, 40, 40, 42, 46, 46, 46, 45, 45, 45, 30, 31, 32, 32, 32, 35, 40, 40, 40, 42, 46, 46, 46, 45, 45, 45, 30, 31, 32, 32, 32,
+ 35, 40, 40, 40, 42, 46, 46, 46, 45, 45, 45, 32, 33, 34, 34, 34, 37, 41, 41, 41, 44, 46, 46, 46, 46, 45, 45, 33, 34, 36, 36, 36, 39, 43, 43, 43, 45,
+ 47, 47, 47, 46, 46, 46, 33, 34, 36, 36, 36, 39, 43, 43, 43, 45, 47, 47, 47, 46, 46, 46, 33, 34, 36, 36, 36, 39, 43, 43, 43, 45, 47, 47, 47, 46, 46,
+ 46, 35, 36, 38, 38, 38, 41, 45, 45, 45, 46, 47, 47, 47, 46, 45, 45, 37, 38, 40, 40, 40, 43, 47, 47, 47, 47, 47, 47, 47, 46, 45, 45, 37, 38, 40, 40,
+ 40, 43, 47, 47, 47, 47, 47, 47, 47, 46, 45, 45, 37, 38, 40, 40, 40, 43, 47, 47, 47, 47, 47, 47, 47, 46, 45, 45, 39, 40, 41, 41, 41, 44, 47, 47, 47,
+ 48, 49, 49, 49, 48, 47, 47, 42, 42, 43, 43, 43, 45, 47, 47, 47, 48, 50, 50, 50, 50, 49, 49, 42, 42, 43, 43, 43, 45, 47, 47, 47, 48, 50, 50, 50, 50,
+ 49, 49, 42, 42, 43, 43, 43, 45, 47, 47, 47, 48, 50, 50, 50, 50, 49, 49, 45, 45, 44, 44, 44, 46, 47, 47, 47, 49, 51, 51, 51, 51, 51, 51, 49, 48, 46,
+ 46, 46, 47, 48, 48, 48, 50, 53, 53, 53, 53, 53, 53, 49, 48, 46, 46, 46, 47, 48, 48, 48, 50, 53, 53, 53, 53, 53, 53, 49, 48, 46, 46, 46, 47, 48, 48,
+ 48, 50, 53, 53, 53, 53, 53, 53, 48, 47, 46, 46, 46, 47, 47, 47, 47, 50, 53, 53, 53, 54, 54, 54, 48, 47, 46, 46, 46, 46, 47, 47, 47, 50, 53, 53, 53,
+ 54, 56, 56, 48, 47, 46, 46, 46, 46, 47, 47, 47, 50, 53, 53, 53, 54, 56, 56, 48, 47, 46, 46, 46, 46, 47, 47, 47, 50, 53, 53, 53, 54, 56, 56, 48, 47,
+ 45, 45, 45, 46, 46, 46, 46, 49, 53, 53, 53, 55, 57, 57, 49, 47, 45, 45, 45, 45, 46, 46, 46, 49, 53, 53, 53, 56, 58, 58, 49, 47, 45, 45, 45, 45, 46,
+ 46, 46, 49, 53, 53, 53, 56, 58, 58, 32, 31, 31, 31, 31, 31, 30, 30, 30, 32, 33, 33, 33, 35, 37, 37, 37, 39, 42, 42, 42, 45, 49, 49, 49, 48, 48, 48,
+ 48, 48, 49, 49, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 34, 34, 36, 38, 38, 38, 40, 42, 42, 42, 45, 48, 48, 48, 47, 47, 47, 47, 47, 47, 47, 31,
+ 31, 31, 31, 31, 32, 32, 32, 32, 34, 36, 36, 36, 38, 40, 40, 40, 41, 43, 43, 43, 44, 46, 46, 46, 46, 46, 46, 46, 45, 45, 45, 31, 31, 31, 31, 31, 32,
+ 32, 32, 32, 34, 36, 36, 36, 38, 40, 40, 40, 41, 43, 43, 43, 44, 46, 46, 46, 46, 46, 46, 46, 45, 45, 45, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 36,
+ 36, 36, 38, 40, 40, 40, 41, 43, 43, 43, 44, 46, 46, 46, 46, 46, 46, 46, 45, 45, 45, 33, 34, 34, 34, 34, 35, 35, 35, 35, 37, 39, 39, 39, 41, 43, 43,
+ 43, 44, 45, 45, 45, 46, 47, 47, 47, 47, 46, 46, 46, 46, 45, 45, 37, 37, 38, 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47,
+ 47, 48, 48, 48, 47, 47, 47, 47, 46, 46, 46, 37, 37, 38, 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47,
+ 47, 47, 47, 46, 46, 46, 37, 37, 38, 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 47, 47, 47, 46, 46,
+ 46, 42, 42, 42, 42, 42, 42, 42, 42, 42, 44, 45, 45, 45, 46, 47, 47, 47, 48, 48, 48, 48, 49, 50, 50, 50, 50, 50, 50, 50, 49, 49, 49, 48, 47, 47, 47,
+ 47, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 48, 47, 47, 47, 47, 46, 46, 46, 46,
+ 46, 47, 47, 47, 47, 47, 47, 47, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 47,
+ 47, 47, 47, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 48, 48, 47, 47, 47, 46, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 48, 50,
+ 50, 50, 51, 53, 53, 53, 54, 54, 54, 54, 55, 56, 56, 49, 48, 47, 47, 47, 46, 45, 45, 45, 45, 46, 46, 46, 45, 45, 45, 45, 47, 49, 49, 49, 51, 53, 53,
+ 53, 54, 56, 56, 56, 57, 58, 58, 49, 48, 47, 47, 47, 46, 45, 45, 45, 45, 46, 46, 46, 45, 45, 45, 45, 47, 49, 49, 49, 51, 53, 53, 53, 54, 56, 56, 56,
+ 57, 58, 58, 31, 33, 42, 48, 31, 34, 42, 47, 31, 34, 42, 47, 31, 35, 42, 45, 31, 35, 42, 45, 34, 39, 45, 46, 34, 39, 45, 46, 38, 43, 47, 46, 38, 43,
+ 47, 46, 42, 45, 48, 50, 42, 45, 48, 50, 48, 47, 50, 53, 48, 47, 50, 53, 47, 46, 50, 54, 47, 46, 50, 54, 47, 45, 49, 56, 31, 31, 31, 31, 31, 34, 34,
+ 38, 38, 42, 42, 48, 48, 47, 47, 47, 33, 34, 34, 35, 35, 39, 39, 43, 43, 45, 45, 47, 47, 46, 46, 45, 42, 42, 42, 42, 42, 45, 45, 47, 47, 48, 48, 50,
+ 50, 50, 50, 49, 48, 47, 47, 45, 45, 46, 46, 46, 46, 50, 50, 53, 53, 54, 54, 56, 32, 31, 31, 37, 37, 48, 48, 49, 31, 31, 31, 37, 37, 47, 47, 48, 31,
+ 31, 31, 38, 38, 47, 47, 47, 31, 31, 31, 38, 38, 47, 47, 47, 31, 31, 31, 38, 38, 47, 47, 47, 31, 32, 32, 39, 39, 46, 46, 46, 30, 32, 32, 40, 40, 46,
+ 46, 45, 30, 32, 32, 40, 40, 46, 46, 45, 30, 32, 32, 40, 40, 46, 46, 45, 32, 34, 34, 41, 41, 46, 46, 45, 33, 36, 36, 43, 43, 47, 47, 46, 33, 36, 36,
+ 43, 43, 47, 47, 46, 33, 36, 36, 43, 43, 47, 47, 46, 35, 38, 38, 45, 45, 47, 47, 45, 37, 40, 40, 47, 47, 47, 47, 45, 37, 40, 40, 47, 47, 47, 47, 45,
+ 37, 40, 40, 47, 47, 47, 47, 45, 39, 41, 41, 47, 47, 49, 49, 47, 42, 43, 43, 47, 47, 50, 50, 49, 42, 43, 43, 47, 47, 50, 50, 49, 42, 43, 43, 47, 47,
+ 50, 50, 49, 45, 44, 44, 47, 47, 51, 51, 51, 49, 46, 46, 48, 48, 53, 53, 53, 49, 46, 46, 48, 48, 53, 53, 53, 49, 46, 46, 48, 48, 53, 53, 53, 48, 46,
+ 46, 47, 47, 53, 53, 54, 48, 46, 46, 47, 47, 53, 53, 56, 48, 46, 46, 47, 47, 53, 53, 56, 48, 46, 46, 47, 47, 53, 53, 56, 48, 45, 45, 46, 46, 53, 53,
+ 57, 49, 45, 45, 46, 46, 53, 53, 58, 49, 45, 45, 46, 46, 53, 53, 58, 32, 31, 31, 31, 31, 31, 30, 30, 30, 32, 33, 33, 33, 35, 37, 37, 37, 39, 42, 42,
+ 42, 45, 49, 49, 49, 48, 48, 48, 48, 48, 49, 49, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 36, 36, 36, 38, 40, 40, 40, 41, 43, 43, 43, 44, 46, 46, 46,
+ 46, 46, 46, 46, 45, 45, 45, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 36, 36, 36, 38, 40, 40, 40, 41, 43, 43, 43, 44, 46, 46, 46, 46, 46, 46, 46, 45,
+ 45, 45, 37, 37, 38, 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 47, 47, 47, 46, 46, 46, 37, 37, 38,
+ 38, 38, 39, 40, 40, 40, 41, 43, 43, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 47, 47, 47, 46, 46, 46, 48, 47, 47, 47, 47, 46, 46, 46,
+ 46, 46, 47, 47, 47, 47, 47, 47, 47, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47,
+ 47, 47, 47, 47, 49, 50, 50, 50, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 49, 48, 47, 47, 47, 46, 45, 45, 45, 45, 46, 46, 46, 45, 45, 45, 45, 47,
+ 49, 49, 49, 51, 53, 53, 53, 54, 56, 56, 56, 57, 58, 58,
+ ],
+ ],
+ [
+ [
+ 32, 32, 32, 35, 32, 32, 33, 35, 32, 33, 35, 38, 35, 35, 38, 46, 31, 31, 31, 32, 32, 32, 34, 35, 31, 32, 32, 32, 32, 33, 34, 35, 31, 32, 32, 32, 32,
+ 33, 33, 34, 32, 32, 32, 33, 34, 34, 35, 36, 32, 32, 32, 34, 35, 35, 36, 38, 32, 33, 33, 34, 35, 36, 38, 40, 34, 34, 33, 35, 36, 38, 39, 42, 35, 35,
+ 34, 36, 38, 40, 42, 48, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 34, 36, 36, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35,
+ 35, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 31, 32, 32, 32, 32, 32, 33, 33, 33,
+ 33, 33, 34, 35, 35, 36, 36, 31, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 36, 36, 36, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 36, 36,
+ 37, 37, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 36, 37, 37, 38, 38, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 36, 37, 37, 38, 38, 33, 33, 33,
+ 33, 33, 33, 34, 35, 35, 36, 36, 38, 39, 40, 42, 42, 34, 34, 34, 34, 33, 33, 35, 35, 36, 37, 37, 39, 39, 41, 42, 42, 34, 34, 34, 34, 34, 34, 35, 36,
+ 36, 37, 37, 40, 41, 42, 45, 45, 36, 35, 35, 35, 34, 34, 36, 36, 37, 38, 38, 42, 42, 45, 48, 48, 36, 35, 35, 35, 34, 34, 36, 36, 37, 38, 38, 42, 42,
+ 45, 48, 48, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 36, 36, 36, 37, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 35, 35, 35, 37, 31, 31, 31, 31, 31, 31, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33,
+ 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34,
+ 34, 35, 35, 35, 36, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 31, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 37, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35,
+ 35, 36, 36, 36, 36, 36, 37, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36,
+ 36, 37, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 36, 37, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 36, 36, 36, 36, 37, 37, 37, 37, 38, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 35, 36, 36, 36, 36, 37, 37, 38, 38, 38, 39, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33,
+ 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 35,
+ 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36,
+ 37, 37, 37, 37, 38, 38, 38, 38, 39, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 36, 36, 36, 36, 37, 38, 38, 38, 38, 39,
+ 40, 40, 40, 41, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 37, 38, 39, 39, 39, 40, 41, 42, 42, 42, 42, 34,
+ 34, 34, 34, 34, 34, 34, 33, 33, 33, 33, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 38, 39, 39, 39, 39, 41, 42, 42, 42, 42, 43, 34, 34, 34, 34, 34, 34,
+ 34, 33, 33, 33, 33, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 38, 39, 39, 39, 39, 41, 42, 42, 42, 42, 43, 34, 34, 34, 34, 34, 34, 34, 33, 33, 33, 33,
+ 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 38, 39, 39, 39, 39, 41, 42, 42, 42, 42, 43, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 36, 36, 36,
+ 36, 37, 37, 37, 37, 38, 40, 41, 41, 41, 42, 44, 45, 45, 45, 45, 35, 35, 35, 35, 35, 35, 34, 34, 34, 34, 34, 35, 36, 36, 36, 36, 37, 37, 38, 38, 38,
+ 39, 41, 42, 42, 42, 44, 46, 47, 47, 47, 48, 36, 35, 35, 35, 35, 35, 35, 34, 34, 34, 34, 35, 36, 36, 36, 36, 37, 38, 38, 38, 38, 40, 42, 42, 42, 42,
+ 45, 47, 48, 48, 48, 49, 36, 35, 35, 35, 35, 35, 35, 34, 34, 34, 34, 35, 36, 36, 36, 36, 37, 38, 38, 38, 38, 40, 42, 42, 42, 42, 45, 47, 48, 48, 48,
+ 49, 36, 35, 35, 35, 35, 35, 35, 34, 34, 34, 34, 35, 36, 36, 36, 36, 37, 38, 38, 38, 38, 40, 42, 42, 42, 42, 45, 47, 48, 48, 48, 49, 37, 37, 36, 36,
+ 36, 36, 36, 35, 35, 35, 35, 36, 37, 37, 37, 37, 38, 39, 39, 39, 39, 41, 42, 43, 43, 43, 45, 48, 49, 49, 49, 50, 31, 31, 32, 35, 32, 32, 32, 35, 32,
+ 32, 33, 34, 32, 32, 34, 36, 32, 33, 35, 38, 33, 33, 36, 40, 34, 34, 37, 42, 35, 34, 38, 48, 31, 32, 32, 32, 32, 33, 34, 35, 31, 32, 32, 32, 33, 33,
+ 34, 34, 32, 32, 33, 34, 35, 36, 37, 38, 35, 35, 34, 36, 38, 40, 42, 48, 32, 31, 31, 31, 32, 32, 35, 36, 31, 32, 32, 32, 32, 32, 35, 35, 31, 32, 32,
+ 32, 32, 32, 35, 35, 31, 32, 32, 32, 32, 32, 34, 35, 31, 32, 32, 32, 33, 33, 34, 34, 31, 32, 32, 32, 33, 33, 34, 34, 31, 32, 32, 33, 34, 34, 35, 36,
+ 32, 32, 32, 33, 34, 34, 36, 36, 32, 32, 32, 33, 34, 34, 36, 37, 32, 32, 33, 34, 35, 35, 37, 38, 32, 32, 33, 34, 35, 35, 37, 38, 33, 33, 33, 35, 36,
+ 36, 40, 41, 34, 34, 34, 35, 37, 37, 41, 42, 34, 34, 34, 35, 37, 37, 43, 44, 36, 35, 34, 36, 38, 38, 46, 48, 36, 35, 34, 36, 38, 38, 46, 48, 32, 31,
+ 31, 31, 31, 31, 31, 32, 32, 32, 32, 33, 34, 34, 36, 36, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 31, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 33, 33, 34, 34, 34, 34, 31, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 35, 35, 35, 36, 36, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 35, 36,
+ 37, 37, 38, 38, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 35, 36, 37, 37, 38, 38, 35, 35, 35, 34, 34, 34, 35, 36, 36, 37, 37, 40, 41, 43, 46, 46, 36,
+ 35, 35, 35, 34, 34, 36, 36, 37, 38, 38, 41, 42, 44, 48, 48, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 33, 35, 36, 36, 36, 31, 31, 31, 31, 31, 31,
+ 32, 32, 32, 32, 32, 33, 35, 35, 35, 35, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 35, 35, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 33, 35, 35, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 35, 35, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 35, 35, 35, 35,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 35, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 35, 35, 35, 31, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33,
+ 33, 33, 34, 34, 34, 34, 31, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 35, 35, 35, 35, 31, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 35, 36, 36,
+ 36, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 36, 36, 36, 36, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 36, 36, 36, 36, 32, 32, 32, 32,
+ 32, 32, 33, 34, 34, 34, 34, 35, 36, 36, 36, 36, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35, 36, 37, 37, 37, 32, 32, 32, 33, 33, 33, 33, 34, 35,
+ 35, 35, 36, 37, 38, 38, 38, 32, 32, 32, 33, 33, 33, 34, 35, 35, 35, 35, 36, 37, 38, 38, 38, 32, 32, 32, 33, 33, 33, 34, 35, 35, 35, 35, 36, 37, 38,
+ 38, 38, 32, 32, 32, 33, 33, 33, 34, 35, 35, 35, 35, 36, 37, 38, 38, 38, 32, 33, 33, 33, 33, 33, 34, 35, 36, 36, 36, 37, 39, 40, 40, 40, 33, 33, 33,
+ 33, 33, 33, 35, 36, 36, 36, 36, 38, 40, 41, 41, 41, 34, 34, 34, 34, 34, 34, 35, 36, 37, 37, 37, 39, 41, 42, 42, 42, 34, 34, 34, 34, 34, 34, 35, 36,
+ 37, 37, 37, 39, 41, 42, 42, 42, 34, 34, 34, 34, 34, 34, 35, 36, 37, 37, 37, 39, 41, 42, 42, 42, 34, 34, 34, 34, 34, 34, 35, 37, 37, 37, 37, 40, 43,
+ 44, 44, 44, 35, 35, 34, 34, 34, 34, 36, 37, 38, 38, 38, 41, 45, 47, 47, 47, 36, 35, 35, 34, 34, 34, 36, 37, 38, 38, 38, 42, 46, 48, 48, 48, 36, 35,
+ 35, 34, 34, 34, 36, 37, 38, 38, 38, 42, 46, 48, 48, 48, 36, 35, 35, 34, 34, 34, 36, 37, 38, 38, 38, 42, 46, 48, 48, 48, 37, 36, 36, 36, 36, 36, 37,
+ 38, 39, 39, 39, 42, 46, 49, 49, 49, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 34, 34, 35,
+ 36, 36, 36, 37, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 36, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 36, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 36, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 36, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34,
+ 34, 35, 35, 35, 35, 35, 36, 36, 36, 36, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36,
+ 37, 37, 37, 37, 37, 38, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38,
+ 39, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 32, 32, 32, 32,
+ 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 37, 38, 39, 39, 39, 40, 41, 42, 42, 42, 42, 35, 35, 35, 35, 35, 35, 34, 34, 34, 34, 34, 35, 35, 36,
+ 36, 36, 36, 37, 37, 37, 37, 39, 40, 41, 41, 41, 43, 45, 46, 46, 46, 46, 36, 35, 35, 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36, 36, 37, 38, 38,
+ 38, 38, 40, 41, 42, 42, 42, 44, 47, 48, 48, 48, 49, 36, 35, 35, 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36, 36, 37, 38, 38, 38, 38, 40, 41, 42,
+ 42, 42, 44, 47, 48, 48, 48, 49, 36, 35, 35, 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36, 36, 37, 38, 38, 38, 38, 40, 41, 42, 42, 42, 44, 47, 48,
+ 48, 48, 49, 31, 31, 32, 36, 31, 32, 32, 35, 32, 32, 32, 35, 32, 32, 32, 35, 32, 32, 33, 34, 32, 32, 33, 34, 32, 32, 34, 36, 32, 32, 34, 36, 32, 32,
+ 34, 37, 32, 33, 35, 38, 32, 33, 35, 38, 33, 33, 36, 41, 34, 34, 37, 42, 34, 34, 37, 44, 35, 34, 38, 48, 35, 34, 38, 48, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 33, 34, 34, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 32, 32, 32, 32, 33, 33, 34, 34, 34, 35, 35, 36,
+ 37, 37, 38, 38, 36, 35, 35, 35, 34, 34, 36, 36, 37, 38, 38, 41, 42, 44, 48, 48, 32, 31, 31, 31, 32, 32, 35, 36, 31, 31, 31, 32, 32, 32, 35, 35, 31,
+ 32, 32, 32, 32, 32, 35, 35, 31, 32, 32, 32, 32, 32, 35, 35, 31, 32, 32, 32, 32, 32, 35, 35, 31, 32, 32, 32, 32, 32, 35, 35, 31, 32, 32, 32, 32, 32,
+ 34, 35, 31, 32, 32, 32, 32, 32, 34, 35, 31, 32, 32, 32, 33, 33, 34, 34, 31, 32, 32, 32, 33, 33, 34, 34, 31, 32, 32, 32, 33, 33, 34, 34, 31, 32, 32,
+ 33, 33, 33, 35, 35, 31, 32, 32, 33, 34, 34, 35, 36, 32, 32, 32, 33, 34, 34, 36, 36, 32, 32, 32, 33, 34, 34, 36, 36, 32, 32, 32, 33, 34, 34, 36, 36,
+ 32, 32, 32, 33, 34, 34, 36, 37, 32, 32, 33, 33, 35, 35, 37, 38, 32, 32, 33, 34, 35, 35, 37, 38, 32, 32, 33, 34, 35, 35, 37, 38, 32, 32, 33, 34, 35,
+ 35, 37, 38, 32, 33, 33, 34, 36, 36, 39, 40, 33, 33, 33, 35, 36, 36, 40, 41, 34, 34, 34, 35, 37, 37, 41, 42, 34, 34, 34, 35, 37, 37, 41, 42, 34, 34,
+ 34, 35, 37, 37, 41, 42, 34, 34, 34, 35, 37, 37, 43, 44, 35, 34, 34, 36, 38, 38, 45, 47, 36, 35, 34, 36, 38, 38, 46, 48, 36, 35, 34, 36, 38, 38, 46,
+ 48, 36, 35, 34, 36, 38, 38, 46, 48, 37, 36, 36, 37, 39, 39, 46, 49, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 34, 34, 34, 34, 35, 36, 36, 36, 37, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34,
+ 34, 34, 34, 35, 35, 35, 36, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34,
+ 34, 36, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 35, 36, 36, 36, 36, 37, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 32, 32, 32, 32, 32, 32, 32, 32,
+ 33, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 35, 35, 35, 35, 35, 35, 34, 34, 34, 34, 34, 35, 35,
+ 36, 36, 36, 36, 37, 37, 37, 37, 39, 40, 41, 41, 41, 43, 45, 46, 46, 46, 46, 36, 35, 35, 35, 35, 35, 35, 35, 34, 34, 34, 35, 36, 36, 36, 36, 37, 38,
+ 38, 38, 38, 40, 41, 42, 42, 42, 44, 47, 48, 48, 48, 49,
+ ],
+ [
+ 31, 32, 38, 46, 32, 34, 41, 46, 38, 41, 47, 47, 46, 46, 47, 52, 31, 31, 30, 34, 36, 39, 42, 48, 31, 31, 31, 34, 37, 40, 42, 47, 30, 31, 32, 35, 39,
+ 41, 42, 46, 34, 34, 35, 39, 42, 44, 45, 47, 36, 37, 39, 42, 46, 47, 47, 47, 39, 40, 41, 44, 47, 47, 48, 49, 42, 42, 42, 45, 47, 48, 48, 50, 48, 47,
+ 46, 47, 47, 49, 50, 53, 32, 31, 31, 31, 30, 30, 33, 33, 34, 36, 36, 40, 41, 44, 49, 49, 31, 31, 31, 31, 31, 31, 33, 34, 36, 38, 38, 41, 42, 44, 48,
+ 48, 31, 31, 31, 31, 31, 31, 34, 34, 36, 38, 38, 41, 42, 44, 47, 47, 31, 31, 31, 31, 31, 31, 34, 35, 36, 39, 39, 41, 42, 44, 47, 47, 30, 31, 31, 31,
+ 32, 32, 34, 35, 37, 40, 40, 42, 42, 44, 46, 46, 30, 31, 31, 31, 32, 32, 34, 35, 37, 40, 40, 42, 42, 44, 46, 46, 33, 33, 34, 34, 34, 34, 37, 38, 40,
+ 42, 42, 44, 44, 45, 47, 47, 33, 34, 34, 35, 35, 35, 38, 39, 40, 43, 43, 44, 45, 46, 47, 47, 34, 36, 36, 36, 37, 37, 40, 40, 42, 45, 45, 45, 46, 46,
+ 47, 47, 36, 38, 38, 39, 40, 40, 42, 43, 45, 47, 47, 47, 47, 47, 48, 48, 36, 38, 38, 39, 40, 40, 42, 43, 45, 47, 47, 47, 47, 47, 48, 48, 40, 41, 41,
+ 41, 42, 42, 44, 44, 45, 47, 47, 48, 48, 49, 50, 50, 41, 42, 42, 42, 42, 42, 44, 45, 46, 47, 47, 48, 48, 49, 50, 50, 44, 44, 44, 44, 44, 44, 45, 46,
+ 46, 47, 47, 49, 49, 50, 51, 51, 49, 48, 47, 47, 46, 46, 47, 47, 47, 48, 48, 50, 50, 51, 53, 53, 49, 48, 47, 47, 46, 46, 47, 47, 47, 48, 48, 50, 50,
+ 51, 53, 53, 32, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 33, 33, 33, 33, 34, 36, 36, 36, 36, 38, 40, 41, 41, 41, 44, 47, 49, 49, 49, 49, 31, 31,
+ 31, 31, 31, 31, 31, 31, 30, 30, 30, 32, 33, 34, 34, 34, 35, 36, 37, 37, 37, 39, 41, 42, 42, 42, 44, 47, 48, 48, 48, 48, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 32, 33, 34, 34, 34, 36, 37, 38, 38, 38, 39, 41, 42, 42, 42, 44, 46, 48, 48, 48, 47, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32,
+ 34, 34, 34, 34, 36, 37, 38, 38, 38, 40, 41, 42, 42, 42, 44, 46, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 34, 36,
+ 37, 38, 38, 38, 40, 41, 42, 42, 42, 44, 46, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 34, 36, 37, 38, 38, 38, 40,
+ 41, 42, 42, 42, 44, 46, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 35, 35, 36, 38, 39, 39, 39, 40, 41, 42, 42, 42, 44,
+ 46, 47, 47, 47, 47, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 35, 35, 37, 38, 39, 39, 39, 41, 42, 42, 42, 42, 44, 46, 46, 46, 46, 46,
+ 30, 30, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 35, 35, 35, 37, 39, 40, 40, 40, 41, 42, 42, 42, 42, 44, 45, 46, 46, 46, 46, 30, 30, 31, 31, 31,
+ 31, 31, 31, 32, 32, 32, 33, 34, 35, 35, 35, 37, 39, 40, 40, 40, 41, 42, 42, 42, 42, 44, 45, 46, 46, 46, 46, 30, 30, 31, 31, 31, 31, 31, 31, 32, 32,
+ 32, 33, 34, 35, 35, 35, 37, 39, 40, 40, 40, 41, 42, 42, 42, 42, 44, 45, 46, 46, 46, 46, 31, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 36, 37, 37,
+ 37, 38, 40, 41, 41, 41, 42, 43, 43, 43, 43, 44, 46, 46, 46, 46, 46, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 36, 37, 38, 38, 38, 40, 41, 42, 42,
+ 42, 43, 44, 44, 44, 44, 45, 46, 47, 47, 47, 46, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 37, 38, 39, 39, 39, 40, 42, 43, 43, 43, 44, 44, 45, 45,
+ 45, 46, 47, 47, 47, 47, 47, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 37, 38, 39, 39, 39, 40, 42, 43, 43, 43, 44, 44, 45, 45, 45, 46, 47, 47, 47,
+ 47, 47, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 37, 38, 39, 39, 39, 40, 42, 43, 43, 43, 44, 44, 45, 45, 45, 46, 47, 47, 47, 47, 47, 34, 35, 36,
+ 36, 36, 36, 36, 37, 37, 37, 37, 38, 40, 40, 40, 40, 42, 44, 45, 45, 45, 45, 45, 46, 46, 46, 46, 47, 47, 47, 47, 47, 36, 36, 37, 37, 37, 37, 38, 38,
+ 39, 39, 39, 40, 41, 42, 42, 42, 44, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 36, 37, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 42,
+ 43, 43, 43, 45, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 36, 37, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 42, 43, 43, 43, 45, 46,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 47, 36, 37, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 42, 43, 43, 43, 45, 46, 47, 47, 47, 47, 47,
+ 47, 47, 47, 47, 47, 48, 48, 48, 47, 38, 39, 39, 40, 40, 40, 40, 41, 41, 41, 41, 42, 43, 44, 44, 44, 45, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48,
+ 49, 49, 49, 48, 40, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 43, 44, 44, 44, 44, 45, 47, 47, 47, 47, 48, 48, 48, 48, 48, 49, 49, 50, 50, 50, 49, 41,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 44, 45, 45, 45, 46, 47, 47, 47, 47, 48, 48, 48, 48, 48, 49, 50, 50, 50, 50, 50, 41, 42, 42, 42, 42, 42,
+ 42, 42, 42, 42, 42, 43, 44, 45, 45, 45, 46, 47, 47, 47, 47, 48, 48, 48, 48, 48, 49, 50, 50, 50, 50, 50, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
+ 43, 44, 45, 45, 45, 46, 47, 47, 47, 47, 48, 48, 48, 48, 48, 49, 50, 50, 50, 50, 50, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 46, 46, 46,
+ 46, 47, 47, 47, 47, 48, 49, 49, 49, 49, 50, 51, 51, 51, 51, 51, 47, 47, 46, 46, 46, 46, 46, 46, 45, 45, 45, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47,
+ 48, 49, 50, 50, 50, 51, 52, 52, 52, 52, 52, 49, 48, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 48, 48, 49, 50, 50, 50, 50,
+ 51, 52, 53, 53, 53, 53, 49, 48, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 48, 48, 49, 50, 50, 50, 50, 51, 52, 53, 53, 53,
+ 53, 49, 48, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 48, 48, 49, 50, 50, 50, 50, 51, 52, 53, 53, 53, 53, 49, 48, 47, 47,
+ 47, 47, 47, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 48, 49, 50, 50, 50, 51, 52, 53, 53, 53, 53, 31, 31, 37, 48, 31, 31, 38, 47, 31,
+ 32, 40, 46, 34, 36, 43, 47, 37, 39, 46, 47, 39, 41, 47, 48, 42, 43, 47, 50, 48, 46, 48, 53, 31, 31, 31, 34, 37, 39, 42, 48, 31, 31, 32, 36, 39, 41,
+ 43, 46, 37, 38, 40, 43, 46, 47, 47, 48, 48, 47, 46, 47, 47, 48, 50, 53, 32, 31, 31, 33, 37, 37, 45, 48, 31, 31, 31, 34, 38, 38, 45, 47, 31, 31, 31,
+ 34, 38, 38, 45, 47, 31, 31, 32, 34, 39, 39, 45, 46, 30, 32, 32, 35, 40, 40, 44, 46, 30, 32, 32, 35, 40, 40, 44, 46, 33, 34, 35, 37, 42, 42, 46, 47,
+ 33, 35, 36, 38, 43, 43, 46, 47, 35, 37, 37, 40, 44, 44, 46, 47, 37, 39, 40, 43, 47, 47, 47, 47, 37, 39, 40, 43, 47, 47, 47, 47, 41, 42, 42, 44, 47,
+ 47, 49, 49, 42, 42, 43, 44, 47, 47, 49, 50, 44, 44, 44, 45, 47, 47, 50, 51, 49, 47, 46, 47, 48, 48, 52, 53, 49, 47, 46, 47, 48, 48, 52, 53, 32, 31,
+ 31, 31, 30, 30, 33, 33, 35, 37, 37, 41, 42, 44, 49, 49, 31, 31, 31, 31, 32, 32, 34, 35, 37, 39, 39, 42, 42, 44, 47, 47, 31, 31, 31, 32, 32, 32, 35,
+ 36, 37, 40, 40, 42, 43, 44, 46, 46, 33, 34, 34, 34, 35, 35, 37, 38, 40, 43, 43, 44, 44, 45, 47, 47, 37, 38, 38, 39, 40, 40, 42, 43, 44, 47, 47, 47,
+ 47, 47, 48, 48, 37, 38, 38, 39, 40, 40, 42, 43, 44, 47, 47, 47, 47, 47, 48, 48, 45, 45, 45, 45, 44, 44, 46, 46, 46, 47, 47, 49, 49, 50, 52, 52, 48,
+ 47, 47, 46, 46, 46, 47, 47, 47, 47, 47, 49, 50, 51, 53, 53, 32, 31, 31, 31, 31, 31, 33, 35, 37, 37, 37, 40, 45, 48, 48, 48, 31, 31, 31, 31, 31, 31,
+ 33, 36, 37, 37, 37, 41, 45, 48, 48, 48, 31, 31, 31, 31, 31, 31, 34, 36, 38, 38, 38, 41, 45, 47, 47, 47, 31, 31, 31, 31, 31, 31, 34, 37, 38, 38, 38,
+ 41, 45, 47, 47, 47, 31, 31, 31, 31, 31, 31, 34, 37, 38, 38, 38, 41, 45, 47, 47, 47, 31, 31, 31, 31, 31, 31, 34, 37, 38, 38, 38, 41, 45, 47, 47, 47,
+ 31, 31, 31, 32, 32, 32, 34, 37, 39, 39, 39, 41, 45, 46, 46, 46, 30, 31, 31, 32, 32, 32, 34, 38, 39, 39, 39, 42, 44, 46, 46, 46, 30, 31, 32, 32, 32,
+ 32, 35, 38, 40, 40, 40, 42, 44, 46, 46, 46, 30, 31, 32, 32, 32, 32, 35, 38, 40, 40, 40, 42, 44, 46, 46, 46, 30, 31, 32, 32, 32, 32, 35, 38, 40, 40,
+ 40, 42, 44, 46, 46, 46, 31, 32, 33, 33, 33, 33, 36, 39, 41, 41, 41, 43, 45, 46, 46, 46, 33, 34, 34, 35, 35, 35, 37, 40, 42, 42, 42, 44, 46, 47, 47,
+ 47, 33, 34, 35, 36, 36, 36, 38, 41, 43, 43, 43, 44, 46, 47, 47, 47, 33, 34, 35, 36, 36, 36, 38, 41, 43, 43, 43, 44, 46, 47, 47, 47, 33, 34, 35, 36,
+ 36, 36, 38, 41, 43, 43, 43, 44, 46, 47, 47, 47, 35, 36, 37, 37, 37, 37, 40, 43, 44, 44, 44, 45, 46, 47, 47, 47, 36, 37, 38, 39, 39, 39, 42, 44, 46,
+ 46, 46, 47, 47, 47, 47, 47, 37, 38, 39, 40, 40, 40, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 37, 38, 39, 40, 40, 40, 43, 45, 47, 47, 47, 47, 47, 47,
+ 47, 47, 37, 38, 39, 40, 40, 40, 43, 45, 47, 47, 47, 47, 47, 47, 47, 47, 39, 39, 40, 41, 41, 41, 43, 46, 47, 47, 47, 48, 48, 48, 48, 48, 41, 41, 42,
+ 42, 42, 42, 44, 46, 47, 47, 47, 48, 49, 49, 49, 49, 42, 42, 42, 43, 43, 43, 44, 46, 47, 47, 47, 48, 49, 50, 50, 50, 42, 42, 42, 43, 43, 43, 44, 46,
+ 47, 47, 47, 48, 49, 50, 50, 50, 42, 42, 42, 43, 43, 43, 44, 46, 47, 47, 47, 48, 49, 50, 50, 50, 44, 44, 44, 44, 44, 44, 45, 47, 47, 47, 47, 49, 50,
+ 51, 51, 51, 47, 46, 46, 46, 46, 46, 46, 47, 48, 48, 48, 49, 51, 52, 52, 52, 49, 48, 47, 46, 46, 46, 47, 48, 48, 48, 48, 50, 52, 53, 53, 53, 49, 48,
+ 47, 46, 46, 46, 47, 48, 48, 48, 48, 50, 52, 53, 53, 53, 49, 48, 47, 46, 46, 46, 47, 48, 48, 48, 48, 50, 52, 53, 53, 53, 49, 48, 47, 46, 46, 46, 47,
+ 47, 47, 47, 47, 49, 52, 53, 53, 53, 32, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 33, 33, 33, 33, 35, 36, 37, 37, 37, 39, 41, 42, 42, 42, 44, 47,
+ 49, 49, 49, 49, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 34, 36, 37, 38, 38, 38, 39, 41, 42, 42, 42, 44, 46, 48, 48, 48, 48, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 35, 35, 35, 37, 38, 39, 39, 39, 40, 42, 42, 42, 42, 44, 46, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31,
+ 32, 32, 32, 32, 32, 33, 35, 36, 36, 36, 37, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 46, 46, 46, 46, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32,
+ 33, 35, 36, 36, 36, 37, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 46, 46, 46, 46, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33, 35, 36, 36, 36,
+ 37, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 46, 46, 46, 46, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 36, 37, 38, 38, 38, 40, 42, 43, 43, 43,
+ 43, 44, 44, 44, 44, 45, 46, 47, 47, 47, 47, 35, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 40, 41, 41, 41, 43, 44, 45, 45, 45, 46, 46, 46, 46, 46,
+ 47, 47, 48, 48, 48, 47, 37, 37, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48,
+ 47, 37, 37, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 47, 37, 37, 38, 38,
+ 38, 38, 39, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 47, 40, 41, 41, 41, 41, 41, 41, 42, 42,
+ 42, 42, 43, 44, 44, 44, 44, 45, 47, 47, 47, 47, 48, 48, 48, 48, 48, 49, 49, 50, 50, 50, 49, 45, 45, 45, 45, 45, 45, 45, 44, 44, 44, 44, 45, 46, 46,
+ 46, 46, 46, 47, 47, 47, 47, 48, 49, 49, 49, 49, 50, 51, 52, 52, 52, 52, 48, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 48, 49, 50, 50, 50, 51, 52, 53, 53, 53, 53, 48, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 49, 50,
+ 50, 50, 51, 52, 53, 53, 53, 53, 48, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 49, 50, 50, 50, 51, 52, 53,
+ 53, 53, 53, 31, 31, 37, 48, 31, 31, 38, 47, 31, 31, 38, 47, 31, 32, 39, 46, 31, 32, 40, 46, 31, 32, 40, 46, 34, 35, 42, 47, 34, 36, 43, 47, 36, 37,
+ 44, 47, 38, 40, 47, 47, 38, 40, 47, 47, 41, 42, 47, 49, 42, 43, 47, 50, 44, 44, 47, 51, 48, 46, 48, 53, 48, 46, 48, 53, 31, 31, 31, 31, 31, 31, 34,
+ 34, 36, 38, 38, 41, 42, 44, 48, 48, 31, 31, 31, 32, 32, 32, 35, 36, 37, 40, 40, 42, 43, 44, 46, 46, 37, 38, 38, 39, 40, 40, 42, 43, 44, 47, 47, 47,
+ 47, 47, 48, 48, 48, 47, 47, 46, 46, 46, 47, 47, 47, 47, 47, 49, 50, 51, 53, 53, 32, 31, 31, 33, 37, 37, 45, 48, 31, 31, 31, 33, 37, 37, 45, 48, 31,
+ 31, 31, 34, 38, 38, 45, 47, 31, 31, 31, 34, 38, 38, 45, 47, 31, 31, 31, 34, 38, 38, 45, 47, 31, 31, 31, 34, 38, 38, 45, 47, 31, 31, 32, 34, 39, 39,
+ 45, 46, 30, 31, 32, 34, 39, 39, 44, 46, 30, 32, 32, 35, 40, 40, 44, 46, 30, 32, 32, 35, 40, 40, 44, 46, 30, 32, 32, 35, 40, 40, 44, 46, 31, 33, 33,
+ 36, 41, 41, 45, 46, 33, 34, 35, 37, 42, 42, 46, 47, 33, 35, 36, 38, 43, 43, 46, 47, 33, 35, 36, 38, 43, 43, 46, 47, 33, 35, 36, 38, 43, 43, 46, 47,
+ 35, 37, 37, 40, 44, 44, 46, 47, 36, 38, 39, 42, 46, 46, 47, 47, 37, 39, 40, 43, 47, 47, 47, 47, 37, 39, 40, 43, 47, 47, 47, 47, 37, 39, 40, 43, 47,
+ 47, 47, 47, 39, 40, 41, 43, 47, 47, 48, 48, 41, 42, 42, 44, 47, 47, 49, 49, 42, 42, 43, 44, 47, 47, 49, 50, 42, 42, 43, 44, 47, 47, 49, 50, 42, 42,
+ 43, 44, 47, 47, 49, 50, 44, 44, 44, 45, 47, 47, 50, 51, 47, 46, 46, 46, 48, 48, 51, 52, 49, 47, 46, 47, 48, 48, 52, 53, 49, 47, 46, 47, 48, 48, 52,
+ 53, 49, 47, 46, 47, 48, 48, 52, 53, 49, 47, 46, 47, 47, 47, 52, 53, 32, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 33, 33, 33, 33, 35, 36, 37, 37,
+ 37, 39, 41, 42, 42, 42, 44, 47, 49, 49, 49, 49, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 35, 35, 35, 37, 38, 39, 39, 39, 40, 42, 42, 42,
+ 42, 44, 46, 47, 47, 47, 47, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33, 35, 36, 36, 36, 37, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 46, 46,
+ 46, 46, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 36, 37, 38, 38, 38, 40, 42, 43, 43, 43, 43, 44, 44, 44, 44, 45, 46, 47, 47, 47, 47, 37, 37, 38,
+ 38, 38, 38, 39, 39, 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 47, 37, 37, 38, 38, 38, 38, 39, 39,
+ 40, 40, 40, 41, 42, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 47, 45, 45, 45, 45, 45, 45, 45, 44, 44, 44, 44, 45, 46,
+ 46, 46, 46, 46, 47, 47, 47, 47, 48, 49, 49, 49, 49, 50, 51, 52, 52, 52, 52, 48, 48, 47, 47, 47, 47, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47,
+ 47, 47, 47, 48, 49, 50, 50, 50, 51, 52, 53, 53, 53, 53,
+ ],
+ ],
+ [
+ [
+ 31, 32, 32, 32, 32, 32, 32, 33, 32, 32, 33, 34, 32, 33, 34, 35, 31, 31, 31, 31, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32,
+ 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 32, 32, 32, 32, 33, 33, 34, 35, 32, 32, 32, 32, 33, 34, 34, 35, 32, 32, 32, 32, 34, 34, 35, 36, 33, 33,
+ 33, 33, 35, 35, 36, 38, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 34, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33,
+ 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33,
+ 34, 35, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 35, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 35, 32, 32, 32,
+ 32, 32, 32, 32, 33, 33, 33, 33, 34, 35, 35, 35, 36, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 35, 35, 35, 36, 37, 32, 32, 32, 32, 32, 32, 32, 33,
+ 33, 34, 34, 35, 35, 35, 36, 37, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 36, 36, 36, 38, 34, 34, 34, 34, 34, 33, 33, 34, 35, 35, 35, 36, 37,
+ 37, 38, 39, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 33, 33, 34, 34, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34,
+ 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 31, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 33, 33, 33, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 34, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33,
+ 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33,
+ 34, 34, 34, 34, 34, 34, 35, 35, 35, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34,
+ 35, 35, 35, 35, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 36, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33,
+ 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34,
+ 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 36, 36,
+ 36, 36, 36, 37, 38, 38, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 37, 38, 38,
+ 38, 34, 34, 34, 34, 34, 34, 34, 34, 34, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 39, 39, 34, 34, 34, 34,
+ 34, 34, 34, 34, 34, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38, 38, 39, 39, 31, 31, 32, 32, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 32, 32, 33, 34, 32, 32, 34, 34, 32, 33, 34, 35, 33, 33, 35, 36, 31, 31, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32,
+ 33, 33, 32, 32, 32, 32, 33, 34, 34, 35, 32, 32, 32, 33, 34, 34, 35, 36, 32, 31, 31, 31, 31, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 33, 31, 32, 32,
+ 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 33, 33, 33, 31, 32, 32, 32, 32, 33, 33, 33,
+ 31, 32, 32, 32, 32, 33, 33, 33, 31, 32, 32, 32, 33, 34, 34, 34, 32, 32, 32, 32, 33, 34, 34, 34, 32, 32, 32, 32, 33, 34, 34, 34, 32, 32, 32, 32, 33,
+ 35, 35, 35, 32, 32, 33, 33, 34, 35, 35, 36, 32, 32, 33, 33, 34, 35, 35, 36, 32, 33, 33, 33, 34, 36, 36, 36, 34, 34, 34, 34, 35, 37, 37, 38, 32, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 33, 33, 34, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33,
+ 34, 34, 34, 35, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 37, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 37, 32,
+ 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 36, 36, 36, 38, 32, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 34, 31, 31, 31, 31, 31, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33,
+ 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 31, 32, 32, 32,
+ 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 34, 35, 32, 32, 32, 32, 32, 32, 32, 33, 33,
+ 33, 34, 34, 34, 34, 34, 35, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 35, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34,
+ 34, 35, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 35, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 34, 35, 35, 32, 32, 32,
+ 32, 32, 32, 32, 33, 33, 34, 35, 35, 35, 35, 35, 36, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 35, 35, 35, 35, 36, 36, 32, 32, 32, 32, 33, 33, 33, 33,
+ 34, 34, 35, 35, 35, 35, 36, 37, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 36, 37, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 35, 35, 35,
+ 35, 36, 37, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 36, 37, 32, 33, 33, 33, 33, 33, 33, 33, 34, 35, 36, 36, 36, 36, 36, 38, 33, 33,
+ 33, 33, 33, 33, 33, 34, 34, 35, 36, 36, 36, 36, 37, 38, 34, 34, 34, 34, 34, 34, 34, 34, 35, 36, 37, 37, 37, 37, 38, 39, 34, 34, 34, 34, 34, 34, 34,
+ 34, 35, 36, 37, 37, 37, 37, 38, 39, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 33, 34, 34, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 33, 34, 34, 34, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35,
+ 35, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 36, 36, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33,
+ 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34,
+ 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 36,
+ 36, 36, 36, 36, 36, 37, 38, 38, 34, 34, 34, 34, 34, 34, 34, 34, 34, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 38,
+ 38, 39, 39, 31, 31, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 33, 32, 32, 32, 33, 32, 32, 33, 33, 32, 32,
+ 33, 34, 32, 32, 33, 34, 32, 32, 33, 34, 32, 32, 34, 35, 32, 33, 34, 35, 32, 33, 34, 35, 33, 33, 35, 36, 34, 34, 36, 37, 31, 31, 31, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 33, 34, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 34,
+ 34, 34, 35, 36, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 37, 32, 31, 31, 31, 31, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 33, 31,
+ 31, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32,
+ 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 33, 33, 33, 31, 32, 32,
+ 32, 32, 33, 33, 33, 31, 32, 32, 32, 32, 33, 33, 33, 31, 32, 32, 32, 32, 33, 33, 33, 31, 32, 32, 32, 32, 33, 33, 33, 31, 32, 32, 32, 33, 33, 33, 34,
+ 31, 32, 32, 32, 33, 34, 34, 34, 32, 32, 32, 32, 33, 34, 34, 34, 32, 32, 32, 32, 33, 34, 34, 34, 32, 32, 32, 32, 33, 34, 34, 34, 32, 32, 32, 32, 33,
+ 34, 34, 34, 32, 32, 32, 32, 33, 34, 34, 35, 32, 32, 32, 32, 33, 35, 35, 35, 32, 32, 33, 33, 33, 35, 35, 36, 32, 32, 33, 33, 34, 35, 35, 36, 32, 32,
+ 33, 33, 34, 35, 35, 36, 32, 32, 33, 33, 34, 35, 35, 36, 32, 32, 33, 33, 34, 35, 35, 36, 32, 33, 33, 33, 34, 36, 36, 36, 33, 33, 33, 33, 34, 36, 36,
+ 37, 34, 34, 34, 34, 35, 37, 37, 38, 34, 34, 34, 34, 35, 37, 37, 38, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 34, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33,
+ 34, 34, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33,
+ 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34,
+ 34, 34, 34, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38, 38,
+ ],
+ [
+ 31, 31, 34, 38, 31, 32, 35, 40, 34, 35, 39, 43, 38, 40, 43, 47, 31, 31, 31, 30, 34, 35, 37, 40, 31, 31, 31, 31, 34, 35, 38, 41, 31, 31, 31, 31, 35,
+ 36, 39, 41, 30, 31, 31, 32, 35, 36, 40, 42, 34, 34, 35, 35, 39, 40, 43, 44, 35, 35, 36, 36, 40, 41, 44, 45, 37, 38, 39, 40, 43, 44, 47, 47, 40, 41,
+ 41, 42, 44, 45, 47, 48, 32, 31, 31, 31, 31, 30, 30, 31, 33, 33, 33, 35, 36, 36, 38, 41, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 34, 36, 37, 37, 39,
+ 42, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 37, 38, 38, 40, 42, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 37, 38, 38, 40, 42, 31, 31, 31, 31,
+ 31, 31, 31, 32, 34, 35, 35, 37, 39, 39, 40, 42, 30, 31, 31, 31, 31, 32, 32, 32, 34, 35, 35, 38, 40, 40, 41, 42, 30, 31, 31, 31, 31, 32, 32, 32, 34,
+ 35, 35, 38, 40, 40, 41, 42, 31, 31, 32, 32, 32, 32, 32, 33, 35, 36, 36, 38, 40, 40, 41, 43, 33, 33, 34, 34, 34, 34, 34, 35, 37, 38, 38, 41, 42, 42,
+ 43, 44, 33, 34, 34, 34, 35, 35, 35, 36, 38, 39, 39, 41, 43, 43, 44, 45, 33, 34, 34, 34, 35, 35, 35, 36, 38, 39, 39, 41, 43, 43, 44, 45, 35, 36, 37,
+ 37, 37, 38, 38, 38, 41, 41, 41, 44, 46, 46, 46, 46, 36, 37, 38, 38, 39, 40, 40, 40, 42, 43, 43, 46, 47, 47, 47, 47, 36, 37, 38, 38, 39, 40, 40, 40,
+ 42, 43, 43, 46, 47, 47, 47, 47, 38, 39, 40, 40, 40, 41, 41, 41, 43, 44, 44, 46, 47, 47, 47, 48, 41, 42, 42, 42, 42, 42, 42, 43, 44, 45, 45, 46, 47,
+ 47, 48, 48, 32, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 31, 32, 33, 33, 33, 33, 33, 34, 35, 36, 36, 36, 36, 37, 38, 40, 41, 41, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 32, 33, 34, 34, 34, 34, 35, 36, 37, 37, 37, 37, 37, 39, 40, 42, 42, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 34, 34, 35, 36, 37, 37, 37, 37, 38, 39, 40, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 32, 32, 34, 34, 34, 34, 34, 35, 36, 38, 38, 38, 38, 38, 40, 41, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34,
+ 34, 34, 34, 34, 35, 37, 38, 38, 38, 38, 39, 40, 41, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 34, 34, 34, 35,
+ 37, 38, 38, 38, 38, 39, 40, 41, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 34, 34, 34, 35, 37, 38, 38, 38, 38,
+ 39, 40, 41, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 34, 34, 34, 36, 37, 38, 38, 38, 38, 39, 40, 41, 42, 42,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 35, 35, 35, 35, 36, 37, 38, 39, 39, 39, 39, 40, 41, 42, 42, 30, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 35, 35, 35, 35, 36, 37, 39, 39, 39, 39, 40, 40, 41, 42, 42, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31,
+ 32, 32, 32, 32, 32, 33, 34, 35, 35, 35, 35, 36, 38, 39, 40, 40, 40, 40, 41, 42, 42, 42, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32,
+ 33, 34, 35, 35, 35, 35, 36, 38, 39, 40, 40, 40, 40, 41, 42, 42, 42, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33, 34, 35, 35, 35,
+ 35, 36, 38, 39, 40, 40, 40, 40, 41, 42, 42, 42, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33, 34, 35, 35, 35, 35, 36, 38, 39, 40,
+ 40, 40, 40, 41, 42, 42, 42, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 35, 36, 36, 36, 36, 37, 38, 40, 40, 40, 40, 41, 41, 42,
+ 43, 43, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 35, 36, 37, 37, 37, 37, 38, 39, 41, 41, 41, 41, 42, 42, 43, 43, 43, 33, 33, 33,
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 36, 37, 38, 38, 38, 38, 39, 41, 42, 42, 42, 42, 43, 43, 44, 44, 44, 33, 34, 34, 34, 34, 34, 34, 34,
+ 35, 35, 35, 35, 35, 35, 36, 37, 38, 39, 39, 39, 39, 40, 41, 43, 43, 43, 43, 43, 44, 44, 45, 45, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35,
+ 35, 36, 37, 38, 39, 39, 39, 39, 40, 41, 43, 43, 43, 43, 43, 44, 44, 45, 45, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 37, 38, 39,
+ 39, 39, 39, 40, 41, 43, 43, 43, 43, 43, 44, 44, 45, 45, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 37, 38, 39, 39, 39, 39, 40, 41,
+ 43, 43, 43, 43, 43, 44, 44, 45, 45, 34, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 37, 38, 39, 40, 40, 40, 40, 41, 42, 44, 44, 44, 44, 44,
+ 45, 45, 45, 45, 35, 36, 36, 36, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 39, 41, 41, 41, 41, 41, 42, 44, 45, 46, 46, 46, 46, 46, 46, 46, 46, 36,
+ 37, 37, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 40, 41, 42, 43, 43, 43, 43, 44, 45, 46, 47, 47, 47, 47, 47, 47, 47, 47, 36, 37, 37, 38, 38, 38,
+ 38, 38, 39, 39, 40, 40, 40, 40, 40, 41, 42, 43, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 36, 37, 37, 38, 38, 38, 38, 38, 39, 39, 40,
+ 40, 40, 40, 40, 41, 42, 43, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 36, 37, 37, 38, 38, 38, 38, 38, 39, 39, 40, 40, 40, 40, 40, 41,
+ 42, 43, 43, 43, 43, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 37, 37, 38, 38, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 41, 42, 43, 43, 43, 43, 43,
+ 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 38, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 42, 43, 44, 44, 44, 44, 45, 46, 47, 47, 47,
+ 47, 47, 47, 48, 48, 48, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 43, 44, 44, 44, 44, 44, 45, 46, 47, 47, 47, 47, 47, 48, 48, 48,
+ 48, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 44, 45, 45, 45, 45, 45, 46, 47, 47, 47, 47, 47, 48, 48, 48, 48, 41, 42, 42, 42,
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 44, 45, 45, 45, 45, 45, 46, 47, 47, 47, 47, 47, 48, 48, 48, 48, 31, 31, 35, 37, 31, 31, 36, 38, 31,
+ 32, 37, 39, 31, 32, 37, 40, 34, 36, 40, 43, 35, 37, 42, 44, 38, 40, 45, 47, 41, 42, 45, 47, 31, 31, 31, 31, 34, 35, 38, 41, 31, 31, 32, 32, 36, 37,
+ 40, 42, 35, 36, 37, 37, 40, 42, 45, 45, 37, 38, 39, 40, 43, 44, 47, 47, 32, 31, 31, 31, 33, 37, 37, 38, 31, 31, 31, 31, 33, 38, 38, 39, 31, 31, 31,
+ 31, 34, 38, 38, 40, 31, 31, 31, 31, 34, 38, 38, 40, 31, 31, 32, 32, 34, 39, 39, 40, 30, 31, 32, 32, 35, 40, 40, 41, 30, 31, 32, 32, 35, 40, 40, 41,
+ 31, 32, 33, 33, 35, 40, 40, 41, 33, 34, 35, 35, 37, 42, 42, 43, 33, 35, 36, 36, 38, 43, 43, 44, 33, 35, 36, 36, 38, 43, 43, 44, 35, 37, 38, 38, 41,
+ 45, 45, 46, 37, 39, 40, 40, 43, 47, 47, 47, 37, 39, 40, 40, 43, 47, 47, 47, 39, 40, 41, 41, 43, 47, 47, 47, 42, 42, 43, 43, 44, 47, 47, 48, 32, 31,
+ 31, 31, 31, 30, 30, 31, 33, 33, 33, 35, 37, 37, 39, 42, 31, 31, 31, 31, 31, 31, 31, 32, 34, 35, 35, 37, 39, 39, 40, 42, 31, 31, 31, 31, 32, 32, 32,
+ 33, 35, 36, 36, 38, 40, 40, 41, 43, 31, 31, 31, 31, 32, 32, 32, 33, 35, 36, 36, 38, 40, 40, 41, 43, 33, 33, 34, 34, 34, 35, 35, 35, 37, 38, 38, 41,
+ 43, 43, 43, 44, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 45, 47, 47, 47, 47, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 45, 47, 47, 47, 47, 38,
+ 39, 40, 40, 40, 41, 41, 41, 43, 44, 44, 46, 47, 47, 47, 48, 32, 31, 31, 31, 31, 31, 31, 31, 33, 35, 37, 37, 37, 37, 38, 42, 31, 31, 31, 31, 31, 31,
+ 31, 31, 33, 35, 37, 37, 37, 37, 39, 42, 31, 31, 31, 31, 31, 31, 31, 32, 33, 35, 38, 38, 38, 38, 39, 42, 31, 31, 31, 31, 31, 31, 31, 32, 34, 36, 38,
+ 38, 38, 38, 40, 42, 31, 31, 31, 31, 31, 31, 31, 32, 34, 36, 38, 38, 38, 38, 40, 42, 31, 31, 31, 31, 31, 31, 31, 32, 34, 36, 38, 38, 38, 38, 40, 42,
+ 31, 31, 31, 31, 31, 31, 31, 32, 34, 36, 38, 38, 38, 38, 40, 42, 31, 31, 31, 31, 31, 31, 31, 32, 34, 36, 38, 38, 38, 38, 40, 42, 31, 31, 31, 31, 32,
+ 32, 32, 32, 34, 36, 39, 39, 39, 39, 40, 42, 30, 31, 31, 32, 32, 32, 32, 32, 34, 37, 39, 39, 39, 39, 40, 42, 30, 31, 31, 32, 32, 32, 32, 33, 35, 37,
+ 40, 40, 40, 40, 41, 42, 30, 31, 31, 32, 32, 32, 32, 33, 35, 37, 40, 40, 40, 40, 41, 42, 30, 31, 31, 32, 32, 32, 32, 33, 35, 37, 40, 40, 40, 40, 41,
+ 42, 30, 31, 31, 32, 32, 32, 32, 33, 35, 37, 40, 40, 40, 40, 41, 42, 31, 31, 32, 32, 33, 33, 33, 33, 35, 38, 40, 40, 40, 40, 41, 43, 32, 32, 33, 33,
+ 34, 34, 34, 34, 36, 39, 41, 41, 41, 41, 42, 44, 33, 33, 34, 35, 35, 35, 35, 35, 37, 40, 42, 42, 42, 42, 43, 44, 33, 34, 35, 35, 36, 36, 36, 36, 38,
+ 40, 43, 43, 43, 43, 44, 45, 33, 34, 35, 35, 36, 36, 36, 36, 38, 40, 43, 43, 43, 43, 44, 45, 33, 34, 35, 35, 36, 36, 36, 36, 38, 40, 43, 43, 43, 43,
+ 44, 45, 33, 34, 35, 35, 36, 36, 36, 36, 38, 40, 43, 43, 43, 43, 44, 45, 34, 35, 36, 37, 37, 37, 37, 37, 39, 42, 44, 44, 44, 44, 45, 45, 35, 36, 37,
+ 38, 38, 38, 38, 39, 41, 43, 45, 45, 45, 45, 46, 46, 36, 37, 38, 39, 39, 39, 39, 40, 42, 44, 47, 47, 47, 47, 47, 47, 37, 38, 39, 40, 40, 40, 40, 41,
+ 43, 45, 47, 47, 47, 47, 47, 47, 37, 38, 39, 40, 40, 40, 40, 41, 43, 45, 47, 47, 47, 47, 47, 47, 37, 38, 39, 40, 40, 40, 40, 41, 43, 45, 47, 47, 47,
+ 47, 47, 47, 37, 38, 39, 40, 40, 40, 40, 41, 43, 45, 47, 47, 47, 47, 47, 47, 39, 39, 40, 41, 41, 41, 41, 42, 43, 45, 47, 47, 47, 47, 47, 48, 40, 41,
+ 41, 42, 42, 42, 42, 42, 44, 45, 47, 47, 47, 47, 47, 48, 42, 42, 42, 43, 43, 43, 43, 43, 44, 46, 47, 47, 47, 47, 48, 48, 42, 42, 42, 43, 43, 43, 43,
+ 43, 44, 46, 47, 47, 47, 47, 48, 48, 32, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 31, 32, 33, 33, 33, 33, 33, 34, 35, 36, 37, 37, 37, 37,
+ 39, 40, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 34, 34, 35, 36, 37, 38, 38, 38, 38, 39, 41, 42, 42, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 35, 35, 35, 35, 36, 37, 38, 39, 39, 39, 39, 40, 41, 42, 42, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 35, 35, 35, 35, 35, 37, 38, 39, 40, 40, 40, 40, 41, 42, 43, 43, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32,
+ 32, 32, 32, 33, 34, 35, 36, 36, 36, 36, 37, 38, 39, 40, 40, 40, 40, 41, 42, 43, 43, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34,
+ 35, 36, 36, 36, 36, 37, 38, 39, 40, 40, 40, 40, 41, 42, 43, 43, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 35, 36, 36, 36, 36,
+ 37, 38, 39, 40, 40, 40, 40, 41, 42, 43, 43, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 35, 36, 36, 36, 36, 37, 39, 40, 41, 41,
+ 41, 41, 42, 42, 43, 43, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 36, 37, 38, 38, 38, 38, 39, 41, 42, 43, 43, 43, 43, 43, 44, 44,
+ 44, 35, 35, 35, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 38, 39, 40, 40, 40, 40, 40, 42, 43, 44, 45, 45, 45, 45, 45, 45, 46, 46, 37, 37, 38, 38,
+ 38, 38, 38, 38, 39, 39, 40, 40, 40, 40, 40, 41, 42, 43, 43, 43, 43, 44, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 37, 37, 38, 38, 38, 38, 38, 38, 39,
+ 39, 40, 40, 40, 40, 40, 41, 42, 43, 43, 43, 43, 44, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 37, 37, 38, 38, 38, 38, 38, 38, 39, 39, 40, 40, 40, 40,
+ 40, 41, 42, 43, 43, 43, 43, 44, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 37, 37, 38, 38, 38, 38, 38, 38, 39, 39, 40, 40, 40, 40, 40, 41, 42, 43, 43,
+ 43, 43, 44, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 38, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 42, 43, 44, 44, 44, 44, 45, 46, 47,
+ 47, 47, 47, 47, 47, 47, 48, 48, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 44, 44, 45, 45, 45, 45, 45, 46, 47, 47, 47, 47, 47, 48,
+ 48, 48, 48, 31, 31, 35, 37, 31, 31, 35, 38, 31, 31, 36, 38, 31, 31, 36, 38, 31, 32, 36, 39, 31, 32, 37, 40, 31, 32, 37, 40, 31, 33, 38, 40, 33, 35,
+ 40, 42, 34, 36, 40, 43, 34, 36, 40, 43, 36, 38, 43, 45, 38, 40, 45, 47, 38, 40, 45, 47, 39, 41, 45, 47, 42, 43, 46, 47, 31, 31, 31, 31, 31, 31, 31,
+ 31, 33, 34, 34, 36, 38, 38, 39, 42, 31, 31, 31, 31, 32, 32, 32, 33, 35, 36, 36, 38, 40, 40, 41, 43, 35, 35, 36, 36, 36, 37, 37, 38, 40, 40, 40, 43,
+ 45, 45, 45, 46, 37, 38, 38, 38, 39, 40, 40, 40, 42, 43, 43, 45, 47, 47, 47, 47, 32, 31, 31, 31, 33, 37, 37, 38, 31, 31, 31, 31, 33, 37, 37, 39, 31,
+ 31, 31, 31, 33, 38, 38, 39, 31, 31, 31, 31, 34, 38, 38, 40, 31, 31, 31, 31, 34, 38, 38, 40, 31, 31, 31, 31, 34, 38, 38, 40, 31, 31, 31, 31, 34, 38,
+ 38, 40, 31, 31, 31, 31, 34, 38, 38, 40, 31, 31, 32, 32, 34, 39, 39, 40, 30, 31, 32, 32, 34, 39, 39, 40, 30, 31, 32, 32, 35, 40, 40, 41, 30, 31, 32,
+ 32, 35, 40, 40, 41, 30, 31, 32, 32, 35, 40, 40, 41, 30, 31, 32, 32, 35, 40, 40, 41, 31, 32, 33, 33, 35, 40, 40, 41, 32, 33, 34, 34, 36, 41, 41, 42,
+ 33, 34, 35, 35, 37, 42, 42, 43, 33, 35, 36, 36, 38, 43, 43, 44, 33, 35, 36, 36, 38, 43, 43, 44, 33, 35, 36, 36, 38, 43, 43, 44, 33, 35, 36, 36, 38,
+ 43, 43, 44, 34, 36, 37, 37, 39, 44, 44, 45, 35, 37, 38, 38, 41, 45, 45, 46, 36, 38, 39, 39, 42, 47, 47, 47, 37, 39, 40, 40, 43, 47, 47, 47, 37, 39,
+ 40, 40, 43, 47, 47, 47, 37, 39, 40, 40, 43, 47, 47, 47, 37, 39, 40, 40, 43, 47, 47, 47, 39, 40, 41, 41, 43, 47, 47, 47, 40, 41, 42, 42, 44, 47, 47,
+ 47, 42, 42, 43, 43, 44, 47, 47, 48, 42, 42, 43, 43, 44, 47, 47, 48, 32, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 31, 32, 33, 33, 33, 33,
+ 33, 34, 35, 36, 37, 37, 37, 37, 39, 40, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 35, 35, 35, 35, 36, 37, 38, 39,
+ 39, 39, 39, 40, 41, 42, 42, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 35, 36, 36, 36, 36, 37, 38, 39, 40, 40, 40, 40, 41, 42,
+ 43, 43, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 35, 36, 36, 36, 36, 37, 38, 39, 40, 40, 40, 40, 41, 42, 43, 43, 33, 33, 33,
+ 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 36, 37, 38, 38, 38, 38, 39, 41, 42, 43, 43, 43, 43, 43, 44, 44, 44, 37, 37, 38, 38, 38, 38, 38, 38,
+ 39, 39, 40, 40, 40, 40, 40, 41, 42, 43, 43, 43, 43, 44, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 37, 37, 38, 38, 38, 38, 38, 38, 39, 39, 40, 40, 40,
+ 40, 40, 41, 42, 43, 43, 43, 43, 44, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 38, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 42, 43, 44,
+ 44, 44, 44, 45, 46, 47, 47, 47, 47, 47, 47, 47, 48, 48,
+ ],
+ ],
+ [
+ [
+ 31, 31, 31, 32, 31, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 33, 31, 31, 31, 31, 31, 31, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32,
+ 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 32, 32,
+ 32, 32, 32, 32, 33, 33, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32,
+ 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33,
+ 33, 33, 33, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 31, 31, 31, 32, 31, 32, 32, 32, 31,
+ 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 33, 32, 32, 32, 33, 32, 32, 32, 33, 31, 31, 31, 31, 31, 31, 32, 32, 31, 32, 32, 32, 32, 32,
+ 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 32, 31, 31, 31, 31, 31, 31, 32, 31, 31, 31, 31, 31, 31, 32, 32, 31, 31, 32,
+ 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32,
+ 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32,
+ 32, 33, 33, 31, 32, 32, 32, 32, 32, 33, 33, 32, 32, 32, 32, 32, 32, 33, 34, 32, 32, 32, 32, 32, 32, 33, 34, 32, 32, 32, 32, 32, 32, 33, 34, 32, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 34, 34, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33,
+ 33, 34, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 33, 33, 33, 34, 34, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32,
+ 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31,
+ 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33,
+ 33, 34, 34, 34, 34, 34, 34, 34, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34,
+ 34, 34, 34, 31, 31, 31, 32, 31, 31, 31, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32,
+ 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 33, 32, 32, 32, 33, 32, 32, 32, 33, 32, 32, 32, 33, 32, 32, 32, 33, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 32, 31, 31, 31, 31, 31, 31, 32, 31, 31, 31, 31, 31, 31, 32, 32, 31,
+ 31, 31, 31, 31, 31, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32,
+ 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32,
+ 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32,
+ 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32,
+ 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 33, 31, 32, 32, 32, 32, 32, 33, 33, 31, 32, 32, 32, 32, 32, 33, 33, 31, 32, 32, 32, 32, 32, 33, 33, 32, 32,
+ 32, 32, 32, 32, 33, 34, 32, 32, 32, 32, 32, 32, 33, 34, 32, 32, 32, 32, 32, 32, 33, 34, 32, 32, 32, 32, 32, 32, 33, 34, 32, 32, 32, 32, 32, 32, 33,
+ 34, 32, 32, 32, 32, 32, 32, 33, 34, 32, 32, 32, 32, 32, 32, 33, 34, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34,
+ ],
+ [
+ 31, 31, 31, 34, 31, 31, 31, 35, 31, 31, 32, 35, 34, 35, 35, 39, 31, 31, 31, 31, 30, 31, 33, 33, 31, 31, 31, 31, 31, 32, 34, 34, 31, 31, 31, 31, 31,
+ 32, 34, 34, 31, 31, 31, 31, 31, 32, 35, 35, 30, 31, 31, 31, 32, 32, 35, 35, 31, 32, 32, 32, 32, 33, 36, 36, 33, 34, 34, 35, 35, 36, 39, 39, 33, 34,
+ 34, 35, 35, 36, 39, 39, 32, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 33, 33, 33, 33, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 32, 33, 34, 34,
+ 34, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 34, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 34, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 34, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 34, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 33, 34, 35, 35, 35, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 35, 35, 30, 30, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 35,
+ 35, 35, 30, 30, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 35, 35, 35, 30, 30, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 34, 35, 35, 35, 31, 32, 32,
+ 32, 32, 32, 33, 33, 33, 33, 33, 34, 36, 37, 37, 37, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 36, 37, 38, 38, 38, 33, 34, 34, 34, 34, 34, 35, 35,
+ 35, 35, 35, 37, 38, 39, 39, 39, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 37, 38, 39, 39, 39, 33, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 37, 38,
+ 39, 39, 39, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 32, 33, 33, 33, 33, 33, 33, 33, 34, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 30, 31, 31, 32, 33, 33, 33, 33, 33, 33, 33, 34, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 31, 32, 32, 33, 34, 34, 34, 34, 34, 34, 34, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 33, 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 32, 33, 33, 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32,
+ 32, 33, 34, 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 34, 34, 34,
+ 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 34, 34, 34, 34, 34, 34, 34, 35,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 34, 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 34, 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 34, 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 32, 32, 33, 34, 35, 35, 35, 35, 35, 35, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 32, 33, 33, 34, 35, 35, 35, 35, 35, 35, 35, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 33, 34,
+ 35, 35, 35, 35, 35, 35, 36, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 35, 35, 35, 35, 35,
+ 35, 36, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 30, 30, 30,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 30, 30, 30, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32,
+ 32, 32, 32, 32, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33,
+ 34, 34, 35, 35, 35, 35, 35, 35, 36, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 36, 36, 36,
+ 36, 36, 36, 37, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 35, 36, 37, 37, 37, 37, 37, 37, 37, 32,
+ 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 36, 37, 37, 37, 37, 37, 37, 37, 38, 33, 33, 33, 33, 33, 34,
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 36, 37, 37, 38, 38, 38, 38, 38, 38, 39, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34,
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 37, 37, 38, 39, 39, 39, 39, 39, 39, 40, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35,
+ 35, 35, 35, 35, 35, 36, 37, 37, 38, 39, 39, 39, 39, 39, 39, 40, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
+ 36, 37, 37, 38, 39, 39, 39, 39, 39, 39, 40, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 37, 37, 38, 39,
+ 39, 39, 39, 39, 39, 40, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 37, 37, 38, 39, 39, 39, 39, 39, 39,
+ 40, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 37, 37, 38, 39, 39, 39, 39, 39, 39, 40, 34, 34, 34, 35,
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 38, 39, 40, 40, 40, 40, 40, 40, 40, 31, 31, 31, 34, 31, 31, 31, 35, 31,
+ 31, 31, 35, 31, 32, 32, 36, 31, 32, 32, 36, 31, 33, 33, 37, 34, 36, 36, 40, 34, 36, 36, 40, 31, 31, 31, 31, 31, 31, 34, 34, 31, 31, 31, 32, 32, 33,
+ 36, 36, 31, 31, 31, 32, 32, 33, 36, 36, 34, 35, 35, 36, 36, 37, 40, 40, 32, 31, 31, 31, 31, 31, 33, 35, 31, 31, 31, 31, 31, 31, 33, 36, 31, 31, 31,
+ 31, 31, 31, 34, 36, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31, 32, 32, 32, 34, 37,
+ 30, 31, 31, 32, 32, 32, 34, 38, 30, 31, 32, 32, 32, 32, 35, 38, 30, 31, 32, 32, 32, 32, 35, 38, 30, 31, 32, 32, 32, 32, 35, 38, 31, 32, 33, 33, 33,
+ 33, 36, 39, 33, 34, 34, 35, 35, 35, 37, 40, 33, 34, 35, 36, 36, 36, 38, 41, 33, 34, 35, 36, 36, 36, 38, 41, 33, 34, 35, 36, 36, 36, 38, 41, 32, 31,
+ 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 33, 33, 33, 33, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 34, 34, 34, 34, 31, 31, 31, 31, 31, 31, 31,
+ 31, 32, 32, 32, 33, 34, 35, 35, 35, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33, 35, 36, 36, 36, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33,
+ 35, 36, 36, 36, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33, 35, 36, 36, 36, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 36, 37, 38, 38, 38, 35,
+ 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 40, 41, 41, 41, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 35, 37, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 32, 33, 34, 35, 37, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 36, 37, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 32, 33, 35, 36, 38, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 34, 35, 36, 38, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 37, 38,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 37, 38, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 37, 38, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 33, 34, 35, 37, 38, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 37, 38, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 33, 34, 35, 37, 38, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 35, 37, 38, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 36, 37,
+ 39, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 36, 37, 39, 30, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 34, 36, 38, 39, 30, 31, 31, 31,
+ 32, 32, 32, 32, 32, 32, 32, 33, 35, 36, 38, 40, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 35, 36, 38, 40, 30, 31, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 33, 35, 36, 38, 40, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 35, 36, 38, 40, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 35, 36,
+ 38, 40, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 35, 36, 38, 40, 31, 31, 31, 32, 32, 33, 33, 33, 33, 33, 33, 34, 35, 37, 38, 40, 31, 32, 32,
+ 33, 33, 33, 33, 33, 33, 33, 33, 35, 36, 37, 39, 41, 32, 32, 33, 33, 34, 34, 34, 34, 34, 34, 34, 35, 37, 38, 40, 41, 33, 33, 34, 34, 34, 35, 35, 35,
+ 35, 35, 35, 36, 37, 39, 40, 42, 33, 34, 34, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38, 40, 41, 43, 33, 34, 34, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38,
+ 40, 41, 43, 33, 34, 34, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38, 40, 41, 43, 33, 34, 34, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38, 40, 41, 43, 33, 34,
+ 34, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38, 40, 41, 43, 33, 34, 34, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38, 40, 41, 43, 34, 34, 35, 35, 36, 36, 36,
+ 36, 36, 36, 36, 38, 39, 40, 42, 44, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 30, 31, 31, 32, 33, 33, 33, 33,
+ 33, 33, 33, 34, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 34, 34, 34, 34, 34, 34, 34, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 33, 34, 35, 35, 35, 35, 35, 35, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 33, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 33, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 35, 36,
+ 36, 36, 36, 36, 36, 36, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 35, 36, 36, 36, 36, 36, 36,
+ 36, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 32, 32, 32, 32, 32, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 35, 35, 36, 37, 37, 37, 37, 37, 37, 38, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
+ 34, 35, 35, 35, 35, 35, 35, 35, 36, 37, 37, 38, 38, 38, 38, 38, 38, 39, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36,
+ 36, 36, 37, 37, 38, 39, 40, 40, 40, 40, 40, 40, 40, 35, 35, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 39, 40,
+ 40, 41, 41, 41, 41, 41, 41, 42, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 42, 43, 43, 43, 43,
+ 43, 43, 44, 31, 31, 31, 34, 31, 31, 31, 34, 31, 31, 31, 35, 31, 31, 31, 35, 31, 31, 31, 35, 31, 31, 31, 35, 31, 32, 32, 36, 31, 32, 32, 36, 31, 32,
+ 32, 36, 31, 32, 32, 36, 31, 32, 32, 36, 32, 33, 33, 37, 33, 35, 35, 39, 34, 36, 36, 40, 34, 36, 36, 40, 34, 36, 36, 40, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 32, 33, 34, 34, 34, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33, 35, 36, 36, 36, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 33,
+ 35, 36, 36, 36, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 36, 37, 39, 40, 40, 40, 32, 31, 31, 31, 31, 31, 33, 35, 31, 31, 31, 31, 31, 31, 33, 35, 31,
+ 31, 31, 31, 31, 31, 33, 36, 31, 31, 31, 31, 31, 31, 33, 36, 31, 31, 31, 31, 31, 31, 34, 36, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31, 31, 31, 31,
+ 34, 37, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31, 31, 31, 31, 34, 37, 31, 31, 31,
+ 31, 31, 31, 34, 37, 31, 31, 31, 32, 32, 32, 34, 37, 31, 31, 31, 32, 32, 32, 34, 37, 30, 31, 31, 32, 32, 32, 34, 38, 30, 31, 32, 32, 32, 32, 35, 38,
+ 30, 31, 32, 32, 32, 32, 35, 38, 30, 31, 32, 32, 32, 32, 35, 38, 30, 31, 32, 32, 32, 32, 35, 38, 30, 31, 32, 32, 32, 32, 35, 38, 30, 31, 32, 32, 32,
+ 32, 35, 38, 31, 31, 32, 33, 33, 33, 35, 38, 31, 32, 33, 33, 33, 33, 36, 39, 32, 33, 34, 34, 34, 34, 37, 40, 33, 34, 34, 35, 35, 35, 37, 40, 33, 34,
+ 35, 36, 36, 36, 38, 41, 33, 34, 35, 36, 36, 36, 38, 41, 33, 34, 35, 36, 36, 36, 38, 41, 33, 34, 35, 36, 36, 36, 38, 41, 33, 34, 35, 36, 36, 36, 38,
+ 41, 33, 34, 35, 36, 36, 36, 38, 41, 34, 35, 36, 36, 36, 36, 39, 42, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30,
+ 30, 31, 31, 32, 33, 33, 33, 33, 33, 33, 33, 34, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 34,
+ 34, 34, 34, 34, 34, 34, 35, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 34, 34, 35, 35, 35, 35, 35,
+ 35, 36, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34,
+ 34, 34, 35, 35, 35, 35, 35, 35, 35, 36, 37, 37, 38, 38, 38, 38, 38, 38, 39, 35, 35, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38,
+ 38, 38, 38, 38, 39, 40, 40, 41, 41, 41, 41, 41, 41, 42,
+ ],
+ ],
+ [
+ [
+ 31, 31, 31, 31, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32,
+ 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31,
+ 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31,
+ 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31,
+ 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32,
+ 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32,
+ 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32,
+ 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32,
+ 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32,
+ 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32,
+ 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32,
+ 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31,
+ 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32,
+ 32, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31,
+ 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ ],
+ [
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 31,
+ 31, 31, 31, 31, 31, 31, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30,
+ 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 30, 30, 30, 30,
+ 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 30, 31, 32, 32, 31, 31, 31, 31, 31, 31, 31, 30, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 31, 31, 31, 31, 31, 31, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 30, 31, 31, 31, 31, 32, 32, 32, 30, 31, 31, 31, 32, 32, 32, 32, 32, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32,
+ 32, 32, 32, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 30, 30,
+ 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 30, 30, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 30, 30, 31, 31, 31, 31, 31,
+ 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30,
+ 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32,
+ 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 31, 31, 32, 32, 31, 31, 32, 32, 30, 31, 32, 32, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 31, 31,
+ 31, 31, 31, 32, 32, 32, 31, 31, 31, 31, 31, 32, 32, 32, 30, 31, 31, 31, 31, 32, 32, 32, 30, 31, 31, 31, 31, 32, 32, 32, 30, 31, 31, 31, 32, 32, 32,
+ 32, 30, 31, 31, 31, 32, 32, 32, 32, 30, 31, 31, 31, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32,
+ ],
+ ],
+];
+
+pub static REF_FRAME_LIST: [u8; 5] = [2, 3, 5, 6, 7];
+
+pub static REMAP_LR_TYPE: [u8; 4] = [0, 3, 1, 2];
+
+pub static SEGMENTATION_FEATURE_BITS: [u8; 8] = [8, 6, 6, 6, 6, 3, 0, 0];
+
+pub static SEGMENTATION_FEATURE_MAX: [u8; 8] = [255, 63, 63, 63, 63, 7, 0, 0];
+
+pub static SEGMENTATION_FEATURE_SIGNED: [u8; 8] = [1, 1, 1, 1, 1, 0, 0, 0];
+
+pub static SGR_PARAMS: [[u8; 4]; 16] = [
+ [2, 12, 1, 4],
+ [2, 15, 1, 6],
+ [2, 18, 1, 8],
+ [2, 21, 1, 9],
+ [2, 24, 1, 10],
+ [2, 29, 1, 11],
+ [2, 36, 1, 12],
+ [2, 45, 1, 13],
+ [2, 56, 1, 14],
+ [2, 68, 1, 15],
+ [0, 0, 1, 5],
+ [0, 0, 1, 8],
+ [0, 0, 1, 11],
+ [0, 0, 1, 14],
+ [2, 30, 0, 0],
+ [2, 75, 0, 0],
+];
+
+pub static SGRPROJ_XQD_MAX: [u8; 2] = [31, 95];
+
+pub static SGRPROJ_XQD_MID: [i8; 2] = [-32, 31];
+
+pub static SGRPROJ_XQD_MIN: [i8; 2] = [-96, -32];
+
+pub static SIG_REF_DIFF_OFFSET: [[[u8; 2]; 5]; 3] =
+ [[[0, 1], [1, 0], [1, 1], [0, 2], [2, 0]], [[0, 1], [1, 0], [0, 2], [0, 3], [0, 4]], [[0, 1], [1, 0], [2, 0], [3, 0], [4, 0]]];
+
+pub static SIZE_GROUP: [u8; 22] = [0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 0, 0, 1, 1, 2, 2];
+
+pub static SM_WEIGHTS_TX_16X16: [u8; 16] = [255, 225, 196, 170, 145, 123, 102, 84, 68, 54, 43, 33, 26, 20, 17, 16];
+
+pub static SM_WEIGHTS_TX_32X32: [u8; 32] =
+ [255, 240, 225, 210, 196, 182, 169, 157, 145, 133, 122, 111, 101, 92, 83, 74, 66, 59, 52, 45, 39, 34, 29, 25, 21, 17, 14, 12, 10, 9, 8, 8];
+
+pub static SM_WEIGHTS_TX_4X4: [u8; 4] = [255, 149, 85, 64];
+
+pub static SM_WEIGHTS_TX_64X64: [u8; 64] = [
+ 255, 248, 240, 233, 225, 218, 210, 203, 196, 189, 182, 176, 169, 163, 156, 150, 144, 138, 133, 127, 121, 116, 111, 106, 101, 96, 91, 86, 82, 77, 73, 69,
+ 65, 61, 57, 54, 50, 47, 44, 41, 38, 35, 32, 29, 27, 25, 22, 20, 18, 16, 15, 13, 12, 10, 9, 8, 7, 6, 6, 5, 5, 4, 4, 4,
+];
+
+pub static SM_WEIGHTS_TX_8X8: [u8; 8] = [255, 197, 146, 105, 73, 50, 37, 32];
+
+pub static SPLIT_TX_SIZE: [u8; 19] = [0, 0, 1, 2, 3, 0, 0, 1, 1, 2, 2, 3, 3, 5, 6, 7, 8, 9, 10];
+
+pub static SUBPEL_FILTERS: [[[i16; 8]; 16]; 6] = [
+ [
+ [0, 0, 0, 128, 0, 0, 0, 0],
+ [0, 2, -6, 126, 8, -2, 0, 0],
+ [0, 2, -10, 122, 18, -4, 0, 0],
+ [0, 2, -12, 116, 28, -8, 2, 0],
+ [0, 2, -14, 110, 38, -10, 2, 0],
+ [0, 2, -14, 102, 48, -12, 2, 0],
+ [0, 2, -16, 94, 58, -12, 2, 0],
+ [0, 2, -14, 84, 66, -12, 2, 0],
+ [0, 2, -14, 76, 76, -14, 2, 0],
+ [0, 2, -12, 66, 84, -14, 2, 0],
+ [0, 2, -12, 58, 94, -16, 2, 0],
+ [0, 2, -12, 48, 102, -14, 2, 0],
+ [0, 2, -10, 38, 110, -14, 2, 0],
+ [0, 2, -8, 28, 116, -12, 2, 0],
+ [0, 0, -4, 18, 122, -10, 2, 0],
+ [0, 0, -2, 8, 126, -6, 2, 0],
+ ],
+ [
+ [0, 0, 0, 128, 0, 0, 0, 0],
+ [0, 2, 28, 62, 34, 2, 0, 0],
+ [0, 0, 26, 62, 36, 4, 0, 0],
+ [0, 0, 22, 62, 40, 4, 0, 0],
+ [0, 0, 20, 60, 42, 6, 0, 0],
+ [0, 0, 18, 58, 44, 8, 0, 0],
+ [0, 0, 16, 56, 46, 10, 0, 0],
+ [0, -2, 16, 54, 48, 12, 0, 0],
+ [0, -2, 14, 52, 52, 14, -2, 0],
+ [0, 0, 12, 48, 54, 16, -2, 0],
+ [0, 0, 10, 46, 56, 16, 0, 0],
+ [0, 0, 8, 44, 58, 18, 0, 0],
+ [0, 0, 6, 42, 60, 20, 0, 0],
+ [0, 0, 4, 40, 62, 22, 0, 0],
+ [0, 0, 4, 36, 62, 26, 0, 0],
+ [0, 0, 2, 34, 62, 28, 2, 0],
+ ],
+ [
+ [0, 0, 0, 128, 0, 0, 0, 0],
+ [-2, 2, -6, 126, 8, -2, 2, 0],
+ [-2, 6, -12, 124, 16, -6, 4, -2],
+ [-2, 8, -18, 120, 26, -10, 6, -2],
+ [-4, 10, -22, 116, 38, -14, 6, -2],
+ [-4, 10, -22, 108, 48, -18, 8, -2],
+ [-4, 10, -24, 100, 60, -20, 8, -2],
+ [-4, 10, -24, 90, 70, -22, 10, -2],
+ [-4, 12, -24, 80, 80, -24, 12, -4],
+ [-2, 10, -22, 70, 90, -24, 10, -4],
+ [-2, 8, -20, 60, 100, -24, 10, -4],
+ [-2, 8, -18, 48, 108, -22, 10, -4],
+ [-2, 6, -14, 38, 116, -22, 10, -4],
+ [-2, 6, -10, 26, 120, -18, 8, -2],
+ [-2, 4, -6, 16, 124, -12, 6, -2],
+ [0, 2, -2, 8, 126, -6, 2, -2],
+ ],
+ [
+ [0, 0, 0, 128, 0, 0, 0, 0],
+ [0, 0, 0, 120, 8, 0, 0, 0],
+ [0, 0, 0, 112, 16, 0, 0, 0],
+ [0, 0, 0, 104, 24, 0, 0, 0],
+ [0, 0, 0, 96, 32, 0, 0, 0],
+ [0, 0, 0, 88, 40, 0, 0, 0],
+ [0, 0, 0, 80, 48, 0, 0, 0],
+ [0, 0, 0, 72, 56, 0, 0, 0],
+ [0, 0, 0, 64, 64, 0, 0, 0],
+ [0, 0, 0, 56, 72, 0, 0, 0],
+ [0, 0, 0, 48, 80, 0, 0, 0],
+ [0, 0, 0, 40, 88, 0, 0, 0],
+ [0, 0, 0, 32, 96, 0, 0, 0],
+ [0, 0, 0, 24, 104, 0, 0, 0],
+ [0, 0, 0, 16, 112, 0, 0, 0],
+ [0, 0, 0, 8, 120, 0, 0, 0],
+ ],
+ [
+ [0, 0, 0, 128, 0, 0, 0, 0],
+ [0, 0, -4, 126, 8, -2, 0, 0],
+ [0, 0, -8, 122, 18, -4, 0, 0],
+ [0, 0, -10, 116, 28, -6, 0, 0],
+ [0, 0, -12, 110, 38, -8, 0, 0],
+ [0, 0, -12, 102, 48, -10, 0, 0],
+ [0, 0, -14, 94, 58, -10, 0, 0],
+ [0, 0, -12, 84, 66, -10, 0, 0],
+ [0, 0, -12, 76, 76, -12, 0, 0],
+ [0, 0, -10, 66, 84, -12, 0, 0],
+ [0, 0, -10, 58, 94, -14, 0, 0],
+ [0, 0, -10, 48, 102, -12, 0, 0],
+ [0, 0, -8, 38, 110, -12, 0, 0],
+ [0, 0, -6, 28, 116, -10, 0, 0],
+ [0, 0, -4, 18, 122, -8, 0, 0],
+ [0, 0, -2, 8, 126, -4, 0, 0],
+ ],
+ [
+ [0, 0, 0, 128, 0, 0, 0, 0],
+ [0, 0, 30, 62, 34, 2, 0, 0],
+ [0, 0, 26, 62, 36, 4, 0, 0],
+ [0, 0, 22, 62, 40, 4, 0, 0],
+ [0, 0, 20, 60, 42, 6, 0, 0],
+ [0, 0, 18, 58, 44, 8, 0, 0],
+ [0, 0, 16, 56, 46, 10, 0, 0],
+ [0, 0, 14, 54, 48, 12, 0, 0],
+ [0, 0, 12, 52, 52, 12, 0, 0],
+ [0, 0, 12, 48, 54, 14, 0, 0],
+ [0, 0, 10, 46, 56, 16, 0, 0],
+ [0, 0, 8, 44, 58, 18, 0, 0],
+ [0, 0, 6, 42, 60, 20, 0, 0],
+ [0, 0, 4, 40, 62, 22, 0, 0],
+ [0, 0, 4, 36, 62, 26, 0, 0],
+ [0, 0, 2, 34, 62, 30, 0, 0],
+ ],
+];
+
+pub static SUBSAMPLED_SIZE: [[[u8; 2]; 2]; 22] = [
+ [[0, 0], [0, 0]],
+ [[1, 0], [22, 0]],
+ [[2, 22], [0, 0]],
+ [[3, 2], [1, 0]],
+ [[4, 3], [22, 1]],
+ [[5, 22], [3, 2]],
+ [[6, 5], [4, 3]],
+ [[7, 6], [22, 4]],
+ [[8, 22], [6, 5]],
+ [[9, 8], [7, 6]],
+ [[10, 9], [22, 7]],
+ [[11, 22], [9, 8]],
+ [[12, 11], [10, 9]],
+ [[13, 12], [22, 10]],
+ [[14, 22], [12, 11]],
+ [[15, 14], [13, 12]],
+ [[16, 1], [22, 1]],
+ [[17, 22], [2, 2]],
+ [[18, 4], [22, 16]],
+ [[19, 22], [5, 17]],
+ [[20, 7], [22, 18]],
+ [[21, 22], [8, 19]],
+];
+
+pub static TRANSFORM_ROW_SHIFT: [u8; 19] = [0, 1, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2];
+
+pub static TX_HEIGHT: [u8; 19] = [4, 8, 16, 32, 64, 8, 4, 16, 8, 32, 16, 64, 32, 16, 4, 32, 8, 64, 16];
+
+pub static TX_HEIGHT_LOG2: [u8; 19] = [2, 3, 4, 5, 6, 3, 2, 4, 3, 5, 4, 6, 5, 4, 2, 5, 3, 6, 4];
+
+pub static TX_SIZE_SQR: [u8; 19] = [0, 1, 2, 3, 4, 0, 0, 1, 1, 2, 2, 3, 3, 0, 0, 1, 1, 2, 2];
+
+pub static TX_SIZE_SQR_UP: [u8; 19] = [0, 1, 2, 3, 4, 1, 1, 2, 2, 3, 3, 4, 4, 2, 2, 3, 3, 4, 4];
+
+pub static TX_TYPE_IN_SET_INTER: [[u8; 16]; 4] = [
+ [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0],
+ [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
+];
+
+pub static TX_TYPE_IN_SET_INTRA: [[u8; 16]; 3] =
+ [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]];
+
+pub static TX_TYPE_INTER_INV_SET1: [u8; 16] = [9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 4, 5, 3, 6, 7, 8];
+
+pub static TX_TYPE_INTER_INV_SET2: [u8; 12] = [9, 10, 11, 0, 1, 2, 4, 5, 3, 6, 7, 8];
+
+pub static TX_TYPE_INTER_INV_SET3: [u8; 2] = [9, 0];
+
+pub static TX_TYPE_INTRA_INV_SET1: [u8; 7] = [9, 0, 10, 11, 3, 1, 2];
+
+pub static TX_TYPE_INTRA_INV_SET2: [u8; 5] = [9, 0, 3, 1, 2];
+
+pub static TX_WIDTH: [u8; 19] = [4, 8, 16, 32, 64, 4, 8, 8, 16, 16, 32, 32, 64, 4, 16, 8, 32, 16, 64];
+
+pub static TX_WIDTH_LOG2: [u8; 19] = [2, 3, 4, 5, 6, 2, 3, 3, 4, 4, 5, 5, 6, 2, 4, 3, 5, 4, 6];
+
+pub static UPSCALE_FILTER: [[i16; 8]; 64] = [
+ [0, 0, 0, 128, 0, 0, 0, 0],
+ [0, 0, -1, 128, 2, -1, 0, 0],
+ [0, 1, -3, 127, 4, -2, 1, 0],
+ [0, 1, -4, 127, 6, -3, 1, 0],
+ [0, 2, -6, 126, 8, -3, 1, 0],
+ [0, 2, -7, 125, 11, -4, 1, 0],
+ [-1, 2, -8, 125, 13, -5, 2, 0],
+ [-1, 3, -9, 124, 15, -6, 2, 0],
+ [-1, 3, -10, 123, 18, -6, 2, -1],
+ [-1, 3, -11, 122, 20, -7, 3, -1],
+ [-1, 4, -12, 121, 22, -8, 3, -1],
+ [-1, 4, -13, 120, 25, -9, 3, -1],
+ [-1, 4, -14, 118, 28, -9, 3, -1],
+ [-1, 4, -15, 117, 30, -10, 4, -1],
+ [-1, 5, -16, 116, 32, -11, 4, -1],
+ [-1, 5, -16, 114, 35, -12, 4, -1],
+ [-1, 5, -17, 112, 38, -12, 4, -1],
+ [-1, 5, -18, 111, 40, -13, 5, -1],
+ [-1, 5, -18, 109, 43, -14, 5, -1],
+ [-1, 6, -19, 107, 45, -14, 5, -1],
+ [-1, 6, -19, 105, 48, -15, 5, -1],
+ [-1, 6, -19, 103, 51, -16, 5, -1],
+ [-1, 6, -20, 101, 53, -16, 6, -1],
+ [-1, 6, -20, 99, 56, -17, 6, -1],
+ [-1, 6, -20, 97, 58, -17, 6, -1],
+ [-1, 6, -20, 95, 61, -18, 6, -1],
+ [-2, 7, -20, 93, 64, -18, 6, -2],
+ [-2, 7, -20, 91, 66, -19, 6, -1],
+ [-2, 7, -20, 88, 69, -19, 6, -1],
+ [-2, 7, -20, 86, 71, -19, 6, -1],
+ [-2, 7, -20, 84, 74, -20, 7, -2],
+ [-2, 7, -20, 81, 76, -20, 7, -1],
+ [-2, 7, -20, 79, 79, -20, 7, -2],
+ [-1, 7, -20, 76, 81, -20, 7, -2],
+ [-2, 7, -20, 74, 84, -20, 7, -2],
+ [-1, 6, -19, 71, 86, -20, 7, -2],
+ [-1, 6, -19, 69, 88, -20, 7, -2],
+ [-1, 6, -19, 66, 91, -20, 7, -2],
+ [-2, 6, -18, 64, 93, -20, 7, -2],
+ [-1, 6, -18, 61, 95, -20, 6, -1],
+ [-1, 6, -17, 58, 97, -20, 6, -1],
+ [-1, 6, -17, 56, 99, -20, 6, -1],
+ [-1, 6, -16, 53, 101, -20, 6, -1],
+ [-1, 5, -16, 51, 103, -19, 6, -1],
+ [-1, 5, -15, 48, 105, -19, 6, -1],
+ [-1, 5, -14, 45, 107, -19, 6, -1],
+ [-1, 5, -14, 43, 109, -18, 5, -1],
+ [-1, 5, -13, 40, 111, -18, 5, -1],
+ [-1, 4, -12, 38, 112, -17, 5, -1],
+ [-1, 4, -12, 35, 114, -16, 5, -1],
+ [-1, 4, -11, 32, 116, -16, 5, -1],
+ [-1, 4, -10, 30, 117, -15, 4, -1],
+ [-1, 3, -9, 28, 118, -14, 4, -1],
+ [-1, 3, -9, 25, 120, -13, 4, -1],
+ [-1, 3, -8, 22, 121, -12, 4, -1],
+ [-1, 3, -7, 20, 122, -11, 3, -1],
+ [-1, 2, -6, 18, 123, -10, 3, -1],
+ [0, 2, -6, 15, 124, -9, 3, -1],
+ [0, 2, -5, 13, 125, -8, 2, -1],
+ [0, 1, -4, 11, 125, -7, 2, 0],
+ [0, 1, -3, 8, 126, -6, 2, 0],
+ [0, 1, -3, 6, 127, -4, 1, 0],
+ [0, 1, -2, 4, 127, -3, 1, 0],
+ [0, 0, -1, 2, 128, -1, 0, 0],
+];
+
+pub static WARPED_FILTERS: [[i8; 8]; 193] = [
+ [0, 0, 127, 1, 0, 0, 0, 0],
+ [0, -1, 127, 2, 0, 0, 0, 0],
+ [1, -3, 127, 4, -1, 0, 0, 0],
+ [1, -4, 126, 6, -2, 1, 0, 0],
+ [1, -5, 126, 8, -3, 1, 0, 0],
+ [1, -6, 125, 11, -4, 1, 0, 0],
+ [1, -7, 124, 13, -4, 1, 0, 0],
+ [2, -8, 123, 15, -5, 1, 0, 0],
+ [2, -9, 122, 18, -6, 1, 0, 0],
+ [2, -10, 121, 20, -6, 1, 0, 0],
+ [2, -11, 120, 22, -7, 2, 0, 0],
+ [2, -12, 119, 25, -8, 2, 0, 0],
+ [3, -13, 117, 27, -8, 2, 0, 0],
+ [3, -13, 116, 29, -9, 2, 0, 0],
+ [3, -14, 114, 32, -10, 3, 0, 0],
+ [3, -15, 113, 35, -10, 2, 0, 0],
+ [3, -15, 111, 37, -11, 3, 0, 0],
+ [3, -16, 109, 40, -11, 3, 0, 0],
+ [3, -16, 108, 42, -12, 3, 0, 0],
+ [4, -17, 106, 45, -13, 3, 0, 0],
+ [4, -17, 104, 47, -13, 3, 0, 0],
+ [4, -17, 102, 50, -14, 3, 0, 0],
+ [4, -17, 100, 52, -14, 3, 0, 0],
+ [4, -18, 98, 55, -15, 4, 0, 0],
+ [4, -18, 96, 58, -15, 3, 0, 0],
+ [4, -18, 94, 60, -16, 4, 0, 0],
+ [4, -18, 91, 63, -16, 4, 0, 0],
+ [4, -18, 89, 65, -16, 4, 0, 0],
+ [4, -18, 87, 68, -17, 4, 0, 0],
+ [4, -18, 85, 70, -17, 4, 0, 0],
+ [4, -18, 82, 73, -17, 4, 0, 0],
+ [4, -18, 80, 75, -17, 4, 0, 0],
+ [4, -18, 78, 78, -18, 4, 0, 0],
+ [4, -17, 75, 80, -18, 4, 0, 0],
+ [4, -17, 73, 82, -18, 4, 0, 0],
+ [4, -17, 70, 85, -18, 4, 0, 0],
+ [4, -17, 68, 87, -18, 4, 0, 0],
+ [4, -16, 65, 89, -18, 4, 0, 0],
+ [4, -16, 63, 91, -18, 4, 0, 0],
+ [4, -16, 60, 94, -18, 4, 0, 0],
+ [3, -15, 58, 96, -18, 4, 0, 0],
+ [4, -15, 55, 98, -18, 4, 0, 0],
+ [3, -14, 52, 100, -17, 4, 0, 0],
+ [3, -14, 50, 102, -17, 4, 0, 0],
+ [3, -13, 47, 104, -17, 4, 0, 0],
+ [3, -13, 45, 106, -17, 4, 0, 0],
+ [3, -12, 42, 108, -16, 3, 0, 0],
+ [3, -11, 40, 109, -16, 3, 0, 0],
+ [3, -11, 37, 111, -15, 3, 0, 0],
+ [2, -10, 35, 113, -15, 3, 0, 0],
+ [3, -10, 32, 114, -14, 3, 0, 0],
+ [2, -9, 29, 116, -13, 3, 0, 0],
+ [2, -8, 27, 117, -13, 3, 0, 0],
+ [2, -8, 25, 119, -12, 2, 0, 0],
+ [2, -7, 22, 120, -11, 2, 0, 0],
+ [1, -6, 20, 121, -10, 2, 0, 0],
+ [1, -6, 18, 122, -9, 2, 0, 0],
+ [1, -5, 15, 123, -8, 2, 0, 0],
+ [1, -4, 13, 124, -7, 1, 0, 0],
+ [1, -4, 11, 125, -6, 1, 0, 0],
+ [1, -3, 8, 126, -5, 1, 0, 0],
+ [1, -2, 6, 126, -4, 1, 0, 0],
+ [0, -1, 4, 127, -3, 1, 0, 0],
+ [0, 0, 2, 127, -1, 0, 0, 0],
+ [0, 0, 0, 127, 1, 0, 0, 0],
+ [0, 0, -1, 127, 2, 0, 0, 0],
+ [0, 1, -3, 127, 4, -2, 1, 0],
+ [0, 1, -5, 127, 6, -2, 1, 0],
+ [0, 2, -6, 126, 8, -3, 1, 0],
+ [-1, 2, -7, 126, 11, -4, 2, -1],
+ [-1, 3, -8, 125, 13, -5, 2, -1],
+ [-1, 3, -10, 124, 16, -6, 3, -1],
+ [-1, 4, -11, 123, 18, -7, 3, -1],
+ [-1, 4, -12, 122, 20, -7, 3, -1],
+ [-1, 4, -13, 121, 23, -8, 3, -1],
+ [-2, 5, -14, 120, 25, -9, 4, -1],
+ [-1, 5, -15, 119, 27, -10, 4, -1],
+ [-1, 5, -16, 118, 30, -11, 4, -1],
+ [-2, 6, -17, 116, 33, -12, 5, -1],
+ [-2, 6, -17, 114, 35, -12, 5, -1],
+ [-2, 6, -18, 113, 38, -13, 5, -1],
+ [-2, 7, -19, 111, 41, -14, 6, -2],
+ [-2, 7, -19, 110, 43, -15, 6, -2],
+ [-2, 7, -20, 108, 46, -15, 6, -2],
+ [-2, 7, -20, 106, 49, -16, 6, -2],
+ [-2, 7, -21, 104, 51, -16, 7, -2],
+ [-2, 7, -21, 102, 54, -17, 7, -2],
+ [-2, 8, -21, 100, 56, -18, 7, -2],
+ [-2, 8, -22, 98, 59, -18, 7, -2],
+ [-2, 8, -22, 96, 62, -19, 7, -2],
+ [-2, 8, -22, 94, 64, -19, 7, -2],
+ [-2, 8, -22, 91, 67, -20, 8, -2],
+ [-2, 8, -22, 89, 69, -20, 8, -2],
+ [-2, 8, -22, 87, 72, -21, 8, -2],
+ [-2, 8, -21, 84, 74, -21, 8, -2],
+ [-2, 8, -22, 82, 77, -21, 8, -2],
+ [-2, 8, -21, 79, 79, -21, 8, -2],
+ [-2, 8, -21, 77, 82, -22, 8, -2],
+ [-2, 8, -21, 74, 84, -21, 8, -2],
+ [-2, 8, -21, 72, 87, -22, 8, -2],
+ [-2, 8, -20, 69, 89, -22, 8, -2],
+ [-2, 8, -20, 67, 91, -22, 8, -2],
+ [-2, 7, -19, 64, 94, -22, 8, -2],
+ [-2, 7, -19, 62, 96, -22, 8, -2],
+ [-2, 7, -18, 59, 98, -22, 8, -2],
+ [-2, 7, -18, 56, 100, -21, 8, -2],
+ [-2, 7, -17, 54, 102, -21, 7, -2],
+ [-2, 7, -16, 51, 104, -21, 7, -2],
+ [-2, 6, -16, 49, 106, -20, 7, -2],
+ [-2, 6, -15, 46, 108, -20, 7, -2],
+ [-2, 6, -15, 43, 110, -19, 7, -2],
+ [-2, 6, -14, 41, 111, -19, 7, -2],
+ [-1, 5, -13, 38, 113, -18, 6, -2],
+ [-1, 5, -12, 35, 114, -17, 6, -2],
+ [-1, 5, -12, 33, 116, -17, 6, -2],
+ [-1, 4, -11, 30, 118, -16, 5, -1],
+ [-1, 4, -10, 27, 119, -15, 5, -1],
+ [-1, 4, -9, 25, 120, -14, 5, -2],
+ [-1, 3, -8, 23, 121, -13, 4, -1],
+ [-1, 3, -7, 20, 122, -12, 4, -1],
+ [-1, 3, -7, 18, 123, -11, 4, -1],
+ [-1, 3, -6, 16, 124, -10, 3, -1],
+ [-1, 2, -5, 13, 125, -8, 3, -1],
+ [-1, 2, -4, 11, 126, -7, 2, -1],
+ [0, 1, -3, 8, 126, -6, 2, 0],
+ [0, 1, -2, 6, 127, -5, 1, 0],
+ [0, 1, -2, 4, 127, -3, 1, 0],
+ [0, 0, 0, 2, 127, -1, 0, 0],
+ [0, 0, 0, 1, 127, 0, 0, 0],
+ [0, 0, 0, -1, 127, 2, 0, 0],
+ [0, 0, 1, -3, 127, 4, -1, 0],
+ [0, 0, 1, -4, 126, 6, -2, 1],
+ [0, 0, 1, -5, 126, 8, -3, 1],
+ [0, 0, 1, -6, 125, 11, -4, 1],
+ [0, 0, 1, -7, 124, 13, -4, 1],
+ [0, 0, 2, -8, 123, 15, -5, 1],
+ [0, 0, 2, -9, 122, 18, -6, 1],
+ [0, 0, 2, -10, 121, 20, -6, 1],
+ [0, 0, 2, -11, 120, 22, -7, 2],
+ [0, 0, 2, -12, 119, 25, -8, 2],
+ [0, 0, 3, -13, 117, 27, -8, 2],
+ [0, 0, 3, -13, 116, 29, -9, 2],
+ [0, 0, 3, -14, 114, 32, -10, 3],
+ [0, 0, 3, -15, 113, 35, -10, 2],
+ [0, 0, 3, -15, 111, 37, -11, 3],
+ [0, 0, 3, -16, 109, 40, -11, 3],
+ [0, 0, 3, -16, 108, 42, -12, 3],
+ [0, 0, 4, -17, 106, 45, -13, 3],
+ [0, 0, 4, -17, 104, 47, -13, 3],
+ [0, 0, 4, -17, 102, 50, -14, 3],
+ [0, 0, 4, -17, 100, 52, -14, 3],
+ [0, 0, 4, -18, 98, 55, -15, 4],
+ [0, 0, 4, -18, 96, 58, -15, 3],
+ [0, 0, 4, -18, 94, 60, -16, 4],
+ [0, 0, 4, -18, 91, 63, -16, 4],
+ [0, 0, 4, -18, 89, 65, -16, 4],
+ [0, 0, 4, -18, 87, 68, -17, 4],
+ [0, 0, 4, -18, 85, 70, -17, 4],
+ [0, 0, 4, -18, 82, 73, -17, 4],
+ [0, 0, 4, -18, 80, 75, -17, 4],
+ [0, 0, 4, -18, 78, 78, -18, 4],
+ [0, 0, 4, -17, 75, 80, -18, 4],
+ [0, 0, 4, -17, 73, 82, -18, 4],
+ [0, 0, 4, -17, 70, 85, -18, 4],
+ [0, 0, 4, -17, 68, 87, -18, 4],
+ [0, 0, 4, -16, 65, 89, -18, 4],
+ [0, 0, 4, -16, 63, 91, -18, 4],
+ [0, 0, 4, -16, 60, 94, -18, 4],
+ [0, 0, 3, -15, 58, 96, -18, 4],
+ [0, 0, 4, -15, 55, 98, -18, 4],
+ [0, 0, 3, -14, 52, 100, -17, 4],
+ [0, 0, 3, -14, 50, 102, -17, 4],
+ [0, 0, 3, -13, 47, 104, -17, 4],
+ [0, 0, 3, -13, 45, 106, -17, 4],
+ [0, 0, 3, -12, 42, 108, -16, 3],
+ [0, 0, 3, -11, 40, 109, -16, 3],
+ [0, 0, 3, -11, 37, 111, -15, 3],
+ [0, 0, 2, -10, 35, 113, -15, 3],
+ [0, 0, 3, -10, 32, 114, -14, 3],
+ [0, 0, 2, -9, 29, 116, -13, 3],
+ [0, 0, 2, -8, 27, 117, -13, 3],
+ [0, 0, 2, -8, 25, 119, -12, 2],
+ [0, 0, 2, -7, 22, 120, -11, 2],
+ [0, 0, 1, -6, 20, 121, -10, 2],
+ [0, 0, 1, -6, 18, 122, -9, 2],
+ [0, 0, 1, -5, 15, 123, -8, 2],
+ [0, 0, 1, -4, 13, 124, -7, 1],
+ [0, 0, 1, -4, 11, 125, -6, 1],
+ [0, 0, 1, -3, 8, 126, -5, 1],
+ [0, 0, 1, -2, 6, 126, -4, 1],
+ [0, 0, 0, -1, 4, 127, -3, 1],
+ [0, 0, 0, 0, 2, 127, -1, 0],
+ [0, 0, 0, 0, 2, 127, -1, 0],
+];
+
+pub static WEDGE_BITS: [u8; 22] = [0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0];
+
+pub static WEDGE_CODEBOOK: [[[u8; 3]; 16]; 3] = [
+ [
+ [2, 4, 4],
+ [3, 4, 4],
+ [4, 4, 4],
+ [5, 4, 4],
+ [0, 4, 2],
+ [0, 4, 4],
+ [0, 4, 6],
+ [1, 4, 4],
+ [2, 4, 2],
+ [2, 4, 6],
+ [5, 4, 2],
+ [5, 4, 6],
+ [3, 2, 4],
+ [3, 6, 4],
+ [4, 2, 4],
+ [4, 6, 4],
+ ],
+ [
+ [2, 4, 4],
+ [3, 4, 4],
+ [4, 4, 4],
+ [5, 4, 4],
+ [1, 2, 4],
+ [1, 4, 4],
+ [1, 6, 4],
+ [0, 4, 4],
+ [2, 4, 2],
+ [2, 4, 6],
+ [5, 4, 2],
+ [5, 4, 6],
+ [3, 2, 4],
+ [3, 6, 4],
+ [4, 2, 4],
+ [4, 6, 4],
+ ],
+ [
+ [2, 4, 4],
+ [3, 4, 4],
+ [4, 4, 4],
+ [5, 4, 4],
+ [0, 4, 2],
+ [0, 4, 6],
+ [1, 2, 4],
+ [1, 6, 4],
+ [2, 4, 2],
+ [2, 4, 6],
+ [5, 4, 2],
+ [5, 4, 6],
+ [3, 2, 4],
+ [3, 6, 4],
+ [4, 2, 4],
+ [4, 6, 4],
+ ],
+];
+
+pub static WEDGE_MASTER_OBLIQUE_EVEN: [u8; 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, 1, 4, 11, 27, 46, 58, 62, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
+];
+
+pub static WEDGE_MASTER_OBLIQUE_ODD: [u8; 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, 1, 2, 6, 18, 37, 53, 60, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
+];
+
+pub static WEDGE_MASTER_VERTICAL: [u8; 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, 2, 7, 21, 43, 57, 62, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
+];
+
+pub static WIENER_TAPS_K: [u8; 3] = [1, 2, 3];
+
+pub static WIENER_TAPS_MAX: [u8; 3] = [10, 8, 46];
+
+pub static WIENER_TAPS_MID: [i8; 3] = [3, -7, 15];
+
+pub static WIENER_TAPS_MIN: [i8; 3] = [-5, -23, -17];
diff --git a/crates/av1/src/state.rs b/crates/av1/src/state.rs
new file mode 100644
index 000000000..e9485479a
--- /dev/null
+++ b/crates/av1/src/state.rs
@@ -0,0 +1,130 @@
+//! Per-frame decoding state shared by the tiles and the post-filters.
+
+use crate::frame::{FrameBuf, MiInfo};
+use crate::header::{FrameHeader, SequenceHeader};
+use crate::spec_tables::*;
+
+pub(crate) struct FrameState {
+ pub seq: SequenceHeader,
+ pub fh: FrameHeader,
+ pub num_planes: usize,
+ pub ssx: usize,
+ pub ssy: usize,
+ pub bit_depth: u32,
+ pub cur: FrameBuf,
+ pub mi: MiInfo,
+ pub above_level: [Vec<u8>; 3],
+ pub above_dc: [Vec<u8>; 3],
+ pub above_seg_pred: Vec<u8>,
+ pub left_level: [Vec<u8>; 3],
+ pub left_dc: [Vec<u8>; 3],
+ pub left_seg_pred: Vec<u8>,
+ /// cdef_idx per 64x64 block.
+ cdef: Vec<i8>,
+ cdef_cols: usize,
+ /// LoopfilterTxSizes[ plane ][ row ][ col ] in 4x4 units of each plane.
+ pub lf_tx_size: [Vec<u8>; 3],
+ pub lr_unit_rows: [usize; 3],
+ pub lr_unit_cols: [usize; 3],
+ pub lr_type: [Vec<u8>; 3],
+ pub lr_wiener: [Vec<[[i8; 3]; 2]>; 3],
+ pub lr_sgr_set: [Vec<u8>; 3],
+ pub lr_sgr_xqd: [Vec<[i8; 2]>; 3],
+ /// TileIntraFrameYModeCdf (reset per tile).
+ pub intra_frame_y_mode_cdf: [[[u16; 14]; 5]; 5],
+}
+
+fn count_units_in_frame(unit_size: usize, frame_size: usize) -> usize {
+ ((frame_size + (unit_size >> 1)) / unit_size).max(1)
+}
+
+impl FrameState {
+ pub fn new(seq: &SequenceHeader, fh: &FrameHeader) -> FrameState {
+ let c = &seq.color;
+ let (ssx, ssy) = (c.subsampling_x as usize, c.subsampling_y as usize);
+ let mi_cols = fh.mi_cols as usize;
+ let mi_rows = fh.mi_rows as usize;
+ let cur = FrameBuf::new(fh.frame_width as usize, fh.frame_height as usize, c.num_planes, ssx, ssy, c.bit_depth);
+ let cdef_cols = mi_cols.div_ceil(16) + 2;
+ let cdef_rows = mi_rows.div_ceil(16) + 2;
+ let mut lr_unit_rows = [0; 3];
+ let mut lr_unit_cols = [0; 3];
+ let mut lr_type: [Vec<u8>; 3] = Default::default();
+ let mut lr_wiener: [Vec<[[i8; 3]; 2]>; 3] = Default::default();
+ let mut lr_sgr_set: [Vec<u8>; 3] = Default::default();
+ let mut lr_sgr_xqd: [Vec<[i8; 2]>; 3] = Default::default();
+ for plane in 0..c.num_planes {
+ if fh.lr.frame_restoration_type[plane] == RESTORE_NONE as u8 {
+ continue;
+ }
+ let sub_x = if plane == 0 { 0 } else { ssx };
+ let sub_y = if plane == 0 { 0 } else { ssy };
+ let unit = fh.lr.loop_restoration_size[plane] as usize;
+ lr_unit_rows[plane] = count_units_in_frame(unit, (fh.frame_height as usize + sub_y) >> sub_y);
+ lr_unit_cols[plane] = count_units_in_frame(unit, (fh.upscaled_width as usize + sub_x) >> sub_x);
+ let n = lr_unit_rows[plane] * lr_unit_cols[plane];
+ lr_type[plane] = vec![RESTORE_NONE as u8; n];
+ lr_wiener[plane] = vec![[[0; 3]; 2]; n];
+ lr_sgr_set[plane] = vec![0; n];
+ lr_sgr_xqd[plane] = vec![[0; 2]; n];
+ }
+ FrameState {
+ seq: seq.clone(),
+ fh: fh.clone(),
+ num_planes: c.num_planes,
+ ssx,
+ ssy,
+ bit_depth: c.bit_depth as u32,
+ cur,
+ mi: MiInfo::new(mi_cols, mi_rows),
+ above_level: std::array::from_fn(|_| vec![0; mi_cols + 64]),
+ above_dc: std::array::from_fn(|_| vec![0; mi_cols + 64]),
+ above_seg_pred: vec![0; mi_cols + 64],
+ left_level: std::array::from_fn(|_| vec![0; mi_rows + 64]),
+ left_dc: std::array::from_fn(|_| vec![0; mi_rows + 64]),
+ left_seg_pred: vec![0; mi_rows + 64],
+ cdef: vec![-1; cdef_cols * cdef_rows],
+ cdef_cols,
+ lf_tx_size: std::array::from_fn(|_| vec![0; (mi_cols + 32) * (mi_rows + 32)]),
+ lr_unit_rows,
+ lr_unit_cols,
+ lr_type,
+ lr_wiener,
+ lr_sgr_set,
+ lr_sgr_xqd,
+ intra_frame_y_mode_cdf: DEFAULT_INTRA_FRAME_Y_MODE_CDF,
+ }
+ }
+
+ pub fn plane_residual_size(&self, subsize: usize, plane: usize) -> usize {
+ let sx = if plane > 0 { self.ssx } else { 0 };
+ let sy = if plane > 0 { self.ssy } else { 0 };
+ SUBSAMPLED_SIZE[subsize][sx][sy] as usize
+ }
+
+ #[inline]
+ pub fn cdef_idx(&self, r: usize, c: usize) -> i8 {
+ self.cdef[(r >> 4) * self.cdef_cols + (c >> 4)]
+ }
+
+ #[inline]
+ pub fn set_cdef_idx(&mut self, r: usize, c: usize, v: i8) {
+ let i = (r >> 4) * self.cdef_cols + (c >> 4);
+ if i < self.cdef.len() {
+ self.cdef[i] = v;
+ }
+ }
+
+ #[inline]
+ pub fn lf_tx_size(&self, plane: usize, row: usize, col: usize) -> usize {
+ self.lf_tx_size[plane][row * (self.mi.cols + 32) + col] as usize
+ }
+
+ #[inline]
+ pub fn set_lf_tx_size(&mut self, plane: usize, row: usize, col: usize, v: u8) {
+ let stride = self.mi.cols + 32;
+ if col < stride && row < self.mi.rows + 32 {
+ self.lf_tx_size[plane][row * stride + col] = v;
+ }
+ }
+}
diff --git a/crates/av1/src/symbol.rs b/crates/av1/src/symbol.rs
new file mode 100644
index 000000000..f522f451f
--- /dev/null
+++ b/crates/av1/src/symbol.rs
@@ -0,0 +1,145 @@
+//! Symbol (arithmetic) decoder, spec 8.2.
+//!
+//! The state follows the specification literally: `SymbolValue` / `SymbolRange` are 15/16-bit
+//! quantities renormalised by reading `bits` new bits at a time, and `SymbolMaxBits` counts the
+//! bits still available (going negative while zero padding is consumed).
+
+const EC_PROB_SHIFT: u32 = 6;
+const EC_MIN_PROB: u32 = 4;
+
+pub(crate) struct SymbolDecoder<'a> {
+ data: &'a [u8],
+ /// Bit position of the next bit to read.
+ pos: usize,
+ end: usize,
+ value: u32,
+ range: u32,
+ max_bits: i64,
+ pub disable_update: bool,
+}
+
+impl<'a> SymbolDecoder<'a> {
+ /// `init_symbol( sz )` over `data` (the tile's bytes).
+ pub fn new(data: &'a [u8], disable_update: bool) -> Self {
+ let sz = data.len();
+ let mut d = SymbolDecoder { data, pos: 0, end: sz * 8, value: 0, range: 1 << 15, max_bits: 8 * sz as i64 - 15, disable_update };
+ let num_bits = (sz * 8).min(15) as u32;
+ let buf = d.read_bits(num_bits);
+ let padded = buf << (15 - num_bits);
+ d.value = ((1 << 15) - 1) ^ padded;
+ d
+ }
+
+ #[inline(always)]
+ fn read_bits(&mut self, n: u32) -> u32 {
+ let mut x = 0u32;
+ for _ in 0..n {
+ let bit = if self.pos < self.end { (self.data[self.pos >> 3] >> (7 - (self.pos & 7))) & 1 } else { 0 };
+ self.pos += 1;
+ x = (x << 1) | bit as u32;
+ }
+ x
+ }
+
+ /// `read_symbol( cdf )`: `cdf` has N + 1 entries (the last is the adaptation counter).
+ #[inline]
+ pub fn read_symbol(&mut self, cdf: &mut [u16]) -> usize {
+ let n = cdf.len() - 1;
+ let symbol = self.decode(cdf, n);
+ if !self.disable_update {
+ update_cdf(cdf, n, symbol);
+ }
+ symbol
+ }
+
+ #[inline(always)]
+ fn decode(&mut self, cdf: &[u16], n: usize) -> usize {
+ let mut cur = self.range;
+ let mut symbol = 0usize;
+ let mut prev;
+ loop {
+ prev = cur;
+ let f = (1u32 << 15) - cdf[symbol] as u32;
+ cur = ((self.range >> 8) * (f >> EC_PROB_SHIFT)) >> (7 - EC_PROB_SHIFT);
+ cur += EC_MIN_PROB * (n - symbol - 1) as u32;
+ if self.value >= cur {
+ break;
+ }
+ symbol += 1;
+ }
+ self.range = prev - cur;
+ self.value -= cur;
+ self.renormalize();
+ symbol
+ }
+
+ #[inline(always)]
+ fn renormalize(&mut self) {
+ let bits = 15 - (31 - self.range.leading_zeros());
+ if bits == 0 {
+ return;
+ }
+ self.range <<= bits;
+ let num_bits = (bits as i64).min(self.max_bits.max(0)) as u32;
+ let new_data = self.read_bits(num_bits);
+ let padded = new_data << (bits - num_bits);
+ self.value = padded ^ (((self.value + 1) << bits) - 1);
+ self.max_bits -= bits as i64;
+ }
+
+ /// `read_bool()`
+ #[inline]
+ pub fn read_bool(&mut self) -> u32 {
+ let cdf = [1u16 << 14, 1 << 15, 0];
+ self.decode(&cdf, 2) as u32
+ }
+
+ /// `read_literal( n )` (L(n))
+ pub fn read_literal(&mut self, n: u32) -> u32 {
+ let mut x = 0;
+ for _ in 0..n {
+ x = (x << 1) | self.read_bool();
+ }
+ x
+ }
+
+ /// NS(n)
+ pub fn read_ns(&mut self, n: u32) -> u32 {
+ if n <= 1 {
+ return 0;
+ }
+ let w = 32 - n.leading_zeros();
+ let m = (1u32 << w) - n;
+ let v = self.read_literal(w - 1);
+ if v < m {
+ return v;
+ }
+ let extra = self.read_literal(1);
+ (v << 1) - m + extra
+ }
+
+ /// SymbolMaxBits (for the exit process checks).
+ pub fn max_bits(&self) -> i64 {
+ self.max_bits
+ }
+}
+
+/// CDF adaptation (8.2.6).
+#[inline(always)]
+pub(crate) fn update_cdf(cdf: &mut [u16], n: usize, symbol: usize) {
+ let count = cdf[n];
+ let rate = 3 + (count > 15) as u32 + (count > 31) as u32 + (31 - (n as u32).leading_zeros()).min(2);
+ let mut tmp = 0u32;
+ for i in 0..n - 1 {
+ if i == symbol {
+ tmp = 1 << 15;
+ }
+ let c = cdf[i] as u32;
+ if tmp < c {
+ cdf[i] = (c - ((c - tmp) >> rate)) as u16;
+ } else {
+ cdf[i] = (c + ((tmp - c) >> rate)) as u16;
+ }
+ }
+ cdf[n] += (count < 32) as u16;
+}
diff --git a/crates/av1/src/tile.rs b/crates/av1/src/tile.rs
new file mode 100644
index 000000000..891ecfb1f
--- /dev/null
+++ b/crates/av1/src/tile.rs
@@ -0,0 +1,2123 @@
+//! Tile decoding: partitions, mode info, residual coefficients, prediction and reconstruction
+//! (spec 5.11 syntax with the 8.3 CDF selection and 7.11 / 7.12 / 7.13 processes).
+
+use crate::cdf::Cdfs;
+use crate::frame::{MiInfo, Mv};
+use crate::header::{FrameHeader, NONE, SequenceHeader};
+use crate::intra::{IntraParams, is_directional_mode, predict_intra, round2_signed};
+use crate::spec_tables::*;
+use crate::state::FrameState;
+use crate::symbol::SymbolDecoder;
+use crate::transform::inverse_transform_2d;
+use crate::{Error, Result};
+
+/// Per-block state (the block-level variables of the syntax).
+#[derive(Clone, Default)]
+pub(crate) struct Block {
+ pub mi_row: usize,
+ pub mi_col: usize,
+ pub mi_size: usize,
+ pub bw4: usize,
+ pub bh4: usize,
+ pub has_chroma: bool,
+ pub avail_u: bool,
+ pub avail_l: bool,
+ pub avail_u_chroma: bool,
+ pub avail_l_chroma: bool,
+ pub skip: bool,
+ pub skip_mode: bool,
+ pub segment_id: usize,
+ pub lossless: bool,
+ pub is_inter: bool,
+ pub use_intrabc: bool,
+ pub y_mode: usize,
+ pub uv_mode: usize,
+ pub angle_delta_y: i32,
+ pub angle_delta_uv: i32,
+ pub use_filter_intra: bool,
+ pub filter_intra_mode: usize,
+ pub cfl_alpha_u: i32,
+ pub cfl_alpha_v: i32,
+ pub palette_size_y: usize,
+ pub palette_size_uv: usize,
+ pub palette_colors_y: [u16; 8],
+ pub palette_colors_u: [u16; 8],
+ pub palette_colors_v: [u16; 8],
+ pub tx_size: usize,
+ pub ref_frame: [i8; 2],
+ pub mv: [Mv; 2],
+ pub interp_filter: [u8; 2],
+ pub motion_mode: u8,
+ pub comp_group_idx: u8,
+ pub compound_idx: u8,
+ pub max_luma_w: usize,
+ pub max_luma_h: usize,
+}
+
+/// Decoder for one tile.
+pub(crate) struct TileDecoder<'a, 'f> {
+ pub fs: &'f mut FrameState,
+ pub sd: SymbolDecoder<'a>,
+ pub cdf: Box<Cdfs>,
+ pub mi_row_start: usize,
+ pub mi_row_end: usize,
+ pub mi_col_start: usize,
+ pub mi_col_end: usize,
+ pub current_q_index: i32,
+ pub delta_lf: [i32; 4],
+ pub read_deltas: bool,
+ pub ref_sgr_xqd: [[i32; 2]; 3],
+ pub ref_lr_wiener: [[[i32; 3]; 2]; 3],
+ /// BlockDecoded[ plane ][ y + 1 ][ x + 1 ] for y, x in -1..=32.
+ pub block_decoded: [[[bool; 35]; 35]; 3],
+ pub b: Block,
+ /// Quant[] for the current transform block (raster order, stride per Adjusted size).
+ quant: Vec<i32>,
+ dequant: Vec<i32>,
+ residual: Vec<i32>,
+ color_map_y: Vec<u8>,
+ color_map_uv: Vec<u8>,
+ plane_tx_type: usize,
+}
+
+const SB_MAX: usize = 32; // superblock size in 4x4 units (128 / 4)
+
+fn block_width(bs: usize) -> usize {
+ 4 * NUM_4X4_BLOCKS_WIDE[bs] as usize
+}
+fn block_height(bs: usize) -> usize {
+ 4 * NUM_4X4_BLOCKS_HIGH[bs] as usize
+}
+
+impl<'a, 'f> TileDecoder<'a, 'f> {
+ pub fn new(fs: &'f mut FrameState, data: &'a [u8], cdf: Box<Cdfs>, tile_row: usize, tile_col: usize) -> Self {
+ let ti = &fs.fh.tile_info;
+ let (rs, re) = (ti.mi_row_starts[tile_row] as usize, ti.mi_row_starts[tile_row + 1] as usize);
+ let (cs, ce) = (ti.mi_col_starts[tile_col] as usize, ti.mi_col_starts[tile_col + 1] as usize);
+ let disable = fs.fh.disable_cdf_update;
+ let q = fs.fh.quant.base_q_idx as i32;
+ TileDecoder {
+ fs,
+ sd: SymbolDecoder::new(data, disable),
+ cdf,
+ mi_row_start: rs,
+ mi_row_end: re,
+ mi_col_start: cs,
+ mi_col_end: ce,
+ current_q_index: q,
+ delta_lf: [0; 4],
+ read_deltas: false,
+ ref_sgr_xqd: [[0; 2]; 3],
+ ref_lr_wiener: [[[0; 3]; 2]; 3],
+ block_decoded: [[[false; 35]; 35]; 3],
+ b: Block::default(),
+ quant: vec![0; 1024],
+ dequant: vec![0; 64 * 64],
+ residual: vec![0; 64 * 64],
+ color_map_y: vec![0; 64 * 64],
+ color_map_uv: vec![0; 64 * 64],
+ plane_tx_type: 0,
+ }
+ }
+
+ fn seq(&self) -> &SequenceHeader {
+ &self.fs.seq
+ }
+ fn fh(&self) -> &FrameHeader {
+ &self.fs.fh
+ }
+
+ #[inline]
+ fn is_inside(&self, r: isize, c: isize) -> bool {
+ c >= self.mi_col_start as isize && c < self.mi_col_end as isize && r >= self.mi_row_start as isize && r < self.mi_row_end as isize
+ }
+
+ /// decode_tile( )
+ pub fn decode_tile(&mut self) -> Result<()> {
+ // clear_above_context( )
+ let fs = &mut *self.fs;
+ for p in 0..3 {
+ fs.above_level[p].iter_mut().for_each(|v| *v = 0);
+ fs.above_dc[p].iter_mut().for_each(|v| *v = 0);
+ }
+ fs.above_seg_pred.iter_mut().for_each(|v| *v = 0);
+ self.delta_lf = [0; 4];
+ for plane in 0..self.fs.num_planes {
+ for pass in 0..2 {
+ self.ref_sgr_xqd[plane][pass] = [-32, 31][pass];
+ self.ref_lr_wiener[plane][pass] = [3, -7, 15];
+ }
+ }
+ let sb128 = self.seq().use_128x128_superblock;
+ let sb_size = if sb128 { BLOCK_128X128 } else { BLOCK_64X64 };
+ let sb4 = NUM_4X4_BLOCKS_WIDE[sb_size] as usize;
+ let mut r = self.mi_row_start;
+ while r < self.mi_row_end {
+ // clear_left_context( )
+ let fs = &mut *self.fs;
+ for p in 0..3 {
+ fs.left_level[p].iter_mut().for_each(|v| *v = 0);
+ fs.left_dc[p].iter_mut().for_each(|v| *v = 0);
+ }
+ fs.left_seg_pred.iter_mut().for_each(|v| *v = 0);
+ let mut c = self.mi_col_start;
+ while c < self.mi_col_end {
+ self.read_deltas = self.fh().delta_q_present;
+ self.clear_cdef(r, c);
+ self.clear_block_decoded_flags(r, c, sb4);
+ self.read_lr(r, c, sb_size);
+ self.decode_partition(r, c, sb_size)?;
+ c += sb4;
+ }
+ r += sb4;
+ }
+ Ok(())
+ }
+
+ fn clear_cdef(&mut self, r: usize, c: usize) {
+ let fs = &mut *self.fs;
+ fs.set_cdef_idx(r, c, -1);
+ if fs.seq.use_128x128_superblock {
+ fs.set_cdef_idx(r, c + 16, -1);
+ fs.set_cdef_idx(r + 16, c, -1);
+ fs.set_cdef_idx(r + 16, c + 16, -1);
+ }
+ }
+
+ fn clear_block_decoded_flags(&mut self, r: usize, c: usize, sb4: usize) {
+ let (ssx, ssy) = (self.fs.ssx, self.fs.ssy);
+ for plane in 0..self.fs.num_planes {
+ let sub_x = if plane > 0 { ssx } else { 0 };
+ let sub_y = if plane > 0 { ssy } else { 0 };
+ let sb_w4 = (self.mi_col_end as isize - c as isize) >> sub_x;
+ let sb_h4 = (self.mi_row_end as isize - r as isize) >> sub_y;
+ let bd = &mut self.block_decoded[plane];
+ for y in -1..=((sb4 >> sub_y) as isize) {
+ for x in -1..=((sb4 >> sub_x) as isize) {
+ let v = if y < 0 && x < sb_w4 { true } else { x < 0 && y < sb_h4 };
+ bd[(y + 1) as usize][(x + 1) as usize] = v;
+ }
+ }
+ bd[(sb4 >> sub_y) + 1][0] = false;
+ }
+ }
+
+ #[inline]
+ fn block_decoded_at(&self, plane: usize, y: isize, x: isize) -> bool {
+ let (yy, xx) = (y + 1, x + 1);
+ if yy < 0 || xx < 0 || yy > SB_MAX as isize + 1 || xx > SB_MAX as isize + 1 {
+ return false;
+ }
+ self.block_decoded[plane][yy as usize][xx as usize]
+ }
+
+ fn decode_partition(&mut self, r: usize, c: usize, bsize: usize) -> Result<()> {
+ let (mi_rows, mi_cols) = (self.fs.fh.mi_rows as usize, self.fs.fh.mi_cols as usize);
+ if r >= mi_rows || c >= mi_cols {
+ return Ok(());
+ }
+ let avail_u = self.is_inside(r as isize - 1, c as isize);
+ let avail_l = self.is_inside(r as isize, c as isize - 1);
+ let num4x4 = NUM_4X4_BLOCKS_WIDE[bsize] as usize;
+ let half = num4x4 >> 1;
+ let quarter = half >> 1;
+ let has_rows = (r + half) < mi_rows;
+ let has_cols = (c + half) < mi_cols;
+ let partition = if bsize < BLOCK_8X8 {
+ PARTITION_NONE
+ } else {
+ let bsl = MI_WIDTH_LOG2[bsize] as usize;
+ let mi = &self.fs.mi;
+ let above = avail_u && (MI_WIDTH_LOG2[mi.mi_size[mi.idx(r - 1, c)] as usize] as usize) < bsl;
+ let left = avail_l && (MI_HEIGHT_LOG2[mi.mi_size[mi.idx(r, c - 1)] as usize] as usize) < bsl;
+ let ctx = left as usize * 2 + above as usize;
+ if has_rows && has_cols {
+ let cdf: &mut [u16] = match bsl {
+ 1 => &mut self.cdf.partition_w8[ctx],
+ 2 => &mut self.cdf.partition_w16[ctx],
+ 3 => &mut self.cdf.partition_w32[ctx],
+ 4 => &mut self.cdf.partition_w64[ctx],
+ _ => &mut self.cdf.partition_w128[ctx],
+ };
+ self.sd.read_symbol(cdf)
+ } else if has_cols || has_rows {
+ let pcdf: Vec<u16> = match bsl {
+ 2 => self.cdf.partition_w16[ctx].to_vec(),
+ 3 => self.cdf.partition_w32[ctx].to_vec(),
+ 4 => self.cdf.partition_w64[ctx].to_vec(),
+ _ => self.cdf.partition_w128[ctx].to_vec(),
+ };
+ // pcdf holds cumulative values; P(k) = cdf[k] - cdf[k-1] (cdf[-1] = 0)
+ let pr = |k: usize| pcdf[k] as i32 - if k == 0 { 0 } else { pcdf[k - 1] as i32 };
+ let psum = if has_cols {
+ // split_or_horz
+ let mut s = pr(PARTITION_VERT) + pr(PARTITION_SPLIT) + pr(PARTITION_HORZ_A) + pr(PARTITION_VERT_A) + pr(PARTITION_VERT_B);
+ if bsize != BLOCK_128X128 {
+ s += pr(PARTITION_VERT_4);
+ }
+ s
+ } else {
+ let mut s = pr(PARTITION_HORZ) + pr(PARTITION_SPLIT) + pr(PARTITION_HORZ_A) + pr(PARTITION_HORZ_B) + pr(PARTITION_VERT_A);
+ if bsize != BLOCK_128X128 {
+ s += pr(PARTITION_HORZ_4);
+ }
+ s
+ };
+ // The spec's inverse-CDF convention: cdf values count down from 32768.
+ let _ = psum;
+ let bit = self.read_split_bool(&pcdf, has_cols, bsize);
+ if has_cols {
+ if bit { PARTITION_SPLIT } else { PARTITION_HORZ }
+ } else if bit {
+ PARTITION_SPLIT
+ } else {
+ PARTITION_VERT
+ }
+ } else {
+ PARTITION_SPLIT
+ }
+ };
+ let sub_size = PARTITION_SUBSIZE[partition][bsize] as usize;
+ let split_size = PARTITION_SUBSIZE[PARTITION_SPLIT][bsize] as usize;
+ match partition {
+ PARTITION_NONE => self.decode_block(r, c, sub_size)?,
+ PARTITION_HORZ => {
+ self.decode_block(r, c, sub_size)?;
+ if has_rows {
+ self.decode_block(r + half, c, sub_size)?;
+ }
+ }
+ PARTITION_VERT => {
+ self.decode_block(r, c, sub_size)?;
+ if has_cols {
+ self.decode_block(r, c + half, sub_size)?;
+ }
+ }
+ PARTITION_SPLIT => {
+ self.decode_partition(r, c, sub_size)?;
+ self.decode_partition(r, c + half, sub_size)?;
+ self.decode_partition(r + half, c, sub_size)?;
+ self.decode_partition(r + half, c + half, sub_size)?;
+ }
+ PARTITION_HORZ_A => {
+ self.decode_block(r, c, split_size)?;
+ self.decode_block(r, c + half, split_size)?;
+ self.decode_block(r + half, c, sub_size)?;
+ }
+ PARTITION_HORZ_B => {
+ self.decode_block(r, c, sub_size)?;
+ self.decode_block(r + half, c, split_size)?;
+ self.decode_block(r + half, c + half, split_size)?;
+ }
+ PARTITION_VERT_A => {
+ self.decode_block(r, c, split_size)?;
+ self.decode_block(r + half, c, split_size)?;
+ self.decode_block(r, c + half, sub_size)?;
+ }
+ PARTITION_VERT_B => {
+ self.decode_block(r, c, sub_size)?;
+ self.decode_block(r, c + half, split_size)?;
+ self.decode_block(r + half, c + half, split_size)?;
+ }
+ PARTITION_HORZ_4 => {
+ for k in 0..4 {
+ let rr = r + quarter * k;
+ if k < 3 || rr < mi_rows {
+ self.decode_block(rr, c, sub_size)?;
+ }
+ }
+ }
+ _ => {
+ for k in 0..4 {
+ let cc = c + quarter * k;
+ if k < 3 || cc < mi_cols {
+ self.decode_block(r, cc, sub_size)?;
+ }
+ }
+ }
+ }
+ Ok(())
+ }
+
+ /// split_or_horz / split_or_vert: a binary symbol whose probability is derived from the
+ /// partition CDF (8.3.2). Returns true for PARTITION_SPLIT.
+ fn read_split_bool(&mut self, pcdf: &[u16], split_or_horz: bool, bsize: usize) -> bool {
+ // The spec gives cdf values as P(X <= k) * 32768 (increasing); the probability of
+ // partition k is cdf[k] - cdf[k - 1].
+ let pr = |k: usize| pcdf[k] as i32 - if k == 0 { 0 } else { pcdf[k - 1] as i32 };
+ let mut psum = if split_or_horz {
+ pr(PARTITION_VERT) + pr(PARTITION_SPLIT) + pr(PARTITION_HORZ_A) + pr(PARTITION_VERT_A) + pr(PARTITION_VERT_B)
+ } else {
+ pr(PARTITION_HORZ) + pr(PARTITION_SPLIT) + pr(PARTITION_HORZ_A) + pr(PARTITION_HORZ_B) + pr(PARTITION_VERT_A)
+ };
+ if bsize != BLOCK_128X128 {
+ psum += if split_or_horz { pr(PARTITION_VERT_4) } else { pr(PARTITION_HORZ_4) };
+ }
+ let mut cdf = [((1i32 << 15) - psum) as u16, 1 << 15, 0];
+ // no adaptation: the array is constructed for this read only
+ let save = self.sd.disable_update;
+ self.sd.disable_update = true;
+ let s = self.sd.read_symbol(&mut cdf);
+ self.sd.disable_update = save;
+ s == 1
+ }
+
+ fn decode_block(&mut self, r: usize, c: usize, sub_size: usize) -> Result<()> {
+ let (ssx, ssy) = (self.fs.ssx, self.fs.ssy);
+ let num_planes = self.fs.num_planes;
+ let mut b = Block { mi_row: r, mi_col: c, mi_size: sub_size, ..Default::default() };
+ b.bw4 = NUM_4X4_BLOCKS_WIDE[sub_size] as usize;
+ b.bh4 = NUM_4X4_BLOCKS_HIGH[sub_size] as usize;
+ b.has_chroma = if b.bh4 == 1 && ssy == 1 && (r & 1) == 0 || b.bw4 == 1 && ssx == 1 && (c & 1) == 0 { false } else { num_planes > 1 };
+ b.avail_u = self.is_inside(r as isize - 1, c as isize);
+ b.avail_l = self.is_inside(r as isize, c as isize - 1);
+ b.avail_u_chroma = b.avail_u;
+ b.avail_l_chroma = b.avail_l;
+ if b.has_chroma {
+ if ssy == 1 && b.bh4 == 1 {
+ b.avail_u_chroma = self.is_inside(r as isize - 2, c as isize);
+ }
+ if ssx == 1 && b.bw4 == 1 {
+ b.avail_l_chroma = self.is_inside(r as isize, c as isize - 2);
+ }
+ } else {
+ b.avail_u_chroma = false;
+ b.avail_l_chroma = false;
+ }
+ b.ref_frame = [INTRA_FRAME as i8, NONE];
+ self.b = b;
+ if self.fs.fh.frame_is_intra {
+ self.intra_frame_mode_info()?;
+ } else {
+ self.inter_frame_mode_info()?;
+ }
+ self.palette_tokens();
+ self.read_block_tx_size();
+ if self.b.skip {
+ self.reset_block_context();
+ }
+ let b = &self.b;
+ let is_compound = b.ref_frame[1] > INTRA_FRAME as i8;
+ {
+ let mi = &mut self.fs.mi;
+ let rows = b.bh4.min(mi.rows.saturating_sub(r));
+ let cols = b.bw4.min(mi.cols.saturating_sub(c));
+ for y in 0..rows {
+ for x in 0..cols {
+ let i = mi.idx(r + y, c + x);
+ mi.y_mode[i] = b.y_mode as u8;
+ if b.ref_frame[0] == INTRA_FRAME as i8 && b.has_chroma {
+ mi.uv_mode[i] = b.uv_mode as u8;
+ }
+ mi.ref_frame[i] = b.ref_frame;
+ if b.is_inter {
+ if !b.use_intrabc {
+ mi.comp_group_idx[i] = b.comp_group_idx;
+ mi.compound_idx[i] = b.compound_idx;
+ }
+ mi.interp_filter[i] = b.interp_filter;
+ mi.mv[i][0] = b.mv[0];
+ if is_compound {
+ mi.mv[i][1] = b.mv[1];
+ }
+ }
+ }
+ }
+ }
+ self.compute_prediction()?;
+ self.residual()?;
+ let b = &self.b;
+ let delta_lf = self.delta_lf;
+ let mi = &mut self.fs.mi;
+ let rows = b.bh4.min(mi.rows.saturating_sub(r));
+ let cols = b.bw4.min(mi.cols.saturating_sub(c));
+ for y in 0..rows {
+ for x in 0..cols {
+ let i = mi.idx(r + y, c + x);
+ mi.is_inter[i] = b.is_inter;
+ mi.skip_mode[i] = b.skip_mode;
+ mi.skip[i] = b.skip;
+ mi.tx_size[i] = b.tx_size as u8;
+ mi.mi_size[i] = b.mi_size as u8;
+ mi.segment_id[i] = b.segment_id as u8;
+ mi.palette_size[0][i] = b.palette_size_y as u8;
+ mi.palette_size[1][i] = b.palette_size_uv as u8;
+ mi.palette_colors[0][i] = b.palette_colors_y;
+ mi.palette_colors[1][i] = b.palette_colors_u;
+ mi.delta_lf[i] = [delta_lf[0] as i8, delta_lf[1] as i8, delta_lf[2] as i8, delta_lf[3] as i8];
+ mi.motion_mode[i] = b.motion_mode;
+ }
+ }
+ Ok(())
+ }
+
+ fn reset_block_context(&mut self) {
+ let b = &self.b;
+ let (ssx, ssy) = (self.fs.ssx, self.fs.ssy);
+ for plane in 0..(1 + 2 * b.has_chroma as usize) {
+ let sub_x = if plane > 0 { ssx } else { 0 };
+ let sub_y = if plane > 0 { ssy } else { 0 };
+ for i in (b.mi_col >> sub_x)..((b.mi_col + b.bw4) >> sub_x) {
+ self.fs.above_level[plane][i] = 0;
+ self.fs.above_dc[plane][i] = 0;
+ }
+ for i in (b.mi_row >> sub_y)..((b.mi_row + b.bh4) >> sub_y) {
+ self.fs.left_level[plane][i] = 0;
+ self.fs.left_dc[plane][i] = 0;
+ }
+ }
+ }
+
+ fn intra_frame_mode_info(&mut self) -> Result<()> {
+ self.b.skip = false;
+ let pre_skip = self.fs.fh.seg.seg_id_pre_skip;
+ if pre_skip {
+ self.intra_segment_id();
+ }
+ self.b.skip_mode = false;
+ self.read_skip();
+ if !pre_skip {
+ self.intra_segment_id();
+ }
+ self.read_cdef();
+ self.read_delta_qindex();
+ self.read_delta_lf();
+ self.read_deltas = false;
+ self.b.ref_frame = [INTRA_FRAME as i8, NONE];
+ self.b.use_intrabc = if self.fs.fh.allow_intrabc { self.sd.read_symbol(&mut self.cdf.intrabc) == 1 } else { false };
+ if self.b.use_intrabc {
+ return Err(Error::Unsupported("intra block copy"));
+ }
+ self.b.is_inter = false;
+ let mi = &self.fs.mi;
+ let (r, c) = (self.b.mi_row, self.b.mi_col);
+ let above = if self.b.avail_u { mi.y_mode[mi.idx(r - 1, c)] as usize } else { DC_PRED };
+ let left = if self.b.avail_l { mi.y_mode[mi.idx(r, c - 1)] as usize } else { DC_PRED };
+ let actx = INTRA_MODE_CONTEXT[above] as usize;
+ let lctx = INTRA_MODE_CONTEXT[left] as usize;
+ let mut cdf = self.fs.intra_frame_y_mode_cdf[actx][lctx];
+ self.b.y_mode = self.sd.read_symbol(&mut cdf);
+ self.fs.intra_frame_y_mode_cdf[actx][lctx] = cdf;
+ self.intra_angle_info_y();
+ if self.b.has_chroma {
+ self.read_uv_mode();
+ if self.b.uv_mode == UV_CFL_PRED {
+ self.read_cfl_alphas();
+ }
+ self.intra_angle_info_uv();
+ }
+ self.b.palette_size_y = 0;
+ self.b.palette_size_uv = 0;
+ let ms = self.b.mi_size;
+ if ms >= BLOCK_8X8 && block_width(ms) <= 64 && block_height(ms) <= 64 && self.fs.fh.allow_screen_content_tools {
+ self.palette_mode_info();
+ }
+ self.filter_intra_mode_info();
+ Ok(())
+ }
+
+ fn read_uv_mode(&mut self) {
+ let ms = self.b.mi_size;
+ let cfl_allowed = if self.b.lossless && self.fs.plane_residual_size(ms, 1) == BLOCK_4X4 {
+ true
+ } else {
+ !self.b.lossless && block_width(ms).max(block_height(ms)) <= 32
+ };
+ let y = self.b.y_mode;
+ self.b.uv_mode =
+ if cfl_allowed { self.sd.read_symbol(&mut self.cdf.uv_mode_cfl_allowed[y]) } else { self.sd.read_symbol(&mut self.cdf.uv_mode_cfl_not_allowed[y]) };
+ }
+
+ fn intra_angle_info_y(&mut self) {
+ self.b.angle_delta_y = 0;
+ if self.b.mi_size >= BLOCK_8X8 && is_directional_mode(self.b.y_mode) {
+ let v = self.sd.read_symbol(&mut self.cdf.angle_delta[self.b.y_mode - V_PRED]);
+ self.b.angle_delta_y = v as i32 - MAX_ANGLE_DELTA as i32;
+ }
+ }
+
+ fn intra_angle_info_uv(&mut self) {
+ self.b.angle_delta_uv = 0;
+ if self.b.mi_size >= BLOCK_8X8 && is_directional_mode(self.b.uv_mode) {
+ let v = self.sd.read_symbol(&mut self.cdf.angle_delta[self.b.uv_mode - V_PRED]);
+ self.b.angle_delta_uv = v as i32 - MAX_ANGLE_DELTA as i32;
+ }
+ }
+
+ fn read_cfl_alphas(&mut self) {
+ let signs = self.sd.read_symbol(&mut self.cdf.cfl_sign);
+ let sign_u = (signs + 1) / 3;
+ let sign_v = (signs + 1) % 3;
+ self.b.cfl_alpha_u = if sign_u != CFL_SIGN_ZERO {
+ let ctx = (sign_u - 1) * 3 + sign_v;
+ let a = 1 + self.sd.read_symbol(&mut self.cdf.cfl_alpha[ctx]) as i32;
+ if sign_u == CFL_SIGN_NEG { -a } else { a }
+ } else {
+ 0
+ };
+ self.b.cfl_alpha_v = if sign_v != CFL_SIGN_ZERO {
+ let ctx = (sign_v - 1) * 3 + sign_u;
+ let a = 1 + self.sd.read_symbol(&mut self.cdf.cfl_alpha[ctx]) as i32;
+ if sign_v == CFL_SIGN_NEG { -a } else { a }
+ } else {
+ 0
+ };
+ }
+
+ fn intra_segment_id(&mut self) {
+ if self.fs.fh.seg.enabled {
+ self.read_segment_id();
+ } else {
+ self.b.segment_id = 0;
+ }
+ self.b.lossless = self.fs.fh.lossless_array[self.b.segment_id];
+ }
+
+ fn read_segment_id(&mut self) {
+ let (r, c) = (self.b.mi_row, self.b.mi_col);
+ let mi = &self.fs.mi;
+ let prev_ul = if self.b.avail_u && self.b.avail_l { mi.segment_id[mi.idx(r - 1, c - 1)] as i32 } else { -1 };
+ let prev_u = if self.b.avail_u { mi.segment_id[mi.idx(r - 1, c)] as i32 } else { -1 };
+ let prev_l = if self.b.avail_l { mi.segment_id[mi.idx(r, c - 1)] as i32 } else { -1 };
+ let pred = if prev_u == -1 {
+ if prev_l == -1 { 0 } else { prev_l }
+ } else if prev_l == -1 || prev_ul == prev_u {
+ prev_u
+ } else {
+ prev_l
+ };
+ if self.b.skip {
+ self.b.segment_id = pred as usize;
+ } else {
+ let ctx = if prev_ul < 0 {
+ 0
+ } else if prev_ul == prev_u && prev_ul == prev_l {
+ 2
+ } else if prev_ul == prev_u || prev_ul == prev_l || prev_u == prev_l {
+ 1
+ } else {
+ 0
+ };
+ let s = self.sd.read_symbol(&mut self.cdf.segment_id[ctx]) as i32;
+ let max = self.fs.fh.seg.last_active_seg_id as i32 + 1;
+ self.b.segment_id = neg_deinterleave(s, pred, max).clamp(0, 7) as usize;
+ }
+ }
+
+ fn seg_feature_active(&self, feature: usize) -> bool {
+ self.fs.fh.seg.enabled && self.fs.fh.seg.features.enabled[self.b.segment_id][feature]
+ }
+
+ fn read_skip(&mut self) {
+ if self.fs.fh.seg.seg_id_pre_skip && self.seg_feature_active(SEG_LVL_SKIP) {
+ self.b.skip = true;
+ } else {
+ let (r, c) = (self.b.mi_row, self.b.mi_col);
+ let mi = &self.fs.mi;
+ let mut ctx = 0;
+ if self.b.avail_u {
+ ctx += mi.skip[mi.idx(r - 1, c)] as usize;
+ }
+ if self.b.avail_l {
+ ctx += mi.skip[mi.idx(r, c - 1)] as usize;
+ }
+ self.b.skip = self.sd.read_symbol(&mut self.cdf.skip[ctx]) == 1;
+ }
+ }
+
+ fn read_cdef(&mut self) {
+ let fh = &self.fs.fh;
+ if self.b.skip || fh.coded_lossless || !self.fs.seq.enable_cdef || fh.allow_intrabc {
+ return;
+ }
+ let cdef_size4 = NUM_4X4_BLOCKS_WIDE[BLOCK_64X64] as usize;
+ let mask = !(cdef_size4 - 1);
+ let r = self.b.mi_row & mask;
+ let c = self.b.mi_col & mask;
+ if self.fs.cdef_idx(r, c) == -1 {
+ let bits = fh.cdef.bits;
+ let v = self.sd.read_literal(bits) as i8;
+ let w4 = self.b.bw4;
+ let h4 = self.b.bh4;
+ let mut i = r;
+ while i < r + h4 {
+ let mut j = c;
+ while j < c + w4 {
+ self.fs.set_cdef_idx(i, j, v);
+ j += cdef_size4;
+ }
+ i += cdef_size4;
+ }
+ }
+ }
+
+ fn read_delta_qindex(&mut self) {
+ let sb_size = if self.fs.seq.use_128x128_superblock { BLOCK_128X128 } else { BLOCK_64X64 };
+ if self.b.mi_size == sb_size && self.b.skip {
+ return;
+ }
+ if self.read_deltas {
+ let mut abs = self.sd.read_symbol(&mut self.cdf.delta_q) as i32;
+ if abs == DELTA_Q_SMALL as i32 {
+ let rem_bits = self.sd.read_literal(3) + 1;
+ let abs_bits = self.sd.read_literal(rem_bits) as i32;
+ abs = abs_bits + (1 << rem_bits) + 1;
+ }
+ if abs != 0 {
+ let sign = self.sd.read_literal(1);
+ let reduced = if sign == 1 { -abs } else { abs };
+ self.current_q_index = (self.current_q_index + (reduced << self.fs.fh.delta_q_res)).clamp(1, 255);
+ }
+ }
+ }
+
+ fn read_delta_lf(&mut self) {
+ let sb_size = if self.fs.seq.use_128x128_superblock { BLOCK_128X128 } else { BLOCK_64X64 };
+ if self.b.mi_size == sb_size && self.b.skip {
+ return;
+ }
+ let fh = &self.fs.fh;
+ if self.read_deltas && fh.delta_lf_present {
+ let count = if fh.delta_lf_multi { if self.fs.num_planes > 1 { FRAME_LF_COUNT } else { FRAME_LF_COUNT - 2 } } else { 1 };
+ let multi = fh.delta_lf_multi;
+ let res = fh.delta_lf_res;
+ for i in 0..count {
+ let mut abs = if multi { self.sd.read_symbol(&mut self.cdf.delta_lf_multi[i]) } else { self.sd.read_symbol(&mut self.cdf.delta_lf) } as i32;
+ if abs == DELTA_LF_SMALL as i32 {
+ let n = self.sd.read_literal(3) + 1;
+ let bits = self.sd.read_literal(n) as i32;
+ abs = bits + (1 << n) + 1;
+ }
+ if abs != 0 {
+ let sign = self.sd.read_literal(1);
+ let reduced = if sign == 1 { -abs } else { abs };
+ self.delta_lf[i] = (self.delta_lf[i] + (reduced << res)).clamp(-(MAX_LOOP_FILTER as i32), MAX_LOOP_FILTER as i32);
+ }
+ }
+ }
+ }
+
+ fn filter_intra_mode_info(&mut self) {
+ self.b.use_filter_intra = false;
+ let ms = self.b.mi_size;
+ if self.fs.seq.enable_filter_intra && self.b.y_mode == DC_PRED && self.b.palette_size_y == 0 && block_width(ms).max(block_height(ms)) <= 32 {
+ self.b.use_filter_intra = self.sd.read_symbol(&mut self.cdf.filter_intra[ms]) == 1;
+ if self.b.use_filter_intra {
+ self.b.filter_intra_mode = self.sd.read_symbol(&mut self.cdf.filter_intra_mode);
+ }
+ }
+ }
+
+ // ---- palette -------------------------------------------------------------------------
+
+ fn palette_mode_info(&mut self) {
+ let ms = self.b.mi_size;
+ let bsize_ctx = MI_WIDTH_LOG2[ms] as usize + MI_HEIGHT_LOG2[ms] as usize - 2;
+ let bd = self.fs.bit_depth;
+ let (r, c) = (self.b.mi_row, self.b.mi_col);
+ if self.b.y_mode == DC_PRED {
+ let mi = &self.fs.mi;
+ let mut ctx = 0;
+ if self.b.avail_u && mi.palette_size[0][mi.idx(r - 1, c)] > 0 {
+ ctx += 1;
+ }
+ if self.b.avail_l && mi.palette_size[0][mi.idx(r, c - 1)] > 0 {
+ ctx += 1;
+ }
+ if self.sd.read_symbol(&mut self.cdf.palette_y_mode[bsize_ctx][ctx]) == 1 {
+ let n = self.sd.read_symbol(&mut self.cdf.palette_y_size[bsize_ctx]) + 2;
+ self.b.palette_size_y = n;
+ let cache = self.get_palette_cache(0);
+ let mut colors = [0u16; 8];
+ let mut idx = 0;
+ for &cv in &cache {
+ if idx >= n {
+ break;
+ }
+ if self.sd.read_literal(1) == 1 {
+ colors[idx] = cv;
+ idx += 1;
+ }
+ }
+ if idx < n {
+ colors[idx] = self.sd.read_literal(bd) as u16;
+ idx += 1;
+ }
+ let mut palette_bits = 0;
+ if idx < n {
+ let min_bits = bd - 3;
+ palette_bits = min_bits + self.sd.read_literal(2);
+ }
+ while idx < n {
+ let delta = self.sd.read_literal(palette_bits) as i32 + 1;
+ colors[idx] = (colors[idx - 1] as i32 + delta).clamp(0, (1 << bd) - 1) as u16;
+ let range = (1i32 << bd) - colors[idx] as i32 - 1;
+ palette_bits = palette_bits.min(ceil_log2(range as u32));
+ idx += 1;
+ }
+ colors[..n].sort_unstable();
+ self.b.palette_colors_y = colors;
+ }
+ }
+ if self.b.has_chroma && self.b.uv_mode == DC_PRED {
+ let ctx = (self.b.palette_size_y > 0) as usize;
+ if self.sd.read_symbol(&mut self.cdf.palette_uv_mode[ctx]) == 1 {
+ let n = self.sd.read_symbol(&mut self.cdf.palette_uv_size[bsize_ctx]) + 2;
+ self.b.palette_size_uv = n;
+ let cache = self.get_palette_cache(1);
+ let mut colors = [0u16; 8];
+ let mut idx = 0;
+ for &cv in &cache {
+ if idx >= n {
+ break;
+ }
+ if self.sd.read_literal(1) == 1 {
+ colors[idx] = cv;
+ idx += 1;
+ }
+ }
+ if idx < n {
+ colors[idx] = self.sd.read_literal(bd) as u16;
+ idx += 1;
+ }
+ let mut palette_bits = 0;
+ if idx < n {
+ palette_bits = bd - 3 + self.sd.read_literal(2);
+ }
+ while idx < n {
+ let delta = self.sd.read_literal(palette_bits) as i32;
+ colors[idx] = (colors[idx - 1] as i32 + delta).clamp(0, (1 << bd) - 1) as u16;
+ let range = (1i32 << bd) - colors[idx] as i32;
+ palette_bits = palette_bits.min(ceil_log2(range as u32));
+ idx += 1;
+ }
+ colors[..n].sort_unstable();
+ self.b.palette_colors_u = colors;
+ let mut v = [0u16; 8];
+ if self.sd.read_literal(1) == 1 {
+ let min_bits = bd - 4;
+ let max_val = 1i32 << bd;
+ let bits = min_bits + self.sd.read_literal(2);
+ v[0] = self.sd.read_literal(bd) as u16;
+ for idx in 1..n {
+ let mut delta = self.sd.read_literal(bits) as i32;
+ if delta != 0 && self.sd.read_literal(1) == 1 {
+ delta = -delta;
+ }
+ let mut val = v[idx - 1] as i32 + delta;
+ if val < 0 {
+ val += max_val;
+ }
+ if val >= max_val {
+ val -= max_val;
+ }
+ v[idx] = val.clamp(0, (1 << bd) - 1) as u16;
+ }
+ } else {
+ for item in v.iter_mut().take(n) {
+ *item = self.sd.read_literal(bd) as u16;
+ }
+ }
+ self.b.palette_colors_v = v;
+ }
+ }
+ }
+
+ fn get_palette_cache(&self, plane: usize) -> Vec<u16> {
+ let (r, c) = (self.b.mi_row, self.b.mi_col);
+ let mi = &self.fs.mi;
+ let above_n = if (r * 4) % 64 != 0 { mi.palette_size[plane][mi.idx(r - 1, c)] as usize } else { 0 };
+ let left_n = if self.b.avail_l { mi.palette_size[plane][mi.idx(r, c - 1)] as usize } else { 0 };
+ let above: &[u16] = if above_n > 0 { &mi.palette_colors[plane][mi.idx(r - 1, c)][..above_n] } else { &[] };
+ let left: &[u16] = if left_n > 0 { &mi.palette_colors[plane][mi.idx(r, c - 1)][..left_n] } else { &[] };
+ let (mut ai, mut li) = (0, 0);
+ let mut out: Vec<u16> = Vec::with_capacity(16);
+ while ai < above_n && li < left_n {
+ let (ac, lc) = (above[ai], left[li]);
+ if lc < ac {
+ if out.last() != Some(&lc) {
+ out.push(lc);
+ }
+ li += 1;
+ } else {
+ if out.last() != Some(&ac) {
+ out.push(ac);
+ }
+ ai += 1;
+ if lc == ac {
+ li += 1;
+ }
+ }
+ }
+ for &v in &above[ai..above_n] {
+ if out.last() != Some(&v) {
+ out.push(v);
+ }
+ }
+ for &v in &left[li..left_n] {
+ if out.last() != Some(&v) {
+ out.push(v);
+ }
+ }
+ out
+ }
+
+ fn palette_tokens(&mut self) {
+ let ms = self.b.mi_size;
+ let bh = block_height(ms);
+ let bw = block_width(ms);
+ let (mi_rows, mi_cols) = (self.fs.fh.mi_rows as usize, self.fs.fh.mi_cols as usize);
+ let on_h = bh.min((mi_rows - self.b.mi_row) * 4);
+ let on_w = bw.min((mi_cols - self.b.mi_col) * 4);
+ if self.b.palette_size_y > 0 {
+ let n = self.b.palette_size_y;
+ let mut map = std::mem::take(&mut self.color_map_y);
+ self.read_color_map(&mut map, n, bw, bh, on_w, on_h, 0);
+ self.color_map_y = map;
+ }
+ if self.b.palette_size_uv > 0 {
+ let n = self.b.palette_size_uv;
+ let (ssx, ssy) = (self.fs.ssx, self.fs.ssy);
+ let (mut bw, mut bh, mut on_w, mut on_h) = (bw >> ssx, bh >> ssy, on_w >> ssx, on_h >> ssy);
+ if bw < 4 {
+ bw += 2;
+ on_w += 2;
+ }
+ if bh < 4 {
+ bh += 2;
+ on_h += 2;
+ }
+ let mut map = std::mem::take(&mut self.color_map_uv);
+ self.read_color_map(&mut map, n, bw, bh, on_w, on_h, 1);
+ self.color_map_uv = map;
+ }
+ }
+
+ /// Color index map (stride 64).
+ #[allow(clippy::too_many_arguments)]
+ fn read_color_map(&mut self, map: &mut [u8], n: usize, bw: usize, bh: usize, on_w: usize, on_h: usize, plane: usize) {
+ map[0] = self.sd.read_ns(n as u32) as u8;
+ for i in 1..(on_h + on_w - 1) {
+ let jmax = i.min(on_w - 1);
+ let jmin = (i as isize - on_h as isize + 1).max(0) as usize;
+ let mut j = jmax as isize;
+ while j >= jmin as isize {
+ let (rr, cc) = (i - j as usize, j as usize);
+ let (order, hash) = palette_color_context(map, rr, cc, n);
+ let ctx = PALETTE_COLOR_CONTEXT[hash] as usize;
+ let cdf: &mut [u16] = match (plane, n) {
+ (0, 2) => &mut self.cdf.palette_2_y_color[ctx],
+ (0, 3) => &mut self.cdf.palette_3_y_color[ctx],
+ (0, 4) => &mut self.cdf.palette_4_y_color[ctx],
+ (0, 5) => &mut self.cdf.palette_5_y_color[ctx],
+ (0, 6) => &mut self.cdf.palette_6_y_color[ctx],
+ (0, 7) => &mut self.cdf.palette_7_y_color[ctx],
+ (0, _) => &mut self.cdf.palette_8_y_color[ctx],
+ (_, 2) => &mut self.cdf.palette_2_uv_color[ctx],
+ (_, 3) => &mut self.cdf.palette_3_uv_color[ctx],
+ (_, 4) => &mut self.cdf.palette_4_uv_color[ctx],
+ (_, 5) => &mut self.cdf.palette_5_uv_color[ctx],
+ (_, 6) => &mut self.cdf.palette_6_uv_color[ctx],
+ (_, 7) => &mut self.cdf.palette_7_uv_color[ctx],
+ _ => &mut self.cdf.palette_8_uv_color[ctx],
+ };
+ let s = self.sd.read_symbol(cdf);
+ map[rr * 64 + cc] = order[s];
+ j -= 1;
+ }
+ }
+ for i in 0..on_h {
+ for j in on_w..bw {
+ map[i * 64 + j] = map[i * 64 + on_w - 1];
+ }
+ }
+ for i in on_h..bh {
+ for j in 0..bw {
+ map[i * 64 + j] = map[(on_h - 1) * 64 + j];
+ }
+ }
+ }
+
+ // ---- transform size ---------------------------------------------------------------------
+
+ fn read_block_tx_size(&mut self) {
+ let b = &self.b;
+ let (bw4, bh4) = (b.bw4, b.bh4);
+ let fh = &self.fs.fh;
+ if fh.tx_mode == TX_MODE_SELECT as u8 && b.mi_size > BLOCK_4X4 && b.is_inter && !b.skip && !b.lossless {
+ let max_tx = MAX_TX_SIZE_RECT[b.mi_size] as usize;
+ let tw4 = TX_WIDTH[max_tx] as usize / 4;
+ let th4 = TX_HEIGHT[max_tx] as usize / 4;
+ let (r0, c0) = (b.mi_row, b.mi_col);
+ let mut row = r0;
+ while row < r0 + bh4 {
+ let mut col = c0;
+ while col < c0 + bw4 {
+ self.read_var_tx_size(row, col, max_tx, 0);
+ col += tw4;
+ }
+ row += th4;
+ }
+ } else {
+ let allow = !b.skip || !b.is_inter;
+ self.read_tx_size(allow);
+ let (r0, c0, ts) = (self.b.mi_row, self.b.mi_col, self.b.tx_size as u8);
+ let mi = &mut self.fs.mi;
+ for row in r0..(r0 + bh4).min(mi.rows) {
+ for col in c0..(c0 + bw4).min(mi.cols) {
+ let i = mi.idx(row, col);
+ mi.inter_tx_size[i] = ts;
+ }
+ }
+ }
+ }
+
+ fn read_tx_size(&mut self, allow_select: bool) {
+ if self.b.lossless {
+ self.b.tx_size = TX_4X4;
+ return;
+ }
+ let ms = self.b.mi_size;
+ let max_rect = MAX_TX_SIZE_RECT[ms] as usize;
+ let max_depth = MAX_TX_DEPTH_TABLE[ms] as usize;
+ self.b.tx_size = max_rect;
+ if ms > BLOCK_4X4 && allow_select && self.fs.fh.tx_mode == TX_MODE_SELECT as u8 {
+ let ctx = self.tx_depth_ctx(max_rect);
+ let depth = match max_depth {
+ 4 => self.sd.read_symbol(&mut self.cdf.tx_64x64[ctx]),
+ 3 => self.sd.read_symbol(&mut self.cdf.tx_32x32[ctx]),
+ 2 => self.sd.read_symbol(&mut self.cdf.tx_16x16[ctx]),
+ _ => self.sd.read_symbol(&mut self.cdf.tx_8x8[ctx]),
+ };
+ for _ in 0..depth {
+ self.b.tx_size = SPLIT_TX_SIZE[self.b.tx_size] as usize;
+ }
+ }
+ }
+
+ fn tx_depth_ctx(&self, max_rect: usize) -> usize {
+ let (r, c) = (self.b.mi_row, self.b.mi_col);
+ let mi = &self.fs.mi;
+ let max_w = TX_WIDTH[max_rect] as usize;
+ let max_h = TX_HEIGHT[max_rect] as usize;
+ let above_w = if self.b.avail_u && mi.is_inter[mi.idx(r - 1, c)] {
+ block_width(mi.mi_size[mi.idx(r - 1, c)] as usize)
+ } else if self.b.avail_u {
+ self.get_above_tx_width(r, c)
+ } else {
+ 0
+ };
+ let left_h = if self.b.avail_l && mi.is_inter[mi.idx(r, c - 1)] {
+ block_height(mi.mi_size[mi.idx(r, c - 1)] as usize)
+ } else if self.b.avail_l {
+ self.get_left_tx_height(r, c)
+ } else {
+ 0
+ };
+ (above_w >= max_w) as usize + (left_h >= max_h) as usize
+ }
+
+ fn get_above_tx_width(&self, row: usize, col: usize) -> usize {
+ let mi = &self.fs.mi;
+ if row == self.b.mi_row {
+ if !self.b.avail_u {
+ return 64;
+ } else if mi.skip[mi.idx(row - 1, col)] && mi.is_inter[mi.idx(row - 1, col)] {
+ return block_width(mi.mi_size[mi.idx(row - 1, col)] as usize);
+ }
+ }
+ TX_WIDTH[mi.inter_tx_size[mi.idx(row - 1, col)] as usize] as usize
+ }
+
+ fn get_left_tx_height(&self, row: usize, col: usize) -> usize {
+ let mi = &self.fs.mi;
+ if col == self.b.mi_col {
+ if !self.b.avail_l {
+ return 64;
+ } else if mi.skip[mi.idx(row, col - 1)] && mi.is_inter[mi.idx(row, col - 1)] {
+ return block_height(mi.mi_size[mi.idx(row, col - 1)] as usize);
+ }
+ }
+ TX_HEIGHT[mi.inter_tx_size[mi.idx(row, col - 1)] as usize] as usize
+ }
+
+ fn read_var_tx_size(&mut self, row: usize, col: usize, tx_sz: usize, depth: usize) {
+ let (mi_rows, mi_cols) = (self.fs.fh.mi_rows as usize, self.fs.fh.mi_cols as usize);
+ if row >= mi_rows || col >= mi_cols {
+ return;
+ }
+ let split = if tx_sz == TX_4X4 || depth == MAX_VARTX_DEPTH {
+ false
+ } else {
+ let above = self.get_above_tx_width(row, col) < TX_WIDTH[tx_sz] as usize;
+ let left = self.get_left_tx_height(row, col) < TX_HEIGHT[tx_sz] as usize;
+ let ms = self.b.mi_size;
+ let size = 64.min(block_width(ms).max(block_height(ms)));
+ let max_tx = find_tx_size(size, size);
+ let sqr_up = TX_SIZE_SQR_UP[tx_sz] as usize;
+ let ctx = (sqr_up != max_tx) as usize * 3 + (TX_SIZES - 1 - max_tx) * 6 + above as usize + left as usize;
+ self.sd.read_symbol(&mut self.cdf.txfm_split[ctx]) == 1
+ };
+ let w4 = TX_WIDTH[tx_sz] as usize / 4;
+ let h4 = TX_HEIGHT[tx_sz] as usize / 4;
+ if split {
+ let sub = SPLIT_TX_SIZE[tx_sz] as usize;
+ let sw = TX_WIDTH[sub] as usize / 4;
+ let sh = TX_HEIGHT[sub] as usize / 4;
+ let mut i = 0;
+ while i < h4 {
+ let mut j = 0;
+ while j < w4 {
+ self.read_var_tx_size(row + i, col + j, sub, depth + 1);
+ j += sw;
+ }
+ i += sh;
+ }
+ } else {
+ let mi = &mut self.fs.mi;
+ for i in 0..h4 {
+ for j in 0..w4 {
+ if row + i < mi.rows && col + j < mi.cols {
+ let k = mi.idx(row + i, col + j);
+ mi.inter_tx_size[k] = tx_sz as u8;
+ }
+ }
+ }
+ self.b.tx_size = tx_sz;
+ }
+ }
+
+ // ---- prediction and residual ----------------------------------------------------------
+
+ fn compute_prediction(&mut self) -> Result<()> {
+ if self.b.is_inter {
+ return Err(Error::Unsupported("inter prediction"));
+ }
+ Ok(())
+ }
+
+ fn get_tx_size(&self, plane: usize, tx_sz: usize) -> usize {
+ if plane == 0 {
+ return tx_sz;
+ }
+ let uv_tx = MAX_TX_SIZE_RECT[self.fs.plane_residual_size(self.b.mi_size, plane)] as usize;
+ if TX_WIDTH[uv_tx] == 64 || TX_HEIGHT[uv_tx] == 64 {
+ if TX_WIDTH[uv_tx] == 16 {
+ return TX_16X32;
+ }
+ if TX_HEIGHT[uv_tx] == 16 {
+ return TX_32X16;
+ }
+ return TX_32X32;
+ }
+ uv_tx
+ }
+
+ fn residual(&mut self) -> Result<()> {
+ let sb_mask = if self.fs.seq.use_128x128_superblock { 31 } else { 15 };
+ let ms = self.b.mi_size;
+ let width_chunks = (block_width(ms) >> 6).max(1);
+ let height_chunks = (block_height(ms) >> 6).max(1);
+ let mi_size_chunk = if width_chunks > 1 || height_chunks > 1 { BLOCK_64X64 } else { ms };
+ let (ssx, ssy) = (self.fs.ssx, self.fs.ssy);
+ for chunk_y in 0..height_chunks {
+ for chunk_x in 0..width_chunks {
+ let mi_row_chunk = self.b.mi_row + (chunk_y << 4);
+ let mi_col_chunk = self.b.mi_col + (chunk_x << 4);
+ let _ = (mi_row_chunk & sb_mask, mi_col_chunk & sb_mask);
+ for plane in 0..(1 + 2 * self.b.has_chroma as usize) {
+ let tx_sz = if self.b.lossless { TX_4X4 } else { self.get_tx_size(plane, self.b.tx_size) };
+ let step_x = TX_WIDTH[tx_sz] as usize >> 2;
+ let step_y = TX_HEIGHT[tx_sz] as usize >> 2;
+ let plane_sz = self.fs.plane_residual_size(mi_size_chunk, plane);
+ let num4x4_w = NUM_4X4_BLOCKS_WIDE[plane_sz] as usize;
+ let num4x4_h = NUM_4X4_BLOCKS_HIGH[plane_sz] as usize;
+ let sub_x = if plane > 0 { ssx } else { 0 };
+ let sub_y = if plane > 0 { ssy } else { 0 };
+ let base_x = (mi_col_chunk >> sub_x) * 4;
+ let base_y = (mi_row_chunk >> sub_y) * 4;
+ if self.b.is_inter && !self.b.lossless && plane == 0 {
+ self.transform_tree(base_x, base_y, num4x4_w * 4, num4x4_h * 4)?;
+ } else {
+ let base_x_block = (self.b.mi_col >> sub_x) * 4;
+ let base_y_block = (self.b.mi_row >> sub_y) * 4;
+ let mut y = 0;
+ while y < num4x4_h {
+ let mut x = 0;
+ while x < num4x4_w {
+ self.transform_block(plane, base_x_block, base_y_block, tx_sz, x + ((chunk_x << 4) >> sub_x), y + ((chunk_y << 4) >> sub_y))?;
+ x += step_x;
+ }
+ y += step_y;
+ }
+ }
+ }
+ }
+ }
+ Ok(())
+ }
+
+ fn transform_tree(&mut self, start_x: usize, start_y: usize, w: usize, h: usize) -> Result<()> {
+ let max_x = self.fs.fh.mi_cols as usize * 4;
+ let max_y = self.fs.fh.mi_rows as usize * 4;
+ if start_x >= max_x || start_y >= max_y {
+ return Ok(());
+ }
+ let row = start_y >> 2;
+ let col = start_x >> 2;
+ let mi = &self.fs.mi;
+ let luma_tx = mi.inter_tx_size[mi.idx(row, col)] as usize;
+ let lw = TX_WIDTH[luma_tx] as usize;
+ let lh = TX_HEIGHT[luma_tx] as usize;
+ if w <= lw && h <= lh {
+ let tx_sz = find_tx_size(w, h);
+ self.transform_block(0, start_x, start_y, tx_sz, 0, 0)?;
+ } else if w > h {
+ self.transform_tree(start_x, start_y, w / 2, h)?;
+ self.transform_tree(start_x + w / 2, start_y, w / 2, h)?;
+ } else if w < h {
+ self.transform_tree(start_x, start_y, w, h / 2)?;
+ self.transform_tree(start_x, start_y + h / 2, w, h / 2)?;
+ } else {
+ self.transform_tree(start_x, start_y, w / 2, h / 2)?;
+ self.transform_tree(start_x + w / 2, start_y, w / 2, h / 2)?;
+ self.transform_tree(start_x, start_y + h / 2, w / 2, h / 2)?;
+ self.transform_tree(start_x + w / 2, start_y + h / 2, w / 2, h / 2)?;
+ }
+ Ok(())
+ }
+
+ fn transform_block(&mut self, plane: usize, base_x: usize, base_y: usize, tx_sz: usize, x: usize, y: usize) -> Result<()> {
+ let start_x = base_x + 4 * x;
+ let start_y = base_y + 4 * y;
+ let (ssx, ssy) = (self.fs.ssx, self.fs.ssy);
+ let sub_x = if plane > 0 { ssx } else { 0 };
+ let sub_y = if plane > 0 { ssy } else { 0 };
+ let row = (start_y << sub_y) >> 2;
+ let col = (start_x << sub_x) >> 2;
+ let sb_mask = if self.fs.seq.use_128x128_superblock { 31 } else { 15 };
+ let sub_block_mi_row = row & sb_mask;
+ let sub_block_mi_col = col & sb_mask;
+ let step_x = TX_WIDTH[tx_sz] as usize >> 2;
+ let step_y = TX_HEIGHT[tx_sz] as usize >> 2;
+ let max_x = (self.fs.fh.mi_cols as usize * 4) >> sub_x;
+ let max_y = (self.fs.fh.mi_rows as usize * 4) >> sub_y;
+ if start_x >= max_x || start_y >= max_y {
+ return Ok(());
+ }
+ if !self.b.is_inter {
+ let palette = if plane == 0 { self.b.palette_size_y } else { self.b.palette_size_uv };
+ if palette > 0 {
+ self.predict_palette(plane, start_x, start_y, x, y, tx_sz);
+ } else {
+ let is_cfl = plane > 0 && self.b.uv_mode == UV_CFL_PRED;
+ let mode = if plane == 0 {
+ self.b.y_mode
+ } else if is_cfl {
+ DC_PRED
+ } else {
+ self.b.uv_mode
+ };
+ let log2w = TX_WIDTH_LOG2[tx_sz] as u32;
+ let log2h = TX_HEIGHT_LOG2[tx_sz] as u32;
+ let have_left = (if plane == 0 { self.b.avail_l } else { self.b.avail_l_chroma }) || x > 0;
+ let have_above = (if plane == 0 { self.b.avail_u } else { self.b.avail_u_chroma }) || y > 0;
+ let sbr = (sub_block_mi_row >> sub_y) as isize;
+ let sbc = (sub_block_mi_col >> sub_x) as isize;
+ let have_above_right = self.block_decoded_at(plane, sbr - 1, sbc + step_x as isize);
+ let have_below_left = self.block_decoded_at(plane, sbr + step_y as isize, sbc - 1);
+ let filter_type = if is_directional_mode(mode) && self.fs.seq.enable_intra_edge_filter { self.get_filter_type(plane) } else { false };
+ let params = IntraParams {
+ plane,
+ x: start_x,
+ y: start_y,
+ have_left,
+ have_above,
+ have_above_right,
+ have_below_left,
+ mode,
+ log2w,
+ log2h,
+ max_x: max_x as i32 - 1,
+ max_y: max_y as i32 - 1,
+ bit_depth: self.fs.bit_depth,
+ angle_delta: if plane == 0 { self.b.angle_delta_y } else { self.b.angle_delta_uv },
+ use_filter_intra: self.b.use_filter_intra,
+ filter_intra_mode: self.b.filter_intra_mode,
+ enable_intra_edge_filter: self.fs.seq.enable_intra_edge_filter,
+ filter_type,
+ };
+ predict_intra(&mut self.fs.cur.planes[plane], &params);
+ if is_cfl {
+ self.predict_cfl(plane, start_x, start_y, tx_sz);
+ }
+ }
+ if plane == 0 {
+ self.b.max_luma_w = start_x + step_x * 4;
+ self.b.max_luma_h = start_y + step_y * 4;
+ }
+ }
+ if !self.b.skip {
+ let eob = self.coeffs(plane, start_x, start_y, tx_sz);
+ if eob > 0 {
+ self.reconstruct(plane, start_x, start_y, tx_sz);
+ }
+ }
+ for i in 0..step_y {
+ for j in 0..step_x {
+ let rr = (row >> sub_y) + i;
+ let cc = (col >> sub_x) + j;
+ self.fs.set_lf_tx_size(plane, rr, cc, tx_sz as u8);
+ let by = (sub_block_mi_row >> sub_y) + i;
+ let bx = (sub_block_mi_col >> sub_x) + j;
+ if by + 1 < 35 && bx + 1 < 35 {
+ self.block_decoded[plane][by + 1][bx + 1] = true;
+ }
+ }
+ }
+ Ok(())
+ }
+
+ fn get_filter_type(&self, plane: usize) -> bool {
+ let (ssx, ssy) = (self.fs.ssx, self.fs.ssy);
+ let b = &self.b;
+ let mi = &self.fs.mi;
+ let is_smooth = |row: usize, col: usize| -> bool {
+ let i = mi.idx(row, col);
+ let mode = if plane == 0 {
+ mi.y_mode[i] as usize
+ } else {
+ if mi.ref_frame[i][0] > INTRA_FRAME as i8 {
+ return false;
+ }
+ mi.uv_mode[i] as usize
+ };
+ mode == SMOOTH_PRED || mode == SMOOTH_V_PRED || mode == SMOOTH_H_PRED
+ };
+ let mut above_smooth = false;
+ let mut left_smooth = false;
+ if if plane == 0 { b.avail_u } else { b.avail_u_chroma } {
+ let mut r = b.mi_row as isize - 1;
+ let mut c = b.mi_col;
+ if plane > 0 {
+ if ssx == 1 && (b.mi_col & 1) == 0 {
+ c += 1;
+ }
+ if ssy == 1 && (b.mi_row & 1) == 1 {
+ r -= 1;
+ }
+ }
+ above_smooth = is_smooth(r as usize, c);
+ }
+ if if plane == 0 { b.avail_l } else { b.avail_l_chroma } {
+ let mut r = b.mi_row;
+ let mut c = b.mi_col as isize - 1;
+ if plane > 0 {
+ if ssx == 1 && (b.mi_col & 1) == 1 {
+ c -= 1;
+ }
+ if ssy == 1 && (b.mi_row & 1) == 0 {
+ r += 1;
+ }
+ }
+ left_smooth = is_smooth(r, c as usize);
+ }
+ above_smooth || left_smooth
+ }
+
+ fn predict_palette(&mut self, plane: usize, start_x: usize, start_y: usize, x: usize, y: usize, tx_sz: usize) {
+ let w = TX_WIDTH[tx_sz] as usize;
+ let h = TX_HEIGHT[tx_sz] as usize;
+ let palette = match plane {
+ 0 => self.b.palette_colors_y,
+ 1 => self.b.palette_colors_u,
+ _ => self.b.palette_colors_v,
+ };
+ let map = if plane == 0 { &self.color_map_y } else { &self.color_map_uv };
+ let pl = &mut self.fs.cur.planes[plane];
+ for i in 0..h {
+ for j in 0..w {
+ let idx = map[(y * 4 + i) * 64 + x * 4 + j] as usize;
+ pl.set(start_x + j, start_y + i, palette[idx]);
+ }
+ }
+ }
+
+ fn predict_cfl(&mut self, plane: usize, start_x: usize, start_y: usize, tx_sz: usize) {
+ let w = TX_WIDTH[tx_sz] as usize;
+ let h = TX_HEIGHT[tx_sz] as usize;
+ let (sub_x, sub_y) = (self.fs.ssx, self.fs.ssy);
+ let alpha = if plane == 1 { self.b.cfl_alpha_u } else { self.b.cfl_alpha_v };
+ let bd = self.fs.bit_depth;
+ let mut l = [0i32; 32 * 32];
+ let mut avg: i64 = 0;
+ {
+ let luma = &self.fs.cur.planes[0];
+ for i in 0..h {
+ let ly = ((start_y + i) << sub_y).min(self.b.max_luma_h - (1 << sub_y));
+ for j in 0..w {
+ let lx = ((start_x + j) << sub_x).min(self.b.max_luma_w - (1 << sub_x));
+ let mut t = 0i32;
+ for dy in 0..=sub_y {
+ for dx in 0..=sub_x {
+ t += luma.at(lx + dx, ly + dy) as i32;
+ }
+ }
+ let v = t << (3 - sub_x - sub_y);
+ l[i * w + j] = v;
+ avg += v as i64;
+ }
+ }
+ }
+ let shift = TX_WIDTH_LOG2[tx_sz] as u32 + TX_HEIGHT_LOG2[tx_sz] as u32;
+ let avg = ((avg + (1i64 << (shift - 1))) >> shift) as i32;
+ let pl = &mut self.fs.cur.planes[plane];
+ for i in 0..h {
+ for j in 0..w {
+ let dc = pl.at(start_x + j, start_y + i) as i32;
+ let scaled = round2_signed(alpha * (l[i * w + j] - avg), 6);
+ pl.set(start_x + j, start_y + i, (dc + scaled).clamp(0, (1 << bd) - 1) as u16);
+ }
+ }
+ }
+
+ // ---- coefficients -----------------------------------------------------------------------
+
+ fn get_tx_set(&self, tx_sz: usize) -> usize {
+ let sqr = TX_SIZE_SQR[tx_sz] as usize;
+ let sqr_up = TX_SIZE_SQR_UP[tx_sz] as usize;
+ if sqr_up > TX_32X32 {
+ return TX_SET_DCTONLY;
+ }
+ let reduced = self.fs.fh.reduced_tx_set;
+ if self.b.is_inter {
+ if reduced || sqr_up == TX_32X32 {
+ TX_SET_INTER_3
+ } else if sqr == TX_16X16 {
+ TX_SET_INTER_2
+ } else {
+ TX_SET_INTER_1
+ }
+ } else if sqr_up == TX_32X32 {
+ TX_SET_DCTONLY
+ } else if reduced || sqr == TX_16X16 {
+ TX_SET_INTRA_2
+ } else {
+ TX_SET_INTRA_1
+ }
+ }
+
+ fn is_tx_type_in_set(&self, set: usize, tx_type: usize) -> bool {
+ if self.b.is_inter { TX_TYPE_IN_SET_INTER[set][tx_type] == 1 } else { TX_TYPE_IN_SET_INTRA[set][tx_type] == 1 }
+ }
+
+ fn compute_tx_type(&self, plane: usize, tx_sz: usize, block_x: usize, block_y: usize) -> usize {
+ let sqr_up = TX_SIZE_SQR_UP[tx_sz] as usize;
+ if self.b.lossless || sqr_up > TX_32X32 {
+ return DCT_DCT;
+ }
+ let set = self.get_tx_set(tx_sz);
+ let mi = &self.fs.mi;
+ if plane == 0 {
+ return mi.tx_type[mi.idx(block_y, block_x)] as usize;
+ }
+ if self.b.is_inter {
+ let x4 = self.b.mi_col.max(block_x << self.fs.ssx);
+ let y4 = self.b.mi_row.max(block_y << self.fs.ssy);
+ let t = mi.tx_type[mi.idx(y4, x4)] as usize;
+ if !self.is_tx_type_in_set(set, t) {
+ return DCT_DCT;
+ }
+ return t;
+ }
+ let t = MODE_TO_TXFM[self.b.uv_mode] as usize;
+ if !self.is_tx_type_in_set(set, t) {
+ return DCT_DCT;
+ }
+ t
+ }
+
+ fn transform_type(&mut self, x4: usize, y4: usize, tx_sz: usize) {
+ let set = self.get_tx_set(tx_sz);
+ let qidx =
+ if self.fs.fh.seg.enabled { self.fs.fh.get_qindex(true, self.b.segment_id, self.current_q_index) } else { self.fs.fh.quant.base_q_idx as i32 };
+ let tx_type = if set > 0 && qidx > 0 {
+ let sqr = TX_SIZE_SQR[tx_sz] as usize;
+ if self.b.is_inter {
+ match set {
+ TX_SET_INTER_1 => TX_TYPE_INTER_INV_SET1[self.sd.read_symbol(&mut self.cdf.inter_tx_type_set1[sqr])] as usize,
+ TX_SET_INTER_2 => TX_TYPE_INTER_INV_SET2[self.sd.read_symbol(&mut self.cdf.inter_tx_type_set2)] as usize,
+ _ => TX_TYPE_INTER_INV_SET3[self.sd.read_symbol(&mut self.cdf.inter_tx_type_set3[sqr])] as usize,
+ }
+ } else {
+ let intra_dir = if self.b.use_filter_intra { FILTER_INTRA_MODE_TO_INTRA_DIR[self.b.filter_intra_mode] as usize } else { self.b.y_mode };
+ if set == TX_SET_INTRA_1 {
+ TX_TYPE_INTRA_INV_SET1[self.sd.read_symbol(&mut self.cdf.intra_tx_type_set1[sqr][intra_dir])] as usize
+ } else {
+ TX_TYPE_INTRA_INV_SET2[self.sd.read_symbol(&mut self.cdf.intra_tx_type_set2[sqr][intra_dir])] as usize
+ }
+ }
+ } else {
+ DCT_DCT
+ };
+ self.set_tx_types(x4, y4, tx_sz, tx_type);
+ }
+
+ fn set_tx_types(&mut self, x4: usize, y4: usize, tx_sz: usize, tx_type: usize) {
+ let mi = &mut self.fs.mi;
+ for i in 0..(TX_WIDTH[tx_sz] as usize >> 2) {
+ for j in 0..(TX_HEIGHT[tx_sz] as usize >> 2) {
+ if y4 + j < mi.rows && x4 + i < mi.cols {
+ let k = mi.idx(y4 + j, x4 + i);
+ mi.tx_type[k] = tx_type as u8;
+ }
+ }
+ }
+ }
+
+ fn get_scan(&self, tx_sz: usize) -> &'static [u16] {
+ if tx_sz == TX_16X64 {
+ return &DEFAULT_SCAN_16X32;
+ }
+ if tx_sz == TX_64X16 {
+ return &DEFAULT_SCAN_32X16;
+ }
+ if TX_SIZE_SQR_UP[tx_sz] as usize == TX_64X64 {
+ return &DEFAULT_SCAN_32X32;
+ }
+ let t = self.plane_tx_type;
+ if t == IDTX {
+ return default_scan(tx_sz);
+ }
+ let prefer_row = t == V_DCT || t == V_ADST || t == V_FLIPADST;
+ let prefer_col = t == H_DCT || t == H_ADST || t == H_FLIPADST;
+ if prefer_row {
+ match tx_sz {
+ TX_4X4 => &MROW_SCAN_4X4,
+ TX_4X8 => &MROW_SCAN_4X8,
+ TX_8X4 => &MROW_SCAN_8X4,
+ TX_8X8 => &MROW_SCAN_8X8,
+ TX_8X16 => &MROW_SCAN_8X16,
+ TX_16X8 => &MROW_SCAN_16X8,
+ TX_16X16 => &MROW_SCAN_16X16,
+ TX_4X16 => &MROW_SCAN_4X16,
+ _ => &MROW_SCAN_16X4,
+ }
+ } else if prefer_col {
+ match tx_sz {
+ TX_4X4 => &MCOL_SCAN_4X4,
+ TX_4X8 => &MCOL_SCAN_4X8,
+ TX_8X4 => &MCOL_SCAN_8X4,
+ TX_8X8 => &MCOL_SCAN_8X8,
+ TX_8X16 => &MCOL_SCAN_8X16,
+ TX_16X8 => &MCOL_SCAN_16X8,
+ TX_16X16 => &MCOL_SCAN_16X16,
+ TX_4X16 => &MCOL_SCAN_4X16,
+ _ => &MCOL_SCAN_16X4,
+ }
+ } else {
+ default_scan(tx_sz)
+ }
+ }
+
+ /// coeffs( ): returns eob.
+ fn coeffs(&mut self, plane: usize, start_x: usize, start_y: usize, tx_sz: usize) -> usize {
+ let x4 = start_x >> 2;
+ let y4 = start_y >> 2;
+ let w4 = TX_WIDTH[tx_sz] as usize >> 2;
+ let h4 = TX_HEIGHT[tx_sz] as usize >> 2;
+ let tx_sz_ctx = (TX_SIZE_SQR[tx_sz] as usize + TX_SIZE_SQR_UP[tx_sz] as usize + 1) >> 1;
+ let ptype = (plane > 0) as usize;
+ let seg_eob = if tx_sz == TX_16X64 || tx_sz == TX_64X16 { 512 } else { 1024.min(TX_WIDTH[tx_sz] as usize * TX_HEIGHT[tx_sz] as usize) };
+ self.quant[..seg_eob].iter_mut().for_each(|q| *q = 0);
+ let mut eob = 0usize;
+ let mut cul_level = 0u32;
+ let mut dc_category = 0u8;
+ let ctx = self.all_zero_ctx(plane, tx_sz, x4, y4, w4, h4);
+ let all_zero = self.sd.read_symbol(&mut self.cdf.txb_skip[tx_sz_ctx][ctx]) == 1;
+ if all_zero {
+ if plane == 0 {
+ self.set_tx_types(x4, y4, tx_sz, DCT_DCT);
+ }
+ } else {
+ if plane == 0 {
+ self.transform_type(x4, y4, tx_sz);
+ }
+ self.plane_tx_type = self.compute_tx_type(plane, tx_sz, x4, y4);
+ let scan = self.get_scan(tx_sz);
+ let eob_multisize = (TX_WIDTH_LOG2[tx_sz] as usize).min(5) + (TX_HEIGHT_LOG2[tx_sz] as usize).min(5) - 4;
+ let tx_class = get_tx_class(self.plane_tx_type);
+ let ectx = (tx_class != TX_CLASS_2D) as usize;
+ let eob_pt = 1 + match eob_multisize {
+ 0 => self.sd.read_symbol(&mut self.cdf.eob_pt_16[ptype][ectx]),
+ 1 => self.sd.read_symbol(&mut self.cdf.eob_pt_32[ptype][ectx]),
+ 2 => self.sd.read_symbol(&mut self.cdf.eob_pt_64[ptype][ectx]),
+ 3 => self.sd.read_symbol(&mut self.cdf.eob_pt_128[ptype][ectx]),
+ 4 => self.sd.read_symbol(&mut self.cdf.eob_pt_256[ptype][ectx]),
+ 5 => self.sd.read_symbol(&mut self.cdf.eob_pt_512[ptype]),
+ _ => self.sd.read_symbol(&mut self.cdf.eob_pt_1024[ptype]),
+ };
+ eob = if eob_pt < 2 { eob_pt } else { (1 << (eob_pt - 2)) + 1 };
+ let eob_shift = eob_pt as i32 - 3;
+ if eob_shift >= 0 {
+ let extra = self.sd.read_symbol(&mut self.cdf.eob_extra[tx_sz_ctx][ptype][eob_pt - 3]);
+ if extra == 1 {
+ eob += 1 << eob_shift;
+ }
+ for i in 1..(eob_pt as i32 - 2).max(0) {
+ let sh = (eob_pt as i32 - 2).max(0) - 1 - i;
+ if self.sd.read_literal(1) == 1 {
+ eob += 1 << sh;
+ }
+ }
+ }
+ let adj = ADJUSTED_TX_SIZE[tx_sz] as usize;
+ let bwl = TX_WIDTH_LOG2[adj] as usize;
+ let height = TX_HEIGHT[adj] as usize;
+ let width = 1usize << bwl;
+ for c in (0..eob).rev() {
+ let pos = scan[c] as usize;
+ let level = if c == eob - 1 {
+ let ctx = coeff_base_eob_ctx(c, bwl, height);
+ self.sd.read_symbol(&mut self.cdf.coeff_base_eob[tx_sz_ctx][ptype][ctx]) as i32 + 1
+ } else {
+ let ctx = self.coeff_base_ctx(tx_sz, tx_class, bwl, width, height, pos);
+ self.sd.read_symbol(&mut self.cdf.coeff_base[tx_sz_ctx][ptype][ctx]) as i32
+ };
+ let mut level = level;
+ if level > NUM_BASE_LEVELS as i32 {
+ let ctx = self.coeff_br_ctx(tx_class, bwl, height, pos);
+ for _ in 0..(COEFF_BASE_RANGE / (BR_CDF_SIZE - 1)) {
+ let br = self.sd.read_symbol(&mut self.cdf.coeff_br[tx_sz_ctx.min(TX_32X32)][ptype][ctx]) as i32;
+ level += br;
+ if br < (BR_CDF_SIZE - 1) as i32 {
+ break;
+ }
+ }
+ }
+ self.quant[pos] = level;
+ }
+ for c in 0..eob {
+ let pos = scan[c] as usize;
+ let sign = if self.quant[pos] != 0 {
+ if c == 0 {
+ let ctx = self.dc_sign_ctx(plane, x4, y4, w4, h4);
+ self.sd.read_symbol(&mut self.cdf.dc_sign[ptype][ctx]) == 1
+ } else {
+ self.sd.read_literal(1) == 1
+ }
+ } else {
+ false
+ };
+ if self.quant[pos] > (NUM_BASE_LEVELS + COEFF_BASE_RANGE) as i32 {
+ let mut length = 0;
+ loop {
+ length += 1;
+ if self.sd.read_literal(1) == 1 {
+ break;
+ }
+ if length > 32 {
+ break;
+ }
+ }
+ let mut x: u32 = 1;
+ for _ in (0..length - 1).rev() {
+ x = (x << 1) | self.sd.read_literal(1);
+ }
+ self.quant[pos] = (x as i64 + COEFF_BASE_RANGE as i64 + NUM_BASE_LEVELS as i64).min(i32::MAX as i64) as i32;
+ }
+ if pos == 0 && self.quant[pos] > 0 {
+ dc_category = if sign { 1 } else { 2 };
+ }
+ self.quant[pos] &= 0xFFFFF;
+ cul_level += self.quant[pos] as u32;
+ if sign {
+ self.quant[pos] = -self.quant[pos];
+ }
+ }
+ cul_level = cul_level.min(63);
+ }
+ for i in 0..w4 {
+ if x4 + i < self.fs.above_level[plane].len() {
+ self.fs.above_level[plane][x4 + i] = cul_level as u8;
+ self.fs.above_dc[plane][x4 + i] = dc_category;
+ }
+ }
+ for i in 0..h4 {
+ if y4 + i < self.fs.left_level[plane].len() {
+ self.fs.left_level[plane][y4 + i] = cul_level as u8;
+ self.fs.left_dc[plane][y4 + i] = dc_category;
+ }
+ }
+ eob
+ }
+
+ fn all_zero_ctx(&self, plane: usize, tx_sz: usize, x4: usize, y4: usize, w4: usize, h4: usize) -> usize {
+ let mut max_x4 = self.fs.fh.mi_cols as usize;
+ let mut max_y4 = self.fs.fh.mi_rows as usize;
+ if plane > 0 {
+ max_x4 >>= self.fs.ssx;
+ max_y4 >>= self.fs.ssy;
+ }
+ let w = TX_WIDTH[tx_sz] as usize;
+ let h = TX_HEIGHT[tx_sz] as usize;
+ let bsize = self.fs.plane_residual_size(self.b.mi_size, plane);
+ let bw = block_width(bsize);
+ let bh = block_height(bsize);
+ let al = &self.fs.above_level[plane];
+ let ll = &self.fs.left_level[plane];
+ if plane == 0 {
+ let mut top = 0u32;
+ let mut left = 0u32;
+ for k in 0..w4 {
+ if x4 + k < max_x4 {
+ top = top.max(al[x4 + k] as u32);
+ }
+ }
+ for k in 0..h4 {
+ if y4 + k < max_y4 {
+ left = left.max(ll[y4 + k] as u32);
+ }
+ }
+ top = top.min(255);
+ left = left.min(255);
+ if bw == w && bh == h {
+ 0
+ } else if top == 0 && left == 0 {
+ 1
+ } else if top == 0 || left == 0 {
+ 2 + (top.max(left) > 3) as usize
+ } else if top.max(left) <= 3 {
+ 4
+ } else if top.min(left) <= 3 {
+ 5
+ } else {
+ 6
+ }
+ } else {
+ let ad = &self.fs.above_dc[plane];
+ let ld = &self.fs.left_dc[plane];
+ let mut above = 0u8;
+ let mut left = 0u8;
+ for i in 0..w4 {
+ if x4 + i < max_x4 {
+ above |= al[x4 + i];
+ above |= ad[x4 + i];
+ }
+ }
+ for i in 0..h4 {
+ if y4 + i < max_y4 {
+ left |= ll[y4 + i];
+ left |= ld[y4 + i];
+ }
+ }
+ let mut ctx = (above != 0) as usize + (left != 0) as usize;
+ ctx += 7;
+ if bw * bh > w * h {
+ ctx += 3;
+ }
+ ctx
+ }
+ }
+
+ fn coeff_base_ctx(&self, tx_sz: usize, tx_class: usize, bwl: usize, width: usize, height: usize, pos: usize) -> usize {
+ let row = pos >> bwl;
+ let col = pos - (row << bwl);
+ let mut mag = 0i32;
+ for idx in 0..SIG_REF_DIFF_OFFSET_NUM {
+ let ref_row = row + SIG_REF_DIFF_OFFSET[tx_class][idx][0] as usize;
+ let ref_col = col + SIG_REF_DIFF_OFFSET[tx_class][idx][1] as usize;
+ if ref_row < height && ref_col < width {
+ mag += self.quant[(ref_row << bwl) + ref_col].abs().min(3);
+ }
+ }
+ let ctx = ((mag + 1) >> 1).min(4) as usize;
+ if tx_class == TX_CLASS_2D {
+ if row == 0 && col == 0 {
+ return 0;
+ }
+ return ctx + COEFF_BASE_CTX_OFFSET[tx_sz][row.min(4)][col.min(4)] as usize;
+ }
+ let idx = if tx_class == TX_CLASS_VERT { row } else { col };
+ ctx + COEFF_BASE_POS_CTX_OFFSET[idx.min(2)] as usize
+ }
+
+ fn coeff_br_ctx(&self, tx_class: usize, bwl: usize, txh: usize, pos: usize) -> usize {
+ let txw = 1usize << bwl;
+ let row = pos >> bwl;
+ let col = pos - (row << bwl);
+ let mut mag = 0i32;
+ for idx in 0..3 {
+ let ref_row = row + MAG_REF_OFFSET_WITH_TX_CLASS[tx_class][idx][0] as usize;
+ let ref_col = col + MAG_REF_OFFSET_WITH_TX_CLASS[tx_class][idx][1] as usize;
+ if ref_row < txh && ref_col < (1 << bwl) {
+ mag += self.quant[ref_row * txw + ref_col].min((COEFF_BASE_RANGE + NUM_BASE_LEVELS + 1) as i32);
+ }
+ }
+ let mag = ((mag + 1) >> 1).min(6) as usize;
+ if pos == 0 {
+ mag
+ } else if tx_class == 0 {
+ if row < 2 && col < 2 { mag + 7 } else { mag + 14 }
+ } else if tx_class == 1 {
+ if col == 0 { mag + 7 } else { mag + 14 }
+ } else if row == 0 {
+ mag + 7
+ } else {
+ mag + 14
+ }
+ }
+
+ fn dc_sign_ctx(&self, plane: usize, x4: usize, y4: usize, w4: usize, h4: usize) -> usize {
+ let mut max_x4 = self.fs.fh.mi_cols as usize;
+ let mut max_y4 = self.fs.fh.mi_rows as usize;
+ if plane > 0 {
+ max_x4 >>= self.fs.ssx;
+ max_y4 >>= self.fs.ssy;
+ }
+ let mut dc_sign = 0i32;
+ for k in 0..w4 {
+ if x4 + k < max_x4 {
+ match self.fs.above_dc[plane][x4 + k] {
+ 1 => dc_sign -= 1,
+ 2 => dc_sign += 1,
+ _ => {}
+ }
+ }
+ }
+ for k in 0..h4 {
+ if y4 + k < max_y4 {
+ match self.fs.left_dc[plane][y4 + k] {
+ 1 => dc_sign -= 1,
+ 2 => dc_sign += 1,
+ _ => {}
+ }
+ }
+ }
+ match dc_sign.signum() {
+ -1 => 1,
+ 1 => 2,
+ _ => 0,
+ }
+ }
+
+ /// Reconstruct process (7.12.3).
+ fn reconstruct(&mut self, plane: usize, x: usize, y: usize, tx_sz: usize) {
+ let dq_denom: i64 = match tx_sz {
+ TX_32X32 | TX_16X32 | TX_32X16 | TX_16X64 | TX_64X16 => 2,
+ TX_64X64 | TX_32X64 | TX_64X32 => 4,
+ _ => 1,
+ };
+ let log2w = TX_WIDTH_LOG2[tx_sz] as u32;
+ let log2h = TX_HEIGHT_LOG2[tx_sz] as u32;
+ let w = 1usize << log2w;
+ let h = 1usize << log2h;
+ let tw = w.min(32);
+ let th = h.min(32);
+ let t = self.plane_tx_type;
+ let flip_ud = matches!(t, FLIPADST_DCT | FLIPADST_ADST | V_FLIPADST | FLIPADST_FLIPADST);
+ let flip_lr = matches!(t, DCT_FLIPADST | ADST_FLIPADST | H_FLIPADST | FLIPADST_FLIPADST);
+ let bd = self.fs.bit_depth;
+ let fh = &self.fs.fh;
+ let qindex = fh.get_qindex(false, self.b.segment_id, self.current_q_index);
+ let (dc_delta, ac_delta) = match plane {
+ 0 => (fh.quant.delta_q_y_dc, 0),
+ 1 => (fh.quant.delta_q_u_dc, fh.quant.delta_q_u_ac),
+ _ => (fh.quant.delta_q_v_dc, fh.quant.delta_q_v_ac),
+ };
+ let bd_idx = ((bd - 8) >> 1) as usize;
+ let dc_q = DC_QLOOKUP[bd_idx][(qindex + dc_delta).clamp(0, 255) as usize] as i64;
+ let ac_q = AC_QLOOKUP[bd_idx][(qindex + ac_delta).clamp(0, 255) as usize] as i64;
+ let qm_level = if fh.quant.using_qmatrix { fh.seg_qm_level[plane][self.b.segment_id] } else { 15 };
+ let use_qm = fh.quant.using_qmatrix && t < IDTX && qm_level < 15;
+ let lim = 1i64 << (7 + bd);
+ for v in self.dequant.iter_mut() {
+ *v = 0;
+ }
+ for i in 0..th {
+ for j in 0..tw {
+ let qv = self.quant[i * tw + j];
+ if qv == 0 {
+ continue;
+ }
+ let q = if i == 0 && j == 0 { dc_q } else { ac_q };
+ let q2 = if use_qm {
+ let m = QUANTIZER_MATRIX[qm_level as usize][(plane > 0) as usize][QM_OFFSET[tx_sz] as usize + i * tw + j] as i64;
+ (q * m + 16) >> 5
+ } else {
+ q
+ };
+ let dq = qv as i64 * q2;
+ let mag = (dq.abs() & 0xFFFFFF) / dq_denom;
+ let dq2 = if dq < 0 { -mag } else { mag };
+ self.dequant[i * 64 + j] = dq2.clamp(-lim, lim - 1) as i32;
+ }
+ }
+ let lossless = self.b.lossless;
+ inverse_transform_2d(&self.dequant, &mut self.residual, tx_sz, t, lossless, bd);
+ let pl = &mut self.fs.cur.planes[plane];
+ let max = (1i32 << bd) - 1;
+ for i in 0..h {
+ let yy = if flip_ud { h - i - 1 } else { i };
+ for j in 0..w {
+ let xx = if flip_lr { w - j - 1 } else { j };
+ let cur = pl.at(x + xx, y + yy) as i32;
+ pl.set(x + xx, y + yy, (cur + self.residual[i * w + j]).clamp(0, max) as u16);
+ }
+ }
+ }
+
+ // ---- loop restoration syntax -------------------------------------------------------------
+
+ fn read_lr(&mut self, r: usize, c: usize, bsize: usize) {
+ if self.fs.fh.allow_intrabc {
+ return;
+ }
+ let w = NUM_4X4_BLOCKS_WIDE[bsize] as usize;
+ let h = NUM_4X4_BLOCKS_HIGH[bsize] as usize;
+ for plane in 0..self.fs.num_planes {
+ if self.fs.fh.lr.frame_restoration_type[plane] == RESTORE_NONE as u8 {
+ continue;
+ }
+ let sub_x = if plane == 0 { 0 } else { self.fs.ssx };
+ let sub_y = if plane == 0 { 0 } else { self.fs.ssy };
+ let unit_size = self.fs.fh.lr.loop_restoration_size[plane] as usize;
+ let (unit_rows, unit_cols) = (self.fs.lr_unit_rows[plane], self.fs.lr_unit_cols[plane]);
+ let unit_row_start = (r * (4 >> sub_y)).div_ceil(unit_size);
+ let unit_row_end = unit_rows.min(((r + h) * (4 >> sub_y)).div_ceil(unit_size));
+ let (numerator, denominator) =
+ if self.fs.fh.use_superres { ((4 >> sub_x) * self.fs.fh.superres_denom as usize, unit_size * SUPERRES_NUM) } else { (4 >> sub_x, unit_size) };
+ let unit_col_start = (c * numerator).div_ceil(denominator);
+ let unit_col_end = unit_cols.min(((c + w) * numerator).div_ceil(denominator));
+ for unit_row in unit_row_start..unit_row_end {
+ for unit_col in unit_col_start..unit_col_end {
+ self.read_lr_unit(plane, unit_row, unit_col);
+ }
+ }
+ }
+ }
+
+ fn read_lr_unit(&mut self, plane: usize, unit_row: usize, unit_col: usize) {
+ let frt = self.fs.fh.lr.frame_restoration_type[plane];
+ let rtype = if frt == RESTORE_WIENER as u8 {
+ if self.sd.read_symbol(&mut self.cdf.use_wiener) == 1 { RESTORE_WIENER as u8 } else { RESTORE_NONE as u8 }
+ } else if frt == RESTORE_SGRPROJ as u8 {
+ if self.sd.read_symbol(&mut self.cdf.use_sgrproj) == 1 { RESTORE_SGRPROJ as u8 } else { RESTORE_NONE as u8 }
+ } else {
+ // restoration_type symbol: 0 = NONE, 1 = WIENER, 2 = SGRPROJ
+ match self.sd.read_symbol(&mut self.cdf.restoration_type) {
+ 0 => RESTORE_NONE as u8,
+ 1 => RESTORE_WIENER as u8,
+ _ => RESTORE_SGRPROJ as u8,
+ }
+ };
+ let idx = unit_row * self.fs.lr_unit_cols[plane] + unit_col;
+ self.fs.lr_type[plane][idx] = rtype;
+ if rtype == RESTORE_WIENER as u8 {
+ const MIN: [i32; 3] = [-5, -23, -17];
+ const MAX: [i32; 3] = [10, 8, 46];
+ const K: [u32; 3] = [1, 2, 3];
+ for pass in 0..2 {
+ let first = if plane > 0 {
+ self.fs.lr_wiener[plane][idx][pass][0] = 0;
+ 1
+ } else {
+ 0
+ };
+ for j in first..3 {
+ let v = self.decode_signed_subexp_with_ref_bool(MIN[j], MAX[j] + 1, K[j], self.ref_lr_wiener[plane][pass][j]);
+ self.fs.lr_wiener[plane][idx][pass][j] = v as i8;
+ self.ref_lr_wiener[plane][pass][j] = v;
+ }
+ }
+ } else if rtype == RESTORE_SGRPROJ as u8 {
+ let set = self.sd.read_literal(SGRPROJ_PARAMS_BITS as u32) as usize;
+ self.fs.lr_sgr_set[plane][idx] = set as u8;
+ const MIN: [i32; 2] = [-96, -32];
+ const MAX: [i32; 2] = [31, 95];
+ for i in 0..2 {
+ let radius = SGR_PARAMS[set][i * 2];
+ let v = if radius != 0 {
+ self.decode_signed_subexp_with_ref_bool(MIN[i], MAX[i] + 1, SGRPROJ_PRJ_SUBEXP_K as u32, self.ref_sgr_xqd[plane][i])
+ } else if i == 1 {
+ ((1 << SGRPROJ_PRJ_BITS) - self.ref_sgr_xqd[plane][0]).clamp(MIN[i], MAX[i])
+ } else {
+ 0
+ };
+ self.fs.lr_sgr_xqd[plane][idx][i] = v as i8;
+ self.ref_sgr_xqd[plane][i] = v;
+ }
+ }
+ }
+
+ fn decode_signed_subexp_with_ref_bool(&mut self, low: i32, high: i32, k: u32, r: i32) -> i32 {
+ let x = self.decode_unsigned_subexp_with_ref_bool(high - low, k, r - low);
+ x + low
+ }
+
+ fn decode_unsigned_subexp_with_ref_bool(&mut self, mx: i32, k: u32, r: i32) -> i32 {
+ let v = self.decode_subexp_bool(mx, k);
+ if (r << 1) <= mx { inverse_recenter(r, v) } else { mx - 1 - inverse_recenter(mx - 1 - r, v) }
+ }
+
+ fn decode_subexp_bool(&mut self, num_syms: i32, k: u32) -> i32 {
+ let mut i = 0u32;
+ let mut mk = 0i32;
+ loop {
+ let b2 = if i > 0 { k + i - 1 } else { k };
+ let a = 1i32 << b2;
+ if num_syms <= mk + 3 * a {
+ return self.sd.read_ns((num_syms - mk) as u32) as i32 + mk;
+ } else if self.sd.read_literal(1) == 1 {
+ i += 1;
+ mk += a;
+ } else {
+ return self.sd.read_literal(b2) as i32 + mk;
+ }
+ }
+ }
+
+ fn inter_frame_mode_info(&mut self) -> Result<()> {
+ Err(Error::Unsupported("inter frames"))
+ }
+}
+
+fn inverse_recenter(r: i32, v: i32) -> i32 {
+ if v > 2 * r {
+ v
+ } else if v & 1 == 1 {
+ r - ((v + 1) >> 1)
+ } else {
+ r + (v >> 1)
+ }
+}
+
+fn default_scan(tx_sz: usize) -> &'static [u16] {
+ match tx_sz {
+ TX_4X4 => &DEFAULT_SCAN_4X4,
+ TX_4X8 => &DEFAULT_SCAN_4X8,
+ TX_8X4 => &DEFAULT_SCAN_8X4,
+ TX_8X8 => &DEFAULT_SCAN_8X8,
+ TX_8X16 => &DEFAULT_SCAN_8X16,
+ TX_16X8 => &DEFAULT_SCAN_16X8,
+ TX_16X16 => &DEFAULT_SCAN_16X16,
+ TX_16X32 => &DEFAULT_SCAN_16X32,
+ TX_32X16 => &DEFAULT_SCAN_32X16,
+ TX_4X16 => &DEFAULT_SCAN_4X16,
+ TX_16X4 => &DEFAULT_SCAN_16X4,
+ TX_8X32 => &DEFAULT_SCAN_8X32,
+ TX_32X8 => &DEFAULT_SCAN_32X8,
+ _ => &DEFAULT_SCAN_32X32,
+ }
+}
+
+fn get_tx_class(t: usize) -> usize {
+ if t == V_DCT || t == V_ADST || t == V_FLIPADST {
+ TX_CLASS_VERT
+ } else if t == H_DCT || t == H_ADST || t == H_FLIPADST {
+ TX_CLASS_HORIZ
+ } else {
+ TX_CLASS_2D
+ }
+}
+
+fn coeff_base_eob_ctx(c: usize, bwl: usize, height: usize) -> usize {
+ if c == 0 {
+ return 0;
+ }
+ if c <= (height << bwl) / 8 {
+ return 1;
+ }
+ if c <= (height << bwl) / 4 {
+ return 2;
+ }
+ 3
+}
+
+pub(crate) fn find_tx_size(w: usize, h: usize) -> usize {
+ (0..TX_SIZES_ALL).find(|&t| TX_WIDTH[t] as usize == w && TX_HEIGHT[t] as usize == h).unwrap_or(TX_4X4)
+}
+
+fn ceil_log2(x: u32) -> u32 {
+ if x < 2 {
+ return 0;
+ }
+ let mut i = 1;
+ let mut p = 2;
+ while p < x {
+ i += 1;
+ p <<= 1;
+ }
+ i
+}
+
+fn neg_deinterleave(diff: i32, r: i32, max: i32) -> i32 {
+ if r == 0 {
+ return diff;
+ }
+ if r >= max - 1 {
+ return max - diff - 1;
+ }
+ if 2 * r < max {
+ if diff <= 2 * r {
+ if diff & 1 == 1 {
+ return r + ((diff + 1) >> 1);
+ } else {
+ return r - (diff >> 1);
+ }
+ }
+ diff
+ } else {
+ if diff <= 2 * (max - r - 1) {
+ if diff & 1 == 1 {
+ return r + ((diff + 1) >> 1);
+ } else {
+ return r - (diff >> 1);
+ }
+ }
+ max - (diff + 1)
+ }
+}
+
+/// get_palette_color_context( ): returns (ColorOrder, ColorContextHash).
+fn palette_color_context(map: &[u8], r: usize, c: usize, n: usize) -> ([u8; 8], usize) {
+ let mut scores = [0i32; PALETTE_COLORS];
+ let mut order = [0u8, 1, 2, 3, 4, 5, 6, 7];
+ if c > 0 {
+ scores[map[r * 64 + c - 1] as usize] += 2;
+ }
+ if r > 0 && c > 0 {
+ scores[map[(r - 1) * 64 + c - 1] as usize] += 1;
+ }
+ if r > 0 {
+ scores[map[(r - 1) * 64 + c] as usize] += 2;
+ }
+ for i in 0..PALETTE_NUM_NEIGHBORS {
+ let mut max_score = scores[i];
+ let mut max_idx = i;
+ for j in i + 1..n {
+ if scores[j] > max_score {
+ max_score = scores[j];
+ max_idx = j;
+ }
+ }
+ if max_idx != i {
+ let max_score = scores[max_idx];
+ let max_order = order[max_idx];
+ for k in (i + 1..=max_idx).rev() {
+ scores[k] = scores[k - 1];
+ order[k] = order[k - 1];
+ }
+ scores[i] = max_score;
+ order[i] = max_order;
+ }
+ }
+ let mut hash = 0usize;
+ for i in 0..PALETTE_NUM_NEIGHBORS {
+ hash += scores[i] as usize * PALETTE_COLOR_HASH_MULTIPLIERS[i] as usize;
+ }
+ (order, hash)
+}
+
+#[allow(dead_code)]
+fn _unused(_: &MiInfo) {}
diff --git a/crates/av1/src/transform.rs b/crates/av1/src/transform.rs
new file mode 100644
index 000000000..f63952025
--- /dev/null
+++ b/crates/av1/src/transform.rs
@@ -0,0 +1,540 @@
+//! Inverse transforms (spec 7.13), implemented step by step as specified.
+
+use crate::spec_tables::*;
+
+#[inline(always)]
+fn round2_64(x: i64, n: u32) -> i32 {
+ if n == 0 { x as i32 } else { ((x + (1i64 << (n - 1))) >> n) as i32 }
+}
+
+#[inline(always)]
+pub(crate) fn round2(x: i32, n: u32) -> i32 {
+ if n == 0 { x } else { (x + (1 << (n - 1))) >> n }
+}
+
+#[inline(always)]
+fn cos128(angle: i32) -> i64 {
+ let a = (angle & 255) as usize;
+ (match a {
+ 0..=64 => COS128_LOOKUP[a] as i32,
+ 65..=128 => -(COS128_LOOKUP[128 - a] as i32),
+ 129..=192 => -(COS128_LOOKUP[a - 128] as i32),
+ _ => COS128_LOOKUP[256 - a] as i32,
+ }) as i64
+}
+
+#[inline(always)]
+fn sin128(angle: i32) -> i64 {
+ cos128(angle - 64)
+}
+
+fn brev(num_bits: u32, x: usize) -> usize {
+ let mut t = 0;
+ for i in 0..num_bits {
+ let bit = (x >> i) & 1;
+ t += bit << (num_bits - 1 - i);
+ }
+ t
+}
+
+/// Butterfly rotation B( a, b, angle, flip ).
+#[inline(always)]
+fn bf(t: &mut [i32], a: usize, b: usize, angle: i32, flip: bool) {
+ let x = t[a] as i64 * cos128(angle) - t[b] as i64 * sin128(angle);
+ let y = t[a] as i64 * sin128(angle) + t[b] as i64 * cos128(angle);
+ t[a] = round2_64(x, 12);
+ t[b] = round2_64(y, 12);
+ if flip {
+ t.swap(a, b);
+ }
+}
+
+/// Hadamard rotation H( a, b, flip, r ).
+#[inline(always)]
+fn hd(t: &mut [i32], a: usize, b: usize, flip: bool, r: u32) {
+ let (a, b) = if flip { (b, a) } else { (a, b) };
+ let x = t[a];
+ let y = t[b];
+ let lo = -(1i32 << (r - 1));
+ let hi = (1i32 << (r - 1)) - 1;
+ t[a] = (x + y).clamp(lo, hi);
+ t[b] = (x - y).clamp(lo, hi);
+}
+
+/// Inverse DCT of length 2^n (7.13.2.3), in place.
+pub(crate) fn inverse_dct(t: &mut [i32], n: u32, r: u32) {
+ // 7.13.2.2 permutation
+ let len = 1usize << n;
+ let mut copy = [0i32; 64];
+ copy[..len].copy_from_slice(&t[..len]);
+ for i in 0..len {
+ t[i] = copy[brev(n, i)];
+ }
+ if n == 6 {
+ for i in 0..16 {
+ bf(t, 32 + i, 63 - i, 63 - 4 * brev(4, i) as i32, false);
+ }
+ }
+ if n >= 5 {
+ for i in 0..8 {
+ bf(t, 16 + i, 31 - i, 6 + ((brev(3, 7 - i) as i32) << 3), false);
+ }
+ }
+ if n == 6 {
+ for i in 0..16 {
+ hd(t, 32 + i * 2, 33 + i * 2, i & 1 == 1, r);
+ }
+ }
+ if n >= 4 {
+ for i in 0..4 {
+ bf(t, 8 + i, 15 - i, 12 + ((brev(2, 3 - i) as i32) << 4), false);
+ }
+ }
+ if n >= 5 {
+ for i in 0..8 {
+ hd(t, 16 + 2 * i, 17 + 2 * i, i & 1 == 1, r);
+ }
+ }
+ if n == 6 {
+ for i in 0..4 {
+ for j in 0..2 {
+ bf(t, 62 - i * 4 - j, 33 + i * 4 + j, 60 - 16 * brev(2, i) as i32 + 64 * j as i32, true);
+ }
+ }
+ }
+ if n >= 3 {
+ for i in 0..2 {
+ bf(t, 4 + i, 7 - i, 56 - 32 * i as i32, false);
+ }
+ }
+ if n >= 4 {
+ for i in 0..4 {
+ hd(t, 8 + 2 * i, 9 + 2 * i, i & 1 == 1, r);
+ }
+ }
+ if n >= 5 {
+ for i in 0..2 {
+ for j in 0..2 {
+ bf(t, 30 - 4 * i - j, 17 + 4 * i + j, 24 + ((j as i32) << 6) + (((1 - i) as i32) << 5), true);
+ }
+ }
+ }
+ if n == 6 {
+ for i in 0..8 {
+ for j in 0..2 {
+ hd(t, 32 + i * 4 + j, 35 + i * 4 - j, i & 1 == 1, r);
+ }
+ }
+ }
+ for i in 0..2 {
+ bf(t, 2 * i, 2 * i + 1, 32 + 16 * i as i32, i == 0);
+ }
+ if n >= 3 {
+ for i in 0..2 {
+ hd(t, 4 + 2 * i, 5 + 2 * i, i == 1, r);
+ }
+ }
+ if n >= 4 {
+ for i in 0..2 {
+ bf(t, 14 - i, 9 + i, 48 + 64 * i as i32, true);
+ }
+ }
+ if n >= 5 {
+ for i in 0..4 {
+ for j in 0..2 {
+ hd(t, 16 + 4 * i + j, 19 + 4 * i - j, i & 1 == 1, r);
+ }
+ }
+ }
+ if n == 6 {
+ for i in 0..2 {
+ for j in 0..4 {
+ bf(t, 61 - i * 8 - j, 34 + i * 8 + j, 56 - i as i32 * 32 + (j as i32 >> 1) * 64, true);
+ }
+ }
+ }
+ for i in 0..2 {
+ hd(t, i, 3 - i, false, r);
+ }
+ if n >= 3 {
+ bf(t, 6, 5, 32, true);
+ }
+ if n >= 4 {
+ for i in 0..2 {
+ for j in 0..2 {
+ hd(t, 8 + 4 * i + j, 11 + 4 * i - j, i == 1, r);
+ }
+ }
+ }
+ if n >= 5 {
+ for i in 0..4 {
+ bf(t, 29 - i, 18 + i, 48 + (i as i32 >> 1) * 64, true);
+ }
+ }
+ if n == 6 {
+ for i in 0..4 {
+ for j in 0..4 {
+ hd(t, 32 + 8 * i + j, 39 + 8 * i - j, i & 1 == 1, r);
+ }
+ }
+ }
+ if n >= 3 {
+ for i in 0..4 {
+ hd(t, i, 7 - i, false, r);
+ }
+ }
+ if n >= 4 {
+ for i in 0..2 {
+ bf(t, 13 - i, 10 + i, 32, true);
+ }
+ }
+ if n >= 5 {
+ for i in 0..2 {
+ for j in 0..4 {
+ hd(t, 16 + i * 8 + j, 23 + i * 8 - j, i == 1, r);
+ }
+ }
+ }
+ if n == 6 {
+ for i in 0..8 {
+ bf(t, 59 - i, 36 + i, if i < 4 { 48 } else { 112 }, true);
+ }
+ }
+ if n >= 4 {
+ for i in 0..8 {
+ hd(t, i, 15 - i, false, r);
+ }
+ }
+ if n >= 5 {
+ for i in 0..4 {
+ bf(t, 27 - i, 20 + i, 32, true);
+ }
+ }
+ if n == 6 {
+ for i in 0..8 {
+ hd(t, 32 + i, 47 - i, false, r);
+ hd(t, 48 + i, 63 - i, true, r);
+ }
+ }
+ if n >= 5 {
+ for i in 0..16 {
+ hd(t, i, 31 - i, false, r);
+ }
+ }
+ if n == 6 {
+ for i in 0..8 {
+ bf(t, 55 - i, 40 + i, 32, true);
+ }
+ }
+ if n == 6 {
+ for i in 0..32 {
+ hd(t, i, 63 - i, false, r);
+ }
+ }
+}
+
+const SINPI_1_9: i64 = 1321;
+const SINPI_2_9: i64 = 2482;
+const SINPI_3_9: i64 = 3344;
+const SINPI_4_9: i64 = 3803;
+
+fn inverse_adst4(t: &mut [i32]) {
+ let mut s = [0i64; 7];
+ let mut x = [0i64; 4];
+ let t0 = t[0] as i64;
+ let t1 = t[1] as i64;
+ let t2 = t[2] as i64;
+ let t3 = t[3] as i64;
+ s[0] = SINPI_1_9 * t0;
+ s[1] = SINPI_2_9 * t0;
+ s[2] = SINPI_3_9 * t1;
+ s[3] = SINPI_4_9 * t2;
+ s[4] = SINPI_1_9 * t2;
+ s[5] = SINPI_2_9 * t3;
+ s[6] = SINPI_4_9 * t3;
+ let a7 = t0 - t2;
+ let b7 = a7 + t3;
+ s[0] += s[3];
+ s[1] -= s[4];
+ s[3] = s[2];
+ s[2] = SINPI_3_9 * b7;
+ s[0] += s[5];
+ s[1] -= s[6];
+ x[0] = s[0] + s[3];
+ x[1] = s[1] + s[3];
+ x[2] = s[2];
+ x[3] = s[0] + s[1];
+ x[3] -= s[3];
+ for i in 0..4 {
+ t[i] = round2_64(x[i], 12);
+ }
+}
+
+fn adst_in_permute(t: &mut [i32], n: u32) {
+ let n0 = 1usize << n;
+ let mut copy = [0i32; 16];
+ copy[..n0].copy_from_slice(&t[..n0]);
+ for i in 0..n0 {
+ let idx = if i & 1 == 1 { i - 1 } else { n0 - i - 1 };
+ t[i] = copy[idx];
+ }
+}
+
+fn adst_out_permute(t: &mut [i32], n: u32) {
+ let n0 = 1usize << n;
+ let mut copy = [0i32; 16];
+ copy[..n0].copy_from_slice(&t[..n0]);
+ for i in 0..n0 {
+ let a = (i >> 3) & 1;
+ let b = ((i >> 2) & 1) ^ ((i >> 3) & 1);
+ let c = ((i >> 1) & 1) ^ ((i >> 2) & 1);
+ let d = (i & 1) ^ ((i >> 1) & 1);
+ let idx = ((d << 3) | (c << 2) | (b << 1) | a) >> (4 - n);
+ t[i] = if i & 1 == 1 { -copy[idx] } else { copy[idx] };
+ }
+}
+
+fn inverse_adst8(t: &mut [i32], r: u32) {
+ adst_in_permute(t, 3);
+ for i in 0..4 {
+ bf(t, 2 * i, 2 * i + 1, 60 - 16 * i as i32, true);
+ }
+ for i in 0..4 {
+ hd(t, i, 4 + i, false, r);
+ }
+ for i in 0..2 {
+ bf(t, 4 + 3 * i, 5 + i, 48 - 32 * i as i32, true);
+ }
+ for i in 0..2 {
+ for j in 0..2 {
+ hd(t, 4 * j + i, 2 + 4 * j + i, false, r);
+ }
+ }
+ for i in 0..2 {
+ bf(t, 2 + 4 * i, 3 + 4 * i, 32, true);
+ }
+ adst_out_permute(t, 3);
+}
+
+fn inverse_adst16(t: &mut [i32], r: u32) {
+ adst_in_permute(t, 4);
+ for i in 0..8 {
+ bf(t, 2 * i, 2 * i + 1, 62 - 8 * i as i32, true);
+ }
+ for i in 0..8 {
+ hd(t, i, 8 + i, false, r);
+ }
+ for i in 0..2 {
+ bf(t, 8 + 2 * i, 9 + 2 * i, 56 - 32 * i as i32, true);
+ bf(t, 13 + 2 * i, 12 + 2 * i, 8 + 32 * i as i32, true);
+ }
+ for i in 0..4 {
+ for j in 0..2 {
+ hd(t, 8 * j + i, 4 + 8 * j + i, false, r);
+ }
+ }
+ for i in 0..2 {
+ for j in 0..2 {
+ bf(t, 4 + 8 * j + 3 * i, 5 + 8 * j + i, 48 - 32 * i as i32, true);
+ }
+ }
+ for i in 0..2 {
+ for j in 0..4 {
+ hd(t, 4 * j + i, 2 + 4 * j + i, false, r);
+ }
+ }
+ for i in 0..4 {
+ bf(t, 2 + 4 * i, 3 + 4 * i, 32, true);
+ }
+ adst_out_permute(t, 4);
+}
+
+fn inverse_adst(t: &mut [i32], n: u32, r: u32) {
+ match n {
+ 2 => inverse_adst4(t),
+ 3 => inverse_adst8(t, r),
+ _ => inverse_adst16(t, r),
+ }
+}
+
+fn inverse_identity(t: &mut [i32], n: u32) {
+ match n {
+ 2 => {
+ for v in t[..4].iter_mut() {
+ *v = round2_64(*v as i64 * 5793, 12);
+ }
+ }
+ 3 => {
+ for v in t[..8].iter_mut() {
+ *v *= 2;
+ }
+ }
+ 4 => {
+ for v in t[..16].iter_mut() {
+ *v = round2_64(*v as i64 * 11586, 12);
+ }
+ }
+ _ => {
+ for v in t[..32].iter_mut() {
+ *v *= 4;
+ }
+ }
+ }
+}
+
+fn inverse_wht(t: &mut [i32], shift: u32) {
+ let mut a = t[0] >> shift;
+ let mut c = t[1] >> shift;
+ let mut d = t[2] >> shift;
+ let mut b = t[3] >> shift;
+ a += c;
+ d -= b;
+ let e = (a - d) >> 1;
+ b = e - b;
+ c = e - c;
+ a -= b;
+ d += c;
+ t[0] = a;
+ t[1] = b;
+ t[2] = c;
+ t[3] = d;
+}
+
+#[derive(Clone, Copy, PartialEq, Eq)]
+enum Kind1d {
+ Dct,
+ Adst,
+ Identity,
+}
+
+fn row_kind(tx_type: usize) -> Kind1d {
+ match tx_type {
+ DCT_DCT | ADST_DCT | FLIPADST_DCT | H_DCT => Kind1d::Dct,
+ DCT_ADST | ADST_ADST | DCT_FLIPADST | FLIPADST_FLIPADST | ADST_FLIPADST | FLIPADST_ADST | H_ADST | H_FLIPADST => Kind1d::Adst,
+ _ => Kind1d::Identity,
+ }
+}
+
+fn col_kind(tx_type: usize) -> Kind1d {
+ match tx_type {
+ DCT_DCT | DCT_ADST | DCT_FLIPADST | V_DCT => Kind1d::Dct,
+ ADST_DCT | ADST_ADST | FLIPADST_DCT | FLIPADST_FLIPADST | ADST_FLIPADST | FLIPADST_ADST | V_ADST | V_FLIPADST => Kind1d::Adst,
+ _ => Kind1d::Identity,
+ }
+}
+
+/// 2D inverse transform (7.13.3). `dequant` is 64x64 (row stride 64, only the top-left 32x32
+/// may be non-zero); the residual is written to `residual` with row stride `w`.
+pub(crate) fn inverse_transform_2d(dequant: &[i32], residual: &mut [i32], tx_sz: usize, tx_type: usize, lossless: bool, bit_depth: u32) {
+ let log2w = TX_WIDTH_LOG2[tx_sz] as u32;
+ let log2h = TX_HEIGHT_LOG2[tx_sz] as u32;
+ let w = 1usize << log2w;
+ let h = 1usize << log2h;
+ let row_shift = if lossless { 0 } else { TRANSFORM_ROW_SHIFT[tx_sz] as u32 };
+ let col_shift = if lossless { 0 } else { 4 };
+ let row_clamp = bit_depth + 8;
+ let col_clamp = (bit_depth + 6).max(16);
+ let rk = row_kind(tx_type);
+ let ck = col_kind(tx_type);
+ let mut t = [0i32; 64];
+ let rect2 = log2w.abs_diff(log2h) == 1;
+ for i in 0..h {
+ if i >= 32 {
+ // rows beyond 32 have no coefficients but still go through the transform
+ t[..w].iter_mut().for_each(|v| *v = 0);
+ } else {
+ for j in 0..w {
+ t[j] = if j < 32 { dequant[i * 64 + j] } else { 0 };
+ }
+ }
+ if rect2 {
+ for v in t[..w].iter_mut() {
+ *v = round2_64(*v as i64 * 2896, 12);
+ }
+ }
+ if lossless {
+ inverse_wht(&mut t, 2);
+ } else {
+ match rk {
+ Kind1d::Dct => inverse_dct(&mut t, log2w, row_clamp),
+ Kind1d::Adst => inverse_adst(&mut t, log2w, row_clamp),
+ Kind1d::Identity => inverse_identity(&mut t, log2w),
+ }
+ }
+ let lo = -(1i32 << (col_clamp - 1));
+ let hi = (1i32 << (col_clamp - 1)) - 1;
+ for j in 0..w {
+ residual[i * w + j] = round2(t[j], row_shift).clamp(lo, hi);
+ }
+ }
+ for j in 0..w {
+ for i in 0..h {
+ t[i] = residual[i * w + j];
+ }
+ if lossless {
+ inverse_wht(&mut t, 0);
+ } else {
+ match ck {
+ Kind1d::Dct => inverse_dct(&mut t, log2h, col_clamp),
+ Kind1d::Adst => inverse_adst(&mut t, log2h, col_clamp),
+ Kind1d::Identity => inverse_identity(&mut t, log2h),
+ }
+ }
+ for i in 0..h {
+ residual[i * w + j] = round2(t[i], col_shift);
+ }
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ /// The DCT step list must implement an orthogonal transform: a DC-only input gives a flat
+ /// output equal to DC * cos(pi/4) (in the 2^12 fixed-point scale).
+ #[test]
+ fn dct_dc_is_flat() {
+ for n in 2..=6 {
+ let len = 1 << n;
+ let mut t = [0i32; 64];
+ t[0] = 4096;
+ inverse_dct(&mut t, n, 24);
+ for v in &t[..len] {
+ assert_eq!(*v, 2896, "n={n}: {:?}", &t[..len]);
+ }
+ }
+ }
+
+ /// Compare each inverse DCT basis vector with the real-valued DCT-III.
+ #[test]
+ fn dct_matches_float() {
+ for n in 2..=6u32 {
+ let len = 1usize << n;
+ for k in 0..len {
+ let mut t = [0i32; 64];
+ t[k] = 1 << 12;
+ inverse_dct(&mut t, n, 24);
+ for x in 0..len {
+ let c = if k == 0 { std::f64::consts::FRAC_1_SQRT_2 } else { 1.0 };
+ let want = 4096.0 * c * ((2 * x + 1) as f64 * k as f64 * std::f64::consts::PI / (2 * len) as f64).cos();
+ assert!((t[x] as f64 - want).abs() < 4.0 + 0.5 * n as f64, "n={n} k={k} x={x}: {} vs {want}", t[x]);
+ }
+ }
+ }
+ }
+
+ #[test]
+ fn adst_is_close_to_sine_transform() {
+ for n in 3..=4u32 {
+ let len = 1usize << n;
+ for k in 0..len {
+ let mut t = [0i32; 64];
+ t[k] = 1 << 12;
+ inverse_adst(&mut t, n, 24);
+ let energy: f64 = t[..len].iter().map(|&v| (v as f64 / 4096.0).powi(2)).sum();
+ // like the DCT, the AV1 ADST is scaled by sqrt(N / 2)
+ assert!((energy - len as f64 / 2.0).abs() < 0.02, "n={n} k={k} energy {energy}");
+ }
+ }
+ }
+}
diff --git a/crates/av1/tests/common/mod.rs b/crates/av1/tests/common/mod.rs
new file mode 100644
index 000000000..7085d308f
--- /dev/null
+++ b/crates/av1/tests/common/mod.rs
@@ -0,0 +1,145 @@
+//! Shared helpers for the AV1 oracle tests. ffmpeg (libsvtav1 to encode fixtures, libdav1d to
+//! decode the reference) is used only as an external process.
+#![allow(dead_code)]
+
+use filmcraft_av1::{Decoder, Picture};
+use std::path::{Path, PathBuf};
+use std::process::Command;
+
+pub fn ffmpeg() -> Option<PathBuf> {
+ filmcraft_testkit::ffmpeg_or_skip("av1 oracle")
+}
+
+pub fn fixture_dir() -> PathBuf {
+ filmcraft_testkit::fixtures_dir("av1")
+}
+
+pub fn run(ff: &Path, args: &[&str]) {
+ let out = Command::new(ff).args(["-hide_banner", "-loglevel", "error", "-y"]).args(args).output().expect("run ffmpeg");
+ assert!(out.status.success(), "ffmpeg {:?} failed: {}", args, String::from_utf8_lossy(&out.stderr));
+}
+
+/// An AV1 fixture: a lavfi source encoded by ffmpeg's libsvtav1 into IVF.
+pub struct Spec {
+ pub name: &'static str,
+ pub lavfi: String,
+ pub frames: u32,
+ pub pix_fmt: &'static str,
+ /// Extra encoder arguments.
+ pub enc: Vec<String>,
+}
+
+impl Spec {
+ pub fn new(name: &'static str, lavfi: impl Into<String>, frames: u32, pix_fmt: &'static str, enc: &[&str]) -> Spec {
+ Spec { name, lavfi: lavfi.into(), frames, pix_fmt, enc: enc.iter().map(|s| s.to_string()).collect() }
+ }
+}
+
+pub fn make(ff: &Path, spec: &Spec) -> PathBuf {
+ let path = fixture_dir().join(format!("{}.ivf", spec.name));
+ if !path.exists() {
+ let tmp = filmcraft_testkit::temp_path(&path);
+ let frames = spec.frames.to_string();
+ let t = tmp.to_str().unwrap().to_string();
+ let mut args: Vec<&str> = vec!["-f", "lavfi", "-i", spec.lavfi.as_str(), "-frames:v", frames.as_str(), "-pix_fmt", spec.pix_fmt, "-c:v", "libsvtav1"];
+ args.extend(spec.enc.iter().map(String::as_str));
+ args.extend(["-f", "ivf", t.as_str()]);
+ run(ff, &args);
+ std::fs::rename(&tmp, &path).unwrap();
+ }
+ path
+}
+
+/// Frames of an IVF file.
+pub fn ivf_frames(path: &Path) -> Vec<Vec<u8>> {
+ let d = std::fs::read(path).unwrap();
+ assert_eq!(&d[0..4], b"DKIF");
+ let hdr = u16::from_le_bytes([d[6], d[7]]) as usize;
+ let mut pos = hdr;
+ let mut out = Vec::new();
+ while pos + 12 <= d.len() {
+ let n = u32::from_le_bytes([d[pos], d[pos + 1], d[pos + 2], d[pos + 3]]) as usize;
+ pos += 12;
+ out.push(d[pos..pos + n].to_vec());
+ pos += n;
+ }
+ out
+}
+
+/// Reference decode with ffmpeg's libdav1d (8-bit formats widened to u16).
+pub fn reference(ff: &Path, path: &Path, pix_fmt: &str) -> Vec<u16> {
+ let out = Command::new(ff)
+ .args(["-hide_banner", "-loglevel", "error", "-c:v", "libdav1d", "-i"])
+ .arg(path)
+ .args(["-f", "rawvideo", "-pix_fmt", pix_fmt, "-"])
+ .output()
+ .expect("run ffmpeg");
+ assert!(out.status.success(), "{}", String::from_utf8_lossy(&out.stderr));
+ if pix_fmt.ends_with("le") {
+ out.stdout.chunks_exact(2).map(|c| u16::from_le_bytes([c[0], c[1]])).collect()
+ } else {
+ out.stdout.iter().map(|&b| b as u16).collect()
+ }
+}
+
+/// Decode every frame of an IVF file with our decoder.
+pub fn decode_all(path: &Path) -> Result<Vec<Picture>, String> {
+ let mut dec = Decoder::new();
+ let mut pics = Vec::new();
+ for (i, f) in ivf_frames(path).iter().enumerate() {
+ let p = dec.decode(f).map_err(|e| format!("frame {i}: {e}"))?;
+ pics.extend(p);
+ }
+ Ok(pics)
+}
+
+pub fn picture_samples(p: &Picture) -> usize {
+ let mut n = (p.width * p.height) as usize;
+ if !p.mono_chrome {
+ n += 2 * (p.plane_width(1) * p.plane_height(1)) as usize;
+ }
+ n
+}
+
+/// Compare a decoded picture with the raw reference; returns the first mismatch as
+/// (plane, x, y, ours, reference) and the mismatch count.
+pub fn compare(p: &Picture, raw: &[u16]) -> (Option<(usize, u32, u32, u16, u16)>, usize) {
+ let mut first = None;
+ let mut count = 0;
+ let mut off = 0;
+ for plane in 0..if p.mono_chrome { 1 } else { 3 } {
+ let w = p.plane_width(plane);
+ let h = p.plane_height(plane);
+ for y in 0..h {
+ for x in 0..w {
+ let a = p.planes[plane][(y * w + x) as usize];
+ let b = raw[off + (y * w + x) as usize];
+ if a != b {
+ count += 1;
+ if first.is_none() {
+ first = Some((plane, x, y, a, b));
+ }
+ }
+ }
+ }
+ off += (w * h) as usize;
+ }
+ (first, count)
+}
+
+/// Decode a fixture and compare every frame with libdav1d; panics with details on mismatch.
+pub fn check_bit_exact(ff: &Path, spec: &Spec) {
+ let path = make(ff, spec);
+ let pics = decode_all(&path).unwrap_or_else(|e| panic!("{}: {e}", spec.name));
+ let raw = reference(ff, &path, spec.pix_fmt);
+ assert!(!pics.is_empty(), "{}: no frames", spec.name);
+ let per = picture_samples(&pics[0]);
+ assert_eq!(raw.len(), per * pics.len(), "{}: frame count/size ({} pictures)", spec.name, pics.len());
+ for (i, p) in pics.iter().enumerate() {
+ let (first, count) = compare(p, &raw[i * per..(i + 1) * per]);
+ if let Some((plane, x, y, a, b)) = first {
+ panic!("{}: frame {i} differs in {count} samples; first at plane {plane} ({x},{y}): ours {a}, reference {b}", spec.name);
+ }
+ }
+ println!("{:<28} {} frames {}x{} bit-exact", spec.name, pics.len(), pics[0].width, pics[0].height);
+}
diff --git a/crates/av1/tests/oracle_intra.rs b/crates/av1/tests/oracle_intra.rs
new file mode 100644
index 000000000..72f0a3b7f
--- /dev/null
+++ b/crates/av1/tests/oracle_intra.rs
@@ -0,0 +1,26 @@
+//! Intra-frame bit-exactness against libdav1d (run as an external ffmpeg process).
+
+mod common;
+use common::*;
+
+const NO_FILTERS: &str = "enable-cdef=0:enable-restoration=0:enable-dlf=0:keyint=1";
+
+fn specs_no_filters() -> Vec<Spec> {
+ let p = |preset: &'static str, crf: &'static str| -> Vec<&'static str> { vec!["-preset", preset, "-crf", crf, "-svtav1-params", NO_FILTERS] };
+ vec![
+ Spec::new("intra_nofilt_testsrc_128", "testsrc2=s=128x128:r=25", 1, "yuv420p", &p("8", "30")),
+ Spec::new("intra_nofilt_mandel_352x288_p4", "mandelbrot=s=352x288:r=25", 2, "yuv420p", &p("4", "20")),
+ Spec::new("intra_nofilt_testsrc_odd_p2", "testsrc2=s=203x117:r=25", 2, "yuv420p", &p("2", "35")),
+ Spec::new("intra_nofilt_noise_p6", "testsrc2=s=320x240:r=25,noise=alls=30:allf=t", 2, "yuv420p", &p("6", "10")),
+ Spec::new("intra_nofilt_10bit_p4", "mandelbrot=s=256x192:r=25", 2, "yuv420p10le", &p("4", "25")),
+ Spec::new("intra_nofilt_720p_p8", "testsrc2=s=1280x720:r=25", 1, "yuv420p", &p("8", "40")),
+ ]
+}
+
+#[test]
+fn intra_no_filters() {
+ let Some(ff) = ffmpeg() else { return };
+ for s in specs_no_filters() {
+ check_bit_exact(&ff, &s);
+ }
+}
diff --git a/crates/av1/tools/extract_tables.py b/crates/av1/tools/extract_tables.py
new file mode 100644
index 000000000..a321d333c
--- /dev/null
+++ b/crates/av1/tools/extract_tables.py
@@ -0,0 +1,197 @@
+#!/usr/bin/env python3
+"""Extract the constants and constant tables of the AV1 Bitstream & Decoding Process
+Specification (v1.0.0 with Errata 1) from its Markdown source.
+
+Usage:
+ curl -L -o av1-spec.zip https://github.com/AOMediaCodec/av1-spec/archive/5e04f3f75e73a5898d7616c47c52f032144b8f80.zip
+ unzip av1-spec.zip
+ python3 extract_tables.py av1-spec-5e04f3f75e73a5898d7616c47c52f032144b8f80 > ../src/spec_tables.rs
+
+Only the specification text is read:
+ * named constants from the symbol table of section 3 and the value/name tables of section 6
+ (e.g. `| 1 | BLOCK_4X8`);
+ * every C table initialiser `Name[ dims ] = { ... }` in any section.
+Each table is emitted as a nested Rust array whose shape is checked against the declared
+dimensions; the element type is the narrowest of u8/i8/u16/i16/i32 that holds every value.
+"""
+import os
+import re
+import sys
+
+root = sys.argv[1]
+files = sorted(f for f in os.listdir(root) if f.endswith(".md"))
+texts = {f: open(os.path.join(root, f), encoding="utf-8").read() for f in files}
+
+consts = {}
+
+
+def ev(expr):
+ e = expr.strip().replace("\\", "")
+ e = re.sub(r"\b([A-Z][A-Z0-9_]*)\b", lambda m: str(consts[m.group(1)]) if m.group(1) in consts else m.group(1), e)
+ e = e.replace("/", "//")
+ return int(eval(e, {"__builtins__": {}}, {}))
+
+
+# --- constants: symbol table (section 3) ---
+pending = []
+for line in texts["03.symbols.md"].split("\n"):
+ m = re.match(r"^\|\s*`([A-Z][A-Z0-9_]*)`\s*\|\s*([^|]+?)\s*\|", line)
+ if m:
+ pending.append((m.group(1), m.group(2)))
+# --- constants: value/name tables (section 6 semantics, section 8/9) ---
+# A row cell holding a NAME takes its value from the integer cell just before it, unless the
+# next cell is another NAME (multi-column mapping tables such as the CFL sign table).
+NAME = re.compile(r"^[A-Z][A-Z0-9_]*[A-Z0-9]$")
+for f in files:
+ for line in texts[f].split("\n"):
+ if not line.startswith("|"):
+ continue
+ cells = [c.strip().rstrip(".") for c in line.strip().strip("|").split("|")]
+ for k in range(1, len(cells)):
+ if NAME.match(cells[k]) and "_" in cells[k] and re.match(r"^-?\d+$", cells[k - 1]):
+ if k + 1 < len(cells) and NAME.match(cells[k + 1]) and "_" in cells[k + 1]:
+ continue
+ pending.append((cells[k], cells[k - 1]))
+ # `| NAME | value` rows
+ if len(cells) >= 2 and NAME.match(cells[0]) and "_" in cells[0] and re.match(r"^-?\d+$", cells[1]):
+ pending.append((cells[0], cells[1]))
+for _ in range(10):
+ rest = []
+ for name, val in pending:
+ try:
+ v = ev(val)
+ except Exception:
+ rest.append((name, val))
+ continue
+ if name in consts and consts[name] != v:
+ # same name, different meaning in two tables: keep the first (reported)
+ sys.stderr.write("constant %s: %d vs %d (kept first)\n" % (name, consts[name], v))
+ continue
+ consts[name] = v
+ pending = rest
+for name, val in pending:
+ sys.stderr.write("unresolved constant %s = %s\n" % (name, val))
+
+
+# --- tables ---
+def cells(text):
+ """Split one initialiser cell. A missing comma between two operands on separate lines
+ (Split_Tx_Size in the spec text: `TX_32X32` / `TX_4X8`) yields two cells."""
+ parts = re.split(r"(?<=[A-Za-z0-9_])\s*\n\s*(?=[A-Za-z0-9_])", text.strip())
+ if len(parts) > 1:
+ sys.stderr.write("note: missing comma in spec table between %s\n" % parts)
+ return parts
+
+
+def parse_braces(s, i):
+ """Parse a brace initialiser starting at s[i] == '{'; returns (nested list, end index)."""
+ assert s[i] == "{"
+ i += 1
+ items = []
+ cur = ""
+ while True:
+ ch = s[i]
+ if ch == "{":
+ sub, i = parse_braces(s, i)
+ items.append(sub)
+ cur = ""
+ continue
+ if ch == "}":
+ if cur.strip():
+ items.extend(cells(cur))
+ return items, i + 1
+ if ch == ",":
+ if cur.strip():
+ items.extend(cells(cur))
+ cur = ""
+ else:
+ cur += ch
+ i += 1
+
+
+def shape(x):
+ if isinstance(x, list):
+ subs = [shape(e) for e in x]
+ if any(s != subs[0] for s in subs):
+ return None
+ return [len(x)] + (subs[0] if subs else [])
+ return []
+
+
+tables = {}
+for f in files:
+ t = texts[f]
+ for block in re.findall(r"~~~~~?\s*c?\n(.*?)~~~~~?", t, re.S):
+ b = re.sub(r"//[^\n]*", "", block)
+ b = re.sub(r"/\*.*?\*/", "", b, flags=re.S)
+ for m in re.finditer(r"(?m)^\s*([A-Z][A-Za-z0-9_]*)\s*((?:\[[^\]=]*\]\s*)+)=\s*", b):
+ name = m.group(1)
+ try:
+ dims = [ev(d) for d in re.findall(r"\[([^\]]*)\]", m.group(2))]
+ except Exception:
+ continue # an assignment in pseudo code, not a table
+ j = b.find("{", m.end())
+ if j < 0 or b[m.end():j].strip():
+ continue
+ val, _ = parse_braces(b, j)
+ sh = shape(val)
+ if sh != dims:
+ sys.stderr.write("table %s: shape %s != declared %s (skipped)\n" % (name, sh, dims))
+ continue
+ flat = []
+
+ def walk(x):
+ if isinstance(x, list):
+ out = []
+ for e in x:
+ out.append(walk(e))
+ return out
+ v = ev(x)
+ flat.append(v)
+ return v
+
+ nested = walk(val)
+ if name in tables and tables[name][1] != nested:
+ sys.stderr.write("table %s defined twice with different values\n" % name)
+ tables[name] = (dims, nested, flat)
+
+
+def rust_type(flat):
+ lo, hi = min(flat), max(flat)
+ for t, a, b in (("u8", 0, 255), ("i8", -128, 127), ("u16", 0, 65535), ("i16", -32768, 32767)):
+ if lo >= a and hi <= b:
+ return t
+ return "i32"
+
+
+def fmt(x, depth):
+ if isinstance(x, list) and x and isinstance(x[0], list):
+ inner = ",\n".join(" " * (depth + 1) + fmt(e, depth + 1) for e in x)
+ return "[\n" + inner + ",\n" + " " * depth + "]"
+ return "[" + ", ".join(str(v) for v in x) + "]"
+
+
+out = [
+ "// Generated by tools/extract_tables.py from the AV1 Bitstream & Decoding Process Specification",
+ "// v1.0.0 with Errata 1 (AOMediaCodec/av1-spec 5e04f3f). Do not edit by hand.",
+ "#![allow(dead_code, clippy::unreadable_literal, clippy::excessive_precision)]",
+ "",
+]
+for name in sorted(consts):
+ v = consts[name]
+ out.append("pub const %s: %s = %d;" % (name, "i32" if v < 0 else "usize", v))
+out.append("")
+for name in sorted(tables):
+ dims, nested, flat = tables[name]
+ # scan tables share one element type so they can be returned as &[u16]
+ t = "u16" if "_Scan_" in name else rust_type(flat)
+ rname = name.upper()
+ if rname in consts:
+ rname += "_TABLE" # e.g. Max_Tx_Depth (table) vs MAX_TX_DEPTH (constant)
+ ty = t
+ for d in reversed(dims):
+ ty = "[%s; %d]" % (ty, d)
+ out.append("pub static %s: %s = %s;" % (rname, ty, fmt(nested, 0)))
+ out.append("")
+print("\n".join(out))
+sys.stderr.write("%d constants, %d tables\n" % (len(consts), len(tables)))
diff --git a/docs/architecture.md b/docs/architecture.md
index 9acfeef7d..9694eb036 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -27,7 +27,7 @@ Design principles:
L2 edit · codecs · interchange · captions
L1 frame · media · project · audio-dsp · text
L0 foundation: time · geom · color · bitstream · testkit (dev-dependency only)
- codecs/containers: isobmff · matroska · h264 · h264enc · hevc · vp9 · prores · dnx · aac · opus
+ codecs/containers: isobmff · matroska · h264 · h264enc · hevc · vp9 · av1 · prores · dnx · aac · opus
```
Crates are named `filmcraft-<dir>` (`crates/time` is `filmcraft-time`). The apps are `filmcraft`
@@ -45,6 +45,7 @@ and `filmcraft-cli`.
| `hevc` | L0 | H.265 Main/Main 10 decoder |
| `prores` | L0 | ProRes decoder and encoder |
| `dnx` | L0 | DNxHD / DNxHR (SMPTE ST 2019-1 VC-3) decoder and DNxHR encoder |
+| `av1` | L0 | AV1 decoder (in progress; see its README for the stage table) |
| `aac` | L0 | AAC-LC decoder and encoder |
| `testkit` | L0 | test-only helpers, used only as a dev-dependency: ffmpeg/ffprobe discovery, fixture dirs, golden images ([testing.md](testing.md)) |
| `frame` | L1 | `VideoFrame` (planar YUV / RGBA8 / linear RGBA f32, colour metadata), `AudioBuffer` |
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 4a9c45133..aad333652 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -31,6 +31,7 @@ const LAYERS: &[(&str, u8)] = &[
("prores", 0),
("mjpeg", 0),
("dnx", 0),
+ ("av1", 0),
("aac", 0),
("opus", 0),
("frame", 1),