diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index a18238c43fc87..4405b6caa5d08 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,3 +1,7 @@
+# hadolint global ignore=DL3004
+
+# hadolint doesn't like changes to this file, but it is only used for local dev
+
# Defines the environment you're dropped into with codespaces
# I've take
# https://github.com/microsoft/vscode-dev-containers/blob/main/containers/python-3/.devcontainer/Dockerfile
@@ -7,7 +11,7 @@
# experience as rich as possible. Perhaps later down the line it might be worth
# rolling our own
#
-FROM mcr.microsoft.com/vscode/devcontainers/python:3.10-bullseye
+FROM mcr.microsoft.com/vscode/devcontainers/python:3.11-bullseye
# Make sure all exit codes on pipes cause failures
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
diff --git a/.github/actions/run-backend-tests/action.yml b/.github/actions/run-backend-tests/action.yml
index c1d465166161b..39cba842f237b 100644
--- a/.github/actions/run-backend-tests/action.yml
+++ b/.github/actions/run-backend-tests/action.yml
@@ -6,7 +6,7 @@ name: Run Django tests
inputs:
python-version:
required: true
- description: Python version, e.g. 3.10.10
+ description: Python version, e.g. 3.11.9
clickhouse-server-image:
required: true
description: ClickHouse server image tag, e.g. clickhouse/clickhouse-server:latest
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index bd50811fae662..9478b7d2f8c80 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -54,7 +54,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
- python-version: 3.10.10
+ python-version: 3.11.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
diff --git a/.github/workflows/build-hogql-parser.yml b/.github/workflows/build-hogql-parser.yml
index 73a22754f8994..21e153660dd13 100644
--- a/.github/workflows/build-hogql-parser.yml
+++ b/.github/workflows/build-hogql-parser.yml
@@ -80,6 +80,21 @@ jobs:
with:
python-version: '3.11'
+ # # This is an alternative way to install Python 3.11 on ARM if the above fails
+ # - if: ${{ endsWith(matrix.os, '-arm') }}
+ # name: Install Python 3.11 on ARM (compile from source)
+ # run: |
+ # sudo apt-get update
+ # sudo apt-get install -y build-essential libssl-dev zlib1g-dev \
+ # libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev \
+ # libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev
+ # wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tar.xz
+ # tar -xf Python-3.11.0.tar.xz
+ # cd Python-3.11.0
+ # ./configure --enable-optimizations
+ # make -j 2
+ # sudo make altinstall
+
- name: Build sdist
if: matrix.os == 'ubuntu-22.04' # Only build the sdist once
run: cd hogql_parser && python setup.py sdist
diff --git a/.github/workflows/ci-backend-update-test-timing.yml b/.github/workflows/ci-backend-update-test-timing.yml
index a2082f6b98955..01ad7d33ce305 100644
--- a/.github/workflows/ci-backend-update-test-timing.yml
+++ b/.github/workflows/ci-backend-update-test-timing.yml
@@ -28,7 +28,7 @@ jobs:
concurrency: 1
group: 1
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
- python-version: '3.10.10'
+ python-version: '3.11.9'
clickhouse-server-image: 'clickhouse/clickhouse-server:23.12.5.81-alpine'
segment: 'FOSS'
person-on-events: false
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 9e2aae60c76f5..b757f69c8f804 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -108,7 +108,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
- python-version: 3.10.10
+ python-version: 3.11.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
@@ -163,7 +163,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
- python-version: 3.10.10
+ python-version: 3.11.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
@@ -177,22 +177,21 @@ jobs:
sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
# First running migrations from master, to simulate the real-world scenario
-
- - name: Checkout master
- uses: actions/checkout@v3
- with:
- ref: master
-
- - name: Install python dependencies for master
- run: |
- uv pip install --system -r requirements.txt -r requirements-dev.txt
-
- - name: Run migrations up to master
- run: |
- python manage.py migrate
+ # Commented out to move to Python 3.11. Uncomment after deploy.
+ # - name: Checkout master
+ # uses: actions/checkout@v3
+ # with:
+ # ref: master
+ #
+ # - name: Install python dependencies for master
+ # run: |
+ # uv pip install --system -r requirements.txt -r requirements-dev.txt
+ #
+ # - name: Run migrations up to master
+ # run: |
+ # python manage.py migrate
# Now we can consider this PR's migrations
-
- name: Checkout this PR
uses: actions/checkout@v3
@@ -204,22 +203,24 @@ jobs:
run: |
python manage.py migrate
- - name: Check migrations
- run: |
- python manage.py makemigrations --check --dry-run
- git fetch origin master
- # `git diff --name-only` returns a list of files that were changed - added OR deleted OR modified
- # With `--name-status` we get the same, but including a column for status, respectively: A, D, M
- # In this check we exclusively care about files that were
- # added (A) in posthog/migrations/. We also want to ignore
- # initial migrations (0001_*) as these are guaranteed to be
- # run on initial setup where there is no data.
- git diff --name-status origin/master..HEAD | grep "A\sposthog/migrations/" | awk '{print $2}' | grep -v migrations/0001_ | python manage.py test_migrations_are_safe
-
- - name: Check CH migrations
- run: |
- # Same as above, except now for CH looking at files that were added in posthog/clickhouse/migrations/
- git diff --name-status origin/master..HEAD | grep "A\sposthog/clickhouse/migrations/" | awk '{print $2}' | python manage.py test_ch_migrations_are_safe
+ # Commented out to move to Python 3.11. Uncomment after deploy.
+ #
+ # - name: Check migrations
+ # run: |
+ # python manage.py makemigrations --check --dry-run
+ # git fetch origin master
+ # # `git diff --name-only` returns a list of files that were changed - added OR deleted OR modified
+ # # With `--name-status` we get the same, but including a column for status, respectively: A, D, M
+ # # In this check we exclusively care about files that were
+ # # added (A) in posthog/migrations/. We also want to ignore
+ # # initial migrations (0001_*) as these are guaranteed to be
+ # # run on initial setup where there is no data.
+ # git diff --name-status origin/master..HEAD | grep "A\sposthog/migrations/" | awk '{print $2}' | grep -v migrations/0001_ | python manage.py test_migrations_are_safe
+ #
+ # - name: Check CH migrations
+ # run: |
+ # # Same as above, except now for CH looking at files that were added in posthog/clickhouse/migrations/
+ # git diff --name-status origin/master..HEAD | grep "A\sposthog/clickhouse/migrations/" | awk '{print $2}' | python manage.py test_ch_migrations_are_safe
django:
needs: changes
@@ -231,7 +232,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ['3.10.10']
+ python-version: ['3.11.9']
clickhouse-server-image: ['clickhouse/clickhouse-server:23.12.5.81-alpine']
segment: ['Core']
person-on-events: [false, true]
@@ -242,7 +243,7 @@ jobs:
- segment: 'Temporal'
person-on-events: false
clickhouse-server-image: 'clickhouse/clickhouse-server:23.12.5.81-alpine'
- python-version: '3.10.10'
+ python-version: '3.11.9'
concurrency: 1
group: 1
@@ -330,7 +331,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
- python-version: 3.10.10
+ python-version: 3.11.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
diff --git a/.github/workflows/ci-hog.yml b/.github/workflows/ci-hog.yml
index 860f0b6e47be8..2a2ee8ecb8684 100644
--- a/.github/workflows/ci-hog.yml
+++ b/.github/workflows/ci-hog.yml
@@ -70,7 +70,7 @@ jobs:
if: needs.changes.outputs.hog == 'true'
uses: actions/setup-python@v5
with:
- python-version: 3.10.10
+ python-version: 3.11.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
diff --git a/.github/workflows/ci-plugin-server.yml b/.github/workflows/ci-plugin-server.yml
index dac67b705b6a5..b4d6cb0a17f36 100644
--- a/.github/workflows/ci-plugin-server.yml
+++ b/.github/workflows/ci-plugin-server.yml
@@ -115,7 +115,7 @@ jobs:
if: needs.changes.outputs.plugin-server == 'true'
uses: actions/setup-python@v5
with:
- python-version: 3.10.10
+ python-version: 3.11.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
@@ -207,7 +207,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
- python-version: 3.10.10
+ python-version: 3.11.9
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
diff --git a/.run/Celery Beat.run.xml b/.run/Celery Beat.run.xml
index 86d7e07d05ec9..4141b201f1a7a 100644
--- a/.run/Celery Beat.run.xml
+++ b/.run/Celery Beat.run.xml
@@ -14,6 +14,7 @@
+
diff --git a/.run/Celery Threads.run.xml b/.run/Celery Threads.run.xml
index 161997f547678..e31a4ce14af5f 100644
--- a/.run/Celery Threads.run.xml
+++ b/.run/Celery Threads.run.xml
@@ -14,6 +14,7 @@
+
@@ -28,4 +29,4 @@
-
\ No newline at end of file
+
diff --git a/.run/Celery.run.xml b/.run/Celery.run.xml
index 77e377e642a08..d6b8b57f08ab4 100644
--- a/.run/Celery.run.xml
+++ b/.run/Celery.run.xml
@@ -5,17 +5,18 @@
+
-
+
-
+
diff --git a/.run/PostHog.run.xml b/.run/PostHog.run.xml
index e1bbe3aeb9282..54d34fc644331 100644
--- a/.run/PostHog.run.xml
+++ b/.run/PostHog.run.xml
@@ -1,9 +1,11 @@
+
+
@@ -14,14 +16,13 @@
-
-
+
@@ -47,4 +48,4 @@
-
+
\ No newline at end of file
diff --git a/bin/build-schema-python.sh b/bin/build-schema-python.sh
index 7937731b55116..4f6cf8d6d658b 100755
--- a/bin/build-schema-python.sh
+++ b/bin/build-schema-python.sh
@@ -4,7 +4,7 @@ set -e
# Generate schema.py from schema.json
datamodel-codegen \
- --class-name='SchemaRoot' --collapse-root-models --target-python-version 3.10 --disable-timestamp \
+ --class-name='SchemaRoot' --collapse-root-models --target-python-version 3.11 --disable-timestamp \
--use-one-literal-as-default --use-default --use-default-kwarg --use-subclass-enum \
--input frontend/src/queries/schema.json --input-file-type jsonschema \
--output posthog/schema.py --output-model-type pydantic_v2.BaseModel \
@@ -29,3 +29,9 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
else
sed -i -e 's/Optional\[PropertyOperator\] = \("[A-Za-z_]*"\)/Optional[PropertyOperator] = PropertyOperator(\1)/g' posthog/schema.py
fi
+
+# Replace class Foo(str, Enum) with class Foo(StrEnum) for proper handling in format strings in python 3.11
+# Remove this when https://github.com/koxudaxi/datamodel-code-generator/issues/1313 is resolved
+
+sed -i -e 's/str, Enum/StrEnum/g' posthog/schema.py
+sed -i 's/from enum import Enum/from enum import Enum, StrEnum/g' posthog/schema.py
diff --git a/bin/deploy-hobby b/bin/deploy-hobby
index 768060c75f03d..1f790dc7ba147 100755
--- a/bin/deploy-hobby
+++ b/bin/deploy-hobby
@@ -184,7 +184,7 @@ if ! command -v docker &> /dev/null; then
# Setup Docker
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo -E apt-key add -
- sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
+ sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu jammy stable"
sudo apt update
sudo apt-cache policy docker-ce
sudo apt install -y docker-ce
diff --git a/ee/api/test/__snapshots__/test_time_to_see_data.ambr b/ee/api/test/__snapshots__/test_time_to_see_data.ambr
index 2d93af68cee82..beda2bc14bdef 100644
--- a/ee/api/test/__snapshots__/test_time_to_see_data.ambr
+++ b/ee/api/test/__snapshots__/test_time_to_see_data.ambr
@@ -20,7 +20,7 @@
"first_name": "",
"last_name": "",
"email": "",
- "is_email_verified": false
+ "is_email_verified": null
}
},
"children": [
diff --git a/hogql_parser/HogQLParser.cpp b/hogql_parser/HogQLParser.cpp
index 8ea044e4e5afc..340ddb8020c51 100644
--- a/hogql_parser/HogQLParser.cpp
+++ b/hogql_parser/HogQLParser.cpp
@@ -250,8 +250,8 @@ void hogqlparserParserInitialize() {
1,0,0,0,194,192,1,0,0,0,194,195,1,0,0,0,195,198,1,0,0,0,196,194,1,0,0,
0,197,199,5,112,0,0,198,197,1,0,0,0,198,199,1,0,0,0,199,9,1,0,0,0,200,
210,3,12,6,0,201,210,3,14,7,0,202,210,3,16,8,0,203,210,3,18,9,0,204,210,
- 3,20,10,0,205,210,3,22,11,0,206,210,3,24,12,0,207,210,3,26,13,0,208,210,
- 3,28,14,0,209,200,1,0,0,0,209,201,1,0,0,0,209,202,1,0,0,0,209,203,1,0,
+ 3,20,10,0,205,210,3,22,11,0,206,210,3,28,14,0,207,210,3,24,12,0,208,210,
+ 3,26,13,0,209,200,1,0,0,0,209,201,1,0,0,0,209,202,1,0,0,0,209,203,1,0,
0,0,209,204,1,0,0,0,209,205,1,0,0,0,209,206,1,0,0,0,209,207,1,0,0,0,209,
208,1,0,0,0,210,11,1,0,0,0,211,213,5,70,0,0,212,214,3,4,2,0,213,212,1,
0,0,0,213,214,1,0,0,0,214,216,1,0,0,0,215,217,5,145,0,0,216,215,1,0,0,
@@ -1118,6 +1118,10 @@ HogQLParser::VarAssignmentContext* HogQLParser::StatementContext::varAssignment(
return getRuleContext(0);
}
+HogQLParser::BlockContext* HogQLParser::StatementContext::block() {
+ return getRuleContext(0);
+}
+
HogQLParser::ExprStmtContext* HogQLParser::StatementContext::exprStmt() {
return getRuleContext(0);
}
@@ -1126,10 +1130,6 @@ HogQLParser::EmptyStmtContext* HogQLParser::StatementContext::emptyStmt() {
return getRuleContext(0);
}
-HogQLParser::BlockContext* HogQLParser::StatementContext::block() {
- return getRuleContext(0);
-}
-
size_t HogQLParser::StatementContext::getRuleIndex() const {
return HogQLParser::RuleStatement;
@@ -1203,21 +1203,21 @@ HogQLParser::StatementContext* HogQLParser::statement() {
case 7: {
enterOuterAlt(_localctx, 7);
setState(206);
- exprStmt();
+ block();
break;
}
case 8: {
enterOuterAlt(_localctx, 8);
setState(207);
- emptyStmt();
+ exprStmt();
break;
}
case 9: {
enterOuterAlt(_localctx, 9);
setState(208);
- block();
+ emptyStmt();
break;
}
diff --git a/hogql_parser/HogQLParser.h b/hogql_parser/HogQLParser.h
index fe5efcdeccb57..3bc58cc5d7314 100644
--- a/hogql_parser/HogQLParser.h
+++ b/hogql_parser/HogQLParser.h
@@ -258,9 +258,9 @@ class HogQLParser : public antlr4::Parser {
ForStmtContext *forStmt();
FuncStmtContext *funcStmt();
VarAssignmentContext *varAssignment();
+ BlockContext *block();
ExprStmtContext *exprStmt();
EmptyStmtContext *emptyStmt();
- BlockContext *block();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
diff --git a/hogql_parser/HogQLParser.interp b/hogql_parser/HogQLParser.interp
index 40009f67387f5..da0b0cb00c46d 100644
--- a/hogql_parser/HogQLParser.interp
+++ b/hogql_parser/HogQLParser.interp
@@ -400,4 +400,4 @@ stringContentsFull
atn:
-[4, 1, 154, 1237, 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, 1, 0, 5, 0, 170, 8, 0, 10, 0, 12, 0, 173, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 179, 8, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 188, 8, 3, 1, 4, 1, 4, 1, 4, 5, 4, 193, 8, 4, 10, 4, 12, 4, 196, 9, 4, 1, 4, 3, 4, 199, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 210, 8, 5, 1, 6, 1, 6, 3, 6, 214, 8, 6, 1, 6, 3, 6, 217, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 226, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 234, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 241, 8, 9, 1, 9, 1, 9, 3, 9, 245, 8, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 251, 8, 9, 1, 9, 1, 9, 1, 9, 3, 9, 256, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 262, 8, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 3, 12, 274, 8, 12, 1, 13, 1, 13, 1, 14, 1, 14, 5, 14, 280, 8, 14, 10, 14, 12, 14, 283, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 5, 16, 294, 8, 16, 10, 16, 12, 16, 297, 9, 16, 1, 16, 3, 16, 300, 8, 16, 1, 17, 1, 17, 1, 17, 3, 17, 305, 8, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 313, 8, 18, 10, 18, 12, 18, 316, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 324, 8, 19, 1, 20, 3, 20, 327, 8, 20, 1, 20, 1, 20, 3, 20, 331, 8, 20, 1, 20, 3, 20, 334, 8, 20, 1, 20, 1, 20, 3, 20, 338, 8, 20, 1, 20, 3, 20, 341, 8, 20, 1, 20, 3, 20, 344, 8, 20, 1, 20, 3, 20, 347, 8, 20, 1, 20, 3, 20, 350, 8, 20, 1, 20, 1, 20, 3, 20, 354, 8, 20, 1, 20, 1, 20, 3, 20, 358, 8, 20, 1, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 3, 20, 367, 8, 20, 1, 20, 1, 20, 3, 20, 371, 8, 20, 1, 20, 3, 20, 374, 8, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 383, 8, 22, 1, 23, 1, 23, 1, 23, 1, 24, 3, 24, 389, 8, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 5, 25, 408, 8, 25, 10, 25, 12, 25, 411, 9, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 427, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 444, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 450, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 456, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 467, 8, 32, 3, 32, 469, 8, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 3, 35, 480, 8, 35, 1, 35, 3, 35, 483, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 489, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 497, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 503, 8, 35, 10, 35, 12, 35, 506, 9, 35, 1, 36, 3, 36, 509, 8, 36, 1, 36, 1, 36, 1, 36, 3, 36, 514, 8, 36, 1, 36, 3, 36, 517, 8, 36, 1, 36, 3, 36, 520, 8, 36, 1, 36, 1, 36, 3, 36, 524, 8, 36, 1, 36, 1, 36, 3, 36, 528, 8, 36, 1, 36, 3, 36, 531, 8, 36, 3, 36, 533, 8, 36, 1, 36, 3, 36, 536, 8, 36, 1, 36, 1, 36, 3, 36, 540, 8, 36, 1, 36, 1, 36, 3, 36, 544, 8, 36, 1, 36, 3, 36, 547, 8, 36, 3, 36, 549, 8, 36, 3, 36, 551, 8, 36, 1, 37, 1, 37, 1, 37, 3, 37, 556, 8, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 567, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 573, 8, 39, 1, 40, 1, 40, 1, 40, 5, 40, 578, 8, 40, 10, 40, 12, 40, 581, 9, 40, 1, 41, 1, 41, 3, 41, 585, 8, 41, 1, 41, 1, 41, 3, 41, 589, 8, 41, 1, 41, 1, 41, 3, 41, 593, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 599, 8, 42, 3, 42, 601, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 606, 8, 43, 10, 43, 12, 43, 609, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 3, 45, 616, 8, 45, 1, 45, 3, 45, 619, 8, 45, 1, 45, 3, 45, 622, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 641, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 655, 8, 50, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 669, 8, 52, 10, 52, 12, 52, 672, 9, 52, 1, 52, 3, 52, 675, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 684, 8, 52, 10, 52, 12, 52, 687, 9, 52, 1, 52, 3, 52, 690, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 699, 8, 52, 10, 52, 12, 52, 702, 9, 52, 1, 52, 3, 52, 705, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 712, 8, 52, 1, 52, 1, 52, 3, 52, 716, 8, 52, 1, 53, 1, 53, 1, 53, 5, 53, 721, 8, 53, 10, 53, 12, 53, 724, 9, 53, 1, 53, 3, 53, 727, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 732, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 4, 54, 739, 8, 54, 11, 54, 12, 54, 740, 1, 54, 1, 54, 3, 54, 745, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 769, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 786, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 792, 8, 54, 1, 54, 3, 54, 795, 8, 54, 1, 54, 3, 54, 798, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 808, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 814, 8, 54, 1, 54, 3, 54, 817, 8, 54, 1, 54, 3, 54, 820, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 828, 8, 54, 1, 54, 3, 54, 831, 8, 54, 1, 54, 1, 54, 3, 54, 835, 8, 54, 1, 54, 3, 54, 838, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 852, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 869, 8, 54, 1, 54, 1, 54, 1, 54, 3, 54, 874, 8, 54, 1, 54, 1, 54, 3, 54, 878, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 884, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 891, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 903, 8, 54, 1, 54, 1, 54, 3, 54, 907, 8, 54, 1, 54, 3, 54, 910, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 919, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 933, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 960, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 968, 8, 54, 5, 54, 970, 8, 54, 10, 54, 12, 54, 973, 9, 54, 1, 55, 1, 55, 1, 55, 5, 55, 978, 8, 55, 10, 55, 12, 55, 981, 9, 55, 1, 55, 3, 55, 984, 8, 55, 1, 56, 1, 56, 3, 56, 988, 8, 56, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 994, 8, 57, 10, 57, 12, 57, 997, 9, 57, 1, 57, 3, 57, 1000, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 1007, 8, 57, 10, 57, 12, 57, 1010, 9, 57, 1, 57, 3, 57, 1013, 8, 57, 3, 57, 1015, 8, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 5, 58, 1023, 8, 58, 10, 58, 12, 58, 1026, 9, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 5, 58, 1034, 8, 58, 10, 58, 12, 58, 1037, 9, 58, 1, 58, 1, 58, 3, 58, 1041, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 1048, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 1061, 8, 59, 1, 60, 1, 60, 1, 60, 5, 60, 1066, 8, 60, 10, 60, 12, 60, 1069, 9, 60, 1, 60, 3, 60, 1072, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 3, 61, 1084, 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 3, 62, 1090, 8, 62, 1, 62, 3, 62, 1093, 8, 62, 1, 63, 1, 63, 1, 63, 5, 63, 1098, 8, 63, 10, 63, 12, 63, 1101, 9, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1112, 8, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1118, 8, 64, 5, 64, 1120, 8, 64, 10, 64, 12, 64, 1123, 9, 64, 1, 65, 1, 65, 1, 65, 3, 65, 1128, 8, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 3, 66, 1135, 8, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 5, 67, 1142, 8, 67, 10, 67, 12, 67, 1145, 9, 67, 1, 67, 3, 67, 1148, 8, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1158, 8, 69, 3, 69, 1160, 8, 69, 1, 70, 3, 70, 1163, 8, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 3, 70, 1171, 8, 70, 1, 71, 1, 71, 1, 71, 3, 71, 1176, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 74, 1, 74, 1, 75, 1, 75, 3, 75, 1186, 8, 75, 1, 76, 1, 76, 1, 76, 3, 76, 1191, 8, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 3, 79, 1203, 8, 79, 1, 80, 1, 80, 5, 80, 1207, 8, 80, 10, 80, 12, 80, 1210, 9, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 3, 81, 1219, 8, 81, 1, 82, 1, 82, 5, 82, 1223, 8, 82, 10, 82, 12, 82, 1226, 9, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 3, 83, 1235, 8, 83, 1, 83, 0, 3, 70, 108, 128, 84, 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, 0, 16, 2, 0, 17, 17, 72, 72, 2, 0, 42, 42, 49, 49, 3, 0, 1, 1, 4, 4, 8, 8, 4, 0, 1, 1, 3, 4, 8, 8, 78, 78, 2, 0, 49, 49, 71, 71, 2, 0, 1, 1, 4, 4, 2, 0, 7, 7, 21, 22, 2, 0, 28, 28, 47, 47, 2, 0, 69, 69, 74, 74, 3, 0, 10, 10, 48, 48, 87, 87, 2, 0, 39, 39, 51, 51, 1, 0, 103, 104, 2, 0, 114, 114, 134, 134, 7, 0, 20, 20, 36, 36, 53, 54, 68, 68, 76, 76, 93, 93, 99, 99, 12, 0, 1, 19, 21, 28, 30, 35, 37, 40, 42, 49, 51, 52, 56, 56, 58, 67, 69, 75, 77, 92, 94, 95, 97, 98, 4, 0, 19, 19, 28, 28, 37, 37, 46, 46, 1394, 0, 171, 1, 0, 0, 0, 2, 178, 1, 0, 0, 0, 4, 180, 1, 0, 0, 0, 6, 182, 1, 0, 0, 0, 8, 189, 1, 0, 0, 0, 10, 209, 1, 0, 0, 0, 12, 211, 1, 0, 0, 0, 14, 218, 1, 0, 0, 0, 16, 227, 1, 0, 0, 0, 18, 235, 1, 0, 0, 0, 20, 257, 1, 0, 0, 0, 22, 266, 1, 0, 0, 0, 24, 271, 1, 0, 0, 0, 26, 275, 1, 0, 0, 0, 28, 277, 1, 0, 0, 0, 30, 286, 1, 0, 0, 0, 32, 290, 1, 0, 0, 0, 34, 304, 1, 0, 0, 0, 36, 308, 1, 0, 0, 0, 38, 323, 1, 0, 0, 0, 40, 326, 1, 0, 0, 0, 42, 375, 1, 0, 0, 0, 44, 378, 1, 0, 0, 0, 46, 384, 1, 0, 0, 0, 48, 388, 1, 0, 0, 0, 50, 394, 1, 0, 0, 0, 52, 412, 1, 0, 0, 0, 54, 415, 1, 0, 0, 0, 56, 418, 1, 0, 0, 0, 58, 428, 1, 0, 0, 0, 60, 431, 1, 0, 0, 0, 62, 435, 1, 0, 0, 0, 64, 468, 1, 0, 0, 0, 66, 470, 1, 0, 0, 0, 68, 473, 1, 0, 0, 0, 70, 488, 1, 0, 0, 0, 72, 550, 1, 0, 0, 0, 74, 555, 1, 0, 0, 0, 76, 566, 1, 0, 0, 0, 78, 568, 1, 0, 0, 0, 80, 574, 1, 0, 0, 0, 82, 582, 1, 0, 0, 0, 84, 600, 1, 0, 0, 0, 86, 602, 1, 0, 0, 0, 88, 610, 1, 0, 0, 0, 90, 615, 1, 0, 0, 0, 92, 623, 1, 0, 0, 0, 94, 627, 1, 0, 0, 0, 96, 631, 1, 0, 0, 0, 98, 640, 1, 0, 0, 0, 100, 654, 1, 0, 0, 0, 102, 656, 1, 0, 0, 0, 104, 715, 1, 0, 0, 0, 106, 717, 1, 0, 0, 0, 108, 877, 1, 0, 0, 0, 110, 974, 1, 0, 0, 0, 112, 987, 1, 0, 0, 0, 114, 1014, 1, 0, 0, 0, 116, 1047, 1, 0, 0, 0, 118, 1060, 1, 0, 0, 0, 120, 1062, 1, 0, 0, 0, 122, 1083, 1, 0, 0, 0, 124, 1092, 1, 0, 0, 0, 126, 1094, 1, 0, 0, 0, 128, 1111, 1, 0, 0, 0, 130, 1124, 1, 0, 0, 0, 132, 1134, 1, 0, 0, 0, 134, 1138, 1, 0, 0, 0, 136, 1149, 1, 0, 0, 0, 138, 1159, 1, 0, 0, 0, 140, 1162, 1, 0, 0, 0, 142, 1175, 1, 0, 0, 0, 144, 1177, 1, 0, 0, 0, 146, 1179, 1, 0, 0, 0, 148, 1181, 1, 0, 0, 0, 150, 1185, 1, 0, 0, 0, 152, 1190, 1, 0, 0, 0, 154, 1192, 1, 0, 0, 0, 156, 1196, 1, 0, 0, 0, 158, 1202, 1, 0, 0, 0, 160, 1204, 1, 0, 0, 0, 162, 1218, 1, 0, 0, 0, 164, 1220, 1, 0, 0, 0, 166, 1234, 1, 0, 0, 0, 168, 170, 3, 2, 1, 0, 169, 168, 1, 0, 0, 0, 170, 173, 1, 0, 0, 0, 171, 169, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 171, 1, 0, 0, 0, 174, 175, 5, 0, 0, 1, 175, 1, 1, 0, 0, 0, 176, 179, 3, 6, 3, 0, 177, 179, 3, 10, 5, 0, 178, 176, 1, 0, 0, 0, 178, 177, 1, 0, 0, 0, 179, 3, 1, 0, 0, 0, 180, 181, 3, 108, 54, 0, 181, 5, 1, 0, 0, 0, 182, 183, 5, 50, 0, 0, 183, 187, 3, 152, 76, 0, 184, 185, 5, 111, 0, 0, 185, 186, 5, 118, 0, 0, 186, 188, 3, 4, 2, 0, 187, 184, 1, 0, 0, 0, 187, 188, 1, 0, 0, 0, 188, 7, 1, 0, 0, 0, 189, 194, 3, 152, 76, 0, 190, 191, 5, 112, 0, 0, 191, 193, 3, 152, 76, 0, 192, 190, 1, 0, 0, 0, 193, 196, 1, 0, 0, 0, 194, 192, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 197, 199, 5, 112, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 9, 1, 0, 0, 0, 200, 210, 3, 12, 6, 0, 201, 210, 3, 14, 7, 0, 202, 210, 3, 16, 8, 0, 203, 210, 3, 18, 9, 0, 204, 210, 3, 20, 10, 0, 205, 210, 3, 22, 11, 0, 206, 210, 3, 24, 12, 0, 207, 210, 3, 26, 13, 0, 208, 210, 3, 28, 14, 0, 209, 200, 1, 0, 0, 0, 209, 201, 1, 0, 0, 0, 209, 202, 1, 0, 0, 0, 209, 203, 1, 0, 0, 0, 209, 204, 1, 0, 0, 0, 209, 205, 1, 0, 0, 0, 209, 206, 1, 0, 0, 0, 209, 207, 1, 0, 0, 0, 209, 208, 1, 0, 0, 0, 210, 11, 1, 0, 0, 0, 211, 213, 5, 70, 0, 0, 212, 214, 3, 4, 2, 0, 213, 212, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 216, 1, 0, 0, 0, 215, 217, 5, 145, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 13, 1, 0, 0, 0, 218, 219, 5, 38, 0, 0, 219, 220, 5, 126, 0, 0, 220, 221, 3, 4, 2, 0, 221, 222, 5, 144, 0, 0, 222, 225, 3, 10, 5, 0, 223, 224, 5, 24, 0, 0, 224, 226, 3, 10, 5, 0, 225, 223, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 15, 1, 0, 0, 0, 227, 228, 5, 96, 0, 0, 228, 229, 5, 126, 0, 0, 229, 230, 3, 4, 2, 0, 230, 231, 5, 144, 0, 0, 231, 233, 3, 10, 5, 0, 232, 234, 5, 145, 0, 0, 233, 232, 1, 0, 0, 0, 233, 234, 1, 0, 0, 0, 234, 17, 1, 0, 0, 0, 235, 236, 5, 31, 0, 0, 236, 240, 5, 126, 0, 0, 237, 241, 3, 6, 3, 0, 238, 241, 3, 22, 11, 0, 239, 241, 3, 4, 2, 0, 240, 237, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 240, 239, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 244, 5, 145, 0, 0, 243, 245, 3, 4, 2, 0, 244, 243, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 250, 5, 145, 0, 0, 247, 251, 3, 6, 3, 0, 248, 251, 3, 22, 11, 0, 249, 251, 3, 4, 2, 0, 250, 247, 1, 0, 0, 0, 250, 248, 1, 0, 0, 0, 250, 249, 1, 0, 0, 0, 250, 251, 1, 0, 0, 0, 251, 252, 1, 0, 0, 0, 252, 253, 5, 144, 0, 0, 253, 255, 3, 10, 5, 0, 254, 256, 5, 145, 0, 0, 255, 254, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 19, 1, 0, 0, 0, 257, 258, 5, 29, 0, 0, 258, 259, 3, 152, 76, 0, 259, 261, 5, 126, 0, 0, 260, 262, 3, 8, 4, 0, 261, 260, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 263, 1, 0, 0, 0, 263, 264, 5, 144, 0, 0, 264, 265, 3, 28, 14, 0, 265, 21, 1, 0, 0, 0, 266, 267, 3, 4, 2, 0, 267, 268, 5, 111, 0, 0, 268, 269, 5, 118, 0, 0, 269, 270, 3, 4, 2, 0, 270, 23, 1, 0, 0, 0, 271, 273, 3, 4, 2, 0, 272, 274, 5, 145, 0, 0, 273, 272, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 25, 1, 0, 0, 0, 275, 276, 5, 145, 0, 0, 276, 27, 1, 0, 0, 0, 277, 281, 5, 124, 0, 0, 278, 280, 3, 2, 1, 0, 279, 278, 1, 0, 0, 0, 280, 283, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 281, 282, 1, 0, 0, 0, 282, 284, 1, 0, 0, 0, 283, 281, 1, 0, 0, 0, 284, 285, 5, 142, 0, 0, 285, 29, 1, 0, 0, 0, 286, 287, 3, 4, 2, 0, 287, 288, 5, 111, 0, 0, 288, 289, 3, 4, 2, 0, 289, 31, 1, 0, 0, 0, 290, 295, 3, 30, 15, 0, 291, 292, 5, 112, 0, 0, 292, 294, 3, 30, 15, 0, 293, 291, 1, 0, 0, 0, 294, 297, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 295, 296, 1, 0, 0, 0, 296, 299, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 298, 300, 5, 112, 0, 0, 299, 298, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 33, 1, 0, 0, 0, 301, 305, 3, 36, 18, 0, 302, 305, 3, 40, 20, 0, 303, 305, 3, 116, 58, 0, 304, 301, 1, 0, 0, 0, 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 307, 5, 0, 0, 1, 307, 35, 1, 0, 0, 0, 308, 314, 3, 38, 19, 0, 309, 310, 5, 91, 0, 0, 310, 311, 5, 1, 0, 0, 311, 313, 3, 38, 19, 0, 312, 309, 1, 0, 0, 0, 313, 316, 1, 0, 0, 0, 314, 312, 1, 0, 0, 0, 314, 315, 1, 0, 0, 0, 315, 37, 1, 0, 0, 0, 316, 314, 1, 0, 0, 0, 317, 324, 3, 40, 20, 0, 318, 319, 5, 126, 0, 0, 319, 320, 3, 36, 18, 0, 320, 321, 5, 144, 0, 0, 321, 324, 1, 0, 0, 0, 322, 324, 3, 156, 78, 0, 323, 317, 1, 0, 0, 0, 323, 318, 1, 0, 0, 0, 323, 322, 1, 0, 0, 0, 324, 39, 1, 0, 0, 0, 325, 327, 3, 42, 21, 0, 326, 325, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 328, 1, 0, 0, 0, 328, 330, 5, 77, 0, 0, 329, 331, 5, 23, 0, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 333, 1, 0, 0, 0, 332, 334, 3, 44, 22, 0, 333, 332, 1, 0, 0, 0, 333, 334, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 337, 3, 106, 53, 0, 336, 338, 3, 46, 23, 0, 337, 336, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 340, 1, 0, 0, 0, 339, 341, 3, 48, 24, 0, 340, 339, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 343, 1, 0, 0, 0, 342, 344, 3, 52, 26, 0, 343, 342, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 346, 1, 0, 0, 0, 345, 347, 3, 54, 27, 0, 346, 345, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 349, 1, 0, 0, 0, 348, 350, 3, 56, 28, 0, 349, 348, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 353, 1, 0, 0, 0, 351, 352, 5, 98, 0, 0, 352, 354, 7, 0, 0, 0, 353, 351, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 357, 1, 0, 0, 0, 355, 356, 5, 98, 0, 0, 356, 358, 5, 86, 0, 0, 357, 355, 1, 0, 0, 0, 357, 358, 1, 0, 0, 0, 358, 360, 1, 0, 0, 0, 359, 361, 3, 58, 29, 0, 360, 359, 1, 0, 0, 0, 360, 361, 1, 0, 0, 0, 361, 363, 1, 0, 0, 0, 362, 364, 3, 50, 25, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 366, 1, 0, 0, 0, 365, 367, 3, 60, 30, 0, 366, 365, 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 370, 1, 0, 0, 0, 368, 371, 3, 64, 32, 0, 369, 371, 3, 66, 33, 0, 370, 368, 1, 0, 0, 0, 370, 369, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 374, 3, 68, 34, 0, 373, 372, 1, 0, 0, 0, 373, 374, 1, 0, 0, 0, 374, 41, 1, 0, 0, 0, 375, 376, 5, 98, 0, 0, 376, 377, 3, 120, 60, 0, 377, 43, 1, 0, 0, 0, 378, 379, 5, 85, 0, 0, 379, 382, 5, 104, 0, 0, 380, 381, 5, 98, 0, 0, 381, 383, 5, 82, 0, 0, 382, 380, 1, 0, 0, 0, 382, 383, 1, 0, 0, 0, 383, 45, 1, 0, 0, 0, 384, 385, 5, 32, 0, 0, 385, 386, 3, 70, 35, 0, 386, 47, 1, 0, 0, 0, 387, 389, 7, 1, 0, 0, 388, 387, 1, 0, 0, 0, 388, 389, 1, 0, 0, 0, 389, 390, 1, 0, 0, 0, 390, 391, 5, 5, 0, 0, 391, 392, 5, 45, 0, 0, 392, 393, 3, 106, 53, 0, 393, 49, 1, 0, 0, 0, 394, 395, 5, 97, 0, 0, 395, 396, 3, 152, 76, 0, 396, 397, 5, 6, 0, 0, 397, 398, 5, 126, 0, 0, 398, 399, 3, 90, 45, 0, 399, 409, 5, 144, 0, 0, 400, 401, 5, 112, 0, 0, 401, 402, 3, 152, 76, 0, 402, 403, 5, 6, 0, 0, 403, 404, 5, 126, 0, 0, 404, 405, 3, 90, 45, 0, 405, 406, 5, 144, 0, 0, 406, 408, 1, 0, 0, 0, 407, 400, 1, 0, 0, 0, 408, 411, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 51, 1, 0, 0, 0, 411, 409, 1, 0, 0, 0, 412, 413, 5, 67, 0, 0, 413, 414, 3, 108, 54, 0, 414, 53, 1, 0, 0, 0, 415, 416, 5, 95, 0, 0, 416, 417, 3, 108, 54, 0, 417, 55, 1, 0, 0, 0, 418, 419, 5, 34, 0, 0, 419, 426, 5, 11, 0, 0, 420, 421, 7, 0, 0, 0, 421, 422, 5, 126, 0, 0, 422, 423, 3, 106, 53, 0, 423, 424, 5, 144, 0, 0, 424, 427, 1, 0, 0, 0, 425, 427, 3, 106, 53, 0, 426, 420, 1, 0, 0, 0, 426, 425, 1, 0, 0, 0, 427, 57, 1, 0, 0, 0, 428, 429, 5, 35, 0, 0, 429, 430, 3, 108, 54, 0, 430, 59, 1, 0, 0, 0, 431, 432, 5, 62, 0, 0, 432, 433, 5, 11, 0, 0, 433, 434, 3, 80, 40, 0, 434, 61, 1, 0, 0, 0, 435, 436, 5, 62, 0, 0, 436, 437, 5, 11, 0, 0, 437, 438, 3, 106, 53, 0, 438, 63, 1, 0, 0, 0, 439, 440, 5, 52, 0, 0, 440, 443, 3, 108, 54, 0, 441, 442, 5, 112, 0, 0, 442, 444, 3, 108, 54, 0, 443, 441, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 449, 1, 0, 0, 0, 445, 446, 5, 98, 0, 0, 446, 450, 5, 82, 0, 0, 447, 448, 5, 11, 0, 0, 448, 450, 3, 106, 53, 0, 449, 445, 1, 0, 0, 0, 449, 447, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 469, 1, 0, 0, 0, 451, 452, 5, 52, 0, 0, 452, 455, 3, 108, 54, 0, 453, 454, 5, 98, 0, 0, 454, 456, 5, 82, 0, 0, 455, 453, 1, 0, 0, 0, 455, 456, 1, 0, 0, 0, 456, 457, 1, 0, 0, 0, 457, 458, 5, 59, 0, 0, 458, 459, 3, 108, 54, 0, 459, 469, 1, 0, 0, 0, 460, 461, 5, 52, 0, 0, 461, 462, 3, 108, 54, 0, 462, 463, 5, 59, 0, 0, 463, 466, 3, 108, 54, 0, 464, 465, 5, 11, 0, 0, 465, 467, 3, 106, 53, 0, 466, 464, 1, 0, 0, 0, 466, 467, 1, 0, 0, 0, 467, 469, 1, 0, 0, 0, 468, 439, 1, 0, 0, 0, 468, 451, 1, 0, 0, 0, 468, 460, 1, 0, 0, 0, 469, 65, 1, 0, 0, 0, 470, 471, 5, 59, 0, 0, 471, 472, 3, 108, 54, 0, 472, 67, 1, 0, 0, 0, 473, 474, 5, 79, 0, 0, 474, 475, 3, 86, 43, 0, 475, 69, 1, 0, 0, 0, 476, 477, 6, 35, -1, 0, 477, 479, 3, 128, 64, 0, 478, 480, 5, 27, 0, 0, 479, 478, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 482, 1, 0, 0, 0, 481, 483, 3, 78, 39, 0, 482, 481, 1, 0, 0, 0, 482, 483, 1, 0, 0, 0, 483, 489, 1, 0, 0, 0, 484, 485, 5, 126, 0, 0, 485, 486, 3, 70, 35, 0, 486, 487, 5, 144, 0, 0, 487, 489, 1, 0, 0, 0, 488, 476, 1, 0, 0, 0, 488, 484, 1, 0, 0, 0, 489, 504, 1, 0, 0, 0, 490, 491, 10, 3, 0, 0, 491, 492, 3, 74, 37, 0, 492, 493, 3, 70, 35, 4, 493, 503, 1, 0, 0, 0, 494, 496, 10, 4, 0, 0, 495, 497, 3, 72, 36, 0, 496, 495, 1, 0, 0, 0, 496, 497, 1, 0, 0, 0, 497, 498, 1, 0, 0, 0, 498, 499, 5, 45, 0, 0, 499, 500, 3, 70, 35, 0, 500, 501, 3, 76, 38, 0, 501, 503, 1, 0, 0, 0, 502, 490, 1, 0, 0, 0, 502, 494, 1, 0, 0, 0, 503, 506, 1, 0, 0, 0, 504, 502, 1, 0, 0, 0, 504, 505, 1, 0, 0, 0, 505, 71, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 507, 509, 7, 2, 0, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 517, 5, 42, 0, 0, 511, 513, 5, 42, 0, 0, 512, 514, 7, 2, 0, 0, 513, 512, 1, 0, 0, 0, 513, 514, 1, 0, 0, 0, 514, 517, 1, 0, 0, 0, 515, 517, 7, 2, 0, 0, 516, 508, 1, 0, 0, 0, 516, 511, 1, 0, 0, 0, 516, 515, 1, 0, 0, 0, 517, 551, 1, 0, 0, 0, 518, 520, 7, 3, 0, 0, 519, 518, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 523, 7, 4, 0, 0, 522, 524, 5, 63, 0, 0, 523, 522, 1, 0, 0, 0, 523, 524, 1, 0, 0, 0, 524, 533, 1, 0, 0, 0, 525, 527, 7, 4, 0, 0, 526, 528, 5, 63, 0, 0, 527, 526, 1, 0, 0, 0, 527, 528, 1, 0, 0, 0, 528, 530, 1, 0, 0, 0, 529, 531, 7, 3, 0, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 533, 1, 0, 0, 0, 532, 519, 1, 0, 0, 0, 532, 525, 1, 0, 0, 0, 533, 551, 1, 0, 0, 0, 534, 536, 7, 5, 0, 0, 535, 534, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 539, 5, 33, 0, 0, 538, 540, 5, 63, 0, 0, 539, 538, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 549, 1, 0, 0, 0, 541, 543, 5, 33, 0, 0, 542, 544, 5, 63, 0, 0, 543, 542, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 546, 1, 0, 0, 0, 545, 547, 7, 5, 0, 0, 546, 545, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 549, 1, 0, 0, 0, 548, 535, 1, 0, 0, 0, 548, 541, 1, 0, 0, 0, 549, 551, 1, 0, 0, 0, 550, 516, 1, 0, 0, 0, 550, 532, 1, 0, 0, 0, 550, 548, 1, 0, 0, 0, 551, 73, 1, 0, 0, 0, 552, 553, 5, 16, 0, 0, 553, 556, 5, 45, 0, 0, 554, 556, 5, 112, 0, 0, 555, 552, 1, 0, 0, 0, 555, 554, 1, 0, 0, 0, 556, 75, 1, 0, 0, 0, 557, 558, 5, 60, 0, 0, 558, 567, 3, 106, 53, 0, 559, 560, 5, 92, 0, 0, 560, 561, 5, 126, 0, 0, 561, 562, 3, 106, 53, 0, 562, 563, 5, 144, 0, 0, 563, 567, 1, 0, 0, 0, 564, 565, 5, 92, 0, 0, 565, 567, 3, 106, 53, 0, 566, 557, 1, 0, 0, 0, 566, 559, 1, 0, 0, 0, 566, 564, 1, 0, 0, 0, 567, 77, 1, 0, 0, 0, 568, 569, 5, 75, 0, 0, 569, 572, 3, 84, 42, 0, 570, 571, 5, 59, 0, 0, 571, 573, 3, 84, 42, 0, 572, 570, 1, 0, 0, 0, 572, 573, 1, 0, 0, 0, 573, 79, 1, 0, 0, 0, 574, 579, 3, 82, 41, 0, 575, 576, 5, 112, 0, 0, 576, 578, 3, 82, 41, 0, 577, 575, 1, 0, 0, 0, 578, 581, 1, 0, 0, 0, 579, 577, 1, 0, 0, 0, 579, 580, 1, 0, 0, 0, 580, 81, 1, 0, 0, 0, 581, 579, 1, 0, 0, 0, 582, 584, 3, 108, 54, 0, 583, 585, 7, 6, 0, 0, 584, 583, 1, 0, 0, 0, 584, 585, 1, 0, 0, 0, 585, 588, 1, 0, 0, 0, 586, 587, 5, 58, 0, 0, 587, 589, 7, 7, 0, 0, 588, 586, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 592, 1, 0, 0, 0, 590, 591, 5, 15, 0, 0, 591, 593, 5, 106, 0, 0, 592, 590, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 83, 1, 0, 0, 0, 594, 601, 3, 156, 78, 0, 595, 598, 3, 140, 70, 0, 596, 597, 5, 146, 0, 0, 597, 599, 3, 140, 70, 0, 598, 596, 1, 0, 0, 0, 598, 599, 1, 0, 0, 0, 599, 601, 1, 0, 0, 0, 600, 594, 1, 0, 0, 0, 600, 595, 1, 0, 0, 0, 601, 85, 1, 0, 0, 0, 602, 607, 3, 88, 44, 0, 603, 604, 5, 112, 0, 0, 604, 606, 3, 88, 44, 0, 605, 603, 1, 0, 0, 0, 606, 609, 1, 0, 0, 0, 607, 605, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 87, 1, 0, 0, 0, 609, 607, 1, 0, 0, 0, 610, 611, 3, 152, 76, 0, 611, 612, 5, 118, 0, 0, 612, 613, 3, 142, 71, 0, 613, 89, 1, 0, 0, 0, 614, 616, 3, 92, 46, 0, 615, 614, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 618, 1, 0, 0, 0, 617, 619, 3, 94, 47, 0, 618, 617, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 621, 1, 0, 0, 0, 620, 622, 3, 96, 48, 0, 621, 620, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 91, 1, 0, 0, 0, 623, 624, 5, 65, 0, 0, 624, 625, 5, 11, 0, 0, 625, 626, 3, 106, 53, 0, 626, 93, 1, 0, 0, 0, 627, 628, 5, 62, 0, 0, 628, 629, 5, 11, 0, 0, 629, 630, 3, 80, 40, 0, 630, 95, 1, 0, 0, 0, 631, 632, 7, 8, 0, 0, 632, 633, 3, 98, 49, 0, 633, 97, 1, 0, 0, 0, 634, 641, 3, 100, 50, 0, 635, 636, 5, 9, 0, 0, 636, 637, 3, 100, 50, 0, 637, 638, 5, 2, 0, 0, 638, 639, 3, 100, 50, 0, 639, 641, 1, 0, 0, 0, 640, 634, 1, 0, 0, 0, 640, 635, 1, 0, 0, 0, 641, 99, 1, 0, 0, 0, 642, 643, 5, 18, 0, 0, 643, 655, 5, 73, 0, 0, 644, 645, 5, 90, 0, 0, 645, 655, 5, 66, 0, 0, 646, 647, 5, 90, 0, 0, 647, 655, 5, 30, 0, 0, 648, 649, 3, 140, 70, 0, 649, 650, 5, 66, 0, 0, 650, 655, 1, 0, 0, 0, 651, 652, 3, 140, 70, 0, 652, 653, 5, 30, 0, 0, 653, 655, 1, 0, 0, 0, 654, 642, 1, 0, 0, 0, 654, 644, 1, 0, 0, 0, 654, 646, 1, 0, 0, 0, 654, 648, 1, 0, 0, 0, 654, 651, 1, 0, 0, 0, 655, 101, 1, 0, 0, 0, 656, 657, 3, 108, 54, 0, 657, 658, 5, 0, 0, 1, 658, 103, 1, 0, 0, 0, 659, 716, 3, 152, 76, 0, 660, 661, 3, 152, 76, 0, 661, 662, 5, 126, 0, 0, 662, 663, 3, 152, 76, 0, 663, 670, 3, 104, 52, 0, 664, 665, 5, 112, 0, 0, 665, 666, 3, 152, 76, 0, 666, 667, 3, 104, 52, 0, 667, 669, 1, 0, 0, 0, 668, 664, 1, 0, 0, 0, 669, 672, 1, 0, 0, 0, 670, 668, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 674, 1, 0, 0, 0, 672, 670, 1, 0, 0, 0, 673, 675, 5, 112, 0, 0, 674, 673, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 677, 5, 144, 0, 0, 677, 716, 1, 0, 0, 0, 678, 679, 3, 152, 76, 0, 679, 680, 5, 126, 0, 0, 680, 685, 3, 154, 77, 0, 681, 682, 5, 112, 0, 0, 682, 684, 3, 154, 77, 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, 689, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 688, 690, 5, 112, 0, 0, 689, 688, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 692, 5, 144, 0, 0, 692, 716, 1, 0, 0, 0, 693, 694, 3, 152, 76, 0, 694, 695, 5, 126, 0, 0, 695, 700, 3, 104, 52, 0, 696, 697, 5, 112, 0, 0, 697, 699, 3, 104, 52, 0, 698, 696, 1, 0, 0, 0, 699, 702, 1, 0, 0, 0, 700, 698, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 704, 1, 0, 0, 0, 702, 700, 1, 0, 0, 0, 703, 705, 5, 112, 0, 0, 704, 703, 1, 0, 0, 0, 704, 705, 1, 0, 0, 0, 705, 706, 1, 0, 0, 0, 706, 707, 5, 144, 0, 0, 707, 716, 1, 0, 0, 0, 708, 709, 3, 152, 76, 0, 709, 711, 5, 126, 0, 0, 710, 712, 3, 106, 53, 0, 711, 710, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 713, 1, 0, 0, 0, 713, 714, 5, 144, 0, 0, 714, 716, 1, 0, 0, 0, 715, 659, 1, 0, 0, 0, 715, 660, 1, 0, 0, 0, 715, 678, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 708, 1, 0, 0, 0, 716, 105, 1, 0, 0, 0, 717, 722, 3, 108, 54, 0, 718, 719, 5, 112, 0, 0, 719, 721, 3, 108, 54, 0, 720, 718, 1, 0, 0, 0, 721, 724, 1, 0, 0, 0, 722, 720, 1, 0, 0, 0, 722, 723, 1, 0, 0, 0, 723, 726, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 725, 727, 5, 112, 0, 0, 726, 725, 1, 0, 0, 0, 726, 727, 1, 0, 0, 0, 727, 107, 1, 0, 0, 0, 728, 729, 6, 54, -1, 0, 729, 731, 5, 12, 0, 0, 730, 732, 3, 108, 54, 0, 731, 730, 1, 0, 0, 0, 731, 732, 1, 0, 0, 0, 732, 738, 1, 0, 0, 0, 733, 734, 5, 94, 0, 0, 734, 735, 3, 108, 54, 0, 735, 736, 5, 81, 0, 0, 736, 737, 3, 108, 54, 0, 737, 739, 1, 0, 0, 0, 738, 733, 1, 0, 0, 0, 739, 740, 1, 0, 0, 0, 740, 738, 1, 0, 0, 0, 740, 741, 1, 0, 0, 0, 741, 744, 1, 0, 0, 0, 742, 743, 5, 24, 0, 0, 743, 745, 3, 108, 54, 0, 744, 742, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 746, 1, 0, 0, 0, 746, 747, 5, 25, 0, 0, 747, 878, 1, 0, 0, 0, 748, 749, 5, 13, 0, 0, 749, 750, 5, 126, 0, 0, 750, 751, 3, 108, 54, 0, 751, 752, 5, 6, 0, 0, 752, 753, 3, 104, 52, 0, 753, 754, 5, 144, 0, 0, 754, 878, 1, 0, 0, 0, 755, 756, 5, 19, 0, 0, 756, 878, 5, 106, 0, 0, 757, 758, 5, 43, 0, 0, 758, 759, 3, 108, 54, 0, 759, 760, 3, 144, 72, 0, 760, 878, 1, 0, 0, 0, 761, 762, 5, 80, 0, 0, 762, 763, 5, 126, 0, 0, 763, 764, 3, 108, 54, 0, 764, 765, 5, 32, 0, 0, 765, 768, 3, 108, 54, 0, 766, 767, 5, 31, 0, 0, 767, 769, 3, 108, 54, 0, 768, 766, 1, 0, 0, 0, 768, 769, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 771, 5, 144, 0, 0, 771, 878, 1, 0, 0, 0, 772, 773, 5, 83, 0, 0, 773, 878, 5, 106, 0, 0, 774, 775, 5, 88, 0, 0, 775, 776, 5, 126, 0, 0, 776, 777, 7, 9, 0, 0, 777, 778, 3, 158, 79, 0, 778, 779, 5, 32, 0, 0, 779, 780, 3, 108, 54, 0, 780, 781, 5, 144, 0, 0, 781, 878, 1, 0, 0, 0, 782, 783, 3, 152, 76, 0, 783, 785, 5, 126, 0, 0, 784, 786, 3, 106, 53, 0, 785, 784, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 787, 1, 0, 0, 0, 787, 788, 5, 144, 0, 0, 788, 797, 1, 0, 0, 0, 789, 791, 5, 126, 0, 0, 790, 792, 5, 23, 0, 0, 791, 790, 1, 0, 0, 0, 791, 792, 1, 0, 0, 0, 792, 794, 1, 0, 0, 0, 793, 795, 3, 110, 55, 0, 794, 793, 1, 0, 0, 0, 794, 795, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 798, 5, 144, 0, 0, 797, 789, 1, 0, 0, 0, 797, 798, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 800, 5, 64, 0, 0, 800, 801, 5, 126, 0, 0, 801, 802, 3, 90, 45, 0, 802, 803, 5, 144, 0, 0, 803, 878, 1, 0, 0, 0, 804, 805, 3, 152, 76, 0, 805, 807, 5, 126, 0, 0, 806, 808, 3, 106, 53, 0, 807, 806, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 810, 5, 144, 0, 0, 810, 819, 1, 0, 0, 0, 811, 813, 5, 126, 0, 0, 812, 814, 5, 23, 0, 0, 813, 812, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 817, 3, 110, 55, 0, 816, 815, 1, 0, 0, 0, 816, 817, 1, 0, 0, 0, 817, 818, 1, 0, 0, 0, 818, 820, 5, 144, 0, 0, 819, 811, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 821, 1, 0, 0, 0, 821, 822, 5, 64, 0, 0, 822, 823, 3, 152, 76, 0, 823, 878, 1, 0, 0, 0, 824, 830, 3, 152, 76, 0, 825, 827, 5, 126, 0, 0, 826, 828, 3, 106, 53, 0, 827, 826, 1, 0, 0, 0, 827, 828, 1, 0, 0, 0, 828, 829, 1, 0, 0, 0, 829, 831, 5, 144, 0, 0, 830, 825, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 1, 0, 0, 0, 832, 834, 5, 126, 0, 0, 833, 835, 5, 23, 0, 0, 834, 833, 1, 0, 0, 0, 834, 835, 1, 0, 0, 0, 835, 837, 1, 0, 0, 0, 836, 838, 3, 110, 55, 0, 837, 836, 1, 0, 0, 0, 837, 838, 1, 0, 0, 0, 838, 839, 1, 0, 0, 0, 839, 840, 5, 144, 0, 0, 840, 878, 1, 0, 0, 0, 841, 878, 3, 116, 58, 0, 842, 878, 3, 160, 80, 0, 843, 878, 3, 142, 71, 0, 844, 845, 5, 114, 0, 0, 845, 878, 3, 108, 54, 19, 846, 847, 5, 56, 0, 0, 847, 878, 3, 108, 54, 13, 848, 849, 3, 132, 66, 0, 849, 850, 5, 116, 0, 0, 850, 852, 1, 0, 0, 0, 851, 848, 1, 0, 0, 0, 851, 852, 1, 0, 0, 0, 852, 853, 1, 0, 0, 0, 853, 878, 5, 108, 0, 0, 854, 855, 5, 126, 0, 0, 855, 856, 3, 36, 18, 0, 856, 857, 5, 144, 0, 0, 857, 878, 1, 0, 0, 0, 858, 859, 5, 126, 0, 0, 859, 860, 3, 108, 54, 0, 860, 861, 5, 144, 0, 0, 861, 878, 1, 0, 0, 0, 862, 863, 5, 126, 0, 0, 863, 864, 3, 106, 53, 0, 864, 865, 5, 144, 0, 0, 865, 878, 1, 0, 0, 0, 866, 868, 5, 125, 0, 0, 867, 869, 3, 106, 53, 0, 868, 867, 1, 0, 0, 0, 868, 869, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 878, 5, 143, 0, 0, 871, 873, 5, 124, 0, 0, 872, 874, 3, 32, 16, 0, 873, 872, 1, 0, 0, 0, 873, 874, 1, 0, 0, 0, 874, 875, 1, 0, 0, 0, 875, 878, 5, 142, 0, 0, 876, 878, 3, 124, 62, 0, 877, 728, 1, 0, 0, 0, 877, 748, 1, 0, 0, 0, 877, 755, 1, 0, 0, 0, 877, 757, 1, 0, 0, 0, 877, 761, 1, 0, 0, 0, 877, 772, 1, 0, 0, 0, 877, 774, 1, 0, 0, 0, 877, 782, 1, 0, 0, 0, 877, 804, 1, 0, 0, 0, 877, 824, 1, 0, 0, 0, 877, 841, 1, 0, 0, 0, 877, 842, 1, 0, 0, 0, 877, 843, 1, 0, 0, 0, 877, 844, 1, 0, 0, 0, 877, 846, 1, 0, 0, 0, 877, 851, 1, 0, 0, 0, 877, 854, 1, 0, 0, 0, 877, 858, 1, 0, 0, 0, 877, 862, 1, 0, 0, 0, 877, 866, 1, 0, 0, 0, 877, 871, 1, 0, 0, 0, 877, 876, 1, 0, 0, 0, 878, 971, 1, 0, 0, 0, 879, 883, 10, 18, 0, 0, 880, 884, 5, 108, 0, 0, 881, 884, 5, 146, 0, 0, 882, 884, 5, 133, 0, 0, 883, 880, 1, 0, 0, 0, 883, 881, 1, 0, 0, 0, 883, 882, 1, 0, 0, 0, 884, 885, 1, 0, 0, 0, 885, 970, 3, 108, 54, 19, 886, 890, 10, 17, 0, 0, 887, 891, 5, 134, 0, 0, 888, 891, 5, 114, 0, 0, 889, 891, 5, 113, 0, 0, 890, 887, 1, 0, 0, 0, 890, 888, 1, 0, 0, 0, 890, 889, 1, 0, 0, 0, 891, 892, 1, 0, 0, 0, 892, 970, 3, 108, 54, 18, 893, 918, 10, 16, 0, 0, 894, 919, 5, 117, 0, 0, 895, 919, 5, 118, 0, 0, 896, 919, 5, 129, 0, 0, 897, 919, 5, 127, 0, 0, 898, 919, 5, 128, 0, 0, 899, 919, 5, 119, 0, 0, 900, 919, 5, 120, 0, 0, 901, 903, 5, 56, 0, 0, 902, 901, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 904, 1, 0, 0, 0, 904, 906, 5, 40, 0, 0, 905, 907, 5, 14, 0, 0, 906, 905, 1, 0, 0, 0, 906, 907, 1, 0, 0, 0, 907, 919, 1, 0, 0, 0, 908, 910, 5, 56, 0, 0, 909, 908, 1, 0, 0, 0, 909, 910, 1, 0, 0, 0, 910, 911, 1, 0, 0, 0, 911, 919, 7, 10, 0, 0, 912, 919, 5, 140, 0, 0, 913, 919, 5, 141, 0, 0, 914, 919, 5, 131, 0, 0, 915, 919, 5, 122, 0, 0, 916, 919, 5, 123, 0, 0, 917, 919, 5, 130, 0, 0, 918, 894, 1, 0, 0, 0, 918, 895, 1, 0, 0, 0, 918, 896, 1, 0, 0, 0, 918, 897, 1, 0, 0, 0, 918, 898, 1, 0, 0, 0, 918, 899, 1, 0, 0, 0, 918, 900, 1, 0, 0, 0, 918, 902, 1, 0, 0, 0, 918, 909, 1, 0, 0, 0, 918, 912, 1, 0, 0, 0, 918, 913, 1, 0, 0, 0, 918, 914, 1, 0, 0, 0, 918, 915, 1, 0, 0, 0, 918, 916, 1, 0, 0, 0, 918, 917, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 970, 3, 108, 54, 17, 921, 922, 10, 14, 0, 0, 922, 923, 5, 132, 0, 0, 923, 970, 3, 108, 54, 15, 924, 925, 10, 12, 0, 0, 925, 926, 5, 2, 0, 0, 926, 970, 3, 108, 54, 13, 927, 928, 10, 11, 0, 0, 928, 929, 5, 61, 0, 0, 929, 970, 3, 108, 54, 12, 930, 932, 10, 10, 0, 0, 931, 933, 5, 56, 0, 0, 932, 931, 1, 0, 0, 0, 932, 933, 1, 0, 0, 0, 933, 934, 1, 0, 0, 0, 934, 935, 5, 9, 0, 0, 935, 936, 3, 108, 54, 0, 936, 937, 5, 2, 0, 0, 937, 938, 3, 108, 54, 11, 938, 970, 1, 0, 0, 0, 939, 940, 10, 9, 0, 0, 940, 941, 5, 135, 0, 0, 941, 942, 3, 108, 54, 0, 942, 943, 5, 111, 0, 0, 943, 944, 3, 108, 54, 9, 944, 970, 1, 0, 0, 0, 945, 946, 10, 22, 0, 0, 946, 947, 5, 125, 0, 0, 947, 948, 3, 108, 54, 0, 948, 949, 5, 143, 0, 0, 949, 970, 1, 0, 0, 0, 950, 951, 10, 21, 0, 0, 951, 952, 5, 116, 0, 0, 952, 970, 5, 104, 0, 0, 953, 954, 10, 20, 0, 0, 954, 955, 5, 116, 0, 0, 955, 970, 3, 152, 76, 0, 956, 957, 10, 15, 0, 0, 957, 959, 5, 44, 0, 0, 958, 960, 5, 56, 0, 0, 959, 958, 1, 0, 0, 0, 959, 960, 1, 0, 0, 0, 960, 961, 1, 0, 0, 0, 961, 970, 5, 57, 0, 0, 962, 967, 10, 8, 0, 0, 963, 964, 5, 6, 0, 0, 964, 968, 3, 152, 76, 0, 965, 966, 5, 6, 0, 0, 966, 968, 5, 106, 0, 0, 967, 963, 1, 0, 0, 0, 967, 965, 1, 0, 0, 0, 968, 970, 1, 0, 0, 0, 969, 879, 1, 0, 0, 0, 969, 886, 1, 0, 0, 0, 969, 893, 1, 0, 0, 0, 969, 921, 1, 0, 0, 0, 969, 924, 1, 0, 0, 0, 969, 927, 1, 0, 0, 0, 969, 930, 1, 0, 0, 0, 969, 939, 1, 0, 0, 0, 969, 945, 1, 0, 0, 0, 969, 950, 1, 0, 0, 0, 969, 953, 1, 0, 0, 0, 969, 956, 1, 0, 0, 0, 969, 962, 1, 0, 0, 0, 970, 973, 1, 0, 0, 0, 971, 969, 1, 0, 0, 0, 971, 972, 1, 0, 0, 0, 972, 109, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 974, 979, 3, 112, 56, 0, 975, 976, 5, 112, 0, 0, 976, 978, 3, 112, 56, 0, 977, 975, 1, 0, 0, 0, 978, 981, 1, 0, 0, 0, 979, 977, 1, 0, 0, 0, 979, 980, 1, 0, 0, 0, 980, 983, 1, 0, 0, 0, 981, 979, 1, 0, 0, 0, 982, 984, 5, 112, 0, 0, 983, 982, 1, 0, 0, 0, 983, 984, 1, 0, 0, 0, 984, 111, 1, 0, 0, 0, 985, 988, 3, 114, 57, 0, 986, 988, 3, 108, 54, 0, 987, 985, 1, 0, 0, 0, 987, 986, 1, 0, 0, 0, 988, 113, 1, 0, 0, 0, 989, 990, 5, 126, 0, 0, 990, 995, 3, 152, 76, 0, 991, 992, 5, 112, 0, 0, 992, 994, 3, 152, 76, 0, 993, 991, 1, 0, 0, 0, 994, 997, 1, 0, 0, 0, 995, 993, 1, 0, 0, 0, 995, 996, 1, 0, 0, 0, 996, 999, 1, 0, 0, 0, 997, 995, 1, 0, 0, 0, 998, 1000, 5, 112, 0, 0, 999, 998, 1, 0, 0, 0, 999, 1000, 1, 0, 0, 0, 1000, 1001, 1, 0, 0, 0, 1001, 1002, 5, 144, 0, 0, 1002, 1015, 1, 0, 0, 0, 1003, 1008, 3, 152, 76, 0, 1004, 1005, 5, 112, 0, 0, 1005, 1007, 3, 152, 76, 0, 1006, 1004, 1, 0, 0, 0, 1007, 1010, 1, 0, 0, 0, 1008, 1006, 1, 0, 0, 0, 1008, 1009, 1, 0, 0, 0, 1009, 1012, 1, 0, 0, 0, 1010, 1008, 1, 0, 0, 0, 1011, 1013, 5, 112, 0, 0, 1012, 1011, 1, 0, 0, 0, 1012, 1013, 1, 0, 0, 0, 1013, 1015, 1, 0, 0, 0, 1014, 989, 1, 0, 0, 0, 1014, 1003, 1, 0, 0, 0, 1015, 1016, 1, 0, 0, 0, 1016, 1017, 5, 107, 0, 0, 1017, 1018, 3, 108, 54, 0, 1018, 115, 1, 0, 0, 0, 1019, 1020, 5, 128, 0, 0, 1020, 1024, 3, 152, 76, 0, 1021, 1023, 3, 118, 59, 0, 1022, 1021, 1, 0, 0, 0, 1023, 1026, 1, 0, 0, 0, 1024, 1022, 1, 0, 0, 0, 1024, 1025, 1, 0, 0, 0, 1025, 1027, 1, 0, 0, 0, 1026, 1024, 1, 0, 0, 0, 1027, 1028, 5, 146, 0, 0, 1028, 1029, 5, 120, 0, 0, 1029, 1048, 1, 0, 0, 0, 1030, 1031, 5, 128, 0, 0, 1031, 1035, 3, 152, 76, 0, 1032, 1034, 3, 118, 59, 0, 1033, 1032, 1, 0, 0, 0, 1034, 1037, 1, 0, 0, 0, 1035, 1033, 1, 0, 0, 0, 1035, 1036, 1, 0, 0, 0, 1036, 1038, 1, 0, 0, 0, 1037, 1035, 1, 0, 0, 0, 1038, 1040, 5, 120, 0, 0, 1039, 1041, 3, 116, 58, 0, 1040, 1039, 1, 0, 0, 0, 1040, 1041, 1, 0, 0, 0, 1041, 1042, 1, 0, 0, 0, 1042, 1043, 5, 128, 0, 0, 1043, 1044, 5, 146, 0, 0, 1044, 1045, 3, 152, 76, 0, 1045, 1046, 5, 120, 0, 0, 1046, 1048, 1, 0, 0, 0, 1047, 1019, 1, 0, 0, 0, 1047, 1030, 1, 0, 0, 0, 1048, 117, 1, 0, 0, 0, 1049, 1050, 3, 152, 76, 0, 1050, 1051, 5, 118, 0, 0, 1051, 1052, 3, 158, 79, 0, 1052, 1061, 1, 0, 0, 0, 1053, 1054, 3, 152, 76, 0, 1054, 1055, 5, 118, 0, 0, 1055, 1056, 5, 124, 0, 0, 1056, 1057, 3, 108, 54, 0, 1057, 1058, 5, 142, 0, 0, 1058, 1061, 1, 0, 0, 0, 1059, 1061, 3, 152, 76, 0, 1060, 1049, 1, 0, 0, 0, 1060, 1053, 1, 0, 0, 0, 1060, 1059, 1, 0, 0, 0, 1061, 119, 1, 0, 0, 0, 1062, 1067, 3, 122, 61, 0, 1063, 1064, 5, 112, 0, 0, 1064, 1066, 3, 122, 61, 0, 1065, 1063, 1, 0, 0, 0, 1066, 1069, 1, 0, 0, 0, 1067, 1065, 1, 0, 0, 0, 1067, 1068, 1, 0, 0, 0, 1068, 1071, 1, 0, 0, 0, 1069, 1067, 1, 0, 0, 0, 1070, 1072, 5, 112, 0, 0, 1071, 1070, 1, 0, 0, 0, 1071, 1072, 1, 0, 0, 0, 1072, 121, 1, 0, 0, 0, 1073, 1074, 3, 152, 76, 0, 1074, 1075, 5, 6, 0, 0, 1075, 1076, 5, 126, 0, 0, 1076, 1077, 3, 36, 18, 0, 1077, 1078, 5, 144, 0, 0, 1078, 1084, 1, 0, 0, 0, 1079, 1080, 3, 108, 54, 0, 1080, 1081, 5, 6, 0, 0, 1081, 1082, 3, 152, 76, 0, 1082, 1084, 1, 0, 0, 0, 1083, 1073, 1, 0, 0, 0, 1083, 1079, 1, 0, 0, 0, 1084, 123, 1, 0, 0, 0, 1085, 1093, 3, 156, 78, 0, 1086, 1087, 3, 132, 66, 0, 1087, 1088, 5, 116, 0, 0, 1088, 1090, 1, 0, 0, 0, 1089, 1086, 1, 0, 0, 0, 1089, 1090, 1, 0, 0, 0, 1090, 1091, 1, 0, 0, 0, 1091, 1093, 3, 126, 63, 0, 1092, 1085, 1, 0, 0, 0, 1092, 1089, 1, 0, 0, 0, 1093, 125, 1, 0, 0, 0, 1094, 1099, 3, 152, 76, 0, 1095, 1096, 5, 116, 0, 0, 1096, 1098, 3, 152, 76, 0, 1097, 1095, 1, 0, 0, 0, 1098, 1101, 1, 0, 0, 0, 1099, 1097, 1, 0, 0, 0, 1099, 1100, 1, 0, 0, 0, 1100, 127, 1, 0, 0, 0, 1101, 1099, 1, 0, 0, 0, 1102, 1103, 6, 64, -1, 0, 1103, 1112, 3, 132, 66, 0, 1104, 1112, 3, 130, 65, 0, 1105, 1106, 5, 126, 0, 0, 1106, 1107, 3, 36, 18, 0, 1107, 1108, 5, 144, 0, 0, 1108, 1112, 1, 0, 0, 0, 1109, 1112, 3, 116, 58, 0, 1110, 1112, 3, 156, 78, 0, 1111, 1102, 1, 0, 0, 0, 1111, 1104, 1, 0, 0, 0, 1111, 1105, 1, 0, 0, 0, 1111, 1109, 1, 0, 0, 0, 1111, 1110, 1, 0, 0, 0, 1112, 1121, 1, 0, 0, 0, 1113, 1117, 10, 3, 0, 0, 1114, 1118, 3, 150, 75, 0, 1115, 1116, 5, 6, 0, 0, 1116, 1118, 3, 152, 76, 0, 1117, 1114, 1, 0, 0, 0, 1117, 1115, 1, 0, 0, 0, 1118, 1120, 1, 0, 0, 0, 1119, 1113, 1, 0, 0, 0, 1120, 1123, 1, 0, 0, 0, 1121, 1119, 1, 0, 0, 0, 1121, 1122, 1, 0, 0, 0, 1122, 129, 1, 0, 0, 0, 1123, 1121, 1, 0, 0, 0, 1124, 1125, 3, 152, 76, 0, 1125, 1127, 5, 126, 0, 0, 1126, 1128, 3, 134, 67, 0, 1127, 1126, 1, 0, 0, 0, 1127, 1128, 1, 0, 0, 0, 1128, 1129, 1, 0, 0, 0, 1129, 1130, 5, 144, 0, 0, 1130, 131, 1, 0, 0, 0, 1131, 1132, 3, 136, 68, 0, 1132, 1133, 5, 116, 0, 0, 1133, 1135, 1, 0, 0, 0, 1134, 1131, 1, 0, 0, 0, 1134, 1135, 1, 0, 0, 0, 1135, 1136, 1, 0, 0, 0, 1136, 1137, 3, 152, 76, 0, 1137, 133, 1, 0, 0, 0, 1138, 1143, 3, 108, 54, 0, 1139, 1140, 5, 112, 0, 0, 1140, 1142, 3, 108, 54, 0, 1141, 1139, 1, 0, 0, 0, 1142, 1145, 1, 0, 0, 0, 1143, 1141, 1, 0, 0, 0, 1143, 1144, 1, 0, 0, 0, 1144, 1147, 1, 0, 0, 0, 1145, 1143, 1, 0, 0, 0, 1146, 1148, 5, 112, 0, 0, 1147, 1146, 1, 0, 0, 0, 1147, 1148, 1, 0, 0, 0, 1148, 135, 1, 0, 0, 0, 1149, 1150, 3, 152, 76, 0, 1150, 137, 1, 0, 0, 0, 1151, 1160, 5, 102, 0, 0, 1152, 1153, 5, 116, 0, 0, 1153, 1160, 7, 11, 0, 0, 1154, 1155, 5, 104, 0, 0, 1155, 1157, 5, 116, 0, 0, 1156, 1158, 7, 11, 0, 0, 1157, 1156, 1, 0, 0, 0, 1157, 1158, 1, 0, 0, 0, 1158, 1160, 1, 0, 0, 0, 1159, 1151, 1, 0, 0, 0, 1159, 1152, 1, 0, 0, 0, 1159, 1154, 1, 0, 0, 0, 1160, 139, 1, 0, 0, 0, 1161, 1163, 7, 12, 0, 0, 1162, 1161, 1, 0, 0, 0, 1162, 1163, 1, 0, 0, 0, 1163, 1170, 1, 0, 0, 0, 1164, 1171, 3, 138, 69, 0, 1165, 1171, 5, 103, 0, 0, 1166, 1171, 5, 104, 0, 0, 1167, 1171, 5, 105, 0, 0, 1168, 1171, 5, 41, 0, 0, 1169, 1171, 5, 55, 0, 0, 1170, 1164, 1, 0, 0, 0, 1170, 1165, 1, 0, 0, 0, 1170, 1166, 1, 0, 0, 0, 1170, 1167, 1, 0, 0, 0, 1170, 1168, 1, 0, 0, 0, 1170, 1169, 1, 0, 0, 0, 1171, 141, 1, 0, 0, 0, 1172, 1176, 3, 140, 70, 0, 1173, 1176, 5, 106, 0, 0, 1174, 1176, 5, 57, 0, 0, 1175, 1172, 1, 0, 0, 0, 1175, 1173, 1, 0, 0, 0, 1175, 1174, 1, 0, 0, 0, 1176, 143, 1, 0, 0, 0, 1177, 1178, 7, 13, 0, 0, 1178, 145, 1, 0, 0, 0, 1179, 1180, 7, 14, 0, 0, 1180, 147, 1, 0, 0, 0, 1181, 1182, 7, 15, 0, 0, 1182, 149, 1, 0, 0, 0, 1183, 1186, 5, 101, 0, 0, 1184, 1186, 3, 148, 74, 0, 1185, 1183, 1, 0, 0, 0, 1185, 1184, 1, 0, 0, 0, 1186, 151, 1, 0, 0, 0, 1187, 1191, 5, 101, 0, 0, 1188, 1191, 3, 144, 72, 0, 1189, 1191, 3, 146, 73, 0, 1190, 1187, 1, 0, 0, 0, 1190, 1188, 1, 0, 0, 0, 1190, 1189, 1, 0, 0, 0, 1191, 153, 1, 0, 0, 0, 1192, 1193, 3, 158, 79, 0, 1193, 1194, 5, 118, 0, 0, 1194, 1195, 3, 140, 70, 0, 1195, 155, 1, 0, 0, 0, 1196, 1197, 5, 124, 0, 0, 1197, 1198, 3, 152, 76, 0, 1198, 1199, 5, 142, 0, 0, 1199, 157, 1, 0, 0, 0, 1200, 1203, 5, 106, 0, 0, 1201, 1203, 3, 160, 80, 0, 1202, 1200, 1, 0, 0, 0, 1202, 1201, 1, 0, 0, 0, 1203, 159, 1, 0, 0, 0, 1204, 1208, 5, 137, 0, 0, 1205, 1207, 3, 162, 81, 0, 1206, 1205, 1, 0, 0, 0, 1207, 1210, 1, 0, 0, 0, 1208, 1206, 1, 0, 0, 0, 1208, 1209, 1, 0, 0, 0, 1209, 1211, 1, 0, 0, 0, 1210, 1208, 1, 0, 0, 0, 1211, 1212, 5, 139, 0, 0, 1212, 161, 1, 0, 0, 0, 1213, 1214, 5, 152, 0, 0, 1214, 1215, 3, 108, 54, 0, 1215, 1216, 5, 142, 0, 0, 1216, 1219, 1, 0, 0, 0, 1217, 1219, 5, 151, 0, 0, 1218, 1213, 1, 0, 0, 0, 1218, 1217, 1, 0, 0, 0, 1219, 163, 1, 0, 0, 0, 1220, 1224, 5, 138, 0, 0, 1221, 1223, 3, 166, 83, 0, 1222, 1221, 1, 0, 0, 0, 1223, 1226, 1, 0, 0, 0, 1224, 1222, 1, 0, 0, 0, 1224, 1225, 1, 0, 0, 0, 1225, 1227, 1, 0, 0, 0, 1226, 1224, 1, 0, 0, 0, 1227, 1228, 5, 0, 0, 1, 1228, 165, 1, 0, 0, 0, 1229, 1230, 5, 154, 0, 0, 1230, 1231, 3, 108, 54, 0, 1231, 1232, 5, 142, 0, 0, 1232, 1235, 1, 0, 0, 0, 1233, 1235, 5, 153, 0, 0, 1234, 1229, 1, 0, 0, 0, 1234, 1233, 1, 0, 0, 0, 1235, 167, 1, 0, 0, 0, 160, 171, 178, 187, 194, 198, 209, 213, 216, 225, 233, 240, 244, 250, 255, 261, 273, 281, 295, 299, 304, 314, 323, 326, 330, 333, 337, 340, 343, 346, 349, 353, 357, 360, 363, 366, 370, 373, 382, 388, 409, 426, 443, 449, 455, 466, 468, 479, 482, 488, 496, 502, 504, 508, 513, 516, 519, 523, 527, 530, 532, 535, 539, 543, 546, 548, 550, 555, 566, 572, 579, 584, 588, 592, 598, 600, 607, 615, 618, 621, 640, 654, 670, 674, 685, 689, 700, 704, 711, 715, 722, 726, 731, 740, 744, 768, 785, 791, 794, 797, 807, 813, 816, 819, 827, 830, 834, 837, 851, 868, 873, 877, 883, 890, 902, 906, 909, 918, 932, 959, 967, 969, 971, 979, 983, 987, 995, 999, 1008, 1012, 1014, 1024, 1035, 1040, 1047, 1060, 1067, 1071, 1083, 1089, 1092, 1099, 1111, 1117, 1121, 1127, 1134, 1143, 1147, 1157, 1159, 1162, 1170, 1175, 1185, 1190, 1202, 1208, 1218, 1224, 1234]
\ No newline at end of file
+[4, 1, 154, 1237, 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, 1, 0, 5, 0, 170, 8, 0, 10, 0, 12, 0, 173, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 179, 8, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 188, 8, 3, 1, 4, 1, 4, 1, 4, 5, 4, 193, 8, 4, 10, 4, 12, 4, 196, 9, 4, 1, 4, 3, 4, 199, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 210, 8, 5, 1, 6, 1, 6, 3, 6, 214, 8, 6, 1, 6, 3, 6, 217, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 226, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 234, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 241, 8, 9, 1, 9, 1, 9, 3, 9, 245, 8, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 251, 8, 9, 1, 9, 1, 9, 1, 9, 3, 9, 256, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 262, 8, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 3, 12, 274, 8, 12, 1, 13, 1, 13, 1, 14, 1, 14, 5, 14, 280, 8, 14, 10, 14, 12, 14, 283, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 5, 16, 294, 8, 16, 10, 16, 12, 16, 297, 9, 16, 1, 16, 3, 16, 300, 8, 16, 1, 17, 1, 17, 1, 17, 3, 17, 305, 8, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 313, 8, 18, 10, 18, 12, 18, 316, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 324, 8, 19, 1, 20, 3, 20, 327, 8, 20, 1, 20, 1, 20, 3, 20, 331, 8, 20, 1, 20, 3, 20, 334, 8, 20, 1, 20, 1, 20, 3, 20, 338, 8, 20, 1, 20, 3, 20, 341, 8, 20, 1, 20, 3, 20, 344, 8, 20, 1, 20, 3, 20, 347, 8, 20, 1, 20, 3, 20, 350, 8, 20, 1, 20, 1, 20, 3, 20, 354, 8, 20, 1, 20, 1, 20, 3, 20, 358, 8, 20, 1, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 3, 20, 367, 8, 20, 1, 20, 1, 20, 3, 20, 371, 8, 20, 1, 20, 3, 20, 374, 8, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 383, 8, 22, 1, 23, 1, 23, 1, 23, 1, 24, 3, 24, 389, 8, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 5, 25, 408, 8, 25, 10, 25, 12, 25, 411, 9, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 427, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 444, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 450, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 456, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 467, 8, 32, 3, 32, 469, 8, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 3, 35, 480, 8, 35, 1, 35, 3, 35, 483, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 489, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 497, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 503, 8, 35, 10, 35, 12, 35, 506, 9, 35, 1, 36, 3, 36, 509, 8, 36, 1, 36, 1, 36, 1, 36, 3, 36, 514, 8, 36, 1, 36, 3, 36, 517, 8, 36, 1, 36, 3, 36, 520, 8, 36, 1, 36, 1, 36, 3, 36, 524, 8, 36, 1, 36, 1, 36, 3, 36, 528, 8, 36, 1, 36, 3, 36, 531, 8, 36, 3, 36, 533, 8, 36, 1, 36, 3, 36, 536, 8, 36, 1, 36, 1, 36, 3, 36, 540, 8, 36, 1, 36, 1, 36, 3, 36, 544, 8, 36, 1, 36, 3, 36, 547, 8, 36, 3, 36, 549, 8, 36, 3, 36, 551, 8, 36, 1, 37, 1, 37, 1, 37, 3, 37, 556, 8, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 567, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 573, 8, 39, 1, 40, 1, 40, 1, 40, 5, 40, 578, 8, 40, 10, 40, 12, 40, 581, 9, 40, 1, 41, 1, 41, 3, 41, 585, 8, 41, 1, 41, 1, 41, 3, 41, 589, 8, 41, 1, 41, 1, 41, 3, 41, 593, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 599, 8, 42, 3, 42, 601, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 606, 8, 43, 10, 43, 12, 43, 609, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 3, 45, 616, 8, 45, 1, 45, 3, 45, 619, 8, 45, 1, 45, 3, 45, 622, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 641, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 655, 8, 50, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 669, 8, 52, 10, 52, 12, 52, 672, 9, 52, 1, 52, 3, 52, 675, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 684, 8, 52, 10, 52, 12, 52, 687, 9, 52, 1, 52, 3, 52, 690, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 699, 8, 52, 10, 52, 12, 52, 702, 9, 52, 1, 52, 3, 52, 705, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 712, 8, 52, 1, 52, 1, 52, 3, 52, 716, 8, 52, 1, 53, 1, 53, 1, 53, 5, 53, 721, 8, 53, 10, 53, 12, 53, 724, 9, 53, 1, 53, 3, 53, 727, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 732, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 4, 54, 739, 8, 54, 11, 54, 12, 54, 740, 1, 54, 1, 54, 3, 54, 745, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 769, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 786, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 792, 8, 54, 1, 54, 3, 54, 795, 8, 54, 1, 54, 3, 54, 798, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 808, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 814, 8, 54, 1, 54, 3, 54, 817, 8, 54, 1, 54, 3, 54, 820, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 828, 8, 54, 1, 54, 3, 54, 831, 8, 54, 1, 54, 1, 54, 3, 54, 835, 8, 54, 1, 54, 3, 54, 838, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 852, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 869, 8, 54, 1, 54, 1, 54, 1, 54, 3, 54, 874, 8, 54, 1, 54, 1, 54, 3, 54, 878, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 884, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 891, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 903, 8, 54, 1, 54, 1, 54, 3, 54, 907, 8, 54, 1, 54, 3, 54, 910, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 919, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 933, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 960, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 968, 8, 54, 5, 54, 970, 8, 54, 10, 54, 12, 54, 973, 9, 54, 1, 55, 1, 55, 1, 55, 5, 55, 978, 8, 55, 10, 55, 12, 55, 981, 9, 55, 1, 55, 3, 55, 984, 8, 55, 1, 56, 1, 56, 3, 56, 988, 8, 56, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 994, 8, 57, 10, 57, 12, 57, 997, 9, 57, 1, 57, 3, 57, 1000, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 1007, 8, 57, 10, 57, 12, 57, 1010, 9, 57, 1, 57, 3, 57, 1013, 8, 57, 3, 57, 1015, 8, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 5, 58, 1023, 8, 58, 10, 58, 12, 58, 1026, 9, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 5, 58, 1034, 8, 58, 10, 58, 12, 58, 1037, 9, 58, 1, 58, 1, 58, 3, 58, 1041, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 1048, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 1061, 8, 59, 1, 60, 1, 60, 1, 60, 5, 60, 1066, 8, 60, 10, 60, 12, 60, 1069, 9, 60, 1, 60, 3, 60, 1072, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 3, 61, 1084, 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 3, 62, 1090, 8, 62, 1, 62, 3, 62, 1093, 8, 62, 1, 63, 1, 63, 1, 63, 5, 63, 1098, 8, 63, 10, 63, 12, 63, 1101, 9, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1112, 8, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1118, 8, 64, 5, 64, 1120, 8, 64, 10, 64, 12, 64, 1123, 9, 64, 1, 65, 1, 65, 1, 65, 3, 65, 1128, 8, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 3, 66, 1135, 8, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 5, 67, 1142, 8, 67, 10, 67, 12, 67, 1145, 9, 67, 1, 67, 3, 67, 1148, 8, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1158, 8, 69, 3, 69, 1160, 8, 69, 1, 70, 3, 70, 1163, 8, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 3, 70, 1171, 8, 70, 1, 71, 1, 71, 1, 71, 3, 71, 1176, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 74, 1, 74, 1, 75, 1, 75, 3, 75, 1186, 8, 75, 1, 76, 1, 76, 1, 76, 3, 76, 1191, 8, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 3, 79, 1203, 8, 79, 1, 80, 1, 80, 5, 80, 1207, 8, 80, 10, 80, 12, 80, 1210, 9, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 3, 81, 1219, 8, 81, 1, 82, 1, 82, 5, 82, 1223, 8, 82, 10, 82, 12, 82, 1226, 9, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 3, 83, 1235, 8, 83, 1, 83, 0, 3, 70, 108, 128, 84, 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, 0, 16, 2, 0, 17, 17, 72, 72, 2, 0, 42, 42, 49, 49, 3, 0, 1, 1, 4, 4, 8, 8, 4, 0, 1, 1, 3, 4, 8, 8, 78, 78, 2, 0, 49, 49, 71, 71, 2, 0, 1, 1, 4, 4, 2, 0, 7, 7, 21, 22, 2, 0, 28, 28, 47, 47, 2, 0, 69, 69, 74, 74, 3, 0, 10, 10, 48, 48, 87, 87, 2, 0, 39, 39, 51, 51, 1, 0, 103, 104, 2, 0, 114, 114, 134, 134, 7, 0, 20, 20, 36, 36, 53, 54, 68, 68, 76, 76, 93, 93, 99, 99, 12, 0, 1, 19, 21, 28, 30, 35, 37, 40, 42, 49, 51, 52, 56, 56, 58, 67, 69, 75, 77, 92, 94, 95, 97, 98, 4, 0, 19, 19, 28, 28, 37, 37, 46, 46, 1394, 0, 171, 1, 0, 0, 0, 2, 178, 1, 0, 0, 0, 4, 180, 1, 0, 0, 0, 6, 182, 1, 0, 0, 0, 8, 189, 1, 0, 0, 0, 10, 209, 1, 0, 0, 0, 12, 211, 1, 0, 0, 0, 14, 218, 1, 0, 0, 0, 16, 227, 1, 0, 0, 0, 18, 235, 1, 0, 0, 0, 20, 257, 1, 0, 0, 0, 22, 266, 1, 0, 0, 0, 24, 271, 1, 0, 0, 0, 26, 275, 1, 0, 0, 0, 28, 277, 1, 0, 0, 0, 30, 286, 1, 0, 0, 0, 32, 290, 1, 0, 0, 0, 34, 304, 1, 0, 0, 0, 36, 308, 1, 0, 0, 0, 38, 323, 1, 0, 0, 0, 40, 326, 1, 0, 0, 0, 42, 375, 1, 0, 0, 0, 44, 378, 1, 0, 0, 0, 46, 384, 1, 0, 0, 0, 48, 388, 1, 0, 0, 0, 50, 394, 1, 0, 0, 0, 52, 412, 1, 0, 0, 0, 54, 415, 1, 0, 0, 0, 56, 418, 1, 0, 0, 0, 58, 428, 1, 0, 0, 0, 60, 431, 1, 0, 0, 0, 62, 435, 1, 0, 0, 0, 64, 468, 1, 0, 0, 0, 66, 470, 1, 0, 0, 0, 68, 473, 1, 0, 0, 0, 70, 488, 1, 0, 0, 0, 72, 550, 1, 0, 0, 0, 74, 555, 1, 0, 0, 0, 76, 566, 1, 0, 0, 0, 78, 568, 1, 0, 0, 0, 80, 574, 1, 0, 0, 0, 82, 582, 1, 0, 0, 0, 84, 600, 1, 0, 0, 0, 86, 602, 1, 0, 0, 0, 88, 610, 1, 0, 0, 0, 90, 615, 1, 0, 0, 0, 92, 623, 1, 0, 0, 0, 94, 627, 1, 0, 0, 0, 96, 631, 1, 0, 0, 0, 98, 640, 1, 0, 0, 0, 100, 654, 1, 0, 0, 0, 102, 656, 1, 0, 0, 0, 104, 715, 1, 0, 0, 0, 106, 717, 1, 0, 0, 0, 108, 877, 1, 0, 0, 0, 110, 974, 1, 0, 0, 0, 112, 987, 1, 0, 0, 0, 114, 1014, 1, 0, 0, 0, 116, 1047, 1, 0, 0, 0, 118, 1060, 1, 0, 0, 0, 120, 1062, 1, 0, 0, 0, 122, 1083, 1, 0, 0, 0, 124, 1092, 1, 0, 0, 0, 126, 1094, 1, 0, 0, 0, 128, 1111, 1, 0, 0, 0, 130, 1124, 1, 0, 0, 0, 132, 1134, 1, 0, 0, 0, 134, 1138, 1, 0, 0, 0, 136, 1149, 1, 0, 0, 0, 138, 1159, 1, 0, 0, 0, 140, 1162, 1, 0, 0, 0, 142, 1175, 1, 0, 0, 0, 144, 1177, 1, 0, 0, 0, 146, 1179, 1, 0, 0, 0, 148, 1181, 1, 0, 0, 0, 150, 1185, 1, 0, 0, 0, 152, 1190, 1, 0, 0, 0, 154, 1192, 1, 0, 0, 0, 156, 1196, 1, 0, 0, 0, 158, 1202, 1, 0, 0, 0, 160, 1204, 1, 0, 0, 0, 162, 1218, 1, 0, 0, 0, 164, 1220, 1, 0, 0, 0, 166, 1234, 1, 0, 0, 0, 168, 170, 3, 2, 1, 0, 169, 168, 1, 0, 0, 0, 170, 173, 1, 0, 0, 0, 171, 169, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 171, 1, 0, 0, 0, 174, 175, 5, 0, 0, 1, 175, 1, 1, 0, 0, 0, 176, 179, 3, 6, 3, 0, 177, 179, 3, 10, 5, 0, 178, 176, 1, 0, 0, 0, 178, 177, 1, 0, 0, 0, 179, 3, 1, 0, 0, 0, 180, 181, 3, 108, 54, 0, 181, 5, 1, 0, 0, 0, 182, 183, 5, 50, 0, 0, 183, 187, 3, 152, 76, 0, 184, 185, 5, 111, 0, 0, 185, 186, 5, 118, 0, 0, 186, 188, 3, 4, 2, 0, 187, 184, 1, 0, 0, 0, 187, 188, 1, 0, 0, 0, 188, 7, 1, 0, 0, 0, 189, 194, 3, 152, 76, 0, 190, 191, 5, 112, 0, 0, 191, 193, 3, 152, 76, 0, 192, 190, 1, 0, 0, 0, 193, 196, 1, 0, 0, 0, 194, 192, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 197, 199, 5, 112, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 9, 1, 0, 0, 0, 200, 210, 3, 12, 6, 0, 201, 210, 3, 14, 7, 0, 202, 210, 3, 16, 8, 0, 203, 210, 3, 18, 9, 0, 204, 210, 3, 20, 10, 0, 205, 210, 3, 22, 11, 0, 206, 210, 3, 28, 14, 0, 207, 210, 3, 24, 12, 0, 208, 210, 3, 26, 13, 0, 209, 200, 1, 0, 0, 0, 209, 201, 1, 0, 0, 0, 209, 202, 1, 0, 0, 0, 209, 203, 1, 0, 0, 0, 209, 204, 1, 0, 0, 0, 209, 205, 1, 0, 0, 0, 209, 206, 1, 0, 0, 0, 209, 207, 1, 0, 0, 0, 209, 208, 1, 0, 0, 0, 210, 11, 1, 0, 0, 0, 211, 213, 5, 70, 0, 0, 212, 214, 3, 4, 2, 0, 213, 212, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 216, 1, 0, 0, 0, 215, 217, 5, 145, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 13, 1, 0, 0, 0, 218, 219, 5, 38, 0, 0, 219, 220, 5, 126, 0, 0, 220, 221, 3, 4, 2, 0, 221, 222, 5, 144, 0, 0, 222, 225, 3, 10, 5, 0, 223, 224, 5, 24, 0, 0, 224, 226, 3, 10, 5, 0, 225, 223, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 15, 1, 0, 0, 0, 227, 228, 5, 96, 0, 0, 228, 229, 5, 126, 0, 0, 229, 230, 3, 4, 2, 0, 230, 231, 5, 144, 0, 0, 231, 233, 3, 10, 5, 0, 232, 234, 5, 145, 0, 0, 233, 232, 1, 0, 0, 0, 233, 234, 1, 0, 0, 0, 234, 17, 1, 0, 0, 0, 235, 236, 5, 31, 0, 0, 236, 240, 5, 126, 0, 0, 237, 241, 3, 6, 3, 0, 238, 241, 3, 22, 11, 0, 239, 241, 3, 4, 2, 0, 240, 237, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 240, 239, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 244, 5, 145, 0, 0, 243, 245, 3, 4, 2, 0, 244, 243, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 250, 5, 145, 0, 0, 247, 251, 3, 6, 3, 0, 248, 251, 3, 22, 11, 0, 249, 251, 3, 4, 2, 0, 250, 247, 1, 0, 0, 0, 250, 248, 1, 0, 0, 0, 250, 249, 1, 0, 0, 0, 250, 251, 1, 0, 0, 0, 251, 252, 1, 0, 0, 0, 252, 253, 5, 144, 0, 0, 253, 255, 3, 10, 5, 0, 254, 256, 5, 145, 0, 0, 255, 254, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 19, 1, 0, 0, 0, 257, 258, 5, 29, 0, 0, 258, 259, 3, 152, 76, 0, 259, 261, 5, 126, 0, 0, 260, 262, 3, 8, 4, 0, 261, 260, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 263, 1, 0, 0, 0, 263, 264, 5, 144, 0, 0, 264, 265, 3, 28, 14, 0, 265, 21, 1, 0, 0, 0, 266, 267, 3, 4, 2, 0, 267, 268, 5, 111, 0, 0, 268, 269, 5, 118, 0, 0, 269, 270, 3, 4, 2, 0, 270, 23, 1, 0, 0, 0, 271, 273, 3, 4, 2, 0, 272, 274, 5, 145, 0, 0, 273, 272, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 25, 1, 0, 0, 0, 275, 276, 5, 145, 0, 0, 276, 27, 1, 0, 0, 0, 277, 281, 5, 124, 0, 0, 278, 280, 3, 2, 1, 0, 279, 278, 1, 0, 0, 0, 280, 283, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 281, 282, 1, 0, 0, 0, 282, 284, 1, 0, 0, 0, 283, 281, 1, 0, 0, 0, 284, 285, 5, 142, 0, 0, 285, 29, 1, 0, 0, 0, 286, 287, 3, 4, 2, 0, 287, 288, 5, 111, 0, 0, 288, 289, 3, 4, 2, 0, 289, 31, 1, 0, 0, 0, 290, 295, 3, 30, 15, 0, 291, 292, 5, 112, 0, 0, 292, 294, 3, 30, 15, 0, 293, 291, 1, 0, 0, 0, 294, 297, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 295, 296, 1, 0, 0, 0, 296, 299, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 298, 300, 5, 112, 0, 0, 299, 298, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 33, 1, 0, 0, 0, 301, 305, 3, 36, 18, 0, 302, 305, 3, 40, 20, 0, 303, 305, 3, 116, 58, 0, 304, 301, 1, 0, 0, 0, 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 307, 5, 0, 0, 1, 307, 35, 1, 0, 0, 0, 308, 314, 3, 38, 19, 0, 309, 310, 5, 91, 0, 0, 310, 311, 5, 1, 0, 0, 311, 313, 3, 38, 19, 0, 312, 309, 1, 0, 0, 0, 313, 316, 1, 0, 0, 0, 314, 312, 1, 0, 0, 0, 314, 315, 1, 0, 0, 0, 315, 37, 1, 0, 0, 0, 316, 314, 1, 0, 0, 0, 317, 324, 3, 40, 20, 0, 318, 319, 5, 126, 0, 0, 319, 320, 3, 36, 18, 0, 320, 321, 5, 144, 0, 0, 321, 324, 1, 0, 0, 0, 322, 324, 3, 156, 78, 0, 323, 317, 1, 0, 0, 0, 323, 318, 1, 0, 0, 0, 323, 322, 1, 0, 0, 0, 324, 39, 1, 0, 0, 0, 325, 327, 3, 42, 21, 0, 326, 325, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 328, 1, 0, 0, 0, 328, 330, 5, 77, 0, 0, 329, 331, 5, 23, 0, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 333, 1, 0, 0, 0, 332, 334, 3, 44, 22, 0, 333, 332, 1, 0, 0, 0, 333, 334, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 337, 3, 106, 53, 0, 336, 338, 3, 46, 23, 0, 337, 336, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 340, 1, 0, 0, 0, 339, 341, 3, 48, 24, 0, 340, 339, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 343, 1, 0, 0, 0, 342, 344, 3, 52, 26, 0, 343, 342, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 346, 1, 0, 0, 0, 345, 347, 3, 54, 27, 0, 346, 345, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 349, 1, 0, 0, 0, 348, 350, 3, 56, 28, 0, 349, 348, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 353, 1, 0, 0, 0, 351, 352, 5, 98, 0, 0, 352, 354, 7, 0, 0, 0, 353, 351, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 357, 1, 0, 0, 0, 355, 356, 5, 98, 0, 0, 356, 358, 5, 86, 0, 0, 357, 355, 1, 0, 0, 0, 357, 358, 1, 0, 0, 0, 358, 360, 1, 0, 0, 0, 359, 361, 3, 58, 29, 0, 360, 359, 1, 0, 0, 0, 360, 361, 1, 0, 0, 0, 361, 363, 1, 0, 0, 0, 362, 364, 3, 50, 25, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 366, 1, 0, 0, 0, 365, 367, 3, 60, 30, 0, 366, 365, 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 370, 1, 0, 0, 0, 368, 371, 3, 64, 32, 0, 369, 371, 3, 66, 33, 0, 370, 368, 1, 0, 0, 0, 370, 369, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 374, 3, 68, 34, 0, 373, 372, 1, 0, 0, 0, 373, 374, 1, 0, 0, 0, 374, 41, 1, 0, 0, 0, 375, 376, 5, 98, 0, 0, 376, 377, 3, 120, 60, 0, 377, 43, 1, 0, 0, 0, 378, 379, 5, 85, 0, 0, 379, 382, 5, 104, 0, 0, 380, 381, 5, 98, 0, 0, 381, 383, 5, 82, 0, 0, 382, 380, 1, 0, 0, 0, 382, 383, 1, 0, 0, 0, 383, 45, 1, 0, 0, 0, 384, 385, 5, 32, 0, 0, 385, 386, 3, 70, 35, 0, 386, 47, 1, 0, 0, 0, 387, 389, 7, 1, 0, 0, 388, 387, 1, 0, 0, 0, 388, 389, 1, 0, 0, 0, 389, 390, 1, 0, 0, 0, 390, 391, 5, 5, 0, 0, 391, 392, 5, 45, 0, 0, 392, 393, 3, 106, 53, 0, 393, 49, 1, 0, 0, 0, 394, 395, 5, 97, 0, 0, 395, 396, 3, 152, 76, 0, 396, 397, 5, 6, 0, 0, 397, 398, 5, 126, 0, 0, 398, 399, 3, 90, 45, 0, 399, 409, 5, 144, 0, 0, 400, 401, 5, 112, 0, 0, 401, 402, 3, 152, 76, 0, 402, 403, 5, 6, 0, 0, 403, 404, 5, 126, 0, 0, 404, 405, 3, 90, 45, 0, 405, 406, 5, 144, 0, 0, 406, 408, 1, 0, 0, 0, 407, 400, 1, 0, 0, 0, 408, 411, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 51, 1, 0, 0, 0, 411, 409, 1, 0, 0, 0, 412, 413, 5, 67, 0, 0, 413, 414, 3, 108, 54, 0, 414, 53, 1, 0, 0, 0, 415, 416, 5, 95, 0, 0, 416, 417, 3, 108, 54, 0, 417, 55, 1, 0, 0, 0, 418, 419, 5, 34, 0, 0, 419, 426, 5, 11, 0, 0, 420, 421, 7, 0, 0, 0, 421, 422, 5, 126, 0, 0, 422, 423, 3, 106, 53, 0, 423, 424, 5, 144, 0, 0, 424, 427, 1, 0, 0, 0, 425, 427, 3, 106, 53, 0, 426, 420, 1, 0, 0, 0, 426, 425, 1, 0, 0, 0, 427, 57, 1, 0, 0, 0, 428, 429, 5, 35, 0, 0, 429, 430, 3, 108, 54, 0, 430, 59, 1, 0, 0, 0, 431, 432, 5, 62, 0, 0, 432, 433, 5, 11, 0, 0, 433, 434, 3, 80, 40, 0, 434, 61, 1, 0, 0, 0, 435, 436, 5, 62, 0, 0, 436, 437, 5, 11, 0, 0, 437, 438, 3, 106, 53, 0, 438, 63, 1, 0, 0, 0, 439, 440, 5, 52, 0, 0, 440, 443, 3, 108, 54, 0, 441, 442, 5, 112, 0, 0, 442, 444, 3, 108, 54, 0, 443, 441, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 449, 1, 0, 0, 0, 445, 446, 5, 98, 0, 0, 446, 450, 5, 82, 0, 0, 447, 448, 5, 11, 0, 0, 448, 450, 3, 106, 53, 0, 449, 445, 1, 0, 0, 0, 449, 447, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 469, 1, 0, 0, 0, 451, 452, 5, 52, 0, 0, 452, 455, 3, 108, 54, 0, 453, 454, 5, 98, 0, 0, 454, 456, 5, 82, 0, 0, 455, 453, 1, 0, 0, 0, 455, 456, 1, 0, 0, 0, 456, 457, 1, 0, 0, 0, 457, 458, 5, 59, 0, 0, 458, 459, 3, 108, 54, 0, 459, 469, 1, 0, 0, 0, 460, 461, 5, 52, 0, 0, 461, 462, 3, 108, 54, 0, 462, 463, 5, 59, 0, 0, 463, 466, 3, 108, 54, 0, 464, 465, 5, 11, 0, 0, 465, 467, 3, 106, 53, 0, 466, 464, 1, 0, 0, 0, 466, 467, 1, 0, 0, 0, 467, 469, 1, 0, 0, 0, 468, 439, 1, 0, 0, 0, 468, 451, 1, 0, 0, 0, 468, 460, 1, 0, 0, 0, 469, 65, 1, 0, 0, 0, 470, 471, 5, 59, 0, 0, 471, 472, 3, 108, 54, 0, 472, 67, 1, 0, 0, 0, 473, 474, 5, 79, 0, 0, 474, 475, 3, 86, 43, 0, 475, 69, 1, 0, 0, 0, 476, 477, 6, 35, -1, 0, 477, 479, 3, 128, 64, 0, 478, 480, 5, 27, 0, 0, 479, 478, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 482, 1, 0, 0, 0, 481, 483, 3, 78, 39, 0, 482, 481, 1, 0, 0, 0, 482, 483, 1, 0, 0, 0, 483, 489, 1, 0, 0, 0, 484, 485, 5, 126, 0, 0, 485, 486, 3, 70, 35, 0, 486, 487, 5, 144, 0, 0, 487, 489, 1, 0, 0, 0, 488, 476, 1, 0, 0, 0, 488, 484, 1, 0, 0, 0, 489, 504, 1, 0, 0, 0, 490, 491, 10, 3, 0, 0, 491, 492, 3, 74, 37, 0, 492, 493, 3, 70, 35, 4, 493, 503, 1, 0, 0, 0, 494, 496, 10, 4, 0, 0, 495, 497, 3, 72, 36, 0, 496, 495, 1, 0, 0, 0, 496, 497, 1, 0, 0, 0, 497, 498, 1, 0, 0, 0, 498, 499, 5, 45, 0, 0, 499, 500, 3, 70, 35, 0, 500, 501, 3, 76, 38, 0, 501, 503, 1, 0, 0, 0, 502, 490, 1, 0, 0, 0, 502, 494, 1, 0, 0, 0, 503, 506, 1, 0, 0, 0, 504, 502, 1, 0, 0, 0, 504, 505, 1, 0, 0, 0, 505, 71, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 507, 509, 7, 2, 0, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 517, 5, 42, 0, 0, 511, 513, 5, 42, 0, 0, 512, 514, 7, 2, 0, 0, 513, 512, 1, 0, 0, 0, 513, 514, 1, 0, 0, 0, 514, 517, 1, 0, 0, 0, 515, 517, 7, 2, 0, 0, 516, 508, 1, 0, 0, 0, 516, 511, 1, 0, 0, 0, 516, 515, 1, 0, 0, 0, 517, 551, 1, 0, 0, 0, 518, 520, 7, 3, 0, 0, 519, 518, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 523, 7, 4, 0, 0, 522, 524, 5, 63, 0, 0, 523, 522, 1, 0, 0, 0, 523, 524, 1, 0, 0, 0, 524, 533, 1, 0, 0, 0, 525, 527, 7, 4, 0, 0, 526, 528, 5, 63, 0, 0, 527, 526, 1, 0, 0, 0, 527, 528, 1, 0, 0, 0, 528, 530, 1, 0, 0, 0, 529, 531, 7, 3, 0, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 533, 1, 0, 0, 0, 532, 519, 1, 0, 0, 0, 532, 525, 1, 0, 0, 0, 533, 551, 1, 0, 0, 0, 534, 536, 7, 5, 0, 0, 535, 534, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 539, 5, 33, 0, 0, 538, 540, 5, 63, 0, 0, 539, 538, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 549, 1, 0, 0, 0, 541, 543, 5, 33, 0, 0, 542, 544, 5, 63, 0, 0, 543, 542, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 546, 1, 0, 0, 0, 545, 547, 7, 5, 0, 0, 546, 545, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 549, 1, 0, 0, 0, 548, 535, 1, 0, 0, 0, 548, 541, 1, 0, 0, 0, 549, 551, 1, 0, 0, 0, 550, 516, 1, 0, 0, 0, 550, 532, 1, 0, 0, 0, 550, 548, 1, 0, 0, 0, 551, 73, 1, 0, 0, 0, 552, 553, 5, 16, 0, 0, 553, 556, 5, 45, 0, 0, 554, 556, 5, 112, 0, 0, 555, 552, 1, 0, 0, 0, 555, 554, 1, 0, 0, 0, 556, 75, 1, 0, 0, 0, 557, 558, 5, 60, 0, 0, 558, 567, 3, 106, 53, 0, 559, 560, 5, 92, 0, 0, 560, 561, 5, 126, 0, 0, 561, 562, 3, 106, 53, 0, 562, 563, 5, 144, 0, 0, 563, 567, 1, 0, 0, 0, 564, 565, 5, 92, 0, 0, 565, 567, 3, 106, 53, 0, 566, 557, 1, 0, 0, 0, 566, 559, 1, 0, 0, 0, 566, 564, 1, 0, 0, 0, 567, 77, 1, 0, 0, 0, 568, 569, 5, 75, 0, 0, 569, 572, 3, 84, 42, 0, 570, 571, 5, 59, 0, 0, 571, 573, 3, 84, 42, 0, 572, 570, 1, 0, 0, 0, 572, 573, 1, 0, 0, 0, 573, 79, 1, 0, 0, 0, 574, 579, 3, 82, 41, 0, 575, 576, 5, 112, 0, 0, 576, 578, 3, 82, 41, 0, 577, 575, 1, 0, 0, 0, 578, 581, 1, 0, 0, 0, 579, 577, 1, 0, 0, 0, 579, 580, 1, 0, 0, 0, 580, 81, 1, 0, 0, 0, 581, 579, 1, 0, 0, 0, 582, 584, 3, 108, 54, 0, 583, 585, 7, 6, 0, 0, 584, 583, 1, 0, 0, 0, 584, 585, 1, 0, 0, 0, 585, 588, 1, 0, 0, 0, 586, 587, 5, 58, 0, 0, 587, 589, 7, 7, 0, 0, 588, 586, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 592, 1, 0, 0, 0, 590, 591, 5, 15, 0, 0, 591, 593, 5, 106, 0, 0, 592, 590, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 83, 1, 0, 0, 0, 594, 601, 3, 156, 78, 0, 595, 598, 3, 140, 70, 0, 596, 597, 5, 146, 0, 0, 597, 599, 3, 140, 70, 0, 598, 596, 1, 0, 0, 0, 598, 599, 1, 0, 0, 0, 599, 601, 1, 0, 0, 0, 600, 594, 1, 0, 0, 0, 600, 595, 1, 0, 0, 0, 601, 85, 1, 0, 0, 0, 602, 607, 3, 88, 44, 0, 603, 604, 5, 112, 0, 0, 604, 606, 3, 88, 44, 0, 605, 603, 1, 0, 0, 0, 606, 609, 1, 0, 0, 0, 607, 605, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 87, 1, 0, 0, 0, 609, 607, 1, 0, 0, 0, 610, 611, 3, 152, 76, 0, 611, 612, 5, 118, 0, 0, 612, 613, 3, 142, 71, 0, 613, 89, 1, 0, 0, 0, 614, 616, 3, 92, 46, 0, 615, 614, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 618, 1, 0, 0, 0, 617, 619, 3, 94, 47, 0, 618, 617, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 621, 1, 0, 0, 0, 620, 622, 3, 96, 48, 0, 621, 620, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 91, 1, 0, 0, 0, 623, 624, 5, 65, 0, 0, 624, 625, 5, 11, 0, 0, 625, 626, 3, 106, 53, 0, 626, 93, 1, 0, 0, 0, 627, 628, 5, 62, 0, 0, 628, 629, 5, 11, 0, 0, 629, 630, 3, 80, 40, 0, 630, 95, 1, 0, 0, 0, 631, 632, 7, 8, 0, 0, 632, 633, 3, 98, 49, 0, 633, 97, 1, 0, 0, 0, 634, 641, 3, 100, 50, 0, 635, 636, 5, 9, 0, 0, 636, 637, 3, 100, 50, 0, 637, 638, 5, 2, 0, 0, 638, 639, 3, 100, 50, 0, 639, 641, 1, 0, 0, 0, 640, 634, 1, 0, 0, 0, 640, 635, 1, 0, 0, 0, 641, 99, 1, 0, 0, 0, 642, 643, 5, 18, 0, 0, 643, 655, 5, 73, 0, 0, 644, 645, 5, 90, 0, 0, 645, 655, 5, 66, 0, 0, 646, 647, 5, 90, 0, 0, 647, 655, 5, 30, 0, 0, 648, 649, 3, 140, 70, 0, 649, 650, 5, 66, 0, 0, 650, 655, 1, 0, 0, 0, 651, 652, 3, 140, 70, 0, 652, 653, 5, 30, 0, 0, 653, 655, 1, 0, 0, 0, 654, 642, 1, 0, 0, 0, 654, 644, 1, 0, 0, 0, 654, 646, 1, 0, 0, 0, 654, 648, 1, 0, 0, 0, 654, 651, 1, 0, 0, 0, 655, 101, 1, 0, 0, 0, 656, 657, 3, 108, 54, 0, 657, 658, 5, 0, 0, 1, 658, 103, 1, 0, 0, 0, 659, 716, 3, 152, 76, 0, 660, 661, 3, 152, 76, 0, 661, 662, 5, 126, 0, 0, 662, 663, 3, 152, 76, 0, 663, 670, 3, 104, 52, 0, 664, 665, 5, 112, 0, 0, 665, 666, 3, 152, 76, 0, 666, 667, 3, 104, 52, 0, 667, 669, 1, 0, 0, 0, 668, 664, 1, 0, 0, 0, 669, 672, 1, 0, 0, 0, 670, 668, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 674, 1, 0, 0, 0, 672, 670, 1, 0, 0, 0, 673, 675, 5, 112, 0, 0, 674, 673, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 677, 5, 144, 0, 0, 677, 716, 1, 0, 0, 0, 678, 679, 3, 152, 76, 0, 679, 680, 5, 126, 0, 0, 680, 685, 3, 154, 77, 0, 681, 682, 5, 112, 0, 0, 682, 684, 3, 154, 77, 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, 689, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 688, 690, 5, 112, 0, 0, 689, 688, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 692, 5, 144, 0, 0, 692, 716, 1, 0, 0, 0, 693, 694, 3, 152, 76, 0, 694, 695, 5, 126, 0, 0, 695, 700, 3, 104, 52, 0, 696, 697, 5, 112, 0, 0, 697, 699, 3, 104, 52, 0, 698, 696, 1, 0, 0, 0, 699, 702, 1, 0, 0, 0, 700, 698, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 704, 1, 0, 0, 0, 702, 700, 1, 0, 0, 0, 703, 705, 5, 112, 0, 0, 704, 703, 1, 0, 0, 0, 704, 705, 1, 0, 0, 0, 705, 706, 1, 0, 0, 0, 706, 707, 5, 144, 0, 0, 707, 716, 1, 0, 0, 0, 708, 709, 3, 152, 76, 0, 709, 711, 5, 126, 0, 0, 710, 712, 3, 106, 53, 0, 711, 710, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 713, 1, 0, 0, 0, 713, 714, 5, 144, 0, 0, 714, 716, 1, 0, 0, 0, 715, 659, 1, 0, 0, 0, 715, 660, 1, 0, 0, 0, 715, 678, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 708, 1, 0, 0, 0, 716, 105, 1, 0, 0, 0, 717, 722, 3, 108, 54, 0, 718, 719, 5, 112, 0, 0, 719, 721, 3, 108, 54, 0, 720, 718, 1, 0, 0, 0, 721, 724, 1, 0, 0, 0, 722, 720, 1, 0, 0, 0, 722, 723, 1, 0, 0, 0, 723, 726, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 725, 727, 5, 112, 0, 0, 726, 725, 1, 0, 0, 0, 726, 727, 1, 0, 0, 0, 727, 107, 1, 0, 0, 0, 728, 729, 6, 54, -1, 0, 729, 731, 5, 12, 0, 0, 730, 732, 3, 108, 54, 0, 731, 730, 1, 0, 0, 0, 731, 732, 1, 0, 0, 0, 732, 738, 1, 0, 0, 0, 733, 734, 5, 94, 0, 0, 734, 735, 3, 108, 54, 0, 735, 736, 5, 81, 0, 0, 736, 737, 3, 108, 54, 0, 737, 739, 1, 0, 0, 0, 738, 733, 1, 0, 0, 0, 739, 740, 1, 0, 0, 0, 740, 738, 1, 0, 0, 0, 740, 741, 1, 0, 0, 0, 741, 744, 1, 0, 0, 0, 742, 743, 5, 24, 0, 0, 743, 745, 3, 108, 54, 0, 744, 742, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 746, 1, 0, 0, 0, 746, 747, 5, 25, 0, 0, 747, 878, 1, 0, 0, 0, 748, 749, 5, 13, 0, 0, 749, 750, 5, 126, 0, 0, 750, 751, 3, 108, 54, 0, 751, 752, 5, 6, 0, 0, 752, 753, 3, 104, 52, 0, 753, 754, 5, 144, 0, 0, 754, 878, 1, 0, 0, 0, 755, 756, 5, 19, 0, 0, 756, 878, 5, 106, 0, 0, 757, 758, 5, 43, 0, 0, 758, 759, 3, 108, 54, 0, 759, 760, 3, 144, 72, 0, 760, 878, 1, 0, 0, 0, 761, 762, 5, 80, 0, 0, 762, 763, 5, 126, 0, 0, 763, 764, 3, 108, 54, 0, 764, 765, 5, 32, 0, 0, 765, 768, 3, 108, 54, 0, 766, 767, 5, 31, 0, 0, 767, 769, 3, 108, 54, 0, 768, 766, 1, 0, 0, 0, 768, 769, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 771, 5, 144, 0, 0, 771, 878, 1, 0, 0, 0, 772, 773, 5, 83, 0, 0, 773, 878, 5, 106, 0, 0, 774, 775, 5, 88, 0, 0, 775, 776, 5, 126, 0, 0, 776, 777, 7, 9, 0, 0, 777, 778, 3, 158, 79, 0, 778, 779, 5, 32, 0, 0, 779, 780, 3, 108, 54, 0, 780, 781, 5, 144, 0, 0, 781, 878, 1, 0, 0, 0, 782, 783, 3, 152, 76, 0, 783, 785, 5, 126, 0, 0, 784, 786, 3, 106, 53, 0, 785, 784, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 787, 1, 0, 0, 0, 787, 788, 5, 144, 0, 0, 788, 797, 1, 0, 0, 0, 789, 791, 5, 126, 0, 0, 790, 792, 5, 23, 0, 0, 791, 790, 1, 0, 0, 0, 791, 792, 1, 0, 0, 0, 792, 794, 1, 0, 0, 0, 793, 795, 3, 110, 55, 0, 794, 793, 1, 0, 0, 0, 794, 795, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 798, 5, 144, 0, 0, 797, 789, 1, 0, 0, 0, 797, 798, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 800, 5, 64, 0, 0, 800, 801, 5, 126, 0, 0, 801, 802, 3, 90, 45, 0, 802, 803, 5, 144, 0, 0, 803, 878, 1, 0, 0, 0, 804, 805, 3, 152, 76, 0, 805, 807, 5, 126, 0, 0, 806, 808, 3, 106, 53, 0, 807, 806, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 810, 5, 144, 0, 0, 810, 819, 1, 0, 0, 0, 811, 813, 5, 126, 0, 0, 812, 814, 5, 23, 0, 0, 813, 812, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 817, 3, 110, 55, 0, 816, 815, 1, 0, 0, 0, 816, 817, 1, 0, 0, 0, 817, 818, 1, 0, 0, 0, 818, 820, 5, 144, 0, 0, 819, 811, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 821, 1, 0, 0, 0, 821, 822, 5, 64, 0, 0, 822, 823, 3, 152, 76, 0, 823, 878, 1, 0, 0, 0, 824, 830, 3, 152, 76, 0, 825, 827, 5, 126, 0, 0, 826, 828, 3, 106, 53, 0, 827, 826, 1, 0, 0, 0, 827, 828, 1, 0, 0, 0, 828, 829, 1, 0, 0, 0, 829, 831, 5, 144, 0, 0, 830, 825, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 1, 0, 0, 0, 832, 834, 5, 126, 0, 0, 833, 835, 5, 23, 0, 0, 834, 833, 1, 0, 0, 0, 834, 835, 1, 0, 0, 0, 835, 837, 1, 0, 0, 0, 836, 838, 3, 110, 55, 0, 837, 836, 1, 0, 0, 0, 837, 838, 1, 0, 0, 0, 838, 839, 1, 0, 0, 0, 839, 840, 5, 144, 0, 0, 840, 878, 1, 0, 0, 0, 841, 878, 3, 116, 58, 0, 842, 878, 3, 160, 80, 0, 843, 878, 3, 142, 71, 0, 844, 845, 5, 114, 0, 0, 845, 878, 3, 108, 54, 19, 846, 847, 5, 56, 0, 0, 847, 878, 3, 108, 54, 13, 848, 849, 3, 132, 66, 0, 849, 850, 5, 116, 0, 0, 850, 852, 1, 0, 0, 0, 851, 848, 1, 0, 0, 0, 851, 852, 1, 0, 0, 0, 852, 853, 1, 0, 0, 0, 853, 878, 5, 108, 0, 0, 854, 855, 5, 126, 0, 0, 855, 856, 3, 36, 18, 0, 856, 857, 5, 144, 0, 0, 857, 878, 1, 0, 0, 0, 858, 859, 5, 126, 0, 0, 859, 860, 3, 108, 54, 0, 860, 861, 5, 144, 0, 0, 861, 878, 1, 0, 0, 0, 862, 863, 5, 126, 0, 0, 863, 864, 3, 106, 53, 0, 864, 865, 5, 144, 0, 0, 865, 878, 1, 0, 0, 0, 866, 868, 5, 125, 0, 0, 867, 869, 3, 106, 53, 0, 868, 867, 1, 0, 0, 0, 868, 869, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 878, 5, 143, 0, 0, 871, 873, 5, 124, 0, 0, 872, 874, 3, 32, 16, 0, 873, 872, 1, 0, 0, 0, 873, 874, 1, 0, 0, 0, 874, 875, 1, 0, 0, 0, 875, 878, 5, 142, 0, 0, 876, 878, 3, 124, 62, 0, 877, 728, 1, 0, 0, 0, 877, 748, 1, 0, 0, 0, 877, 755, 1, 0, 0, 0, 877, 757, 1, 0, 0, 0, 877, 761, 1, 0, 0, 0, 877, 772, 1, 0, 0, 0, 877, 774, 1, 0, 0, 0, 877, 782, 1, 0, 0, 0, 877, 804, 1, 0, 0, 0, 877, 824, 1, 0, 0, 0, 877, 841, 1, 0, 0, 0, 877, 842, 1, 0, 0, 0, 877, 843, 1, 0, 0, 0, 877, 844, 1, 0, 0, 0, 877, 846, 1, 0, 0, 0, 877, 851, 1, 0, 0, 0, 877, 854, 1, 0, 0, 0, 877, 858, 1, 0, 0, 0, 877, 862, 1, 0, 0, 0, 877, 866, 1, 0, 0, 0, 877, 871, 1, 0, 0, 0, 877, 876, 1, 0, 0, 0, 878, 971, 1, 0, 0, 0, 879, 883, 10, 18, 0, 0, 880, 884, 5, 108, 0, 0, 881, 884, 5, 146, 0, 0, 882, 884, 5, 133, 0, 0, 883, 880, 1, 0, 0, 0, 883, 881, 1, 0, 0, 0, 883, 882, 1, 0, 0, 0, 884, 885, 1, 0, 0, 0, 885, 970, 3, 108, 54, 19, 886, 890, 10, 17, 0, 0, 887, 891, 5, 134, 0, 0, 888, 891, 5, 114, 0, 0, 889, 891, 5, 113, 0, 0, 890, 887, 1, 0, 0, 0, 890, 888, 1, 0, 0, 0, 890, 889, 1, 0, 0, 0, 891, 892, 1, 0, 0, 0, 892, 970, 3, 108, 54, 18, 893, 918, 10, 16, 0, 0, 894, 919, 5, 117, 0, 0, 895, 919, 5, 118, 0, 0, 896, 919, 5, 129, 0, 0, 897, 919, 5, 127, 0, 0, 898, 919, 5, 128, 0, 0, 899, 919, 5, 119, 0, 0, 900, 919, 5, 120, 0, 0, 901, 903, 5, 56, 0, 0, 902, 901, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 904, 1, 0, 0, 0, 904, 906, 5, 40, 0, 0, 905, 907, 5, 14, 0, 0, 906, 905, 1, 0, 0, 0, 906, 907, 1, 0, 0, 0, 907, 919, 1, 0, 0, 0, 908, 910, 5, 56, 0, 0, 909, 908, 1, 0, 0, 0, 909, 910, 1, 0, 0, 0, 910, 911, 1, 0, 0, 0, 911, 919, 7, 10, 0, 0, 912, 919, 5, 140, 0, 0, 913, 919, 5, 141, 0, 0, 914, 919, 5, 131, 0, 0, 915, 919, 5, 122, 0, 0, 916, 919, 5, 123, 0, 0, 917, 919, 5, 130, 0, 0, 918, 894, 1, 0, 0, 0, 918, 895, 1, 0, 0, 0, 918, 896, 1, 0, 0, 0, 918, 897, 1, 0, 0, 0, 918, 898, 1, 0, 0, 0, 918, 899, 1, 0, 0, 0, 918, 900, 1, 0, 0, 0, 918, 902, 1, 0, 0, 0, 918, 909, 1, 0, 0, 0, 918, 912, 1, 0, 0, 0, 918, 913, 1, 0, 0, 0, 918, 914, 1, 0, 0, 0, 918, 915, 1, 0, 0, 0, 918, 916, 1, 0, 0, 0, 918, 917, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 970, 3, 108, 54, 17, 921, 922, 10, 14, 0, 0, 922, 923, 5, 132, 0, 0, 923, 970, 3, 108, 54, 15, 924, 925, 10, 12, 0, 0, 925, 926, 5, 2, 0, 0, 926, 970, 3, 108, 54, 13, 927, 928, 10, 11, 0, 0, 928, 929, 5, 61, 0, 0, 929, 970, 3, 108, 54, 12, 930, 932, 10, 10, 0, 0, 931, 933, 5, 56, 0, 0, 932, 931, 1, 0, 0, 0, 932, 933, 1, 0, 0, 0, 933, 934, 1, 0, 0, 0, 934, 935, 5, 9, 0, 0, 935, 936, 3, 108, 54, 0, 936, 937, 5, 2, 0, 0, 937, 938, 3, 108, 54, 11, 938, 970, 1, 0, 0, 0, 939, 940, 10, 9, 0, 0, 940, 941, 5, 135, 0, 0, 941, 942, 3, 108, 54, 0, 942, 943, 5, 111, 0, 0, 943, 944, 3, 108, 54, 9, 944, 970, 1, 0, 0, 0, 945, 946, 10, 22, 0, 0, 946, 947, 5, 125, 0, 0, 947, 948, 3, 108, 54, 0, 948, 949, 5, 143, 0, 0, 949, 970, 1, 0, 0, 0, 950, 951, 10, 21, 0, 0, 951, 952, 5, 116, 0, 0, 952, 970, 5, 104, 0, 0, 953, 954, 10, 20, 0, 0, 954, 955, 5, 116, 0, 0, 955, 970, 3, 152, 76, 0, 956, 957, 10, 15, 0, 0, 957, 959, 5, 44, 0, 0, 958, 960, 5, 56, 0, 0, 959, 958, 1, 0, 0, 0, 959, 960, 1, 0, 0, 0, 960, 961, 1, 0, 0, 0, 961, 970, 5, 57, 0, 0, 962, 967, 10, 8, 0, 0, 963, 964, 5, 6, 0, 0, 964, 968, 3, 152, 76, 0, 965, 966, 5, 6, 0, 0, 966, 968, 5, 106, 0, 0, 967, 963, 1, 0, 0, 0, 967, 965, 1, 0, 0, 0, 968, 970, 1, 0, 0, 0, 969, 879, 1, 0, 0, 0, 969, 886, 1, 0, 0, 0, 969, 893, 1, 0, 0, 0, 969, 921, 1, 0, 0, 0, 969, 924, 1, 0, 0, 0, 969, 927, 1, 0, 0, 0, 969, 930, 1, 0, 0, 0, 969, 939, 1, 0, 0, 0, 969, 945, 1, 0, 0, 0, 969, 950, 1, 0, 0, 0, 969, 953, 1, 0, 0, 0, 969, 956, 1, 0, 0, 0, 969, 962, 1, 0, 0, 0, 970, 973, 1, 0, 0, 0, 971, 969, 1, 0, 0, 0, 971, 972, 1, 0, 0, 0, 972, 109, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 974, 979, 3, 112, 56, 0, 975, 976, 5, 112, 0, 0, 976, 978, 3, 112, 56, 0, 977, 975, 1, 0, 0, 0, 978, 981, 1, 0, 0, 0, 979, 977, 1, 0, 0, 0, 979, 980, 1, 0, 0, 0, 980, 983, 1, 0, 0, 0, 981, 979, 1, 0, 0, 0, 982, 984, 5, 112, 0, 0, 983, 982, 1, 0, 0, 0, 983, 984, 1, 0, 0, 0, 984, 111, 1, 0, 0, 0, 985, 988, 3, 114, 57, 0, 986, 988, 3, 108, 54, 0, 987, 985, 1, 0, 0, 0, 987, 986, 1, 0, 0, 0, 988, 113, 1, 0, 0, 0, 989, 990, 5, 126, 0, 0, 990, 995, 3, 152, 76, 0, 991, 992, 5, 112, 0, 0, 992, 994, 3, 152, 76, 0, 993, 991, 1, 0, 0, 0, 994, 997, 1, 0, 0, 0, 995, 993, 1, 0, 0, 0, 995, 996, 1, 0, 0, 0, 996, 999, 1, 0, 0, 0, 997, 995, 1, 0, 0, 0, 998, 1000, 5, 112, 0, 0, 999, 998, 1, 0, 0, 0, 999, 1000, 1, 0, 0, 0, 1000, 1001, 1, 0, 0, 0, 1001, 1002, 5, 144, 0, 0, 1002, 1015, 1, 0, 0, 0, 1003, 1008, 3, 152, 76, 0, 1004, 1005, 5, 112, 0, 0, 1005, 1007, 3, 152, 76, 0, 1006, 1004, 1, 0, 0, 0, 1007, 1010, 1, 0, 0, 0, 1008, 1006, 1, 0, 0, 0, 1008, 1009, 1, 0, 0, 0, 1009, 1012, 1, 0, 0, 0, 1010, 1008, 1, 0, 0, 0, 1011, 1013, 5, 112, 0, 0, 1012, 1011, 1, 0, 0, 0, 1012, 1013, 1, 0, 0, 0, 1013, 1015, 1, 0, 0, 0, 1014, 989, 1, 0, 0, 0, 1014, 1003, 1, 0, 0, 0, 1015, 1016, 1, 0, 0, 0, 1016, 1017, 5, 107, 0, 0, 1017, 1018, 3, 108, 54, 0, 1018, 115, 1, 0, 0, 0, 1019, 1020, 5, 128, 0, 0, 1020, 1024, 3, 152, 76, 0, 1021, 1023, 3, 118, 59, 0, 1022, 1021, 1, 0, 0, 0, 1023, 1026, 1, 0, 0, 0, 1024, 1022, 1, 0, 0, 0, 1024, 1025, 1, 0, 0, 0, 1025, 1027, 1, 0, 0, 0, 1026, 1024, 1, 0, 0, 0, 1027, 1028, 5, 146, 0, 0, 1028, 1029, 5, 120, 0, 0, 1029, 1048, 1, 0, 0, 0, 1030, 1031, 5, 128, 0, 0, 1031, 1035, 3, 152, 76, 0, 1032, 1034, 3, 118, 59, 0, 1033, 1032, 1, 0, 0, 0, 1034, 1037, 1, 0, 0, 0, 1035, 1033, 1, 0, 0, 0, 1035, 1036, 1, 0, 0, 0, 1036, 1038, 1, 0, 0, 0, 1037, 1035, 1, 0, 0, 0, 1038, 1040, 5, 120, 0, 0, 1039, 1041, 3, 116, 58, 0, 1040, 1039, 1, 0, 0, 0, 1040, 1041, 1, 0, 0, 0, 1041, 1042, 1, 0, 0, 0, 1042, 1043, 5, 128, 0, 0, 1043, 1044, 5, 146, 0, 0, 1044, 1045, 3, 152, 76, 0, 1045, 1046, 5, 120, 0, 0, 1046, 1048, 1, 0, 0, 0, 1047, 1019, 1, 0, 0, 0, 1047, 1030, 1, 0, 0, 0, 1048, 117, 1, 0, 0, 0, 1049, 1050, 3, 152, 76, 0, 1050, 1051, 5, 118, 0, 0, 1051, 1052, 3, 158, 79, 0, 1052, 1061, 1, 0, 0, 0, 1053, 1054, 3, 152, 76, 0, 1054, 1055, 5, 118, 0, 0, 1055, 1056, 5, 124, 0, 0, 1056, 1057, 3, 108, 54, 0, 1057, 1058, 5, 142, 0, 0, 1058, 1061, 1, 0, 0, 0, 1059, 1061, 3, 152, 76, 0, 1060, 1049, 1, 0, 0, 0, 1060, 1053, 1, 0, 0, 0, 1060, 1059, 1, 0, 0, 0, 1061, 119, 1, 0, 0, 0, 1062, 1067, 3, 122, 61, 0, 1063, 1064, 5, 112, 0, 0, 1064, 1066, 3, 122, 61, 0, 1065, 1063, 1, 0, 0, 0, 1066, 1069, 1, 0, 0, 0, 1067, 1065, 1, 0, 0, 0, 1067, 1068, 1, 0, 0, 0, 1068, 1071, 1, 0, 0, 0, 1069, 1067, 1, 0, 0, 0, 1070, 1072, 5, 112, 0, 0, 1071, 1070, 1, 0, 0, 0, 1071, 1072, 1, 0, 0, 0, 1072, 121, 1, 0, 0, 0, 1073, 1074, 3, 152, 76, 0, 1074, 1075, 5, 6, 0, 0, 1075, 1076, 5, 126, 0, 0, 1076, 1077, 3, 36, 18, 0, 1077, 1078, 5, 144, 0, 0, 1078, 1084, 1, 0, 0, 0, 1079, 1080, 3, 108, 54, 0, 1080, 1081, 5, 6, 0, 0, 1081, 1082, 3, 152, 76, 0, 1082, 1084, 1, 0, 0, 0, 1083, 1073, 1, 0, 0, 0, 1083, 1079, 1, 0, 0, 0, 1084, 123, 1, 0, 0, 0, 1085, 1093, 3, 156, 78, 0, 1086, 1087, 3, 132, 66, 0, 1087, 1088, 5, 116, 0, 0, 1088, 1090, 1, 0, 0, 0, 1089, 1086, 1, 0, 0, 0, 1089, 1090, 1, 0, 0, 0, 1090, 1091, 1, 0, 0, 0, 1091, 1093, 3, 126, 63, 0, 1092, 1085, 1, 0, 0, 0, 1092, 1089, 1, 0, 0, 0, 1093, 125, 1, 0, 0, 0, 1094, 1099, 3, 152, 76, 0, 1095, 1096, 5, 116, 0, 0, 1096, 1098, 3, 152, 76, 0, 1097, 1095, 1, 0, 0, 0, 1098, 1101, 1, 0, 0, 0, 1099, 1097, 1, 0, 0, 0, 1099, 1100, 1, 0, 0, 0, 1100, 127, 1, 0, 0, 0, 1101, 1099, 1, 0, 0, 0, 1102, 1103, 6, 64, -1, 0, 1103, 1112, 3, 132, 66, 0, 1104, 1112, 3, 130, 65, 0, 1105, 1106, 5, 126, 0, 0, 1106, 1107, 3, 36, 18, 0, 1107, 1108, 5, 144, 0, 0, 1108, 1112, 1, 0, 0, 0, 1109, 1112, 3, 116, 58, 0, 1110, 1112, 3, 156, 78, 0, 1111, 1102, 1, 0, 0, 0, 1111, 1104, 1, 0, 0, 0, 1111, 1105, 1, 0, 0, 0, 1111, 1109, 1, 0, 0, 0, 1111, 1110, 1, 0, 0, 0, 1112, 1121, 1, 0, 0, 0, 1113, 1117, 10, 3, 0, 0, 1114, 1118, 3, 150, 75, 0, 1115, 1116, 5, 6, 0, 0, 1116, 1118, 3, 152, 76, 0, 1117, 1114, 1, 0, 0, 0, 1117, 1115, 1, 0, 0, 0, 1118, 1120, 1, 0, 0, 0, 1119, 1113, 1, 0, 0, 0, 1120, 1123, 1, 0, 0, 0, 1121, 1119, 1, 0, 0, 0, 1121, 1122, 1, 0, 0, 0, 1122, 129, 1, 0, 0, 0, 1123, 1121, 1, 0, 0, 0, 1124, 1125, 3, 152, 76, 0, 1125, 1127, 5, 126, 0, 0, 1126, 1128, 3, 134, 67, 0, 1127, 1126, 1, 0, 0, 0, 1127, 1128, 1, 0, 0, 0, 1128, 1129, 1, 0, 0, 0, 1129, 1130, 5, 144, 0, 0, 1130, 131, 1, 0, 0, 0, 1131, 1132, 3, 136, 68, 0, 1132, 1133, 5, 116, 0, 0, 1133, 1135, 1, 0, 0, 0, 1134, 1131, 1, 0, 0, 0, 1134, 1135, 1, 0, 0, 0, 1135, 1136, 1, 0, 0, 0, 1136, 1137, 3, 152, 76, 0, 1137, 133, 1, 0, 0, 0, 1138, 1143, 3, 108, 54, 0, 1139, 1140, 5, 112, 0, 0, 1140, 1142, 3, 108, 54, 0, 1141, 1139, 1, 0, 0, 0, 1142, 1145, 1, 0, 0, 0, 1143, 1141, 1, 0, 0, 0, 1143, 1144, 1, 0, 0, 0, 1144, 1147, 1, 0, 0, 0, 1145, 1143, 1, 0, 0, 0, 1146, 1148, 5, 112, 0, 0, 1147, 1146, 1, 0, 0, 0, 1147, 1148, 1, 0, 0, 0, 1148, 135, 1, 0, 0, 0, 1149, 1150, 3, 152, 76, 0, 1150, 137, 1, 0, 0, 0, 1151, 1160, 5, 102, 0, 0, 1152, 1153, 5, 116, 0, 0, 1153, 1160, 7, 11, 0, 0, 1154, 1155, 5, 104, 0, 0, 1155, 1157, 5, 116, 0, 0, 1156, 1158, 7, 11, 0, 0, 1157, 1156, 1, 0, 0, 0, 1157, 1158, 1, 0, 0, 0, 1158, 1160, 1, 0, 0, 0, 1159, 1151, 1, 0, 0, 0, 1159, 1152, 1, 0, 0, 0, 1159, 1154, 1, 0, 0, 0, 1160, 139, 1, 0, 0, 0, 1161, 1163, 7, 12, 0, 0, 1162, 1161, 1, 0, 0, 0, 1162, 1163, 1, 0, 0, 0, 1163, 1170, 1, 0, 0, 0, 1164, 1171, 3, 138, 69, 0, 1165, 1171, 5, 103, 0, 0, 1166, 1171, 5, 104, 0, 0, 1167, 1171, 5, 105, 0, 0, 1168, 1171, 5, 41, 0, 0, 1169, 1171, 5, 55, 0, 0, 1170, 1164, 1, 0, 0, 0, 1170, 1165, 1, 0, 0, 0, 1170, 1166, 1, 0, 0, 0, 1170, 1167, 1, 0, 0, 0, 1170, 1168, 1, 0, 0, 0, 1170, 1169, 1, 0, 0, 0, 1171, 141, 1, 0, 0, 0, 1172, 1176, 3, 140, 70, 0, 1173, 1176, 5, 106, 0, 0, 1174, 1176, 5, 57, 0, 0, 1175, 1172, 1, 0, 0, 0, 1175, 1173, 1, 0, 0, 0, 1175, 1174, 1, 0, 0, 0, 1176, 143, 1, 0, 0, 0, 1177, 1178, 7, 13, 0, 0, 1178, 145, 1, 0, 0, 0, 1179, 1180, 7, 14, 0, 0, 1180, 147, 1, 0, 0, 0, 1181, 1182, 7, 15, 0, 0, 1182, 149, 1, 0, 0, 0, 1183, 1186, 5, 101, 0, 0, 1184, 1186, 3, 148, 74, 0, 1185, 1183, 1, 0, 0, 0, 1185, 1184, 1, 0, 0, 0, 1186, 151, 1, 0, 0, 0, 1187, 1191, 5, 101, 0, 0, 1188, 1191, 3, 144, 72, 0, 1189, 1191, 3, 146, 73, 0, 1190, 1187, 1, 0, 0, 0, 1190, 1188, 1, 0, 0, 0, 1190, 1189, 1, 0, 0, 0, 1191, 153, 1, 0, 0, 0, 1192, 1193, 3, 158, 79, 0, 1193, 1194, 5, 118, 0, 0, 1194, 1195, 3, 140, 70, 0, 1195, 155, 1, 0, 0, 0, 1196, 1197, 5, 124, 0, 0, 1197, 1198, 3, 152, 76, 0, 1198, 1199, 5, 142, 0, 0, 1199, 157, 1, 0, 0, 0, 1200, 1203, 5, 106, 0, 0, 1201, 1203, 3, 160, 80, 0, 1202, 1200, 1, 0, 0, 0, 1202, 1201, 1, 0, 0, 0, 1203, 159, 1, 0, 0, 0, 1204, 1208, 5, 137, 0, 0, 1205, 1207, 3, 162, 81, 0, 1206, 1205, 1, 0, 0, 0, 1207, 1210, 1, 0, 0, 0, 1208, 1206, 1, 0, 0, 0, 1208, 1209, 1, 0, 0, 0, 1209, 1211, 1, 0, 0, 0, 1210, 1208, 1, 0, 0, 0, 1211, 1212, 5, 139, 0, 0, 1212, 161, 1, 0, 0, 0, 1213, 1214, 5, 152, 0, 0, 1214, 1215, 3, 108, 54, 0, 1215, 1216, 5, 142, 0, 0, 1216, 1219, 1, 0, 0, 0, 1217, 1219, 5, 151, 0, 0, 1218, 1213, 1, 0, 0, 0, 1218, 1217, 1, 0, 0, 0, 1219, 163, 1, 0, 0, 0, 1220, 1224, 5, 138, 0, 0, 1221, 1223, 3, 166, 83, 0, 1222, 1221, 1, 0, 0, 0, 1223, 1226, 1, 0, 0, 0, 1224, 1222, 1, 0, 0, 0, 1224, 1225, 1, 0, 0, 0, 1225, 1227, 1, 0, 0, 0, 1226, 1224, 1, 0, 0, 0, 1227, 1228, 5, 0, 0, 1, 1228, 165, 1, 0, 0, 0, 1229, 1230, 5, 154, 0, 0, 1230, 1231, 3, 108, 54, 0, 1231, 1232, 5, 142, 0, 0, 1232, 1235, 1, 0, 0, 0, 1233, 1235, 5, 153, 0, 0, 1234, 1229, 1, 0, 0, 0, 1234, 1233, 1, 0, 0, 0, 1235, 167, 1, 0, 0, 0, 160, 171, 178, 187, 194, 198, 209, 213, 216, 225, 233, 240, 244, 250, 255, 261, 273, 281, 295, 299, 304, 314, 323, 326, 330, 333, 337, 340, 343, 346, 349, 353, 357, 360, 363, 366, 370, 373, 382, 388, 409, 426, 443, 449, 455, 466, 468, 479, 482, 488, 496, 502, 504, 508, 513, 516, 519, 523, 527, 530, 532, 535, 539, 543, 546, 548, 550, 555, 566, 572, 579, 584, 588, 592, 598, 600, 607, 615, 618, 621, 640, 654, 670, 674, 685, 689, 700, 704, 711, 715, 722, 726, 731, 740, 744, 768, 785, 791, 794, 797, 807, 813, 816, 819, 827, 830, 834, 837, 851, 868, 873, 877, 883, 890, 902, 906, 909, 918, 932, 959, 967, 969, 971, 979, 983, 987, 995, 999, 1008, 1012, 1014, 1024, 1035, 1040, 1047, 1060, 1067, 1071, 1083, 1089, 1092, 1099, 1111, 1117, 1121, 1127, 1134, 1143, 1147, 1157, 1159, 1162, 1170, 1175, 1185, 1190, 1202, 1208, 1218, 1224, 1234]
\ No newline at end of file
diff --git a/hogql_parser/__init__.pyi b/hogql_parser/__init__.pyi
index d118808220a9f..69734c92cc41f 100644
--- a/hogql_parser/__init__.pyi
+++ b/hogql_parser/__init__.pyi
@@ -1,4 +1,4 @@
-from posthog.hogql.ast import SelectQuery, SelectUnionQuery
+from posthog.hogql.ast import SelectQuery, SelectUnionQuery, Program
from posthog.hogql.base import AST
def parse_expr(expr: str, /, *, is_internal: bool = False) -> AST:
@@ -35,3 +35,10 @@ def parse_string_literal_text(value: str, /) -> str:
If the expr is `internal`, spans and notices won't be included in the AST.
"""
...
+
+def parse_program(source: str, /, *, is_internal: bool = False) -> Program:
+ """Parse a Hog program.
+
+ If the expr `is_internal`, spans and notices won't be included in the AST.
+ """
+ ...
diff --git a/hogql_parser/parser.cpp b/hogql_parser/parser.cpp
index c1a85b8d8cfd6..3679a392e5be2 100644
--- a/hogql_parser/parser.cpp
+++ b/hogql_parser/parser.cpp
@@ -291,6 +291,391 @@ class HogQLParseTreeConverter : public HogQLParserBaseVisitor {
return ret;
}
+ VISIT(Program) {
+ PyObject* declarations = PyList_New(0);
+ if (!declarations) {
+ throw PyInternalError();
+ }
+ auto declaration_ctxs = ctx->declaration();
+ for (auto declaration_ctx : declaration_ctxs) {
+ if (declaration_ctx->statement() && declaration_ctx->statement()->emptyStmt()) {
+ continue;
+ }
+ PyObject* statement = Py_None;
+ try {
+ statement = visitAsPyObject(declaration_ctx);
+ int append_code = PyList_Append(declarations, statement);
+ Py_DECREF(statement);
+ if (append_code == -1) {
+ throw PyInternalError();
+ }
+ } catch (...) {
+ Py_DECREF(declarations);
+ throw;
+ }
+ }
+ PyObject* ret = build_ast_node("Program", "{s:N}", "declarations", declarations);
+ if (!ret) {
+ Py_DECREF(declarations);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(Declaration) {
+ auto var_decl_ctx = ctx->varDecl();
+ if (var_decl_ctx) {
+ return visit(var_decl_ctx);
+ }
+ auto statement_ctx = ctx->statement();
+ if (statement_ctx) {
+ return visit(statement_ctx);
+ }
+ throw ParsingError("Declaration must be either a varDecl or a statement");
+ }
+
+ VISIT(Expression) {
+ return visit(ctx->columnExpr());
+ }
+
+ VISIT(VarDecl) {
+ string name = visitAsString(ctx->identifier());
+ PyObject* expr = visitAsPyObjectOrNone(ctx->expression());
+ PyObject* ret = build_ast_node("VariableDeclaration", "{s:s#,s:N}", "name", name.data(), name.size(), "expr", expr);
+ if (!ret) {
+ Py_DECREF(expr);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(VarAssignment) {
+ PyObject* left = visitAsPyObject(ctx->expression(0));
+ PyObject* right;
+ try {
+ right = visitAsPyObject(ctx->expression(1));
+ } catch (...) {
+ Py_DECREF(left);
+ throw;
+ }
+ PyObject* ret = build_ast_node("VariableAssignment", "{s:N,s:N}", "left", left, "right", right);
+ if (!ret) {
+ Py_DECREF(left);
+ Py_DECREF(right);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(Statement) {
+ auto return_stmt_ctx = ctx->returnStmt();
+ if (return_stmt_ctx) {
+ return visit(return_stmt_ctx);
+ }
+
+ auto if_stmt_ctx = ctx->ifStmt();
+ if (if_stmt_ctx) {
+ return visit(if_stmt_ctx);
+ }
+
+ auto while_stmt_ctx = ctx->whileStmt();
+ if (while_stmt_ctx) {
+ return visit(while_stmt_ctx);
+ }
+
+ auto for_stmt_ctx = ctx->forStmt();
+ if (for_stmt_ctx) {
+ return visit(for_stmt_ctx);
+ }
+
+ auto func_stmt_ctx = ctx->funcStmt();
+ if (func_stmt_ctx) {
+ return visit(func_stmt_ctx);
+ }
+
+ auto var_assignment_ctx = ctx->varAssignment();
+ if (var_assignment_ctx) {
+ return visit(var_assignment_ctx);
+ }
+
+ auto block_ctx = ctx->block();
+ if (block_ctx) {
+ return visit(block_ctx);
+ }
+
+ auto expr_stmt_ctx = ctx->exprStmt();
+ if (expr_stmt_ctx) {
+ return visit(expr_stmt_ctx);
+ }
+
+ auto empty_stmt_ctx = ctx->emptyStmt();
+ if (empty_stmt_ctx) {
+ return visit(empty_stmt_ctx);
+ }
+
+ throw ParsingError("Statement must be one of returnStmt, ifStmt, whileStmt, forStmt, funcStmt, varAssignment, "
+ "block, exprStmt, or emptyStmt");
+ }
+
+ VISIT(ExprStmt) {
+ PyObject* expr;
+ try {
+ expr = visitAsPyObject(ctx->expression());
+ } catch (...) {
+ throw;
+ }
+ PyObject* ret = build_ast_node("ExprStatement", "{s:N}", "expr", expr);
+ if (!ret) {
+ Py_DECREF(expr);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(ReturnStmt) {
+ PyObject* expr;
+ try {
+ expr = visitAsPyObjectOrNone(ctx->expression());
+ } catch (...) {
+ throw;
+ }
+ PyObject* ret = build_ast_node("ReturnStatement", "{s:N}", "expr", expr);
+ if (!ret) {
+ Py_DECREF(expr);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(IfStmt) {
+ PyObject* expr;
+ try {
+ expr = visitAsPyObject(ctx->expression());
+ } catch (...) {
+ throw;
+ }
+ PyObject* then_stmt;
+ try {
+ then_stmt = visitAsPyObject(ctx->statement(0));
+ } catch (...) {
+ Py_DECREF(expr);
+ throw;
+ }
+ PyObject* else_stmt;
+ try {
+ else_stmt = visitAsPyObjectOrNone(ctx->statement(1));
+ } catch (...) {
+ Py_DECREF(expr);
+ Py_DECREF(then_stmt);
+ throw;
+ }
+ PyObject* ret = build_ast_node("IfStatement", "{s:N,s:N,s:N}", "expr", expr, "then", then_stmt, "else_", else_stmt);
+ if (!ret) {
+ Py_DECREF(expr);
+ Py_DECREF(then_stmt);
+ Py_DECREF(else_stmt);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(WhileStmt) {
+ PyObject* expr;
+ try {
+ expr = visitAsPyObject(ctx->expression());
+ } catch (...) {
+ throw;
+ }
+ PyObject* body;
+ try {
+ body = visitAsPyObjectOrNone(ctx->statement());
+ } catch (...) {
+ Py_DECREF(expr);
+ throw;
+ }
+ PyObject* ret = build_ast_node("WhileStatement", "{s:N,s:N}", "expr", expr, "body", body);
+ if (!ret) {
+ Py_DECREF(expr);
+ Py_DECREF(body);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(ForStmt) {
+ PyObject* initializer;
+ if (ctx->initializerVarDeclr) {
+ initializer = visitAsPyObject(ctx->initializerVarDeclr);
+ } else if (ctx->initializerVarAssignment) {
+ initializer = visitAsPyObject(ctx->initializerVarAssignment);
+ } else if (ctx->initializerExpression) {
+ initializer = visitAsPyObject(ctx->initializerExpression);
+ } else {
+ initializer = Py_None;
+ Py_INCREF(initializer);
+ }
+
+ PyObject* condition;
+ try {
+ condition = visitAsPyObjectOrNone(ctx->condition);
+ } catch (...) {
+ Py_DECREF(initializer);
+ throw;
+ }
+
+ PyObject* increment;
+ auto increment_var_declr_ctx = ctx->incrementVarDeclr;
+ auto increment_var_assignment_ctx = ctx->incrementVarAssignment;
+ auto increment_expression_ctx = ctx->incrementExpression;
+ if (increment_var_declr_ctx) {
+ try {
+ increment = visitAsPyObject(increment_var_declr_ctx);
+ } catch (...) {
+ Py_DECREF(initializer);
+ Py_DECREF(condition);
+ throw;
+ }
+ } else if (increment_var_assignment_ctx) {
+ try {
+ increment = visitAsPyObject(increment_var_assignment_ctx);
+ } catch (...) {
+ Py_DECREF(initializer);
+ Py_DECREF(condition);
+ throw;
+ }
+ } else if (increment_expression_ctx) {
+ try {
+ increment = visitAsPyObject(increment_expression_ctx);
+ } catch (...) {
+ Py_DECREF(initializer);
+ Py_DECREF(condition);
+ throw;
+ }
+ } else {
+ increment = Py_None;
+ Py_INCREF(increment);
+ }
+
+ PyObject* body;
+ try {
+ body = visitAsPyObject(ctx->statement());
+ } catch (...) {
+ Py_DECREF(initializer);
+ Py_DECREF(condition);
+ Py_DECREF(increment);
+ throw;
+ }
+
+ PyObject* ret = build_ast_node(
+ "ForStatement", "{s:N,s:N,s:N,s:N}", "initializer", initializer, "condition", condition, "increment", increment,
+ "body", body
+ );
+ if (!ret) {
+ Py_DECREF(initializer);
+ Py_DECREF(condition);
+ Py_DECREF(increment);
+ Py_DECREF(body);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(FuncStmt) {
+ PyObject* params;
+ string name = visitAsString(ctx->identifier());
+ auto identifier_list_ctx = ctx->identifierList();
+ if (identifier_list_ctx) {
+ vector paramList = any_cast>(visit(ctx->identifierList()));
+ params = X_PyList_FromStrings(paramList);
+ } else {
+ vector paramList;
+ params = PyList_New(0);
+ }
+
+ if (!params) {
+ throw PyInternalError();
+ }
+
+ PyObject* body;
+ try {
+ body = visitAsPyObject(ctx->block());
+ } catch (...) {
+ Py_DECREF(params);
+ throw;
+ }
+
+ PyObject* ret = build_ast_node("Function", "{s:s#,s:N,s:N}", "name", name.data(), name.size(), "params", params, "body", body);
+ if (!ret) {
+ Py_DECREF(params);
+ Py_DECREF(body);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(KvPairList) {
+ return visitPyListOfObjects(ctx->kvPair());
+ }
+
+ VISIT(KvPair) {
+ PyObject* k = visitAsPyObject(ctx->expression(0));
+ PyObject* v;
+ try {
+ v = visitAsPyObject(ctx->expression(1));
+ } catch (...) {
+ Py_DECREF(k);
+ throw;
+ }
+ PyObject* ret = PyTuple_Pack(2, k, v);
+ Py_DECREF(k);
+ Py_DECREF(v);
+ if (!ret) {
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ VISIT(IdentifierList) {
+ return visitAsVectorOfStrings(ctx->identifier());
+ }
+
+ VISIT(EmptyStmt) {
+ RETURN_NEW_AST_NODE("ExprStatement", "{s:O}", "expr", Py_None);
+ }
+
+ VISIT(Block) {
+ PyObject* declarations = PyList_New(0);
+ if (!declarations) {
+ throw PyInternalError();
+ }
+ auto declaration_ctxs = ctx->declaration();
+ for (auto declaration_ctx : declaration_ctxs) {
+ if (!declaration_ctx->statement() || !declaration_ctx->statement()->emptyStmt()) {
+ PyObject* statement;
+ try {
+ statement = visitAsPyObject(declaration_ctx);
+ } catch (...) {
+ Py_DECREF(declarations);
+ throw;
+ }
+ int append_code = PyList_Append(declarations, statement);
+ Py_DECREF(statement);
+ if (append_code == -1) {
+ Py_DECREF(declarations);
+ throw PyInternalError();
+ }
+ }
+ }
+ PyObject* ret = build_ast_node("Block", "{s:N}", "declarations", declarations);
+ if (!ret) {
+ Py_DECREF(declarations);
+ throw PyInternalError();
+ }
+ return ret;
+ }
+
+ // HogQL rules
+
VISIT(Select) {
auto select_union_stmt_ctx = ctx->selectUnionStmt();
if (select_union_stmt_ctx) {
@@ -1103,7 +1488,9 @@ class HogQLParseTreeConverter : public HogQLParserBaseVisitor {
RETURN_NEW_AST_NODE("Array", "{s:N}", "exprs", visitAsPyObjectOrEmptyList(ctx->columnExprList()));
}
- VISIT_UNSUPPORTED(ColumnExprDict)
+ VISIT(ColumnExprDict) {
+ RETURN_NEW_AST_NODE("Dict", "{s:N}", "items", visitAsPyObjectOrEmptyList(ctx->kvPairList()));
+ }
VISIT_UNSUPPORTED(ColumnExprSubstring)
@@ -2123,11 +2510,11 @@ class HogQLErrorListener : public antlr4::BaseErrorListener {
size_t getPosition(size_t line, size_t column) {
size_t linePosition = 0;
for (size_t i = 0; i < line - 1; i++) {
- size_t increment = input.find("\n", linePosition) + 1;
- if (increment == string::npos) {
+ size_t endOfLine = input.find("\n", linePosition);
+ if (endOfLine == string::npos) {
return string::npos;
}
- linePosition += increment;
+ linePosition = endOfLine + 1;
}
return linePosition + column;
}
@@ -2176,6 +2563,7 @@ METHOD_PARSE_NODE(Expr, expr, expr)
METHOD_PARSE_NODE(OrderExpr, orderExpr, order_expr)
METHOD_PARSE_NODE(Select, select, select)
METHOD_PARSE_NODE(FullTemplateString, fullTemplateString, full_template_string)
+METHOD_PARSE_NODE(Program, program, program)
#undef METHOD_PARSE_NODE
@@ -2211,6 +2599,10 @@ static PyMethodDef parser_methods[] = {
.ml_meth = (PyCFunction)method_parse_full_template_string,
.ml_flags = METH_VARARGS | METH_KEYWORDS,
.ml_doc = "Parse a Hog template string into an AST"},
+ {.ml_name = "parse_program",
+ .ml_meth = (PyCFunction)method_parse_program,
+ .ml_flags = METH_VARARGS | METH_KEYWORDS,
+ .ml_doc = "Parse a Hog program into an AST"},
{.ml_name = "parse_string_literal_text",
.ml_meth = method_parse_string_literal_text,
.ml_flags = METH_VARARGS,
diff --git a/hogql_parser/setup.py b/hogql_parser/setup.py
index ed100a7df646b..2b19360e8dac9 100644
--- a/hogql_parser/setup.py
+++ b/hogql_parser/setup.py
@@ -32,7 +32,7 @@
setup(
name="hogql_parser",
- version="1.0.16",
+ version="1.0.21",
url="https://github.com/PostHog/posthog/tree/master/hogql_parser",
author="PostHog Inc.",
author_email="hey@posthog.com",
diff --git a/hogvm/__tests__/__snapshots__/functions.hoge b/hogvm/__tests__/__snapshots__/functions.hoge
index 99900e9fa4893..cb229ff8b81b7 100644
--- a/hogvm/__tests__/__snapshots__/functions.hoge
+++ b/hogvm/__tests__/__snapshots__/functions.hoge
@@ -2,12 +2,14 @@
1, 6, 36, 2, 38, 35, 41, "mult", 2, 6, 36, 0, 36, 1, 8, 38, 41, "noArgs", 0, 12, 32, "basdfasdf", 33, 3, 33, 2, 6, 36,
1, 38, 35, 35, 41, "empty", 0, 2, 31, 38, 41, "empty2", 0, 2, 31, 38, 41, "empty3", 0, 2, 31, 38, 41, "noReturn", 0, 14,
33, 1, 33, 2, 36, 1, 36, 0, 6, 31, 38, 35, 35, 35, 41, "emptyReturn", 0, 2, 31, 38, 41, "emptyReturnBeforeOtherStuff",
-0, 10, 31, 38, 33, 2, 33, 2, 6, 35, 31, 38, 41, "emptyReturnBeforeOtherStuffNoSemicolon", 0, 6, 33, 2, 33, 2, 6, 38, 33,
-4, 33, 3, 2, "add", 2, 2, "print", 1, 35, 33, 1, 33, 1, 2, "add", 2, 33, 100, 33, 4, 33, 3, 2, "add", 2, 6, 6, 2,
-"print", 1, 35, 33, -1, 2, "noArgs", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2, "empty", 0, 2, "ifNull", 2, 2,
-"print", 1, 35, 33, -1, 2, "empty2", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2, "empty3", 0, 2, "ifNull", 2, 2,
-"print", 1, 35, 33, -1, 2, "noReturn", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2, "emptyReturn", 0, 2, "ifNull",
-2, 2, "print", 1, 35, 33, -1, 2, "emptyReturnBeforeOtherStuff", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2,
-"emptyReturnBeforeOtherStuffNoSemicolon", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, 2, 33, 1, 33, 2, 2, "add", 2, 33,
-100, 33, 4, 33, 3, 2, "add", 2, 6, 6, 2, "mult", 2, 2, "print", 1, 35, 33, 10, 33, 1, 33, 2, 2, "add2", 2, 33, 100, 33,
-4, 33, 3, 2, "add2", 2, 6, 6, 2, "mult", 2, 2, "print", 1, 35]
+0, 10, 31, 38, 33, 2, 33, 2, 6, 35, 31, 38, 41, "emptyReturnBeforeOtherStuffNoSemicolon", 0, 6, 33, 2, 33, 2, 6, 38, 41,
+"ifThenReturn", 0, 8, 30, 40, 2, 31, 38, 33, 4, 38, 33, 4, 33, 3, 2, "add", 2, 2, "print", 1, 35, 33, 1, 33, 1, 2,
+"add", 2, 33, 100, 33, 4, 33, 3, 2, "add", 2, 6, 6, 2, "print", 1, 35, 33, -1, 2, "noArgs", 0, 2, "ifNull", 2, 2,
+"print", 1, 35, 33, -1, 2, "empty", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2, "empty2", 0, 2, "ifNull", 2, 2,
+"print", 1, 35, 33, -1, 2, "empty3", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2, "noReturn", 0, 2, "ifNull", 2, 2,
+"print", 1, 35, 33, -1, 2, "emptyReturn", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2,
+"emptyReturnBeforeOtherStuff", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2,
+"emptyReturnBeforeOtherStuffNoSemicolon", 0, 2, "ifNull", 2, 2, "print", 1, 35, 33, -1, 2, "ifThenReturn", 0, 2,
+"ifNull", 2, 2, "print", 1, 35, 33, 2, 33, 1, 33, 2, 2, "add", 2, 33, 100, 33, 4, 33, 3, 2, "add", 2, 6, 6, 2, "mult",
+2, 2, "print", 1, 35, 33, 10, 33, 1, 33, 2, 2, "add2", 2, 33, 100, 33, 4, 33, 3, 2, "add2", 2, 6, 6, 2, "mult", 2, 2,
+"print", 1, 35]
diff --git a/hogvm/__tests__/__snapshots__/functions.stdout b/hogvm/__tests__/__snapshots__/functions.stdout
index 3de71f0119f79..bd80a6f22ca08 100644
--- a/hogvm/__tests__/__snapshots__/functions.stdout
+++ b/hogvm/__tests__/__snapshots__/functions.stdout
@@ -9,5 +9,6 @@
-1
-1
4
+4
220
1100
diff --git a/hogvm/__tests__/functions.hog b/hogvm/__tests__/functions.hog
index db7a5c61fca86..b549e9b10705a 100644
--- a/hogvm/__tests__/functions.hog
+++ b/hogvm/__tests__/functions.hog
@@ -35,6 +35,13 @@ fn emptyReturnBeforeOtherStuffNoSemicolon() {
return
2 + 2
}
+fn ifThenReturn() {
+ // make sure this is not a placeholder {return}
+ if (false) {
+ return
+ }
+ return 4
+}
print(add(3, 4))
print(add(3, 4) + 100 + add(1, 1))
@@ -46,6 +53,7 @@ print(noReturn() ?? -1)
print(emptyReturn() ?? -1)
print(emptyReturnBeforeOtherStuff() ?? -1)
print(emptyReturnBeforeOtherStuffNoSemicolon() ?? -1)
+print(ifThenReturn() ?? -1)
print(mult(add(3, 4) + 100 + add(2, 1), 2))
print(mult(add2(3, 4) + 100 + add2(2, 1), 10))
diff --git a/hogvm/typescript/src/__tests__/execute.test.ts b/hogvm/typescript/src/__tests__/execute.test.ts
index bc249162b4360..151c23f373597 100644
--- a/hogvm/typescript/src/__tests__/execute.test.ts
+++ b/hogvm/typescript/src/__tests__/execute.test.ts
@@ -112,21 +112,22 @@ describe('HogQL Bytecode', () => {
test('error handling', async () => {
const globals = { properties: { foo: 'bar' } }
const options = { globals }
- expect(() => execSync([], options)).toThrowError("Invalid HogQL bytecode, must start with '_h'")
- await expect(execAsync([], options)).rejects.toThrowError("Invalid HogQL bytecode, must start with '_h'")
- expect(() => execSync(['_h', op.INTEGER, 2, op.INTEGER, 1, 'InvalidOp'], options)).toThrowError(
+ expect(() => execSync([], options)).toThrow("Invalid HogQL bytecode, must start with '_h'")
+ await expect(execAsync([], options)).rejects.toThrow("Invalid HogQL bytecode, must start with '_h'")
+ expect(() => execSync(['_h', op.INTEGER, 2, op.INTEGER, 1, 'InvalidOp'], options)).toThrow(
'Unexpected node while running bytecode: InvalidOp'
)
expect(() =>
execSync(['_h', op.STRING, 'another', op.STRING, 'arg', op.CALL, 'invalidFunc', 2], options)
- ).toThrowError('Unsupported function call: invalidFunc')
- expect(() => execSync(['_h', op.INTEGER], options)).toThrowError('Unexpected end of bytecode')
- expect(() => execSync(['_h', op.CALL, 'match', 1], options)).toThrowError(
- 'Invalid HogQL bytecode, stack is empty'
- )
- expect(() => execSync(['_h', op.TRUE, op.TRUE, op.NOT], options)).toThrowError(
+ ).toThrow('Unsupported function call: invalidFunc')
+ expect(() => execSync(['_h', op.INTEGER], options)).toThrow('Unexpected end of bytecode')
+ expect(() => execSync(['_h', op.CALL, 'match', 1], options)).toThrow('Not enough arguments on the stack')
+ expect(() => execSync(['_h', op.TRUE, op.TRUE, op.NOT], options)).toThrow(
'Invalid bytecode. More than one value left on stack'
)
+ })
+
+ test('async limits', async () => {
const callSleep = [
33,
0.002, // seconds to sleep
@@ -138,12 +139,24 @@ describe('HogQL Bytecode', () => {
for (let i = 0; i < 200; i++) {
bytecode.push(...callSleep)
}
- await expect(execAsync(bytecode, options)).rejects.toThrowError('Exceeded maximum number of async steps: 100')
- await expect(execAsync(bytecode, { ...options, maxAsyncSteps: 55 })).rejects.toThrowError(
+ await expect(execAsync(bytecode)).rejects.toThrow('Exceeded maximum number of async steps: 100')
+ await expect(execAsync(bytecode, { maxAsyncSteps: 55 })).rejects.toThrow(
'Exceeded maximum number of async steps: 55'
)
})
+ test('call arg limits', async () => {
+ const bytecode = ['_h', 33, 0.002, 2, 'sleep', 301]
+ expect(() => execSync(bytecode)).toThrow('Not enough arguments on the stack')
+
+ const bytecode2: any[] = ['_h']
+ for (let i = 0; i < 301; i++) {
+ bytecode2.push(33, 0.002)
+ }
+ bytecode2.push(2, 'sleep', 301)
+ expect(() => execSync(bytecode2)).toThrow('Too many arguments')
+ })
+
test('should execute user-defined stringify function correctly', async () => {
const functions = {
stringify: (arg: any) => {
diff --git a/hogvm/typescript/src/execute.ts b/hogvm/typescript/src/execute.ts
index 865f57408a713..a11826b50a415 100644
--- a/hogvm/typescript/src/execute.ts
+++ b/hogvm/typescript/src/execute.ts
@@ -43,6 +43,9 @@ export interface ExecResult {
state?: VMState
}
+/** Maximum function arguments allowed */
+const MAX_ARGS_LENGTH = 300
+
export function execSync(bytecode: any[], options?: ExecOptions): any {
const response = exec(bytecode, options)
if (response.finished) {
@@ -334,14 +337,24 @@ export function exec(code: any[] | VMState, options?: ExecOptions): ExecResult {
callStack.push([ip + 1, stack.length - argLen, argLen])
ip = funcIp
} else {
- const args = Array(next())
+ temp = next() // args.length
+ if (temp > stack.length) {
+ throw new Error('Not enough arguments on the stack')
+ }
+ if (temp > MAX_ARGS_LENGTH) {
+ throw new Error('Too many arguments')
+ }
+ const args = Array(temp)
.fill(null)
.map(() => popStack())
- if (options?.functions && options.functions[name] && name !== 'toString') {
+ if (options?.functions && options.functions.hasOwnProperty(name) && options.functions[name]) {
stack.push(convertJSToHog(options.functions[name](...args.map(convertHogToJS))))
} else if (
name !== 'toString' &&
- ((options?.asyncFunctions && options.asyncFunctions[name]) || name in ASYNC_STL)
+ ((options?.asyncFunctions &&
+ options.asyncFunctions.hasOwnProperty(name) &&
+ options.asyncFunctions[name]) ||
+ name in ASYNC_STL)
) {
if (asyncSteps >= maxAsyncSteps) {
throw new Error(`Exceeded maximum number of async steps: ${maxAsyncSteps}`)
diff --git a/mypy.ini b/mypy.ini
index 414b1d252174b..438b5f47ef60c 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1,5 +1,5 @@
[mypy]
-python_version = 3.10
+python_version = 3.11
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main,
diff --git a/package.json b/package.json
index 67b94b59caf90..2903873485f24 100644
--- a/package.json
+++ b/package.json
@@ -146,7 +146,7 @@
"pmtiles": "^2.11.0",
"postcss": "^8.4.31",
"postcss-preset-env": "^9.3.0",
- "posthog-js": "1.140.0",
+ "posthog-js": "1.140.1",
"posthog-js-lite": "3.0.0",
"prettier": "^2.8.8",
"prop-types": "^15.7.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e0689e764b7fc..1466d663e04e3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -260,8 +260,8 @@ dependencies:
specifier: ^9.3.0
version: 9.3.0(postcss@8.4.31)
posthog-js:
- specifier: 1.140.0
- version: 1.140.0
+ specifier: 1.140.1
+ version: 1.140.1
posthog-js-lite:
specifier: 3.0.0
version: 3.0.0
@@ -17706,8 +17706,8 @@ packages:
resolution: {integrity: sha512-dyajjnfzZD1tht4N7p7iwf7nBnR1MjVaVu+MKr+7gBgA39bn28wizCIJZztZPtHy4PY0YwtSGgwfBCuG/hnHgA==}
dev: false
- /posthog-js@1.140.0:
- resolution: {integrity: sha512-+Z0IdEpN4SLwkE12b3oBKHewFA4VxeRI8CebUuinz40b6TsJF2Q1jboxULoH7pDc/33sCzKsz1SLCHnKY527vQ==}
+ /posthog-js@1.140.1:
+ resolution: {integrity: sha512-UeKuAtQSvbzmTCzNVaauku8F194EYwAP33WrRrWZlDlMNbMy7GKcZOgKbr7jZqnha7FlVlHrWk+Rpyr1zCFhPQ==}
dependencies:
fflate: 0.4.8
preact: 10.22.0
diff --git a/posthog/api/comments.py b/posthog/api/comments.py
index 20961be0e3cbb..06443f92b2fcc 100644
--- a/posthog/api/comments.py
+++ b/posthog/api/comments.py
@@ -11,11 +11,13 @@
from posthog.api.routing import TeamAndOrgViewSetMixin
from posthog.api.shared import UserBasicSerializer
+from posthog.api.utils import ClassicBehaviorBooleanFieldSerializer
from posthog.models.comment import Comment
class CommentSerializer(serializers.ModelSerializer):
created_by = UserBasicSerializer(read_only=True)
+ deleted = ClassicBehaviorBooleanFieldSerializer()
class Meta:
model = Comment
diff --git a/posthog/api/feature_flag.py b/posthog/api/feature_flag.py
index 6887b85dcf53b..029a3186d4365 100644
--- a/posthog/api/feature_flag.py
+++ b/posthog/api/feature_flag.py
@@ -23,6 +23,7 @@
from posthog.api.shared import UserBasicSerializer
from posthog.api.tagged_item import TaggedItemSerializerMixin, TaggedItemViewSetMixin
from posthog.api.dashboards.dashboard import Dashboard
+from posthog.api.utils import ClassicBehaviorBooleanFieldSerializer
from posthog.auth import PersonalAPIKeyAuthentication, TemporaryTokenAuthentication
from posthog.constants import FlagRequestType
from posthog.event_usage import report_user_action
@@ -89,6 +90,9 @@ class FeatureFlagSerializer(TaggedItemSerializerMixin, serializers.HyperlinkedMo
is_simple_flag = serializers.SerializerMethodField()
rollout_percentage = serializers.SerializerMethodField()
+ ensure_experience_continuity = ClassicBehaviorBooleanFieldSerializer()
+ has_enriched_analytics = ClassicBehaviorBooleanFieldSerializer()
+
experiment_set: serializers.PrimaryKeyRelatedField = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
surveys: serializers.SerializerMethodField = serializers.SerializerMethodField()
features: serializers.SerializerMethodField = serializers.SerializerMethodField()
diff --git a/posthog/api/plugin.py b/posthog/api/plugin.py
index 47a5ab5b3bb80..481b63476f10e 100644
--- a/posthog/api/plugin.py
+++ b/posthog/api/plugin.py
@@ -22,6 +22,7 @@
from posthog.api.routing import TeamAndOrgViewSetMixin
from posthog.api.shared import FiltersSerializer
+from posthog.api.utils import ClassicBehaviorBooleanFieldSerializer
from posthog.models import Plugin, PluginAttachment, PluginConfig, User
from posthog.models.activity_logging.activity_log import (
ActivityPage,
@@ -586,6 +587,8 @@ class PluginConfigSerializer(serializers.ModelSerializer):
delivery_rate_24h = serializers.SerializerMethodField()
error = serializers.SerializerMethodField()
+ deleted = ClassicBehaviorBooleanFieldSerializer()
+
class Meta:
model = PluginConfig
fields = [
diff --git a/posthog/api/routing.py b/posthog/api/routing.py
index c4e67d1826274..f2816f9a2b131 100644
--- a/posthog/api/routing.py
+++ b/posthog/api/routing.py
@@ -36,6 +36,32 @@
class DefaultRouterPlusPlus(ExtendedDefaultRouter):
"""DefaultRouter with optional trailing slash and drf-extensions nesting."""
+ # This is an override because of changes in djangorestframework 3.15, which is required for python 3.11
+ # changes taken from and explained here: https://github.com/nautobot/nautobot/pull/5546/files#diff-81850a2ccad5814aab4f477d447f85cc0a82e9c10fd88fd72327cda51a750471R30
+ def _register(self, prefix, viewset, basename=None):
+ """
+ Override DRF's BaseRouter.register() to bypass an unnecessary restriction added in version 3.15.0.
+ (Reference: https://github.com/encode/django-rest-framework/pull/8438)
+ """
+ if basename is None:
+ basename = self.get_default_basename(viewset)
+
+ # DRF:
+ # if self.is_already_registered(basename):
+ # msg = (f'Router with basename "{basename}" is already registered. '
+ # f'Please provide a unique basename for viewset "{viewset}"')
+ # raise ImproperlyConfigured(msg)
+ #
+ # We bypass this because we have at least one use case (/api/extras/jobs/) where we are *intentionally*
+ # registering two viewsets with the same basename, but have carefully defined them so as not to conflict.
+
+ # resuming standard DRF code...
+ self.registry.append((prefix, viewset, basename))
+
+ # invalidate the urls cache
+ if hasattr(self, "_urls"):
+ del self._urls
+
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.trailing_slash = r"/?"
diff --git a/posthog/api/test/__snapshots__/test_api_docs.ambr b/posthog/api/test/__snapshots__/test_api_docs.ambr
index 8793984c350a5..2ded9229008c7 100644
--- a/posthog/api/test/__snapshots__/test_api_docs.ambr
+++ b/posthog/api/test/__snapshots__/test_api_docs.ambr
@@ -77,7 +77,7 @@
"/home/runner/work/posthog/posthog/posthog/api/property_definition.py: Error [PropertyDefinitionViewSet]: exception raised while getting serializer. Hint: Is get_serializer_class() returning None or is get_queryset() not working without a request? Ignoring the view for now. (Exception: 'AnonymousUser' object has no attribute 'organization')",
'/home/runner/work/posthog/posthog/posthog/api/property_definition.py: Warning [PropertyDefinitionViewSet]: could not derive type of path parameter "project_id" because model "posthog.models.property_definition.PropertyDefinition" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".',
'/home/runner/work/posthog/posthog/posthog/api/query.py: Warning [QueryViewSet]: could not derive type of path parameter "project_id" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. ) or annotating the parameter type with @extend_schema. Defaulting to "string".',
- '/opt/hostedtoolcache/Python/3.10.10/x64/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py: Warning [QueryViewSet > ModelMetaclass]: Encountered 2 components with identical names "Person" and different classes and . This will very likely result in an incorrect schema. Try renaming one.',
+ '/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py: Warning [QueryViewSet > ModelMetaclass]: Encountered 2 components with identical names "Person" and different classes and . This will very likely result in an incorrect schema. Try renaming one.',
'/home/runner/work/posthog/posthog/posthog/api/query.py: Warning [QueryViewSet]: could not derive type of path parameter "id" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. ) or annotating the parameter type with @extend_schema. Defaulting to "string".',
'/home/runner/work/posthog/posthog/posthog/api/query.py: Error [QueryViewSet]: unable to guess serializer. This is graceful fallback handling for APIViews. Consider using GenericAPIView as view base class, if view is under your control. Either way you may want to add a serializer_class (or method). Ignoring view for now.',
'/home/runner/work/posthog/posthog/ee/session_recordings/session_recording_playlist.py: Warning [SessionRecordingPlaylistViewSet]: could not derive type of path parameter "project_id" because model "posthog.session_recordings.models.session_recording_playlist.SessionRecordingPlaylist" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".',
diff --git a/posthog/api/user.py b/posthog/api/user.py
index 8fad7945e7705..ee2b66c47eb1c 100644
--- a/posthog/api/user.py
+++ b/posthog/api/user.py
@@ -35,7 +35,11 @@
from posthog.api.email_verification import EmailVerifier
from posthog.api.organization import OrganizationSerializer
from posthog.api.shared import OrganizationBasicSerializer, TeamBasicSerializer
-from posthog.api.utils import PublicIPOnlyHttpAdapter, raise_if_user_provided_url_unsafe
+from posthog.api.utils import (
+ PublicIPOnlyHttpAdapter,
+ raise_if_user_provided_url_unsafe,
+ ClassicBehaviorBooleanFieldSerializer,
+)
from posthog.auth import (
PersonalAPIKeyAuthentication,
SessionAuthentication,
@@ -84,6 +88,7 @@ class UserSerializer(serializers.ModelSerializer):
current_password = serializers.CharField(write_only=True, required=False)
notification_settings = serializers.DictField(required=False)
scene_personalisation = ScenePersonalisationBasicSerializer(many=True, read_only=True)
+ anonymize_data = ClassicBehaviorBooleanFieldSerializer()
class Meta:
model = User
diff --git a/posthog/api/utils.py b/posthog/api/utils.py
index 952afb9e39f98..2f1bd5c087bab 100644
--- a/posthog/api/utils.py
+++ b/posthog/api/utils.py
@@ -6,6 +6,8 @@
from ipaddress import ip_address
from requests.adapters import HTTPAdapter
from typing import Literal, Optional, Union
+
+from rest_framework.fields import Field
from urllib3 import HTTPSConnectionPool, HTTPConnectionPool, PoolManager
from uuid import UUID
@@ -13,7 +15,7 @@
from django.core.exceptions import RequestDataTooBig
from django.db.models import QuerySet
from prometheus_client import Counter
-from rest_framework import request, status
+from rest_framework import request, status, serializers
from rest_framework.exceptions import ValidationError
from statshog.defaults.django import statsd
@@ -34,6 +36,14 @@ class PaginationMode(Enum):
previous = auto()
+# This overrides a change in DRF 3.15 that alters our behavior. If the user passes an empty argument,
+# the new version keeps it as null vs coalescing it to the default.
+# Don't add this to new classes
+class ClassicBehaviorBooleanFieldSerializer(serializers.BooleanField):
+ def __init__(self, **kwargs):
+ Field.__init__(self, allow_null=True, required=False, **kwargs)
+
+
def get_target_entity(filter: Union[Filter, StickinessFilter]) -> Entity:
# Except for "events", we require an entity id and type to be provided
if not filter.target_entity_id and filter.target_entity_type != "events":
diff --git a/posthog/batch_exports/models.py b/posthog/batch_exports/models.py
index 598b6cdbacee5..7c1b3b7b0a4a3 100644
--- a/posthog/batch_exports/models.py
+++ b/posthog/batch_exports/models.py
@@ -254,7 +254,7 @@ def interval_time_delta(self) -> timedelta:
raise ValueError(f"Invalid interval: '{self.interval}'")
-class BatchExportLogEntryLevel(str, enum.Enum):
+class BatchExportLogEntryLevel(enum.StrEnum):
"""Enumeration of batch export log levels."""
DEBUG = "DEBUG"
diff --git a/posthog/clickhouse/table_engines.py b/posthog/clickhouse/table_engines.py
index e2b83d3f29006..b67ef9be5bc10 100644
--- a/posthog/clickhouse/table_engines.py
+++ b/posthog/clickhouse/table_engines.py
@@ -1,11 +1,11 @@
import uuid
-from enum import Enum
+from enum import StrEnum
from typing import Optional
from django.conf import settings
-class ReplicationScheme(str, Enum):
+class ReplicationScheme(StrEnum):
NOT_SHARDED = "NOT_SHARDED"
SHARDED = "SHARDED"
REPLICATED = "REPLICATED"
diff --git a/posthog/constants.py b/posthog/constants.py
index fc8f7a9142195..af1e627bc7160 100644
--- a/posthog/constants.py
+++ b/posthog/constants.py
@@ -1,4 +1,4 @@
-from enum import Enum
+from enum import StrEnum
from typing import Literal
from semantic_version import Version
@@ -9,7 +9,7 @@
# N.B. Keep this in sync with frontend enum (types.ts)
# AND ensure it is added to the Billing Service
-class AvailableFeature(str, Enum):
+class AvailableFeature(StrEnum):
ZAPIER = "zapier"
ORGANIZATIONS_PROJECTS = "organizations_projects"
PROJECT_BASED_PERMISSIONING = "project_based_permissioning"
@@ -215,19 +215,19 @@ class AvailableFeature(str, Enum):
BREAKDOWN_TYPES = Literal["event", "person", "cohort", "group", "session", "hogql"]
-class FunnelOrderType(str, Enum):
+class FunnelOrderType(StrEnum):
STRICT = "strict"
UNORDERED = "unordered"
ORDERED = "ordered"
-class FunnelVizType(str, Enum):
+class FunnelVizType(StrEnum):
TRENDS = "trends"
TIME_TO_CONVERT = "time_to_convert"
STEPS = "steps"
-class FunnelCorrelationType(str, Enum):
+class FunnelCorrelationType(StrEnum):
EVENTS = "events"
PROPERTIES = "properties"
EVENT_WITH_PROPERTIES = "event_with_properties"
@@ -240,7 +240,7 @@ class FunnelCorrelationType(str, Enum):
PERSON_UUID_FILTER = "person_uuid"
-class AnalyticsDBMS(str, Enum):
+class AnalyticsDBMS(StrEnum):
POSTGRES = "postgres"
CLICKHOUSE = "clickhouse"
@@ -251,13 +251,13 @@ class AnalyticsDBMS(str, Enum):
MONTHLY_ACTIVE = "monthly_active"
-class RetentionQueryType(str, Enum):
+class RetentionQueryType(StrEnum):
RETURNING = "returning"
TARGET = "target"
TARGET_FIRST_TIME = "target_first_time"
-class ExperimentSignificanceCode(str, Enum):
+class ExperimentSignificanceCode(StrEnum):
SIGNIFICANT = "significant"
NOT_ENOUGH_EXPOSURE = "not_enough_exposure"
LOW_WIN_PROBABILITY = "low_win_probability"
@@ -265,7 +265,7 @@ class ExperimentSignificanceCode(str, Enum):
HIGH_P_VALUE = "high_p_value"
-class ExperimentNoResultsErrorKeys(str, Enum):
+class ExperimentNoResultsErrorKeys(StrEnum):
NO_EVENTS = "no-events"
NO_FLAG_INFO = "no-flag-info"
NO_CONTROL_VARIANT = "no-control-variant"
@@ -273,12 +273,12 @@ class ExperimentNoResultsErrorKeys(str, Enum):
NO_RESULTS = "no-results"
-class PropertyOperatorType(str, Enum):
+class PropertyOperatorType(StrEnum):
AND = "AND"
OR = "OR"
-class BreakdownAttributionType(str, Enum):
+class BreakdownAttributionType(StrEnum):
FIRST_TOUCH = "first_touch"
# FIRST_TOUCH attribution means the breakdown value is the first property value found within all funnel steps
LAST_TOUCH = "last_touch"
@@ -294,7 +294,7 @@ class BreakdownAttributionType(str, Enum):
GROUP_TYPES_LIMIT = 5
-class EventDefinitionType(str, Enum):
+class EventDefinitionType(StrEnum):
# Mimics EventDefinitionType in frontend/src/types.ts
ALL = "all"
ACTION_EVENT = "action_event"
@@ -303,7 +303,7 @@ class EventDefinitionType(str, Enum):
EVENT_CUSTOM = "event_custom"
-class FlagRequestType(str, Enum):
+class FlagRequestType(StrEnum):
DECIDE = "decide"
LOCAL_EVALUATION = "local-evaluation"
diff --git a/posthog/decorators.py b/posthog/decorators.py
index eb66afcf422d4..c4aba39e3d2c5 100644
--- a/posthog/decorators.py
+++ b/posthog/decorators.py
@@ -1,4 +1,4 @@
-from enum import Enum
+from enum import StrEnum
from functools import wraps
from typing import Any, TypeVar, Union, cast
from collections.abc import Callable
@@ -17,7 +17,7 @@
from .utils import generate_cache_key, get_safe_cache
-class CacheType(str, Enum):
+class CacheType(StrEnum):
TRENDS = "Trends"
FUNNEL = "Funnel"
RETENTION = "Retention"
diff --git a/posthog/demo/matrix/randomization.py b/posthog/demo/matrix/randomization.py
index d017c295321dc..71701d2c6ce99 100644
--- a/posthog/demo/matrix/randomization.py
+++ b/posthog/demo/matrix/randomization.py
@@ -1,12 +1,11 @@
-from enum import Enum
+from enum import StrEnum
-import mimesis
import mimesis.random
WeightedPool = tuple[list[str], list[int]]
-class Industry(str, Enum):
+class Industry(StrEnum):
TECHNOLOGY = "technology"
FINANCE = "finance"
MEDIA = "media"
diff --git a/posthog/demo/products/hedgebox/models.py b/posthog/demo/products/hedgebox/models.py
index dd694f64aac41..9b0c72afc69a7 100644
--- a/posthog/demo/products/hedgebox/models.py
+++ b/posthog/demo/products/hedgebox/models.py
@@ -1,7 +1,7 @@
import datetime as dt
import math
from dataclasses import dataclass, field
-from enum import Enum, auto
+from enum import auto, StrEnum
from typing import (
TYPE_CHECKING,
Any,
@@ -66,7 +66,7 @@ class HedgeboxSessionIntent(SimSessionIntent):
DOWNGRADE_PLAN = auto()
-class HedgeboxPlan(str, Enum):
+class HedgeboxPlan(StrEnum):
PERSONAL_FREE = "personal/free"
PERSONAL_PRO = "personal/pro"
BUSINESS_STANDARD = "business/standard"
diff --git a/posthog/hogql/ast.py b/posthog/hogql/ast.py
index 976d245981ba8..72b2c32f7b745 100644
--- a/posthog/hogql/ast.py
+++ b/posthog/hogql/ast.py
@@ -1,4 +1,4 @@
-from enum import Enum
+from enum import StrEnum
from typing import Any, Literal, Optional, Union
from dataclasses import dataclass, field
@@ -394,7 +394,7 @@ def print_type(self) -> str:
@dataclass(kw_only=True)
class ArrayType(ConstantType):
data_type: ConstantDataType = field(default="array", init=False)
- item_type: ConstantType = UnknownType()
+ item_type: ConstantType = field(default_factory=UnknownType)
def print_type(self) -> str:
return "Array"
@@ -554,7 +554,7 @@ class Alias(Expr):
hidden: bool = False
-class ArithmeticOperationOp(str, Enum):
+class ArithmeticOperationOp(StrEnum):
Add = "+"
Sub = "-"
Mult = "*"
@@ -581,7 +581,7 @@ class Or(Expr):
type: Optional[ConstantType] = None
-class CompareOperationOp(str, Enum):
+class CompareOperationOp(StrEnum):
Eq = "=="
NotEq = "!="
Gt = ">"
diff --git a/posthog/hogql/constants.py b/posthog/hogql/constants.py
index 769d4a250e65e..f484a6d0fad70 100644
--- a/posthog/hogql/constants.py
+++ b/posthog/hogql/constants.py
@@ -1,5 +1,5 @@
from datetime import date, datetime
-from enum import Enum
+from enum import StrEnum
from typing import Optional, Literal, TypeAlias
from uuid import UUID
from pydantic import ConfigDict, BaseModel
@@ -47,7 +47,7 @@
BREAKDOWN_VALUES_LIMIT_FOR_COUNTRIES = 300
-class LimitContext(str, Enum):
+class LimitContext(StrEnum):
QUERY = "query"
QUERY_ASYNC = "query_async"
EXPORT = "export"
diff --git a/posthog/hogql/grammar/HogQLParser.g4 b/posthog/hogql/grammar/HogQLParser.g4
index 82ab4c27e3a74..aec5b0b87d017 100644
--- a/posthog/hogql/grammar/HogQLParser.g4
+++ b/posthog/hogql/grammar/HogQLParser.g4
@@ -20,9 +20,10 @@ statement : returnStmt
| forStmt
| funcStmt
| varAssignment
+ | block
| exprStmt
| emptyStmt
- | block ;
+ ;
returnStmt : RETURN expression? SEMICOLON?;
ifStmt : IF LPAREN expression RPAREN statement ( ELSE statement )? ;
diff --git a/posthog/hogql/grammar/HogQLParser.interp b/posthog/hogql/grammar/HogQLParser.interp
index 40009f67387f5..da0b0cb00c46d 100644
--- a/posthog/hogql/grammar/HogQLParser.interp
+++ b/posthog/hogql/grammar/HogQLParser.interp
@@ -400,4 +400,4 @@ stringContentsFull
atn:
-[4, 1, 154, 1237, 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, 1, 0, 5, 0, 170, 8, 0, 10, 0, 12, 0, 173, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 179, 8, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 188, 8, 3, 1, 4, 1, 4, 1, 4, 5, 4, 193, 8, 4, 10, 4, 12, 4, 196, 9, 4, 1, 4, 3, 4, 199, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 210, 8, 5, 1, 6, 1, 6, 3, 6, 214, 8, 6, 1, 6, 3, 6, 217, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 226, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 234, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 241, 8, 9, 1, 9, 1, 9, 3, 9, 245, 8, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 251, 8, 9, 1, 9, 1, 9, 1, 9, 3, 9, 256, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 262, 8, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 3, 12, 274, 8, 12, 1, 13, 1, 13, 1, 14, 1, 14, 5, 14, 280, 8, 14, 10, 14, 12, 14, 283, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 5, 16, 294, 8, 16, 10, 16, 12, 16, 297, 9, 16, 1, 16, 3, 16, 300, 8, 16, 1, 17, 1, 17, 1, 17, 3, 17, 305, 8, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 313, 8, 18, 10, 18, 12, 18, 316, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 324, 8, 19, 1, 20, 3, 20, 327, 8, 20, 1, 20, 1, 20, 3, 20, 331, 8, 20, 1, 20, 3, 20, 334, 8, 20, 1, 20, 1, 20, 3, 20, 338, 8, 20, 1, 20, 3, 20, 341, 8, 20, 1, 20, 3, 20, 344, 8, 20, 1, 20, 3, 20, 347, 8, 20, 1, 20, 3, 20, 350, 8, 20, 1, 20, 1, 20, 3, 20, 354, 8, 20, 1, 20, 1, 20, 3, 20, 358, 8, 20, 1, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 3, 20, 367, 8, 20, 1, 20, 1, 20, 3, 20, 371, 8, 20, 1, 20, 3, 20, 374, 8, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 383, 8, 22, 1, 23, 1, 23, 1, 23, 1, 24, 3, 24, 389, 8, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 5, 25, 408, 8, 25, 10, 25, 12, 25, 411, 9, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 427, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 444, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 450, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 456, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 467, 8, 32, 3, 32, 469, 8, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 3, 35, 480, 8, 35, 1, 35, 3, 35, 483, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 489, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 497, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 503, 8, 35, 10, 35, 12, 35, 506, 9, 35, 1, 36, 3, 36, 509, 8, 36, 1, 36, 1, 36, 1, 36, 3, 36, 514, 8, 36, 1, 36, 3, 36, 517, 8, 36, 1, 36, 3, 36, 520, 8, 36, 1, 36, 1, 36, 3, 36, 524, 8, 36, 1, 36, 1, 36, 3, 36, 528, 8, 36, 1, 36, 3, 36, 531, 8, 36, 3, 36, 533, 8, 36, 1, 36, 3, 36, 536, 8, 36, 1, 36, 1, 36, 3, 36, 540, 8, 36, 1, 36, 1, 36, 3, 36, 544, 8, 36, 1, 36, 3, 36, 547, 8, 36, 3, 36, 549, 8, 36, 3, 36, 551, 8, 36, 1, 37, 1, 37, 1, 37, 3, 37, 556, 8, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 567, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 573, 8, 39, 1, 40, 1, 40, 1, 40, 5, 40, 578, 8, 40, 10, 40, 12, 40, 581, 9, 40, 1, 41, 1, 41, 3, 41, 585, 8, 41, 1, 41, 1, 41, 3, 41, 589, 8, 41, 1, 41, 1, 41, 3, 41, 593, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 599, 8, 42, 3, 42, 601, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 606, 8, 43, 10, 43, 12, 43, 609, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 3, 45, 616, 8, 45, 1, 45, 3, 45, 619, 8, 45, 1, 45, 3, 45, 622, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 641, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 655, 8, 50, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 669, 8, 52, 10, 52, 12, 52, 672, 9, 52, 1, 52, 3, 52, 675, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 684, 8, 52, 10, 52, 12, 52, 687, 9, 52, 1, 52, 3, 52, 690, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 699, 8, 52, 10, 52, 12, 52, 702, 9, 52, 1, 52, 3, 52, 705, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 712, 8, 52, 1, 52, 1, 52, 3, 52, 716, 8, 52, 1, 53, 1, 53, 1, 53, 5, 53, 721, 8, 53, 10, 53, 12, 53, 724, 9, 53, 1, 53, 3, 53, 727, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 732, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 4, 54, 739, 8, 54, 11, 54, 12, 54, 740, 1, 54, 1, 54, 3, 54, 745, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 769, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 786, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 792, 8, 54, 1, 54, 3, 54, 795, 8, 54, 1, 54, 3, 54, 798, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 808, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 814, 8, 54, 1, 54, 3, 54, 817, 8, 54, 1, 54, 3, 54, 820, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 828, 8, 54, 1, 54, 3, 54, 831, 8, 54, 1, 54, 1, 54, 3, 54, 835, 8, 54, 1, 54, 3, 54, 838, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 852, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 869, 8, 54, 1, 54, 1, 54, 1, 54, 3, 54, 874, 8, 54, 1, 54, 1, 54, 3, 54, 878, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 884, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 891, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 903, 8, 54, 1, 54, 1, 54, 3, 54, 907, 8, 54, 1, 54, 3, 54, 910, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 919, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 933, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 960, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 968, 8, 54, 5, 54, 970, 8, 54, 10, 54, 12, 54, 973, 9, 54, 1, 55, 1, 55, 1, 55, 5, 55, 978, 8, 55, 10, 55, 12, 55, 981, 9, 55, 1, 55, 3, 55, 984, 8, 55, 1, 56, 1, 56, 3, 56, 988, 8, 56, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 994, 8, 57, 10, 57, 12, 57, 997, 9, 57, 1, 57, 3, 57, 1000, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 1007, 8, 57, 10, 57, 12, 57, 1010, 9, 57, 1, 57, 3, 57, 1013, 8, 57, 3, 57, 1015, 8, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 5, 58, 1023, 8, 58, 10, 58, 12, 58, 1026, 9, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 5, 58, 1034, 8, 58, 10, 58, 12, 58, 1037, 9, 58, 1, 58, 1, 58, 3, 58, 1041, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 1048, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 1061, 8, 59, 1, 60, 1, 60, 1, 60, 5, 60, 1066, 8, 60, 10, 60, 12, 60, 1069, 9, 60, 1, 60, 3, 60, 1072, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 3, 61, 1084, 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 3, 62, 1090, 8, 62, 1, 62, 3, 62, 1093, 8, 62, 1, 63, 1, 63, 1, 63, 5, 63, 1098, 8, 63, 10, 63, 12, 63, 1101, 9, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1112, 8, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1118, 8, 64, 5, 64, 1120, 8, 64, 10, 64, 12, 64, 1123, 9, 64, 1, 65, 1, 65, 1, 65, 3, 65, 1128, 8, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 3, 66, 1135, 8, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 5, 67, 1142, 8, 67, 10, 67, 12, 67, 1145, 9, 67, 1, 67, 3, 67, 1148, 8, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1158, 8, 69, 3, 69, 1160, 8, 69, 1, 70, 3, 70, 1163, 8, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 3, 70, 1171, 8, 70, 1, 71, 1, 71, 1, 71, 3, 71, 1176, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 74, 1, 74, 1, 75, 1, 75, 3, 75, 1186, 8, 75, 1, 76, 1, 76, 1, 76, 3, 76, 1191, 8, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 3, 79, 1203, 8, 79, 1, 80, 1, 80, 5, 80, 1207, 8, 80, 10, 80, 12, 80, 1210, 9, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 3, 81, 1219, 8, 81, 1, 82, 1, 82, 5, 82, 1223, 8, 82, 10, 82, 12, 82, 1226, 9, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 3, 83, 1235, 8, 83, 1, 83, 0, 3, 70, 108, 128, 84, 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, 0, 16, 2, 0, 17, 17, 72, 72, 2, 0, 42, 42, 49, 49, 3, 0, 1, 1, 4, 4, 8, 8, 4, 0, 1, 1, 3, 4, 8, 8, 78, 78, 2, 0, 49, 49, 71, 71, 2, 0, 1, 1, 4, 4, 2, 0, 7, 7, 21, 22, 2, 0, 28, 28, 47, 47, 2, 0, 69, 69, 74, 74, 3, 0, 10, 10, 48, 48, 87, 87, 2, 0, 39, 39, 51, 51, 1, 0, 103, 104, 2, 0, 114, 114, 134, 134, 7, 0, 20, 20, 36, 36, 53, 54, 68, 68, 76, 76, 93, 93, 99, 99, 12, 0, 1, 19, 21, 28, 30, 35, 37, 40, 42, 49, 51, 52, 56, 56, 58, 67, 69, 75, 77, 92, 94, 95, 97, 98, 4, 0, 19, 19, 28, 28, 37, 37, 46, 46, 1394, 0, 171, 1, 0, 0, 0, 2, 178, 1, 0, 0, 0, 4, 180, 1, 0, 0, 0, 6, 182, 1, 0, 0, 0, 8, 189, 1, 0, 0, 0, 10, 209, 1, 0, 0, 0, 12, 211, 1, 0, 0, 0, 14, 218, 1, 0, 0, 0, 16, 227, 1, 0, 0, 0, 18, 235, 1, 0, 0, 0, 20, 257, 1, 0, 0, 0, 22, 266, 1, 0, 0, 0, 24, 271, 1, 0, 0, 0, 26, 275, 1, 0, 0, 0, 28, 277, 1, 0, 0, 0, 30, 286, 1, 0, 0, 0, 32, 290, 1, 0, 0, 0, 34, 304, 1, 0, 0, 0, 36, 308, 1, 0, 0, 0, 38, 323, 1, 0, 0, 0, 40, 326, 1, 0, 0, 0, 42, 375, 1, 0, 0, 0, 44, 378, 1, 0, 0, 0, 46, 384, 1, 0, 0, 0, 48, 388, 1, 0, 0, 0, 50, 394, 1, 0, 0, 0, 52, 412, 1, 0, 0, 0, 54, 415, 1, 0, 0, 0, 56, 418, 1, 0, 0, 0, 58, 428, 1, 0, 0, 0, 60, 431, 1, 0, 0, 0, 62, 435, 1, 0, 0, 0, 64, 468, 1, 0, 0, 0, 66, 470, 1, 0, 0, 0, 68, 473, 1, 0, 0, 0, 70, 488, 1, 0, 0, 0, 72, 550, 1, 0, 0, 0, 74, 555, 1, 0, 0, 0, 76, 566, 1, 0, 0, 0, 78, 568, 1, 0, 0, 0, 80, 574, 1, 0, 0, 0, 82, 582, 1, 0, 0, 0, 84, 600, 1, 0, 0, 0, 86, 602, 1, 0, 0, 0, 88, 610, 1, 0, 0, 0, 90, 615, 1, 0, 0, 0, 92, 623, 1, 0, 0, 0, 94, 627, 1, 0, 0, 0, 96, 631, 1, 0, 0, 0, 98, 640, 1, 0, 0, 0, 100, 654, 1, 0, 0, 0, 102, 656, 1, 0, 0, 0, 104, 715, 1, 0, 0, 0, 106, 717, 1, 0, 0, 0, 108, 877, 1, 0, 0, 0, 110, 974, 1, 0, 0, 0, 112, 987, 1, 0, 0, 0, 114, 1014, 1, 0, 0, 0, 116, 1047, 1, 0, 0, 0, 118, 1060, 1, 0, 0, 0, 120, 1062, 1, 0, 0, 0, 122, 1083, 1, 0, 0, 0, 124, 1092, 1, 0, 0, 0, 126, 1094, 1, 0, 0, 0, 128, 1111, 1, 0, 0, 0, 130, 1124, 1, 0, 0, 0, 132, 1134, 1, 0, 0, 0, 134, 1138, 1, 0, 0, 0, 136, 1149, 1, 0, 0, 0, 138, 1159, 1, 0, 0, 0, 140, 1162, 1, 0, 0, 0, 142, 1175, 1, 0, 0, 0, 144, 1177, 1, 0, 0, 0, 146, 1179, 1, 0, 0, 0, 148, 1181, 1, 0, 0, 0, 150, 1185, 1, 0, 0, 0, 152, 1190, 1, 0, 0, 0, 154, 1192, 1, 0, 0, 0, 156, 1196, 1, 0, 0, 0, 158, 1202, 1, 0, 0, 0, 160, 1204, 1, 0, 0, 0, 162, 1218, 1, 0, 0, 0, 164, 1220, 1, 0, 0, 0, 166, 1234, 1, 0, 0, 0, 168, 170, 3, 2, 1, 0, 169, 168, 1, 0, 0, 0, 170, 173, 1, 0, 0, 0, 171, 169, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 171, 1, 0, 0, 0, 174, 175, 5, 0, 0, 1, 175, 1, 1, 0, 0, 0, 176, 179, 3, 6, 3, 0, 177, 179, 3, 10, 5, 0, 178, 176, 1, 0, 0, 0, 178, 177, 1, 0, 0, 0, 179, 3, 1, 0, 0, 0, 180, 181, 3, 108, 54, 0, 181, 5, 1, 0, 0, 0, 182, 183, 5, 50, 0, 0, 183, 187, 3, 152, 76, 0, 184, 185, 5, 111, 0, 0, 185, 186, 5, 118, 0, 0, 186, 188, 3, 4, 2, 0, 187, 184, 1, 0, 0, 0, 187, 188, 1, 0, 0, 0, 188, 7, 1, 0, 0, 0, 189, 194, 3, 152, 76, 0, 190, 191, 5, 112, 0, 0, 191, 193, 3, 152, 76, 0, 192, 190, 1, 0, 0, 0, 193, 196, 1, 0, 0, 0, 194, 192, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 197, 199, 5, 112, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 9, 1, 0, 0, 0, 200, 210, 3, 12, 6, 0, 201, 210, 3, 14, 7, 0, 202, 210, 3, 16, 8, 0, 203, 210, 3, 18, 9, 0, 204, 210, 3, 20, 10, 0, 205, 210, 3, 22, 11, 0, 206, 210, 3, 24, 12, 0, 207, 210, 3, 26, 13, 0, 208, 210, 3, 28, 14, 0, 209, 200, 1, 0, 0, 0, 209, 201, 1, 0, 0, 0, 209, 202, 1, 0, 0, 0, 209, 203, 1, 0, 0, 0, 209, 204, 1, 0, 0, 0, 209, 205, 1, 0, 0, 0, 209, 206, 1, 0, 0, 0, 209, 207, 1, 0, 0, 0, 209, 208, 1, 0, 0, 0, 210, 11, 1, 0, 0, 0, 211, 213, 5, 70, 0, 0, 212, 214, 3, 4, 2, 0, 213, 212, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 216, 1, 0, 0, 0, 215, 217, 5, 145, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 13, 1, 0, 0, 0, 218, 219, 5, 38, 0, 0, 219, 220, 5, 126, 0, 0, 220, 221, 3, 4, 2, 0, 221, 222, 5, 144, 0, 0, 222, 225, 3, 10, 5, 0, 223, 224, 5, 24, 0, 0, 224, 226, 3, 10, 5, 0, 225, 223, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 15, 1, 0, 0, 0, 227, 228, 5, 96, 0, 0, 228, 229, 5, 126, 0, 0, 229, 230, 3, 4, 2, 0, 230, 231, 5, 144, 0, 0, 231, 233, 3, 10, 5, 0, 232, 234, 5, 145, 0, 0, 233, 232, 1, 0, 0, 0, 233, 234, 1, 0, 0, 0, 234, 17, 1, 0, 0, 0, 235, 236, 5, 31, 0, 0, 236, 240, 5, 126, 0, 0, 237, 241, 3, 6, 3, 0, 238, 241, 3, 22, 11, 0, 239, 241, 3, 4, 2, 0, 240, 237, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 240, 239, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 244, 5, 145, 0, 0, 243, 245, 3, 4, 2, 0, 244, 243, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 250, 5, 145, 0, 0, 247, 251, 3, 6, 3, 0, 248, 251, 3, 22, 11, 0, 249, 251, 3, 4, 2, 0, 250, 247, 1, 0, 0, 0, 250, 248, 1, 0, 0, 0, 250, 249, 1, 0, 0, 0, 250, 251, 1, 0, 0, 0, 251, 252, 1, 0, 0, 0, 252, 253, 5, 144, 0, 0, 253, 255, 3, 10, 5, 0, 254, 256, 5, 145, 0, 0, 255, 254, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 19, 1, 0, 0, 0, 257, 258, 5, 29, 0, 0, 258, 259, 3, 152, 76, 0, 259, 261, 5, 126, 0, 0, 260, 262, 3, 8, 4, 0, 261, 260, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 263, 1, 0, 0, 0, 263, 264, 5, 144, 0, 0, 264, 265, 3, 28, 14, 0, 265, 21, 1, 0, 0, 0, 266, 267, 3, 4, 2, 0, 267, 268, 5, 111, 0, 0, 268, 269, 5, 118, 0, 0, 269, 270, 3, 4, 2, 0, 270, 23, 1, 0, 0, 0, 271, 273, 3, 4, 2, 0, 272, 274, 5, 145, 0, 0, 273, 272, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 25, 1, 0, 0, 0, 275, 276, 5, 145, 0, 0, 276, 27, 1, 0, 0, 0, 277, 281, 5, 124, 0, 0, 278, 280, 3, 2, 1, 0, 279, 278, 1, 0, 0, 0, 280, 283, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 281, 282, 1, 0, 0, 0, 282, 284, 1, 0, 0, 0, 283, 281, 1, 0, 0, 0, 284, 285, 5, 142, 0, 0, 285, 29, 1, 0, 0, 0, 286, 287, 3, 4, 2, 0, 287, 288, 5, 111, 0, 0, 288, 289, 3, 4, 2, 0, 289, 31, 1, 0, 0, 0, 290, 295, 3, 30, 15, 0, 291, 292, 5, 112, 0, 0, 292, 294, 3, 30, 15, 0, 293, 291, 1, 0, 0, 0, 294, 297, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 295, 296, 1, 0, 0, 0, 296, 299, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 298, 300, 5, 112, 0, 0, 299, 298, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 33, 1, 0, 0, 0, 301, 305, 3, 36, 18, 0, 302, 305, 3, 40, 20, 0, 303, 305, 3, 116, 58, 0, 304, 301, 1, 0, 0, 0, 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 307, 5, 0, 0, 1, 307, 35, 1, 0, 0, 0, 308, 314, 3, 38, 19, 0, 309, 310, 5, 91, 0, 0, 310, 311, 5, 1, 0, 0, 311, 313, 3, 38, 19, 0, 312, 309, 1, 0, 0, 0, 313, 316, 1, 0, 0, 0, 314, 312, 1, 0, 0, 0, 314, 315, 1, 0, 0, 0, 315, 37, 1, 0, 0, 0, 316, 314, 1, 0, 0, 0, 317, 324, 3, 40, 20, 0, 318, 319, 5, 126, 0, 0, 319, 320, 3, 36, 18, 0, 320, 321, 5, 144, 0, 0, 321, 324, 1, 0, 0, 0, 322, 324, 3, 156, 78, 0, 323, 317, 1, 0, 0, 0, 323, 318, 1, 0, 0, 0, 323, 322, 1, 0, 0, 0, 324, 39, 1, 0, 0, 0, 325, 327, 3, 42, 21, 0, 326, 325, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 328, 1, 0, 0, 0, 328, 330, 5, 77, 0, 0, 329, 331, 5, 23, 0, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 333, 1, 0, 0, 0, 332, 334, 3, 44, 22, 0, 333, 332, 1, 0, 0, 0, 333, 334, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 337, 3, 106, 53, 0, 336, 338, 3, 46, 23, 0, 337, 336, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 340, 1, 0, 0, 0, 339, 341, 3, 48, 24, 0, 340, 339, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 343, 1, 0, 0, 0, 342, 344, 3, 52, 26, 0, 343, 342, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 346, 1, 0, 0, 0, 345, 347, 3, 54, 27, 0, 346, 345, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 349, 1, 0, 0, 0, 348, 350, 3, 56, 28, 0, 349, 348, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 353, 1, 0, 0, 0, 351, 352, 5, 98, 0, 0, 352, 354, 7, 0, 0, 0, 353, 351, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 357, 1, 0, 0, 0, 355, 356, 5, 98, 0, 0, 356, 358, 5, 86, 0, 0, 357, 355, 1, 0, 0, 0, 357, 358, 1, 0, 0, 0, 358, 360, 1, 0, 0, 0, 359, 361, 3, 58, 29, 0, 360, 359, 1, 0, 0, 0, 360, 361, 1, 0, 0, 0, 361, 363, 1, 0, 0, 0, 362, 364, 3, 50, 25, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 366, 1, 0, 0, 0, 365, 367, 3, 60, 30, 0, 366, 365, 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 370, 1, 0, 0, 0, 368, 371, 3, 64, 32, 0, 369, 371, 3, 66, 33, 0, 370, 368, 1, 0, 0, 0, 370, 369, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 374, 3, 68, 34, 0, 373, 372, 1, 0, 0, 0, 373, 374, 1, 0, 0, 0, 374, 41, 1, 0, 0, 0, 375, 376, 5, 98, 0, 0, 376, 377, 3, 120, 60, 0, 377, 43, 1, 0, 0, 0, 378, 379, 5, 85, 0, 0, 379, 382, 5, 104, 0, 0, 380, 381, 5, 98, 0, 0, 381, 383, 5, 82, 0, 0, 382, 380, 1, 0, 0, 0, 382, 383, 1, 0, 0, 0, 383, 45, 1, 0, 0, 0, 384, 385, 5, 32, 0, 0, 385, 386, 3, 70, 35, 0, 386, 47, 1, 0, 0, 0, 387, 389, 7, 1, 0, 0, 388, 387, 1, 0, 0, 0, 388, 389, 1, 0, 0, 0, 389, 390, 1, 0, 0, 0, 390, 391, 5, 5, 0, 0, 391, 392, 5, 45, 0, 0, 392, 393, 3, 106, 53, 0, 393, 49, 1, 0, 0, 0, 394, 395, 5, 97, 0, 0, 395, 396, 3, 152, 76, 0, 396, 397, 5, 6, 0, 0, 397, 398, 5, 126, 0, 0, 398, 399, 3, 90, 45, 0, 399, 409, 5, 144, 0, 0, 400, 401, 5, 112, 0, 0, 401, 402, 3, 152, 76, 0, 402, 403, 5, 6, 0, 0, 403, 404, 5, 126, 0, 0, 404, 405, 3, 90, 45, 0, 405, 406, 5, 144, 0, 0, 406, 408, 1, 0, 0, 0, 407, 400, 1, 0, 0, 0, 408, 411, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 51, 1, 0, 0, 0, 411, 409, 1, 0, 0, 0, 412, 413, 5, 67, 0, 0, 413, 414, 3, 108, 54, 0, 414, 53, 1, 0, 0, 0, 415, 416, 5, 95, 0, 0, 416, 417, 3, 108, 54, 0, 417, 55, 1, 0, 0, 0, 418, 419, 5, 34, 0, 0, 419, 426, 5, 11, 0, 0, 420, 421, 7, 0, 0, 0, 421, 422, 5, 126, 0, 0, 422, 423, 3, 106, 53, 0, 423, 424, 5, 144, 0, 0, 424, 427, 1, 0, 0, 0, 425, 427, 3, 106, 53, 0, 426, 420, 1, 0, 0, 0, 426, 425, 1, 0, 0, 0, 427, 57, 1, 0, 0, 0, 428, 429, 5, 35, 0, 0, 429, 430, 3, 108, 54, 0, 430, 59, 1, 0, 0, 0, 431, 432, 5, 62, 0, 0, 432, 433, 5, 11, 0, 0, 433, 434, 3, 80, 40, 0, 434, 61, 1, 0, 0, 0, 435, 436, 5, 62, 0, 0, 436, 437, 5, 11, 0, 0, 437, 438, 3, 106, 53, 0, 438, 63, 1, 0, 0, 0, 439, 440, 5, 52, 0, 0, 440, 443, 3, 108, 54, 0, 441, 442, 5, 112, 0, 0, 442, 444, 3, 108, 54, 0, 443, 441, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 449, 1, 0, 0, 0, 445, 446, 5, 98, 0, 0, 446, 450, 5, 82, 0, 0, 447, 448, 5, 11, 0, 0, 448, 450, 3, 106, 53, 0, 449, 445, 1, 0, 0, 0, 449, 447, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 469, 1, 0, 0, 0, 451, 452, 5, 52, 0, 0, 452, 455, 3, 108, 54, 0, 453, 454, 5, 98, 0, 0, 454, 456, 5, 82, 0, 0, 455, 453, 1, 0, 0, 0, 455, 456, 1, 0, 0, 0, 456, 457, 1, 0, 0, 0, 457, 458, 5, 59, 0, 0, 458, 459, 3, 108, 54, 0, 459, 469, 1, 0, 0, 0, 460, 461, 5, 52, 0, 0, 461, 462, 3, 108, 54, 0, 462, 463, 5, 59, 0, 0, 463, 466, 3, 108, 54, 0, 464, 465, 5, 11, 0, 0, 465, 467, 3, 106, 53, 0, 466, 464, 1, 0, 0, 0, 466, 467, 1, 0, 0, 0, 467, 469, 1, 0, 0, 0, 468, 439, 1, 0, 0, 0, 468, 451, 1, 0, 0, 0, 468, 460, 1, 0, 0, 0, 469, 65, 1, 0, 0, 0, 470, 471, 5, 59, 0, 0, 471, 472, 3, 108, 54, 0, 472, 67, 1, 0, 0, 0, 473, 474, 5, 79, 0, 0, 474, 475, 3, 86, 43, 0, 475, 69, 1, 0, 0, 0, 476, 477, 6, 35, -1, 0, 477, 479, 3, 128, 64, 0, 478, 480, 5, 27, 0, 0, 479, 478, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 482, 1, 0, 0, 0, 481, 483, 3, 78, 39, 0, 482, 481, 1, 0, 0, 0, 482, 483, 1, 0, 0, 0, 483, 489, 1, 0, 0, 0, 484, 485, 5, 126, 0, 0, 485, 486, 3, 70, 35, 0, 486, 487, 5, 144, 0, 0, 487, 489, 1, 0, 0, 0, 488, 476, 1, 0, 0, 0, 488, 484, 1, 0, 0, 0, 489, 504, 1, 0, 0, 0, 490, 491, 10, 3, 0, 0, 491, 492, 3, 74, 37, 0, 492, 493, 3, 70, 35, 4, 493, 503, 1, 0, 0, 0, 494, 496, 10, 4, 0, 0, 495, 497, 3, 72, 36, 0, 496, 495, 1, 0, 0, 0, 496, 497, 1, 0, 0, 0, 497, 498, 1, 0, 0, 0, 498, 499, 5, 45, 0, 0, 499, 500, 3, 70, 35, 0, 500, 501, 3, 76, 38, 0, 501, 503, 1, 0, 0, 0, 502, 490, 1, 0, 0, 0, 502, 494, 1, 0, 0, 0, 503, 506, 1, 0, 0, 0, 504, 502, 1, 0, 0, 0, 504, 505, 1, 0, 0, 0, 505, 71, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 507, 509, 7, 2, 0, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 517, 5, 42, 0, 0, 511, 513, 5, 42, 0, 0, 512, 514, 7, 2, 0, 0, 513, 512, 1, 0, 0, 0, 513, 514, 1, 0, 0, 0, 514, 517, 1, 0, 0, 0, 515, 517, 7, 2, 0, 0, 516, 508, 1, 0, 0, 0, 516, 511, 1, 0, 0, 0, 516, 515, 1, 0, 0, 0, 517, 551, 1, 0, 0, 0, 518, 520, 7, 3, 0, 0, 519, 518, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 523, 7, 4, 0, 0, 522, 524, 5, 63, 0, 0, 523, 522, 1, 0, 0, 0, 523, 524, 1, 0, 0, 0, 524, 533, 1, 0, 0, 0, 525, 527, 7, 4, 0, 0, 526, 528, 5, 63, 0, 0, 527, 526, 1, 0, 0, 0, 527, 528, 1, 0, 0, 0, 528, 530, 1, 0, 0, 0, 529, 531, 7, 3, 0, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 533, 1, 0, 0, 0, 532, 519, 1, 0, 0, 0, 532, 525, 1, 0, 0, 0, 533, 551, 1, 0, 0, 0, 534, 536, 7, 5, 0, 0, 535, 534, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 539, 5, 33, 0, 0, 538, 540, 5, 63, 0, 0, 539, 538, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 549, 1, 0, 0, 0, 541, 543, 5, 33, 0, 0, 542, 544, 5, 63, 0, 0, 543, 542, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 546, 1, 0, 0, 0, 545, 547, 7, 5, 0, 0, 546, 545, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 549, 1, 0, 0, 0, 548, 535, 1, 0, 0, 0, 548, 541, 1, 0, 0, 0, 549, 551, 1, 0, 0, 0, 550, 516, 1, 0, 0, 0, 550, 532, 1, 0, 0, 0, 550, 548, 1, 0, 0, 0, 551, 73, 1, 0, 0, 0, 552, 553, 5, 16, 0, 0, 553, 556, 5, 45, 0, 0, 554, 556, 5, 112, 0, 0, 555, 552, 1, 0, 0, 0, 555, 554, 1, 0, 0, 0, 556, 75, 1, 0, 0, 0, 557, 558, 5, 60, 0, 0, 558, 567, 3, 106, 53, 0, 559, 560, 5, 92, 0, 0, 560, 561, 5, 126, 0, 0, 561, 562, 3, 106, 53, 0, 562, 563, 5, 144, 0, 0, 563, 567, 1, 0, 0, 0, 564, 565, 5, 92, 0, 0, 565, 567, 3, 106, 53, 0, 566, 557, 1, 0, 0, 0, 566, 559, 1, 0, 0, 0, 566, 564, 1, 0, 0, 0, 567, 77, 1, 0, 0, 0, 568, 569, 5, 75, 0, 0, 569, 572, 3, 84, 42, 0, 570, 571, 5, 59, 0, 0, 571, 573, 3, 84, 42, 0, 572, 570, 1, 0, 0, 0, 572, 573, 1, 0, 0, 0, 573, 79, 1, 0, 0, 0, 574, 579, 3, 82, 41, 0, 575, 576, 5, 112, 0, 0, 576, 578, 3, 82, 41, 0, 577, 575, 1, 0, 0, 0, 578, 581, 1, 0, 0, 0, 579, 577, 1, 0, 0, 0, 579, 580, 1, 0, 0, 0, 580, 81, 1, 0, 0, 0, 581, 579, 1, 0, 0, 0, 582, 584, 3, 108, 54, 0, 583, 585, 7, 6, 0, 0, 584, 583, 1, 0, 0, 0, 584, 585, 1, 0, 0, 0, 585, 588, 1, 0, 0, 0, 586, 587, 5, 58, 0, 0, 587, 589, 7, 7, 0, 0, 588, 586, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 592, 1, 0, 0, 0, 590, 591, 5, 15, 0, 0, 591, 593, 5, 106, 0, 0, 592, 590, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 83, 1, 0, 0, 0, 594, 601, 3, 156, 78, 0, 595, 598, 3, 140, 70, 0, 596, 597, 5, 146, 0, 0, 597, 599, 3, 140, 70, 0, 598, 596, 1, 0, 0, 0, 598, 599, 1, 0, 0, 0, 599, 601, 1, 0, 0, 0, 600, 594, 1, 0, 0, 0, 600, 595, 1, 0, 0, 0, 601, 85, 1, 0, 0, 0, 602, 607, 3, 88, 44, 0, 603, 604, 5, 112, 0, 0, 604, 606, 3, 88, 44, 0, 605, 603, 1, 0, 0, 0, 606, 609, 1, 0, 0, 0, 607, 605, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 87, 1, 0, 0, 0, 609, 607, 1, 0, 0, 0, 610, 611, 3, 152, 76, 0, 611, 612, 5, 118, 0, 0, 612, 613, 3, 142, 71, 0, 613, 89, 1, 0, 0, 0, 614, 616, 3, 92, 46, 0, 615, 614, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 618, 1, 0, 0, 0, 617, 619, 3, 94, 47, 0, 618, 617, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 621, 1, 0, 0, 0, 620, 622, 3, 96, 48, 0, 621, 620, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 91, 1, 0, 0, 0, 623, 624, 5, 65, 0, 0, 624, 625, 5, 11, 0, 0, 625, 626, 3, 106, 53, 0, 626, 93, 1, 0, 0, 0, 627, 628, 5, 62, 0, 0, 628, 629, 5, 11, 0, 0, 629, 630, 3, 80, 40, 0, 630, 95, 1, 0, 0, 0, 631, 632, 7, 8, 0, 0, 632, 633, 3, 98, 49, 0, 633, 97, 1, 0, 0, 0, 634, 641, 3, 100, 50, 0, 635, 636, 5, 9, 0, 0, 636, 637, 3, 100, 50, 0, 637, 638, 5, 2, 0, 0, 638, 639, 3, 100, 50, 0, 639, 641, 1, 0, 0, 0, 640, 634, 1, 0, 0, 0, 640, 635, 1, 0, 0, 0, 641, 99, 1, 0, 0, 0, 642, 643, 5, 18, 0, 0, 643, 655, 5, 73, 0, 0, 644, 645, 5, 90, 0, 0, 645, 655, 5, 66, 0, 0, 646, 647, 5, 90, 0, 0, 647, 655, 5, 30, 0, 0, 648, 649, 3, 140, 70, 0, 649, 650, 5, 66, 0, 0, 650, 655, 1, 0, 0, 0, 651, 652, 3, 140, 70, 0, 652, 653, 5, 30, 0, 0, 653, 655, 1, 0, 0, 0, 654, 642, 1, 0, 0, 0, 654, 644, 1, 0, 0, 0, 654, 646, 1, 0, 0, 0, 654, 648, 1, 0, 0, 0, 654, 651, 1, 0, 0, 0, 655, 101, 1, 0, 0, 0, 656, 657, 3, 108, 54, 0, 657, 658, 5, 0, 0, 1, 658, 103, 1, 0, 0, 0, 659, 716, 3, 152, 76, 0, 660, 661, 3, 152, 76, 0, 661, 662, 5, 126, 0, 0, 662, 663, 3, 152, 76, 0, 663, 670, 3, 104, 52, 0, 664, 665, 5, 112, 0, 0, 665, 666, 3, 152, 76, 0, 666, 667, 3, 104, 52, 0, 667, 669, 1, 0, 0, 0, 668, 664, 1, 0, 0, 0, 669, 672, 1, 0, 0, 0, 670, 668, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 674, 1, 0, 0, 0, 672, 670, 1, 0, 0, 0, 673, 675, 5, 112, 0, 0, 674, 673, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 677, 5, 144, 0, 0, 677, 716, 1, 0, 0, 0, 678, 679, 3, 152, 76, 0, 679, 680, 5, 126, 0, 0, 680, 685, 3, 154, 77, 0, 681, 682, 5, 112, 0, 0, 682, 684, 3, 154, 77, 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, 689, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 688, 690, 5, 112, 0, 0, 689, 688, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 692, 5, 144, 0, 0, 692, 716, 1, 0, 0, 0, 693, 694, 3, 152, 76, 0, 694, 695, 5, 126, 0, 0, 695, 700, 3, 104, 52, 0, 696, 697, 5, 112, 0, 0, 697, 699, 3, 104, 52, 0, 698, 696, 1, 0, 0, 0, 699, 702, 1, 0, 0, 0, 700, 698, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 704, 1, 0, 0, 0, 702, 700, 1, 0, 0, 0, 703, 705, 5, 112, 0, 0, 704, 703, 1, 0, 0, 0, 704, 705, 1, 0, 0, 0, 705, 706, 1, 0, 0, 0, 706, 707, 5, 144, 0, 0, 707, 716, 1, 0, 0, 0, 708, 709, 3, 152, 76, 0, 709, 711, 5, 126, 0, 0, 710, 712, 3, 106, 53, 0, 711, 710, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 713, 1, 0, 0, 0, 713, 714, 5, 144, 0, 0, 714, 716, 1, 0, 0, 0, 715, 659, 1, 0, 0, 0, 715, 660, 1, 0, 0, 0, 715, 678, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 708, 1, 0, 0, 0, 716, 105, 1, 0, 0, 0, 717, 722, 3, 108, 54, 0, 718, 719, 5, 112, 0, 0, 719, 721, 3, 108, 54, 0, 720, 718, 1, 0, 0, 0, 721, 724, 1, 0, 0, 0, 722, 720, 1, 0, 0, 0, 722, 723, 1, 0, 0, 0, 723, 726, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 725, 727, 5, 112, 0, 0, 726, 725, 1, 0, 0, 0, 726, 727, 1, 0, 0, 0, 727, 107, 1, 0, 0, 0, 728, 729, 6, 54, -1, 0, 729, 731, 5, 12, 0, 0, 730, 732, 3, 108, 54, 0, 731, 730, 1, 0, 0, 0, 731, 732, 1, 0, 0, 0, 732, 738, 1, 0, 0, 0, 733, 734, 5, 94, 0, 0, 734, 735, 3, 108, 54, 0, 735, 736, 5, 81, 0, 0, 736, 737, 3, 108, 54, 0, 737, 739, 1, 0, 0, 0, 738, 733, 1, 0, 0, 0, 739, 740, 1, 0, 0, 0, 740, 738, 1, 0, 0, 0, 740, 741, 1, 0, 0, 0, 741, 744, 1, 0, 0, 0, 742, 743, 5, 24, 0, 0, 743, 745, 3, 108, 54, 0, 744, 742, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 746, 1, 0, 0, 0, 746, 747, 5, 25, 0, 0, 747, 878, 1, 0, 0, 0, 748, 749, 5, 13, 0, 0, 749, 750, 5, 126, 0, 0, 750, 751, 3, 108, 54, 0, 751, 752, 5, 6, 0, 0, 752, 753, 3, 104, 52, 0, 753, 754, 5, 144, 0, 0, 754, 878, 1, 0, 0, 0, 755, 756, 5, 19, 0, 0, 756, 878, 5, 106, 0, 0, 757, 758, 5, 43, 0, 0, 758, 759, 3, 108, 54, 0, 759, 760, 3, 144, 72, 0, 760, 878, 1, 0, 0, 0, 761, 762, 5, 80, 0, 0, 762, 763, 5, 126, 0, 0, 763, 764, 3, 108, 54, 0, 764, 765, 5, 32, 0, 0, 765, 768, 3, 108, 54, 0, 766, 767, 5, 31, 0, 0, 767, 769, 3, 108, 54, 0, 768, 766, 1, 0, 0, 0, 768, 769, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 771, 5, 144, 0, 0, 771, 878, 1, 0, 0, 0, 772, 773, 5, 83, 0, 0, 773, 878, 5, 106, 0, 0, 774, 775, 5, 88, 0, 0, 775, 776, 5, 126, 0, 0, 776, 777, 7, 9, 0, 0, 777, 778, 3, 158, 79, 0, 778, 779, 5, 32, 0, 0, 779, 780, 3, 108, 54, 0, 780, 781, 5, 144, 0, 0, 781, 878, 1, 0, 0, 0, 782, 783, 3, 152, 76, 0, 783, 785, 5, 126, 0, 0, 784, 786, 3, 106, 53, 0, 785, 784, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 787, 1, 0, 0, 0, 787, 788, 5, 144, 0, 0, 788, 797, 1, 0, 0, 0, 789, 791, 5, 126, 0, 0, 790, 792, 5, 23, 0, 0, 791, 790, 1, 0, 0, 0, 791, 792, 1, 0, 0, 0, 792, 794, 1, 0, 0, 0, 793, 795, 3, 110, 55, 0, 794, 793, 1, 0, 0, 0, 794, 795, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 798, 5, 144, 0, 0, 797, 789, 1, 0, 0, 0, 797, 798, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 800, 5, 64, 0, 0, 800, 801, 5, 126, 0, 0, 801, 802, 3, 90, 45, 0, 802, 803, 5, 144, 0, 0, 803, 878, 1, 0, 0, 0, 804, 805, 3, 152, 76, 0, 805, 807, 5, 126, 0, 0, 806, 808, 3, 106, 53, 0, 807, 806, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 810, 5, 144, 0, 0, 810, 819, 1, 0, 0, 0, 811, 813, 5, 126, 0, 0, 812, 814, 5, 23, 0, 0, 813, 812, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 817, 3, 110, 55, 0, 816, 815, 1, 0, 0, 0, 816, 817, 1, 0, 0, 0, 817, 818, 1, 0, 0, 0, 818, 820, 5, 144, 0, 0, 819, 811, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 821, 1, 0, 0, 0, 821, 822, 5, 64, 0, 0, 822, 823, 3, 152, 76, 0, 823, 878, 1, 0, 0, 0, 824, 830, 3, 152, 76, 0, 825, 827, 5, 126, 0, 0, 826, 828, 3, 106, 53, 0, 827, 826, 1, 0, 0, 0, 827, 828, 1, 0, 0, 0, 828, 829, 1, 0, 0, 0, 829, 831, 5, 144, 0, 0, 830, 825, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 1, 0, 0, 0, 832, 834, 5, 126, 0, 0, 833, 835, 5, 23, 0, 0, 834, 833, 1, 0, 0, 0, 834, 835, 1, 0, 0, 0, 835, 837, 1, 0, 0, 0, 836, 838, 3, 110, 55, 0, 837, 836, 1, 0, 0, 0, 837, 838, 1, 0, 0, 0, 838, 839, 1, 0, 0, 0, 839, 840, 5, 144, 0, 0, 840, 878, 1, 0, 0, 0, 841, 878, 3, 116, 58, 0, 842, 878, 3, 160, 80, 0, 843, 878, 3, 142, 71, 0, 844, 845, 5, 114, 0, 0, 845, 878, 3, 108, 54, 19, 846, 847, 5, 56, 0, 0, 847, 878, 3, 108, 54, 13, 848, 849, 3, 132, 66, 0, 849, 850, 5, 116, 0, 0, 850, 852, 1, 0, 0, 0, 851, 848, 1, 0, 0, 0, 851, 852, 1, 0, 0, 0, 852, 853, 1, 0, 0, 0, 853, 878, 5, 108, 0, 0, 854, 855, 5, 126, 0, 0, 855, 856, 3, 36, 18, 0, 856, 857, 5, 144, 0, 0, 857, 878, 1, 0, 0, 0, 858, 859, 5, 126, 0, 0, 859, 860, 3, 108, 54, 0, 860, 861, 5, 144, 0, 0, 861, 878, 1, 0, 0, 0, 862, 863, 5, 126, 0, 0, 863, 864, 3, 106, 53, 0, 864, 865, 5, 144, 0, 0, 865, 878, 1, 0, 0, 0, 866, 868, 5, 125, 0, 0, 867, 869, 3, 106, 53, 0, 868, 867, 1, 0, 0, 0, 868, 869, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 878, 5, 143, 0, 0, 871, 873, 5, 124, 0, 0, 872, 874, 3, 32, 16, 0, 873, 872, 1, 0, 0, 0, 873, 874, 1, 0, 0, 0, 874, 875, 1, 0, 0, 0, 875, 878, 5, 142, 0, 0, 876, 878, 3, 124, 62, 0, 877, 728, 1, 0, 0, 0, 877, 748, 1, 0, 0, 0, 877, 755, 1, 0, 0, 0, 877, 757, 1, 0, 0, 0, 877, 761, 1, 0, 0, 0, 877, 772, 1, 0, 0, 0, 877, 774, 1, 0, 0, 0, 877, 782, 1, 0, 0, 0, 877, 804, 1, 0, 0, 0, 877, 824, 1, 0, 0, 0, 877, 841, 1, 0, 0, 0, 877, 842, 1, 0, 0, 0, 877, 843, 1, 0, 0, 0, 877, 844, 1, 0, 0, 0, 877, 846, 1, 0, 0, 0, 877, 851, 1, 0, 0, 0, 877, 854, 1, 0, 0, 0, 877, 858, 1, 0, 0, 0, 877, 862, 1, 0, 0, 0, 877, 866, 1, 0, 0, 0, 877, 871, 1, 0, 0, 0, 877, 876, 1, 0, 0, 0, 878, 971, 1, 0, 0, 0, 879, 883, 10, 18, 0, 0, 880, 884, 5, 108, 0, 0, 881, 884, 5, 146, 0, 0, 882, 884, 5, 133, 0, 0, 883, 880, 1, 0, 0, 0, 883, 881, 1, 0, 0, 0, 883, 882, 1, 0, 0, 0, 884, 885, 1, 0, 0, 0, 885, 970, 3, 108, 54, 19, 886, 890, 10, 17, 0, 0, 887, 891, 5, 134, 0, 0, 888, 891, 5, 114, 0, 0, 889, 891, 5, 113, 0, 0, 890, 887, 1, 0, 0, 0, 890, 888, 1, 0, 0, 0, 890, 889, 1, 0, 0, 0, 891, 892, 1, 0, 0, 0, 892, 970, 3, 108, 54, 18, 893, 918, 10, 16, 0, 0, 894, 919, 5, 117, 0, 0, 895, 919, 5, 118, 0, 0, 896, 919, 5, 129, 0, 0, 897, 919, 5, 127, 0, 0, 898, 919, 5, 128, 0, 0, 899, 919, 5, 119, 0, 0, 900, 919, 5, 120, 0, 0, 901, 903, 5, 56, 0, 0, 902, 901, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 904, 1, 0, 0, 0, 904, 906, 5, 40, 0, 0, 905, 907, 5, 14, 0, 0, 906, 905, 1, 0, 0, 0, 906, 907, 1, 0, 0, 0, 907, 919, 1, 0, 0, 0, 908, 910, 5, 56, 0, 0, 909, 908, 1, 0, 0, 0, 909, 910, 1, 0, 0, 0, 910, 911, 1, 0, 0, 0, 911, 919, 7, 10, 0, 0, 912, 919, 5, 140, 0, 0, 913, 919, 5, 141, 0, 0, 914, 919, 5, 131, 0, 0, 915, 919, 5, 122, 0, 0, 916, 919, 5, 123, 0, 0, 917, 919, 5, 130, 0, 0, 918, 894, 1, 0, 0, 0, 918, 895, 1, 0, 0, 0, 918, 896, 1, 0, 0, 0, 918, 897, 1, 0, 0, 0, 918, 898, 1, 0, 0, 0, 918, 899, 1, 0, 0, 0, 918, 900, 1, 0, 0, 0, 918, 902, 1, 0, 0, 0, 918, 909, 1, 0, 0, 0, 918, 912, 1, 0, 0, 0, 918, 913, 1, 0, 0, 0, 918, 914, 1, 0, 0, 0, 918, 915, 1, 0, 0, 0, 918, 916, 1, 0, 0, 0, 918, 917, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 970, 3, 108, 54, 17, 921, 922, 10, 14, 0, 0, 922, 923, 5, 132, 0, 0, 923, 970, 3, 108, 54, 15, 924, 925, 10, 12, 0, 0, 925, 926, 5, 2, 0, 0, 926, 970, 3, 108, 54, 13, 927, 928, 10, 11, 0, 0, 928, 929, 5, 61, 0, 0, 929, 970, 3, 108, 54, 12, 930, 932, 10, 10, 0, 0, 931, 933, 5, 56, 0, 0, 932, 931, 1, 0, 0, 0, 932, 933, 1, 0, 0, 0, 933, 934, 1, 0, 0, 0, 934, 935, 5, 9, 0, 0, 935, 936, 3, 108, 54, 0, 936, 937, 5, 2, 0, 0, 937, 938, 3, 108, 54, 11, 938, 970, 1, 0, 0, 0, 939, 940, 10, 9, 0, 0, 940, 941, 5, 135, 0, 0, 941, 942, 3, 108, 54, 0, 942, 943, 5, 111, 0, 0, 943, 944, 3, 108, 54, 9, 944, 970, 1, 0, 0, 0, 945, 946, 10, 22, 0, 0, 946, 947, 5, 125, 0, 0, 947, 948, 3, 108, 54, 0, 948, 949, 5, 143, 0, 0, 949, 970, 1, 0, 0, 0, 950, 951, 10, 21, 0, 0, 951, 952, 5, 116, 0, 0, 952, 970, 5, 104, 0, 0, 953, 954, 10, 20, 0, 0, 954, 955, 5, 116, 0, 0, 955, 970, 3, 152, 76, 0, 956, 957, 10, 15, 0, 0, 957, 959, 5, 44, 0, 0, 958, 960, 5, 56, 0, 0, 959, 958, 1, 0, 0, 0, 959, 960, 1, 0, 0, 0, 960, 961, 1, 0, 0, 0, 961, 970, 5, 57, 0, 0, 962, 967, 10, 8, 0, 0, 963, 964, 5, 6, 0, 0, 964, 968, 3, 152, 76, 0, 965, 966, 5, 6, 0, 0, 966, 968, 5, 106, 0, 0, 967, 963, 1, 0, 0, 0, 967, 965, 1, 0, 0, 0, 968, 970, 1, 0, 0, 0, 969, 879, 1, 0, 0, 0, 969, 886, 1, 0, 0, 0, 969, 893, 1, 0, 0, 0, 969, 921, 1, 0, 0, 0, 969, 924, 1, 0, 0, 0, 969, 927, 1, 0, 0, 0, 969, 930, 1, 0, 0, 0, 969, 939, 1, 0, 0, 0, 969, 945, 1, 0, 0, 0, 969, 950, 1, 0, 0, 0, 969, 953, 1, 0, 0, 0, 969, 956, 1, 0, 0, 0, 969, 962, 1, 0, 0, 0, 970, 973, 1, 0, 0, 0, 971, 969, 1, 0, 0, 0, 971, 972, 1, 0, 0, 0, 972, 109, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 974, 979, 3, 112, 56, 0, 975, 976, 5, 112, 0, 0, 976, 978, 3, 112, 56, 0, 977, 975, 1, 0, 0, 0, 978, 981, 1, 0, 0, 0, 979, 977, 1, 0, 0, 0, 979, 980, 1, 0, 0, 0, 980, 983, 1, 0, 0, 0, 981, 979, 1, 0, 0, 0, 982, 984, 5, 112, 0, 0, 983, 982, 1, 0, 0, 0, 983, 984, 1, 0, 0, 0, 984, 111, 1, 0, 0, 0, 985, 988, 3, 114, 57, 0, 986, 988, 3, 108, 54, 0, 987, 985, 1, 0, 0, 0, 987, 986, 1, 0, 0, 0, 988, 113, 1, 0, 0, 0, 989, 990, 5, 126, 0, 0, 990, 995, 3, 152, 76, 0, 991, 992, 5, 112, 0, 0, 992, 994, 3, 152, 76, 0, 993, 991, 1, 0, 0, 0, 994, 997, 1, 0, 0, 0, 995, 993, 1, 0, 0, 0, 995, 996, 1, 0, 0, 0, 996, 999, 1, 0, 0, 0, 997, 995, 1, 0, 0, 0, 998, 1000, 5, 112, 0, 0, 999, 998, 1, 0, 0, 0, 999, 1000, 1, 0, 0, 0, 1000, 1001, 1, 0, 0, 0, 1001, 1002, 5, 144, 0, 0, 1002, 1015, 1, 0, 0, 0, 1003, 1008, 3, 152, 76, 0, 1004, 1005, 5, 112, 0, 0, 1005, 1007, 3, 152, 76, 0, 1006, 1004, 1, 0, 0, 0, 1007, 1010, 1, 0, 0, 0, 1008, 1006, 1, 0, 0, 0, 1008, 1009, 1, 0, 0, 0, 1009, 1012, 1, 0, 0, 0, 1010, 1008, 1, 0, 0, 0, 1011, 1013, 5, 112, 0, 0, 1012, 1011, 1, 0, 0, 0, 1012, 1013, 1, 0, 0, 0, 1013, 1015, 1, 0, 0, 0, 1014, 989, 1, 0, 0, 0, 1014, 1003, 1, 0, 0, 0, 1015, 1016, 1, 0, 0, 0, 1016, 1017, 5, 107, 0, 0, 1017, 1018, 3, 108, 54, 0, 1018, 115, 1, 0, 0, 0, 1019, 1020, 5, 128, 0, 0, 1020, 1024, 3, 152, 76, 0, 1021, 1023, 3, 118, 59, 0, 1022, 1021, 1, 0, 0, 0, 1023, 1026, 1, 0, 0, 0, 1024, 1022, 1, 0, 0, 0, 1024, 1025, 1, 0, 0, 0, 1025, 1027, 1, 0, 0, 0, 1026, 1024, 1, 0, 0, 0, 1027, 1028, 5, 146, 0, 0, 1028, 1029, 5, 120, 0, 0, 1029, 1048, 1, 0, 0, 0, 1030, 1031, 5, 128, 0, 0, 1031, 1035, 3, 152, 76, 0, 1032, 1034, 3, 118, 59, 0, 1033, 1032, 1, 0, 0, 0, 1034, 1037, 1, 0, 0, 0, 1035, 1033, 1, 0, 0, 0, 1035, 1036, 1, 0, 0, 0, 1036, 1038, 1, 0, 0, 0, 1037, 1035, 1, 0, 0, 0, 1038, 1040, 5, 120, 0, 0, 1039, 1041, 3, 116, 58, 0, 1040, 1039, 1, 0, 0, 0, 1040, 1041, 1, 0, 0, 0, 1041, 1042, 1, 0, 0, 0, 1042, 1043, 5, 128, 0, 0, 1043, 1044, 5, 146, 0, 0, 1044, 1045, 3, 152, 76, 0, 1045, 1046, 5, 120, 0, 0, 1046, 1048, 1, 0, 0, 0, 1047, 1019, 1, 0, 0, 0, 1047, 1030, 1, 0, 0, 0, 1048, 117, 1, 0, 0, 0, 1049, 1050, 3, 152, 76, 0, 1050, 1051, 5, 118, 0, 0, 1051, 1052, 3, 158, 79, 0, 1052, 1061, 1, 0, 0, 0, 1053, 1054, 3, 152, 76, 0, 1054, 1055, 5, 118, 0, 0, 1055, 1056, 5, 124, 0, 0, 1056, 1057, 3, 108, 54, 0, 1057, 1058, 5, 142, 0, 0, 1058, 1061, 1, 0, 0, 0, 1059, 1061, 3, 152, 76, 0, 1060, 1049, 1, 0, 0, 0, 1060, 1053, 1, 0, 0, 0, 1060, 1059, 1, 0, 0, 0, 1061, 119, 1, 0, 0, 0, 1062, 1067, 3, 122, 61, 0, 1063, 1064, 5, 112, 0, 0, 1064, 1066, 3, 122, 61, 0, 1065, 1063, 1, 0, 0, 0, 1066, 1069, 1, 0, 0, 0, 1067, 1065, 1, 0, 0, 0, 1067, 1068, 1, 0, 0, 0, 1068, 1071, 1, 0, 0, 0, 1069, 1067, 1, 0, 0, 0, 1070, 1072, 5, 112, 0, 0, 1071, 1070, 1, 0, 0, 0, 1071, 1072, 1, 0, 0, 0, 1072, 121, 1, 0, 0, 0, 1073, 1074, 3, 152, 76, 0, 1074, 1075, 5, 6, 0, 0, 1075, 1076, 5, 126, 0, 0, 1076, 1077, 3, 36, 18, 0, 1077, 1078, 5, 144, 0, 0, 1078, 1084, 1, 0, 0, 0, 1079, 1080, 3, 108, 54, 0, 1080, 1081, 5, 6, 0, 0, 1081, 1082, 3, 152, 76, 0, 1082, 1084, 1, 0, 0, 0, 1083, 1073, 1, 0, 0, 0, 1083, 1079, 1, 0, 0, 0, 1084, 123, 1, 0, 0, 0, 1085, 1093, 3, 156, 78, 0, 1086, 1087, 3, 132, 66, 0, 1087, 1088, 5, 116, 0, 0, 1088, 1090, 1, 0, 0, 0, 1089, 1086, 1, 0, 0, 0, 1089, 1090, 1, 0, 0, 0, 1090, 1091, 1, 0, 0, 0, 1091, 1093, 3, 126, 63, 0, 1092, 1085, 1, 0, 0, 0, 1092, 1089, 1, 0, 0, 0, 1093, 125, 1, 0, 0, 0, 1094, 1099, 3, 152, 76, 0, 1095, 1096, 5, 116, 0, 0, 1096, 1098, 3, 152, 76, 0, 1097, 1095, 1, 0, 0, 0, 1098, 1101, 1, 0, 0, 0, 1099, 1097, 1, 0, 0, 0, 1099, 1100, 1, 0, 0, 0, 1100, 127, 1, 0, 0, 0, 1101, 1099, 1, 0, 0, 0, 1102, 1103, 6, 64, -1, 0, 1103, 1112, 3, 132, 66, 0, 1104, 1112, 3, 130, 65, 0, 1105, 1106, 5, 126, 0, 0, 1106, 1107, 3, 36, 18, 0, 1107, 1108, 5, 144, 0, 0, 1108, 1112, 1, 0, 0, 0, 1109, 1112, 3, 116, 58, 0, 1110, 1112, 3, 156, 78, 0, 1111, 1102, 1, 0, 0, 0, 1111, 1104, 1, 0, 0, 0, 1111, 1105, 1, 0, 0, 0, 1111, 1109, 1, 0, 0, 0, 1111, 1110, 1, 0, 0, 0, 1112, 1121, 1, 0, 0, 0, 1113, 1117, 10, 3, 0, 0, 1114, 1118, 3, 150, 75, 0, 1115, 1116, 5, 6, 0, 0, 1116, 1118, 3, 152, 76, 0, 1117, 1114, 1, 0, 0, 0, 1117, 1115, 1, 0, 0, 0, 1118, 1120, 1, 0, 0, 0, 1119, 1113, 1, 0, 0, 0, 1120, 1123, 1, 0, 0, 0, 1121, 1119, 1, 0, 0, 0, 1121, 1122, 1, 0, 0, 0, 1122, 129, 1, 0, 0, 0, 1123, 1121, 1, 0, 0, 0, 1124, 1125, 3, 152, 76, 0, 1125, 1127, 5, 126, 0, 0, 1126, 1128, 3, 134, 67, 0, 1127, 1126, 1, 0, 0, 0, 1127, 1128, 1, 0, 0, 0, 1128, 1129, 1, 0, 0, 0, 1129, 1130, 5, 144, 0, 0, 1130, 131, 1, 0, 0, 0, 1131, 1132, 3, 136, 68, 0, 1132, 1133, 5, 116, 0, 0, 1133, 1135, 1, 0, 0, 0, 1134, 1131, 1, 0, 0, 0, 1134, 1135, 1, 0, 0, 0, 1135, 1136, 1, 0, 0, 0, 1136, 1137, 3, 152, 76, 0, 1137, 133, 1, 0, 0, 0, 1138, 1143, 3, 108, 54, 0, 1139, 1140, 5, 112, 0, 0, 1140, 1142, 3, 108, 54, 0, 1141, 1139, 1, 0, 0, 0, 1142, 1145, 1, 0, 0, 0, 1143, 1141, 1, 0, 0, 0, 1143, 1144, 1, 0, 0, 0, 1144, 1147, 1, 0, 0, 0, 1145, 1143, 1, 0, 0, 0, 1146, 1148, 5, 112, 0, 0, 1147, 1146, 1, 0, 0, 0, 1147, 1148, 1, 0, 0, 0, 1148, 135, 1, 0, 0, 0, 1149, 1150, 3, 152, 76, 0, 1150, 137, 1, 0, 0, 0, 1151, 1160, 5, 102, 0, 0, 1152, 1153, 5, 116, 0, 0, 1153, 1160, 7, 11, 0, 0, 1154, 1155, 5, 104, 0, 0, 1155, 1157, 5, 116, 0, 0, 1156, 1158, 7, 11, 0, 0, 1157, 1156, 1, 0, 0, 0, 1157, 1158, 1, 0, 0, 0, 1158, 1160, 1, 0, 0, 0, 1159, 1151, 1, 0, 0, 0, 1159, 1152, 1, 0, 0, 0, 1159, 1154, 1, 0, 0, 0, 1160, 139, 1, 0, 0, 0, 1161, 1163, 7, 12, 0, 0, 1162, 1161, 1, 0, 0, 0, 1162, 1163, 1, 0, 0, 0, 1163, 1170, 1, 0, 0, 0, 1164, 1171, 3, 138, 69, 0, 1165, 1171, 5, 103, 0, 0, 1166, 1171, 5, 104, 0, 0, 1167, 1171, 5, 105, 0, 0, 1168, 1171, 5, 41, 0, 0, 1169, 1171, 5, 55, 0, 0, 1170, 1164, 1, 0, 0, 0, 1170, 1165, 1, 0, 0, 0, 1170, 1166, 1, 0, 0, 0, 1170, 1167, 1, 0, 0, 0, 1170, 1168, 1, 0, 0, 0, 1170, 1169, 1, 0, 0, 0, 1171, 141, 1, 0, 0, 0, 1172, 1176, 3, 140, 70, 0, 1173, 1176, 5, 106, 0, 0, 1174, 1176, 5, 57, 0, 0, 1175, 1172, 1, 0, 0, 0, 1175, 1173, 1, 0, 0, 0, 1175, 1174, 1, 0, 0, 0, 1176, 143, 1, 0, 0, 0, 1177, 1178, 7, 13, 0, 0, 1178, 145, 1, 0, 0, 0, 1179, 1180, 7, 14, 0, 0, 1180, 147, 1, 0, 0, 0, 1181, 1182, 7, 15, 0, 0, 1182, 149, 1, 0, 0, 0, 1183, 1186, 5, 101, 0, 0, 1184, 1186, 3, 148, 74, 0, 1185, 1183, 1, 0, 0, 0, 1185, 1184, 1, 0, 0, 0, 1186, 151, 1, 0, 0, 0, 1187, 1191, 5, 101, 0, 0, 1188, 1191, 3, 144, 72, 0, 1189, 1191, 3, 146, 73, 0, 1190, 1187, 1, 0, 0, 0, 1190, 1188, 1, 0, 0, 0, 1190, 1189, 1, 0, 0, 0, 1191, 153, 1, 0, 0, 0, 1192, 1193, 3, 158, 79, 0, 1193, 1194, 5, 118, 0, 0, 1194, 1195, 3, 140, 70, 0, 1195, 155, 1, 0, 0, 0, 1196, 1197, 5, 124, 0, 0, 1197, 1198, 3, 152, 76, 0, 1198, 1199, 5, 142, 0, 0, 1199, 157, 1, 0, 0, 0, 1200, 1203, 5, 106, 0, 0, 1201, 1203, 3, 160, 80, 0, 1202, 1200, 1, 0, 0, 0, 1202, 1201, 1, 0, 0, 0, 1203, 159, 1, 0, 0, 0, 1204, 1208, 5, 137, 0, 0, 1205, 1207, 3, 162, 81, 0, 1206, 1205, 1, 0, 0, 0, 1207, 1210, 1, 0, 0, 0, 1208, 1206, 1, 0, 0, 0, 1208, 1209, 1, 0, 0, 0, 1209, 1211, 1, 0, 0, 0, 1210, 1208, 1, 0, 0, 0, 1211, 1212, 5, 139, 0, 0, 1212, 161, 1, 0, 0, 0, 1213, 1214, 5, 152, 0, 0, 1214, 1215, 3, 108, 54, 0, 1215, 1216, 5, 142, 0, 0, 1216, 1219, 1, 0, 0, 0, 1217, 1219, 5, 151, 0, 0, 1218, 1213, 1, 0, 0, 0, 1218, 1217, 1, 0, 0, 0, 1219, 163, 1, 0, 0, 0, 1220, 1224, 5, 138, 0, 0, 1221, 1223, 3, 166, 83, 0, 1222, 1221, 1, 0, 0, 0, 1223, 1226, 1, 0, 0, 0, 1224, 1222, 1, 0, 0, 0, 1224, 1225, 1, 0, 0, 0, 1225, 1227, 1, 0, 0, 0, 1226, 1224, 1, 0, 0, 0, 1227, 1228, 5, 0, 0, 1, 1228, 165, 1, 0, 0, 0, 1229, 1230, 5, 154, 0, 0, 1230, 1231, 3, 108, 54, 0, 1231, 1232, 5, 142, 0, 0, 1232, 1235, 1, 0, 0, 0, 1233, 1235, 5, 153, 0, 0, 1234, 1229, 1, 0, 0, 0, 1234, 1233, 1, 0, 0, 0, 1235, 167, 1, 0, 0, 0, 160, 171, 178, 187, 194, 198, 209, 213, 216, 225, 233, 240, 244, 250, 255, 261, 273, 281, 295, 299, 304, 314, 323, 326, 330, 333, 337, 340, 343, 346, 349, 353, 357, 360, 363, 366, 370, 373, 382, 388, 409, 426, 443, 449, 455, 466, 468, 479, 482, 488, 496, 502, 504, 508, 513, 516, 519, 523, 527, 530, 532, 535, 539, 543, 546, 548, 550, 555, 566, 572, 579, 584, 588, 592, 598, 600, 607, 615, 618, 621, 640, 654, 670, 674, 685, 689, 700, 704, 711, 715, 722, 726, 731, 740, 744, 768, 785, 791, 794, 797, 807, 813, 816, 819, 827, 830, 834, 837, 851, 868, 873, 877, 883, 890, 902, 906, 909, 918, 932, 959, 967, 969, 971, 979, 983, 987, 995, 999, 1008, 1012, 1014, 1024, 1035, 1040, 1047, 1060, 1067, 1071, 1083, 1089, 1092, 1099, 1111, 1117, 1121, 1127, 1134, 1143, 1147, 1157, 1159, 1162, 1170, 1175, 1185, 1190, 1202, 1208, 1218, 1224, 1234]
\ No newline at end of file
+[4, 1, 154, 1237, 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, 1, 0, 5, 0, 170, 8, 0, 10, 0, 12, 0, 173, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 179, 8, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 188, 8, 3, 1, 4, 1, 4, 1, 4, 5, 4, 193, 8, 4, 10, 4, 12, 4, 196, 9, 4, 1, 4, 3, 4, 199, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 210, 8, 5, 1, 6, 1, 6, 3, 6, 214, 8, 6, 1, 6, 3, 6, 217, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 226, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 234, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 241, 8, 9, 1, 9, 1, 9, 3, 9, 245, 8, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 251, 8, 9, 1, 9, 1, 9, 1, 9, 3, 9, 256, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 262, 8, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 3, 12, 274, 8, 12, 1, 13, 1, 13, 1, 14, 1, 14, 5, 14, 280, 8, 14, 10, 14, 12, 14, 283, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 5, 16, 294, 8, 16, 10, 16, 12, 16, 297, 9, 16, 1, 16, 3, 16, 300, 8, 16, 1, 17, 1, 17, 1, 17, 3, 17, 305, 8, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 313, 8, 18, 10, 18, 12, 18, 316, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 324, 8, 19, 1, 20, 3, 20, 327, 8, 20, 1, 20, 1, 20, 3, 20, 331, 8, 20, 1, 20, 3, 20, 334, 8, 20, 1, 20, 1, 20, 3, 20, 338, 8, 20, 1, 20, 3, 20, 341, 8, 20, 1, 20, 3, 20, 344, 8, 20, 1, 20, 3, 20, 347, 8, 20, 1, 20, 3, 20, 350, 8, 20, 1, 20, 1, 20, 3, 20, 354, 8, 20, 1, 20, 1, 20, 3, 20, 358, 8, 20, 1, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 3, 20, 367, 8, 20, 1, 20, 1, 20, 3, 20, 371, 8, 20, 1, 20, 3, 20, 374, 8, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 383, 8, 22, 1, 23, 1, 23, 1, 23, 1, 24, 3, 24, 389, 8, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 5, 25, 408, 8, 25, 10, 25, 12, 25, 411, 9, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 427, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 444, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 450, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 456, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 467, 8, 32, 3, 32, 469, 8, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 3, 35, 480, 8, 35, 1, 35, 3, 35, 483, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 489, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 497, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 503, 8, 35, 10, 35, 12, 35, 506, 9, 35, 1, 36, 3, 36, 509, 8, 36, 1, 36, 1, 36, 1, 36, 3, 36, 514, 8, 36, 1, 36, 3, 36, 517, 8, 36, 1, 36, 3, 36, 520, 8, 36, 1, 36, 1, 36, 3, 36, 524, 8, 36, 1, 36, 1, 36, 3, 36, 528, 8, 36, 1, 36, 3, 36, 531, 8, 36, 3, 36, 533, 8, 36, 1, 36, 3, 36, 536, 8, 36, 1, 36, 1, 36, 3, 36, 540, 8, 36, 1, 36, 1, 36, 3, 36, 544, 8, 36, 1, 36, 3, 36, 547, 8, 36, 3, 36, 549, 8, 36, 3, 36, 551, 8, 36, 1, 37, 1, 37, 1, 37, 3, 37, 556, 8, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 567, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 573, 8, 39, 1, 40, 1, 40, 1, 40, 5, 40, 578, 8, 40, 10, 40, 12, 40, 581, 9, 40, 1, 41, 1, 41, 3, 41, 585, 8, 41, 1, 41, 1, 41, 3, 41, 589, 8, 41, 1, 41, 1, 41, 3, 41, 593, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 599, 8, 42, 3, 42, 601, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 606, 8, 43, 10, 43, 12, 43, 609, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 3, 45, 616, 8, 45, 1, 45, 3, 45, 619, 8, 45, 1, 45, 3, 45, 622, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 641, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 655, 8, 50, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 669, 8, 52, 10, 52, 12, 52, 672, 9, 52, 1, 52, 3, 52, 675, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 684, 8, 52, 10, 52, 12, 52, 687, 9, 52, 1, 52, 3, 52, 690, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 699, 8, 52, 10, 52, 12, 52, 702, 9, 52, 1, 52, 3, 52, 705, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 712, 8, 52, 1, 52, 1, 52, 3, 52, 716, 8, 52, 1, 53, 1, 53, 1, 53, 5, 53, 721, 8, 53, 10, 53, 12, 53, 724, 9, 53, 1, 53, 3, 53, 727, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 732, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 4, 54, 739, 8, 54, 11, 54, 12, 54, 740, 1, 54, 1, 54, 3, 54, 745, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 769, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 786, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 792, 8, 54, 1, 54, 3, 54, 795, 8, 54, 1, 54, 3, 54, 798, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 808, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 814, 8, 54, 1, 54, 3, 54, 817, 8, 54, 1, 54, 3, 54, 820, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 828, 8, 54, 1, 54, 3, 54, 831, 8, 54, 1, 54, 1, 54, 3, 54, 835, 8, 54, 1, 54, 3, 54, 838, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 852, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 869, 8, 54, 1, 54, 1, 54, 1, 54, 3, 54, 874, 8, 54, 1, 54, 1, 54, 3, 54, 878, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 884, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 891, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 903, 8, 54, 1, 54, 1, 54, 3, 54, 907, 8, 54, 1, 54, 3, 54, 910, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 919, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 933, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 960, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 968, 8, 54, 5, 54, 970, 8, 54, 10, 54, 12, 54, 973, 9, 54, 1, 55, 1, 55, 1, 55, 5, 55, 978, 8, 55, 10, 55, 12, 55, 981, 9, 55, 1, 55, 3, 55, 984, 8, 55, 1, 56, 1, 56, 3, 56, 988, 8, 56, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 994, 8, 57, 10, 57, 12, 57, 997, 9, 57, 1, 57, 3, 57, 1000, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 5, 57, 1007, 8, 57, 10, 57, 12, 57, 1010, 9, 57, 1, 57, 3, 57, 1013, 8, 57, 3, 57, 1015, 8, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 5, 58, 1023, 8, 58, 10, 58, 12, 58, 1026, 9, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 5, 58, 1034, 8, 58, 10, 58, 12, 58, 1037, 9, 58, 1, 58, 1, 58, 3, 58, 1041, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 1048, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 1061, 8, 59, 1, 60, 1, 60, 1, 60, 5, 60, 1066, 8, 60, 10, 60, 12, 60, 1069, 9, 60, 1, 60, 3, 60, 1072, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 3, 61, 1084, 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 3, 62, 1090, 8, 62, 1, 62, 3, 62, 1093, 8, 62, 1, 63, 1, 63, 1, 63, 5, 63, 1098, 8, 63, 10, 63, 12, 63, 1101, 9, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1112, 8, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1118, 8, 64, 5, 64, 1120, 8, 64, 10, 64, 12, 64, 1123, 9, 64, 1, 65, 1, 65, 1, 65, 3, 65, 1128, 8, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 3, 66, 1135, 8, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 5, 67, 1142, 8, 67, 10, 67, 12, 67, 1145, 9, 67, 1, 67, 3, 67, 1148, 8, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1158, 8, 69, 3, 69, 1160, 8, 69, 1, 70, 3, 70, 1163, 8, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 3, 70, 1171, 8, 70, 1, 71, 1, 71, 1, 71, 3, 71, 1176, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 74, 1, 74, 1, 75, 1, 75, 3, 75, 1186, 8, 75, 1, 76, 1, 76, 1, 76, 3, 76, 1191, 8, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 3, 79, 1203, 8, 79, 1, 80, 1, 80, 5, 80, 1207, 8, 80, 10, 80, 12, 80, 1210, 9, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 3, 81, 1219, 8, 81, 1, 82, 1, 82, 5, 82, 1223, 8, 82, 10, 82, 12, 82, 1226, 9, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 3, 83, 1235, 8, 83, 1, 83, 0, 3, 70, 108, 128, 84, 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, 0, 16, 2, 0, 17, 17, 72, 72, 2, 0, 42, 42, 49, 49, 3, 0, 1, 1, 4, 4, 8, 8, 4, 0, 1, 1, 3, 4, 8, 8, 78, 78, 2, 0, 49, 49, 71, 71, 2, 0, 1, 1, 4, 4, 2, 0, 7, 7, 21, 22, 2, 0, 28, 28, 47, 47, 2, 0, 69, 69, 74, 74, 3, 0, 10, 10, 48, 48, 87, 87, 2, 0, 39, 39, 51, 51, 1, 0, 103, 104, 2, 0, 114, 114, 134, 134, 7, 0, 20, 20, 36, 36, 53, 54, 68, 68, 76, 76, 93, 93, 99, 99, 12, 0, 1, 19, 21, 28, 30, 35, 37, 40, 42, 49, 51, 52, 56, 56, 58, 67, 69, 75, 77, 92, 94, 95, 97, 98, 4, 0, 19, 19, 28, 28, 37, 37, 46, 46, 1394, 0, 171, 1, 0, 0, 0, 2, 178, 1, 0, 0, 0, 4, 180, 1, 0, 0, 0, 6, 182, 1, 0, 0, 0, 8, 189, 1, 0, 0, 0, 10, 209, 1, 0, 0, 0, 12, 211, 1, 0, 0, 0, 14, 218, 1, 0, 0, 0, 16, 227, 1, 0, 0, 0, 18, 235, 1, 0, 0, 0, 20, 257, 1, 0, 0, 0, 22, 266, 1, 0, 0, 0, 24, 271, 1, 0, 0, 0, 26, 275, 1, 0, 0, 0, 28, 277, 1, 0, 0, 0, 30, 286, 1, 0, 0, 0, 32, 290, 1, 0, 0, 0, 34, 304, 1, 0, 0, 0, 36, 308, 1, 0, 0, 0, 38, 323, 1, 0, 0, 0, 40, 326, 1, 0, 0, 0, 42, 375, 1, 0, 0, 0, 44, 378, 1, 0, 0, 0, 46, 384, 1, 0, 0, 0, 48, 388, 1, 0, 0, 0, 50, 394, 1, 0, 0, 0, 52, 412, 1, 0, 0, 0, 54, 415, 1, 0, 0, 0, 56, 418, 1, 0, 0, 0, 58, 428, 1, 0, 0, 0, 60, 431, 1, 0, 0, 0, 62, 435, 1, 0, 0, 0, 64, 468, 1, 0, 0, 0, 66, 470, 1, 0, 0, 0, 68, 473, 1, 0, 0, 0, 70, 488, 1, 0, 0, 0, 72, 550, 1, 0, 0, 0, 74, 555, 1, 0, 0, 0, 76, 566, 1, 0, 0, 0, 78, 568, 1, 0, 0, 0, 80, 574, 1, 0, 0, 0, 82, 582, 1, 0, 0, 0, 84, 600, 1, 0, 0, 0, 86, 602, 1, 0, 0, 0, 88, 610, 1, 0, 0, 0, 90, 615, 1, 0, 0, 0, 92, 623, 1, 0, 0, 0, 94, 627, 1, 0, 0, 0, 96, 631, 1, 0, 0, 0, 98, 640, 1, 0, 0, 0, 100, 654, 1, 0, 0, 0, 102, 656, 1, 0, 0, 0, 104, 715, 1, 0, 0, 0, 106, 717, 1, 0, 0, 0, 108, 877, 1, 0, 0, 0, 110, 974, 1, 0, 0, 0, 112, 987, 1, 0, 0, 0, 114, 1014, 1, 0, 0, 0, 116, 1047, 1, 0, 0, 0, 118, 1060, 1, 0, 0, 0, 120, 1062, 1, 0, 0, 0, 122, 1083, 1, 0, 0, 0, 124, 1092, 1, 0, 0, 0, 126, 1094, 1, 0, 0, 0, 128, 1111, 1, 0, 0, 0, 130, 1124, 1, 0, 0, 0, 132, 1134, 1, 0, 0, 0, 134, 1138, 1, 0, 0, 0, 136, 1149, 1, 0, 0, 0, 138, 1159, 1, 0, 0, 0, 140, 1162, 1, 0, 0, 0, 142, 1175, 1, 0, 0, 0, 144, 1177, 1, 0, 0, 0, 146, 1179, 1, 0, 0, 0, 148, 1181, 1, 0, 0, 0, 150, 1185, 1, 0, 0, 0, 152, 1190, 1, 0, 0, 0, 154, 1192, 1, 0, 0, 0, 156, 1196, 1, 0, 0, 0, 158, 1202, 1, 0, 0, 0, 160, 1204, 1, 0, 0, 0, 162, 1218, 1, 0, 0, 0, 164, 1220, 1, 0, 0, 0, 166, 1234, 1, 0, 0, 0, 168, 170, 3, 2, 1, 0, 169, 168, 1, 0, 0, 0, 170, 173, 1, 0, 0, 0, 171, 169, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 171, 1, 0, 0, 0, 174, 175, 5, 0, 0, 1, 175, 1, 1, 0, 0, 0, 176, 179, 3, 6, 3, 0, 177, 179, 3, 10, 5, 0, 178, 176, 1, 0, 0, 0, 178, 177, 1, 0, 0, 0, 179, 3, 1, 0, 0, 0, 180, 181, 3, 108, 54, 0, 181, 5, 1, 0, 0, 0, 182, 183, 5, 50, 0, 0, 183, 187, 3, 152, 76, 0, 184, 185, 5, 111, 0, 0, 185, 186, 5, 118, 0, 0, 186, 188, 3, 4, 2, 0, 187, 184, 1, 0, 0, 0, 187, 188, 1, 0, 0, 0, 188, 7, 1, 0, 0, 0, 189, 194, 3, 152, 76, 0, 190, 191, 5, 112, 0, 0, 191, 193, 3, 152, 76, 0, 192, 190, 1, 0, 0, 0, 193, 196, 1, 0, 0, 0, 194, 192, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 197, 199, 5, 112, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 9, 1, 0, 0, 0, 200, 210, 3, 12, 6, 0, 201, 210, 3, 14, 7, 0, 202, 210, 3, 16, 8, 0, 203, 210, 3, 18, 9, 0, 204, 210, 3, 20, 10, 0, 205, 210, 3, 22, 11, 0, 206, 210, 3, 28, 14, 0, 207, 210, 3, 24, 12, 0, 208, 210, 3, 26, 13, 0, 209, 200, 1, 0, 0, 0, 209, 201, 1, 0, 0, 0, 209, 202, 1, 0, 0, 0, 209, 203, 1, 0, 0, 0, 209, 204, 1, 0, 0, 0, 209, 205, 1, 0, 0, 0, 209, 206, 1, 0, 0, 0, 209, 207, 1, 0, 0, 0, 209, 208, 1, 0, 0, 0, 210, 11, 1, 0, 0, 0, 211, 213, 5, 70, 0, 0, 212, 214, 3, 4, 2, 0, 213, 212, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 216, 1, 0, 0, 0, 215, 217, 5, 145, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 13, 1, 0, 0, 0, 218, 219, 5, 38, 0, 0, 219, 220, 5, 126, 0, 0, 220, 221, 3, 4, 2, 0, 221, 222, 5, 144, 0, 0, 222, 225, 3, 10, 5, 0, 223, 224, 5, 24, 0, 0, 224, 226, 3, 10, 5, 0, 225, 223, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 15, 1, 0, 0, 0, 227, 228, 5, 96, 0, 0, 228, 229, 5, 126, 0, 0, 229, 230, 3, 4, 2, 0, 230, 231, 5, 144, 0, 0, 231, 233, 3, 10, 5, 0, 232, 234, 5, 145, 0, 0, 233, 232, 1, 0, 0, 0, 233, 234, 1, 0, 0, 0, 234, 17, 1, 0, 0, 0, 235, 236, 5, 31, 0, 0, 236, 240, 5, 126, 0, 0, 237, 241, 3, 6, 3, 0, 238, 241, 3, 22, 11, 0, 239, 241, 3, 4, 2, 0, 240, 237, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 240, 239, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 244, 5, 145, 0, 0, 243, 245, 3, 4, 2, 0, 244, 243, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 250, 5, 145, 0, 0, 247, 251, 3, 6, 3, 0, 248, 251, 3, 22, 11, 0, 249, 251, 3, 4, 2, 0, 250, 247, 1, 0, 0, 0, 250, 248, 1, 0, 0, 0, 250, 249, 1, 0, 0, 0, 250, 251, 1, 0, 0, 0, 251, 252, 1, 0, 0, 0, 252, 253, 5, 144, 0, 0, 253, 255, 3, 10, 5, 0, 254, 256, 5, 145, 0, 0, 255, 254, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 19, 1, 0, 0, 0, 257, 258, 5, 29, 0, 0, 258, 259, 3, 152, 76, 0, 259, 261, 5, 126, 0, 0, 260, 262, 3, 8, 4, 0, 261, 260, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 263, 1, 0, 0, 0, 263, 264, 5, 144, 0, 0, 264, 265, 3, 28, 14, 0, 265, 21, 1, 0, 0, 0, 266, 267, 3, 4, 2, 0, 267, 268, 5, 111, 0, 0, 268, 269, 5, 118, 0, 0, 269, 270, 3, 4, 2, 0, 270, 23, 1, 0, 0, 0, 271, 273, 3, 4, 2, 0, 272, 274, 5, 145, 0, 0, 273, 272, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 25, 1, 0, 0, 0, 275, 276, 5, 145, 0, 0, 276, 27, 1, 0, 0, 0, 277, 281, 5, 124, 0, 0, 278, 280, 3, 2, 1, 0, 279, 278, 1, 0, 0, 0, 280, 283, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 281, 282, 1, 0, 0, 0, 282, 284, 1, 0, 0, 0, 283, 281, 1, 0, 0, 0, 284, 285, 5, 142, 0, 0, 285, 29, 1, 0, 0, 0, 286, 287, 3, 4, 2, 0, 287, 288, 5, 111, 0, 0, 288, 289, 3, 4, 2, 0, 289, 31, 1, 0, 0, 0, 290, 295, 3, 30, 15, 0, 291, 292, 5, 112, 0, 0, 292, 294, 3, 30, 15, 0, 293, 291, 1, 0, 0, 0, 294, 297, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 295, 296, 1, 0, 0, 0, 296, 299, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 298, 300, 5, 112, 0, 0, 299, 298, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 33, 1, 0, 0, 0, 301, 305, 3, 36, 18, 0, 302, 305, 3, 40, 20, 0, 303, 305, 3, 116, 58, 0, 304, 301, 1, 0, 0, 0, 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 307, 5, 0, 0, 1, 307, 35, 1, 0, 0, 0, 308, 314, 3, 38, 19, 0, 309, 310, 5, 91, 0, 0, 310, 311, 5, 1, 0, 0, 311, 313, 3, 38, 19, 0, 312, 309, 1, 0, 0, 0, 313, 316, 1, 0, 0, 0, 314, 312, 1, 0, 0, 0, 314, 315, 1, 0, 0, 0, 315, 37, 1, 0, 0, 0, 316, 314, 1, 0, 0, 0, 317, 324, 3, 40, 20, 0, 318, 319, 5, 126, 0, 0, 319, 320, 3, 36, 18, 0, 320, 321, 5, 144, 0, 0, 321, 324, 1, 0, 0, 0, 322, 324, 3, 156, 78, 0, 323, 317, 1, 0, 0, 0, 323, 318, 1, 0, 0, 0, 323, 322, 1, 0, 0, 0, 324, 39, 1, 0, 0, 0, 325, 327, 3, 42, 21, 0, 326, 325, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 328, 1, 0, 0, 0, 328, 330, 5, 77, 0, 0, 329, 331, 5, 23, 0, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 333, 1, 0, 0, 0, 332, 334, 3, 44, 22, 0, 333, 332, 1, 0, 0, 0, 333, 334, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 337, 3, 106, 53, 0, 336, 338, 3, 46, 23, 0, 337, 336, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 340, 1, 0, 0, 0, 339, 341, 3, 48, 24, 0, 340, 339, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 343, 1, 0, 0, 0, 342, 344, 3, 52, 26, 0, 343, 342, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 346, 1, 0, 0, 0, 345, 347, 3, 54, 27, 0, 346, 345, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 349, 1, 0, 0, 0, 348, 350, 3, 56, 28, 0, 349, 348, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 353, 1, 0, 0, 0, 351, 352, 5, 98, 0, 0, 352, 354, 7, 0, 0, 0, 353, 351, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 357, 1, 0, 0, 0, 355, 356, 5, 98, 0, 0, 356, 358, 5, 86, 0, 0, 357, 355, 1, 0, 0, 0, 357, 358, 1, 0, 0, 0, 358, 360, 1, 0, 0, 0, 359, 361, 3, 58, 29, 0, 360, 359, 1, 0, 0, 0, 360, 361, 1, 0, 0, 0, 361, 363, 1, 0, 0, 0, 362, 364, 3, 50, 25, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 366, 1, 0, 0, 0, 365, 367, 3, 60, 30, 0, 366, 365, 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 370, 1, 0, 0, 0, 368, 371, 3, 64, 32, 0, 369, 371, 3, 66, 33, 0, 370, 368, 1, 0, 0, 0, 370, 369, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 374, 3, 68, 34, 0, 373, 372, 1, 0, 0, 0, 373, 374, 1, 0, 0, 0, 374, 41, 1, 0, 0, 0, 375, 376, 5, 98, 0, 0, 376, 377, 3, 120, 60, 0, 377, 43, 1, 0, 0, 0, 378, 379, 5, 85, 0, 0, 379, 382, 5, 104, 0, 0, 380, 381, 5, 98, 0, 0, 381, 383, 5, 82, 0, 0, 382, 380, 1, 0, 0, 0, 382, 383, 1, 0, 0, 0, 383, 45, 1, 0, 0, 0, 384, 385, 5, 32, 0, 0, 385, 386, 3, 70, 35, 0, 386, 47, 1, 0, 0, 0, 387, 389, 7, 1, 0, 0, 388, 387, 1, 0, 0, 0, 388, 389, 1, 0, 0, 0, 389, 390, 1, 0, 0, 0, 390, 391, 5, 5, 0, 0, 391, 392, 5, 45, 0, 0, 392, 393, 3, 106, 53, 0, 393, 49, 1, 0, 0, 0, 394, 395, 5, 97, 0, 0, 395, 396, 3, 152, 76, 0, 396, 397, 5, 6, 0, 0, 397, 398, 5, 126, 0, 0, 398, 399, 3, 90, 45, 0, 399, 409, 5, 144, 0, 0, 400, 401, 5, 112, 0, 0, 401, 402, 3, 152, 76, 0, 402, 403, 5, 6, 0, 0, 403, 404, 5, 126, 0, 0, 404, 405, 3, 90, 45, 0, 405, 406, 5, 144, 0, 0, 406, 408, 1, 0, 0, 0, 407, 400, 1, 0, 0, 0, 408, 411, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 51, 1, 0, 0, 0, 411, 409, 1, 0, 0, 0, 412, 413, 5, 67, 0, 0, 413, 414, 3, 108, 54, 0, 414, 53, 1, 0, 0, 0, 415, 416, 5, 95, 0, 0, 416, 417, 3, 108, 54, 0, 417, 55, 1, 0, 0, 0, 418, 419, 5, 34, 0, 0, 419, 426, 5, 11, 0, 0, 420, 421, 7, 0, 0, 0, 421, 422, 5, 126, 0, 0, 422, 423, 3, 106, 53, 0, 423, 424, 5, 144, 0, 0, 424, 427, 1, 0, 0, 0, 425, 427, 3, 106, 53, 0, 426, 420, 1, 0, 0, 0, 426, 425, 1, 0, 0, 0, 427, 57, 1, 0, 0, 0, 428, 429, 5, 35, 0, 0, 429, 430, 3, 108, 54, 0, 430, 59, 1, 0, 0, 0, 431, 432, 5, 62, 0, 0, 432, 433, 5, 11, 0, 0, 433, 434, 3, 80, 40, 0, 434, 61, 1, 0, 0, 0, 435, 436, 5, 62, 0, 0, 436, 437, 5, 11, 0, 0, 437, 438, 3, 106, 53, 0, 438, 63, 1, 0, 0, 0, 439, 440, 5, 52, 0, 0, 440, 443, 3, 108, 54, 0, 441, 442, 5, 112, 0, 0, 442, 444, 3, 108, 54, 0, 443, 441, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 449, 1, 0, 0, 0, 445, 446, 5, 98, 0, 0, 446, 450, 5, 82, 0, 0, 447, 448, 5, 11, 0, 0, 448, 450, 3, 106, 53, 0, 449, 445, 1, 0, 0, 0, 449, 447, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 469, 1, 0, 0, 0, 451, 452, 5, 52, 0, 0, 452, 455, 3, 108, 54, 0, 453, 454, 5, 98, 0, 0, 454, 456, 5, 82, 0, 0, 455, 453, 1, 0, 0, 0, 455, 456, 1, 0, 0, 0, 456, 457, 1, 0, 0, 0, 457, 458, 5, 59, 0, 0, 458, 459, 3, 108, 54, 0, 459, 469, 1, 0, 0, 0, 460, 461, 5, 52, 0, 0, 461, 462, 3, 108, 54, 0, 462, 463, 5, 59, 0, 0, 463, 466, 3, 108, 54, 0, 464, 465, 5, 11, 0, 0, 465, 467, 3, 106, 53, 0, 466, 464, 1, 0, 0, 0, 466, 467, 1, 0, 0, 0, 467, 469, 1, 0, 0, 0, 468, 439, 1, 0, 0, 0, 468, 451, 1, 0, 0, 0, 468, 460, 1, 0, 0, 0, 469, 65, 1, 0, 0, 0, 470, 471, 5, 59, 0, 0, 471, 472, 3, 108, 54, 0, 472, 67, 1, 0, 0, 0, 473, 474, 5, 79, 0, 0, 474, 475, 3, 86, 43, 0, 475, 69, 1, 0, 0, 0, 476, 477, 6, 35, -1, 0, 477, 479, 3, 128, 64, 0, 478, 480, 5, 27, 0, 0, 479, 478, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 482, 1, 0, 0, 0, 481, 483, 3, 78, 39, 0, 482, 481, 1, 0, 0, 0, 482, 483, 1, 0, 0, 0, 483, 489, 1, 0, 0, 0, 484, 485, 5, 126, 0, 0, 485, 486, 3, 70, 35, 0, 486, 487, 5, 144, 0, 0, 487, 489, 1, 0, 0, 0, 488, 476, 1, 0, 0, 0, 488, 484, 1, 0, 0, 0, 489, 504, 1, 0, 0, 0, 490, 491, 10, 3, 0, 0, 491, 492, 3, 74, 37, 0, 492, 493, 3, 70, 35, 4, 493, 503, 1, 0, 0, 0, 494, 496, 10, 4, 0, 0, 495, 497, 3, 72, 36, 0, 496, 495, 1, 0, 0, 0, 496, 497, 1, 0, 0, 0, 497, 498, 1, 0, 0, 0, 498, 499, 5, 45, 0, 0, 499, 500, 3, 70, 35, 0, 500, 501, 3, 76, 38, 0, 501, 503, 1, 0, 0, 0, 502, 490, 1, 0, 0, 0, 502, 494, 1, 0, 0, 0, 503, 506, 1, 0, 0, 0, 504, 502, 1, 0, 0, 0, 504, 505, 1, 0, 0, 0, 505, 71, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 507, 509, 7, 2, 0, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 517, 5, 42, 0, 0, 511, 513, 5, 42, 0, 0, 512, 514, 7, 2, 0, 0, 513, 512, 1, 0, 0, 0, 513, 514, 1, 0, 0, 0, 514, 517, 1, 0, 0, 0, 515, 517, 7, 2, 0, 0, 516, 508, 1, 0, 0, 0, 516, 511, 1, 0, 0, 0, 516, 515, 1, 0, 0, 0, 517, 551, 1, 0, 0, 0, 518, 520, 7, 3, 0, 0, 519, 518, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 523, 7, 4, 0, 0, 522, 524, 5, 63, 0, 0, 523, 522, 1, 0, 0, 0, 523, 524, 1, 0, 0, 0, 524, 533, 1, 0, 0, 0, 525, 527, 7, 4, 0, 0, 526, 528, 5, 63, 0, 0, 527, 526, 1, 0, 0, 0, 527, 528, 1, 0, 0, 0, 528, 530, 1, 0, 0, 0, 529, 531, 7, 3, 0, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 533, 1, 0, 0, 0, 532, 519, 1, 0, 0, 0, 532, 525, 1, 0, 0, 0, 533, 551, 1, 0, 0, 0, 534, 536, 7, 5, 0, 0, 535, 534, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 539, 5, 33, 0, 0, 538, 540, 5, 63, 0, 0, 539, 538, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 549, 1, 0, 0, 0, 541, 543, 5, 33, 0, 0, 542, 544, 5, 63, 0, 0, 543, 542, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 546, 1, 0, 0, 0, 545, 547, 7, 5, 0, 0, 546, 545, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 549, 1, 0, 0, 0, 548, 535, 1, 0, 0, 0, 548, 541, 1, 0, 0, 0, 549, 551, 1, 0, 0, 0, 550, 516, 1, 0, 0, 0, 550, 532, 1, 0, 0, 0, 550, 548, 1, 0, 0, 0, 551, 73, 1, 0, 0, 0, 552, 553, 5, 16, 0, 0, 553, 556, 5, 45, 0, 0, 554, 556, 5, 112, 0, 0, 555, 552, 1, 0, 0, 0, 555, 554, 1, 0, 0, 0, 556, 75, 1, 0, 0, 0, 557, 558, 5, 60, 0, 0, 558, 567, 3, 106, 53, 0, 559, 560, 5, 92, 0, 0, 560, 561, 5, 126, 0, 0, 561, 562, 3, 106, 53, 0, 562, 563, 5, 144, 0, 0, 563, 567, 1, 0, 0, 0, 564, 565, 5, 92, 0, 0, 565, 567, 3, 106, 53, 0, 566, 557, 1, 0, 0, 0, 566, 559, 1, 0, 0, 0, 566, 564, 1, 0, 0, 0, 567, 77, 1, 0, 0, 0, 568, 569, 5, 75, 0, 0, 569, 572, 3, 84, 42, 0, 570, 571, 5, 59, 0, 0, 571, 573, 3, 84, 42, 0, 572, 570, 1, 0, 0, 0, 572, 573, 1, 0, 0, 0, 573, 79, 1, 0, 0, 0, 574, 579, 3, 82, 41, 0, 575, 576, 5, 112, 0, 0, 576, 578, 3, 82, 41, 0, 577, 575, 1, 0, 0, 0, 578, 581, 1, 0, 0, 0, 579, 577, 1, 0, 0, 0, 579, 580, 1, 0, 0, 0, 580, 81, 1, 0, 0, 0, 581, 579, 1, 0, 0, 0, 582, 584, 3, 108, 54, 0, 583, 585, 7, 6, 0, 0, 584, 583, 1, 0, 0, 0, 584, 585, 1, 0, 0, 0, 585, 588, 1, 0, 0, 0, 586, 587, 5, 58, 0, 0, 587, 589, 7, 7, 0, 0, 588, 586, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 592, 1, 0, 0, 0, 590, 591, 5, 15, 0, 0, 591, 593, 5, 106, 0, 0, 592, 590, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 83, 1, 0, 0, 0, 594, 601, 3, 156, 78, 0, 595, 598, 3, 140, 70, 0, 596, 597, 5, 146, 0, 0, 597, 599, 3, 140, 70, 0, 598, 596, 1, 0, 0, 0, 598, 599, 1, 0, 0, 0, 599, 601, 1, 0, 0, 0, 600, 594, 1, 0, 0, 0, 600, 595, 1, 0, 0, 0, 601, 85, 1, 0, 0, 0, 602, 607, 3, 88, 44, 0, 603, 604, 5, 112, 0, 0, 604, 606, 3, 88, 44, 0, 605, 603, 1, 0, 0, 0, 606, 609, 1, 0, 0, 0, 607, 605, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 87, 1, 0, 0, 0, 609, 607, 1, 0, 0, 0, 610, 611, 3, 152, 76, 0, 611, 612, 5, 118, 0, 0, 612, 613, 3, 142, 71, 0, 613, 89, 1, 0, 0, 0, 614, 616, 3, 92, 46, 0, 615, 614, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 618, 1, 0, 0, 0, 617, 619, 3, 94, 47, 0, 618, 617, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 621, 1, 0, 0, 0, 620, 622, 3, 96, 48, 0, 621, 620, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 91, 1, 0, 0, 0, 623, 624, 5, 65, 0, 0, 624, 625, 5, 11, 0, 0, 625, 626, 3, 106, 53, 0, 626, 93, 1, 0, 0, 0, 627, 628, 5, 62, 0, 0, 628, 629, 5, 11, 0, 0, 629, 630, 3, 80, 40, 0, 630, 95, 1, 0, 0, 0, 631, 632, 7, 8, 0, 0, 632, 633, 3, 98, 49, 0, 633, 97, 1, 0, 0, 0, 634, 641, 3, 100, 50, 0, 635, 636, 5, 9, 0, 0, 636, 637, 3, 100, 50, 0, 637, 638, 5, 2, 0, 0, 638, 639, 3, 100, 50, 0, 639, 641, 1, 0, 0, 0, 640, 634, 1, 0, 0, 0, 640, 635, 1, 0, 0, 0, 641, 99, 1, 0, 0, 0, 642, 643, 5, 18, 0, 0, 643, 655, 5, 73, 0, 0, 644, 645, 5, 90, 0, 0, 645, 655, 5, 66, 0, 0, 646, 647, 5, 90, 0, 0, 647, 655, 5, 30, 0, 0, 648, 649, 3, 140, 70, 0, 649, 650, 5, 66, 0, 0, 650, 655, 1, 0, 0, 0, 651, 652, 3, 140, 70, 0, 652, 653, 5, 30, 0, 0, 653, 655, 1, 0, 0, 0, 654, 642, 1, 0, 0, 0, 654, 644, 1, 0, 0, 0, 654, 646, 1, 0, 0, 0, 654, 648, 1, 0, 0, 0, 654, 651, 1, 0, 0, 0, 655, 101, 1, 0, 0, 0, 656, 657, 3, 108, 54, 0, 657, 658, 5, 0, 0, 1, 658, 103, 1, 0, 0, 0, 659, 716, 3, 152, 76, 0, 660, 661, 3, 152, 76, 0, 661, 662, 5, 126, 0, 0, 662, 663, 3, 152, 76, 0, 663, 670, 3, 104, 52, 0, 664, 665, 5, 112, 0, 0, 665, 666, 3, 152, 76, 0, 666, 667, 3, 104, 52, 0, 667, 669, 1, 0, 0, 0, 668, 664, 1, 0, 0, 0, 669, 672, 1, 0, 0, 0, 670, 668, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 674, 1, 0, 0, 0, 672, 670, 1, 0, 0, 0, 673, 675, 5, 112, 0, 0, 674, 673, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 677, 5, 144, 0, 0, 677, 716, 1, 0, 0, 0, 678, 679, 3, 152, 76, 0, 679, 680, 5, 126, 0, 0, 680, 685, 3, 154, 77, 0, 681, 682, 5, 112, 0, 0, 682, 684, 3, 154, 77, 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, 689, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 688, 690, 5, 112, 0, 0, 689, 688, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 692, 5, 144, 0, 0, 692, 716, 1, 0, 0, 0, 693, 694, 3, 152, 76, 0, 694, 695, 5, 126, 0, 0, 695, 700, 3, 104, 52, 0, 696, 697, 5, 112, 0, 0, 697, 699, 3, 104, 52, 0, 698, 696, 1, 0, 0, 0, 699, 702, 1, 0, 0, 0, 700, 698, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 704, 1, 0, 0, 0, 702, 700, 1, 0, 0, 0, 703, 705, 5, 112, 0, 0, 704, 703, 1, 0, 0, 0, 704, 705, 1, 0, 0, 0, 705, 706, 1, 0, 0, 0, 706, 707, 5, 144, 0, 0, 707, 716, 1, 0, 0, 0, 708, 709, 3, 152, 76, 0, 709, 711, 5, 126, 0, 0, 710, 712, 3, 106, 53, 0, 711, 710, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 713, 1, 0, 0, 0, 713, 714, 5, 144, 0, 0, 714, 716, 1, 0, 0, 0, 715, 659, 1, 0, 0, 0, 715, 660, 1, 0, 0, 0, 715, 678, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 708, 1, 0, 0, 0, 716, 105, 1, 0, 0, 0, 717, 722, 3, 108, 54, 0, 718, 719, 5, 112, 0, 0, 719, 721, 3, 108, 54, 0, 720, 718, 1, 0, 0, 0, 721, 724, 1, 0, 0, 0, 722, 720, 1, 0, 0, 0, 722, 723, 1, 0, 0, 0, 723, 726, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 725, 727, 5, 112, 0, 0, 726, 725, 1, 0, 0, 0, 726, 727, 1, 0, 0, 0, 727, 107, 1, 0, 0, 0, 728, 729, 6, 54, -1, 0, 729, 731, 5, 12, 0, 0, 730, 732, 3, 108, 54, 0, 731, 730, 1, 0, 0, 0, 731, 732, 1, 0, 0, 0, 732, 738, 1, 0, 0, 0, 733, 734, 5, 94, 0, 0, 734, 735, 3, 108, 54, 0, 735, 736, 5, 81, 0, 0, 736, 737, 3, 108, 54, 0, 737, 739, 1, 0, 0, 0, 738, 733, 1, 0, 0, 0, 739, 740, 1, 0, 0, 0, 740, 738, 1, 0, 0, 0, 740, 741, 1, 0, 0, 0, 741, 744, 1, 0, 0, 0, 742, 743, 5, 24, 0, 0, 743, 745, 3, 108, 54, 0, 744, 742, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 746, 1, 0, 0, 0, 746, 747, 5, 25, 0, 0, 747, 878, 1, 0, 0, 0, 748, 749, 5, 13, 0, 0, 749, 750, 5, 126, 0, 0, 750, 751, 3, 108, 54, 0, 751, 752, 5, 6, 0, 0, 752, 753, 3, 104, 52, 0, 753, 754, 5, 144, 0, 0, 754, 878, 1, 0, 0, 0, 755, 756, 5, 19, 0, 0, 756, 878, 5, 106, 0, 0, 757, 758, 5, 43, 0, 0, 758, 759, 3, 108, 54, 0, 759, 760, 3, 144, 72, 0, 760, 878, 1, 0, 0, 0, 761, 762, 5, 80, 0, 0, 762, 763, 5, 126, 0, 0, 763, 764, 3, 108, 54, 0, 764, 765, 5, 32, 0, 0, 765, 768, 3, 108, 54, 0, 766, 767, 5, 31, 0, 0, 767, 769, 3, 108, 54, 0, 768, 766, 1, 0, 0, 0, 768, 769, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 771, 5, 144, 0, 0, 771, 878, 1, 0, 0, 0, 772, 773, 5, 83, 0, 0, 773, 878, 5, 106, 0, 0, 774, 775, 5, 88, 0, 0, 775, 776, 5, 126, 0, 0, 776, 777, 7, 9, 0, 0, 777, 778, 3, 158, 79, 0, 778, 779, 5, 32, 0, 0, 779, 780, 3, 108, 54, 0, 780, 781, 5, 144, 0, 0, 781, 878, 1, 0, 0, 0, 782, 783, 3, 152, 76, 0, 783, 785, 5, 126, 0, 0, 784, 786, 3, 106, 53, 0, 785, 784, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 787, 1, 0, 0, 0, 787, 788, 5, 144, 0, 0, 788, 797, 1, 0, 0, 0, 789, 791, 5, 126, 0, 0, 790, 792, 5, 23, 0, 0, 791, 790, 1, 0, 0, 0, 791, 792, 1, 0, 0, 0, 792, 794, 1, 0, 0, 0, 793, 795, 3, 110, 55, 0, 794, 793, 1, 0, 0, 0, 794, 795, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 798, 5, 144, 0, 0, 797, 789, 1, 0, 0, 0, 797, 798, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 800, 5, 64, 0, 0, 800, 801, 5, 126, 0, 0, 801, 802, 3, 90, 45, 0, 802, 803, 5, 144, 0, 0, 803, 878, 1, 0, 0, 0, 804, 805, 3, 152, 76, 0, 805, 807, 5, 126, 0, 0, 806, 808, 3, 106, 53, 0, 807, 806, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 810, 5, 144, 0, 0, 810, 819, 1, 0, 0, 0, 811, 813, 5, 126, 0, 0, 812, 814, 5, 23, 0, 0, 813, 812, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 817, 3, 110, 55, 0, 816, 815, 1, 0, 0, 0, 816, 817, 1, 0, 0, 0, 817, 818, 1, 0, 0, 0, 818, 820, 5, 144, 0, 0, 819, 811, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 821, 1, 0, 0, 0, 821, 822, 5, 64, 0, 0, 822, 823, 3, 152, 76, 0, 823, 878, 1, 0, 0, 0, 824, 830, 3, 152, 76, 0, 825, 827, 5, 126, 0, 0, 826, 828, 3, 106, 53, 0, 827, 826, 1, 0, 0, 0, 827, 828, 1, 0, 0, 0, 828, 829, 1, 0, 0, 0, 829, 831, 5, 144, 0, 0, 830, 825, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 1, 0, 0, 0, 832, 834, 5, 126, 0, 0, 833, 835, 5, 23, 0, 0, 834, 833, 1, 0, 0, 0, 834, 835, 1, 0, 0, 0, 835, 837, 1, 0, 0, 0, 836, 838, 3, 110, 55, 0, 837, 836, 1, 0, 0, 0, 837, 838, 1, 0, 0, 0, 838, 839, 1, 0, 0, 0, 839, 840, 5, 144, 0, 0, 840, 878, 1, 0, 0, 0, 841, 878, 3, 116, 58, 0, 842, 878, 3, 160, 80, 0, 843, 878, 3, 142, 71, 0, 844, 845, 5, 114, 0, 0, 845, 878, 3, 108, 54, 19, 846, 847, 5, 56, 0, 0, 847, 878, 3, 108, 54, 13, 848, 849, 3, 132, 66, 0, 849, 850, 5, 116, 0, 0, 850, 852, 1, 0, 0, 0, 851, 848, 1, 0, 0, 0, 851, 852, 1, 0, 0, 0, 852, 853, 1, 0, 0, 0, 853, 878, 5, 108, 0, 0, 854, 855, 5, 126, 0, 0, 855, 856, 3, 36, 18, 0, 856, 857, 5, 144, 0, 0, 857, 878, 1, 0, 0, 0, 858, 859, 5, 126, 0, 0, 859, 860, 3, 108, 54, 0, 860, 861, 5, 144, 0, 0, 861, 878, 1, 0, 0, 0, 862, 863, 5, 126, 0, 0, 863, 864, 3, 106, 53, 0, 864, 865, 5, 144, 0, 0, 865, 878, 1, 0, 0, 0, 866, 868, 5, 125, 0, 0, 867, 869, 3, 106, 53, 0, 868, 867, 1, 0, 0, 0, 868, 869, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 878, 5, 143, 0, 0, 871, 873, 5, 124, 0, 0, 872, 874, 3, 32, 16, 0, 873, 872, 1, 0, 0, 0, 873, 874, 1, 0, 0, 0, 874, 875, 1, 0, 0, 0, 875, 878, 5, 142, 0, 0, 876, 878, 3, 124, 62, 0, 877, 728, 1, 0, 0, 0, 877, 748, 1, 0, 0, 0, 877, 755, 1, 0, 0, 0, 877, 757, 1, 0, 0, 0, 877, 761, 1, 0, 0, 0, 877, 772, 1, 0, 0, 0, 877, 774, 1, 0, 0, 0, 877, 782, 1, 0, 0, 0, 877, 804, 1, 0, 0, 0, 877, 824, 1, 0, 0, 0, 877, 841, 1, 0, 0, 0, 877, 842, 1, 0, 0, 0, 877, 843, 1, 0, 0, 0, 877, 844, 1, 0, 0, 0, 877, 846, 1, 0, 0, 0, 877, 851, 1, 0, 0, 0, 877, 854, 1, 0, 0, 0, 877, 858, 1, 0, 0, 0, 877, 862, 1, 0, 0, 0, 877, 866, 1, 0, 0, 0, 877, 871, 1, 0, 0, 0, 877, 876, 1, 0, 0, 0, 878, 971, 1, 0, 0, 0, 879, 883, 10, 18, 0, 0, 880, 884, 5, 108, 0, 0, 881, 884, 5, 146, 0, 0, 882, 884, 5, 133, 0, 0, 883, 880, 1, 0, 0, 0, 883, 881, 1, 0, 0, 0, 883, 882, 1, 0, 0, 0, 884, 885, 1, 0, 0, 0, 885, 970, 3, 108, 54, 19, 886, 890, 10, 17, 0, 0, 887, 891, 5, 134, 0, 0, 888, 891, 5, 114, 0, 0, 889, 891, 5, 113, 0, 0, 890, 887, 1, 0, 0, 0, 890, 888, 1, 0, 0, 0, 890, 889, 1, 0, 0, 0, 891, 892, 1, 0, 0, 0, 892, 970, 3, 108, 54, 18, 893, 918, 10, 16, 0, 0, 894, 919, 5, 117, 0, 0, 895, 919, 5, 118, 0, 0, 896, 919, 5, 129, 0, 0, 897, 919, 5, 127, 0, 0, 898, 919, 5, 128, 0, 0, 899, 919, 5, 119, 0, 0, 900, 919, 5, 120, 0, 0, 901, 903, 5, 56, 0, 0, 902, 901, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 904, 1, 0, 0, 0, 904, 906, 5, 40, 0, 0, 905, 907, 5, 14, 0, 0, 906, 905, 1, 0, 0, 0, 906, 907, 1, 0, 0, 0, 907, 919, 1, 0, 0, 0, 908, 910, 5, 56, 0, 0, 909, 908, 1, 0, 0, 0, 909, 910, 1, 0, 0, 0, 910, 911, 1, 0, 0, 0, 911, 919, 7, 10, 0, 0, 912, 919, 5, 140, 0, 0, 913, 919, 5, 141, 0, 0, 914, 919, 5, 131, 0, 0, 915, 919, 5, 122, 0, 0, 916, 919, 5, 123, 0, 0, 917, 919, 5, 130, 0, 0, 918, 894, 1, 0, 0, 0, 918, 895, 1, 0, 0, 0, 918, 896, 1, 0, 0, 0, 918, 897, 1, 0, 0, 0, 918, 898, 1, 0, 0, 0, 918, 899, 1, 0, 0, 0, 918, 900, 1, 0, 0, 0, 918, 902, 1, 0, 0, 0, 918, 909, 1, 0, 0, 0, 918, 912, 1, 0, 0, 0, 918, 913, 1, 0, 0, 0, 918, 914, 1, 0, 0, 0, 918, 915, 1, 0, 0, 0, 918, 916, 1, 0, 0, 0, 918, 917, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 970, 3, 108, 54, 17, 921, 922, 10, 14, 0, 0, 922, 923, 5, 132, 0, 0, 923, 970, 3, 108, 54, 15, 924, 925, 10, 12, 0, 0, 925, 926, 5, 2, 0, 0, 926, 970, 3, 108, 54, 13, 927, 928, 10, 11, 0, 0, 928, 929, 5, 61, 0, 0, 929, 970, 3, 108, 54, 12, 930, 932, 10, 10, 0, 0, 931, 933, 5, 56, 0, 0, 932, 931, 1, 0, 0, 0, 932, 933, 1, 0, 0, 0, 933, 934, 1, 0, 0, 0, 934, 935, 5, 9, 0, 0, 935, 936, 3, 108, 54, 0, 936, 937, 5, 2, 0, 0, 937, 938, 3, 108, 54, 11, 938, 970, 1, 0, 0, 0, 939, 940, 10, 9, 0, 0, 940, 941, 5, 135, 0, 0, 941, 942, 3, 108, 54, 0, 942, 943, 5, 111, 0, 0, 943, 944, 3, 108, 54, 9, 944, 970, 1, 0, 0, 0, 945, 946, 10, 22, 0, 0, 946, 947, 5, 125, 0, 0, 947, 948, 3, 108, 54, 0, 948, 949, 5, 143, 0, 0, 949, 970, 1, 0, 0, 0, 950, 951, 10, 21, 0, 0, 951, 952, 5, 116, 0, 0, 952, 970, 5, 104, 0, 0, 953, 954, 10, 20, 0, 0, 954, 955, 5, 116, 0, 0, 955, 970, 3, 152, 76, 0, 956, 957, 10, 15, 0, 0, 957, 959, 5, 44, 0, 0, 958, 960, 5, 56, 0, 0, 959, 958, 1, 0, 0, 0, 959, 960, 1, 0, 0, 0, 960, 961, 1, 0, 0, 0, 961, 970, 5, 57, 0, 0, 962, 967, 10, 8, 0, 0, 963, 964, 5, 6, 0, 0, 964, 968, 3, 152, 76, 0, 965, 966, 5, 6, 0, 0, 966, 968, 5, 106, 0, 0, 967, 963, 1, 0, 0, 0, 967, 965, 1, 0, 0, 0, 968, 970, 1, 0, 0, 0, 969, 879, 1, 0, 0, 0, 969, 886, 1, 0, 0, 0, 969, 893, 1, 0, 0, 0, 969, 921, 1, 0, 0, 0, 969, 924, 1, 0, 0, 0, 969, 927, 1, 0, 0, 0, 969, 930, 1, 0, 0, 0, 969, 939, 1, 0, 0, 0, 969, 945, 1, 0, 0, 0, 969, 950, 1, 0, 0, 0, 969, 953, 1, 0, 0, 0, 969, 956, 1, 0, 0, 0, 969, 962, 1, 0, 0, 0, 970, 973, 1, 0, 0, 0, 971, 969, 1, 0, 0, 0, 971, 972, 1, 0, 0, 0, 972, 109, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 974, 979, 3, 112, 56, 0, 975, 976, 5, 112, 0, 0, 976, 978, 3, 112, 56, 0, 977, 975, 1, 0, 0, 0, 978, 981, 1, 0, 0, 0, 979, 977, 1, 0, 0, 0, 979, 980, 1, 0, 0, 0, 980, 983, 1, 0, 0, 0, 981, 979, 1, 0, 0, 0, 982, 984, 5, 112, 0, 0, 983, 982, 1, 0, 0, 0, 983, 984, 1, 0, 0, 0, 984, 111, 1, 0, 0, 0, 985, 988, 3, 114, 57, 0, 986, 988, 3, 108, 54, 0, 987, 985, 1, 0, 0, 0, 987, 986, 1, 0, 0, 0, 988, 113, 1, 0, 0, 0, 989, 990, 5, 126, 0, 0, 990, 995, 3, 152, 76, 0, 991, 992, 5, 112, 0, 0, 992, 994, 3, 152, 76, 0, 993, 991, 1, 0, 0, 0, 994, 997, 1, 0, 0, 0, 995, 993, 1, 0, 0, 0, 995, 996, 1, 0, 0, 0, 996, 999, 1, 0, 0, 0, 997, 995, 1, 0, 0, 0, 998, 1000, 5, 112, 0, 0, 999, 998, 1, 0, 0, 0, 999, 1000, 1, 0, 0, 0, 1000, 1001, 1, 0, 0, 0, 1001, 1002, 5, 144, 0, 0, 1002, 1015, 1, 0, 0, 0, 1003, 1008, 3, 152, 76, 0, 1004, 1005, 5, 112, 0, 0, 1005, 1007, 3, 152, 76, 0, 1006, 1004, 1, 0, 0, 0, 1007, 1010, 1, 0, 0, 0, 1008, 1006, 1, 0, 0, 0, 1008, 1009, 1, 0, 0, 0, 1009, 1012, 1, 0, 0, 0, 1010, 1008, 1, 0, 0, 0, 1011, 1013, 5, 112, 0, 0, 1012, 1011, 1, 0, 0, 0, 1012, 1013, 1, 0, 0, 0, 1013, 1015, 1, 0, 0, 0, 1014, 989, 1, 0, 0, 0, 1014, 1003, 1, 0, 0, 0, 1015, 1016, 1, 0, 0, 0, 1016, 1017, 5, 107, 0, 0, 1017, 1018, 3, 108, 54, 0, 1018, 115, 1, 0, 0, 0, 1019, 1020, 5, 128, 0, 0, 1020, 1024, 3, 152, 76, 0, 1021, 1023, 3, 118, 59, 0, 1022, 1021, 1, 0, 0, 0, 1023, 1026, 1, 0, 0, 0, 1024, 1022, 1, 0, 0, 0, 1024, 1025, 1, 0, 0, 0, 1025, 1027, 1, 0, 0, 0, 1026, 1024, 1, 0, 0, 0, 1027, 1028, 5, 146, 0, 0, 1028, 1029, 5, 120, 0, 0, 1029, 1048, 1, 0, 0, 0, 1030, 1031, 5, 128, 0, 0, 1031, 1035, 3, 152, 76, 0, 1032, 1034, 3, 118, 59, 0, 1033, 1032, 1, 0, 0, 0, 1034, 1037, 1, 0, 0, 0, 1035, 1033, 1, 0, 0, 0, 1035, 1036, 1, 0, 0, 0, 1036, 1038, 1, 0, 0, 0, 1037, 1035, 1, 0, 0, 0, 1038, 1040, 5, 120, 0, 0, 1039, 1041, 3, 116, 58, 0, 1040, 1039, 1, 0, 0, 0, 1040, 1041, 1, 0, 0, 0, 1041, 1042, 1, 0, 0, 0, 1042, 1043, 5, 128, 0, 0, 1043, 1044, 5, 146, 0, 0, 1044, 1045, 3, 152, 76, 0, 1045, 1046, 5, 120, 0, 0, 1046, 1048, 1, 0, 0, 0, 1047, 1019, 1, 0, 0, 0, 1047, 1030, 1, 0, 0, 0, 1048, 117, 1, 0, 0, 0, 1049, 1050, 3, 152, 76, 0, 1050, 1051, 5, 118, 0, 0, 1051, 1052, 3, 158, 79, 0, 1052, 1061, 1, 0, 0, 0, 1053, 1054, 3, 152, 76, 0, 1054, 1055, 5, 118, 0, 0, 1055, 1056, 5, 124, 0, 0, 1056, 1057, 3, 108, 54, 0, 1057, 1058, 5, 142, 0, 0, 1058, 1061, 1, 0, 0, 0, 1059, 1061, 3, 152, 76, 0, 1060, 1049, 1, 0, 0, 0, 1060, 1053, 1, 0, 0, 0, 1060, 1059, 1, 0, 0, 0, 1061, 119, 1, 0, 0, 0, 1062, 1067, 3, 122, 61, 0, 1063, 1064, 5, 112, 0, 0, 1064, 1066, 3, 122, 61, 0, 1065, 1063, 1, 0, 0, 0, 1066, 1069, 1, 0, 0, 0, 1067, 1065, 1, 0, 0, 0, 1067, 1068, 1, 0, 0, 0, 1068, 1071, 1, 0, 0, 0, 1069, 1067, 1, 0, 0, 0, 1070, 1072, 5, 112, 0, 0, 1071, 1070, 1, 0, 0, 0, 1071, 1072, 1, 0, 0, 0, 1072, 121, 1, 0, 0, 0, 1073, 1074, 3, 152, 76, 0, 1074, 1075, 5, 6, 0, 0, 1075, 1076, 5, 126, 0, 0, 1076, 1077, 3, 36, 18, 0, 1077, 1078, 5, 144, 0, 0, 1078, 1084, 1, 0, 0, 0, 1079, 1080, 3, 108, 54, 0, 1080, 1081, 5, 6, 0, 0, 1081, 1082, 3, 152, 76, 0, 1082, 1084, 1, 0, 0, 0, 1083, 1073, 1, 0, 0, 0, 1083, 1079, 1, 0, 0, 0, 1084, 123, 1, 0, 0, 0, 1085, 1093, 3, 156, 78, 0, 1086, 1087, 3, 132, 66, 0, 1087, 1088, 5, 116, 0, 0, 1088, 1090, 1, 0, 0, 0, 1089, 1086, 1, 0, 0, 0, 1089, 1090, 1, 0, 0, 0, 1090, 1091, 1, 0, 0, 0, 1091, 1093, 3, 126, 63, 0, 1092, 1085, 1, 0, 0, 0, 1092, 1089, 1, 0, 0, 0, 1093, 125, 1, 0, 0, 0, 1094, 1099, 3, 152, 76, 0, 1095, 1096, 5, 116, 0, 0, 1096, 1098, 3, 152, 76, 0, 1097, 1095, 1, 0, 0, 0, 1098, 1101, 1, 0, 0, 0, 1099, 1097, 1, 0, 0, 0, 1099, 1100, 1, 0, 0, 0, 1100, 127, 1, 0, 0, 0, 1101, 1099, 1, 0, 0, 0, 1102, 1103, 6, 64, -1, 0, 1103, 1112, 3, 132, 66, 0, 1104, 1112, 3, 130, 65, 0, 1105, 1106, 5, 126, 0, 0, 1106, 1107, 3, 36, 18, 0, 1107, 1108, 5, 144, 0, 0, 1108, 1112, 1, 0, 0, 0, 1109, 1112, 3, 116, 58, 0, 1110, 1112, 3, 156, 78, 0, 1111, 1102, 1, 0, 0, 0, 1111, 1104, 1, 0, 0, 0, 1111, 1105, 1, 0, 0, 0, 1111, 1109, 1, 0, 0, 0, 1111, 1110, 1, 0, 0, 0, 1112, 1121, 1, 0, 0, 0, 1113, 1117, 10, 3, 0, 0, 1114, 1118, 3, 150, 75, 0, 1115, 1116, 5, 6, 0, 0, 1116, 1118, 3, 152, 76, 0, 1117, 1114, 1, 0, 0, 0, 1117, 1115, 1, 0, 0, 0, 1118, 1120, 1, 0, 0, 0, 1119, 1113, 1, 0, 0, 0, 1120, 1123, 1, 0, 0, 0, 1121, 1119, 1, 0, 0, 0, 1121, 1122, 1, 0, 0, 0, 1122, 129, 1, 0, 0, 0, 1123, 1121, 1, 0, 0, 0, 1124, 1125, 3, 152, 76, 0, 1125, 1127, 5, 126, 0, 0, 1126, 1128, 3, 134, 67, 0, 1127, 1126, 1, 0, 0, 0, 1127, 1128, 1, 0, 0, 0, 1128, 1129, 1, 0, 0, 0, 1129, 1130, 5, 144, 0, 0, 1130, 131, 1, 0, 0, 0, 1131, 1132, 3, 136, 68, 0, 1132, 1133, 5, 116, 0, 0, 1133, 1135, 1, 0, 0, 0, 1134, 1131, 1, 0, 0, 0, 1134, 1135, 1, 0, 0, 0, 1135, 1136, 1, 0, 0, 0, 1136, 1137, 3, 152, 76, 0, 1137, 133, 1, 0, 0, 0, 1138, 1143, 3, 108, 54, 0, 1139, 1140, 5, 112, 0, 0, 1140, 1142, 3, 108, 54, 0, 1141, 1139, 1, 0, 0, 0, 1142, 1145, 1, 0, 0, 0, 1143, 1141, 1, 0, 0, 0, 1143, 1144, 1, 0, 0, 0, 1144, 1147, 1, 0, 0, 0, 1145, 1143, 1, 0, 0, 0, 1146, 1148, 5, 112, 0, 0, 1147, 1146, 1, 0, 0, 0, 1147, 1148, 1, 0, 0, 0, 1148, 135, 1, 0, 0, 0, 1149, 1150, 3, 152, 76, 0, 1150, 137, 1, 0, 0, 0, 1151, 1160, 5, 102, 0, 0, 1152, 1153, 5, 116, 0, 0, 1153, 1160, 7, 11, 0, 0, 1154, 1155, 5, 104, 0, 0, 1155, 1157, 5, 116, 0, 0, 1156, 1158, 7, 11, 0, 0, 1157, 1156, 1, 0, 0, 0, 1157, 1158, 1, 0, 0, 0, 1158, 1160, 1, 0, 0, 0, 1159, 1151, 1, 0, 0, 0, 1159, 1152, 1, 0, 0, 0, 1159, 1154, 1, 0, 0, 0, 1160, 139, 1, 0, 0, 0, 1161, 1163, 7, 12, 0, 0, 1162, 1161, 1, 0, 0, 0, 1162, 1163, 1, 0, 0, 0, 1163, 1170, 1, 0, 0, 0, 1164, 1171, 3, 138, 69, 0, 1165, 1171, 5, 103, 0, 0, 1166, 1171, 5, 104, 0, 0, 1167, 1171, 5, 105, 0, 0, 1168, 1171, 5, 41, 0, 0, 1169, 1171, 5, 55, 0, 0, 1170, 1164, 1, 0, 0, 0, 1170, 1165, 1, 0, 0, 0, 1170, 1166, 1, 0, 0, 0, 1170, 1167, 1, 0, 0, 0, 1170, 1168, 1, 0, 0, 0, 1170, 1169, 1, 0, 0, 0, 1171, 141, 1, 0, 0, 0, 1172, 1176, 3, 140, 70, 0, 1173, 1176, 5, 106, 0, 0, 1174, 1176, 5, 57, 0, 0, 1175, 1172, 1, 0, 0, 0, 1175, 1173, 1, 0, 0, 0, 1175, 1174, 1, 0, 0, 0, 1176, 143, 1, 0, 0, 0, 1177, 1178, 7, 13, 0, 0, 1178, 145, 1, 0, 0, 0, 1179, 1180, 7, 14, 0, 0, 1180, 147, 1, 0, 0, 0, 1181, 1182, 7, 15, 0, 0, 1182, 149, 1, 0, 0, 0, 1183, 1186, 5, 101, 0, 0, 1184, 1186, 3, 148, 74, 0, 1185, 1183, 1, 0, 0, 0, 1185, 1184, 1, 0, 0, 0, 1186, 151, 1, 0, 0, 0, 1187, 1191, 5, 101, 0, 0, 1188, 1191, 3, 144, 72, 0, 1189, 1191, 3, 146, 73, 0, 1190, 1187, 1, 0, 0, 0, 1190, 1188, 1, 0, 0, 0, 1190, 1189, 1, 0, 0, 0, 1191, 153, 1, 0, 0, 0, 1192, 1193, 3, 158, 79, 0, 1193, 1194, 5, 118, 0, 0, 1194, 1195, 3, 140, 70, 0, 1195, 155, 1, 0, 0, 0, 1196, 1197, 5, 124, 0, 0, 1197, 1198, 3, 152, 76, 0, 1198, 1199, 5, 142, 0, 0, 1199, 157, 1, 0, 0, 0, 1200, 1203, 5, 106, 0, 0, 1201, 1203, 3, 160, 80, 0, 1202, 1200, 1, 0, 0, 0, 1202, 1201, 1, 0, 0, 0, 1203, 159, 1, 0, 0, 0, 1204, 1208, 5, 137, 0, 0, 1205, 1207, 3, 162, 81, 0, 1206, 1205, 1, 0, 0, 0, 1207, 1210, 1, 0, 0, 0, 1208, 1206, 1, 0, 0, 0, 1208, 1209, 1, 0, 0, 0, 1209, 1211, 1, 0, 0, 0, 1210, 1208, 1, 0, 0, 0, 1211, 1212, 5, 139, 0, 0, 1212, 161, 1, 0, 0, 0, 1213, 1214, 5, 152, 0, 0, 1214, 1215, 3, 108, 54, 0, 1215, 1216, 5, 142, 0, 0, 1216, 1219, 1, 0, 0, 0, 1217, 1219, 5, 151, 0, 0, 1218, 1213, 1, 0, 0, 0, 1218, 1217, 1, 0, 0, 0, 1219, 163, 1, 0, 0, 0, 1220, 1224, 5, 138, 0, 0, 1221, 1223, 3, 166, 83, 0, 1222, 1221, 1, 0, 0, 0, 1223, 1226, 1, 0, 0, 0, 1224, 1222, 1, 0, 0, 0, 1224, 1225, 1, 0, 0, 0, 1225, 1227, 1, 0, 0, 0, 1226, 1224, 1, 0, 0, 0, 1227, 1228, 5, 0, 0, 1, 1228, 165, 1, 0, 0, 0, 1229, 1230, 5, 154, 0, 0, 1230, 1231, 3, 108, 54, 0, 1231, 1232, 5, 142, 0, 0, 1232, 1235, 1, 0, 0, 0, 1233, 1235, 5, 153, 0, 0, 1234, 1229, 1, 0, 0, 0, 1234, 1233, 1, 0, 0, 0, 1235, 167, 1, 0, 0, 0, 160, 171, 178, 187, 194, 198, 209, 213, 216, 225, 233, 240, 244, 250, 255, 261, 273, 281, 295, 299, 304, 314, 323, 326, 330, 333, 337, 340, 343, 346, 349, 353, 357, 360, 363, 366, 370, 373, 382, 388, 409, 426, 443, 449, 455, 466, 468, 479, 482, 488, 496, 502, 504, 508, 513, 516, 519, 523, 527, 530, 532, 535, 539, 543, 546, 548, 550, 555, 566, 572, 579, 584, 588, 592, 598, 600, 607, 615, 618, 621, 640, 654, 670, 674, 685, 689, 700, 704, 711, 715, 722, 726, 731, 740, 744, 768, 785, 791, 794, 797, 807, 813, 816, 819, 827, 830, 834, 837, 851, 868, 873, 877, 883, 890, 902, 906, 909, 918, 932, 959, 967, 969, 971, 979, 983, 987, 995, 999, 1008, 1012, 1014, 1024, 1035, 1040, 1047, 1060, 1067, 1071, 1083, 1089, 1092, 1099, 1111, 1117, 1121, 1127, 1134, 1143, 1147, 1157, 1159, 1162, 1170, 1175, 1185, 1190, 1202, 1208, 1218, 1224, 1234]
\ No newline at end of file
diff --git a/posthog/hogql/grammar/HogQLParser.py b/posthog/hogql/grammar/HogQLParser.py
index 2c66aafba7fed..f625e77440088 100644
--- a/posthog/hogql/grammar/HogQLParser.py
+++ b/posthog/hogql/grammar/HogQLParser.py
@@ -158,7 +158,7 @@ def serializedATN():
1,0,0,0,195,198,1,0,0,0,196,194,1,0,0,0,197,199,5,112,0,0,198,197,
1,0,0,0,198,199,1,0,0,0,199,9,1,0,0,0,200,210,3,12,6,0,201,210,3,
14,7,0,202,210,3,16,8,0,203,210,3,18,9,0,204,210,3,20,10,0,205,210,
- 3,22,11,0,206,210,3,24,12,0,207,210,3,26,13,0,208,210,3,28,14,0,
+ 3,22,11,0,206,210,3,28,14,0,207,210,3,24,12,0,208,210,3,26,13,0,
209,200,1,0,0,0,209,201,1,0,0,0,209,202,1,0,0,0,209,203,1,0,0,0,
209,204,1,0,0,0,209,205,1,0,0,0,209,206,1,0,0,0,209,207,1,0,0,0,
209,208,1,0,0,0,210,11,1,0,0,0,211,213,5,70,0,0,212,214,3,4,2,0,
@@ -1179,6 +1179,10 @@ def varAssignment(self):
return self.getTypedRuleContext(HogQLParser.VarAssignmentContext,0)
+ def block(self):
+ return self.getTypedRuleContext(HogQLParser.BlockContext,0)
+
+
def exprStmt(self):
return self.getTypedRuleContext(HogQLParser.ExprStmtContext,0)
@@ -1187,10 +1191,6 @@ def emptyStmt(self):
return self.getTypedRuleContext(HogQLParser.EmptyStmtContext,0)
- def block(self):
- return self.getTypedRuleContext(HogQLParser.BlockContext,0)
-
-
def getRuleIndex(self):
return HogQLParser.RULE_statement
@@ -1250,19 +1250,19 @@ def statement(self):
elif la_ == 7:
self.enterOuterAlt(localctx, 7)
self.state = 206
- self.exprStmt()
+ self.block()
pass
elif la_ == 8:
self.enterOuterAlt(localctx, 8)
self.state = 207
- self.emptyStmt()
+ self.exprStmt()
pass
elif la_ == 9:
self.enterOuterAlt(localctx, 9)
self.state = 208
- self.block()
+ self.emptyStmt()
pass
diff --git a/posthog/hogql/parser.py b/posthog/hogql/parser.py
index cce0e70a9d22b..702088eaddd2a 100644
--- a/posthog/hogql/parser.py
+++ b/posthog/hogql/parser.py
@@ -19,22 +19,25 @@
parse_order_expr as _parse_order_expr_cpp,
parse_select as _parse_select_cpp,
parse_full_template_string as _parse_full_template_string_cpp,
+ parse_program as _parse_program_cpp,
)
RULE_TO_PARSE_FUNCTION: dict[
- Literal["python", "cpp"], dict[Literal["expr", "order_expr", "select", "full_template_string"], Callable]
+ Literal["python", "cpp"], dict[Literal["expr", "order_expr", "select", "full_template_string", "program"], Callable]
] = {
"python": {
"expr": lambda string, start: HogQLParseTreeConverter(start=start).visit(get_parser(string).expr()),
"order_expr": lambda string: HogQLParseTreeConverter().visit(get_parser(string).orderExpr()),
"select": lambda string: HogQLParseTreeConverter().visit(get_parser(string).select()),
"full_template_string": lambda string: HogQLParseTreeConverter().visit(get_parser(string).fullTemplateString()),
+ "program": lambda string: HogQLParseTreeConverter().visit(get_parser(string).program()),
},
"cpp": {
"expr": lambda string, start: _parse_expr_cpp(string, is_internal=start is None),
"order_expr": lambda string: _parse_order_expr_cpp(string),
"select": lambda string: _parse_select_cpp(string),
"full_template_string": lambda string: _parse_full_template_string_cpp(string),
+ "program": lambda string: _parse_program_cpp(string),
},
}
@@ -48,16 +51,6 @@
}
-def parse_program(
- program: str, placeholders: Optional[dict[str, ast.Expr]] = None, start: Optional[int] = 0
-) -> ast.Program:
- parse_tree = get_parser(program).program()
- node = HogQLParseTreeConverter(start=start).visit(parse_tree)
- if placeholders:
- return cast(ast.Program, replace_placeholders(node, placeholders))
- return node
-
-
def parse_string_template(
string: str,
placeholders: Optional[dict[str, ast.Expr]] = None,
@@ -132,6 +125,20 @@ def parse_select(
return node
+def parse_program(
+ source: str,
+ timings: Optional[HogQLTimings] = None,
+ *,
+ backend: Literal["python", "cpp"] = "cpp",
+) -> ast.Program:
+ if timings is None:
+ timings = HogQLTimings()
+ with timings.measure(f"parse_expr_{backend}"):
+ with RULE_TO_HISTOGRAM["expr"].labels(backend=backend).time():
+ node = RULE_TO_PARSE_FUNCTION[backend]["program"](source)
+ return node
+
+
def get_parser(query: str) -> HogQLParser:
input_stream = InputStream(data=query)
lexer = HogQLLexer(input_stream)
@@ -271,6 +278,8 @@ def visitBlock(self, ctx: HogQLParser.BlockContext):
declarations.append(cast(ast.Declaration, statement))
return ast.Block(declarations=declarations)
+ ##### HogQL rules
+
def visitSelect(self, ctx: HogQLParser.SelectContext):
return self.visit(ctx.selectUnionStmt() or ctx.selectStmt() or ctx.hogqlxTagElement())
diff --git a/posthog/hogql/test/_test_parser.py b/posthog/hogql/test/_test_parser.py
index b38b0096cb864..025ef5a7024b6 100644
--- a/posthog/hogql/test/_test_parser.py
+++ b/posthog/hogql/test/_test_parser.py
@@ -1,7 +1,29 @@
from typing import Literal, cast, Optional
import math
-
+from posthog.hogql.ast import (
+ VariableAssignment,
+ Constant,
+ ArithmeticOperation,
+ Field,
+ ExprStatement,
+ Call,
+ ArithmeticOperationOp,
+ CompareOperationOp,
+ CompareOperation,
+ JoinExpr,
+ SelectQuery,
+ Program,
+ IfStatement,
+ Block,
+ WhileStatement,
+ Function,
+ Array,
+ Dict,
+ VariableDeclaration,
+)
+
+from posthog.hogql.parser import parse_program
from posthog.hogql import ast
from posthog.hogql.errors import ExposedHogQLError, SyntaxError
from posthog.hogql.parser import parse_expr, parse_order_expr, parse_select, parse_string_template
@@ -34,6 +56,9 @@ def _select(
clear_locations(parse_select(query, placeholders=placeholders, backend=backend)),
)
+ def _program(self, program: str) -> ast.Program:
+ return cast(ast.Program, clear_locations(cast(ast.Expr, parse_program(program, backend=backend))))
+
def test_numbers(self):
self.assertEqual(self._expr("1"), ast.Constant(value=1))
self.assertEqual(self._expr("1.2"), ast.Constant(value=1.2))
@@ -1796,4 +1821,390 @@ def test_template_strings_full_multiline(self):
],
)
+ def test_program_variable_declarations(self):
+ code = "let a := '123'; let b := a - 2; print(b);"
+ program = self._program(code)
+
+ expected = Program(
+ declarations=[
+ VariableDeclaration(name="a", expr=Constant(type=None, value="123")),
+ VariableDeclaration(
+ name="b",
+ expr=ArithmeticOperation(
+ type=None,
+ left=Field(type=None, chain=["a"]),
+ right=Constant(type=None, value=2),
+ op=ArithmeticOperationOp.Sub,
+ ),
+ ),
+ ExprStatement(
+ expr=Call(
+ type=None,
+ name="print",
+ args=[Field(type=None, chain=["b"])],
+ params=None,
+ distinct=False,
+ ),
+ ),
+ ]
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_variable_reassignment(self):
+ code = "let a := 3; a := 4;"
+ program = self._program(code)
+ expected = Program(
+ start=None,
+ end=None,
+ declarations=[
+ VariableDeclaration(
+ start=None,
+ end=None,
+ name="a",
+ expr=Constant(start=None, end=None, type=None, value=3),
+ ),
+ VariableAssignment(
+ start=None,
+ end=None,
+ left=Field(chain=["a"]),
+ right=Constant(start=None, end=None, type=None, value=4),
+ ),
+ ],
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_variable_declarations_with_sql_expr(self):
+ code = """
+ let query := (select id, properties.email from events where timestamp > now() - interval 1 day);
+ let results := run(query);
+ """
+ program = self._program(code)
+ expected = Program(
+ declarations=[
+ VariableDeclaration(
+ name="query",
+ expr=SelectQuery(
+ type=None,
+ ctes=None,
+ select=[
+ Field(type=None, chain=["id"]),
+ Field(type=None, chain=["properties", "email"]),
+ ],
+ distinct=None,
+ select_from=JoinExpr(
+ type=None,
+ join_type=None,
+ table=Field(type=None, chain=["events"]),
+ table_args=None,
+ alias=None,
+ table_final=None,
+ constraint=None,
+ next_join=None,
+ sample=None,
+ ),
+ array_join_op=None,
+ array_join_list=None,
+ window_exprs=None,
+ where=CompareOperation(
+ type=None,
+ left=Field(type=None, chain=["timestamp"]),
+ right=ArithmeticOperation(
+ type=None,
+ left=Call(type=None, name="now", args=[], params=None, distinct=False),
+ right=Call(
+ type=None,
+ name="toIntervalDay",
+ args=[Constant(type=None, value=1)],
+ params=None,
+ distinct=False,
+ ),
+ op=ArithmeticOperationOp.Sub,
+ ),
+ op=CompareOperationOp.Gt,
+ ),
+ prewhere=None,
+ having=None,
+ group_by=None,
+ order_by=None,
+ limit=None,
+ limit_by=None,
+ limit_with_ties=None,
+ offset=None,
+ settings=None,
+ view_name=None,
+ ),
+ ),
+ VariableDeclaration(
+ name="results",
+ expr=Call(
+ name="run",
+ args=[Field(type=None, chain=["query"])],
+ params=None,
+ distinct=False,
+ ),
+ ),
+ ]
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_if(self):
+ code = """
+ if (a) {
+ let c := 3;
+ }
+ else
+ print(d);
+ """
+
+ program = self._program(code)
+ expected = Program(
+ declarations=[
+ IfStatement(
+ expr=Field(type=None, chain=["a"]),
+ then=Block(
+ declarations=[
+ VariableDeclaration(
+ name="c",
+ expr=Constant(type=None, value=3),
+ )
+ ],
+ ),
+ else_=ExprStatement(
+ expr=Call(
+ type=None,
+ name="print",
+ args=[Field(type=None, chain=["d"])],
+ params=None,
+ distinct=False,
+ ),
+ ),
+ )
+ ],
+ )
+
+ self.assertEqual(program, expected)
+
+ def test_program_while(self):
+ code = """
+ while (a < 5) {
+ let c := 3;
+ }
+ """
+
+ program = self._program(code)
+ expected = Program(
+ declarations=[
+ WhileStatement(
+ expr=CompareOperation(
+ type=None,
+ left=Field(type=None, chain=["a"]),
+ right=Constant(type=None, value=5),
+ op=CompareOperationOp.Lt,
+ ),
+ body=Block(
+ declarations=[VariableDeclaration(name="c", expr=Constant(type=None, value=3))],
+ ),
+ )
+ ],
+ )
+
+ self.assertEqual(program, expected)
+
+ def test_program_function(self):
+ code = """
+ fn query(a, b) {
+ let c := 3;
+ }
+ """
+
+ program = self._program(code)
+ expected = Program(
+ declarations=[
+ Function(
+ name="query",
+ params=["a", "b"],
+ body=Block(
+ declarations=[VariableDeclaration(name="c", expr=Constant(type=None, value=3))],
+ ),
+ )
+ ],
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_functions(self):
+ code = """
+ fn query(a, b) {
+ let c := 3;
+ }
+
+ fn read(a, b) {
+ print(3);
+ let b := 4;
+ }
+ """
+
+ program = self._program(code)
+
+ expected = Program(
+ start=None,
+ end=None,
+ declarations=[
+ Function(
+ start=None,
+ end=None,
+ name="query",
+ params=["a", "b"],
+ body=Block(
+ start=None,
+ end=None,
+ declarations=[
+ VariableDeclaration(
+ start=None,
+ end=None,
+ name="c",
+ expr=Constant(start=None, end=None, type=None, value=3),
+ )
+ ],
+ ),
+ ),
+ Function(
+ start=None,
+ end=None,
+ name="read",
+ params=["a", "b"],
+ body=Block(
+ start=None,
+ end=None,
+ declarations=[
+ ExprStatement(
+ start=None,
+ end=None,
+ expr=Call(
+ start=None,
+ end=None,
+ type=None,
+ name="print",
+ args=[Constant(start=None, end=None, type=None, value=3)],
+ params=None,
+ distinct=False,
+ ),
+ ),
+ VariableDeclaration(
+ start=None,
+ end=None,
+ name="b",
+ expr=Constant(start=None, end=None, type=None, value=4),
+ ),
+ ],
+ ),
+ ),
+ ],
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_array(self):
+ code = "let a := [1, 2, 3];"
+ program = self._program(code)
+
+ expected = Program(
+ start=None,
+ end=None,
+ declarations=[
+ VariableDeclaration(
+ start=None,
+ end=None,
+ name="a",
+ expr=Array(
+ start=None,
+ end=None,
+ type=None,
+ exprs=[
+ Constant(start=None, end=None, type=None, value=1),
+ Constant(start=None, end=None, type=None, value=2),
+ Constant(start=None, end=None, type=None, value=3),
+ ],
+ ),
+ )
+ ],
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_dict(self):
+ code = "let a := {};"
+ program = self._program(code)
+
+ expected = Program(
+ start=None,
+ end=None,
+ declarations=[
+ VariableDeclaration(
+ start=None,
+ end=None,
+ name="a",
+ expr=Dict(start=None, end=None, type=None, items=[]),
+ )
+ ],
+ )
+
+ self.assertEqual(program, expected)
+
+ code = "let a := {1: 2, 'a': [3, 4], g: true};"
+ program = self._program(code)
+
+ expected = Program(
+ start=None,
+ end=None,
+ declarations=[
+ VariableDeclaration(
+ start=None,
+ end=None,
+ name="a",
+ expr=Dict(
+ start=None,
+ end=None,
+ type=None,
+ items=[
+ (
+ Constant(start=None, end=None, type=None, value=1),
+ Constant(start=None, end=None, type=None, value=2),
+ ),
+ (
+ Constant(start=None, end=None, type=None, value="a"),
+ Array(
+ start=None,
+ end=None,
+ type=None,
+ exprs=[
+ Constant(start=None, end=None, type=None, value=3),
+ Constant(start=None, end=None, type=None, value=4),
+ ],
+ ),
+ ),
+ (
+ Field(start=None, end=None, type=None, chain=["g"]),
+ Constant(start=None, end=None, type=None, value=True),
+ ),
+ ],
+ ),
+ )
+ ],
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_simple_return(self):
+ code = "return"
+ program = self._program(code)
+ expected = Program(
+ declarations=[ast.ReturnStatement(expr=None)],
+ )
+ self.assertEqual(program, expected)
+
+ def test_program_simple_return_twice(self):
+ code = "return;return"
+ program = self._program(code)
+ expected = Program(
+ declarations=[ast.ReturnStatement(expr=None), ast.ReturnStatement(expr=None)],
+ )
+ self.assertEqual(program, expected)
+
return TestParser
diff --git a/posthog/hogql/test/test_parser_python.py b/posthog/hogql/test/test_parser_python.py
index 72f00cff6bc62..ca713640add0b 100644
--- a/posthog/hogql/test/test_parser_python.py
+++ b/posthog/hogql/test/test_parser_python.py
@@ -1,400 +1,5 @@
from ._test_parser import parser_test_factory
-from posthog.hogql.ast import (
- VariableAssignment,
- Constant,
- ArithmeticOperation,
- Field,
- ExprStatement,
- Call,
- ArithmeticOperationOp,
- CompareOperationOp,
- CompareOperation,
- JoinExpr,
- SelectQuery,
- Program,
- IfStatement,
- Block,
- WhileStatement,
- Function,
- Array,
- Dict,
- VariableDeclaration,
-)
-
-from posthog.hogql.parser import parse_program
-from posthog.hogql import ast
class TestParserPython(parser_test_factory("python")):
- def _program(self, program: str, placeholders: dict[str, ast.Expr] | None = None) -> ast.Program:
- return parse_program(program, placeholders=placeholders, start=None)
-
- def test_program_variable_declarations(self):
- code = "let a := '123'; let b := a - 2; print(b);"
- program = self._program(code)
-
- expected = Program(
- declarations=[
- VariableDeclaration(name="a", expr=Constant(type=None, value="123")),
- VariableDeclaration(
- name="b",
- expr=ArithmeticOperation(
- type=None,
- left=Field(type=None, chain=["a"]),
- right=Constant(type=None, value=2),
- op=ArithmeticOperationOp.Sub,
- ),
- ),
- ExprStatement(
- expr=Call(
- type=None,
- name="print",
- args=[Field(type=None, chain=["b"])],
- params=None,
- distinct=False,
- ),
- ),
- ]
- )
- self.assertEqual(program, expected)
-
- def test_program_variable_reassignment(self):
- code = "let a := 3; a := 4;"
- program = self._program(code)
- expected = Program(
- start=None,
- end=None,
- declarations=[
- VariableDeclaration(
- start=None,
- end=None,
- name="a",
- expr=Constant(start=None, end=None, type=None, value=3),
- ),
- VariableAssignment(
- start=None,
- end=None,
- left=Field(chain=["a"]),
- right=Constant(start=None, end=None, type=None, value=4),
- ),
- ],
- )
- self.assertEqual(program, expected)
-
- def test_program_variable_declarations_with_sql_expr(self):
- code = """
- let query := (select id, properties.email from events where timestamp > now() - interval 1 day);
- let results := run(query);
- """
- program = self._program(code)
- expected = Program(
- declarations=[
- VariableDeclaration(
- name="query",
- expr=SelectQuery(
- type=None,
- ctes=None,
- select=[
- Field(type=None, chain=["id"]),
- Field(type=None, chain=["properties", "email"]),
- ],
- distinct=None,
- select_from=JoinExpr(
- type=None,
- join_type=None,
- table=Field(type=None, chain=["events"]),
- table_args=None,
- alias=None,
- table_final=None,
- constraint=None,
- next_join=None,
- sample=None,
- ),
- array_join_op=None,
- array_join_list=None,
- window_exprs=None,
- where=CompareOperation(
- type=None,
- left=Field(type=None, chain=["timestamp"]),
- right=ArithmeticOperation(
- type=None,
- left=Call(type=None, name="now", args=[], params=None, distinct=False),
- right=Call(
- type=None,
- name="toIntervalDay",
- args=[Constant(type=None, value=1)],
- params=None,
- distinct=False,
- ),
- op=ArithmeticOperationOp.Sub,
- ),
- op=CompareOperationOp.Gt,
- ),
- prewhere=None,
- having=None,
- group_by=None,
- order_by=None,
- limit=None,
- limit_by=None,
- limit_with_ties=None,
- offset=None,
- settings=None,
- view_name=None,
- ),
- ),
- VariableDeclaration(
- name="results",
- expr=Call(
- name="run",
- args=[Field(type=None, chain=["query"])],
- params=None,
- distinct=False,
- ),
- ),
- ]
- )
- self.assertEqual(program, expected)
-
- def test_program_if(self):
- code = """
- if (a) {
- let c := 3;
- }
- else
- print(d);
- """
-
- program = self._program(code)
- expected = Program(
- declarations=[
- IfStatement(
- expr=Field(type=None, chain=["a"]),
- then=Block(
- declarations=[
- VariableDeclaration(
- name="c",
- expr=Constant(type=None, value=3),
- )
- ],
- ),
- else_=ExprStatement(
- expr=Call(
- type=None,
- name="print",
- args=[Field(type=None, chain=["d"])],
- params=None,
- distinct=False,
- ),
- ),
- )
- ],
- )
-
- self.assertEqual(program, expected)
-
- def test_program_while(self):
- code = """
- while (a < 5) {
- let c := 3;
- }
- """
-
- program = self._program(code)
- expected = Program(
- declarations=[
- WhileStatement(
- expr=CompareOperation(
- type=None,
- left=Field(type=None, chain=["a"]),
- right=Constant(type=None, value=5),
- op=CompareOperationOp.Lt,
- ),
- body=Block(
- declarations=[VariableDeclaration(name="c", expr=Constant(type=None, value=3))],
- ),
- )
- ],
- )
-
- self.assertEqual(program, expected)
-
- def test_program_function(self):
- code = """
- fn query(a, b) {
- let c := 3;
- }
- """
-
- program = self._program(code)
- expected = Program(
- declarations=[
- Function(
- name="query",
- params=["a", "b"],
- body=Block(
- declarations=[VariableDeclaration(name="c", expr=Constant(type=None, value=3))],
- ),
- )
- ],
- )
- self.assertEqual(program, expected)
-
- def test_program_functions(self):
- code = """
- fn query(a, b) {
- let c := 3;
- }
-
- fn read(a, b) {
- print(3);
- let b := 4;
- }
- """
-
- program = self._program(code)
-
- expected = Program(
- start=None,
- end=None,
- declarations=[
- Function(
- start=None,
- end=None,
- name="query",
- params=["a", "b"],
- body=Block(
- start=None,
- end=None,
- declarations=[
- VariableDeclaration(
- start=None,
- end=None,
- name="c",
- expr=Constant(start=None, end=None, type=None, value=3),
- )
- ],
- ),
- ),
- Function(
- start=None,
- end=None,
- name="read",
- params=["a", "b"],
- body=Block(
- start=None,
- end=None,
- declarations=[
- ExprStatement(
- start=None,
- end=None,
- expr=Call(
- start=None,
- end=None,
- type=None,
- name="print",
- args=[Constant(start=None, end=None, type=None, value=3)],
- params=None,
- distinct=False,
- ),
- ),
- VariableDeclaration(
- start=None,
- end=None,
- name="b",
- expr=Constant(start=None, end=None, type=None, value=4),
- ),
- ],
- ),
- ),
- ],
- )
- self.assertEqual(program, expected)
-
- def test_program_array(self):
- code = "let a := [1, 2, 3];"
- program = self._program(code)
-
- expected = Program(
- start=None,
- end=None,
- declarations=[
- VariableDeclaration(
- start=None,
- end=None,
- name="a",
- expr=Array(
- start=None,
- end=None,
- type=None,
- exprs=[
- Constant(start=None, end=None, type=None, value=1),
- Constant(start=None, end=None, type=None, value=2),
- Constant(start=None, end=None, type=None, value=3),
- ],
- ),
- )
- ],
- )
- self.assertEqual(program, expected)
-
- def test_program_dict(self):
- code = "let a := {};"
- program = self._program(code)
-
- expected = Program(
- start=None,
- end=None,
- declarations=[
- VariableDeclaration(
- start=None,
- end=None,
- name="a",
- expr=Dict(start=None, end=None, type=None, items=[]),
- )
- ],
- )
-
- self.assertEqual(program, expected)
-
- code = "let a := {1: 2, 'a': [3, 4], g: true};"
- program = self._program(code)
-
- expected = Program(
- start=None,
- end=None,
- declarations=[
- VariableDeclaration(
- start=None,
- end=None,
- name="a",
- expr=Dict(
- start=None,
- end=None,
- type=None,
- items=[
- (
- Constant(start=None, end=None, type=None, value=1),
- Constant(start=None, end=None, type=None, value=2),
- ),
- (
- Constant(start=None, end=None, type=None, value="a"),
- Array(
- start=None,
- end=None,
- type=None,
- exprs=[
- Constant(start=None, end=None, type=None, value=3),
- Constant(start=None, end=None, type=None, value=4),
- ],
- ),
- ),
- (
- Field(start=None, end=None, type=None, chain=["g"]),
- Constant(start=None, end=None, type=None, value=True),
- ),
- ],
- ),
- )
- ],
- )
- self.assertEqual(program, expected)
+ pass
diff --git a/posthog/hogql/visitor.py b/posthog/hogql/visitor.py
index d03e691b640ec..947e07921f50b 100644
--- a/posthog/hogql/visitor.py
+++ b/posthog/hogql/visitor.py
@@ -1,3 +1,4 @@
+from copy import deepcopy
from typing import Optional, TypeVar, Generic, Any
from posthog.hogql import ast
@@ -80,6 +81,11 @@ def visit_array(self, node: ast.Array):
for expr in node.exprs:
self.visit(expr)
+ def visit_dict(self, node: ast.Dict):
+ for key, value in node.items:
+ self.visit(key)
+ self.visit(value)
+
def visit_constant(self, node: ast.Constant):
self.visit(node.type)
@@ -286,6 +292,13 @@ def visit_while_statement(self, node: ast.WhileStatement):
self.visit(node.expr)
self.visit(node.body)
+ def visit_for_statement(self, node: ast.ForStatement):
+ if node.initializer:
+ self.visit(node.initializer)
+ self.visit(node.condition)
+ self.visit(node.increment)
+ self.visit(node.body)
+
def visit_expr_statement(self, node: ast.ExprStatement):
self.visit(node.expr)
@@ -293,6 +306,9 @@ def visit_return_statement(self, node: ast.ReturnStatement):
if node.expr:
self.visit(node.expr)
+ def visit_function(self, node: ast.Function):
+ self.visit(node.body)
+
def visit_declaration(self, node: ast.Declaration):
raise NotImplementedError("Abstract 'visit_declaration' not implemented")
@@ -432,6 +448,14 @@ def visit_array(self, node: ast.Array):
exprs=[self.visit(expr) for expr in node.exprs],
)
+ def visit_dict(self, node: ast.Dict):
+ return ast.Dict(
+ start=None if self.clear_locations else node.start,
+ end=None if self.clear_locations else node.end,
+ type=None if self.clear_types else node.type,
+ items=[(self.visit(key), self.visit(value)) for key, value in node.items],
+ )
+
def visit_constant(self, node: ast.Constant):
return ast.Constant(
start=None if self.clear_locations else node.start,
@@ -613,6 +637,16 @@ def visit_while_statement(self, node: ast.WhileStatement):
body=self.visit(node.body),
)
+ def visit_for_statement(self, node: ast.ForStatement):
+ return ast.ForStatement(
+ start=None if self.clear_locations else node.start,
+ end=None if self.clear_locations else node.end,
+ initializer=self.visit(node.initializer) if node.initializer else None,
+ condition=self.visit(node.condition),
+ increment=self.visit(node.increment),
+ body=self.visit(node.body),
+ )
+
def visit_expr_statement(self, node: ast.ExprStatement):
return ast.ExprStatement(
start=None if self.clear_locations else node.start,
@@ -627,6 +661,15 @@ def visit_return_statement(self, node: ast.ReturnStatement):
expr=self.visit(node.expr) if node.expr else None,
)
+ def visit_function(self, node: ast.Function):
+ return ast.Function(
+ start=None if self.clear_locations else node.start,
+ end=None if self.clear_locations else node.end,
+ name=node.name,
+ params=deepcopy(node.params),
+ body=self.visit(node.body),
+ )
+
def visit_declaration(self, node: ast.Declaration):
raise NotImplementedError("Abstract 'visit_declaration' not implemented")
diff --git a/posthog/hogql_queries/legacy_compatibility/filter_to_query.py b/posthog/hogql_queries/legacy_compatibility/filter_to_query.py
index 996e10173814e..b06b4bb415a5b 100644
--- a/posthog/hogql_queries/legacy_compatibility/filter_to_query.py
+++ b/posthog/hogql_queries/legacy_compatibility/filter_to_query.py
@@ -1,5 +1,5 @@
import copy
-from enum import Enum
+from enum import StrEnum
import json
from typing import Any, Literal
from posthog.hogql_queries.legacy_compatibility.clean_properties import clean_entity_properties, clean_global_properties
@@ -34,7 +34,7 @@
from posthog.utils import str_to_bool
-class MathAvailability(str, Enum):
+class MathAvailability(StrEnum):
Unavailable = ("Unavailable",)
All = ("All",)
ActorsOnly = "ActorsOnly"
diff --git a/posthog/kafka_client/client.py b/posthog/kafka_client/client.py
index 3f58e572417b8..f0008c4ba72e8 100644
--- a/posthog/kafka_client/client.py
+++ b/posthog/kafka_client/client.py
@@ -1,5 +1,5 @@
import json
-from enum import Enum
+from enum import StrEnum
from typing import Any, Optional
from collections.abc import Callable
@@ -83,7 +83,7 @@ def subscribe(self, _):
return
-class _KafkaSecurityProtocol(str, Enum):
+class _KafkaSecurityProtocol(StrEnum):
PLAINTEXT = "PLAINTEXT"
SSL = "SSL"
SASL_PLAINTEXT = "SASL_PLAINTEXT"
diff --git a/posthog/management/commands/create_channel_definitions_file.py b/posthog/management/commands/create_channel_definitions_file.py
index cab70bf31d360..bea98c02b5243 100644
--- a/posthog/management/commands/create_channel_definitions_file.py
+++ b/posthog/management/commands/create_channel_definitions_file.py
@@ -3,7 +3,7 @@
import subprocess
from collections import OrderedDict
from dataclasses import dataclass
-from enum import Enum
+from enum import StrEnum
from typing import Optional
from django.core.management.base import BaseCommand
@@ -12,7 +12,7 @@
OUTPUT_FILE = "posthog/models/channel_type/channel_definitions.json"
-class EntryKind(str, Enum):
+class EntryKind(StrEnum):
source = "source"
medium = "medium"
diff --git a/posthog/models/feature_flag/flag_matching.py b/posthog/models/feature_flag/flag_matching.py
index 70e0190a5704a..ea181081f0c31 100644
--- a/posthog/models/feature_flag/flag_matching.py
+++ b/posthog/models/feature_flag/flag_matching.py
@@ -1,6 +1,6 @@
import hashlib
from dataclasses import dataclass
-from enum import Enum
+from enum import StrEnum
import time
import structlog
from typing import Literal, Optional, Union, cast
@@ -67,7 +67,7 @@
PERSON_KEY = "person"
-class FeatureFlagMatchReason(str, Enum):
+class FeatureFlagMatchReason(StrEnum):
SUPER_CONDITION_VALUE = "super_condition_value"
CONDITION_MATCH = "condition_match"
NO_CONDITION_MATCH = "no_condition_match"
diff --git a/posthog/models/plugin.py b/posthog/models/plugin.py
index 46ddfb9177f4c..87ab0497c8118 100644
--- a/posthog/models/plugin.py
+++ b/posthog/models/plugin.py
@@ -1,7 +1,7 @@
import datetime
import os
from dataclasses import dataclass
-from enum import Enum
+from enum import StrEnum
from typing import Any, Optional, cast
from uuid import UUID
@@ -288,13 +288,13 @@ class Meta:
value: models.TextField = models.TextField(blank=True, null=True)
-class PluginLogEntrySource(str, Enum):
+class PluginLogEntrySource(StrEnum):
SYSTEM = "SYSTEM"
PLUGIN = "PLUGIN"
CONSOLE = "CONSOLE"
-class PluginLogEntryType(str, Enum):
+class PluginLogEntryType(StrEnum):
DEBUG = "DEBUG"
LOG = "LOG"
INFO = "INFO"
diff --git a/posthog/models/property/property.py b/posthog/models/property/property.py
index 7185306b8ccb2..bb378b7616d43 100644
--- a/posthog/models/property/property.py
+++ b/posthog/models/property/property.py
@@ -1,5 +1,5 @@
import json
-from enum import Enum
+from enum import StrEnum
from typing import (
Any,
Literal,
@@ -14,7 +14,7 @@
from posthog.utils import str_to_bool
-class BehavioralPropertyType(str, Enum):
+class BehavioralPropertyType(StrEnum):
PERFORMED_EVENT = "performed_event"
PERFORMED_EVENT_MULTIPLE = "performed_event_multiple"
PERFORMED_EVENT_FIRST_TIME = "performed_event_first_time"
diff --git a/posthog/schema.py b/posthog/schema.py
index 28df175d30a3b..eecd761ec0ce0 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from enum import Enum
+from enum import Enum, StrEnum
from typing import Any, Literal, Optional, Union
from pydantic import AwareDatetime, BaseModel, ConfigDict, Field, RootModel
@@ -20,7 +20,7 @@ class MathGroupTypeIndex(float, Enum):
NUMBER_4 = 4
-class AggregationAxisFormat(str, Enum):
+class AggregationAxisFormat(StrEnum):
NUMERIC = "numeric"
DURATION = "duration"
DURATION_MS = "duration_ms"
@@ -28,7 +28,7 @@ class AggregationAxisFormat(str, Enum):
PERCENTAGE_SCALED = "percentage_scaled"
-class Kind(str, Enum):
+class Kind(StrEnum):
METHOD = "Method"
FUNCTION = "Function"
CONSTRUCTOR = "Constructor"
@@ -87,7 +87,7 @@ class AutocompleteCompletionItem(BaseModel):
)
-class BaseMathType(str, Enum):
+class BaseMathType(StrEnum):
TOTAL = "total"
DAU = "dau"
WEEKLY_ACTIVE = "weekly_active"
@@ -95,14 +95,14 @@ class BaseMathType(str, Enum):
UNIQUE_SESSION = "unique_session"
-class BreakdownAttributionType(str, Enum):
+class BreakdownAttributionType(StrEnum):
FIRST_TOUCH = "first_touch"
LAST_TOUCH = "last_touch"
ALL_EVENTS = "all_events"
STEP = "step"
-class BreakdownType(str, Enum):
+class BreakdownType(StrEnum):
COHORT = "cohort"
PERSON = "person"
EVENT = "event"
@@ -164,7 +164,7 @@ class ChartAxis(BaseModel):
column: str
-class ChartDisplayType(str, Enum):
+class ChartDisplayType(StrEnum):
ACTIONS_LINE_GRAPH = "ActionsLineGraph"
ACTIONS_BAR = "ActionsBar"
ACTIONS_AREA_GRAPH = "ActionsAreaGraph"
@@ -205,7 +205,7 @@ class CompareFilter(BaseModel):
compare_to: Optional[str] = None
-class CountPerActorMathType(str, Enum):
+class CountPerActorMathType(StrEnum):
AVG_COUNT_PER_ACTOR = "avg_count_per_actor"
MIN_COUNT_PER_ACTOR = "min_count_per_actor"
MAX_COUNT_PER_ACTOR = "max_count_per_actor"
@@ -255,14 +255,14 @@ class DatabaseSchemaSource(BaseModel):
status: str
-class Type(str, Enum):
+class Type(StrEnum):
POSTHOG = "posthog"
DATA_WAREHOUSE = "data_warehouse"
VIEW = "view"
BATCH_EXPORT = "batch_export"
-class DatabaseSerializedFieldType(str, Enum):
+class DatabaseSerializedFieldType(StrEnum):
INTEGER = "integer"
FLOAT = "float"
STRING = "string"
@@ -301,13 +301,13 @@ class Day(RootModel[int]):
root: int
-class DurationType(str, Enum):
+class DurationType(StrEnum):
DURATION = "duration"
ACTIVE_SECONDS = "active_seconds"
INACTIVE_SECONDS = "inactive_seconds"
-class Key(str, Enum):
+class Key(StrEnum):
TAG_NAME = "tag_name"
TEXT = "text"
HREF = "href"
@@ -336,14 +336,14 @@ class EmptyPropertyFilter(BaseModel):
)
-class EntityType(str, Enum):
+class EntityType(StrEnum):
ACTIONS = "actions"
EVENTS = "events"
DATA_WAREHOUSE = "data_warehouse"
NEW_ENTITY = "new_entity"
-class ErrorTrackingOrder(str, Enum):
+class ErrorTrackingOrder(StrEnum):
LAST_SEEN = "last_seen"
FIRST_SEEN = "first_seen"
UNIQUE_OCCURRENCES = "unique_occurrences"
@@ -360,7 +360,7 @@ class EventDefinition(BaseModel):
properties: dict[str, Any]
-class CorrelationType(str, Enum):
+class CorrelationType(StrEnum):
SUCCESS = "success"
FAILURE = "failure"
@@ -418,12 +418,12 @@ class EventsQueryPersonColumn(BaseModel):
uuid: str
-class FilterLogicalOperator(str, Enum):
+class FilterLogicalOperator(StrEnum):
AND_ = "AND"
OR_ = "OR"
-class FunnelConversionWindowTimeUnit(str, Enum):
+class FunnelConversionWindowTimeUnit(StrEnum):
SECOND = "second"
MINUTE = "minute"
HOUR = "hour"
@@ -440,7 +440,7 @@ class FunnelCorrelationResult(BaseModel):
skewed: bool
-class FunnelCorrelationResultsType(str, Enum):
+class FunnelCorrelationResultsType(StrEnum):
EVENTS = "events"
PROPERTIES = "properties"
EVENT_WITH_PROPERTIES = "event_with_properties"
@@ -468,18 +468,18 @@ class FunnelExclusionSteps(BaseModel):
funnelToStep: int
-class FunnelLayout(str, Enum):
+class FunnelLayout(StrEnum):
HORIZONTAL = "horizontal"
VERTICAL = "vertical"
-class FunnelPathType(str, Enum):
+class FunnelPathType(StrEnum):
FUNNEL_PATH_BEFORE_STEP = "funnel_path_before_step"
FUNNEL_PATH_BETWEEN_STEPS = "funnel_path_between_steps"
FUNNEL_PATH_AFTER_STEP = "funnel_path_after_step"
-class FunnelStepReference(str, Enum):
+class FunnelStepReference(StrEnum):
TOTAL = "total"
PREVIOUS = "previous"
@@ -492,7 +492,7 @@ class FunnelTimeToConvertResults(BaseModel):
bins: list[list[int]]
-class FunnelVizType(str, Enum):
+class FunnelVizType(StrEnum):
STEPS = "steps"
TIME_TO_CONVERT = "time_to_convert"
TRENDS = "trends"
@@ -516,37 +516,37 @@ class HogQLNotice(BaseModel):
start: Optional[int] = None
-class BounceRatePageViewMode(str, Enum):
+class BounceRatePageViewMode(StrEnum):
COUNT_PAGEVIEWS = "count_pageviews"
UNIQ_URLS = "uniq_urls"
-class InCohortVia(str, Enum):
+class InCohortVia(StrEnum):
AUTO = "auto"
LEFTJOIN = "leftjoin"
SUBQUERY = "subquery"
LEFTJOIN_CONJOINED = "leftjoin_conjoined"
-class MaterializationMode(str, Enum):
+class MaterializationMode(StrEnum):
AUTO = "auto"
LEGACY_NULL_AS_STRING = "legacy_null_as_string"
LEGACY_NULL_AS_NULL = "legacy_null_as_null"
DISABLED = "disabled"
-class PersonsArgMaxVersion(str, Enum):
+class PersonsArgMaxVersion(StrEnum):
AUTO = "auto"
V1 = "v1"
V2 = "v2"
-class PersonsJoinMode(str, Enum):
+class PersonsJoinMode(StrEnum):
INNER = "inner"
LEFT = "left"
-class PersonsOnEventsMode(str, Enum):
+class PersonsOnEventsMode(StrEnum):
DISABLED = "disabled"
PERSON_ID_NO_OVERRIDE_PROPERTIES_ON_EVENTS = "person_id_no_override_properties_on_events"
PERSON_ID_OVERRIDE_PROPERTIES_ON_EVENTS = "person_id_override_properties_on_events"
@@ -579,7 +579,7 @@ class HogQueryResponse(BaseModel):
stdout: Optional[str] = None
-class Compare(str, Enum):
+class Compare(StrEnum):
CURRENT = "current"
PREVIOUS = "previous"
@@ -619,7 +619,7 @@ class InsightDateRange(BaseModel):
)
-class InsightFilterProperty(str, Enum):
+class InsightFilterProperty(StrEnum):
TRENDS_FILTER = "trendsFilter"
FUNNELS_FILTER = "funnelsFilter"
RETENTION_FILTER = "retentionFilter"
@@ -628,7 +628,7 @@ class InsightFilterProperty(str, Enum):
LIFECYCLE_FILTER = "lifecycleFilter"
-class InsightNodeKind(str, Enum):
+class InsightNodeKind(StrEnum):
TRENDS_QUERY = "TrendsQuery"
FUNNELS_QUERY = "FunnelsQuery"
RETENTION_QUERY = "RetentionQuery"
@@ -637,7 +637,7 @@ class InsightNodeKind(str, Enum):
LIFECYCLE_QUERY = "LifecycleQuery"
-class InsightType(str, Enum):
+class InsightType(StrEnum):
TRENDS = "TRENDS"
STICKINESS = "STICKINESS"
LIFECYCLE = "LIFECYCLE"
@@ -649,7 +649,7 @@ class InsightType(str, Enum):
HOG = "HOG"
-class IntervalType(str, Enum):
+class IntervalType(StrEnum):
MINUTE = "minute"
HOUR = "hour"
DAY = "day"
@@ -657,14 +657,14 @@ class IntervalType(str, Enum):
MONTH = "month"
-class LifecycleToggle(str, Enum):
+class LifecycleToggle(StrEnum):
NEW = "new"
RESURRECTING = "resurrecting"
RETURNING = "returning"
DORMANT = "dormant"
-class NodeKind(str, Enum):
+class NodeKind(StrEnum):
EVENTS_NODE = "EventsNode"
ACTIONS_NODE = "ActionsNode"
DATA_WAREHOUSE_NODE = "DataWarehouseNode"
@@ -709,7 +709,7 @@ class PathCleaningFilter(BaseModel):
regex: Optional[str] = None
-class PathType(str, Enum):
+class PathType(StrEnum):
FIELD_PAGEVIEW = "$pageview"
FIELD_SCREEN = "$screen"
CUSTOM_EVENT = "custom_event"
@@ -758,7 +758,7 @@ class PathsFilterLegacy(BaseModel):
step_limit: Optional[int] = None
-class PropertyFilterType(str, Enum):
+class PropertyFilterType(StrEnum):
META = "meta"
EVENT = "event"
PERSON = "person"
@@ -773,7 +773,7 @@ class PropertyFilterType(str, Enum):
DATA_WAREHOUSE_PERSON_PROPERTY = "data_warehouse_person_property"
-class PropertyMathType(str, Enum):
+class PropertyMathType(StrEnum):
AVG = "avg"
SUM = "sum"
MIN = "min"
@@ -784,7 +784,7 @@ class PropertyMathType(str, Enum):
P99 = "p99"
-class PropertyOperator(str, Enum):
+class PropertyOperator(StrEnum):
EXACT = "exact"
IS_NOT = "is_not"
ICONTAINS = "icontains"
@@ -899,7 +899,7 @@ class RecordingPropertyFilter(BaseModel):
value: Optional[Union[str, float, list[Union[str, float]]]] = None
-class Kind1(str, Enum):
+class Kind1(StrEnum):
ACTIONS_NODE = "ActionsNode"
EVENTS_NODE = "EventsNode"
@@ -917,19 +917,19 @@ class RetentionEntity(BaseModel):
uuid: Optional[str] = None
-class RetentionReference(str, Enum):
+class RetentionReference(StrEnum):
TOTAL = "total"
PREVIOUS = "previous"
-class RetentionPeriod(str, Enum):
+class RetentionPeriod(StrEnum):
HOUR = "Hour"
DAY = "Day"
WEEK = "Week"
MONTH = "Month"
-class RetentionType(str, Enum):
+class RetentionType(StrEnum):
RETENTION_RECURRING = "retention_recurring"
RETENTION_FIRST_TIME = "retention_first_time"
@@ -960,7 +960,7 @@ class SessionPropertyFilter(BaseModel):
value: Optional[Union[str, float, list[Union[str, float]]]] = None
-class StepOrderValue(str, Enum):
+class StepOrderValue(StrEnum):
STRICT = "strict"
UNORDERED = "unordered"
ORDERED = "ordered"
@@ -1175,7 +1175,7 @@ class VizSpecificOptions(BaseModel):
RETENTION: Optional[RETENTION] = None
-class Kind2(str, Enum):
+class Kind2(StrEnum):
UNIT = "unit"
DURATION_S = "duration_s"
PERCENTAGE = "percentage"
@@ -1222,7 +1222,7 @@ class WebOverviewQueryResponse(BaseModel):
)
-class WebStatsBreakdown(str, Enum):
+class WebStatsBreakdown(StrEnum):
PAGE = "Page"
INITIAL_PAGE = "InitialPage"
EXIT_PAGE = "ExitPage"
diff --git a/posthog/temporal/tests/external_data/test_external_data_job.py b/posthog/temporal/tests/external_data/test_external_data_job.py
index 01224cb58c410..bbaccf7308f9b 100644
--- a/posthog/temporal/tests/external_data/test_external_data_job.py
+++ b/posthog/temporal/tests/external_data/test_external_data_job.py
@@ -283,7 +283,9 @@ async def setup_job_1():
schema=customer_schema,
)
- new_job = await sync_to_async(ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").get)()
+ new_job = await sync_to_async(
+ ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").prefetch_related("schema").get
+ )()
inputs = ImportDataActivityInputs(
team_id=team.id,
@@ -438,7 +440,9 @@ async def setup_job_1():
schema=customer_schema,
)
- new_job = await sync_to_async(ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").get)()
+ new_job = await sync_to_async(
+ ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").prefetch_related("schema").get
+ )()
inputs = ImportDataActivityInputs(
team_id=team.id,
@@ -522,7 +526,9 @@ async def setup_job_1():
schema=customer_schema,
)
- new_job = await sync_to_async(ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").get)()
+ new_job = await sync_to_async(
+ ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").prefetch_related("schema").get
+ )()
inputs = ImportDataActivityInputs(
team_id=team.id,
@@ -688,7 +694,9 @@ async def setup_job_1():
schema=posthog_test_schema,
)
- new_job = await sync_to_async(ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").get)()
+ new_job = await sync_to_async(
+ ExternalDataJob.objects.filter(id=new_job.id).prefetch_related("pipeline").prefetch_related("schema").get
+ )()
inputs = ImportDataActivityInputs(
team_id=team.id, run_id=str(new_job.pk), source_id=new_source.pk, schema_id=posthog_test_schema.id
diff --git a/production.Dockerfile b/production.Dockerfile
index 1e3eb2d11551f..30fa7146a77e9 100644
--- a/production.Dockerfile
+++ b/production.Dockerfile
@@ -83,7 +83,7 @@ RUN corepack enable && \
#
# ---------------------------------------------------------
#
-FROM python:3.10.10-slim-bullseye AS posthog-build
+FROM python:3.11.9-slim-bookworm AS posthog-build
WORKDIR /code
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
@@ -139,104 +139,7 @@ RUN apt-get update && \
#
# ---------------------------------------------------------
#
-# Build a version of the unit docker image for python3.10
-# We can remove this step once we are on python3.11
-FROM unit:python3.11 as unit
-FROM python:3.10-bullseye as unit-131-python-310
-
-# copied from https://github.com/nginx/unit/blob/master/pkg/docker/Dockerfile.python3.11
-LABEL org.opencontainers.image.title="Unit (python3.10)"
-LABEL org.opencontainers.image.description="Official build of Unit for Docker."
-LABEL org.opencontainers.image.url="https://unit.nginx.org"
-LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
-LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
-LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers "
-LABEL org.opencontainers.image.version="1.31.1"
-
-RUN set -ex \
- && savedAptMark="$(apt-mark showmanual)" \
- && apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev curl pkg-config \
- && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
- && mkdir -p /usr/src/unit \
- && cd /usr/src/unit \
- && hg clone -u 1.31.1-1 https://hg.nginx.org/unit \
- && cd unit \
- && NCPU="$(getconf _NPROCESSORS_ONLN)" \
- && DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
- && CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
- && LD_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
- && CONFIGURE_ARGS_MODULES="--prefix=/usr \
- --statedir=/var/lib/unit \
- --control=unix:/var/run/control.unit.sock \
- --runstatedir=/var/run \
- --pid=/var/run/unit.pid \
- --logdir=/var/log \
- --log=/var/log/unit.log \
- --tmpdir=/var/tmp \
- --user=unit \
- --group=unit \
- --openssl \
- --libdir=/usr/lib/$DEB_HOST_MULTIARCH" \
- && CONFIGURE_ARGS="$CONFIGURE_ARGS_MODULES \
- --njs" \
- && make -j $NCPU -C pkg/contrib .njs \
- && export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
- && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
- && make -j $NCPU unitd \
- && install -pm755 build/sbin/unitd /usr/sbin/unitd-debug \
- && make clean \
- && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules \
- && make -j $NCPU unitd \
- && install -pm755 build/sbin/unitd /usr/sbin/unitd \
- && make clean \
- && /bin/true \
- && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
- && ./configure python --config=/usr/local/bin/python3-config \
- && make -j $NCPU python3-install \
- && make clean \
- && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules \
- && ./configure python --config=/usr/local/bin/python3-config \
- && make -j $NCPU python3-install \
- && cd \
- && rm -rf /usr/src/unit \
- && for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
- ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
- done \
- && apt-mark showmanual | xargs apt-mark auto > /dev/null \
- && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } \
- && /bin/true \
- && mkdir -p /var/lib/unit/ \
- && mkdir -p /docker-entrypoint.d/ \
- && groupadd --gid 998 unit \
- && useradd \
- --uid 998 \
- --gid unit \
- --no-create-home \
- --home /nonexistent \
- --comment "unit user" \
- --shell /bin/false \
- unit \
- && apt-get update \
- && apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
- && apt-get purge -y --auto-remove build-essential \
- && rm -rf /var/lib/apt/lists/* \
- && rm -f /requirements.apt \
- && ln -sf /dev/stdout /var/log/unit.log
-
-COPY --from=unit /usr/local/bin/docker-entrypoint.sh /usr/local/bin/
-COPY --from=unit /usr/share/unit/welcome/welcome.* /usr/share/unit/welcome/
-
-STOPSIGNAL SIGTERM
-
-ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
-EXPOSE 80
-CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]
-
-#
-# ---------------------------------------------------------
-#
-FROM unit-131-python-310
+FROM unit:python3.11
WORKDIR /code
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
ENV PYTHONUNBUFFERED 1
@@ -265,7 +168,7 @@ RUN apt-get install -y --no-install-recommends \
# Install and use a non-root user.
RUN groupadd -g 1000 posthog && \
- useradd -u 999 -r -g posthog posthog && \
+ useradd -r -g posthog posthog && \
chown posthog:posthog /code
USER posthog
diff --git a/requirements-dev.txt b/requirements-dev.txt
index ded32c00acb9f..dbf468cd45bb2 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,9 +1,5 @@
-#
-# This file is autogenerated by pip-compile with Python 3.10
-# by the following command:
-#
-# pip-compile --output-file=requirements-dev.txt requirements-dev.in
-#
+# This file was autogenerated by uv via the following command:
+# uv pip compile requirements-dev.in -o requirements-dev.txt
aiohttp==3.9.3
# via
# -c requirements.txt
@@ -42,7 +38,7 @@ black==23.9.1
# -r requirements-dev.in
# datamodel-code-generator
# inline-snapshot
-boto3-stubs[s3]==1.34.84
+boto3-stubs==1.34.84
# via -r requirements-dev.in
botocore-stubs==1.34.84
# via boto3-stubs
@@ -50,7 +46,7 @@ certifi==2019.11.28
# via
# -c requirements.txt
# requests
-cffi==1.14.5
+cffi==1.16.0
# via
# -c requirements.txt
# cryptography
@@ -67,9 +63,9 @@ click==8.1.7
# inline-snapshot
colorama==0.4.4
# via pytest-watch
-coverage[toml]==5.5
+coverage==5.5
# via pytest-cov
-cryptography==37.0.2
+cryptography==39.0.2
# via
# -c requirements.txt
# types-paramiko
@@ -106,13 +102,13 @@ executing==2.0.1
# via inline-snapshot
faker==17.5.0
# via -r requirements-dev.in
-fakeredis[lua]==2.11.0
+fakeredis==2.11.0
# via -r requirements-dev.in
flaky==3.7.0
# via -r requirements-dev.in
freezegun==1.2.2
# via -r requirements-dev.in
-frozenlist==1.3.0
+frozenlist==1.4.1
# via
# -c requirements.txt
# aiohttp
@@ -207,7 +203,7 @@ pycparser==2.20
# via
# -c requirements.txt
# cffi
-pydantic[email]==2.5.3
+pydantic==2.5.3
# via
# -c requirements.txt
# datamodel-code-generator
@@ -377,7 +373,7 @@ urllib3==1.26.18
# responses
watchdog==2.1.8
# via pytest-watch
-yarl==1.7.2
+yarl==1.9.4
# via
# -c requirements.txt
# aiohttp
diff --git a/requirements.in b/requirements.in
index 14d23d0a3463e..6b59c0ad8f13a 100644
--- a/requirements.in
+++ b/requirements.in
@@ -14,7 +14,7 @@ celery==5.3.4
celery-redbeat==2.1.1
clickhouse-driver==0.2.7
clickhouse-pool==0.5.3
-cryptography==37.0.2
+cryptography==39.0.2
dj-database-url==0.5.0
Django~=4.2.11
django-axes==5.9.0
@@ -29,7 +29,7 @@ django-redis==5.2.0
django-statsd==2.5.2
django-structlog==2.1.3
django-revproxy==0.12.0
-djangorestframework==3.14.0
+djangorestframework==3.15.1
djangorestframework-csv==2.1.1
djangorestframework-dataclasses==1.2.0
django-fernet-encrypted-fields==0.1.3
@@ -93,6 +93,8 @@ phonenumberslite==8.13.6
openai==1.10.0
tiktoken==0.6.0
nh3==0.2.14
-hogql-parser==1.0.14
+hogql-parser==1.0.21
zxcvbn==4.4.28
zstd==1.5.5.1
+xmlsec==1.3.14
+lxml==5.2.2
diff --git a/requirements.txt b/requirements.txt
index c31cd102213b6..13796a6133fd7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -84,7 +84,7 @@ certifi==2019.11.28
# sentry-sdk
# snowflake-connector-python
# urllib3
-cffi==1.14.5
+cffi==1.16.0
# via
# cryptography
# pynacl
@@ -113,7 +113,7 @@ clickhouse-driver==0.2.7
# sentry-sdk
clickhouse-pool==0.5.3
# via -r requirements.in
-cryptography==37.0.2
+cryptography==39.0.2
# via
# -r requirements.in
# django-fernet-encrypted-fields
@@ -195,7 +195,7 @@ django-structlog==2.1.3
# via -r requirements.in
django-two-factor-auth==1.14.0
# via -r requirements.in
-djangorestframework==3.14.0
+djangorestframework==3.15.1
# via
# -r requirements.in
# djangorestframework-csv
@@ -223,7 +223,7 @@ exceptiongroup==1.2.1
# via anyio
filelock==3.12.0
# via snowflake-connector-python
-frozenlist==1.3.0
+frozenlist==1.4.1
# via
# aiohttp
# aiosignal
@@ -276,7 +276,7 @@ h11==0.13.0
# wsproto
hexbytes==1.0.0
# via dlt
-hogql-parser==1.0.14
+hogql-parser==1.0.21
# via -r requirements.in
httpcore==1.0.2
# via httpx
@@ -321,8 +321,9 @@ kombu==5.3.2
# via
# -r requirements.in
# celery
-lxml==4.9.4
+lxml==5.2.2
# via
+ # -r requirements.in
# python3-saml
# toronado
# xmlsec
@@ -443,7 +444,7 @@ pyjwt==2.4.0
# social-auth-core
pynacl==1.5.0
# via paramiko
-pyopenssl==22.0.0
+pyopenssl==23.0.0
# via
# snowflake-connector-python
# urllib3
@@ -474,7 +475,6 @@ pytz==2023.3
# via
# -r requirements.in
# clickhouse-driver
- # djangorestframework
# dlt
# infi-clickhouse-orm
# pandas
@@ -623,7 +623,7 @@ toronado==0.1.0
# via -r requirements.in
tqdm==4.64.1
# via openai
-trio==0.20.0
+trio==0.21.0
# via
# selenium
# trio-websocket
@@ -685,9 +685,11 @@ wrapt==1.15.0
# via aiobotocore
wsproto==1.1.0
# via trio-websocket
-xmlsec==1.3.13
- # via python3-saml
-yarl==1.7.2
+xmlsec==1.3.14
+ # via
+ # -r requirements.in
+ # python3-saml
+yarl==1.9.4
# via aiohttp
zstd==1.5.5.1
# via -r requirements.in
diff --git a/unit.json.tpl b/unit.json.tpl
index ef1ba4b3ffec6..42f23a75a0374 100644
--- a/unit.json.tpl
+++ b/unit.json.tpl
@@ -39,7 +39,7 @@
},
"applications": {
"posthog": {
- "type": "python 3.10",
+ "type": "python 3.11",
"processes": $NGINX_UNIT_APP_PROCESSES,
"working_directory": "/code",
"path": ".",
@@ -51,7 +51,7 @@
}
},
"metrics": {
- "type": "python 3.10",
+ "type": "python 3.11",
"processes": 1,
"working_directory": "/code/bin",
"path": ".",