c-next 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +18 -2
  2. package/dist/index.js +8897 -6260
  3. package/dist/index.js.map +4 -4
  4. package/grammar/CNext.g4 +12 -0
  5. package/package.json +4 -2
  6. package/src/transpiler/Transpiler.ts +376 -48
  7. package/src/transpiler/__tests__/DualCodePaths.test.ts +1 -1
  8. package/src/transpiler/__tests__/compileCommandsDiscovery.integration.test.ts +94 -0
  9. package/src/transpiler/__tests__/externalSymbolRecovery.integration.test.ts +215 -0
  10. package/src/transpiler/logic/__tests__/detectAssemblySyntax.test.ts +116 -0
  11. package/src/transpiler/logic/analysis/FunctionCallAnalyzer.ts +65 -10
  12. package/src/transpiler/logic/analysis/InitializationAnalyzer.ts +186 -14
  13. package/src/transpiler/logic/analysis/MixedTypeCategoryAnalyzer.ts +408 -0
  14. package/src/transpiler/logic/analysis/PassByValueAnalyzer.ts +16 -97
  15. package/src/transpiler/logic/analysis/ReturnPathAnalyzer.ts +171 -0
  16. package/src/transpiler/logic/analysis/SignedShiftAnalyzer.ts +124 -12
  17. package/src/transpiler/logic/analysis/__tests__/FunctionCallAnalyzer.test.ts +200 -0
  18. package/src/transpiler/logic/analysis/__tests__/InitializationAnalyzer.test.ts +386 -1
  19. package/src/transpiler/logic/analysis/__tests__/MixedTypeCategoryAnalyzer.test.ts +346 -0
  20. package/src/transpiler/logic/analysis/__tests__/ReturnPathAnalyzer.test.ts +232 -0
  21. package/src/transpiler/logic/analysis/__tests__/SignedShiftAnalyzer.test.ts +211 -0
  22. package/src/transpiler/logic/analysis/runAnalyzers.ts +23 -2
  23. package/src/transpiler/logic/analysis/types/IMixedTypeCategoryError.ts +17 -0
  24. package/src/transpiler/logic/analysis/types/IReturnPathError.ts +12 -0
  25. package/src/transpiler/logic/detectAssemblySyntax.ts +80 -0
  26. package/src/transpiler/logic/parser/grammar/CNext.interp +4 -1
  27. package/src/transpiler/logic/parser/grammar/CNext.tokens +169 -167
  28. package/src/transpiler/logic/parser/grammar/CNextLexer.interp +4 -1
  29. package/src/transpiler/logic/parser/grammar/CNextLexer.tokens +169 -167
  30. package/src/transpiler/logic/parser/grammar/CNextLexer.ts +545 -541
  31. package/src/transpiler/logic/parser/grammar/CNextListener.ts +11 -0
  32. package/src/transpiler/logic/parser/grammar/CNextParser.ts +1318 -1178
  33. package/src/transpiler/logic/parser/grammar/CNextVisitor.ts +7 -0
  34. package/src/transpiler/logic/preprocessor/CompileCommandsReader.ts +332 -0
  35. package/src/transpiler/logic/preprocessor/ExternalDeclarationOracle.ts +202 -0
  36. package/src/transpiler/logic/preprocessor/Preprocessor.ts +24 -6
  37. package/src/transpiler/logic/preprocessor/ToolchainDetector.ts +42 -1
  38. package/src/transpiler/logic/preprocessor/__tests__/CompileCommandsReader.test.ts +216 -0
  39. package/src/transpiler/logic/preprocessor/__tests__/ExternalDeclarationOracle.test.ts +153 -0
  40. package/src/transpiler/logic/preprocessor/__tests__/Preprocessor.test.ts +43 -18
  41. package/src/transpiler/logic/preprocessor/__tests__/ToolchainDetector.crossCompiler.test.ts +75 -0
  42. package/src/transpiler/logic/preprocessor/__tests__/fixtures/oracle/dependent.h +7 -0
  43. package/src/transpiler/logic/preprocessor/__tests__/fixtures/oracle/predecessor.h +5 -0
  44. package/src/transpiler/logic/preprocessor/types/ICompileCommandsResult.ts +14 -0
  45. package/src/transpiler/logic/preprocessor/types/IPreprocessOptions.ts +17 -0
  46. package/src/transpiler/logic/symbols/SymbolTable.ts +62 -2
  47. package/src/transpiler/logic/symbols/__tests__/SymbolTable.test.ts +55 -4
  48. package/src/transpiler/logic/symbols/cnext/collectors/VariableCollector.ts +15 -2
  49. package/src/transpiler/logic/symbols/cnext/utils/TypeUtils.ts +64 -50
  50. package/src/transpiler/output/MisraSuppressionUtils.ts +52 -0
  51. package/src/transpiler/output/__tests__/MisraSuppressionUtils.test.ts +67 -0
  52. package/src/transpiler/output/codegen/CodeGenerator.ts +196 -98
  53. package/src/transpiler/output/codegen/TypeResolver.ts +148 -0
  54. package/src/transpiler/output/codegen/TypeValidator.ts +179 -81
  55. package/src/transpiler/output/codegen/__tests__/CodeGenerator.coverage.test.ts +165 -17
  56. package/src/transpiler/output/codegen/__tests__/CodeGenerator.test.ts +163 -35
  57. package/src/transpiler/output/codegen/__tests__/TrackVariableTypeHelpers.test.ts +2 -2
  58. package/src/transpiler/output/codegen/__tests__/TypeResolver.test.ts +93 -0
  59. package/src/transpiler/output/codegen/__tests__/TypeValidator.alwaysTrueLoop.test.ts +91 -0
  60. package/src/transpiler/output/codegen/__tests__/TypeValidator.test.ts +97 -14
  61. package/src/transpiler/output/codegen/assignment/AssignmentClassifier.ts +13 -0
  62. package/src/transpiler/output/codegen/assignment/AssignmentKind.ts +1 -1
  63. package/src/transpiler/output/codegen/assignment/handlers/AccessPatternHandlers.ts +20 -12
  64. package/src/transpiler/output/codegen/assignment/handlers/ArrayHandlers.ts +424 -22
  65. package/src/transpiler/output/codegen/assignment/handlers/BitAccessHandlers.ts +31 -18
  66. package/src/transpiler/output/codegen/assignment/handlers/BitmapHandlers.ts +7 -8
  67. package/src/transpiler/output/codegen/assignment/handlers/RegisterHandlers.ts +6 -8
  68. package/src/transpiler/output/codegen/assignment/handlers/RegisterUtils.ts +12 -10
  69. package/src/transpiler/output/codegen/assignment/handlers/SimpleHandler.ts +3 -7
  70. package/src/transpiler/output/codegen/assignment/handlers/SpecialHandlers.ts +7 -9
  71. package/src/transpiler/output/codegen/assignment/handlers/StringHandlers.ts +12 -10
  72. package/src/transpiler/output/codegen/assignment/handlers/__tests__/ArrayHandlers.test.ts +479 -11
  73. package/src/transpiler/output/codegen/generators/IOrchestrator.ts +3 -0
  74. package/src/transpiler/output/codegen/generators/declarationGenerators/ScopeGenerator.ts +26 -7
  75. package/src/transpiler/output/codegen/generators/declarationGenerators/__tests__/ScopeGenerator.test.ts +86 -0
  76. package/src/transpiler/output/codegen/generators/expressions/BinaryExprGenerator.ts +43 -24
  77. package/src/transpiler/output/codegen/generators/expressions/CallExprGenerator.ts +76 -58
  78. package/src/transpiler/output/codegen/generators/expressions/ExpressionGenerator.ts +9 -2
  79. package/src/transpiler/output/codegen/generators/expressions/PostfixExpressionGenerator.ts +26 -13
  80. package/src/transpiler/output/codegen/generators/expressions/__tests__/CallExprGenerator.test.ts +44 -0
  81. package/src/transpiler/output/codegen/generators/expressions/__tests__/ExpressionGenerator.test.ts +82 -1
  82. package/src/transpiler/output/codegen/generators/expressions/__tests__/PostfixExpressionGenerator.test.ts +129 -1
  83. package/src/transpiler/output/codegen/generators/statements/ControlFlowGenerator.ts +64 -8
  84. package/src/transpiler/output/codegen/generators/statements/__tests__/ControlFlowGenerator.test.ts +8 -5
  85. package/src/transpiler/output/codegen/helpers/AssignmentExpectedTypeResolver.ts +30 -2
  86. package/src/transpiler/output/codegen/helpers/ParameterInputAdapter.ts +17 -3
  87. package/src/transpiler/output/codegen/helpers/ParameterSignatureBuilder.ts +17 -4
  88. package/src/transpiler/output/codegen/helpers/StringDeclHelper.ts +240 -42
  89. package/src/transpiler/output/codegen/helpers/SymbolLookupHelper.ts +0 -21
  90. package/src/transpiler/output/codegen/helpers/TypeGenerationHelper.ts +60 -39
  91. package/src/transpiler/output/codegen/helpers/TypeRegistrationEngine.ts +170 -36
  92. package/src/transpiler/output/codegen/helpers/VariableDeclHelper.ts +37 -39
  93. package/src/transpiler/output/codegen/helpers/__tests__/AssignmentExpectedTypeResolver.test.ts +19 -0
  94. package/src/transpiler/output/codegen/helpers/__tests__/ParameterInputAdapter.test.ts +117 -0
  95. package/src/transpiler/output/codegen/helpers/__tests__/ParameterSignatureBuilder.test.ts +94 -2
  96. package/src/transpiler/output/codegen/helpers/__tests__/StringDeclHelper.test.ts +322 -9
  97. package/src/transpiler/output/codegen/helpers/__tests__/SymbolLookupHelper.test.ts +0 -64
  98. package/src/transpiler/output/codegen/helpers/__tests__/TypeRegistrationEngine.test.ts +101 -0
  99. package/src/transpiler/output/codegen/helpers/__tests__/VariableDeclHelper.test.ts +29 -5
  100. package/src/transpiler/output/codegen/subscript/SubscriptClassifier.ts +30 -11
  101. package/src/transpiler/output/codegen/subscript/TSubscriptKind.ts +1 -1
  102. package/src/transpiler/output/codegen/subscript/__tests__/SubscriptClassifier.test.ts +38 -6
  103. package/src/transpiler/output/codegen/types/ICallbackTypeInfo.ts +2 -1
  104. package/src/transpiler/output/codegen/types/IParameterInput.ts +7 -0
  105. package/src/transpiler/output/headers/BaseHeaderGenerator.ts +8 -0
  106. package/src/transpiler/output/headers/HeaderGeneratorUtils.ts +140 -24
  107. package/src/transpiler/output/headers/__tests__/HeaderGeneratorUtils.test.ts +280 -0
  108. package/src/transpiler/output/headers/generators/IHeaderTypeInput.ts +13 -0
  109. package/src/transpiler/output/headers/generators/generateStructHeader.ts +48 -28
  110. package/src/transpiler/state/CodeGenState.ts +91 -22
  111. package/src/transpiler/state/__tests__/CodeGenState.test.ts +253 -11
  112. package/src/transpiler/types/ICachedFileEntry.ts +7 -0
  113. package/src/utils/LiteralUtils.ts +23 -0
  114. package/src/utils/__tests__/LiteralUtils.test.ts +101 -0
  115. package/src/utils/cache/CacheManager.ts +13 -2
  116. package/src/utils/cache/__tests__/CacheManager.test.ts +18 -1
  117. package/src/utils/constants/TypeConstants.ts +13 -0
  118. package/src/utils/types/IParameterSymbol.ts +1 -0
@@ -411,4 +411,215 @@ describe("SignedShiftAnalyzer", () => {
411
411
  expect(errors).toHaveLength(0);
412
412
  });
413
413
  });
414
+
415
+ // ========================================================================
416
+ // Compound Shift-Assign (Issue #1008)
417
+ // ========================================================================
418
+
419
+ describe("compound shift-assign (issue #1008)", () => {
420
+ it("should detect left shift compound-assign with i8 target", () => {
421
+ const code = `
422
+ void main() {
423
+ i8 x <- 1;
424
+ x <<<- 2;
425
+ }
426
+ `;
427
+ const tree = parse(code);
428
+ const analyzer = new SignedShiftAnalyzer();
429
+ const errors = analyzer.analyze(tree);
430
+
431
+ expect(errors).toHaveLength(1);
432
+ expect(errors[0].code).toBe("E0805");
433
+ expect(errors[0].message).toContain("Shift operator '<<<-'");
434
+ expect(errors[0].message).toContain("signed integer types");
435
+ });
436
+
437
+ it("should detect right shift compound-assign with i8 target", () => {
438
+ const code = `
439
+ void main() {
440
+ i8 x <- 64;
441
+ x >><- 2;
442
+ }
443
+ `;
444
+ const tree = parse(code);
445
+ const analyzer = new SignedShiftAnalyzer();
446
+ const errors = analyzer.analyze(tree);
447
+
448
+ expect(errors).toHaveLength(1);
449
+ expect(errors[0].code).toBe("E0805");
450
+ expect(errors[0].message).toContain("Shift operator '>><-'");
451
+ });
452
+
453
+ it("should detect left shift compound-assign with i16 target", () => {
454
+ const code = `
455
+ void main() {
456
+ i16 x <- 1;
457
+ x <<<- 4;
458
+ }
459
+ `;
460
+ const tree = parse(code);
461
+ const analyzer = new SignedShiftAnalyzer();
462
+ const errors = analyzer.analyze(tree);
463
+
464
+ expect(errors).toHaveLength(1);
465
+ expect(errors[0].code).toBe("E0805");
466
+ });
467
+
468
+ it("should detect left shift compound-assign with i32 target", () => {
469
+ const code = `
470
+ void main() {
471
+ i32 x <- 1;
472
+ x <<<- 8;
473
+ }
474
+ `;
475
+ const tree = parse(code);
476
+ const analyzer = new SignedShiftAnalyzer();
477
+ const errors = analyzer.analyze(tree);
478
+
479
+ expect(errors).toHaveLength(1);
480
+ expect(errors[0].code).toBe("E0805");
481
+ });
482
+
483
+ it("should detect left shift compound-assign with i64 target", () => {
484
+ const code = `
485
+ void main() {
486
+ i64 x <- 1;
487
+ x <<<- 16;
488
+ }
489
+ `;
490
+ const tree = parse(code);
491
+ const analyzer = new SignedShiftAnalyzer();
492
+ const errors = analyzer.analyze(tree);
493
+
494
+ expect(errors).toHaveLength(1);
495
+ expect(errors[0].code).toBe("E0805");
496
+ });
497
+
498
+ it("should not flag left shift compound-assign with u8 target", () => {
499
+ const code = `
500
+ void main() {
501
+ u8 x <- 1;
502
+ x <<<- 2;
503
+ }
504
+ `;
505
+ const tree = parse(code);
506
+ const analyzer = new SignedShiftAnalyzer();
507
+ const errors = analyzer.analyze(tree);
508
+
509
+ expect(errors).toHaveLength(0);
510
+ });
511
+
512
+ it("should not flag right shift compound-assign with u32 target", () => {
513
+ const code = `
514
+ void main() {
515
+ u32 x <- 256;
516
+ x >><- 4;
517
+ }
518
+ `;
519
+ const tree = parse(code);
520
+ const analyzer = new SignedShiftAnalyzer();
521
+ const errors = analyzer.analyze(tree);
522
+
523
+ expect(errors).toHaveLength(0);
524
+ });
525
+
526
+ it("should detect multiple compound shift-assign violations", () => {
527
+ const code = `
528
+ void main() {
529
+ i8 a <- 1;
530
+ a <<<- 2;
531
+ i16 b <- 64;
532
+ b >><- 3;
533
+ }
534
+ `;
535
+ const tree = parse(code);
536
+ const analyzer = new SignedShiftAnalyzer();
537
+ const errors = analyzer.analyze(tree);
538
+
539
+ expect(errors).toHaveLength(2);
540
+ expect(errors[0].message).toContain("<<<-");
541
+ expect(errors[1].message).toContain(">><-");
542
+ });
543
+
544
+ it("should not flag other compound-assign operators on signed types", () => {
545
+ const code = `
546
+ void main() {
547
+ i32 x <- 10;
548
+ x +<- 5;
549
+ x -<- 2;
550
+ x *<- 3;
551
+ x /<- 2;
552
+ x %<- 3;
553
+ x &<- 0xFF;
554
+ x |<- 0x0F;
555
+ x ^<- 0xAA;
556
+ }
557
+ `;
558
+ const tree = parse(code);
559
+ const analyzer = new SignedShiftAnalyzer();
560
+ const errors = analyzer.analyze(tree);
561
+
562
+ expect(errors).toHaveLength(0);
563
+ });
564
+ });
565
+
566
+ // ========================================================================
567
+ // Struct Member Compound Shift-Assign (PR #1013 review feedback)
568
+ // ========================================================================
569
+
570
+ describe("struct member compound shift-assign", () => {
571
+ it("should detect left shift compound-assign on signed struct field", () => {
572
+ // Note: This requires CodeGenState.symbols to have struct field info
573
+ // In real usage, symbols are populated during transpilation
574
+ // For unit tests without symbols, we rely on the integration tests
575
+ const code = `
576
+ struct Data { i8 val; }
577
+ void main() {
578
+ Data d <- {val: 1};
579
+ d.val <<<- 2;
580
+ }
581
+ `;
582
+ const tree = parse(code);
583
+ const analyzer = new SignedShiftAnalyzer();
584
+ // Without CodeGenState.symbols populated, this won't detect the issue
585
+ // The integration test covers this case
586
+ const errors = analyzer.analyze(tree);
587
+ // This returns 0 because CodeGenState.getStructFieldType returns undefined
588
+ // without populated symbols. The integration test verifies the full path.
589
+ expect(errors).toHaveLength(0);
590
+ });
591
+
592
+ it("should not flag unsigned struct field shift", () => {
593
+ const code = `
594
+ struct Data { u8 val; }
595
+ void main() {
596
+ Data d <- {val: 1};
597
+ d.val <<<- 2;
598
+ }
599
+ `;
600
+ const tree = parse(code);
601
+ const analyzer = new SignedShiftAnalyzer();
602
+ const errors = analyzer.analyze(tree);
603
+
604
+ expect(errors).toHaveLength(0);
605
+ });
606
+
607
+ it("should still detect simple signed variable shift alongside struct access", () => {
608
+ const code = `
609
+ struct Data { u8 val; }
610
+ void main() {
611
+ Data d <- {val: 1};
612
+ i8 x <- 1;
613
+ x <<<- 2;
614
+ }
615
+ `;
616
+ const tree = parse(code);
617
+ const analyzer = new SignedShiftAnalyzer();
618
+ const errors = analyzer.analyze(tree);
619
+
620
+ expect(errors).toHaveLength(1);
621
+ expect(errors[0].code).toBe("E0805");
622
+ expect(errors[0].message).toContain("<<<-");
623
+ });
624
+ });
414
625
  });
@@ -2,7 +2,8 @@
2
2
  * Run all semantic analyzers on a parsed C-Next program
3
3
  *
4
4
  * Extracted from transpiler.ts for reuse in the unified pipeline.
5
- * All 10 analyzers run in sequence, each returning errors that block compilation.
5
+ * All 11 analyzers (plus comment validation) run in sequence, each returning
6
+ * errors that block compilation.
6
7
  */
7
8
 
8
9
  import { CommonTokenStream } from "antlr4ng";
@@ -16,6 +17,8 @@ import DivisionByZeroAnalyzer from "./DivisionByZeroAnalyzer";
16
17
  import FloatModuloAnalyzer from "./FloatModuloAnalyzer";
17
18
  import ArrayIndexTypeAnalyzer from "./ArrayIndexTypeAnalyzer";
18
19
  import SignedShiftAnalyzer from "./SignedShiftAnalyzer";
20
+ import MixedTypeCategoryAnalyzer from "./MixedTypeCategoryAnalyzer";
21
+ import ReturnPathAnalyzer from "./ReturnPathAnalyzer";
19
22
  import CommentExtractor from "./CommentExtractor";
20
23
  import ITranspileError from "../../../lib/types/ITranspileError";
21
24
  import SymbolTable from "../symbols/SymbolTable";
@@ -154,7 +157,25 @@ function runAnalyzers(
154
157
  return errors;
155
158
  }
156
159
 
157
- // 10. Comment validation (MISRA C:2012 Rules 3.1, 3.2) - ADR-043
160
+ // 10. Mixed essential type category (MISRA C:2012 Rule 10.4, ADR-024 / Issue #1091)
161
+ const mixedTypeCategoryAnalyzer = new MixedTypeCategoryAnalyzer();
162
+ if (
163
+ collectErrors(
164
+ mixedTypeCategoryAnalyzer.analyze(tree),
165
+ errors,
166
+ formatWithCode,
167
+ )
168
+ ) {
169
+ return errors;
170
+ }
171
+
172
+ // 11. Return-path analysis (ADR-112: non-void functions must return on all paths)
173
+ const returnPathAnalyzer = new ReturnPathAnalyzer();
174
+ if (collectErrors(returnPathAnalyzer.analyze(tree), errors, formatWithCode)) {
175
+ return errors;
176
+ }
177
+
178
+ // 12. Comment validation (MISRA C:2012 Rules 3.1, 3.2) - ADR-043
158
179
  const commentExtractor = new CommentExtractor(tokenStream);
159
180
  collectErrors(
160
181
  commentExtractor.validate(),
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Error reported when a binary operator combines operands of different
3
+ * essential type categories (signed vs unsigned).
4
+ *
5
+ * Error codes:
6
+ * - E0810: Mixed essential type category in a binary operation
7
+ *
8
+ * MISRA C:2012 Rule 10.4: "Both operands of an operator in which the usual
9
+ * arithmetic conversions are performed shall have the same essential type
10
+ * category." Combining a signed and an unsigned value implicitly relies on the
11
+ * usual arithmetic conversions, whose result can be surprising (ADR-024).
12
+ */
13
+ import IBaseAnalysisError from "./IBaseAnalysisError";
14
+
15
+ interface IMixedTypeCategoryError extends IBaseAnalysisError {}
16
+
17
+ export default IMixedTypeCategoryError;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Error reported when a non-void function can reach the end of its body
3
+ * without returning a value (ADR-112, Issue #1040).
4
+ */
5
+ import IBaseAnalysisError from "./IBaseAnalysisError";
6
+
7
+ interface IReturnPathError extends IBaseAnalysisError {
8
+ /** Name of the offending function */
9
+ functionName: string;
10
+ }
11
+
12
+ export default IReturnPathError;
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Detect whether header content is GNU-assembler source rather than C.
3
+ *
4
+ * Some framework headers are pure assembler despite the `.h` extension — e.g.
5
+ * xtensa `coreasm.h`, pulled in transitively by FreeRTOS port headers. They
6
+ * `#define _ASMLANGUAGE` and contain `.macro` definitions whose bodies use
7
+ * assembler instruction mnemonics such as `loop`. None of this is valid C, so
8
+ * when the C parser error-recovers over it those mnemonics get mis-collected as
9
+ * C symbols and then false-conflict with C-Next symbols of the same name (e.g.
10
+ * Arduino `loop()`) — reported as "defined in multiple languages".
11
+ *
12
+ * Headers that merely GUARD assembler with `#ifdef __ASSEMBLER__` are unaffected:
13
+ * preprocessing as C strips those blocks, so no assembler reaches this check.
14
+ * Crucially, the guard token (`#ifndef _ASMLANGUAGE`, `#ifndef __ASSEMBLY__`, …)
15
+ * survives on the raw-fallback path (preprocessing failed), so only the
16
+ * `#define <marker>` form is matched — a header that fences its C prototypes
17
+ * behind such a guard is a normal C header, not assembler.
18
+ *
19
+ * This is a heuristic, not a general assembler classifier. The directive check
20
+ * is robust (a line whose first token is a GAS directive is never valid C at
21
+ * file scope); the marker check recognizes the common whole-file "this unit is
22
+ * assembly" self-declarations across toolchains. It is applied line-by-line
23
+ * rather than with a single multi-quantifier regex to keep matching linear.
24
+ *
25
+ * @param content Header content (preprocessed, or raw on a preprocess fallback)
26
+ * @returns true if the content is assembler and must be skipped for C symbol collection
27
+ */
28
+
29
+ // GNU-assembler directives that are never valid C at file scope. A line whose
30
+ // first token is one of these marks assembler; a `.macro` body in particular
31
+ // holds instruction mnemonics like `loop` the C parser would mis-collect.
32
+ const ASSEMBLER_DIRECTIVES = new Set([
33
+ ".macro",
34
+ ".endm",
35
+ ".section",
36
+ ".global",
37
+ ".globl",
38
+ ".rept",
39
+ ".endr",
40
+ ".p2align",
41
+ ]);
42
+
43
+ // Whole-file "this translation unit is assembly" self-declaration macros,
44
+ // matched ONLY in their `#define` form (never the `#ifndef`/`#ifdef` guard form,
45
+ // which fences C prototypes in real C headers — see file docstring). A C header
46
+ // never defines these, since doing so would disable its own C content.
47
+ const ASSEMBLY_MARKER_MACROS = new Set([
48
+ "_ASMLANGUAGE", // xtensa (e.g. coreasm.h)
49
+ "__ASSEMBLY__", // Linux kernel, U-Boot, many RTOS ports
50
+ "__ASSEMBLER__", // GCC/Clang assembling convention
51
+ ]);
52
+
53
+ /** The run of non-whitespace at the start of an already-trimmed line. */
54
+ function firstToken(trimmedLine: string): string {
55
+ const end = trimmedLine.search(/\s/);
56
+ return end === -1 ? trimmedLine : trimmedLine.slice(0, end);
57
+ }
58
+
59
+ /**
60
+ * True when the line is `#define <marker>` for a known assembly self-declaration
61
+ * macro (optionally `# define`, optionally with a value). A guard such as
62
+ * `#ifndef __ASSEMBLY__` is deliberately NOT matched — see file docstring.
63
+ */
64
+ function isAssemblyMarkerDefine(trimmedLine: string): boolean {
65
+ if (!trimmedLine.startsWith("#")) return false;
66
+ const tokens = trimmedLine.slice(1).trim().split(/\s+/);
67
+ return tokens[0] === "define" && ASSEMBLY_MARKER_MACROS.has(tokens[1]);
68
+ }
69
+
70
+ function detectAssemblySyntax(content: string): boolean {
71
+ for (const rawLine of content.split("\n")) {
72
+ const line = rawLine.trim();
73
+ if (line === "") continue;
74
+ if (isAssemblyMarkerDefine(line)) return true;
75
+ if (ASSEMBLER_DIRECTIVES.has(firstToken(line))) return true;
76
+ }
77
+ return false;
78
+ }
79
+
80
+ export default detectAssemblySyntax;
@@ -26,6 +26,7 @@ null
26
26
  'while'
27
27
  'do'
28
28
  'for'
29
+ 'forever'
29
30
  'switch'
30
31
  'case'
31
32
  'default'
@@ -146,6 +147,7 @@ ELSE
146
147
  WHILE
147
148
  DO
148
149
  FOR
150
+ FOREVER
149
151
  SWITCH
150
152
  CASE
151
153
  DEFAULT
@@ -281,6 +283,7 @@ ifStatement
281
283
  whileStatement
282
284
  doWhileStatement
283
285
  forStatement
286
+ foreverStatement
284
287
  forInit
285
288
  forVarDecl
286
289
  forAssignment
@@ -330,4 +333,4 @@ literal
330
333
 
331
334
 
332
335
  atn:
333
- [4, 1, 117, 932, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 1, 0, 1, 0, 5, 0, 179, 8, 0, 10, 0, 12, 0, 182, 9, 0, 1, 0, 5, 0, 185, 8, 0, 10, 0, 12, 0, 188, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 197, 8, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 212, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 5, 7, 218, 8, 7, 10, 7, 12, 7, 221, 9, 7, 1, 7, 1, 7, 1, 8, 3, 8, 226, 8, 8, 1, 8, 1, 8, 3, 8, 230, 8, 8, 1, 8, 1, 8, 3, 8, 234, 8, 8, 1, 8, 1, 8, 3, 8, 238, 8, 8, 1, 8, 1, 8, 3, 8, 242, 8, 8, 1, 8, 1, 8, 3, 8, 246, 8, 8, 1, 8, 3, 8, 249, 8, 8, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 5, 10, 259, 8, 10, 10, 10, 12, 10, 262, 9, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 273, 8, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 5, 13, 281, 8, 13, 10, 13, 12, 13, 284, 9, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 5, 14, 291, 8, 14, 10, 14, 12, 14, 294, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 304, 8, 15, 10, 15, 12, 15, 307, 9, 15, 1, 15, 3, 15, 310, 8, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 3, 16, 317, 8, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 325, 8, 17, 10, 17, 12, 17, 328, 9, 17, 1, 17, 3, 17, 331, 8, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 341, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 347, 8, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 5, 21, 355, 8, 21, 10, 21, 12, 21, 358, 9, 21, 1, 22, 3, 22, 361, 8, 22, 1, 22, 1, 22, 1, 22, 5, 22, 366, 8, 22, 10, 22, 12, 22, 369, 9, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 3, 27, 381, 8, 27, 1, 27, 1, 27, 1, 28, 3, 28, 386, 8, 28, 1, 28, 3, 28, 389, 8, 28, 1, 28, 3, 28, 392, 8, 28, 1, 28, 3, 28, 395, 8, 28, 1, 28, 1, 28, 1, 28, 5, 28, 400, 8, 28, 10, 28, 12, 28, 403, 9, 28, 1, 28, 1, 28, 3, 28, 407, 8, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 418, 8, 28, 1, 29, 1, 29, 1, 29, 5, 29, 423, 8, 29, 10, 29, 12, 29, 426, 9, 29, 1, 30, 1, 30, 5, 30, 430, 8, 30, 10, 30, 12, 30, 433, 9, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 448, 8, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 464, 8, 35, 10, 35, 12, 35, 467, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 473, 8, 35, 10, 35, 12, 35, 476, 9, 35, 1, 35, 1, 35, 5, 35, 480, 8, 35, 10, 35, 12, 35, 483, 9, 35, 3, 35, 485, 8, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 499, 8, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 511, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 3, 41, 530, 8, 41, 1, 41, 1, 41, 3, 41, 534, 8, 41, 1, 41, 1, 41, 3, 41, 538, 8, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 3, 42, 545, 8, 42, 1, 43, 3, 43, 548, 8, 43, 1, 43, 3, 43, 551, 8, 43, 1, 43, 3, 43, 554, 8, 43, 1, 43, 1, 43, 1, 43, 5, 43, 559, 8, 43, 10, 43, 12, 43, 562, 9, 43, 1, 43, 1, 43, 3, 43, 566, 8, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 3, 46, 578, 8, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 4, 47, 588, 8, 47, 11, 47, 12, 47, 589, 1, 47, 3, 47, 593, 8, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 601, 8, 48, 10, 48, 12, 48, 604, 9, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 3, 49, 611, 8, 49, 1, 49, 1, 49, 3, 49, 615, 8, 49, 1, 49, 1, 49, 1, 49, 3, 49, 620, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 626, 8, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 641, 8, 52, 1, 53, 1, 53, 1, 53, 5, 53, 646, 8, 53, 10, 53, 12, 53, 649, 9, 53, 1, 54, 1, 54, 1, 54, 5, 54, 654, 8, 54, 10, 54, 12, 54, 657, 9, 54, 1, 55, 1, 55, 1, 55, 5, 55, 662, 8, 55, 10, 55, 12, 55, 665, 9, 55, 1, 56, 1, 56, 1, 56, 5, 56, 670, 8, 56, 10, 56, 12, 56, 673, 9, 56, 1, 57, 1, 57, 1, 57, 5, 57, 678, 8, 57, 10, 57, 12, 57, 681, 9, 57, 1, 58, 1, 58, 1, 58, 5, 58, 686, 8, 58, 10, 58, 12, 58, 689, 9, 58, 1, 59, 1, 59, 1, 59, 5, 59, 694, 8, 59, 10, 59, 12, 59, 697, 9, 59, 1, 60, 1, 60, 1, 60, 5, 60, 702, 8, 60, 10, 60, 12, 60, 705, 9, 60, 1, 61, 1, 61, 1, 61, 5, 61, 710, 8, 61, 10, 61, 12, 61, 713, 9, 61, 1, 62, 1, 62, 1, 62, 5, 62, 718, 8, 62, 10, 62, 12, 62, 721, 9, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 3, 63, 732, 8, 63, 1, 64, 1, 64, 5, 64, 736, 8, 64, 10, 64, 12, 64, 739, 9, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 3, 65, 755, 8, 65, 1, 65, 3, 65, 758, 8, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 3, 66, 772, 8, 66, 1, 67, 1, 67, 1, 67, 1, 67, 3, 67, 778, 8, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 3, 69, 790, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 3, 69, 797, 8, 69, 1, 70, 1, 70, 1, 70, 5, 70, 802, 8, 70, 10, 70, 12, 70, 805, 9, 70, 1, 70, 3, 70, 808, 8, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 5, 72, 818, 8, 72, 10, 72, 12, 72, 821, 9, 72, 1, 72, 3, 72, 824, 8, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 3, 72, 833, 8, 72, 1, 73, 1, 73, 1, 73, 3, 73, 838, 8, 73, 1, 74, 1, 74, 1, 74, 5, 74, 843, 8, 74, 10, 74, 12, 74, 846, 9, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 3, 75, 857, 8, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 4, 78, 870, 8, 78, 11, 78, 12, 78, 871, 1, 79, 1, 79, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 5, 82, 886, 8, 82, 10, 82, 12, 82, 889, 9, 82, 1, 83, 1, 83, 1, 83, 1, 83, 3, 83, 895, 8, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 3, 84, 902, 8, 84, 1, 85, 1, 85, 4, 85, 906, 8, 85, 11, 85, 12, 85, 907, 1, 85, 1, 85, 4, 85, 912, 8, 85, 11, 85, 12, 85, 913, 1, 85, 1, 85, 4, 85, 918, 8, 85, 11, 85, 12, 85, 919, 3, 85, 922, 8, 85, 1, 86, 1, 86, 3, 86, 926, 8, 86, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 0, 0, 88, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 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, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 0, 14, 1, 0, 3, 5, 1, 0, 6, 9, 1, 0, 17, 18, 1, 0, 40, 44, 1, 0, 36, 39, 1, 0, 45, 46, 1, 0, 65, 75, 1, 0, 76, 77, 1, 0, 78, 81, 1, 0, 94, 95, 1, 0, 82, 83, 1, 0, 84, 86, 1, 0, 53, 64, 3, 0, 31, 33, 49, 52, 107, 112, 988, 0, 180, 1, 0, 0, 0, 2, 191, 1, 0, 0, 0, 4, 196, 1, 0, 0, 0, 6, 198, 1, 0, 0, 0, 8, 200, 1, 0, 0, 0, 10, 202, 1, 0, 0, 0, 12, 211, 1, 0, 0, 0, 14, 213, 1, 0, 0, 0, 16, 248, 1, 0, 0, 0, 18, 250, 1, 0, 0, 0, 20, 252, 1, 0, 0, 0, 22, 265, 1, 0, 0, 0, 24, 274, 1, 0, 0, 0, 26, 276, 1, 0, 0, 0, 28, 287, 1, 0, 0, 0, 30, 297, 1, 0, 0, 0, 32, 313, 1, 0, 0, 0, 34, 318, 1, 0, 0, 0, 36, 334, 1, 0, 0, 0, 38, 336, 1, 0, 0, 0, 40, 342, 1, 0, 0, 0, 42, 351, 1, 0, 0, 0, 44, 360, 1, 0, 0, 0, 46, 370, 1, 0, 0, 0, 48, 372, 1, 0, 0, 0, 50, 374, 1, 0, 0, 0, 52, 376, 1, 0, 0, 0, 54, 378, 1, 0, 0, 0, 56, 417, 1, 0, 0, 0, 58, 419, 1, 0, 0, 0, 60, 427, 1, 0, 0, 0, 62, 447, 1, 0, 0, 0, 64, 449, 1, 0, 0, 0, 66, 452, 1, 0, 0, 0, 68, 457, 1, 0, 0, 0, 70, 484, 1, 0, 0, 0, 72, 498, 1, 0, 0, 0, 74, 500, 1, 0, 0, 0, 76, 503, 1, 0, 0, 0, 78, 512, 1, 0, 0, 0, 80, 518, 1, 0, 0, 0, 82, 526, 1, 0, 0, 0, 84, 544, 1, 0, 0, 0, 86, 547, 1, 0, 0, 0, 88, 567, 1, 0, 0, 0, 90, 571, 1, 0, 0, 0, 92, 575, 1, 0, 0, 0, 94, 581, 1, 0, 0, 0, 96, 596, 1, 0, 0, 0, 98, 619, 1, 0, 0, 0, 100, 621, 1, 0, 0, 0, 102, 629, 1, 0, 0, 0, 104, 640, 1, 0, 0, 0, 106, 642, 1, 0, 0, 0, 108, 650, 1, 0, 0, 0, 110, 658, 1, 0, 0, 0, 112, 666, 1, 0, 0, 0, 114, 674, 1, 0, 0, 0, 116, 682, 1, 0, 0, 0, 118, 690, 1, 0, 0, 0, 120, 698, 1, 0, 0, 0, 122, 706, 1, 0, 0, 0, 124, 714, 1, 0, 0, 0, 126, 731, 1, 0, 0, 0, 128, 733, 1, 0, 0, 0, 130, 757, 1, 0, 0, 0, 132, 771, 1, 0, 0, 0, 134, 773, 1, 0, 0, 0, 136, 781, 1, 0, 0, 0, 138, 796, 1, 0, 0, 0, 140, 798, 1, 0, 0, 0, 142, 809, 1, 0, 0, 0, 144, 832, 1, 0, 0, 0, 146, 837, 1, 0, 0, 0, 148, 839, 1, 0, 0, 0, 150, 856, 1, 0, 0, 0, 152, 858, 1, 0, 0, 0, 154, 862, 1, 0, 0, 0, 156, 866, 1, 0, 0, 0, 158, 873, 1, 0, 0, 0, 160, 875, 1, 0, 0, 0, 162, 877, 1, 0, 0, 0, 164, 882, 1, 0, 0, 0, 166, 894, 1, 0, 0, 0, 168, 901, 1, 0, 0, 0, 170, 921, 1, 0, 0, 0, 172, 923, 1, 0, 0, 0, 174, 929, 1, 0, 0, 0, 176, 179, 3, 2, 1, 0, 177, 179, 3, 4, 2, 0, 178, 176, 1, 0, 0, 0, 178, 177, 1, 0, 0, 0, 179, 182, 1, 0, 0, 0, 180, 178, 1, 0, 0, 0, 180, 181, 1, 0, 0, 0, 181, 186, 1, 0, 0, 0, 182, 180, 1, 0, 0, 0, 183, 185, 3, 12, 6, 0, 184, 183, 1, 0, 0, 0, 185, 188, 1, 0, 0, 0, 186, 184, 1, 0, 0, 0, 186, 187, 1, 0, 0, 0, 187, 189, 1, 0, 0, 0, 188, 186, 1, 0, 0, 0, 189, 190, 5, 0, 0, 1, 190, 1, 1, 0, 0, 0, 191, 192, 5, 2, 0, 0, 192, 3, 1, 0, 0, 0, 193, 197, 3, 6, 3, 0, 194, 197, 3, 8, 4, 0, 195, 197, 3, 10, 5, 0, 196, 193, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 196, 195, 1, 0, 0, 0, 197, 5, 1, 0, 0, 0, 198, 199, 7, 0, 0, 0, 199, 7, 1, 0, 0, 0, 200, 201, 7, 1, 0, 0, 201, 9, 1, 0, 0, 0, 202, 203, 5, 10, 0, 0, 203, 11, 1, 0, 0, 0, 204, 212, 3, 14, 7, 0, 205, 212, 3, 20, 10, 0, 206, 212, 3, 26, 13, 0, 207, 212, 3, 30, 15, 0, 208, 212, 3, 34, 17, 0, 209, 212, 3, 40, 20, 0, 210, 212, 3, 56, 28, 0, 211, 204, 1, 0, 0, 0, 211, 205, 1, 0, 0, 0, 211, 206, 1, 0, 0, 0, 211, 207, 1, 0, 0, 0, 211, 208, 1, 0, 0, 0, 211, 209, 1, 0, 0, 0, 211, 210, 1, 0, 0, 0, 212, 13, 1, 0, 0, 0, 213, 214, 5, 11, 0, 0, 214, 215, 5, 113, 0, 0, 215, 219, 5, 98, 0, 0, 216, 218, 3, 16, 8, 0, 217, 216, 1, 0, 0, 0, 218, 221, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 219, 220, 1, 0, 0, 0, 220, 222, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 222, 223, 5, 99, 0, 0, 223, 15, 1, 0, 0, 0, 224, 226, 3, 18, 9, 0, 225, 224, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 227, 1, 0, 0, 0, 227, 249, 3, 56, 28, 0, 228, 230, 3, 18, 9, 0, 229, 228, 1, 0, 0, 0, 229, 230, 1, 0, 0, 0, 230, 231, 1, 0, 0, 0, 231, 249, 3, 40, 20, 0, 232, 234, 3, 18, 9, 0, 233, 232, 1, 0, 0, 0, 233, 234, 1, 0, 0, 0, 234, 235, 1, 0, 0, 0, 235, 249, 3, 30, 15, 0, 236, 238, 3, 18, 9, 0, 237, 236, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 239, 1, 0, 0, 0, 239, 249, 3, 34, 17, 0, 240, 242, 3, 18, 9, 0, 241, 240, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 243, 1, 0, 0, 0, 243, 249, 3, 20, 10, 0, 244, 246, 3, 18, 9, 0, 245, 244, 1, 0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 247, 1, 0, 0, 0, 247, 249, 3, 26, 13, 0, 248, 225, 1, 0, 0, 0, 248, 229, 1, 0, 0, 0, 248, 233, 1, 0, 0, 0, 248, 237, 1, 0, 0, 0, 248, 241, 1, 0, 0, 0, 248, 245, 1, 0, 0, 0, 249, 17, 1, 0, 0, 0, 250, 251, 7, 2, 0, 0, 251, 19, 1, 0, 0, 0, 252, 253, 5, 16, 0, 0, 253, 254, 5, 113, 0, 0, 254, 255, 5, 105, 0, 0, 255, 256, 3, 102, 51, 0, 256, 260, 5, 98, 0, 0, 257, 259, 3, 22, 11, 0, 258, 257, 1, 0, 0, 0, 259, 262, 1, 0, 0, 0, 260, 258, 1, 0, 0, 0, 260, 261, 1, 0, 0, 0, 261, 263, 1, 0, 0, 0, 262, 260, 1, 0, 0, 0, 263, 264, 5, 99, 0, 0, 264, 21, 1, 0, 0, 0, 265, 266, 5, 113, 0, 0, 266, 267, 5, 106, 0, 0, 267, 268, 3, 150, 75, 0, 268, 269, 3, 24, 12, 0, 269, 270, 5, 105, 0, 0, 270, 272, 3, 102, 51, 0, 271, 273, 5, 103, 0, 0, 272, 271, 1, 0, 0, 0, 272, 273, 1, 0, 0, 0, 273, 23, 1, 0, 0, 0, 274, 275, 7, 3, 0, 0, 275, 25, 1, 0, 0, 0, 276, 277, 5, 12, 0, 0, 277, 278, 5, 113, 0, 0, 278, 282, 5, 98, 0, 0, 279, 281, 3, 28, 14, 0, 280, 279, 1, 0, 0, 0, 281, 284, 1, 0, 0, 0, 282, 280, 1, 0, 0, 0, 282, 283, 1, 0, 0, 0, 283, 285, 1, 0, 0, 0, 284, 282, 1, 0, 0, 0, 285, 286, 5, 99, 0, 0, 286, 27, 1, 0, 0, 0, 287, 288, 3, 150, 75, 0, 288, 292, 5, 113, 0, 0, 289, 291, 3, 54, 27, 0, 290, 289, 1, 0, 0, 0, 291, 294, 1, 0, 0, 0, 292, 290, 1, 0, 0, 0, 292, 293, 1, 0, 0, 0, 293, 295, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 295, 296, 5, 102, 0, 0, 296, 29, 1, 0, 0, 0, 297, 298, 5, 13, 0, 0, 298, 299, 5, 113, 0, 0, 299, 300, 5, 98, 0, 0, 300, 305, 3, 32, 16, 0, 301, 302, 5, 103, 0, 0, 302, 304, 3, 32, 16, 0, 303, 301, 1, 0, 0, 0, 304, 307, 1, 0, 0, 0, 305, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 309, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 308, 310, 5, 103, 0, 0, 309, 308, 1, 0, 0, 0, 309, 310, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 312, 5, 99, 0, 0, 312, 31, 1, 0, 0, 0, 313, 316, 5, 113, 0, 0, 314, 315, 5, 75, 0, 0, 315, 317, 3, 102, 51, 0, 316, 314, 1, 0, 0, 0, 316, 317, 1, 0, 0, 0, 317, 33, 1, 0, 0, 0, 318, 319, 3, 36, 18, 0, 319, 320, 5, 113, 0, 0, 320, 321, 5, 98, 0, 0, 321, 326, 3, 38, 19, 0, 322, 323, 5, 103, 0, 0, 323, 325, 3, 38, 19, 0, 324, 322, 1, 0, 0, 0, 325, 328, 1, 0, 0, 0, 326, 324, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 330, 1, 0, 0, 0, 328, 326, 1, 0, 0, 0, 329, 331, 5, 103, 0, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 332, 1, 0, 0, 0, 332, 333, 5, 99, 0, 0, 333, 35, 1, 0, 0, 0, 334, 335, 7, 4, 0, 0, 335, 37, 1, 0, 0, 0, 336, 340, 5, 113, 0, 0, 337, 338, 5, 100, 0, 0, 338, 339, 5, 110, 0, 0, 339, 341, 5, 101, 0, 0, 340, 337, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 39, 1, 0, 0, 0, 342, 343, 3, 150, 75, 0, 343, 344, 5, 113, 0, 0, 344, 346, 5, 96, 0, 0, 345, 347, 3, 42, 21, 0, 346, 345, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 348, 1, 0, 0, 0, 348, 349, 5, 97, 0, 0, 349, 350, 3, 60, 30, 0, 350, 41, 1, 0, 0, 0, 351, 356, 3, 44, 22, 0, 352, 353, 5, 103, 0, 0, 353, 355, 3, 44, 22, 0, 354, 352, 1, 0, 0, 0, 355, 358, 1, 0, 0, 0, 356, 354, 1, 0, 0, 0, 356, 357, 1, 0, 0, 0, 357, 43, 1, 0, 0, 0, 358, 356, 1, 0, 0, 0, 359, 361, 3, 46, 23, 0, 360, 359, 1, 0, 0, 0, 360, 361, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 363, 3, 150, 75, 0, 363, 367, 5, 113, 0, 0, 364, 366, 3, 54, 27, 0, 365, 364, 1, 0, 0, 0, 366, 369, 1, 0, 0, 0, 367, 365, 1, 0, 0, 0, 367, 368, 1, 0, 0, 0, 368, 45, 1, 0, 0, 0, 369, 367, 1, 0, 0, 0, 370, 371, 5, 19, 0, 0, 371, 47, 1, 0, 0, 0, 372, 373, 5, 20, 0, 0, 373, 49, 1, 0, 0, 0, 374, 375, 7, 5, 0, 0, 375, 51, 1, 0, 0, 0, 376, 377, 5, 47, 0, 0, 377, 53, 1, 0, 0, 0, 378, 380, 5, 100, 0, 0, 379, 381, 3, 102, 51, 0, 380, 379, 1, 0, 0, 0, 380, 381, 1, 0, 0, 0, 381, 382, 1, 0, 0, 0, 382, 383, 5, 101, 0, 0, 383, 55, 1, 0, 0, 0, 384, 386, 3, 52, 26, 0, 385, 384, 1, 0, 0, 0, 385, 386, 1, 0, 0, 0, 386, 388, 1, 0, 0, 0, 387, 389, 3, 48, 24, 0, 388, 387, 1, 0, 0, 0, 388, 389, 1, 0, 0, 0, 389, 391, 1, 0, 0, 0, 390, 392, 3, 46, 23, 0, 391, 390, 1, 0, 0, 0, 391, 392, 1, 0, 0, 0, 392, 394, 1, 0, 0, 0, 393, 395, 3, 50, 25, 0, 394, 393, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396, 397, 3, 150, 75, 0, 397, 401, 5, 113, 0, 0, 398, 400, 3, 54, 27, 0, 399, 398, 1, 0, 0, 0, 400, 403, 1, 0, 0, 0, 401, 399, 1, 0, 0, 0, 401, 402, 1, 0, 0, 0, 402, 406, 1, 0, 0, 0, 403, 401, 1, 0, 0, 0, 404, 405, 5, 75, 0, 0, 405, 407, 3, 102, 51, 0, 406, 404, 1, 0, 0, 0, 406, 407, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 409, 5, 102, 0, 0, 409, 418, 1, 0, 0, 0, 410, 411, 3, 150, 75, 0, 411, 412, 5, 113, 0, 0, 412, 413, 5, 96, 0, 0, 413, 414, 3, 58, 29, 0, 414, 415, 5, 97, 0, 0, 415, 416, 5, 102, 0, 0, 416, 418, 1, 0, 0, 0, 417, 385, 1, 0, 0, 0, 417, 410, 1, 0, 0, 0, 418, 57, 1, 0, 0, 0, 419, 424, 5, 113, 0, 0, 420, 421, 5, 103, 0, 0, 421, 423, 5, 113, 0, 0, 422, 420, 1, 0, 0, 0, 423, 426, 1, 0, 0, 0, 424, 422, 1, 0, 0, 0, 424, 425, 1, 0, 0, 0, 425, 59, 1, 0, 0, 0, 426, 424, 1, 0, 0, 0, 427, 431, 5, 98, 0, 0, 428, 430, 3, 62, 31, 0, 429, 428, 1, 0, 0, 0, 430, 433, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 431, 432, 1, 0, 0, 0, 432, 434, 1, 0, 0, 0, 433, 431, 1, 0, 0, 0, 434, 435, 5, 99, 0, 0, 435, 61, 1, 0, 0, 0, 436, 448, 3, 56, 28, 0, 437, 448, 3, 66, 33, 0, 438, 448, 3, 74, 37, 0, 439, 448, 3, 76, 38, 0, 440, 448, 3, 78, 39, 0, 441, 448, 3, 80, 40, 0, 442, 448, 3, 82, 41, 0, 443, 448, 3, 94, 47, 0, 444, 448, 3, 92, 46, 0, 445, 448, 3, 64, 32, 0, 446, 448, 3, 60, 30, 0, 447, 436, 1, 0, 0, 0, 447, 437, 1, 0, 0, 0, 447, 438, 1, 0, 0, 0, 447, 439, 1, 0, 0, 0, 447, 440, 1, 0, 0, 0, 447, 441, 1, 0, 0, 0, 447, 442, 1, 0, 0, 0, 447, 443, 1, 0, 0, 0, 447, 444, 1, 0, 0, 0, 447, 445, 1, 0, 0, 0, 447, 446, 1, 0, 0, 0, 448, 63, 1, 0, 0, 0, 449, 450, 5, 48, 0, 0, 450, 451, 3, 60, 30, 0, 451, 65, 1, 0, 0, 0, 452, 453, 3, 70, 35, 0, 453, 454, 3, 68, 34, 0, 454, 455, 3, 102, 51, 0, 455, 456, 5, 102, 0, 0, 456, 67, 1, 0, 0, 0, 457, 458, 7, 6, 0, 0, 458, 69, 1, 0, 0, 0, 459, 460, 5, 15, 0, 0, 460, 461, 5, 104, 0, 0, 461, 465, 5, 113, 0, 0, 462, 464, 3, 72, 36, 0, 463, 462, 1, 0, 0, 0, 464, 467, 1, 0, 0, 0, 465, 463, 1, 0, 0, 0, 465, 466, 1, 0, 0, 0, 466, 485, 1, 0, 0, 0, 467, 465, 1, 0, 0, 0, 468, 469, 5, 14, 0, 0, 469, 470, 5, 104, 0, 0, 470, 474, 5, 113, 0, 0, 471, 473, 3, 72, 36, 0, 472, 471, 1, 0, 0, 0, 473, 476, 1, 0, 0, 0, 474, 472, 1, 0, 0, 0, 474, 475, 1, 0, 0, 0, 475, 485, 1, 0, 0, 0, 476, 474, 1, 0, 0, 0, 477, 481, 5, 113, 0, 0, 478, 480, 3, 72, 36, 0, 479, 478, 1, 0, 0, 0, 480, 483, 1, 0, 0, 0, 481, 479, 1, 0, 0, 0, 481, 482, 1, 0, 0, 0, 482, 485, 1, 0, 0, 0, 483, 481, 1, 0, 0, 0, 484, 459, 1, 0, 0, 0, 484, 468, 1, 0, 0, 0, 484, 477, 1, 0, 0, 0, 485, 71, 1, 0, 0, 0, 486, 487, 5, 104, 0, 0, 487, 499, 5, 113, 0, 0, 488, 489, 5, 100, 0, 0, 489, 490, 3, 102, 51, 0, 490, 491, 5, 101, 0, 0, 491, 499, 1, 0, 0, 0, 492, 493, 5, 100, 0, 0, 493, 494, 3, 102, 51, 0, 494, 495, 5, 103, 0, 0, 495, 496, 3, 102, 51, 0, 496, 497, 5, 101, 0, 0, 497, 499, 1, 0, 0, 0, 498, 486, 1, 0, 0, 0, 498, 488, 1, 0, 0, 0, 498, 492, 1, 0, 0, 0, 499, 73, 1, 0, 0, 0, 500, 501, 3, 102, 51, 0, 501, 502, 5, 102, 0, 0, 502, 75, 1, 0, 0, 0, 503, 504, 5, 22, 0, 0, 504, 505, 5, 96, 0, 0, 505, 506, 3, 102, 51, 0, 506, 507, 5, 97, 0, 0, 507, 510, 3, 62, 31, 0, 508, 509, 5, 23, 0, 0, 509, 511, 3, 62, 31, 0, 510, 508, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 77, 1, 0, 0, 0, 512, 513, 5, 24, 0, 0, 513, 514, 5, 96, 0, 0, 514, 515, 3, 102, 51, 0, 515, 516, 5, 97, 0, 0, 516, 517, 3, 62, 31, 0, 517, 79, 1, 0, 0, 0, 518, 519, 5, 25, 0, 0, 519, 520, 3, 60, 30, 0, 520, 521, 5, 24, 0, 0, 521, 522, 5, 96, 0, 0, 522, 523, 3, 102, 51, 0, 523, 524, 5, 97, 0, 0, 524, 525, 5, 102, 0, 0, 525, 81, 1, 0, 0, 0, 526, 527, 5, 26, 0, 0, 527, 529, 5, 96, 0, 0, 528, 530, 3, 84, 42, 0, 529, 528, 1, 0, 0, 0, 529, 530, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 533, 5, 102, 0, 0, 532, 534, 3, 102, 51, 0, 533, 532, 1, 0, 0, 0, 533, 534, 1, 0, 0, 0, 534, 535, 1, 0, 0, 0, 535, 537, 5, 102, 0, 0, 536, 538, 3, 90, 45, 0, 537, 536, 1, 0, 0, 0, 537, 538, 1, 0, 0, 0, 538, 539, 1, 0, 0, 0, 539, 540, 5, 97, 0, 0, 540, 541, 3, 62, 31, 0, 541, 83, 1, 0, 0, 0, 542, 545, 3, 86, 43, 0, 543, 545, 3, 88, 44, 0, 544, 542, 1, 0, 0, 0, 544, 543, 1, 0, 0, 0, 545, 85, 1, 0, 0, 0, 546, 548, 3, 52, 26, 0, 547, 546, 1, 0, 0, 0, 547, 548, 1, 0, 0, 0, 548, 550, 1, 0, 0, 0, 549, 551, 3, 48, 24, 0, 550, 549, 1, 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 553, 1, 0, 0, 0, 552, 554, 3, 50, 25, 0, 553, 552, 1, 0, 0, 0, 553, 554, 1, 0, 0, 0, 554, 555, 1, 0, 0, 0, 555, 556, 3, 150, 75, 0, 556, 560, 5, 113, 0, 0, 557, 559, 3, 54, 27, 0, 558, 557, 1, 0, 0, 0, 559, 562, 1, 0, 0, 0, 560, 558, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 565, 1, 0, 0, 0, 562, 560, 1, 0, 0, 0, 563, 564, 5, 75, 0, 0, 564, 566, 3, 102, 51, 0, 565, 563, 1, 0, 0, 0, 565, 566, 1, 0, 0, 0, 566, 87, 1, 0, 0, 0, 567, 568, 3, 70, 35, 0, 568, 569, 3, 68, 34, 0, 569, 570, 3, 102, 51, 0, 570, 89, 1, 0, 0, 0, 571, 572, 3, 70, 35, 0, 572, 573, 3, 68, 34, 0, 573, 574, 3, 102, 51, 0, 574, 91, 1, 0, 0, 0, 575, 577, 5, 30, 0, 0, 576, 578, 3, 102, 51, 0, 577, 576, 1, 0, 0, 0, 577, 578, 1, 0, 0, 0, 578, 579, 1, 0, 0, 0, 579, 580, 5, 102, 0, 0, 580, 93, 1, 0, 0, 0, 581, 582, 5, 27, 0, 0, 582, 583, 5, 96, 0, 0, 583, 584, 3, 102, 51, 0, 584, 585, 5, 97, 0, 0, 585, 587, 5, 98, 0, 0, 586, 588, 3, 96, 48, 0, 587, 586, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 587, 1, 0, 0, 0, 589, 590, 1, 0, 0, 0, 590, 592, 1, 0, 0, 0, 591, 593, 3, 100, 50, 0, 592, 591, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 594, 1, 0, 0, 0, 594, 595, 5, 99, 0, 0, 595, 95, 1, 0, 0, 0, 596, 597, 5, 28, 0, 0, 597, 602, 3, 98, 49, 0, 598, 599, 5, 88, 0, 0, 599, 601, 3, 98, 49, 0, 600, 598, 1, 0, 0, 0, 601, 604, 1, 0, 0, 0, 602, 600, 1, 0, 0, 0, 602, 603, 1, 0, 0, 0, 603, 605, 1, 0, 0, 0, 604, 602, 1, 0, 0, 0, 605, 606, 3, 60, 30, 0, 606, 97, 1, 0, 0, 0, 607, 620, 3, 156, 78, 0, 608, 620, 5, 113, 0, 0, 609, 611, 5, 83, 0, 0, 610, 609, 1, 0, 0, 0, 610, 611, 1, 0, 0, 0, 611, 612, 1, 0, 0, 0, 612, 620, 5, 110, 0, 0, 613, 615, 5, 83, 0, 0, 614, 613, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 620, 5, 107, 0, 0, 617, 620, 5, 108, 0, 0, 618, 620, 5, 112, 0, 0, 619, 607, 1, 0, 0, 0, 619, 608, 1, 0, 0, 0, 619, 610, 1, 0, 0, 0, 619, 614, 1, 0, 0, 0, 619, 617, 1, 0, 0, 0, 619, 618, 1, 0, 0, 0, 620, 99, 1, 0, 0, 0, 621, 625, 5, 29, 0, 0, 622, 623, 5, 96, 0, 0, 623, 624, 5, 110, 0, 0, 624, 626, 5, 97, 0, 0, 625, 622, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 627, 1, 0, 0, 0, 627, 628, 3, 60, 30, 0, 628, 101, 1, 0, 0, 0, 629, 630, 3, 104, 52, 0, 630, 103, 1, 0, 0, 0, 631, 632, 5, 96, 0, 0, 632, 633, 3, 106, 53, 0, 633, 634, 5, 97, 0, 0, 634, 635, 5, 1, 0, 0, 635, 636, 3, 106, 53, 0, 636, 637, 5, 106, 0, 0, 637, 638, 3, 106, 53, 0, 638, 641, 1, 0, 0, 0, 639, 641, 3, 106, 53, 0, 640, 631, 1, 0, 0, 0, 640, 639, 1, 0, 0, 0, 641, 105, 1, 0, 0, 0, 642, 647, 3, 108, 54, 0, 643, 644, 5, 88, 0, 0, 644, 646, 3, 108, 54, 0, 645, 643, 1, 0, 0, 0, 646, 649, 1, 0, 0, 0, 647, 645, 1, 0, 0, 0, 647, 648, 1, 0, 0, 0, 648, 107, 1, 0, 0, 0, 649, 647, 1, 0, 0, 0, 650, 655, 3, 110, 55, 0, 651, 652, 5, 87, 0, 0, 652, 654, 3, 110, 55, 0, 653, 651, 1, 0, 0, 0, 654, 657, 1, 0, 0, 0, 655, 653, 1, 0, 0, 0, 655, 656, 1, 0, 0, 0, 656, 109, 1, 0, 0, 0, 657, 655, 1, 0, 0, 0, 658, 663, 3, 112, 56, 0, 659, 660, 7, 7, 0, 0, 660, 662, 3, 112, 56, 0, 661, 659, 1, 0, 0, 0, 662, 665, 1, 0, 0, 0, 663, 661, 1, 0, 0, 0, 663, 664, 1, 0, 0, 0, 664, 111, 1, 0, 0, 0, 665, 663, 1, 0, 0, 0, 666, 671, 3, 114, 57, 0, 667, 668, 7, 8, 0, 0, 668, 670, 3, 114, 57, 0, 669, 667, 1, 0, 0, 0, 670, 673, 1, 0, 0, 0, 671, 669, 1, 0, 0, 0, 671, 672, 1, 0, 0, 0, 672, 113, 1, 0, 0, 0, 673, 671, 1, 0, 0, 0, 674, 679, 3, 116, 58, 0, 675, 676, 5, 91, 0, 0, 676, 678, 3, 116, 58, 0, 677, 675, 1, 0, 0, 0, 678, 681, 1, 0, 0, 0, 679, 677, 1, 0, 0, 0, 679, 680, 1, 0, 0, 0, 680, 115, 1, 0, 0, 0, 681, 679, 1, 0, 0, 0, 682, 687, 3, 118, 59, 0, 683, 684, 5, 92, 0, 0, 684, 686, 3, 118, 59, 0, 685, 683, 1, 0, 0, 0, 686, 689, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 687, 688, 1, 0, 0, 0, 688, 117, 1, 0, 0, 0, 689, 687, 1, 0, 0, 0, 690, 695, 3, 120, 60, 0, 691, 692, 5, 90, 0, 0, 692, 694, 3, 120, 60, 0, 693, 691, 1, 0, 0, 0, 694, 697, 1, 0, 0, 0, 695, 693, 1, 0, 0, 0, 695, 696, 1, 0, 0, 0, 696, 119, 1, 0, 0, 0, 697, 695, 1, 0, 0, 0, 698, 703, 3, 122, 61, 0, 699, 700, 7, 9, 0, 0, 700, 702, 3, 122, 61, 0, 701, 699, 1, 0, 0, 0, 702, 705, 1, 0, 0, 0, 703, 701, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 121, 1, 0, 0, 0, 705, 703, 1, 0, 0, 0, 706, 711, 3, 124, 62, 0, 707, 708, 7, 10, 0, 0, 708, 710, 3, 124, 62, 0, 709, 707, 1, 0, 0, 0, 710, 713, 1, 0, 0, 0, 711, 709, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 123, 1, 0, 0, 0, 713, 711, 1, 0, 0, 0, 714, 719, 3, 126, 63, 0, 715, 716, 7, 11, 0, 0, 716, 718, 3, 126, 63, 0, 717, 715, 1, 0, 0, 0, 718, 721, 1, 0, 0, 0, 719, 717, 1, 0, 0, 0, 719, 720, 1, 0, 0, 0, 720, 125, 1, 0, 0, 0, 721, 719, 1, 0, 0, 0, 722, 723, 5, 89, 0, 0, 723, 732, 3, 126, 63, 0, 724, 725, 5, 83, 0, 0, 725, 732, 3, 126, 63, 0, 726, 727, 5, 93, 0, 0, 727, 732, 3, 126, 63, 0, 728, 729, 5, 90, 0, 0, 729, 732, 3, 126, 63, 0, 730, 732, 3, 128, 64, 0, 731, 722, 1, 0, 0, 0, 731, 724, 1, 0, 0, 0, 731, 726, 1, 0, 0, 0, 731, 728, 1, 0, 0, 0, 731, 730, 1, 0, 0, 0, 732, 127, 1, 0, 0, 0, 733, 737, 3, 132, 66, 0, 734, 736, 3, 130, 65, 0, 735, 734, 1, 0, 0, 0, 736, 739, 1, 0, 0, 0, 737, 735, 1, 0, 0, 0, 737, 738, 1, 0, 0, 0, 738, 129, 1, 0, 0, 0, 739, 737, 1, 0, 0, 0, 740, 741, 5, 104, 0, 0, 741, 758, 5, 113, 0, 0, 742, 743, 5, 100, 0, 0, 743, 744, 3, 102, 51, 0, 744, 745, 5, 101, 0, 0, 745, 758, 1, 0, 0, 0, 746, 747, 5, 100, 0, 0, 747, 748, 3, 102, 51, 0, 748, 749, 5, 103, 0, 0, 749, 750, 3, 102, 51, 0, 750, 751, 5, 101, 0, 0, 751, 758, 1, 0, 0, 0, 752, 754, 5, 96, 0, 0, 753, 755, 3, 148, 74, 0, 754, 753, 1, 0, 0, 0, 754, 755, 1, 0, 0, 0, 755, 756, 1, 0, 0, 0, 756, 758, 5, 97, 0, 0, 757, 740, 1, 0, 0, 0, 757, 742, 1, 0, 0, 0, 757, 746, 1, 0, 0, 0, 757, 752, 1, 0, 0, 0, 758, 131, 1, 0, 0, 0, 759, 772, 3, 134, 67, 0, 760, 772, 3, 136, 68, 0, 761, 772, 3, 138, 69, 0, 762, 772, 3, 144, 72, 0, 763, 772, 5, 14, 0, 0, 764, 772, 5, 15, 0, 0, 765, 772, 5, 113, 0, 0, 766, 772, 3, 174, 87, 0, 767, 768, 5, 96, 0, 0, 768, 769, 3, 102, 51, 0, 769, 770, 5, 97, 0, 0, 770, 772, 1, 0, 0, 0, 771, 759, 1, 0, 0, 0, 771, 760, 1, 0, 0, 0, 771, 761, 1, 0, 0, 0, 771, 762, 1, 0, 0, 0, 771, 763, 1, 0, 0, 0, 771, 764, 1, 0, 0, 0, 771, 765, 1, 0, 0, 0, 771, 766, 1, 0, 0, 0, 771, 767, 1, 0, 0, 0, 772, 133, 1, 0, 0, 0, 773, 774, 5, 35, 0, 0, 774, 777, 5, 96, 0, 0, 775, 778, 3, 150, 75, 0, 776, 778, 3, 102, 51, 0, 777, 775, 1, 0, 0, 0, 777, 776, 1, 0, 0, 0, 778, 779, 1, 0, 0, 0, 779, 780, 5, 97, 0, 0, 780, 135, 1, 0, 0, 0, 781, 782, 5, 96, 0, 0, 782, 783, 3, 150, 75, 0, 783, 784, 5, 97, 0, 0, 784, 785, 3, 126, 63, 0, 785, 137, 1, 0, 0, 0, 786, 787, 5, 113, 0, 0, 787, 789, 5, 98, 0, 0, 788, 790, 3, 140, 70, 0, 789, 788, 1, 0, 0, 0, 789, 790, 1, 0, 0, 0, 790, 791, 1, 0, 0, 0, 791, 797, 5, 99, 0, 0, 792, 793, 5, 98, 0, 0, 793, 794, 3, 140, 70, 0, 794, 795, 5, 99, 0, 0, 795, 797, 1, 0, 0, 0, 796, 786, 1, 0, 0, 0, 796, 792, 1, 0, 0, 0, 797, 139, 1, 0, 0, 0, 798, 803, 3, 142, 71, 0, 799, 800, 5, 103, 0, 0, 800, 802, 3, 142, 71, 0, 801, 799, 1, 0, 0, 0, 802, 805, 1, 0, 0, 0, 803, 801, 1, 0, 0, 0, 803, 804, 1, 0, 0, 0, 804, 807, 1, 0, 0, 0, 805, 803, 1, 0, 0, 0, 806, 808, 5, 103, 0, 0, 807, 806, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 141, 1, 0, 0, 0, 809, 810, 5, 113, 0, 0, 810, 811, 5, 106, 0, 0, 811, 812, 3, 102, 51, 0, 812, 143, 1, 0, 0, 0, 813, 814, 5, 100, 0, 0, 814, 819, 3, 146, 73, 0, 815, 816, 5, 103, 0, 0, 816, 818, 3, 146, 73, 0, 817, 815, 1, 0, 0, 0, 818, 821, 1, 0, 0, 0, 819, 817, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 823, 1, 0, 0, 0, 821, 819, 1, 0, 0, 0, 822, 824, 5, 103, 0, 0, 823, 822, 1, 0, 0, 0, 823, 824, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 826, 5, 101, 0, 0, 826, 833, 1, 0, 0, 0, 827, 828, 5, 100, 0, 0, 828, 829, 3, 102, 51, 0, 829, 830, 5, 84, 0, 0, 830, 831, 5, 101, 0, 0, 831, 833, 1, 0, 0, 0, 832, 813, 1, 0, 0, 0, 832, 827, 1, 0, 0, 0, 833, 145, 1, 0, 0, 0, 834, 838, 3, 102, 51, 0, 835, 838, 3, 138, 69, 0, 836, 838, 3, 144, 72, 0, 837, 834, 1, 0, 0, 0, 837, 835, 1, 0, 0, 0, 837, 836, 1, 0, 0, 0, 838, 147, 1, 0, 0, 0, 839, 844, 3, 102, 51, 0, 840, 841, 5, 103, 0, 0, 841, 843, 3, 102, 51, 0, 842, 840, 1, 0, 0, 0, 843, 846, 1, 0, 0, 0, 844, 842, 1, 0, 0, 0, 844, 845, 1, 0, 0, 0, 845, 149, 1, 0, 0, 0, 846, 844, 1, 0, 0, 0, 847, 857, 3, 158, 79, 0, 848, 857, 3, 168, 84, 0, 849, 857, 3, 152, 76, 0, 850, 857, 3, 154, 77, 0, 851, 857, 3, 156, 78, 0, 852, 857, 3, 162, 81, 0, 853, 857, 3, 160, 80, 0, 854, 857, 3, 170, 85, 0, 855, 857, 5, 21, 0, 0, 856, 847, 1, 0, 0, 0, 856, 848, 1, 0, 0, 0, 856, 849, 1, 0, 0, 0, 856, 850, 1, 0, 0, 0, 856, 851, 1, 0, 0, 0, 856, 852, 1, 0, 0, 0, 856, 853, 1, 0, 0, 0, 856, 854, 1, 0, 0, 0, 856, 855, 1, 0, 0, 0, 857, 151, 1, 0, 0, 0, 858, 859, 5, 14, 0, 0, 859, 860, 5, 104, 0, 0, 860, 861, 5, 113, 0, 0, 861, 153, 1, 0, 0, 0, 862, 863, 5, 15, 0, 0, 863, 864, 5, 104, 0, 0, 864, 865, 5, 113, 0, 0, 865, 155, 1, 0, 0, 0, 866, 869, 5, 113, 0, 0, 867, 868, 5, 104, 0, 0, 868, 870, 5, 113, 0, 0, 869, 867, 1, 0, 0, 0, 870, 871, 1, 0, 0, 0, 871, 869, 1, 0, 0, 0, 871, 872, 1, 0, 0, 0, 872, 157, 1, 0, 0, 0, 873, 874, 7, 12, 0, 0, 874, 159, 1, 0, 0, 0, 875, 876, 5, 113, 0, 0, 876, 161, 1, 0, 0, 0, 877, 878, 5, 113, 0, 0, 878, 879, 5, 78, 0, 0, 879, 880, 3, 164, 82, 0, 880, 881, 5, 79, 0, 0, 881, 163, 1, 0, 0, 0, 882, 887, 3, 166, 83, 0, 883, 884, 5, 103, 0, 0, 884, 886, 3, 166, 83, 0, 885, 883, 1, 0, 0, 0, 886, 889, 1, 0, 0, 0, 887, 885, 1, 0, 0, 0, 887, 888, 1, 0, 0, 0, 888, 165, 1, 0, 0, 0, 889, 887, 1, 0, 0, 0, 890, 895, 3, 162, 81, 0, 891, 895, 3, 158, 79, 0, 892, 895, 5, 113, 0, 0, 893, 895, 5, 110, 0, 0, 894, 890, 1, 0, 0, 0, 894, 891, 1, 0, 0, 0, 894, 892, 1, 0, 0, 0, 894, 893, 1, 0, 0, 0, 895, 167, 1, 0, 0, 0, 896, 897, 5, 34, 0, 0, 897, 898, 5, 78, 0, 0, 898, 899, 5, 110, 0, 0, 899, 902, 5, 79, 0, 0, 900, 902, 5, 34, 0, 0, 901, 896, 1, 0, 0, 0, 901, 900, 1, 0, 0, 0, 902, 169, 1, 0, 0, 0, 903, 905, 3, 158, 79, 0, 904, 906, 3, 172, 86, 0, 905, 904, 1, 0, 0, 0, 906, 907, 1, 0, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 922, 1, 0, 0, 0, 909, 911, 3, 160, 80, 0, 910, 912, 3, 172, 86, 0, 911, 910, 1, 0, 0, 0, 912, 913, 1, 0, 0, 0, 913, 911, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 922, 1, 0, 0, 0, 915, 917, 3, 168, 84, 0, 916, 918, 3, 172, 86, 0, 917, 916, 1, 0, 0, 0, 918, 919, 1, 0, 0, 0, 919, 917, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 922, 1, 0, 0, 0, 921, 903, 1, 0, 0, 0, 921, 909, 1, 0, 0, 0, 921, 915, 1, 0, 0, 0, 922, 171, 1, 0, 0, 0, 923, 925, 5, 100, 0, 0, 924, 926, 3, 102, 51, 0, 925, 924, 1, 0, 0, 0, 925, 926, 1, 0, 0, 0, 926, 927, 1, 0, 0, 0, 927, 928, 5, 101, 0, 0, 928, 173, 1, 0, 0, 0, 929, 930, 7, 13, 0, 0, 930, 175, 1, 0, 0, 0, 97, 178, 180, 186, 196, 211, 219, 225, 229, 233, 237, 241, 245, 248, 260, 272, 282, 292, 305, 309, 316, 326, 330, 340, 346, 356, 360, 367, 380, 385, 388, 391, 394, 401, 406, 417, 424, 431, 447, 465, 474, 481, 484, 498, 510, 529, 533, 537, 544, 547, 550, 553, 560, 565, 577, 589, 592, 602, 610, 614, 619, 625, 640, 647, 655, 663, 671, 679, 687, 695, 703, 711, 719, 731, 737, 754, 757, 771, 777, 789, 796, 803, 807, 819, 823, 832, 837, 844, 856, 871, 887, 894, 901, 907, 913, 919, 921, 925]
336
+ [4, 1, 118, 956, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 1, 0, 1, 0, 5, 0, 181, 8, 0, 10, 0, 12, 0, 184, 9, 0, 1, 0, 5, 0, 187, 8, 0, 10, 0, 12, 0, 190, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 199, 8, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 214, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 5, 7, 220, 8, 7, 10, 7, 12, 7, 223, 9, 7, 1, 7, 1, 7, 1, 8, 3, 8, 228, 8, 8, 1, 8, 1, 8, 3, 8, 232, 8, 8, 1, 8, 1, 8, 3, 8, 236, 8, 8, 1, 8, 1, 8, 3, 8, 240, 8, 8, 1, 8, 1, 8, 3, 8, 244, 8, 8, 1, 8, 1, 8, 3, 8, 248, 8, 8, 1, 8, 3, 8, 251, 8, 8, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 5, 10, 261, 8, 10, 10, 10, 12, 10, 264, 9, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 275, 8, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 5, 13, 283, 8, 13, 10, 13, 12, 13, 286, 9, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 5, 14, 293, 8, 14, 10, 14, 12, 14, 296, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 306, 8, 15, 10, 15, 12, 15, 309, 9, 15, 1, 15, 3, 15, 312, 8, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 3, 16, 319, 8, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 327, 8, 17, 10, 17, 12, 17, 330, 9, 17, 1, 17, 3, 17, 333, 8, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 343, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 349, 8, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 5, 21, 357, 8, 21, 10, 21, 12, 21, 360, 9, 21, 1, 22, 3, 22, 363, 8, 22, 1, 22, 1, 22, 1, 22, 5, 22, 368, 8, 22, 10, 22, 12, 22, 371, 9, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 3, 27, 383, 8, 27, 1, 27, 1, 27, 1, 28, 3, 28, 388, 8, 28, 1, 28, 3, 28, 391, 8, 28, 1, 28, 3, 28, 394, 8, 28, 1, 28, 3, 28, 397, 8, 28, 1, 28, 1, 28, 1, 28, 5, 28, 402, 8, 28, 10, 28, 12, 28, 405, 9, 28, 1, 28, 1, 28, 3, 28, 409, 8, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 420, 8, 28, 1, 29, 1, 29, 1, 29, 5, 29, 425, 8, 29, 10, 29, 12, 29, 428, 9, 29, 1, 30, 1, 30, 5, 30, 432, 8, 30, 10, 30, 12, 30, 435, 9, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 451, 8, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 467, 8, 35, 10, 35, 12, 35, 470, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 476, 8, 35, 10, 35, 12, 35, 479, 9, 35, 1, 35, 1, 35, 5, 35, 483, 8, 35, 10, 35, 12, 35, 486, 9, 35, 3, 35, 488, 8, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 502, 8, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 514, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 3, 41, 533, 8, 41, 1, 41, 1, 41, 3, 41, 537, 8, 41, 1, 41, 1, 41, 3, 41, 541, 8, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 3, 43, 551, 8, 43, 1, 44, 3, 44, 554, 8, 44, 1, 44, 3, 44, 557, 8, 44, 1, 44, 3, 44, 560, 8, 44, 1, 44, 1, 44, 1, 44, 5, 44, 565, 8, 44, 10, 44, 12, 44, 568, 9, 44, 1, 44, 1, 44, 3, 44, 572, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 3, 47, 584, 8, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 4, 48, 594, 8, 48, 11, 48, 12, 48, 595, 1, 48, 3, 48, 599, 8, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 5, 49, 607, 8, 49, 10, 49, 12, 49, 610, 9, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 3, 50, 617, 8, 50, 1, 50, 1, 50, 3, 50, 621, 8, 50, 1, 50, 1, 50, 1, 50, 3, 50, 626, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 632, 8, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 647, 8, 53, 1, 54, 1, 54, 1, 54, 5, 54, 652, 8, 54, 10, 54, 12, 54, 655, 9, 54, 1, 55, 1, 55, 1, 55, 5, 55, 660, 8, 55, 10, 55, 12, 55, 663, 9, 55, 1, 56, 1, 56, 1, 56, 5, 56, 668, 8, 56, 10, 56, 12, 56, 671, 9, 56, 1, 57, 1, 57, 1, 57, 5, 57, 676, 8, 57, 10, 57, 12, 57, 679, 9, 57, 1, 58, 1, 58, 1, 58, 5, 58, 684, 8, 58, 10, 58, 12, 58, 687, 9, 58, 1, 59, 1, 59, 1, 59, 5, 59, 692, 8, 59, 10, 59, 12, 59, 695, 9, 59, 1, 60, 1, 60, 1, 60, 5, 60, 700, 8, 60, 10, 60, 12, 60, 703, 9, 60, 1, 61, 1, 61, 1, 61, 5, 61, 708, 8, 61, 10, 61, 12, 61, 711, 9, 61, 1, 62, 1, 62, 1, 62, 5, 62, 716, 8, 62, 10, 62, 12, 62, 719, 9, 62, 1, 63, 1, 63, 1, 63, 5, 63, 724, 8, 63, 10, 63, 12, 63, 727, 9, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 738, 8, 64, 1, 65, 1, 65, 5, 65, 742, 8, 65, 10, 65, 12, 65, 745, 9, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 3, 66, 761, 8, 66, 1, 66, 3, 66, 764, 8, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 3, 67, 778, 8, 67, 1, 68, 1, 68, 1, 68, 1, 68, 3, 68, 784, 8, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 3, 70, 796, 8, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 3, 70, 803, 8, 70, 1, 71, 1, 71, 1, 71, 5, 71, 808, 8, 71, 10, 71, 12, 71, 811, 9, 71, 1, 71, 3, 71, 814, 8, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 5, 73, 824, 8, 73, 10, 73, 12, 73, 827, 9, 73, 1, 73, 3, 73, 830, 8, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 3, 73, 839, 8, 73, 1, 74, 1, 74, 1, 74, 3, 74, 844, 8, 74, 1, 75, 1, 75, 1, 75, 5, 75, 849, 8, 75, 10, 75, 12, 75, 852, 9, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 3, 76, 863, 8, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 4, 79, 876, 8, 79, 11, 79, 12, 79, 877, 1, 80, 1, 80, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 5, 83, 892, 8, 83, 10, 83, 12, 83, 895, 9, 83, 1, 84, 1, 84, 1, 84, 1, 84, 3, 84, 901, 8, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 3, 85, 908, 8, 85, 1, 86, 1, 86, 4, 86, 912, 8, 86, 11, 86, 12, 86, 913, 1, 86, 1, 86, 4, 86, 918, 8, 86, 11, 86, 12, 86, 919, 1, 86, 1, 86, 4, 86, 924, 8, 86, 11, 86, 12, 86, 925, 1, 86, 1, 86, 4, 86, 930, 8, 86, 11, 86, 12, 86, 931, 1, 86, 1, 86, 4, 86, 936, 8, 86, 11, 86, 12, 86, 937, 1, 86, 1, 86, 4, 86, 942, 8, 86, 11, 86, 12, 86, 943, 3, 86, 946, 8, 86, 1, 87, 1, 87, 3, 87, 950, 8, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 0, 0, 89, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 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, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 0, 14, 1, 0, 3, 5, 1, 0, 6, 9, 1, 0, 17, 18, 1, 0, 41, 45, 1, 0, 37, 40, 1, 0, 46, 47, 1, 0, 66, 76, 1, 0, 77, 78, 1, 0, 79, 82, 1, 0, 95, 96, 1, 0, 83, 84, 1, 0, 85, 87, 1, 0, 54, 65, 3, 0, 32, 34, 50, 53, 108, 113, 1018, 0, 182, 1, 0, 0, 0, 2, 193, 1, 0, 0, 0, 4, 198, 1, 0, 0, 0, 6, 200, 1, 0, 0, 0, 8, 202, 1, 0, 0, 0, 10, 204, 1, 0, 0, 0, 12, 213, 1, 0, 0, 0, 14, 215, 1, 0, 0, 0, 16, 250, 1, 0, 0, 0, 18, 252, 1, 0, 0, 0, 20, 254, 1, 0, 0, 0, 22, 267, 1, 0, 0, 0, 24, 276, 1, 0, 0, 0, 26, 278, 1, 0, 0, 0, 28, 289, 1, 0, 0, 0, 30, 299, 1, 0, 0, 0, 32, 315, 1, 0, 0, 0, 34, 320, 1, 0, 0, 0, 36, 336, 1, 0, 0, 0, 38, 338, 1, 0, 0, 0, 40, 344, 1, 0, 0, 0, 42, 353, 1, 0, 0, 0, 44, 362, 1, 0, 0, 0, 46, 372, 1, 0, 0, 0, 48, 374, 1, 0, 0, 0, 50, 376, 1, 0, 0, 0, 52, 378, 1, 0, 0, 0, 54, 380, 1, 0, 0, 0, 56, 419, 1, 0, 0, 0, 58, 421, 1, 0, 0, 0, 60, 429, 1, 0, 0, 0, 62, 450, 1, 0, 0, 0, 64, 452, 1, 0, 0, 0, 66, 455, 1, 0, 0, 0, 68, 460, 1, 0, 0, 0, 70, 487, 1, 0, 0, 0, 72, 501, 1, 0, 0, 0, 74, 503, 1, 0, 0, 0, 76, 506, 1, 0, 0, 0, 78, 515, 1, 0, 0, 0, 80, 521, 1, 0, 0, 0, 82, 529, 1, 0, 0, 0, 84, 545, 1, 0, 0, 0, 86, 550, 1, 0, 0, 0, 88, 553, 1, 0, 0, 0, 90, 573, 1, 0, 0, 0, 92, 577, 1, 0, 0, 0, 94, 581, 1, 0, 0, 0, 96, 587, 1, 0, 0, 0, 98, 602, 1, 0, 0, 0, 100, 625, 1, 0, 0, 0, 102, 627, 1, 0, 0, 0, 104, 635, 1, 0, 0, 0, 106, 646, 1, 0, 0, 0, 108, 648, 1, 0, 0, 0, 110, 656, 1, 0, 0, 0, 112, 664, 1, 0, 0, 0, 114, 672, 1, 0, 0, 0, 116, 680, 1, 0, 0, 0, 118, 688, 1, 0, 0, 0, 120, 696, 1, 0, 0, 0, 122, 704, 1, 0, 0, 0, 124, 712, 1, 0, 0, 0, 126, 720, 1, 0, 0, 0, 128, 737, 1, 0, 0, 0, 130, 739, 1, 0, 0, 0, 132, 763, 1, 0, 0, 0, 134, 777, 1, 0, 0, 0, 136, 779, 1, 0, 0, 0, 138, 787, 1, 0, 0, 0, 140, 802, 1, 0, 0, 0, 142, 804, 1, 0, 0, 0, 144, 815, 1, 0, 0, 0, 146, 838, 1, 0, 0, 0, 148, 843, 1, 0, 0, 0, 150, 845, 1, 0, 0, 0, 152, 862, 1, 0, 0, 0, 154, 864, 1, 0, 0, 0, 156, 868, 1, 0, 0, 0, 158, 872, 1, 0, 0, 0, 160, 879, 1, 0, 0, 0, 162, 881, 1, 0, 0, 0, 164, 883, 1, 0, 0, 0, 166, 888, 1, 0, 0, 0, 168, 900, 1, 0, 0, 0, 170, 907, 1, 0, 0, 0, 172, 945, 1, 0, 0, 0, 174, 947, 1, 0, 0, 0, 176, 953, 1, 0, 0, 0, 178, 181, 3, 2, 1, 0, 179, 181, 3, 4, 2, 0, 180, 178, 1, 0, 0, 0, 180, 179, 1, 0, 0, 0, 181, 184, 1, 0, 0, 0, 182, 180, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0, 183, 188, 1, 0, 0, 0, 184, 182, 1, 0, 0, 0, 185, 187, 3, 12, 6, 0, 186, 185, 1, 0, 0, 0, 187, 190, 1, 0, 0, 0, 188, 186, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 191, 1, 0, 0, 0, 190, 188, 1, 0, 0, 0, 191, 192, 5, 0, 0, 1, 192, 1, 1, 0, 0, 0, 193, 194, 5, 2, 0, 0, 194, 3, 1, 0, 0, 0, 195, 199, 3, 6, 3, 0, 196, 199, 3, 8, 4, 0, 197, 199, 3, 10, 5, 0, 198, 195, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 199, 5, 1, 0, 0, 0, 200, 201, 7, 0, 0, 0, 201, 7, 1, 0, 0, 0, 202, 203, 7, 1, 0, 0, 203, 9, 1, 0, 0, 0, 204, 205, 5, 10, 0, 0, 205, 11, 1, 0, 0, 0, 206, 214, 3, 14, 7, 0, 207, 214, 3, 20, 10, 0, 208, 214, 3, 26, 13, 0, 209, 214, 3, 30, 15, 0, 210, 214, 3, 34, 17, 0, 211, 214, 3, 40, 20, 0, 212, 214, 3, 56, 28, 0, 213, 206, 1, 0, 0, 0, 213, 207, 1, 0, 0, 0, 213, 208, 1, 0, 0, 0, 213, 209, 1, 0, 0, 0, 213, 210, 1, 0, 0, 0, 213, 211, 1, 0, 0, 0, 213, 212, 1, 0, 0, 0, 214, 13, 1, 0, 0, 0, 215, 216, 5, 11, 0, 0, 216, 217, 5, 114, 0, 0, 217, 221, 5, 99, 0, 0, 218, 220, 3, 16, 8, 0, 219, 218, 1, 0, 0, 0, 220, 223, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 221, 222, 1, 0, 0, 0, 222, 224, 1, 0, 0, 0, 223, 221, 1, 0, 0, 0, 224, 225, 5, 100, 0, 0, 225, 15, 1, 0, 0, 0, 226, 228, 3, 18, 9, 0, 227, 226, 1, 0, 0, 0, 227, 228, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 251, 3, 56, 28, 0, 230, 232, 3, 18, 9, 0, 231, 230, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 233, 1, 0, 0, 0, 233, 251, 3, 40, 20, 0, 234, 236, 3, 18, 9, 0, 235, 234, 1, 0, 0, 0, 235, 236, 1, 0, 0, 0, 236, 237, 1, 0, 0, 0, 237, 251, 3, 30, 15, 0, 238, 240, 3, 18, 9, 0, 239, 238, 1, 0, 0, 0, 239, 240, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 251, 3, 34, 17, 0, 242, 244, 3, 18, 9, 0, 243, 242, 1, 0, 0, 0, 243, 244, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 251, 3, 20, 10, 0, 246, 248, 3, 18, 9, 0, 247, 246, 1, 0, 0, 0, 247, 248, 1, 0, 0, 0, 248, 249, 1, 0, 0, 0, 249, 251, 3, 26, 13, 0, 250, 227, 1, 0, 0, 0, 250, 231, 1, 0, 0, 0, 250, 235, 1, 0, 0, 0, 250, 239, 1, 0, 0, 0, 250, 243, 1, 0, 0, 0, 250, 247, 1, 0, 0, 0, 251, 17, 1, 0, 0, 0, 252, 253, 7, 2, 0, 0, 253, 19, 1, 0, 0, 0, 254, 255, 5, 16, 0, 0, 255, 256, 5, 114, 0, 0, 256, 257, 5, 106, 0, 0, 257, 258, 3, 104, 52, 0, 258, 262, 5, 99, 0, 0, 259, 261, 3, 22, 11, 0, 260, 259, 1, 0, 0, 0, 261, 264, 1, 0, 0, 0, 262, 260, 1, 0, 0, 0, 262, 263, 1, 0, 0, 0, 263, 265, 1, 0, 0, 0, 264, 262, 1, 0, 0, 0, 265, 266, 5, 100, 0, 0, 266, 21, 1, 0, 0, 0, 267, 268, 5, 114, 0, 0, 268, 269, 5, 107, 0, 0, 269, 270, 3, 152, 76, 0, 270, 271, 3, 24, 12, 0, 271, 272, 5, 106, 0, 0, 272, 274, 3, 104, 52, 0, 273, 275, 5, 104, 0, 0, 274, 273, 1, 0, 0, 0, 274, 275, 1, 0, 0, 0, 275, 23, 1, 0, 0, 0, 276, 277, 7, 3, 0, 0, 277, 25, 1, 0, 0, 0, 278, 279, 5, 12, 0, 0, 279, 280, 5, 114, 0, 0, 280, 284, 5, 99, 0, 0, 281, 283, 3, 28, 14, 0, 282, 281, 1, 0, 0, 0, 283, 286, 1, 0, 0, 0, 284, 282, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 287, 1, 0, 0, 0, 286, 284, 1, 0, 0, 0, 287, 288, 5, 100, 0, 0, 288, 27, 1, 0, 0, 0, 289, 290, 3, 152, 76, 0, 290, 294, 5, 114, 0, 0, 291, 293, 3, 54, 27, 0, 292, 291, 1, 0, 0, 0, 293, 296, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 297, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 297, 298, 5, 103, 0, 0, 298, 29, 1, 0, 0, 0, 299, 300, 5, 13, 0, 0, 300, 301, 5, 114, 0, 0, 301, 302, 5, 99, 0, 0, 302, 307, 3, 32, 16, 0, 303, 304, 5, 104, 0, 0, 304, 306, 3, 32, 16, 0, 305, 303, 1, 0, 0, 0, 306, 309, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 311, 1, 0, 0, 0, 309, 307, 1, 0, 0, 0, 310, 312, 5, 104, 0, 0, 311, 310, 1, 0, 0, 0, 311, 312, 1, 0, 0, 0, 312, 313, 1, 0, 0, 0, 313, 314, 5, 100, 0, 0, 314, 31, 1, 0, 0, 0, 315, 318, 5, 114, 0, 0, 316, 317, 5, 76, 0, 0, 317, 319, 3, 104, 52, 0, 318, 316, 1, 0, 0, 0, 318, 319, 1, 0, 0, 0, 319, 33, 1, 0, 0, 0, 320, 321, 3, 36, 18, 0, 321, 322, 5, 114, 0, 0, 322, 323, 5, 99, 0, 0, 323, 328, 3, 38, 19, 0, 324, 325, 5, 104, 0, 0, 325, 327, 3, 38, 19, 0, 326, 324, 1, 0, 0, 0, 327, 330, 1, 0, 0, 0, 328, 326, 1, 0, 0, 0, 328, 329, 1, 0, 0, 0, 329, 332, 1, 0, 0, 0, 330, 328, 1, 0, 0, 0, 331, 333, 5, 104, 0, 0, 332, 331, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 334, 1, 0, 0, 0, 334, 335, 5, 100, 0, 0, 335, 35, 1, 0, 0, 0, 336, 337, 7, 4, 0, 0, 337, 37, 1, 0, 0, 0, 338, 342, 5, 114, 0, 0, 339, 340, 5, 101, 0, 0, 340, 341, 5, 111, 0, 0, 341, 343, 5, 102, 0, 0, 342, 339, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 39, 1, 0, 0, 0, 344, 345, 3, 152, 76, 0, 345, 346, 5, 114, 0, 0, 346, 348, 5, 97, 0, 0, 347, 349, 3, 42, 21, 0, 348, 347, 1, 0, 0, 0, 348, 349, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 351, 5, 98, 0, 0, 351, 352, 3, 60, 30, 0, 352, 41, 1, 0, 0, 0, 353, 358, 3, 44, 22, 0, 354, 355, 5, 104, 0, 0, 355, 357, 3, 44, 22, 0, 356, 354, 1, 0, 0, 0, 357, 360, 1, 0, 0, 0, 358, 356, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 43, 1, 0, 0, 0, 360, 358, 1, 0, 0, 0, 361, 363, 3, 46, 23, 0, 362, 361, 1, 0, 0, 0, 362, 363, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 365, 3, 152, 76, 0, 365, 369, 5, 114, 0, 0, 366, 368, 3, 54, 27, 0, 367, 366, 1, 0, 0, 0, 368, 371, 1, 0, 0, 0, 369, 367, 1, 0, 0, 0, 369, 370, 1, 0, 0, 0, 370, 45, 1, 0, 0, 0, 371, 369, 1, 0, 0, 0, 372, 373, 5, 19, 0, 0, 373, 47, 1, 0, 0, 0, 374, 375, 5, 20, 0, 0, 375, 49, 1, 0, 0, 0, 376, 377, 7, 5, 0, 0, 377, 51, 1, 0, 0, 0, 378, 379, 5, 48, 0, 0, 379, 53, 1, 0, 0, 0, 380, 382, 5, 101, 0, 0, 381, 383, 3, 104, 52, 0, 382, 381, 1, 0, 0, 0, 382, 383, 1, 0, 0, 0, 383, 384, 1, 0, 0, 0, 384, 385, 5, 102, 0, 0, 385, 55, 1, 0, 0, 0, 386, 388, 3, 52, 26, 0, 387, 386, 1, 0, 0, 0, 387, 388, 1, 0, 0, 0, 388, 390, 1, 0, 0, 0, 389, 391, 3, 48, 24, 0, 390, 389, 1, 0, 0, 0, 390, 391, 1, 0, 0, 0, 391, 393, 1, 0, 0, 0, 392, 394, 3, 46, 23, 0, 393, 392, 1, 0, 0, 0, 393, 394, 1, 0, 0, 0, 394, 396, 1, 0, 0, 0, 395, 397, 3, 50, 25, 0, 396, 395, 1, 0, 0, 0, 396, 397, 1, 0, 0, 0, 397, 398, 1, 0, 0, 0, 398, 399, 3, 152, 76, 0, 399, 403, 5, 114, 0, 0, 400, 402, 3, 54, 27, 0, 401, 400, 1, 0, 0, 0, 402, 405, 1, 0, 0, 0, 403, 401, 1, 0, 0, 0, 403, 404, 1, 0, 0, 0, 404, 408, 1, 0, 0, 0, 405, 403, 1, 0, 0, 0, 406, 407, 5, 76, 0, 0, 407, 409, 3, 104, 52, 0, 408, 406, 1, 0, 0, 0, 408, 409, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 411, 5, 103, 0, 0, 411, 420, 1, 0, 0, 0, 412, 413, 3, 152, 76, 0, 413, 414, 5, 114, 0, 0, 414, 415, 5, 97, 0, 0, 415, 416, 3, 58, 29, 0, 416, 417, 5, 98, 0, 0, 417, 418, 5, 103, 0, 0, 418, 420, 1, 0, 0, 0, 419, 387, 1, 0, 0, 0, 419, 412, 1, 0, 0, 0, 420, 57, 1, 0, 0, 0, 421, 426, 5, 114, 0, 0, 422, 423, 5, 104, 0, 0, 423, 425, 5, 114, 0, 0, 424, 422, 1, 0, 0, 0, 425, 428, 1, 0, 0, 0, 426, 424, 1, 0, 0, 0, 426, 427, 1, 0, 0, 0, 427, 59, 1, 0, 0, 0, 428, 426, 1, 0, 0, 0, 429, 433, 5, 99, 0, 0, 430, 432, 3, 62, 31, 0, 431, 430, 1, 0, 0, 0, 432, 435, 1, 0, 0, 0, 433, 431, 1, 0, 0, 0, 433, 434, 1, 0, 0, 0, 434, 436, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 436, 437, 5, 100, 0, 0, 437, 61, 1, 0, 0, 0, 438, 451, 3, 56, 28, 0, 439, 451, 3, 66, 33, 0, 440, 451, 3, 74, 37, 0, 441, 451, 3, 76, 38, 0, 442, 451, 3, 78, 39, 0, 443, 451, 3, 80, 40, 0, 444, 451, 3, 82, 41, 0, 445, 451, 3, 84, 42, 0, 446, 451, 3, 96, 48, 0, 447, 451, 3, 94, 47, 0, 448, 451, 3, 64, 32, 0, 449, 451, 3, 60, 30, 0, 450, 438, 1, 0, 0, 0, 450, 439, 1, 0, 0, 0, 450, 440, 1, 0, 0, 0, 450, 441, 1, 0, 0, 0, 450, 442, 1, 0, 0, 0, 450, 443, 1, 0, 0, 0, 450, 444, 1, 0, 0, 0, 450, 445, 1, 0, 0, 0, 450, 446, 1, 0, 0, 0, 450, 447, 1, 0, 0, 0, 450, 448, 1, 0, 0, 0, 450, 449, 1, 0, 0, 0, 451, 63, 1, 0, 0, 0, 452, 453, 5, 49, 0, 0, 453, 454, 3, 60, 30, 0, 454, 65, 1, 0, 0, 0, 455, 456, 3, 70, 35, 0, 456, 457, 3, 68, 34, 0, 457, 458, 3, 104, 52, 0, 458, 459, 5, 103, 0, 0, 459, 67, 1, 0, 0, 0, 460, 461, 7, 6, 0, 0, 461, 69, 1, 0, 0, 0, 462, 463, 5, 15, 0, 0, 463, 464, 5, 105, 0, 0, 464, 468, 5, 114, 0, 0, 465, 467, 3, 72, 36, 0, 466, 465, 1, 0, 0, 0, 467, 470, 1, 0, 0, 0, 468, 466, 1, 0, 0, 0, 468, 469, 1, 0, 0, 0, 469, 488, 1, 0, 0, 0, 470, 468, 1, 0, 0, 0, 471, 472, 5, 14, 0, 0, 472, 473, 5, 105, 0, 0, 473, 477, 5, 114, 0, 0, 474, 476, 3, 72, 36, 0, 475, 474, 1, 0, 0, 0, 476, 479, 1, 0, 0, 0, 477, 475, 1, 0, 0, 0, 477, 478, 1, 0, 0, 0, 478, 488, 1, 0, 0, 0, 479, 477, 1, 0, 0, 0, 480, 484, 5, 114, 0, 0, 481, 483, 3, 72, 36, 0, 482, 481, 1, 0, 0, 0, 483, 486, 1, 0, 0, 0, 484, 482, 1, 0, 0, 0, 484, 485, 1, 0, 0, 0, 485, 488, 1, 0, 0, 0, 486, 484, 1, 0, 0, 0, 487, 462, 1, 0, 0, 0, 487, 471, 1, 0, 0, 0, 487, 480, 1, 0, 0, 0, 488, 71, 1, 0, 0, 0, 489, 490, 5, 105, 0, 0, 490, 502, 5, 114, 0, 0, 491, 492, 5, 101, 0, 0, 492, 493, 3, 104, 52, 0, 493, 494, 5, 102, 0, 0, 494, 502, 1, 0, 0, 0, 495, 496, 5, 101, 0, 0, 496, 497, 3, 104, 52, 0, 497, 498, 5, 104, 0, 0, 498, 499, 3, 104, 52, 0, 499, 500, 5, 102, 0, 0, 500, 502, 1, 0, 0, 0, 501, 489, 1, 0, 0, 0, 501, 491, 1, 0, 0, 0, 501, 495, 1, 0, 0, 0, 502, 73, 1, 0, 0, 0, 503, 504, 3, 104, 52, 0, 504, 505, 5, 103, 0, 0, 505, 75, 1, 0, 0, 0, 506, 507, 5, 22, 0, 0, 507, 508, 5, 97, 0, 0, 508, 509, 3, 104, 52, 0, 509, 510, 5, 98, 0, 0, 510, 513, 3, 62, 31, 0, 511, 512, 5, 23, 0, 0, 512, 514, 3, 62, 31, 0, 513, 511, 1, 0, 0, 0, 513, 514, 1, 0, 0, 0, 514, 77, 1, 0, 0, 0, 515, 516, 5, 24, 0, 0, 516, 517, 5, 97, 0, 0, 517, 518, 3, 104, 52, 0, 518, 519, 5, 98, 0, 0, 519, 520, 3, 62, 31, 0, 520, 79, 1, 0, 0, 0, 521, 522, 5, 25, 0, 0, 522, 523, 3, 60, 30, 0, 523, 524, 5, 24, 0, 0, 524, 525, 5, 97, 0, 0, 525, 526, 3, 104, 52, 0, 526, 527, 5, 98, 0, 0, 527, 528, 5, 103, 0, 0, 528, 81, 1, 0, 0, 0, 529, 530, 5, 26, 0, 0, 530, 532, 5, 97, 0, 0, 531, 533, 3, 86, 43, 0, 532, 531, 1, 0, 0, 0, 532, 533, 1, 0, 0, 0, 533, 534, 1, 0, 0, 0, 534, 536, 5, 103, 0, 0, 535, 537, 3, 104, 52, 0, 536, 535, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 538, 1, 0, 0, 0, 538, 540, 5, 103, 0, 0, 539, 541, 3, 92, 46, 0, 540, 539, 1, 0, 0, 0, 540, 541, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 543, 5, 98, 0, 0, 543, 544, 3, 62, 31, 0, 544, 83, 1, 0, 0, 0, 545, 546, 5, 27, 0, 0, 546, 547, 3, 60, 30, 0, 547, 85, 1, 0, 0, 0, 548, 551, 3, 88, 44, 0, 549, 551, 3, 90, 45, 0, 550, 548, 1, 0, 0, 0, 550, 549, 1, 0, 0, 0, 551, 87, 1, 0, 0, 0, 552, 554, 3, 52, 26, 0, 553, 552, 1, 0, 0, 0, 553, 554, 1, 0, 0, 0, 554, 556, 1, 0, 0, 0, 555, 557, 3, 48, 24, 0, 556, 555, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 559, 1, 0, 0, 0, 558, 560, 3, 50, 25, 0, 559, 558, 1, 0, 0, 0, 559, 560, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 562, 3, 152, 76, 0, 562, 566, 5, 114, 0, 0, 563, 565, 3, 54, 27, 0, 564, 563, 1, 0, 0, 0, 565, 568, 1, 0, 0, 0, 566, 564, 1, 0, 0, 0, 566, 567, 1, 0, 0, 0, 567, 571, 1, 0, 0, 0, 568, 566, 1, 0, 0, 0, 569, 570, 5, 76, 0, 0, 570, 572, 3, 104, 52, 0, 571, 569, 1, 0, 0, 0, 571, 572, 1, 0, 0, 0, 572, 89, 1, 0, 0, 0, 573, 574, 3, 70, 35, 0, 574, 575, 3, 68, 34, 0, 575, 576, 3, 104, 52, 0, 576, 91, 1, 0, 0, 0, 577, 578, 3, 70, 35, 0, 578, 579, 3, 68, 34, 0, 579, 580, 3, 104, 52, 0, 580, 93, 1, 0, 0, 0, 581, 583, 5, 31, 0, 0, 582, 584, 3, 104, 52, 0, 583, 582, 1, 0, 0, 0, 583, 584, 1, 0, 0, 0, 584, 585, 1, 0, 0, 0, 585, 586, 5, 103, 0, 0, 586, 95, 1, 0, 0, 0, 587, 588, 5, 28, 0, 0, 588, 589, 5, 97, 0, 0, 589, 590, 3, 104, 52, 0, 590, 591, 5, 98, 0, 0, 591, 593, 5, 99, 0, 0, 592, 594, 3, 98, 49, 0, 593, 592, 1, 0, 0, 0, 594, 595, 1, 0, 0, 0, 595, 593, 1, 0, 0, 0, 595, 596, 1, 0, 0, 0, 596, 598, 1, 0, 0, 0, 597, 599, 3, 102, 51, 0, 598, 597, 1, 0, 0, 0, 598, 599, 1, 0, 0, 0, 599, 600, 1, 0, 0, 0, 600, 601, 5, 100, 0, 0, 601, 97, 1, 0, 0, 0, 602, 603, 5, 29, 0, 0, 603, 608, 3, 100, 50, 0, 604, 605, 5, 89, 0, 0, 605, 607, 3, 100, 50, 0, 606, 604, 1, 0, 0, 0, 607, 610, 1, 0, 0, 0, 608, 606, 1, 0, 0, 0, 608, 609, 1, 0, 0, 0, 609, 611, 1, 0, 0, 0, 610, 608, 1, 0, 0, 0, 611, 612, 3, 60, 30, 0, 612, 99, 1, 0, 0, 0, 613, 626, 3, 158, 79, 0, 614, 626, 5, 114, 0, 0, 615, 617, 5, 84, 0, 0, 616, 615, 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 1, 0, 0, 0, 618, 626, 5, 111, 0, 0, 619, 621, 5, 84, 0, 0, 620, 619, 1, 0, 0, 0, 620, 621, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 626, 5, 108, 0, 0, 623, 626, 5, 109, 0, 0, 624, 626, 5, 113, 0, 0, 625, 613, 1, 0, 0, 0, 625, 614, 1, 0, 0, 0, 625, 616, 1, 0, 0, 0, 625, 620, 1, 0, 0, 0, 625, 623, 1, 0, 0, 0, 625, 624, 1, 0, 0, 0, 626, 101, 1, 0, 0, 0, 627, 631, 5, 30, 0, 0, 628, 629, 5, 97, 0, 0, 629, 630, 5, 111, 0, 0, 630, 632, 5, 98, 0, 0, 631, 628, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 633, 1, 0, 0, 0, 633, 634, 3, 60, 30, 0, 634, 103, 1, 0, 0, 0, 635, 636, 3, 106, 53, 0, 636, 105, 1, 0, 0, 0, 637, 638, 5, 97, 0, 0, 638, 639, 3, 108, 54, 0, 639, 640, 5, 98, 0, 0, 640, 641, 5, 1, 0, 0, 641, 642, 3, 108, 54, 0, 642, 643, 5, 107, 0, 0, 643, 644, 3, 108, 54, 0, 644, 647, 1, 0, 0, 0, 645, 647, 3, 108, 54, 0, 646, 637, 1, 0, 0, 0, 646, 645, 1, 0, 0, 0, 647, 107, 1, 0, 0, 0, 648, 653, 3, 110, 55, 0, 649, 650, 5, 89, 0, 0, 650, 652, 3, 110, 55, 0, 651, 649, 1, 0, 0, 0, 652, 655, 1, 0, 0, 0, 653, 651, 1, 0, 0, 0, 653, 654, 1, 0, 0, 0, 654, 109, 1, 0, 0, 0, 655, 653, 1, 0, 0, 0, 656, 661, 3, 112, 56, 0, 657, 658, 5, 88, 0, 0, 658, 660, 3, 112, 56, 0, 659, 657, 1, 0, 0, 0, 660, 663, 1, 0, 0, 0, 661, 659, 1, 0, 0, 0, 661, 662, 1, 0, 0, 0, 662, 111, 1, 0, 0, 0, 663, 661, 1, 0, 0, 0, 664, 669, 3, 114, 57, 0, 665, 666, 7, 7, 0, 0, 666, 668, 3, 114, 57, 0, 667, 665, 1, 0, 0, 0, 668, 671, 1, 0, 0, 0, 669, 667, 1, 0, 0, 0, 669, 670, 1, 0, 0, 0, 670, 113, 1, 0, 0, 0, 671, 669, 1, 0, 0, 0, 672, 677, 3, 116, 58, 0, 673, 674, 7, 8, 0, 0, 674, 676, 3, 116, 58, 0, 675, 673, 1, 0, 0, 0, 676, 679, 1, 0, 0, 0, 677, 675, 1, 0, 0, 0, 677, 678, 1, 0, 0, 0, 678, 115, 1, 0, 0, 0, 679, 677, 1, 0, 0, 0, 680, 685, 3, 118, 59, 0, 681, 682, 5, 92, 0, 0, 682, 684, 3, 118, 59, 0, 683, 681, 1, 0, 0, 0, 684, 687, 1, 0, 0, 0, 685, 683, 1, 0, 0, 0, 685, 686, 1, 0, 0, 0, 686, 117, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 688, 693, 3, 120, 60, 0, 689, 690, 5, 93, 0, 0, 690, 692, 3, 120, 60, 0, 691, 689, 1, 0, 0, 0, 692, 695, 1, 0, 0, 0, 693, 691, 1, 0, 0, 0, 693, 694, 1, 0, 0, 0, 694, 119, 1, 0, 0, 0, 695, 693, 1, 0, 0, 0, 696, 701, 3, 122, 61, 0, 697, 698, 5, 91, 0, 0, 698, 700, 3, 122, 61, 0, 699, 697, 1, 0, 0, 0, 700, 703, 1, 0, 0, 0, 701, 699, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 121, 1, 0, 0, 0, 703, 701, 1, 0, 0, 0, 704, 709, 3, 124, 62, 0, 705, 706, 7, 9, 0, 0, 706, 708, 3, 124, 62, 0, 707, 705, 1, 0, 0, 0, 708, 711, 1, 0, 0, 0, 709, 707, 1, 0, 0, 0, 709, 710, 1, 0, 0, 0, 710, 123, 1, 0, 0, 0, 711, 709, 1, 0, 0, 0, 712, 717, 3, 126, 63, 0, 713, 714, 7, 10, 0, 0, 714, 716, 3, 126, 63, 0, 715, 713, 1, 0, 0, 0, 716, 719, 1, 0, 0, 0, 717, 715, 1, 0, 0, 0, 717, 718, 1, 0, 0, 0, 718, 125, 1, 0, 0, 0, 719, 717, 1, 0, 0, 0, 720, 725, 3, 128, 64, 0, 721, 722, 7, 11, 0, 0, 722, 724, 3, 128, 64, 0, 723, 721, 1, 0, 0, 0, 724, 727, 1, 0, 0, 0, 725, 723, 1, 0, 0, 0, 725, 726, 1, 0, 0, 0, 726, 127, 1, 0, 0, 0, 727, 725, 1, 0, 0, 0, 728, 729, 5, 90, 0, 0, 729, 738, 3, 128, 64, 0, 730, 731, 5, 84, 0, 0, 731, 738, 3, 128, 64, 0, 732, 733, 5, 94, 0, 0, 733, 738, 3, 128, 64, 0, 734, 735, 5, 91, 0, 0, 735, 738, 3, 128, 64, 0, 736, 738, 3, 130, 65, 0, 737, 728, 1, 0, 0, 0, 737, 730, 1, 0, 0, 0, 737, 732, 1, 0, 0, 0, 737, 734, 1, 0, 0, 0, 737, 736, 1, 0, 0, 0, 738, 129, 1, 0, 0, 0, 739, 743, 3, 134, 67, 0, 740, 742, 3, 132, 66, 0, 741, 740, 1, 0, 0, 0, 742, 745, 1, 0, 0, 0, 743, 741, 1, 0, 0, 0, 743, 744, 1, 0, 0, 0, 744, 131, 1, 0, 0, 0, 745, 743, 1, 0, 0, 0, 746, 747, 5, 105, 0, 0, 747, 764, 5, 114, 0, 0, 748, 749, 5, 101, 0, 0, 749, 750, 3, 104, 52, 0, 750, 751, 5, 102, 0, 0, 751, 764, 1, 0, 0, 0, 752, 753, 5, 101, 0, 0, 753, 754, 3, 104, 52, 0, 754, 755, 5, 104, 0, 0, 755, 756, 3, 104, 52, 0, 756, 757, 5, 102, 0, 0, 757, 764, 1, 0, 0, 0, 758, 760, 5, 97, 0, 0, 759, 761, 3, 150, 75, 0, 760, 759, 1, 0, 0, 0, 760, 761, 1, 0, 0, 0, 761, 762, 1, 0, 0, 0, 762, 764, 5, 98, 0, 0, 763, 746, 1, 0, 0, 0, 763, 748, 1, 0, 0, 0, 763, 752, 1, 0, 0, 0, 763, 758, 1, 0, 0, 0, 764, 133, 1, 0, 0, 0, 765, 778, 3, 136, 68, 0, 766, 778, 3, 138, 69, 0, 767, 778, 3, 140, 70, 0, 768, 778, 3, 146, 73, 0, 769, 778, 5, 14, 0, 0, 770, 778, 5, 15, 0, 0, 771, 778, 5, 114, 0, 0, 772, 778, 3, 176, 88, 0, 773, 774, 5, 97, 0, 0, 774, 775, 3, 104, 52, 0, 775, 776, 5, 98, 0, 0, 776, 778, 1, 0, 0, 0, 777, 765, 1, 0, 0, 0, 777, 766, 1, 0, 0, 0, 777, 767, 1, 0, 0, 0, 777, 768, 1, 0, 0, 0, 777, 769, 1, 0, 0, 0, 777, 770, 1, 0, 0, 0, 777, 771, 1, 0, 0, 0, 777, 772, 1, 0, 0, 0, 777, 773, 1, 0, 0, 0, 778, 135, 1, 0, 0, 0, 779, 780, 5, 36, 0, 0, 780, 783, 5, 97, 0, 0, 781, 784, 3, 152, 76, 0, 782, 784, 3, 104, 52, 0, 783, 781, 1, 0, 0, 0, 783, 782, 1, 0, 0, 0, 784, 785, 1, 0, 0, 0, 785, 786, 5, 98, 0, 0, 786, 137, 1, 0, 0, 0, 787, 788, 5, 97, 0, 0, 788, 789, 3, 152, 76, 0, 789, 790, 5, 98, 0, 0, 790, 791, 3, 128, 64, 0, 791, 139, 1, 0, 0, 0, 792, 793, 5, 114, 0, 0, 793, 795, 5, 99, 0, 0, 794, 796, 3, 142, 71, 0, 795, 794, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 797, 1, 0, 0, 0, 797, 803, 5, 100, 0, 0, 798, 799, 5, 99, 0, 0, 799, 800, 3, 142, 71, 0, 800, 801, 5, 100, 0, 0, 801, 803, 1, 0, 0, 0, 802, 792, 1, 0, 0, 0, 802, 798, 1, 0, 0, 0, 803, 141, 1, 0, 0, 0, 804, 809, 3, 144, 72, 0, 805, 806, 5, 104, 0, 0, 806, 808, 3, 144, 72, 0, 807, 805, 1, 0, 0, 0, 808, 811, 1, 0, 0, 0, 809, 807, 1, 0, 0, 0, 809, 810, 1, 0, 0, 0, 810, 813, 1, 0, 0, 0, 811, 809, 1, 0, 0, 0, 812, 814, 5, 104, 0, 0, 813, 812, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 143, 1, 0, 0, 0, 815, 816, 5, 114, 0, 0, 816, 817, 5, 107, 0, 0, 817, 818, 3, 104, 52, 0, 818, 145, 1, 0, 0, 0, 819, 820, 5, 101, 0, 0, 820, 825, 3, 148, 74, 0, 821, 822, 5, 104, 0, 0, 822, 824, 3, 148, 74, 0, 823, 821, 1, 0, 0, 0, 824, 827, 1, 0, 0, 0, 825, 823, 1, 0, 0, 0, 825, 826, 1, 0, 0, 0, 826, 829, 1, 0, 0, 0, 827, 825, 1, 0, 0, 0, 828, 830, 5, 104, 0, 0, 829, 828, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 5, 102, 0, 0, 832, 839, 1, 0, 0, 0, 833, 834, 5, 101, 0, 0, 834, 835, 3, 104, 52, 0, 835, 836, 5, 85, 0, 0, 836, 837, 5, 102, 0, 0, 837, 839, 1, 0, 0, 0, 838, 819, 1, 0, 0, 0, 838, 833, 1, 0, 0, 0, 839, 147, 1, 0, 0, 0, 840, 844, 3, 104, 52, 0, 841, 844, 3, 140, 70, 0, 842, 844, 3, 146, 73, 0, 843, 840, 1, 0, 0, 0, 843, 841, 1, 0, 0, 0, 843, 842, 1, 0, 0, 0, 844, 149, 1, 0, 0, 0, 845, 850, 3, 104, 52, 0, 846, 847, 5, 104, 0, 0, 847, 849, 3, 104, 52, 0, 848, 846, 1, 0, 0, 0, 849, 852, 1, 0, 0, 0, 850, 848, 1, 0, 0, 0, 850, 851, 1, 0, 0, 0, 851, 151, 1, 0, 0, 0, 852, 850, 1, 0, 0, 0, 853, 863, 3, 160, 80, 0, 854, 863, 3, 170, 85, 0, 855, 863, 3, 154, 77, 0, 856, 863, 3, 156, 78, 0, 857, 863, 3, 158, 79, 0, 858, 863, 3, 164, 82, 0, 859, 863, 3, 162, 81, 0, 860, 863, 3, 172, 86, 0, 861, 863, 5, 21, 0, 0, 862, 853, 1, 0, 0, 0, 862, 854, 1, 0, 0, 0, 862, 855, 1, 0, 0, 0, 862, 856, 1, 0, 0, 0, 862, 857, 1, 0, 0, 0, 862, 858, 1, 0, 0, 0, 862, 859, 1, 0, 0, 0, 862, 860, 1, 0, 0, 0, 862, 861, 1, 0, 0, 0, 863, 153, 1, 0, 0, 0, 864, 865, 5, 14, 0, 0, 865, 866, 5, 105, 0, 0, 866, 867, 5, 114, 0, 0, 867, 155, 1, 0, 0, 0, 868, 869, 5, 15, 0, 0, 869, 870, 5, 105, 0, 0, 870, 871, 5, 114, 0, 0, 871, 157, 1, 0, 0, 0, 872, 875, 5, 114, 0, 0, 873, 874, 5, 105, 0, 0, 874, 876, 5, 114, 0, 0, 875, 873, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877, 875, 1, 0, 0, 0, 877, 878, 1, 0, 0, 0, 878, 159, 1, 0, 0, 0, 879, 880, 7, 12, 0, 0, 880, 161, 1, 0, 0, 0, 881, 882, 5, 114, 0, 0, 882, 163, 1, 0, 0, 0, 883, 884, 5, 114, 0, 0, 884, 885, 5, 79, 0, 0, 885, 886, 3, 166, 83, 0, 886, 887, 5, 80, 0, 0, 887, 165, 1, 0, 0, 0, 888, 893, 3, 168, 84, 0, 889, 890, 5, 104, 0, 0, 890, 892, 3, 168, 84, 0, 891, 889, 1, 0, 0, 0, 892, 895, 1, 0, 0, 0, 893, 891, 1, 0, 0, 0, 893, 894, 1, 0, 0, 0, 894, 167, 1, 0, 0, 0, 895, 893, 1, 0, 0, 0, 896, 901, 3, 164, 82, 0, 897, 901, 3, 160, 80, 0, 898, 901, 5, 114, 0, 0, 899, 901, 5, 111, 0, 0, 900, 896, 1, 0, 0, 0, 900, 897, 1, 0, 0, 0, 900, 898, 1, 0, 0, 0, 900, 899, 1, 0, 0, 0, 901, 169, 1, 0, 0, 0, 902, 903, 5, 35, 0, 0, 903, 904, 5, 79, 0, 0, 904, 905, 5, 111, 0, 0, 905, 908, 5, 80, 0, 0, 906, 908, 5, 35, 0, 0, 907, 902, 1, 0, 0, 0, 907, 906, 1, 0, 0, 0, 908, 171, 1, 0, 0, 0, 909, 911, 3, 160, 80, 0, 910, 912, 3, 174, 87, 0, 911, 910, 1, 0, 0, 0, 912, 913, 1, 0, 0, 0, 913, 911, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 946, 1, 0, 0, 0, 915, 917, 3, 162, 81, 0, 916, 918, 3, 174, 87, 0, 917, 916, 1, 0, 0, 0, 918, 919, 1, 0, 0, 0, 919, 917, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 946, 1, 0, 0, 0, 921, 923, 3, 170, 85, 0, 922, 924, 3, 174, 87, 0, 923, 922, 1, 0, 0, 0, 924, 925, 1, 0, 0, 0, 925, 923, 1, 0, 0, 0, 925, 926, 1, 0, 0, 0, 926, 946, 1, 0, 0, 0, 927, 929, 3, 154, 77, 0, 928, 930, 3, 174, 87, 0, 929, 928, 1, 0, 0, 0, 930, 931, 1, 0, 0, 0, 931, 929, 1, 0, 0, 0, 931, 932, 1, 0, 0, 0, 932, 946, 1, 0, 0, 0, 933, 935, 3, 158, 79, 0, 934, 936, 3, 174, 87, 0, 935, 934, 1, 0, 0, 0, 936, 937, 1, 0, 0, 0, 937, 935, 1, 0, 0, 0, 937, 938, 1, 0, 0, 0, 938, 946, 1, 0, 0, 0, 939, 941, 3, 156, 78, 0, 940, 942, 3, 174, 87, 0, 941, 940, 1, 0, 0, 0, 942, 943, 1, 0, 0, 0, 943, 941, 1, 0, 0, 0, 943, 944, 1, 0, 0, 0, 944, 946, 1, 0, 0, 0, 945, 909, 1, 0, 0, 0, 945, 915, 1, 0, 0, 0, 945, 921, 1, 0, 0, 0, 945, 927, 1, 0, 0, 0, 945, 933, 1, 0, 0, 0, 945, 939, 1, 0, 0, 0, 946, 173, 1, 0, 0, 0, 947, 949, 5, 101, 0, 0, 948, 950, 3, 104, 52, 0, 949, 948, 1, 0, 0, 0, 949, 950, 1, 0, 0, 0, 950, 951, 1, 0, 0, 0, 951, 952, 5, 102, 0, 0, 952, 175, 1, 0, 0, 0, 953, 954, 7, 13, 0, 0, 954, 177, 1, 0, 0, 0, 100, 180, 182, 188, 198, 213, 221, 227, 231, 235, 239, 243, 247, 250, 262, 274, 284, 294, 307, 311, 318, 328, 332, 342, 348, 358, 362, 369, 382, 387, 390, 393, 396, 403, 408, 419, 426, 433, 450, 468, 477, 484, 487, 501, 513, 532, 536, 540, 550, 553, 556, 559, 566, 571, 583, 595, 598, 608, 616, 620, 625, 631, 646, 653, 661, 669, 677, 685, 693, 701, 709, 717, 725, 737, 743, 760, 763, 777, 783, 795, 802, 809, 813, 825, 829, 838, 843, 850, 862, 877, 893, 900, 907, 913, 919, 925, 931, 937, 943, 945, 949]