diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..41e69454f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,25 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +**Describe the bug** + +A clear and concise description of what the bug is: + +**To Reproduce** + +Steps to reproduce the behavior: + +**Expected behavior** + +A clear and concise description of what you expected to happen: + +**Compilers & Libraries (please complete the following information):** + - Compiler & version: [e.g. GCC 4.9.3]: + - CUDA version (if applicable): + +**Additional context** + +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..cd2ac307c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,22 @@ +--- +name: Feature request +about: Suggest an idea for this project + +--- + +**Is your feature request related to a problem? Please describe.** + +A clear and concise description of what the problem is. + +**Describe the solution you'd like** + +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** + +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** + +Add any other context or information about the feature request here. + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4fb53adaa..05d12ac3c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ -# Summary (Write a short headline summary of PR) +# Summary - This PR is a (refactoring, bugfix, feature, something else) - It does the following (modify list as needed): diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..61703c49d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,77 @@ +on: push +name: Build +jobs: + build_docker: + strategy: + matrix: + target: [gcc12, gcc13, clang13, clang15, rocm6, rocm6_desul, intel2024, intel2024_debug, intel2024_sycl] + runs-on: ubuntu-latest + steps: + - run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo docker image prune --all --force + - uses: actions/checkout@v2 + with: + submodules: recursive + - uses: docker/setup-buildx-action@v3 + - uses: docker/build-push-action@v6 + with: + target: ${{ matrix.target }} + build_mac: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - uses: threeal/cmake-action@v1.3.0 + with: + build-dir: build + options: + CMAKE_CXX_STANDARD=14 + ENABLE_OPENMP=Off + CMAKE_BUILD_TYPE=Release + run-build: true + build-args: '--parallel 16' + - uses: threeal/ctest-action@v1.1.0 + build_windows: + strategy: + matrix: + shared: +## ==================================== +## Shared library build generated undefined symbol errors that are not +## understood -RDH +## - args: +## BUILD_SHARED_LIBS=On +## CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=On + - args: BUILD_SHARED_LIBS=Off + + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive +## ==================================== +## Config and build action + - uses: threeal/cmake-action@v1.3.0 + with: + build-dir: build + options: + ENABLE_WARNINGS_AS_ERRORS=Off + BLT_CXX_STD=c++17 + CMAKE_BUILD_TYPE=Release + PERFSUITE_RUN_SHORT_TEST=On + ${{ matrix.shared.args }} + run-build: true + build-args: '--parallel 16' +## ==================================== +## Print the contents of the test directory in the build space (debugging) +## - run: | +## dir -r D:\a\RAJA\RAJA\build\test +## ==================================== +## Run tests action + - uses: threeal/ctest-action@v1.1.0 + with: + build-config: Debug diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef751105d..81d671448 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,7 +72,7 @@ stages: include: - local: '.gitlab/custom-jobs-and-variables.yml' - project: 'radiuss/radiuss-shared-ci' - ref: 'v2024.06.0' + ref: 'v2024.12.0' file: 'pipelines/${CI_MACHINE}.yml' - artifact: '${CI_MACHINE}-jobs.yml' job: 'generate-job-lists' @@ -85,7 +85,7 @@ include: file: 'id_tokens.yml' # [Optional] checks preliminary to running the actual CI test #- project: 'radiuss/radiuss-shared-ci' - # ref: 'v2024.06.0' + # ref: 'v2024.12.0' # file: 'utilities/preliminary-ignore-draft-pr.yml' # pipelines subscribed by the project - local: '.gitlab/subscribed-pipelines.yml' diff --git a/.gitlab/custom-jobs-and-variables.yml b/.gitlab/custom-jobs-and-variables.yml index 931d1961b..17875c955 100644 --- a/.gitlab/custom-jobs-and-variables.yml +++ b/.gitlab/custom-jobs-and-variables.yml @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -15,7 +15,7 @@ variables: # Ruby # Arguments for top level allocation - RUBY_SHARED_ALLOC: "--exclusive --reservation=ci --time=40 --nodes=1" + RUBY_SHARED_ALLOC: "--exclusive --reservation=ci --time=45 --nodes=1" # Arguments for job level allocation # Note: We repeat the reservation, necessary when jobs are manually re-triggered. RUBY_JOB_ALLOC: "--reservation=ci --nodes=1" @@ -26,7 +26,7 @@ variables: # Poodle # Arguments for top level allocation - POODLE_SHARED_ALLOC: "--exclusive --time=40 --nodes=1" + POODLE_SHARED_ALLOC: "--exclusive --time=45 --nodes=1" # Arguments for job level allocation POODLE_JOB_ALLOC: "--nodes=1" # Project specific variants for poodle @@ -36,7 +36,7 @@ variables: # Corona # Arguments for top level allocation - CORONA_SHARED_ALLOC: "--exclusive --time-limit=12m --nodes=1 -o per-resource.count=2" + CORONA_SHARED_ALLOC: "--exclusive --time-limit=25m --nodes=1 -o per-resource.count=2" # Arguments for job level allocation CORONA_JOB_ALLOC: "--nodes=1 --begin-time=+5s" # Project specific variants for corona @@ -46,7 +46,7 @@ variables: # Tioga # Arguments for top level allocation - TIOGA_SHARED_ALLOC: "--queue=pci --exclusive --time-limit=26m --nodes=1 -o per-resource.count=2" + TIOGA_SHARED_ALLOC: "--queue=pci --exclusive --time-limit=31m --nodes=1 -o per-resource.count=2" # Arguments for job level allocation TIOGA_JOB_ALLOC: "--nodes=1 --begin-time=+5s" # Project specific variants for tioga @@ -57,7 +57,7 @@ variables: # Lassen and Butte use a different job scheduler (spectrum lsf) that does not # allow pre-allocation the same way slurm does. # Arguments for job level allocation - LASSEN_JOB_ALLOC: "1 -W 20 -q pci" + LASSEN_JOB_ALLOC: "1 -W 25 -q pci" # Project specific variants for lassen PROJECT_LASSEN_VARIANTS: "~shared +openmp cuda_arch=70" # Project specific deps for lassen @@ -71,3 +71,18 @@ variables: artifacts: reports: junit: junit.xml + name: "${CI_PROJECT_NAME}-${CI_MACHINE}-${CI_JOB_NAME}-${CI_PIPELINE_ID}" + paths: + - ./*.cmake + +.reproducer_vars: + script: + - | + echo -e " + # Required variables \n + export MODULE_LIST=\"${MODULE_LIST}\" \n + export SPEC=\"${SPEC//\"/\\\"}\" \n + # Allow to set job script for debugging (only this differs from CI) \n + export DEBUG_MODE=true \n + # Using the CI build cache is optional and requires a token. Set it like so: \n + # export REGISTRY_TOKEN=\"\" \n" diff --git a/.gitlab/jobs/corona.yml b/.gitlab/jobs/corona.yml index 8fec233c5..c8d402e9c 100644 --- a/.gitlab/jobs/corona.yml +++ b/.gitlab/jobs/corona.yml @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -9,9 +9,7 @@ # Override reproducer section to define project specific variables. .corona_reproducer_vars: script: - - | - echo -e "export MODULE_LIST=\"${MODULE_LIST}\"" - echo -e "export SPEC=\"${SPEC//\"/\\\"}\"" + - !reference [.reproducer_vars, script] ######################## # Overridden shared jobs @@ -29,6 +27,10 @@ # ${PROJECT__DEPS} in the extra jobs. There is no reason not to fully # describe the spec here. -# With GitLab CI, included files cannot be empty. -variables: - INCLUDED_FILE_CANNOT_BE_EMPTY: "True" +clang_20_0_0_sycl_gcc_10_3_1_rocmcc_6_0_2_hip: + variables: + SPEC: " ~shared +sycl ~openmp tests=basic %clang@=20.0.0 cxxflags==\"-w -fsycl -fsycl-unnamed-lambda -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx906\" ^blt@develop" + MODULE_LIST: "rocm/6.0.2" + SYCL_PATH: "/usr/WS2/raja-dev/clang_sycl_730cd3a5275f_hip_gcc10.3.1_rocm6.0.2/" + LD_LIBRARY_PATH: "${SYCL_PATH}/lib:${SYCL_PATH}/lib64:${LD_LIBRARY_PATH}" + extends: .job_on_corona diff --git a/.gitlab/jobs/lassen.yml b/.gitlab/jobs/lassen.yml index c6eacf864..adb595150 100644 --- a/.gitlab/jobs/lassen.yml +++ b/.gitlab/jobs/lassen.yml @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -9,9 +9,7 @@ # Override reproducer section to define project specific variables. .lassen_reproducer_vars: script: - - | - echo -e "export MODULE_LIST=\"${MODULE_LIST}\"" - echo -e "export SPEC=\"${SPEC//\"/\\\"}\"" + - !reference [.reproducer_vars, script] ######################## # Overridden shared jobs @@ -20,14 +18,7 @@ # We keep ${PROJECT__VARIANTS} and ${PROJECT__DEPS} So that # the comparison with the original job is easier. -# Overriding shared spec: Longer allocation + extra flags -xl_2022_08_19_gcc_8_3_1_cuda_11_2_0: - variables: - SPEC: "${PROJECT_LASSEN_VARIANTS} +cuda cxxflags==\"-qthreaded -std=c++14 -O3 -qstrict -qxlcompatmacros -qlanglvl=extended0x -qalias=noansi -qhot -qpic -qsmp=omp -qsuppress=1500-029 -qsuppress=1500-036\" %xl@=16.1.1.12.gcc.8.3.1 ^cuda@11.2.0+allow-unsupported-compilers ${PROJECT_LASSEN_DEPS}" - MODULE_LIST: "cuda/11.2.0" - LASSEN_JOB_ALLOC: "1 -W 60 -q pci" - extends: .job_on_lassen - +# No jobs overridden ############ # Extra jobs @@ -38,21 +29,21 @@ xl_2022_08_19_gcc_8_3_1_cuda_11_2_0: gcc_8_3_1: variables: - SPEC: " ~shared +openmp %gcc@=8.3.1 ${PROJECT_LASSEN_DEPS}" + SPEC: " ~shared +openmp %gcc@=8.3.1 ^blt@develop" extends: .job_on_lassen -gcc_8_3_1_cuda_11_5_0_ats_disabled: +gcc_8_3_1_cuda_11_7_0_ats_disabled: extends: .job_on_lassen variables: - SPEC: " ~shared +openmp +cuda %gcc@=8.3.1 cuda_arch=70 ^cuda@11.5.0+allow-unsupported-compilers ${PROJECT_LASSEN_DEPS}" - MODULE_LIST: "cuda/11.5.0" + SPEC: " ~shared +openmp +cuda %gcc@=8.3.1 cuda_arch=70 ^cuda@11.7.0+allow-unsupported-compilers ^blt@develop" + MODULE_LIST: "cuda/11.7.0" LASSEN_JOB_ALLOC: "1 --atsdisable -W 30 -q pci" -gcc_8_3_1_cuda_11_5_0_ats_disabled_mpi: +gcc_8_3_1_cuda_11_7_0_ats_disabled_mpi: extends: .job_on_lassen variables: - SPEC: " ~shared +openmp +cuda +mpi %gcc@=8.3.1 cuda_arch=70 ^cuda@11.5.0+allow-unsupported-compilers ^spectrum-mpi ${PROJECT_LASSEN_DEPS}" - MODULE_LIST: "cuda/11.5.0" + SPEC: " ~shared +openmp +cuda +mpi %gcc@=8.3.1 cuda_arch=70 ^cuda@11.7.0+allow-unsupported-compilers ^spectrum-mpi ^blt@develop" + MODULE_LIST: "cuda/11.7.0" LASSEN_JOB_ALLOC: "1 --atsdisable -W 30 -q pci" ########## @@ -61,7 +52,7 @@ gcc_8_3_1_cuda_11_5_0_ats_disabled_mpi: clang_13_0_1_libcpp: variables: - SPEC: " ~shared +openmp %clang@=13.0.1 cflags==\"-DGTEST_HAS_CXXABI_H_=0\" cxxflags==\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\" ${PROJECT_LASSEN_DEPS}" + SPEC: " ~shared +openmp %clang@=13.0.1 cflags==\"-DGTEST_HAS_CXXABI_H_=0\" cxxflags==\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\" ^blt@develop" extends: .job_on_lassen #clang_14_0_5_asan: @@ -71,8 +62,7 @@ clang_13_0_1_libcpp: # LSAN_OPTIONS: "suppressions=${CI_PROJECT_DIR}/tpl/RAJA/suppressions.asan" # extends: .job_on_lassen -# Activated in RAJA, but we don't use desul atomics here -#gcc_8_3_1_cuda_10_1_168_desul_atomics: -# variables: -# SPEC: "+openmp +cuda +desul %gcc@=8.3.1 cuda_arch=70 cuda_arch=70 ^cuda@10.1.243+allow-unsupported-compilers ${PROJECT_LASSEN_DEPS}" -# extends: .job_on_lassen +clang_16_0_6_omptarget: + variables: + SPEC: " ~shared +openmp +omptarget %clang@=16.0.6.cuda.11.8.0.gcc.11.2.1 ^blt@develop" + extends: .job_on_lassen diff --git a/.gitlab/jobs/poodle.yml b/.gitlab/jobs/poodle.yml index ed18f60f5..aa42fe081 100644 --- a/.gitlab/jobs/poodle.yml +++ b/.gitlab/jobs/poodle.yml @@ -1,5 +1,5 @@ ############################################################################## -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -9,9 +9,7 @@ # Override reproducer section to define projet specific variables. .poodle_reproducer_vars: script: - - | - echo -e "export MODULE_LIST=\"${MODULE_LIST}\"" - echo -e "export SPEC=\"${SPEC//\"/\\\"}\"" + - !reference [.reproducer_vars, script] ######################## # Overridden shared jobs @@ -20,27 +18,24 @@ # We keep ${PROJECT__VARIANTS} and ${PROJECT__DEPS} So that # the comparison with the original job is easier. +# custom variant +oneapi_2023_2_1: + variables: + SPEC: "${PROJECT_POODLE_VARIANTS} +lowopttest cxxflags==-fp-model=precise %oneapi@=2023.2.1 ${PROJECT_POODLE_DEPS}" + extends: .job_on_poodle + +# omptask variant clang_14_0_6: variables: SPEC: "${PROJECT_POODLE_VARIANTS} +omptask %clang@=14.0.6 ${PROJECT_POODLE_DEPS}" extends: .job_on_poodle +# omptask variant gcc_10_3_1: variables: SPEC: "${PROJECT_POODLE_VARIANTS} +omptask %gcc@=10.3.1 ${PROJECT_POODLE_DEPS}" extends: .job_on_poodle -intel_19_1_2_gcc_10_3_1: - variables: - SPEC: "${PROJECT_POODLE_VARIANTS} %intel@=19.1.2.gcc.10.3.1 ${PROJECT_POODLE_DEPS}" - extends: .job_on_poodle - -intel_2022_1_0: - variables: - SPEC: "${PROJECT_POODLE_VARIANTS} %intel@=2022.1.0 ${PROJECT_POODLE_DEPS}" - allow_failure: true - extends: .job_on_poodle - ############ # Extra jobs ############ @@ -48,8 +43,7 @@ intel_2022_1_0: # ${PROJECT__DEPS} in the extra jobs. There is no reason not to fully # describe the spec here. -intel_2022_1_0_mpi: +oneapi_2023_2_1_mpi: variables: - SPEC: "~shared +openmp +mpi %intel@=2022.1.0 ^mvapich2 ${PROJECT_POODLE_DEPS}" - allow_failure: true + SPEC: "~shared +openmp +mpi +lowopttest cxxflags==-fp-model=precise %oneapi@=2023.2.1 ^mvapich2 ^blt@develop" extends: .job_on_poodle diff --git a/.gitlab/jobs/ruby.yml b/.gitlab/jobs/ruby.yml index 3502ed3fb..d837b9f35 100644 --- a/.gitlab/jobs/ruby.yml +++ b/.gitlab/jobs/ruby.yml @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -9,9 +9,7 @@ # Override reproducer section to define project specific variables. .ruby_reproducer_vars: script: - - | - echo -e "export MODULE_LIST=\"${MODULE_LIST}\"" - echo -e "export SPEC=\"${SPEC//\"/\\\"}\"" + - !reference [.reproducer_vars, script] ####################### # Overridden shared jobs @@ -20,28 +18,25 @@ # We keep ${PROJECT__VARIANTS} and ${PROJECT__DEPS} So that # the comparison with the original job is easier. +# custom variant +oneapi_2023_2_1: + variables: + SPEC: "${PROJECT_RUBY_VARIANTS} +lowopttest cxxflags==-fp-model=precise %oneapi@=2023.2.1 ${PROJECT_RUBY_DEPS}" + extends: .job_on_ruby + +# omptask variant clang_14_0_6: variables: SPEC: "${PROJECT_RUBY_VARIANTS} +omptask %clang@=14.0.6 ${PROJECT_RUBY_DEPS}" extends: .job_on_ruby +# omptask variant gcc_10_3_1: variables: SPEC: "${PROJECT_RUBY_VARIANTS} +omptask %gcc@=10.3.1 ${PROJECT_RUBY_DEPS}" RUBY_BUILD_AND_TEST_JOB_ALLOC: "--time=60 --nodes=1" extends: .job_on_ruby -intel_19_1_2_gcc_10_3_1: - variables: - SPEC: "${PROJECT_RUBY_VARIANTS} %intel@=19.1.2.gcc.10.3.1 ${PROJECT_RUBY_DEPS}" - RUBY_BUILD_AND_TEST_JOB_ALLOC: "--time=40 --nodes=1" - extends: .job_on_ruby - -intel_2022_1_0: - variables: - SPEC: "${PROJECT_RUBY_VARIANTS} %intel@=2022.1.0 ${PROJECT_RUBY_DEPS}" - extends: .job_on_ruby - ############ # Extra jobs ############ @@ -49,7 +44,7 @@ intel_2022_1_0: # ${PROJECT__DEPS} in the extra jobs. There is no reason not to fully # describe the spec here. -intel_2022_1_0_mpi: +oneapi_2023_2_1_mpi: variables: - SPEC: "~shared +openmp +mpi %intel@=2022.1.0 ^mvapich2 ${PROJECT_RUBY_DEPS}" + SPEC: "~shared +openmp +mpi +lowopttest cxxflags==-fp-model=precise %oneapi@=2023.2.1 ^mvapich2 ^blt@develop" extends: .job_on_ruby diff --git a/.gitlab/jobs/tioga.yml b/.gitlab/jobs/tioga.yml index bcf9eccb8..baa0d96c9 100644 --- a/.gitlab/jobs/tioga.yml +++ b/.gitlab/jobs/tioga.yml @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -9,9 +9,7 @@ # Override reproducer section to define project specific variables. .tioga_reproducer_vars: script: - - | - echo -e "export MODULE_LIST=\"${MODULE_LIST}\"" - echo -e "export SPEC=\"${SPEC//\"/\\\"}\"" + - !reference [.reproducer_vars, script] ######################## # Overridden shared jobs @@ -29,13 +27,17 @@ # ${PROJECT__DEPS} in the extra jobs. There is no reason not to fully # describe the spec here. -rocmcc_6_1_1_hip_openmp: +cce_17_0_1: variables: - SPEC: "~shared +rocm +openmp amdgpu_target=gfx90a %rocmcc@=6.1.1 ^hip@6.1.1 ${PROJECT_TIOGA_DEPS}" + SPEC: "~shared +openmp %cce@=17.0.1 ^blt@develop" extends: .job_on_tioga -rocmcc_6_1_1_hip_openmp_mpi: +rocmcc_6_3_0_hip_openmp: variables: - SPEC: "~shared +rocm +openmp +mpi amdgpu_target=gfx90a %rocmcc@=6.1.1 ^hip@6.1.1 ${PROJECT_TIOGA_DEPS}" + SPEC: "~shared +rocm +openmp amdgpu_target=gfx90a %rocmcc@=6.3.0 ^hip@6.3.0 ^blt@develop" + extends: .job_on_tioga + +rocmcc_6_3_0_hip_openmp_mpi: + variables: + SPEC: "~shared +rocm +openmp +mpi amdgpu_target=gfx90a %rocmcc@=6.3.0 ^hip@6.3.0 ^blt@develop" extends: .job_on_tioga - allow_failure: true diff --git a/.gitlab/subscribed-pipelines.yml b/.gitlab/subscribed-pipelines.yml index 7e60a05e9..9a86c8a8b 100644 --- a/.gitlab/subscribed-pipelines.yml +++ b/.gitlab/subscribed-pipelines.yml @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -113,5 +113,3 @@ lassen-build-and-test: CI_MACHINE: "lassen" needs: [lassen-up-check, generate-job-lists] extends: [.build-and-test] - - diff --git a/.uberenv_config.json b/.uberenv_config.json index fda595d3a..30a278436 100644 --- a/.uberenv_config.json +++ b/.uberenv_config.json @@ -1,11 +1,10 @@ { -"package_name" : "raja_perf", +"package_name" : "raja-perf", "package_version" : "develop", "package_final_phase" : "initconfig", "package_source_dir" : "../..", "spack_url": "https://github.com/spack/spack.git", -"spack_branch": "develop-2024-05-26", -"spack_activate" : {}, +"spack_branch": "develop-2025-02-09", "spack_configs_path": "tpl/RAJA/scripts/radiuss-spack-configs", "spack_packages_path": "tpl/RAJA/scripts/radiuss-spack-configs/packages", "spack_concretizer": "clingo", diff --git a/CMakeLists.txt b/CMakeLists.txt index b9d0bd3c0..d2211207a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -15,19 +15,9 @@ else() cmake_minimum_required(VERSION 3.20) endif() -option(ENABLE_RAJA_SEQUENTIAL "Run sequential variants of RAJA kernels. Disable -this, and all other variants, to run _only_ base variants." On) option(ENABLE_KOKKOS "Include Kokkos implementations of the kernels in the RAJA Perfsuite" Off) -# -# Note: the BLT build system is inheritted by RAJA and is initialized by RAJA -# - -if (PERFSUITE_ENABLE_WARNINGS) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror") -endif() - -if (ENABLE_KOKKOS OR ENABLE_SYCL) +if (ENABLE_KOKKOS OR RAJA_ENABLE_SYCL) set(CMAKE_CXX_STANDARD 17) set(BLT_CXX_STD c++17) else() @@ -41,6 +31,13 @@ include(blt/SetupBLT.cmake) # Define RAJA PERFSUITE settings... # +option(ENABLE_RAJA_SEQUENTIAL "Run sequential variants of RAJA kernels. Disable +this, and all other variants, to run _only_ base variants." On) + +if (PERFSUITE_ENABLE_WARNINGS) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror") +endif() + cmake_dependent_option(RAJA_PERFSUITE_ENABLE_TESTS "Enable RAJA Perf Suite Tests" On "ENABLE_TESTS" Off) if (ENABLE_TESTS) @@ -50,6 +47,8 @@ if (ENABLE_TESTS) endif() +option(PERFSUITE_RUN_SHORT_TEST "Shorter test run to avoid timeout in some CI cases." Off) + cmake_dependent_option(RAJA_PERFSUITE_ENABLE_MPI "Build with MPI" On "ENABLE_MPI" Off) if (RAJA_PERFSUITE_ENABLE_MPI) set(RAJA_PERFSUITE_NUM_MPI_TASKS 4 CACHE STRING "Number of MPI tasks in tests") @@ -132,12 +131,17 @@ set(CAMP_ENABLE_TESTS Off CACHE BOOL "") if (ENABLE_RAJA_SEQUENTIAL) add_definitions(-DRUN_RAJA_SEQ) endif () + if (ENABLE_OPENMP) add_definitions(-DRUN_OPENMP) endif () -set(RAJA_PERFSUITE_VERSION_MAJOR 2024) -set(RAJA_PERFSUITE_VERSION_MINOR 07) +if (PERFSUITE_RUN_SHORT_TEST) + add_definitions(-DRUN_RAJAPERF_SHORT_TEST) +endif() + +set(RAJA_PERFSUITE_VERSION_MAJOR 2025) +set(RAJA_PERFSUITE_VERSION_MINOR 03) set(RAJA_PERFSUITE_VERSION_PATCHLEVEL 0) set(RAJA_PERFSUITE_DEPENDS RAJA) @@ -151,7 +155,7 @@ endif() if (ENABLE_CUDA) list(APPEND RAJA_PERFSUITE_DEPENDS cuda) endif() -if (ENABLE_SYCL) +if (RAJA_ENABLE_SYCL) list(APPEND RAJA_PERFSUITE_DEPENDS sycl) endif() diff --git a/Dockerfile b/Dockerfile index b15e3c102..86353abf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,122 +1,141 @@ ############################################################################## -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) ############################################################################### -FROM ghcr.io/rse-ops/gcc-ubuntu-20.04:gcc-7.3.0 AS gcc7.3.0 +## +## Note that we build with 'make -j 16' on GitHub Actions and +## with 'make -j 6' on Azure. This is reflected in the 'make' commands below. +## This seems to work best for throughput. +## +## Also, we only check builds for GPU configurations (CUDA, HIP, SYCL) since +## we do not have clouds resources to run tests for those. +## + +FROM ghcr.io/llnl/radiuss:gcc-11-ubuntu-22.04 AS gcc11 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN cmake -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DENABLE_OPENMP=On .. && \ +RUN cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ make -j 6 &&\ - ctest -T test --output-on-failure && \ - cd .. && rm -rf build + ctest -T test --output-on-failure -FROM ghcr.io/rse-ops/gcc-ubuntu-20.04:gcc-8.1.0 AS gcc8.1.0 +FROM ghcr.io/llnl/radiuss:gcc-12-ubuntu-22.04 AS gcc12 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN cmake -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ - make -j 6 &&\ - ctest -T test --output-on-failure && \ - cd .. && rm -rf build +RUN cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ + ctest -T test --output-on-failure -FROM ghcr.io/rse-ops/gcc-ubuntu-20.04:gcc-9.4.0 AS gcc9.4.0 +FROM ghcr.io/llnl/radiuss:gcc-12-ubuntu-22.04 AS gcc12_debug ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN cmake -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DENABLE_OPENMP=On .. && \ +RUN cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Debug -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On -DPERFSUITE_RUN_SHORT_TEST=On .. && \ make -j 6 &&\ - ctest -T test --output-on-failure && \ - cd .. && rm -rf build + ctest -T test --output-on-failure -FROM ghcr.io/rse-ops/gcc-ubuntu-20.04:gcc-11.2.0 AS gcc11.2.0 +FROM ghcr.io/llnl/radiuss:gcc-12-ubuntu-22.04 AS gcc12_desul ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DENABLE_OPENMP=On .. && \ +RUN cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On -DRAJA_ENABLE_DESUL_ATOMICS=On .. && \ make -j 6 &&\ - ctest -T test --output-on-failure && \ - cd .. && rm -rf build + ctest -T test --output-on-failure -FROM ghcr.io/rse-ops/clang-ubuntu-20.04:llvm-11.0.0 AS clang11.0.0 +FROM ghcr.io/llnl/radiuss:gcc-13-ubuntu-22.04 AS gcc13 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN . /opt/spack/share/spack/setup-env.sh && \ - export LD_LIBRARY_PATH=/opt/view/lib:$LD_LIBRARY_PATH && \ - cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=On .. && \ - make -j 6 &&\ - ctest -T test --output-on-failure && \ - cd .. && rm -rf build +RUN cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ + ctest -T test --output-on-failure -FROM ghcr.io/rse-ops/clang-ubuntu-20.04:llvm-11.0.0 AS clang11.0.0-debug +FROM ghcr.io/llnl/radiuss:clang-13-ubuntu-22.04 AS clang13 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN . /opt/spack/share/spack/setup-env.sh && \ - export LD_LIBRARY_PATH=/opt/view/lib:$LD_LIBRARY_PATH && \ - cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENMP=On .. && \ - make -j 6 &&\ - ctest -T test --output-on-failure && \ - cd .. && rm -rf build +RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ + ctest -T test --output-on-failure -FROM ghcr.io/rse-ops/clang-ubuntu-22.04:llvm-13.0.0 AS clang13.0.0 +FROM ghcr.io/llnl/radiuss:clang-14-ubuntu-22.04 AS clang14_debug ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN . /opt/spack/share/spack/setup-env.sh && \ - export LD_LIBRARY_PATH=/opt/view/lib:$LD_LIBRARY_PATH && \ - cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=On .. && \ +RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENMP=On -DPERFSUITE_RUN_SHORT_TEST=On .. && \ make -j 6 &&\ - ctest -T test --output-on-failure && \ - cd .. && rm -rf build - -##FROM ghcr.io/rse-ops/cuda:cuda-10.1.243-ubuntu-18.04 AS nvcc10.1.243 -##ENV GTEST_COLOR=1 -##COPY . /home/raja/workspace -##WORKDIR /home/raja/workspace/build -##RUN . /opt/spack/share/spack/setup-env.sh && spack load cuda && \ -## cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=On -DCMAKE_CUDA_STANDARD=14 -DCMAKE_CUDA_ARCHITECTURES=70 -DENABLE_OPENMP=On .. && \ -## make -j 4 && \ -## cd .. && rm -rf build - -##FROM ghcr.io/rse-ops/cuda-ubuntu-20.04:cuda-11.1.1 AS nvcc11.1.1 -##ENV GTEST_COLOR=1 -##COPY . /home/raja/workspace -##WORKDIR /home/raja/workspace/build -##RUN . /opt/spack/share/spack/setup-env.sh && spack load cuda && \ -## cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=On -DCMAKE_CUDA_STANDARD=14 -DCMAKE_CUDA_ARCHITECTURES=70 -DENABLE_OPENMP=On .. && \ -## make -j 4 && \ -## cd .. && rm -rf build - -##FROM ghcr.io/rse-ops/cuda-ubuntu-20.04:cuda-11.1.1 AS nvcc11.1.1-debug -##ENV GTEST_COLOR=1 -##COPY . /home/raja/workspace -##WORKDIR /home/raja/workspace/build -##RUN . /opt/spack/share/spack/setup-env.sh && spack load cuda && \ -## cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=On -DCMAKE_CUDA_STANDARD=14 -DCMAKE_CUDA_ARCHITECTURES=70 -DENABLE_OPENMP=On .. && \ -## make -j 4 && \ -## cd .. && rm -rf build - -##FROM ghcr.io/rse-ops/hip-ubuntu-20.04:hip-5.1.3 AS hip5.1.3 -##ENV GTEST_COLOR=1 -##ENV HCC_AMDGPU_TARGET=gfx900 -##COPY . /home/raja/workspace -##WORKDIR /home/raja/workspace/build -##RUN . /opt/spack/share/spack/setup-env.sh && spack load hip llvm-amdgpu && \ -## cmake -DCMAKE_CXX_COMPILER=clang++ -DHIP_PATH=/opt -DENABLE_HIP=On -DENABLE_CUDA=Off -DENABLE_OPENMP=Off -DRAJA_ENABLE_WARNINGS_AS_ERRORS=Off -DBLT_EXPORT_THIRDPARTY=On .. && \ -## make -j 6 && \ -## cd .. && rm -rf build - -FROM ghcr.io/rse-ops/intel-ubuntu-23.04:intel-2023.2.1 AS sycl + ctest -T test --output-on-failure + +FROM ghcr.io/llnl/radiuss:clang-15-ubuntu-22.04 AS clang15 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN /bin/bash -c "source /opt/view/setvars.sh && \ - cmake -DCMAKE_CXX_COMPILER=dpcpp -DENABLE_SYCL=On -DENABLE_OPENMP=Off -DENABLE_ALL_WARNINGS=Off -DBLT_CXX_STD=c++17 -DENABLE_TESTS=On .. && \ +RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ + ctest -T test --output-on-failure + +FROM ghcr.io/llnl/radiuss:clang-15-ubuntu-22.04 AS clang15_desul +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=On -DRAJA_ENABLE_DESUL_ATOMICS=On .. && \ make -j 6 &&\ - ./bin/raja-perf.exe --checkrun --exclude-variants Base_SYCL RAJA_SYCL -sp" && \ - cd .. && rm -rf build + ctest -T test --output-on-failure + +## TODO: Checksum errors with intel compiler appear to be due to optimization +## level. On LC, cutting back to -O1 seems to fix the issues +## Check compile, but don't run tests +FROM ghcr.io/llnl/radiuss:ubuntu-20.04-intel-2024.0 AS intel2024 +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN /bin/bash -c "source /opt/intel/oneapi/setvars.sh 2>&1 > /dev/null && \ + cmake -DCMAKE_CXX_COMPILER=icpx -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=On .. && \ + make -j 16" +## make -j 16 &&\ +## ctest -T test --output-on-failure" + +## TODO: Checksum errors with intel compiler appear to be due to optimization +## level. On LC, cutting back to -O1 seems to fix the issues +## Check compile, but don't run tests +FROM ghcr.io/llnl/radiuss:ubuntu-20.04-intel-2024.0 AS intel2024_debug +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN /bin/bash -c "source /opt/intel/oneapi/setvars.sh 2>&1 > /dev/null && \ + cmake -DCMAKE_CXX_COMPILER=icpx -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENMP=On .. && \ + make -j 16" +## make -j 16 &&\ +## ctest -T test --output-on-failure" + +## +## Need to find a viable cuda image to test... +## + +FROM ghcr.io/llnl/radiuss:hip-6.0.2-ubuntu-20.04 AS rocm6 +ENV GTEST_COLOR=1 +ENV HCC_AMDGPU_TARGET=gfx900 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN cmake -DCMAKE_CXX_COMPILER=/opt/rocm-6.0.2/bin/amdclang++ -DROCM_PATH=/opt/rocm-6.0.2 -DCMAKE_BUILD_TYPE=Release -DENABLE_HIP=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=Off .. && \ + make -j 16 + +FROM ghcr.io/llnl/radiuss:hip-6.0.2-ubuntu-20.04 AS rocm6_desul +ENV GTEST_COLOR=1 +ENV HCC_AMDGPU_TARGET=gfx900 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN cmake -DCMAKE_CXX_COMPILER=/opt/rocm-6.0.2/bin/amdclang++ -DROCM_PATH=/opt/rocm-6.0.2 -DCMAKE_BUILD_TYPE=Release -DENABLE_HIP=On -DRAJA_ENABLE_DESUL_ATOMICS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=Off .. && \ + make -j 16 + +FROM ghcr.io/llnl/radiuss:intel-2024.0-ubuntu-20.04 AS intel2024_sycl +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN /bin/bash -c "source /opt/intel/oneapi/setvars.sh 2>&1 > /dev/null && \ + cmake -DCMAKE_CXX_COMPILER=dpcpp -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=Off -DRAJA_ENABLE_SYCL=On -DBLT_CXX_STD=c++17 -DRAJA_ENABLE_DESUL_ATOMICS=On .. && \ + make -j 16" diff --git a/LICENSE b/LICENSE index 27c1ef431..4bebffb30 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC. +Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/README.md b/README.md index 04aeea048..d9d2981d7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [comment]: # (#################################################################) -[comment]: # (Copyright 2017-24, Lawrence Livermore National Security, LLC) +[comment]: # (Copyright 2017-25, Lawrence Livermore National Security, LLC) [comment]: # (and RAJA Performance Suite project contributors.) [comment]: # (See the RAJAPerf/LICENSE file for details.) [comment]: # @@ -36,6 +36,13 @@ To access docs for other branches or version versions: https://readthedocs.org/p Please see the [RAJA] project for more information about RAJA. +To cite RAJA Performance Suite, please use the following references: + +* RAJA Performance Suite. https://github.com/LLNL/RAJAPerf + +* Olga Pearce, Jason Burmark, Rich Hornung, Befikir Bogale, Ian Lumsden, Michael McKinsey, Dewi Yokelson, David Boehme, Stephanie Brink, Michela Taufer, Tom Scogland, "RAJA Performance Suite: Performance Portability Analysis with Caliper and Thicket", in 2024 IEEE/ACM International Workshop on Performance, Portability and Productivity in HPC (P3HPC) at the International Conference on High Performance Computing, Network, Storage, and Analysis (SC-W 2024). [Download here](https://dl.acm.org/doi/pdf/10.1109/SCW63240.2024.00162) + + Communicate with Us ------------------- diff --git a/RELEASE b/RELEASE index 61fc02251..c9106cf8d 100644 --- a/RELEASE +++ b/RELEASE @@ -2,7 +2,7 @@ RAJA Performance Suite -Copyright (c) 2017-24, Lawrence Livermore National Security, LLC. +Copyright (c) 2017-25, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory. All rights reserved. See details in the RAJAPerf/LICENSE file. diff --git a/TODO/WIP-COUPLE.cpp b/TODO/WIP-COUPLE.cpp index 6f0feeed8..e59a79f36 100644 --- a/TODO/WIP-COUPLE.cpp +++ b/TODO/WIP-COUPLE.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/TODO/WIP-COUPLE.hpp b/TODO/WIP-COUPLE.hpp index bf29503f3..f9dc33151 100644 --- a/TODO/WIP-COUPLE.hpp +++ b/TODO/WIP-COUPLE.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 41f9c0cd7..0f9a16593 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,31 +33,17 @@ jobs: - job: Docker timeoutInMinutes: 360 strategy: - matrix: - gcc7.3.0: - docker_target: gcc7.3.0 - gcc8.1.0: - docker_target: gcc8.1.0 - gcc9.4.0: - docker_target: gcc9.4.0 - gcc11.2.0: - docker_target: gcc11.2.0 - clang11.0.0: - docker_target: clang11.0.0 -## clang11.0.0-debug: -## docker_target: clang11.0.0-debug - clang13.0.0: - docker_target: clang13.0.0 -## nvcc10.1.243: -## docker_target: nvcc10.1.243 -## nvcc11.1.1: -## docker_target: nvcc11.1.1 -## nvcc11.1.1-debug: -## docker_target: nvcc11.1.1-debug -## hip5.1.3: -## docker_target: hip5.1.3 - sycl: - docker_target: sycl + matrix: + gcc11: + docker_target: gcc11 + gcc12_debug: + docker_target: gcc12_debug + gcc12_desul: + docker_target: gcc12_desul + clang14_debug: + docker_target: clang14_debug + clang15_desul: + docker_target: clang15_desul pool: vmImage: 'ubuntu-latest' variables: diff --git a/blt b/blt index 9ff77344f..fb4246b8b 160000 --- a/blt +++ b/blt @@ -1 +1 @@ -Subproject commit 9ff77344f0b2a6ee345e452bddd6bfd46cbbfa35 +Subproject commit fb4246b8bae74c3d7291bef9698fd38863844680 diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 9b4df01d6..58d7122ac 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/docs/conf.py b/docs/conf.py index ee3729c8f..b82f9dc7a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -79,16 +79,16 @@ # General information about the project. project = u'RAJAPerf' -copyright = u'2017-2024, Lawrence Livermore National Security, LLNS' +copyright = u'2017-25, Lawrence Livermore National Security, LLNS' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u'2024.07' +version = u'2025.03' # The full version, including alpha/beta/rc tags. -release = u'2024.07.0' +release = u'2025.03.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/index.rst b/docs/index.rst index 438c89f82..4f66e9d11 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/branch_development.rst b/docs/sphinx/dev_guide/branch_development.rst index 318076584..40580a40a 100644 --- a/docs/sphinx/dev_guide/branch_development.rst +++ b/docs/sphinx/dev_guide/branch_development.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/build_configurations.rst b/docs/sphinx/dev_guide/build_configurations.rst index 4972d85a2..11c4c5e7e 100644 --- a/docs/sphinx/dev_guide/build_configurations.rst +++ b/docs/sphinx/dev_guide/build_configurations.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/ci.rst b/docs/sphinx/dev_guide/ci.rst index 1fdd1a55f..ed9b98e0b 100644 --- a/docs/sphinx/dev_guide/ci.rst +++ b/docs/sphinx/dev_guide/ci.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/contributing.rst b/docs/sphinx/dev_guide/contributing.rst index bdac32a30..00fcf89c0 100644 --- a/docs/sphinx/dev_guide/contributing.rst +++ b/docs/sphinx/dev_guide/contributing.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/index.rst b/docs/sphinx/dev_guide/index.rst index d04aa25ab..6df23d199 100644 --- a/docs/sphinx/dev_guide/index.rst +++ b/docs/sphinx/dev_guide/index.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/kernel_class.rst b/docs/sphinx/dev_guide/kernel_class.rst index 015b7592f..097029256 100644 --- a/docs/sphinx/dev_guide/kernel_class.rst +++ b/docs/sphinx/dev_guide/kernel_class.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/kernel_class_impl.rst b/docs/sphinx/dev_guide/kernel_class_impl.rst index 05271dd8e..1d3fc5cad 100644 --- a/docs/sphinx/dev_guide/kernel_class_impl.rst +++ b/docs/sphinx/dev_guide/kernel_class_impl.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/release_process.rst b/docs/sphinx/dev_guide/release_process.rst index 0542ec08e..502b43c8c 100644 --- a/docs/sphinx/dev_guide/release_process.rst +++ b/docs/sphinx/dev_guide/release_process.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/dev_guide/structure.rst b/docs/sphinx/dev_guide/structure.rst index bc11f9941..67054a0e5 100644 --- a/docs/sphinx/dev_guide/structure.rst +++ b/docs/sphinx/dev_guide/structure.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/rajaperf_license.rst b/docs/sphinx/rajaperf_license.rst index 5233fff7b..09dcd8f53 100644 --- a/docs/sphinx/rajaperf_license.rst +++ b/docs/sphinx/rajaperf_license.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## @@ -12,7 +12,7 @@ RAJA Performance Suite Copyright and License Information ========================================================== -Copyright (c) 2017-24, Lawrence Livermore National Security, LLC. +Copyright (c) 2017-25, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory. diff --git a/docs/sphinx/user_guide/CMakeLists.txt b/docs/sphinx/user_guide/CMakeLists.txt index e084390e8..c986649ca 100644 --- a/docs/sphinx/user_guide/CMakeLists.txt +++ b/docs/sphinx/user_guide/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA erformance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/docs/sphinx/user_guide/build.rst b/docs/sphinx/user_guide/build.rst index 372f495e9..e6665f621 100644 --- a/docs/sphinx/user_guide/build.rst +++ b/docs/sphinx/user_guide/build.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/user_guide/index.rst b/docs/sphinx/user_guide/index.rst index 33475a6b9..939993aec 100644 --- a/docs/sphinx/user_guide/index.rst +++ b/docs/sphinx/user_guide/index.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/user_guide/output.rst b/docs/sphinx/user_guide/output.rst index 2af530e9a..866fdb7f1 100644 --- a/docs/sphinx/user_guide/output.rst +++ b/docs/sphinx/user_guide/output.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/docs/sphinx/user_guide/run.rst b/docs/sphinx/user_guide/run.rst index 083263d61..aec0bfc00 100644 --- a/docs/sphinx/user_guide/run.rst +++ b/docs/sphinx/user_guide/run.rst @@ -1,5 +1,5 @@ .. ## -.. ## Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +.. ## Copyright (c) 2017-25, Lawrence Livermore National Security, LLC .. ## and RAJA Performance Suite project contributors. .. ## See the RAJAPerf/LICENSE file for details. .. ## diff --git a/host-configs b/host-configs new file mode 120000 index 000000000..c6592a966 --- /dev/null +++ b/host-configs @@ -0,0 +1 @@ +tpl/RAJA/host-configs \ No newline at end of file diff --git a/scripts/alcf-builds/sycl.sh b/scripts/alcf-builds/sycl.sh index f002631f3..2482444ea 100755 --- a/scripts/alcf-builds/sycl.sh +++ b/scripts/alcf-builds/sycl.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/gitlab/build_and_test.sh b/scripts/gitlab/build_and_test.sh index 430d50b4b..283c88574 100755 --- a/scripts/gitlab/build_and_test.sh +++ b/scripts/gitlab/build_and_test.sh @@ -7,7 +7,7 @@ then fi ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC and RAJA +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC and RAJA # project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -26,6 +26,9 @@ spec=${SPEC:-""} module_list=${MODULE_LIST:-""} job_unique_id=${CI_JOB_ID:-""} use_dev_shm=${USE_DEV_SHM:-true} +spack_debug=${SPACK_DEBUG:-false} +debug_mode=${DEBUG_MODE:-false} +push_to_registry=${PUSH_TO_REGISTRY:-true} raja_version=${UPDATE_RAJA:-""} sys_type=${SYS_TYPE:-""} @@ -33,6 +36,33 @@ sys_type=${SYS_TYPE:-""} spack_upstream_path=${SPACK_UPSTREAM_PATH:-"/usr/workspace/umdev/RAJAPerf/upstream"} update_spack_upstream=${UPDATE_SPACK_UPSTREAM:-false} +# REGISTRY_TOKEN allows you to provide your own personal access token to the CI +# registry. Be sure to set the token with at least read access to the registry. +registry_token=${REGISTRY_TOKEN:-""} +ci_registry_user=${CI_REGISTRY_USER:-"${USER}"} +ci_registry_image=${CI_REGISTRY_IMAGE:-"czregistry.llnl.gov:5050/radiuss/rajaperf"} +ci_registry_token=${CI_JOB_TOKEN:-"${registry_token}"} + +timed_message () +{ + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + echo "~ $(date --rfc-3339=seconds) ~ ${1}" + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +} + +if [[ ${debug_mode} == true ]] +then + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + echo "~~~~~ Debug mode:" + echo "~~~~~ - Spack debug mode." + echo "~~~~~ - Deactivated shared memory." + echo "~~~~~ - Do not push to buildcache." + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + use_dev_shm=false + spack_debug=true + push_to_registry=false +fi + if [[ -n ${module_list} ]] then echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" @@ -62,27 +92,33 @@ then fi prefix="${prefix}-${job_unique_id}" - mkdir -p ${prefix} else # We set the prefix in the parent directory so that spack dependencies are not installed inside the source tree. prefix="$(pwd)/../spack-and-build-root" - mkdir -p ${prefix} +fi + +echo "Creating directory ${prefix}" +echo "project_dir: ${project_dir}" + +mkdir -p ${prefix} + +spack_cmd="${prefix}/spack/bin/spack" +spack_env_path="${prefix}/spack_env" +uberenv_cmd="$(pwd)/tpl/RAJA/scripts/uberenv/uberenv.py --project-json=$(pwd)/.uberenv_config.json" +if [[ ${spack_debug} == true ]] +then + spack_cmd="${spack_cmd} --debug --stacktrace" + uberenv_cmd="${uberenv_cmd} --spack-debug" fi # Dependencies -date -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -echo "~~~~~ Build and test started" -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" if [[ "${option}" != "--build-only" && "${option}" != "--test-only" ]] then - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - echo "~~~~~ Building Dependencies" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + timed_message "Building dependencies" if [[ -z ${spec} ]] then - echo "SPEC is undefined, aborting..." + echo "[Error]: SPEC is undefined, aborting..." exit 1 fi @@ -102,17 +138,32 @@ then export SPACK_USER_CACHE_PATH="${spack_user_cache}" mkdir -p ${spack_user_cache} - ./tpl/RAJA/scripts/uberenv/uberenv.py --project-json=".uberenv_config.json" --spec="${spec}" ${prefix_opt} ${upstream_opt} + # generate cmake cache file with uberenv and radiuss spack package + timed_message "Spack setup and environment" + ${uberenv_cmd} --setup-and-env-only --spec="${spec}" ${prefix_opt} ${upstream_opt} + + if [[ -n ${ci_registry_token} ]] + then + timed_message "GitLab registry as Spack Buildcache" + ${spack_cmd} -D ${spack_env_path} mirror add --unsigned --oci-username ${ci_registry_user} --oci-password ${ci_registry_token} gitlab_ci oci://${ci_registry_image} + fi + + timed_message "Spack build of dependencies" + ${uberenv_cmd} --skip-setup-and-env --spec="${spec}" ${prefix_opt} ${upstream_opt} + + if [[ -n ${ci_registry_token} && ${push_to_registry} == true ]] + then + timed_message "Push dependencies to buildcache" + ${spack_cmd} -D ${spack_env_path} buildcache push --only dependencies gitlab_ci + fi + + timed_message "Dependencies built" mv ${project_dir}/tpl/RAJA/*.cmake ${project_dir}/. fi - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - echo "~~~~~ Dependencies Built" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -date -# Host config file +# Find cmake cache file (hostconfig) if [[ -z ${hostconfig} ]] then # If no host config file was provided, we assume it was generated. @@ -121,24 +172,24 @@ then if [[ ${#hostconfigs[@]} == 1 ]] then hostconfig_path=${hostconfigs[0]} - echo "Found host config file: ${hostconfig_path}" elif [[ ${#hostconfigs[@]} == 0 ]] then - echo "No result for: ${project_dir}/*.cmake" - echo "Spack generated host-config not found." + echo "[Error]: No result for: ${project_dir}/*.cmake" + echo "[Error]: Spack generated host-config not found." exit 1 else - echo "More than one result for: ${project_dir}/*.cmake" - echo "${hostconfigs[@]}" - echo "Please specify one with HOST_CONFIG variable" + echo "[Error]: More than one result for: ${project_dir}/*.cmake" + echo "[Error]: ${hostconfigs[@]}" + echo "[Error]: Please specify one with HOST_CONFIG variable" exit 1 fi else # Using provided host-config file. - hostconfig_path="${project_dir}/host-configs/${hostconfig}" + hostconfig_path="${project_dir}/${hostconfig}" fi hostconfig=$(basename ${hostconfig_path}) +echo "[Information]: Found hostconfig ${hostconfig_path}" # Build Directory # When using /dev/shm, we use prefix for both spack builds and source build, unless BUILD_ROOT was defined @@ -151,16 +202,13 @@ cmake_exe=`grep 'CMake executable' ${hostconfig_path} | cut -d ':' -f 2 | xargs` # Build if [[ "${option}" != "--deps-only" && "${option}" != "--test-only" ]] then - date echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "~ Host-config: ${hostconfig_path}" echo "~ Build Dir: ${build_dir}" echo "~ Project Dir: ${project_dir}" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - echo "~~~~~ Building RAJA Perf Suite" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + timed_message "Cleaning working directory" # Map CPU core allocations declare -A core_counts=(["lassen"]=40 ["ruby"]=28 ["poodle"]=28 ["corona"]=32 ["rzansel"]=48 ["tioga"]=32) @@ -169,13 +217,9 @@ then if [[ -n ${raja_version} ]] then cd tpl/RAJA - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - echo "~~~~ Updating RAJA Submodule to develop ~~~" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + timed_message "Updating RAJA Submodule to develop" git pull origin develop - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - echo "~~~~ Updating Submodules within RAJA ~~~~~~" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + timed_message "Updating Submodules within RAJA" git submodule update --init --recursive cd - fi @@ -197,76 +241,54 @@ then fi date - if [[ "${truehostname}" == "corona" || "${truehostname}" == "tioga" ]] - then - module unload rocm - fi $cmake_exe \ -C ${hostconfig_path} \ ${cmake_options} \ ${project_dir} if ! $cmake_exe --build . -j ${core_counts[$truehostname]} then - echo "ERROR: compilation failed, building with verbose output..." + echo "[Error]: Compilation failed, building with verbose output..." + timed_message "Re-building with --verbose" $cmake_exe --build . --verbose -j 1 fi - date - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - echo "~~~~~ RAJA Perf Suite Built" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + timed_message "RAJA Perf Suite built" fi -if [[ ! -d ${build_dir} ]] +# Test +if [[ "${option}" != "--build-only" ]] && grep -q -i "ENABLE_TESTS.*ON" ${hostconfig_path} then - echo "ERROR: Build directory not found : ${build_dir}" && exit 1 -fi - -cd ${build_dir} -date -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -echo "~~~~~ TESTING RAJAPERF SUITE" -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - -if grep -q -i "ENABLE_TESTS.*ON" ${hostconfig_path} -then + if [[ ! -d ${build_dir} ]] + then + echo "[Error]: Build directory not found : ${build_dir}" && exit 1 + fi - # - # Maintaining separate, but identical release and debug sections - # in case we want to make them disctinct in the future. - # + cd ${build_dir} - echo "~~~~~~~~~ Run Command: ~~~~~~~~~~~~~~~~~~~~~" - echo "ctest --output-on-failure -T test 2>&1 | tee tests_output.txt" - echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - date + timed_message "Testing RAJA Perf Suite" ctest --output-on-failure -T test 2>&1 | tee tests_output.txt - date no_test_str="No tests were found!!!" if [[ "$(tail -n 1 tests_output.txt)" == "${no_test_str}" ]] then - echo "ERROR: No tests were found" && exit 1 + echo "[Error]: No tests were found" && exit 1 fi - echo "Copying Testing xml reports for export" + timed_message "Preparing tests xml reports for export" tree Testing xsltproc -o junit.xml ${project_dir}/blt/tests/ctest-to-junit.xsl Testing/*/Test.xml mv junit.xml ${project_dir}/junit.xml if grep -q "Errors while running CTest" ./tests_output.txt then - echo "ERROR: failure(s) while running CTest" && exit 1 + echo "[Error]: Failure(s) while running CTest" && exit 1 fi + + timed_message "RAJA Perf Suite tests completed" fi -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -echo "~~~~~ CLEAN UP" -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +timed_message "Cleaning up" make clean -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -echo "~~~~~ Build and test completed" -echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -date +timed_message "Build and test completed" diff --git a/scripts/install_llvm.sh b/scripts/install_llvm.sh index b264f59de..431e9ca8d 100755 --- a/scripts/install_llvm.sh +++ b/scripts/install_llvm.sh @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/scripts/lc-builds/blueos_clang.sh b/scripts/lc-builds/blueos_clang.sh index 15fde9bf1..f185da32a 100755 --- a/scripts/lc-builds/blueos_clang.sh +++ b/scripts/lc-builds/blueos_clang.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -31,7 +31,7 @@ echo rm -rf build_${BUILD_SUFFIX} 2>/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_clang_omptarget.sh b/scripts/lc-builds/blueos_clang_omptarget.sh index 67ffdcf91..11ea9dbb5 100755 --- a/scripts/lc-builds/blueos_clang_omptarget.sh +++ b/scripts/lc-builds/blueos_clang_omptarget.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -31,7 +31,7 @@ echo rm -rf build_${BUILD_SUFFIX} 2>/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_gcc.sh b/scripts/lc-builds/blueos_gcc.sh index fe71ddf77..2ee0b118f 100755 --- a/scripts/lc-builds/blueos_gcc.sh +++ b/scripts/lc-builds/blueos_gcc.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -29,7 +29,7 @@ echo rm -rf build_${BUILD_SUFFIX} 2>/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_nvcc_clang-mpi_caliper.sh b/scripts/lc-builds/blueos_nvcc_clang-mpi_caliper.sh index 14118494a..a0d2c154b 100755 --- a/scripts/lc-builds/blueos_nvcc_clang-mpi_caliper.sh +++ b/scripts/lc-builds/blueos_nvcc_clang-mpi_caliper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -40,7 +40,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_nvcc_clang.sh b/scripts/lc-builds/blueos_nvcc_clang.sh index 59b74d923..882d3d645 100755 --- a/scripts/lc-builds/blueos_nvcc_clang.sh +++ b/scripts/lc-builds/blueos_nvcc_clang.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -36,7 +36,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_nvcc_clang_caliper.sh b/scripts/lc-builds/blueos_nvcc_clang_caliper.sh index 238b9a30e..3305727ca 100755 --- a/scripts/lc-builds/blueos_nvcc_clang_caliper.sh +++ b/scripts/lc-builds/blueos_nvcc_clang_caliper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -40,7 +40,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_nvcc_gcc-mpi_caliper.sh b/scripts/lc-builds/blueos_nvcc_gcc-mpi_caliper.sh index 9fdcdb3a7..3b50ab653 100755 --- a/scripts/lc-builds/blueos_nvcc_gcc-mpi_caliper.sh +++ b/scripts/lc-builds/blueos_nvcc_gcc-mpi_caliper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -40,7 +40,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_nvcc_gcc.sh b/scripts/lc-builds/blueos_nvcc_gcc.sh index d1e24fdac..3a924455a 100755 --- a/scripts/lc-builds/blueos_nvcc_gcc.sh +++ b/scripts/lc-builds/blueos_nvcc_gcc.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -36,7 +36,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_nvcc_xl.sh b/scripts/lc-builds/blueos_nvcc_xl.sh index 1950dcadc..301582600 100755 --- a/scripts/lc-builds/blueos_nvcc_xl.sh +++ b/scripts/lc-builds/blueos_nvcc_xl.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -36,7 +36,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_pgi.sh b/scripts/lc-builds/blueos_pgi.sh index 09e192fa5..d9a2bbb27 100755 --- a/scripts/lc-builds/blueos_pgi.sh +++ b/scripts/lc-builds/blueos_pgi.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -29,7 +29,7 @@ echo rm -rf build_${BUILD_SUFFIX} 2>/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_spectrum_nvcc_clang.sh b/scripts/lc-builds/blueos_spectrum_nvcc_clang.sh index d8a718229..66090a6e6 100755 --- a/scripts/lc-builds/blueos_spectrum_nvcc_clang.sh +++ b/scripts/lc-builds/blueos_spectrum_nvcc_clang.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -38,7 +38,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_spectrum_nvcc_gcc.sh b/scripts/lc-builds/blueos_spectrum_nvcc_gcc.sh index dd71dcc62..81d61edc9 100755 --- a/scripts/lc-builds/blueos_spectrum_nvcc_gcc.sh +++ b/scripts/lc-builds/blueos_spectrum_nvcc_gcc.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -38,7 +38,7 @@ echo rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_spectrum_nvcc_gcc_caliper.sh b/scripts/lc-builds/blueos_spectrum_nvcc_gcc_caliper.sh new file mode 100755 index 000000000..0ac4188bd --- /dev/null +++ b/scripts/lc-builds/blueos_spectrum_nvcc_gcc_caliper.sh @@ -0,0 +1,78 @@ +#!/usr/bin/env bash + +############################################################################### +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. +# +# SPDX-License-Identifier: (BSD-3-Clause) +############################################################################### + +if [[ $# -lt 6 ]]; then + echo + echo "You must pass 4 arguments to the script (in this order): " + echo " 1) compiler version number for spectrum mpi" + echo " 2) compiler version number for nvcc (number only, not 'sm_70' for example)" + echo " 3) CUDA compute architecture" + echo " 4) compiler version number for gcc. " + echo " 5) path to caliper cmake directory" + echo " 6) path to adiak cmake directory" + echo " 7...) optional arguments to cmake" + echo + echo "For example: " + echo " blueos_spectrum_nvcc_gcc.sh rolling-release 10.2.89 70 8.3.1" + exit +fi + +COMP_MPI_VER=$1 +COMP_NVCC_VER=$2 +COMP_ARCH=$3 +COMP_GCC_VER=$4 +CALI_DIR=$5 +ADIAK_DIR=$6 +shift 6 + +BUILD_SUFFIX=lc_blueos-spectrum-${COMP_MPI_VER}-nvcc-${COMP_NVCC_VER}-${COMP_ARCH}-gcc-${COMP_GCC_VER}_caliper +RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/lc-builds/blueos/nvcc_gcc_X.cmake + +echo +echo "Creating build directory build_${BUILD_SUFFIX} and generating configuration in it" +echo "Configuration extra arguments:" +echo " $@" +echo + +rm -rf build_${BUILD_SUFFIX} >/dev/null +mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} + +module load cmake/3.23.1 + +cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DMPI_CXX_COMPILER=/usr/tce/packages/spectrum-mpi/spectrum-mpi-${COMP_MPI_VER}-gcc-${COMP_GCC_VER}/bin/mpig++ \ + -DCMAKE_CXX_COMPILER=/usr/tce/packages/gcc/gcc-${COMP_GCC_VER}/bin/g++ \ + -DBLT_CXX_STD=c++14 \ + -C ${RAJA_HOSTCONFIG} \ + -DENABLE_MPI=On \ + -DENABLE_OPENMP=On \ + -DENABLE_CUDA=On \ + -DCUDA_SEPARABLE_COMPILATION=On \ + -DCUDA_TOOLKIT_ROOT_DIR=/usr/tce/packages/cuda/cuda-${COMP_NVCC_VER} \ + -DCMAKE_CUDA_COMPILER=/usr/tce/packages/cuda/cuda-${COMP_NVCC_VER}/bin/nvcc \ + -DCMAKE_CUDA_ARCHITECTURES=${COMP_ARCH} \ + -DRAJA_PERFSUITE_USE_CALIPER=ON \ + -Dcaliper_DIR=${CALI_DIR} \ + -Dadiak_DIR=${ADIAK_DIR} \ + -DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ + "$@" \ + .. + +echo +echo "***********************************************************************" +echo +echo "cd into directory build_${BUILD_SUFFIX} and run make to build RAJA Perf Suite" +echo +echo " Please note that you have to run with mpi when you run" +echo " the RAJA Perf Suite; for example," +echo +echo " lrun -n4 ./bin/raja-perf.exe" +echo +echo "***********************************************************************" diff --git a/scripts/lc-builds/blueos_xl.sh b/scripts/lc-builds/blueos_xl.sh index 9729db57e..f558bcb4a 100755 --- a/scripts/lc-builds/blueos_xl.sh +++ b/scripts/lc-builds/blueos_xl.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -29,7 +29,7 @@ echo rm -rf build_${BUILD_SUFFIX} 2>/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/blueos_xl_omptarget.sh b/scripts/lc-builds/blueos_xl_omptarget.sh index 559c59900..d1895613f 100755 --- a/scripts/lc-builds/blueos_xl_omptarget.sh +++ b/scripts/lc-builds/blueos_xl_omptarget.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -29,7 +29,7 @@ echo rm -rf build_${BUILD_SUFFIX} 2>/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.20.2 +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/scripts/lc-builds/corona_sycl.sh b/scripts/lc-builds/corona_sycl.sh index 6dbeb9ee5..7470ffb5c 100755 --- a/scripts/lc-builds/corona_sycl.sh +++ b/scripts/lc-builds/corona_sycl.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2016-24, Lawrence Livermore National Security, LLC -# and RAJA project contributors. See the RAJA/LICENSE file for details. +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) ############################################################################### @@ -13,7 +13,7 @@ if [[ $# -lt 1 ]]; then echo " 1) SYCL compiler installation path" echo echo "For example: " - echo " corona_sycl.sh /usr/workspace/raja-dev/clang_sycl_2f03ef85fee5_hip_gcc10.3.1_rocm5.7.1" + echo " corona_sycl.sh /usr/workspace/raja-dev/clang_sycl_730cd3a5275f_hip_gcc10.3.1_rocm6.0.2" exit fi @@ -38,7 +38,7 @@ DATE=$(printf '%(%Y-%m-%d)T\n' -1) export PATH=${SYCL_PATH}/bin:$PATH export LD_LIBRARY_PATH=${SYCL_PATH}/lib:${SYCL_PATH}/lib64:$LD_LIBRARY_PATH -## NOTE: RAJA tests are turned off due to compilation issues. +module load cmake/3.23.1 cmake \ -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \ diff --git a/scripts/lc-builds/toss4_amdclang.sh b/scripts/lc-builds/toss4_amdclang.sh index c571e568d..9a7c8ecc7 100755 --- a/scripts/lc-builds/toss4_amdclang.sh +++ b/scripts/lc-builds/toss4_amdclang.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -55,7 +55,7 @@ rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.23.1 +module load cmake/3.24.2 # unload rocm to avoid configuration problems where the loaded rocm and COMP_VER # are inconsistent causing the rocprim from the module to be used unexpectedly diff --git a/scripts/lc-builds/toss4_amdclang_asan.sh b/scripts/lc-builds/toss4_amdclang_asan.sh index 015416e8e..9441382cb 100755 --- a/scripts/lc-builds/toss4_amdclang_asan.sh +++ b/scripts/lc-builds/toss4_amdclang_asan.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -55,7 +55,7 @@ rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.23.1 +module load cmake/3.24.2 # unload rocm to avoid configuration problems where the loaded rocm and COMP_VER # are inconsistent causing the rocprim from the module to be used unexpectedly @@ -67,8 +67,13 @@ else ROCM_PATH="/usr/tce/packages/rocmcc-tce/rocmcc-${COMP_VER}" fi +COMP_HIP_VER="${COMP_VER%-magic}" +COMP_CLANG_MAJOR_VER="$(ls /opt/rocm-${COMP_HIP_VER}/lib/llvm/lib/clang/)" + cmake \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_PREFIX_PATH="${ROCM_PATH}/lib/cmake" \ + -DHIP_PLATFORM=amd \ -DROCM_ROOT_DIR="${ROCM_PATH}" \ -DHIP_ROOT_DIR="${ROCM_PATH}/hip" \ -DHIP_PATH=${ROCM_PATH}/llvm/bin \ @@ -77,8 +82,10 @@ cmake \ -DCMAKE_HIP_ARCHITECTURES="${COMP_ARCH}:xnack+" \ -DGPU_TARGETS="${COMP_ARCH}:xnack+" \ -DAMDGPU_TARGETS="${COMP_ARCH}:xnack+" \ - -DCMAKE_C_FLAGS="-fsanitize=address -shared-libsan" \ - -DCMAKE_CXX_FLAGS="-fsanitize=address -shared-libsan" \ + -DCMAKE_C_FLAGS="-fsanitize=address -fsanitize=undefined -shared-libsan" \ + -DCMAKE_CXX_FLAGS="-fsanitize=address -fsanitize=undefined -shared-libsan" \ + -DCMAKE_HIP_FLAGS="-fsanitize=address -fsanitize=undefined -shared-libsan -fgpu-rdc --hip-version=${COMP_HIP_VER}" \ + -DCMAKE_EXE_LINKER_FLAGS="-L/opt/rocm-${COMP_HIP_VER}/lib/asan/ -L/opt/rocm-${COMP_HIP_VER}/llvm/lib/asan -Wl,-rpath,/opt/rocm-${COMP_HIP_VER}/lib/asan/:/opt/rocm-${COMP_HIP_VER}/llvm/lib/asan:/opt/rocm-${COMP_HIP_VER}/lib/llvm/lib/clang/${COMP_CLANG_MAJOR_VER}/lib/linux -fgpu-rdc --hip-version=${COMP_HIP_VER}" \ -DBLT_CXX_STD=c++14 \ -C ${RAJA_HOSTCONFIG} \ -DENABLE_HIP=ON \ diff --git a/scripts/lc-builds/toss4_cce_hip.sh b/scripts/lc-builds/toss4_cce_hip.sh index 072443ff8..0c06804ca 100755 --- a/scripts/lc-builds/toss4_cce_hip.sh +++ b/scripts/lc-builds/toss4_cce_hip.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/lc-builds/toss4_clang-mpi_caliper.sh b/scripts/lc-builds/toss4_clang-mpi_caliper.sh index d3f4eb4bf..6239021ba 100755 --- a/scripts/lc-builds/toss4_clang-mpi_caliper.sh +++ b/scripts/lc-builds/toss4_clang-mpi_caliper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -49,8 +49,6 @@ cmake \ -DRAJA_PERFSUITE_USE_CALIPER=ON \ -Dcaliper_DIR=${CALI_DIR} \ -Dadiak_DIR=${ADIAK_DIR} \ - -DCMAKE_C_FLAGS="-g -O0" \ - -DCMAKE_CXX_FLAGS="-g -O0" \ "$@" \ .. diff --git a/scripts/lc-builds/toss4_clang.sh b/scripts/lc-builds/toss4_clang.sh index 64b11c012..71ba0ec5c 100755 --- a/scripts/lc-builds/toss4_clang.sh +++ b/scripts/lc-builds/toss4_clang.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/lc-builds/toss4_clang_caliper.sh b/scripts/lc-builds/toss4_clang_caliper.sh index 89ece7b23..cb535daee 100755 --- a/scripts/lc-builds/toss4_clang_caliper.sh +++ b/scripts/lc-builds/toss4_clang_caliper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -48,8 +48,6 @@ cmake \ -DRAJA_PERFSUITE_USE_CALIPER=ON \ -Dcaliper_DIR=${CALI_DIR} \ -Dadiak_DIR=${ADIAK_DIR} \ - -DCMAKE_C_FLAGS="-g -O0" \ - -DCMAKE_CXX_FLAGS="-g -O0" \ "$@" \ .. diff --git a/scripts/lc-builds/toss4_cray-mpich_amdclang.sh b/scripts/lc-builds/toss4_cray-mpich_amdclang.sh index db9cafa5c..f862d2cd0 100755 --- a/scripts/lc-builds/toss4_cray-mpich_amdclang.sh +++ b/scripts/lc-builds/toss4_cray-mpich_amdclang.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/lc-builds/toss4_cray-mpich_amdclang_asan.sh b/scripts/lc-builds/toss4_cray-mpich_amdclang_asan.sh new file mode 100755 index 000000000..10bf2229a --- /dev/null +++ b/scripts/lc-builds/toss4_cray-mpich_amdclang_asan.sh @@ -0,0 +1,142 @@ +#!/usr/bin/env bash + +############################################################################### +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. +# +# SPDX-License-Identifier: (BSD-3-Clause) +############################################################################### + +if [[ $# -lt 2 ]]; then + echo + echo "You must pass 2 or more arguments to the script (in this order): " + echo " 1) cray-mpich compiler version number" + echo " 1) HIP compiler version number" + echo " 2) HIP compute architecture" + echo " 3...) optional arguments to cmake" + echo + echo "For example: " + echo " toss4_cray-mpich_amdclang_asan.sh 8.1.14 4.1.0 gfx906" + exit +fi + +MPI_VER=$1 +COMP_VER=$2 +COMP_ARCH=$3 +shift 3 + +HOSTCONFIG="hip_3_X" + +if [[ ${COMP_VER} == 4.* ]] +then +##HIP_CLANG_FLAGS="-mllvm -amdgpu-fixed-function-abi=1" + HOSTCONFIG="hip_4_link_X" +elif [[ ${COMP_VER} == 3.* ]] +then + HOSTCONFIG="hip_3_X" +else + echo "Unknown hip version, using ${HOSTCONFIG} host-config" +fi + +# if [[ ${COMP_ARCH} == gfx90a ]] +# then + # note that unsafe atomics require use of coarse grain memory +##HIP_CLANG_FLAGS="-munsafe-fp-atomics" +# fi + +BUILD_SUFFIX=lc_toss4-cray-mpich-${MPI_VER}-amdclang-${COMP_VER}-${COMP_ARCH}-asan +RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/lc-builds/toss4/${HOSTCONFIG}.cmake + +echo +echo "Creating build directory ${BUILD_SUFFIX} and generating configuration in it" +echo "Configuration extra arguments:" +echo " $@" +echo +echo "To get cmake to work you may have to configure with" +echo " -DHIP_PLATFORM=amd" +echo +echo "To use fp64 HW atomics you must configure with these options when using gfx90a and hip >= 5.2" +echo " -DCMAKE_CXX_FLAGS=\"-munsafe-fp-atomics\"" +echo +echo "To work around some issues where *_FUSED kernels crash add these options" +echo " -DCMAKE_CXX_FLAGS=\"-fgpu-rdc\"" +echo " -DCMAKE_EXE_LINKER_FLAGS=\"-fgpu-rdc\"" +echo +echo "To work around some issues where *_FUSED kernels perform poorly use this environment variable" +echo " env HSA_SCRATCH_SINGLE_LIMIT=4000000000" +echo +echo "To work around some issues where the build fails with a weird error about max or fmax add these options" +echo " -DCMAKE_CXX_FLAGS=\"--hip-version={hip_version:ex=6.1.2}\"" +echo " -DCMAKE_EXE_LINKER_FLAGS=\"--hip-version={hip_version:ex=6.1.2}\"" +echo + + + +rm -rf build_${BUILD_SUFFIX} >/dev/null +mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} + + +module load cmake/3.23.1 + +# unload rocm to avoid configuration problems where the loaded rocm and COMP_VER +# are inconsistent causing the rocprim from the module to be used unexpectedly +module unload rocm rocmcc + +if [[ "${COMP_VER}" == *-magic ]]; then + ROCM_PATH="/usr/tce/packages/rocmcc/rocmcc-${COMP_VER}" + MPI_ROCM_PATH="/usr/tce/packages/cray-mpich/cray-mpich-${MPI_VER}-rocmcc-${COMP_VER}" +else + ROCM_PATH="/opt/rocm-${COMP_VER}" + MPI_ROCM_PATH=/usr/tce/packages/cray-mpich-tce/cray-mpich-${MPI_VER}-rocmcc-${COMP_VER} +fi + +COMP_HIP_VER="${COMP_VER%-magic}" +COMP_CLANG_MAJOR_VER="$(ls /opt/rocm-${COMP_HIP_VER}/lib/llvm/lib/clang/)" + +cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DMPI_C_COMPILER="${MPI_ROCM_PATH}/bin/mpiamdclang" \ + -DMPI_CXX_COMPILER="${MPI_ROCM_PATH}/bin/mpiamdclang++" \ + -DCMAKE_PREFIX_PATH="${ROCM_PATH}/lib/cmake" \ + -DHIP_PLATFORM=amd \ + -DROCM_ROOT_DIR="${ROCM_PATH}" \ + -DHIP_ROOT_DIR="${ROCM_PATH}/hip" \ + -DHIP_PATH="${ROCM_PATH}/llvm/bin" \ + -DCMAKE_C_COMPILER="${ROCM_PATH}/llvm/bin/amdclang" \ + -DCMAKE_CXX_COMPILER="${ROCM_PATH}/llvm/bin/amdclang++" \ + -DCMAKE_HIP_ARCHITECTURES="${COMP_ARCH}:xnack+" \ + -DGPU_TARGETS="${COMP_ARCH}:xnack+" \ + -DAMDGPU_TARGETS="${COMP_ARCH}:xnack+" \ + -DCMAKE_C_FLAGS="-fsanitize=address -shared-libsan" \ + -DCMAKE_CXX_FLAGS="-fsanitize=address -shared-libsan" \ + -DCMAKE_HIP_FLAGS="-fsanitize=address -shared-libsan -fgpu-rdc --hip-version=${COMP_HIP_VER}" \ + -DCMAKE_EXE_LINKER_FLAGS="-L/opt/rocm-${COMP_HIP_VER}/lib/asan/ -L/opt/rocm-${COMP_HIP_VER}/llvm/lib/asan -Wl,-rpath,/opt/rocm-${COMP_HIP_VER}/lib/asan/:/opt/rocm-${COMP_HIP_VER}/llvm/lib/asan:/opt/rocm-${COMP_HIP_VER}/lib/llvm/lib/clang/${COMP_CLANG_MAJOR_VER}/lib/linux -fgpu-rdc --hip-version=${COMP_HIP_VER}" \ + -DBLT_CXX_STD=c++14 \ + -C ${RAJA_HOSTCONFIG} \ + -DENABLE_MPI=ON \ + -DENABLE_HIP=ON \ + -DENABLE_OPENMP=OFF \ + -DENABLE_CUDA=OFF \ + -DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ + "$@" \ + .. + +echo +echo "***********************************************************************" +echo +echo "cd into directory build_${BUILD_SUFFIX} and run make to build RAJA" +echo +echo " Please note that you have to have a consistent build environment" +echo " when you make RAJA as cmake may reconfigure; unload the rocm module" +echo " or load the appropriate rocm module (${COMP_VER}) when building." +echo +echo " module unload rocm" +echo " srun -n1 make" +echo +echo " Please note that rocm requires libpgmath.so from rocm/llvm to run." +echo " Until this is handled transparently in the build system you may add " +echo " rocm/llvm to your LD_LIBRARY_PATH." +echo +echo " export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/rocm-${COMP_VER}/llvm/lib" +echo +echo "***********************************************************************" diff --git a/scripts/lc-builds/toss4_cray-mpich_amdclang_caliper.sh b/scripts/lc-builds/toss4_cray-mpich_amdclang_caliper.sh new file mode 100755 index 000000000..1418b2228 --- /dev/null +++ b/scripts/lc-builds/toss4_cray-mpich_amdclang_caliper.sh @@ -0,0 +1,142 @@ +#!/usr/bin/env bash + +############################################################################### +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. +# +# SPDX-License-Identifier: (BSD-3-Clause) +############################################################################### + +if [[ $# -lt 5 ]]; then + echo + echo "You must pass 2 or more arguments to the script (in this order): " + echo " 1) cray-mpich compiler version number" + echo " 2) HIP compiler version number" + echo " 3) HIP compute architecture" + echo " 4) path to caliper cmake directory" + echo " 5) path to adiak cmake directory" + echo " 6...) optional arguments to cmake" + echo + echo "For example: " + echo " toss4_cray-mpich_amdclang.sh 8.1.14 4.1.0 gfx906 /usr/workspace/wsb/asde/caliper-quartz/share/cmake/caliper /usr/workspace/wsb/asde/caliper-quartz/lib/cmake/adiak" + exit +fi + +MPI_VER=$1 +COMP_VER=$2 +COMP_ARCH=$3 +CALI_DIR=$4 +ADIAK_DIR=$5 +shift 5 + +HOSTCONFIG="hip_3_X" + +if [[ ${COMP_VER} == 4.* ]] +then +##HIP_CLANG_FLAGS="-mllvm -amdgpu-fixed-function-abi=1" + HOSTCONFIG="hip_4_link_X" +elif [[ ${COMP_VER} == 3.* ]] +then + HOSTCONFIG="hip_3_X" +else + echo "Unknown hip version, using ${HOSTCONFIG} host-config" +fi + +# if [[ ${COMP_ARCH} == gfx90a ]] +# then + # note that unsafe atomics require use of coarse grain memory +##HIP_CLANG_FLAGS="-munsafe-fp-atomics" +# fi + +BUILD_SUFFIX=lc_toss4-cray-mpich-${MPI_VER}-amdclang-${COMP_VER}-${COMP_ARCH}_caliper +RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/lc-builds/toss4/${HOSTCONFIG}.cmake + +echo +echo "Creating build directory ${BUILD_SUFFIX} and generating configuration in it" +echo "Configuration extra arguments:" +echo " $@" +echo +echo "To get cmake to work you may have to configure with" +echo " -DHIP_PLATFORM=amd" +echo +echo "To use fp64 HW atomics you must configure with these options when using gfx90a and hip >= 5.2" +echo " -DCMAKE_CXX_FLAGS=\"-munsafe-fp-atomics\"" +echo +echo "To work around some issues where *_FUSED kernels crash add these options" +echo " -DCMAKE_CXX_FLAGS=\"-fgpu-rdc\"" +echo " -DCMAKE_EXE_LINKER_FLAGS=\"-fgpu-rdc\"" +echo +echo "To work around some issues where *_FUSED kernels perform poorly use this environment variable" +echo " env HSA_SCRATCH_SINGLE_LIMIT=4000000000" +echo +echo "To work around some issues where the build fails with a weird error about max or fmax add these options" +echo " -DCMAKE_CXX_FLAGS=\"--hip-version={hip_version:ex=6.1.2}\"" +echo " -DCMAKE_EXE_LINKER_FLAGS=\"--hip-version={hip_version:ex=6.1.2}\"" +echo + + + +rm -rf build_${BUILD_SUFFIX} >/dev/null +mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} + + +module load cmake/3.23.1 + +# unload rocm to avoid configuration problems where the loaded rocm and COMP_VER +# are inconsistent causing the rocprim from the module to be used unexpectedly +module unload rocm rocmcc + +if [[ "${COMP_VER}" == *-magic ]]; then + ROCM_PATH="/usr/tce/packages/rocmcc/rocmcc-${COMP_VER}" + MPI_ROCM_PATH="/usr/tce/packages/cray-mpich/cray-mpich-${MPI_VER}-rocmcc-${COMP_VER}" +else + ROCM_PATH="/opt/rocm-${COMP_VER}" + MPI_ROCM_PATH=/usr/tce/packages/cray-mpich-tce/cray-mpich-${MPI_VER}-rocmcc-${COMP_VER} +fi + +cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DMPI_C_COMPILER="${MPI_ROCM_PATH}/bin/mpiamdclang" \ + -DMPI_CXX_COMPILER="${MPI_ROCM_PATH}/bin/mpiamdclang++" \ + -DCMAKE_PREFIX_PATH="${ROCM_PATH}/lib/cmake" \ + -DHIP_PLATFORM=amd \ + -DROCM_ROOT_DIR="${ROCM_PATH}" \ + -DHIP_ROOT_DIR="${ROCM_PATH}/hip" \ + -DHIP_PATH="${ROCM_PATH}/llvm/bin" \ + -DCMAKE_C_COMPILER="${ROCM_PATH}/llvm/bin/amdclang" \ + -DCMAKE_CXX_COMPILER="${ROCM_PATH}/llvm/bin/amdclang++" \ + -DCMAKE_HIP_ARCHITECTURES="${COMP_ARCH}" \ + -DGPU_TARGETS="${COMP_ARCH}" \ + -DAMDGPU_TARGETS="${COMP_ARCH}" \ + -DBLT_CXX_STD=c++14 \ + -C ${RAJA_HOSTCONFIG} \ + -DENABLE_MPI=ON \ + -DENABLE_HIP=ON \ + -DENABLE_OPENMP=OFF \ + -DENABLE_CUDA=OFF \ + -DRAJA_PERFSUITE_USE_CALIPER=ON \ + -Dcaliper_DIR=${CALI_DIR} \ + -Dadiak_DIR=${ADIAK_DIR} \ + -DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ + "$@" \ + .. + +echo +echo "***********************************************************************" +echo +echo "cd into directory build_${BUILD_SUFFIX} and run make to build RAJA" +echo +echo " Please note that you have to have a consistent build environment" +echo " when you make RAJA as cmake may reconfigure; unload the rocm module" +echo " or load the appropriate rocm module (${COMP_VER}) when building." +echo +echo " module unload rocm" +echo " srun -n1 make" +echo +echo " Please note that rocm requires libpgmath.so from rocm/llvm to run." +echo " Until this is handled transparently in the build system you may add " +echo " rocm/llvm to your LD_LIBRARY_PATH." +echo +echo " export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/rocm-${COMP_VER}/llvm/lib" +echo +echo "***********************************************************************" diff --git a/scripts/lc-builds/toss4_gcc-mpi_caliper.sh b/scripts/lc-builds/toss4_gcc-mpi_caliper.sh index 62389ea73..aa1a4e025 100755 --- a/scripts/lc-builds/toss4_gcc-mpi_caliper.sh +++ b/scripts/lc-builds/toss4_gcc-mpi_caliper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -50,8 +50,6 @@ cmake \ -DRAJA_PERFSUITE_USE_CALIPER=ON \ -Dcaliper_DIR=${CALI_DIR} \ -Dadiak_DIR=${ADIAK_DIR} \ - -DCMAKE_C_FLAGS="-g -O0" \ - -DCMAKE_CXX_FLAGS="-g -O0" \ "$@" \ .. diff --git a/scripts/lc-builds/toss4_gcc.sh b/scripts/lc-builds/toss4_gcc.sh index 1d0a98af7..a140eac2a 100755 --- a/scripts/lc-builds/toss4_gcc.sh +++ b/scripts/lc-builds/toss4_gcc.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/lc-builds/toss4_gcc_caliper.sh b/scripts/lc-builds/toss4_gcc_caliper.sh index dad854b59..d6149b63e 100755 --- a/scripts/lc-builds/toss4_gcc_caliper.sh +++ b/scripts/lc-builds/toss4_gcc_caliper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -48,8 +48,6 @@ cmake \ -DRAJA_PERFSUITE_USE_CALIPER=ON \ -Dcaliper_DIR=${CALI_DIR} \ -Dadiak_DIR=${ADIAK_DIR} \ - -DCMAKE_C_FLAGS="-g -O0" \ - -DCMAKE_CXX_FLAGS="-g -O0" \ "$@" \ .. diff --git a/scripts/lc-builds/toss4_hipcc.sh b/scripts/lc-builds/toss4_hipcc.sh index 71642e1f1..209cbe098 100755 --- a/scripts/lc-builds/toss4_hipcc.sh +++ b/scripts/lc-builds/toss4_hipcc.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) @@ -52,7 +52,7 @@ rm -rf build_${BUILD_SUFFIX} >/dev/null mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} -module load cmake/3.23.1 +module load cmake/3.24.2 # unload rocm to avoid configuration problems where the loaded rocm and COMP_VER # are inconsistent causing the rocprim from the module to be used unexpectedly diff --git a/scripts/lc-builds/toss4_icpc-classic.sh b/scripts/lc-builds/toss4_icpc-classic.sh index dc042a369..dbda2f4c2 100755 --- a/scripts/lc-builds/toss4_icpc-classic.sh +++ b/scripts/lc-builds/toss4_icpc-classic.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/lc-builds/toss4_icpc.sh b/scripts/lc-builds/toss4_icpc.sh index 77d81605f..0484a8731 100755 --- a/scripts/lc-builds/toss4_icpc.sh +++ b/scripts/lc-builds/toss4_icpc.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/lc-builds/toss4_icpx.sh b/scripts/lc-builds/toss4_icpx.sh index 0a89683c3..48eaf354f 100755 --- a/scripts/lc-builds/toss4_icpx.sh +++ b/scripts/lc-builds/toss4_icpx.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/lc-builds/toss4_mvapich2_icpx.sh b/scripts/lc-builds/toss4_mvapich2_icpx.sh index def610fb2..5b5bcc6ad 100755 --- a/scripts/lc-builds/toss4_mvapich2_icpx.sh +++ b/scripts/lc-builds/toss4_mvapich2_icpx.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/make_release_tarball.sh b/scripts/make_release_tarball.sh index 1956d0436..e650b9724 100755 --- a/scripts/make_release_tarball.sh +++ b/scripts/make_release_tarball.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/scripts/travis_build_and_test.sh b/scripts/travis_build_and_test.sh index 027d41ed7..f1091b287 100755 --- a/scripts/travis_build_and_test.sh +++ b/scripts/travis_build_and_test.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/scripts/ubuntu-builds/ubuntu_amdclang.sh b/scripts/ubuntu-builds/ubuntu_amdclang.sh new file mode 100755 index 000000000..887b2efae --- /dev/null +++ b/scripts/ubuntu-builds/ubuntu_amdclang.sh @@ -0,0 +1,77 @@ +#!/usr/bin/env bash + +############################################################################### +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. +# +# SPDX-License-Identifier: (BSD-3-Clause) +############################################################################### + +if [[ $# -lt 2 ]]; then + echo + echo "You must pass 2 or more arguments to the script (in this order): " + echo " 1) compiler version number" + echo " 2) HIP compute architecture" + echo " 3...) optional arguments to cmake" + echo + echo "For example: " + echo " toss4_amdclang.sh 6.4.1 gfx1201" + exit +fi + +COMP_VER=$1 +COMP_ARCH=$2 +shift 2 + +HOSTCONFIG="clang_X" + +BUILD_SUFFIX=lc_toss4-amdclang-${COMP_VER}-${COMP_ARCH} +RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/ubuntu-builds/${HOSTCONFIG}.cmake + +echo +echo "Creating build directory ${BUILD_SUFFIX} and generating configuration in it" +echo "Configuration extra arguments:" +echo " $@" +echo +echo "To get cmake to work you may have to configure with" +echo " -DHIP_PLATFORM=amd" +echo +echo "To use fp64 HW atomics you must configure with these options when using gfx90a and hip >= 5.2" +echo " -DCMAKE_CXX_FLAGS=\"-munsafe-fp-atomics\"" +echo + +rm -rf build_${BUILD_SUFFIX} >/dev/null +mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} + + +# unload rocm to avoid configuration problems where the loaded rocm and COMP_VER +# are inconsistent causing the rocprim from the module to be used unexpectedly +# module unload rocm + +ROCM_PATH="/opt/rocm-${COMP_VER}" + +cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DROCM_ROOT_DIR="${ROCM_PATH}" \ + -DHIP_ROOT_DIR="${ROCM_PATH}/hip" \ + -DHIP_PATH=${ROCM_PATH}/llvm/bin \ + -DCMAKE_C_COMPILER=${ROCM_PATH}/llvm/bin/amdclang \ + -DCMAKE_CXX_COMPILER=${ROCM_PATH}/llvm/bin/amdclang++ \ + -DCMAKE_HIP_ARCHITECTURES="${COMP_ARCH}" \ + -DGPU_TARGETS="${COMP_ARCH}" \ + -DAMDGPU_TARGETS="${COMP_ARCH}" \ + -DBLT_CXX_STD=c++14 \ + -C ${RAJA_HOSTCONFIG} \ + -DENABLE_HIP=ON \ + -DENABLE_OPENMP=ON \ + -DENABLE_CUDA=OFF \ + -DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ + "$@" \ + .. + +echo +echo "***********************************************************************" +echo +echo "cd into directory build_${BUILD_SUFFIX} and run make to build RAJAPerf" +echo +echo "***********************************************************************" diff --git a/scripts/ubuntu-builds/ubuntu_clang.sh b/scripts/ubuntu-builds/ubuntu_clang.sh index 7ddba9a7d..fa3791826 100755 --- a/scripts/ubuntu-builds/ubuntu_clang.sh +++ b/scripts/ubuntu-builds/ubuntu_clang.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/ubuntu-builds/ubuntu_gcc.sh b/scripts/ubuntu-builds/ubuntu_gcc.sh index e40c65482..e301ee28c 100755 --- a/scripts/ubuntu-builds/ubuntu_gcc.sh +++ b/scripts/ubuntu-builds/ubuntu_gcc.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA project contributors. See the RAJAPerf/LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) diff --git a/scripts/update_copyright.sh b/scripts/update_copyright.sh index 527e42d43..f1a801989 100755 --- a/scripts/update_copyright.sh +++ b/scripts/update_copyright.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -47,18 +47,18 @@ for i in `cat files2change` do echo $i cp $i $i.sed.bak - sed "s/Copyright (c) 2017-23/Copyright (c) 2017-24/" $i.sed.bak > $i + sed "s/Copyright (c) 2017-24/Copyright (c) 2017-25/" $i.sed.bak > $i done echo LICENSE cp LICENSE LICENSE.sed.bak -sed "s/Copyright (c) 2017-2023/Copyright (c) 2017-2024/" LICENSE.sed.bak > LICENSE +sed "s/Copyright (c) 2017-2024/Copyright (c) 2017-2025/" LICENSE.sed.bak > LICENSE for i in RELEASE README.md docs/conf.py do echo $i cp $i $i.sed.bak - sed "s/2017-23/2017-24/" $i.sed.bak > $i + sed "s/2017-24/2017-25/" $i.sed.bak > $i done #============================================================================= diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f60d14744..75e5c734e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -54,6 +54,9 @@ blt_add_executable( apps/ENERGY.cpp apps/ENERGY-Seq.cpp apps/ENERGY-OMPTarget.cpp + apps/FEMSWEEP.cpp + apps/FEMSWEEP-Seq.cpp + apps/FEMSWEEP-OMPTarget.cpp apps/FIR.cpp apps/FIR-Seq.cpp apps/FIR-OMPTarget.cpp @@ -96,6 +99,9 @@ blt_add_executable( basic/DAXPY_ATOMIC.cpp basic/DAXPY_ATOMIC-Seq.cpp basic/DAXPY_ATOMIC-OMPTarget.cpp + basic/EMPTY.cpp + basic/EMPTY-Seq.cpp + basic/EMPTY-OMPTarget.cpp basic/IF_QUAD.cpp basic/IF_QUAD-Seq.cpp basic/IF_QUAD-OMPTarget.cpp diff --git a/src/RAJAPerfSuiteDriver.cpp b/src/RAJAPerfSuiteDriver.cpp index 7aa549262..6291c599d 100644 --- a/src/RAJAPerfSuiteDriver.cpp +++ b/src/RAJAPerfSuiteDriver.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -21,6 +21,19 @@ //------------------------------------------------------------------------------ int main( int argc, char** argv ) { +#if defined(RAJA_PERFSUITE_USE_CALIPER) + // Retrieve the value of CALI_CONFIG + const char* caliConfigValue = getenv("CALI_CONFIG"); + if (caliConfigValue) { + // unset CALI_CONFIG and Copy CALI_CONFIG to DISABLED_CALI_CONFIG + if (unsetenv("CALI_CONFIG") == 0 && setenv("DISABLED_CALI_CONFIG", caliConfigValue, 1) == 0) { + std::cout << "Configuration options in CALI_CONFIG will be parsed and added to the internal RAJAPerf Caliper config manager." << std::endl; + } else { + throw std::runtime_error("main: Failed to update environment variables. Unable to set DISABLED_CALI_CONFIG or unset CALI_CONFIG."); + } + } +#endif + #if defined(RAJA_PERFSUITE_ENABLE_MPI) MPI_Init(&argc, &argv); diff --git a/src/algorithm/ATOMIC-Cuda.cpp b/src/algorithm/ATOMIC-Cuda.cpp index a286c60d2..1dffd6092 100644 --- a/src/algorithm/ATOMIC-Cuda.cpp +++ b/src/algorithm/ATOMIC-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -111,7 +111,7 @@ void ATOMIC::runCudaVariantReplicateGlobal(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=] __device__ (Index_type i) { ATOMIC_RAJA_BODY(RAJA::cuda_atomic, i, ATOMIC_VALUE); }); diff --git a/src/algorithm/ATOMIC-Hip.cpp b/src/algorithm/ATOMIC-Hip.cpp index fbb103596..11ea37385 100644 --- a/src/algorithm/ATOMIC-Hip.cpp +++ b/src/algorithm/ATOMIC-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -24,7 +24,7 @@ namespace rajaperf namespace algorithm { -const size_t warp_size = 64; +const size_t warp_size = RAJA_HIP_WAVESIZE; template < size_t block_size, size_t replication > __launch_bounds__(block_size) @@ -111,7 +111,7 @@ void ATOMIC::runHipVariantReplicateGlobal(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=] __device__ (Index_type i) { ATOMIC_RAJA_BODY(RAJA::hip_atomic, i, ATOMIC_VALUE); }); diff --git a/src/algorithm/ATOMIC-OMP.cpp b/src/algorithm/ATOMIC-OMP.cpp index ae3863bb1..606a38922 100644 --- a/src/algorithm/ATOMIC-OMP.cpp +++ b/src/algorithm/ATOMIC-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -71,10 +71,12 @@ void ATOMIC::runOpenMPVariantReplicate(VariantID vid) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ATOMIC_RAJA_BODY(RAJA::omp_atomic, i, ATOMIC_VALUE); }); diff --git a/src/algorithm/ATOMIC-OMPTarget.cpp b/src/algorithm/ATOMIC-OMPTarget.cpp index 2c7bb7203..63479e8d8 100644 --- a/src/algorithm/ATOMIC-OMPTarget.cpp +++ b/src/algorithm/ATOMIC-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void ATOMIC::runOpenMPTargetVariantReplicate(VariantID vid) } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ATOMIC_RAJA_BODY(RAJA::omp_atomic, i, ATOMIC_VALUE); }); diff --git a/src/algorithm/ATOMIC-Seq.cpp b/src/algorithm/ATOMIC-Seq.cpp index 1cccb8a6b..9c174430d 100644 --- a/src/algorithm/ATOMIC-Seq.cpp +++ b/src/algorithm/ATOMIC-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -66,10 +66,13 @@ void ATOMIC::runSeqVariantReplicate(VariantID vid) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ATOMIC_RAJA_BODY(RAJA::seq_atomic, i, ATOMIC_VALUE); }); diff --git a/src/algorithm/ATOMIC.cpp b/src/algorithm/ATOMIC.cpp index 8da1c2421..2f163a61a 100644 --- a/src/algorithm/ATOMIC.cpp +++ b/src/algorithm/ATOMIC.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ ATOMIC::ATOMIC(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 1*sizeof(Real_type) * getActualProblemSize() ); setFLOPsPerRep(getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Atomic); diff --git a/src/algorithm/ATOMIC.hpp b/src/algorithm/ATOMIC.hpp index 55ab41ad8..acdce2a4d 100644 --- a/src/algorithm/ATOMIC.hpp +++ b/src/algorithm/ATOMIC.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -25,10 +25,19 @@ #define ATOMIC_DATA_TEARDOWN(replication) \ { \ - auto reset_atomic = scopedMoveData(atomic, replication, vid); \ + Real_ptr atomic_host = atomic; \ + DataSpace ds = getDataSpace(vid); \ + DataSpace hds = rajaperf::hostCopyDataSpace(ds); \ + if (ds != hds) { \ + rajaperf::allocData(hds, atomic_host, replication, getDataAlignment()); \ + rajaperf::copyData(hds, atomic_host, ds, atomic, replication); \ + } \ m_final = init; \ for (size_t r = 0; r < replication; ++r ) { \ - m_final += atomic[r]; \ + m_final += atomic_host[r]; \ + } \ + if (ds != hds) { \ + rajaperf::deallocData(hds, atomic_host); \ } \ } \ deallocData(atomic, vid); @@ -68,7 +77,6 @@ class ATOMIC : public KernelBase void runCudaVariant(VariantID vid, size_t tune_idx); void runHipVariant(VariantID vid, size_t tune_idx); void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); - void runKokkosVariant(VariantID vid, size_t tune_idx); void setSeqTuningDefinitions(VariantID vid); void setOpenMPTuningDefinitions(VariantID vid); @@ -78,20 +86,25 @@ class ATOMIC : public KernelBase template < size_t replication > void runSeqVariantReplicate(VariantID vid); + template < size_t replication > void runOpenMPVariantReplicate(VariantID vid); + template < size_t block_size, size_t replication > void runCudaVariantReplicateGlobal(VariantID vid); template < size_t block_size, size_t replication > void runHipVariantReplicateGlobal(VariantID vid); template < size_t block_size, size_t replication > + void runCudaVariantReplicateWarp(VariantID vid); template < size_t block_size, size_t replication > void runHipVariantReplicateWarp(VariantID vid); + template < size_t block_size, size_t replication > void runCudaVariantReplicateBlock(VariantID vid); template < size_t block_size, size_t replication > void runHipVariantReplicateBlock(VariantID vid); + template < size_t replication > void runOpenMPTargetVariantReplicate(VariantID vid); diff --git a/src/algorithm/CMakeLists.txt b/src/algorithm/CMakeLists.txt index 515c35baa..7b57ba226 100644 --- a/src/algorithm/CMakeLists.txt +++ b/src/algorithm/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/algorithm/HISTOGRAM-Cuda.cpp b/src/algorithm/HISTOGRAM-Cuda.cpp index 0bc363ee3..5357e698f 100644 --- a/src/algorithm/HISTOGRAM-Cuda.cpp +++ b/src/algorithm/HISTOGRAM-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/HISTOGRAM-Hip.cpp b/src/algorithm/HISTOGRAM-Hip.cpp index 5a25bca5c..523c5290e 100644 --- a/src/algorithm/HISTOGRAM-Hip.cpp +++ b/src/algorithm/HISTOGRAM-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -29,7 +29,7 @@ namespace rajaperf namespace algorithm { -constexpr Index_type warp_size = 64; +constexpr Index_type warp_size = RAJA_HIP_WAVESIZE; template < Index_type block_size > __launch_bounds__(block_size) diff --git a/src/algorithm/HISTOGRAM-OMP.cpp b/src/algorithm/HISTOGRAM-OMP.cpp index 87b554b47..2bc2ac70f 100644 --- a/src/algorithm/HISTOGRAM-OMP.cpp +++ b/src/algorithm/HISTOGRAM-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -86,12 +86,14 @@ void HISTOGRAM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { HISTOGRAM_INIT_COUNTS_RAJA(RAJA::omp_multi_reduce); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { HISTOGRAM_BODY; }); diff --git a/src/algorithm/HISTOGRAM-OMPTarget.cpp b/src/algorithm/HISTOGRAM-OMPTarget.cpp index 033f309c9..28784da9d 100644 --- a/src/algorithm/HISTOGRAM-OMPTarget.cpp +++ b/src/algorithm/HISTOGRAM-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -37,10 +37,12 @@ void HISTOGRAM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG if ( vid == Base_OpenMPTarget ) { + HISTOGRAM_SETUP_COUNTS; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - initOpenMPDeviceData(counts, counts_init, num_bins); + initOpenMPDeviceData(counts, counts_init.data(), num_bins); #pragma omp target is_device_ptr(counts, bins) #pragma omp teams distribute parallel for thread_limit(threads_per_team) schedule(static, 1) @@ -49,11 +51,13 @@ void HISTOGRAM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG HISTOGRAM_BODY; } - getOpenMPDeviceData(counts_final, counts, num_bins); + getOpenMPDeviceData(counts_final.data(), counts, num_bins); } stopTimer(); + HISTOGRAM_TEARDOWN_COUNTS; + } else { getCout() << "\n HISTOGRAM : Unknown OMP Target variant id = " << vid << std::endl; } diff --git a/src/algorithm/HISTOGRAM-Seq.cpp b/src/algorithm/HISTOGRAM-Seq.cpp index e41ab171e..c8841e38c 100644 --- a/src/algorithm/HISTOGRAM-Seq.cpp +++ b/src/algorithm/HISTOGRAM-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -81,12 +81,15 @@ void HISTOGRAM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { HISTOGRAM_INIT_COUNTS_RAJA(RAJA::seq_multi_reduce); - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { HISTOGRAM_BODY; }); diff --git a/src/algorithm/HISTOGRAM.cpp b/src/algorithm/HISTOGRAM.cpp index 60ad2975e..5104a96c2 100644 --- a/src/algorithm/HISTOGRAM.cpp +++ b/src/algorithm/HISTOGRAM.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -40,6 +40,8 @@ HISTOGRAM::HISTOGRAM(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Atomic); @@ -68,66 +70,63 @@ HISTOGRAM::~HISTOGRAM() void HISTOGRAM::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { - allocData(m_bins, getActualProblemSize(), vid); - { - auto reset_bins = scopedMoveData(m_bins, getActualProblemSize(), vid); - - const bool init_random_per_iterate = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Random); - const bool init_random_sizes = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsRandomSizes); - const bool init_even_sizes = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsEvenSizes); - const bool init_all_one = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Single); - - if (init_even_sizes || init_random_sizes || init_all_one) { - Real_ptr data = nullptr; - if (init_even_sizes) { - allocData(data, m_num_bins, Base_Seq); - for (Index_type b = 0; b < m_num_bins; ++b) { - data[b] = static_cast(b+1) / m_num_bins; - } - } else if (init_random_sizes) { - allocAndInitDataRandValue(data, m_num_bins, Base_Seq); - std::sort(data, data+m_num_bins); - } else if (init_all_one) { - allocData(data, m_num_bins, Base_Seq); - for (Index_type b = 0; b < m_num_bins; ++b) { - data[b] = static_cast(0); - } + auto reset_bins = allocDataForInit(m_bins, getActualProblemSize(), vid); + + const bool init_random_per_iterate = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Random); + const bool init_random_sizes = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsRandomSizes); + const bool init_even_sizes = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsEvenSizes); + const bool init_all_one = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Single); + + if (init_even_sizes || init_random_sizes || init_all_one) { + Real_ptr data = nullptr; + if (init_even_sizes) { + allocData(data, m_num_bins, Base_Seq); + for (Index_type b = 0; b < m_num_bins; ++b) { + data[b] = static_cast(b+1) / m_num_bins; + } + } else if (init_random_sizes) { + allocAndInitDataRandValue(data, m_num_bins, Base_Seq); + std::sort(data, data+m_num_bins); + } else if (init_all_one) { + allocData(data, m_num_bins, Base_Seq); + for (Index_type b = 0; b < m_num_bins; ++b) { + data[b] = static_cast(0); } + } - Index_type actual_prob_size = getActualProblemSize(); - Index_type bin = 0; - for (Index_type i = 0; i < actual_prob_size; ++i) { - Real_type pos = static_cast(i) / actual_prob_size; - while (bin+1 < m_num_bins && pos >= data[bin]) { - bin += 1; - } - m_bins[i] = bin; + Index_type actual_prob_size = getActualProblemSize(); + Index_type bin = 0; + for (Index_type i = 0; i < actual_prob_size; ++i) { + Real_type pos = static_cast(i) / actual_prob_size; + while (bin+1 < m_num_bins && pos >= data[bin]) { + bin += 1; } + m_bins[i] = bin; + } - deallocData(data, Base_Seq); + deallocData(data, Base_Seq); - } else if (init_random_per_iterate) { - Real_ptr data; - allocAndInitDataRandValue(data, getActualProblemSize(), Base_Seq); + } else if (init_random_per_iterate) { + Real_ptr data; + allocAndInitDataRandValue(data, getActualProblemSize(), Base_Seq); - for (Index_type i = 0; i < getActualProblemSize(); ++i) { - m_bins[i] = static_cast(data[i] * m_num_bins); - if (m_bins[i] >= m_num_bins) { - m_bins[i] = m_num_bins - 1; - } - if (m_bins[i] < 0) { - m_bins[i] = 0; - } + for (Index_type i = 0; i < getActualProblemSize(); ++i) { + m_bins[i] = static_cast(data[i] * m_num_bins); + if (m_bins[i] >= m_num_bins) { + m_bins[i] = m_num_bins - 1; + } + if (m_bins[i] < 0) { + m_bins[i] = 0; } - - deallocData(data, Base_Seq); - } else { - throw 1; } + + deallocData(data, Base_Seq); + } else { + throw 1; } m_counts_init.resize(m_num_bins, 0); diff --git a/src/algorithm/HISTOGRAM.hpp b/src/algorithm/HISTOGRAM.hpp index 2752f2c92..b64ec02f3 100644 --- a/src/algorithm/HISTOGRAM.hpp +++ b/src/algorithm/HISTOGRAM.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -101,10 +101,10 @@ class HISTOGRAM : public KernelBase void runCudaVariant(VariantID vid, size_t tune_idx); void runHipVariant(VariantID vid, size_t tune_idx); void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); - void runKokkosVariant(VariantID vid, size_t tune_idx); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + void runCudaVariantLibrary(VariantID vid); void runHipVariantLibrary(VariantID vid); diff --git a/src/algorithm/MEMCPY-Cuda.cpp b/src/algorithm/MEMCPY-Cuda.cpp index 9f0fda034..b66345bdf 100644 --- a/src/algorithm/MEMCPY-Cuda.cpp +++ b/src/algorithm/MEMCPY-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/MEMCPY-Hip.cpp b/src/algorithm/MEMCPY-Hip.cpp index 0e880c1b4..670e7b7d2 100644 --- a/src/algorithm/MEMCPY-Hip.cpp +++ b/src/algorithm/MEMCPY-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/MEMCPY-OMP.cpp b/src/algorithm/MEMCPY-OMP.cpp index 184f897bf..d27de97de 100644 --- a/src/algorithm/MEMCPY-OMP.cpp +++ b/src/algorithm/MEMCPY-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void MEMCPY::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MEMCPY_BODY; diff --git a/src/algorithm/MEMCPY-OMPTarget.cpp b/src/algorithm/MEMCPY-OMPTarget.cpp index 0b3536d42..e16479357 100644 --- a/src/algorithm/MEMCPY-OMPTarget.cpp +++ b/src/algorithm/MEMCPY-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void MEMCPY::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MEMCPY_BODY; diff --git a/src/algorithm/MEMCPY-Seq.cpp b/src/algorithm/MEMCPY-Seq.cpp index 57c3f219f..b9887a027 100644 --- a/src/algorithm/MEMCPY-Seq.cpp +++ b/src/algorithm/MEMCPY-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -44,7 +44,7 @@ void MEMCPY::runSeqVariantLibrary(VariantID vid) #if defined(RUN_RAJA_SEQ) case RAJA_Seq : { - camp::resources::Host res = camp::resources::Host::get_default(); + auto res{getHostResource()}; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { @@ -113,10 +113,13 @@ void MEMCPY::runSeqVariantDefault(VariantID vid) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MEMCPY_BODY; }); diff --git a/src/algorithm/MEMCPY.cpp b/src/algorithm/MEMCPY.cpp index f8ced7ac7..d5f28a5f3 100644 --- a/src/algorithm/MEMCPY.cpp +++ b/src/algorithm/MEMCPY.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ MEMCPY::MEMCPY(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/algorithm/MEMCPY.hpp b/src/algorithm/MEMCPY.hpp index b6cd49038..90f506613 100644 --- a/src/algorithm/MEMCPY.hpp +++ b/src/algorithm/MEMCPY.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -58,6 +58,7 @@ class MEMCPY : public KernelBase void setSeqTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + void runSeqVariantDefault(VariantID vid); void runSeqVariantLibrary(VariantID vid); diff --git a/src/algorithm/MEMSET-Cuda.cpp b/src/algorithm/MEMSET-Cuda.cpp index d0c60e97d..50a0cb62b 100644 --- a/src/algorithm/MEMSET-Cuda.cpp +++ b/src/algorithm/MEMSET-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/MEMSET-Hip.cpp b/src/algorithm/MEMSET-Hip.cpp index c838aed28..cde830adf 100644 --- a/src/algorithm/MEMSET-Hip.cpp +++ b/src/algorithm/MEMSET-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/MEMSET-OMP.cpp b/src/algorithm/MEMSET-OMP.cpp index 66a6e027c..3501a2162 100644 --- a/src/algorithm/MEMSET-OMP.cpp +++ b/src/algorithm/MEMSET-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void MEMSET::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MEMSET_BODY; diff --git a/src/algorithm/MEMSET-OMPTarget.cpp b/src/algorithm/MEMSET-OMPTarget.cpp index cee5a8577..867d9fe24 100644 --- a/src/algorithm/MEMSET-OMPTarget.cpp +++ b/src/algorithm/MEMSET-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void MEMSET::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MEMSET_BODY; diff --git a/src/algorithm/MEMSET-Seq.cpp b/src/algorithm/MEMSET-Seq.cpp index 3064e7cb1..e920088e8 100644 --- a/src/algorithm/MEMSET-Seq.cpp +++ b/src/algorithm/MEMSET-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -45,7 +45,7 @@ void MEMSET::runSeqVariantLibrary(VariantID vid) #if defined(RUN_RAJA_SEQ) case RAJA_Seq : { - camp::resources::Host res = camp::resources::Host::get_default(); + auto res{getHostResource()}; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { @@ -113,11 +113,14 @@ void MEMSET::runSeqVariantDefault(VariantID vid) } case RAJA_Seq : { + + auto res{getHostResource()}; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MEMSET_BODY; }); diff --git a/src/algorithm/MEMSET.cpp b/src/algorithm/MEMSET.cpp index 04ad4f52c..638abf20a 100644 --- a/src/algorithm/MEMSET.cpp +++ b/src/algorithm/MEMSET.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ MEMSET::MEMSET(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/algorithm/MEMSET.hpp b/src/algorithm/MEMSET.hpp index 0266c9e1a..2719751bf 100644 --- a/src/algorithm/MEMSET.hpp +++ b/src/algorithm/MEMSET.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -58,6 +58,7 @@ class MEMSET : public KernelBase void setSeqTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + void runSeqVariantDefault(VariantID vid); void runSeqVariantLibrary(VariantID vid); diff --git a/src/algorithm/REDUCE_SUM-Cuda.cpp b/src/algorithm/REDUCE_SUM-Cuda.cpp index 302ab35d6..9ff12822a 100644 --- a/src/algorithm/REDUCE_SUM-Cuda.cpp +++ b/src/algorithm/REDUCE_SUM-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -239,7 +239,8 @@ void REDUCE_SUM::runCudaVariantRAJANewReduce(VariantID vid) RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsum), - [=] __device__ (Index_type i, Real_type& sum) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& sum) { REDUCE_SUM_BODY; } ); diff --git a/src/algorithm/REDUCE_SUM-Hip.cpp b/src/algorithm/REDUCE_SUM-Hip.cpp index 831978015..397353c5f 100644 --- a/src/algorithm/REDUCE_SUM-Hip.cpp +++ b/src/algorithm/REDUCE_SUM-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -266,7 +266,8 @@ void REDUCE_SUM::runHipVariantRAJANewReduce(VariantID vid) RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsum), - [=] __device__ (Index_type i, Real_type& sum) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& sum) { REDUCE_SUM_BODY; } ); diff --git a/src/algorithm/REDUCE_SUM-OMP.cpp b/src/algorithm/REDUCE_SUM-OMP.cpp index 1295887f5..e8f4dc232 100644 --- a/src/algorithm/REDUCE_SUM-OMP.cpp +++ b/src/algorithm/REDUCE_SUM-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,6 +76,8 @@ void REDUCE_SUM::runOpenMPVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -83,7 +85,7 @@ void REDUCE_SUM::runOpenMPVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum sum(m_sum_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { REDUCE_SUM_BODY; @@ -101,10 +103,11 @@ void REDUCE_SUM::runOpenMPVariant(VariantID vid, size_t tune_idx) Real_type tsum = m_sum_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsum), - [=] (Index_type i, Real_type& sum) { + [=] (Index_type i, + RAJA::expt::ValOp& sum) { REDUCE_SUM_BODY; } ); diff --git a/src/algorithm/REDUCE_SUM-OMPTarget.cpp b/src/algorithm/REDUCE_SUM-OMPTarget.cpp index 1c1be1ab7..5666e75d7 100644 --- a/src/algorithm/REDUCE_SUM-OMPTarget.cpp +++ b/src/algorithm/REDUCE_SUM-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -27,7 +27,7 @@ namespace algorithm const size_t threads_per_team = 256; -void REDUCE_SUM::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) +void REDUCE_SUM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -56,47 +56,26 @@ void REDUCE_SUM::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } else if ( vid == RAJA_OpenMPTarget ) { - if (tune_idx == 0) { + auto res{getOmpTargetResource()}; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - RAJA::ReduceSum sum(m_sum_init); - - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - [=](Index_type i) { - REDUCE_SUM_BODY; - }); - - m_sum = sum.get(); - - } - stopTimer(); - - } else if (tune_idx == 1) { - - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - Real_type tsum = m_sum_init; + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tsum), - [=] (Index_type i, Real_type& sum) { - REDUCE_SUM_BODY; - } - ); + Real_type tsum = m_sum_init; - m_sum = static_cast(tsum); + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&tsum), + [=] (Index_type i, + RAJA::expt::ValOp& sum) { + REDUCE_SUM_BODY; + } + ); - } - stopTimer(); + m_sum = static_cast(tsum); - } else { - getCout() << "\n REDUCE_SUM : Unknown OMP Target tuning index = " << tune_idx << std::endl; } + stopTimer(); } else { getCout() << "\n REDUCE_SUM : Unknown OMP Target variant id = " << vid << std::endl; @@ -104,14 +83,6 @@ void REDUCE_SUM::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } -void REDUCE_SUM::setOpenMPTargetTuningDefinitions(VariantID vid) -{ - addVariantTuningName(vid, "default"); - if (vid == RAJA_OpenMPTarget) { - addVariantTuningName(vid, "new"); - } -} - } // end namespace algorithm } // end namespace rajaperf diff --git a/src/algorithm/REDUCE_SUM-Seq.cpp b/src/algorithm/REDUCE_SUM-Seq.cpp index 8d4fdacb2..e68672aaf 100644 --- a/src/algorithm/REDUCE_SUM-Seq.cpp +++ b/src/algorithm/REDUCE_SUM-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,6 +76,8 @@ void REDUCE_SUM::runSeqVariant(VariantID vid, size_t tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -83,7 +85,8 @@ void REDUCE_SUM::runSeqVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum sum(m_sum_init); - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { REDUCE_SUM_BODY; }); @@ -100,9 +103,11 @@ void REDUCE_SUM::runSeqVariant(VariantID vid, size_t tune_idx) Real_type tsum = m_sum_init; - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsum), - [=] (Index_type i, Real_type& sum) { + [=] (Index_type i, + RAJA::expt::ValOp& sum) { REDUCE_SUM_BODY; } ); diff --git a/src/algorithm/REDUCE_SUM-Sycl.cpp b/src/algorithm/REDUCE_SUM-Sycl.cpp index 516048863..0c74e670d 100644 --- a/src/algorithm/REDUCE_SUM-Sycl.cpp +++ b/src/algorithm/REDUCE_SUM-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,11 +76,13 @@ void REDUCE_SUM::runSyclVariantImpl(VariantID vid) for (RepIndex_type irep = 0; irep < run_reps; ++irep) { Real_type tsum = m_sum_init; + RAJA::forall< RAJA::sycl_exec >( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsum), - [=] (Index_type i, Real_type& sum) { + [=] (Index_type i, + RAJA::expt::ValOp& sum) { REDUCE_SUM_BODY; } ); diff --git a/src/algorithm/REDUCE_SUM.cpp b/src/algorithm/REDUCE_SUM.cpp index 4aebb5b0f..8adb472a4 100644 --- a/src/algorithm/REDUCE_SUM.cpp +++ b/src/algorithm/REDUCE_SUM.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ REDUCE_SUM::REDUCE_SUM(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Reduction); diff --git a/src/algorithm/REDUCE_SUM.hpp b/src/algorithm/REDUCE_SUM.hpp index c9f1a3c74..b0e504349 100644 --- a/src/algorithm/REDUCE_SUM.hpp +++ b/src/algorithm/REDUCE_SUM.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -64,7 +64,6 @@ class REDUCE_SUM : public KernelBase void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); - void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); void runCudaVariantCub(VariantID vid); diff --git a/src/algorithm/SCAN-Cuda.cpp b/src/algorithm/SCAN-Cuda.cpp index 977c91e24..f5b717445 100644 --- a/src/algorithm/SCAN-Cuda.cpp +++ b/src/algorithm/SCAN-Cuda.cpp @@ -33,12 +33,12 @@ using cuda_items_per_thread_type = integer::make_gpu_items_per_thread_list_type< template < size_t block_size, size_t items_per_thread > __launch_bounds__(block_size) -__global__ void scan(Real_ptr x, - Real_ptr y, - Real_ptr block_counts, - Real_ptr grid_counts, - unsigned* block_readys, - Index_type iend) +__global__ void scan_custom(Real_ptr x, + Real_ptr y, + Real_ptr block_counts, + Real_ptr grid_counts, + unsigned* block_readys, + Index_type iend) { // blocks do start running in order in cuda, so a block with a higher // index can wait on a block with a lower index without deadlocking @@ -141,7 +141,7 @@ void SCAN::runCudaVariantLibrary(VariantID vid) } template < size_t block_size, size_t items_per_thread > -void SCAN::runCudaVariantImpl(VariantID vid) +void SCAN::runCudaVariantCustom(VariantID vid) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -168,7 +168,7 @@ void SCAN::runCudaVariantImpl(VariantID vid) cudaErrchk( cudaMemsetAsync(block_readys, 0, sizeof(unsigned)*grid_size, res.get_stream()) ); - RPlaunchCudaKernel( (scan), + RPlaunchCudaKernel( (scan_custom), grid_size, block_size, shmem_size, res.get_stream(), x+ibegin, y+ibegin, @@ -203,7 +203,7 @@ void SCAN::runCudaVariant(VariantID vid, size_t tune_idx) t += 1; - if ( vid == Base_CUDA ) { + if ( vid == Base_CUDA && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { @@ -216,7 +216,7 @@ void SCAN::runCudaVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runCudaVariantImpl::value >(vid); @@ -234,7 +234,7 @@ void SCAN::runCudaVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runCudaVariantImpl(vid); + runCudaVariantCustom(vid); } @@ -263,7 +263,7 @@ void SCAN::setCudaTuningDefinitions(VariantID vid) addVariantTuningName(vid, "cub"); - if ( vid == Base_CUDA ) { + if ( vid == Base_CUDA && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { diff --git a/src/algorithm/SCAN-Hip.cpp b/src/algorithm/SCAN-Hip.cpp index 22f0bea57..0d7693ed2 100644 --- a/src/algorithm/SCAN-Hip.cpp +++ b/src/algorithm/SCAN-Hip.cpp @@ -38,12 +38,12 @@ using hip_items_per_thread_type = integer::make_gpu_items_per_thread_list_type< template < size_t block_size, size_t items_per_thread > __launch_bounds__(block_size) -__global__ void scan(Real_ptr x, - Real_ptr y, - Real_ptr block_counts, - Real_ptr grid_counts, - unsigned* block_readys, - Index_type iend) +__global__ void scan_custom(Real_ptr x, + Real_ptr y, + Real_ptr block_counts, + Real_ptr grid_counts, + unsigned* block_readys, + Index_type iend) { // It looks like blocks do not start running in order in hip, so a block // with a higher index can't wait on a block with a lower index without @@ -168,7 +168,7 @@ void SCAN::runHipVariantLibrary(VariantID vid) } template < size_t block_size, size_t items_per_thread > -void SCAN::runHipVariantImpl(VariantID vid) +void SCAN::runHipVariantCustom(VariantID vid) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -196,7 +196,7 @@ void SCAN::runHipVariantImpl(VariantID vid) hipErrchk( hipMemsetAsync(block_readys, 0, sizeof(unsigned)*grid_size, res.get_stream()) ); - RPlaunchHipKernel( (scan), + RPlaunchHipKernel( (scan_custom), grid_size, block_size, shmem_size, res.get_stream(), x+ibegin, y+ibegin, @@ -230,7 +230,7 @@ void SCAN::runHipVariant(VariantID vid, size_t tune_idx) t += 1; - if ( vid == Base_HIP ) { + if ( vid == Base_HIP && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { @@ -243,7 +243,7 @@ void SCAN::runHipVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runHipVariantImpl::value >(vid); @@ -261,7 +261,7 @@ void SCAN::runHipVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runHipVariantImpl(vid); + runHipVariantCustom(vid); } @@ -289,7 +289,7 @@ void SCAN::setHipTuningDefinitions(VariantID vid) addVariantTuningName(vid, "rocprim"); - if ( vid == Base_HIP ) { + if ( vid == Base_HIP && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { diff --git a/src/algorithm/SCAN-OMP.cpp b/src/algorithm/SCAN-OMP.cpp index 920a4b8e6..1d11ebc67 100644 --- a/src/algorithm/SCAN-OMP.cpp +++ b/src/algorithm/SCAN-OMP.cpp @@ -163,10 +163,12 @@ void SCAN::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::exclusive_scan(RAJA_SCAN_ARGS); + RAJA::exclusive_scan(res, RAJA_SCAN_ARGS); } stopTimer(); diff --git a/src/algorithm/SCAN-Seq.cpp b/src/algorithm/SCAN-Seq.cpp index cdbe96b3d..07c1ed255 100644 --- a/src/algorithm/SCAN-Seq.cpp +++ b/src/algorithm/SCAN-Seq.cpp @@ -66,10 +66,12 @@ void SCAN::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::exclusive_scan(RAJA_SCAN_ARGS); + RAJA::exclusive_scan(res, RAJA_SCAN_ARGS); } stopTimer(); diff --git a/src/algorithm/SCAN.cpp b/src/algorithm/SCAN.cpp index a5c04abc4..ba54a8ceb 100644 --- a/src/algorithm/SCAN.cpp +++ b/src/algorithm/SCAN.cpp @@ -38,6 +38,8 @@ SCAN::SCAN(const RunParams& params) getActualProblemSize() ) / getActualProblemSize(); + setComplexity(Complexity::N); + setUsesFeature(Scan); setVariantDefined( Base_Seq ); diff --git a/src/algorithm/SCAN.hpp b/src/algorithm/SCAN.hpp index f55381d21..f4ad374ac 100644 --- a/src/algorithm/SCAN.hpp +++ b/src/algorithm/SCAN.hpp @@ -65,12 +65,14 @@ class SCAN : public KernelBase void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + void runCudaVariantLibrary(VariantID vid); void runHipVariantLibrary(VariantID vid); + template < size_t block_size, size_t items_per_thread > - void runCudaVariantImpl(VariantID vid); + void runCudaVariantCustom(VariantID vid); template < size_t block_size, size_t items_per_thread > - void runHipVariantImpl(VariantID vid); + void runHipVariantCustom(VariantID vid); private: static const size_t default_gpu_block_size = 256; diff --git a/src/algorithm/SORT-Cuda.cpp b/src/algorithm/SORT-Cuda.cpp index 4d77667d7..04ea2b058 100644 --- a/src/algorithm/SORT-Cuda.cpp +++ b/src/algorithm/SORT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/SORT-Hip.cpp b/src/algorithm/SORT-Hip.cpp index c464bae4e..b2ab79e69 100644 --- a/src/algorithm/SORT-Hip.cpp +++ b/src/algorithm/SORT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/SORT-OMP.cpp b/src/algorithm/SORT-OMP.cpp index 133b00a88..ef6138e55 100644 --- a/src/algorithm/SORT-OMP.cpp +++ b/src/algorithm/SORT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -32,10 +32,12 @@ void SORT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::sort(RAJA_SORT_ARGS); + RAJA::sort(res, RAJA_SORT_ARGS); } stopTimer(); diff --git a/src/algorithm/SORT-Seq.cpp b/src/algorithm/SORT-Seq.cpp index 2d458ff4d..599698e54 100644 --- a/src/algorithm/SORT-Seq.cpp +++ b/src/algorithm/SORT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -44,10 +44,12 @@ void SORT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) #if defined(RUN_RAJA_SEQ) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::sort(RAJA_SORT_ARGS); + RAJA::sort(res, RAJA_SORT_ARGS); } stopTimer(); diff --git a/src/algorithm/SORT.cpp b/src/algorithm/SORT.cpp index bc99df634..18cbba813 100644 --- a/src/algorithm/SORT.cpp +++ b/src/algorithm/SORT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ SORT::SORT(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N_logN); + setUsesFeature(Sort); setVariantDefined( Base_Seq ); diff --git a/src/algorithm/SORT.hpp b/src/algorithm/SORT.hpp index 9df61e411..1db44e6e8 100644 --- a/src/algorithm/SORT.hpp +++ b/src/algorithm/SORT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/SORTPAIRS-Cuda.cpp b/src/algorithm/SORTPAIRS-Cuda.cpp index 1f102eb91..1057b0542 100644 --- a/src/algorithm/SORTPAIRS-Cuda.cpp +++ b/src/algorithm/SORTPAIRS-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/SORTPAIRS-Hip.cpp b/src/algorithm/SORTPAIRS-Hip.cpp index 467a3cbf4..f9bc93ee8 100644 --- a/src/algorithm/SORTPAIRS-Hip.cpp +++ b/src/algorithm/SORTPAIRS-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/algorithm/SORTPAIRS-OMP.cpp b/src/algorithm/SORTPAIRS-OMP.cpp index cdf0f044a..9feccf5e0 100644 --- a/src/algorithm/SORTPAIRS-OMP.cpp +++ b/src/algorithm/SORTPAIRS-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -32,10 +32,12 @@ void SORTPAIRS::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::sort_pairs(RAJA_SORTPAIRS_ARGS); + RAJA::sort_pairs(res, RAJA_SORTPAIRS_ARGS); } stopTimer(); diff --git a/src/algorithm/SORTPAIRS-Seq.cpp b/src/algorithm/SORTPAIRS-Seq.cpp index 320e307f4..c4ede84a6 100644 --- a/src/algorithm/SORTPAIRS-Seq.cpp +++ b/src/algorithm/SORTPAIRS-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -64,10 +64,12 @@ void SORTPAIRS::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx #if defined(RUN_RAJA_SEQ) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::sort_pairs(RAJA_SORTPAIRS_ARGS); + RAJA::sort_pairs(res, RAJA_SORTPAIRS_ARGS); } stopTimer(); diff --git a/src/algorithm/SORTPAIRS.cpp b/src/algorithm/SORTPAIRS.cpp index 6315970b2..588ab9fa6 100644 --- a/src/algorithm/SORTPAIRS.cpp +++ b/src/algorithm/SORTPAIRS.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ SORTPAIRS::SORTPAIRS(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N_logN); + setUsesFeature(Sort); setVariantDefined( Base_Seq ); diff --git a/src/algorithm/SORTPAIRS.hpp b/src/algorithm/SORTPAIRS.hpp index fa53a15c3..2b952a090 100644 --- a/src/algorithm/SORTPAIRS.hpp +++ b/src/algorithm/SORTPAIRS.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/AppsData.cpp b/src/apps/AppsData.cpp index facb3d592..b005a4956 100644 --- a/src/apps/AppsData.cpp +++ b/src/apps/AppsData.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/AppsData.hpp b/src/apps/AppsData.hpp index b1908b7a5..1e61caff2 100644 --- a/src/apps/AppsData.hpp +++ b/src/apps/AppsData.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt index 4a0584e96..912a677ad 100644 --- a/src/apps/CMakeLists.txt +++ b/src/apps/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -44,6 +44,13 @@ blt_add_library( ENERGY-OMP.cpp ENERGY-OMPTarget.cpp ENERGY-Sycl.cpp + FEMSWEEP.cpp + FEMSWEEP-Cuda.cpp + FEMSWEEP-Hip.cpp + FEMSWEEP-Seq.cpp + FEMSWEEP-OMP.cpp + FEMSWEEP-OMPTarget.cpp + FEMSWEEP-Sycl.cpp FIR.cpp FIR-Seq.cpp FIR-Hip.cpp diff --git a/src/apps/CONVECTION3DPA-Cuda.cpp b/src/apps/CONVECTION3DPA-Cuda.cpp index 6160430c0..134bd5417 100644 --- a/src/apps/CONVECTION3DPA-Cuda.cpp +++ b/src/apps/CONVECTION3DPA-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/CONVECTION3DPA-Hip.cpp b/src/apps/CONVECTION3DPA-Hip.cpp index 12300f940..8898c8dbe 100644 --- a/src/apps/CONVECTION3DPA-Hip.cpp +++ b/src/apps/CONVECTION3DPA-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/CONVECTION3DPA-OMP.cpp b/src/apps/CONVECTION3DPA-OMP.cpp index 2826defd0..59025fab6 100644 --- a/src/apps/CONVECTION3DPA-OMP.cpp +++ b/src/apps/CONVECTION3DPA-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -131,6 +131,8 @@ void CONVECTION3DPA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_OpenMP: { + auto res{getHostResource()}; + using launch_policy = RAJA::LaunchPolicy; using outer_x = RAJA::LoopPolicy; @@ -145,7 +147,7 @@ void CONVECTION3DPA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( for (RepIndex_type irep = 0; irep < run_reps; ++irep) { // Grid is empty as the host does not need a compute grid to be specified - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/CONVECTION3DPA-OMPTarget.cpp b/src/apps/CONVECTION3DPA-OMPTarget.cpp index 6affba0c6..d3c9c1de9 100644 --- a/src/apps/CONVECTION3DPA-OMPTarget.cpp +++ b/src/apps/CONVECTION3DPA-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/CONVECTION3DPA-Seq.cpp b/src/apps/CONVECTION3DPA-Seq.cpp index 9f18a2da8..997425b22 100644 --- a/src/apps/CONVECTION3DPA-Seq.cpp +++ b/src/apps/CONVECTION3DPA-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -129,6 +129,8 @@ void CONVECTION3DPA::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun #if defined(RUN_RAJA_SEQ) case RAJA_Seq: { + auto res{getHostResource()}; + using launch_policy = RAJA::LaunchPolicy; using outer_x = RAJA::LoopPolicy; @@ -143,7 +145,7 @@ void CONVECTION3DPA::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun for (RepIndex_type irep = 0; irep < run_reps; ++irep) { // Grid is empty as the host does not need a compute grid to be specified - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/CONVECTION3DPA-Sycl.cpp b/src/apps/CONVECTION3DPA-Sycl.cpp index c01087818..baa5829a6 100644 --- a/src/apps/CONVECTION3DPA-Sycl.cpp +++ b/src/apps/CONVECTION3DPA-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -40,7 +40,7 @@ void CONVECTION3DPA::runSyclVariantImpl(VariantID vid) { startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - qu->submit([&](cl::sycl::handler& h) { + qu->submit([&](::sycl::handler& h) { constexpr int max_D1D = CPA_D1D; constexpr int max_Q1D = CPA_Q1D; @@ -54,8 +54,8 @@ void CONVECTION3DPA::runSyclVariantImpl(VariantID vid) { auto sm5_vec = ::sycl::local_accessor(::sycl::range<1>(max_DQ*max_DQ*max_DQ), h); h.parallel_for - (cl::sycl::nd_range<3>(gridSize, workGroupSize), - [=] (cl::sycl::nd_item<3> itm) { + (::sycl::nd_range<3>(gridSize, workGroupSize), + [=] (::sycl::nd_item<3> itm) { const Index_type e = itm.get_group(2); diff --git a/src/apps/CONVECTION3DPA.cpp b/src/apps/CONVECTION3DPA.cpp index 8213c2c90..367246f53 100644 --- a/src/apps/CONVECTION3DPA.cpp +++ b/src/apps/CONVECTION3DPA.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,6 +51,8 @@ CONVECTION3DPA::CONVECTION3DPA(const RunParams& params) (1 + 2*CPA_Q1D) * CPA_D1D * CPA_D1D * CPA_D1D // 8 )); + setComplexity(Complexity::N); + setUsesFeature(Launch); setVariantDefined( Base_Seq ); diff --git a/src/apps/CONVECTION3DPA.hpp b/src/apps/CONVECTION3DPA.hpp index 38629b28c..864c37679 100644 --- a/src/apps/CONVECTION3DPA.hpp +++ b/src/apps/CONVECTION3DPA.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DEL_DOT_VEC_2D-Cuda.cpp b/src/apps/DEL_DOT_VEC_2D-Cuda.cpp index 3c7edcd40..d8d42b570 100644 --- a/src/apps/DEL_DOT_VEC_2D-Cuda.cpp +++ b/src/apps/DEL_DOT_VEC_2D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DEL_DOT_VEC_2D-Hip.cpp b/src/apps/DEL_DOT_VEC_2D-Hip.cpp index 79cef6b09..0974f1742 100644 --- a/src/apps/DEL_DOT_VEC_2D-Hip.cpp +++ b/src/apps/DEL_DOT_VEC_2D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DEL_DOT_VEC_2D-OMP.cpp b/src/apps/DEL_DOT_VEC_2D-OMP.cpp index 730b49887..5cf6d79ed 100644 --- a/src/apps/DEL_DOT_VEC_2D-OMP.cpp +++ b/src/apps/DEL_DOT_VEC_2D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -74,9 +74,10 @@ void DEL_DOT_VEC_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_OpenMP : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto deldotvec2d_lam = [=](Index_type i) { DEL_DOT_VEC_2D_BODY; @@ -85,7 +86,7 @@ void DEL_DOT_VEC_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall(zones, deldotvec2d_lam); + RAJA::forall(res, zones, deldotvec2d_lam); } stopTimer(); diff --git a/src/apps/DEL_DOT_VEC_2D-OMPTarget.cpp b/src/apps/DEL_DOT_VEC_2D-OMPTarget.cpp index b3527802a..cf8769ba1 100644 --- a/src/apps/DEL_DOT_VEC_2D-OMPTarget.cpp +++ b/src/apps/DEL_DOT_VEC_2D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -58,14 +58,15 @@ void DEL_DOT_VEC_2D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSE } else if ( vid == RAJA_OpenMPTarget ) { - camp::resources::Resource working_res{camp::resources::Omp::get_default()}; + auto res{getOmpTargetResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type ii) { DEL_DOT_VEC_2D_BODY_INDEX; DEL_DOT_VEC_2D_BODY; diff --git a/src/apps/DEL_DOT_VEC_2D-Seq.cpp b/src/apps/DEL_DOT_VEC_2D-Seq.cpp index 76b04a96f..365ee0b3a 100644 --- a/src/apps/DEL_DOT_VEC_2D-Seq.cpp +++ b/src/apps/DEL_DOT_VEC_2D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -71,9 +71,10 @@ void DEL_DOT_VEC_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun case RAJA_Seq : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto deldotvec2d_lam = [=](Index_type i) { DEL_DOT_VEC_2D_BODY; @@ -82,7 +83,7 @@ void DEL_DOT_VEC_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall(zones, deldotvec2d_lam); + RAJA::forall(res, zones, deldotvec2d_lam); } stopTimer(); diff --git a/src/apps/DEL_DOT_VEC_2D-Sycl.cpp b/src/apps/DEL_DOT_VEC_2D-Sycl.cpp index 13f59e29d..7ce848ada 100644 --- a/src/apps/DEL_DOT_VEC_2D-Sycl.cpp +++ b/src/apps/DEL_DOT_VEC_2D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DEL_DOT_VEC_2D.cpp b/src/apps/DEL_DOT_VEC_2D.cpp index 8c72474bc..dcd7a29a5 100644 --- a/src/apps/DEL_DOT_VEC_2D.cpp +++ b/src/apps/DEL_DOT_VEC_2D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -43,6 +43,8 @@ DEL_DOT_VEC_2D::DEL_DOT_VEC_2D(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(54 * m_domain->n_real_zones); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); @@ -75,21 +77,15 @@ DEL_DOT_VEC_2D::~DEL_DOT_VEC_2D() void DEL_DOT_VEC_2D::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { - allocAndInitDataConst(m_x, m_array_length, 0.0, vid); - allocAndInitDataConst(m_y, m_array_length, 0.0, vid); - allocAndInitDataConst(m_real_zones, m_domain->n_real_zones, - static_cast(-1), vid); - - { - auto reset_x = scopedMoveData(m_x, m_array_length, vid); - auto reset_y = scopedMoveData(m_y, m_array_length, vid); - auto reset_rz = scopedMoveData(m_real_zones, m_domain->n_real_zones, vid); - - Real_type dx = 0.2; - Real_type dy = 0.1; - setMeshPositions_2d(m_x, dx, m_y, dy, *m_domain); - setRealZones_2d(m_real_zones, *m_domain); - } + auto reset_x = allocAndInitDataConstForInit(m_x, m_array_length, 0.0, vid); + auto reset_y = allocAndInitDataConstForInit(m_y, m_array_length, 0.0, vid); + auto reset_rz = allocAndInitDataConstForInit(m_real_zones, m_domain->n_real_zones, + static_cast(-1), vid); + + Real_type dx = 0.2; + Real_type dy = 0.1; + setMeshPositions_2d(m_x, dx, m_y, dy, *m_domain); + setRealZones_2d(m_real_zones, *m_domain); allocAndInitData(m_xdot, m_array_length, vid); allocAndInitData(m_ydot, m_array_length, vid); diff --git a/src/apps/DEL_DOT_VEC_2D.hpp b/src/apps/DEL_DOT_VEC_2D.hpp index d7c0d20f6..14bd78533 100644 --- a/src/apps/DEL_DOT_VEC_2D.hpp +++ b/src/apps/DEL_DOT_VEC_2D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DIFFUSION3DPA-Cuda.cpp b/src/apps/DIFFUSION3DPA-Cuda.cpp index 90a55905b..70d90d72e 100644 --- a/src/apps/DIFFUSION3DPA-Cuda.cpp +++ b/src/apps/DIFFUSION3DPA-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DIFFUSION3DPA-Hip.cpp b/src/apps/DIFFUSION3DPA-Hip.cpp index 15e27ed78..e43c5ff15 100644 --- a/src/apps/DIFFUSION3DPA-Hip.cpp +++ b/src/apps/DIFFUSION3DPA-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DIFFUSION3DPA-OMP.cpp b/src/apps/DIFFUSION3DPA-OMP.cpp index 04f27ec63..c342a7577 100644 --- a/src/apps/DIFFUSION3DPA-OMP.cpp +++ b/src/apps/DIFFUSION3DPA-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -114,6 +114,8 @@ void DIFFUSION3DPA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP: { + auto res{getHostResource()}; + // Currently Teams requires two policies if compiled with a device using launch_policy = RAJA::LaunchPolicy; @@ -129,7 +131,7 @@ void DIFFUSION3DPA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t for (RepIndex_type irep = 0; irep < run_reps; ++irep) { // Grid is empty as the host does not need a compute grid to be specified - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/DIFFUSION3DPA-OMPTarget.cpp b/src/apps/DIFFUSION3DPA-OMPTarget.cpp index be5bf5ecf..cc3d3fade 100644 --- a/src/apps/DIFFUSION3DPA-OMPTarget.cpp +++ b/src/apps/DIFFUSION3DPA-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/DIFFUSION3DPA-Seq.cpp b/src/apps/DIFFUSION3DPA-Seq.cpp index c384b0695..a67a45bfe 100644 --- a/src/apps/DIFFUSION3DPA-Seq.cpp +++ b/src/apps/DIFFUSION3DPA-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -112,6 +112,8 @@ void DIFFUSION3DPA::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune #if defined(RUN_RAJA_SEQ) case RAJA_Seq: { + auto res{getHostResource()}; + // Currently Teams requires two policies if compiled with a device using launch_policy = RAJA::LaunchPolicy; @@ -127,7 +129,7 @@ void DIFFUSION3DPA::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune for (RepIndex_type irep = 0; irep < run_reps; ++irep) { // Grid is empty as the host does not need a compute grid to be specified - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/DIFFUSION3DPA-Sycl.cpp b/src/apps/DIFFUSION3DPA-Sycl.cpp index fccc14260..489cbcf6f 100644 --- a/src/apps/DIFFUSION3DPA-Sycl.cpp +++ b/src/apps/DIFFUSION3DPA-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -41,7 +41,7 @@ void DIFFUSION3DPA::runSyclVariantImpl(VariantID vid) { startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - qu->submit([&](cl::sycl::handler& h) { + qu->submit([&](::sycl::handler& h) { constexpr int MQ1 = DPA_Q1D; constexpr int MD1 = DPA_D1D; @@ -57,8 +57,8 @@ void DIFFUSION3DPA::runSyclVariantImpl(VariantID vid) { auto sm1_2_vec = ::sycl::local_accessor(::sycl::range<1>(MDQ*MDQ*MDQ), h); h.parallel_for - (cl::sycl::nd_range<3>(gridSize, workGroupSize), - [=] (cl::sycl::nd_item<3> itm) { + (::sycl::nd_range<3>(gridSize, workGroupSize), + [=] (::sycl::nd_item<3> itm) { const Index_type e = itm.get_group(2); diff --git a/src/apps/DIFFUSION3DPA.cpp b/src/apps/DIFFUSION3DPA.cpp index 16cf307b5..cfeb89af1 100644 --- a/src/apps/DIFFUSION3DPA.cpp +++ b/src/apps/DIFFUSION3DPA.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,6 +52,8 @@ DIFFUSION3DPA::DIFFUSION3DPA(const RunParams& params) 7 * DPA_D1D * DPA_Q1D * DPA_D1D * DPA_D1D + 3 * DPA_D1D * DPA_D1D * DPA_D1D)); + setComplexity(Complexity::N); + setUsesFeature(Launch); setVariantDefined( Base_Seq ); diff --git a/src/apps/DIFFUSION3DPA.hpp b/src/apps/DIFFUSION3DPA.hpp index 5b587279c..faa8638ef 100644 --- a/src/apps/DIFFUSION3DPA.hpp +++ b/src/apps/DIFFUSION3DPA.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/EDGE3D-Cuda.cpp b/src/apps/EDGE3D-Cuda.cpp index 5f212fb9b..22af5b32b 100644 --- a/src/apps/EDGE3D-Cuda.cpp +++ b/src/apps/EDGE3D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/EDGE3D-Hip.cpp b/src/apps/EDGE3D-Hip.cpp index 56ff054d8..3ace456f6 100644 --- a/src/apps/EDGE3D-Hip.cpp +++ b/src/apps/EDGE3D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/EDGE3D-OMP.cpp b/src/apps/EDGE3D-OMP.cpp index 1671872b4..54dc8864f 100644 --- a/src/apps/EDGE3D-OMP.cpp +++ b/src/apps/EDGE3D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -58,8 +58,6 @@ void EDGE3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - auto edge3d_lam = [=](Index_type i) { EDGE3D_BODY; }; - #pragma omp parallel for for (Index_type i = ibegin ; i < iend ; ++i ) { edge3d_lam(i); @@ -73,10 +71,12 @@ void EDGE3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), edge3d_lam); } @@ -86,7 +86,7 @@ void EDGE3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx } default : { - getCout() << "\n EDGE3D : Unknown variant id = " << vid << std::endl; + getCout() << "\n EDGE3D : Unknown OpenMP variant id = " << vid << std::endl; } } diff --git a/src/apps/EDGE3D-OMPTarget.cpp b/src/apps/EDGE3D-OMPTarget.cpp index 2a348ec28..c18aad421 100644 --- a/src/apps/EDGE3D-OMPTarget.cpp +++ b/src/apps/EDGE3D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -56,12 +56,13 @@ void EDGE3D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { - EDGE3D_BODY; }); diff --git a/src/apps/EDGE3D-Seq.cpp b/src/apps/EDGE3D-Seq.cpp index 5f7114127..70b037fe4 100644 --- a/src/apps/EDGE3D-Seq.cpp +++ b/src/apps/EDGE3D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,10 +69,12 @@ void EDGE3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), edge3d_lam); } diff --git a/src/apps/EDGE3D-Sycl.cpp b/src/apps/EDGE3D-Sycl.cpp index 6b60bbc3c..e4e5e23ee 100644 --- a/src/apps/EDGE3D-Sycl.cpp +++ b/src/apps/EDGE3D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/EDGE3D.cpp b/src/apps/EDGE3D.cpp index d917bb321..10f25afc4 100644 --- a/src/apps/EDGE3D.cpp +++ b/src/apps/EDGE3D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -58,10 +58,12 @@ EDGE3D::EDGE3D(const RunParams& params) setFLOPsPerRep(number_of_elements * flops_per_element); - checksum_scale_factor = 0.001 * + m_checksum_scale_factor = 0.001 * ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); @@ -94,27 +96,21 @@ EDGE3D::~EDGE3D() void EDGE3D::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { - allocAndInitDataConst(m_x, m_array_length, Real_type(0.0), vid); - allocAndInitDataConst(m_y, m_array_length, Real_type(0.0), vid); - allocAndInitDataConst(m_z, m_array_length, Real_type(0.0), vid); - - { - auto reset_x = scopedMoveData(m_x, m_array_length, vid); - auto reset_y = scopedMoveData(m_y, m_array_length, vid); - auto reset_z = scopedMoveData(m_z, m_array_length, vid); + auto reset_x = allocAndInitDataConstForInit(m_x, m_array_length, Real_type(0.0), vid); + auto reset_y = allocAndInitDataConstForInit(m_y, m_array_length, Real_type(0.0), vid); + auto reset_z = allocAndInitDataConstForInit(m_z, m_array_length, Real_type(0.0), vid); - Real_type dx = 0.3; - Real_type dy = 0.2; - Real_type dz = 0.1; - setMeshPositions_3d(m_x, dx, m_y, dy, m_z, dz, *m_domain); - } + Real_type dx = 0.3; + Real_type dy = 0.2; + Real_type dz = 0.1; + setMeshPositions_3d(m_x, dx, m_y, dy, m_z, dz, *m_domain); allocAndInitDataConst(m_sum, m_array_length, Real_type(0.0), vid); } void EDGE3D::updateChecksum(VariantID vid, size_t tune_idx) { - checksum[vid][tune_idx] += calcChecksum(m_sum, m_array_length, checksum_scale_factor, vid ); + checksum[vid][tune_idx] += calcChecksum(m_sum, m_array_length, m_checksum_scale_factor, vid ); } void EDGE3D::tearDown(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) diff --git a/src/apps/EDGE3D.hpp b/src/apps/EDGE3D.hpp index a5ae54cfa..ed9643fd0 100644 --- a/src/apps/EDGE3D.hpp +++ b/src/apps/EDGE3D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -441,6 +441,8 @@ class EDGE3D : public KernelBase ADomain* m_domain; Index_type m_array_length; + + Real_type m_checksum_scale_factor; }; } // end namespace apps diff --git a/src/apps/ENERGY-Cuda.cpp b/src/apps/ENERGY-Cuda.cpp index c33321ea7..65c78fa7b 100644 --- a/src/apps/ENERGY-Cuda.cpp +++ b/src/apps/ENERGY-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/ENERGY-Hip.cpp b/src/apps/ENERGY-Hip.cpp index e0424d55a..60351726d 100644 --- a/src/apps/ENERGY-Hip.cpp +++ b/src/apps/ENERGY-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/ENERGY-OMP.cpp b/src/apps/ENERGY-OMP.cpp index 687f69d25..28fb37ac1 100644 --- a/src/apps/ENERGY-OMP.cpp +++ b/src/apps/ENERGY-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -141,27 +141,29 @@ void ENERGY::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::region( [=]() { - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), energy_lam1); - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), energy_lam2); - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), energy_lam3); - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), energy_lam4); - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), energy_lam5); - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), energy_lam6); }); // end omp parallel region diff --git a/src/apps/ENERGY-OMPTarget.cpp b/src/apps/ENERGY-OMPTarget.cpp index 786623a8f..109491587 100644 --- a/src/apps/ENERGY-OMPTarget.cpp +++ b/src/apps/ENERGY-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -89,37 +89,39 @@ void ENERGY::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::region( [=]() { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ENERGY_BODY1; }); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ENERGY_BODY2; }); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ENERGY_BODY3; }); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ENERGY_BODY4; }); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ENERGY_BODY5; }); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ENERGY_BODY6; }); diff --git a/src/apps/ENERGY-Seq.cpp b/src/apps/ENERGY-Seq.cpp index bbf9d73c0..72adb06bb 100644 --- a/src/apps/ENERGY-Seq.cpp +++ b/src/apps/ENERGY-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -122,27 +122,29 @@ void ENERGY::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::region( [=]() { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), energy_lam1); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), energy_lam2); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), energy_lam3); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), energy_lam4); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), energy_lam5); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), energy_lam6); }); // end sequential region (for single-source code) diff --git a/src/apps/ENERGY-Sycl.cpp b/src/apps/ENERGY-Sycl.cpp index 7ebc7f3c7..9a77d38e5 100644 --- a/src/apps/ENERGY-Sycl.cpp +++ b/src/apps/ENERGY-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/ENERGY.cpp b/src/apps/ENERGY.cpp index 7f480d00f..cdcc75a7f 100644 --- a/src/apps/ENERGY.cpp +++ b/src/apps/ENERGY.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -53,6 +53,8 @@ ENERGY::ENERGY(const RunParams& params) 9 // 1 sqrt ) * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/apps/ENERGY.hpp b/src/apps/ENERGY.hpp index ba5b69949..079ff07d2 100644 --- a/src/apps/ENERGY.hpp +++ b/src/apps/ENERGY.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/FEMSWEEP-Cuda.cpp b/src/apps/FEMSWEEP-Cuda.cpp new file mode 100644 index 000000000..8c614bbb9 --- /dev/null +++ b/src/apps/FEMSWEEP-Cuda.cpp @@ -0,0 +1,137 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "FEMSWEEP.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_CUDA) + +#include "common/CudaDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace apps +{ + +template < size_t block_size > +__launch_bounds__(block_size) +__global__ void FEMSweep3D( const Real_ptr Bdat, + const Real_ptr Adat, + const Real_ptr Fdat, + Real_ptr Xdat, + const Real_ptr Sgdat, + const Real_ptr M0dat, + const Index_type ne, + const Index_type ng, + const Index_ptr nhpaa_r, + const Index_ptr ohpaa_r, + const Index_ptr phpaa_r, + const Index_ptr order_r, + const Index_ptr AngleElem2FaceType, + const Index_ptr elem_to_faces, + const Index_ptr F_g2l, + const Index_ptr idx1, + const Index_ptr idx2 ) +{ + const int ag = blockIdx.x * block_size + threadIdx.x; + FEMSWEEP_KERNEL; +} + +template < size_t block_size > +void FEMSWEEP::runCudaVariantImpl(VariantID vid) +{ + const Index_type run_reps = getRunReps(); + + auto res{getCudaResource()}; + + FEMSWEEP_DATA_SETUP; + + switch ( vid ) { + + case Base_CUDA : { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + const size_t grid_size = RAJA_DIVIDE_CEILING_INT(na*ng, block_size); + constexpr size_t shmem = 0; + + RPlaunchCudaKernel( (FEMSweep3D), + grid_size, block_size, + shmem, res.get_stream(), + Bdat, + Adat, + Fdat, + Xdat, + Sgdat, + M0dat, + ne, + ng, + nhpaa_r, + ohpaa_r, + phpaa_r, + order_r, + AngleElem2FaceType, + elem_to_faces, + F_g2l, + idx1, + idx2 ); + + } + stopTimer(); + + break; + } + + case RAJA_CUDA : { + + const size_t grid_size = RAJA_DIVIDE_CEILING_INT(na*ng, block_size); + constexpr bool async = true; + + using launch_policy = + RAJA::LaunchPolicy>; + + using outer_x = + RAJA::LoopPolicy>; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(grid_size), + RAJA::Threads(block_size)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + RAJA::loop(ctx, RAJA::RangeSegment(0, na * ng), + [&](int ag) { + FEMSWEEP_KERNEL; + }); // ag loop + }); // RAJA Launch + + } + stopTimer(); + + break; + } + + default : { + getCout() << "\n FEMSWEEP : Unknown CUDA variant id = " << vid << std::endl; + } + + } + +} + +RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(FEMSWEEP, Cuda) + +} // end namespace apps +} // end namespace rajaperf + +#endif // RAJA_ENABLE_CUDA diff --git a/src/apps/FEMSWEEP-Hip.cpp b/src/apps/FEMSWEEP-Hip.cpp new file mode 100644 index 000000000..d4f196565 --- /dev/null +++ b/src/apps/FEMSWEEP-Hip.cpp @@ -0,0 +1,137 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "FEMSWEEP.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_HIP) + +#include "common/HipDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace apps +{ + +template < size_t block_size > +__launch_bounds__(block_size) +__global__ void FEMSweep3D( const Real_ptr Bdat, + const Real_ptr Adat, + const Real_ptr Fdat, + Real_ptr Xdat, + const Real_ptr Sgdat, + const Real_ptr M0dat, + const Index_type ne, + const Index_type ng, + const Index_ptr nhpaa_r, + const Index_ptr ohpaa_r, + const Index_ptr phpaa_r, + const Index_ptr order_r, + const Index_ptr AngleElem2FaceType, + const Index_ptr elem_to_faces, + const Index_ptr F_g2l, + const Index_ptr idx1, + const Index_ptr idx2 ) +{ + const int ag = hipBlockIdx_x * block_size + hipThreadIdx_x; + FEMSWEEP_KERNEL; +} + +template < size_t block_size > +void FEMSWEEP::runHipVariantImpl(VariantID vid) +{ + const Index_type run_reps = getRunReps(); + + auto res{getHipResource()}; + + FEMSWEEP_DATA_SETUP; + + switch ( vid ) { + + case Base_HIP : { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + const size_t grid_size = RAJA_DIVIDE_CEILING_INT(na*ng, block_size); + constexpr size_t shmem = 0; + + RPlaunchHipKernel( (FEMSweep3D), + grid_size, block_size, + shmem, res.get_stream(), + Bdat, + Adat, + Fdat, + Xdat, + Sgdat, + M0dat, + ne, + ng, + nhpaa_r, + ohpaa_r, + phpaa_r, + order_r, + AngleElem2FaceType, + elem_to_faces, + F_g2l, + idx1, + idx2 ); + + } + stopTimer(); + + break; + } + + case RAJA_HIP : { + + const size_t grid_size = RAJA_DIVIDE_CEILING_INT(na*ng, block_size); + constexpr bool async = true; + + using launch_policy = + RAJA::LaunchPolicy>; + + using outer_x = + RAJA::LoopPolicy>; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(grid_size), + RAJA::Threads(block_size)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + RAJA::loop(ctx, RAJA::RangeSegment(0, na * ng), + [&](int ag) { + FEMSWEEP_KERNEL; + }); // ag loop + }); // RAJA Launch + + } + stopTimer(); + + break; + } + + default : { + getCout() << "\n FEMSWEEP : Unknown HIP variant id = " << vid << std::endl; + } + + } + +} + +RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(FEMSWEEP, Hip) + +} // end namespace apps +} // end namespace rajaperf + +#endif // RAJA_ENABLE_HIP diff --git a/src/apps/FEMSWEEP-OMP.cpp b/src/apps/FEMSWEEP-OMP.cpp new file mode 100644 index 000000000..14f60ffa4 --- /dev/null +++ b/src/apps/FEMSWEEP-OMP.cpp @@ -0,0 +1,89 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "FEMSWEEP.hpp" + +#include "RAJA/RAJA.hpp" + +#include + +namespace rajaperf +{ +namespace apps +{ + + +void FEMSWEEP::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ +#if defined(RAJA_ENABLE_OPENMP) && defined(RUN_OPENMP) + + const Index_type run_reps = getRunReps(); + + FEMSWEEP_DATA_SETUP; + + switch ( vid ) { + + case Base_OpenMP : { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + #pragma omp parallel for + for (int ag = 0; ag < na * ng; ++ag) + { + FEMSWEEP_KERNEL; + } + + } + stopTimer(); + + break; + } + + case RAJA_OpenMP : { + + auto res{getHostResource()}; + + using launch_policy = + RAJA::LaunchPolicy; + + using outer_x = + RAJA::LoopPolicy; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + RAJA::loop(ctx, RAJA::RangeSegment(0, na * ng), + [&](int ag) { + FEMSWEEP_KERNEL; + }); + }); + + } + stopTimer(); + + break; + } + + default : { + getCout() << "\n FEMSWEEP : Unknown OpenMP variant id = " << vid << std::endl; + } + + } + +#else + RAJA_UNUSED_VAR(vid); +#endif + +} + +} // end namespace apps +} // end namespace rajaperf diff --git a/src/apps/FEMSWEEP-OMPTarget.cpp b/src/apps/FEMSWEEP-OMPTarget.cpp new file mode 100644 index 000000000..504003ebe --- /dev/null +++ b/src/apps/FEMSWEEP-OMPTarget.cpp @@ -0,0 +1,47 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "FEMSWEEP.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_TARGET_OPENMP) + +#include "common/OpenMPTargetDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace apps +{ + + +void FEMSWEEP::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ + switch ( vid ) { + + case Base_OpenMPTarget : { + break; + } + + case RAJA_OpenMPTarget : { + break; + } + + default : { + getCout() << "\n FEMSWEEP : Unknown OpenMPTarget variant id = " << vid << std::endl; + } + + } +} + +} // end namespace apps +} // end namespace rajaperf + +#endif // RAJA_ENABLE_TARGET_OPENMP diff --git a/src/apps/FEMSWEEP-Seq.cpp b/src/apps/FEMSWEEP-Seq.cpp new file mode 100644 index 000000000..2880a18a8 --- /dev/null +++ b/src/apps/FEMSWEEP-Seq.cpp @@ -0,0 +1,82 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "FEMSWEEP.hpp" + +#include "RAJA/RAJA.hpp" + +#include + +namespace rajaperf +{ +namespace apps +{ + + +void FEMSWEEP::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ + const Index_type run_reps = getRunReps(); + + FEMSWEEP_DATA_SETUP; + + switch ( vid ) { + + case Base_Seq : { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + for (int ag = 0; ag < na * ng; ++ag) + { + FEMSWEEP_KERNEL; + } + + } + stopTimer(); + + break; + } + + case RAJA_Seq : { + + auto res{getHostResource()}; + + using launch_policy = + RAJA::LaunchPolicy; + + using outer_x = + RAJA::LoopPolicy; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + RAJA::loop(ctx, RAJA::RangeSegment(0, na * ng), + [&](int ag) { + FEMSWEEP_KERNEL; + }); + }); + + } + stopTimer(); + + break; + } + + default : { + getCout() << "\n FEMSWEEP : Unknown Sequential variant id = " << vid << std::endl; + } + + } + +} + +} // end namespace apps +} // end namespace rajaperf diff --git a/src/apps/FEMSWEEP-Sycl.cpp b/src/apps/FEMSWEEP-Sycl.cpp new file mode 100644 index 000000000..7b6287d56 --- /dev/null +++ b/src/apps/FEMSWEEP-Sycl.cpp @@ -0,0 +1,46 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "FEMSWEEP.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_SYCL) + +#include "common/SyclDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace apps +{ + +void FEMSWEEP::runSyclVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ + switch ( vid ) { + + case Base_SYCL : { + break; + } + + case RAJA_SYCL : { + break; + } + + default : { + getCout() << "\n FEMSWEEP : Unknown Sycl variant id = " << vid << std::endl; + } + + } +} + +} // end namespace apps +} // end namespace rajaperf + +#endif // RAJA_ENABLE_TARGET_OPENMP diff --git a/src/apps/FEMSWEEP.cpp b/src/apps/FEMSWEEP.cpp new file mode 100644 index 000000000..8238be1e0 --- /dev/null +++ b/src/apps/FEMSWEEP.cpp @@ -0,0 +1,144 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "FEMSWEEP.hpp" +#include "FEMSWEEP_DATA.hpp" + +#include "RAJA/RAJA.hpp" + +#include "common/DataUtils.hpp" + +#include +#include + +namespace rajaperf +{ +namespace apps +{ + + +FEMSWEEP::FEMSWEEP(const RunParams& params) + : KernelBase(rajaperf::Apps_FEMSWEEP, params) +{ + m_nx = 15; + m_ny = 15; + m_nz = 15; + m_ne = m_nx * m_ny * m_nz; + m_na = 72; + m_ng = 128; + + setDefaultProblemSize(ND * m_ne * m_ng * m_na); + setDefaultReps(1); + + m_Blen = ND * m_ne * m_na; + m_Alen = ND * ND * m_ne * m_na; + // 9450 is a property of the mesh. Will need to derive this when mesh generator is available. + m_Flen = FDS * FDS * 2 * 9450 * m_na; + m_Sglen = m_ne * m_ng; + m_M0len = ND * ND * m_ne; + m_Xlen = ND * m_ne * m_ng * m_na; + + setActualProblemSize( m_Xlen ); + + setItsPerRep(1); + setKernelsPerRep(1); + // using total data size instead of writes and reads + setBytesReadPerRep( 1*sizeof(Real_type) * m_Blen + + 1*sizeof(Real_type) * m_Alen + + 1*sizeof(Real_type) * m_Flen + + 1*sizeof(Real_type) * m_Sglen + + 1*sizeof(Real_type) * m_M0len + + 1*sizeof(Real_type) * m_Xlen ); + setBytesWrittenPerRep( 1*sizeof(Real_type) * m_Xlen ); + setBytesAtomicModifyWrittenPerRep( 0 ); + + // This is an estimate of the upper bound FLOPs. + setFLOPsPerRep( (ND * ND * (ND-1) * 3 * 2 + // L & U formation + ND * (ND-1) * 3 + // forward substitution + ND * (ND-1) * 3 + // backward substitution + NLF * FDS - m_nx * m_ny * 6) * // coupling between sides of faces + m_ne * m_na * m_ng ); // for all elements, angles, and groups + + // The checksum is inaccurate starting at the 10's digit for: AMD CPU and older clang versions on NVIDIA GPUs. + checksum_scale_factor = 0.0000000001; + + setComplexity(Complexity::N); + + setUsesFeature(Launch); + //setUsesFeature(View); + + setVariantDefined( Base_Seq ); + setVariantDefined( RAJA_Seq ); + + setVariantDefined( Base_OpenMP ); + setVariantDefined( RAJA_OpenMP ); + + setVariantDefined( Base_CUDA ); + setVariantDefined( RAJA_CUDA ); + + setVariantDefined( Base_HIP ); + setVariantDefined( RAJA_HIP ); +} + +FEMSWEEP::~FEMSWEEP() +{ +} + +void FEMSWEEP::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ + allocAndInitDataRandValue (m_Bdat , m_Blen , vid); + allocAndInitDataRandValue (m_Adat , m_Alen , vid); + allocAndInitDataRandValue (m_Fdat , m_Flen , vid); + allocAndInitDataRandValue (m_Sgdat , m_Sglen , vid); + allocAndInitDataRandValue (m_M0dat , m_M0len , vid); + allocAndInitDataRandValue (m_Xdat , m_Xlen , vid); + + // Some of the constants are properties of the mesh. + // Will need to derive these when mesh generator is available. + allocAndCopyHostData(m_nhpaa_r, g_nhpaa_r, m_na , vid); + allocAndCopyHostData(m_ohpaa_r, g_ohpaa_r, m_na , vid); + allocAndCopyHostData(m_phpaa_r, g_phpaa_r, m_na * 43 , vid); + allocAndCopyHostData(m_order_r, g_order_r, m_na * m_ne, vid); + + allocAndCopyHostData(m_AngleElem2FaceType, g_AngleElem2FaceType, NLF * m_ne * m_na , vid); + allocAndCopyHostData(m_elem_to_faces , g_elem_to_faces , NLF * m_ne , vid); + allocAndCopyHostData(m_F_g2l , g_F_g2l , 10800 , vid); + allocAndCopyHostData(m_idx1 , g_idx1 , 37800 , vid); + allocAndCopyHostData(m_idx2 , g_idx2 , 37800 , vid); +} + +void FEMSWEEP::updateChecksum(VariantID vid, size_t tune_idx) +{ + checksum[vid][tune_idx] += calcChecksum(m_Xdat, m_Xlen, checksum_scale_factor , vid); +} + +void FEMSWEEP::tearDown(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ + (void) vid; + + deallocData(m_Bdat, vid); + deallocData(m_Adat, vid); + deallocData(m_Fdat, vid); + deallocData(m_Sgdat, vid); + deallocData(m_M0dat, vid); + deallocData(m_Xdat, vid); + + deallocData(m_nhpaa_r, vid); + deallocData(m_ohpaa_r, vid); + deallocData(m_phpaa_r, vid); + deallocData(m_order_r, vid); + + deallocData(m_AngleElem2FaceType, vid); + deallocData(m_elem_to_faces , vid); + deallocData(m_F_g2l , vid); + deallocData(m_idx1 , vid); + deallocData(m_idx2 , vid); +} + +} // end namespace apps +} // end namespace rajaperf diff --git a/src/apps/FEMSWEEP.hpp b/src/apps/FEMSWEEP.hpp new file mode 100644 index 000000000..3677d271f --- /dev/null +++ b/src/apps/FEMSWEEP.hpp @@ -0,0 +1,370 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +/// +/// FEMSWEEP kernel reference implementation: +/// +/// for (int ag = 0; ag < na * ng; ++ag) +/// { +/// const int a = ag / ng; +/// const int g = ag % ng; +/// // number and offset of hyperplanes for this angle +/// const int nhp = nhpaa_r[a]; +/// const int ohp = ohpaa_r[a]; +/// // elements in this hyperplanes processed so far +/// int s_nehp_done = 0; +/// double A[ND * ND], b[ND]; +/// // This factor helps maintain stability in the solution of the matrix solve +/// // by eliminating the perturbation of the right-hand side. +/// double Ffactor = fmax(sin(Adat[order_r[a*ne]*ND*ND + a*ne*ND*ND]) - 2.0, 0.0); \ +/// for (int hp = 0; hp < nhp; ++hp) // loop over hyperplanes +/// { +/// // number of element in this hyperplane +/// const int nehp = phpaa_r[ohp + hp]; +/// // loop over all elements of this hyperplane +/// for (int k = 0; k < nehp; ++k) +/// { +/// const int e = order_r[k + s_nehp_done + a * ne]; +/// for (int j = 0; j < ND; ++j) // load B & A +/// { +/// b[j] = Bdat[j + e * ND + a * ne * ND]; +/// for (int i = 0; i < ND; ++i) +/// { +/// A[i + j * ND] = Adat[i + j * ND + e * ND * ND + a * ne * ND * ND]; +/// } +/// } +/// for (int face = 0; face < NLF; ++face) // local faces +/// { +/// const int sf_gl = F_g2l[elem_to_faces[NLF * e + face]]; +/// const int f = sf_gl >= 0 ? sf_gl : -1 - sf_gl; // signed face +/// const int s = (e == idx1[f * FDS] / ND) ? 0 : 1; // side +/// if ((AngleElem2FaceType[face + e * NLF + a * ne * NLF] == 0) || (sf_gl < 0)) // non-reentrant and outgoing, or boundary +/// { +/// continue; +/// } +/// for (int j = 0; j < FDS; ++j) // face dofs +/// { +/// const int ffj = f * FDS + j; +/// const int djs = s == 0 ? idx1[ffj] : idx2[ffj]; +/// double F = 0.0; +/// for (int i = 0; i < FDS; i++) // face dofs +/// { +/// const int ffi = f * FDS + i; +/// const int dis = s == 0 ? idx2[ffi] : idx1[ffi]; +/// // Fdat : 4 x 4 x 2 x nf_int x na +/// // Note: s ^ 1 == 1 if s == 0, and s ^ 1 == 0 if s == 1. +/// // The solution remains bounded when matrices and indirection arrays from a +/// // finite element discretrization are used, but randomly generating matrix +/// // data can result in exponential growth instead. A specific trick of +/// // multiplying by zero, without the compiler optimizing it away, is +/// // necessary to prevent unbounded growth and avoid computing NaNs. +/// F += Ffactor * Fdat[i + j * FDS + (s ^ 1) * FDS * FDS + f * 2 * FDS * FDS + a * 9450 * 2 * FDS * FDS] * Xdat[dis + g * ND * ne + a * ng * ND * ne]; \ +/// } // i +/// b[djs % ND] -= F; +/// } // j +/// } // local faces +/// const double s = Sgdat[e + g * ne]; +/// // A = A + s * M0, b is the result +/// SolveLinearSystemNxN(A, s, &M0dat[0 + 0 * ND + e * ND * ND], b, &Xdat[e * ND + g * ND * ne + a * ng * ND * ne]); // 8x8 solve +/// } // thread loop elems in hp +/// s_nehp_done += nehp; +/// } // hyperplanes +/// } +/// +/// The RAJA variants of this kernel use RAJA multi-dimensional data layouts +/// and views to do the same thing without explicit index calculations (see +/// the loop body definitions below). +/// + +#ifndef RAJAPerf_Apps_FEMSWEEP_HPP +#define RAJAPerf_Apps_FEMSWEEP_HPP + +#include "common/KernelBase.hpp" + +#include "RAJA/RAJA.hpp" + +constexpr int ND = 8; // number of corners per element +constexpr int NLF = 6; // number of faces per element +constexpr int FDS = 4; // number of DOFs per face + +#define FEMSWEEP_DATA_SETUP \ + Real_ptr Bdat = m_Bdat; \ + Real_ptr Adat = m_Adat; \ + Real_ptr Fdat = m_Fdat; \ + Real_ptr Xdat = m_Xdat; \ + Real_ptr Sgdat = m_Sgdat; \ + Real_ptr M0dat = m_M0dat; \ +\ + Index_type ne = m_ne; \ + Index_type na = m_na; \ + Index_type ng = m_ng; \ +\ + Index_ptr nhpaa_r = m_nhpaa_r; \ + Index_ptr ohpaa_r = m_ohpaa_r; \ + Index_ptr phpaa_r = m_phpaa_r; \ + Index_ptr order_r = m_order_r; \ +\ + Index_ptr AngleElem2FaceType = m_AngleElem2FaceType; \ + Index_ptr elem_to_faces = m_elem_to_faces ; \ + Index_ptr F_g2l = m_F_g2l ; \ + Index_ptr idx1 = m_idx1 ; \ + Index_ptr idx2 = m_idx2 ; \ + + +#define FEMSWEEP_KERNEL \ + const int a = ag / ng; \ + const int g = ag % ng; \ + const int nhp = nhpaa_r[a]; \ + const int ohp = ohpaa_r[a]; \ + int s_nehp_done = 0; \ + double A[ND * ND], b[ND]; \ + double Ffactor = fmax(sin(Adat[order_r[a*ne]*ND*ND + a*ne*ND*ND]) - 2.0, 0.0); \ + for (int hp = 0; hp < nhp; ++hp) \ + { \ + const int nehp = phpaa_r[ohp + hp]; \ + for (int k = 0; k < nehp; ++k) \ + { \ + const int e = order_r[k + s_nehp_done + a * ne]; \ + for (int j = 0; j < ND; ++j) \ + { \ + b[j] = Bdat[j + e * ND + a * ne * ND]; \ + for (int i = 0; i < ND; ++i) \ + { \ + A[i + j * ND] = Adat[i + j * ND + e * ND * ND + a * ne * ND * ND]; \ + } \ + } \ + for (int face = 0; face < NLF; ++face) \ + { \ + const int sf_gl = F_g2l[elem_to_faces[NLF * e + face]]; \ + const int f = sf_gl >= 0 ? sf_gl : -1 - sf_gl; \ + const int s = (e == idx1[f * FDS] / ND) ? 0 : 1; \ + if ((AngleElem2FaceType[face + e * NLF + a * ne * NLF] == 0) || (sf_gl < 0)) \ + { \ + continue; \ + } \ + for (int j = 0; j < FDS; ++j) \ + { \ + const int ffj = f * FDS + j; \ + const int djs = s == 0 ? idx1[ffj] : idx2[ffj]; \ + double F = 0.0; \ + for (int i = 0; i < FDS; i++) \ + { \ + const int ffi = f * FDS + i; \ + const int dis = s == 0 ? idx2[ffi] : idx1[ffi]; \ + F += Ffactor * Fdat[i + j * FDS + (s ^ 1) * FDS * FDS + f * 2 * FDS * FDS + a * 9450 * 2 * FDS * FDS] * Xdat[dis + g * ND * ne + a * ng * ND * ne]; \ + } \ + b[djs % ND] -= F; \ + } \ + } \ + const double s = Sgdat[e + g * ne]; \ + SolveLinearSystemNxN(A, s, &M0dat[0 + 0 * ND + e * ND * ND], b, &Xdat[e * ND + g * ND * ne + a * ng * ND * ne]); \ + } \ + s_nehp_done += nehp; \ + } \ + +// LU factorization with no pivoting +template +RAJA_HOST_DEVICE inline void SolveLinearSystemNxN(double *A, + const double s, + const double *M, + const double *b, + double * x) +{ + double tempA[N][N]; + double L[N][N]; + double U[N][N]; + double D[N]; + + // tempA = A + s * M0 + // set L to 0, U to identity + for ( int ii = 0; ii < N; ++ii ) + { + for ( int jj = 0; jj < N; ++jj ) + { + tempA[ii][jj] = A[ii * N + jj] + s * M[ii * N + jj]; + L[ii][jj] = 0.0; + if ( ii == jj ) + { + U[ii][jj] = 1.0; + } + else + { + U[ii][jj] = 0.0; + } + } + } + + // set first column of L, and first row of U + for ( int ii = 0; ii < N; ++ii ) + { + L[ii][0] = tempA[ii][0]; + } + + for ( int ii = 1; ii < N; ++ii ) + { + U[0][ii] = tempA[0][ii]/tempA[0][0]; + } + + // form L & U + // L formed one column at a time + // U formed one row at a time + for ( int ii = 1; ii < N; ++ii ) + { + // L column formation + for ( int jj = ii; jj < N; ++jj ) + { + double sum = 0.0; + for ( int kk = 0; kk < jj; ++kk ) + { + sum += L[jj][kk] * U[kk][ii]; + } + L[jj][ii] = tempA[jj][ii] - sum; + } + + // U row formation + for ( int jj = ii+1; jj < N; ++jj ) + { + double sum = 0.0; + for ( int kk = 0; kk < ii; ++kk ) + { + sum += L[ii][kk] * U[kk][jj]; + } + U[ii][jj] = (tempA[ii][jj] - sum)/L[ii][ii]; + } + } + + // forward substitution + D[0] = b[0]/L[0][0]; + for ( int ii = 1; ii < N; ++ii ) + { + double sum = 0.0; + for ( int jj = 0; jj < ii; ++jj ) + { + sum += L[ii][jj] * D[jj]; + } + D[ii] = (b[ii] - sum)/L[ii][ii]; + } + + // backward substitution + x[N-1] = D[N-1]; + for ( int ii = N - 1 - 1; ii > -1; --ii ) + { + double sum = 0.0; + for ( int jj = ii+1; jj < N; ++jj ) + { + sum += U[ii][jj] * x[jj]; + } + x[ii] = D[ii] - sum; + } + +} + + +namespace rajaperf +{ +class RunParams; + +namespace apps +{ + +class FEMSWEEP : public KernelBase +{ +public: + + FEMSWEEP(const RunParams& params); + + ~FEMSWEEP(); + + void setUp(VariantID vid, size_t tune_idx); + void updateChecksum(VariantID vid, size_t tune_idx); + void tearDown(VariantID vid, size_t tune_idx); + + void runSeqVariant(VariantID vid, size_t tune_idx); + void runOpenMPVariant(VariantID vid, size_t tune_idx); + void runCudaVariant(VariantID vid, size_t tune_idx); + void runHipVariant(VariantID vid, size_t tune_idx); + void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); + void runSyclVariant(VariantID vid, size_t tune_idx); + + void setCudaTuningDefinitions(VariantID vid); + void setHipTuningDefinitions(VariantID vid); + + template < size_t block_size > + void runCudaVariantImpl(VariantID vid); + template < size_t block_size > + void runHipVariantImpl(VariantID vid); + +private: +#if defined(RAJA_ENABLE_HIP) + static const size_t default_gpu_block_size = 64; +#else + static const size_t default_gpu_block_size = 128; +#endif + using gpu_block_sizes_type = integer::make_gpu_block_size_list_type>; + + Index_type m_nx; + Index_type m_ny; + Index_type m_nz; + Index_type m_ne; + Index_type m_na; + Index_type m_ng; + + Real_ptr m_Bdat; + Real_ptr m_Adat; + Real_ptr m_Fdat; + Real_ptr m_Sgdat; + Real_ptr m_M0dat; + Real_ptr m_Xdat; + + Index_ptr m_nhpaa_r; + Index_ptr m_ohpaa_r; + Index_ptr m_phpaa_r; + Index_ptr m_order_r; + + Index_ptr m_AngleElem2FaceType; + Index_ptr m_elem_to_faces ; + Index_ptr m_F_g2l ; + Index_ptr m_idx1 ; + Index_ptr m_idx2 ; + + Index_type m_Blen; + Index_type m_Alen; + Index_type m_Flen; + Index_type m_Sglen; + Index_type m_M0len; + Index_type m_Xlen; + + Index_type m_nhpaa_rlen; + Index_type m_ohpaa_rlen; + Index_type m_phpaa_rlen; + Index_type m_order_rlen; + + Index_type m_AngleElem2FaceTypelen; + Index_type m_elem_to_faceslen; + Index_type m_F_g2llen; + Index_type m_idx1len; + Index_type m_idx2len; + + // Mesh data + static Index_type g_nhpaa_r[72]; + static Index_type g_ohpaa_r[72]; + static Index_type g_phpaa_r[3096]; + static Index_type g_order_r[243000]; + + static Index_type g_AngleElem2FaceType[1458000]; + static Index_type g_elem_to_faces[20250] ; + static Index_type g_F_g2l[10800] ; + static Index_type g_idx1[37800] ; + static Index_type g_idx2[37800] ; +}; + +} // end namespace apps +} // end namespace rajaperf + +#endif // closing endif for header file include guard diff --git a/src/apps/FEMSWEEP_DATA.hpp b/src/apps/FEMSWEEP_DATA.hpp new file mode 100644 index 000000000..f63dda35f --- /dev/null +++ b/src/apps/FEMSWEEP_DATA.hpp @@ -0,0 +1,48 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#ifndef RAJAPerf_Apps_FEMSWEEP_DATA_HPP +#define RAJAPerf_Apps_FEMSWEEP_DATA_HPP + +//d_nhpaa_r size 72: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_nhpaa_r[72] = +{43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43}; + +//d_ohpaa_r size 72: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_ohpaa_r[72] = +{0,43,86,129,172,215,258,301,344,387,430,473,516,559,602,645,688,731,774,817,860,903,946,989,1032,1075,1118,1161,1204,1247,1290,1333,1376,1419,1462,1505,1548,1591,1634,1677,1720,1763,1806,1849,1892,1935,1978,2021,2064,2107,2150,2193,2236,2279,2322,2365,2408,2451,2494,2537,2580,2623,2666,2709,2752,2795,2838,2881,2924,2967,3010,3053}; + +//d_phpaa_r size 3096: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_phpaa_r[3096] = +{1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,133,144,153,160,165,168,169,168,165,160,153,144,133,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1}; + +//d_order_r size 243000, dimensions ne 3375 x na 72: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_order_r[243000] = +{1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,1441,1446,1440,1442,1449,1447,1439,1445,1443,1417,1454,1448,1438,1436,1450,1444,1432,1418,1422,1416,1506,1455,1457,1437,1725,1453,1451,1433,1435,1477,1421,1431,1419,1423,1415,1507,1504,1456,1458,1709,1724,1509,1452,1462,1434,1726,1478,1474,1430,1428,1476,1420,1424,1408,1414,1412,1514,1505,1503,1459,1708,1710,1723,1508,1510,1463,1461,1706,1727,1481,1473,1465,1429,1729,1479,1475,1425,1427,1407,1409,1389,1411,1413,1355,89,1515,1502,1500,1667,1711,1713,1722,1513,1511,1496,1460,1707,1705,1720,1482,1486,1464,1466,1701,1728,1480,1472,1470,1426,1730,1404,1400,1388,1390,1406,1410,1386,1356,1354,1352,90,94,1516,1501,1666,1664,1712,1715,1889,88,1512,1497,1499,1668,1704,1719,1721,1526,1485,1495,1467,1700,1702,1733,1483,1487,1471,1469,1698,1731,1549,1403,1399,1391,1761,1405,1401,1387,1385,1361,1357,1381,1359,1353,1351,65,93,97,1517,1645,1665,1663,1714,1894,1888,91,95,1519,1498,1669,1671,1718,1716,1890,87,1525,1494,1492,1675,1703,1693,1734,1527,1484,1488,1468,1699,1697,1732,1529,1550,1396,1392,1760,1762,1548,1402,1398,1384,1766,1362,1366,1380,1382,1360,1358,1378,1350,1348,1344,64,66,98,102,1644,1646,1656,1662,1897,1895,1887,70,92,96,1518,1642,1670,1660,1717,1893,1891,80,86,1520,1493,1674,1672,1694,1690,1865,84,1524,1489,1491,1676,1696,1692,1735,1528,1530,1553,1395,1759,1763,1737,1534,1551,1397,1393,1767,1765,1547,1365,1369,1383,1769,1363,1367,1379,1377,1330,1349,1307,1345,1347,1343,63,67,125,101,153,1647,1655,1657,1902,1896,1886,1884,71,69,99,103,1643,1641,1659,1661,1898,1892,1880,79,81,105,1521,1637,1673,1681,1689,1866,1870,83,85,1523,1490,1677,1679,1695,1691,1864,427,1531,1573,1554,1756,1752,1742,1736,1535,1533,1552,1394,1758,1764,1738,1537,1546,1370,1374,1768,1770,1544,1364,1368,1376,1774,985,1329,1306,1304,1331,1346,1308,1333,1342,1340,60,56,124,126,154,158,1648,1654,1954,1903,1905,1885,2136,62,68,122,100,152,1640,1652,1658,1901,1899,1881,1883,72,78,110,104,1636,1638,1682,1686,1925,1869,1879,76,82,106,1522,1634,1678,1680,1688,1867,1871,428,426,1572,1574,1597,1755,1751,1743,1863,424,1532,1570,1555,1757,1753,1741,1739,1536,1539,1558,1373,1777,1771,1797,1543,1545,1371,1375,1775,1773,986,990,1326,1305,1303,984,1328,1309,1311,1332,1335,1314,1339,1341,1212,3,59,55,127,129,157,161,1649,1955,1952,1904,1906,2122,2135,61,57,123,121,155,159,1651,1653,1957,1900,1910,1882,2137,37,73,113,111,151,1639,1629,1685,1926,1922,1878,1876,75,77,109,107,1635,1633,1683,1687,1924,1868,1872,435,429,405,1575,1577,1598,1748,1744,1856,1862,431,425,1571,1569,1596,1754,1750,1740,1860,423,1538,1559,1556,1778,1782,1794,1796,1542,1540,1561,1372,1776,1772,1798,961,989,993,1325,1300,1302,987,991,1327,1310,1271,983,1334,1315,1312,1338,1336,1317,1201,1210,1213,0,4,54,52,128,130,162,166,1962,1953,1951,1907,2123,2125,2134,2,58,48,120,134,156,160,1650,1956,1958,1911,1909,2121,2132,34,36,118,112,144,150,1630,1626,1929,1921,1913,1877,2138,38,74,114,108,148,1632,1628,1684,1927,1923,1873,1875,436,434,402,404,1576,1578,1601,1747,1855,1857,1837,432,430,406,1568,1582,1599,1749,1745,1859,1861,420,416,1566,1557,1595,1781,1785,1795,1803,422,1541,1560,1562,1779,1783,1793,1799,960,962,994,998,1299,1301,1293,966,988,992,1324,1272,1270,976,982,1322,1313,1268,980,1337,1316,1318,1200,1202,1209,1196,1211,1214,7,9,53,217,131,189,165,3224,1963,1950,1948,2092,2124,2127,1,5,49,51,135,133,163,167,1961,1959,1944,1908,2120,2131,2133,29,35,47,119,143,145,169,1625,1930,1934,1912,1914,2118,2141,33,39,117,115,147,149,1631,1627,1928,1920,1918,1874,2139,473,437,397,403,363,1579,1621,1602,1852,1848,1836,1838,439,433,401,407,1583,1581,1600,1746,1854,1858,1834,441,419,415,1567,1585,1594,1786,1790,1804,1802,421,417,1565,1563,1592,1780,1784,1792,1800,959,963,1021,997,1035,1298,1292,1294,967,965,995,999,1277,1273,1288,975,977,1001,1323,1275,1269,979,981,1321,1319,1267,1170,1203,1205,1208,1199,1195,1217,1197,1215,8,10,216,218,188,190,3225,3229,1964,1949,2093,2091,2126,6,14,50,222,132,186,164,3223,1960,1945,1947,2095,2130,2128,26,28,46,44,136,142,174,168,1974,1933,1943,1915,2119,2113,2142,30,32,40,116,140,146,170,1624,1931,1935,1919,1917,2117,2140,478,472,394,396,364,362,1620,1622,1997,1851,1847,1839,2165,474,438,398,400,360,1580,1618,1603,1853,1849,1835,1833,440,442,412,408,1584,1587,1606,1789,1809,1805,1829,446,418,414,1564,1591,1593,1787,1791,1807,1801,958,956,1020,1022,1032,1036,1297,1295,2277,952,964,1018,996,1034,1278,1291,1287,968,974,1006,1000,1276,1274,1289,972,978,1002,1320,1260,1266,1169,1164,1204,1207,1264,1171,1193,1189,1218,1198,1194,1216,11,215,219,193,191,3200,3228,3232,1965,2074,2084,2090,15,13,223,221,187,185,3226,3230,1967,1946,2094,2088,2129,27,17,45,225,137,177,175,3222,1973,1942,1940,2096,2114,2110,25,31,41,43,139,141,173,171,1975,1932,1936,1916,2116,2112,2143,481,479,471,395,371,365,341,1623,1977,1998,1844,1840,2164,2145,477,475,393,399,367,361,1619,1617,1996,1850,1846,1832,2166,449,443,389,411,359,1586,1607,1604,1810,1814,1828,1830,447,445,413,409,1590,1588,1609,1788,1808,1806,1826,933,957,899,1023,1031,1039,1043,1296,2276,2257,953,955,1019,1017,1033,1037,1281,1285,2278,951,969,1009,1007,1077,1279,1290,1286,971,973,1005,1003,1259,1261,1249,1153,1166,1163,1206,1263,1265,1168,1165,1190,1186,1223,1172,1192,1188,1219,212,208,198,192,3199,3201,3233,3237,2075,2083,2085,12,214,220,194,184,3205,3227,3231,1966,2073,2087,2089,16,18,224,226,182,176,3215,3221,1968,1941,2097,2101,2109,24,22,42,230,138,178,172,3219,1972,1937,1939,2099,2115,2111,486,480,470,468,372,370,338,340,1976,1978,2001,1843,2163,2150,2144,482,476,464,392,368,366,342,1616,1982,1999,1845,1841,2167,2146,450,454,388,390,356,352,1614,1605,1995,1813,1817,1831,2169,448,444,386,410,358,1589,1608,1610,1811,1815,1827,1825,934,930,898,896,1024,1030,1040,1044,2275,2262,2256,932,954,900,1016,1028,1038,1042,1282,2279,2258,944,950,1014,1008,1078,1074,1280,1284,2281,948,970,1010,1004,1076,1256,1248,1250,1152,1154,1160,1162,1258,1262,1246,1148,1167,1177,1185,1224,1222,1173,1175,1191,1187,1220,211,207,199,3198,3202,3260,3236,3289,2076,2082,213,209,197,195,3206,3204,3234,3238,2072,2080,2086,19,233,227,253,183,3214,3216,3240,1969,2070,2102,2106,23,21,231,229,181,179,3218,3220,1971,1938,2098,2100,2108,487,489,469,281,373,333,339,3092,1979,2021,2002,2160,2153,2151,485,483,465,467,375,369,337,343,1983,1981,2000,1842,2162,2149,2147,509,453,463,391,377,355,351,1615,1985,1994,1818,1822,2168,2189,451,455,387,385,357,353,1613,1611,1992,1812,1816,1824,2170,537,929,925,897,895,1025,1051,1047,2272,2265,2263,2255,935,931,901,903,1027,1029,1041,1045,2274,2261,2259,943,945,905,1015,1083,1073,1069,1283,2280,2301,947,949,1013,1011,1079,1075,1255,1251,2282,770,1155,1159,1161,1099,1257,1247,1245,1151,1147,1178,1182,1229,1225,1241,1149,1174,1176,1184,1227,1221,204,200,3191,3197,3259,3261,3292,3290,2077,210,206,196,3195,3203,3257,3235,3287,2079,2081,234,238,250,252,3207,3213,3245,3239,2071,2065,2105,20,232,228,254,180,3211,3217,3241,1970,2069,2103,2107,488,490,280,282,330,332,3093,3076,2020,2022,2046,2159,2152,484,494,466,286,374,334,336,3091,1980,2018,2003,2161,2155,2148,510,506,462,460,376,378,348,344,1984,1987,2006,1821,2174,2186,2188,508,452,456,384,382,354,350,1612,1991,1993,1819,1823,2171,2190,538,542,926,922,892,894,1050,1048,2512,2271,2264,2254,2252,536,928,924,902,851,1026,1052,1046,2273,2267,2260,2248,936,942,910,904,1084,1082,1070,1066,2286,2298,2300,940,946,906,1012,1080,1072,1068,1252,2283,2302,769,764,1156,1158,1096,1100,1254,1244,2326,771,1145,1141,1181,1098,1230,1240,1242,1150,1146,1179,1183,1228,1226,1238,203,3190,3192,3177,3262,3264,3291,3297,205,201,3194,3196,3258,3256,3293,3288,2078,237,241,251,3154,3208,3248,3246,3286,2066,2062,235,239,249,255,3210,3212,3244,3242,2068,2064,2104,491,279,283,257,331,3096,3073,3075,2023,2025,2047,2158,495,493,287,285,329,335,3094,3077,2019,2017,2044,2156,2154,505,497,461,289,379,325,347,3090,1986,2007,2004,2177,2175,2187,511,507,457,459,383,381,349,345,1990,1988,2009,1820,2172,2185,2191,513,541,545,921,891,893,881,1049,2510,2513,2270,2229,2253,2195,539,543,927,923,852,850,1053,1055,2501,2268,2266,2249,2251,535,937,913,911,848,1085,1059,1065,2289,2287,2299,2247,939,941,909,907,1087,1081,1071,1067,2284,2297,2303,753,766,763,1157,1095,1103,1107,1253,2324,2305,768,765,1142,1138,1097,1101,1233,1243,2327,772,1144,1140,1180,1130,1231,1239,1237,3187,3180,3178,3322,3263,3265,3296,202,3189,3193,3176,3255,3269,3294,3298,242,246,3155,3153,3253,3247,3279,3285,2061,236,240,248,3151,3209,3249,3243,3283,2067,2063,276,272,262,256,3097,3068,3074,3034,2024,2026,2048,492,278,284,258,328,3095,3072,3078,2016,2030,2045,2157,496,498,288,290,324,326,3087,3080,2014,2005,2043,2176,2182,504,502,458,294,380,322,346,3089,1989,2008,2010,2178,2173,2184,512,514,546,550,890,888,880,882,2509,2511,2514,2230,2226,2194,2192,518,540,544,920,857,853,876,1054,2502,2496,2269,2228,2250,2196,528,534,918,912,855,849,1058,1056,2500,2288,2294,2240,2246,532,938,914,908,847,1086,1060,1064,2290,2285,2296,2244,752,754,760,762,1088,1094,1104,1108,2323,2310,2304,748,767,777,1137,1092,1102,1106,1234,2325,2306,773,775,1143,1139,1131,1129,1232,1236,2328,3186,3179,3321,3319,3266,3309,3188,3182,3175,3323,3270,3268,3295,245,3161,3156,3173,3254,3278,3280,3299,243,247,3158,3152,3252,3250,3282,3284,2060,275,271,263,3150,3065,3067,3035,3033,2027,2058,277,273,261,259,3098,3069,3071,3031,2031,2029,2049,499,297,291,317,327,3100,3086,3079,2015,2033,2042,2181,503,501,295,293,323,321,3088,3082,2013,2011,2040,2179,2183,515,573,549,587,889,887,883,2508,2517,2515,2545,2225,2221,2193,519,517,547,551,858,862,879,875,2505,2495,2497,2231,2227,2197,2199,527,529,553,919,856,854,877,1057,2503,2499,2293,2239,2241,2201,531,533,917,915,840,846,1061,1063,2470,2291,2295,2243,2245,722,755,759,761,844,1089,1118,1111,2320,2313,2311,2361,751,747,778,782,1091,1093,1105,1109,2322,2309,2307,749,774,776,1136,1132,1128,1126,1235,2329,2338,3185,3364,3320,3318,3310,3183,3181,3324,3326,3267,3308,3164,3162,3174,3330,3271,3277,3302,244,3159,3157,3172,3251,3275,3281,3300,268,264,3143,3149,3066,3042,3036,3012,2059,274,270,260,3147,3064,3070,3038,3032,2028,2057,298,302,314,316,3099,3060,3085,3030,2032,2035,2050,500,296,292,318,320,3101,3083,3081,2012,2039,2041,2180,572,574,584,588,886,884,2669,2518,2516,2546,2550,2222,2218,516,570,548,586,861,865,873,2507,2489,2494,2544,2224,2220,2198,520,526,558,552,859,863,878,874,2504,2493,2498,2232,2238,2206,2200,524,530,554,916,839,841,821,1062,2464,2471,2292,2236,2242,2202,721,716,756,758,843,845,1117,1112,2469,2319,2312,2362,2360,723,745,741,781,787,1090,1119,1110,2321,2315,2308,2341,750,746,779,783,1135,1133,1127,1125,2330,2337,2339,3363,3365,3315,3311,3184,3361,3325,3317,3307,3163,3169,3329,3327,3272,3303,3165,3160,3171,3331,3274,3276,3301,267,3142,3144,3129,3043,3041,3009,3011,269,265,3146,3148,3063,3039,3037,3013,2056,301,305,315,3106,3059,3061,3027,3023,2034,2051,299,303,313,319,3102,3057,3084,3029,2038,2036,2052,575,583,591,595,885,2668,2649,2519,2521,2549,2553,2217,571,569,585,589,866,870,2670,2486,2488,2547,2551,2223,2219,521,561,559,629,860,864,872,2506,2490,2492,2543,2233,2209,2207,523,525,557,555,836,832,820,822,2463,2465,2472,2235,2237,2205,2203,705,718,715,757,838,842,818,1114,2466,2468,2318,2365,2363,2359,720,717,742,738,788,786,1116,1113,2453,2316,2314,2342,2346,724,744,740,780,784,1134,1120,1124,2332,2331,2336,2340,3366,3370,3314,3362,3360,3316,3312,3168,3356,3328,3338,3306,3166,3170,3332,3334,3273,3304,3139,3132,3130,2970,3044,3004,3010,266,3141,3145,3128,3046,3040,3008,3014,306,310,3107,3105,3062,3048,3026,3022,2055,300,304,312,3103,3058,3056,3028,3024,2037,2053,576,582,592,596,2667,2654,2648,2520,2522,2554,2558,568,580,590,594,869,2671,2650,2487,2526,2548,2552,2216,566,560,630,626,867,871,2673,2485,2491,2536,2542,2214,2208,522,562,556,628,835,831,823,2462,2477,2475,2540,2234,2210,2204,704,706,712,714,837,833,819,817,2460,2467,2473,2366,2364,2358,2356,700,719,729,737,793,789,813,1115,2454,2448,2317,2385,2345,2349,725,727,743,739,791,785,1121,1123,2452,2333,2335,2343,2347,3367,3371,3359,3369,3313,3355,3357,3339,3337,3167,3353,3333,3335,3305,3138,3131,2969,2967,3001,3003,3140,3134,3127,2971,3045,3005,3007,309,3113,3108,3125,3047,3049,3019,3015,307,311,3110,3104,3055,3053,3025,3021,2054,577,603,599,2664,2657,2655,2647,2523,2581,2557,579,581,593,597,2666,2653,2651,2527,2525,2555,2559,567,635,625,621,868,2672,2693,2484,2535,2537,2561,2215,565,563,631,627,828,824,2674,2482,2476,2539,2541,2213,2211,707,711,713,651,834,830,816,2461,2478,2474,2409,2367,2370,2357,703,699,730,734,794,798,812,814,2459,2447,2449,2386,2382,2351,2355,701,726,728,736,792,790,810,1122,2455,2451,2334,2384,2344,2348,3374,3368,3372,3358,3346,3340,3354,3352,3342,3336,3137,2948,2968,2966,3002,3135,3133,2972,2974,3000,3006,3116,3114,3126,2978,3050,2996,3018,308,3111,3109,3124,3054,3052,3020,3016,602,600,2872,2663,2656,2646,2644,2580,2582,578,604,598,2665,2659,2652,2640,2524,2578,2556,636,634,622,618,2678,2690,2692,2528,2534,2566,2560,564,632,624,620,827,2675,2694,2483,2532,2538,2562,2212,708,710,648,652,829,825,2718,2481,2479,2410,2408,2368,2373,697,693,733,650,797,801,815,2458,2441,2446,2389,2381,2371,2352,702,698,731,735,795,799,811,809,2456,2445,2450,2387,2383,2350,2354,3373,3347,3345,3351,3343,3341,2947,2949,2959,2965,3136,2945,2973,2963,2999,3115,3121,2977,2975,2995,2997,3117,3112,3123,2979,3051,2993,3017,601,2871,2873,2662,2621,2645,2587,2583,605,607,2864,2660,2658,2641,2643,2579,2577,637,611,617,2681,2679,2691,2639,2529,2569,2567,639,633,623,619,2676,2689,2695,2531,2533,2565,2563,709,647,655,659,826,2716,2697,2480,2413,2411,2407,2374,694,690,649,653,802,806,2719,2438,2440,2390,2394,2369,2372,696,692,732,682,796,800,808,2457,2442,2444,2388,2380,2378,2353,3348,3350,3344,2950,2958,2960,2946,2944,2962,2964,3120,2940,2976,2984,2998,3118,3122,2980,2982,2994,2992,2870,2876,2874,2622,2618,2586,2584,606,2867,2863,2661,2620,2642,2588,2576,610,608,2865,2680,2686,2632,2638,2574,2568,638,612,616,2682,2677,2688,2636,2530,2570,2564,640,646,656,660,2715,2702,2696,2414,2412,2406,2404,689,644,654,658,805,2717,2698,2439,2433,2393,2397,2375,695,691,683,681,803,807,2720,2437,2443,2391,2395,2379,2377,3349,2951,2957,2943,2955,2961,2939,2941,2985,2989,3119,2937,2981,2983,2991,2877,2875,2900,2617,2613,2585,2869,2857,2862,2623,2619,2589,2591,609,2866,2861,2685,2631,2633,2593,2575,613,615,2838,2683,2687,2635,2637,2573,2571,641,670,663,2712,2705,2703,2753,2415,2418,2405,643,645,657,661,2714,2701,2699,2434,2430,2399,2403,688,684,680,678,804,2721,2730,2436,2432,2392,2396,2376,2952,2954,2956,2942,2932,2988,2938,2936,2986,2990,2878,2880,2901,2614,2610,2854,2856,2899,2616,2612,2590,2868,2858,2860,2624,2630,2598,2592,614,2837,2839,2684,2628,2634,2594,2572,669,664,2840,2711,2704,2754,2752,2416,2421,642,671,662,2713,2707,2700,2733,2429,2419,2400,687,685,679,677,2722,2729,2731,2435,2431,2398,2402,2953,2933,2929,2935,2931,2987,2879,2881,2904,2609,2855,2885,2902,2615,2611,2853,2859,2898,2625,2601,2599,2836,2845,2843,2627,2629,2597,2595,666,2834,2841,2710,2757,2755,2751,2422,668,665,2828,2708,2706,2734,2738,2417,2420,686,672,676,2724,2723,2728,2732,2428,2426,2401,2928,2934,2930,2882,2924,2905,2886,2884,2903,2608,2852,2888,2897,2606,2600,2850,2844,2895,2626,2602,2596,2835,2846,2842,2758,2756,2750,2748,667,2833,2827,2709,2777,2737,2741,2423,673,675,2829,2725,2727,2735,2739,2427,2425,2927,2923,2925,2883,2921,2906,2887,2890,2909,2607,2851,2894,2896,2605,2603,2849,2847,2802,2759,2762,2749,2832,2821,2826,2778,2774,2743,2747,674,2830,2825,2726,2776,2736,2740,2424,2926,2922,2920,2889,2910,2907,2893,2891,2912,2604,2848,2803,2800,2760,2765,2818,2820,2781,2773,2763,2744,2831,2822,2824,2779,2775,2742,2746,2919,2917,2908,2892,2911,2913,2804,2801,2799,2766,2819,2782,2786,2761,2764,2817,2823,2780,2772,2770,2745,2918,2916,2914,2805,2798,2796,2814,2785,2789,2767,2816,2783,2787,2771,2769,2915,2806,2797,2813,2791,2795,2815,2784,2788,2768,2808,2807,2792,2812,2790,2794,2809,2811,2793,2810,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2134,2127,2133,2135,2126,2128,2142,2125,2132,2136,2090,2129,2110,2143,2124,2131,2141,2122,2137,1884,2085,2089,2109,2111,2144,2091,2130,2113,2140,2123,2121,2138,1885,1883,1887,2082,2086,2106,2108,2151,2147,2084,2088,2114,2112,2145,2092,2120,2118,2139,1906,1882,1876,1886,1880,1888,2077,2081,2105,2107,2152,2148,2188,2083,2087,2101,2115,2150,2146,2093,2095,2119,2117,2165,1907,1909,1877,1875,1905,1881,1879,1895,1891,1889,3297,2078,2062,2104,2158,2154,2187,2191,2076,2080,2102,2100,2153,2149,2189,2074,2094,2096,2116,2164,2166,1948,1908,1914,1874,1838,1904,1910,1878,1872,1896,1892,1870,1894,1890,1722,3296,3298,2061,2063,2048,2157,2182,2184,2192,3290,2079,2065,2103,2159,2155,2186,2190,2075,2073,2097,2099,2163,2167,2169,1949,1947,1915,1917,1839,1833,1951,1911,1913,1873,1837,1903,1899,1869,1871,1897,1893,1865,1715,1721,1723,3309,3295,3299,2060,2058,2049,2181,2183,2193,2199,3291,3288,2066,2064,2047,2156,2175,2185,2195,3289,2072,2070,2098,2160,2162,2168,2170,1965,1946,1940,1916,1840,1832,1830,1950,1944,1912,1918,1836,1834,1952,1900,1922,1868,1862,1902,1898,1866,1864,1714,1716,1734,1713,1720,1724,3310,3308,3302,3300,2059,2057,2050,2180,2218,2198,2200,3265,3294,3285,2067,2026,2045,2176,2173,2194,2196,3292,3287,2071,2069,2046,2161,2174,2171,2252,3237,1966,1941,1939,1843,1841,1831,1825,1964,1945,1943,1919,1847,1835,1829,1953,1958,1921,1923,1857,1861,1954,1901,1925,1867,1863,1662,1717,1690,1735,1712,1719,1733,1710,1727,1725,3311,3307,3303,3301,3011,2056,2051,2052,2217,2219,2207,2203,3266,3268,3280,3284,2027,2029,2042,2179,2221,2197,2201,3264,3293,3286,2068,2025,2044,2177,2172,2253,2251,3236,3238,1969,1938,2002,1842,1822,1824,2255,3232,1967,1942,1936,1844,1846,1828,1826,1963,1959,1934,1920,1848,1858,1802,1955,1957,1926,1924,1856,1860,1657,1661,1689,1691,1736,1663,1718,1693,1732,1711,1705,1728,1709,1726,1436,3314,3312,3306,3304,3010,3014,2055,2053,2558,2216,2208,2204,2356,3318,3267,3277,3281,3012,2028,2035,2041,2222,2220,2206,2202,3263,3269,3279,3283,2024,2030,2043,2178,2226,2250,2246,3261,3235,3239,1970,2022,2003,1821,1823,2254,2248,3233,3231,1968,1937,2001,1845,1817,1827,2256,3229,1960,1933,1935,1851,1849,1805,1801,1962,1956,1929,1927,1855,1859,1803,1654,1658,1686,1688,1743,1739,1656,1660,1694,1692,1737,1664,1704,1702,1731,1708,1706,1729,1437,1435,1439,3371,3313,3337,3305,3003,3007,3015,2054,2557,2559,2215,2211,2357,2355,3315,3317,3272,3276,3009,3013,2034,2036,2553,2223,2209,2205,2359,3319,3270,3278,3282,3033,2031,2033,2040,2225,2227,2241,2245,3262,3256,3246,3242,2023,2017,2004,1820,2229,2249,2247,3260,3234,3240,1971,2021,2000,1818,1816,2263,2259,3228,3230,1973,1932,1998,1850,1814,1806,2257,3224,1961,1930,1928,1852,1854,1804,1800,1649,1653,1685,1687,1744,1740,1796,1655,1659,1681,1695,1742,1738,1665,1671,1703,1697,1762,1667,1707,1701,1730,1458,1434,1428,1438,1432,1440,3374,3372,3340,3336,3002,3006,3018,3016,2582,2556,2560,2212,2373,2352,2354,3370,3316,3338,3273,3004,3008,3022,2037,2554,2552,2214,2210,2358,2349,3320,3326,3271,3275,3036,3032,2032,2039,2550,2224,2238,2242,2360,3322,3255,3247,3243,3034,2016,2005,2010,2230,2228,2240,2244,3259,3257,3245,3241,2020,2018,2006,1819,2264,2260,2300,3201,3227,3221,1972,1978,1999,1813,1815,2262,2258,3225,3223,1974,1931,1997,1853,1809,1807,2277,166,1650,1626,1684,1747,1745,1795,1799,1648,1652,1682,1680,1751,1741,1797,1646,1670,1672,1696,1763,1765,1666,1668,1700,1698,1761,1459,1461,1429,1427,1457,1433,1431,1447,1443,1441,3373,3345,3341,2965,2999,2997,3017,2583,2577,2567,2563,2374,2372,2353,3367,3369,3339,3335,3001,3005,3019,3021,2581,2555,2561,2213,2370,2351,2348,3365,3325,3327,3274,3041,3037,3023,2038,2549,2551,2233,2237,2363,2346,3321,3323,3254,3250,3035,3031,2015,2011,2545,2231,2239,2243,2361,3177,3258,3248,3244,3075,2019,2007,2009,2270,2266,2299,2303,3202,3204,3216,3220,1979,1981,1994,1812,2265,2261,2301,3200,3226,3222,1975,1977,1996,1810,1808,2276,2278,165,167,1625,1627,1602,1746,1790,1792,1294,161,1651,1629,1683,1748,1750,1794,1798,1647,1641,1673,1679,1752,1764,1770,1645,1669,1675,1699,1760,1766,1500,1460,1466,1426,1390,1456,1462,1430,1424,1448,1444,1422,1446,1442,3348,3344,2960,2964,2998,2992,2584,2576,2568,2564,2404,2375,2377,3368,3346,3342,2966,3000,2996,3020,2580,2578,2566,2562,2368,2371,2350,3366,3360,3328,3334,3044,3040,3026,3024,2522,2548,2542,2234,2364,2345,2347,3364,3324,3330,3251,3042,3038,3030,2012,2546,2544,2232,2236,2362,2341,3178,3176,3253,3249,3074,3078,2014,2008,2514,2269,2294,2296,2304,3197,3203,3213,3217,3076,1980,1987,1993,2271,2267,2298,2302,3199,3205,3215,3219,1976,1982,1995,1811,2275,2279,2281,190,164,168,1624,1622,1603,1789,1791,1295,1287,162,160,1630,1628,1601,1749,1785,1793,1293,158,1640,1638,1678,1755,1753,1771,1773,1644,1642,1674,1676,1759,1767,1769,1501,1499,1467,1469,1391,1385,1503,1463,1465,1425,1389,1455,1451,1421,1423,1449,1445,1417,3349,2957,2961,2989,2991,2585,2591,2575,2571,2405,2403,2376,3347,3343,2959,2963,2995,2993,2587,2579,2569,2565,2407,2369,2378,3359,3357,3333,2967,3045,3049,3025,2523,2525,2537,2541,2367,2382,2344,3363,3361,3329,3331,3043,3039,3027,3029,2521,2547,2543,2235,2365,2342,2340,3179,3175,3173,3252,3067,3071,3079,2013,2515,2497,2293,2295,2311,2307,3192,3196,3208,3212,3073,3077,1986,1988,2513,2268,2287,2297,2305,3198,3206,3214,3218,3092,1983,1985,1992,2272,2274,2280,2282,191,185,175,171,1623,1617,1604,1788,1296,1285,1286,189,163,169,1631,1621,1600,1786,1784,1292,1288,157,159,1639,1633,1598,1754,1782,1772,1302,153,1643,1637,1677,1756,1758,1768,1774,1517,1498,1492,1468,1392,1384,1382,1502,1496,1464,1470,1388,1386,1504,1452,1474,1420,1414,1454,1450,1418,1416,2952,2956,2988,2990,2610,2590,2592,2572,2421,2400,2402,3350,2958,2962,2984,2994,2586,2588,2574,2570,2406,2397,2379,3358,3352,2968,2974,3050,3052,2644,2524,2534,2538,2408,2381,2383,3362,3356,3332,2970,3046,3048,3028,2520,2526,2536,2540,2366,2385,2343,3185,3181,3174,3172,3066,3070,3085,3081,2516,2494,2498,2292,2312,2308,2339,3180,3193,3153,3209,3068,3072,3080,1989,2511,2496,2288,2285,2310,2306,3191,3195,3207,3211,3093,3091,1984,1991,2512,2273,2286,2283,2326,192,184,176,172,340,1616,1605,1610,1044,1282,1284,1250,188,186,174,170,1620,1618,1606,1787,1297,1291,1289,130,156,150,1632,1578,1599,1781,1783,1301,1270,154,152,1636,1634,1597,1757,1777,1775,1303,102,1518,1493,1491,1395,1393,1383,1377,1516,1497,1495,1471,1399,1387,1381,1505,1510,1473,1475,1409,1413,1506,1453,1477,1419,1415,2953,2929,2987,2609,2611,2599,2595,2422,2420,2401,2951,2955,2985,2983,2613,2589,2593,2573,2418,2399,2396,3351,2949,2973,2975,3051,2645,2643,2529,2533,2411,2394,2380,3355,3353,2969,2971,3047,3053,2647,2527,2535,2539,2409,2386,2384,3184,3169,3171,3129,3063,3061,3084,2519,2488,2492,2472,2318,2314,2336,3186,3182,3156,3152,3065,3069,3086,3082,2517,2495,2499,2291,2313,2309,2338,3190,3194,3154,3210,3096,3094,3090,1990,2510,2501,2289,2284,2324,2327,199,195,183,179,339,343,1615,1611,1047,1045,1283,1251,1245,193,187,177,173,341,1619,1607,1609,1043,1281,1290,1249,131,133,145,149,1579,1581,1594,1780,1298,1273,1269,129,155,151,1635,1577,1596,1778,1776,1300,1271,101,103,1521,1490,1554,1394,1374,1376,1304,97,1519,1494,1488,1396,1398,1380,1378,1515,1511,1486,1472,1400,1410,1354,1507,1509,1478,1476,1408,1412,2928,2930,2905,2608,2600,2596,2748,2423,2425,2954,2932,2986,2614,2612,2598,2594,2416,2419,2398,2950,2944,2976,2982,2618,2642,2638,2530,2412,2393,2395,3354,2948,2972,2978,3054,2646,2640,2528,2532,2410,2389,2387,3168,3170,3130,3128,3062,3056,2648,2487,2491,2475,2473,2317,2335,3183,3162,3157,3149,3064,3060,3083,2518,2489,2493,2471,2319,2315,2337,3187,3189,3155,3151,3097,3095,3087,3089,2509,2502,2500,2290,2323,2325,2328,200,196,252,180,332,336,344,1612,1048,1046,1066,1252,1244,1242,198,194,182,178,338,342,1614,1608,1040,1042,1280,1248,1246,218,132,142,146,362,1580,1587,1593,1036,1278,1274,1266,128,134,144,148,1576,1582,1595,1779,1299,1272,1268,126,100,104,1522,1574,1555,1373,1375,1305,1311,98,96,1520,1489,1553,1397,1369,1379,1307,94,1512,1485,1487,1403,1401,1357,1353,1514,1508,1481,1479,1407,1411,1355,2927,2925,2906,2607,2603,2749,2747,2424,2933,2931,2904,2615,2601,2597,2751,2417,2426,2943,2941,2981,2617,2619,2633,2637,2415,2430,2392,2947,2945,2977,2979,2621,2641,2639,2531,2413,2390,2388,3167,3131,3127,3125,3055,2655,2651,2484,2476,2474,2449,2334,3163,3160,3144,3148,3059,3057,2649,2486,2490,2465,2468,2316,2331,3188,3161,3158,3150,3098,3100,3088,2508,2505,2503,2470,2320,2322,2329,203,201,251,255,331,335,347,345,1049,1055,1065,1067,1253,1243,1237,207,197,253,181,333,337,351,1613,1051,1041,1069,1255,1247,1241,219,221,137,141,365,361,1586,1588,1039,1037,1279,1261,1265,217,135,143,147,363,1583,1585,1592,1035,1277,1275,1267,127,121,111,107,1575,1569,1556,1372,1325,1310,1312,125,99,105,1523,1573,1552,1370,1368,1306,1308,93,95,1525,1484,1550,1402,1366,1358,1348,89,1513,1482,1480,1404,1406,1356,1352,2926,2920,2907,2604,2765,2744,2746,2934,2924,2903,2606,2602,2750,2741,2427,2942,2936,2901,2616,2630,2634,2752,2429,2431,2946,2940,2980,2622,2620,2632,2636,2414,2433,2391,3137,3133,3126,3124,2656,2652,2692,2483,2479,2446,2450,3166,3132,3145,3105,3058,2654,2650,2485,2477,2467,2448,2333,3164,3159,3143,3147,3099,3101,2669,2507,2504,2464,2469,2321,2330,202,246,248,256,328,326,346,882,1054,1056,1064,1108,1234,1236,204,206,250,254,330,334,348,350,1050,1052,1070,1068,1254,1240,1238,208,220,226,138,370,366,352,1589,1030,1038,1074,1256,1262,1222,216,222,136,140,364,360,1584,1591,1032,1034,1276,1260,1264,52,120,112,108,404,1568,1557,1562,998,1324,1313,1318,124,122,110,106,1572,1570,1558,1371,1326,1309,1314,66,92,86,1524,1530,1551,1365,1367,1349,1347,90,88,1526,1483,1549,1405,1361,1359,1351,2919,2908,2913,2766,2764,2745,2923,2921,2909,2605,2762,2743,2740,2935,2881,2902,2625,2629,2755,2738,2428,2939,2937,2900,2623,2631,2635,2753,2434,2432,3136,3121,3123,2662,2658,2691,2695,2480,2440,2444,3138,3134,3108,3104,2657,2653,2693,2482,2478,2447,2451,3165,3142,3146,3106,3102,2668,2670,2506,2463,2466,2453,2332,245,247,263,259,327,321,883,875,1057,1063,1111,1109,1235,205,241,249,257,329,325,349,881,1053,1059,1071,1107,1233,1239,211,209,227,229,373,369,355,353,1025,1029,1073,1075,1257,1225,1221,215,223,225,139,371,367,359,1590,1031,1033,1077,1259,1263,1223,53,51,119,115,403,407,1567,1563,997,999,1323,1319,1208,55,123,113,109,405,1571,1559,1561,993,1327,1315,1317,67,69,81,85,1531,1533,1546,1364,1329,1346,1342,65,91,87,1527,1529,1548,1362,1360,1350,1344,2918,2914,2796,2767,2769,2922,2910,2912,2760,2763,2742,2882,2884,2897,2626,2756,2737,2739,2938,2880,2899,2624,2628,2754,2733,2435,3120,3122,2874,2661,2686,2688,2696,2439,2443,3135,3114,3109,2663,2659,2690,2694,2481,2441,2445,3139,3141,3107,3103,2667,2671,2673,2462,2460,2454,2452,244,264,260,316,320,884,873,874,1062,1112,1110,1125,242,240,262,258,324,322,880,876,1058,1060,1104,1106,1232,210,238,228,282,374,378,354,894,1026,1082,1072,1100,1230,1226,212,214,224,230,372,368,356,358,1024,1028,1078,1076,1258,1224,1220,10,50,44,116,396,400,408,1564,1022,996,1000,1320,1207,1218,54,48,118,114,402,406,1566,1560,994,992,1322,1316,1209,56,68,78,82,426,1532,1539,1545,990,1328,1335,1341,64,70,80,84,1528,1534,1547,1363,1330,1345,1343,2915,2797,2795,2768,2917,2911,2799,2761,2770,2883,2890,2896,2759,2774,2736,2879,2885,2898,2627,2757,2734,2732,3119,2875,2862,2685,2687,2703,2699,2436,3115,3112,2873,2660,2679,2689,2697,2438,2442,3140,3113,3110,2664,2666,2672,2674,2461,2459,2455,267,265,315,319,885,870,872,822,1114,1113,1124,243,271,261,317,323,887,879,877,1061,1118,1105,1126,237,239,283,285,379,381,893,850,1085,1081,1103,1101,1231,213,233,231,281,375,377,357,895,1027,1083,1079,1099,1229,1227,11,13,45,43,395,399,411,409,1023,1017,1007,1003,1206,1186,1219,9,49,47,117,397,401,415,1565,1021,995,1001,1321,1205,1217,59,57,73,77,429,425,1538,1540,989,991,1334,1336,1210,63,71,79,83,427,1535,1537,1544,985,1331,1333,1340,2808,2792,2794,2916,2798,2789,2771,2889,2891,2800,2773,2775,2886,2888,2895,2758,2777,2735,2878,2856,2860,2684,2704,2700,2731,3118,2876,2863,2680,2677,2702,2698,2437,3116,3111,2872,2665,2678,2675,2718,2458,2456,266,310,312,596,869,871,823,817,1115,1123,268,270,314,318,886,865,878,821,1117,1119,1127,236,272,284,290,380,888,853,849,1086,1094,1102,1129,234,232,280,286,376,382,892,851,1084,1080,1096,1098,1228,12,18,42,468,392,390,410,896,1016,1008,1004,1162,1185,1187,8,14,46,40,394,398,412,414,1020,1018,1006,1002,1204,1189,1216,4,58,36,74,434,430,416,1541,962,988,982,1337,1202,1211,60,62,72,76,428,424,1536,1543,986,984,1332,1339,1212,2809,2793,2806,2791,2788,2892,2801,2786,2772,2887,2894,2802,2778,2776,2855,2859,2843,2710,2706,2728,2877,2857,2861,2683,2705,2701,2730,3117,2871,2864,2681,2676,2716,2719,2457,309,311,599,597,868,824,816,814,1122,269,305,313,595,866,864,820,818,1116,1120,275,273,291,293,889,862,854,846,1089,1093,1128,235,279,287,289,383,891,852,848,1087,1095,1097,1130,19,21,469,467,391,385,897,903,1015,1011,1161,1182,1184,15,17,41,471,393,389,413,899,1019,1009,1005,1163,1190,1188,7,5,35,39,437,433,419,417,963,965,977,981,1203,1195,1215,3,61,37,75,435,431,423,1542,961,987,983,1338,1201,1213,2810,2807,2790,2805,2785,2787,2893,2803,2781,2779,2852,2844,2842,2709,2727,2854,2858,2839,2711,2707,2729,2870,2867,2865,2682,2715,2717,2720,308,600,598,618,827,825,815,809,306,304,592,594,867,831,819,813,1121,274,302,292,588,861,863,841,845,1090,1133,276,278,288,294,890,857,855,847,1088,1092,1131,20,490,466,460,384,922,902,904,1012,1158,1181,1183,16,22,470,464,388,386,898,900,1014,1010,1160,1177,1191,6,28,32,472,438,442,418,956,964,974,978,1164,1193,1194,0,2,34,38,436,432,420,422,960,966,976,980,1200,1196,1214,2811,2813,2784,2804,2782,2780,2851,2847,2826,2726,2853,2845,2841,2708,2723,2869,2866,2838,2712,2714,2721,601,607,617,619,826,806,808,307,603,593,621,828,830,812,810,301,303,591,589,860,832,842,786,1134,277,297,295,587,858,856,840,844,1091,1132,491,493,461,459,921,923,911,907,1157,1138,1180,23,489,465,463,387,925,901,905,1013,1159,1178,1176,27,31,479,475,443,445,957,955,969,973,1166,1165,1192,1,29,33,473,439,441,421,959,967,975,979,1170,1199,1197,2812,2814,2783,2848,2820,2824,2850,2846,2827,2725,2868,2837,2840,2713,2722,606,608,616,660,805,807,602,604,622,620,829,801,811,300,582,590,626,835,833,789,785,298,296,584,586,859,839,843,787,1135,492,498,458,550,920,912,908,762,1137,1139,488,494,462,456,926,924,910,906,1156,1141,1179,24,480,476,454,444,930,954,950,970,1154,1167,1175,26,30,478,474,440,446,958,952,968,972,1169,1171,1198,2815,2819,2823,2849,2821,2825,2836,2834,2828,2724,609,615,663,661,804,605,611,623,659,802,800,577,581,625,627,834,798,790,299,583,585,629,836,838,788,784,499,501,549,551,919,915,761,782,1136,495,497,457,545,927,913,909,763,1142,1140,487,483,453,455,929,931,945,949,1155,1147,1174,25,481,477,449,447,933,953,951,971,1153,1168,1172,2816,2818,2822,2835,2833,2829,614,664,662,677,610,612,656,658,803,578,634,624,652,797,799,576,580,630,628,837,793,791,500,574,548,552,916,758,781,783,496,502,546,544,918,914,760,777,1143,484,506,452,542,928,942,946,764,1145,1146,486,482,450,448,934,932,944,948,1152,1148,1173,2817,2832,2830,666,665,676,613,670,657,678,637,633,655,653,796,579,635,631,651,794,792,575,569,559,555,757,738,780,503,573,547,553,917,759,778,776,505,507,541,543,937,941,766,765,1144,485,509,451,537,935,943,947,770,1151,1149,2831,667,675,669,671,679,638,646,654,681,636,632,648,650,795,568,560,556,714,737,739,572,570,558,554,756,741,779,504,514,540,534,938,754,767,775,510,508,538,536,936,940,769,771,1150,674,668,672,641,645,680,639,647,649,682,567,563,713,734,736,571,561,557,715,742,740,515,517,529,533,755,747,774,511,513,539,535,939,753,768,772,673,642,685,640,644,683,564,710,733,735,566,562,712,729,743,516,526,530,716,745,746,512,518,528,532,752,748,773,686,643,684,709,690,732,565,711,730,728,521,525,718,717,744,519,527,531,722,751,749,687,689,691,708,693,731,522,706,719,727,520,524,721,723,750,688,694,692,707,699,726,523,705,720,724,695,697,698,704,700,725,696,703,701,702,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,2354,2353,2355,2348,2377,2352,2356,2350,2349,2347,2376,2372,2357,2203,2378,2351,2359,2344,2346,2340,2402,2375,2373,2204,2200,2379,2371,2358,2202,2383,2345,2360,2343,2341,2339,2401,2403,2374,2211,2207,2199,2396,2369,2370,2205,2201,2380,2382,2363,2245,2384,2342,2361,2336,2307,2338,2425,2400,2404,2212,2208,2198,2192,2398,2397,2368,2210,2206,2196,2395,2381,2364,2242,2246,2387,2385,2362,2244,2335,2308,2304,2337,2306,2328,2424,2420,2405,2563,2215,2219,2193,2191,2426,2399,2407,2213,2209,2197,2195,2392,2394,2367,2237,2241,2251,2388,2386,2365,2243,2247,2334,2314,2311,2303,2331,2309,2305,2329,2327,1237,2746,2423,2421,2564,2560,2216,2218,2184,2188,2427,2419,2406,2562,2214,2220,2194,2190,2431,2393,2408,2234,2238,2250,2252,2391,2389,2366,2236,2240,2248,2450,2317,2312,2296,2300,2333,2315,2310,2302,2330,2325,2326,1236,1242,1238,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,2740,2417,2418,2565,2561,2223,2221,2185,2189,2428,2430,2411,2541,2233,2227,2253,2170,2432,2390,2409,2235,2239,2249,2255,2444,2449,2318,2295,2299,2259,2451,2316,2313,2297,2301,2332,2322,2324,2282,1235,1243,1245,1239,1241,1221,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2739,2429,2412,2538,2542,2224,2226,2171,2169,2435,2433,2410,2540,2232,2228,2254,1825,2443,2446,2473,2292,2294,2260,2256,2445,2448,2319,2285,2298,2258,2452,2321,2323,2283,2281,1125,1234,1244,1250,1232,1240,1246,1226,1222,1220,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2732,2434,2413,2539,2543,2231,2229,1824,1830,2436,2440,2474,2472,2293,2266,2263,1826,2442,2447,2468,2291,2287,2261,2257,2455,2453,2320,2284,2280,2278,1124,1109,1253,1251,1286,1126,1233,1247,1249,1231,1225,1265,1227,1223,1219,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2731,2439,2479,2475,2498,2269,2264,1827,1829,2437,2441,2467,2471,2288,2267,2262,1801,2456,2454,2469,2290,2286,2279,2277,1123,1110,1108,1252,1284,1287,1127,1106,1254,1248,1289,1129,1230,1262,1266,1228,1224,1264,1187,1218,1216,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2730,2438,2478,2465,2499,2268,2265,1806,1802,2457,2459,2466,2470,2289,2274,2276,1800,1122,1113,1111,1067,1283,1285,1294,1120,1105,1107,1255,1290,1288,1128,1101,1257,1261,1269,1130,1229,1263,1267,1184,1186,1208,1188,1217,1215,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2720,2458,2460,2464,2500,2273,2275,1807,1803,809,1115,1112,1064,1066,1282,1295,1799,1121,1119,1104,1068,1280,1291,1293,1133,1102,1100,1256,1274,1270,1131,1098,1258,1260,1268,1183,1185,1207,1318,1191,1189,1209,1194,1211,1214,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,808,814,1114,1063,1065,1045,1296,1792,1796,810,1116,1118,1071,1069,1281,1292,1798,1134,1093,1103,1075,1279,1273,1302,1132,1097,1099,1259,1275,1271,1180,1182,1206,1319,1312,1176,1190,1205,1317,1192,1195,1210,1197,1213,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,807,815,817,1062,1056,1046,1044,1791,1795,1739,811,813,1117,1060,1070,1042,1297,1793,1797,785,1090,1094,1072,1074,1278,1301,1773,1135,1092,1096,1076,1276,1272,1303,1139,1181,1162,1320,1313,1311,1179,1177,1204,1316,1314,1175,1193,1202,1341,1198,1196,1212,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,800,812,818,1061,1059,1041,1043,1784,1794,1738,790,786,1089,1081,1073,1037,1298,1772,1770,784,1091,1095,1079,1077,1277,1300,1774,1136,1138,1161,1003,1323,1310,1304,1140,1178,1163,1321,1315,1308,1174,1165,1203,1336,1342,1172,1199,1201,1340,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,799,789,845,1086,1082,1038,1036,1783,1771,1765,791,787,1088,1080,1078,1034,1299,1775,1769,783,1137,1158,1004,1000,1324,1305,1377,1143,1141,1160,1002,1322,1309,1307,1146,1167,1164,1337,1335,1347,1173,1171,1200,1339,1343,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,792,788,844,1087,1083,1033,1035,1776,1768,1766,780,782,1157,1011,1007,999,1325,1376,1382,776,1142,1159,1005,1001,1327,1306,1378,1144,1147,1166,981,1334,1346,1348,1149,1168,1170,1338,1333,1344,2926,2930,2988,2964,3002,3304,3302,3298,2077,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,739,781,762,1012,1008,996,998,1375,1383,1385,779,777,1156,1010,1006,992,1326,1379,1381,775,1145,1154,978,982,1328,1349,1353,1150,1148,1169,980,1332,1345,1351,2927,2929,2961,2965,3305,3303,3295,3297,2923,2931,2985,2963,3001,3276,3280,3288,2076,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,736,738,761,907,1015,1017,997,1372,1374,1384,1390,740,778,763,1013,1009,995,993,1368,1380,1386,774,765,1155,973,977,991,1329,1358,1354,772,1151,1153,979,983,1331,1350,1352,2928,2956,2960,3336,3306,3308,3296,2934,2932,2962,2966,3273,3277,3294,3290,2882,2936,2976,2974,3044,3275,3279,3287,2075,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,743,741,760,906,1014,1018,994,1371,1369,1387,1389,746,767,764,970,974,988,990,1367,1357,1413,773,771,1152,972,976,984,1330,1359,1355,2953,2957,3341,3337,3307,3309,2933,2955,2959,3335,3272,3268,3291,2935,2941,2973,2967,3274,3278,3293,3289,2879,2937,2977,2971,3043,3250,3246,3238,1965,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,744,747,766,949,969,965,989,1364,1366,1410,1414,749,768,770,971,975,987,985,1360,1356,1412,2952,3344,3340,3312,3310,2954,2958,3342,3338,3267,3265,2942,2944,2968,3334,3271,3269,3292,2938,2940,2972,2970,3251,3247,3235,3237,2878,3122,3126,3128,3066,3249,3245,3231,1964,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,614,608,598,596,320,326,336,340,1624,1626,1658,1662,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,750,748,769,948,968,966,986,1363,1361,1411,1415,3349,3345,3313,3311,2951,3343,3339,3317,3266,2943,2949,3333,3327,3270,3264,2939,2945,2969,3331,3254,3256,3236,3119,3121,3127,3129,3252,3248,3234,3232,2877,3112,3108,3148,3065,3212,3216,3230,1963,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,609,607,599,319,327,335,339,171,1625,1653,1657,613,611,593,595,323,325,337,341,1631,1629,1659,1663,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,3348,3372,3314,3350,3346,3316,3318,2950,3352,3328,3326,3263,2946,2948,3332,3330,3255,3261,3120,3133,3130,3172,3253,3257,3233,3118,3114,3145,3149,3209,3213,3227,3229,2870,3111,3107,3147,3097,3211,3215,3223,1962,606,600,312,316,328,332,172,168,1650,1654,610,604,592,318,324,334,338,170,1630,1652,1656,638,634,590,588,380,378,366,362,1632,1638,1670,1664,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,3373,3371,3347,3369,3315,3351,3357,3325,3319,2947,3353,3329,3323,3262,3136,3131,3171,3173,3258,3260,3115,3134,3144,3152,3208,3204,3228,3117,3113,3146,3150,3210,3214,3226,3224,601,311,315,259,331,179,175,167,1649,605,603,313,317,329,333,173,169,1651,1655,637,581,591,293,379,369,365,149,1639,1641,1665,639,635,585,587,383,377,367,363,1635,1637,1669,1667,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,3374,3368,3370,3358,3360,3320,3354,3356,3324,3322,3137,3170,3174,3176,3259,3135,3132,3157,3153,3203,3201,3116,3141,3143,3151,3207,3205,3225,308,310,260,256,180,176,164,166,602,304,314,258,330,178,174,160,1648,578,582,292,290,374,370,146,150,1640,1646,636,580,584,294,376,368,364,148,1636,1642,1666,564,560,548,550,384,390,400,404,1522,1493,1499,1459,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,3367,3359,3365,3355,3361,3321,3167,3169,3175,3177,3138,3160,3156,3196,3202,3140,3142,3158,3154,3206,3200,309,265,263,255,183,185,165,307,305,261,257,181,177,163,161,577,303,291,285,373,141,145,159,1647,579,583,295,289,375,371,147,151,1643,1645,567,569,549,459,391,399,403,107,1521,1498,1500,565,561,547,545,387,389,401,405,1523,1494,1496,1456,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,3366,3362,3364,3168,3181,3178,3166,3162,3193,3197,3139,3159,3155,3195,3199,266,264,248,252,184,190,306,270,262,254,182,186,162,300,302,284,282,138,142,156,158,576,296,288,286,372,140,144,152,1644,568,574,458,460,392,396,108,104,1518,1501,566,570,546,456,388,398,402,106,1520,1497,1503,522,526,540,542,444,442,430,426,1524,1485,1510,1455,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,3363,3184,3179,3163,3182,3192,3165,3161,3194,3198,267,247,251,195,191,269,271,249,253,187,189,301,273,283,229,137,133,157,299,297,287,281,139,143,155,153,575,501,461,467,395,115,111,103,1517,571,573,457,463,393,397,109,105,1519,1502,521,517,541,455,443,433,429,85,1525,1511,1504,523,527,539,537,447,441,431,427,1527,1482,1509,1454,3185,3183,3180,3164,3189,3191,244,246,196,192,268,240,250,194,188,274,272,228,226,132,130,298,278,280,230,136,134,154,500,498,466,468,116,112,100,102,572,502,462,464,394,114,110,96,1516,516,514,452,454,438,434,82,86,1512,1505,520,518,538,448,440,432,428,84,1526,1508,1506,3186,3188,3190,245,201,199,243,241,197,193,275,239,227,221,131,277,279,231,225,135,129,499,493,469,43,119,121,101,503,497,465,471,117,113,99,97,515,507,453,475,437,77,81,95,1515,519,513,451,449,439,435,83,87,1513,1507,3187,202,200,242,206,198,236,238,220,218,276,232,224,222,128,492,490,42,44,120,126,496,494,470,40,118,122,98,504,506,476,472,74,78,92,94,512,508,450,474,436,76,80,88,1514,203,205,207,237,209,219,235,233,223,217,491,21,45,51,127,495,489,41,47,123,125,505,483,479,39,73,69,93,511,509,477,473,75,79,91,89,204,210,208,234,214,216,20,18,50,52,488,22,46,48,124,484,480,32,36,68,66,510,482,478,38,72,70,90,211,213,215,19,13,53,23,17,49,55,487,31,35,57,67,485,481,33,37,71,65,212,12,10,16,14,54,24,28,58,56,486,30,34,62,64,11,15,9,27,5,59,25,29,61,63,8,6,4,26,2,60,7,1,3,0,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,1214,1197,1213,1215,1198,1196,1212,1194,1211,1216,1172,1199,1201,1340,1192,1195,1210,1188,1217,1219,1173,1171,1200,1339,1343,1175,1193,1202,1341,1191,1189,1209,1187,1218,1220,1149,1168,1170,1338,1333,1344,1174,1165,1203,1336,1342,1176,1190,1205,1317,1184,1186,1208,1227,1223,1221,1150,1148,1169,980,1332,1345,1351,1146,1167,1164,1337,1335,1347,1179,1177,1204,1316,1314,1183,1185,1207,1318,1228,1224,1264,1226,1222,1238,772,1151,1153,979,983,1331,1350,1352,1144,1147,1166,981,1334,1346,1348,1140,1178,1163,1321,1315,1308,1180,1182,1206,1319,1312,1130,1229,1263,1267,1231,1225,1265,1239,1241,1237,773,771,1152,972,976,984,1330,1359,1355,775,1145,1154,978,982,1328,1349,1353,1143,1141,1160,1002,1322,1309,1307,1139,1181,1162,1320,1313,1311,1131,1098,1258,1260,1268,1129,1230,1262,1266,1232,1240,1246,1236,1242,2328,749,768,770,971,975,987,985,1360,1356,1412,774,765,1155,973,977,991,1329,1358,1354,776,1142,1159,1005,1001,1327,1306,1378,1136,1138,1161,1003,1323,1310,1304,1132,1097,1099,1259,1275,1271,1128,1101,1257,1261,1269,1126,1233,1247,1249,1235,1243,1245,2329,2327,2338,750,748,769,948,968,966,986,1363,1361,1411,1415,746,767,764,970,974,988,990,1367,1357,1413,779,777,1156,1010,1006,992,1326,1379,1381,783,1137,1158,1004,1000,1324,1305,1377,1135,1092,1096,1076,1276,1272,1303,1133,1102,1100,1256,1274,1270,1127,1106,1254,1248,1289,1125,1234,1244,1250,2330,2325,2326,2337,2306,2339,724,751,753,947,951,967,961,1544,1362,1406,1408,1416,744,747,766,949,969,965,989,1364,1366,1410,1414,740,778,763,1013,1009,995,993,1368,1380,1386,780,782,1157,1011,1007,999,1325,1376,1382,784,1091,1095,1079,1077,1277,1300,1774,1134,1093,1103,1075,1279,1273,1302,1120,1105,1107,1255,1290,1288,1124,1109,1253,1251,1286,2332,2322,2324,2282,2331,2309,2305,2336,2307,2340,725,723,752,940,944,952,960,1543,1547,1405,1407,1419,1417,727,745,754,946,950,964,962,1545,1365,1401,1409,1423,743,741,760,906,1014,1018,994,1371,1369,1387,1389,739,781,762,1012,1008,996,998,1375,1383,1385,791,787,1088,1080,1078,1034,1299,1775,1769,785,1090,1094,1072,1074,1278,1301,1773,1121,1119,1104,1068,1280,1291,1293,1123,1110,1108,1252,1284,1287,2452,2321,2323,2283,2281,2333,2315,2310,2302,2335,2308,2304,2343,2341,2347,701,720,722,939,943,953,959,1542,1537,1548,1404,1476,1418,1442,726,717,755,941,945,955,963,1540,1546,1402,1400,1420,1422,728,742,759,909,905,1019,1021,1561,1370,1398,1388,1424,736,738,761,907,1015,1017,997,1372,1374,1384,1390,792,788,844,1087,1083,1033,1035,1776,1768,1766,790,786,1089,1081,1073,1037,1298,1772,1770,810,1116,1118,1071,1069,1281,1292,1798,1122,1113,1111,1067,1283,1285,1294,2455,2453,2320,2284,2280,2278,2451,2316,2313,2297,2301,2334,2314,2311,2303,2384,2342,2361,2344,2346,2348,702,700,721,532,936,932,958,422,1536,1534,1549,1479,1477,1445,1441,698,719,716,938,942,954,956,1541,1539,1551,1403,1475,1421,1443,731,729,756,914,910,900,1020,1560,1558,1397,1399,1425,1431,735,737,758,908,904,1016,1022,1562,1373,1393,1391,1427,795,793,843,847,1084,1028,1032,1779,1777,1767,1761,799,789,845,1086,1082,1038,1036,1783,1771,1765,811,813,1117,1060,1070,1042,1297,1793,1797,809,1115,1112,1064,1066,1282,1295,1799,2456,2454,2469,2290,2286,2279,2277,2445,2448,2319,2285,2298,2258,2450,2317,2312,2296,2300,2387,2385,2362,2244,2383,2345,2360,2350,2349,2354,703,705,531,535,935,933,421,423,1535,1529,1480,1478,1450,1446,696,699,718,533,937,931,957,417,1538,1533,1550,1472,1474,1444,1440,692,730,715,917,913,901,899,1565,1559,1552,1396,1470,1430,1432,732,734,757,915,911,903,1023,1563,1556,1394,1392,1426,1428,682,794,838,840,848,1027,1031,1592,1778,1758,1760,1730,796,798,842,846,1085,1029,1039,1780,1782,1764,1762,800,812,818,1061,1059,1041,1043,1784,1794,1738,808,814,1114,1063,1065,1045,1296,1792,1796,2457,2459,2466,2470,2289,2274,2276,1800,2442,2447,2468,2291,2287,2261,2257,2444,2449,2318,2295,2299,2259,2388,2386,2365,2243,2247,2380,2382,2363,2245,2378,2351,2359,2353,2355,704,524,528,536,934,446,420,424,1528,1483,1481,1453,1449,697,706,530,534,928,930,418,416,1532,1530,1487,1473,1451,1447,695,693,712,554,918,924,898,414,1566,1570,1553,1471,1465,1433,1439,691,733,714,916,912,902,896,1564,1557,1555,1395,1469,1429,1435,683,650,837,839,855,851,1024,1591,1595,1757,1759,1698,1729,681,797,833,841,849,1026,1030,1593,1781,1753,1763,1731,803,801,819,821,1058,1052,1040,1787,1785,1741,1737,807,815,817,1062,1056,1046,1044,1791,1795,1739,2720,2458,2460,2464,2500,2273,2275,1807,1803,2437,2441,2467,2471,2288,2267,2262,1801,2443,2446,2473,2292,2294,2260,2256,2391,2389,2366,2236,2240,2248,2395,2381,2364,2242,2246,2379,2371,2358,2202,2377,2352,2356,523,527,539,537,447,441,431,427,1527,1482,1509,1454,707,525,529,543,929,445,419,425,1531,1484,1486,1452,1448,694,711,557,553,927,925,413,415,1571,1573,1488,1464,1462,1438,688,690,713,555,919,923,897,409,1567,1569,1554,1468,1466,1434,1436,684,649,651,836,856,852,895,1590,1585,1596,1756,1699,1701,1726,680,653,834,832,854,850,1025,1588,1594,1754,1752,1697,1728,678,802,830,820,877,1053,1051,1609,1786,1750,1742,1732,804,806,816,822,1057,1055,1047,1788,1790,1740,1736,2721,2719,2461,2463,2503,2501,2272,1808,1804,1860,2730,2438,2478,2465,2499,2268,2265,1806,1802,2436,2440,2474,2472,2293,2266,2263,1826,2432,2390,2409,2235,2239,2249,2255,2392,2394,2367,2237,2241,2251,2396,2369,2370,2205,2201,2376,2372,2357,2203,520,518,538,448,440,432,428,84,1526,1508,1506,522,526,540,542,444,442,430,426,1524,1485,1510,1455,708,562,558,544,926,386,412,406,1572,1489,1495,1463,1457,689,710,556,552,920,922,410,408,1568,1574,1491,1467,1461,1437,687,644,648,628,859,857,892,358,1584,1582,1597,1676,1700,1706,1725,685,654,652,835,863,853,894,1589,1587,1599,1755,1696,1702,1727,679,658,829,831,878,876,1050,1608,1606,1749,1751,1692,1733,677,805,825,823,874,1054,1048,1610,1789,1745,1743,1735,2722,2717,2718,2462,2504,2502,2512,1811,1809,1859,1863,2729,2698,2481,2477,2493,2496,2271,1815,1805,1861,2731,2439,2479,2475,2498,2269,2264,1827,1829,2435,2433,2410,2540,2232,2228,2254,1825,2431,2393,2408,2234,2238,2250,2252,2398,2397,2368,2210,2206,2196,2402,2375,2373,2204,2200,519,513,451,449,439,435,83,87,1513,1507,521,517,541,455,443,433,429,85,1525,1511,1504,565,561,547,545,387,389,401,405,1523,1494,1496,1456,709,563,559,551,921,385,411,407,1575,1490,1492,1460,1458,643,647,631,629,858,891,357,359,1583,1577,1677,1675,1707,1709,686,645,655,627,860,862,893,353,1586,1581,1598,1679,1703,1705,1724,672,657,659,828,864,879,881,1613,1607,1600,1748,1695,1693,1720,676,661,826,824,872,875,1049,1611,1604,1746,1744,1691,1734,2724,2714,2716,2674,2506,2505,2510,1992,1810,1854,1856,1864,2723,2701,2697,2482,2490,2495,2513,1812,1814,1858,1862,2728,2699,2480,2476,2492,2497,2270,1816,1828,1834,2732,2434,2413,2539,2543,2231,2229,1824,1830,2428,2430,2411,2541,2233,2227,2253,2170,2426,2399,2407,2213,2209,2197,2195,2401,2403,2374,2211,2207,2199,512,508,450,474,436,76,80,88,1514,516,514,452,454,438,434,82,86,1512,1505,566,570,546,456,388,398,402,106,1520,1497,1503,564,560,548,550,384,390,400,404,1522,1493,1499,1459,640,632,630,586,890,382,356,360,1576,1634,1674,1668,1708,642,646,624,626,861,888,354,352,1580,1578,1678,1672,1704,1710,673,671,656,620,867,865,880,350,1614,1618,1601,1680,1694,1719,1723,675,662,660,827,871,873,882,1612,1605,1603,1747,1688,1690,1721,2829,2713,2715,2675,2673,2507,2509,1991,1995,1853,1855,1867,1865,2725,2707,2702,2694,2485,2489,2511,1993,1813,1849,1857,1871,2727,2700,2696,2483,2491,2494,2514,1819,1817,1835,1837,2735,2733,2414,2532,2536,2544,2230,1823,1831,1833,2739,2429,2412,2538,2542,2224,2226,2171,2169,2427,2419,2406,2562,2214,2220,2194,2190,2425,2400,2404,2212,2208,2198,2192,511,509,477,473,75,79,91,89,515,507,453,475,437,77,81,95,1515,571,573,457,463,393,397,109,105,1519,1502,567,569,549,459,391,399,403,107,1521,1498,1500,639,635,585,587,383,377,367,363,1635,1637,1669,1667,641,633,625,589,889,381,355,361,1579,1633,1673,1671,1711,668,670,623,621,866,887,349,351,1619,1621,1683,1681,1718,1713,674,665,663,619,868,870,883,345,1615,1617,1602,1687,1689,1716,1722,2830,2828,2712,2676,2672,2670,2508,1990,1985,1996,1852,1924,1866,1890,2825,2708,2705,2689,2693,2486,2517,1988,1994,1850,1848,1868,1870,2726,2706,2703,2695,2484,2488,2515,2009,1818,1846,1836,1872,2776,2734,2753,2531,2535,2547,2545,1820,1822,1832,1838,2736,2738,2415,2533,2537,2551,2225,2172,2168,2166,2740,2417,2418,2565,2561,2223,2221,2185,2189,2424,2420,2405,2563,2215,2219,2193,2191,510,482,478,38,72,70,90,504,506,476,472,74,78,92,94,572,502,462,464,394,114,110,96,1516,568,574,458,460,392,396,108,104,1518,1501,636,580,584,294,376,368,364,148,1636,1642,1666,638,634,590,588,380,378,366,362,1632,1638,1670,1664,669,612,622,594,886,322,348,342,1620,1628,1682,1660,1712,667,664,616,618,869,884,346,344,1616,1622,1684,1686,1717,1715,2831,2833,2840,2682,2678,2671,2669,3089,1984,1982,1997,1927,1925,1893,1889,2822,2827,2711,2677,2690,2650,2518,1989,1987,1999,1851,1923,1869,1891,2824,2709,2704,2688,2692,2487,2516,2008,2006,1845,1847,1873,1879,2779,2777,2754,2636,2528,2526,2546,2010,1821,1841,1839,1875,2775,2737,2752,2530,2534,2548,2550,2178,2174,2167,2165,2742,2741,2416,2570,2566,2552,2222,2173,2186,2146,2746,2423,2421,2564,2560,2216,2218,2184,2188,485,481,33,37,71,65,505,483,479,39,73,69,93,503,497,465,471,117,113,99,97,575,501,461,467,395,115,111,103,1517,579,583,295,289,375,371,147,151,1643,1645,637,581,591,293,379,369,365,149,1639,1641,1665,613,611,593,595,323,325,337,341,1631,1629,1659,1663,666,615,617,597,885,321,347,343,1623,1627,1685,1661,1714,2832,2834,2838,2681,2666,2668,3088,3090,1983,1977,1928,1926,1898,1894,2817,2821,2841,2683,2679,2653,2649,3082,1986,1981,1998,1920,1922,1892,1888,2823,2826,2710,2687,2691,2651,2519,2013,2007,2000,1844,1918,1878,1880,2780,2778,2757,2635,2639,2527,2521,2011,2004,1842,1840,1874,1876,2772,2774,2755,2637,2529,2525,2549,2040,2177,2162,2164,2139,2770,2743,2751,2573,2569,2555,2553,2179,2175,2149,2145,2745,2747,2422,2571,2567,2559,2217,2183,2187,2147,486,30,34,62,64,484,480,32,36,68,66,496,494,470,40,118,122,98,500,498,466,468,116,112,100,102,576,296,288,286,372,140,144,152,1644,578,582,292,290,374,370,146,150,1640,1646,610,604,592,318,324,334,338,170,1630,1652,1656,614,608,598,596,320,326,336,340,1624,1626,1658,1662,2835,2837,2865,2665,2667,3101,3087,3091,1976,1931,1929,1901,1897,2818,2846,2839,2680,2659,2654,3083,3080,1980,1978,1935,1921,1899,1895,2816,2820,2842,2684,2686,2652,2648,3081,2014,2018,2001,1919,1913,1881,1887,2783,2781,2758,2628,2632,2640,2520,2012,2005,2003,1843,1917,1877,1883,2787,2773,2756,2634,2638,2524,2522,2039,2043,2161,2163,2117,2138,2771,2763,2750,2594,2574,2578,2554,2041,2176,2155,2150,2140,2769,2744,2748,2572,2568,2556,2558,2180,2182,2148,2144,25,29,61,63,487,31,35,57,67,495,489,41,47,123,125,499,493,469,43,119,121,101,299,297,287,281,139,143,155,153,577,303,291,285,373,141,145,159,1647,605,603,313,317,329,333,173,169,1651,1655,609,607,599,319,327,335,339,171,1625,1653,1657,2836,2866,2864,2664,3102,3100,3094,3092,1975,1930,1957,1902,2849,2845,2861,2660,2657,3057,3086,3077,1979,1932,1934,1900,1896,2819,2847,2843,2685,2658,2655,3084,3079,2019,2021,1936,1912,1910,1886,2815,2782,2802,2627,2631,2641,2647,3029,2015,2017,2002,1916,1914,1882,1884,2784,2786,2759,2629,2633,2643,2523,2038,2033,2044,2160,2116,2118,2137,2788,2761,2762,2597,2593,2579,2581,2036,2042,2156,2153,2112,2141,2768,2764,2749,2595,2575,2577,2557,2052,2181,2154,2151,2143,26,2,60,24,28,58,56,488,22,46,48,124,492,490,42,44,120,126,298,278,280,230,136,134,154,300,302,284,282,138,142,156,158,602,304,314,258,330,178,174,160,1648,606,600,312,316,328,332,172,168,1650,1654,2868,2867,2872,3103,3099,3095,3093,3219,1974,1956,1954,2850,2858,2863,2663,3058,3060,3072,3076,1972,1933,1958,1903,2848,2844,2860,2661,2656,3056,3085,3078,2020,1937,1943,1911,1905,2814,2803,2895,2624,2620,2646,3028,3030,2016,2022,1939,1915,1909,1885,2812,2785,2800,2626,2630,2642,2644,3024,2032,2030,2046,2099,2119,2121,2136,2790,2789,2760,2602,2598,2588,2580,2037,2035,2045,2159,2115,2113,2132,2794,2767,2765,2596,2592,2576,2582,2053,2050,2157,2152,2111,2142,1,3,27,5,59,23,17,49,55,491,21,45,51,127,277,279,231,225,135,129,301,273,283,229,137,133,157,307,305,261,257,181,177,163,161,601,311,315,259,331,179,175,167,1649,2869,2871,3110,3106,3098,3096,3218,3222,1961,1955,2853,2857,2873,3104,3059,3069,3073,3220,1973,1959,1952,2851,2859,2862,2662,3055,3061,3071,3075,1971,1942,1944,1904,2804,2894,2898,2623,2621,3053,3027,3031,2023,1938,1940,1908,1906,2813,2801,2896,2625,2619,2645,3025,3023,2031,2025,2098,2096,2120,2122,2811,2791,2799,2605,2601,2589,2587,3021,2034,2029,2047,2100,2114,2131,2135,2793,2795,2766,2603,2599,2591,2583,2054,2051,2049,2158,2108,2110,2133,0,6,4,16,14,54,20,18,50,52,276,232,224,222,128,274,272,228,226,132,130,306,270,262,254,182,186,162,308,310,260,256,180,176,164,166,2870,3111,3107,3147,3097,3211,3215,3223,1962,2854,2876,3109,3105,3064,3068,3217,3221,1960,1953,2852,2856,2874,3124,3062,3070,3074,3241,1968,1945,1951,2893,2888,2899,2622,3054,3048,3038,3034,1970,1941,1947,1907,2805,2891,2897,2616,2618,3052,3026,3032,2024,2069,2097,2095,2123,2807,2798,2912,2606,2612,2586,3020,3022,2028,2026,2103,2101,2130,2125,2810,2792,2796,2604,2600,2590,2584,3016,2055,2057,2048,2107,2109,2128,2134,7,15,9,19,13,53,235,233,223,217,275,239,227,221,131,269,271,249,253,187,189,309,265,263,255,183,185,165,3117,3113,3146,3150,3210,3214,3226,3224,2877,3112,3108,3148,3065,3212,3216,3230,1963,2855,2875,3123,3125,3063,3067,3244,3240,1967,1950,2887,2885,2900,2979,3047,3039,3035,3242,1969,1946,1948,2892,2890,2902,2617,3051,3049,3037,3033,2068,2070,2094,2092,2806,2911,2909,2615,2613,2993,3019,3013,2027,2064,2102,2088,2124,2809,2797,2913,2607,2611,2585,3017,3015,2056,2058,2104,2106,2129,2127,8,12,10,234,214,216,236,238,220,218,268,240,250,194,188,266,264,248,252,184,190,3116,3141,3143,3151,3207,3205,3225,3118,3114,3145,3149,3209,3213,3227,3229,2878,3122,3126,3128,3066,3249,3245,3231,1964,2886,2880,2980,2978,3046,3042,3243,3239,1966,1949,2889,2884,2901,2982,3050,3040,3036,3283,2071,2073,2093,2916,2910,2903,2614,2994,2996,3008,3012,2067,2065,2087,2091,2808,2914,2907,2608,2610,2992,3018,3014,2059,2063,2105,2089,2126,11,213,215,237,209,219,243,241,197,193,267,247,251,195,191,3140,3142,3158,3154,3206,3200,3115,3134,3144,3152,3208,3204,3228,3119,3121,3127,3129,3252,3248,3234,3232,2879,2937,2977,2971,3043,3250,3246,3238,1965,2883,2881,2981,2975,3045,3041,3282,3286,2072,2074,2917,2921,2904,2983,2995,3005,3009,3284,2066,2080,2084,2915,2908,2906,2609,2991,2997,3007,3011,2060,2062,2086,2090,212,210,208,242,206,198,244,246,196,192,3139,3159,3155,3195,3199,3135,3132,3157,3153,3203,3201,3120,3133,3130,3172,3253,3257,3233,2938,2940,2972,2970,3251,3247,3235,3237,2882,2936,2976,2974,3044,3275,3279,3287,2075,2922,2924,2986,2984,3000,3004,3281,3285,2079,2083,2918,2920,2905,2990,2998,3006,3010,3300,2061,2081,2085,211,205,207,245,201,199,3165,3161,3194,3198,3138,3160,3156,3196,3202,3136,3131,3171,3173,3258,3260,2939,2945,2969,3331,3254,3256,3236,2935,2941,2973,2967,3274,3278,3293,3289,2923,2931,2985,2963,3001,3276,3280,3288,2076,2919,2925,2987,2989,2999,3003,3301,3299,2078,2082,204,202,200,3164,3189,3191,3166,3162,3193,3197,3137,3170,3174,3176,3259,2946,2948,3332,3330,3255,3261,2942,2944,2968,3334,3271,3269,3292,2934,2932,2962,2966,3273,3277,3294,3290,2926,2930,2988,2964,3002,3304,3302,3298,2077,203,3188,3190,3163,3182,3192,3167,3169,3175,3177,2947,3353,3329,3323,3262,2943,2949,3333,3327,3270,3264,2933,2955,2959,3335,3272,3268,3291,2927,2929,2961,2965,3305,3303,3295,3297,3187,3183,3180,3168,3181,3178,3354,3356,3324,3322,2950,3352,3328,3326,3263,2954,2958,3342,3338,3267,3265,2928,2956,2960,3336,3306,3308,3296,3186,3184,3179,3355,3361,3321,3351,3357,3325,3319,2951,3343,3339,3317,3266,2953,2957,3341,3337,3307,3309,3185,3362,3364,3358,3360,3320,3350,3346,3316,3318,2952,3344,3340,3312,3310,3363,3359,3365,3347,3369,3315,3349,3345,3313,3311,3366,3368,3370,3348,3372,3314,3367,3373,3371,3374,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,0,7,1,3,8,6,26,4,2,60,11,15,27,25,9,5,29,59,61,63,212,12,16,24,486,10,14,28,30,54,58,34,56,62,64,211,213,19,23,487,485,215,13,17,31,481,53,49,35,33,55,57,37,67,71,65,204,210,234,20,488,484,510,208,214,18,22,480,482,216,50,46,32,478,52,48,36,38,124,68,72,66,70,90,203,205,237,235,491,495,505,511,207,209,233,21,489,483,509,219,223,45,41,479,477,217,51,47,39,473,127,123,73,75,125,69,79,93,91,89,3187,202,242,236,276,492,496,504,512,200,206,238,232,490,494,506,508,198,220,224,42,470,476,450,218,222,44,40,472,474,128,120,118,74,436,126,122,78,76,98,92,80,94,88,1514,3186,3188,245,243,275,277,499,503,515,519,3190,201,241,239,279,493,497,507,513,199,197,227,231,469,465,453,451,193,221,225,43,471,475,449,131,135,119,117,437,439,129,121,113,77,435,101,99,81,83,97,95,87,1515,1513,1507,3185,3183,3164,244,268,274,298,500,572,516,520,3180,3189,246,240,272,278,498,502,514,518,3191,196,250,228,280,466,462,452,538,192,194,226,230,468,464,454,448,188,132,136,116,394,438,440,130,134,112,114,434,432,154,100,110,82,428,102,96,86,84,1516,1512,1526,1505,1508,1506,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3179,3182,3161,247,271,273,297,501,573,517,527,3192,3194,251,249,283,287,461,457,541,539,3198,195,253,229,281,467,463,455,537,191,187,137,139,395,393,443,447,189,133,143,115,397,433,441,157,155,111,109,429,431,153,103,105,85,427,1517,1519,1525,1527,1502,1511,1482,1504,1509,1454,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3178,3193,3155,248,262,284,288,458,546,540,528,3197,3195,252,254,282,286,460,456,542,536,3199,184,182,138,372,392,388,444,934,190,186,142,140,396,398,442,446,162,156,144,108,402,430,420,158,152,104,106,426,424,1644,1518,1520,1524,1528,1501,1497,1485,1483,1503,1510,1481,1455,1453,1449,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3177,3196,3154,255,257,285,289,459,545,543,535,3202,3206,183,181,373,375,391,387,929,935,3200,185,177,141,371,399,389,445,933,165,163,145,147,403,401,419,421,161,159,151,107,405,425,423,1647,1643,1521,1523,1531,1535,1645,1498,1494,1484,1529,1500,1496,1486,1480,1456,1452,1478,1448,1450,1446,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3259,3203,3207,180,330,374,376,384,926,928,936,3201,3205,176,178,370,368,390,386,930,932,3225,164,174,146,364,400,412,418,958,166,160,150,148,404,406,416,422,1648,1640,1636,1522,1572,1532,1536,1646,1642,1493,1489,1530,1534,1666,1499,1495,1487,1549,1459,1463,1473,1479,1457,1451,1477,1447,1445,1441,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3260,3204,3214,179,333,369,377,385,925,931,943,3228,3226,175,173,365,367,411,413,957,953,3224,167,169,149,363,407,415,417,959,1649,1651,1639,1635,1575,1571,1538,1542,1655,1641,1637,1490,1573,1533,1537,1665,1669,1492,1488,1550,1548,1667,1460,1464,1472,1404,1458,1462,1474,1476,1438,1444,1418,1440,1442,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3233,3227,3215,172,338,366,356,410,898,954,944,3229,3223,168,170,362,360,408,414,956,952,1962,1650,1630,1632,1576,1568,1566,1541,960,1654,1652,1638,1634,1574,1570,1539,1543,1656,1670,1674,1491,1553,1551,1547,1664,1668,1467,1471,1403,1405,1708,1461,1465,1475,1407,1437,1433,1421,1419,1439,1443,1417,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3232,3230,3222,171,341,361,359,409,899,955,951,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1955,1653,1629,1633,1577,1569,1559,1540,961,1657,1659,1673,1677,1554,1552,1546,1544,1663,1671,1675,1468,1396,1402,1362,1711,1707,1466,1470,1400,1406,1709,1434,1430,1420,1408,1436,1432,1422,1416,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3237,3231,3221,3219,340,342,352,358,896,900,950,948,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1954,1658,1682,1678,1597,1555,1558,1545,986,1662,1660,1672,1676,1395,1397,1365,1363,1712,1704,1700,1469,1399,1401,1361,1710,1706,1429,1425,1409,1411,1725,1435,1431,1423,1415,2953,2933,2935,2879,2855,2853,2836,666,668,686,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1902,1661,1681,1679,1756,1394,1370,1364,985,1714,1718,1703,1699,1392,1398,1366,1360,1713,1705,1701,1426,1388,1410,1356,1724,1726,1428,1424,1414,1412,2928,2934,2882,2886,2852,2850,2835,667,673,2956,2932,2936,2880,2856,2858,2837,664,671,685,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1897,1717,1694,1696,1759,1393,1369,1367,1330,1715,1719,1702,1698,1391,1387,1357,1359,1723,1727,1729,1427,1389,1413,1355,2927,2923,2883,2887,2851,2849,2832,674,2929,2931,2881,2885,2859,2845,2834,665,672,2961,2985,2981,2900,2862,2861,2838,663,657,680,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1894,1716,1693,1697,1760,1384,1380,1358,1350,1722,1720,1728,1730,1390,1386,1354,1352,2926,2922,2889,2893,2848,2818,2831,2930,2924,2884,2888,2844,2846,2833,675,2988,2986,2901,2899,2860,2839,2840,662,679,2964,2984,2982,2622,2661,2680,2682,660,658,681,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1889,1721,1733,1731,1761,1385,1381,1353,1351,2919,2917,2892,2804,2819,2817,2925,2921,2890,2894,2847,2821,2830,2987,2904,2902,2898,2843,2841,2828,676,2989,2983,2617,2623,2685,2683,2712,661,678,2999,2995,3051,2621,2658,2679,2676,826,802,796,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,2918,2916,2805,2814,2816,2920,2910,2891,2803,2820,2822,2905,2903,2897,2895,2842,2827,2829,2990,2614,2616,2624,2684,2711,2713,677,2998,2994,2618,2620,2686,2677,2715,805,803,3006,2996,3052,2646,2652,2690,2675,825,801,799,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,2915,2806,2813,2815,2908,2911,2801,2782,2823,2906,2909,2896,2802,2826,2825,2609,2615,2625,2627,2710,2708,2724,2991,2613,2619,2631,2687,2705,2714,804,2997,2993,2645,2641,2691,2689,2716,806,800,3007,3019,3025,2647,2651,2693,2674,816,812,790,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,2808,2807,2812,2914,2798,2785,2783,2907,2912,2800,2781,2824,2608,2606,2626,2758,2709,2725,2610,2612,2630,2628,2704,2707,2722,2992,2586,2642,2632,2688,2702,2717,807,3018,3020,2644,2640,2692,2694,2718,815,811,3014,3022,3024,2520,2487,2485,2462,817,813,785,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,2809,2811,2797,2791,2784,2913,2799,2786,2780,2607,2605,2759,2778,2726,2611,2601,2629,2757,2706,2723,2585,2589,2633,2635,2703,2701,2721,3017,2587,2643,2639,2695,2697,2719,808,3015,3021,2523,2527,2484,2482,2461,814,810,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,2810,2792,2790,2796,2789,2787,2604,2760,2773,2779,2600,2602,2756,2777,2727,2590,2598,2634,2754,2700,2729,2584,2588,2638,2636,2696,2698,2720,3016,2580,2524,2528,2483,2481,2458,809,2055,2037,2522,2526,2491,2477,2460,1115,1121,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,2793,2795,2788,2766,2761,2772,2603,2762,2774,2776,2599,2597,2755,2734,2728,2591,2593,2637,2753,2699,2730,2583,2579,2529,2531,2480,2438,2457,2054,2581,2525,2535,2476,2478,2459,1122,2051,2036,2549,2547,2492,2465,2466,1113,1120,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,2794,2767,2771,2765,2763,2775,2596,2750,2737,2735,2592,2594,2752,2733,2731,2576,2574,2530,2414,2439,2437,2582,2578,2534,2532,2479,2441,2456,2053,2554,2548,2536,2475,2467,2454,1123,2050,2041,2550,2544,2498,2471,2469,1110,1127,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,2768,2764,2770,2749,2743,2736,2595,2751,2738,2732,2575,2573,2415,2434,2436,2577,2569,2533,2413,2440,2442,2557,2555,2537,2539,2474,2447,2455,2052,2553,2551,2543,2472,2468,2453,1124,2181,2179,2225,2231,2293,2291,2320,1109,1126,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,2769,2744,2742,2748,2741,2739,2572,2416,2429,2435,2568,2570,2412,2433,2443,2556,2566,2538,2410,2446,2445,2558,2552,2542,2540,2473,2448,2452,2180,2222,2224,2232,2292,2319,2321,1125,2182,2173,2226,2228,2294,2285,2323,1234,1232,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,2745,2747,2740,2422,2417,2428,2571,2418,2430,2432,2567,2565,2411,2390,2444,2559,2561,2541,2409,2449,2451,2217,2223,2233,2235,2318,2316,2332,2183,2221,2227,2239,2295,2313,2322,1235,2187,2185,2253,2249,2299,2297,2324,1243,1239,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,2746,2423,2427,2421,2419,2431,2564,2406,2393,2391,2560,2562,2408,2389,2450,2216,2214,2234,2366,2317,2333,2218,2220,2238,2236,2312,2315,2330,2184,2194,2250,2240,2296,2310,2325,1236,2188,2190,2252,2248,2300,2302,2326,1242,1238,2424,2420,2426,2405,2399,2392,2563,2407,2394,2388,2215,2213,2367,2386,2334,2219,2209,2237,2365,2314,2331,2193,2197,2241,2243,2311,2309,2329,2191,2195,2251,2247,2303,2305,2327,1237,2425,2400,2398,2404,2397,2395,2212,2368,2381,2387,2208,2210,2364,2385,2335,2198,2206,2242,2362,2308,2337,2192,2196,2246,2244,2304,2306,2328,2401,2403,2396,2374,2369,2380,2211,2370,2382,2384,2207,2205,2363,2342,2336,2199,2201,2245,2361,2307,2338,2402,2375,2379,2373,2371,2383,2204,2358,2345,2343,2200,2202,2360,2341,2339,2376,2372,2378,2357,2351,2344,2203,2359,2346,2340,2377,2352,2350,2356,2349,2347,2353,2355,2348,2354,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,3374,3373,3367,3371,3348,3368,3366,3372,3370,3314,3349,3347,3359,3363,3345,3369,3365,3313,3315,3311,2952,3350,3358,3362,3185,3344,3346,3360,3364,3340,3316,3320,3312,3318,3310,2953,2951,3351,3355,3184,3186,2957,3343,3357,3361,3179,3341,3339,3325,3321,3337,3317,3319,3307,3266,3309,2928,2954,2950,3354,3168,3183,3187,2956,2958,3352,3356,3181,3180,2960,3342,3328,3324,3178,3336,3338,3326,3322,3306,3267,3263,3308,3265,3296,2927,2933,2943,2947,3167,3163,3188,203,2929,2955,2949,3353,3169,3182,3190,2961,2959,3333,3329,3175,3192,2965,3335,3327,3323,3177,3305,3272,3270,3262,3303,3268,3264,3295,3291,3297,2926,2934,2942,2946,3137,3166,3164,202,204,2930,2932,2944,2948,3170,3162,3189,200,2988,2962,2968,3332,3174,3193,3191,2964,2966,3334,3330,3176,3197,3002,3273,3271,3255,3259,3304,3277,3269,3261,3302,3294,3292,3298,3290,2077,2919,2923,2935,2939,3136,3138,3165,245,205,211,2925,2931,2941,2945,3131,3160,3161,201,207,2987,2985,2973,2969,3171,3156,3194,199,2989,2963,2967,3331,3173,3196,3198,2999,3001,3274,3254,3258,3202,3003,3276,3278,3256,3260,3301,3280,3293,3236,3299,3288,3289,2078,2076,2082,2918,2922,2882,2938,3120,3135,3139,244,242,210,212,2920,2924,2936,2940,3133,3132,3159,246,206,208,2905,2986,2976,2972,3130,3157,3155,196,198,2990,2984,2974,2970,3172,3153,3195,192,2998,3000,3044,3251,3253,3203,3199,3006,3004,3275,3247,3257,3201,3010,3281,3279,3235,3233,3300,3285,3287,3237,2061,2079,2075,2081,2083,2085,2915,2917,2883,2879,3119,3115,3140,267,243,237,213,11,2908,2921,2881,2937,3121,3134,3142,247,241,209,215,2906,2904,2981,2977,3127,3144,3158,251,197,219,2609,2983,2975,2971,3129,3152,3154,195,193,2991,2995,3045,3043,3252,3208,3206,191,2997,3005,3041,3250,3248,3204,3200,3007,3009,3282,3246,3234,3228,3011,3284,3286,3238,3232,2060,2066,2072,1965,2062,2080,2074,2086,2084,2090,2808,2916,2889,2886,2878,3118,3116,266,268,236,234,12,8,2914,2910,2884,2880,3122,3114,3141,264,240,238,214,10,2907,2903,2901,2980,3126,3145,3143,248,250,220,216,2608,2614,2982,2978,3128,3149,3151,252,194,218,2610,2994,3050,3046,3066,3209,3207,184,188,2992,2996,3040,3042,3249,3213,3205,190,3018,3008,3036,3243,3245,3227,3225,3014,3012,3283,3239,3231,3229,2059,2067,2071,1966,1964,2063,2065,2073,1949,2105,2087,2093,2089,2091,2126,2809,2806,2892,2887,2855,2877,3117,309,269,275,235,19,15,7,2797,2911,2890,2885,2875,3112,3113,265,271,239,233,13,9,2913,2909,2902,2900,3123,3108,3146,263,249,227,223,53,2607,2615,2617,2979,3125,3148,3150,255,253,221,217,2611,2613,3051,3047,3063,3065,3210,183,187,131,2585,2993,3049,3039,3067,3212,3214,185,189,3017,3019,3037,3035,3244,3216,3226,165,3015,3013,3033,3242,3240,3230,3224,2056,2027,2068,1969,1967,1963,2058,2064,2070,1946,1950,2104,2102,2094,1948,2106,2088,2092,2129,2124,2127,2810,2807,2805,2893,2852,2854,2870,308,306,274,276,20,16,6,0,2792,2798,2891,2888,2856,2876,3111,310,270,272,232,18,14,4,2796,2912,2897,2899,2874,3109,3107,260,262,228,224,50,54,2604,2606,2616,2622,3124,3105,3147,256,254,226,222,52,2600,2612,2618,3054,3062,3064,3097,180,182,132,128,2590,2586,3052,3048,3070,3068,3211,176,186,130,2584,3020,3026,3038,3074,3217,3215,164,162,3016,3022,3032,3034,3241,3221,3223,166,2055,2028,2024,1970,1968,1960,1962,2057,2026,2069,1941,1945,1953,2048,2103,2097,1947,1951,2107,2101,2095,1907,2109,2130,2123,2128,2125,2134,2811,2813,2804,2851,2853,2869,601,307,301,277,491,23,27,1,2793,2791,2801,2894,2859,2857,2871,311,305,273,279,21,17,5,3,2795,2799,2896,2898,2862,2873,3110,315,261,283,231,45,49,59,2766,2605,2625,2623,2662,3104,3106,259,257,229,225,51,55,2603,2601,2619,2621,3055,3059,3098,331,181,137,135,127,2599,2589,2645,3053,3061,3069,3096,179,177,133,129,2591,2587,3025,3027,3071,3073,3218,175,163,157,2583,3021,3023,3031,3075,3220,3222,167,161,2054,2034,2031,2023,1971,1973,1961,1649,2051,2029,2025,1938,1942,1959,1955,2049,2047,2098,1940,1944,1952,2158,2100,2096,1908,1904,2108,2114,2120,1906,2110,2131,2122,2133,2135,2812,2814,2848,2850,2868,606,602,300,298,492,488,24,26,2790,2785,2803,2844,2858,2867,600,304,302,278,490,22,28,2,2794,2789,2800,2895,2860,2863,2872,312,314,284,280,42,46,58,60,2767,2760,2626,2624,2661,2663,3103,316,258,282,230,44,48,56,2765,2602,2630,2620,2656,3058,3099,328,330,138,136,120,124,2596,2598,2642,2646,3056,3060,3095,332,178,142,134,126,2592,2588,2644,3028,3085,3072,3093,172,174,156,154,2576,2580,3024,3030,3078,3076,3219,168,160,158,2582,2037,2032,2016,2020,1972,1974,1650,1648,2053,2035,2030,2022,1937,1933,1956,1654,2050,2045,2046,1939,1943,1958,1954,2157,2159,2099,1915,1911,1903,2152,2115,2119,1909,1905,2111,2113,2121,1885,2142,2132,2136,2815,2819,2849,2836,609,605,577,299,499,495,487,25,2784,2782,2847,2845,2866,607,603,303,297,493,489,31,29,2788,2786,2802,2843,2861,2864,599,313,291,287,469,41,35,61,2768,2761,2759,2627,2685,2660,2664,319,317,285,281,43,47,57,63,2764,2762,2629,2631,2658,2657,3102,327,329,373,139,119,123,67,2749,2597,2633,2641,2655,3057,3100,335,333,141,143,121,125,2595,2593,2643,2647,3084,3086,3094,339,173,145,155,101,2575,2579,2523,3029,3079,3077,3092,171,169,159,153,2577,2581,2038,2015,2019,1979,1975,1625,1651,1647,2557,2036,2033,2017,2021,1932,1930,1653,1655,2052,2042,2044,2002,1936,1934,1957,1657,2181,2156,2160,1916,1912,1900,1902,2154,2153,2116,1914,1910,1896,2151,2112,2118,1882,1886,2143,2141,2137,1884,2816,2818,2835,614,610,578,576,500,496,484,486,2783,2820,2846,2837,608,604,582,296,498,494,480,30,2787,2781,2842,2839,2865,598,592,292,288,466,470,32,34,2771,2773,2758,2684,2680,2665,596,318,290,286,468,40,36,62,2769,2763,2756,2628,2686,2659,2667,320,324,374,372,116,118,68,64,2744,2750,2634,2632,2652,2654,3101,326,334,370,140,112,122,66,2748,2594,2638,2640,2648,3083,3087,336,338,146,144,100,98,2572,2574,2524,2520,3081,3080,3091,340,170,150,152,102,2568,2578,2522,2012,2014,1980,1976,1624,1630,1640,1644,2556,2554,2039,2005,2018,1978,1931,1626,1652,1646,2558,2041,2043,2003,2001,1935,1929,1658,1656,2180,2176,2161,1843,1919,1921,1901,1662,2182,2155,2163,1917,1913,1899,1897,2148,2150,2117,1877,1881,1895,2144,2140,2138,1883,1887,2817,2832,666,613,637,579,575,503,505,485,2823,2821,2834,615,611,581,583,501,497,483,481,2780,2826,2841,2838,617,593,591,295,461,465,479,33,2772,2778,2710,2683,2681,597,595,293,289,467,471,39,37,2770,2774,2757,2687,2679,2666,885,323,379,375,395,117,73,71,2745,2743,2755,2635,2691,2653,2668,321,325,369,371,115,113,69,65,2747,2751,2637,2639,2651,2649,3088,347,337,365,147,111,99,93,2422,2573,2529,2527,2519,3082,3090,343,341,149,151,103,97,2571,2569,2525,2521,2013,1986,1983,1623,1631,1639,1643,1517,2567,2555,2549,2011,2007,1981,1977,1627,1629,1641,1645,2559,2553,2040,2004,2000,1998,1928,1685,1659,1665,2217,2179,2177,1842,1844,1920,1926,1661,1663,2183,2175,2162,1840,1918,1922,1898,1714,2187,2149,2164,1874,1878,1892,1894,2147,2145,2139,1876,1880,1888,2831,667,669,638,636,568,572,504,510,2822,2833,664,612,634,580,574,502,506,482,2824,2827,2840,616,622,590,584,458,462,476,478,2779,2709,2711,2682,618,594,588,294,460,464,472,38,2775,2777,2704,2677,2678,869,886,380,376,392,394,74,72,2742,2737,2754,2688,2690,2671,884,322,378,368,396,114,78,70,2746,2741,2752,2636,2692,2650,2669,346,348,366,364,108,110,92,90,2423,2416,2530,2528,2487,2518,3089,344,342,362,148,104,96,94,2421,2570,2534,2526,2516,1989,1984,1616,1620,1632,1636,1518,1516,2564,2566,2548,2546,2008,1987,1982,1622,1628,1638,1642,1501,2560,2552,2550,2010,2006,1999,1997,1684,1682,1670,1666,2216,2222,2178,1821,1845,1851,1927,1686,1660,1664,2218,2173,2174,1841,1847,1923,1925,1717,1712,2184,2186,2167,1839,1873,1869,1893,1715,2188,2146,2165,1875,1879,1891,1889,674,668,641,639,567,571,515,511,2830,665,670,633,635,569,573,507,509,2825,2828,663,623,625,585,549,457,453,477,2726,2708,2712,619,621,589,587,459,463,475,473,2776,2706,2705,2676,868,866,889,383,391,393,437,75,2736,2734,2703,2689,2672,870,887,381,377,399,397,77,79,2740,2738,2753,2695,2693,2670,883,349,355,367,403,109,81,91,2424,2417,2415,2531,2484,2486,2508,345,351,361,363,107,105,95,89,2420,2418,2533,2535,2488,2517,1990,1615,1619,1579,1635,1521,1519,1515,2405,2565,2537,2547,2515,1988,1985,1617,1621,1633,1637,1498,1502,2563,2561,2551,2545,2009,1994,1996,1602,1683,1673,1669,1500,2215,2223,2225,1820,1818,1850,1852,1687,1681,1671,1667,2219,2221,2172,1822,1846,1848,1924,1689,1718,1711,2193,2185,2168,1832,1836,1868,1866,1716,1713,2191,2189,2166,1838,1872,1870,1890,1722,673,642,640,564,566,516,512,675,671,646,632,560,570,514,508,2829,662,656,624,630,548,546,452,450,2725,2713,660,620,626,586,550,456,454,474,2727,2707,2715,827,867,861,890,384,388,438,436,2735,2700,2702,2675,871,865,888,382,390,398,434,76,2739,2733,2696,2694,2673,873,880,354,356,400,402,82,80,2427,2429,2414,2483,2485,2507,882,350,352,360,404,106,86,88,2425,2419,2412,2532,2491,2489,2509,1612,1614,1580,1576,1522,1520,1512,1514,2400,2406,2538,2536,2494,2511,1991,1605,1618,1578,1634,1493,1497,1505,2404,2562,2542,2544,2514,1993,1995,1603,1601,1678,1674,1499,1503,2212,2214,2224,2230,1819,1813,1853,1747,1680,1672,1668,1459,2208,2220,2226,1823,1817,1849,1855,1688,1694,1704,1708,2198,2194,2171,1831,1835,1857,1867,1690,1719,1710,2192,2190,2169,1833,1837,1871,1865,1721,1723,686,643,709,565,521,519,672,645,647,563,561,517,513,676,657,655,631,559,547,541,451,2724,661,659,627,629,551,545,455,449,2723,2714,826,828,860,858,921,387,443,439,2728,2701,2716,824,864,862,891,385,389,433,435,2732,2699,2697,2674,872,879,893,357,411,401,429,83,2428,2434,2480,2482,2506,875,881,353,359,407,405,85,87,2426,2430,2413,2476,2490,2505,1049,1613,1586,1583,1575,1523,1525,1513,2401,2399,2411,2539,2492,2495,2510,1611,1607,1581,1577,1490,1494,1511,1507,2403,2407,2541,2543,2497,2513,1992,1604,1600,1598,1677,1492,1496,1504,2374,2213,2233,2231,2270,1812,1810,1746,1748,1679,1675,1460,1456,2211,2209,2227,2229,1816,1814,1854,1744,1695,1703,1707,1458,2207,2197,2253,1824,1828,1858,1856,1691,1693,1705,1709,2199,2195,2170,1830,1834,1862,1864,1734,1720,1724,687,689,708,522,520,685,644,710,562,526,518,679,654,648,556,558,540,538,677,658,652,628,552,544,542,448,2722,805,829,835,859,920,926,444,440,2729,2717,825,831,863,857,922,386,442,432,2731,2698,2718,823,878,853,892,410,412,430,428,2435,2439,2481,2462,874,876,894,358,408,406,426,84,2431,2433,2479,2477,2504,1054,1050,1589,1584,1568,1572,1524,1526,2398,2393,2410,2475,2493,2502,1048,1608,1587,1582,1574,1489,1485,1508,2402,2397,2408,2540,2498,2496,2512,1610,1606,1599,1597,1491,1495,1510,1506,2375,2368,2234,2232,2269,2271,1811,1789,1749,1755,1676,1467,1463,1455,2373,2210,2238,2228,2264,1815,1809,1745,1751,1696,1700,1461,1457,2204,2206,2250,2254,1827,1805,1859,1743,1692,1702,1706,1437,2200,2196,2252,1825,1829,1861,1863,1735,1733,1727,1725,688,694,707,523,684,690,711,525,527,680,649,713,557,529,539,678,653,651,555,553,543,537,804,802,834,836,919,927,929,447,2721,806,830,832,856,923,925,445,441,2730,2719,816,820,854,852,897,413,419,431,2436,2438,2461,822,877,850,895,409,415,425,427,2432,2440,2478,2463,1057,1053,1025,1590,1567,1571,1531,1527,2392,2390,2474,2465,2503,1055,1051,1588,1585,1569,1573,1484,1482,2396,2394,2409,2472,2499,2501,1047,1609,1594,1596,1554,1488,1486,1509,2376,2369,2367,2235,2293,2268,2272,1788,1786,1754,1756,1468,1464,1452,1454,2372,2370,2237,2239,2266,2265,1808,1790,1750,1752,1699,1466,1462,1448,2357,2205,2241,2249,2263,1806,1804,1740,1742,1697,1701,1434,1438,2203,2201,2251,2255,1826,1802,1860,1736,1732,1728,1726,1436,695,697,704,691,693,706,524,683,733,712,530,528,681,650,714,554,534,536,803,797,837,916,918,928,934,807,801,833,839,912,924,930,446,2720,815,819,841,855,902,898,418,420,2437,2458,817,821,849,851,896,414,416,424,2443,2441,2460,1062,1058,1026,1024,1564,1566,1532,1528,2391,2446,2467,2464,1056,1052,1030,1591,1557,1570,1530,1483,2395,2389,2473,2471,2500,1046,1040,1593,1595,1555,1553,1487,1481,2379,2381,2366,2292,2288,2273,1044,1787,1781,1757,1395,1471,1473,1453,2377,2371,2364,2236,2294,2267,2275,1791,1785,1753,1759,1469,1465,1451,1449,2352,2358,2242,2240,2260,2262,1807,1795,1741,1763,1698,1429,1433,1447,2356,2202,2246,2248,2256,1801,1803,1739,1737,1731,1729,1435,1439,696,703,692,699,705,732,730,718,531,682,734,715,533,535,796,794,757,917,937,935,800,798,838,915,913,931,933,808,812,842,840,911,901,957,421,2457,814,818,846,848,903,899,417,423,2442,2459,1114,1061,1085,1027,1023,1565,1538,1535,2444,2447,2466,1063,1059,1029,1031,1563,1559,1533,1529,2388,2449,2468,2470,1065,1041,1039,1592,1556,1552,1550,1480,2380,2386,2318,2291,2289,1045,1043,1780,1778,1394,1396,1472,1478,2378,2382,2365,2295,2287,2274,1296,1784,1782,1758,1392,1470,1474,1450,2353,2351,2363,2243,2299,2261,2276,1792,1794,1764,1760,1426,1430,1444,1446,2355,2359,2245,2247,2259,2257,1800,1796,1738,1762,1730,1428,1432,1440,702,698,700,731,719,721,735,729,716,532,795,737,756,938,936,799,793,758,914,942,932,811,789,843,908,910,954,958,809,813,845,847,904,900,956,422,2456,1115,1117,1086,1084,1016,1020,1541,1536,2445,2454,1112,1060,1082,1028,1022,1560,1539,1534,2450,2448,2469,1064,1070,1038,1032,1562,1558,1551,1549,2387,2317,2319,2290,1066,1042,1036,1779,1373,1397,1403,1479,2383,2385,2312,2285,2286,1282,1297,1783,1777,1393,1399,1475,1477,2350,2345,2362,2296,2298,2279,1295,1793,1771,1767,1391,1425,1421,1445,2354,2349,2360,2244,2300,2258,2277,1799,1797,1765,1761,1427,1431,1443,1441,701,726,720,728,717,722,736,742,755,939,792,738,759,941,943,790,788,761,909,945,953,810,786,844,907,905,955,959,1122,1116,1089,1087,1015,1019,963,1542,2455,1113,1118,1081,1083,1017,1021,1540,1537,2451,2453,1111,1071,1073,1033,997,1561,1546,1548,2334,2316,2320,1067,1069,1037,1035,1372,1370,1402,1404,2384,2314,2313,2284,1283,1281,1298,1776,1374,1398,1400,1476,2344,2342,2311,2297,2280,1285,1292,1772,1768,1384,1388,1420,1418,2348,2346,2361,2303,2301,2278,1294,1798,1770,1766,1390,1424,1422,1442,725,727,723,743,745,752,739,741,754,940,791,781,760,946,944,785,787,762,906,950,952,1121,1090,1088,1012,1014,964,960,1123,1119,1094,1080,1008,1018,962,1543,2452,1110,1104,1072,1078,996,994,1545,1547,2333,2321,1108,1068,1074,1034,998,1371,1365,1405,2335,2315,2323,1252,1280,1278,1299,1375,1369,1401,1407,2343,2308,2310,2283,1284,1291,1301,1775,1383,1387,1409,1419,2347,2341,2304,2302,2281,1287,1293,1773,1769,1385,1389,1423,1417,724,744,751,740,747,753,780,778,766,947,784,782,763,949,951,1134,1091,1157,1013,969,967,1120,1093,1095,1011,1009,965,961,1124,1105,1103,1079,1007,995,989,1544,2332,1109,1107,1075,1077,999,993,1364,1362,2331,2322,1253,1255,1279,1277,1325,1368,1366,1406,2336,2309,2324,1251,1290,1273,1300,1376,1380,1410,1408,2340,2307,2305,2282,1286,1288,1302,1774,1382,1386,1414,1416,750,746,748,779,767,769,783,777,764,948,1135,1137,1156,970,968,1133,1092,1158,1010,974,966,1127,1102,1096,1004,1006,988,986,1125,1106,1100,1076,1000,992,990,1363,2330,1234,1254,1256,1276,1324,1326,1367,1361,2337,2325,1244,1248,1274,1272,1305,1379,1357,1411,2339,2306,2326,1250,1289,1270,1303,1377,1381,1413,1415,749,774,768,776,765,770,1136,1142,1155,971,1132,1138,1159,973,975,1128,1097,1161,1005,977,987,1126,1101,1099,1003,1001,991,985,1235,1233,1257,1259,1323,1327,1329,1360,2329,1243,1247,1261,1275,1310,1306,1358,1356,2338,2327,1245,1249,1269,1271,1304,1378,1354,1412,773,775,771,1143,1145,1152,1139,1141,1154,972,1131,1181,1160,978,976,1129,1098,1162,1002,982,984,1232,1230,1258,1320,1322,1328,1330,1236,1240,1262,1260,1313,1309,1349,1359,2328,1242,1246,1266,1268,1311,1307,1353,1355,772,1144,1151,1140,1147,1153,1180,1178,1166,979,1130,1182,1163,981,983,1231,1229,1206,1321,1334,1331,1239,1225,1263,1319,1315,1346,1350,1237,1241,1265,1267,1312,1308,1348,1352,1150,1146,1148,1179,1167,1169,1183,1177,1164,980,1228,1185,1204,1337,1332,1226,1224,1207,1316,1335,1345,1238,1222,1264,1318,1314,1347,1351,1149,1174,1168,1176,1165,1170,1184,1190,1203,1338,1227,1186,1205,1336,1333,1221,1223,1208,1317,1342,1344,1173,1175,1171,1191,1193,1200,1187,1189,1202,1339,1220,1218,1209,1341,1343,1172,1192,1199,1188,1195,1201,1219,1217,1210,1340,1198,1194,1196,1216,1211,1212,1197,1215,1213,1214,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,2810,2809,2811,2793,2808,2807,2812,2792,2790,2794,2915,2806,2813,2815,2797,2791,2784,2795,2788,2768,2918,2916,2805,2814,2816,2914,2798,2785,2783,2796,2789,2787,2767,2771,2769,2919,2917,2892,2804,2819,2817,2908,2911,2801,2782,2823,2913,2799,2786,2780,2766,2761,2772,2764,2770,2745,2926,2922,2889,2893,2848,2818,2831,2920,2910,2891,2803,2820,2822,2907,2912,2800,2781,2824,2604,2760,2773,2779,2765,2763,2775,2744,2742,2746,2927,2923,2883,2887,2851,2849,2832,674,2925,2921,2890,2894,2847,2821,2830,2906,2909,2896,2802,2826,2825,2607,2605,2759,2778,2726,2603,2762,2774,2776,2749,2743,2736,2747,2740,2424,2928,2934,2882,2886,2852,2850,2835,667,673,2930,2924,2884,2888,2844,2846,2833,675,2905,2903,2897,2895,2842,2827,2829,2608,2606,2626,2758,2709,2725,2600,2602,2756,2777,2727,2596,2750,2737,2735,2748,2741,2739,2423,2427,2425,2953,2933,2935,2879,2855,2853,2836,666,668,686,2929,2931,2881,2885,2859,2845,2834,665,672,2987,2904,2902,2898,2843,2841,2828,676,2609,2615,2625,2627,2710,2708,2724,2611,2601,2629,2757,2706,2723,2599,2597,2755,2734,2728,2595,2751,2738,2732,2422,2417,2428,2420,2426,2401,2952,2954,2942,2938,2878,2854,2868,614,669,642,687,2956,2932,2936,2880,2856,2858,2837,664,671,685,2988,2986,2901,2899,2860,2839,2840,662,679,2990,2614,2616,2624,2684,2711,2713,677,2610,2612,2630,2628,2704,2707,2722,2590,2598,2634,2754,2700,2729,2592,2594,2752,2733,2731,2572,2416,2429,2435,2421,2419,2431,2400,2398,2402,3349,2951,2943,2939,3119,2877,2869,609,613,641,643,688,2957,2955,2941,2937,2875,2857,2866,615,670,645,684,2961,2985,2981,2900,2862,2861,2838,663,657,680,2989,2983,2617,2623,2685,2683,2712,661,678,2991,2613,2619,2631,2687,2705,2714,804,2585,2589,2633,2635,2703,2701,2721,2591,2593,2637,2753,2699,2730,2575,2573,2415,2434,2436,2571,2418,2430,2432,2405,2399,2392,2403,2396,2376,3348,3350,2950,2946,3120,3118,2870,606,610,638,640,689,695,3344,2958,2944,2940,3122,2876,2867,608,612,646,644,691,2960,2962,2976,2980,2874,2863,2865,616,656,654,683,2964,2984,2982,2622,2661,2680,2682,660,658,681,2998,2994,2618,2620,2686,2677,2715,805,803,2992,2586,2642,2632,2688,2702,2717,807,2584,2588,2638,2636,2696,2698,2720,2576,2574,2530,2414,2439,2437,2568,2570,2412,2433,2443,2564,2406,2393,2391,2404,2397,2395,2375,2379,2377,3373,3347,3351,2947,3136,3115,3117,601,605,637,639,709,694,696,3345,3343,2949,2945,3121,3112,2871,607,611,633,647,690,692,3341,2959,2973,2977,3123,2873,2864,617,623,655,649,732,2965,2963,2975,2979,2662,2660,2681,619,659,653,682,2999,2995,3051,2621,2658,2679,2676,826,802,796,2997,2993,2645,2641,2691,2689,2716,806,800,3017,2587,2643,2639,2695,2697,2719,808,2583,2579,2529,2531,2480,2438,2457,2577,2569,2533,2413,2440,2442,2567,2565,2411,2390,2444,2563,2407,2394,2388,2374,2369,2380,2372,2378,2353,3374,3368,3358,3354,3137,3135,3116,308,602,578,636,564,708,697,702,3372,3346,3352,2948,3133,3114,3111,600,604,634,632,710,693,698,3340,3342,2968,2972,3126,3109,2872,598,622,624,648,733,731,3336,2966,2974,2978,3124,2663,2665,618,620,652,650,735,3002,3000,3050,3054,2656,2659,2678,827,829,797,795,3006,2996,3052,2646,2652,2690,2675,825,801,799,3018,3020,2644,2640,2692,2694,2718,815,811,3016,2580,2524,2528,2483,2481,2458,809,2582,2578,2534,2532,2479,2441,2456,2556,2566,2538,2410,2446,2445,2560,2562,2408,2389,2450,2212,2368,2381,2387,2373,2371,2383,2352,2350,2354,3367,3359,3355,3167,3138,3140,309,307,577,579,567,565,707,703,3371,3369,3357,3353,3131,3134,3113,311,603,581,635,563,711,699,701,3313,3339,3333,2969,3127,3108,3110,599,593,625,631,713,730,726,3337,3335,2967,2971,3125,3104,2664,597,621,627,651,734,728,3305,3001,3045,3047,3055,2657,2666,868,828,834,794,736,3003,3005,3049,3053,2655,2653,2672,824,830,798,792,3007,3019,3025,2647,2651,2693,2674,816,812,790,3015,3021,2523,2527,2484,2482,2461,814,810,2054,2581,2525,2535,2476,2478,2459,1122,2557,2555,2537,2539,2474,2447,2455,2559,2561,2541,2409,2449,2451,2215,2213,2367,2386,2334,2211,2370,2382,2384,2357,2351,2344,2355,2348,3366,3362,3168,3166,3139,266,306,300,576,568,566,522,704,3370,3360,3356,3170,3132,3141,310,304,582,580,560,562,706,700,3314,3316,3328,3332,3130,3145,3107,312,592,590,630,556,712,719,725,3312,3338,3334,2970,3128,3105,3103,596,594,626,628,714,729,727,3306,3273,3044,3046,3062,3058,2667,869,867,835,837,737,743,3304,3004,3040,3048,3056,2654,2671,871,831,833,793,739,3010,3008,3026,3028,2648,2650,2673,823,819,789,791,3014,3022,3024,2520,2487,2485,2462,817,813,785,2055,2037,2522,2526,2491,2477,2460,1115,1121,2053,2554,2548,2536,2475,2467,2454,1123,2558,2552,2542,2540,2473,2448,2452,2216,2214,2234,2366,2317,2333,2208,2210,2364,2385,2335,2204,2358,2345,2343,2356,2349,2347,3363,3184,3163,3165,267,269,301,299,575,571,521,523,3365,3361,3169,3160,3142,265,305,303,583,569,561,525,705,3315,3325,3329,3171,3144,3146,315,313,591,585,559,557,718,720,3311,3317,3327,3331,3129,3148,3106,319,595,589,629,555,715,717,724,3307,3272,3274,3043,3063,3059,3102,885,866,860,836,757,742,744,3303,3276,3041,3039,3061,3057,2668,870,864,832,838,738,740,3301,3009,3037,3027,3084,2649,2670,872,820,842,788,780,3011,3013,3023,3029,2519,2486,2506,822,818,786,784,2056,2034,2038,2521,2488,2490,2463,1114,1116,1134,2051,2036,2549,2547,2492,2465,2466,1113,1120,2052,2553,2551,2543,2472,2468,2453,1124,2217,2223,2233,2235,2318,2316,2332,2219,2209,2237,2365,2314,2331,2207,2205,2363,2342,2336,2203,2359,2346,2340,3185,3183,3164,244,268,274,298,500,572,516,520,3364,3181,3162,3159,264,270,302,296,574,570,526,524,3320,3324,3174,3157,3143,260,314,292,584,548,558,530,721,3318,3326,3330,3172,3149,3147,316,318,588,586,552,554,716,723,3310,3267,3271,3251,3066,3064,3099,320,886,861,859,916,756,745,750,3308,3277,3275,3042,3070,3060,3101,884,865,863,839,758,741,746,3302,3281,3036,3038,3085,3083,2669,873,878,841,843,781,779,3300,3012,3032,3030,3081,2518,2507,874,821,845,787,783,2059,2028,2032,2012,2516,2489,2504,1062,1117,1090,1135,2057,2035,2039,2546,2494,2493,2464,1112,1119,1133,2050,2041,2550,2544,2498,2471,2469,1110,1127,2180,2222,2224,2232,2292,2319,2321,1125,2218,2220,2238,2236,2312,2315,2330,2198,2206,2242,2362,2308,2337,2200,2202,2360,2341,2339,3186,3188,245,243,275,277,499,503,515,519,3179,3182,3161,247,271,273,297,501,573,517,527,3321,3175,3156,3158,263,261,291,295,549,547,529,531,3319,3323,3173,3152,3150,259,317,293,587,551,553,533,722,3266,3270,3254,3252,3065,3098,327,323,889,858,919,917,755,751,3309,3268,3278,3250,3067,3069,3100,321,887,862,856,915,759,747,749,3295,3280,3282,3035,3071,3086,3088,883,879,854,840,761,778,774,3299,3284,3033,3031,3079,3082,2508,875,877,846,844,782,776,2060,2027,2031,2015,2013,2517,2505,1057,1061,1089,1091,1136,2058,2029,2033,2011,2515,2495,2503,1063,1118,1093,1132,2049,2042,2040,2545,2497,2499,2470,1111,1105,1128,2181,2179,2225,2231,2293,2291,2320,1109,1126,2183,2221,2227,2239,2295,2313,2322,1235,2193,2197,2241,2243,2311,2309,2329,2199,2201,2245,2361,2307,2338,3187,202,242,236,276,492,496,504,512,3180,3189,246,240,272,278,498,502,514,518,3178,3193,3155,248,262,284,288,458,546,540,528,3322,3176,3153,3151,256,258,290,294,550,544,534,532,3263,3255,3253,3209,3097,328,324,380,890,920,918,938,752,3265,3269,3247,3249,3068,3095,326,322,888,857,912,914,754,748,3296,3294,3279,3243,3074,3072,3087,346,880,853,855,908,760,767,773,3298,3285,3283,3034,3078,3080,3089,882,876,849,847,762,777,775,2061,2067,2024,2016,2014,1989,2509,1054,1058,1086,1088,1137,1143,2063,2026,2030,2005,2008,2511,2502,1056,1060,1094,1092,1139,2048,2045,2043,2010,2514,2496,2500,1064,1104,1102,1131,2157,2176,2178,2230,2269,2288,2290,1108,1106,1129,2182,2173,2226,2228,2294,2285,2323,1234,1232,2184,2194,2250,2240,2296,2310,2325,1236,2192,2196,2246,2244,2304,2306,2328,203,205,237,235,491,495,505,511,3190,201,241,239,279,493,497,507,513,3192,3194,251,249,283,287,461,457,541,539,3177,3196,3154,255,257,285,289,459,545,543,535,3262,3258,3208,3210,331,329,379,383,921,927,937,939,3264,3256,3248,3212,3096,335,325,381,891,923,913,941,753,3291,3293,3246,3244,3073,3094,347,349,893,852,911,909,766,768,3297,3288,3286,3242,3075,3077,3090,345,881,850,848,907,763,765,772,2078,2066,2068,2023,2019,1986,1990,1049,1053,1085,1087,1157,1142,1144,2062,2064,2025,2017,2007,1988,2510,1055,1059,1081,1095,1138,1140,2104,2047,2044,2004,2009,2513,2501,1065,1071,1103,1097,1180,2158,2156,2177,1820,2270,2268,2289,1067,1107,1101,1130,2154,2175,2172,2229,2266,2287,2284,1253,1233,1231,2187,2185,2253,2249,2299,2297,2324,1243,1239,2191,2195,2251,2247,2303,2305,2327,1237,204,210,234,20,488,484,510,200,206,238,232,490,494,506,508,3191,196,250,228,280,466,462,452,538,3197,3195,252,254,282,286,460,456,542,536,3259,3203,3207,180,330,374,376,384,926,928,936,3261,3257,3213,3211,332,334,378,382,922,924,942,940,3292,3235,3245,3217,3093,336,348,354,892,902,910,946,769,3290,3287,3239,3241,3076,3091,344,350,894,851,904,906,764,771,2077,2079,2071,1970,2020,1980,1984,1612,1050,1026,1084,1012,1156,1145,1150,2081,2065,2069,2022,2018,1987,1991,1048,1052,1082,1080,1158,1141,1146,2105,2103,2046,2003,2006,1993,2512,1046,1070,1072,1096,1181,1179,2107,2159,2161,1821,1819,2271,2273,1066,1068,1100,1098,1183,2152,2155,2174,1823,2264,2267,2286,1252,1254,1230,1228,2148,2186,2171,2254,2260,2298,2283,1244,1240,1226,2188,2190,2252,2248,2300,2302,2326,1242,1238,211,213,19,23,487,485,207,209,233,21,489,483,509,199,197,227,231,469,465,453,451,3198,195,253,229,281,467,463,455,537,3202,3206,183,181,373,375,391,387,929,935,3260,3204,3214,179,333,369,377,385,925,931,943,3236,3234,3216,3218,339,337,355,357,897,901,945,947,3289,3238,3240,3220,3092,343,351,353,895,903,905,949,770,2076,2072,1969,1971,1979,1983,1615,1613,1025,1027,1015,1013,1155,1151,2082,2080,2070,1938,2021,1981,1985,1611,1051,1029,1083,1011,1159,1147,1149,2086,2102,2098,2002,2000,1994,1992,1047,1041,1073,1079,1161,1178,1174,2106,2100,2160,1842,1818,1812,2272,1045,1069,1075,1099,1182,1176,2108,2153,2162,1822,1816,2265,2274,1283,1255,1257,1229,1184,2151,2149,2168,1824,2263,2261,2280,1251,1247,1225,1227,2147,2189,2170,2255,2259,2301,2282,1245,1241,1221,212,12,16,24,486,208,214,18,22,480,482,198,220,224,42,470,476,450,192,194,226,230,468,464,454,448,3199,184,182,138,372,392,388,444,934,3201,3205,176,178,370,368,390,386,930,932,3233,3227,3215,172,338,366,356,410,898,954,944,3237,3231,3221,3219,340,342,352,358,896,900,950,948,2075,1966,1968,1972,1976,1616,1614,1589,1024,1016,1014,970,1152,2083,2073,1941,1937,1978,1982,1605,1608,1030,1028,1008,1010,1154,1148,2085,2087,2097,1939,2001,1999,1995,1610,1040,1038,1078,1004,1160,1167,1173,2089,2101,2099,1843,1845,1813,1811,1044,1042,1074,1076,1162,1177,1175,2109,2115,2163,1841,1817,1815,2275,1282,1280,1256,1258,1185,1191,2111,2150,2167,1831,1827,2262,2279,1284,1248,1262,1224,1187,2144,2146,2169,1825,2256,2258,2281,1250,1246,1222,1220,11,15,27,25,215,13,17,31,481,219,223,45,41,479,477,193,221,225,43,471,475,449,191,187,137,139,395,393,443,447,3200,185,177,141,371,399,389,445,933,3228,3226,175,173,365,367,411,413,957,953,3232,3230,3222,171,341,361,359,409,899,955,951,1965,1967,1973,1975,1623,1619,1586,1590,1023,1019,969,971,2074,1946,1942,1932,1977,1617,1607,1588,1031,1017,1009,973,1153,2084,2094,1940,1936,1998,1996,1604,1609,1039,1033,1007,1005,1166,1168,2090,2088,2096,1916,1844,1850,1810,1788,1043,1037,1077,1003,1163,1165,1172,2129,2114,2116,1840,1846,1814,1808,1296,1281,1279,1259,1206,1190,1192,2110,2112,2164,1832,1828,1806,2276,1285,1290,1261,1263,1186,1188,2143,2145,2166,1830,1826,2257,2278,1286,1249,1265,1223,1219,8,6,26,10,14,28,30,216,50,46,32,478,218,222,44,40,472,474,188,132,136,116,394,438,440,190,186,142,140,396,398,442,446,3225,164,174,146,364,400,412,418,958,3229,3223,168,170,362,360,408,414,956,952,1964,1960,1974,1624,1620,1580,1584,1564,1020,964,968,1949,1945,1933,1931,1622,1618,1587,1591,1022,1018,974,972,2093,1947,1943,1935,1997,1603,1606,1593,1032,996,1006,978,1169,2091,2095,1915,1919,1851,1853,1789,1787,1036,1034,1000,1002,1164,1171,2126,2130,2119,1917,1847,1849,1809,1791,1297,1278,1276,1320,1204,1193,1198,2128,2113,2117,1839,1835,1805,1807,1295,1291,1274,1260,1207,1189,1194,2142,2140,2165,1833,1829,1801,2277,1287,1289,1266,1264,1218,1216,7,1,9,5,29,53,49,35,33,217,51,47,39,473,131,135,119,117,437,439,189,133,143,115,397,433,441,165,163,145,147,403,401,419,421,3224,167,169,149,363,407,415,417,959,1963,1961,1625,1631,1579,1583,1567,1565,963,967,1950,1959,1930,1627,1621,1581,1585,1563,1021,965,975,1948,1944,1934,1928,1602,1600,1594,1592,997,995,977,979,2092,1908,1912,1920,1852,1746,1786,1780,1035,999,1001,981,1170,2124,2120,1914,1918,1848,1854,1790,1784,1298,1277,1323,1321,1203,1199,2127,2131,2118,1874,1836,1858,1804,1792,1292,1273,1275,1319,1205,1195,1197,2133,2141,2139,1838,1834,1802,1800,1294,1288,1269,1267,1208,1217,1215,0,4,2,54,58,34,52,48,36,38,128,120,118,74,436,130,134,112,114,434,432,162,156,144,108,402,430,420,166,160,150,148,404,406,416,422,1962,1650,1630,1632,1576,1568,1566,1541,960,1953,1956,1626,1628,1578,1582,1557,1560,962,966,1951,1958,1929,1684,1601,1599,1595,1562,994,988,976,1907,1911,1921,1927,1747,1749,1781,1779,998,992,982,980,2123,1909,1913,1923,1855,1745,1785,1783,1299,1324,1322,1337,1200,2125,2121,1877,1873,1857,1859,1795,1793,1301,1272,1313,1316,1202,1196,2134,2132,2138,1875,1837,1861,1803,1799,1293,1270,1268,1318,1209,1211,1214,3,59,61,55,57,37,127,123,73,75,129,121,113,77,435,157,155,111,109,429,431,161,159,151,107,405,425,423,1649,1651,1639,1635,1575,1571,1538,1542,1955,1653,1629,1633,1577,1569,1559,1540,961,1952,1957,1685,1683,1598,1596,1556,1561,989,987,1904,1900,1926,1687,1748,1754,1778,1372,993,991,983,1906,1910,1922,1924,1744,1750,1782,1776,1325,1327,1334,1338,2122,1882,1878,1868,1856,1740,1794,1772,1300,1310,1315,1336,1201,2135,2137,1876,1872,1862,1860,1796,1798,1302,1271,1312,1317,1210,1213,60,56,62,124,68,72,126,122,78,76,154,100,110,82,428,158,152,104,106,426,424,1648,1640,1636,1522,1572,1532,1536,1654,1652,1638,1634,1574,1570,1539,1543,1954,1658,1682,1678,1597,1555,1558,1545,986,1903,1901,1686,1680,1755,1757,1373,1371,990,984,1905,1899,1925,1688,1751,1753,1777,1375,1326,1328,1332,1885,1881,1869,1867,1743,1741,1771,1775,1305,1309,1335,1339,2136,1883,1879,1871,1863,1739,1797,1773,1303,1311,1314,1341,1212,63,67,71,125,69,79,101,99,81,83,153,103,105,85,427,1647,1643,1521,1523,1531,1535,1655,1641,1637,1490,1573,1533,1537,1657,1659,1673,1677,1554,1552,1546,1544,1902,1661,1681,1679,1756,1394,1370,1364,985,1896,1898,1689,1695,1752,1758,1374,1368,1329,1331,1886,1892,1866,1691,1742,1764,1768,1376,1306,1346,1333,1884,1880,1870,1864,1736,1738,1770,1774,1304,1308,1342,1340,64,66,70,98,92,80,102,96,86,84,1644,1518,1520,1524,1528,1646,1642,1493,1489,1530,1534,1656,1670,1674,1491,1553,1551,1547,1662,1660,1672,1676,1395,1397,1365,1363,1897,1717,1694,1696,1759,1393,1369,1367,1330,1895,1893,1690,1692,1763,1767,1383,1379,1349,1345,1887,1891,1865,1735,1737,1765,1769,1377,1307,1347,1343,65,93,91,97,95,87,1517,1519,1525,1527,1645,1498,1494,1484,1529,1665,1669,1492,1488,1550,1548,1663,1671,1675,1468,1396,1402,1362,1714,1718,1703,1699,1392,1398,1366,1360,1894,1716,1693,1697,1760,1384,1380,1358,1350,1888,1890,1734,1732,1762,1766,1382,1378,1348,1344,90,94,88,1516,1512,1526,1501,1497,1485,1483,1666,1499,1495,1487,1549,1664,1668,1467,1471,1403,1405,1712,1704,1700,1469,1399,1401,1361,1715,1719,1702,1698,1391,1387,1357,1359,1889,1721,1733,1731,1761,1385,1381,1353,1351,89,1515,1513,1502,1511,1482,1500,1496,1486,1480,1667,1460,1464,1472,1404,1711,1707,1466,1470,1400,1406,1713,1705,1701,1426,1388,1410,1356,1722,1720,1728,1730,1390,1386,1354,1352,1514,1505,1508,1503,1510,1481,1459,1463,1473,1479,1708,1461,1465,1475,1407,1710,1706,1429,1425,1409,1411,1723,1727,1729,1427,1389,1413,1355,1507,1504,1509,1456,1452,1478,1458,1462,1474,1476,1709,1434,1430,1420,1408,1724,1726,1428,1424,1414,1412,1506,1455,1453,1457,1451,1477,1437,1433,1421,1419,1725,1435,1431,1423,1415,1454,1448,1450,1438,1444,1418,1436,1432,1422,1416,1449,1447,1445,1439,1443,1417,1446,1440,1442,1441,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134,702,703,696,701,704,697,695,700,698,725,523,707,694,688,705,699,692,720,726,724,520,522,708,689,687,524,706,693,691,721,719,731,723,727,750,519,521,565,709,643,686,527,525,711,690,684,531,718,730,732,722,717,728,751,744,749,512,516,566,564,640,642,673,518,526,562,710,644,685,528,530,712,733,683,532,716,729,735,752,745,743,748,746,773,511,515,571,567,639,641,668,674,513,517,561,563,647,645,672,539,529,557,713,649,680,535,533,715,734,682,939,755,742,736,753,747,740,768,774,772,510,504,572,568,636,638,669,667,2831,508,514,570,560,632,646,671,675,538,540,558,556,648,654,679,536,534,554,714,650,681,936,938,756,737,795,940,754,741,739,769,767,779,771,775,1150,485,505,503,575,579,637,613,666,2832,2817,509,507,573,569,635,633,670,665,2830,451,541,547,559,631,655,657,676,537,543,553,555,651,653,678,935,937,917,757,794,796,943,941,759,738,792,947,766,778,780,770,765,776,1151,1144,1149,486,484,496,500,576,578,610,614,2835,2818,2816,482,506,502,574,580,634,612,664,2833,2822,450,452,546,548,630,624,656,662,2829,448,542,544,552,628,652,658,677,934,928,918,916,837,797,803,932,942,914,758,793,799,944,946,760,781,791,948,764,777,783,1152,1145,1143,1148,1146,1173,25,487,495,499,299,577,605,609,2836,2849,2819,2815,481,483,497,501,583,581,611,615,2834,2821,2823,477,453,457,549,585,625,623,663,2828,2825,449,455,545,551,629,627,659,661,2724,447,929,927,919,836,834,802,804,933,931,913,915,838,798,800,953,945,909,761,788,790,951,949,763,782,784,971,1155,1142,1136,1153,1147,1140,1168,1174,1172,26,24,488,492,298,300,602,606,2868,2850,2848,2814,2812,30,480,494,498,296,582,604,608,2837,2846,2820,2783,478,476,462,458,584,590,622,616,2840,2827,2824,474,454,456,550,586,626,620,660,2713,2725,440,444,926,920,859,835,829,805,2722,446,930,924,912,839,833,801,807,958,954,910,908,843,789,811,952,950,906,762,787,785,968,970,1156,1137,1135,972,1154,1141,1139,1169,1167,1179,1171,1175,1198,1,27,23,491,277,301,307,601,2869,2853,2851,2804,2813,2811,29,31,489,493,297,303,603,607,2866,2845,2847,2782,2784,33,479,465,461,295,591,593,617,2838,2841,2826,2780,473,475,463,459,587,589,621,619,2712,2708,2726,439,443,387,921,858,860,828,826,2714,2723,441,445,925,923,856,832,830,806,2721,421,957,901,911,840,842,812,808,959,955,905,907,844,786,810,967,969,1013,1157,1091,1134,975,973,1159,1138,1132,979,1166,1178,1180,1170,1165,1176,1199,1192,1197,0,6,16,20,276,274,306,308,2870,2854,2852,2893,2805,2807,2810,2,28,22,490,278,302,304,600,2867,2858,2844,2803,2785,2790,34,32,470,466,288,292,592,598,2865,2839,2842,2781,2787,38,472,464,460,294,588,594,618,2682,2711,2709,2779,436,438,388,384,890,861,867,827,2715,2707,2727,432,442,386,922,857,863,831,825,2717,2729,420,418,898,902,855,841,819,815,2720,422,956,900,904,847,845,813,809,960,964,1014,1012,1088,1090,1121,966,974,1010,1158,1092,1133,976,978,1160,1181,1131,980,1164,1177,1183,1200,1193,1191,1196,1194,1214,7,15,19,235,275,269,309,3117,2877,2855,2887,2892,2806,2809,3,5,17,21,279,273,305,311,2871,2857,2859,2894,2801,2791,2793,61,35,41,469,287,291,313,599,2864,2861,2843,2802,2786,2788,37,39,471,467,289,293,595,597,2681,2683,2710,2778,2772,75,437,393,391,383,889,866,868,2676,2705,2706,2776,435,433,389,385,891,862,864,824,2716,2701,2728,431,419,413,897,852,854,820,816,2719,2730,423,417,899,903,848,846,818,814,2457,1542,963,1019,1015,1087,1089,1116,1122,961,965,1009,1011,1095,1093,1120,987,977,1005,1161,1097,1128,983,981,1163,1182,1130,1338,1203,1190,1184,1201,1195,1188,1213,1215,8,12,234,236,268,266,3116,3118,2878,2886,2889,2916,2808,4,14,18,232,272,270,310,3111,2876,2856,2888,2891,2798,2792,60,58,46,42,280,284,314,312,2872,2863,2860,2895,2800,2789,2794,62,36,40,468,286,290,318,596,2665,2680,2684,2758,2773,2771,72,74,394,392,376,380,886,869,2678,2677,2704,2777,2775,76,434,398,390,382,888,865,871,2675,2702,2700,2735,428,430,412,410,892,853,878,823,2718,2698,2731,424,416,414,896,851,849,821,817,2458,2437,1536,1541,1020,1016,1084,1086,1117,1115,2456,1543,962,1018,1008,1080,1094,1119,1123,986,988,1006,1004,1096,1102,1127,984,982,1002,1162,1098,1129,1332,1337,1204,1185,1228,1339,1202,1189,1187,1212,1211,1216,11,213,237,243,267,3140,3115,3119,2879,2883,2917,2915,9,13,233,239,271,265,3113,3112,2875,2885,2890,2911,2797,59,49,45,231,283,261,315,3110,2873,2862,2898,2896,2799,2795,63,57,47,43,281,285,317,319,2664,2660,2685,2627,2759,2761,2768,71,73,117,395,375,379,323,885,2666,2679,2687,2757,2774,2770,79,77,397,399,377,381,887,870,2672,2689,2703,2734,2736,83,429,401,411,357,893,879,872,2674,2697,2699,2732,427,425,415,409,895,850,877,822,2461,2438,2436,1535,1538,1565,1023,1027,1085,1061,1114,2459,2442,1537,1540,1021,1017,1083,1081,1118,1113,2455,1544,989,995,1007,1079,1103,1105,1124,985,991,1001,1003,1099,1101,1126,1331,1334,1321,1206,1229,1231,1333,1336,1205,1186,1227,1340,1210,1217,1219,212,210,242,244,3139,3135,3120,2938,2882,2922,2918,10,214,238,240,264,3141,3114,3122,2880,2884,2910,2914,54,50,224,228,262,260,3107,3109,2874,2899,2897,2912,2796,56,48,44,230,282,258,316,3103,2663,2661,2624,2626,2760,2767,64,68,118,116,372,374,324,320,2667,2659,2686,2628,2756,2763,2769,70,78,114,396,368,378,322,884,2671,2690,2688,2754,2737,2742,80,82,402,400,356,354,880,873,2673,2694,2696,2733,2739,84,426,406,408,358,894,876,874,2462,2481,2439,2435,1528,1532,1566,1564,1024,1026,1058,1062,2460,2441,2443,1534,1539,1560,1022,1028,1082,1060,1112,2454,2445,1547,1545,994,996,1078,1072,1104,1110,2452,1363,990,992,1000,1076,1100,1106,1125,1330,1328,1322,1320,1258,1230,1232,1345,1335,1316,1207,1224,1226,1343,1341,1209,1218,1220,211,205,245,3165,3138,3136,2939,2935,2923,2919,215,209,241,247,3142,3134,3121,2937,2881,2921,2908,53,223,227,249,263,3146,3108,3123,2900,2902,2909,2913,55,51,225,229,257,259,3106,3104,2662,2623,2625,2605,2766,67,123,119,139,373,329,327,3102,2657,2658,2631,2629,2762,2764,65,69,113,115,371,369,325,321,2668,2653,2691,2635,2755,2743,2745,91,81,109,403,367,355,349,883,2670,2693,2695,2753,2738,2740,87,85,405,407,359,353,881,875,2506,2482,2480,2434,2428,1527,1531,1571,1567,1590,1025,1053,1057,2463,2478,2440,2432,1529,1533,1559,1563,1031,1029,1059,1063,2466,2447,2444,1548,1546,1561,997,1033,1073,1071,1111,2453,2451,1362,1364,993,999,1077,1075,1107,1109,2332,1360,1329,1327,1323,1259,1257,1233,1235,1350,1346,1315,1319,1263,1225,1239,1344,1342,1317,1208,1223,1221,204,202,3164,3166,3137,2946,2942,2934,2926,208,206,246,3159,3132,3133,2940,2936,2924,2920,216,220,250,248,3143,3145,3126,2980,2901,2903,2907,52,222,226,254,256,3147,3105,3124,2622,2616,2606,2604,124,120,136,138,330,328,3099,3058,2656,2620,2630,2602,2765,66,122,112,140,370,334,326,3101,2654,2652,2632,2634,2750,2744,90,92,110,108,364,366,348,346,2669,2650,2692,2636,2752,2741,2746,88,86,106,404,360,352,350,882,2507,2485,2483,2414,2429,2427,1526,1524,1572,1568,1584,1589,1050,1054,2504,2477,2479,2433,2431,1483,1530,1570,1557,1591,1030,1052,1056,2464,2467,2446,2391,1549,1551,1558,1562,1032,1038,1070,1064,2469,2448,2450,1405,1365,1371,998,1034,1074,1068,1108,2321,2333,1361,1367,1326,1324,1276,1256,1254,1234,2330,1359,1349,1309,1313,1260,1262,1240,1236,1351,1347,1314,1318,1264,1222,1238,203,3188,3163,3167,2947,2943,2933,2927,207,201,3161,3160,3131,2945,2941,2931,2925,219,197,251,3158,3144,3127,2977,2981,2904,2906,217,221,253,255,3150,3148,3125,2979,2617,2615,2607,127,135,137,181,331,3098,3059,3055,2621,2619,2601,2603,125,121,143,141,333,335,3100,3057,2655,2641,2633,2597,2749,93,99,111,147,365,337,347,3088,2649,2651,2639,2637,2751,2747,89,95,105,107,363,361,351,345,2508,2486,2484,2531,2415,2417,2424,1513,1525,1523,1575,1583,1586,1613,1049,2505,2490,2476,2413,2430,2426,1482,1484,1573,1569,1585,1588,1051,1055,2503,2465,2474,2390,2392,1480,1550,1552,1556,1592,1039,1041,1065,2470,2468,2449,2388,1404,1402,1370,1372,1035,1037,1069,1067,2320,2316,2334,1406,1366,1368,1325,1277,1279,1255,1253,2322,2331,1356,1358,1306,1310,1275,1261,1247,1243,2329,1352,1348,1308,1312,1267,1265,1241,1237,3187,3183,3168,3354,2950,2954,2928,200,3189,3162,3170,2948,2944,2932,2930,198,196,3155,3157,3130,2972,2976,2986,2905,218,194,252,3151,3149,3128,2978,2982,2614,2608,128,132,182,180,3097,3064,3062,3054,2618,2612,2600,126,134,142,178,332,3095,3060,3056,2646,2642,2598,2596,98,100,144,146,338,336,3087,3083,2648,2640,2638,2594,2748,94,96,104,148,362,342,344,3089,2518,2487,2528,2530,2416,2423,1514,1512,1520,1522,1576,1580,1614,1612,2509,2489,2491,2532,2412,2419,2425,1508,1485,1489,1574,1582,1587,1608,1048,2502,2493,2475,2410,2393,2398,1481,1487,1553,1555,1595,1593,1040,1046,2500,2471,2473,2389,2395,1479,1403,1397,1373,1779,1036,1042,1066,2290,2319,2317,2387,1407,1401,1369,1375,1299,1278,1280,1252,2323,2315,2335,1411,1357,1379,1305,1272,1274,1248,1244,2325,2337,1355,1353,1307,1311,1268,1266,1246,1242,2328,3186,3184,3355,3351,2951,2953,3190,3182,3169,3353,2949,2955,2929,199,3194,3156,3171,2969,2973,2985,2987,193,195,3154,3152,3129,2971,2975,2983,2609,131,187,183,3210,3065,3063,3047,3051,2613,2611,129,133,177,179,3096,3069,3061,3053,2645,2589,2599,101,155,145,173,339,3094,3086,3084,2647,2643,2593,2595,97,103,151,149,341,343,3090,3082,2519,2527,2529,2573,2422,1515,1519,1521,1635,1579,1619,1615,1990,2517,2488,2535,2533,2418,2420,1507,1511,1494,1490,1577,1581,1607,1611,2510,2495,2492,2539,2411,2399,2401,1509,1486,1488,1554,1596,1594,1609,1047,2501,2499,2472,2409,2394,2396,1478,1472,1396,1394,1778,1780,1043,1045,2289,2291,2318,2386,2380,1476,1400,1398,1374,1776,1298,1281,1283,2284,2313,2314,2384,1408,1410,1380,1376,1300,1273,1290,1251,2324,2309,2336,1412,1354,1378,1304,1271,1269,1249,1245,2327,2338,3185,3362,3358,3350,2952,3180,3181,3356,3352,2958,2956,3191,3193,3174,3332,2968,2962,2988,192,3195,3153,3172,2970,2974,2984,2990,188,184,3207,3209,3066,3046,3050,2994,2610,130,186,176,3211,3068,3070,3048,3052,2586,2590,154,156,174,172,3093,3072,3085,3028,2644,2588,2592,102,152,150,170,340,3091,3080,3081,2520,2524,2574,2572,1516,1518,1636,1632,1620,1616,1984,1989,2516,2526,2534,2570,2421,1505,1497,1493,1634,1578,1618,1605,1991,2511,2494,2536,2538,2406,2400,1506,1510,1495,1491,1597,1599,1606,1610,2512,2496,2498,2540,2408,2397,2402,1453,1473,1471,1395,1757,1781,1787,1044,2273,2288,2292,2366,2381,2379,1477,1475,1399,1393,1777,1783,1297,1282,2286,2285,2312,2385,2383,1419,1409,1387,1383,1775,1301,1291,1284,2283,2310,2308,2343,1415,1413,1381,1377,1303,1270,1289,1250,2326,2306,2339,3363,3359,3347,3349,3179,3361,3357,3343,2957,3192,3175,3329,3333,2959,2961,3198,3196,3173,3331,2967,2963,2989,191,3206,3208,3252,3043,3045,2995,2991,189,185,3214,3212,3067,3039,3049,2993,2585,157,163,175,3218,3073,3071,3027,3025,2587,2591,153,159,169,171,3092,3077,3079,3029,2523,2579,2575,1517,1643,1639,1631,1623,1983,1986,2013,2521,2525,2569,2571,1502,1498,1637,1633,1621,1617,1985,1988,2515,2547,2537,2565,2405,1504,1496,1492,1677,1598,1600,1604,1992,2513,2497,2543,2541,2407,2403,1454,1452,1464,1468,1756,1754,1786,1788,2272,2268,2293,2235,2367,2369,2376,1450,1474,1470,1392,1758,1782,1784,1296,2274,2287,2295,2365,2382,2378,1418,1420,1388,1384,1768,1772,1292,1285,2280,2297,2311,2342,2344,1416,1414,1386,1382,1774,1302,1288,1286,2282,2305,2307,2340,3366,3368,3348,3364,3360,3346,3344,3178,3324,3328,3342,2960,3197,3176,3330,3334,2966,2964,3199,3203,3253,3251,3044,3000,2998,190,3205,3213,3249,3042,3040,2996,2992,162,164,3215,3217,3074,3038,3026,3020,2584,158,160,168,3219,3076,3078,3030,3024,2580,2576,1644,1640,1630,1624,1976,1980,2014,2012,2522,2578,2568,1501,1642,1638,1628,1622,1982,1987,2008,2546,2548,2566,2564,1503,1499,1674,1678,1601,1603,1995,1993,2514,2544,2542,2562,2404,1455,1463,1467,1676,1755,1749,1789,1811,2271,2269,2232,2234,2368,2375,1449,1451,1465,1469,1759,1753,1785,1791,2275,2267,2294,2236,2364,2371,2377,1445,1421,1425,1391,1767,1771,1793,1295,2279,2298,2296,2362,2345,2350,1417,1423,1389,1385,1769,1773,1293,1287,2281,2302,2304,2341,2347,3367,3373,3365,3369,3345,3321,3325,3339,3341,3177,3323,3327,3335,2965,3202,3258,3254,3274,3001,2999,3200,3204,3248,3250,3041,3005,2997,165,3226,3216,3244,3035,3037,3019,3017,161,167,3222,3220,3075,3031,3023,3021,2583,1647,1651,1625,1975,1979,2019,2015,2038,2581,2577,1645,1641,1629,1627,1977,1981,2007,2011,2549,2555,2567,1500,1669,1673,1683,1602,1996,1994,2009,2545,2551,2561,2563,1456,1460,1675,1679,1748,1746,1810,1812,2270,2231,2233,2213,2374,1448,1462,1466,1699,1752,1750,1790,1808,2265,2266,2239,2237,2370,2372,1446,1444,1430,1426,1760,1764,1794,1792,2276,2261,2299,2243,2363,2351,2353,1442,1422,1424,1390,1766,1770,1798,1294,2278,2301,2303,2361,2346,2348,3374,3370,3372,3320,3316,3340,3322,3326,3338,3336,3259,3255,3271,3273,3002,3201,3257,3247,3275,3004,3006,3225,3227,3245,3243,3036,3008,3018,166,3223,3221,3241,3034,3032,3022,3016,1648,1650,1974,1972,2020,2016,2032,2037,2582,1646,1652,1626,1931,1978,2018,2005,2039,2554,2556,1666,1670,1682,1684,1997,1999,2006,2010,2550,2552,2560,1459,1668,1672,1680,1747,1853,1813,1819,2230,2224,2214,2212,1457,1461,1700,1696,1751,1745,1809,1815,2264,2228,2238,2210,2373,1447,1433,1429,1698,1763,1741,1795,1807,2262,2260,2240,2242,2358,2352,1441,1443,1431,1427,1761,1765,1797,1799,2277,2258,2300,2244,2360,2349,2354,3371,3315,3313,3319,3317,3337,3262,3270,3272,3305,3260,3256,3278,3276,3003,3228,3234,3246,3282,3009,3007,3224,3230,3240,3242,3033,3013,3015,1649,1961,1973,1971,2023,2031,2034,2054,1655,1653,1930,1932,2021,2017,2033,2036,2557,1665,1659,1685,1928,1998,2000,2004,2040,2553,2559,1667,1671,1681,1687,1852,1850,1818,1820,2225,2223,2215,1458,1707,1703,1695,1744,1854,1814,1816,2229,2227,2209,2211,1438,1434,1701,1697,1742,1740,1804,1806,2263,2249,2241,2205,2357,1440,1432,1428,1730,1762,1738,1796,1800,2257,2259,2247,2245,2359,2355,3314,3318,3312,3263,3267,3306,3261,3269,3277,3304,3233,3235,3279,3281,3010,3229,3231,3239,3283,3012,3014,1962,1960,1968,1970,2024,2028,2055,1654,1956,1933,1937,2022,2030,2035,2053,1656,1658,1929,1935,2001,2003,2043,2041,2558,1664,1660,1686,1927,1851,1845,1821,2178,2222,2216,1708,1704,1694,1688,1855,1849,1817,1823,2226,2220,2208,1437,1706,1702,1692,1743,1859,1805,1827,2254,2250,2206,2204,1439,1435,1729,1731,1737,1739,1803,1801,2256,2248,2246,2202,2356,3311,3266,3307,3264,3268,3303,3236,3293,3280,3301,3232,3238,3286,3284,3011,1963,1967,1969,2068,2027,2056,1955,1959,1942,1938,2025,2029,2051,1657,1957,1934,1936,2002,2044,2042,2052,1663,1661,1926,1920,1844,1842,2177,2179,2217,1711,1718,1689,1924,1848,1846,1822,2172,2221,2219,1709,1705,1693,1691,1856,1858,1828,1824,2253,2197,2207,1436,1726,1728,1732,1736,1860,1802,1826,2255,2251,2201,2203,3310,3265,3308,3292,3294,3302,3237,3287,3285,3300,1964,1966,2071,2067,2059,1953,1945,1941,2069,2026,2057,1954,1958,1943,1939,2046,2045,2050,1662,1901,1921,1919,1843,2161,2176,2180,1712,1717,1925,1923,1847,1841,2174,2173,2218,1710,1719,1690,1867,1857,1835,1831,2171,2194,2198,1725,1727,1733,1735,1863,1861,1829,1825,2252,2196,2200,3309,3291,3295,3289,3288,3299,1965,2072,2066,2060,1950,1946,2070,2064,2058,1952,1944,1940,2098,2047,2049,1902,1900,1912,1916,2160,2156,2181,1714,1898,1922,1918,1840,2162,2175,2183,1713,1716,1866,1868,1836,1832,2168,2185,2193,1724,1720,1734,1864,1862,1834,1830,2170,2195,2199,3296,3290,3298,2075,2079,2061,1949,2073,2065,2063,1951,1947,2097,2103,2048,1903,1911,1915,2099,2159,2157,1897,1899,1913,1917,2163,2155,2182,1715,1893,1869,1873,1839,2167,2186,2184,1723,1721,1865,1871,1837,1833,2169,2190,2192,3297,2076,2078,2074,2080,2062,1948,2094,2102,2104,1904,1908,2096,2100,2158,1896,1910,1914,2116,2153,2154,1894,1892,1878,1874,2164,2149,2187,1722,1890,1870,1872,1838,2166,2189,2191,2077,2083,2081,2093,2087,2105,1907,2095,2101,2107,1905,1909,2119,2115,2152,1895,1881,1877,2117,2150,2148,1889,1891,1879,1875,2165,2146,2188,2082,2084,2086,2092,2088,2106,1906,2120,2114,2108,1886,1882,2118,2112,2151,1888,1880,1876,2139,2145,2147,2085,2091,2089,2123,2130,2109,1885,2121,2113,2111,1887,1883,2138,2140,2144,2090,2124,2129,2122,2131,2110,1884,2137,2141,2143,2126,2125,2128,2136,2132,2142,2127,2135,2133,2134}; + +//d_AngleElem2FaceType size 1458000, dimensions NLF 6 x ne 3375 x na 72: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_AngleElem2FaceType[1458000] = +{0,0,0,0,0,1,0,2,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,2,1,0,2,0,0,2,1,0,1,0,0,2,2,0,0,0,0,2,2,0,0,0,0,2,1,0,0,0,0,2,1,0,0,0,0,2,1,0,0,0,0,2,2,0,2,0,0,1,1,0,2,0,0,1,1,0,2,0,0,2,1,0,2,0,0,2,2,0,2,0,0,1,1,0,2,0,0,1,1,0,2,0,0,2,1,0,2,0,0,2,2,0,2,0,0,1,1,0,2,0,0,1,1,0,2,0,0,1,1,0,2,0,0,1,2,0,1,0,0,1,1,0,1,0,0,0,1,0,2,0,0,0,1,0,2,0,0,2,1,0,2,0,0,1,1,0,2,0,0,0,1,0,2,0,0,0,1,0,2,0,0,2,1,0,1,0,0,1,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,2,1,0,1,0,0,1,1,0,1,0,0,0,1,0,2,0,0,0,1,0,2,0,0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2,0,2,0,0,2,2,0,1,0,0,2,2,0,1,0,0,2,2,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,2,1,0,1,0,0,1,1,0,1,0,0,1,1,0,2,0,0,1,1,0,2,0,0,2,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,2,0,2,0,0,1,2,0,1,0,0,1,2,0,1,0,0,1,2,0,1,0,0,1,2,0,2,0,0,1,2,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,2,0,2,0,0,1,2,0,1,0,0,2,2,0,1,0,0,2,2,0,1,0,0,2,2,0,2,0,0,2,2,0,1,0,0,2,2,0,1,0,0,2,2,0,1,0,0,2,1,0,1,0,0,2,2,0,1,0,0,1,2,0,1,0,0,1,2,0,1,0,0,2,1,0,1,0,0,2,2,0,1,0,0,2,1,0,1,0,0,2,2,0,1,0,0,2,1,0,1,0,0,2,1,0,0,0,0,1,1,0,0,0,0,1,2,0,0,0,0,2,1,0,0,0,0,2,1,0,0,0,0,2,1,0,2,0,0,2,1,0,1,0,0,2,2,0,0,0,0,2,2,0,0,0,0,2,2,0,2,0,0,2,2,0,1,0,0,2,2,0,0,0,0,2,2,0,0,0,0,2,1,0,2,0,0,2,1,0,1,0,0,2,2,0,0,0,0,2,2,0,0,0,0,2,2,0,2,0,0,2,2,0,1,0,0,2,2,0,0,0,0,2,2,0,0,0,0,1,2,0,0,0,0,2,2,0,2,0,0,2,2,0,2,0,0,2,2,0,1,0,0,1,2,0,1,0,0,2,2,0,0,0,0,2,2,0,0,0,0,2,2,0}; + +//d_elem_to_faces size 20250: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_elem_to_faces[20250] = +{0,1,2,3,4,5,6,3,7,8,9,10,10,11,12,13,14,15,5,16,17,11,18,19,20,21,22,23,17,24,25,23,26,27,12,28,29,30,31,32,7,25,33,34,35,30,2,20,36,37,38,39,35,40,40,41,42,43,22,44,45,46,47,48,42,49,50,51,52,53,38,45,54,53,55,56,57,58,58,48,59,60,61,62,63,43,61,64,26,65,66,39,57,67,31,63,68,67,69,70,71,72,72,64,73,74,75,76,77,60,78,79,73,80,81,56,82,83,69,77,84,83,85,86,87,88,88,79,89,90,91,92,93,74,91,94,95,96,97,70,87,98,99,93,100,101,99,102,103,104,105,106,103,107,108,109,110,8,111,106,112,113,114,32,71,101,111,115,115,27,75,116,117,118,113,13,117,119,120,121,109,119,122,123,124,125,104,116,95,126,122,127,127,128,129,130,131,132,125,133,131,134,135,136,121,137,138,133,139,140,118,141,142,128,138,143,143,144,145,146,147,148,140,149,147,150,151,152,136,150,153,154,155,156,132,146,157,158,153,159,160,161,162,163,157,164,96,165,166,167,129,160,92,168,169,170,166,171,171,172,173,174,162,175,176,177,178,172,179,180,80,181,182,168,183,176,76,184,183,165,142,185,185,186,179,161,145,187,188,189,190,186,191,192,65,193,194,184,195,188,62,196,197,181,194,198,198,199,200,177,190,201,202,203,204,199,205,206,49,207,208,196,209,202,44,210,209,193,211,212,212,213,205,189,214,215,216,217,214,218,219,220,221,218,191,144,222,223,28,224,195,141,225,221,24,226,211,224,227,216,19,228,227,229,230,231,15,229,225,137,232,233,233,234,222,149,235,236,231,237,219,234,238,239,239,240,241,242,243,244,244,245,246,247,248,249,250,251,252,253,246,254,220,255,256,257,241,250,223,257,258,259,260,261,261,253,262,263,264,265,266,247,264,267,268,269,236,242,260,270,271,266,152,270,272,273,274,275,148,259,276,277,272,278,159,277,279,280,281,282,156,273,281,283,284,285,285,286,287,288,289,290,282,291,292,293,287,294,278,263,295,291,296,297,275,267,296,286,298,299,299,300,301,302,303,304,297,305,306,307,301,308,294,307,309,310,311,312,290,302,311,313,314,315,315,316,317,318,319,320,312,321,322,323,317,324,308,325,326,321,327,328,304,329,327,316,330,331,332,333,334,329,335,336,337,338,339,333,340,341,249,342,343,344,345,337,269,344,346,300,347,332,265,348,349,305,346,350,254,351,352,348,343,353,353,354,355,356,339,357,350,356,358,325,334,359,360,361,362,363,358,364,365,366,367,361,355,368,369,370,371,372,352,365,373,372,374,375,349,360,376,377,378,379,374,380,381,382,383,377,371,384,384,385,386,387,367,388,380,387,389,390,362,391,392,390,393,394,395,396,397,363,395,398,326,399,400,398,401,402,322,403,404,394,405,406,401,407,408,409,410,411,412,404,413,414,412,415,309,400,416,375,417,414,306,397,418,379,419,409,417,392,420,421,422,423,424,418,425,426,424,427,295,416,428,427,429,430,292,413,431,423,432,433,429,408,175,434,435,436,437,431,164,438,437,439,279,428,187,440,441,438,276,425,180,442,443,434,441,420,201,444,445,442,446,447,447,448,449,421,450,376,451,452,450,426,262,373,192,453,446,440,258,451,215,454,455,453,256,456,456,457,458,452,252,369,459,460,461,448,458,381,206,462,463,444,455,459,464,465,466,467,463,468,468,469,470,471,461,472,473,474,475,476,470,477,478,479,480,481,466,473,482,481,483,484,485,486,486,476,487,488,489,490,491,471,489,492,449,493,494,467,485,495,445,491,496,495,497,498,443,499,500,484,501,502,497,503,504,502,505,506,507,508,509,498,507,510,435,511,511,512,513,514,432,515,508,516,517,518,513,519,503,488,520,516,521,522,499,492,521,512,422,523,523,524,525,526,419,527,522,528,529,530,525,531,519,530,532,533,534,535,515,526,534,536,410,537,537,538,539,540,405,541,535,542,543,544,539,545,531,546,547,542,548,549,527,550,548,538,393,551,552,553,554,550,389,555,556,557,558,553,386,559,472,560,561,562,383,556,493,562,563,524,378,552,490,564,565,528,563,566,477,567,568,564,561,569,569,570,571,572,558,573,566,572,574,546,554,575,576,577,578,579,574,580,581,582,583,577,571,584,585,586,587,588,568,581,589,588,590,591,565,576,592,593,594,595,590,596,597,598,599,593,587,600,600,601,602,603,583,604,596,603,605,606,578,607,608,606,609,610,611,612,613,579,611,614,547,615,616,614,617,618,543,619,620,610,621,622,617,623,624,625,626,627,628,620,629,630,628,631,532,616,632,591,633,630,529,613,634,595,635,625,633,608,636,637,638,639,640,634,641,642,640,643,520,632,644,643,645,646,517,629,647,639,648,649,645,624,650,651,652,653,654,647,655,656,654,657,505,644,658,659,660,656,501,641,661,662,663,651,660,636,664,665,666,662,667,668,668,669,670,637,671,592,672,673,671,642,487,589,674,675,667,659,483,672,676,677,678,675,480,679,679,680,681,673,475,585,682,683,684,669,681,597,685,686,687,665,678,682,688,689,690,691,692,685,693,694,692,695,696,676,697,695,698,699,700,674,701,691,702,703,698,664,704,705,706,707,708,701,709,710,708,711,712,697,713,714,715,710,716,693,717,718,719,705,715,688,720,721,722,723,724,717,725,723,726,727,728,704,729,730,731,732,733,725,734,735,736,730,737,720,738,739,737,740,741,742,743,740,733,744,745,746,746,747,728,748,749,709,742,750,724,747,751,713,752,753,751,754,755,756,757,754,749,758,759,760,761,762,745,763,764,757,765,766,741,762,767,752,768,769,767,770,52,771,772,770,764,773,55,774,774,775,759,776,59,777,771,778,755,775,47,779,779,780,781,782,208,783,783,784,785,786,204,464,787,788,696,789,785,478,756,790,716,791,781,787,760,791,712,792,793,794,794,789,700,795,796,482,797,786,796,798,200,494,777,782,793,799,197,797,800,799,801,802,182,803,803,798,804,805,178,496,806,795,807,808,804,500,809,792,810,811,801,806,812,811,813,814,815,816,816,808,817,818,819,504,820,805,819,821,173,509,822,802,815,823,169,820,824,825,826,827,89,822,828,776,829,825,78,800,830,773,831,832,82,828,833,832,834,835,85,824,836,837,838,839,834,840,841,763,842,837,831,843,843,758,844,845,829,809,840,845,846,847,826,812,848,849,850,851,846,852,853,748,854,849,844,855,856,744,857,858,842,853,859,858,860,861,838,848,862,863,864,865,860,866,867,732,868,863,857,869,869,727,870,871,854,872,866,871,873,874,850,875,875,876,877,878,879,880,852,881,879,882,813,883,855,711,884,881,810,885,872,707,886,876,884,887,887,703,888,889,890,661,885,699,890,891,807,658,883,891,892,893,817,655,880,889,894,895,892,650,896,895,897,898,899,900,901,893,899,902,903,904,905,902,906,907,908,909,910,898,911,912,906,913,914,915,916,917,918,910,919,920,918,921,922,905,923,882,924,920,925,901,926,878,927,915,924,896,928,874,929,930,931,926,932,930,933,934,935,914,936,937,938,939,940,932,941,865,942,937,943,928,944,861,943,945,946,947,948,945,940,949,950,951,951,952,935,953,954,919,947,851,931,952,955,923,956,847,955,957,958,959,960,957,954,961,962,963,964,965,950,966,967,960,968,839,946,965,969,956,970,835,969,971,972,973,974,971,967,975,976,977,977,978,962,979,980,981,973,827,958,978,982,983,983,823,984,985,986,987,987,821,988,989,990,991,992,818,903,993,988,994,959,814,925,995,984,992,963,995,922,996,997,998,998,993,908,999,1000,1001,1002,989,1000,1003,1004,1005,981,985,997,1006,1007,1002,1008,1006,1009,1010,1011,1012,1012,1003,1013,1014,1015,1016,1017,999,1018,1019,1013,1020,1021,996,1022,1023,1009,1017,1024,1023,1025,1026,1027,1028,1028,1019,1029,1030,1031,1032,1033,1014,1031,1034,1035,1036,1037,1010,1027,1038,1039,1033,1040,1041,1042,1043,1044,1037,1045,979,1046,1041,1047,1008,1048,975,1049,1050,1051,1045,1052,1050,1053,1054,1055,1040,1056,1057,1058,1059,1053,1060,1061,966,1062,1057,1049,1063,1063,961,1064,1065,1046,1021,1060,1065,1066,1067,1042,1024,1068,1069,1070,1071,1066,1072,1073,953,1074,1069,1064,1075,1076,949,1077,1078,1062,1073,1079,1078,1080,1081,1058,1068,1082,1083,1084,1085,1080,1086,1087,939,1088,1083,1077,1089,1089,934,1090,1091,1074,1092,1086,1091,1093,1094,1070,1095,1095,1096,1097,1098,1099,1100,1072,1101,1099,1102,1025,1103,1075,921,1104,1101,1022,1105,1092,917,1106,1096,1104,1107,1107,912,1108,1109,1110,1111,1105,907,1110,1112,1018,1113,1103,1112,1114,1115,1029,1116,1100,1109,1117,1118,1114,1119,1119,1120,1121,1122,1123,1124,1124,1125,1126,1127,1128,1129,1130,1131,1128,1132,1133,1134,1116,1135,1123,1136,1137,1130,1113,1138,1139,1135,1140,1141,1141,1142,1143,1131,1144,1145,1146,1147,1148,1125,1143,1149,1111,1150,1151,1120,1139,1146,913,1152,1153,1150,1154,1155,909,1156,1154,1138,1157,1158,904,657,1159,1156,1160,1161,900,653,1162,1152,1159,1163,1163,649,1164,1165,1166,1167,1161,646,1166,1168,1169,1170,1158,1168,1171,1142,1172,1173,1155,1165,1174,1147,1171,1175,1175,1176,1177,1178,1179,1180,1173,1181,1179,1182,1183,1184,1170,631,1185,1181,1186,1187,1167,627,1188,1176,1185,1189,1189,622,1190,1191,1192,1193,1187,618,1192,1194,1195,1196,1184,1194,1197,1198,1199,1200,1180,1191,1201,1202,1197,1203,1204,1202,1205,1206,1207,1208,1209,1206,1210,1211,1212,1213,1129,1214,1215,1216,1217,1209,1149,1178,1218,1214,1219,1204,1145,1182,1219,1220,1221,1222,1134,1220,1217,1223,1224,1225,1225,1226,1212,1227,1228,1229,1222,1198,1207,1226,1230,1231,1232,1233,1230,1234,1235,1236,1237,1234,1228,1238,1239,1240,1241,1242,1224,1243,1244,1237,1245,1246,1221,1242,1247,1232,1248,1249,1247,1250,1251,1252,1253,1250,1244,1254,1255,1256,1256,1257,1239,1258,1259,1260,1252,1261,1235,1257,1262,1263,1264,1265,1266,1261,1267,1268,1269,1270,1199,1233,1266,1271,1272,544,1195,1270,1273,1274,1275,540,1273,1265,1276,1277,1278,536,1279,1280,1281,1275,1282,533,1186,1283,1279,1272,1284,1283,1183,1246,1285,1269,1286,1280,1285,1249,1287,1264,1288,1289,1290,1291,1292,1286,1293,1294,1172,1295,1290,1284,1296,518,1169,1294,1297,1282,1298,514,1297,1289,1299,1278,991,510,1300,1301,1302,1298,994,506,1160,1303,1300,1296,1001,1303,1157,1304,1305,1293,1005,1301,1305,1306,1307,1288,1016,1306,1308,1309,1310,1311,1311,1291,1312,1313,1314,1248,1315,1295,1144,1316,1312,1245,1020,1304,1140,1317,1308,1315,1032,1317,1137,1318,1319,1320,1320,1316,1133,1321,1322,1241,1323,1313,1322,1324,1325,1253,1036,1309,1319,1326,1327,1323,1328,1329,1327,1330,1331,1332,1332,1333,1325,1334,1335,1336,1337,1338,1335,1339,1340,1341,1342,1343,1331,1344,1345,1337,1346,1347,1348,1343,1349,1350,1350,1351,1352,1338,1353,1354,1355,1356,1314,1333,1352,1357,1358,1359,1310,1329,1348,1355,1360,1361,1307,1359,1362,1363,1364,1365,1362,1347,1366,1367,1368,439,1369,1365,1370,1371,1372,436,1302,1361,1369,1373,1373,433,1299,1374,1375,1376,1371,430,1375,1377,1378,1379,1367,1377,1380,1351,1381,1382,1363,1374,1292,1356,1380,1383,1383,1384,1287,1385,1386,1387,1382,1388,1386,1389,1390,1391,1379,415,1392,1388,1393,1394,1376,411,1281,1384,1392,1395,1395,406,1276,1396,1397,1398,1394,402,1397,1399,1400,1401,1391,1399,1402,1403,1404,1405,1387,1396,1267,1406,1402,1407,1408,1406,1262,1409,1410,1411,1412,1409,1259,1413,1414,1415,1336,1416,1255,1417,1418,1412,1357,1385,1251,1416,1419,1408,1354,1389,1419,1420,1421,1422,1341,1420,1418,1423,1424,1425,1425,1426,1414,1427,1428,1429,1422,1403,1410,1426,1430,1431,1432,1433,1430,1434,1435,1436,1437,1434,1428,1438,1439,1440,1441,1442,1424,1443,1444,1437,1445,1446,1421,1442,1447,1432,1448,1449,1447,1450,1451,1452,1453,1450,1444,1454,1455,1456,1456,1457,1439,1458,1459,1460,1452,1461,1435,1457,1462,1463,1464,1465,1466,1461,1467,1468,1469,1470,1404,1433,1466,1471,1472,323,1400,1470,1473,1474,1475,318,1473,1465,1476,1477,1478,313,1479,1480,1481,1475,1482,310,1393,1483,1479,1472,1484,1483,1390,1446,1485,1469,1486,1480,1485,1449,1487,1464,1488,1489,1490,1491,1492,1486,1493,1494,1381,1495,1490,1484,1496,293,1378,1494,1497,1482,1498,288,1497,1489,1499,1478,1500,283,1501,1502,1503,1498,1504,280,1370,1505,1501,1496,1506,1505,1366,1507,1508,1493,1509,1502,1508,1510,1511,1488,1512,1510,1513,1514,1515,1516,1516,1491,1517,1518,1519,1448,1520,1495,1353,1521,1517,1445,1522,1507,1349,1523,1513,1520,1524,1523,1345,1525,1526,1527,1527,1521,1340,1528,1529,1441,1530,1518,1529,1531,1532,1453,1533,1514,1526,1534,1535,1530,1536,1537,1538,1539,1540,1533,1541,1542,1543,1537,1544,1512,1545,1546,1547,1548,1549,1541,1550,1548,1551,1552,1553,1536,1554,1555,1556,1557,1551,1558,1559,1560,1561,1555,1547,1562,1562,1563,1564,1565,1543,1522,1558,1565,1566,1567,1538,1524,1568,1569,1570,1571,1566,1342,1572,1573,1574,1575,1556,1568,1576,1577,1039,1578,1574,1579,1579,1580,1035,1581,1570,1328,1582,1583,1015,1580,1584,1358,1585,1586,1011,1577,1587,1582,1588,1589,1587,1573,1561,1590,1590,1591,1584,1569,1564,1346,1592,1593,1594,1591,1595,1364,1596,1597,1598,1589,1599,1592,1600,1601,1007,1586,1598,1602,1602,1603,1004,1583,1594,1360,1604,174,990,1603,1605,1372,1606,170,986,1601,1607,1604,1608,167,1607,1597,1609,1610,1610,163,1605,1593,1611,1368,1612,158,1611,1613,1614,1504,1615,154,1614,1616,1617,1500,1618,1616,1619,1542,1620,1509,1621,1613,1595,1563,1619,1506,1622,1623,1599,1560,1624,1621,1625,1626,1624,1546,1627,1618,1628,134,1629,1626,1630,1615,1631,130,1609,1623,1629,1612,1632,126,1633,1634,1635,1631,1636,123,1635,1637,1638,1628,1639,1637,1640,1641,1642,1625,1643,1634,1644,1645,1640,1622,1646,1647,1648,1649,1650,1643,1651,1652,1650,1653,1654,1639,1655,107,1656,1652,1657,1636,1658,102,1659,1647,1656,1632,1660,98,1661,1662,1659,1663,1663,94,1664,1665,1633,1608,1666,90,982,1667,1664,1606,1668,86,972,1669,1661,1666,1670,1669,976,1671,1672,1673,1673,1667,980,1674,1675,1600,1676,1665,1675,1677,1644,1596,1678,1662,1672,1679,1648,1676,1680,1679,1681,1682,1683,1684,1684,1677,1685,1686,1687,1588,1688,1674,1047,1689,1685,1585,1690,1671,1051,1691,1681,1688,1692,1691,1055,1693,1694,1695,1695,1689,1044,1696,1697,1576,1698,1686,1697,1699,1700,1572,1701,1682,1694,1702,1703,1698,1704,1705,1703,1706,1707,1708,1709,1649,1683,1705,1710,1711,1711,1645,1687,1712,1713,1559,1708,1712,1700,1714,1715,1554,1716,1717,1715,1718,1719,1550,1720,1641,1713,1717,1721,1545,1722,1653,1710,1723,1724,1720,1725,1723,1707,1726,1727,1716,1728,1726,1729,1730,1731,1732,1732,1718,1733,1734,1735,1736,1737,1714,1738,1739,1733,1740,1741,1706,1742,1743,1729,1737,1744,1743,1745,1746,1747,1748,1748,1739,1749,1750,1751,1752,1753,1734,1751,1754,1755,1756,1757,1730,1747,1758,1759,1753,1760,1758,1761,1762,1763,1764,1765,1746,1766,1767,1761,1768,1769,1767,1770,1771,1772,1773,1774,1762,1772,1775,1776,1777,1777,1778,1779,1780,1781,1782,1773,1783,1784,1785,1779,1786,1768,1750,1787,1783,1788,1789,1764,1754,1788,1778,1790,1791,1791,1792,1793,1794,1795,1796,1789,1797,1798,1799,1793,1800,1786,1799,1801,1802,1803,1804,1782,1794,1803,1805,1806,1807,1807,1808,1809,1810,1811,1812,1804,1813,1814,1815,1809,1816,1800,1817,1818,1813,1819,1820,1796,1821,1819,1808,1822,1823,1824,1825,1826,1821,1827,1828,1829,1539,1830,1825,1831,1832,1736,1552,1833,1834,1835,1829,1756,1834,1836,1792,1837,1824,1752,1838,1839,1797,1836,1840,1740,1557,1841,1838,1833,1842,1842,1567,1843,1844,1830,1845,1840,1844,1846,1817,1826,1847,1848,1849,1850,1851,1846,1852,1853,1571,1854,1849,1843,1855,1856,1575,1857,1858,1841,1853,1859,1858,1860,1861,1839,1848,1862,1863,1864,1865,1860,1866,1867,1578,1868,1863,1857,1869,1869,1581,1870,1871,1854,1872,1866,1871,1873,1874,1850,1875,1876,1874,1877,1878,1879,1880,1881,1851,1879,1882,1818,1883,1884,1882,1885,1886,1814,1887,1888,1878,1889,1890,1885,1891,1892,1893,1894,1895,1896,1888,1897,1898,1896,1899,1801,1884,1900,1861,1901,1898,1798,1881,1902,1865,1903,1893,1901,1876,1904,1905,1906,1907,1908,1902,1909,1910,1908,1911,1787,1900,1912,1911,1913,1914,1784,1897,1915,1907,1916,1917,1913,1892,1918,1919,1920,1921,1922,1915,1923,1924,1922,1925,1770,1912,1926,1927,1928,1924,1766,1909,1929,1930,1931,1919,1928,1904,1932,1933,1934,1930,1935,1936,1936,1937,1938,1905,1939,1862,1940,1941,1939,1910,1749,1859,1942,1943,1935,1927,1745,1940,1944,1702,1945,1943,1742,1946,1946,1699,1947,1941,1738,1856,1948,1696,1949,1937,1947,1867,1950,1693,1951,1933,1945,1948,1952,1054,1953,1954,1951,1955,1956,1059,1957,1958,1953,1959,1960,1958,1961,1962,1963,1964,1965,1954,1963,1966,1934,1967,1967,1968,1969,1970,1938,1971,1964,1972,1973,1974,1969,1975,1959,1067,1976,1972,1977,1978,1955,1043,1977,1968,1949,1979,1979,1038,1980,1981,1868,1982,1971,1981,1983,1984,1864,1985,1985,1986,1987,1988,1873,1989,1982,1034,1990,1986,1870,1991,1992,1030,1993,1994,1990,1995,1996,1994,1997,1998,1987,1999,1975,2000,2001,2002,1983,1996,1978,1026,2003,2000,1980,1992,2004,1102,2005,2006,2003,2007,2008,2006,2009,2010,2001,2011,2011,2012,2013,2014,1997,2015,2007,1115,2016,2012,1993,2017,2018,1118,2019,2020,2016,2021,2022,2020,2023,2024,2013,2025,2026,2027,2028,2029,2009,2022,2030,1098,2031,2027,2005,2018,2032,1094,2033,2034,2035,2030,2036,1085,2037,2038,2039,2032,2040,1081,2039,2041,1957,2042,2042,1071,2035,2043,1976,2004,2044,2043,2045,2046,1973,2008,2047,2041,2048,2049,1961,2044,2050,2038,2051,2052,2048,2053,2053,2034,2054,2055,2045,2026,2056,2055,2057,2058,2059,2060,2061,2052,2062,2063,2064,2056,2065,2049,2064,2066,2067,2068,2068,2046,2059,2069,2070,2071,2072,2069,2073,2074,2075,2076,2077,2066,2078,2079,2080,2072,2081,2063,2082,2083,2078,2084,2084,2058,2085,2086,2073,2087,2087,2088,2089,2090,2091,2092,2060,2029,2093,2088,2094,2095,2095,2024,2096,2097,2098,2099,2092,2097,2100,2101,2102,2103,2104,2105,2102,2106,2107,2108,2109,2014,2098,2105,2110,2111,2071,2010,2094,2112,2113,2109,2076,2112,2091,2114,2115,2104,2116,2117,2115,2118,2119,2120,2121,2002,2113,2117,2122,2123,2123,1998,2110,2124,2125,2126,2120,2124,2107,2127,2128,2129,2130,2131,2128,2132,1889,2133,2134,1988,2125,2131,1877,2135,2136,1984,2122,2137,1903,2134,2138,2137,2119,2139,1894,2130,2140,2141,2142,2143,1916,2138,2144,2145,2075,2146,2142,2116,2147,1974,2070,2145,2148,2121,2149,1970,2148,2141,1906,2136,2150,1966,2151,2152,1931,2149,2153,1962,2067,2154,2151,2147,2155,2154,2080,2156,2157,2144,2158,2152,2157,2159,1920,2140,2160,2159,2161,2162,2163,2164,2165,2156,2166,2167,2161,2168,2169,2167,2170,2171,2172,2173,2174,2162,2172,2175,2176,2177,2177,2178,2179,2180,2181,2182,2173,2183,2184,2185,2179,2186,2168,2146,2187,2183,2188,2189,2164,2143,2188,2178,2190,2191,2191,2139,2192,2193,2194,2195,2182,2193,2196,2197,2198,2199,2199,2200,2201,2202,2203,2204,2195,2132,2205,2200,2206,2207,2208,2127,2209,2210,2205,2211,2212,2210,2213,2214,2201,2215,2186,2216,2217,2218,2196,2212,2189,2118,2219,2216,2192,2208,2220,2114,2221,2222,2219,2223,2224,2222,2225,2226,2217,2227,2227,2228,2229,2230,2213,2231,2223,2106,2232,2228,2209,2233,2234,2101,2235,2236,2232,2237,2238,2236,2239,2240,2229,2241,2242,2243,2244,2245,2225,2238,2246,2090,2247,2243,2221,2234,2248,2086,2249,2250,2251,2246,2252,2250,2253,2254,2255,2242,2256,2083,2257,2258,2259,2248,2260,2258,2261,2262,2263,2252,2264,2265,2263,2266,2170,2267,2268,2079,2259,2265,2166,2269,2269,2074,2251,2270,2187,2220,2267,2270,2255,2271,2184,2224,2272,2271,2273,2274,2275,2276,2277,2266,2278,2279,2280,2272,2281,2262,2282,2283,2278,2284,2284,2254,2285,2286,2273,2287,2287,2245,2288,2289,2290,2291,2291,2240,2292,2293,2294,2295,2296,2230,2294,2297,2298,2299,2276,2226,2290,2300,2301,2296,2302,2218,2301,2303,2304,2305,2305,2214,2298,2306,2307,2308,2309,2202,2307,2310,2311,2312,2313,2197,2304,2314,2315,2309,2316,2180,2317,2318,2319,2313,2320,2185,2275,2321,2317,2302,2322,2171,2280,2323,2324,2320,2325,2175,2324,2326,2327,2316,2328,2329,2327,2330,2331,2332,2333,2334,2176,2329,2335,2336,2336,2337,2181,2338,2339,2340,2332,2338,2319,2341,2342,2343,2344,2345,2342,2346,2347,2348,2349,2350,2339,2345,2351,2352,2353,2354,2335,2355,2356,2349,2357,2355,2331,2358,2359,2344,2360,2361,2359,2362,2363,2364,2365,2366,2356,2361,2367,2368,2364,2369,2347,2370,2371,2372,2368,2373,2351,2369,2374,2375,2376,2377,2374,2378,2379,2380,2381,2378,2371,2382,2383,2384,2385,2386,2363,2387,2388,2381,2389,2390,2367,2386,2391,2376,2392,1775,2393,2390,2394,2395,2395,1780,2396,2377,2397,2398,2399,1785,2400,2373,2396,2401,2402,1771,2403,2366,2393,2399,2404,1925,2405,2354,2403,2406,2407,1921,2163,2334,2405,2408,2408,1917,2190,2337,2409,2410,2406,1914,2409,2350,2400,2411,2411,1899,2412,2413,2414,2415,2410,1895,2194,2416,2412,2417,2417,1890,2206,2418,2419,2420,2415,1886,2419,2421,2422,2423,2424,1815,2422,2425,2426,2427,2428,2425,2429,2430,2431,2432,2401,1802,2414,2433,2434,2424,2375,2433,2435,2436,2437,2428,2380,2438,2437,2439,2440,2441,2398,1805,2434,2438,2442,2443,2443,1810,2426,2444,2445,2446,2441,2444,2431,2447,2448,2449,2450,2447,2451,2452,2453,2454,2384,2439,2455,2456,2457,2450,2372,2436,2458,2459,2455,2460,2460,2430,2461,2462,2451,2463,2464,2465,2466,2467,2461,2468,2469,2421,2470,2465,2429,2471,2352,2413,2472,2473,2435,2469,2348,2473,2474,2475,2458,2464,2343,2476,2315,2477,2474,2478,2340,2416,2198,2476,2472,2479,2479,2418,2203,2480,2470,2481,2478,2480,2311,2482,2466,2483,2483,2484,2485,2486,2487,2488,2481,2489,2490,2484,2491,2492,2492,2493,2494,2495,2496,2497,2488,2495,2498,2499,2500,2501,2502,2503,2500,2504,2505,2506,2507,2508,2496,2503,2509,2510,2471,2511,2491,2512,2513,2507,2468,2512,2487,2514,2515,2502,2463,2516,2515,2517,2518,2519,2432,2520,2513,2516,2521,2522,2519,2523,2505,2524,2525,2526,2522,2527,2509,2523,2528,2529,2530,2531,2528,2532,2533,2534,2535,2532,2525,2536,2537,2538,2454,2539,2518,2540,2541,2535,2449,2542,2521,2539,2543,2530,2446,2544,2545,2542,2546,2547,2547,2548,2549,2531,2550,2551,2552,2553,2554,2527,2549,2555,2427,2556,2557,2520,2545,2552,2423,2558,2559,2511,2557,2560,2420,2561,2562,2489,2559,2563,2563,2564,2565,2493,2566,2567,2560,2568,2566,2508,2554,2569,2569,2570,2571,2572,2573,2574,2567,2575,2576,2577,2571,2578,2578,2579,2580,2581,2582,2583,2574,2584,2582,2585,2586,2587,2588,2589,2586,2590,2591,2592,2593,2590,2594,2595,2596,2597,2555,2598,2573,2599,2600,2588,2529,2599,2601,2602,2603,2593,2534,2604,2603,2605,2606,2607,2551,2608,2600,2604,2609,2610,2610,2611,2591,2612,2613,2614,2607,2612,2596,2615,2616,2617,2618,2615,2619,2620,2621,2622,2538,2605,2623,2624,2625,2618,2526,2602,2626,2627,2623,2628,2628,2595,2629,2630,2619,2631,2632,2633,2634,2635,2629,2636,2637,2585,2638,2633,2594,2639,2510,2572,2640,2641,2601,2637,2506,2641,2642,2643,2626,2632,2501,2644,2645,2646,2642,2647,2497,2577,2648,2644,2640,2649,2649,2581,2650,2651,2638,2652,2647,2651,2653,2654,2634,2655,2656,2657,2658,2659,2653,2660,2661,2662,2663,2664,2658,2665,2666,2667,2668,2662,2669,2670,2671,2672,2669,2657,2650,2673,2674,2675,2676,2677,2648,2671,2678,2679,2680,2681,2676,2666,2682,2681,2683,2684,2685,2661,2686,2677,2685,2687,2645,2656,2688,2689,2690,2691,2498,2686,2692,2693,2694,2689,2494,2674,2204,2695,2696,2697,2490,2692,2312,2697,2698,2699,2485,2688,2308,2700,2701,2702,2698,2703,2215,2704,2705,2700,2696,2706,2706,2707,2708,2709,2694,2678,2703,2709,2710,2711,2690,2682,2712,2713,2714,2715,2710,2716,2717,2718,2719,2713,2708,2720,2231,2721,2722,2723,2705,2717,2299,2723,2724,2725,2701,2712,2295,2726,2727,2728,2724,2729,2241,2730,2731,2726,2722,2732,2732,2733,2734,2735,2719,2736,2729,2735,2737,2738,2714,2739,2739,2740,2741,2742,2743,2744,2744,2745,2746,2747,2748,2749,2750,2751,2748,2752,2663,2753,2716,2754,2743,2755,2683,2750,2720,2756,2757,2754,2680,2758,2758,2759,2760,2751,2668,2761,2762,2763,2764,2745,2760,2765,2736,2766,2767,2740,2757,2762,2768,2769,2770,2766,2771,2772,2772,2773,2774,2763,2775,2776,2777,2778,2775,2759,2779,2780,2781,2782,2771,2756,2783,2777,2784,2785,2786,2782,2787,2788,2788,2789,2790,2778,2791,2792,2793,2794,2795,2773,2790,2796,2797,2798,2799,2769,2786,2793,2800,2801,2802,2803,2804,2797,2805,2803,2806,2733,2807,2768,2237,2808,2809,2730,2810,2805,2103,2811,2812,2808,2813,2800,2108,2814,2813,2815,2816,2817,2233,2815,2810,2721,2818,2819,2819,2820,2807,2718,2821,2781,2817,2822,2804,2820,2823,2784,2824,2825,2823,2826,2827,2828,2829,2826,2821,2707,2830,2831,2211,2832,2818,2704,2833,2829,2129,2834,2816,2832,2835,2824,2133,2836,2835,2837,2838,2839,2207,2837,2833,2695,2562,2840,2840,2841,2830,2693,2565,2842,2839,2843,2827,2841,2844,2845,2845,2846,2847,2848,2849,2850,2828,2851,2787,2852,2847,2853,2831,2852,2783,2679,2854,2855,2842,2848,2854,2675,2576,2856,2856,2857,2858,2672,2580,2859,2855,2860,2779,2667,2858,2861,2853,2862,2791,2860,2863,2864,2850,2865,2863,2857,2866,2867,2868,2869,2870,2865,2871,2872,2873,2874,2875,2862,2870,2876,2877,2878,2879,2874,2880,2881,2882,2883,2880,2869,2884,2885,2886,2887,2888,2889,2890,2882,2891,2892,2893,2894,2888,2877,2895,2894,2896,2851,2897,2873,2898,2889,2897,2846,2899,2868,2900,2901,2902,2843,2903,2898,2904,2905,2906,2901,2907,2886,1989,2908,2909,2910,2911,2904,2135,2910,2912,2836,2913,2900,2126,2914,2915,2834,2912,2916,1999,2917,2918,2914,2909,2919,2919,2920,2921,2922,2906,2891,2916,2922,2923,2825,2902,2895,2924,2925,2926,2822,2923,2927,2928,2929,2930,2925,2921,2931,2015,2932,2933,2934,2918,2928,2111,2934,2935,2814,2915,2924,2099,2936,2937,2811,2935,2938,2025,2939,2940,2936,2933,2941,2941,2942,2943,2944,2930,2945,2938,2944,2946,2801,2926,2947,2947,2948,2949,2798,2950,2951,2945,2952,2953,2948,2954,2955,2951,2956,2957,2794,2958,2959,2955,2960,2961,2956,2962,2963,2964,2965,2962,2966,2879,2967,2968,2966,2958,2789,2875,2969,2927,2970,2950,2785,2896,2968,2931,2971,2954,2970,2893,2964,2972,1223,2973,2971,2974,2975,2975,1227,2976,2965,2977,2978,2979,1211,2980,2960,2976,2981,2982,1216,2983,2952,2973,2979,2984,1127,2985,2942,2986,2982,2021,1122,2987,2939,2988,2984,2017,1136,2988,2932,2989,2990,2990,1132,2986,2929,2991,2972,2992,1321,2991,2920,2993,2994,1995,1318,2989,2917,2995,2992,1991,1326,2995,2908,2996,2997,2997,1324,2993,2905,2998,2999,2999,1254,3000,2887,3001,3002,2994,1243,2974,2892,3000,3003,3003,1238,2977,2878,3004,3005,3002,1258,3004,2883,3006,3007,3008,1413,3006,3009,3010,3011,3012,1417,3001,3013,3014,3008,3015,1423,3014,3016,3017,3018,3018,1427,3010,3019,3020,3021,3022,3019,3023,3024,3025,3026,3027,3016,3028,3029,3030,3022,3031,3013,2890,3032,3028,3033,3033,3009,2884,3034,3023,3035,3036,3034,2871,3037,3038,3039,3040,3024,3038,3041,3042,3043,3044,3041,3045,2584,3046,3047,3048,3037,2866,2579,3045,3049,3050,3051,2849,2575,3052,3048,3053,3054,3052,2570,3055,3044,3056,3029,3057,3054,3058,3040,3059,3032,2899,3051,3057,3036,3060,3061,2903,3062,3063,3059,3064,3065,3063,3066,3067,3056,3068,3066,3069,2568,3070,3053,3071,3062,2844,2564,3069,3050,1891,3072,2838,2561,3073,3071,1887,3074,3073,2558,3075,3068,1883,3076,3077,3074,3078,3064,1880,3079,2913,3072,3077,3060,1875,3080,2911,3079,3081,3082,1872,1330,2996,3080,3083,3084,3084,1334,2998,3085,3086,3012,3082,3085,2907,3061,3087,3031,3088,3089,3087,3065,3090,3027,3091,1339,3086,3089,3092,3015,1855,1344,3083,3093,3094,3091,1852,3093,3081,3076,3095,3088,1847,3096,3095,3097,3098,3099,1845,1525,3094,3096,3100,3101,3101,1528,3092,3102,3103,3104,3099,3102,3090,3105,3106,3107,3108,3109,3106,3110,3111,3112,3113,1531,3103,3109,3114,3115,1832,1534,3100,3116,3117,3113,1828,3116,3098,3118,3119,3108,1823,3118,3120,3121,3122,3123,1820,3097,3078,3124,3120,3125,1816,3124,3075,2556,3126,3127,1812,3121,3126,2544,3128,3129,3129,3130,3131,2548,3132,3133,3127,3134,3070,2553,3131,3135,3125,3105,3067,3134,3136,3137,3123,3110,3136,3130,3138,3139,3139,3140,3141,3142,3143,3144,3137,3145,3058,3146,3141,3147,3135,3146,3055,2598,3148,3149,3133,3142,3148,2608,3150,3151,3151,3152,3153,2611,3154,3155,3149,3156,3046,2589,3153,3157,3147,3158,3042,3156,3159,3160,3144,3161,3159,3152,3162,3163,3164,3165,3166,3161,3167,3168,3112,3169,3170,3140,3171,3164,3107,3172,3030,3145,3170,3173,3173,3174,3025,3158,3166,3175,3176,1438,3020,3174,3177,3178,3104,1443,3017,3172,3179,3176,3115,1454,3179,3169,3180,3181,3181,1458,3177,3165,3182,3183,3183,3184,3185,3186,3187,3188,3188,3189,3190,3191,3192,3193,3194,3195,3196,3197,3190,3198,3178,3199,3200,3201,3185,3194,3175,3201,3202,3203,3204,3205,3205,3197,3206,3207,3208,3209,3210,3191,3208,3211,3212,3213,3168,3186,3204,3214,3215,3210,3163,3214,3216,3217,3218,3219,3160,3203,3220,3221,3216,3222,3157,3221,3223,3224,3225,3226,3155,3217,3225,3227,3228,3229,3229,3230,3231,3232,3233,3234,3226,3235,3236,3237,3231,3238,3222,3207,3239,3235,3240,3241,3219,3211,3240,3230,3242,3243,3243,3244,3245,3246,3247,3248,3241,3249,3250,3251,3245,3252,3238,3251,3253,3254,3255,3256,3234,3246,3255,3257,3258,3259,3259,3260,3261,3262,3263,3264,3256,3265,3266,3267,3261,3268,3252,3269,3270,3265,3271,3272,3248,3273,3271,3260,3274,3275,3276,3277,3278,3273,3279,3280,3281,3282,3283,3277,3284,3285,3193,3286,3287,3288,3289,3281,3213,3288,3290,3244,3291,3276,3209,3292,3293,3249,3290,3294,3198,3295,3296,3292,3287,3297,3297,3298,3299,3300,3283,3301,3294,3300,3302,3269,3278,3303,3304,3305,3306,3307,3302,3308,3309,3310,3311,3305,3299,3312,3313,3314,3315,3316,3296,3309,3317,3316,3318,3319,3293,3304,3320,3321,3322,3323,3318,3324,3325,3326,3327,3321,3315,3328,3328,3329,3330,3331,3311,3332,3324,3331,3333,3334,3306,3335,3336,3334,3337,3338,3339,3340,3341,3307,3339,3342,3270,3343,3344,3342,3345,3346,3266,3347,3348,3338,3349,3350,3345,3351,3352,3353,3354,3355,3356,3348,3357,3358,3356,3359,3253,3344,3360,3319,3361,3358,3250,3341,3362,3323,3363,3353,3361,3336,3364,3365,3366,3367,3368,3362,3369,3370,3368,3371,3239,3360,3372,3371,3373,3374,3236,3357,3375,3367,3376,3377,3373,3352,3049,3378,3379,3380,3381,3375,3047,3382,3381,3383,3223,3372,3043,3384,3385,3382,3220,3369,3039,3386,3387,3378,3385,3364,3035,3388,3389,3386,3390,3391,3391,3392,3393,3365,3394,3320,3395,3396,3394,3370,3206,3317,3026,3397,3390,3384,3202,3395,3021,3398,3399,3397,3200,3400,3400,3401,3402,3396,3196,3313,3403,3404,3405,3392,3402,3325,3011,3406,3407,3388,3399,3403,3007,3408,3409,3410,3407,3411,3005,3412,3413,3414,3409,3415,2881,3414,3416,3417,3418,3419,2885,3410,3418,3420,3389,3421,3421,3422,3423,3424,3393,3425,3419,3426,3427,3428,3423,3429,3415,3430,3431,3426,3432,3433,3411,3434,3432,3422,3405,3435,3435,3436,3437,3438,3327,3439,3425,3438,3440,3441,3322,3442,3442,3443,3444,3445,3333,3446,3439,3447,3448,3443,3330,3449,3450,3451,3452,3453,3448,3454,3455,3453,3456,3457,3444,3458,3429,3459,3460,3461,3440,3455,3433,3462,3463,3459,3437,3450,3464,3465,3466,3467,3463,3468,3469,3467,3470,3471,3460,3472,3472,3473,3474,3475,3456,3476,3468,3477,3478,3473,3452,3479,3480,3481,3482,3483,3478,3484,3485,3483,3486,3487,3474,3488,3489,3490,3491,3492,3470,3485,3493,3494,3495,3490,3466,3480,3496,3497,3498,3499,3500,3493,2981,3501,3502,3503,3504,3496,2978,3505,3504,3506,3413,3507,3507,3508,3500,3509,3431,3464,3510,3509,3511,3512,3427,3469,2967,3506,3513,3514,3416,3510,2963,3503,3515,3516,3513,3517,3517,3499,3518,3519,3511,3489,3520,3519,3521,3522,3523,3524,2959,3516,3525,3526,3527,3520,2969,3514,3527,3528,3529,3530,3530,3512,3523,3531,3532,3533,3534,3531,3535,3536,3537,3538,2792,3528,3539,3540,3541,3534,2796,3526,3542,3543,3539,3544,3544,3522,3545,3546,3535,3547,3547,3548,3549,3550,3551,3552,3524,3492,3553,3548,3554,3555,3555,3487,3556,3557,3558,3559,3552,3557,3560,3561,3562,3563,3564,3565,3562,3566,3567,3568,3569,3475,3558,3565,3570,3571,3533,3471,3554,3572,3573,3569,3538,3572,3551,3574,3575,3564,3576,3577,3575,3578,3579,3580,3581,3461,3573,3577,3582,3583,3583,3457,3570,3584,3585,3586,3580,3584,3567,3587,3588,3589,3590,3591,3588,3592,3349,3593,3594,3445,3585,3591,3337,3595,3596,3441,3582,3597,3363,3594,3598,3597,3579,3599,3354,3590,3600,3601,3602,3603,3376,3598,3604,3605,3537,3606,3602,3576,3607,3428,3532,3605,3608,3581,3609,3424,3608,3601,3366,3596,2872,3420,3610,3611,3387,3609,2876,3417,3529,3612,3610,3607,2864,3612,3541,3613,3614,3604,2867,3611,3614,3615,3379,3600,2859,3615,3616,3617,3618,3619,2861,3613,3620,3621,3616,3622,2670,3621,3623,3624,3625,3626,2673,3617,3625,3627,3628,3629,3629,3630,3631,3632,3633,3634,3626,3635,3636,3637,3631,3638,3622,3606,3639,3635,3640,3641,3619,3603,3640,3630,3642,3643,3643,3599,3644,3645,3646,3647,3634,3645,3648,3649,3650,3651,3651,3652,3653,3654,3655,3656,3647,3592,3657,3652,3658,3659,3660,3587,3661,3662,3657,3663,3664,3662,3665,3666,3653,3667,3638,3668,3669,3670,3648,3664,3641,3578,3671,3668,3644,3660,3672,3574,3673,3674,3671,3675,3676,3674,3677,3678,3669,3679,3679,3680,3681,3682,3665,3683,3675,3566,3684,3680,3661,3685,3686,3561,3687,3688,3684,3689,3690,3688,3691,3692,3681,3693,3694,3695,3696,3697,3677,3690,3698,3550,3699,3695,3673,3686,3700,3546,3701,3702,3703,3698,3704,3702,3705,3706,3707,3694,2776,3543,3708,3709,3710,3700,2765,3709,3711,3712,3713,3704,2761,3714,3713,3715,3623,3716,2780,3540,3710,3714,3620,3717,3717,3536,3703,3718,3639,3672,3716,3718,3707,3719,3636,3676,3720,3719,3721,3722,3723,3724,2753,3715,3725,3726,3727,3720,2749,3712,3728,3729,3725,3730,3730,3706,3731,3732,3721,3733,3733,3697,3734,3735,3736,3737,3737,3692,3738,3739,3740,3741,3742,3682,3740,3743,3744,3745,3724,3678,3736,3746,3747,3742,3748,3670,3747,3749,3750,3751,3751,3666,3744,3752,3753,3754,3755,3654,3753,3756,3757,3758,3759,3649,3750,3760,3761,3755,3762,3632,3763,3764,3765,3759,3766,3637,3723,3767,3763,3748,2665,3624,3727,3768,3769,3766,2660,3627,3769,3770,3771,3762,2655,3772,3771,3773,3774,3775,2652,3776,3628,3772,3777,3778,3778,3779,3633,3780,3781,3782,3775,3780,3765,3783,3784,3785,3786,3787,3784,3788,3789,3790,3791,3792,3781,3787,3793,3794,2639,3795,3777,3796,3797,3791,2636,3796,3774,3798,3799,3786,2631,3800,3799,3801,3802,3803,2597,3804,3797,3800,3805,3806,3803,3807,3789,3808,3809,3810,3806,3811,3793,3807,3812,3813,3814,3815,3812,3816,3817,3818,3819,3816,3809,3820,3821,3822,2622,3823,3802,3824,3825,3819,2617,3826,3805,3823,3827,3814,2614,3227,3828,3826,3829,3830,3830,3232,3831,3815,3832,3833,3834,3237,3835,3811,3831,3836,2592,3224,3837,3804,3828,3834,2587,3383,3838,3795,3837,3839,2583,3380,3618,3776,3838,3840,3840,3377,3642,3779,3841,3842,3839,3374,3841,3792,3835,3843,3843,3359,3844,3845,3846,3847,3842,3355,3646,3848,3844,3849,3849,3350,3658,3850,3851,3852,3847,3346,3851,3853,3854,3855,3856,3267,3854,3857,3858,3859,3860,3857,3861,3862,3863,3864,3836,3254,3846,3865,3866,3856,3813,3865,3867,3868,3869,3860,3818,3870,3869,3871,3872,3873,3833,3257,3866,3870,3874,3875,3875,3262,3858,3876,3877,3878,3873,3876,3863,3879,3880,3881,3882,3879,3883,3884,3885,3886,3822,3871,3887,3888,3889,3882,3810,3868,3890,3891,3887,3892,3892,3862,3893,3894,3883,3895,3896,3897,3898,3899,3893,3900,3901,3853,3902,3897,3861,3903,3794,3845,3904,3905,3867,3901,3790,3905,3906,3907,3890,3896,3785,3908,3761,3909,3906,3910,3782,3848,3650,3908,3904,3911,3911,3850,3655,3912,3902,3913,3910,3912,3757,3914,3898,3915,3915,3916,3917,3918,3919,3920,3913,3921,3922,3916,3923,3924,3924,3925,3926,3927,3928,3929,3920,3927,3930,3931,3932,3933,3934,3935,3932,3936,3937,3938,3939,3940,3928,3935,3941,3942,3903,3943,3923,3944,3945,3939,3900,3944,3919,3946,3947,3934,3895,3948,3947,3949,3950,3951,3864,3952,3945,3948,3953,3954,3951,3955,3937,3956,3957,3958,3954,3959,3941,3955,3960,3961,3962,3963,3960,3964,3965,3966,3967,3964,3957,3968,3969,3970,3886,3971,3950,3972,3973,3967,3881,3974,3953,3971,3975,3962,3878,3976,3977,3974,3978,3979,3979,3980,3981,3963,3982,3983,3984,3985,3986,3959,3981,3987,3859,3988,3989,3952,3977,3984,3855,3990,3991,3943,3989,3992,3992,3993,3994,3940,3986,3995,3852,3996,3997,3921,3991,3998,3998,3999,4000,3925,3994,4001,4001,4002,4003,4004,4005,4006,3995,4007,4005,4008,4009,4010,3987,4011,4009,4012,4013,4014,3961,4012,4015,4016,4017,4018,3983,4019,4013,4020,4021,4022,3966,4020,4017,4023,4024,4025,3970,4023,4026,4027,4028,4029,3958,4016,4030,4031,4026,4032,3938,4033,4034,4035,4030,4036,3942,4008,4037,4033,4015,4038,3929,4004,4039,4040,4037,4041,3933,4040,4042,4043,4034,4044,4045,4046,4047,4048,4042,4049,4050,4051,4052,4053,4047,4054,4055,4056,4057,4051,4058,4059,4060,4061,4058,4046,4039,4062,4063,4064,4065,4066,3926,4060,4067,4068,4069,4070,4065,4055,4071,4070,4072,4073,4074,4050,4075,4066,4074,4076,3930,4045,3758,4077,4078,4079,3917,4075,3656,4080,4081,4077,3922,4063,3667,4082,4083,4084,4081,4067,3754,4084,4085,4086,4078,4071,3745,4087,4088,4089,4085,4090,3683,4091,4092,4087,4083,4093,3693,4094,4095,4096,4092,4097,3741,4096,4098,4099,4088,4100,4100,4101,4102,4103,4104,4105,4105,4106,4107,4108,4109,4110,4111,4112,4109,4113,4052,4114,4090,4115,4104,4116,4072,4111,4093,4117,4118,4115,4069,4119,4119,4120,4121,4112,4057,4122,4123,4124,4125,4106,4121,4126,4097,4127,4128,4101,4118,4123,4129,4130,4131,4127,4132,4133,4133,4134,4135,4124,4136,4137,4138,4139,4136,4120,4140,4141,4142,4143,4132,4117,4144,4138,4145,4146,4147,4143,4148,4149,4149,4150,4151,4139,4152,4153,4154,4155,4156,4134,4151,4157,4158,4159,4160,4130,4147,4154,3563,4161,4162,4163,4164,4158,3689,4163,4165,4094,4166,4129,3685,4167,4166,4091,4168,4142,3568,4169,4164,4167,4170,4145,3589,4171,4170,4172,4173,4174,3663,4172,4168,4082,4175,4176,3659,4177,4175,4080,3997,4178,3593,4179,4173,4177,4180,4181,4181,4182,4183,4184,4185,4186,4174,4187,4148,4188,4183,4189,4176,4188,4144,4068,4190,4191,4178,4184,4190,4064,4000,4192,4192,4193,4194,4061,4003,4195,4191,4196,4140,4056,4194,4197,4189,4198,4152,4196,4199,4200,4186,4201,4199,4193,4202,4203,4204,4205,4206,4201,4207,4208,4209,4210,4211,4198,4206,4212,4213,4214,4215,4210,4216,4217,4218,4219,4216,4205,4220,4221,4222,4223,4224,4225,4226,4218,4227,4228,4229,4230,4224,4213,4231,4230,4232,4187,4233,4209,4234,4225,4233,4182,4235,4204,3595,4236,4237,4179,4238,4234,3446,4239,4240,4236,4241,4222,3458,4242,4243,4244,4240,4227,3586,4244,4245,4171,4237,4231,3571,4246,4247,4169,4245,4248,3476,4249,4250,4246,4243,4251,3488,4252,4253,4254,4250,4255,3559,4254,4256,4161,4247,4257,4257,4258,4259,4159,4260,4261,4255,4262,4263,4258,4264,4265,4261,4266,4267,4155,4268,4269,4265,4270,4271,4266,4272,4273,4274,4275,4272,4276,4215,4277,4278,4276,4268,4150,4211,4279,4248,4280,4260,4146,4232,4278,4251,4281,4264,4280,4229,4274,4282,4283,4284,4281,4285,4286,4286,4287,4288,4275,4289,4290,4291,4292,4293,4270,4288,4294,4295,4296,4297,4262,4284,4291,3484,4298,4299,4252,4300,4295,3479,4301,4300,4249,4302,4282,3454,4303,4302,4242,4304,4305,3449,4306,4304,4239,4307,4308,4308,4309,4310,4223,4311,4312,4305,4313,4285,4228,4310,4314,4314,4315,4289,4214,4316,4317,4312,4318,4316,4219,4319,4320,4321,4322,4319,4323,4324,4325,4326,4327,4311,4328,4329,4321,4330,4331,4329,4332,4333,4334,4334,4335,4324,4336,4337,4338,4339,4336,4340,4341,4342,4343,4344,4332,4345,4346,4347,4339,4348,4328,4226,4349,4345,4350,4350,4323,4220,4351,4340,4352,4353,4351,4207,4354,4355,4356,4357,4349,4235,4358,4359,4353,4360,4341,4355,4361,4362,4363,4364,4346,4359,4365,4366,4360,4367,4365,4368,3993,4369,4370,4370,4361,4371,4007,4372,4373,4374,4354,4202,4002,4371,4375,4376,4358,4185,3999,4368,4374,3351,4377,4180,3996,4378,4376,3347,4379,4378,3990,4380,4367,3343,4381,4382,4379,4383,4364,3340,4384,4238,4377,4382,4357,3335,4385,4241,4384,4386,4348,3332,4387,4307,4385,4388,4326,3312,4389,4388,4390,4391,4330,3308,4390,4386,4381,4392,4344,3303,4393,4392,4394,4395,4396,3301,4397,4391,4393,4398,4399,3285,4400,4398,4401,4402,4403,3280,4401,4395,4404,4405,4406,3275,4404,4407,4408,4409,4410,4410,4411,4412,4413,4414,4415,3272,4394,4383,4416,4407,4417,4417,4418,4366,4419,4412,4420,4421,4419,4369,3985,4422,4423,3268,4416,4380,3988,4424,4421,3264,4408,4424,3976,4425,4426,4426,4413,4422,3980,4427,4428,4428,4429,4430,4019,4431,4432,4423,4433,4372,4011,4430,4434,4420,4435,4362,4433,4436,4437,4415,4438,4436,4429,4439,4440,4441,4442,4443,4438,4444,4445,4406,4446,4447,4411,4448,4441,4396,4449,4347,4418,4447,4450,4450,4451,4342,4435,4443,4452,4453,4454,4337,4451,4455,4456,4399,4457,4333,4449,4458,4453,4403,4459,4458,4446,4460,4461,4461,4462,4455,4442,4463,4464,4465,4466,4467,4462,4468,4469,4470,4471,4472,4454,4467,4473,4474,4475,4476,4471,4477,4478,4479,4480,4477,4466,4481,4482,4483,4484,4485,4486,4487,4479,4488,4489,4490,4491,4485,4474,4492,4491,4493,4457,4494,4470,4495,4486,4494,4459,4496,4465,4497,4498,4499,4400,4500,4495,4501,4502,4503,4498,4504,4483,4505,4506,4507,4508,4509,4501,4510,4508,4511,3282,4512,4497,4513,4514,4515,3298,4511,4516,4517,4518,4519,4514,4507,4520,4520,4521,4522,4523,4503,4488,4516,4523,4524,4397,4499,4492,4525,4526,4527,4389,4524,4528,4529,4530,4531,4526,4522,4532,4533,4534,4535,4536,4519,4529,4537,4536,4538,3310,4515,4525,4539,4540,4541,3329,4538,4542,4543,4544,4545,4540,4535,4546,4546,4547,4548,4549,4531,4550,4542,4549,4551,4387,4527,4552,4552,4553,4554,4327,4555,4556,4556,4557,4558,4322,4559,4560,4561,4562,4559,4335,4472,4563,4528,4564,4555,4331,4493,4561,4532,4565,4566,4564,4490,4567,4567,4568,4569,4562,4476,4570,4571,4572,4573,4557,4569,4574,4550,4575,4576,4553,4566,4571,4577,4578,4579,4575,4580,4581,4581,4582,4583,4572,4584,4585,4586,4587,4584,4568,4588,4589,4590,4591,4580,4565,4592,4586,4593,4594,4595,4591,4596,4597,4597,4598,4599,4587,4600,4601,4602,4603,4604,4582,4599,4605,4606,4607,4608,4578,4595,4602,4609,4610,4611,4612,4613,4606,4614,4612,4615,4547,4616,4577,4617,4618,4619,4544,4620,4614,4621,4622,4623,4618,4624,4609,4625,4626,4624,4627,4628,4629,4630,4627,4620,4534,4631,4632,4632,4633,4616,4530,4634,4590,4629,4635,4613,4633,4636,4593,4637,4638,4636,4639,4640,4641,4642,4639,4634,4521,4643,4644,4645,4646,4631,4518,4647,4642,4648,4649,4628,4646,4650,4637,4651,4652,4650,4653,4654,4655,4656,4653,4647,4506,4657,4658,4658,4659,4643,4502,4660,4661,4655,4662,4640,4659,4663,4664,4664,4665,4666,4667,4668,4669,4641,4670,4596,4671,4666,4672,4644,4671,4592,4489,4673,4674,4661,4667,4673,4484,4675,4676,4676,4677,4678,4480,4679,4680,4674,4681,4588,4475,4678,4682,4672,4683,4600,4681,4684,4685,4669,4686,4684,4677,4687,4688,4689,4690,4691,4686,4692,4693,4694,4695,4696,4690,4697,4698,4699,4700,4701,4702,4703,4694,4704,4702,4705,4665,4706,4689,4707,4708,4709,4670,4705,4710,4711,4712,4713,4708,4701,4714,4714,4715,4716,4717,4696,4718,4710,4717,4719,4683,4691,4720,4721,4722,4723,4598,4719,4724,4725,4726,4727,4594,4709,4721,4728,4729,4730,4607,4727,4731,4731,4732,4733,4603,4723,4734,4735,4736,4737,4732,4738,4739,4740,4741,4742,4729,4743,4735,4744,4745,4743,4726,4713,4746,4746,4747,4738,4722,4716,4748,4749,4750,4751,4747,4752,4753,4754,4755,4756,4745,4757,4749,4758,4759,4760,4741,4756,4761,4761,4762,4763,4736,4751,4764,4765,4766,4767,4762,4768,4769,4770,4771,4772,4759,4773,4765,4774,4775,4773,4755,4776,4777,4777,4778,4768,4750,4779,4780,4781,4782,4779,4783,4784,4785,4786,4787,4784,4788,4789,4790,4791,4788,4792,4695,4793,4794,4795,4783,4752,4715,4792,4796,4797,4798,4757,4712,4799,4795,4800,4801,4799,4700,4802,4791,4803,4804,4805,4801,4806,4786,4807,4808,4776,4798,4805,4781,4809,4810,4811,4812,4813,4807,4814,4815,4813,4816,4817,4803,4818,4816,4819,4820,4821,4800,4822,4812,4823,4824,4819,4797,4825,4826,4827,4828,4829,4822,4830,4831,4829,4832,4833,4818,4834,4835,4836,4831,4837,4814,4838,4839,4840,4826,4836,4809,4841,4842,4843,4844,4840,4845,4845,4846,4847,4848,4811,4774,4849,4850,4851,4852,4847,4770,4853,4854,4855,4856,4843,4849,4857,4856,4858,4859,4860,4861,4861,4852,4862,4863,4864,4758,4865,4848,4864,4866,4823,4754,4867,4844,4860,4868,4827,4865,4869,4868,4870,4871,4872,4873,4873,4866,4874,4875,4876,4744,4877,4863,4878,4879,4874,4740,4880,4859,4881,4882,4870,4877,4883,4882,4884,4622,4885,4886,4886,4879,4887,4610,4888,4728,4889,4875,4888,4635,4890,4725,4891,4871,4885,4626,4892,4889,4893,4894,4892,4649,4895,4896,4897,4828,4872,4894,4898,4899,4899,4824,4876,4900,4901,4711,4896,4900,4890,4638,4902,4707,4903,4904,4902,4662,4905,4704,4906,4820,4901,4904,4907,4699,4908,4832,4898,4909,4910,4906,4911,4909,4895,4652,4912,4903,4913,4914,4915,4916,4917,4911,4918,4919,4920,4914,4921,4908,4922,4923,4924,4925,4926,4918,4927,4925,4928,4929,4930,4913,4931,4932,4933,4934,4928,4935,4936,4937,4938,4932,4924,4939,4939,4940,4941,4942,4920,4897,4935,4942,4943,4944,4915,4893,4945,4946,4947,4948,4943,4891,4949,4950,4951,4952,4933,4945,4953,4954,4955,4956,4951,4957,4957,4958,4959,4960,4947,4883,4961,4962,4963,4958,4964,4880,4965,4966,4967,4954,4968,4961,4969,4970,4968,4950,4938,4971,4971,4972,4964,4946,4941,4869,4973,4974,4975,4972,4976,4867,4977,4978,4979,4970,4980,4973,4981,4982,4983,4966,4979,4984,4984,4985,4986,4962,4975,4857,4987,4988,4989,4985,4990,4853,4991,4992,4993,4982,4994,4987,4995,4996,4994,4978,4997,4998,4998,4999,4990,4974,5000,4841,5001,5002,5000,5003,5004,4838,5005,5006,4997,5007,5008,5001,5009,5010,5004,5011,5012,4834,5013,5014,5008,5015,5016,5009,5017,5015,5018,4923,5019,5020,5020,5011,5021,4919,5022,4830,5023,5003,4976,4940,5021,4825,5024,5007,4980,4937,5018,5023,359,5025,5026,5027,5028,5024,336,5029,5028,5030,5031,5017,341,5032,5033,5029,5034,5013,357,5035,5036,5025,5033,5005,368,5037,5038,5039,5036,4995,388,5040,5041,5042,5038,4991,391,5042,5043,5044,5045,4981,364,5039,5045,5046,5026,4977,399,5046,5047,5048,5049,4969,396,5044,5050,5051,5047,4965,407,5051,5052,5053,5054,4953,403,5048,5054,5055,5056,4949,324,5057,5056,5058,5059,4931,328,5027,5049,5057,5060,4936,331,5030,5060,5061,5062,4922,320,5061,5059,5063,5064,4927,1477,5063,5065,5066,5067,5068,5068,4929,5069,5070,5071,5072,5073,4934,5074,5075,5069,5076,1474,5058,5077,5078,5065,5073,1471,5078,5079,5080,5081,5082,5082,5075,5083,5084,5085,5086,5087,5070,5085,5088,5089,5090,1468,5066,5081,5091,5092,5087,1463,5091,5093,5094,5095,5096,5096,5088,5097,5098,5099,5100,1436,5080,5101,5102,5093,5103,5103,5084,5104,5105,5097,5106,5107,5105,5108,3195,5109,5110,1440,5102,5111,3199,5112,5107,1460,5094,5112,3184,5113,5114,5114,5098,5109,3189,5115,5116,5116,5117,5118,3286,5119,4510,5110,5120,5121,3295,5118,4513,5106,5122,5123,5120,5124,4517,5100,5125,5124,5117,5126,4505,5090,5127,5128,5125,5129,4656,5072,4916,5130,5127,5131,4651,5076,4944,5132,5133,5130,4648,5086,5133,5134,5122,5128,4645,5135,5136,5137,5138,5134,4630,5139,4948,5140,5136,5132,4625,5141,4960,5142,5143,5140,4621,5144,5143,5145,5146,5137,4617,5147,5146,5148,5149,5150,4543,5151,5152,5153,5154,5155,5147,5156,5138,5150,5157,5123,4533,5158,5159,5155,5160,5104,5156,5161,5160,5162,3401,5108,5163,5163,5157,5164,3314,5121,4537,5165,5149,5166,3326,5164,4539,5167,5154,5168,3404,5162,5165,1415,5169,5170,3406,5171,5167,1429,5172,5171,3398,5111,5161,1431,5173,5174,5172,5101,5158,1411,5175,5176,5169,5174,5151,1407,5177,5178,5175,5179,5180,5180,5181,5182,5152,5183,5144,5184,5185,5183,5159,5083,5135,1405,5186,5179,5173,5079,5184,1401,5055,5187,5186,5077,5188,5188,4952,5189,5185,5074,5139,5190,4956,5191,5181,5189,5141,1398,5053,5192,5177,5187,5190,1277,5193,5194,5195,5192,5196,5196,5197,5198,5199,5191,5200,5201,5202,5203,5204,5198,5205,1274,5206,5207,5208,5194,5201,1271,5208,5209,5210,5211,5212,5212,5204,5213,5214,5215,5216,5217,5199,5215,5218,5182,5219,1268,5195,5211,5220,5178,5217,1263,5220,5221,5222,5176,5223,5223,5218,5224,5225,5153,5226,1236,5210,5227,5228,5221,5229,5229,5214,5230,5231,5224,5232,5233,5231,5234,3430,5235,5236,1240,5228,5237,3412,5238,5233,1260,5222,5238,3408,5170,5239,5239,5225,5235,3434,5168,5240,5240,5241,5242,3436,5166,5243,5236,5244,5245,3462,5242,5246,5232,5247,5248,5244,5249,5250,5226,5251,5249,5241,5148,5252,5219,5253,5254,5251,5145,5255,5200,5256,5257,5253,5142,5258,5205,5259,5260,5261,5257,5262,5216,5261,5263,5247,5254,5264,5265,5266,5267,5268,5263,5269,5270,5271,5272,5266,5260,5273,5274,5275,5276,5277,5272,5278,5279,5277,5280,5281,5267,5282,5283,5281,5284,5285,5286,5287,5288,5289,5290,5291,5292,5283,5293,5268,5286,5294,5248,5295,5296,5297,5292,5298,5230,5293,5299,5298,5300,3508,5234,5301,5301,5294,5302,3465,5245,5303,5304,5285,5305,3494,5302,5306,5307,5291,5308,3497,5300,5304,1213,5309,5310,3501,5311,5307,1229,5312,5311,3505,5237,5299,1231,5313,5314,5312,5227,5296,1208,5315,5316,5309,5314,5288,1203,5317,5318,5315,5319,5320,5320,5321,5322,5289,5323,5279,5324,5325,5323,5297,5213,5265,1200,5326,5319,5313,5209,5324,1196,5327,5328,5326,5207,5329,5329,5330,5331,5325,5203,5270,5332,5333,5334,5321,5331,5274,1193,5335,5336,5317,5328,5332,623,5337,5338,5335,5339,5340,612,5341,5342,5337,5343,5344,5344,5345,5346,5347,5348,5349,5340,5347,5350,5333,5351,5352,5353,5354,5351,5330,5355,5356,5357,5358,5348,5354,5359,5360,615,5361,5343,5362,5363,5357,619,5362,5339,5327,5364,5353,545,5365,5364,5206,5366,5367,5367,5368,5355,5202,5369,5370,5371,5372,5369,5197,4955,5373,541,5374,5366,5193,5052,5371,551,5375,5376,5374,5050,5377,5377,5378,5379,5372,4967,5380,5381,5382,5359,5368,5379,5383,549,5384,5363,5365,5376,5381,575,5385,5386,5384,5387,5388,5388,5389,5390,5382,5391,5392,5393,5394,5391,5378,4983,5395,555,5396,5387,5375,5043,5393,559,5397,5398,5396,5041,5399,5399,5400,5401,5394,4993,5402,5403,5404,5405,5389,5401,5406,573,5407,5408,5385,5398,5403,584,5409,5410,5411,5408,5412,604,5413,5414,5415,5410,5416,607,5415,5417,5341,5418,5419,580,5411,5418,5361,5386,5420,5420,5421,5422,5358,5390,5423,5419,5424,5425,5345,5422,5426,5416,5427,5428,5424,5429,5430,5412,5431,5429,5421,5405,5432,5432,5433,5434,5435,5436,5437,5430,5438,5439,5440,5434,5441,5426,5440,5442,5443,5444,5445,5423,5435,5444,5446,5447,5448,5448,5449,5450,5451,5452,5453,5445,5454,5455,5456,5450,5457,5441,5458,5459,5454,5460,5461,5437,5462,5460,5449,5463,5464,5465,5466,5463,5467,5468,5469,5406,5470,5436,5471,5472,5465,5402,5473,5472,5474,4989,5475,5475,5476,5468,5477,4855,5478,5479,5477,5480,5481,4858,5482,5395,5474,5483,5484,4986,5479,5392,5471,5447,5485,5483,5486,5486,5467,5452,5487,5480,5488,5489,5487,5490,5491,5492,5493,5383,5485,5494,5495,5496,5489,5380,5484,5496,5497,4963,5498,5498,5481,5492,5499,4881,5500,5501,5499,5502,5503,4884,5504,5373,5497,5505,5256,4959,5501,5370,5495,5506,5259,5505,5507,5507,5491,5508,5509,5502,5510,5511,5512,5513,5514,5508,5515,5516,5451,5517,5512,5490,5518,5360,5446,5519,5520,5494,5516,5356,5520,5521,5271,5506,5511,5352,5522,5523,5275,5521,5524,5349,5443,5525,5522,5519,5526,5526,5456,5527,5528,5517,5529,5524,5528,5530,5531,5513,5532,5532,5533,5534,5535,5536,5537,5529,5538,5539,5533,5540,5541,5541,5542,5543,5544,5545,5546,5537,5544,5547,5548,5549,5550,5551,5552,5549,5553,5554,5555,5556,5557,5545,5552,5558,5559,5518,5560,5540,5561,5562,5556,5515,5561,5536,5563,5564,5551,5510,5565,5564,5566,5567,5568,5568,5569,5554,5570,5571,5572,5573,5574,5571,5575,4730,5576,5504,5577,5567,5578,4887,5573,5500,5579,5580,5577,4878,5581,5581,5582,5583,5574,4742,5584,5585,5586,5558,5569,5583,5587,5493,5588,5562,5565,5580,5585,5488,5589,5590,5588,5591,5592,5592,5593,5594,5586,5595,5596,5597,5598,5595,5582,4760,5599,5482,5600,5591,5579,4862,5597,5478,5601,5602,5600,4851,5603,5603,5604,5605,5598,4772,5606,5607,5608,5609,5593,5605,5610,5469,5611,5612,5589,5602,5607,5464,5613,5614,5615,5612,5616,5616,5617,5618,5619,5609,5620,5461,5621,5622,5623,5614,5624,5624,5625,5626,5627,5618,5628,5629,5627,5630,5542,5631,5632,5457,5623,5633,5538,5634,5629,5453,5615,5634,5560,5590,5635,5635,5619,5631,5557,5594,5636,5636,5637,5638,5639,5640,5641,5632,5642,5643,5644,5638,5645,5628,5646,5647,5642,5648,5649,5620,5650,5648,5637,5651,5652,5610,5653,5651,5654,5655,5656,5606,5657,5655,5658,4767,5659,5599,5658,5660,5661,4763,5662,5596,5654,5640,5663,5660,5664,5587,5663,5665,5666,5667,5668,5584,5661,5667,5669,4737,5670,5576,5669,5671,5672,4733,5673,5572,5666,5674,5675,5671,5676,5555,5677,5678,5679,5674,5680,5559,5639,5681,5677,5665,5682,5546,5644,5683,5684,5681,5685,5550,5684,5686,5687,5678,5688,5689,5687,5690,5691,5692,5693,5694,5679,5692,5695,5696,5697,5698,5695,5699,5700,5701,5702,5703,5691,5704,5705,5699,5706,5707,5708,5709,5710,5711,5703,5712,5713,5711,5714,5715,5698,5716,5553,5717,5713,5718,5694,5719,5548,5720,5708,5717,5689,5721,5535,5722,5723,5724,5719,5725,5723,5726,5727,5728,5707,5282,5729,5730,5731,5732,5725,5278,5531,5733,5729,5734,5721,5273,5514,5734,5735,5736,5737,5269,5735,5732,5738,5739,5740,5740,5741,5728,5742,5743,5712,5737,5563,5724,5741,5744,5716,5745,5566,5744,5746,5747,5748,5749,5746,5743,5750,5751,5752,5264,5753,5739,5754,5755,5749,5262,5509,5736,5753,5756,5745,5258,5503,5756,5757,4623,5758,5255,5757,5755,5759,4619,5760,5760,5761,5751,5762,4615,5763,5758,5578,5747,5761,4611,5764,5764,5575,5765,5766,4608,5767,5767,5672,5768,5769,4604,5770,5771,5675,5696,5772,5768,5773,5748,5570,5718,5774,5765,5771,5752,5774,5715,5775,5776,5777,5777,5772,5701,5778,5779,5780,5781,5769,5779,5782,4583,5783,5763,5766,5776,5784,4579,5781,5785,5784,5786,5787,4576,5788,5788,5782,5789,5790,4573,5791,5792,5778,5793,5794,5789,5795,5796,5775,5797,5798,5786,5792,5799,5798,5800,4313,5801,5802,5802,5794,5803,4315,5804,5805,5806,5790,5804,4318,4558,5807,5808,5787,5801,4309,4554,5806,5809,5810,5811,4306,4551,5808,5812,5762,5813,5810,4548,5785,5252,5759,5814,5815,4545,5812,5243,5815,5816,3447,4541,5809,5246,5817,5818,3451,5816,5819,5250,5754,5820,5817,5814,5821,5821,5750,5822,5823,5813,5796,5819,5823,5824,4303,5811,5799,5825,5826,5827,4301,5824,5828,5829,5742,5830,5826,5822,5831,5295,5738,5832,5833,5820,5829,5303,5833,5834,3477,5818,5825,5306,5835,5836,3481,5834,5837,5287,5731,5838,5835,5832,5839,5839,5727,5840,5841,5830,5842,5837,5841,5843,4298,5827,5844,5844,5845,5846,4296,5847,5848,5828,5849,5847,4283,5800,5850,5831,5714,5851,5849,5797,5852,5842,5710,5853,5845,5851,5854,5854,5705,5855,5856,5857,5858,5852,5700,5857,5859,5793,5860,5850,5859,5861,4287,5803,5862,5848,5856,5863,4292,5861,5864,5865,5866,5867,5868,5863,5869,5870,5871,5872,5873,5867,5874,5875,5876,5877,5871,5878,5879,5880,5881,5878,5866,5855,5882,5883,5884,5885,5886,5853,5880,5887,5888,5889,5890,5885,5875,5891,5890,5892,5893,5894,5870,5895,5886,5894,5896,5846,5865,5897,5898,5899,5900,5843,5895,5901,5902,5903,5898,5840,5883,5904,5905,5906,5907,5838,5901,5908,5907,5909,5910,5836,5897,5911,5912,5913,5914,5909,5915,5916,5917,5918,5912,5906,5919,5919,5920,5921,5922,5903,5887,5915,5922,5923,5924,5899,5891,5925,5926,5927,5928,5923,5929,5930,5931,5932,5926,5921,5933,5934,5935,5936,5937,5918,5930,5938,5937,5939,5940,5913,5925,5941,5942,5943,5944,5939,5945,5946,5947,5948,5942,5936,5949,5949,5950,5951,5952,5932,5953,5945,5952,5954,5955,5927,5956,5956,5957,5958,5959,5960,5961,5961,5962,5963,5964,5965,5966,5967,5968,5965,5969,5872,5970,5929,5971,5960,5972,5892,5967,5933,5973,5974,5971,5889,5975,5975,5976,5977,5968,5877,5978,5979,5980,5981,5962,5977,5982,5953,5983,5984,5957,5974,5979,5985,5986,5987,5983,5988,5989,5989,5990,5991,5980,5992,5993,5994,5995,5992,5976,5996,5997,5998,5999,5988,5973,6000,5994,6001,6002,6003,5999,6004,6005,6005,6006,6007,5995,6008,6009,6010,6011,6012,5990,6007,6013,6014,6015,6016,5986,6003,6010,6017,6018,6019,6020,6021,6014,6022,6020,6023,5950,6024,5985,6025,6026,6027,5947,6028,6022,6029,6030,6031,6026,6032,6017,6033,6034,6032,6035,6036,6037,6038,6035,6028,5935,6039,6040,6040,6041,6024,5931,6042,5998,6037,6043,6021,6041,6044,6001,6045,6046,6044,6047,6048,6049,6050,6047,6042,5920,6051,6052,6053,6054,6039,5917,6055,6050,6056,6057,6036,6054,6058,6045,6059,6060,6058,6061,5733,6062,6063,6061,6055,5905,5730,6064,6064,6065,6051,5902,5726,6066,6062,6067,6048,6065,5722,6068,6068,6069,6070,6071,5720,6072,6049,6073,6004,6074,6070,6075,6052,6074,6000,5888,6076,6077,6066,6071,6076,5884,5709,6078,6078,6079,6080,5881,5704,6081,6077,6082,5996,5876,6080,6083,6075,6084,6008,6082,6085,6086,6072,6087,6085,6079,5690,6088,6089,6090,6091,6087,5686,6092,6093,6094,6095,6090,5683,6096,6097,6098,6099,6100,5543,6093,6101,6100,6102,6069,5547,6089,6103,6104,6105,6073,6102,6106,6107,6108,6109,6104,6099,6110,6110,6111,6112,6113,6095,6114,6106,6113,6115,6084,6091,6116,6117,6118,6119,6006,6115,6120,6121,6122,6123,6002,6105,6117,6124,6125,6126,6015,6123,6127,6127,6128,6129,6011,6119,6130,6131,6132,6133,6128,6134,6135,6136,6137,6138,6125,6139,6131,6140,6141,6139,6122,6109,6142,6142,6143,6134,6118,6112,6144,6145,6146,6147,6143,6148,6149,6150,6151,6152,6141,6153,6145,6154,6155,6156,6137,6152,6157,6157,6158,6159,6132,6147,6160,6161,6162,6163,6158,6164,6165,6166,6167,6168,6155,6169,6161,6170,6171,6169,6151,6172,6173,6173,6174,6164,6146,6175,6176,6177,6178,6175,6179,6180,6181,6182,6183,6180,6184,5647,6185,6186,6184,6187,6094,5643,6188,6189,6179,6148,6111,6187,6190,6191,6192,6153,6108,6193,6189,6194,6195,6193,6098,5630,6186,6196,6197,6198,6195,5626,6182,6199,6200,6172,6192,6198,6177,6201,6202,6203,6204,6205,6199,6206,6207,6205,6208,5622,6196,6209,6208,6210,6211,5633,6194,6212,6204,6213,6214,6210,6191,6215,6216,6217,6218,6219,6212,6220,6221,6219,6222,5455,6209,6223,6224,6225,6221,5459,6206,6226,6227,6228,6216,6225,6201,6229,6230,6231,6232,6228,6233,6233,6234,6235,6236,6203,6170,6237,6238,6239,6240,6235,6166,6241,6242,6243,6244,6231,6237,6245,6244,6246,6247,6248,6249,6249,6240,6250,6251,6252,6154,6253,6236,6252,6254,6213,6150,6255,6232,6248,6256,6217,6253,6257,6256,6258,6259,6260,6261,6261,6254,6262,6263,6264,6140,6265,6251,6266,6267,6262,6136,6268,6247,6269,6270,6258,6265,6271,6270,6272,6030,6273,6274,6274,6267,6275,6018,6276,6124,6277,6263,6276,6043,6278,6121,6279,6259,6273,6034,6280,6277,6281,6282,6280,6057,6283,6284,6285,6218,6260,6282,6286,6287,6287,6214,6264,6288,6289,6107,6284,6288,6278,6046,6290,6103,6291,6292,6290,6067,5534,6101,6293,6211,6289,6292,5539,6097,6294,6222,6286,6295,5527,6293,6296,6295,6283,6060,5530,6291,6297,6298,6299,6300,5523,6296,6301,6302,6303,6298,5525,6294,6304,6305,6306,6307,5346,6301,6308,6307,6309,6310,5350,6297,6311,6312,6313,6314,6309,6315,6316,6317,6318,6312,6306,6319,6319,6320,6321,6322,6303,6285,6315,6322,6323,6324,6299,6281,6325,6326,6327,6328,6323,6279,6329,6330,6331,6332,6313,6325,6333,6334,6335,6336,6331,6337,6337,6338,6339,6340,6327,6271,6341,6342,6343,6338,6344,6268,6345,6346,6347,6334,6348,6341,6349,6350,6348,6330,6318,6351,6351,6352,6344,6326,6321,6257,6353,6354,6355,6352,6356,6255,6357,6358,6359,6350,6360,6353,6361,6362,6363,6346,6359,6364,6364,6365,6366,6342,6355,6245,6367,6368,6369,6365,6370,6241,6371,6372,6373,6362,6374,6367,6375,6376,6374,6358,6377,6378,6378,6379,6370,6354,6380,6229,6381,6382,6380,6383,6384,6226,6385,6386,6377,6387,6388,6381,6389,6390,6384,6391,5439,6223,6392,6393,6388,6394,5428,6389,6395,6394,6396,6305,5425,6397,6397,6391,6398,6302,5442,6220,6399,6383,6356,6320,6398,6215,6400,6387,6360,6317,6396,6399,6401,6402,6403,6404,6405,6400,6406,6407,6405,6408,5417,6395,6409,6410,6411,6407,5414,6392,6412,6413,6414,6402,6411,6385,6415,6416,6417,6418,6414,6375,6419,6420,6421,6422,6417,6371,6423,6422,6424,6425,6426,6361,6427,6418,6426,6428,6403,6357,6429,6428,6430,6431,6432,6349,6433,6425,6434,6435,6430,6345,6436,6435,6437,6438,6439,6333,6440,6431,6439,6441,6442,6329,6443,6444,6442,6445,6446,6311,6447,6404,6432,6444,6448,6316,6449,6408,6448,6450,5342,6304,6451,6450,6446,6452,5338,6308,6453,6452,6454,6455,5336,6456,6456,6310,6457,6458,5334,6459,6460,6314,6461,6462,6457,6463,6464,6445,6465,6466,6454,6460,6467,6466,6468,6469,6470,6471,6471,6462,6472,6473,6474,6475,6476,6458,6474,6477,5322,6478,6479,6455,6470,6480,5318,6476,6481,6480,6482,6483,5316,6484,6484,6477,6485,6486,5290,6487,6488,6469,6489,6490,6482,6491,6491,6473,6492,6493,6485,6494,6495,6493,6496,6497,6498,6499,6500,6490,6501,6502,6503,6495,6504,6483,6503,6505,5310,6506,6506,6486,6498,6507,5308,6508,6508,6509,6510,6511,5305,5908,6499,6512,6513,6514,6510,5911,6494,6515,6516,6512,6517,5916,6487,6518,6517,6509,5284,5904,6478,6519,6520,6518,5280,6063,6459,6300,6521,6519,5276,6059,6463,6324,6522,6523,6521,6056,6475,6523,6524,6515,6520,6053,6525,6526,6527,6528,6524,6038,6529,6328,6530,6526,6522,6033,6531,6340,6532,6533,6530,6029,6534,6533,6535,6536,6527,6025,6537,6536,6538,6539,6540,5946,6541,6542,6543,6544,6545,6537,6546,6528,6540,6547,6516,5934,6548,6549,6545,6550,6492,6546,6551,6550,6552,6553,6496,6554,6554,6547,6555,6556,6513,5938,6557,6539,6558,6559,6555,5941,6560,6544,6561,6562,6552,6557,6563,6564,6565,6566,6567,6560,6568,6569,6567,6570,6501,6551,6571,6572,6573,6569,6489,6548,6574,6575,6576,6564,6573,6541,6577,6578,6579,6575,6580,6581,6581,6582,6583,6542,6584,6534,6585,6586,6584,6549,6472,6525,6587,6588,6580,6572,6468,6585,6589,6441,6590,6588,6465,6591,6591,6332,6592,6586,6461,6529,6593,6336,6594,6582,6592,6531,6595,6438,6596,6578,6590,6593,6597,6598,6599,6600,6596,6601,6601,6602,6603,6604,6594,6605,6606,6607,6608,6609,6603,6610,6611,6612,6613,6614,6599,6606,6615,6614,6616,6617,6618,6619,6619,6609,6620,6621,6622,6623,6624,6604,6622,6625,6583,6626,6627,6600,6618,6628,6579,6624,6629,6628,6630,6631,6576,6632,6632,6625,6633,6634,6543,6635,6636,6617,6637,6638,6630,6639,6639,6621,6640,6641,6633,6642,6643,6641,6644,6645,6646,6647,6648,6638,6649,6650,6651,6643,6652,6631,6651,6653,6565,6654,6654,6634,6646,6655,6561,6656,6656,6657,6658,6659,6558,6660,6647,6661,6662,6663,6658,6664,6642,6665,6666,6661,6667,6668,6635,6669,6667,6657,6538,6670,6626,6671,6672,6669,6535,6673,6623,6674,6675,6665,6672,6676,6605,6677,6678,6671,6532,6679,6610,6680,6681,6674,6678,6682,6683,6684,6685,6686,6681,6687,6688,6686,6689,6690,6675,6691,6692,6690,6693,6694,6666,6695,6696,6697,6698,6699,6640,6692,6700,6694,6701,6702,6662,6703,6704,6699,6705,6706,6644,6700,6707,6708,6709,6710,6649,6704,6711,6712,6713,6708,6637,6696,6714,6715,6716,6712,6616,6717,6717,6718,6719,6697,6620,6688,6720,6721,6722,6718,6608,6683,6723,6724,6725,6715,6613,6720,6726,6727,6728,6724,6729,6730,6731,6732,6733,6727,6734,6735,6735,6736,6737,6738,6739,6740,6730,6738,6741,6721,6742,6743,6744,6745,6742,6607,6746,6747,6748,6749,6739,6745,6750,6751,6752,6753,6734,6754,6755,6748,6756,6754,6729,6612,6757,6744,6758,6759,6757,6598,6437,6760,6760,6761,6746,6602,6335,6762,6763,6764,6750,6761,6347,6765,6766,6767,6755,6759,6434,6763,6768,6769,6770,6767,6424,6771,6771,6772,6773,6764,6363,6774,6775,6776,6777,6772,6373,6778,6779,6780,6781,6769,6421,6775,6782,6783,6784,6785,6781,6786,6787,6788,6789,6790,6784,6791,6792,6790,6793,6732,6794,6795,6796,6785,6794,6753,6770,6797,6797,6798,6799,6749,6773,6800,6795,6801,6802,6736,6799,6803,6791,6804,6805,6801,6806,6807,6786,6808,6806,6798,6777,6809,6809,6810,6811,6812,6813,6814,6807,6815,6816,6817,6811,6818,6803,6817,6819,6820,6821,6822,6800,6812,6821,6823,6824,6825,6825,6826,6827,6828,6829,6830,6822,6831,6832,6833,6827,6834,6818,6835,6836,6831,6837,6838,6814,6839,6837,6826,6840,6841,6842,6843,6840,6844,6243,6845,6778,6846,6813,6847,6369,6842,6774,6847,6824,6848,6366,6849,6849,6844,6829,6850,6246,6851,6852,6850,6853,6854,6269,6855,6765,6848,6856,6857,6343,6852,6762,6857,6858,6677,6339,6859,6859,6854,6860,6861,6272,6862,6863,6864,6865,6866,6860,6867,6868,6828,6869,6864,6853,6870,6751,6823,6871,6872,6856,6868,6747,6872,6873,6680,6858,6863,6743,6874,6875,6684,6873,6876,6740,6820,6877,6874,6871,6878,6878,6833,6879,6880,6869,6881,6876,6880,6882,6883,6865,6884,6884,6885,6886,6887,6888,6889,6881,6890,6891,6885,6892,6893,6893,6894,6895,6896,6897,6898,6889,6896,6899,6900,6901,6902,6903,6904,6901,6905,6906,6907,6908,6909,6897,6904,6910,6911,6870,6912,6892,6913,6914,6908,6867,6913,6888,6915,6916,6903,6862,6917,6916,6918,6275,6919,6919,6920,6906,6921,6126,6922,6923,6924,6910,6920,6138,6925,6855,6926,6914,6917,6266,6923,6851,6927,6928,6926,6250,6929,6929,6930,6931,6924,6156,6932,6933,6934,6935,6930,6168,6936,6845,6937,6938,6927,6239,6933,6841,6939,6940,6941,6938,6942,6942,6943,6944,6945,6935,6946,6838,6947,6948,6949,6940,6950,6950,6951,6952,6953,6944,6954,6955,6953,6956,6894,6957,6958,6834,6949,6959,6890,6960,6955,6830,6941,6960,6912,6928,6961,6961,6945,6957,6909,6931,6962,6962,6963,6964,6965,6966,6967,6958,6968,6969,6970,6964,6971,6954,6972,6973,6968,6974,6975,6946,6976,6974,6963,6977,6978,6936,6979,6977,6980,6163,6981,6932,6980,6966,6982,6159,6983,6925,6982,6984,6985,6133,6986,6922,6985,6987,6988,6129,6989,6907,6990,6991,6992,6987,6993,6911,6965,6994,6990,6984,6995,6898,6970,6996,6997,6994,6998,6902,6997,6999,7000,6991,7001,7002,7000,7003,7004,7005,7006,7007,6992,7005,7008,7009,7010,7011,7008,7012,7013,7014,7015,7016,7004,7017,7018,7012,7019,7020,7021,7022,7023,7024,7016,7025,7026,7024,7027,7028,7011,7029,6905,7030,7026,7031,7007,7032,6900,7033,7021,7030,7002,7034,6887,7035,7036,7037,7032,7038,6915,7037,7039,7040,7029,7041,7036,7042,7043,7044,7020,7045,7039,7044,7046,7047,7025,6676,7048,7049,7050,7051,7045,6691,7052,7053,7054,7049,7041,6687,6883,7055,7052,7056,7034,6682,6866,7056,7048,7057,7038,6679,6861,7057,7058,6031,7059,6673,7058,7051,7060,6027,7061,7061,7062,7047,7063,6023,7064,7059,6918,7040,7062,6019,7065,7065,6921,7031,7066,6016,7067,7067,6988,7009,7068,6012,7069,7070,7068,7014,7071,5991,7072,7064,7066,7028,7073,5987,7070,7074,7073,7075,7076,5984,7077,7077,7071,7078,7079,5981,7080,7081,7079,7082,7083,5963,7084,7085,7076,7086,7087,5958,7081,7088,7089,7090,7091,5954,7085,7092,7093,7094,7095,7090,7096,7097,7063,7098,7089,5951,7074,7099,7046,7100,7093,7098,7101,6668,7050,7102,7103,7104,7099,6670,7060,7104,7105,5948,7097,6660,7105,7106,7107,5943,7088,6664,7103,7108,7109,7106,7092,6703,7110,7111,7112,7108,7113,6695,7054,7114,7110,7102,7115,7115,7043,7116,7117,7100,7118,7113,7117,7119,7120,7094,7121,7121,7122,7123,7124,7125,7126,7096,7127,7125,7128,7086,7129,7101,7027,7130,7127,7075,7131,7118,7023,7132,7122,7130,7133,7133,7018,7134,7135,7136,7137,7131,7013,7136,7138,7078,7139,7129,7138,7140,7141,7082,7142,7126,7135,7143,7144,7140,7145,7146,7144,7147,7148,7149,7150,7151,7124,7152,7153,7154,7146,7155,7128,7154,7156,7157,7158,7158,7141,7149,7159,7160,7161,7162,7159,7163,7164,7165,7166,7167,7156,7168,7169,7170,7162,7171,7153,7172,7173,7168,7174,7174,7148,7175,7176,7163,7177,7178,7176,7179,7180,7181,7182,7183,7164,7181,7184,7185,7186,7187,7184,7188,7189,7190,7191,7192,7180,7193,7194,7188,7195,7196,7197,7198,7199,7200,7192,7201,7202,7200,7203,7204,7187,7205,7169,7206,7202,7207,7183,7208,7173,7209,7197,7206,7178,7210,7211,7212,7213,7214,7208,7215,7216,7214,7217,7218,7205,7219,7217,7220,7221,7222,7201,7223,7213,7224,7225,7220,7196,7226,7227,7228,7229,7230,7223,7231,7232,7230,7233,7234,7219,7235,7236,7237,7232,7238,7215,7239,7240,7241,7227,7237,7210,7242,7243,7244,7240,7245,7246,7247,7112,7248,7243,7249,7250,7250,7120,7251,7252,7253,7151,7246,7252,7254,7211,7255,7171,7256,7257,7255,7216,7258,7167,7259,7095,7253,7257,7260,7155,7261,7109,7249,7262,7263,7259,7264,7262,7245,7236,7265,7256,7266,7267,7265,7268,7269,7270,7271,7107,7263,7267,7272,7273,7273,7091,7260,7274,7275,7276,7270,7274,7258,7277,7278,7279,7280,7281,7278,7282,7283,7284,7285,5955,7275,7281,7286,7287,7288,5944,7272,7289,7290,7285,7291,7289,7269,7292,7293,7280,7294,7292,7295,7296,7297,7298,7299,7268,7238,7300,7295,7301,7302,7300,7234,7303,7304,7305,7306,7296,7304,7307,7308,7309,7309,7310,7311,7312,7313,7314,7305,7315,7222,7316,7311,7317,7301,7277,7218,7315,7318,7319,7298,7282,7318,7310,7320,7321,7321,7322,7323,7324,7325,7326,7319,7327,7207,7328,7323,7329,7317,7328,7204,7330,7331,7332,7314,7324,7331,7333,7334,7335,7335,7336,7337,7338,7339,7340,7332,7341,7190,7342,7337,7343,7329,7344,7185,7341,7345,7346,7326,7347,7345,7336,7348,7349,7350,7351,7352,7347,7353,7354,7284,7355,7356,7322,7357,7350,7279,7358,7170,7327,7356,7359,7359,7360,7165,7344,7352,7361,7362,7083,7160,7360,7363,7364,7276,7087,7157,7358,7365,7362,7287,5959,7365,7355,7366,7367,7367,5964,7363,7351,7368,7369,7370,5969,7368,7371,7372,7373,7374,5873,7372,7375,7376,7377,7378,7375,7379,7380,7381,7382,7383,7371,7353,7384,7379,7385,7386,7387,7357,7388,7389,7383,7390,7391,7389,7392,7393,7378,7394,5893,7395,7391,7396,7374,7397,5972,7366,7387,7395,7370,7398,5928,7286,7399,7400,7397,7401,5924,7400,7402,7403,7394,7404,7399,7283,7405,7406,7386,7407,7402,7406,7408,7409,7390,7410,7411,7412,7413,7414,7407,7415,7416,7293,7417,7412,7404,7418,5940,7290,7416,7419,7398,7420,5914,7419,7411,7421,7401,7422,5910,7421,7423,3482,7424,7425,7423,7414,7426,3486,7427,7427,7428,7409,7429,4253,7430,7424,5900,7403,7428,4299,7431,7431,5896,7396,7432,4297,7433,7433,5868,7376,7434,4293,7435,7436,7434,7381,7437,4271,7438,7430,7432,7393,7439,4263,7436,7440,7439,7441,7442,4259,7443,7443,7437,7444,7445,4267,7446,7447,7445,7448,7449,4156,7450,7451,7442,7452,7453,4160,7447,7454,7455,7456,7457,4162,7451,7458,7459,7460,7461,7456,7462,7463,7429,7464,7455,4256,7440,7465,7408,7466,7459,7464,7467,7468,7413,7469,7470,7471,7465,7472,7426,7471,7473,3556,7463,7474,7473,7475,7476,3560,7454,7477,7470,7478,7479,7475,7458,7480,7481,7308,7482,7478,7483,7484,7417,7297,7481,7469,7485,7485,7405,7320,7486,7466,7487,7483,7486,7313,7488,7460,7489,7489,7490,7334,7491,7492,7493,7462,7494,7492,7495,7452,7496,7467,7392,7497,7494,7441,7498,7487,7388,7325,7490,7497,7499,7499,7384,7348,7500,7501,7502,7498,7380,7501,7503,7444,7504,7496,7503,7505,7506,7448,7507,7493,7500,7339,7508,7505,7509,7510,7508,7511,7512,7513,7514,7515,7506,7513,7516,7517,7518,7519,7516,7520,7521,7522,7523,7524,7512,7525,7526,7520,7527,7528,7529,7530,7531,7532,7524,7533,7534,7532,7535,7536,7519,7537,7495,7538,7534,7539,7515,7540,7491,7541,7529,7538,7510,7542,7488,7543,7544,7545,7540,7546,7461,7545,7547,7548,7537,7549,7544,7550,7551,7552,7528,7553,7547,7552,7554,7555,7533,7556,7557,7558,7559,7560,7553,7561,7562,7563,7564,7558,7549,7565,7482,7566,7562,7567,7542,7568,7479,7567,7557,7569,7546,7570,7476,7569,7571,3687,7572,7573,7571,7560,7574,3691,7575,7575,7576,7555,7577,4095,7578,7572,7457,7548,7576,4165,7579,7579,7453,7539,7580,4131,7581,7578,7580,7536,7582,4128,7583,7581,7449,7517,7584,4135,7585,7583,7584,7522,7586,4125,7587,7588,7586,7589,7590,4107,7591,7592,7582,7593,7594,4102,7588,7595,7577,7596,7597,4098,7592,7598,7554,7599,7600,7596,7601,7602,7574,7603,7604,3738,7595,7605,7559,7606,7607,7603,7598,7608,7564,7609,7610,7606,7611,7611,7551,7612,7613,7599,7614,7614,7531,7615,7616,7617,7618,7601,7535,7617,7619,7593,7620,7620,7521,7621,7622,7589,7623,7618,7526,7624,7625,7621,7626,7627,7628,7629,7630,7624,7631,7632,7633,7634,7628,7525,7635,7636,7637,7638,7639,7530,7632,7640,7639,7641,7642,7615,7627,7643,7644,7645,7646,7641,7647,7648,7649,7650,7644,7638,7651,7651,7652,7653,7654,7634,7655,7647,7654,7656,7657,7629,7658,7659,7660,7661,7662,7656,7663,7664,7665,7666,7660,7653,7667,7668,7669,7670,7671,7645,7659,7672,7673,7674,7669,7650,7664,7675,7676,7677,7678,7674,7679,7680,7678,7681,7682,7670,7683,7683,7684,7685,7686,7661,7687,7679,7688,7689,7684,7666,7690,7691,7194,7692,7688,7693,7694,7695,7199,7696,7676,7697,7691,7698,7203,7697,7673,7699,7700,7700,7189,7693,7665,7701,7702,7703,7342,7701,7652,7704,7705,7706,7338,7704,7633,7511,7707,7708,7333,7709,7637,7541,7706,7710,7330,7699,7649,7709,7703,7711,7316,7712,7713,7714,7710,7715,7312,7714,7716,7543,7708,7717,7307,7718,7719,7566,7715,7720,7303,7721,7722,7718,7711,7723,7233,7724,7725,7721,7726,7727,7725,7728,7729,7730,7731,7726,7221,7732,7733,7712,7698,7731,7733,7734,7735,7736,7672,7737,7738,7739,7740,7734,7675,7741,7225,7742,7738,7732,7695,7743,7229,7744,7745,7724,7741,7746,7745,7747,7748,7728,7737,7749,7748,7750,7751,7752,7753,7753,7740,7754,7755,7756,7680,7757,7735,7756,7758,7759,7668,7760,7729,7752,7761,7762,7757,7763,7764,7762,7765,7766,7767,7768,7722,7730,7764,7769,7770,7770,7713,7736,7771,7772,7648,7767,7771,7759,7773,7774,7643,7775,7776,7774,7777,7612,7640,7778,7716,7772,7776,7550,7636,7779,7719,7769,7780,7563,7778,7781,7780,7766,7782,7609,7775,7783,7784,7785,7786,7787,7781,7788,7789,7790,7784,7791,7779,7792,7793,7794,7795,7796,7788,7797,7795,7798,7799,7800,7783,7801,7802,7803,7804,7798,7805,7806,7807,7808,7802,7794,7809,7809,7810,7811,7812,7790,7768,7805,7812,7813,7814,7785,7763,7815,7816,7817,7818,7813,7760,7819,7820,7821,7816,7811,7727,7822,7823,7824,7825,7803,7815,7826,7827,7828,7823,7808,7819,7829,7830,7831,7832,7828,7833,7834,7832,7835,7836,7824,7837,7837,7838,7839,7840,7817,7749,7833,7841,7842,7838,7821,7746,7843,7844,7845,7841,7846,7743,7847,7848,7849,7830,7850,7843,7851,7852,7850,7827,7853,7854,7854,7855,7846,7820,7856,7723,7857,7858,7856,7810,7859,7720,7860,7861,7859,7789,7862,7717,7863,7864,7865,7793,7866,7860,7867,7868,7853,7807,7865,7857,7869,7870,7871,7872,7873,7867,7874,7875,7873,7876,7877,7863,7878,7879,7880,7881,7882,7874,7883,7884,7885,7886,7880,7869,7887,7888,7889,7890,7885,7891,7892,7890,7893,7894,7895,7896,7891,7897,7898,7899,7871,7851,7896,7899,7900,7901,7902,7826,7903,7904,7905,7906,7900,7829,7907,7908,7909,7904,7898,7847,7910,7911,7912,7913,7889,7907,7914,7913,7915,7916,7893,7903,7917,7916,7918,7919,7920,7921,7921,7906,7922,7923,7924,7834,7925,7901,7924,7926,7927,7822,7928,7894,7920,7929,7930,7925,7931,7932,7930,7933,7934,7935,7936,7886,7895,7932,7937,7938,7938,7872,7902,7939,7940,7806,7935,7939,7927,7941,7942,7801,7943,7944,7942,7945,7946,7797,7947,7876,7940,7944,7948,7792,7949,7881,7937,7950,7951,7947,7952,7950,7934,7953,7954,7943,7955,7956,7954,7957,7958,7959,7960,7961,7958,7962,7963,7964,7965,7966,7967,7961,7968,7969,7970,7971,7951,7956,7967,7972,7972,7973,7948,7974,7975,7976,7969,7977,7975,7978,7979,7980,7964,7978,7981,7982,7983,7984,7959,7974,7946,7985,7981,7986,7986,7987,7800,7988,7989,7990,7984,7991,7989,7992,7993,7994,7976,7995,7796,7987,7996,7997,7980,7998,7996,7991,7999,8000,8000,8001,8002,8003,8004,7556,7997,8005,7791,8006,8002,7561,7990,8006,7787,8007,8008,7608,7994,8003,8008,8009,8010,7605,8011,8012,8010,8013,3734,7602,8014,8015,8004,8012,3696,7573,8016,8017,7999,8018,3705,8014,8019,8018,7993,8020,3731,8011,8021,8022,7983,8023,3728,8019,8024,8025,7963,8026,2746,8021,8027,8028,7968,8025,2764,8029,8029,8030,7979,8022,3711,8016,8031,8032,8033,8030,3708,8034,8035,8036,8037,8028,2774,8031,8038,8039,8040,8036,2795,8041,8041,8042,8043,8032,3542,8044,8044,8045,8046,8047,3545,8048,8049,8050,8051,8052,8046,8053,8034,8047,8054,8017,3701,8055,8056,8052,8057,7998,8054,8058,8058,8059,8060,8001,8061,7568,8055,8062,8061,8015,3699,7570,8048,8063,8064,8062,3549,7474,8053,8065,8066,8059,8064,7477,8067,8068,8069,8070,8066,7480,8071,8070,7862,8005,8060,7565,8072,8073,7866,7995,8057,8071,8074,8075,8076,8073,8051,8067,8077,8078,8079,8080,8081,8074,8082,8083,8081,8084,8043,8049,8085,8084,8086,7977,8033,8056,8087,8080,7877,7973,8086,8072,8088,8089,7882,7971,8090,8087,8091,8092,8090,7966,8037,8085,8093,8094,8095,8092,8040,8082,8096,8097,8098,8089,8095,8077,8099,8100,8101,8097,8102,8103,8104,8105,8102,8094,8106,8107,8108,8109,8110,8105,8111,8112,8113,8114,8115,8100,8110,8116,8116,8117,8118,8119,8120,8121,8112,8122,8120,8123,8124,8125,8107,8123,8126,8083,8127,8128,8103,8119,8129,8078,8126,8130,8130,8131,8132,8075,8133,8134,8128,8135,8133,8050,8136,8137,8121,8138,8139,8131,8140,8141,8125,8142,8140,8135,8143,8144,8144,8145,8146,8147,8148,7410,8141,8149,8150,8151,8146,7415,8134,8151,8152,8068,8153,7484,8137,8147,8153,8065,8154,7468,8155,8156,8154,8063,3553,7472,8157,8158,8148,8156,3491,7425,8159,8160,8143,8161,3518,8157,8162,8161,8136,8045,3521,8155,8163,8164,8127,8042,3525,8162,8165,8166,8124,8164,3515,8159,8167,8168,8106,8039,2957,8163,8169,8170,8111,8168,2961,8165,8171,8172,8173,8170,2980,8174,8174,6505,8175,8166,3502,8176,8176,6507,8177,8160,3498,8178,8179,6497,8180,8142,8177,8181,8178,6511,8182,8158,3495,7422,8181,6514,8183,8145,8182,7420,8184,6556,8185,8149,8183,7418,8186,6553,8187,8138,8180,8184,8188,6570,8189,8117,8190,8186,8191,6502,8190,8122,8175,8179,8192,8193,8194,8109,8173,8191,8195,8196,8197,8114,8194,8188,8198,8199,8200,8201,8197,8202,8202,6566,8203,8204,8189,8205,8206,6653,8207,8208,8203,8209,8210,8211,8212,8213,8200,8206,8214,8213,8215,8216,8217,8218,8218,8208,8219,8220,8221,8222,8223,8204,8221,8224,8118,8225,8226,8201,8217,8227,8115,8223,8228,8227,8229,8230,8101,8231,8232,8216,8233,8234,8229,8235,8236,8234,8237,7884,8238,8239,8240,8230,8238,7879,8098,8241,8241,8242,8243,7875,8079,8244,8239,8245,8246,7870,8243,8247,8235,8220,8248,8245,8249,8250,8231,8224,8249,8242,8129,8251,8251,8252,8253,8254,8132,8255,8250,8256,8257,8258,8253,8259,8247,8258,8260,7868,8261,8262,8244,8254,8261,7864,8076,8263,8263,8264,8265,7861,8069,7306,8262,8266,8267,7858,8265,7302,8259,8268,8269,8266,8270,7299,8255,8271,8270,8264,8152,7294,8272,8273,8274,8271,8150,7291,8275,6559,8276,8273,8185,7288,8205,6562,8277,8278,8187,8275,8225,8278,8279,8252,8139,8272,8222,8280,8281,8256,8279,8282,8209,6655,8283,8280,8277,8284,8284,6659,8285,8286,8276,7271,8282,8286,8287,8268,8274,7266,8288,8289,8290,8291,8287,7264,8292,6663,8293,8289,8285,7261,8294,6645,8295,8296,8283,8292,8297,8296,8298,8299,8281,8288,8300,8301,8302,8303,8298,8304,8305,6706,8306,8301,8295,8307,8307,6702,8308,8309,8293,7247,8304,8309,8310,8311,8290,7242,8312,8311,8313,8314,8315,7239,8316,8291,8315,8317,8269,7235,8318,8317,8319,7855,8267,7231,8320,8314,8321,7844,8319,7226,8322,8323,8324,7848,8325,8320,8326,8327,8325,7852,8260,8318,8328,8299,8329,8327,8257,8316,8330,8303,8331,8323,8329,8312,8332,8333,8334,8335,8336,8330,8337,8338,8336,8339,8248,8328,8340,8339,8341,7897,8246,8326,8342,8335,8343,7908,8341,8322,8344,8345,8346,7911,8347,8342,8348,8349,8347,7888,8237,8340,8350,8351,8352,8349,8233,8337,8353,8354,8355,8345,8352,8332,8356,8357,8358,8354,8359,8360,8360,8361,8362,8333,8363,8300,8364,8365,8363,8338,8219,8297,8366,8367,8359,8351,8215,8364,8368,8369,8370,8367,8212,8371,8371,6650,8372,8365,8207,8294,8373,6710,8374,8361,8372,8305,8375,8376,8377,8357,8370,8373,8378,8379,8380,8381,8382,8375,8383,8384,8385,8386,8387,8378,8388,8389,8387,8390,8391,8392,8392,8393,8382,8394,8395,8368,8396,8394,8397,8398,8399,8366,8400,8390,8401,8402,8403,8396,8404,8386,8405,8406,8401,8407,8407,8381,8408,8409,8397,8356,8410,8409,8411,8412,8413,8353,8414,8398,8413,8415,8416,8350,8417,8415,8418,8419,8420,8348,8421,8412,8422,8423,8418,8344,8424,8425,8426,8427,8428,8421,8429,8430,8428,8431,8432,8417,8433,8402,8434,8430,8435,8414,8436,8406,8437,8425,8434,8410,8438,8439,8440,8441,8442,8436,8443,8444,8442,8445,8446,8433,8447,8445,8448,8449,8450,8429,8451,8441,8452,8453,8448,8424,8454,8455,8456,8457,8458,8451,8459,8460,8458,8461,8462,8447,8463,8464,8465,8460,8466,8443,8467,8468,8469,8455,8465,8438,8470,8471,8472,8468,8473,8474,8475,8476,8477,8471,8478,8479,8479,8480,8481,8482,8483,8383,8474,8482,8484,8439,8485,8404,8486,8487,8485,8444,8488,8400,8489,8490,8483,8487,8491,8388,8492,8493,8478,8494,8495,8489,8496,8494,8473,8464,8497,8486,8498,8499,8497,8500,8501,8502,8503,8504,8495,8499,8505,8506,8506,8507,8491,8508,8509,8510,8502,8508,8488,8511,8512,8513,8514,8515,8512,8516,8517,8518,8519,8520,8509,8515,8521,8522,8523,8524,8505,8525,8526,8519,8527,8525,8501,8528,8529,8514,8530,8528,8531,8532,8533,8534,8535,8500,8466,8536,8531,8537,8538,8536,8462,8539,8540,8541,8542,8532,8540,8543,8544,8545,8545,8546,8547,8548,8549,8550,8541,8551,8450,8552,8547,8553,8537,8511,8446,8551,8554,8555,8534,8516,8554,8546,8556,8557,8557,8558,8559,8560,8561,8562,8555,8563,8435,8564,8559,8565,8553,8564,8432,8566,8567,8568,8550,8560,8567,8569,8570,8571,8571,8572,8573,8574,8575,8240,8568,8576,8420,8577,8573,8236,8565,8578,8416,8576,8579,8232,8562,8580,8579,8572,8581,8228,8582,8583,8584,8580,8585,8226,8518,8586,8587,8558,8588,8582,8513,8589,8403,8563,8587,8590,8590,8591,8399,8578,8584,8214,8592,8593,8395,8591,8594,8210,8510,8595,8391,8589,8596,8592,8522,8597,8596,8586,8598,8599,8599,8600,8594,8583,8601,8198,8602,8603,8601,8604,8605,8195,8606,8607,8605,8608,8609,8192,8610,8608,8611,8612,8613,8108,8614,8604,8585,8615,8611,8113,8616,8617,8588,8618,8619,8614,8620,8621,8619,8622,8623,8610,8624,8625,8626,8621,8627,8606,8628,8629,8598,8617,8626,8602,8630,8631,8521,8632,8633,8628,8634,8635,8633,8636,8637,8624,8638,8632,8517,8639,8640,8616,8641,8636,8640,8642,8643,8620,8644,8645,8646,8647,8648,8641,8649,8650,8529,8651,8646,8638,8652,8653,8526,8650,8654,8630,8655,8656,8654,8645,8657,8634,8658,8659,8657,8660,2019,8661,8662,8660,8648,8663,2023,8664,8664,8665,8643,8666,2940,8667,8661,8668,8637,8665,2987,8669,8669,8670,8627,8671,2985,8672,8672,8673,8609,8674,2983,8171,8675,8674,8613,8676,2953,8169,8667,8671,8623,8677,2943,8675,8678,8677,8679,8680,2946,8681,8681,8676,8682,8683,2949,8167,8684,8683,8685,8686,2799,8038,8687,8680,8688,8689,2802,8684,8690,8691,8692,8693,2812,8687,8694,8695,8696,8697,8692,8698,8699,8666,8700,8691,2937,8678,8701,8642,8702,8695,8700,8703,8704,8647,8705,8706,8707,8701,8708,8663,8707,8709,2096,8699,8710,8709,8711,8712,2100,8690,8713,8706,8714,8715,8711,8694,8716,8717,8544,8718,8714,8719,8720,8651,8533,8717,8705,8721,8721,8639,8556,8722,8702,8723,8719,8722,8549,8724,8696,8725,8725,8726,8570,8727,8728,8729,8698,8730,8728,8731,8688,8732,8703,8622,8733,8730,8679,8734,8723,8618,8561,8726,8733,8735,8735,8615,8581,8736,8737,8099,8734,8612,8737,8738,8682,8104,8732,8738,8739,8740,8685,8093,8729,8736,8575,8741,8739,8096,8742,8741,8743,8744,8745,8088,8746,8740,8745,8747,8748,8091,8749,8747,8750,8751,8752,7965,8753,8744,8754,8755,8750,7970,8756,8757,8758,8759,8760,8753,8761,8762,8760,8763,8764,8749,8765,8731,8766,8762,8767,8746,8768,8727,8769,8757,8766,8742,8770,8724,8771,8772,8773,8768,8774,8697,8773,8775,8776,8765,8777,8772,8778,8779,8780,8756,8781,8775,8780,8782,8783,8761,8784,8785,8786,8787,8788,8781,8789,8790,8791,8792,8786,8777,8793,8718,8794,8790,8795,8770,8796,8715,8795,8785,8797,8774,8798,8712,8797,8799,2235,8800,8801,8799,8788,8802,2239,8803,8803,8804,8783,8805,2731,8806,8800,8693,8776,8804,2809,8807,8807,8689,8767,8808,2806,8809,8806,8808,8764,8810,2734,8811,8809,8686,8748,8812,2770,8035,8811,8812,8752,8813,2767,8027,8814,8813,8815,8816,2741,8024,8817,8810,8818,8819,2737,8814,8820,8805,8821,8822,2727,8817,8823,8782,8824,8825,8821,8826,8827,8802,8828,8829,2292,8820,8830,8787,8831,8832,8828,8823,8833,8792,8834,8835,8831,8836,8836,8779,8837,8838,8824,8839,8839,8759,8840,8841,8842,8843,8826,8763,8842,8844,8818,8845,8845,8751,8846,8847,8815,7960,8843,8755,8848,8849,8846,7955,8850,8851,8852,8853,8848,7952,8854,8855,8856,8851,8754,7949,8857,8858,8859,8860,8758,8854,8861,8860,8862,8863,8840,8850,8864,8865,8866,8867,8862,8868,8869,8870,8871,8865,8859,8872,8872,8873,8874,8875,8856,7936,8868,8875,8876,8877,8852,7931,8878,8879,8880,8881,8876,7928,8882,8883,8884,8879,8874,7892,8885,8886,8887,8888,8866,8878,8889,8890,8891,8886,8871,8882,8892,8893,8894,8895,8891,8896,8897,8895,8898,8899,8887,8900,8900,8901,8902,8903,8880,7917,8896,8904,8905,8901,8884,7914,8906,8423,8907,8904,8908,7910,8909,8427,8910,8893,8911,8906,8912,8431,8911,8890,8913,8914,8914,8419,8908,8883,8915,7887,8916,8577,8915,8873,8917,7883,8918,8574,8917,8855,8743,7878,8919,8569,8920,8858,8769,8918,8921,8566,8913,8870,8920,8916,8922,8552,8923,8924,8925,8921,8926,8548,8925,8927,8771,8919,8928,8543,8929,8930,8794,8926,8931,8539,8932,8933,8929,8922,8934,8461,8935,8936,8932,8937,8938,8936,8939,8940,8941,8942,8937,8449,8943,8944,8923,8912,8942,8944,8945,8946,8947,8889,8948,8949,8950,8951,8945,8892,8952,8453,8953,8949,8943,8909,8954,8457,8955,8956,8935,8952,8957,8956,8958,8959,8939,8948,8960,8959,8961,8962,8963,8964,8964,8951,8965,8966,8967,8897,8968,8946,8967,8969,8970,8885,8971,8940,8963,8972,8973,8968,8974,8975,8973,8976,8977,8978,8979,8933,8941,8975,8980,8981,8981,8924,8947,8982,8983,8869,8978,8982,8970,8984,8985,8864,8986,8987,8985,8988,8837,8861,8989,8927,8983,8987,8778,8857,8990,8930,8980,8991,8791,8989,8992,8991,8977,8993,8834,8986,8994,8995,8996,8997,8998,8992,8999,9000,9001,8995,9002,8990,9003,9004,9005,9006,9007,8999,9008,9006,9009,9010,9011,8994,9012,9013,9014,9015,9009,9016,9017,9018,9019,9013,9005,9020,9020,9021,9022,9023,9001,8979,9016,9023,9024,9025,8996,8974,9026,9027,9028,9029,9024,8971,9030,9031,9032,9027,9022,8938,9033,9034,9035,9036,9014,9026,9037,9038,9039,9034,9019,9030,9040,9041,9042,9043,9039,9044,9045,9043,9046,9047,9035,9048,9048,9049,9050,9051,9028,8960,9044,9052,9053,9049,9032,8957,9054,9055,9056,9052,9057,8954,9058,9059,9060,9041,9061,9054,9062,9063,9061,9038,9064,9065,9065,9066,9057,9031,9067,8934,9068,9069,9067,9021,9070,8931,9071,9072,9064,9018,9073,9068,9074,9075,9070,9000,9076,8928,9077,9078,9073,9004,9079,9074,9080,9081,9082,9083,9084,9077,9085,9086,9087,9088,9082,9071,9089,9090,9091,9092,9087,9062,9093,9092,9094,9095,9096,9037,9097,9098,9099,9100,9091,9058,9101,9100,9102,9103,9094,9040,9104,9103,9105,9106,9107,9045,9108,9095,9107,9109,9110,9033,9111,9112,9110,9113,9114,9012,9115,9088,9096,9112,9116,9017,9117,9083,9116,9118,9119,9003,9120,9118,9114,9121,9122,9008,9123,9124,9122,9125,9126,9127,9128,9129,9126,9130,9131,9132,9133,9134,9135,9129,9136,9137,9138,9139,9119,9124,9135,9140,9140,9141,9007,9142,9143,9144,9137,9145,9143,9146,9147,9148,9132,9146,9149,9150,9151,9152,9127,9142,9011,9153,9149,9154,9154,9155,8998,9156,9157,8833,9152,9158,9157,9159,9160,8830,9144,9161,9002,9155,9162,8789,9148,9163,9162,9158,9164,8784,9165,9166,9164,9167,2244,8801,9168,9167,9160,9169,2288,8827,9170,9171,9151,9172,2285,9168,9173,9174,9131,9175,2282,9170,9176,9177,9136,9174,2261,9178,9178,9179,9147,9171,2253,9165,9180,9181,9182,9179,2249,9183,9184,9185,9186,9177,2257,9180,9187,9188,9189,9185,2082,9190,9190,9191,9192,9181,2085,9193,9193,9194,9195,9196,2089,8710,9197,9198,9199,9200,9195,8713,9183,9196,9201,9166,2247,8798,9202,9200,9203,9163,9201,8796,9204,9205,9076,9161,9203,8793,9206,9207,9208,9205,9199,8716,9209,9210,9211,9212,9213,9206,9214,9215,9213,9216,9192,9197,9217,9216,9218,9145,9182,9202,9219,9212,9079,9141,9218,9204,9220,9221,9084,9139,9222,9219,9223,9224,9222,9134,9186,9217,9225,9226,9227,9224,9189,9214,9228,9229,9230,9221,9227,9209,9231,9232,9233,9229,9234,9235,9236,9237,9234,9226,9238,9239,9240,9241,9242,9237,9243,9244,9245,9246,9247,9232,9242,9248,9248,9249,9250,9251,9252,9253,9244,9254,9252,9255,9256,9257,9239,9255,9258,9215,9259,9260,9235,9251,9261,9210,9258,9262,9262,9263,9264,9207,9265,8720,9260,9266,9265,9198,9267,8704,9253,9268,9269,9263,9270,8649,9257,9271,9270,9266,9272,8644,9273,9274,9272,9275,2028,8662,9276,9275,9267,9194,2093,8708,9277,9278,9259,9191,2057,9276,9279,9280,9256,9278,2054,9273,9281,9282,9238,9188,2062,9277,9283,9284,9243,9282,2051,9279,9285,9286,9287,9284,2037,9288,9288,9289,9290,9280,2033,9291,9291,9292,9293,9274,2031,8658,9294,9295,9296,9271,9293,8655,9297,9298,9299,9268,9296,8652,9300,9301,9302,9249,9303,9297,9304,9305,9303,9254,9290,9294,9306,9307,9308,9241,9287,9304,9309,9310,9311,9246,9308,9300,9312,9313,9314,9315,9311,9316,9316,9317,9318,9319,9302,9320,9321,9322,9323,9324,9318,9325,9326,9327,9328,9329,9314,9321,9330,9329,9331,9332,9333,9334,9334,9324,9335,9336,9337,9338,9339,9319,9337,9340,9250,9341,9342,9315,9333,9343,9247,9339,9344,9343,9345,9346,9233,9347,9347,9340,9348,9349,9261,9350,9351,9332,9352,9353,9345,9354,9354,9336,9355,9356,9348,9357,9358,9356,9359,9072,9360,9361,9362,9353,9363,9086,9364,9358,9365,9346,9364,9081,9230,9366,9366,9349,9360,9078,9211,9367,9367,9368,9369,9075,9208,8542,9361,9370,9371,9069,9369,8538,9357,9372,9373,9370,9374,8535,9350,9375,9374,9368,9264,8530,9341,9376,9377,9375,9269,8527,9320,9378,9379,9376,9299,8523,9325,9380,9381,9382,9379,8503,9338,9382,9383,9372,9377,8498,9384,9385,9386,9387,9383,8496,9388,9389,9390,9385,9381,8492,9391,9392,9393,9394,9390,8475,9395,9394,9396,9397,9386,8470,9398,9397,9399,9400,9401,8467,9402,9403,9404,9405,9406,9398,9407,9387,9401,9408,9373,8463,9409,9410,9406,9411,9355,9407,9412,9411,9413,9063,9359,9414,9414,9408,9415,9066,9371,8459,9416,9400,9417,9055,9415,8454,9418,9405,9419,9059,9413,9416,9420,9421,9422,9098,9423,9418,9424,9425,9423,9090,9363,9412,9426,9427,9428,9425,9352,9409,9429,9430,9431,9421,9428,9402,9432,9433,9434,9430,9435,9436,9436,9437,9438,9403,9439,9395,9440,9441,9439,9410,9335,9384,9442,9443,9435,9427,9331,9440,9444,9445,9446,9443,9328,9447,9447,9448,9449,9441,9323,9388,9450,9451,9452,9437,9449,9391,9453,9454,9455,9433,9446,9450,9456,9457,9458,9454,9459,9460,9461,9462,9463,9457,9464,9465,9465,9466,9467,9468,9469,9470,9460,9468,9471,9451,9472,9473,9474,9475,9472,9448,9476,9477,9478,9479,9469,9475,9480,9481,9482,9483,9464,9484,9485,9478,9486,9484,9459,9445,9487,9474,9488,9489,9487,9327,9490,9491,9491,9492,9476,9322,9493,9494,9495,9496,9493,9317,9497,9498,9499,9500,9490,9313,9501,9495,9502,9503,9504,9500,9505,9506,9506,9507,9508,9496,9509,9510,9511,9512,9480,9492,9508,9513,9514,9515,9485,9489,9504,9511,9516,9517,9518,9515,9519,9520,9520,9521,9522,9512,9523,9524,9525,9526,9523,9507,9527,9528,9529,9530,9519,9503,9531,9525,9532,9533,9534,9530,9535,9536,9536,9537,9538,9526,9539,9540,9541,9542,9543,9521,9538,9544,9545,9546,9547,9517,9534,9541,9548,9549,9550,9551,9547,9552,9553,9554,9555,9556,9550,9557,9558,9556,9559,9462,9560,9561,9562,9551,9560,9483,9518,9563,9563,9564,9565,9479,9522,9566,9561,9567,9568,9466,9565,9569,9557,9570,9571,9567,9572,9573,9552,9574,9572,9564,9543,9575,9575,9576,9577,9578,9579,9580,9573,9581,9582,9583,9577,9584,9569,9583,9585,9586,9587,9588,9566,9578,9587,9589,9590,9591,9591,9592,9593,9594,9595,9596,9588,9597,9598,9599,9593,9600,9584,9601,9602,9597,9603,9604,9580,9605,9603,9592,9606,9607,9608,9609,9606,9610,9611,9612,9544,9613,9579,9614,9615,9608,9540,9616,9615,9617,9618,9619,9619,9620,9611,9621,9622,9623,9624,9621,9625,9626,9627,9628,9528,9617,9629,9630,9631,9624,9524,9614,9590,9632,9629,9633,9633,9610,9595,9634,9625,9635,9636,9634,9637,9638,9639,9640,9513,9632,9641,9642,9643,9636,9510,9630,9643,9644,9645,9646,9646,9626,9639,9647,9648,9649,9650,9647,9651,8524,9652,9653,9498,9644,9654,9378,9655,9650,9494,9642,9656,9380,9654,9657,9657,9638,9658,8504,9651,9659,9660,9661,9662,8493,9658,9663,9664,9594,9665,9661,9637,9666,9481,9589,9667,9668,9641,9664,9477,9668,9669,9389,9656,9660,9473,9670,9671,9392,9669,9672,9470,9586,9673,9670,9667,9674,9674,9599,9675,9676,9665,9677,9672,9676,9678,8476,9662,9679,9679,9680,9681,8480,9682,9683,9683,9684,9685,8384,9686,9687,9688,9689,9686,8389,9690,9691,9663,9692,9682,8490,9693,9688,9666,9694,9695,9692,9696,9697,9697,9698,9699,9689,9700,9701,9702,9703,9704,9684,9699,9705,9677,9706,9707,9680,9695,9702,9600,9708,9709,9706,9710,9711,9596,9712,9710,9694,9713,9714,9607,9715,9716,9712,9717,9718,9604,9719,9720,9708,9716,9721,9721,9722,9723,9724,9725,9726,9718,9727,9725,9728,9729,9730,9714,9728,9731,9698,9732,9733,9711,9724,9734,9703,9731,9735,9735,9736,9737,9738,9739,9740,9733,9741,9739,9742,9743,9744,9730,9745,9746,9741,9747,9748,9726,9749,9750,9736,9746,9751,9751,9752,9753,9754,9755,6723,9748,9756,9755,9757,9758,6611,9744,9757,9759,9760,9761,6615,9740,9754,9762,9763,9759,6714,9764,9763,9765,9766,9767,6711,9768,9766,9769,8376,9770,6707,9687,9771,9772,8379,9773,9768,9705,9738,9774,9771,9775,9764,9701,9742,9775,9776,9777,9778,9691,9776,9773,8393,9779,9780,9780,9781,9770,8369,9782,6648,9778,9760,9767,9781,9783,6636,9784,9785,9783,9786,9787,6629,9788,9786,9782,8211,9789,6652,9790,9791,9779,8593,9792,9788,9793,9794,9777,9791,9795,9784,9796,9797,9795,9798,9799,9800,9801,9798,9792,8600,9802,9803,9803,9804,9789,8199,9805,6563,9800,9806,9787,9804,9807,6574,9808,9809,9810,9806,9811,6577,9812,9813,9761,9785,9810,6627,9814,9815,9758,9813,9816,6597,9817,9818,9816,9809,9819,6595,9820,9821,9822,9823,9824,9817,9825,9826,9747,9827,9822,9814,9828,9827,9743,9794,9829,9812,9830,9823,9829,9797,9831,9808,9832,9833,9834,9835,9836,9830,9837,9838,9732,9839,9834,9828,9840,9841,9729,9838,9842,9825,9843,9844,9842,9833,9845,9820,9623,9846,9847,9848,9849,9843,9612,9850,9717,9851,9847,9840,9635,9851,9713,9852,9853,9837,9628,9848,9853,9854,9855,9832,9649,9854,9856,9857,9858,9859,9859,9835,9860,9861,9862,9796,9863,9839,9700,9864,9860,9793,9640,9852,9696,9865,9856,9863,9659,9865,9693,8507,9866,9867,9867,9864,9690,8595,9868,9790,9869,9861,9868,8597,9870,9801,9653,9857,9866,8520,9871,9869,9872,9873,9871,8631,9874,9875,9875,9876,9870,8629,9877,9878,9879,9880,9877,8625,9881,9882,9883,9884,9874,8635,9885,9879,9886,9887,9888,9884,9889,9890,9890,9891,9892,9880,9893,9894,9895,9896,9862,9876,9892,9897,9898,9899,9858,9873,9888,9895,9900,9901,9855,9899,9902,9903,9904,9905,9902,9887,9906,9907,9908,9909,9910,9905,9911,9912,9913,9914,9849,9901,9910,9915,9915,9916,9845,9917,9918,9919,9912,9920,9918,9921,9922,9923,9907,9921,9924,9891,9925,9926,9903,9917,9836,9896,9924,9927,9927,9928,9831,9929,9930,9931,9926,9932,9930,9933,9934,9935,9923,9936,9937,9932,9938,9939,9919,9940,9824,9928,9937,9941,9941,9942,9819,9943,9944,6589,9939,9945,9944,9946,9947,6464,9935,9946,9948,9949,9950,6467,9931,9943,9811,9951,9948,6587,9952,9951,9807,9953,9954,6571,9955,9949,9954,9956,9957,6488,9958,9953,9805,8196,9959,6568,9960,9956,9959,8193,9961,6500,9882,9962,9963,8607,9964,9960,9878,9965,9802,8603,9963,9958,9897,9929,9799,9965,9966,9952,9894,9933,9966,9962,9967,9955,9968,9969,9967,9970,1218,9971,9972,9970,9964,8673,1215,9973,9973,9974,9961,8172,1210,6504,9971,9975,9957,9974,1205,6481,9976,9977,9950,9975,1201,6479,9978,9979,9947,9977,1190,6453,9980,9981,9938,9982,1188,9978,9983,9982,9934,9969,1177,9976,9984,9985,9925,9986,1174,9983,9987,9988,9922,9985,1164,9980,9989,9990,9911,9991,1162,9987,9992,9991,9906,9993,1153,9984,9994,9993,9889,9995,1151,9996,9996,9986,9893,9997,1148,9968,9998,9997,9881,8670,1126,9972,9999,9995,9885,8668,1121,9998,10000,10001,10002,8659,1117,9999,10003,10004,10005,8656,10002,9883,10006,10007,10008,10004,10009,9886,10010,10011,10009,10001,1108,9994,10012,10013,10014,10015,1106,10010,10016,10017,10018,10019,10014,10006,10020,10019,10021,9295,10022,10003,10023,10015,10022,9292,1097,10000,10024,10025,10026,9289,1093,10023,10027,10028,10029,9305,10026,10020,10030,10031,10032,10025,1090,10012,10033,10034,10035,10028,10032,10016,10036,10037,10038,10039,10040,10033,10041,10042,10040,10043,1088,10030,10044,10043,10045,9286,1084,10024,10046,10039,10047,9307,10045,10027,10048,10049,9501,9310,10047,10050,10051,10052,9505,10049,10038,10053,10053,10054,9509,10055,10035,10056,10050,10055,9497,9301,10029,10057,10057,10058,9655,9298,10021,10059,10059,10060,9652,8653,10005,9872,10061,10062,9648,10060,10008,9898,10056,10063,9645,10058,10018,10061,10064,10065,9631,10063,10066,10067,10067,10068,9627,10062,10069,9900,10070,10071,9622,10068,10072,9913,10073,10074,9618,10065,10075,10070,10076,10077,9539,10078,10079,10073,10080,10081,10079,10082,10083,10084,10085,10078,9527,10054,10086,10064,10087,10082,10086,10034,10088,10089,10090,10091,10092,10037,10093,10087,10094,10095,9531,10052,10092,10085,10096,10097,9535,10095,10098,10076,10099,10100,10098,10091,10101,10080,10102,10103,10101,10104,942,10105,10106,10104,10093,10042,938,10107,10107,10108,10088,10031,933,10109,10105,10110,10083,10108,929,10111,10111,10112,10113,10114,927,10115,10084,10116,10075,10117,10113,10118,10089,10117,10066,10017,10119,10120,10109,10114,10119,10013,916,10121,10121,10122,10123,10011,911,9992,10120,10124,10069,10007,10123,9904,10118,10125,10072,10124,10126,9908,10115,10127,10126,10122,897,9989,10128,10129,10130,10127,894,10131,10132,10133,10134,10125,10130,10135,10136,10137,10138,10133,10139,10140,10141,10142,10139,10129,888,10143,10144,10145,10146,10147,886,10141,10148,10149,10150,10151,10146,10136,10152,10151,10153,10116,10154,10132,10155,10147,10154,10112,877,10128,10156,10157,10158,10110,873,10155,10159,10160,10161,10081,10158,10152,10162,10163,10164,10157,870,10144,10165,10166,10167,10160,10164,10148,10168,10169,10170,10171,10172,10165,10173,10174,10172,10175,868,10162,10176,10175,10177,10103,864,10156,10178,10171,10179,10100,10177,10159,10180,10181,10182,10097,10179,10183,10184,10185,10186,10181,10170,10187,10187,10188,10189,10190,10167,10191,10183,10190,10192,10077,10161,10193,10193,10194,10195,10074,10153,10196,10196,10197,10198,10071,10134,10199,10200,10201,10202,10197,10138,10203,10191,10204,10205,10194,10150,10200,10206,10207,10208,10204,10209,10210,10210,10211,10212,10201,10213,10214,10215,10216,10217,10211,10218,10219,10220,10221,10222,10207,10223,10215,10224,10225,10226,10227,10228,10220,10229,10230,10228,10231,10232,10233,10234,10227,10235,10188,10236,10206,10237,10231,10236,10166,10238,10239,10240,10241,10242,10169,10243,10237,10244,10245,10246,10185,10242,10234,10247,10248,10249,10245,10250,10224,10251,10252,10250,10241,10253,10229,10254,10255,10253,10256,736,10257,10258,10256,10243,10174,731,10259,10259,10260,10238,10163,726,10261,10257,10262,10232,10260,722,10263,10263,10264,10265,10266,719,10267,10233,10268,10223,10269,10265,10270,10239,10269,10209,10149,10271,10272,10261,10266,10271,10145,706,10273,10273,10274,10275,10142,702,10276,10272,10277,10213,10137,10275,10278,10270,10279,10218,10277,10280,10281,10267,10282,10280,10274,690,10283,10283,10284,10285,10286,687,10287,10287,10288,10289,10290,684,10291,10292,10293,10294,10295,10289,10296,10281,10297,10298,10299,10285,10292,10278,10299,10300,10301,10302,10303,10303,10295,10304,10305,10306,10307,10308,10290,10306,10309,670,10310,10276,10286,10302,10311,666,10308,10143,10311,10312,10313,663,10314,10140,10301,10315,10316,10312,10317,10135,10316,10318,9909,10319,10320,10131,10313,10319,9990,652,10321,10321,10322,10323,9988,648,10324,10320,10325,10326,9920,10323,10327,10317,10305,10328,10325,10329,10330,10314,10309,10329,10322,638,10331,10331,10332,10333,10334,635,10335,10330,10336,10337,10338,10333,10339,10327,10338,10340,9936,10341,10342,10324,10334,10341,9981,626,10343,10343,10344,10345,9979,621,6451,10342,10346,10347,9945,10345,6443,10339,10348,10349,10346,10350,6447,10335,10351,10350,10344,609,6449,10352,10353,10354,10351,605,6406,10355,10356,10357,10353,602,6409,10291,10358,10359,10360,599,10355,10310,10360,10361,10332,594,10352,10307,10362,10363,10336,10361,10364,10296,10365,10366,10362,10359,10367,10367,10368,10369,10370,10357,6412,10364,10370,10371,10348,10354,6401,10372,10373,10374,10375,10371,6427,10376,10377,10378,10373,10369,6415,10379,10380,10381,10382,10366,10376,10383,10382,10384,10385,10363,10372,10386,10387,10388,10389,10384,10390,10391,10392,10393,10387,10381,10394,10394,10395,10396,10397,10378,6419,10390,10397,10398,10399,10374,6423,10400,10399,10401,10402,10403,6433,10404,10375,10403,10405,10349,6429,10406,10405,10407,9942,10347,6440,10408,10402,10409,9818,10407,6436,10410,10411,10412,9821,10413,10408,10414,10415,10413,9940,10340,10406,10416,10385,10417,10415,10337,10404,10418,10389,10419,10411,10417,10400,10420,10421,10422,10423,10424,10418,10425,10426,10424,10427,10328,10416,10428,10427,10429,9916,10326,10414,10430,10423,10431,9844,10429,10410,10432,10433,10434,9846,10435,10430,10199,10436,10435,9914,10318,10428,10203,10437,10438,10436,10315,10425,10439,10440,10441,10433,10438,10420,10442,10443,10444,10440,10445,10446,10446,10447,10448,10421,10449,10386,10450,10451,10449,10426,10304,10383,10214,10452,10445,10437,10300,10450,10219,10453,10454,10452,10298,10455,10455,10456,10457,10451,10294,10379,10458,10459,10460,10447,10457,10391,10461,10462,10463,10443,10454,10458,10464,10465,10466,10467,10463,10468,10468,10469,10470,10471,10460,10472,10473,10474,10475,10476,10470,10477,10478,10479,10480,10481,10466,10473,10482,10481,10483,10484,10485,10486,10486,10476,10487,10488,10489,10490,10491,10471,10489,10492,10448,10493,10494,10467,10485,10495,10444,10491,10496,10495,10497,10498,10441,10499,10500,10484,10501,10502,10497,10503,10504,10502,10505,9715,10506,10507,10508,10498,10506,9850,10434,10509,10509,10510,10511,9841,10431,10512,10507,10513,10514,9727,10511,10515,10503,10488,10516,10513,10517,10518,10499,10492,10517,10510,10422,10519,10519,10520,10521,10522,10419,10523,10518,10524,10525,10526,10521,10527,10515,10526,10528,9745,10529,10530,10512,10522,10529,9826,10412,10531,10531,10532,10533,9815,10409,6758,10530,10534,10535,9756,10533,6756,10527,10536,10537,10534,10538,6752,10523,10539,10538,10532,10401,6766,10540,10541,10542,10539,10398,6768,10543,10544,10545,10536,10542,6796,10546,10547,10548,10541,10396,6779,10549,10550,10551,10544,10548,6782,10477,10552,10553,10554,10555,10549,10472,10556,10555,10557,10393,10546,10493,10557,10558,10520,10388,10540,10490,10554,10559,10524,10558,10543,10560,10561,10562,10563,10559,10564,10565,10566,10567,10561,10553,10568,10568,10569,10570,10571,10551,6787,10564,10571,10572,10573,10545,6792,10574,10573,10575,10576,10537,6731,10577,10576,10578,9752,10535,6726,10579,10580,10581,9749,10528,10577,10582,10563,10583,10580,10525,10574,10584,10585,10586,10587,10516,10582,10588,10587,10589,9722,10514,10579,10590,10591,10592,9719,10505,10588,10593,10594,10595,10591,10501,10584,10596,10597,10598,10594,10483,10599,10599,10600,10601,10585,10487,10560,10602,10603,10604,10600,10475,10565,10605,10606,10607,10597,10480,10602,10608,10609,10610,10611,10612,10605,10613,10611,10614,10615,10616,10596,10617,10618,10619,10620,10621,10613,10622,10623,10624,10618,10625,10608,10626,10627,10625,10628,10629,10630,10631,10628,10621,10632,10633,10634,10634,10635,10616,10636,10637,10482,10630,10638,10612,10635,10639,10478,10640,10641,10639,10642,10643,10464,10644,10645,10629,10646,10647,10640,10648,10649,10647,10650,10222,10651,10651,10652,10643,10653,10217,10461,10654,10653,10655,10656,10212,10442,10657,10650,10658,10659,10208,10654,10660,10646,10633,10661,10658,10662,10662,10642,10637,10663,10655,10494,10664,10663,10665,10666,10667,10496,10668,10661,10669,10670,10671,10664,10672,10659,10671,10673,10205,10674,10674,10656,10667,10675,10202,10439,10676,10675,10677,9620,10198,10432,10678,10673,10679,9616,10195,10676,10680,10670,10681,9613,10679,10682,10682,10666,10683,9609,10677,10508,10684,10685,10686,9605,10683,10504,10687,10688,10689,9601,10686,10590,10690,10615,10691,10688,10692,10593,10693,10636,10692,10685,10665,10500,10694,10632,10695,10696,10669,10693,10697,10620,10698,10699,10695,10690,10700,10699,10701,9581,10702,10687,10703,10696,10702,9576,10681,10684,10704,10705,10706,9574,10707,10703,10708,10709,10710,9570,10706,10700,10711,10712,10713,10709,10714,10697,10715,10716,10714,10705,10717,10694,10718,10719,10720,10721,10722,10715,10723,10724,10725,10726,10720,10711,10727,10726,10728,9554,10729,10708,10730,10721,10729,9549,10731,10704,10732,10733,10731,9546,10734,10735,10735,10736,10707,9542,10737,10680,10738,10739,10737,9537,10192,10678,10740,10741,10734,9533,10182,10738,10742,10743,10744,10741,10186,10745,10745,10746,10747,10739,10189,10672,10748,10749,10717,10736,10747,10668,10750,10751,10722,10733,10744,10748,10752,10753,10754,10751,10755,10756,10756,10757,10758,10749,10759,10660,10760,10761,10759,10746,10235,10657,10762,10763,10755,10743,10246,10760,10764,10765,10766,10763,10249,10767,10767,10768,10769,10761,10226,10648,10770,10771,10772,10757,10769,10644,10773,10774,10775,10753,10766,10770,10776,10777,10778,10779,10775,10780,10781,10779,10782,10719,10754,10783,10783,10784,10785,10716,10758,10631,10780,10786,10787,10784,10772,10626,10788,10789,10790,10791,10787,10622,10792,10791,10793,10712,10785,10617,10794,10795,10796,10724,10782,10792,10797,10798,10799,10795,10778,10788}; + +//d_F_g2l size 10800: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_F_g2l[10800] = +{-1,-2,0,1,-3,2,-4,3,4,-5,5,6,7,8,-6,9,-7,10,-8,11,12,-9,13,14,15,16,17,18,19,-10,20,21,22,-11,-12,23,-13,-14,24,25,26,-15,27,28,29,30,-16,31,32,33,-17,-18,34,35,-19,36,37,38,39,40,41,42,43,44,45,46,-20,47,-21,48,49,50,51,52,53,54,55,56,57,58,59,-22,60,61,-23,62,63,64,65,66,67,68,69,70,71,72,73,-24,74,75,-25,76,77,78,79,-26,80,81,-27,82,-28,83,-29,84,-30,85,86,87,88,89,-31,90,91,92,-32,93,94,95,96,97,98,99,100,101,102,-33,103,104,105,-34,106,107,108,109,110,111,112,113,114,115,116,-35,117,118,119,-36,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,-37,167,168,169,-38,170,171,-39,172,173,-40,174,175,176,-41,177,178,179,180,181,182,183,184,-42,185,-43,186,-44,187,-45,188,189,-46,190,-47,-48,191,-49,192,193,-50,194,-51,195,196,-52,197,198,-53,199,200,201,-54,202,203,204,205,206,207,208,209,210,211,212,213,-55,214,215,-56,216,217,-57,218,219,220,221,222,223,224,225,226,-58,227,228,229,230,-59,231,232,233,234,235,236,237,238,-60,239,240,241,242,-61,243,244,245,246,247,248,249,250,251,252,-62,253,254,255,256,-63,257,258,259,260,261,262,263,264,265,266,-64,267,268,269,270,-65,271,272,-66,273,-67,274,-68,275,276,-69,277,-70,278,279,280,-71,281,282,-72,283,284,285,286,287,288,289,290,291,292,293,-73,294,295,296,-74,297,298,299,300,301,302,303,304,305,306,307,-75,308,309,-76,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,-77,378,379,-78,380,381,-79,382,-80,383,384,-81,385,386,387,-82,388,389,390,391,-83,392,393,394,395,-84,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,-85,473,474,-86,475,476,477,478,479,480,-87,481,482,-88,483,484,485,486,487,488,489,490,491,492,493,-89,494,495,496,-90,497,498,499,500,501,502,503,504,505,506,507,-91,508,509,-92,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,-93,585,586,-94,587,588,-95,589,590,-96,591,592,-97,593,594,595,596,-98,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,-99,616,617,618,-100,619,620,-101,621,622,623,624,625,626,627,-102,628,629,630,631,-103,-104,632,633,-105,-106,634,635,636,-107,637,638,639,640,641,642,-108,643,644,-109,645,646,647,648,649,650,651,-110,652,653,654,-111,-112,655,-113,-114,656,657,-115,658,659,660,661,662,-116,663,-117,664,665,666,-118,667,668,669,-119,670,-120,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,-121,710,711,-122,712,713,-123,714,715,716,717,-124,718,719,720,721,722,723,724,725,726,727,728,729,730,731,-125,732,733,-126,734,735,-127,736,737,738,739,-128,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,-129,808,809,810,811,-130,812,813,-131,814,815,816,-132,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,-133,832,833,834,-134,835,-135,836,837,838,-136,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,-137,912,913,914,-138,915,916,917,-139,918,919,920,921,-140,922,923,924,925,926,927,928,929,930,931,932,933,934,935,-141,936,937,-142,938,939,-143,940,941,942,943,-144,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,-145,1307,1308,1309,-146,1310,1311,1312,-147,1313,1314,-148,1315,1316,1317,1318,-149,1319,1320,1321,1322,1323,1324,1325,1326,-150,1327,1328,1329,1330,-151,1331,1332,1333,1334,1335,-152,1336,1337,1338,1339,-153,1340,1341,1342,1343,1344,1345,-154,1346,1347,1348,-155,1349,1350,1351,1352,1353,1354,1355,-156,1356,1357,1358,-157,1359,1360,1361,-158,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,-159,1374,1375,-160,1376,1377,1378,1379,-161,1380,1381,1382,-162,1383,1384,1385,1386,-163,1387,1388,1389,-164,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,-165,1453,1454,-166,1455,1456,1457,1458,1459,1460,-167,1461,1462,-168,1463,1464,1465,1466,1467,1468,1469,-169,1470,1471,1472,-170,1473,1474,1475,-171,1476,1477,1478,1479,-172,1480,1481,-173,-174,1482,-175,-176,1483,-177,1484,1485,1486,1487,1488,1489,1490,-178,1491,-179,1492,1493,1494,1495,1496,1497,1498,-180,1499,-181,1500,1501,1502,1503,1504,1505,1506,1507,1508,-182,1509,-183,1510,1511,1512,1513,1514,1515,1516,1517,-184,1518,1519,-185,1520,1521,1522,1523,-186,1524,1525,1526,1527,1528,1529,1530,1531,1532,-187,1533,-188,-189,1534,-190,-191,1535,-192,-193,1536,1537,-194,1538,1539,1540,-195,1541,1542,1543,1544,1545,-196,1546,1547,-197,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,-198,1558,-199,1559,-200,-201,1560,1561,-202,1562,-203,1563,1564,1565,-204,1566,1567,1568,1569,-205,1570,-206,1571,1572,1573,1574,-207,1575,1576,1577,1578,1579,1580,1581,1582,-208,1583,1584,1585,1586,-209,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,-210,1597,1598,1599,1600,-211,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,-212,1611,1612,1613,1614,-213,1615,1616,1617,-214,1618,1619,1620,-215,1621,-216,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,-217,1702,1703,1704,1705,-218,1706,1707,-219,1708,1709,-220,1710,1711,-221,1712,1713,1714,1715,1716,1717,1718,1719,1720,-222,1721,-223,1722,1723,1724,1725,1726,-224,1727,-225,1728,1729,1730,-226,1731,1732,1733,-227,1734,1735,1736,1737,-228,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,-229,1808,1809,1810,-230,1811,1812,1813,1814,1815,1816,-231,1817,1818,-232,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,-233,1829,1830,1831,-234,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,-235,1843,1844,1845,-236,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,-237,1914,1915,-238,1916,-239,1917,1918,-240,1919,-241,1920,1921,1922,1923,-242,1924,1925,1926,-243,1927,1928,1929,1930,-244,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,-245,2012,2013,2014,-246,2015,2016,2017,-247,2018,2019,2020,-248,2021,2022,2023,2024,2025,-249,2026,2027,-250,2028,-251,2029,-252,2030,-253,2031,2032,-254,2033,2034,-255,2035,2036,2037,-256,2038,2039,2040,-257,2041,2042,-258,2043,2044,-259,2045,2046,-260,2047,2048,2049,-261,2050,2051,2052,-262,2053,2054,2055,-263,2056,2057,-264,-265,-266,2058,-267,-268,2059,-269,2060,-270,2061,2062,-271,2063,2064,2065,2066,2067,2068,2069,-272,2070,2071,2072,2073,-273,2074,2075,2076,2077,2078,2079,-274,2080,2081,2082,-275,-276,2083,-277,2084,-278,2085,2086,-279,2087,2088,2089,2090,-280,2091,2092,2093,2094,2095,2096,2097,2098,-281,2099,2100,-282,-283,2101,-284,2102,-285,-286,-287,2103,-288,-289,2104,-290,2105,2106,-291,2107,2108,2109,2110,-292,2111,-293,2112,2113,-294,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,-295,2146,-296,2147,2148,-297,2149,2150,-298,2151,2152,2153,-299,-300,2154,2155,-301,-302,2156,-303,2157,2158,-304,2159,2160,2161,2162,-305,2163,2164,2165,2166,2167,2168,2169,-306,2170,-307,2171,2172,2173,2174,-308,2175,2176,2177,-309,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,-310,2190,2191,2192,2193,-311,2194,2195,2196,2197,2198,2199,2200,2201,2202,-312,2203,2204,-313,2205,2206,2207,2208,2209,2210,-314,2211,2212,2213,2214,2215,2216,2217,2218,-315,2219,2220,-316,-317,2221,2222,-318,-319,2223,-320,2224,2225,-321,2226,2227,2228,-322,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,-323,2284,2285,-324,2286,2287,2288,-325,2289,2290,-326,2291,2292,2293,-327,-328,2294,2295,-329,-330,2296,-331,2297,2298,-332,2299,2300,2301,2302,-333,2303,2304,2305,2306,2307,2308,2309,-334,2310,2311,-335,2312,2313,2314,2315,2316,2317,2318,-336,2319,2320,2321,2322,-337,2323,2324,2325,2326,-338,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,-339,2346,2347,-340,2348,2349,2350,-341,2351,2352,2353,2354,2355,2356,2357,-342,2358,2359,-343,2360,2361,2362,2363,2364,2365,2366,2367,-344,2368,2369,2370,-345,2371,2372,2373,2374,2375,2376,2377,2378,2379,-346,2380,2381,-347,2382,2383,2384,2385,2386,2387,2388,2389,2390,-348,2391,2392,2393,-349,2394,2395,2396,2397,-350,2398,2399,2400,2401,-351,2402,2403,-352,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2601,2602,2603,2604,2605,2606,2607,2608,2609,2610,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2729,2730,2731,2732,2733,2734,2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,-353,2759,2760,-354,2761,2762,-355,2763,-356,2764,2765,-357,2766,2767,2768,2769,2770,-358,2771,2772,2773,-359,2774,2775,2776,2777,2778,-360,2779,2780,2781,2782,-361,2783,2784,2785,2786,2787,2788,-362,2789,2790,2791,-363,2792,2793,2794,2795,2796,2797,2798,-364,2799,2800,2801,2802,-365,2803,2804,2805,-366,2806,2807,2808,2809,2810,2811,2812,2813,-367,2814,-368,2815,2816,2817,2818,-369,2819,2820,2821,2822,-370,2823,2824,2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,2841,-371,2842,2843,-372,2844,2845,-373,2846,2847,2848,2849,2850,2851,2852,2853,2854,-374,2855,2856,2857,2858,-375,2859,2860,2861,2862,2863,2864,2865,2866,-376,2867,2868,2869,2870,-377,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,-378,2881,2882,2883,2884,-379,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,-380,2895,2896,2897,2898,-381,2899,2900,2901,2902,-382,2903,2904,2905,2906,-383,2907,-384,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,2931,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2943,2944,2945,2946,2947,2948,2949,2950,2951,2952,2953,2954,2955,2956,2957,2958,2959,2960,2961,2962,2963,2964,2965,2966,2967,2968,2969,2970,2971,2972,2973,2974,2975,2976,2977,2978,2979,2980,2981,2982,2983,2984,2985,2986,2987,2988,2989,2990,2991,2992,2993,2994,2995,2996,2997,2998,2999,3000,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,3071,3072,3073,3074,3075,3076,3077,3078,3079,3080,3081,3082,3083,3084,3085,3086,3087,3088,3089,3090,3091,3092,3093,3094,3095,3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,3109,3110,3111,3112,3113,3114,3115,3116,3117,3118,3119,3120,3121,3122,3123,3124,3125,3126,3127,3128,3129,3130,3131,3132,3133,3134,3135,3136,3137,3138,3139,3140,3141,3142,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3167,3168,3169,3170,3171,3172,3173,3174,3175,3176,3177,3178,3179,3180,3181,3182,3183,3184,3185,3186,3187,3188,3189,3190,3191,3192,3193,3194,3195,3196,3197,3198,3199,3200,3201,3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3239,3240,3241,3242,3243,3244,3245,3246,3247,3248,3249,3250,3251,3252,3253,3254,3255,3256,3257,3258,3259,3260,3261,3262,3263,3264,3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277,3278,3279,3280,3281,3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,3296,3297,3298,3299,3300,3301,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,3312,3313,3314,3315,3316,3317,3318,3319,3320,3321,3322,3323,3324,3325,3326,3327,3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,-385,3338,3339,3340,-386,3341,3342,-387,3343,3344,-388,3345,3346,-389,3347,3348,3349,-390,3350,3351,3352,-391,3353,3354,-392,3355,3356,-393,3357,3358,-394,3359,3360,3361,-395,3362,3363,3364,-396,3365,3366,3367,-397,3368,3369,-398,-399,3370,-400,3371,3372,-401,3373,3374,3375,3376,3377,3378,3379,3380,3381,-402,3382,3383,3384,3385,-403,3386,3387,3388,3389,3390,3391,3392,3393,3394,-404,3395,3396,-405,3397,3398,3399,3400,3401,3402,-406,3403,3404,3405,3406,3407,3408,3409,3410,-407,3411,3412,-408,-409,3413,3414,-410,-411,3415,-412,3416,-413,3417,3418,-414,3419,3420,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431,3432,3433,3434,3435,3436,3437,3438,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,-415,3458,-416,3459,3460,-417,3461,3462,-418,3463,3464,3465,-419,-420,3466,3467,-421,-422,3468,-423,3469,3470,-424,3471,3472,3473,3474,-425,3475,3476,3477,3478,3479,3480,3481,-426,3482,-427,3483,3484,3485,3486,-428,3487,3488,3489,-429,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,-430,3502,3503,3504,3505,-431,3506,3507,3508,3509,3510,3511,3512,3513,3514,-432,3515,3516,-433,3517,3518,3519,3520,3521,3522,-434,3523,3524,3525,3526,3527,3528,3529,3530,-435,3531,3532,-436,-437,3533,3534,-438,-439,3535,-440,3536,3537,-441,3538,3539,3540,-442,3541,3542,3543,3544,3545,3546,3547,3548,3549,3550,3551,3552,3553,3554,3555,3556,3557,3558,3559,3560,3561,3562,3563,-443,3564,3565,3566,-444,3567,3568,3569,-445,3570,3571,3572,-446,3573,3574,-447,-448,3575,-449,-450,3576,-451,-452,-453,3577,-454,-455,3578,3579,-456,-457,3580,-458,3581,3582,-459,3583,-460,-461,3584,3585,3586,-462,-463,3587,3588,3589,-464,-465,3590,3591,3592,3593,-466,3594,3595,-467,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,-468,3606,3607,-469,3608,3609,-470,3610,3611,3612,3613,3614,3615,-471,3616,3617,-472,3618,3619,3620,3621,3622,3623,3624,3625,3626,-473,3627,3628,3629,-474,3630,3631,3632,3633,-475,3634,-476,3635,3636,-477,-478,3637,-479,3638,3639,3640,3641,3642,-480,3643,3644,3645,-481,3646,3647,3648,3649,3650,3651,3652,3653,3654,3655,-482,3656,3657,3658,-483,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,-484,3670,3671,3672,-485,3673,3674,3675,3676,3677,3678,3679,3680,3681,3682,3683,3684,3685,3686,3687,3688,3689,3690,3691,3692,3693,3694,3695,3696,3697,3698,3699,3700,3701,3702,3703,3704,3705,3706,3707,3708,3709,-486,3710,-487,3711,3712,-488,3713,3714,-489,3715,3716,3717,3718,-490,3719,3720,3721,-491,3722,3723,3724,3725,-492,3726,3727,3728,-493,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,3739,3740,3741,3742,3743,3744,3745,3746,3747,3748,3749,3750,3751,3752,3753,3754,3755,3756,3757,3758,3759,3760,3761,3762,3763,3764,3765,3766,3767,3768,3769,3770,3771,3772,3773,3774,3775,-494,3776,3777,3778,-495,3779,3780,3781,-496,3782,-497,3783,3784,3785,3786,3787,3788,3789,3790,3791,3792,-498,3793,3794,3795,-499,3796,3797,3798,3799,3800,3801,3802,3803,3804,3805,3806,3807,3808,3809,3810,3811,3812,3813,3814,3815,3816,3817,-500,3818,3819,-501,3820,3821,3822,3823,-502,3824,3825,3826,3827,3828,3829,3830,3831,3832,3833,3834,3835,-503,3836,3837,3838,3839,-504,3840,3841,3842,3843,3844,3845,3846,3847,-505,3848,3849,3850,-506,3851,3852,3853,3854,3855,3856,-507,3857,3858,3859,3860,3861,3862,3863,3864,3865,-508,3866,-509,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,-510,3893,3894,-511,3895,3896,3897,-512,3898,3899,3900,3901,-513,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,-514,3912,-515,3913,3914,3915,-516,-517,3916,-518,3917,3918,-519,3919,-520,-521,3920,3921,3922,-522,-523,3923,3924,-524,3925,3926,3927,-525,3928,3929,3930,-526,3931,3932,3933,-527,3934,3935,-528,-529,3936,3937,3938,-530,-531,3939,3940,3941,-532,3942,3943,3944,3945,-533,3946,3947,-534,-535,3948,3949,3950,3951,-536,3952,3953,3954,3955,3956,3957,3958,3959,-537,3960,3961,3962,-538,3963,3964,3965,-539,3966,3967,3968,3969,-540,3970,3971,-541,3972,3973,3974,3975,3976,3977,3978,3979,3980,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,3992,3993,3994,3995,3996,3997,3998,3999,4000,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,-542,4019,4020,-543,4021,4022,4023,4024,4025,4026,-544,4027,4028,4029,-545,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,-546,4040,4041,4042,-547,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,-548,4054,4055,4056,-549,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,-550,4105,4106,-551,4107,4108,-552,4109,4110,-553,4111,4112,4113,4114,-554,4115,4116,4117,4118,4119,4120,-555,4121,4122,4123,-556,-557,4124,-558,4125,4126,-559,4127,-560,-561,4128,4129,4130,-562,-563,4131,4132,4133,-564,-565,4134,4135,4136,4137,-566,4138,4139,-567,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,-568,4151,-569,4152,4153,4154,-570,4155,4156,4157,4158,4159,4160,4161,4162,4163,-571,4164,4165,4166,4167,-572,4168,4169,4170,4171,4172,4173,4174,4175,-573,4176,4177,4178,4179,-574,4180,4181,4182,4183,4184,4185,4186,4187,4188,4189,-575,4190,-576,4191,4192,-577,4193,-578,4194,4195,4196,-579,4197,4198,-580,4199,-581,4200,-582,4201,4202,-583,4203,-584,4204,-585,-586,4205,4206,-587,-588,4207,-589,4208,4209,4210,4211,4212,-590,4213,-591,4214,-592,4215,-593,4216,-594,4217,4218,4219,4220,-595,4221,-596,4222,4223,4224,-597,4225,4226,4227,4228,4229,4230,4231,4232,4233,4234,4235,-598,4236,-599,4237,-600,4238,-601,4239,4240,-602,4241,4242,4243,-603,4244,4245,4246,-604,4247,4248,4249,-605,4250,4251,4252,4253,4254,4255,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,4266,4267,4268,4269,4270,4271,4272,4273,4274,4275,4276,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4290,4291,4292,4293,4294,4295,4296,4297,4298,4299,-606,4300,-607,4301,4302,-608,4303,-609,4304,4305,4306,4307,-610,4308,4309,4310,-611,4311,4312,4313,4314,-612,4315,4316,4317,-613,4318,4319,4320,4321,4322,4323,4324,4325,4326,4327,4328,4329,4330,4331,4332,4333,4334,4335,4336,4337,4338,4339,4340,4341,4342,4343,4344,4345,4346,4347,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,4358,4359,4360,4361,4362,4363,4364,4365,4366,4367,4368,4369,4370,4371,4372,4373,4374,-614,4375,4376,4377,-615,4378,4379,4380,-616,4381,4382,-617,4383,4384,-618,4385,4386,4387,-619,4388,4389,4390,-620,4391,-621,4392,-622,4393,-623,4394,4395,-624,4396,4397,-625,4398,4399,4400,4401,4402,4403,4404,4405,-626,-627,4406,-628,-629,4407,-630,4408,4409,-631,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,-632,4431,-633,4432,4433,-634,4434,4435,4436,-635,4437,4438,4439,4440,4441,4442,4443,4444,4445,4446,4447,4448,4449,4450,4451,4452,4453,-636,4454,4455,-637,4456,4457,-638,4458,4459,4460,-639,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4471,4472,4473,-640,4474,-641,4475,4476,4477,-642,4478,4479,4480,4481,4482,4483,-643,4484,4485,-644,4486,-645,4487,4488,4489,4490,4491,4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,4536,4537,4538,4539,4540,4541,4542,4543,4544,4545,4546,4547,4548,4549,4550,4551,4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,4568,4569,4570,4571,4572,4573,4574,4575,4576,4577,4578,4579,4580,4581,4582,4583,4584,4585,4586,4587,4588,4589,4590,4591,4592,4593,4594,4595,4596,4597,4598,4599,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4647,4648,4649,4650,4651,4652,4653,4654,4655,4656,4657,4658,4659,4660,4661,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,4683,4684,4685,4686,4687,4688,4689,4690,4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4713,4714,4715,4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,4732,4733,4734,4735,4736,4737,4738,4739,4740,4741,4742,4743,4744,4745,4746,4747,4748,4749,4750,4751,-646,4752,4753,-647,4754,4755,4756,-648,4757,4758,-649,4759,-650,4760,4761,4762,-651,4763,4764,4765,4766,4767,4768,4769,4770,4771,4772,4773,4774,4775,-652,4776,4777,4778,-653,4779,-654,4780,4781,4782,4783,-655,4784,4785,4786,4787,4788,4789,4790,4791,4792,4793,4794,4795,4796,4797,4798,4799,4800,4801,4802,-656,4803,4804,4805,-657,4806,4807,4808,-658,4809,4810,4811,-659,4812,4813,-660,4814,4815,-661,4816,4817,4818,4819,4820,4821,4822,4823,4824,4825,4826,4827,4828,4829,4830,4831,4832,4833,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,4880,4881,4882,4883,4884,4885,4886,4887,4888,4889,4890,4891,4892,4893,4894,4895,4896,4897,4898,4899,4900,4901,4902,4903,4904,4905,4906,4907,4908,4909,4910,4911,4912,4913,4914,4915,4916,4917,4918,4919,4920,4921,4922,4923,4924,4925,4926,4927,4928,4929,4930,4931,4932,4933,4934,4935,4936,4937,4938,4939,-662,4940,4941,-663,4942,4943,4944,-664,4945,4946,-665,4947,-666,4948,4949,4950,-667,4951,4952,4953,-668,4954,4955,4956,-669,4957,4958,4959,4960,4961,4962,4963,4964,4965,4966,4967,4968,4969,4970,4971,-670,4972,4973,4974,-671,-672,4975,4976,-673,-674,4977,-675,-676,4978,4979,-677,-678,4980,-679,4981,4982,-680,4983,-681,4984,4985,4986,-682,4987,-683,4988,4989,-684,4990,4991,-685,4992,4993,4994,-686,4995,-687,4996,4997,-688,4998,4999,-689,5000,5001,5002,5003,-690,5004,5005,5006,-691,5007,5008,5009,5010,-692,5011,5012,5013,-693,5014,5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027,5028,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5057,5058,5059,5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,5073,5074,5075,5076,-694,5077,5078,-695,5079,5080,5081,5082,5083,5084,-696,5085,5086,-697,5087,5088,5089,5090,5091,5092,5093,-698,5094,5095,5096,-699,5097,5098,5099,5100,5101,5102,5103,5104,5105,-700,5106,-701,5107,5108,5109,5110,5111,5112,5113,5114,5115,5116,5117,5118,5119,5120,5121,5122,5123,5124,5125,5126,5127,5128,5129,5130,5131,5132,5133,5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,5149,5150,5151,5152,5153,5154,5155,5156,-702,5157,-703,5158,-704,5159,-705,5160,5161,5162,5163,-706,5164,5165,5166,5167,-707,5168,5169,5170,5171,-708,5172,5173,-709,5174,5175,5176,5177,5178,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5197,5198,5199,5200,5201,5202,5203,5204,5205,5206,5207,5208,5209,5210,5211,5212,5213,5214,5215,5216,5217,5218,5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,5248,5249,5250,5251,5252,5253,5254,5255,5256,-710,5257,5258,5259,-711,5260,5261,5262,5263,5264,5265,5266,-712,5267,5268,5269,-713,5270,5271,5272,5273,5274,5275,5276,5277,5278,5279,-714,5280,5281,5282,-715,5283,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,-716,5294,5295,5296,-717,5297,5298,5299,5300,5301,5302,5303,5304,5305,5306,5307,5308,5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,5322,5323,5324,5325,5326,5327,5328,5329,5330,5331,5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,5354,5355,5356,5357,5358,5359,5360,5361,5362,5363,-718,5364,-719,5365,5366,-720,5367,-721,5368,5369,5370,-722,5371,5372,5373,-723,5374,5375,5376,5377,5378,5379,5380,5381,5382,5383,5384,5385,5386,5387,5388,5389,5390,-724,5391,-725,5392,5393,5394,-726,5395,5396,5397,5398,5399,5400,5401,5402,5403,-727,5404,5405,5406,5407,-728,5408,5409,5410,5411,5412,5413,5414,5415,-729,5416,5417,5418,5419,-730,5420,5421,5422,5423,5424,5425,5426,5427,5428,5429,-731,5430,-732,5431,5432,-733,5433,-734,5434,5435,5436,-735,5437,5438,-736,5439,-737,5440,-738,5441,5442,-739,5443,-740,5444,-741,5445,5446,-742,5447,-743,5448,5449,5450,5451,5452,5453,-744,5454,5455,-745,5456,-746,5457,5458,5459,5460,-747,5461,5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472,5473,5474,5475,5476,-748,5477,5478,-749,5479,5480,-750,5481,5482,5483,-751,5484,5485,5486,-752,5487,5488,5489,-753,5490,5491,5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504,5505,5506,5507,5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520,5521,5522,5523,5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536,5537,5538,5539,5540,5541,5542,5543,5544,5545,5546,5547,5548,5549,5550,5551,5552,5553,5554,5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568,5569,5570,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,-754,5615,5616,5617,-755,5618,5619,5620,-756,5621,5622,-757,5623,5624,-758,5625,5626,5627,-759,5628,5629,5630,-760,5631,5632,-761,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,5647,5648,-762,5649,5650,-763,5651,5652,-764,5653,5654,5655,-765,5656,5657,5658,5659,5660,5661,5662,5663,5664,5665,5666,5667,5668,5669,5670,5671,5672,5673,5674,5675,5676,5677,5678,5679,5680,5681,5682,5683,5684,5685,5686,5687,5688,5689,5690,5691,5692,5693,5694,5695,5696,5697,5698,5699,5700,5701,5702,5703,5704,5705,5706,5707,5708,5709,5710,5711,5712,5713,5714,5715,5716,5717,5718,5719,5720,5721,5722,5723,5724,5725,5726,5727,5728,5729,5730,5731,5732,5733,5734,5735,5736,5737,5738,5739,5740,5741,5742,5743,5744,5745,5746,5747,5748,5749,5750,5751,5752,5753,5754,5755,5756,5757,5758,5759,5760,5761,5762,5763,5764,5765,5766,5767,5768,5769,5770,5771,5772,5773,5774,5775,5776,5777,5778,5779,5780,5781,5782,5783,5784,5785,5786,5787,5788,5789,5790,5791,5792,5793,5794,5795,5796,5797,5798,5799,5800,5801,5802,5803,5804,5805,5806,5807,5808,5809,5810,5811,5812,5813,5814,5815,5816,5817,5818,5819,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5830,5831,5832,5833,5834,5835,5836,5837,5838,5839,5840,5841,5842,5843,5844,5845,5846,5847,5848,5849,5850,5851,5852,5853,5854,5855,5856,5857,5858,5859,5860,5861,5862,5863,5864,5865,5866,5867,5868,5869,5870,5871,5872,5873,5874,5875,5876,5877,5878,5879,5880,5881,5882,5883,5884,5885,5886,5887,5888,5889,5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5901,5902,5903,5904,5905,5906,5907,5908,5909,5910,5911,5912,5913,5914,5915,5916,5917,5918,5919,-766,5920,5921,5922,-767,5923,5924,5925,-768,5926,5927,5928,5929,-769,5930,5931,-770,5932,5933,5934,-771,5935,5936,5937,-772,5938,5939,5940,-773,5941,5942,-774,5943,5944,-775,5945,5946,-776,5947,5948,-777,5949,5950,-778,5951,5952,5953,5954,-779,5955,5956,5957,-780,5958,5959,5960,-781,5961,5962,5963,5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,5980,5981,5982,5983,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,5994,-782,5995,5996,5997,-783,5998,5999,-784,6000,6001,6002,6003,-785,-786,6004,6005,6006,-787,6007,6008,6009,6010,6011,6012,6013,6014,-788,6015,-789,-790,6016,6017,-791,6018,-792,6019,6020,6021,6022,-793,-794,6023,6024,-795,6025,6026,6027,6028,6029,6030,6031,6032,6033,6034,6035,6036,-796,6037,6038,-797,-798,6039,6040,-799,6041,6042,6043,-800,6044,6045,-801,6046,6047,6048,6049,6050,6051,6052,6053,6054,6055,6056,6057,6058,6059,6060,6061,6062,6063,6064,6065,6066,6067,6068,6069,6070,6071,6072,6073,-802,6074,-803,6075,-804,6076,6077,-805,6078,6079,6080,-806,6081,6082,6083,6084,-807,6085,6086,6087,-808,6088,6089,6090,-809,6091,6092,6093,6094,6095,6096,6097,6098,6099,6100,6101,6102,6103,6104,6105,6106,6107,6108,6109,6110,6111,6112,6113,6114,6115,6116,6117,6118,6119,6120,6121,6122,6123,6124,-810,6125,6126,-811,6127,-812,6128,6129,6130,-813,6131,6132,6133,-814,-815,6134,6135,-816,-817,6136,6137,6138,-818,6139,6140,-819,6141,6142,6143,6144,6145,6146,6147,-820,6148,-821,6149,-822,-823,-824,6150,-825,-826,6151,-827,-828,6152,-829,6153,-830,6154,6155,-831,6156,6157,-832,6158,6159,6160,-833,6161,-834,-835,6162,-836,-837,6163,-838,6164,-839,6165,6166,-840,6167,6168,6169,-841,6170,6171,6172,6173,-842,6174,-843,6175,-844,6176,6177,-845,6178,6179,6180,6181,6182,6183,6184,6185,6186,6187,-846,6188,-847,6189,6190,6191,6192,6193,6194,-848,6195,6196,6197,6198,6199,6200,6201,6202,6203,6204,-849,6205,-850,6206,6207,6208,6209,6210,6211,6212,6213,6214,6215,6216,6217,6218,-851,6219,6220,-852,6221,6222,6223,6224,6225,6226,6227,-853,6228,6229,6230,-854,6231,6232,6233,6234,6235,6236,6237,6238,6239,6240,6241,6242,6243,6244,6245,6246,6247,6248,6249,6250,6251,6252,6253,6254,6255,6256,-855,6257,6258,-856,6259,-857,6260,6261,-858,6262,6263,6264,-859,6265,6266,6267,6268,6269,6270,6271,6272,-860,6273,-861,6274,6275,-862,6276,-863,6277,6278,-864,-865,6279,-866,6280,-867,6281,6282,-868,6283,-869,6284,6285,6286,6287,6288,6289,6290,6291,-870,6292,6293,6294,6295,-871,6296,6297,6298,6299,6300,-872,6301,6302,-873,6303,-874,6304,-875,6305,6306,-876,6307,6308,6309,-877,6310,6311,6312,6313,-878,6314,-879,6315,-880,6316,6317,-881,6318,6319,6320,6321,6322,6323,6324,6325,6326,6327,-882,6328,6329,-883,6330,6331,6332,6333,6334,6335,6336,6337,6338,6339,6340,-884,6341,6342,6343,-885,6344,6345,6346,6347,6348,6349,6350,6351,6352,6353,6354,6355,-886,6356,6357,-887,6358,6359,6360,-888,6361,6362,-889,6363,6364,-890,6365,6366,6367,6368,6369,6370,6371,6372,6373,6374,6375,6376,6377,6378,6379,6380,6381,6382,6383,6384,6385,6386,6387,6388,6389,6390,6391,6392,6393,6394,6395,6396,6397,6398,6399,6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,6410,6411,6412,6413,6414,6415,6416,6417,6418,6419,6420,6421,6422,6423,6424,6425,6426,6427,6428,6429,6430,6431,6432,6433,6434,6435,6436,6437,6438,6439,6440,6441,6442,6443,6444,6445,6446,6447,6448,6449,-891,6450,6451,-892,6452,6453,-893,6454,6455,-894,6456,6457,6458,6459,-895,6460,6461,6462,6463,6464,6465,-896,6466,6467,-897,6468,6469,6470,6471,-898,6472,6473,6474,-899,6475,6476,6477,-900,6478,6479,6480,6481,-901,6482,6483,-902,6484,6485,6486,6487,6488,6489,6490,6491,6492,6493,6494,6495,6496,6497,6498,6499,6500,6501,6502,6503,6504,6505,6506,6507,6508,6509,6510,6511,6512,6513,6514,6515,6516,6517,6518,6519,6520,6521,6522,6523,6524,6525,6526,6527,6528,6529,6530,6531,6532,-903,6533,6534,-904,6535,6536,6537,6538,6539,6540,6541,-905,6542,6543,6544,-906,6545,6546,6547,6548,6549,6550,6551,6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,6564,6565,6566,6567,6568,6569,6570,6571,6572,6573,6574,6575,6576,6577,6578,6579,6580,6581,6582,6583,6584,6585,6586,6587,6588,6589,6590,6591,6592,6593,6594,6595,-907,6596,-908,6597,6598,-909,6599,-910,6600,6601,6602,6603,-911,6604,6605,6606,-912,6607,6608,6609,6610,-913,6611,6612,6613,-914,6614,6615,6616,6617,6618,6619,6620,6621,6622,6623,6624,6625,6626,6627,6628,6629,6630,6631,6632,6633,6634,6635,6636,6637,6638,6639,6640,6641,6642,6643,6644,6645,6646,6647,6648,6649,6650,6651,6652,6653,6654,6655,6656,6657,6658,6659,6660,6661,6662,6663,6664,6665,6666,6667,6668,6669,6670,-915,6671,-916,6672,6673,-917,-918,6674,6675,-919,6676,6677,-920,6678,6679,-921,6680,6681,6682,-922,6683,6684,-923,6685,6686,-924,6687,6688,-925,6689,6690,-926,6691,6692,-927,6693,6694,-928,-929,6695,-930,-931,6696,6697,6698,-932,-933,6699,6700,6701,-934,6702,6703,6704,6705,6706,6707,-935,6708,6709,6710,-936,6711,6712,6713,6714,6715,6716,6717,6718,-937,6719,-938,-939,6720,6721,6722,-940,-941,6723,6724,6725,-942,6726,6727,6728,-943,6729,6730,6731,6732,6733,-944,6734,6735,6736,-945,-946,6737,6738,-947,-948,-949,6739,-950,-951,6740,-952,6741,-953,6742,-954,6743,6744,6745,6746,6747,-955,6748,6749,-956,6750,-957,6751,6752,6753,6754,6755,6756,6757,6758,6759,6760,6761,6762,6763,6764,6765,6766,6767,6768,6769,6770,6771,6772,6773,6774,6775,6776,6777,6778,6779,6780,6781,-958,6782,6783,-959,6784,-960,6785,6786,-961,6787,6788,-962,-963,6789,6790,-964,-965,6791,6792,-966,6793,6794,-967,6795,6796,6797,-968,6798,6799,6800,6801,6802,6803,6804,-969,6805,6806,6807,-970,6808,6809,6810,6811,-971,6812,6813,6814,-972,6815,6816,6817,6818,6819,6820,6821,6822,6823,6824,6825,6826,-973,6827,6828,6829,6830,-974,6831,6832,6833,6834,6835,6836,6837,6838,6839,-975,6840,6841,6842,-976,6843,6844,6845,6846,6847,6848,-977,6849,6850,6851,6852,6853,-978,6854,6855,6856,-979,-980,6857,6858,-981,-982,6859,-983,6860,6861,-984,6862,6863,6864,-985,6865,6866,6867,6868,6869,6870,6871,6872,6873,6874,6875,6876,6877,6878,6879,6880,6881,6882,6883,6884,6885,6886,6887,6888,6889,6890,6891,6892,6893,6894,6895,6896,6897,6898,6899,6900,6901,6902,6903,6904,6905,6906,6907,6908,6909,6910,6911,6912,6913,6914,6915,6916,6917,6918,6919,-986,6920,6921,6922,-987,6923,6924,-988,6925,6926,-989,6927,6928,-990,-991,6929,6930,-992,-993,6931,6932,-994,6933,6934,-995,6935,6936,6937,-996,6938,6939,6940,6941,6942,6943,6944,-997,6945,6946,6947,-998,6948,6949,6950,6951,6952,6953,6954,-999,6955,6956,6957,-1000,6958,6959,6960,6961,-1001,6962,6963,6964,6965,6966,6967,6968,6969,6970,6971,6972,6973,6974,6975,6976,6977,6978,6979,6980,-1002,6981,6982,-1003,6983,6984,-1004,6985,6986,6987,-1005,6988,6989,6990,6991,6992,6993,6994,6995,6996,6997,6998,6999,7000,7001,-1006,7002,-1007,7003,7004,7005,-1008,7006,7007,7008,7009,7010,7011,-1009,7012,7013,-1010,7014,7015,-1011,7016,7017,7018,7019,7020,7021,7022,7023,7024,7025,7026,7027,7028,7029,7030,7031,7032,7033,7034,7035,7036,7037,7038,7039,7040,7041,7042,7043,7044,7045,7046,7047,7048,7049,7050,7051,7052,7053,7054,7055,7056,7057,7058,7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7071,7072,7073,7074,7075,7076,7077,7078,7079,7080,7081,7082,7083,7084,7085,7086,7087,7088,7089,7090,7091,7092,7093,7094,7095,7096,7097,7098,7099,7100,7101,7102,7103,7104,7105,7106,7107,7108,7109,7110,7111,7112,7113,7114,7115,7116,7117,7118,7119,7120,7121,7122,7123,7124,7125,7126,7127,7128,7129,7130,7131,7132,7133,7134,7135,7136,7137,7138,7139,7140,7141,7142,7143,7144,7145,7146,7147,7148,7149,7150,7151,7152,7153,7154,7155,7156,7157,7158,7159,7160,7161,7162,7163,7164,7165,7166,7167,7168,7169,7170,7171,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7184,7185,7186,7187,7188,7189,7190,7191,7192,7193,7194,7195,7196,7197,7198,7199,7200,7201,7202,7203,7204,7205,7206,7207,7208,7209,7210,7211,7212,7213,7214,7215,7216,7217,7218,7219,7220,7221,7222,7223,7224,7225,7226,7227,7228,7229,7230,7231,7232,7233,7234,7235,7236,7237,7238,7239,7240,7241,7242,7243,7244,7245,7246,7247,7248,7249,7250,7251,7252,7253,7254,7255,7256,7257,7258,7259,7260,7261,7262,7263,7264,7265,7266,7267,7268,7269,7270,7271,7272,7273,7274,7275,7276,7277,7278,7279,7280,7281,7282,7283,7284,7285,7286,7287,7288,7289,7290,-1012,7291,7292,7293,-1013,7294,-1014,7295,-1015,7296,7297,-1016,7298,7299,7300,7301,7302,7303,7304,-1017,7305,7306,-1018,7307,7308,7309,7310,7311,7312,-1019,7313,7314,-1020,7315,7316,7317,7318,7319,7320,7321,7322,-1021,7323,7324,-1022,7325,7326,7327,7328,7329,7330,7331,7332,-1023,7333,7334,-1024,7335,7336,7337,-1025,7338,7339,7340,7341,7342,7343,7344,7345,7346,7347,7348,-1026,7349,7350,-1027,7351,7352,-1028,7353,7354,7355,7356,-1029,7357,7358,7359,7360,7361,7362,7363,7364,7365,7366,7367,7368,7369,7370,7371,7372,7373,7374,7375,-1030,7376,7377,-1031,7378,7379,-1032,7380,7381,7382,7383,7384,7385,7386,7387,7388,7389,-1033,7390,7391,7392,-1034,7393,7394,7395,7396,7397,7398,7399,7400,7401,7402,-1035,7403,7404,-1036,7405,7406,7407,7408,7409,7410,7411,7412,7413,7414,7415,-1037,7416,7417,7418,-1038,7419,7420,7421,7422,7423,7424,7425,7426,7427,7428,7429,7430,-1039,7431,7432,-1040,7433,7434,7435,7436,-1041,7437,7438,7439,-1042,7440,7441,-1043,7442,7443,7444,7445,7446,7447,7448,7449,7450,7451,7452,7453,7454,7455,7456,7457,7458,7459,7460,7461,7462,7463,7464,7465,7466,7467,7468,7469,7470,7471,7472,7473,7474,7475,7476,7477,7478,7479,7480,7481,7482,7483,7484,7485,7486,7487,7488,7489,7490,7491,7492,7493,7494,7495,7496,7497,7498,7499,7500,7501,7502,7503,7504,7505,7506,7507,7508,7509,7510,7511,7512,7513,7514,7515,7516,7517,7518,7519,7520,7521,7522,7523,7524,7525,7526,7527,7528,7529,7530,7531,7532,7533,7534,7535,7536,7537,7538,7539,7540,7541,7542,7543,7544,7545,7546,7547,7548,7549,7550,7551,7552,7553,7554,7555,7556,7557,7558,7559,7560,7561,7562,7563,7564,7565,7566,7567,7568,7569,7570,7571,7572,7573,7574,7575,7576,7577,7578,7579,7580,7581,7582,7583,7584,7585,7586,7587,7588,7589,7590,7591,7592,7593,7594,7595,7596,7597,7598,7599,7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,7646,7647,7648,7649,7650,7651,7652,7653,7654,7655,7656,7657,7658,7659,7660,7661,7662,7663,7664,7665,7666,7667,7668,7669,7670,7671,7672,7673,7674,7675,7676,7677,7678,7679,7680,7681,7682,7683,7684,7685,7686,7687,7688,7689,7690,7691,7692,7693,7694,7695,7696,7697,7698,7699,7700,7701,7702,7703,7704,7705,7706,7707,7708,7709,7710,7711,7712,7713,7714,7715,7716,7717,7718,7719,7720,7721,7722,7723,7724,7725,7726,7727,7728,7729,7730,7731,7732,7733,7734,7735,7736,7737,7738,7739,7740,7741,7742,7743,7744,7745,7746,7747,7748,7749,7750,7751,7752,7753,7754,7755,7756,7757,7758,7759,7760,7761,7762,7763,7764,7765,7766,7767,7768,7769,7770,7771,7772,-1044,7773,7774,-1045,7775,7776,-1046,7777,7778,-1047,7779,7780,7781,-1048,7782,7783,-1049,7784,7785,-1050,7786,7787,-1051,7788,7789,-1052,7790,7791,-1053,7792,7793,-1054,7794,-1055,7795,7796,7797,-1056,7798,7799,7800,7801,7802,7803,7804,7805,7806,-1057,7807,7808,7809,-1058,7810,7811,7812,7813,7814,7815,7816,7817,7818,-1059,7819,7820,7821,-1060,7822,7823,7824,7825,7826,7827,-1061,7828,7829,7830,7831,7832,-1062,7833,7834,7835,-1063,-1064,7836,7837,-1065,-1066,7838,-1067,7839,-1068,7840,7841,-1069,7842,7843,7844,7845,7846,7847,7848,7849,7850,7851,7852,7853,7854,7855,7856,7857,7858,7859,7860,7861,7862,7863,7864,7865,7866,7867,7868,7869,7870,7871,7872,7873,7874,7875,7876,7877,7878,7879,7880,-1070,7881,7882,-1071,7883,-1072,7884,7885,-1073,7886,7887,-1074,-1075,7888,7889,-1076,-1077,7890,7891,-1078,7892,7893,-1079,7894,7895,7896,-1080,7897,7898,7899,7900,7901,7902,7903,-1081,7904,7905,7906,-1082,7907,7908,7909,7910,-1083,7911,7912,7913,-1084,7914,7915,7916,7917,7918,7919,7920,7921,7922,7923,7924,7925,-1085,7926,7927,7928,7929,-1086,7930,7931,7932,7933,7934,7935,7936,7937,7938,-1087,7939,7940,7941,-1088,7942,7943,7944,7945,7946,7947,-1089,7948,7949,7950,7951,7952,-1090,7953,7954,7955,-1091,-1092,7956,7957,-1093,-1094,7958,-1095,7959,7960,-1096,7961,7962,7963,-1097,7964,7965,7966,7967,7968,7969,7970,7971,7972,7973,7974,7975,7976,7977,7978,7979,7980,7981,7982,-1098,7983,7984,7985,7986,-1099,7987,7988,7989,-1100,7990,7991,7992,-1101,7993,7994,7995,-1102,7996,-1103,7997,-1104,-1105,7998,-1106,-1107,-1108,7999,-1109,-1110,8000,-1111,8001,-1112,8002,-1113,8003,-1114,8004,8005,-1115,-1116,8006,-1117,8007,-1118,8008,8009,-1119,8010,-1120,8011,8012,-1121,8013,8014,8015,8016,-1122,8017,8018,8019,8020,8021,8022,8023,8024,8025,8026,8027,-1123,8028,8029,-1124,8030,8031,-1125,8032,8033,-1126,8034,8035,8036,8037,8038,8039,8040,8041,8042,-1127,8043,8044,-1128,-1129,8045,-1130,-1131,8046,8047,8048,8049,8050,8051,8052,-1132,8053,8054,-1133,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,8080,8081,8082,8083,8084,8085,8086,-1134,8087,8088,-1135,8089,-1136,8090,8091,-1137,8092,8093,-1138,8094,8095,8096,8097,-1139,8098,8099,8100,-1140,8101,8102,8103,8104,-1141,8105,8106,8107,8108,8109,8110,8111,8112,8113,8114,8115,8116,8117,8118,8119,8120,8121,8122,8123,8124,8125,8126,8127,8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,-1142,8140,-1143,8141,-1144,8142,8143,8144,8145,8146,8147,8148,8149,8150,8151,8152,8153,8154,8155,8156,8157,8158,8159,8160,8161,-1145,8162,8163,-1146,8164,8165,-1147,8166,8167,8168,8169,8170,8171,8172,8173,8174,8175,8176,8177,8178,-1148,8179,8180,8181,-1149,8182,8183,8184,8185,8186,8187,8188,8189,8190,8191,8192,-1150,8193,-1151,8194,8195,8196,8197,8198,8199,-1152,8200,8201,8202,8203,8204,8205,8206,8207,8208,8209,-1153,8210,8211,-1154,8212,8213,8214,8215,8216,8217,8218,8219,8220,8221,8222,8223,8224,8225,8226,8227,8228,8229,8230,8231,8232,8233,8234,8235,8236,8237,8238,-1155,8239,8240,-1156,8241,8242,-1157,8243,8244,8245,8246,-1158,8247,8248,8249,8250,8251,8252,8253,8254,8255,8256,8257,8258,-1159,8259,-1160,-1161,8260,-1162,8261,-1163,8262,-1164,8263,8264,-1165,8265,-1166,-1167,8266,-1168,8267,8268,8269,-1169,8270,8271,8272,-1170,8273,-1171,8274,8275,8276,8277,8278,8279,8280,-1172,-1173,8281,-1174,-1175,8282,-1176,8283,8284,-1177,8285,-1178,8286,8287,8288,-1179,8289,8290,8291,-1180,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,-1181,8302,8303,8304,-1182,8305,-1183,8306,8307,8308,8309,8310,8311,8312,8313,8314,8315,-1184,8316,8317,-1185,8318,8319,8320,8321,8322,8323,8324,8325,8326,8327,8328,-1186,8329,-1187,8330,8331,8332,8333,8334,8335,8336,8337,8338,8339,8340,8341,-1188,8342,8343,-1189,8344,8345,8346,8347,8348,8349,8350,8351,8352,8353,8354,8355,-1190,8356,8357,-1191,8358,8359,8360,8361,-1192,8362,-1193,8363,8364,-1194,-1195,8365,8366,-1196,8367,8368,8369,8370,8371,-1197,8372,8373,-1198,8374,8375,8376,8377,8378,8379,8380,8381,8382,8383,-1199,8384,8385,-1200,8386,8387,8388,8389,8390,8391,8392,8393,8394,8395,8396,8397,-1201,8398,8399,8400,-1202,8401,8402,8403,8404,8405,8406,8407,8408,8409,8410,8411,8412,8413,8414,8415,8416,8417,8418,8419,8420,8421,8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,8432,8433,8434,8435,8436,8437,8438,8439,8440,8441,8442,8443,8444,8445,8446,8447,8448,8449,8450,8451,8452,8453,8454,8455,8456,8457,8458,8459,8460,8461,8462,8463,8464,8465,8466,8467,8468,-1203,8469,-1204,8470,-1205,8471,8472,-1206,8473,8474,-1207,8475,8476,8477,-1208,8478,8479,8480,8481,8482,8483,8484,8485,8486,8487,8488,8489,8490,8491,8492,8493,8494,8495,-1209,8496,8497,-1210,8498,-1211,8499,8500,8501,8502,8503,8504,8505,8506,8507,8508,-1212,8509,8510,-1213,8511,8512,8513,8514,8515,8516,8517,8518,8519,8520,-1214,8521,8522,-1215,8523,8524,8525,8526,8527,8528,8529,8530,8531,8532,8533,8534,-1216,8535,8536,-1217,8537,8538,8539,8540,8541,8542,8543,8544,-1218,8545,8546,-1219,8547,8548,8549,-1220,8550,8551,-1221,8552,-1222,8553,8554,8555,8556,8557,8558,8559,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,8576,8577,8578,8579,8580,8581,8582,8583,8584,8585,8586,8587,8588,8589,8590,8591,8592,8593,8594,8595,8596,8597,8598,8599,8600,8601,8602,8603,8604,8605,8606,8607,8608,8609,8610,8611,8612,8613,8614,8615,8616,8617,8618,8619,8620,8621,8622,8623,8624,8625,8626,8627,8628,8629,8630,8631,8632,8633,8634,8635,8636,8637,8638,8639,8640,8641,8642,8643,8644,8645,8646,8647,8648,8649,8650,8651,8652,8653,8654,8655,8656,8657,8658,8659,8660,8661,8662,8663,8664,8665,8666,8667,8668,8669,8670,8671,8672,8673,8674,8675,8676,8677,8678,8679,8680,8681,8682,8683,8684,8685,8686,8687,8688,8689,8690,8691,8692,8693,8694,8695,8696,8697,8698,8699,8700,8701,8702,8703,8704,8705,8706,8707,8708,8709,8710,8711,8712,8713,8714,8715,8716,8717,8718,8719,8720,8721,8722,8723,8724,8725,8726,8727,8728,8729,8730,8731,8732,8733,8734,8735,8736,8737,8738,8739,8740,8741,8742,8743,8744,8745,8746,8747,8748,8749,8750,8751,8752,8753,8754,8755,8756,8757,8758,8759,8760,8761,8762,8763,8764,8765,8766,8767,8768,8769,8770,8771,8772,8773,8774,8775,8776,8777,8778,8779,8780,8781,8782,8783,8784,8785,8786,8787,8788,8789,8790,8791,8792,8793,8794,8795,8796,8797,8798,8799,8800,8801,8802,8803,8804,8805,8806,8807,8808,8809,8810,8811,8812,8813,-1223,8814,8815,8816,8817,-1224,8818,8819,-1225,8820,-1226,8821,-1227,8822,8823,-1228,8824,8825,8826,8827,8828,8829,8830,8831,8832,8833,8834,8835,8836,8837,8838,8839,8840,8841,8842,8843,8844,8845,8846,8847,8848,8849,8850,8851,8852,8853,8854,8855,8856,8857,8858,8859,8860,8861,-1229,8862,8863,8864,-1230,8865,-1231,8866,8867,-1232,8868,8869,-1233,8870,8871,8872,-1234,8873,8874,8875,8876,8877,8878,8879,8880,8881,8882,8883,8884,8885,8886,8887,8888,8889,8890,8891,8892,8893,8894,8895,8896,8897,8898,8899,8900,8901,8902,8903,8904,8905,8906,8907,8908,8909,8910,8911,8912,8913,8914,8915,8916,8917,8918,8919,8920,8921,8922,8923,8924,8925,8926,8927,8928,8929,8930,8931,8932,8933,-1235,8934,8935,8936,8937,-1236,8938,8939,-1237,8940,-1238,8941,-1239,8942,8943,8944,-1240,8945,8946,8947,8948,8949,8950,8951,8952,8953,8954,8955,8956,8957,8958,8959,8960,8961,8962,8963,8964,8965,8966,8967,8968,8969,8970,8971,8972,8973,8974,8975,-1241,8976,8977,8978,8979,-1242,8980,8981,8982,-1243,8983,8984,8985,8986,-1244,8987,8988,8989,8990,8991,8992,8993,8994,8995,-1245,8996,8997,8998,-1246,8999,9000,-1247,-1248,9001,9002,-1249,-1250,9003,-1251,-1252,9004,9005,-1253,9006,9007,9008,-1254,9009,-1255,9010,9011,9012,-1256,9013,9014,9015,9016,9017,9018,9019,9020,9021,9022,-1257,9023,9024,-1258,9025,-1259,9026,9027,9028,-1260,9029,9030,9031,9032,-1261,9033,9034,9035,-1262,9036,9037,9038,9039,9040,9041,9042,9043,9044,9045,9046,9047,9048,9049,9050,9051,9052,9053,9054,9055,9056,9057,9058,9059,9060,9061,9062,9063,9064,9065,9066,9067,9068,9069,9070,9071,9072,9073,9074,9075,9076,9077,9078,9079,9080,9081,9082,9083,9084,9085,9086,9087,9088,9089,9090,9091,9092,9093,-1263,9094,-1264,9095,9096,9097,9098,9099,9100,-1265,9101,9102,-1266,9103,9104,9105,9106,9107,9108,9109,9110,-1267,9111,9112,-1268,9113,9114,9115,9116,9117,9118,9119,9120,9121,9122,9123,-1269,9124,9125,-1270,9126,9127,9128,9129,9130,9131,9132,9133,9134,9135,9136,9137,9138,9139,9140,9141,9142,9143,9144,9145,9146,9147,9148,9149,9150,9151,9152,9153,9154,9155,9156,9157,9158,9159,9160,9161,9162,9163,9164,9165,9166,9167,9168,9169,9170,9171,9172,9173,9174,9175,9176,9177,9178,9179,9180,9181,9182,-1271,9183,9184,-1272,9185,9186,-1273,9187,9188,-1274,9189,9190,-1275,9191,9192,9193,-1276,9194,9195,9196,9197,-1277,9198,9199,9200,9201,-1278,9202,9203,9204,9205,9206,9207,9208,9209,9210,9211,9212,9213,9214,9215,9216,9217,9218,9219,9220,9221,9222,9223,9224,9225,9226,9227,9228,9229,9230,9231,9232,9233,9234,9235,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,9246,9247,9248,9249,9250,9251,9252,9253,9254,9255,9256,9257,9258,9259,9260,9261,9262,9263,9264,9265,9266,9267,9268,-1279,9269,9270,-1280,9271,-1281,9272,9273,9274,-1282,9275,9276,9277,9278,9279,-1283,9280,9281,9282,-1284,-1285,9283,-1286,-1287,9284,-1288,9285,9286,-1289,9287,9288,-1290,9289,9290,-1291,9291,-1292,9292,9293,-1293,9294,9295,-1294,9296,9297,-1295,9298,9299,-1296,9300,9301,-1297,9302,9303,-1298,9304,-1299,-1300,9305,-1301,-1302,9306,-1303,-1304,9307,9308,9309,-1305,9310,9311,9312,9313,-1306,9314,9315,9316,-1307,-1308,9317,9318,-1309,9319,9320,9321,9322,9323,9324,9325,9326,9327,9328,-1310,9329,9330,-1311,9331,9332,9333,-1312,9334,9335,9336,-1313,9337,9338,-1314,9339,9340,9341,9342,9343,9344,9345,9346,9347,9348,9349,9350,9351,9352,9353,9354,9355,9356,9357,9358,9359,9360,9361,9362,9363,9364,9365,9366,9367,9368,9369,9370,9371,9372,9373,9374,-1315,9375,-1316,9376,9377,9378,9379,9380,9381,-1317,9382,9383,-1318,9384,9385,9386,9387,9388,9389,9390,9391,-1319,9392,9393,-1320,9394,9395,9396,9397,-1321,9398,9399,9400,9401,-1322,9402,-1323,9403,-1324,-1325,9404,-1326,9405,-1327,9406,9407,9408,9409,9410,9411,9412,-1328,9413,-1329,9414,9415,9416,9417,9418,9419,9420,-1330,9421,-1331,9422,9423,9424,9425,9426,9427,9428,9429,9430,-1332,9431,-1333,-1334,9432,9433,-1335,9434,9435,-1336,9436,-1337,-1338,9437,-1339,-1340,9438,9439,9440,-1341,9441,9442,9443,9444,-1342,9445,9446,-1343,-1344,9447,9448,-1345,-1346,9449,-1347,-1348,-1349,-1350}; + +//d_idx1 size 37800: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_idx1[37800] = +{1,3,5,7,2,3,6,7,4,5,6,7,9,11,13,15,10,11,14,15,12,13,14,15,16,17,20,21,17,19,21,23,18,19,22,23,20,21,22,23,25,27,29,31,28,29,30,31,32,33,34,35,33,35,37,39,34,35,38,39,36,37,38,39,40,41,42,43,41,43,45,47,42,43,46,47,44,45,46,47,48,49,52,53,49,51,53,55,50,51,54,55,57,59,61,63,65,67,69,71,66,67,70,71,68,69,70,71,73,75,77,79,74,75,78,79,76,77,78,79,80,81,82,83,81,83,85,87,82,83,86,87,84,85,86,87,89,91,93,95,90,91,94,95,97,99,101,103,98,99,102,103,96,98,100,102,100,101,102,103,105,107,109,111,106,107,110,111,104,106,108,110,108,109,110,111,112,113,114,115,114,115,118,119,116,117,118,119,122,123,126,127,129,131,133,135,130,131,134,135,128,130,132,134,132,133,134,135,137,139,141,143,138,139,142,143,136,138,140,142,140,141,142,143,144,145,146,147,145,147,149,151,146,147,150,151,148,149,150,151,153,155,157,159,154,155,158,159,161,163,165,167,162,163,166,167,160,162,164,166,164,165,166,167,169,171,173,175,170,171,174,175,168,170,172,174,172,173,174,175,176,177,178,179,178,179,182,183,176,178,180,182,180,181,182,183,186,187,190,191,184,186,188,190,192,193,196,197,194,195,198,199,192,194,196,198,196,197,198,199,200,201,204,205,202,203,206,207,204,205,206,207,209,211,213,215,212,213,214,215,220,221,222,223,226,227,230,231,224,226,228,230,228,229,230,231,234,235,238,239,236,237,238,239,241,243,245,247,242,243,246,247,244,245,246,247,250,251,254,255,252,253,254,255,256,257,260,261,257,259,261,263,258,259,262,263,256,258,260,262,260,261,262,263,264,265,268,269,266,267,270,271,268,269,270,271,272,273,276,277,273,275,277,279,276,277,278,279,280,281,284,285,281,283,285,287,284,285,286,287,288,289,292,293,289,291,293,295,290,291,294,295,288,290,292,294,292,293,294,295,296,297,300,301,298,299,302,303,300,301,302,303,305,307,309,311,306,307,310,311,308,309,310,311,313,315,317,319,314,315,318,319,316,317,318,319,320,321,322,323,320,321,324,325,321,323,325,327,322,323,326,327,324,325,326,327,328,329,332,333,329,331,333,335,330,331,334,335,336,337,340,341,337,339,341,343,338,339,342,343,340,341,342,343,344,345,348,349,345,347,349,351,346,347,350,351,348,349,350,351,352,353,354,355,352,353,356,357,353,355,357,359,352,354,356,358,356,357,358,359,360,361,364,365,361,363,365,367,360,362,364,366,368,369,372,373,372,373,374,375,376,377,380,381,380,381,382,383,384,385,386,387,384,385,388,389,385,387,389,391,384,386,388,390,388,389,390,391,392,393,396,397,393,395,397,399,392,394,396,398,400,401,404,405,401,403,405,407,404,405,406,407,408,409,412,413,409,411,413,415,412,413,414,415,416,417,418,419,417,419,421,423,416,418,420,422,420,421,422,423,425,427,429,431,424,426,428,430,432,434,436,438,436,437,438,439,440,442,444,446,444,445,446,447,448,449,450,451,450,451,454,455,448,450,452,454,452,453,454,455,456,457,458,459,456,458,460,462,460,461,462,463,464,465,468,469,464,466,468,470,472,474,476,478,482,483,486,487,484,485,486,487,492,493,494,495,496,497,500,501,500,501,502,503,508,509,510,511,513,515,517,519,514,515,518,519,516,517,518,519,521,523,525,527,522,523,526,527,524,525,526,527,528,529,530,531,529,531,533,535,530,531,534,535,532,533,534,535,537,539,541,543,538,539,542,543,545,547,549,551,546,547,550,551,544,546,548,550,548,549,550,551,553,555,557,559,554,555,558,559,552,554,556,558,556,557,558,559,560,561,562,563,562,563,566,567,564,565,566,567,570,571,574,575,577,579,581,583,578,579,582,583,580,581,582,583,585,587,589,591,586,587,590,591,588,589,590,591,593,595,597,599,594,595,598,599,592,594,596,598,596,597,598,599,602,603,606,607,604,605,606,607,608,609,612,613,609,611,613,615,610,611,614,615,612,613,614,615,616,617,620,621,617,619,621,623,618,619,622,623,620,621,622,623,625,627,629,631,624,626,628,630,628,629,630,631,636,637,638,639,640,641,644,645,641,643,645,647,642,643,646,647,644,645,646,647,648,649,652,653,649,651,653,655,650,651,654,655,652,653,654,655,657,659,661,663,658,659,662,663,656,658,660,662,660,661,662,663,666,667,670,671,668,669,670,671,672,673,676,677,673,675,677,679,674,675,678,679,676,677,678,679,680,681,684,685,681,683,685,687,682,683,686,687,684,685,686,687,688,689,692,693,689,691,693,695,688,690,692,694,692,693,694,695,696,697,700,701,700,701,702,703,704,705,706,707,704,705,708,709,705,707,709,711,708,709,710,711,712,713,714,715,713,715,717,719,716,717,718,719,721,723,725,727,722,723,726,727,729,731,733,735,736,737,740,741,737,739,741,743,740,741,742,743,745,747,749,751,748,749,750,751,753,755,757,759,754,755,758,759,756,757,758,759,761,763,765,767,764,765,766,767,768,769,770,771,768,769,772,773,769,771,773,775,770,771,774,775,772,773,774,775,776,777,778,779,777,779,781,783,780,781,782,783,784,785,786,787,785,787,789,791,786,787,790,791,792,793,794,795,793,795,797,799,794,795,798,799,800,801,802,803,800,801,804,805,801,803,805,807,802,803,806,807,804,805,806,807,808,809,810,811,809,811,813,815,812,813,814,815,817,819,821,823,818,819,822,823,820,821,822,823,825,827,829,831,826,827,830,831,828,829,830,831,832,833,834,835,833,835,837,839,834,835,838,839,832,834,836,838,836,837,838,839,840,841,842,843,842,843,846,847,844,845,846,847,848,849,850,851,849,851,853,855,850,851,854,855,852,853,854,855,856,857,858,859,857,859,861,863,858,859,862,863,860,861,862,863,864,865,866,867,864,865,868,869,865,867,869,871,866,867,870,871,864,866,868,870,872,873,874,875,872,873,876,877,874,875,878,879,880,881,882,883,881,883,885,887,888,889,890,891,889,891,893,895,896,897,898,899,896,897,900,901,897,899,901,903,898,899,902,903,896,898,900,902,904,905,906,907,904,905,908,909,906,907,910,911,912,913,914,915,913,915,917,919,914,915,918,919,920,921,922,923,921,923,925,927,922,923,926,927,928,929,932,933,929,931,933,935,930,931,934,935,928,930,932,934,936,937,940,941,938,939,942,943,944,945,948,949,945,947,949,951,952,953,956,957,953,955,957,959,960,961,964,965,961,963,965,967,960,962,964,966,964,965,966,967,968,969,972,973,969,971,973,975,968,970,972,974,976,977,978,979,976,977,980,981,984,985,988,989,993,995,997,999,996,997,998,999,1001,1003,1005,1007,1008,1009,1010,1011,1009,1011,1013,1015,1017,1019,1021,1023,1024,1025,1026,1027,1025,1027,1029,1031,1026,1027,1030,1031,1028,1029,1030,1031,1033,1035,1037,1039,1034,1035,1038,1039,1036,1037,1038,1039,1040,1041,1042,1043,1041,1043,1045,1047,1042,1043,1046,1047,1044,1045,1046,1047,1048,1049,1050,1051,1049,1051,1053,1055,1050,1051,1054,1055,1056,1057,1058,1059,1057,1059,1061,1063,1058,1059,1062,1063,1056,1058,1060,1062,1060,1061,1062,1063,1065,1067,1069,1071,1066,1067,1070,1071,1064,1066,1068,1070,1068,1069,1070,1071,1072,1073,1074,1075,1074,1075,1078,1079,1076,1077,1078,1079,1080,1081,1082,1083,1082,1083,1086,1087,1088,1089,1090,1091,1089,1091,1093,1095,1090,1091,1094,1095,1092,1093,1094,1095,1096,1097,1098,1099,1097,1099,1101,1103,1098,1099,1102,1103,1100,1101,1102,1103,1104,1105,1106,1107,1105,1107,1109,1111,1106,1107,1110,1111,1104,1106,1108,1110,1108,1109,1110,1111,1112,1113,1114,1115,1114,1115,1118,1119,1116,1117,1118,1119,1120,1121,1124,1125,1121,1123,1125,1127,1122,1123,1126,1127,1124,1125,1126,1127,1128,1129,1132,1133,1129,1131,1133,1135,1130,1131,1134,1135,1132,1133,1134,1135,1137,1139,1141,1143,1136,1138,1140,1142,1140,1141,1142,1143,1148,1149,1150,1151,1152,1153,1156,1157,1153,1155,1157,1159,1154,1155,1158,1159,1156,1157,1158,1159,1160,1161,1164,1165,1161,1163,1165,1167,1162,1163,1166,1167,1164,1165,1166,1167,1169,1171,1173,1175,1170,1171,1174,1175,1168,1170,1172,1174,1172,1173,1174,1175,1178,1179,1182,1183,1180,1181,1182,1183,1184,1185,1188,1189,1185,1187,1189,1191,1186,1187,1190,1191,1188,1189,1190,1191,1192,1193,1196,1197,1193,1195,1197,1199,1194,1195,1198,1199,1196,1197,1198,1199,1200,1201,1204,1205,1201,1203,1205,1207,1200,1202,1204,1206,1204,1205,1206,1207,1208,1209,1212,1213,1212,1213,1214,1215,1216,1217,1218,1219,1216,1217,1220,1221,1217,1219,1221,1223,1220,1221,1222,1223,1224,1225,1226,1227,1225,1227,1229,1231,1228,1229,1230,1231,1233,1235,1237,1239,1234,1235,1238,1239,1241,1243,1245,1247,1248,1249,1252,1253,1249,1251,1253,1255,1252,1253,1254,1255,1257,1259,1261,1263,1260,1261,1262,1263,1265,1267,1269,1271,1266,1267,1270,1271,1268,1269,1270,1271,1273,1275,1277,1279,1276,1277,1278,1279,1280,1281,1282,1283,1280,1281,1284,1285,1281,1283,1285,1287,1282,1283,1286,1287,1284,1285,1286,1287,1288,1289,1290,1291,1289,1291,1293,1295,1292,1293,1294,1295,1296,1297,1298,1299,1297,1299,1301,1303,1298,1299,1302,1303,1304,1305,1306,1307,1305,1307,1309,1311,1306,1307,1310,1311,1312,1313,1314,1315,1312,1313,1316,1317,1313,1315,1317,1319,1314,1315,1318,1319,1316,1317,1318,1319,1320,1321,1322,1323,1321,1323,1325,1327,1324,1325,1326,1327,1329,1331,1333,1335,1330,1331,1334,1335,1332,1333,1334,1335,1337,1339,1341,1343,1338,1339,1342,1343,1340,1341,1342,1343,1344,1345,1346,1347,1345,1347,1349,1351,1346,1347,1350,1351,1344,1346,1348,1350,1348,1349,1350,1351,1352,1353,1354,1355,1354,1355,1358,1359,1356,1357,1358,1359,1360,1361,1362,1363,1361,1363,1365,1367,1362,1363,1366,1367,1364,1365,1366,1367,1368,1369,1370,1371,1369,1371,1373,1375,1370,1371,1374,1375,1372,1373,1374,1375,1376,1377,1378,1379,1376,1377,1380,1381,1377,1379,1381,1383,1378,1379,1382,1383,1376,1378,1380,1382,1384,1385,1386,1387,1384,1385,1388,1389,1386,1387,1390,1391,1392,1393,1394,1395,1393,1395,1397,1399,1400,1401,1402,1403,1401,1403,1405,1407,1408,1409,1410,1411,1408,1409,1412,1413,1409,1411,1413,1415,1410,1411,1414,1415,1408,1410,1412,1414,1416,1417,1418,1419,1416,1417,1420,1421,1418,1419,1422,1423,1424,1425,1426,1427,1425,1427,1429,1431,1426,1427,1430,1431,1432,1433,1434,1435,1433,1435,1437,1439,1434,1435,1438,1439,1440,1441,1442,1443,1440,1441,1444,1445,1441,1443,1445,1447,1442,1443,1446,1447,1440,1442,1444,1446,1448,1449,1450,1451,1448,1449,1452,1453,1450,1451,1454,1455,1456,1457,1458,1459,1456,1457,1460,1461,1457,1459,1461,1463,1464,1465,1466,1467,1464,1465,1468,1469,1465,1467,1469,1471,1472,1473,1474,1475,1472,1473,1476,1477,1473,1475,1477,1479,1472,1474,1476,1478,1476,1477,1478,1479,1480,1481,1484,1485,1481,1483,1485,1487,1480,1482,1484,1486,1488,1489,1490,1491,1488,1489,1492,1493,1496,1497,1498,1499,1496,1497,1500,1501,1504,1505,1506,1507,1505,1507,1509,1511,1508,1509,1510,1511,1513,1515,1517,1519,1520,1521,1522,1523,1521,1523,1525,1527,1528,1529,1530,1531,1529,1531,1533,1535,1536,1537,1538,1539,1537,1539,1541,1543,1538,1539,1542,1543,1536,1538,1540,1542,1544,1545,1546,1547,1546,1547,1550,1551,1544,1546,1548,1550,1552,1553,1554,1555,1553,1555,1557,1559,1554,1555,1558,1559,1552,1554,1556,1558,1560,1561,1562,1563,1561,1563,1565,1567,1562,1563,1566,1567,1568,1569,1570,1571,1568,1569,1572,1573,1569,1571,1573,1575,1570,1571,1574,1575,1568,1570,1572,1574,1576,1577,1578,1579,1576,1577,1580,1581,1578,1579,1582,1583,1576,1578,1580,1582,1584,1585,1586,1587,1585,1587,1589,1591,1584,1586,1588,1590,1592,1593,1594,1595,1593,1595,1597,1599,1600,1601,1602,1603,1601,1603,1605,1607,1602,1603,1606,1607,1600,1602,1604,1606,1608,1609,1610,1611,1609,1611,1613,1615,1610,1611,1614,1615,1608,1610,1612,1614,1616,1617,1620,1621,1617,1619,1621,1623,1618,1619,1622,1623,1616,1618,1620,1622,1625,1627,1629,1631,1624,1626,1628,1630,1634,1635,1638,1639,1632,1634,1636,1638,1636,1637,1638,1639,1642,1643,1646,1647,1640,1642,1644,1646,1644,1645,1646,1647,1648,1649,1652,1653,1650,1651,1654,1655,1648,1650,1652,1654,1656,1658,1660,1662,1664,1665,1666,1667,1666,1667,1670,1671,1664,1666,1668,1670,1668,1669,1670,1671,1672,1673,1674,1675,1674,1675,1678,1679,1672,1674,1676,1678,1676,1677,1678,1679,1680,1681,1684,1685,1682,1683,1686,1687,1680,1682,1684,1686,1688,1690,1692,1694,1698,1699,1702,1703,1700,1701,1702,1703,1706,1707,1710,1711,1708,1709,1710,1711,1712,1713,1716,1717,1714,1715,1718,1719,1716,1717,1718,1719,1724,1725,1726,1727,1729,1731,1733,1735,1730,1731,1734,1735,1732,1733,1734,1735,1737,1739,1741,1743,1738,1739,1742,1743,1744,1745,1746,1747,1746,1747,1750,1751,1754,1755,1758,1759,1762,1763,1766,1767,1760,1762,1764,1766,1764,1765,1766,1767,1770,1771,1774,1775,1768,1770,1772,1774,1776,1777,1778,1779,1778,1779,1782,1783,1786,1787,1790,1791,1792,1793,1794,1795,1793,1795,1797,1799,1794,1795,1798,1799,1796,1797,1798,1799,1801,1803,1805,1807,1802,1803,1806,1807,1808,1809,1810,1811,1809,1811,1813,1815,1810,1811,1814,1815,1816,1817,1818,1819,1817,1819,1821,1823,1818,1819,1822,1823,1824,1825,1826,1827,1825,1827,1829,1831,1826,1827,1830,1831,1824,1826,1828,1830,1828,1829,1830,1831,1833,1835,1837,1839,1834,1835,1838,1839,1832,1834,1836,1838,1840,1841,1842,1843,1842,1843,1846,1847,1848,1849,1850,1851,1850,1851,1854,1855,1856,1857,1858,1859,1856,1857,1860,1861,1857,1859,1861,1863,1858,1859,1862,1863,1864,1865,1866,1867,1865,1867,1869,1871,1873,1875,1877,1879,1874,1875,1878,1879,1881,1883,1885,1887,1882,1883,1886,1887,1888,1889,1892,1893,1889,1891,1893,1895,1890,1891,1894,1895,1892,1893,1894,1895,1897,1899,1901,1903,1900,1901,1902,1903,1905,1907,1909,1911,1906,1907,1910,1911,1913,1915,1917,1919,1914,1915,1918,1919,1920,1921,1922,1923,1920,1921,1924,1925,1921,1923,1925,1927,1922,1923,1926,1927,1924,1925,1926,1927,1928,1929,1930,1931,1929,1931,1933,1935,1932,1933,1934,1935,1937,1939,1941,1943,1938,1939,1942,1943,1945,1947,1949,1951,1946,1947,1950,1951,1952,1953,1956,1957,1953,1955,1957,1959,1954,1955,1958,1959,1956,1957,1958,1959,1961,1963,1965,1967,1964,1965,1966,1967,1969,1971,1973,1975,1970,1971,1974,1975,1972,1973,1974,1975,1977,1979,1981,1983,1978,1979,1982,1983,1980,1981,1982,1983,1984,1985,1988,1989,1985,1987,1989,1991,1986,1987,1990,1991,1984,1986,1988,1990,1988,1989,1990,1991,1992,1993,1996,1997,1994,1995,1998,1999,1996,1997,1998,1999,2001,2003,2005,2007,2004,2005,2006,2007,2009,2011,2013,2015,2012,2013,2014,2015,2017,2019,2021,2023,2018,2019,2022,2023,2016,2018,2020,2022,2026,2027,2030,2031,2033,2035,2037,2039,2034,2035,2038,2039,2041,2043,2045,2047,2042,2043,2046,2047,2048,2049,2050,2051,2049,2051,2053,2055,2050,2051,2054,2055,2048,2050,2052,2054,2052,2053,2054,2055,2056,2057,2058,2059,2058,2059,2062,2063,2056,2058,2060,2062,2060,2061,2062,2063,2064,2065,2066,2067,2065,2067,2069,2071,2066,2067,2070,2071,2064,2066,2068,2070,2068,2069,2070,2071,2072,2073,2074,2075,2073,2075,2077,2079,2074,2075,2078,2079,2076,2077,2078,2079,2080,2081,2082,2083,2080,2081,2084,2085,2081,2083,2085,2087,2082,2083,2086,2087,2080,2082,2084,2086,2088,2089,2090,2091,2088,2089,2092,2093,2090,2091,2094,2095,2088,2090,2092,2094,2096,2097,2098,2099,2097,2099,2101,2103,2096,2098,2100,2102,2104,2105,2106,2107,2105,2107,2109,2111,2112,2113,2114,2115,2113,2115,2117,2119,2114,2115,2118,2119,2112,2114,2116,2118,2120,2121,2122,2123,2121,2123,2125,2127,2122,2123,2126,2127,2120,2122,2124,2126,2128,2129,2132,2133,2129,2131,2133,2135,2130,2131,2134,2135,2128,2130,2132,2134,2137,2139,2141,2143,2136,2138,2140,2142,2146,2147,2150,2151,2144,2146,2148,2150,2148,2149,2150,2151,2154,2155,2158,2159,2152,2154,2156,2158,2156,2157,2158,2159,2160,2161,2164,2165,2162,2163,2166,2167,2160,2162,2164,2166,2168,2170,2172,2174,2176,2177,2178,2179,2178,2179,2182,2183,2176,2178,2180,2182,2180,2181,2182,2183,2184,2185,2186,2187,2186,2187,2190,2191,2184,2186,2188,2190,2188,2189,2190,2191,2192,2193,2196,2197,2194,2195,2198,2199,2192,2194,2196,2198,2200,2202,2204,2206,2210,2211,2214,2215,2208,2210,2212,2214,2212,2213,2214,2215,2218,2219,2222,2223,2216,2218,2220,2222,2220,2221,2222,2223,2224,2225,2228,2229,2226,2227,2230,2231,2224,2226,2228,2230,2228,2229,2230,2231,2232,2234,2236,2238,2236,2237,2238,2239,2241,2243,2245,2247,2242,2243,2246,2247,2240,2242,2244,2246,2244,2245,2246,2247,2249,2251,2253,2255,2250,2251,2254,2255,2248,2250,2252,2254,2252,2253,2254,2255,2256,2257,2258,2259,2258,2259,2262,2263,2260,2261,2262,2263,2266,2267,2270,2271,2274,2275,2278,2279,2272,2274,2276,2278,2276,2277,2278,2279,2282,2283,2286,2287,2280,2282,2284,2286,2284,2285,2286,2287,2288,2289,2290,2291,2290,2291,2294,2295,2288,2290,2292,2294,2292,2293,2294,2295,2298,2299,2302,2303,2296,2298,2300,2302,2304,2305,2306,2307,2305,2307,2309,2311,2306,2307,2310,2311,2304,2306,2308,2310,2308,2309,2310,2311,2313,2315,2317,2319,2314,2315,2318,2319,2312,2314,2316,2318,2316,2317,2318,2319,2320,2321,2322,2323,2321,2323,2325,2327,2322,2323,2326,2327,2324,2325,2326,2327,2328,2329,2330,2331,2329,2331,2333,2335,2330,2331,2334,2335,2336,2337,2338,2339,2337,2339,2341,2343,2338,2339,2342,2343,2336,2338,2340,2342,2340,2341,2342,2343,2345,2347,2349,2351,2346,2347,2350,2351,2344,2346,2348,2350,2348,2349,2350,2351,2352,2353,2354,2355,2354,2355,2358,2359,2352,2354,2356,2358,2356,2357,2358,2359,2360,2361,2362,2363,2362,2363,2366,2367,2360,2362,2364,2366,2368,2369,2370,2371,2368,2369,2372,2373,2369,2371,2373,2375,2370,2371,2374,2375,2368,2370,2372,2374,2376,2377,2378,2379,2377,2379,2381,2383,2376,2378,2380,2382,2385,2387,2389,2391,2386,2387,2390,2391,2384,2386,2388,2390,2393,2395,2397,2399,2394,2395,2398,2399,2392,2394,2396,2398,2400,2401,2404,2405,2401,2403,2405,2407,2402,2403,2406,2407,2404,2405,2406,2407,2409,2411,2413,2415,2412,2413,2414,2415,2417,2419,2421,2423,2418,2419,2422,2423,2425,2427,2429,2431,2426,2427,2430,2431,2432,2433,2434,2435,2432,2433,2436,2437,2433,2435,2437,2439,2434,2435,2438,2439,2436,2437,2438,2439,2440,2441,2442,2443,2441,2443,2445,2447,2444,2445,2446,2447,2449,2451,2453,2455,2450,2451,2454,2455,2457,2459,2461,2463,2458,2459,2462,2463,2464,2465,2468,2469,2465,2467,2469,2471,2466,2467,2470,2471,2468,2469,2470,2471,2473,2475,2477,2479,2476,2477,2478,2479,2481,2483,2485,2487,2482,2483,2486,2487,2484,2485,2486,2487,2489,2491,2493,2495,2490,2491,2494,2495,2492,2493,2494,2495,2496,2497,2500,2501,2497,2499,2501,2503,2498,2499,2502,2503,2496,2498,2500,2502,2500,2501,2502,2503,2504,2505,2508,2509,2506,2507,2510,2511,2508,2509,2510,2511,2513,2515,2517,2519,2516,2517,2518,2519,2521,2523,2525,2527,2524,2525,2526,2527,2529,2531,2533,2535,2530,2531,2534,2535,2528,2530,2532,2534,2532,2533,2534,2535,2538,2539,2542,2543,2540,2541,2542,2543,2545,2547,2549,2551,2546,2547,2550,2551,2548,2549,2550,2551,2553,2555,2557,2559,2554,2555,2558,2559,2556,2557,2558,2559,2560,2561,2564,2565,2561,2563,2565,2567,2562,2563,2566,2567,2560,2562,2564,2566,2564,2565,2566,2567,2568,2569,2572,2573,2569,2571,2573,2575,2570,2571,2574,2575,2568,2570,2572,2574,2572,2573,2574,2575,2576,2577,2578,2579,2576,2577,2580,2581,2578,2579,2582,2583,2576,2578,2580,2582,2580,2581,2582,2583,2584,2585,2588,2589,2586,2587,2590,2591,2584,2586,2588,2590,2592,2593,2596,2597,2593,2595,2597,2599,2592,2594,2596,2598,2596,2597,2598,2599,2600,2601,2604,2605,2601,2603,2605,2607,2600,2602,2604,2606,2604,2605,2606,2607,2608,2609,2610,2611,2608,2609,2612,2613,2609,2611,2613,2615,2612,2613,2614,2615,2616,2617,2620,2621,2617,2619,2621,2623,2624,2625,2628,2629,2625,2627,2629,2631,2624,2626,2628,2630,2628,2629,2630,2631,2632,2633,2636,2637,2632,2634,2636,2638,2636,2637,2638,2639,2641,2643,2645,2647,2640,2642,2644,2646,2644,2645,2646,2647,2649,2651,2653,2655,2652,2653,2654,2655,2657,2659,2661,2663,2658,2659,2662,2663,2656,2658,2660,2662,2660,2661,2662,2663,2666,2667,2670,2671,2664,2666,2668,2670,2668,2669,2670,2671,2673,2675,2677,2679,2672,2674,2676,2678,2676,2677,2678,2679,2681,2683,2685,2687,2684,2685,2686,2687,2688,2689,2692,2693,2689,2691,2693,2695,2690,2691,2694,2695,2688,2690,2692,2694,2692,2693,2694,2695,2696,2697,2700,2701,2698,2699,2702,2703,2696,2698,2700,2702,2700,2701,2702,2703,2705,2707,2709,2711,2704,2706,2708,2710,2708,2709,2710,2711,2713,2715,2717,2719,2716,2717,2718,2719,2721,2723,2725,2727,2722,2723,2726,2727,2720,2722,2724,2726,2724,2725,2726,2727,2730,2731,2734,2735,2728,2730,2732,2734,2732,2733,2734,2735,2737,2739,2741,2743,2738,2739,2742,2743,2736,2738,2740,2742,2740,2741,2742,2743,2745,2747,2749,2751,2746,2747,2750,2751,2748,2749,2750,2751,2752,2753,2754,2755,2753,2755,2757,2759,2754,2755,2758,2759,2752,2754,2756,2758,2756,2757,2758,2759,2760,2761,2762,2763,2761,2763,2765,2767,2762,2763,2766,2767,2760,2762,2764,2766,2764,2765,2766,2767,2768,2769,2772,2773,2769,2771,2773,2775,2770,2771,2774,2775,2768,2770,2772,2774,2777,2779,2781,2783,2776,2778,2780,2782,2786,2787,2790,2791,2784,2786,2788,2790,2788,2789,2790,2791,2794,2795,2798,2799,2792,2794,2796,2798,2796,2797,2798,2799,2800,2801,2804,2805,2802,2803,2806,2807,2800,2802,2804,2806,2804,2805,2806,2807,2808,2810,2812,2814,2812,2813,2814,2815,2816,2817,2818,2819,2816,2817,2820,2821,2818,2819,2822,2823,2816,2818,2820,2822,2820,2821,2822,2823,2824,2825,2826,2827,2826,2827,2830,2831,2824,2826,2828,2830,2828,2829,2830,2831,2832,2833,2834,2835,2832,2833,2836,2837,2834,2835,2838,2839,2832,2834,2836,2838,2840,2841,2842,2843,2840,2841,2844,2845,2840,2842,2844,2846,2848,2849,2850,2851,2848,2849,2852,2853,2850,2851,2854,2855,2848,2850,2852,2854,2852,2853,2854,2855,2856,2857,2858,2859,2858,2859,2862,2863,2856,2858,2860,2862,2860,2861,2862,2863,2864,2865,2868,2869,2866,2867,2870,2871,2864,2866,2868,2870,2868,2869,2870,2871,2872,2873,2876,2877,2872,2874,2876,2878,2876,2877,2878,2879,2880,2881,2882,2883,2880,2881,2884,2885,2881,2883,2885,2887,2880,2882,2884,2886,2884,2885,2886,2887,2888,2889,2890,2891,2888,2889,2892,2893,2892,2893,2894,2895,2896,2897,2898,2899,2896,2898,2900,2902,2900,2901,2902,2903,2904,2905,2906,2907,2904,2906,2908,2910,2908,2909,2910,2911,2912,2913,2914,2915,2913,2915,2917,2919,2914,2915,2918,2919,2912,2914,2916,2918,2920,2921,2922,2923,2922,2923,2926,2927,2928,2929,2930,2931,2928,2930,2932,2934,2936,2937,2938,2939,2936,2938,2940,2942,2944,2945,2946,2947,2944,2945,2948,2949,2945,2947,2949,2951,2946,2947,2950,2951,2944,2946,2948,2950,2952,2953,2954,2955,2952,2953,2956,2957,2954,2955,2958,2959,2960,2961,2962,2963,2960,2962,2964,2966,2968,2969,2970,2971,2968,2970,2972,2974,2977,2979,2981,2983,2978,2979,2982,2983,2976,2978,2980,2982,2986,2987,2990,2991,2994,2995,2998,2999,2992,2994,2996,2998,3002,3003,3006,3007,3000,3002,3004,3006,3009,3011,3013,3015,3010,3011,3014,3015,3008,3010,3012,3014,3012,3013,3014,3015,3017,3019,3021,3023,3018,3019,3022,3023,3016,3018,3020,3022,3024,3025,3026,3027,3026,3027,3030,3031,3034,3035,3038,3039,3042,3043,3046,3047,3040,3042,3044,3046,3044,3045,3046,3047,3050,3051,3054,3055,3048,3050,3052,3054,3056,3057,3058,3059,3058,3059,3062,3063,3056,3058,3060,3062,3066,3067,3070,3071,3064,3066,3068,3070,3072,3073,3074,3075,3072,3073,3076,3077,3074,3075,3078,3079,3072,3074,3076,3078,3076,3077,3078,3079,3080,3081,3084,3085,3082,3083,3086,3087,3080,3082,3084,3086,3084,3085,3086,3087,3088,3089,3090,3091,3088,3089,3092,3093,3090,3091,3094,3095,3088,3090,3092,3094,3092,3093,3094,3095,3096,3097,3098,3099,3096,3097,3100,3101,3098,3099,3102,3103,3096,3098,3100,3102,3104,3105,3106,3107,3104,3105,3108,3109,3105,3107,3109,3111,3104,3106,3108,3110,3108,3109,3110,3111,3112,3113,3116,3117,3113,3115,3117,3119,3112,3114,3116,3118,3116,3117,3118,3119,3120,3121,3122,3123,3120,3121,3124,3125,3124,3125,3126,3127,3128,3129,3130,3131,3128,3129,3132,3133,3136,3137,3138,3139,3136,3137,3140,3141,3136,3138,3140,3142,3140,3141,3142,3143,3144,3145,3146,3147,3144,3145,3148,3149,3144,3146,3148,3150,3148,3149,3150,3151,3152,3153,3154,3155,3153,3155,3157,3159,3152,3154,3156,3158,3156,3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3167,3170,3171,3174,3175,3168,3170,3172,3174,3172,3173,3174,3175,3178,3179,3182,3183,3176,3178,3180,3182,3180,3181,3182,3183,3185,3187,3189,3191,3184,3186,3188,3190,3188,3189,3190,3191,3196,3197,3198,3199,3200,3201,3204,3205,3202,3203,3206,3207,3200,3202,3204,3206,3204,3205,3206,3207,3208,3209,3212,3213,3210,3211,3214,3215,3208,3210,3212,3214,3212,3213,3214,3215,3217,3219,3221,3223,3216,3218,3220,3222,3220,3221,3222,3223,3228,3229,3230,3231,3234,3235,3238,3239,3232,3234,3236,3238,3236,3237,3238,3239,3242,3243,3246,3247,3240,3242,3244,3246,3244,3245,3246,3247,3249,3251,3253,3255,3250,3251,3254,3255,3248,3250,3252,3254,3252,3253,3254,3255,3258,3259,3262,3263,3260,3261,3262,3263,3264,3265,3266,3267,3266,3267,3270,3271,3264,3266,3268,3270,3268,3269,3270,3271,3272,3273,3274,3275,3274,3275,3278,3279,3272,3274,3276,3278,3276,3277,3278,3279,3280,3281,3284,3285,3282,3283,3286,3287,3280,3282,3284,3286,3288,3290,3292,3294,3298,3299,3302,3303,3296,3298,3300,3302,3300,3301,3302,3303,3306,3307,3310,3311,3304,3306,3308,3310,3308,3309,3310,3311,3312,3313,3316,3317,3314,3315,3318,3319,3312,3314,3316,3318,3316,3317,3318,3319,3320,3322,3324,3326,3324,3325,3326,3327,3328,3329,3330,3331,3328,3329,3332,3333,3330,3331,3334,3335,3328,3330,3332,3334,3332,3333,3334,3335,3336,3337,3338,3339,3338,3339,3342,3343,3336,3338,3340,3342,3340,3341,3342,3343,3344,3345,3346,3347,3344,3345,3348,3349,3346,3347,3350,3351,3344,3346,3348,3350,3352,3353,3354,3355,3352,3353,3356,3357,3352,3354,3356,3358,3360,3361,3362,3363,3360,3361,3364,3365,3362,3363,3366,3367,3364,3365,3366,3367,3368,3369,3370,3371,3370,3371,3374,3375,3372,3373,3374,3375,3376,3377,3380,3381,3378,3379,3382,3383,3380,3381,3382,3383,3384,3385,3388,3389,3388,3389,3390,3391,3392,3393,3394,3395,3392,3393,3396,3397,3393,3395,3397,3399,3396,3397,3398,3399,3400,3401,3402,3403,3400,3401,3404,3405,3404,3405,3406,3407,3408,3409,3410,3411,3408,3410,3412,3414,3412,3413,3414,3415,3416,3417,3418,3419,3420,3421,3422,3423,3424,3425,3426,3427,3425,3427,3429,3431,3426,3427,3430,3431,3432,3433,3434,3435,3434,3435,3438,3439,3440,3441,3442,3443,3440,3442,3444,3446,3448,3449,3450,3451,3456,3457,3458,3459,3456,3457,3460,3461,3457,3459,3461,3463,3458,3459,3462,3463,3464,3465,3466,3467,3464,3465,3468,3469,3466,3467,3470,3471,3472,3473,3474,3475,3472,3474,3476,3478,3480,3481,3482,3483,3488,3489,3490,3491,3489,3491,3493,3495,3490,3491,3494,3495,3496,3497,3498,3499,3498,3499,3502,3503,3504,3505,3506,3507,3506,3507,3510,3511,3504,3506,3508,3510,3512,3513,3514,3515,3514,3515,3518,3519,3520,3521,3522,3523,3521,3523,3525,3527,3522,3523,3526,3527,3524,3525,3526,3527,3529,3531,3533,3535,3530,3531,3534,3535,3536,3537,3538,3539,3538,3539,3542,3543,3544,3545,3546,3547,3546,3547,3550,3551,3552,3553,3554,3555,3554,3555,3558,3559,3552,3554,3556,3558,3556,3557,3558,3559,3562,3563,3566,3567,3560,3562,3564,3566,3568,3569,3570,3571,3570,3571,3574,3575,3576,3577,3578,3579,3578,3579,3582,3583,3584,3585,3586,3587,3584,3585,3588,3589,3585,3587,3589,3591,3586,3587,3590,3591,3592,3593,3594,3595,3592,3593,3596,3597,3593,3595,3597,3599,3600,3601,3602,3603,3600,3601,3604,3605,3601,3603,3605,3607,3602,3603,3606,3607,3608,3609,3610,3611,3609,3611,3613,3615,3610,3611,3614,3615,3616,3617,3618,3619,3616,3617,3620,3621,3617,3619,3621,3623,3618,3619,3622,3623,3620,3621,3622,3623,3624,3625,3626,3627,3624,3625,3628,3629,3625,3627,3629,3631,3628,3629,3630,3631,3632,3633,3636,3637,3633,3635,3637,3639,3634,3635,3638,3639,3641,3643,3645,3647,3642,3643,3646,3647,3648,3649,3650,3651,3648,3649,3652,3653,3649,3651,3653,3655,3650,3651,3654,3655,3656,3657,3658,3659,3656,3657,3660,3661,3657,3659,3661,3663,3658,3659,3662,3663,3664,3665,3666,3667,3664,3665,3668,3669,3666,3667,3670,3671,3668,3669,3670,3671,3672,3673,3676,3677,3674,3675,3678,3679,3680,3681,3682,3683,3680,3681,3684,3685,3680,3682,3684,3686,3688,3689,3690,3691,3688,3689,3692,3693,3688,3690,3692,3694,3696,3697,3698,3699,3696,3697,3700,3701,3700,3701,3702,3703,3704,3705,3708,3709,3712,3713,3714,3715,3712,3713,3716,3717,3713,3715,3717,3719,3712,3714,3716,3718,3720,3721,3722,3723,3720,3721,3724,3725,3721,3723,3725,3727,3720,3722,3724,3726,3728,3729,3730,3731,3728,3729,3732,3733,3732,3733,3734,3735,3736,3737,3740,3741,3744,3745,3746,3747,3744,3746,3748,3750,3752,3753,3754,3755,3752,3754,3756,3758,3760,3761,3762,3763,3760,3762,3764,3766,3764,3765,3766,3767,3768,3770,3772,3774,3776,3777,3778,3779,3778,3779,3782,3783,3776,3778,3780,3782,3784,3785,3786,3787,3786,3787,3790,3791,3792,3793,3794,3795,3793,3795,3797,3799,3800,3801,3802,3803,3808,3809,3810,3811,3808,3809,3812,3813,3808,3810,3812,3814,3816,3817,3818,3819,3816,3817,3820,3821,3824,3825,3826,3827,3825,3827,3829,3831,3832,3833,3834,3835,3840,3841,3842,3843,3841,3843,3845,3847,3842,3843,3846,3847,3840,3842,3844,3846,3848,3849,3850,3851,3850,3851,3854,3855,3856,3857,3858,3859,3857,3859,3861,3863,3858,3859,3862,3863,3864,3865,3866,3867,3865,3867,3869,3871,3866,3867,3870,3871,3872,3873,3876,3877,3873,3875,3877,3879,3874,3875,3878,3879,3872,3874,3876,3878,3880,3881,3884,3885,3882,3883,3886,3887,3889,3891,3893,3895,3897,3899,3901,3903,3905,3907,3909,3911,3906,3907,3910,3911,3908,3909,3910,3911,3913,3915,3917,3919,3914,3915,3918,3919,3920,3921,3922,3923,3922,3923,3926,3927,3930,3931,3934,3935,3938,3939,3942,3943,3936,3938,3940,3942,3940,3941,3942,3943,3946,3947,3950,3951,3944,3946,3948,3950,3952,3953,3954,3955,3954,3955,3958,3959,3962,3963,3966,3967,3969,3971,3973,3975,3970,3971,3974,3975,3968,3970,3972,3974,3972,3973,3974,3975,3977,3979,3981,3983,3978,3979,3982,3983,3976,3978,3980,3982,3984,3985,3986,3987,3986,3987,3990,3991,3994,3995,3998,3999,4002,4003,4006,4007,4000,4002,4004,4006,4004,4005,4006,4007,4010,4011,4014,4015,4008,4010,4012,4014,4016,4017,4018,4019,4018,4019,4022,4023,4016,4018,4020,4022,4026,4027,4030,4031,4024,4026,4028,4030,4032,4033,4036,4037,4034,4035,4038,4039,4032,4034,4036,4038,4036,4037,4038,4039,4040,4042,4044,4046,4044,4045,4046,4047,4050,4051,4054,4055,4048,4050,4052,4054,4058,4059,4062,4063,4056,4058,4060,4062,4064,4065,4066,4067,4064,4065,4068,4069,4066,4067,4070,4071,4072,4073,4074,4075,4082,4083,4086,4087,4090,4091,4094,4095,4097,4099,4101,4103,4098,4099,4102,4103,4100,4101,4102,4103,4105,4107,4109,4111,4106,4107,4110,4111,4108,4109,4110,4111,4112,4113,4114,4115,4113,4115,4117,4119,4114,4115,4118,4119,4116,4117,4118,4119,4121,4123,4125,4127,4122,4123,4126,4127,4129,4131,4133,4135,4130,4131,4134,4135,4128,4130,4132,4134,4132,4133,4134,4135,4137,4139,4141,4143,4138,4139,4142,4143,4136,4138,4140,4142,4140,4141,4142,4143,4144,4145,4146,4147,4146,4147,4150,4151,4148,4149,4150,4151,4154,4155,4158,4159,4161,4163,4165,4167,4162,4163,4166,4167,4164,4165,4166,4167,4169,4171,4173,4175,4170,4171,4174,4175,4172,4173,4174,4175,4177,4179,4181,4183,4178,4179,4182,4183,4176,4178,4180,4182,4180,4181,4182,4183,4186,4187,4190,4191,4188,4189,4190,4191,4192,4193,4196,4197,4193,4195,4197,4199,4194,4195,4198,4199,4196,4197,4198,4199,4200,4201,4204,4205,4201,4203,4205,4207,4202,4203,4206,4207,4204,4205,4206,4207,4209,4211,4213,4215,4208,4210,4212,4214,4212,4213,4214,4215,4220,4221,4222,4223,4224,4225,4228,4229,4225,4227,4229,4231,4226,4227,4230,4231,4228,4229,4230,4231,4232,4233,4236,4237,4233,4235,4237,4239,4234,4235,4238,4239,4236,4237,4238,4239,4241,4243,4245,4247,4242,4243,4246,4247,4240,4242,4244,4246,4244,4245,4246,4247,4250,4251,4254,4255,4252,4253,4254,4255,4256,4257,4260,4261,4257,4259,4261,4263,4258,4259,4262,4263,4260,4261,4262,4263,4264,4265,4268,4269,4265,4267,4269,4271,4266,4267,4270,4271,4268,4269,4270,4271,4272,4273,4276,4277,4273,4275,4277,4279,4272,4274,4276,4278,4276,4277,4278,4279,4280,4281,4284,4285,4284,4285,4286,4287,4288,4289,4290,4291,4288,4289,4292,4293,4289,4291,4293,4295,4292,4293,4294,4295,4296,4297,4298,4299,4297,4299,4301,4303,4300,4301,4302,4303,4305,4307,4309,4311,4306,4307,4310,4311,4313,4315,4317,4319,4320,4321,4324,4325,4321,4323,4325,4327,4324,4325,4326,4327,4329,4331,4333,4335,4332,4333,4334,4335,4337,4339,4341,4343,4338,4339,4342,4343,4340,4341,4342,4343,4345,4347,4349,4351,4348,4349,4350,4351,4352,4353,4354,4355,4352,4353,4356,4357,4353,4355,4357,4359,4354,4355,4358,4359,4356,4357,4358,4359,4360,4361,4362,4363,4361,4363,4365,4367,4364,4365,4366,4367,4368,4369,4370,4371,4369,4371,4373,4375,4370,4371,4374,4375,4376,4377,4378,4379,4377,4379,4381,4383,4378,4379,4382,4383,4384,4385,4386,4387,4384,4385,4388,4389,4385,4387,4389,4391,4386,4387,4390,4391,4388,4389,4390,4391,4392,4393,4394,4395,4393,4395,4397,4399,4396,4397,4398,4399,4401,4403,4405,4407,4402,4403,4406,4407,4404,4405,4406,4407,4409,4411,4413,4415,4410,4411,4414,4415,4412,4413,4414,4415,4416,4417,4418,4419,4417,4419,4421,4423,4418,4419,4422,4423,4416,4418,4420,4422,4420,4421,4422,4423,4424,4425,4426,4427,4426,4427,4430,4431,4428,4429,4430,4431,4432,4433,4434,4435,4433,4435,4437,4439,4434,4435,4438,4439,4436,4437,4438,4439,4440,4441,4442,4443,4441,4443,4445,4447,4442,4443,4446,4447,4444,4445,4446,4447,4448,4449,4450,4451,4448,4449,4452,4453,4449,4451,4453,4455,4450,4451,4454,4455,4448,4450,4452,4454,4456,4457,4458,4459,4456,4457,4460,4461,4458,4459,4462,4463,4464,4465,4466,4467,4465,4467,4469,4471,4472,4473,4474,4475,4473,4475,4477,4479,4480,4481,4482,4483,4480,4481,4484,4485,4481,4483,4485,4487,4482,4483,4486,4487,4480,4482,4484,4486,4488,4489,4490,4491,4488,4489,4492,4493,4490,4491,4494,4495,4496,4497,4498,4499,4497,4499,4501,4503,4498,4499,4502,4503,4504,4505,4506,4507,4505,4507,4509,4511,4506,4507,4510,4511,4512,4513,4516,4517,4513,4515,4517,4519,4514,4515,4518,4519,4512,4514,4516,4518,4520,4521,4524,4525,4522,4523,4526,4527,4528,4529,4532,4533,4529,4531,4533,4535,4536,4537,4540,4541,4537,4539,4541,4543,4544,4545,4548,4549,4545,4547,4549,4551,4544,4546,4548,4550,4548,4549,4550,4551,4552,4553,4556,4557,4553,4555,4557,4559,4552,4554,4556,4558,4560,4561,4562,4563,4560,4561,4564,4565,4568,4569,4572,4573,4577,4579,4581,4583,4580,4581,4582,4583,4585,4587,4589,4591,4592,4593,4594,4595,4593,4595,4597,4599,4601,4603,4605,4607,4609,4611,4613,4615,4610,4611,4614,4615,4612,4613,4614,4615,4617,4619,4621,4623,4618,4619,4622,4623,4620,4621,4622,4623,4625,4627,4629,4631,4626,4627,4630,4631,4624,4626,4628,4630,4628,4629,4630,4631,4634,4635,4638,4639,4636,4637,4638,4639,4640,4641,4644,4645,4641,4643,4645,4647,4642,4643,4646,4647,4644,4645,4646,4647,4648,4649,4652,4653,4649,4651,4653,4655,4650,4651,4654,4655,4652,4653,4654,4655,4657,4659,4661,4663,4656,4658,4660,4662,4660,4661,4662,4663,4668,4669,4670,4671,4673,4675,4677,4679,4674,4675,4678,4679,4676,4677,4678,4679,4681,4683,4685,4687,4682,4683,4686,4687,4684,4685,4686,4687,4688,4689,4692,4693,4689,4691,4693,4695,4690,4691,4694,4695,4692,4693,4694,4695,4697,4699,4701,4703,4700,4701,4702,4703,4704,4705,4706,4707,4705,4707,4709,4711,4706,4707,4710,4711,4708,4709,4710,4711,4712,4713,4714,4715,4713,4715,4717,4719,4714,4715,4718,4719,4716,4717,4718,4719,4720,4721,4724,4725,4721,4723,4725,4727,4722,4723,4726,4727,4729,4731,4733,4735,4736,4737,4738,4739,4737,4739,4741,4743,4738,4739,4742,4743,4740,4741,4742,4743,4744,4745,4746,4747,4745,4747,4749,4751,4746,4747,4750,4751,4748,4749,4750,4751,4752,4753,4756,4757,4753,4755,4757,4759,4754,4755,4758,4759,4756,4757,4758,4759,4761,4763,4765,4767,4764,4765,4766,4767,4768,4769,4770,4771,4769,4771,4773,4775,4770,4771,4774,4775,4772,4773,4774,4775,4776,4777,4778,4779,4777,4779,4781,4783,4778,4779,4782,4783,4780,4781,4782,4783,4784,4785,4786,4787,4784,4785,4788,4789,4785,4787,4789,4791,4786,4787,4790,4791,4792,4793,4794,4795,4793,4795,4797,4799,4800,4801,4802,4803,4801,4803,4805,4807,4802,4803,4806,4807,4800,4802,4804,4806,4809,4811,4813,4815,4810,4811,4814,4815,4808,4810,4812,4814,4818,4819,4822,4823,4820,4821,4822,4823,4826,4827,4830,4831,4832,4833,4834,4835,4833,4835,4837,4839,4834,4835,4838,4839,4841,4843,4845,4847,4842,4843,4846,4847,4849,4851,4853,4855,4850,4851,4854,4855,4852,4853,4854,4855,4857,4859,4861,4863,4858,4859,4862,4863,4864,4865,4866,4867,4865,4867,4869,4871,4866,4867,4870,4871,4864,4866,4868,4870,4868,4869,4870,4871,4873,4875,4877,4879,4874,4875,4878,4879,4872,4874,4876,4878,4882,4883,4886,4887,4880,4882,4884,4886,4884,4885,4886,4887,4890,4891,4894,4895,4888,4890,4892,4894,4892,4893,4894,4895,4896,4897,4898,4899,4897,4899,4901,4903,4898,4899,4902,4903,4896,4898,4900,4902,4900,4901,4902,4903,4905,4907,4909,4911,4906,4907,4910,4911,4904,4906,4908,4910,4913,4915,4917,4919,4914,4915,4918,4919,4916,4917,4918,4919,4921,4923,4925,4927,4922,4923,4926,4927,4924,4925,4926,4927,4928,4929,4932,4933,4929,4931,4933,4935,4930,4931,4934,4935,4928,4930,4932,4934,4932,4933,4934,4935,4937,4939,4941,4943,4936,4938,4940,4942,4940,4941,4942,4943,4945,4947,4949,4951,4946,4947,4950,4951,4944,4946,4948,4950,4948,4949,4950,4951,4953,4955,4957,4959,4954,4955,4958,4959,4952,4954,4956,4958,4956,4957,4958,4959,4960,4961,4962,4963,4960,4961,4964,4965,4962,4963,4966,4967,4960,4962,4964,4966,4964,4965,4966,4967,4968,4969,4970,4971,4968,4970,4972,4974,4972,4973,4974,4975,4978,4979,4982,4983,4976,4978,4980,4982,4986,4987,4990,4991,4984,4986,4988,4990,4992,4993,4994,4995,4992,4993,4996,4997,4994,4995,4998,4999,4992,4994,4996,4998,4996,4997,4998,4999,5000,5001,5002,5003,5000,5002,5004,5006,5004,5005,5006,5007,5010,5011,5014,5015,5008,5010,5012,5014,5012,5013,5014,5015,5018,5019,5022,5023,5016,5018,5020,5022,5020,5021,5022,5023,5024,5025,5026,5027,5024,5025,5028,5029,5026,5027,5030,5031,5028,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,5040,5041,5042,5043,5042,5043,5046,5047,5048,5049,5050,5051,5050,5051,5054,5055,5056,5057,5058,5059,5056,5057,5060,5061,5057,5059,5061,5063,5058,5059,5062,5063,5064,5065,5066,5067,5064,5065,5068,5069,5066,5067,5070,5071,5072,5073,5074,5075,5072,5074,5076,5078,5080,5081,5082,5083,5089,5091,5093,5095,5090,5091,5094,5095,5098,5099,5102,5103,5106,5107,5110,5111,5104,5106,5108,5110,5114,5115,5118,5119,5121,5123,5125,5127,5122,5123,5126,5127,5120,5122,5124,5126,5124,5125,5126,5127,5129,5131,5133,5135,5130,5131,5134,5135,5132,5133,5134,5135,5137,5139,5141,5143,5138,5139,5142,5143,5136,5138,5140,5142,5140,5141,5142,5143,5146,5147,5150,5151,5144,5146,5148,5150,5148,5149,5150,5151,5152,5153,5156,5157,5153,5155,5157,5159,5154,5155,5158,5159,5152,5154,5156,5158,5156,5157,5158,5159,5160,5161,5164,5165,5161,5163,5165,5167,5162,5163,5166,5167,5164,5165,5166,5167,5169,5171,5173,5175,5168,5170,5172,5174,5172,5173,5174,5175,5176,5178,5180,5182,5180,5181,5182,5183,5185,5187,5189,5191,5186,5187,5190,5191,5184,5186,5188,5190,5188,5189,5190,5191,5193,5195,5197,5199,5194,5195,5198,5199,5192,5194,5196,5198,5196,5197,5198,5199,5200,5201,5204,5205,5201,5203,5205,5207,5202,5203,5206,5207,5200,5202,5204,5206,5204,5205,5206,5207,5209,5211,5213,5215,5208,5210,5212,5214,5212,5213,5214,5215,5216,5217,5218,5219,5217,5219,5221,5223,5218,5219,5222,5223,5220,5221,5222,5223,5224,5225,5226,5227,5225,5227,5229,5231,5226,5227,5230,5231,5228,5229,5230,5231,5232,5233,5236,5237,5233,5235,5237,5239,5234,5235,5238,5239,5241,5243,5245,5247,5248,5249,5250,5251,5249,5251,5253,5255,5250,5251,5254,5255,5252,5253,5254,5255,5256,5257,5258,5259,5257,5259,5261,5263,5258,5259,5262,5263,5260,5261,5262,5263,5264,5265,5268,5269,5265,5267,5269,5271,5266,5267,5270,5271,5268,5269,5270,5271,5273,5275,5277,5279,5276,5277,5278,5279,5280,5281,5282,5283,5281,5283,5285,5287,5282,5283,5286,5287,5284,5285,5286,5287,5288,5289,5290,5291,5289,5291,5293,5295,5290,5291,5294,5295,5292,5293,5294,5295,5296,5297,5298,5299,5296,5297,5300,5301,5297,5299,5301,5303,5298,5299,5302,5303,5304,5305,5306,5307,5305,5307,5309,5311,5312,5313,5314,5315,5313,5315,5317,5319,5314,5315,5318,5319,5312,5314,5316,5318,5320,5321,5322,5323,5321,5323,5325,5327,5322,5323,5326,5327,5320,5322,5324,5326,5329,5331,5333,5335,5330,5331,5334,5335,5328,5330,5332,5334,5337,5339,5341,5343,5338,5339,5342,5343,5336,5338,5340,5342,5344,5345,5348,5349,5346,5347,5350,5351,5348,5349,5350,5351,5356,5357,5358,5359,5362,5363,5366,5367,5370,5371,5374,5375,5376,5377,5378,5379,5377,5379,5381,5383,5376,5378,5380,5382,5380,5381,5382,5383,5385,5387,5389,5391,5384,5386,5388,5390,5393,5395,5397,5399,5396,5397,5398,5399,5401,5403,5405,5407,5404,5405,5406,5407,5409,5411,5413,5415,5408,5410,5412,5414,5412,5413,5414,5415,5417,5419,5421,5423,5416,5418,5420,5422,5420,5421,5422,5423,5424,5425,5426,5427,5424,5426,5428,5430,5428,5429,5430,5431,5432,5434,5436,5438,5440,5441,5442,5443,5440,5442,5444,5446,5444,5445,5446,5447,5448,5450,5452,5454,5452,5453,5454,5455,5456,5457,5458,5459,5456,5458,5460,5462,5460,5461,5462,5463,5464,5465,5466,5467,5464,5466,5468,5470,5472,5473,5474,5475,5473,5475,5477,5479,5472,5474,5476,5478,5480,5481,5482,5483,5488,5490,5492,5494,5496,5498,5500,5502,5504,5505,5508,5509,5504,5506,5508,5510,5508,5509,5510,5511,5512,5513,5516,5517,5512,5514,5516,5518,5516,5517,5518,5519,5520,5521,5524,5525,5522,5523,5526,5527,5520,5522,5524,5526,5524,5525,5526,5527,5528,5530,5532,5534,5532,5533,5534,5535,5536,5537,5538,5539,5536,5537,5540,5541,5536,5538,5540,5542,5540,5541,5542,5543,5544,5545,5546,5547,5544,5545,5548,5549,5544,5546,5548,5550,5548,5549,5550,5551,5552,5553,5556,5557,5554,5555,5558,5559,5552,5554,5556,5558,5560,5562,5564,5566,5568,5569,5572,5573,5568,5570,5572,5574,5572,5573,5574,5575,5576,5577,5580,5581,5576,5578,5580,5582,5580,5581,5582,5583,5584,5585,5588,5589,5584,5586,5588,5590,5588,5589,5590,5591,5592,5593,5596,5597,5592,5594,5596,5598,5596,5597,5598,5599,5600,5601,5602,5603,5600,5601,5604,5605,5602,5603,5606,5607,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,5615,5616,5617,5620,5621,5624,5625,5628,5629,5633,5635,5637,5639,5636,5637,5638,5639,5641,5643,5645,5647,5644,5645,5646,5647,5648,5649,5650,5651,5649,5651,5653,5655,5652,5653,5654,5655,5657,5659,5661,5663,5665,5667,5669,5671,5668,5669,5670,5671,5676,5677,5678,5679,5680,5682,5684,5686,5684,5685,5686,5687,5692,5693,5694,5695,5697,5699,5701,5703,5698,5699,5702,5703,5696,5698,5700,5702,5700,5701,5702,5703,5706,5707,5710,5711,5708,5709,5710,5711,5714,5715,5718,5719,5712,5714,5716,5718,5716,5717,5718,5719,5722,5723,5726,5727,5720,5722,5724,5726,5724,5725,5726,5727,5728,5729,5730,5731,5730,5731,5734,5735,5728,5730,5732,5734,5732,5733,5734,5735,5736,5737,5738,5739,5737,5739,5741,5743,5738,5739,5742,5743,5736,5738,5740,5742,5740,5741,5742,5743,5746,5747,5750,5751,5744,5746,5748,5750,5753,5755,5757,5759,5754,5755,5758,5759,5752,5754,5756,5758,5760,5761,5764,5765,5762,5763,5766,5767,5764,5765,5766,5767,5772,5773,5774,5775,5778,5779,5782,5783,5780,5781,5782,5783,5786,5787,5790,5791,5788,5789,5790,5791,5792,5793,5794,5795,5793,5795,5797,5799,5796,5797,5798,5799,5801,5803,5805,5807,5809,5811,5813,5815,5812,5813,5814,5815,5817,5819,5821,5823,5820,5821,5822,5823,5824,5825,5826,5827,5824,5825,5828,5829,5825,5827,5829,5831,5828,5829,5830,5831,5832,5833,5834,5835,5833,5835,5837,5839,5836,5837,5838,5839,5841,5843,5845,5847,5842,5843,5846,5847,5849,5851,5853,5855,5856,5857,5860,5861,5860,5861,5862,5863,5868,5869,5870,5871,5874,5875,5878,5879,5876,5877,5878,5879,5884,5885,5886,5887,5888,5889,5892,5893,5889,5891,5893,5895,5888,5890,5892,5894,5892,5893,5894,5895,5896,5897,5900,5901,5897,5899,5901,5903,5896,5898,5900,5902,5900,5901,5902,5903,5904,5905,5908,5909,5905,5907,5909,5911,5906,5907,5910,5911,5904,5906,5908,5910,5908,5909,5910,5911,5913,5915,5917,5919,5912,5914,5916,5918,5916,5917,5918,5919,5920,5921,5922,5923,5920,5921,5924,5925,5920,5922,5924,5926,5924,5925,5926,5927,5928,5929,5930,5931,5928,5929,5932,5933,5928,5930,5932,5934,5932,5933,5934,5935,5936,5937,5940,5941,5938,5939,5942,5943,5936,5938,5940,5942,5944,5946,5948,5950,5952,5953,5956,5957,5952,5954,5956,5958,5956,5957,5958,5959,5960,5961,5964,5965,5960,5962,5964,5966,5964,5965,5966,5967,5968,5969,5972,5973,5968,5970,5972,5974,5972,5973,5974,5975,5976,5977,5980,5981,5976,5978,5980,5982,5980,5981,5982,5983,5984,5985,5986,5987,5984,5985,5988,5989,5986,5987,5990,5991,5988,5989,5990,5991,5992,5993,5994,5995,5996,5997,5998,5999,6000,6001,6004,6005,6008,6009,6012,6013,6016,6017,6020,6021,6017,6019,6021,6023,6020,6021,6022,6023,6024,6025,6028,6029,6025,6027,6029,6031,6028,6029,6030,6031,6032,6033,6034,6035,6032,6033,6036,6037,6033,6035,6037,6039,6036,6037,6038,6039,6040,6041,6044,6045,6041,6043,6045,6047,6048,6049,6052,6053,6049,6051,6053,6055,6052,6053,6054,6055,6056,6057,6060,6061,6057,6059,6061,6063,6060,6061,6062,6063,6064,6065,6068,6069,6065,6067,6069,6071,6064,6066,6068,6070,6068,6069,6070,6071,6072,6073,6076,6077,6076,6077,6078,6079,6080,6081,6084,6085,6081,6083,6085,6087,6082,6083,6086,6087,6080,6082,6084,6086,6084,6085,6086,6087,6088,6089,6092,6093,6089,6091,6093,6095,6090,6091,6094,6095,6092,6093,6094,6095,6096,6097,6100,6101,6097,6099,6101,6103,6098,6099,6102,6103,6096,6098,6100,6102,6100,6101,6102,6103,6104,6105,6108,6109,6106,6107,6110,6111,6104,6106,6108,6110,6108,6109,6110,6111,6112,6113,6114,6115,6112,6113,6116,6117,6114,6115,6118,6119,6112,6114,6116,6118,6116,6117,6118,6119,6120,6121,6122,6123,6121,6123,6125,6127,6122,6123,6126,6127,6120,6122,6124,6126,6124,6125,6126,6127,6128,6129,6132,6133,6130,6131,6134,6135,6128,6130,6132,6134,6137,6139,6141,6143,6138,6139,6142,6143,6136,6138,6140,6142,6144,6145,6148,6149,6146,6147,6150,6151,6148,6149,6150,6151,6152,6153,6156,6157,6156,6157,6158,6159,6160,6161,6164,6165,6162,6163,6166,6167,6164,6165,6166,6167,6170,6171,6174,6175,6172,6173,6174,6175,6176,6177,6178,6179,6177,6179,6181,6183,6180,6181,6182,6183,6185,6187,6189,6191,6193,6195,6197,6199,6196,6197,6198,6199,6201,6203,6205,6207,6204,6205,6206,6207,6208,6209,6210,6211,6208,6209,6212,6213,6209,6211,6213,6215,6212,6213,6214,6215,6216,6217,6218,6219,6217,6219,6221,6223,6220,6221,6222,6223,6225,6227,6229,6231,6226,6227,6230,6231,6233,6235,6237,6239,6240,6241,6244,6245,6241,6243,6245,6247,6244,6245,6246,6247,6249,6251,6253,6255,6252,6253,6254,6255,6257,6259,6261,6263,6258,6259,6262,6263,6260,6261,6262,6263,6265,6267,6269,6271,6268,6269,6270,6271,6272,6273,6274,6275,6272,6273,6276,6277,6273,6275,6277,6279,6276,6277,6278,6279,6280,6281,6282,6283,6280,6281,6284,6285,6281,6283,6285,6287,6284,6285,6286,6287,6288,6289,6290,6291,6288,6289,6292,6293,6289,6291,6293,6295,6288,6290,6292,6294,6292,6293,6294,6295,6296,6297,6298,6299,6296,6297,6300,6301,6300,6301,6302,6303,6304,6305,6306,6307,6304,6305,6308,6309,6305,6307,6309,6311,6306,6307,6310,6311,6312,6313,6314,6315,6312,6313,6316,6317,6313,6315,6317,6319,6314,6315,6318,6319,6320,6321,6322,6323,6321,6323,6325,6327,6320,6322,6324,6326,6328,6329,6330,6331,6336,6337,6338,6339,6336,6337,6340,6341,6337,6339,6341,6343,6344,6345,6346,6347,6344,6345,6348,6349,6345,6347,6349,6351,6352,6353,6356,6357,6353,6355,6357,6359,6354,6355,6358,6359,6361,6363,6365,6367,6368,6369,6372,6373,6369,6371,6373,6375,6372,6373,6374,6375,6376,6377,6380,6381,6377,6379,6381,6383,6380,6381,6382,6383,6384,6385,6388,6389,6385,6387,6389,6391,6386,6387,6390,6391,6393,6395,6397,6399,6400,6401,6402,6403,6400,6401,6404,6405,6401,6403,6405,6407,6404,6405,6406,6407,6408,6409,6410,6411,6408,6409,6412,6413,6409,6411,6413,6415,6412,6413,6414,6415,6416,6417,6420,6421,6417,6419,6421,6423,6418,6419,6422,6423,6425,6427,6429,6431,6432,6433,6436,6437,6433,6435,6437,6439,6436,6437,6438,6439,6440,6441,6444,6445,6441,6443,6445,6447,6444,6445,6446,6447,6448,6449,6452,6453,6449,6451,6453,6455,6450,6451,6454,6455,6452,6453,6454,6455,6457,6459,6461,6463,6460,6461,6462,6463,6464,6465,6468,6469,6465,6467,6469,6471,6464,6466,6468,6470,6468,6469,6470,6471,6472,6473,6476,6477,6473,6475,6477,6479,6472,6474,6476,6478,6476,6477,6478,6479,6480,6481,6482,6483,6480,6481,6484,6485,6484,6485,6486,6487,6488,6489,6492,6493,6496,6497,6500,6501,6497,6499,6501,6503,6500,6501,6502,6503,6504,6505,6508,6509,6505,6507,6509,6511,6508,6509,6510,6511,6512,6513,6514,6515,6512,6513,6516,6517,6513,6515,6517,6519,6516,6517,6518,6519,6520,6521,6524,6525,6521,6523,6525,6527,6528,6529,6530,6531,6528,6529,6532,6533,6529,6531,6533,6535,6528,6530,6532,6534,6532,6533,6534,6535,6536,6537,6540,6541,6537,6539,6541,6543,6536,6538,6540,6542,6540,6541,6542,6543,6544,6545,6546,6547,6544,6545,6548,6549,6544,6546,6548,6550,6548,6549,6550,6551,6552,6553,6554,6555,6552,6553,6556,6557,6552,6554,6556,6558,6560,6561,6562,6563,6560,6561,6564,6565,6561,6563,6565,6567,6560,6562,6564,6566,6564,6565,6566,6567,6568,6569,6572,6573,6569,6571,6573,6575,6568,6570,6572,6574,6572,6573,6574,6575,6576,6577,6578,6579,6576,6577,6580,6581,6577,6579,6581,6583,6580,6581,6582,6583,6584,6585,6586,6587,6584,6585,6588,6589,6585,6587,6589,6591,6592,6593,6594,6595,6592,6593,6596,6597,6593,6595,6597,6599,6594,6595,6598,6599,6592,6594,6596,6598,6600,6601,6602,6603,6601,6603,6605,6607,6600,6602,6604,6606,6608,6609,6612,6613,6609,6611,6613,6615,6608,6610,6612,6614,6616,6617,6620,6621,6617,6619,6621,6623,6616,6618,6620,6622,6624,6625,6628,6629,6626,6627,6630,6631,6624,6626,6628,6630,6628,6629,6630,6631,6632,6634,6636,6638,6636,6637,6638,6639,6640,6641,6644,6645,6640,6642,6644,6646,6648,6649,6652,6653,6648,6650,6652,6654,6656,6657,6658,6659,6656,6657,6660,6661,6658,6659,6662,6663,6656,6658,6660,6662,6660,6661,6662,6663,6664,6665,6666,6667,6664,6666,6668,6670,6668,6669,6670,6671,6672,6673,6676,6677,6672,6674,6676,6678,6680,6681,6684,6685,6680,6682,6684,6686,6688,6689,6692,6693,6690,6691,6694,6695,6688,6690,6692,6694,6692,6693,6694,6695,6700,6701,6702,6703,6704,6705,6708,6709,6708,6709,6710,6711,6712,6713,6716,6717,6712,6714,6716,6718,6716,6717,6718,6719,6720,6721,6724,6725,6721,6723,6725,6727,6722,6723,6726,6727,6720,6722,6724,6726,6724,6725,6726,6727,6728,6729,6732,6733,6730,6731,6734,6735,6732,6733,6734,6735,6736,6738,6740,6742,6740,6741,6742,6743,6748,6749,6750,6751,6752,6753,6756,6757,6753,6755,6757,6759,6756,6757,6758,6759,6760,6761,6764,6765,6764,6765,6766,6767,6768,6769,6772,6773,6768,6770,6772,6774,6772,6773,6774,6775,6776,6777,6780,6781,6776,6778,6780,6782,6780,6781,6782,6783,6784,6785,6786,6787,6784,6785,6788,6789,6785,6787,6789,6791,6784,6786,6788,6790,6788,6789,6790,6791,6792,6793,6794,6795,6792,6793,6796,6797,6793,6795,6797,6799,6796,6797,6798,6799,6800,6801,6802,6803,6800,6801,6804,6805,6801,6803,6805,6807,6800,6802,6804,6806,6804,6805,6806,6807,6808,6809,6810,6811,6808,6809,6812,6813,6808,6810,6812,6814,6812,6813,6814,6815,6816,6817,6818,6819,6816,6817,6820,6821,6817,6819,6821,6823,6818,6819,6822,6823,6816,6818,6820,6822,6824,6825,6826,6827,6824,6825,6828,6829,6825,6827,6829,6831,6826,6827,6830,6831,6832,6833,6834,6835,6833,6835,6837,6839,6832,6834,6836,6838,6840,6841,6842,6843,6840,6842,6844,6846,6848,6849,6850,6851,6848,6849,6852,6853,6849,6851,6853,6855,6848,6850,6852,6854,6856,6857,6858,6859,6856,6857,6860,6861,6857,6859,6861,6863,6856,6858,6860,6862,6864,6865,6868,6869,6865,6867,6869,6871,6866,6867,6870,6871,6864,6866,6868,6870,6873,6875,6877,6879,6872,6874,6876,6878,6880,6881,6884,6885,6881,6883,6885,6887,6884,6885,6886,6887,6888,6889,6892,6893,6889,6891,6893,6895,6892,6893,6894,6895,6896,6897,6900,6901,6897,6899,6901,6903,6898,6899,6902,6903,6905,6907,6909,6911,6912,6913,6914,6915,6912,6913,6916,6917,6913,6915,6917,6919,6916,6917,6918,6919,6920,6921,6922,6923,6920,6921,6924,6925,6921,6923,6925,6927,6924,6925,6926,6927,6928,6929,6932,6933,6929,6931,6933,6935,6930,6931,6934,6935,6937,6939,6941,6943,6944,6945,6948,6949,6945,6947,6949,6951,6948,6949,6950,6951,6952,6953,6956,6957,6953,6955,6957,6959,6956,6957,6958,6959,6960,6961,6964,6965,6961,6963,6965,6967,6962,6963,6966,6967,6964,6965,6966,6967,6969,6971,6973,6975,6972,6973,6974,6975,6976,6977,6980,6981,6977,6979,6981,6983,6976,6978,6980,6982,6980,6981,6982,6983,6984,6985,6988,6989,6985,6987,6989,6991,6984,6986,6988,6990,6988,6989,6990,6991,6992,6993,6996,6997,6993,6995,6997,6999,6992,6994,6996,6998,6996,6997,6998,6999,7000,7001,7004,7005,7001,7003,7005,7007,7000,7002,7004,7006,7004,7005,7006,7007,7008,7009,7010,7011,7008,7009,7012,7013,7010,7011,7014,7015,7012,7013,7014,7015,7016,7017,7018,7019,7020,7021,7022,7023,7024,7025,7028,7029,7032,7033,7036,7037,7040,7041,7042,7043,7041,7043,7045,7047,7040,7042,7044,7046,7044,7045,7046,7047,7049,7051,7053,7055,7048,7050,7052,7054,7052,7053,7054,7055,7056,7057,7058,7059,7057,7059,7061,7063,7060,7061,7062,7063,7064,7065,7066,7067,7065,7067,7069,7071,7072,7073,7074,7075,7073,7075,7077,7079,7072,7074,7076,7078,7081,7083,7085,7087,7080,7082,7084,7086,7088,7090,7092,7094,7092,7093,7094,7095,7096,7098,7100,7102,7104,7105,7106,7107,7104,7106,7108,7110,7108,7109,7110,7111,7112,7114,7116,7118,7120,7122,7124,7126,7124,7125,7126,7127,7128,7130,7132,7134,7132,7133,7134,7135,7137,7139,7141,7143,7136,7138,7140,7142,7140,7141,7142,7143,7148,7149,7150,7151,7152,7154,7156,7158,7156,7157,7158,7159,7160,7162,7164,7166,7164,7165,7166,7167,7168,7169,7170,7171,7170,7171,7174,7175,7168,7170,7172,7174,7172,7173,7174,7175,7176,7177,7178,7179,7178,7179,7182,7183,7176,7178,7180,7182,7184,7185,7186,7187,7186,7187,7190,7191,7184,7186,7188,7190,7188,7189,7190,7191,7194,7195,7198,7199,7192,7194,7196,7198,7196,7197,7198,7199,7200,7201,7202,7203,7201,7203,7205,7207,7202,7203,7206,7207,7200,7202,7204,7206,7204,7205,7206,7207,7208,7209,7210,7211,7209,7211,7213,7215,7210,7211,7214,7215,7208,7210,7212,7214,7216,7217,7218,7219,7218,7219,7222,7223,7220,7221,7222,7223,7226,7227,7230,7231,7228,7229,7230,7231,7232,7233,7234,7235,7234,7235,7238,7239,7232,7234,7236,7238,7236,7237,7238,7239,7240,7241,7242,7243,7242,7243,7246,7247,7240,7242,7244,7246,7244,7245,7246,7247,7248,7249,7250,7251,7249,7251,7253,7255,7248,7250,7252,7254,7252,7253,7254,7255,7256,7257,7258,7259,7260,7261,7262,7263,7264,7265,7266,7267,7264,7265,7268,7269,7264,7266,7268,7270,7272,7273,7274,7275,7272,7273,7276,7277,7272,7274,7276,7278,7280,7281,7282,7283,7281,7283,7285,7287,7280,7282,7284,7286,7288,7289,7290,7291,7296,7297,7298,7299,7296,7297,7300,7301,7298,7299,7302,7303,7296,7298,7300,7302,7304,7305,7306,7307,7304,7305,7308,7309,7306,7307,7310,7311,7304,7306,7308,7310,7312,7313,7314,7315,7313,7315,7317,7319,7312,7314,7316,7318,7320,7321,7322,7323,7328,7329,7332,7333,7328,7330,7332,7334,7336,7337,7340,7341,7336,7338,7340,7342,7344,7345,7348,7349,7345,7347,7349,7351,7344,7346,7348,7350,7352,7353,7356,7357,7360,7361,7364,7365,7360,7362,7364,7366,7364,7365,7366,7367,7368,7370,7372,7374,7372,7373,7374,7375,7378,7379,7382,7383,7376,7378,7380,7382,7384,7386,7388,7390,7392,7393,7394,7395,7392,7393,7396,7397,7392,7394,7396,7398,7400,7401,7402,7403,7400,7402,7404,7406,7410,7411,7414,7415,7408,7410,7412,7414,7416,7418,7420,7422,7424,7425,7428,7429,7426,7427,7430,7431,7424,7426,7428,7430,7428,7429,7430,7431,7432,7434,7436,7438,7436,7437,7438,7439,7442,7443,7446,7447,7440,7442,7444,7446,7444,7445,7446,7447,7450,7451,7454,7455,7448,7450,7452,7454,7452,7453,7454,7455,7456,7457,7458,7459,7456,7457,7460,7461,7458,7459,7462,7463,7460,7461,7462,7463,7464,7465,7466,7467,7468,7469,7470,7471,7474,7475,7478,7479,7482,7483,7486,7487,7489,7491,7493,7495,7490,7491,7494,7495,7492,7493,7494,7495,7498,7499,7502,7503,7500,7501,7502,7503,7504,7506,7508,7510,7508,7509,7510,7511,7516,7517,7518,7519,7520,7521,7524,7525,7521,7523,7525,7527,7524,7525,7526,7527,7528,7529,7532,7533,7532,7533,7534,7535,7536,7538,7540,7542,7540,7541,7542,7543,7548,7549,7550,7551,7552,7553,7556,7557,7553,7555,7557,7559,7554,7555,7558,7559,7556,7557,7558,7559,7560,7561,7564,7565,7562,7563,7566,7567,7564,7565,7566,7567,7568,7570,7572,7574,7572,7573,7574,7575,7580,7581,7582,7583,7584,7585,7588,7589,7585,7587,7589,7591,7588,7589,7590,7591,7592,7593,7596,7597,7596,7597,7598,7599,7600,7601,7604,7605,7600,7602,7604,7606,7604,7605,7606,7607,7608,7609,7612,7613,7612,7613,7614,7615,7616,7617,7618,7619,7616,7617,7620,7621,7617,7619,7621,7623,7620,7621,7622,7623,7624,7625,7628,7629,7625,7627,7629,7631,7632,7633,7636,7637,7636,7637,7638,7639,7640,7641,7644,7645,7644,7645,7646,7647,7648,7649,7650,7651,7648,7650,7652,7654,7652,7653,7654,7655,7656,7658,7660,7662,7668,7669,7670,7671,7676,7677,7678,7679,7680,7681,7684,7685,7681,7683,7685,7687,7682,7683,7686,7687,7684,7685,7686,7687,7688,7689,7692,7693,7689,7691,7693,7695,7690,7691,7694,7695,7692,7693,7694,7695,7696,7697,7698,7699,7696,7697,7700,7701,7697,7699,7701,7703,7698,7699,7702,7703,7700,7701,7702,7703,7704,7705,7708,7709,7705,7707,7709,7711,7706,7707,7710,7711,7713,7715,7717,7719,7714,7715,7718,7719,7712,7714,7716,7718,7716,7717,7718,7719,7721,7723,7725,7727,7722,7723,7726,7727,7720,7722,7724,7726,7724,7725,7726,7727,7728,7729,7730,7731,7730,7731,7734,7735,7732,7733,7734,7735,7738,7739,7742,7743,7745,7747,7749,7751,7746,7747,7750,7751,7748,7749,7750,7751,7753,7755,7757,7759,7754,7755,7758,7759,7756,7757,7758,7759,7761,7763,7765,7767,7762,7763,7766,7767,7760,7762,7764,7766,7764,7765,7766,7767,7770,7771,7774,7775,7772,7773,7774,7775,7776,7777,7780,7781,7777,7779,7781,7783,7778,7779,7782,7783,7780,7781,7782,7783,7784,7785,7788,7789,7785,7787,7789,7791,7786,7787,7790,7791,7788,7789,7790,7791,7793,7795,7797,7799,7792,7794,7796,7798,7796,7797,7798,7799,7804,7805,7806,7807,7808,7809,7812,7813,7809,7811,7813,7815,7810,7811,7814,7815,7812,7813,7814,7815,7816,7817,7820,7821,7817,7819,7821,7823,7818,7819,7822,7823,7820,7821,7822,7823,7825,7827,7829,7831,7826,7827,7830,7831,7824,7826,7828,7830,7828,7829,7830,7831,7834,7835,7838,7839,7836,7837,7838,7839,7840,7841,7844,7845,7841,7843,7845,7847,7842,7843,7846,7847,7844,7845,7846,7847,7848,7849,7852,7853,7849,7851,7853,7855,7850,7851,7854,7855,7852,7853,7854,7855,7856,7857,7860,7861,7857,7859,7861,7863,7856,7858,7860,7862,7860,7861,7862,7863,7864,7865,7868,7869,7868,7869,7870,7871,7872,7873,7874,7875,7872,7873,7876,7877,7873,7875,7877,7879,7876,7877,7878,7879,7880,7881,7882,7883,7880,7881,7884,7885,7881,7883,7885,7887,7884,7885,7886,7887,7888,7889,7892,7893,7889,7891,7893,7895,7890,7891,7894,7895,7897,7899,7901,7903,7904,7905,7908,7909,7905,7907,7909,7911,7908,7909,7910,7911,7912,7913,7916,7917,7913,7915,7917,7919,7916,7917,7918,7919,7920,7921,7924,7925,7921,7923,7925,7927,7922,7923,7926,7927,7924,7925,7926,7927,7929,7931,7933,7935,7932,7933,7934,7935,7936,7937,7938,7939,7936,7937,7940,7941,7937,7939,7941,7943,7938,7939,7942,7943,7940,7941,7942,7943,7944,7945,7946,7947,7944,7945,7948,7949,7945,7947,7949,7951,7948,7949,7950,7951,7952,7953,7954,7955,7952,7953,7956,7957,7953,7955,7957,7959,7954,7955,7958,7959,7960,7961,7962,7963,7961,7963,7965,7967,7962,7963,7966,7967,7968,7969,7970,7971,7968,7969,7972,7973,7969,7971,7973,7975,7970,7971,7974,7975,7972,7973,7974,7975,7976,7977,7978,7979,7976,7977,7980,7981,7977,7979,7981,7983,7980,7981,7982,7983,7984,7985,7988,7989,7985,7987,7989,7991,7986,7987,7990,7991,7988,7989,7990,7991,7993,7995,7997,7999,7994,7995,7998,7999,7996,7997,7998,7999,8000,8001,8002,8003,8001,8003,8005,8007,8002,8003,8006,8007,8000,8002,8004,8006,8004,8005,8006,8007,8008,8009,8010,8011,8010,8011,8014,8015,8012,8013,8014,8015,8016,8017,8018,8019,8017,8019,8021,8023,8018,8019,8022,8023,8020,8021,8022,8023,8024,8025,8026,8027,8025,8027,8029,8031,8026,8027,8030,8031,8028,8029,8030,8031,8032,8033,8034,8035,8032,8033,8036,8037,8033,8035,8037,8039,8034,8035,8038,8039,8032,8034,8036,8038,8040,8041,8042,8043,8040,8041,8044,8045,8042,8043,8046,8047,8048,8049,8050,8051,8049,8051,8053,8055,8056,8057,8058,8059,8057,8059,8061,8063,8064,8065,8066,8067,8064,8065,8068,8069,8065,8067,8069,8071,8066,8067,8070,8071,8064,8066,8068,8070,8072,8073,8074,8075,8072,8073,8076,8077,8074,8075,8078,8079,8080,8081,8082,8083,8081,8083,8085,8087,8082,8083,8086,8087,8088,8089,8090,8091,8089,8091,8093,8095,8090,8091,8094,8095,8096,8097,8100,8101,8097,8099,8101,8103,8098,8099,8102,8103,8096,8098,8100,8102,8104,8105,8108,8109,8106,8107,8110,8111,8112,8113,8116,8117,8113,8115,8117,8119,8120,8121,8124,8125,8121,8123,8125,8127,8128,8129,8132,8133,8129,8131,8133,8135,8128,8130,8132,8134,8132,8133,8134,8135,8136,8137,8140,8141,8137,8139,8141,8143,8136,8138,8140,8142,8144,8145,8146,8147,8144,8145,8148,8149,8152,8153,8156,8157,8160,8161,8164,8165,8161,8163,8165,8167,8164,8165,8166,8167,8168,8169,8172,8173,8169,8171,8173,8175,8176,8177,8178,8179,8176,8177,8180,8181,8177,8179,8181,8183,8184,8185,8188,8189,8185,8187,8189,8191,8192,8193,8196,8197,8193,8195,8197,8199,8194,8195,8198,8199,8196,8197,8198,8199,8200,8201,8204,8205,8201,8203,8205,8207,8202,8203,8206,8207,8204,8205,8206,8207,8209,8211,8213,8215,8210,8211,8214,8215,8208,8210,8212,8214,8212,8213,8214,8215,8218,8219,8222,8223,8220,8221,8222,8223,8224,8225,8228,8229,8225,8227,8229,8231,8226,8227,8230,8231,8228,8229,8230,8231,8232,8233,8236,8237,8233,8235,8237,8239,8234,8235,8238,8239,8236,8237,8238,8239,8240,8241,8244,8245,8241,8243,8245,8247,8240,8242,8244,8246,8244,8245,8246,8247,8248,8249,8252,8253,8252,8253,8254,8255,8256,8257,8260,8261,8257,8259,8261,8263,8258,8259,8262,8263,8260,8261,8262,8263,8265,8267,8269,8271,8266,8267,8270,8271,8268,8269,8270,8271,8272,8273,8276,8277,8273,8275,8277,8279,8274,8275,8278,8279,8276,8277,8278,8279,8280,8281,8284,8285,8281,8283,8285,8287,8284,8285,8286,8287,8288,8289,8290,8291,8288,8289,8292,8293,8289,8291,8293,8295,8290,8291,8294,8295,8292,8293,8294,8295,8296,8297,8298,8299,8297,8299,8301,8303,8298,8299,8302,8303,8300,8301,8302,8303,8304,8305,8308,8309,8305,8307,8309,8311,8306,8307,8310,8311,8312,8313,8316,8317,8313,8315,8317,8319,8320,8321,8322,8323,8320,8321,8324,8325,8321,8323,8325,8327,8322,8323,8326,8327,8324,8325,8326,8327,8328,8329,8330,8331,8329,8331,8333,8335,8330,8331,8334,8335,8332,8333,8334,8335,8336,8337,8340,8341,8337,8339,8341,8343,8338,8339,8342,8343,8340,8341,8342,8343,8344,8345,8348,8349,8345,8347,8349,8351,8348,8349,8350,8351,8352,8353,8354,8355,8352,8353,8356,8357,8353,8355,8357,8359,8354,8355,8358,8359,8356,8357,8358,8359,8360,8361,8362,8363,8361,8363,8365,8367,8362,8363,8366,8367,8364,8365,8366,8367,8368,8369,8370,8371,8368,8369,8372,8373,8369,8371,8373,8375,8370,8371,8374,8375,8376,8377,8378,8379,8376,8377,8380,8381,8377,8379,8381,8383,8384,8385,8386,8387,8384,8385,8388,8389,8385,8387,8389,8391,8386,8387,8390,8391,8384,8386,8388,8390,8392,8393,8396,8397,8393,8395,8397,8399,8394,8395,8398,8399,8392,8394,8396,8398,8400,8401,8404,8405,8402,8403,8406,8407,8404,8405,8406,8407,8408,8409,8412,8413,8410,8411,8414,8415,8416,8417,8418,8419,8417,8419,8421,8423,8418,8419,8422,8423,8425,8427,8429,8431,8426,8427,8430,8431,8433,8435,8437,8439,8434,8435,8438,8439,8436,8437,8438,8439,8441,8443,8445,8447,8442,8443,8446,8447,8448,8449,8450,8451,8449,8451,8453,8455,8450,8451,8454,8455,8448,8450,8452,8454,8452,8453,8454,8455,8457,8459,8461,8463,8458,8459,8462,8463,8456,8458,8460,8462,8466,8467,8470,8471,8464,8466,8468,8470,8468,8469,8470,8471,8474,8475,8478,8479,8472,8474,8476,8478,8476,8477,8478,8479,8480,8481,8482,8483,8481,8483,8485,8487,8482,8483,8486,8487,8480,8482,8484,8486,8484,8485,8486,8487,8489,8491,8493,8495,8490,8491,8494,8495,8488,8490,8492,8494,8497,8499,8501,8503,8498,8499,8502,8503,8500,8501,8502,8503,8505,8507,8509,8511,8506,8507,8510,8511,8508,8509,8510,8511,8512,8513,8516,8517,8513,8515,8517,8519,8514,8515,8518,8519,8512,8514,8516,8518,8516,8517,8518,8519,8521,8523,8525,8527,8520,8522,8524,8526,8524,8525,8526,8527,8529,8531,8533,8535,8530,8531,8534,8535,8528,8530,8532,8534,8532,8533,8534,8535,8537,8539,8541,8543,8538,8539,8542,8543,8536,8538,8540,8542,8540,8541,8542,8543,8544,8545,8546,8547,8544,8545,8548,8549,8546,8547,8550,8551,8544,8546,8548,8550,8548,8549,8550,8551,8552,8553,8554,8555,8552,8554,8556,8558,8556,8557,8558,8559,8562,8563,8566,8567,8560,8562,8564,8566,8570,8571,8574,8575,8568,8570,8572,8574,8576,8577,8578,8579,8576,8577,8580,8581,8578,8579,8582,8583,8576,8578,8580,8582,8580,8581,8582,8583,8584,8585,8586,8587,8584,8586,8588,8590,8588,8589,8590,8591,8594,8595,8598,8599,8592,8594,8596,8598,8596,8597,8598,8599,8602,8603,8606,8607,8600,8602,8604,8606,8604,8605,8606,8607,8608,8609,8610,8611,8608,8609,8612,8613,8610,8611,8614,8615,8612,8613,8614,8615,8616,8617,8618,8619,8620,8621,8622,8623,8624,8625,8626,8627,8626,8627,8630,8631,8632,8633,8634,8635,8634,8635,8638,8639,8640,8641,8642,8643,8640,8641,8644,8645,8641,8643,8645,8647,8642,8643,8646,8647,8648,8649,8650,8651,8648,8649,8652,8653,8650,8651,8654,8655,8656,8657,8658,8659,8656,8658,8660,8662,8664,8665,8666,8667,8673,8675,8677,8679,8674,8675,8678,8679,8682,8683,8686,8687,8690,8691,8694,8695,8688,8690,8692,8694,8698,8699,8702,8703,8705,8707,8709,8711,8706,8707,8710,8711,8704,8706,8708,8710,8708,8709,8710,8711,8713,8715,8717,8719,8714,8715,8718,8719,8716,8717,8718,8719,8721,8723,8725,8727,8722,8723,8726,8727,8720,8722,8724,8726,8724,8725,8726,8727,8730,8731,8734,8735,8728,8730,8732,8734,8732,8733,8734,8735,8736,8737,8740,8741,8737,8739,8741,8743,8738,8739,8742,8743,8736,8738,8740,8742,8740,8741,8742,8743,8744,8745,8748,8749,8745,8747,8749,8751,8746,8747,8750,8751,8748,8749,8750,8751,8753,8755,8757,8759,8752,8754,8756,8758,8756,8757,8758,8759,8760,8762,8764,8766,8764,8765,8766,8767,8769,8771,8773,8775,8770,8771,8774,8775,8768,8770,8772,8774,8772,8773,8774,8775,8777,8779,8781,8783,8778,8779,8782,8783,8776,8778,8780,8782,8780,8781,8782,8783,8784,8785,8788,8789,8785,8787,8789,8791,8786,8787,8790,8791,8784,8786,8788,8790,8788,8789,8790,8791,8793,8795,8797,8799,8792,8794,8796,8798,8796,8797,8798,8799,8800,8801,8802,8803,8801,8803,8805,8807,8802,8803,8806,8807,8804,8805,8806,8807,8808,8809,8810,8811,8809,8811,8813,8815,8810,8811,8814,8815,8812,8813,8814,8815,8816,8817,8820,8821,8817,8819,8821,8823,8818,8819,8822,8823,8825,8827,8829,8831,8832,8833,8834,8835,8833,8835,8837,8839,8834,8835,8838,8839,8836,8837,8838,8839,8840,8841,8842,8843,8841,8843,8845,8847,8842,8843,8846,8847,8844,8845,8846,8847,8848,8849,8852,8853,8849,8851,8853,8855,8850,8851,8854,8855,8852,8853,8854,8855,8857,8859,8861,8863,8860,8861,8862,8863,8864,8865,8866,8867,8865,8867,8869,8871,8866,8867,8870,8871,8868,8869,8870,8871,8872,8873,8874,8875,8873,8875,8877,8879,8874,8875,8878,8879,8876,8877,8878,8879,8880,8881,8882,8883,8880,8881,8884,8885,8881,8883,8885,8887,8882,8883,8886,8887,8888,8889,8890,8891,8889,8891,8893,8895,8896,8897,8898,8899,8897,8899,8901,8903,8898,8899,8902,8903,8896,8898,8900,8902,8904,8905,8906,8907,8905,8907,8909,8911,8906,8907,8910,8911,8904,8906,8908,8910,8913,8915,8917,8919,8914,8915,8918,8919,8912,8914,8916,8918,8921,8923,8925,8927,8922,8923,8926,8927,8920,8922,8924,8926,8928,8929,8932,8933,8930,8931,8934,8935,8932,8933,8934,8935,8940,8941,8942,8943,8946,8947,8950,8951,8954,8955,8958,8959,8960,8961,8962,8963,8961,8963,8965,8967,8960,8962,8964,8966,8964,8965,8966,8967,8969,8971,8973,8975,8968,8970,8972,8974,8977,8979,8981,8983,8980,8981,8982,8983,8985,8987,8989,8991,8988,8989,8990,8991,8993,8995,8997,8999,8992,8994,8996,8998,8996,8997,8998,8999,9001,9003,9005,9007,9000,9002,9004,9006,9004,9005,9006,9007,9008,9009,9010,9011,9008,9010,9012,9014,9012,9013,9014,9015,9016,9018,9020,9022,9024,9025,9026,9027,9024,9026,9028,9030,9028,9029,9030,9031,9032,9034,9036,9038,9036,9037,9038,9039,9040,9041,9042,9043,9040,9042,9044,9046,9044,9045,9046,9047,9048,9049,9050,9051,9048,9050,9052,9054,9056,9057,9058,9059,9057,9059,9061,9063,9056,9058,9060,9062,9064,9065,9066,9067,9072,9074,9076,9078,9080,9082,9084,9086,9088,9089,9092,9093,9088,9090,9092,9094,9092,9093,9094,9095,9096,9097,9100,9101,9096,9098,9100,9102,9100,9101,9102,9103,9104,9105,9108,9109,9106,9107,9110,9111,9104,9106,9108,9110,9108,9109,9110,9111,9112,9114,9116,9118,9116,9117,9118,9119,9120,9121,9122,9123,9120,9121,9124,9125,9120,9122,9124,9126,9124,9125,9126,9127,9128,9129,9130,9131,9128,9129,9132,9133,9128,9130,9132,9134,9132,9133,9134,9135,9136,9137,9140,9141,9138,9139,9142,9143,9136,9138,9140,9142,9144,9146,9148,9150,9152,9153,9156,9157,9152,9154,9156,9158,9156,9157,9158,9159,9160,9161,9164,9165,9160,9162,9164,9166,9164,9165,9166,9167,9168,9169,9172,9173,9168,9170,9172,9174,9172,9173,9174,9175,9176,9177,9180,9181,9176,9178,9180,9182,9180,9181,9182,9183,9184,9185,9186,9187,9184,9185,9188,9189,9186,9187,9190,9191,9188,9189,9190,9191,9192,9193,9194,9195,9196,9197,9198,9199,9200,9201,9204,9205,9208,9209,9212,9213,9217,9219,9221,9223,9220,9221,9222,9223,9225,9227,9229,9231,9228,9229,9230,9231,9232,9233,9234,9235,9233,9235,9237,9239,9236,9237,9238,9239,9241,9243,9245,9247,9249,9251,9253,9255,9252,9253,9254,9255,9260,9261,9262,9263,9264,9266,9268,9270,9268,9269,9270,9271,9276,9277,9278,9279,9281,9283,9285,9287,9282,9283,9286,9287,9280,9282,9284,9286,9284,9285,9286,9287,9290,9291,9294,9295,9292,9293,9294,9295,9298,9299,9302,9303,9296,9298,9300,9302,9300,9301,9302,9303,9306,9307,9310,9311,9304,9306,9308,9310,9308,9309,9310,9311,9312,9313,9314,9315,9314,9315,9318,9319,9312,9314,9316,9318,9316,9317,9318,9319,9320,9321,9322,9323,9321,9323,9325,9327,9322,9323,9326,9327,9320,9322,9324,9326,9324,9325,9326,9327,9330,9331,9334,9335,9328,9330,9332,9334,9337,9339,9341,9343,9338,9339,9342,9343,9336,9338,9340,9342,9344,9345,9348,9349,9346,9347,9350,9351,9348,9349,9350,9351,9356,9357,9358,9359,9362,9363,9366,9367,9364,9365,9366,9367,9370,9371,9374,9375,9372,9373,9374,9375,9376,9377,9378,9379,9377,9379,9381,9383,9380,9381,9382,9383,9385,9387,9389,9391,9393,9395,9397,9399,9396,9397,9398,9399,9401,9403,9405,9407,9404,9405,9406,9407,9408,9409,9410,9411,9408,9409,9412,9413,9409,9411,9413,9415,9412,9413,9414,9415,9416,9417,9418,9419,9417,9419,9421,9423,9420,9421,9422,9423,9425,9427,9429,9431,9426,9427,9430,9431,9433,9435,9437,9439,9440,9441,9444,9445,9444,9445,9446,9447,9452,9453,9454,9455,9458,9459,9462,9463,9460,9461,9462,9463,9468,9469,9470,9471,9472,9473,9476,9477,9473,9475,9477,9479,9472,9474,9476,9478,9476,9477,9478,9479,9480,9481,9484,9485,9481,9483,9485,9487,9480,9482,9484,9486,9484,9485,9486,9487,9488,9489,9492,9493,9489,9491,9493,9495,9490,9491,9494,9495,9488,9490,9492,9494,9492,9493,9494,9495,9497,9499,9501,9503,9496,9498,9500,9502,9500,9501,9502,9503,9504,9505,9506,9507,9504,9505,9508,9509,9504,9506,9508,9510,9508,9509,9510,9511,9512,9513,9514,9515,9512,9513,9516,9517,9512,9514,9516,9518,9516,9517,9518,9519,9520,9521,9524,9525,9522,9523,9526,9527,9520,9522,9524,9526,9528,9530,9532,9534,9536,9537,9540,9541,9536,9538,9540,9542,9540,9541,9542,9543,9544,9545,9548,9549,9544,9546,9548,9550,9548,9549,9550,9551,9552,9553,9556,9557,9552,9554,9556,9558,9556,9557,9558,9559,9560,9561,9564,9565,9560,9562,9564,9566,9564,9565,9566,9567,9568,9569,9570,9571,9568,9569,9572,9573,9570,9571,9574,9575,9572,9573,9574,9575,9576,9577,9578,9579,9580,9581,9582,9583,9584,9585,9588,9589,9592,9593,9596,9597,9600,9601,9604,9605,9601,9603,9605,9607,9604,9605,9606,9607,9608,9609,9612,9613,9609,9611,9613,9615,9612,9613,9614,9615,9616,9617,9618,9619,9616,9617,9620,9621,9617,9619,9621,9623,9620,9621,9622,9623,9624,9625,9628,9629,9625,9627,9629,9631,9632,9633,9636,9637,9633,9635,9637,9639,9636,9637,9638,9639,9640,9641,9644,9645,9641,9643,9645,9647,9644,9645,9646,9647,9648,9649,9652,9653,9649,9651,9653,9655,9652,9653,9654,9655,9656,9657,9660,9661,9657,9659,9661,9663,9660,9661,9662,9663,9664,9665,9668,9669,9665,9667,9669,9671,9666,9667,9670,9671,9664,9666,9668,9670,9672,9673,9676,9677,9674,9675,9678,9679,9672,9674,9676,9678,9680,9681,9684,9685,9682,9683,9686,9687,9680,9682,9684,9686,9689,9691,9693,9695,9690,9691,9694,9695,9688,9690,9692,9694,9696,9697,9700,9701,9698,9699,9702,9703,9706,9707,9710,9711,9713,9715,9717,9719,9721,9723,9725,9727,9728,9729,9732,9733,9729,9731,9733,9735,9737,9739,9741,9743,9745,9747,9749,9751,9746,9747,9750,9751,9753,9755,9757,9759,9760,9761,9762,9763,9760,9761,9764,9765,9761,9763,9765,9767,9768,9769,9770,9771,9768,9769,9772,9773,9769,9771,9773,9775,9776,9777,9778,9779,9776,9777,9780,9781,9777,9779,9781,9783,9776,9778,9780,9782,9784,9785,9786,9787,9784,9785,9788,9789,9792,9793,9794,9795,9792,9793,9796,9797,9793,9795,9797,9799,9794,9795,9798,9799,9800,9801,9802,9803,9800,9801,9804,9805,9801,9803,9805,9807,9802,9803,9806,9807,9808,9809,9810,9811,9809,9811,9813,9815,9808,9810,9812,9814,9816,9817,9818,9819,9824,9825,9828,9829,9825,9827,9829,9831,9832,9833,9836,9837,9833,9835,9837,9839,9840,9841,9844,9845,9841,9843,9845,9847,9842,9843,9846,9847,9849,9851,9853,9855,9856,9857,9860,9861,9857,9859,9861,9863,9860,9861,9862,9863,9864,9865,9868,9869,9865,9867,9869,9871,9868,9869,9870,9871,9872,9873,9876,9877,9873,9875,9877,9879,9874,9875,9878,9879,9876,9877,9878,9879,9881,9883,9885,9887,9884,9885,9886,9887,9888,9889,9892,9893,9889,9891,9893,9895,9888,9890,9892,9894,9892,9893,9894,9895,9896,9897,9900,9901,9897,9899,9901,9903,9896,9898,9900,9902,9904,9905,9906,9907,9904,9905,9908,9909,9912,9913,9916,9917,9920,9921,9924,9925,9921,9923,9925,9927,9924,9925,9926,9927,9928,9929,9932,9933,9929,9931,9933,9935,9936,9937,9938,9939,9936,9937,9940,9941,9937,9939,9941,9943,9944,9945,9948,9949,9945,9947,9949,9951,9952,9953,9954,9955,9952,9953,9956,9957,9953,9955,9957,9959,9952,9954,9956,9958,9956,9957,9958,9959,9960,9961,9964,9965,9961,9963,9965,9967,9960,9962,9964,9966,9968,9969,9970,9971,9968,9969,9972,9973,9968,9970,9972,9974,9976,9977,9978,9979,9976,9977,9980,9981,9976,9978,9980,9982,9984,9985,9986,9987,9984,9985,9988,9989,9985,9987,9989,9991,9984,9986,9988,9990,9988,9989,9990,9991,9992,9993,9996,9997,9993,9995,9997,9999,9992,9994,9996,9998,10000,10001,10002,10003,10000,10001,10004,10005,10001,10003,10005,10007,10008,10009,10010,10011,10008,10009,10012,10013,10009,10011,10013,10015,10016,10017,10020,10021,10017,10019,10021,10023,10018,10019,10022,10023,10016,10018,10020,10022,10025,10027,10029,10031,10024,10026,10028,10030,10032,10033,10036,10037,10032,10034,10036,10038,10040,10041,10044,10045,10040,10042,10044,10046,10048,10049,10052,10053,10050,10051,10054,10055,10048,10050,10052,10054,10052,10053,10054,10055,10056,10058,10060,10062,10060,10061,10062,10063,10064,10065,10068,10069,10068,10069,10070,10071,10072,10073,10076,10077,10072,10074,10076,10078,10076,10077,10078,10079,10080,10081,10084,10085,10081,10083,10085,10087,10082,10083,10086,10087,10080,10082,10084,10086,10084,10085,10086,10087,10088,10089,10092,10093,10090,10091,10094,10095,10092,10093,10094,10095,10096,10098,10100,10102,10100,10101,10102,10103,10108,10109,10110,10111,10112,10113,10116,10117,10113,10115,10117,10119,10120,10121,10124,10125,10128,10129,10132,10133,10128,10130,10132,10134,10136,10137,10140,10141,10136,10138,10140,10142,10144,10145,10146,10147,10144,10145,10148,10149,10145,10147,10149,10151,10144,10146,10148,10150,10152,10153,10154,10155,10152,10153,10156,10157,10153,10155,10157,10159,10160,10161,10162,10163,10160,10161,10164,10165,10161,10163,10165,10167,10160,10162,10164,10166,10168,10169,10170,10171,10168,10169,10172,10173,10168,10170,10172,10174,10176,10177,10178,10179,10176,10177,10180,10181,10177,10179,10181,10183,10178,10179,10182,10183,10176,10178,10180,10182,10184,10185,10186,10187,10184,10185,10188,10189,10185,10187,10189,10191,10186,10187,10190,10191,10192,10193,10194,10195,10193,10195,10197,10199,10192,10194,10196,10198,10200,10201,10202,10203,10200,10202,10204,10206,10208,10209,10212,10213,10209,10211,10213,10215,10208,10210,10212,10214,10216,10217,10220,10221,10217,10219,10221,10223,10216,10218,10220,10222,10224,10225,10228,10229,10225,10227,10229,10231,10226,10227,10230,10231,10233,10235,10237,10239,10240,10241,10244,10245,10241,10243,10245,10247,10244,10245,10246,10247,10248,10249,10252,10253,10249,10251,10253,10255,10252,10253,10254,10255,10256,10257,10260,10261,10257,10259,10261,10263,10258,10259,10262,10263,10260,10261,10262,10263,10265,10267,10269,10271,10268,10269,10270,10271,10272,10273,10276,10277,10273,10275,10277,10279,10272,10274,10276,10278,10276,10277,10278,10279,10280,10281,10284,10285,10281,10283,10285,10287,10280,10282,10284,10286,10284,10285,10286,10287,10288,10289,10292,10293,10289,10291,10293,10295,10288,10290,10292,10294,10296,10297,10300,10301,10297,10299,10301,10303,10296,10298,10300,10302,10304,10305,10306,10307,10304,10305,10308,10309,10306,10307,10310,10311,10312,10313,10314,10315,10320,10321,10324,10325,10328,10329,10332,10333,10336,10337,10338,10339,10336,10337,10340,10341,10337,10339,10341,10343,10336,10338,10340,10342,10340,10341,10342,10343,10344,10345,10348,10349,10345,10347,10349,10351,10344,10346,10348,10350,10352,10353,10354,10355,10352,10353,10356,10357,10353,10355,10357,10359,10360,10361,10362,10363,10360,10361,10364,10365,10361,10363,10365,10367,10368,10369,10372,10373,10369,10371,10373,10375,10368,10370,10372,10374,10376,10377,10380,10381,10376,10378,10380,10382,10384,10385,10388,10389,10384,10386,10388,10390,10388,10389,10390,10391,10392,10393,10396,10397,10392,10394,10396,10398,10396,10397,10398,10399,10400,10401,10404,10405,10401,10403,10405,10407,10400,10402,10404,10406,10404,10405,10406,10407,10408,10409,10412,10413,10412,10413,10414,10415,10416,10417,10420,10421,10416,10418,10420,10422,10424,10425,10428,10429,10424,10426,10428,10430,10432,10433,10434,10435,10432,10433,10436,10437,10434,10435,10438,10439,10432,10434,10436,10438,10440,10441,10442,10443,10440,10441,10444,10445,10442,10443,10446,10447,10440,10442,10444,10446,10448,10449,10450,10451,10448,10449,10452,10453,10450,10451,10454,10455,10448,10450,10452,10454,10452,10453,10454,10455,10456,10457,10460,10461,10458,10459,10462,10463,10456,10458,10460,10462,10464,10465,10466,10467,10465,10467,10469,10471,10466,10467,10470,10471,10464,10466,10468,10470,10472,10473,10474,10475,10473,10475,10477,10479,10474,10475,10478,10479,10472,10474,10476,10478,10480,10481,10482,10483,10482,10483,10486,10487,10484,10485,10486,10487,10490,10491,10494,10495,10496,10497,10498,10499,10498,10499,10502,10503,10496,10498,10500,10502,10504,10505,10506,10507,10506,10507,10510,10511,10504,10506,10508,10510,10512,10513,10514,10515,10514,10515,10518,10519,10512,10514,10516,10518,10520,10521,10522,10523,10522,10523,10526,10527,10520,10522,10524,10526,10528,10529,10530,10531,10529,10531,10533,10535,10528,10530,10532,10534,10532,10533,10534,10535,10537,10539,10541,10543,10536,10538,10540,10542,10544,10545,10546,10547,10552,10553,10554,10555,10560,10561,10564,10565,10560,10562,10564,10566,10568,10569,10572,10573,10568,10570,10572,10574,10576,10577,10580,10581,10577,10579,10581,10583,10576,10578,10580,10582,10584,10585,10588,10589,10592,10593,10596,10597,10592,10594,10596,10598,10600,10601,10604,10605,10600,10602,10604,10606,10608,10609,10612,10613,10610,10611,10614,10615,10608,10610,10612,10614,10616,10618,10620,10622,10624,10625,10628,10629,10626,10627,10630,10631,10624,10626,10628,10630,10628,10629,10630,10631,10632,10633,10636,10637,10632,10634,10636,10638,10636,10637,10638,10639,10640,10641,10644,10645,10642,10643,10646,10647,10644,10645,10646,10647,10650,10651,10654,10655,10652,10653,10654,10655,10657,10659,10661,10663,10658,10659,10662,10663,10660,10661,10662,10663,10664,10665,10668,10669,10665,10667,10669,10671,10666,10667,10670,10671,10668,10669,10670,10671,10674,10675,10678,10679,10676,10677,10678,10679,10680,10681,10684,10685,10682,10683,10686,10687,10684,10685,10686,10687,10688,10689,10690,10691,10688,10690,10692,10694,10692,10693,10694,10695,10696,10698,10700,10702,10708,10709,10710,10711,10716,10717,10718,10719,10720,10721,10724,10725,10721,10723,10725,10727,10728,10729,10732,10733,10736,10737,10740,10741,10736,10738,10740,10742,10744,10745,10748,10749,10752,10753,10754,10755,10752,10753,10756,10757,10753,10755,10757,10759,10760,10761,10764,10765,10761,10763,10765,10767,10768,10769,10772,10773,10772,10773,10774,10775,10776,10777,10780,10781,10784,10785,10786,10787,10784,10785,10788,10789,10784,10786,10788,10790,10792,10793,10796,10797,10792,10794,10796,10798,10800,10801,10804,10805,10804,10805,10806,10807,10808,10809,10812,10813,10816,10817,10818,10819,10816,10817,10820,10821,10817,10819,10821,10823,10824,10825,10826,10827,10824,10825,10828,10829,10825,10827,10829,10831,10832,10833,10834,10835,10832,10833,10836,10837,10833,10835,10837,10839,10832,10834,10836,10838,10840,10841,10842,10843,10840,10841,10844,10845,10848,10849,10850,10851,10848,10849,10852,10853,10849,10851,10853,10855,10850,10851,10854,10855,10856,10857,10858,10859,10856,10857,10860,10861,10857,10859,10861,10863,10858,10859,10862,10863,10864,10865,10866,10867,10865,10867,10869,10871,10864,10866,10868,10870,10872,10873,10874,10875,10880,10881,10882,10883,10880,10881,10884,10885,10881,10883,10885,10887,10888,10889,10890,10891,10888,10889,10892,10893,10889,10891,10893,10895,10896,10897,10898,10899,10896,10897,10900,10901,10897,10899,10901,10903,10898,10899,10902,10903,10904,10905,10906,10907,10905,10907,10909,10911,10912,10913,10914,10915,10912,10913,10916,10917,10913,10915,10917,10919,10916,10917,10918,10919,10920,10921,10922,10923,10920,10921,10924,10925,10921,10923,10925,10927,10924,10925,10926,10927,10928,10929,10932,10933,10929,10931,10933,10935,10930,10931,10934,10935,10937,10939,10941,10943,10944,10945,10946,10947,10944,10945,10948,10949,10945,10947,10949,10951,10948,10949,10950,10951,10952,10953,10954,10955,10952,10953,10956,10957,10953,10955,10957,10959,10956,10957,10958,10959,10960,10961,10962,10963,10960,10961,10964,10965,10961,10963,10965,10967,10962,10963,10966,10967,10968,10969,10970,10971,10969,10971,10973,10975,10976,10977,10978,10979,10976,10977,10980,10981,10977,10979,10981,10983,10980,10981,10982,10983,10984,10985,10986,10987,10984,10985,10988,10989,10985,10987,10989,10991,10988,10989,10990,10991,10992,10993,10996,10997,10993,10995,10997,10999,10994,10995,10998,10999,10996,10997,10998,10999,11001,11003,11005,11007,11004,11005,11006,11007,11008,11009,11012,11013,11009,11011,11013,11015,11008,11010,11012,11014,11012,11013,11014,11015,11016,11017,11020,11021,11017,11019,11021,11023,11016,11018,11020,11022,11024,11025,11026,11027,11024,11025,11028,11029,11032,11033,11036,11037,11040,11041,11044,11045,11041,11043,11045,11047,11044,11045,11046,11047,11048,11049,11052,11053,11049,11051,11053,11055,11056,11057,11058,11059,11056,11057,11060,11061,11057,11059,11061,11063,11064,11065,11068,11069,11065,11067,11069,11071,11072,11073,11074,11075,11072,11073,11076,11077,11073,11075,11077,11079,11072,11074,11076,11078,11076,11077,11078,11079,11080,11081,11084,11085,11081,11083,11085,11087,11080,11082,11084,11086,11088,11089,11090,11091,11088,11089,11092,11093,11088,11090,11092,11094,11096,11097,11098,11099,11096,11097,11100,11101,11096,11098,11100,11102,11104,11105,11106,11107,11104,11105,11108,11109,11105,11107,11109,11111,11104,11106,11108,11110,11108,11109,11110,11111,11112,11113,11116,11117,11113,11115,11117,11119,11112,11114,11116,11118,11120,11121,11122,11123,11120,11121,11124,11125,11121,11123,11125,11127,11128,11129,11130,11131,11128,11129,11132,11133,11129,11131,11133,11135,11136,11137,11138,11139,11136,11137,11140,11141,11137,11139,11141,11143,11138,11139,11142,11143,11136,11138,11140,11142,11144,11145,11146,11147,11145,11147,11149,11151,11144,11146,11148,11150,11152,11153,11154,11155,11152,11153,11156,11157,11153,11155,11157,11159,11152,11154,11156,11158,11160,11161,11162,11163,11160,11161,11164,11165,11161,11163,11165,11167,11160,11162,11164,11166,11168,11169,11170,11171,11168,11169,11172,11173,11170,11171,11174,11175,11168,11170,11172,11174,11172,11173,11174,11175,11176,11177,11178,11179,11176,11178,11180,11182,11180,11181,11182,11183,11184,11185,11188,11189,11184,11186,11188,11190,11192,11193,11196,11197,11192,11194,11196,11198,11200,11201,11202,11203,11200,11201,11204,11205,11202,11203,11206,11207,11200,11202,11204,11206,11204,11205,11206,11207,11208,11209,11210,11211,11208,11210,11212,11214,11212,11213,11214,11215,11216,11217,11218,11219,11216,11217,11220,11221,11216,11218,11220,11222,11224,11225,11226,11227,11224,11225,11228,11229,11224,11226,11228,11230,11232,11233,11234,11235,11232,11233,11236,11237,11234,11235,11238,11239,11236,11237,11238,11239,11240,11241,11242,11243,11244,11245,11246,11247,11248,11249,11252,11253,11252,11253,11254,11255,11256,11257,11260,11261,11260,11261,11262,11263,11264,11265,11268,11269,11265,11267,11269,11271,11266,11267,11270,11271,11268,11269,11270,11271,11272,11273,11276,11277,11274,11275,11278,11279,11276,11277,11278,11279,11280,11282,11284,11286,11284,11285,11286,11287,11292,11293,11294,11295,11296,11297,11300,11301,11297,11299,11301,11303,11304,11305,11308,11309,11312,11313,11316,11317,11312,11314,11316,11318,11320,11321,11324,11325,11328,11329,11330,11331,11328,11329,11332,11333,11329,11331,11333,11335,11336,11337,11338,11339,11336,11337,11340,11341,11337,11339,11341,11343,11344,11345,11346,11347,11344,11345,11348,11349,11345,11347,11349,11351,11346,11347,11350,11351,11352,11353,11354,11355,11353,11355,11357,11359,11360,11361,11362,11363,11360,11361,11364,11365,11361,11363,11365,11367,11364,11365,11366,11367,11368,11369,11370,11371,11368,11369,11372,11373,11369,11371,11373,11375,11372,11373,11374,11375,11376,11377,11380,11381,11377,11379,11381,11383,11378,11379,11382,11383,11385,11387,11389,11391,11392,11393,11394,11395,11392,11393,11396,11397,11393,11395,11397,11399,11400,11401,11402,11403,11400,11401,11404,11405,11401,11403,11405,11407,11408,11409,11410,11411,11408,11409,11412,11413,11409,11411,11413,11415,11412,11413,11414,11415,11416,11417,11420,11421,11417,11419,11421,11423,11424,11425,11426,11427,11424,11425,11428,11429,11425,11427,11429,11431,11424,11426,11428,11430,11432,11433,11434,11435,11432,11433,11436,11437,11433,11435,11437,11439,11432,11434,11436,11438,11440,11441,11442,11443,11440,11441,11444,11445,11444,11445,11446,11447,11448,11449,11452,11453,11456,11457,11458,11459,11456,11457,11460,11461,11457,11459,11461,11463,11456,11458,11460,11462,11464,11465,11466,11467,11464,11465,11468,11469,11465,11467,11469,11471,11464,11466,11468,11470,11472,11473,11474,11475,11472,11473,11476,11477,11473,11475,11477,11479,11476,11477,11478,11479,11480,11481,11484,11485,11481,11483,11485,11487,11488,11489,11490,11491,11489,11491,11493,11495,11488,11490,11492,11494,11496,11497,11498,11499,11497,11499,11501,11503,11496,11498,11500,11502,11504,11505,11506,11507,11504,11506,11508,11510,11508,11509,11510,11511,11512,11514,11516,11518,11520,11521,11522,11523,11522,11523,11526,11527,11520,11522,11524,11526,11528,11529,11530,11531,11530,11531,11534,11535,11536,11537,11538,11539,11537,11539,11541,11543,11544,11545,11546,11547,11552,11553,11554,11555,11552,11553,11556,11557,11552,11554,11556,11558,11560,11561,11562,11563,11560,11561,11564,11565,11568,11569,11570,11571,11569,11571,11573,11575,11576,11577,11578,11579,11584,11585,11586,11587,11585,11587,11589,11591,11586,11587,11590,11591,11584,11586,11588,11590,11592,11593,11594,11595,11594,11595,11598,11599,11600,11601,11602,11603,11601,11603,11605,11607,11602,11603,11606,11607,11608,11609,11610,11611,11609,11611,11613,11615,11610,11611,11614,11615,11616,11617,11618,11619,11616,11617,11620,11621,11617,11619,11621,11623,11618,11619,11622,11623,11616,11618,11620,11622,11624,11625,11626,11627,11624,11625,11628,11629,11626,11627,11630,11631,11632,11633,11634,11635,11633,11635,11637,11639,11640,11641,11642,11643,11641,11643,11645,11647,11648,11649,11650,11651,11649,11651,11653,11655,11650,11651,11654,11655,11652,11653,11654,11655,11657,11659,11661,11663,11658,11659,11662,11663,11664,11665,11666,11667,11665,11667,11669,11671,11666,11667,11670,11671,11672,11673,11674,11675,11673,11675,11677,11679,11674,11675,11678,11679,11680,11681,11682,11683,11681,11683,11685,11687,11682,11683,11686,11687,11680,11682,11684,11686,11684,11685,11686,11687,11689,11691,11693,11695,11690,11691,11694,11695,11688,11690,11692,11694,11696,11697,11698,11699,11698,11699,11702,11703,11704,11705,11706,11707,11706,11707,11710,11711,11712,11713,11714,11715,11713,11715,11717,11719,11714,11715,11718,11719,11712,11714,11716,11718,11716,11717,11718,11719,11721,11723,11725,11727,11722,11723,11726,11727,11720,11722,11724,11726,11728,11729,11730,11731,11729,11731,11733,11735,11730,11731,11734,11735,11736,11737,11738,11739,11737,11739,11741,11743,11738,11739,11742,11743,11744,11745,11746,11747,11745,11747,11749,11751,11744,11746,11748,11750,11748,11749,11750,11751,11753,11755,11757,11759,11752,11754,11756,11758,11760,11761,11762,11763,11760,11762,11764,11766,11768,11769,11770,11771,11768,11770,11772,11774,11776,11777,11778,11779,11776,11777,11780,11781,11776,11778,11780,11782,11780,11781,11782,11783,11784,11785,11786,11787,11784,11786,11788,11790,11788,11789,11790,11791,11794,11795,11798,11799,11792,11794,11796,11798,11800,11802,11804,11806,11808,11809,11810,11811,11808,11809,11812,11813,11816,11817,11818,11819,11824,11825,11826,11827,11826,11827,11830,11831,11832,11833,11834,11835,11840,11841,11842,11843,11840,11841,11844,11845,11841,11843,11845,11847,11842,11843,11846,11847,11848,11849,11850,11851,11848,11849,11852,11853,11849,11851,11853,11855,11856,11857,11858,11859,11856,11857,11860,11861,11857,11859,11861,11863,11858,11859,11862,11863,11864,11865,11866,11867,11865,11867,11869,11871,11866,11867,11870,11871,11872,11873,11874,11875,11872,11873,11876,11877,11873,11875,11877,11879,11874,11875,11878,11879,11876,11877,11878,11879,11880,11881,11882,11883,11880,11881,11884,11885,11881,11883,11885,11887,11884,11885,11886,11887,11888,11889,11892,11893,11889,11891,11893,11895,11890,11891,11894,11895,11897,11899,11901,11903,11898,11899,11902,11903,11904,11905,11906,11907,11904,11905,11908,11909,11905,11907,11909,11911,11906,11907,11910,11911,11912,11913,11914,11915,11912,11913,11916,11917,11913,11915,11917,11919,11914,11915,11918,11919,11920,11921,11922,11923,11920,11921,11924,11925,11921,11923,11925,11927,11922,11923,11926,11927,11924,11925,11926,11927,11928,11929,11932,11933,11929,11931,11933,11935,11930,11931,11934,11935,11936,11937,11938,11939,11936,11937,11940,11941,11937,11939,11941,11943,11936,11938,11940,11942,11944,11945,11946,11947,11944,11945,11948,11949,11945,11947,11949,11951,11944,11946,11948,11950,11952,11953,11954,11955,11952,11953,11956,11957,11956,11957,11958,11959,11960,11961,11964,11965,11968,11969,11970,11971,11968,11969,11972,11973,11969,11971,11973,11975,11968,11970,11972,11974,11976,11977,11978,11979,11976,11977,11980,11981,11977,11979,11981,11983,11976,11978,11980,11982,11984,11985,11986,11987,11984,11985,11988,11989,11985,11987,11989,11991,11988,11989,11990,11991,11992,11993,11996,11997,11993,11995,11997,11999,12000,12001,12002,12003,12001,12003,12005,12007,12000,12002,12004,12006,12008,12009,12010,12011,12009,12011,12013,12015,12008,12010,12012,12014,12016,12017,12018,12019,12016,12018,12020,12022,12020,12021,12022,12023,12024,12026,12028,12030,12032,12033,12034,12035,12034,12035,12038,12039,12032,12034,12036,12038,12040,12041,12042,12043,12042,12043,12046,12047,12040,12042,12044,12046,12048,12049,12050,12051,12050,12051,12054,12055,12056,12057,12058,12059,12058,12059,12062,12063,12064,12065,12066,12067,12065,12067,12069,12071,12068,12069,12070,12071,12073,12075,12077,12079,12080,12081,12082,12083,12088,12089,12090,12091,12096,12097,12100,12101,12097,12099,12101,12103,12098,12099,12102,12103,12096,12098,12100,12102,12104,12105,12108,12109,12106,12107,12110,12111,12113,12115,12117,12119,12121,12123,12125,12127,12129,12131,12133,12135,12130,12131,12134,12135,12137,12139,12141,12143,12138,12139,12142,12143,12145,12147,12149,12151,12146,12147,12150,12151,12144,12146,12148,12150,12154,12155,12158,12159,12161,12163,12165,12167,12162,12163,12166,12167,12160,12162,12164,12166,12169,12171,12173,12175,12170,12171,12174,12175,12177,12179,12181,12183,12178,12179,12182,12183,12176,12178,12180,12182,12186,12187,12190,12191,12184,12186,12188,12190,12192,12193,12196,12197,12194,12195,12198,12199,12192,12194,12196,12198,12200,12202,12204,12206,12210,12211,12214,12215,12218,12219,12222,12223,12225,12227,12229,12231,12226,12227,12230,12231,12228,12229,12230,12231,12233,12235,12237,12239,12234,12235,12238,12239,12236,12237,12238,12239,12240,12241,12242,12243,12241,12243,12245,12247,12242,12243,12246,12247,12244,12245,12246,12247,12249,12251,12253,12255,12250,12251,12254,12255,12257,12259,12261,12263,12258,12259,12262,12263,12256,12258,12260,12262,12260,12261,12262,12263,12265,12267,12269,12271,12266,12267,12270,12271,12264,12266,12268,12270,12268,12269,12270,12271,12272,12273,12274,12275,12274,12275,12278,12279,12276,12277,12278,12279,12282,12283,12286,12287,12289,12291,12293,12295,12290,12291,12294,12295,12292,12293,12294,12295,12297,12299,12301,12303,12298,12299,12302,12303,12300,12301,12302,12303,12305,12307,12309,12311,12306,12307,12310,12311,12308,12309,12310,12311,12313,12315,12317,12319,12314,12315,12318,12319,12316,12317,12318,12319,12320,12321,12322,12323,12321,12323,12325,12327,12320,12322,12324,12326,12324,12325,12326,12327,12329,12331,12333,12335,12328,12330,12332,12334,12340,12341,12342,12343,12348,12349,12350,12351,12352,12353,12356,12357,12353,12355,12357,12359,12360,12361,12364,12365,12361,12363,12365,12367,12368,12369,12372,12373,12369,12371,12373,12375,12368,12370,12372,12374,12376,12377,12380,12381,12384,12385,12388,12389,12385,12387,12389,12391,12393,12395,12397,12399,12401,12403,12405,12407,12402,12403,12406,12407,12409,12411,12413,12415,12416,12417,12418,12419,12416,12417,12420,12421,12417,12419,12421,12423,12418,12419,12422,12423,12424,12425,12426,12427,12425,12427,12429,12431,12432,12433,12434,12435,12433,12435,12437,12439,12434,12435,12438,12439,12440,12441,12442,12443,12441,12443,12445,12447,12442,12443,12446,12447,12448,12449,12450,12451,12449,12451,12453,12455,12450,12451,12454,12455,12448,12450,12452,12454,12456,12457,12458,12459,12456,12457,12460,12461,12457,12459,12461,12463,12458,12459,12462,12463,12456,12458,12460,12462,12464,12465,12466,12467,12466,12467,12470,12471,12472,12473,12474,12475,12472,12473,12476,12477,12474,12475,12478,12479,12480,12481,12482,12483,12481,12483,12485,12487,12484,12485,12486,12487,12489,12491,12493,12495,12496,12497,12498,12499,12497,12499,12501,12503,12504,12505,12506,12507,12505,12507,12509,12511,12512,12513,12516,12517,12513,12515,12517,12519,12512,12514,12516,12518,12520,12521,12524,12525,12528,12529,12532,12533,12529,12531,12533,12535,12536,12537,12540,12541,12537,12539,12541,12543,12544,12545,12548,12549,12545,12547,12549,12551,12544,12546,12548,12550,12548,12549,12550,12551,12552,12553,12556,12557,12553,12555,12557,12559,12552,12554,12556,12558,12560,12561,12562,12563,12560,12561,12564,12565,12568,12569,12572,12573,12577,12579,12581,12583,12580,12581,12582,12583,12585,12587,12589,12591,12592,12593,12594,12595,12593,12595,12597,12599,12601,12603,12605,12607,12608,12609,12612,12613,12609,12611,12613,12615,12610,12611,12614,12615,12612,12613,12614,12615,12616,12617,12620,12621,12617,12619,12621,12623,12618,12619,12622,12623,12620,12621,12622,12623,12624,12625,12626,12627,12624,12625,12628,12629,12625,12627,12629,12631,12626,12627,12630,12631,12628,12629,12630,12631,12632,12633,12636,12637,12633,12635,12637,12639,12634,12635,12638,12639,12641,12643,12645,12647,12642,12643,12646,12647,12640,12642,12644,12646,12644,12645,12646,12647,12649,12651,12653,12655,12650,12651,12654,12655,12648,12650,12652,12654,12652,12653,12654,12655,12656,12657,12658,12659,12658,12659,12662,12663,12660,12661,12662,12663,12666,12667,12670,12671,12673,12675,12677,12679,12674,12675,12678,12679,12676,12677,12678,12679,12681,12683,12685,12687,12682,12683,12686,12687,12684,12685,12686,12687,12689,12691,12693,12695,12690,12691,12694,12695,12692,12693,12694,12695,12697,12699,12701,12703,12698,12699,12702,12703,12700,12701,12702,12703,12704,12705,12706,12707,12705,12707,12709,12711,12704,12706,12708,12710,12708,12709,12710,12711,12713,12715,12717,12719,12712,12714,12716,12718,12724,12725,12726,12727,12732,12733,12734,12735,12736,12737,12740,12741,12737,12739,12741,12743,12740,12741,12742,12743,12744,12745,12748,12749,12745,12747,12749,12751,12748,12749,12750,12751,12752,12753,12756,12757,12753,12755,12757,12759,12752,12754,12756,12758,12756,12757,12758,12759,12760,12761,12764,12765,12764,12765,12766,12767,12768,12769,12772,12773,12769,12771,12773,12775,12772,12773,12774,12775,12776,12777,12780,12781,12777,12779,12781,12783,12780,12781,12782,12783,12784,12785,12788,12789,12785,12787,12789,12791,12786,12787,12790,12791,12788,12789,12790,12791,12793,12795,12797,12799,12796,12797,12798,12799,12800,12801,12802,12803,12800,12801,12804,12805,12801,12803,12805,12807,12802,12803,12806,12807,12804,12805,12806,12807,12808,12809,12810,12811,12808,12809,12812,12813,12809,12811,12813,12815,12812,12813,12814,12815,12816,12817,12818,12819,12816,12817,12820,12821,12817,12819,12821,12823,12818,12819,12822,12823,12820,12821,12822,12823,12824,12825,12826,12827,12825,12827,12829,12831,12826,12827,12830,12831,12828,12829,12830,12831,12832,12833,12834,12835,12833,12835,12837,12839,12834,12835,12838,12839,12832,12834,12836,12838,12836,12837,12838,12839,12840,12841,12842,12843,12840,12841,12844,12845,12841,12843,12845,12847,12842,12843,12846,12847,12840,12842,12844,12846,12848,12849,12850,12851,12850,12851,12854,12855,12852,12853,12854,12855,12856,12857,12858,12859,12856,12857,12860,12861,12858,12859,12862,12863,12864,12865,12866,12867,12865,12867,12869,12871,12868,12869,12870,12871,12873,12875,12877,12879,12876,12877,12878,12879,12880,12881,12882,12883,12881,12883,12885,12887,12884,12885,12886,12887,12888,12889,12890,12891,12889,12891,12893,12895,12896,12897,12900,12901,12897,12899,12901,12903,12896,12898,12900,12902,12904,12905,12908,12909,12912,12913,12916,12917,12913,12915,12917,12919,12920,12921,12924,12925,12921,12923,12925,12927,12928,12929,12932,12933,12929,12931,12933,12935,12928,12930,12932,12934,12932,12933,12934,12935,12936,12937,12940,12941,12937,12939,12941,12943,12936,12938,12940,12942,12944,12945,12946,12947,12944,12945,12948,12949,12952,12953,12956,12957,12960,12961,12964,12965,12961,12963,12965,12967,12964,12965,12966,12967,12968,12969,12972,12973,12969,12971,12973,12975,12976,12977,12978,12979,12976,12977,12980,12981,12977,12979,12981,12983,12984,12985,12988,12989,12985,12987,12989,12991,12992,12993,12996,12997,12993,12995,12997,12999,12992,12994,12996,12998,12996,12997,12998,12999,13000,13001,13004,13005,13001,13003,13005,13007,13000,13002,13004,13006,13004,13005,13006,13007,13008,13009,13012,13013,13009,13011,13013,13015,13010,13011,13014,13015,13008,13010,13012,13014,13012,13013,13014,13015,13017,13019,13021,13023,13016,13018,13020,13022,13020,13021,13022,13023,13024,13025,13026,13027,13024,13025,13028,13029,13024,13026,13028,13030,13028,13029,13030,13031,13032,13033,13034,13035,13032,13033,13036,13037,13032,13034,13036,13038,13036,13037,13038,13039,13040,13041,13044,13045,13042,13043,13046,13047,13040,13042,13044,13046,13048,13050,13052,13054,13056,13057,13060,13061,13056,13058,13060,13062,13060,13061,13062,13063,13064,13065,13068,13069,13064,13066,13068,13070,13068,13069,13070,13071,13072,13073,13074,13075,13072,13073,13076,13077,13076,13077,13078,13079,13080,13081,13084,13085,13088,13089,13092,13093,13089,13091,13093,13095,13092,13093,13094,13095,13096,13097,13100,13101,13097,13099,13101,13103,13100,13101,13102,13103,13104,13105,13106,13107,13104,13105,13108,13109,13108,13109,13110,13111,13112,13113,13116,13117,13120,13121,13124,13125,13121,13123,13125,13127,13120,13122,13124,13126,13124,13125,13126,13127,13128,13129,13132,13133,13129,13131,13133,13135,13128,13130,13132,13134,13132,13133,13134,13135,13136,13137,13138,13139,13136,13137,13140,13141,13140,13141,13142,13143,13144,13145,13148,13149,13153,13155,13157,13159,13156,13157,13158,13159,13161,13163,13165,13167,13164,13165,13166,13167,13168,13169,13170,13171,13169,13171,13173,13175,13172,13173,13174,13175,13177,13179,13181,13183,13185,13187,13189,13191,13186,13187,13190,13191,13188,13189,13190,13191,13193,13195,13197,13199,13194,13195,13198,13199,13196,13197,13198,13199,13201,13203,13205,13207,13200,13202,13204,13206,13204,13205,13206,13207,13212,13213,13214,13215,13216,13217,13220,13221,13217,13219,13221,13223,13220,13221,13222,13223,13224,13225,13228,13229,13225,13227,13229,13231,13228,13229,13230,13231,13233,13235,13237,13239,13232,13234,13236,13238,13236,13237,13238,13239,13244,13245,13246,13247,13249,13251,13253,13255,13250,13251,13254,13255,13248,13250,13252,13254,13252,13253,13254,13255,13257,13259,13261,13263,13258,13259,13262,13263,13260,13261,13262,13263,13265,13267,13269,13271,13266,13267,13270,13271,13264,13266,13268,13270,13268,13269,13270,13271,13274,13275,13278,13279,13272,13274,13276,13278,13276,13277,13278,13279,13280,13281,13284,13285,13281,13283,13285,13287,13282,13283,13286,13287,13280,13282,13284,13286,13284,13285,13286,13287,13288,13289,13292,13293,13289,13291,13293,13295,13290,13291,13294,13295,13292,13293,13294,13295,13297,13299,13301,13303,13296,13298,13300,13302,13300,13301,13302,13303,13304,13306,13308,13310,13308,13309,13310,13311,13312,13313,13314,13315,13314,13315,13318,13319,13312,13314,13316,13318,13316,13317,13318,13319,13322,13323,13326,13327,13320,13322,13324,13326,13330,13331,13334,13335,13332,13333,13334,13335,13338,13339,13342,13343,13340,13341,13342,13343,13344,13345,13346,13347,13345,13347,13349,13351,13346,13347,13350,13351,13348,13349,13350,13351,13353,13355,13357,13359,13354,13355,13358,13359,13362,13363,13366,13367,13364,13365,13366,13367,13370,13371,13374,13375,13372,13373,13374,13375,13376,13377,13378,13379,13377,13379,13381,13383,13378,13379,13382,13383,13376,13378,13380,13382,13380,13381,13382,13383,13385,13387,13389,13391,13386,13387,13390,13391,13384,13386,13388,13390,13394,13395,13398,13399,13396,13397,13398,13399,13402,13403,13406,13407,13404,13405,13406,13407,13408,13409,13410,13411,13409,13411,13413,13415,13410,13411,13414,13415,13412,13413,13414,13415,13417,13419,13421,13423,13425,13427,13429,13431,13428,13429,13430,13431,13433,13435,13437,13439,13434,13435,13438,13439,13436,13437,13438,13439,13440,13441,13442,13443,13440,13441,13444,13445,13441,13443,13445,13447,13442,13443,13446,13447,13444,13445,13446,13447,13448,13449,13450,13451,13449,13451,13453,13455,13452,13453,13454,13455,13457,13459,13461,13463,13458,13459,13462,13463,13465,13467,13469,13471,13472,13473,13476,13477,13473,13475,13477,13479,13476,13477,13478,13479,13481,13483,13485,13487,13484,13485,13486,13487,13489,13491,13493,13495,13490,13491,13494,13495,13492,13493,13494,13495,13497,13499,13501,13503,13498,13499,13502,13503,13500,13501,13502,13503,13504,13505,13508,13509,13505,13507,13509,13511,13506,13507,13510,13511,13504,13506,13508,13510,13508,13509,13510,13511,13512,13513,13516,13517,13513,13515,13517,13519,13512,13514,13516,13518,13516,13517,13518,13519,13520,13521,13524,13525,13521,13523,13525,13527,13522,13523,13526,13527,13520,13522,13524,13526,13524,13525,13526,13527,13529,13531,13533,13535,13530,13531,13534,13535,13528,13530,13532,13534,13532,13533,13534,13535,13536,13537,13538,13539,13536,13537,13540,13541,13538,13539,13542,13543,13536,13538,13540,13542,13540,13541,13542,13543,13544,13545,13546,13547,13544,13545,13548,13549,13544,13546,13548,13550,13548,13549,13550,13551,13552,13553,13556,13557,13554,13555,13558,13559,13552,13554,13556,13558,13562,13563,13566,13567,13560,13562,13564,13566,13568,13569,13572,13573,13570,13571,13574,13575,13568,13570,13572,13574,13572,13573,13574,13575,13576,13577,13580,13581,13578,13579,13582,13583,13576,13578,13580,13582,13580,13581,13582,13583,13584,13585,13586,13587,13584,13585,13588,13589,13586,13587,13590,13591,13588,13589,13590,13591,13592,13593,13596,13597,13594,13595,13598,13599,13600,13601,13604,13605,13601,13603,13605,13607,13604,13605,13606,13607,13608,13609,13612,13613,13609,13611,13613,13615,13612,13613,13614,13615,13616,13617,13618,13619,13616,13617,13620,13621,13620,13621,13622,13623,13624,13625,13628,13629,13632,13633,13636,13637,13633,13635,13637,13639,13632,13634,13636,13638,13636,13637,13638,13639,13640,13641,13644,13645,13641,13643,13645,13647,13640,13642,13644,13646,13644,13645,13646,13647,13648,13649,13650,13651,13648,13649,13652,13653,13652,13653,13654,13655,13656,13657,13660,13661,13665,13667,13669,13671,13668,13669,13670,13671,13673,13675,13677,13679,13676,13677,13678,13679,13680,13681,13682,13683,13681,13683,13685,13687,13684,13685,13686,13687,13689,13691,13693,13695,13697,13699,13701,13703,13698,13699,13702,13703,13700,13701,13702,13703,13705,13707,13709,13711,13706,13707,13710,13711,13708,13709,13710,13711,13713,13715,13717,13719,13714,13715,13718,13719,13716,13717,13718,13719,13721,13723,13725,13727,13722,13723,13726,13727,13724,13725,13726,13727,13728,13729,13730,13731,13729,13731,13733,13735,13728,13730,13732,13734,13732,13733,13734,13735,13737,13739,13741,13743,13736,13738,13740,13742,13748,13749,13750,13751,13756,13757,13758,13759,13760,13761,13764,13765,13761,13763,13765,13767,13762,13763,13766,13767,13760,13762,13764,13766,13768,13769,13772,13773,13769,13771,13773,13775,13770,13771,13774,13775,13777,13779,13781,13783,13776,13778,13780,13782,13784,13786,13788,13790,13794,13795,13798,13799,13792,13794,13796,13798,13802,13803,13806,13807,13809,13811,13813,13815,13810,13811,13814,13815,13818,13819,13822,13823,13825,13827,13829,13831,13826,13827,13830,13831,13824,13826,13828,13830,13834,13835,13838,13839,13841,13843,13845,13847,13842,13843,13846,13847,13849,13851,13853,13855,13850,13851,13854,13855,13856,13857,13860,13861,13857,13859,13861,13863,13858,13859,13862,13863,13865,13867,13869,13871,13873,13875,13877,13879,13874,13875,13878,13879,13881,13883,13885,13887,13882,13883,13886,13887,13888,13889,13890,13891,13889,13891,13893,13895,13890,13891,13894,13895,13888,13890,13892,13894,13896,13897,13898,13899,13898,13899,13902,13903,13896,13898,13900,13902,13904,13905,13906,13907,13905,13907,13909,13911,13906,13907,13910,13911,13904,13906,13908,13910,13912,13913,13914,13915,13913,13915,13917,13919,13914,13915,13918,13919,13920,13921,13922,13923,13920,13921,13924,13925,13921,13923,13925,13927,13922,13923,13926,13927,13920,13922,13924,13926,13928,13929,13930,13931,13928,13929,13932,13933,13930,13931,13934,13935,13928,13930,13932,13934,13936,13937,13938,13939,13937,13939,13941,13943,13936,13938,13940,13942,13944,13945,13946,13947,13945,13947,13949,13951,13952,13953,13954,13955,13953,13955,13957,13959,13954,13955,13958,13959,13952,13954,13956,13958,13960,13961,13962,13963,13961,13963,13965,13967,13962,13963,13966,13967,13960,13962,13964,13966,13968,13969,13972,13973,13969,13971,13973,13975,13970,13971,13974,13975,13968,13970,13972,13974,13977,13979,13981,13983,13976,13978,13980,13982,13986,13987,13990,13991,13984,13986,13988,13990,13988,13989,13990,13991,13994,13995,13998,13999,13992,13994,13996,13998,13996,13997,13998,13999,14000,14001,14004,14005,14002,14003,14006,14007,14000,14002,14004,14006,14008,14010,14012,14014,14016,14017,14018,14019,14018,14019,14022,14023,14016,14018,14020,14022,14020,14021,14022,14023,14024,14025,14026,14027,14026,14027,14030,14031,14024,14026,14028,14030,14028,14029,14030,14031,14032,14033,14036,14037,14034,14035,14038,14039,14032,14034,14036,14038,14040,14042,14044,14046,14050,14051,14054,14055,14052,14053,14054,14055,14058,14059,14062,14063,14060,14061,14062,14063,14064,14065,14068,14069,14066,14067,14070,14071,14068,14069,14070,14071,14076,14077,14078,14079,14081,14083,14085,14087,14082,14083,14086,14087,14084,14085,14086,14087,14089,14091,14093,14095,14090,14091,14094,14095,14096,14097,14098,14099,14098,14099,14102,14103,14106,14107,14110,14111,14114,14115,14118,14119,14112,14114,14116,14118,14116,14117,14118,14119,14122,14123,14126,14127,14120,14122,14124,14126,14128,14129,14130,14131,14130,14131,14134,14135,14138,14139,14142,14143,14144,14145,14146,14147,14145,14147,14149,14151,14146,14147,14150,14151,14148,14149,14150,14151,14153,14155,14157,14159,14154,14155,14158,14159,14160,14161,14162,14163,14161,14163,14165,14167,14162,14163,14166,14167,14168,14169,14170,14171,14169,14171,14173,14175,14170,14171,14174,14175,14176,14177,14178,14179,14177,14179,14181,14183,14176,14178,14180,14182,14180,14181,14182,14183,14185,14187,14189,14191,14184,14186,14188,14190,14192,14193,14194,14195,14200,14201,14202,14203,14208,14209,14210,14211,14208,14209,14212,14213,14209,14211,14213,14215,14216,14217,14218,14219,14217,14219,14221,14223,14225,14227,14229,14231,14226,14227,14230,14231,14233,14235,14237,14239,14240,14241,14244,14245,14241,14243,14245,14247,14244,14245,14246,14247,14249,14251,14253,14255,14252,14253,14254,14255,14257,14259,14261,14263,14258,14259,14262,14263,14265,14267,14269,14271,14272,14273,14274,14275,14272,14273,14276,14277,14273,14275,14277,14279,14276,14277,14278,14279,14280,14281,14282,14283,14281,14283,14285,14287,14284,14285,14286,14287,14289,14291,14293,14295,14290,14291,14294,14295,14297,14299,14301,14303,14304,14305,14308,14309,14305,14307,14309,14311,14308,14309,14310,14311,14313,14315,14317,14319,14316,14317,14318,14319,14321,14323,14325,14327,14322,14323,14326,14327,14324,14325,14326,14327,14329,14331,14333,14335,14332,14333,14334,14335,14336,14337,14340,14341,14337,14339,14341,14343,14336,14338,14340,14342,14340,14341,14342,14343,14344,14345,14348,14349,14348,14349,14350,14351,14353,14355,14357,14359,14356,14357,14358,14359,14361,14363,14365,14367,14364,14365,14366,14367,14369,14371,14373,14375,14370,14371,14374,14375,14368,14370,14372,14374,14378,14379,14382,14383,14385,14387,14389,14391,14393,14395,14397,14399,14400,14401,14402,14403,14400,14401,14404,14405,14401,14403,14405,14407,14402,14403,14406,14407,14408,14409,14410,14411,14408,14409,14412,14413,14409,14411,14413,14415,14410,14411,14414,14415,14416,14417,14418,14419,14416,14417,14420,14421,14417,14419,14421,14423,14416,14418,14420,14422,14424,14425,14426,14427,14424,14425,14428,14429,14432,14433,14434,14435,14432,14433,14436,14437,14433,14435,14437,14439,14434,14435,14438,14439,14440,14441,14442,14443,14440,14441,14444,14445,14441,14443,14445,14447,14442,14443,14446,14447,14448,14449,14450,14451,14449,14451,14453,14455,14450,14451,14454,14455,14448,14450,14452,14454,14456,14457,14458,14459,14458,14459,14462,14463,14464,14465,14466,14467,14464,14465,14468,14469,14465,14467,14469,14471,14466,14467,14470,14471,14472,14473,14474,14475,14472,14473,14476,14477,14473,14475,14477,14479,14480,14481,14482,14483,14480,14481,14484,14485,14481,14483,14485,14487,14482,14483,14486,14487,14488,14489,14490,14491,14489,14491,14493,14495,14490,14491,14494,14495,14496,14497,14498,14499,14496,14497,14500,14501,14497,14499,14501,14503,14498,14499,14502,14503,14500,14501,14502,14503,14504,14505,14506,14507,14504,14505,14508,14509,14505,14507,14509,14511,14508,14509,14510,14511,14512,14513,14516,14517,14513,14515,14517,14519,14514,14515,14518,14519,14521,14523,14525,14527,14522,14523,14526,14527,14528,14529,14530,14531,14528,14529,14532,14533,14529,14531,14533,14535,14530,14531,14534,14535,14532,14533,14534,14535,14536,14537,14538,14539,14536,14537,14540,14541,14537,14539,14541,14543,14540,14541,14542,14543,14544,14545,14546,14547,14544,14545,14548,14549,14545,14547,14549,14551,14546,14547,14550,14551,14552,14553,14554,14555,14553,14555,14557,14559,14554,14555,14558,14559,14560,14561,14562,14563,14560,14561,14564,14565,14561,14563,14565,14567,14562,14563,14566,14567,14564,14565,14566,14567,14568,14569,14570,14571,14568,14569,14572,14573,14569,14571,14573,14575,14572,14573,14574,14575,14576,14577,14580,14581,14577,14579,14581,14583,14578,14579,14582,14583,14580,14581,14582,14583,14585,14587,14589,14591,14586,14587,14590,14591,14588,14589,14590,14591,14592,14593,14596,14597,14593,14595,14597,14599,14594,14595,14598,14599,14592,14594,14596,14598,14596,14597,14598,14599,14600,14601,14604,14605,14601,14603,14605,14607,14602,14603,14606,14607,14600,14602,14604,14606,14608,14609,14610,14611,14608,14609,14612,14613,14610,14611,14614,14615,14616,14617,14620,14621,14618,14619,14622,14623,14624,14625,14628,14629,14625,14627,14629,14631,14628,14629,14630,14631,14632,14633,14636,14637,14633,14635,14637,14639,14640,14641,14642,14643,14640,14641,14644,14645,14641,14643,14645,14647,14648,14649,14652,14653,14649,14651,14653,14655,14656,14657,14658,14659,14656,14657,14660,14661,14657,14659,14661,14663,14656,14658,14660,14662,14660,14661,14662,14663,14664,14665,14668,14669,14665,14667,14669,14671,14664,14666,14668,14670,14672,14673,14674,14675,14672,14673,14676,14677,14672,14674,14676,14678,14680,14681,14682,14683,14680,14681,14684,14685,14680,14682,14684,14686,14688,14689,14690,14691,14688,14689,14692,14693,14689,14691,14693,14695,14688,14690,14692,14694,14692,14693,14694,14695,14696,14697,14700,14701,14697,14699,14701,14703,14696,14698,14700,14702,14704,14705,14706,14707,14704,14705,14708,14709,14705,14707,14709,14711,14712,14713,14714,14715,14712,14713,14716,14717,14713,14715,14717,14719,14720,14721,14722,14723,14720,14721,14724,14725,14721,14723,14725,14727,14722,14723,14726,14727,14720,14722,14724,14726,14728,14729,14730,14731,14729,14731,14733,14735,14728,14730,14732,14734,14736,14737,14738,14739,14736,14737,14740,14741,14737,14739,14741,14743,14736,14738,14740,14742,14744,14745,14746,14747,14744,14745,14748,14749,14745,14747,14749,14751,14744,14746,14748,14750,14752,14753,14754,14755,14752,14753,14756,14757,14754,14755,14758,14759,14752,14754,14756,14758,14756,14757,14758,14759,14760,14761,14762,14763,14760,14762,14764,14766,14764,14765,14766,14767,14768,14769,14772,14773,14768,14770,14772,14774,14776,14777,14780,14781,14776,14778,14780,14782,14784,14785,14786,14787,14784,14785,14788,14789,14786,14787,14790,14791,14784,14786,14788,14790,14788,14789,14790,14791,14792,14793,14794,14795,14792,14794,14796,14798,14796,14797,14798,14799,14800,14801,14802,14803,14800,14801,14804,14805,14800,14802,14804,14806,14808,14809,14810,14811,14808,14809,14812,14813,14808,14810,14812,14814,14816,14817,14818,14819,14816,14817,14820,14821,14818,14819,14822,14823,14820,14821,14822,14823,14824,14825,14826,14827,14828,14829,14830,14831,14832,14833,14836,14837,14836,14837,14838,14839,14840,14841,14844,14845,14844,14845,14846,14847,14848,14849,14852,14853,14849,14851,14853,14855,14850,14851,14854,14855,14852,14853,14854,14855,14856,14857,14860,14861,14858,14859,14862,14863,14860,14861,14862,14863,14864,14866,14868,14870,14868,14869,14870,14871,14876,14877,14878,14879,14880,14881,14884,14885,14881,14883,14885,14887,14888,14889,14892,14893,14896,14897,14900,14901,14896,14898,14900,14902,14904,14905,14908,14909,14912,14913,14914,14915,14912,14913,14916,14917,14913,14915,14917,14919,14920,14921,14922,14923,14920,14921,14924,14925,14921,14923,14925,14927,14928,14929,14930,14931,14928,14929,14932,14933,14929,14931,14933,14935,14930,14931,14934,14935,14936,14937,14938,14939,14937,14939,14941,14943,14944,14945,14946,14947,14944,14945,14948,14949,14945,14947,14949,14951,14948,14949,14950,14951,14952,14953,14954,14955,14952,14953,14956,14957,14953,14955,14957,14959,14956,14957,14958,14959,14960,14961,14964,14965,14961,14963,14965,14967,14962,14963,14966,14967,14969,14971,14973,14975,14976,14977,14978,14979,14976,14977,14980,14981,14977,14979,14981,14983,14984,14985,14986,14987,14984,14985,14988,14989,14985,14987,14989,14991,14992,14993,14994,14995,14992,14993,14996,14997,14993,14995,14997,14999,14996,14997,14998,14999,15000,15001,15004,15005,15001,15003,15005,15007,15008,15009,15010,15011,15008,15009,15012,15013,15009,15011,15013,15015,15008,15010,15012,15014,15016,15017,15018,15019,15016,15017,15020,15021,15017,15019,15021,15023,15016,15018,15020,15022,15024,15025,15026,15027,15024,15025,15028,15029,15028,15029,15030,15031,15032,15033,15036,15037,15040,15041,15042,15043,15040,15041,15044,15045,15041,15043,15045,15047,15040,15042,15044,15046,15048,15049,15050,15051,15048,15049,15052,15053,15049,15051,15053,15055,15048,15050,15052,15054,15056,15057,15058,15059,15056,15057,15060,15061,15057,15059,15061,15063,15060,15061,15062,15063,15064,15065,15068,15069,15065,15067,15069,15071,15072,15073,15074,15075,15073,15075,15077,15079,15072,15074,15076,15078,15080,15081,15082,15083,15081,15083,15085,15087,15080,15082,15084,15086,15088,15089,15090,15091,15088,15090,15092,15094,15092,15093,15094,15095,15096,15098,15100,15102,15104,15105,15106,15107,15106,15107,15110,15111,15104,15106,15108,15110,15112,15113,15114,15115,15114,15115,15118,15119,15120,15121,15122,15123,15121,15123,15125,15127,15128,15129,15130,15131,15136,15137,15138,15139,15136,15137,15140,15141,15136,15138,15140,15142,15144,15145,15146,15147,15144,15145,15148,15149,15152,15153,15154,15155,15153,15155,15157,15159,15160,15161,15162,15163,15168,15169,15170,15171,15169,15171,15173,15175,15170,15171,15174,15175,15168,15170,15172,15174,15176,15177,15178,15179,15178,15179,15182,15183,15184,15185,15186,15187,15185,15187,15189,15191,15186,15187,15190,15191,15192,15193,15194,15195,15193,15195,15197,15199,15194,15195,15198,15199,15200,15201,15202,15203,15200,15201,15204,15205,15201,15203,15205,15207,15202,15203,15206,15207,15200,15202,15204,15206,15208,15209,15210,15211,15208,15209,15212,15213,15210,15211,15214,15215,15216,15217,15218,15219,15217,15219,15221,15223,15224,15225,15226,15227,15225,15227,15229,15231,15232,15233,15234,15235,15233,15235,15237,15239,15234,15235,15238,15239,15236,15237,15238,15239,15241,15243,15245,15247,15242,15243,15246,15247,15248,15249,15250,15251,15249,15251,15253,15255,15250,15251,15254,15255,15256,15257,15258,15259,15257,15259,15261,15263,15258,15259,15262,15263,15264,15265,15266,15267,15265,15267,15269,15271,15266,15267,15270,15271,15264,15266,15268,15270,15268,15269,15270,15271,15273,15275,15277,15279,15274,15275,15278,15279,15272,15274,15276,15278,15280,15281,15282,15283,15282,15283,15286,15287,15288,15289,15290,15291,15290,15291,15294,15295,15296,15297,15298,15299,15297,15299,15301,15303,15298,15299,15302,15303,15296,15298,15300,15302,15300,15301,15302,15303,15305,15307,15309,15311,15306,15307,15310,15311,15304,15306,15308,15310,15312,15313,15314,15315,15313,15315,15317,15319,15314,15315,15318,15319,15320,15321,15322,15323,15321,15323,15325,15327,15322,15323,15326,15327,15328,15329,15330,15331,15329,15331,15333,15335,15328,15330,15332,15334,15332,15333,15334,15335,15337,15339,15341,15343,15336,15338,15340,15342,15344,15345,15346,15347,15344,15346,15348,15350,15352,15353,15354,15355,15352,15354,15356,15358,15360,15361,15362,15363,15360,15361,15364,15365,15360,15362,15364,15366,15364,15365,15366,15367,15368,15369,15370,15371,15368,15370,15372,15374,15372,15373,15374,15375,15378,15379,15382,15383,15376,15378,15380,15382,15384,15386,15388,15390,15392,15393,15394,15395,15392,15393,15396,15397,15400,15401,15402,15403,15408,15409,15410,15411,15410,15411,15414,15415,15416,15417,15418,15419,15424,15425,15426,15427,15424,15425,15428,15429,15425,15427,15429,15431,15426,15427,15430,15431,15432,15433,15434,15435,15432,15433,15436,15437,15433,15435,15437,15439,15440,15441,15442,15443,15440,15441,15444,15445,15441,15443,15445,15447,15442,15443,15446,15447,15448,15449,15450,15451,15449,15451,15453,15455,15450,15451,15454,15455,15456,15457,15458,15459,15456,15457,15460,15461,15457,15459,15461,15463,15458,15459,15462,15463,15460,15461,15462,15463,15464,15465,15466,15467,15464,15465,15468,15469,15465,15467,15469,15471,15468,15469,15470,15471,15472,15473,15476,15477,15473,15475,15477,15479,15474,15475,15478,15479,15481,15483,15485,15487,15482,15483,15486,15487,15488,15489,15490,15491,15488,15489,15492,15493,15489,15491,15493,15495,15490,15491,15494,15495,15496,15497,15498,15499,15496,15497,15500,15501,15497,15499,15501,15503,15498,15499,15502,15503,15504,15505,15506,15507,15504,15505,15508,15509,15505,15507,15509,15511,15506,15507,15510,15511,15508,15509,15510,15511,15512,15513,15516,15517,15513,15515,15517,15519,15514,15515,15518,15519,15520,15521,15522,15523,15520,15521,15524,15525,15521,15523,15525,15527,15520,15522,15524,15526,15528,15529,15530,15531,15528,15529,15532,15533,15529,15531,15533,15535,15528,15530,15532,15534,15536,15537,15538,15539,15536,15537,15540,15541,15540,15541,15542,15543,15544,15545,15548,15549,15552,15553,15554,15555,15552,15553,15556,15557,15553,15555,15557,15559,15552,15554,15556,15558,15560,15561,15562,15563,15560,15561,15564,15565,15561,15563,15565,15567,15560,15562,15564,15566,15568,15569,15570,15571,15568,15569,15572,15573,15569,15571,15573,15575,15572,15573,15574,15575,15576,15577,15580,15581,15577,15579,15581,15583,15584,15585,15586,15587,15585,15587,15589,15591,15584,15586,15588,15590,15592,15593,15594,15595,15593,15595,15597,15599,15592,15594,15596,15598,15600,15601,15602,15603,15600,15602,15604,15606,15604,15605,15606,15607,15608,15610,15612,15614,15616,15617,15618,15619,15618,15619,15622,15623,15616,15618,15620,15622,15624,15625,15626,15627,15626,15627,15630,15631,15624,15626,15628,15630,15632,15633,15634,15635,15634,15635,15638,15639,15640,15641,15642,15643,15642,15643,15646,15647,15648,15649,15650,15651,15649,15651,15653,15655,15652,15653,15654,15655,15657,15659,15661,15663,15664,15665,15666,15667,15672,15673,15674,15675,15680,15681,15682,15683,15680,15681,15684,15685,15681,15683,15685,15687,15682,15683,15686,15687,15680,15682,15684,15686,15688,15689,15690,15691,15688,15689,15692,15693,15690,15691,15694,15695,15696,15697,15698,15699,15697,15699,15701,15703,15704,15705,15706,15707,15705,15707,15709,15711,15712,15713,15714,15715,15713,15715,15717,15719,15714,15715,15718,15719,15720,15721,15722,15723,15721,15723,15725,15727,15722,15723,15726,15727,15728,15729,15730,15731,15729,15731,15733,15735,15730,15731,15734,15735,15728,15730,15732,15734,15736,15737,15738,15739,15738,15739,15742,15743,15744,15745,15746,15747,15745,15747,15749,15751,15746,15747,15750,15751,15744,15746,15748,15750,15752,15753,15754,15755,15753,15755,15757,15759,15754,15755,15758,15759,15760,15761,15762,15763,15761,15763,15765,15767,15762,15763,15766,15767,15760,15762,15764,15766,15768,15769,15770,15771,15770,15771,15774,15775,15768,15770,15772,15774,15776,15777,15778,15779,15776,15777,15780,15781,15778,15779,15782,15783,15776,15778,15780,15782,15784,15785,15786,15787,15784,15786,15788,15790,15792,15793,15794,15795,15794,15795,15798,15799,15800,15801,15802,15803,15802,15803,15806,15807,15808,15809,15810,15811,15809,15811,15813,15815,15810,15811,15814,15815,15812,15813,15814,15815,15817,15819,15821,15823,15818,15819,15822,15823,15820,15821,15822,15823,15824,15825,15826,15827,15825,15827,15829,15831,15826,15827,15830,15831,15828,15829,15830,15831,15832,15833,15834,15835,15833,15835,15837,15839,15834,15835,15838,15839,15840,15841,15842,15843,15841,15843,15845,15847,15842,15843,15846,15847,15840,15842,15844,15846,15844,15845,15846,15847,15849,15851,15853,15855,15850,15851,15854,15855,15848,15850,15852,15854,15852,15853,15854,15855,15856,15857,15858,15859,15858,15859,15862,15863,15860,15861,15862,15863,15864,15865,15866,15867,15866,15867,15870,15871,15872,15873,15874,15875,15873,15875,15877,15879,15874,15875,15878,15879,15876,15877,15878,15879,15881,15883,15885,15887,15882,15883,15886,15887,15884,15885,15886,15887,15888,15889,15890,15891,15889,15891,15893,15895,15890,15891,15894,15895,15892,15893,15894,15895,15897,15899,15901,15903,15898,15899,15902,15903,15900,15901,15902,15903,15904,15905,15906,15907,15905,15907,15909,15911,15906,15907,15910,15911,15904,15906,15908,15910,15908,15909,15910,15911,15912,15913,15914,15915,15913,15915,15917,15919,15914,15915,15918,15919,15912,15914,15916,15918,15920,15921,15922,15923,15922,15923,15926,15927,15924,15925,15926,15927,15930,15931,15934,15935,15932,15933,15934,15935,15936,15937,15940,15941,15937,15939,15941,15943,15938,15939,15942,15943,15944,15945,15948,15949,15945,15947,15949,15951,15946,15947,15950,15951,15952,15953,15956,15957,15953,15955,15957,15959,15952,15954,15956,15958,15960,15961,15964,15965,15968,15969,15972,15973,15969,15971,15973,15975,15977,15979,15981,15983,15985,15987,15989,15991,15986,15987,15990,15991,15993,15995,15997,15999,16000,16001,16002,16003,16000,16001,16004,16005,16001,16003,16005,16007,16002,16003,16006,16007,16008,16009,16010,16011,16009,16011,16013,16015,16016,16017,16018,16019,16017,16019,16021,16023,16018,16019,16022,16023,16024,16025,16026,16027,16025,16027,16029,16031,16026,16027,16030,16031,16032,16033,16034,16035,16033,16035,16037,16039,16034,16035,16038,16039,16032,16034,16036,16038,16040,16041,16042,16043,16040,16041,16044,16045,16041,16043,16045,16047,16042,16043,16046,16047,16040,16042,16044,16046,16048,16049,16050,16051,16050,16051,16054,16055,16056,16057,16058,16059,16056,16057,16060,16061,16058,16059,16062,16063,16064,16065,16066,16067,16065,16067,16069,16071,16066,16067,16070,16071,16068,16069,16070,16071,16073,16075,16077,16079,16074,16075,16078,16079,16080,16081,16082,16083,16081,16083,16085,16087,16082,16083,16086,16087,16088,16089,16090,16091,16089,16091,16093,16095,16090,16091,16094,16095,16096,16097,16098,16099,16096,16097,16100,16101,16097,16099,16101,16103,16098,16099,16102,16103,16096,16098,16100,16102,16104,16105,16106,16107,16104,16105,16108,16109,16106,16107,16110,16111,16112,16113,16114,16115,16112,16113,16116,16117,16113,16115,16117,16119,16120,16121,16122,16123,16120,16121,16124,16125,16121,16123,16125,16127,16128,16129,16130,16131,16128,16129,16132,16133,16129,16131,16133,16135,16128,16130,16132,16134,16132,16133,16134,16135,16136,16137,16140,16141,16137,16139,16141,16143,16136,16138,16140,16142,16144,16145,16146,16147,16144,16145,16148,16149,16152,16153,16154,16155,16152,16153,16156,16157,16160,16161,16162,16163,16161,16163,16165,16167,16164,16165,16166,16167,16169,16171,16173,16175,16176,16177,16178,16179,16177,16179,16181,16183,16184,16185,16186,16187,16185,16187,16189,16191,16192,16193,16194,16195,16192,16193,16196,16197,16193,16195,16197,16199,16194,16195,16198,16199,16196,16197,16198,16199,16200,16201,16204,16205,16201,16203,16205,16207,16202,16203,16206,16207,16204,16205,16206,16207,16208,16209,16210,16211,16208,16209,16212,16213,16209,16211,16213,16215,16210,16211,16214,16215,16212,16213,16214,16215,16216,16217,16218,16219,16216,16217,16220,16221,16217,16219,16221,16223,16218,16219,16222,16223,16224,16225,16226,16227,16225,16227,16229,16231,16226,16227,16230,16231,16224,16226,16228,16230,16228,16229,16230,16231,16233,16235,16237,16239,16234,16235,16238,16239,16232,16234,16236,16238,16236,16237,16238,16239,16240,16241,16242,16243,16242,16243,16246,16247,16244,16245,16246,16247,16248,16249,16250,16251,16250,16251,16254,16255,16256,16257,16258,16259,16257,16259,16261,16263,16258,16259,16262,16263,16260,16261,16262,16263,16265,16267,16269,16271,16266,16267,16270,16271,16268,16269,16270,16271,16272,16273,16274,16275,16273,16275,16277,16279,16274,16275,16278,16279,16276,16277,16278,16279,16281,16283,16285,16287,16282,16283,16286,16287,16284,16285,16286,16287,16288,16289,16290,16291,16289,16291,16293,16295,16290,16291,16294,16295,16288,16290,16292,16294,16292,16293,16294,16295,16296,16297,16298,16299,16297,16299,16301,16303,16298,16299,16302,16303,16296,16298,16300,16302,16304,16305,16306,16307,16306,16307,16310,16311,16308,16309,16310,16311,16314,16315,16318,16319,16316,16317,16318,16319,16320,16321,16324,16325,16321,16323,16325,16327,16322,16323,16326,16327,16324,16325,16326,16327,16328,16329,16332,16333,16329,16331,16333,16335,16330,16331,16334,16335,16332,16333,16334,16335,16336,16337,16340,16341,16337,16339,16341,16343,16336,16338,16340,16342,16340,16341,16342,16343,16344,16345,16348,16349,16348,16349,16350,16351,16352,16353,16356,16357,16353,16355,16357,16359,16356,16357,16358,16359,16360,16361,16364,16365,16361,16363,16365,16367,16364,16365,16366,16367,16368,16369,16372,16373,16369,16371,16373,16375,16372,16373,16374,16375,16376,16377,16380,16381,16377,16379,16381,16383,16380,16381,16382,16383,16384,16385,16386,16387,16384,16385,16388,16389,16386,16387,16390,16391,16388,16389,16390,16391,16392,16393,16394,16395,16394,16395,16398,16399,16396,16397,16398,16399,16400,16401,16402,16403,16402,16403,16406,16407,16404,16405,16406,16407,16408,16409,16410,16411,16408,16409,16412,16413,16410,16411,16414,16415,16416,16417,16418,16419,16418,16419,16422,16423,16420,16421,16422,16423,16424,16425,16426,16427,16426,16427,16430,16431,16432,16433,16434,16435,16432,16433,16436,16437,16434,16435,16438,16439,16440,16441,16442,16443,16440,16441,16444,16445,16448,16449,16450,16451,16448,16449,16452,16453,16452,16453,16454,16455,16456,16457,16460,16461,16464,16465,16466,16467,16464,16465,16468,16469,16472,16473,16474,16475,16472,16473,16476,16477,16480,16481,16482,16483,16480,16481,16484,16485,16480,16482,16484,16486,16484,16485,16486,16487,16488,16489,16490,16491,16488,16489,16492,16493,16488,16490,16492,16494,16492,16493,16494,16495,16496,16497,16500,16501,16498,16499,16502,16503,16496,16498,16500,16502,16500,16501,16502,16503,16504,16506,16508,16510,16508,16509,16510,16511,16512,16513,16514,16515,16512,16513,16516,16517,16512,16514,16516,16518,16516,16517,16518,16519,16520,16521,16522,16523,16520,16521,16524,16525,16520,16522,16524,16526,16524,16525,16526,16527,16528,16529,16530,16531,16528,16529,16532,16533,16530,16531,16534,16535,16528,16530,16532,16534,16536,16537,16538,16539,16536,16538,16540,16542,16544,16545,16546,16547,16544,16545,16548,16549,16548,16549,16550,16551,16552,16553,16556,16557,16556,16557,16558,16559,16560,16561,16562,16563,16560,16561,16564,16565,16564,16565,16566,16567,16568,16569,16570,16571,16568,16569,16572,16573,16576,16577,16578,16579,16576,16577,16580,16581,16577,16579,16581,16583,16580,16581,16582,16583,16584,16585,16588,16589,16585,16587,16589,16591,16588,16589,16590,16591,16592,16593,16594,16595,16593,16595,16597,16599,16596,16597,16598,16599,16600,16601,16602,16603,16601,16603,16605,16607,16608,16609,16610,16611,16609,16611,16613,16615,16610,16611,16614,16615,16612,16613,16614,16615,16616,16617,16618,16619,16618,16619,16622,16623,16620,16621,16622,16623,16624,16625,16626,16627,16624,16626,16628,16630,16628,16629,16630,16631,16632,16633,16634,16635,16636,16637,16638,16639,16640,16641,16644,16645,16641,16643,16645,16647,16644,16645,16646,16647,16648,16649,16652,16653,16652,16653,16654,16655,16656,16658,16660,16662,16660,16661,16662,16663,16668,16669,16670,16671,16673,16675,16677,16679,16674,16675,16678,16679,16672,16674,16676,16678,16676,16677,16678,16679,16682,16683,16686,16687,16684,16685,16686,16687,16690,16691,16694,16695,16688,16690,16692,16694,16692,16693,16694,16695,16698,16699,16702,16703,16696,16698,16700,16702,16700,16701,16702,16703,16704,16705,16708,16709,16705,16707,16709,16711,16706,16707,16710,16711,16704,16706,16708,16710,16708,16709,16710,16711,16712,16713,16716,16717,16714,16715,16718,16719,16716,16717,16718,16719,16720,16722,16724,16726,16724,16725,16726,16727,16728,16730,16732,16734,16732,16733,16734,16735,16736,16737,16738,16739,16738,16739,16742,16743,16740,16741,16742,16743,16746,16747,16750,16751,16754,16755,16758,16759,16756,16757,16758,16759,16762,16763,16766,16767,16764,16765,16766,16767,16768,16769,16770,16771,16769,16771,16773,16775,16770,16771,16774,16775,16772,16773,16774,16775,16777,16779,16781,16783,16778,16779,16782,16783,16785,16787,16789,16791,16788,16789,16790,16791,16793,16795,16797,16799,16794,16795,16798,16799,16796,16797,16798,16799,16800,16801,16802,16803,16800,16801,16804,16805,16801,16803,16805,16807,16802,16803,16806,16807,16804,16805,16806,16807,16808,16809,16810,16811,16809,16811,16813,16815,16812,16813,16814,16815,16817,16819,16821,16823,16818,16819,16822,16823,16825,16827,16829,16831,16832,16833,16836,16837,16836,16837,16838,16839,16844,16845,16846,16847,16850,16851,16854,16855,16852,16853,16854,16855,16858,16859,16862,16863,16860,16861,16862,16863,16864,16865,16868,16869,16866,16867,16870,16871,16864,16866,16868,16870,16868,16869,16870,16871,16872,16873,16876,16877,16872,16874,16876,16878,16876,16877,16878,16879,16880,16881,16884,16885,16882,16883,16886,16887,16880,16882,16884,16886,16884,16885,16886,16887,16890,16891,16894,16895,16888,16890,16892,16894,16892,16893,16894,16895,16896,16897,16898,16899,16896,16897,16900,16901,16898,16899,16902,16903,16896,16898,16900,16902,16900,16901,16902,16903,16904,16905,16906,16907,16904,16905,16908,16909,16904,16906,16908,16910,16908,16909,16910,16911,16912,16913,16916,16917,16914,16915,16918,16919,16912,16914,16916,16918,16922,16923,16926,16927,16920,16922,16924,16926,16928,16929,16932,16933,16930,16931,16934,16935,16932,16933,16934,16935,16936,16937,16940,16941,16938,16939,16942,16943,16940,16941,16942,16943,16944,16945,16946,16947,16944,16945,16948,16949,16948,16949,16950,16951,16952,16953,16956,16957,16960,16961,16964,16965,16961,16963,16965,16967,16964,16965,16966,16967,16968,16969,16972,16973,16969,16971,16973,16975,16972,16973,16974,16975,16976,16977,16978,16979,16977,16979,16981,16983,16980,16981,16982,16983,16985,16987,16989,16991,16993,16995,16997,16999,16994,16995,16998,16999,16996,16997,16998,16999,17001,17003,17005,17007,17002,17003,17006,17007,17004,17005,17006,17007,17010,17011,17014,17015,17012,17013,17014,17015,17018,17019,17022,17023,17020,17021,17022,17023,17024,17025,17026,17027,17024,17026,17028,17030,17028,17029,17030,17031,17032,17034,17036,17038,17044,17045,17046,17047,17052,17053,17054,17055,17056,17057,17060,17061,17057,17059,17061,17063,17058,17059,17062,17063,17056,17058,17060,17062,17064,17065,17068,17069,17066,17067,17070,17071,17072,17074,17076,17078,17080,17082,17084,17086,17090,17091,17094,17095,17098,17099,17102,17103,17105,17107,17109,17111,17106,17107,17110,17111,17113,17115,17117,17119,17114,17115,17118,17119,17120,17121,17124,17125,17121,17123,17125,17127,17122,17123,17126,17127,17129,17131,17133,17135,17138,17139,17142,17143,17146,17147,17150,17151,17152,17153,17154,17155,17154,17155,17158,17159,17152,17154,17156,17158,17160,17161,17162,17163,17162,17163,17166,17167,17160,17162,17164,17166,17168,17169,17170,17171,17169,17171,17173,17175,17170,17171,17174,17175,17168,17170,17172,17174,17176,17177,17178,17179,17178,17179,17182,17183,17184,17185,17186,17187,17184,17185,17188,17189,17186,17187,17190,17191,17184,17186,17188,17190,17192,17193,17194,17195,17192,17193,17196,17197,17194,17195,17198,17199,17192,17194,17196,17198,17200,17201,17202,17203,17201,17203,17205,17207,17200,17202,17204,17206,17208,17209,17210,17211,17216,17217,17218,17219,17218,17219,17222,17223,17216,17218,17220,17222,17224,17225,17226,17227,17226,17227,17230,17231,17224,17226,17228,17230,17232,17233,17234,17235,17234,17235,17238,17239,17232,17234,17236,17238,17240,17241,17242,17243,17242,17243,17246,17247,17240,17242,17244,17246,17248,17249,17252,17253,17249,17251,17253,17255,17250,17251,17254,17255,17248,17250,17252,17254,17256,17257,17260,17261,17258,17259,17262,17263,17264,17266,17268,17270,17272,17274,17276,17278,17282,17283,17286,17287,17284,17285,17286,17287,17290,17291,17294,17295,17292,17293,17294,17295,17296,17297,17300,17301,17298,17299,17302,17303,17300,17301,17302,17303,17308,17309,17310,17311,17314,17315,17318,17319,17316,17317,17318,17319,17322,17323,17326,17327,17328,17329,17330,17331,17330,17331,17334,17335,17338,17339,17342,17343,17344,17345,17346,17347,17345,17347,17349,17351,17346,17347,17350,17351,17348,17349,17350,17351,17353,17355,17357,17359,17354,17355,17358,17359,17360,17361,17362,17363,17361,17363,17365,17367,17362,17363,17366,17367,17368,17369,17370,17371,17369,17371,17373,17375,17370,17371,17374,17375,17376,17377,17378,17379,17376,17377,17380,17381,17377,17379,17381,17383,17378,17379,17382,17383,17384,17385,17386,17387,17384,17385,17388,17389,17385,17387,17389,17391,17386,17387,17390,17391,17388,17389,17390,17391,17392,17393,17394,17395,17393,17395,17397,17399,17400,17401,17402,17403,17401,17403,17405,17407,17404,17405,17406,17407,17409,17411,17413,17415,17410,17411,17414,17415,17408,17410,17412,17414,17418,17419,17422,17423,17425,17427,17429,17431,17426,17427,17430,17431,17433,17435,17437,17439,17434,17435,17438,17439,17440,17441,17444,17445,17442,17443,17446,17447,17444,17445,17446,17447,17452,17453,17454,17455,17458,17459,17462,17463,17460,17461,17462,17463,17466,17467,17470,17471,17468,17469,17470,17471,17472,17473,17476,17477,17474,17475,17478,17479,17472,17474,17476,17478,17476,17477,17478,17479,17480,17481,17484,17485,17482,17483,17486,17487,17484,17485,17486,17487,17489,17491,17493,17495,17492,17493,17494,17495,17500,17501,17502,17503,17506,17507,17510,17511,17504,17506,17508,17510,17514,17515,17518,17519,17521,17523,17525,17527,17522,17523,17526,17527,17530,17531,17534,17535,17536,17537,17538,17539,17538,17539,17542,17543,17536,17538,17540,17542,17544,17545,17546,17547,17546,17547,17550,17551,17544,17546,17548,17550,17552,17553,17554,17555,17554,17555,17558,17559,17552,17554,17556,17558,17556,17557,17558,17559,17562,17563,17566,17567,17560,17562,17564,17566,17568,17569,17570,17571,17569,17571,17573,17575,17570,17571,17574,17575,17568,17570,17572,17574,17576,17577,17578,17579,17577,17579,17581,17583,17578,17579,17582,17583,17576,17578,17580,17582,17584,17585,17586,17587,17586,17587,17590,17591,17588,17589,17590,17591,17594,17595,17598,17599,17600,17601,17602,17603,17602,17603,17606,17607,17600,17602,17604,17606,17608,17609,17610,17611,17610,17611,17614,17615,17608,17610,17612,17614,17616,17617,17618,17619,17617,17619,17621,17623,17618,17619,17622,17623,17616,17618,17620,17622,17624,17625,17626,17627,17626,17627,17630,17631,17632,17633,17634,17635,17632,17633,17636,17637,17634,17635,17638,17639,17632,17634,17636,17638,17640,17641,17642,17643,17640,17641,17644,17645,17642,17643,17646,17647,17640,17642,17644,17646,17648,17649,17650,17651,17649,17651,17653,17655,17648,17650,17652,17654,17656,17657,17658,17659,17664,17665,17666,17667,17664,17665,17668,17669,17666,17667,17670,17671,17664,17666,17668,17670,17672,17673,17674,17675,17672,17673,17676,17677,17674,17675,17678,17679,17672,17674,17676,17678,17680,17681,17682,17683,17681,17683,17685,17687,17682,17683,17686,17687,17680,17682,17684,17686,17688,17689,17690,17691,17690,17691,17694,17695,17696,17697,17698,17699,17696,17697,17700,17701,17698,17699,17702,17703,17696,17698,17700,17702,17704,17705,17706,17707,17704,17705,17708,17709,17706,17707,17710,17711,17704,17706,17708,17710,17712,17713,17714,17715,17712,17713,17716,17717,17713,17715,17717,17719,17712,17714,17716,17718,17720,17721,17722,17723,17720,17721,17724,17725,17728,17729,17730,17731,17728,17729,17732,17733,17728,17730,17732,17734,17732,17733,17734,17735,17736,17737,17738,17739,17736,17738,17740,17742,17740,17741,17742,17743,17746,17747,17750,17751,17744,17746,17748,17750,17752,17754,17756,17758,17760,17761,17762,17763,17760,17761,17764,17765,17760,17762,17764,17766,17768,17769,17770,17771,17768,17770,17772,17774,17776,17777,17778,17779,17778,17779,17782,17783,17776,17778,17780,17782,17784,17785,17786,17787,17784,17786,17788,17790,17792,17793,17794,17795,17792,17793,17796,17797,17794,17795,17798,17799,17792,17794,17796,17798,17796,17797,17798,17799,17800,17801,17802,17803,17800,17802,17804,17806,17804,17805,17806,17807,17810,17811,17814,17815,17808,17810,17812,17814,17812,17813,17814,17815,17818,17819,17822,17823,17816,17818,17820,17822,17820,17821,17822,17823,17824,17825,17826,17827,17824,17825,17828,17829,17826,17827,17830,17831,17824,17826,17828,17830,17828,17829,17830,17831,17832,17833,17834,17835,17832,17834,17836,17838,17836,17837,17838,17839,17840,17841,17842,17843,17842,17843,17846,17847,17840,17842,17844,17846,17848,17849,17850,17851,17850,17851,17854,17855,17848,17850,17852,17854,17856,17857,17858,17859,17857,17859,17861,17863,17858,17859,17862,17863,17856,17858,17860,17862,17860,17861,17862,17863,17864,17865,17866,17867,17866,17867,17870,17871,17868,17869,17870,17871,17872,17873,17874,17875,17874,17875,17878,17879,17872,17874,17876,17878,17876,17877,17878,17879,17880,17881,17882,17883,17882,17883,17886,17887,17880,17882,17884,17886,17884,17885,17886,17887,17888,17889,17892,17893,17889,17891,17893,17895,17890,17891,17894,17895,17888,17890,17892,17894,17892,17893,17894,17895,17896,17897,17900,17901,17898,17899,17902,17903,17900,17901,17902,17903,17904,17906,17908,17910,17908,17909,17910,17911,17912,17914,17916,17918,17916,17917,17918,17919,17920,17921,17924,17925,17921,17923,17925,17927,17922,17923,17926,17927,17920,17922,17924,17926,17924,17925,17926,17927,17928,17929,17932,17933,17930,17931,17934,17935,17932,17933,17934,17935,17938,17939,17942,17943,17936,17938,17940,17942,17940,17941,17942,17943,17946,17947,17950,17951,17944,17946,17948,17950,17948,17949,17950,17951,17952,17953,17956,17957,17953,17955,17957,17959,17954,17955,17958,17959,17952,17954,17956,17958,17960,17961,17964,17965,17962,17963,17966,17967,17968,17969,17972,17973,17968,17970,17972,17974,17976,17977,17980,17981,17976,17978,17980,17982,17984,17985,17986,17987,17984,17985,17988,17989,17985,17987,17989,17991,17984,17986,17988,17990,17992,17993,17996,17997,17993,17995,17997,17999,17992,17994,17996,17998,18000,18001,18004,18005,18004,18005,18006,18007,18008,18009,18012,18013,18016,18017,18018,18019,18016,18018,18020,18022,18024,18026,18028,18030,18032,18034,18036,18038,18036,18037,18038,18039,18040,18042,18044,18046,18048,18049,18050,18051,18050,18051,18054,18055,18048,18050,18052,18054,18056,18057,18058,18059,18058,18059,18062,18063,18056,18058,18060,18062,18064,18065,18066,18067,18065,18067,18069,18071,18066,18067,18070,18071,18064,18066,18068,18070,18072,18073,18074,18075,18074,18075,18078,18079,18080,18081,18082,18083,18080,18081,18084,18085,18082,18083,18086,18087,18080,18082,18084,18086,18088,18089,18090,18091,18088,18089,18092,18093,18090,18091,18094,18095,18088,18090,18092,18094,18096,18097,18098,18099,18097,18099,18101,18103,18096,18098,18100,18102,18104,18105,18106,18107,18112,18113,18114,18115,18114,18115,18118,18119,18112,18114,18116,18118,18120,18121,18122,18123,18122,18123,18126,18127,18120,18122,18124,18126,18128,18129,18130,18131,18130,18131,18134,18135,18128,18130,18132,18134,18136,18137,18138,18139,18138,18139,18142,18143,18136,18138,18140,18142,18144,18145,18146,18147,18144,18145,18148,18149,18145,18147,18149,18151,18146,18147,18150,18151,18144,18146,18148,18150,18152,18153,18154,18155,18152,18153,18156,18157,18154,18155,18158,18159,18160,18161,18162,18163,18160,18162,18164,18166,18168,18169,18170,18171,18168,18170,18172,18174,18176,18177,18178,18179,18178,18179,18182,18183,18180,18181,18182,18183,18184,18185,18186,18187,18186,18187,18190,18191,18188,18189,18190,18191,18192,18193,18196,18197,18194,18195,18198,18199,18196,18197,18198,18199,18204,18205,18206,18207,18210,18211,18214,18215,18212,18213,18214,18215,18218,18219,18222,18223,18224,18225,18226,18227,18226,18227,18230,18231,18234,18235,18238,18239,18240,18241,18242,18243,18241,18243,18245,18247,18242,18243,18246,18247,18244,18245,18246,18247,18249,18251,18253,18255,18250,18251,18254,18255,18256,18257,18258,18259,18257,18259,18261,18263,18258,18259,18262,18263,18264,18265,18266,18267,18265,18267,18269,18271,18266,18267,18270,18271,18272,18273,18274,18275,18272,18273,18276,18277,18273,18275,18277,18279,18274,18275,18278,18279,18280,18281,18282,18283,18280,18281,18284,18285,18281,18283,18285,18287,18282,18283,18286,18287,18284,18285,18286,18287,18288,18289,18290,18291,18289,18291,18293,18295,18296,18297,18298,18299,18297,18299,18301,18303,18300,18301,18302,18303,18304,18305,18306,18307,18305,18307,18309,18311,18306,18307,18310,18311,18304,18306,18308,18310,18312,18313,18314,18315,18314,18315,18318,18319,18320,18321,18322,18323,18321,18323,18325,18327,18322,18323,18326,18327,18328,18329,18330,18331,18329,18331,18333,18335,18330,18331,18334,18335,18336,18337,18338,18339,18336,18337,18340,18341,18338,18339,18342,18343,18340,18341,18342,18343,18344,18345,18346,18347,18348,18349,18350,18351,18354,18355,18358,18359,18356,18357,18358,18359,18362,18363,18366,18367,18364,18365,18366,18367,18368,18369,18372,18373,18370,18371,18374,18375,18368,18370,18372,18374,18372,18373,18374,18375,18376,18377,18380,18381,18378,18379,18382,18383,18380,18381,18382,18383,18385,18387,18389,18391,18388,18389,18390,18391,18396,18397,18398,18399,18402,18403,18406,18407,18400,18402,18404,18406,18410,18411,18414,18415,18417,18419,18421,18423,18418,18419,18422,18423,18426,18427,18430,18431,18432,18433,18434,18435,18433,18435,18437,18439,18434,18435,18438,18439,18432,18434,18436,18438,18440,18441,18442,18443,18442,18443,18446,18447,18440,18442,18444,18446,18448,18449,18450,18451,18449,18451,18453,18455,18450,18451,18454,18455,18448,18450,18452,18454,18456,18457,18458,18459,18457,18459,18461,18463,18458,18459,18462,18463,18464,18465,18466,18467,18464,18465,18468,18469,18465,18467,18469,18471,18466,18467,18470,18471,18464,18466,18468,18470,18472,18473,18474,18475,18472,18473,18476,18477,18474,18475,18478,18479,18472,18474,18476,18478,18480,18481,18482,18483,18481,18483,18485,18487,18480,18482,18484,18486,18488,18489,18490,18491,18489,18491,18493,18495,18496,18497,18498,18499,18497,18499,18501,18503,18498,18499,18502,18503,18496,18498,18500,18502,18504,18505,18506,18507,18506,18507,18510,18511,18504,18506,18508,18510,18512,18513,18514,18515,18513,18515,18517,18519,18514,18515,18518,18519,18512,18514,18516,18518,18520,18521,18522,18523,18522,18523,18526,18527,18520,18522,18524,18526,18528,18529,18530,18531,18528,18529,18532,18533,18529,18531,18533,18535,18530,18531,18534,18535,18528,18530,18532,18534,18536,18537,18538,18539,18536,18537,18540,18541,18537,18539,18541,18543,18538,18539,18542,18543,18544,18545,18546,18547,18545,18547,18549,18551,18544,18546,18548,18550,18552,18553,18554,18555,18552,18554,18556,18558,18560,18561,18562,18563,18562,18563,18566,18567,18564,18565,18566,18567,18568,18569,18570,18571,18570,18571,18574,18575,18572,18573,18574,18575,18576,18577,18580,18581,18578,18579,18582,18583,18580,18581,18582,18583,18588,18589,18590,18591,18594,18595,18598,18599,18596,18597,18598,18599,18602,18603,18606,18607,18604,18605,18606,18607,18610,18611,18614,18615,18618,18619,18622,18623,18624,18625,18626,18627,18625,18627,18629,18631,18632,18633,18634,18635,18633,18635,18637,18639,18640,18641,18642,18643,18641,18643,18645,18647,18648,18649,18650,18651,18649,18651,18653,18655,18652,18653,18654,18655,18656,18657,18658,18659,18657,18659,18661,18663,18664,18665,18666,18667,18665,18667,18669,18671,18672,18673,18674,18675,18673,18675,18677,18679,18676,18677,18678,18679,18681,18683,18685,18687,18684,18685,18686,18687,18689,18691,18693,18695,18688,18690,18692,18694,18692,18693,18694,18695,18700,18701,18702,18703,18705,18707,18709,18711,18713,18715,18717,18719,18720,18721,18722,18723,18720,18721,18724,18725,18721,18723,18725,18727,18728,18729,18730,18731,18728,18729,18732,18733,18729,18731,18733,18735,18736,18737,18738,18739,18736,18737,18740,18741,18737,18739,18741,18743,18738,18739,18742,18743,18744,18745,18746,18747,18745,18747,18749,18751,18752,18753,18754,18755,18752,18753,18756,18757,18753,18755,18757,18759,18756,18757,18758,18759,18760,18761,18762,18763,18760,18761,18764,18765,18761,18763,18765,18767,18764,18765,18766,18767,18768,18769,18772,18773,18769,18771,18773,18775,18770,18771,18774,18775,18777,18779,18781,18783,18784,18785,18786,18787,18784,18785,18788,18789,18785,18787,18789,18791,18792,18793,18794,18795,18792,18793,18796,18797,18793,18795,18797,18799,18800,18801,18802,18803,18800,18801,18804,18805,18801,18803,18805,18807,18808,18809,18810,18811,18808,18809,18812,18813,18809,18811,18813,18815,18816,18817,18818,18819,18816,18817,18820,18821,18818,18819,18822,18823,18820,18821,18822,18823,18824,18825,18826,18827,18828,18829,18830,18831,18832,18833,18836,18837,18840,18841,18844,18845,18848,18849,18850,18851,18848,18850,18852,18854,18856,18857,18858,18859,18856,18858,18860,18862,18864,18865,18866,18867,18864,18866,18868,18870,18868,18869,18870,18871,18872,18874,18876,18878,18880,18881,18882,18883,18880,18882,18884,18886,18888,18889,18890,18891,18896,18897,18898,18899,18897,18899,18901,18903,18904,18905,18906,18907,18912,18913,18914,18915,18913,18915,18917,18919,18914,18915,18918,18919,18912,18914,18916,18918,18920,18921,18922,18923,18922,18923,18926,18927,18928,18929,18930,18931,18929,18931,18933,18935,18930,18931,18934,18935,18936,18937,18938,18939,18937,18939,18941,18943,18938,18939,18942,18943,18944,18945,18946,18947,18945,18947,18949,18951,18946,18947,18950,18951,18948,18949,18950,18951,18952,18953,18954,18955,18953,18955,18957,18959,18954,18955,18958,18959,18952,18954,18956,18958,18956,18957,18958,18959,18961,18963,18965,18967,18962,18963,18966,18967,18969,18971,18973,18975,18970,18971,18974,18975,18968,18970,18972,18974,18976,18977,18978,18979,18976,18977,18980,18981,18978,18979,18982,18983,18984,18985,18986,18987,18992,18993,18994,18995,18994,18995,18998,18999,19000,19001,19002,19003,19002,19003,19006,19007,19008,19009,19010,19011,19008,19010,19012,19014,19012,19013,19014,19015,19016,19018,19020,19022,19024,19025,19026,19027,19024,19026,19028,19030,19032,19033,19034,19035,19032,19034,19036,19038,19040,19041,19042,19043,19040,19041,19044,19045,19040,19042,19044,19046,19044,19045,19046,19047,19048,19049,19050,19051,19048,19050,19052,19054,19052,19053,19054,19055,19058,19059,19062,19063,19056,19058,19060,19062,19064,19066,19068,19070,19072,19073,19074,19075,19072,19073,19076,19077,19080,19081,19082,19083,19088,19089,19090,19091,19090,19091,19094,19095,19096,19097,19098,19099,19104,19105,19106,19107,19104,19105,19108,19109,19105,19107,19109,19111,19104,19106,19108,19110,19112,19113,19114,19115,19112,19113,19116,19117,19113,19115,19117,19119,19112,19114,19116,19118,19120,19121,19122,19123,19120,19121,19124,19125,19121,19123,19125,19127,19122,19123,19126,19127,19120,19122,19124,19126,19128,19129,19130,19131,19129,19131,19133,19135,19128,19130,19132,19134,19136,19137,19138,19139,19136,19137,19140,19141,19137,19139,19141,19143,19140,19141,19142,19143,19144,19145,19146,19147,19144,19145,19148,19149,19145,19147,19149,19151,19148,19149,19150,19151,19152,19153,19156,19157,19153,19155,19157,19159,19154,19155,19158,19159,19161,19163,19165,19167,19168,19169,19170,19171,19168,19169,19172,19173,19169,19171,19173,19175,19176,19177,19178,19179,19176,19177,19180,19181,19177,19179,19181,19183,19184,19185,19186,19187,19184,19185,19188,19189,19185,19187,19189,19191,19192,19193,19194,19195,19192,19193,19196,19197,19193,19195,19197,19199,19200,19201,19202,19203,19200,19201,19204,19205,19202,19203,19206,19207,19204,19205,19206,19207,19208,19209,19210,19211,19212,19213,19214,19215,19216,19217,19220,19221,19224,19225,19228,19229,19232,19233,19234,19235,19232,19233,19236,19237,19232,19234,19236,19238,19240,19241,19242,19243,19240,19241,19244,19245,19240,19242,19244,19246,19248,19249,19250,19251,19248,19249,19252,19253,19248,19250,19252,19254,19252,19253,19254,19255,19256,19257,19260,19261,19256,19258,19260,19262,19264,19265,19266,19267,19264,19265,19268,19269,19264,19266,19268,19270,19272,19273,19274,19275,19272,19273,19276,19277,19272,19274,19276,19278,19280,19281,19282,19283,19280,19281,19284,19285,19281,19283,19285,19287,19280,19282,19284,19286,19288,19289,19290,19291,19288,19289,19292,19293,19296,19297,19298,19299,19296,19297,19300,19301,19297,19299,19301,19303,19298,19299,19302,19303,19296,19298,19300,19302,19304,19305,19306,19307,19304,19305,19308,19309,19306,19307,19310,19311,19304,19306,19308,19310,19312,19313,19314,19315,19312,19313,19316,19317,19313,19315,19317,19319,19314,19315,19318,19319,19312,19314,19316,19318,19320,19321,19322,19323,19320,19321,19324,19325,19321,19323,19325,19327,19322,19323,19326,19327,19328,19329,19330,19331,19328,19329,19332,19333,19329,19331,19333,19335,19330,19331,19334,19335,19332,19333,19334,19335,19336,19337,19338,19339,19337,19339,19341,19343,19338,19339,19342,19343,19336,19338,19340,19342,19340,19341,19342,19343,19344,19345,19348,19349,19345,19347,19349,19351,19346,19347,19350,19351,19353,19355,19357,19359,19354,19355,19358,19359,19352,19354,19356,19358,19360,19361,19362,19363,19360,19361,19364,19365,19362,19363,19366,19367,19368,19369,19370,19371,19368,19369,19372,19373,19376,19377,19378,19379,19376,19377,19380,19381,19378,19379,19382,19383,19384,19385,19386,19387,19386,19387,19390,19391,19392,19393,19394,19395,19392,19394,19396,19398,19396,19397,19398,19399,19400,19402,19404,19406,19408,19409,19410,19411,19408,19410,19412,19414,19416,19417,19418,19419,19416,19418,19420,19422,19424,19425,19426,19427,19424,19425,19428,19429,19424,19426,19428,19430,19428,19429,19430,19431,19432,19433,19434,19435,19432,19434,19436,19438,19436,19437,19438,19439,19442,19443,19446,19447,19440,19442,19444,19446,19448,19450,19452,19454,19456,19457,19458,19459,19456,19457,19460,19461,19456,19458,19460,19462,19464,19465,19466,19467,19464,19466,19468,19470,19472,19473,19474,19475,19474,19475,19478,19479,19472,19474,19476,19478,19480,19481,19482,19483,19480,19482,19484,19486,19488,19489,19490,19491,19488,19489,19492,19493,19488,19490,19492,19494,19492,19493,19494,19495,19496,19497,19498,19499,19496,19497,19500,19501,19496,19498,19500,19502,19500,19501,19502,19503,19504,19505,19506,19507,19504,19505,19508,19509,19505,19507,19509,19511,19504,19506,19508,19510,19508,19509,19510,19511,19512,19513,19514,19515,19512,19513,19516,19517,19516,19517,19518,19519,19520,19521,19524,19525,19522,19523,19526,19527,19520,19522,19524,19526,19524,19525,19526,19527,19528,19529,19532,19533,19530,19531,19534,19535,19528,19530,19532,19534,19532,19533,19534,19535,19537,19539,19541,19543,19536,19538,19540,19542,19540,19541,19542,19543,19548,19549,19550,19551,19552,19553,19556,19557,19552,19554,19556,19558,19556,19557,19558,19559,19560,19561,19564,19565,19560,19562,19564,19566,19564,19565,19566,19567,19568,19569,19572,19573,19568,19570,19572,19574,19572,19573,19574,19575,19576,19577,19580,19581,19576,19578,19580,19582,19580,19581,19582,19583,19584,19585,19588,19589,19585,19587,19589,19591,19586,19587,19590,19591,19584,19586,19588,19590,19592,19593,19596,19597,19594,19595,19598,19599,19600,19602,19604,19606,19608,19610,19612,19614,19616,19617,19618,19619,19616,19617,19620,19621,19624,19625,19626,19627,19624,19625,19628,19629,19632,19633,19634,19635,19632,19633,19636,19637,19634,19635,19638,19639,19640,19641,19642,19643,19648,19649,19650,19651,19648,19649,19652,19653,19656,19657,19658,19659,19656,19657,19660,19661,19664,19665,19666,19667,19664,19665,19668,19669,19668,19669,19670,19671,19672,19673,19676,19677,19680,19681,19682,19683,19680,19681,19684,19685,19681,19683,19685,19687,19684,19685,19686,19687,19688,19689,19690,19691,19688,19689,19692,19693,19689,19691,19693,19695,19696,19697,19698,19699,19696,19697,19700,19701,19697,19699,19701,19703,19700,19701,19702,19703,19704,19705,19708,19709,19705,19707,19709,19711,19708,19709,19710,19711,19712,19713,19716,19717,19713,19715,19717,19719,19714,19715,19718,19719,19716,19717,19718,19719,19720,19721,19722,19723,19720,19721,19724,19725,19721,19723,19725,19727,19722,19723,19726,19727,19724,19725,19726,19727,19729,19731,19733,19735,19732,19733,19734,19735,19736,19737,19738,19739,19737,19739,19741,19743,19740,19741,19742,19743,19744,19745,19748,19749,19745,19747,19749,19751,19744,19746,19748,19750,19752,19753,19756,19757,19760,19761,19764,19765,19761,19763,19765,19767,19768,19769,19772,19773,19769,19771,19773,19775,19776,19777,19778,19779,19776,19777,19780,19781,19777,19779,19781,19783,19778,19779,19782,19783,19784,19785,19786,19787,19792,19793,19794,19795,19792,19793,19796,19797,19800,19801,19802,19803,19800,19801,19804,19805,19801,19803,19805,19807,19808,19809,19810,19811,19808,19809,19812,19813,19809,19811,19813,19815,19810,19811,19814,19815,19808,19810,19812,19814,19816,19817,19818,19819,19816,19817,19820,19821,19818,19819,19822,19823,19824,19825,19826,19827,19825,19827,19829,19831,19832,19833,19834,19835,19840,19841,19842,19843,19840,19841,19844,19845,19840,19842,19844,19846,19848,19849,19850,19851,19848,19849,19852,19853,19856,19857,19858,19859,19856,19857,19860,19861,19857,19859,19861,19863,19864,19865,19866,19867,19864,19865,19868,19869,19865,19867,19869,19871,19872,19873,19874,19875,19872,19873,19876,19877,19873,19875,19877,19879,19872,19874,19876,19878,19876,19877,19878,19879,19880,19881,19882,19883,19880,19881,19884,19885,19880,19882,19884,19886,19884,19885,19886,19887,19888,19889,19890,19891,19888,19889,19892,19893,19889,19891,19893,19895,19888,19890,19892,19894,19892,19893,19894,19895,19896,19897,19898,19899,19896,19897,19900,19901,19897,19899,19901,19903,19900,19901,19902,19903,19904,19905,19908,19909,19905,19907,19909,19911,19906,19907,19910,19911,19904,19906,19908,19910,19908,19909,19910,19911,19912,19913,19916,19917,19914,19915,19918,19919,19912,19914,19916,19918,19916,19917,19918,19919,19921,19923,19925,19927,19920,19922,19924,19926,19924,19925,19926,19927,19929,19931,19933,19935,19932,19933,19934,19935,19936,19937,19940,19941,19937,19939,19941,19943,19936,19938,19940,19942,19940,19941,19942,19943,19944,19945,19948,19949,19944,19946,19948,19950,19948,19949,19950,19951,19952,19953,19956,19957,19953,19955,19957,19959,19952,19954,19956,19958,19956,19957,19958,19959,19960,19961,19964,19965,19960,19962,19964,19966,19964,19965,19966,19967,19968,19969,19972,19973,19969,19971,19973,19975,19970,19971,19974,19975,19968,19970,19972,19974,19976,19977,19980,19981,19977,19979,19981,19983,19978,19979,19982,19983,19985,19987,19989,19991,19984,19986,19988,19990,19992,19994,19996,19998,20000,20001,20002,20003,20000,20001,20004,20005,20008,20009,20010,20011,20008,20009,20012,20013,20016,20017,20018,20019,20016,20017,20020,20021,20018,20019,20022,20023,20024,20025,20026,20027,20032,20033,20034,20035,20032,20033,20036,20037,20040,20041,20042,20043,20040,20041,20044,20045,20048,20049,20050,20051,20048,20049,20052,20053,20056,20057,20058,20059,20056,20057,20060,20061,20064,20065,20066,20067,20064,20065,20068,20069,20065,20067,20069,20071,20068,20069,20070,20071,20073,20075,20077,20079,20076,20077,20078,20079,20081,20083,20085,20087,20084,20085,20086,20087,20088,20089,20090,20091,20089,20091,20093,20095,20092,20093,20094,20095,20097,20099,20101,20103,20105,20107,20109,20111,20112,20113,20114,20115,20113,20115,20117,20119,20120,20121,20122,20123,20121,20123,20125,20127,20128,20129,20130,20131,20129,20131,20133,20135,20128,20130,20132,20134,20136,20137,20138,20139,20144,20145,20146,20147,20144,20145,20148,20149,20145,20147,20149,20151,20152,20153,20154,20155,20152,20153,20156,20157,20153,20155,20157,20159,20160,20161,20162,20163,20160,20161,20164,20165,20161,20163,20165,20167,20162,20163,20166,20167,20164,20165,20166,20167,20169,20171,20173,20175,20170,20171,20174,20175,20172,20173,20174,20175,20176,20177,20178,20179,20177,20179,20181,20183,20178,20179,20182,20183,20180,20181,20182,20183,20184,20185,20186,20187,20184,20185,20188,20189,20185,20187,20189,20191,20186,20187,20190,20191,20192,20193,20194,20195,20193,20195,20197,20199,20194,20195,20198,20199,20192,20194,20196,20198,20196,20197,20198,20199,20201,20203,20205,20207,20202,20203,20206,20207,20200,20202,20204,20206,20204,20205,20206,20207,20208,20209,20210,20211,20210,20211,20214,20215,20212,20213,20214,20215,20216,20217,20218,20219,20218,20219,20222,20223,20224,20225,20226,20227,20225,20227,20229,20231,20226,20227,20230,20231,20228,20229,20230,20231,20232,20233,20234,20235,20233,20235,20237,20239,20234,20235,20238,20239,20236,20237,20238,20239,20240,20241,20242,20243,20241,20243,20245,20247,20240,20242,20244,20246,20244,20245,20246,20247,20248,20249,20250,20251,20252,20253,20254,20255,20256,20257,20260,20261,20257,20259,20261,20263,20260,20261,20262,20263,20264,20265,20268,20269,20265,20267,20269,20271,20268,20269,20270,20271,20273,20275,20277,20279,20272,20274,20276,20278,20276,20277,20278,20279,20284,20285,20286,20287,20288,20289,20292,20293,20289,20291,20293,20295,20290,20291,20294,20295,20292,20293,20294,20295,20296,20297,20300,20301,20297,20299,20301,20303,20298,20299,20302,20303,20300,20301,20302,20303,20305,20307,20309,20311,20304,20306,20308,20310,20308,20309,20310,20311,20316,20317,20318,20319,20320,20321,20324,20325,20321,20323,20325,20327,20328,20329,20332,20333,20329,20331,20333,20335,20336,20337,20340,20341,20337,20339,20341,20343,20336,20338,20340,20342,20344,20345,20348,20349,20352,20353,20354,20355,20352,20353,20356,20357,20353,20355,20357,20359,20360,20361,20362,20363,20361,20363,20365,20367,20369,20371,20373,20375,20370,20371,20374,20375,20377,20379,20381,20383,20384,20385,20388,20389,20385,20387,20389,20391,20388,20389,20390,20391,20393,20395,20397,20399,20396,20397,20398,20399,20401,20403,20405,20407,20402,20403,20406,20407,20409,20411,20413,20415,20416,20417,20418,20419,20416,20417,20420,20421,20417,20419,20421,20423,20418,20419,20422,20423,20424,20425,20426,20427,20425,20427,20429,20431,20432,20433,20434,20435,20433,20435,20437,20439,20434,20435,20438,20439,20440,20441,20442,20443,20441,20443,20445,20447,20442,20443,20446,20447,20448,20449,20450,20451,20448,20449,20452,20453,20450,20451,20454,20455,20452,20453,20454,20455,20456,20457,20458,20459,20460,20461,20462,20463,20466,20467,20470,20471,20474,20475,20478,20479,20480,20481,20482,20483,20482,20483,20486,20487,20480,20482,20484,20486,20488,20489,20490,20491,20490,20491,20494,20495,20496,20497,20498,20499,20497,20499,20501,20503,20504,20505,20506,20507,20512,20513,20514,20515,20512,20513,20516,20517,20512,20514,20516,20518,20520,20521,20522,20523,20520,20521,20524,20525,20528,20529,20530,20531,20529,20531,20533,20535,20536,20537,20538,20539,20544,20545,20546,20547,20544,20545,20548,20549,20546,20547,20550,20551,20544,20546,20548,20550,20552,20553,20554,20555,20552,20553,20556,20557,20554,20555,20558,20559,20560,20561,20562,20563,20561,20563,20565,20567,20568,20569,20570,20571,20576,20577,20578,20579,20576,20577,20580,20581,20576,20578,20580,20582,20584,20585,20586,20587,20584,20585,20588,20589,20592,20593,20594,20595,20592,20593,20596,20597,20593,20595,20597,20599,20600,20601,20602,20603,20600,20601,20604,20605,20608,20609,20610,20611,20608,20609,20612,20613,20608,20610,20612,20614,20612,20613,20614,20615,20616,20617,20620,20621,20616,20618,20620,20622,20624,20625,20626,20627,20624,20625,20628,20629,20632,20633,20634,20635,20632,20633,20636,20637,20640,20641,20642,20643,20640,20641,20644,20645,20641,20643,20645,20647,20644,20645,20646,20647,20649,20651,20653,20655,20656,20657,20658,20659,20664,20665,20666,20667,20664,20665,20668,20669,20672,20673,20674,20675,20672,20673,20676,20677,20674,20675,20678,20679,20672,20674,20676,20678,20680,20681,20682,20683,20680,20681,20684,20685,20682,20683,20686,20687,20680,20682,20684,20686,20688,20689,20690,20691,20688,20689,20692,20693,20690,20691,20694,20695,20688,20690,20692,20694,20692,20693,20694,20695,20696,20697,20700,20701,20698,20699,20702,20703,20696,20698,20700,20702,20704,20705,20706,20707,20705,20707,20709,20711,20706,20707,20710,20711,20704,20706,20708,20710,20712,20713,20714,20715,20713,20715,20717,20719,20714,20715,20718,20719,20712,20714,20716,20718,20720,20721,20722,20723,20722,20723,20726,20727,20724,20725,20726,20727,20730,20731,20734,20735,20736,20737,20738,20739,20738,20739,20742,20743,20736,20738,20740,20742,20744,20745,20746,20747,20746,20747,20750,20751,20744,20746,20748,20750,20752,20753,20754,20755,20753,20755,20757,20759,20754,20755,20758,20759,20752,20754,20756,20758,20760,20761,20762,20763,20762,20763,20766,20767,20768,20769,20770,20771,20768,20769,20772,20773,20770,20771,20774,20775,20768,20770,20772,20774,20776,20777,20778,20779,20776,20777,20780,20781,20778,20779,20782,20783,20776,20778,20780,20782,20784,20785,20786,20787,20785,20787,20789,20791,20784,20786,20788,20790,20792,20793,20794,20795,20800,20801,20802,20803,20800,20801,20804,20805,20802,20803,20806,20807,20800,20802,20804,20806,20808,20809,20810,20811,20808,20809,20812,20813,20810,20811,20814,20815,20808,20810,20812,20814,20816,20817,20818,20819,20817,20819,20821,20823,20818,20819,20822,20823,20816,20818,20820,20822,20824,20825,20826,20827,20826,20827,20830,20831,20832,20833,20834,20835,20832,20833,20836,20837,20834,20835,20838,20839,20832,20834,20836,20838,20840,20841,20842,20843,20840,20841,20844,20845,20842,20843,20846,20847,20840,20842,20844,20846,20848,20849,20850,20851,20848,20849,20852,20853,20849,20851,20853,20855,20848,20850,20852,20854,20856,20857,20858,20859,20856,20857,20860,20861,20864,20865,20866,20867,20864,20865,20868,20869,20864,20866,20868,20870,20868,20869,20870,20871,20872,20873,20874,20875,20872,20873,20876,20877,20872,20874,20876,20878,20876,20877,20878,20879,20880,20881,20884,20885,20882,20883,20886,20887,20880,20882,20884,20886,20888,20890,20892,20894,20896,20897,20898,20899,20896,20897,20900,20901,20896,20898,20900,20902,20904,20905,20906,20907,20904,20905,20908,20909,20904,20906,20908,20910,20912,20913,20914,20915,20912,20913,20916,20917,20914,20915,20918,20919,20912,20914,20916,20918,20920,20921,20922,20923,20920,20922,20924,20926,20928,20929,20930,20931,20928,20929,20932,20933,20930,20931,20934,20935,20928,20930,20932,20934,20932,20933,20934,20935,20936,20937,20938,20939,20936,20937,20940,20941,20936,20938,20940,20942,20940,20941,20942,20943,20944,20945,20948,20949,20946,20947,20950,20951,20944,20946,20948,20950,20948,20949,20950,20951,20954,20955,20958,20959,20952,20954,20956,20958,20956,20957,20958,20959,20960,20961,20962,20963,20960,20961,20964,20965,20962,20963,20966,20967,20960,20962,20964,20966,20964,20965,20966,20967,20968,20969,20970,20971,20968,20969,20972,20973,20968,20970,20972,20974,20972,20973,20974,20975,20976,20977,20978,20979,20976,20977,20980,20981,20978,20979,20982,20983,20976,20978,20980,20982,20984,20985,20986,20987,20986,20987,20990,20991,20984,20986,20988,20990,20992,20993,20994,20995,20993,20995,20997,20999,20994,20995,20998,20999,20992,20994,20996,20998,20996,20997,20998,20999,21000,21001,21002,21003,21002,21003,21006,21007,21004,21005,21006,21007,21008,21009,21010,21011,21010,21011,21014,21015,21008,21010,21012,21014,21012,21013,21014,21015,21016,21017,21018,21019,21018,21019,21022,21023,21016,21018,21020,21022,21020,21021,21022,21023,21024,21025,21028,21029,21025,21027,21029,21031,21026,21027,21030,21031,21024,21026,21028,21030,21028,21029,21030,21031,21032,21033,21036,21037,21034,21035,21038,21039,21036,21037,21038,21039,21040,21042,21044,21046,21044,21045,21046,21047,21048,21050,21052,21054,21052,21053,21054,21055,21056,21057,21060,21061,21057,21059,21061,21063,21058,21059,21062,21063,21056,21058,21060,21062,21060,21061,21062,21063,21064,21065,21068,21069,21066,21067,21070,21071,21068,21069,21070,21071,21074,21075,21078,21079,21072,21074,21076,21078,21076,21077,21078,21079,21082,21083,21086,21087,21080,21082,21084,21086,21084,21085,21086,21087,21088,21089,21092,21093,21089,21091,21093,21095,21090,21091,21094,21095,21088,21090,21092,21094,21096,21097,21100,21101,21098,21099,21102,21103,21104,21105,21108,21109,21104,21106,21108,21110,21112,21113,21116,21117,21112,21114,21116,21118,21120,21121,21122,21123,21120,21121,21124,21125,21121,21123,21125,21127,21120,21122,21124,21126,21128,21129,21132,21133,21129,21131,21133,21135,21128,21130,21132,21134,21136,21137,21140,21141,21140,21141,21142,21143,21144,21145,21148,21149,21152,21153,21154,21155,21152,21153,21156,21157,21152,21154,21156,21158,21160,21161,21164,21165,21160,21162,21164,21166,21168,21169,21172,21173,21168,21170,21172,21174,21172,21173,21174,21175,21176,21177,21180,21181,21176,21178,21180,21182,21184,21185,21186,21187,21184,21185,21188,21189,21186,21187,21190,21191,21184,21186,21188,21190,21192,21193,21194,21195,21192,21193,21196,21197,21194,21195,21198,21199,21192,21194,21196,21198,21200,21201,21202,21203,21201,21203,21205,21207,21202,21203,21206,21207,21200,21202,21204,21206,21208,21209,21210,21211,21210,21211,21214,21215,21216,21217,21218,21219,21216,21217,21220,21221,21218,21219,21222,21223,21216,21218,21220,21222,21224,21225,21226,21227,21224,21225,21228,21229,21226,21227,21230,21231,21224,21226,21228,21230,21232,21233,21234,21235,21232,21233,21236,21237,21233,21235,21237,21239,21232,21234,21236,21238,21240,21241,21242,21243,21240,21241,21244,21245,21248,21249,21250,21251,21248,21249,21252,21253,21250,21251,21254,21255,21248,21250,21252,21254,21256,21257,21258,21259,21256,21257,21260,21261,21258,21259,21262,21263,21256,21258,21260,21262,21264,21265,21266,21267,21266,21267,21270,21271,21264,21266,21268,21270,21272,21273,21274,21275,21274,21275,21278,21279,21272,21274,21276,21278,21280,21281,21282,21283,21280,21281,21284,21285,21281,21283,21285,21287,21282,21283,21286,21287,21280,21282,21284,21286,21288,21289,21290,21291,21288,21289,21292,21293,21290,21291,21294,21295,21296,21297,21298,21299,21296,21297,21300,21301,21296,21298,21300,21302,21304,21305,21306,21307,21304,21305,21308,21309,21304,21306,21308,21310,21312,21313,21314,21315,21312,21313,21316,21317,21314,21315,21318,21319,21316,21317,21318,21319,21320,21321,21322,21323,21322,21323,21326,21327,21324,21325,21326,21327,21328,21329,21332,21333,21330,21331,21334,21335,21332,21333,21334,21335,21336,21337,21340,21341,21340,21341,21342,21343,21344,21345,21348,21349,21346,21347,21350,21351,21348,21349,21350,21351,21352,21353,21356,21357,21354,21355,21358,21359,21360,21361,21362,21363,21362,21363,21366,21367,21370,21371,21374,21375,21376,21377,21378,21379,21377,21379,21381,21383,21378,21379,21382,21383,21380,21381,21382,21383,21385,21387,21389,21391,21386,21387,21390,21391,21392,21393,21394,21395,21393,21395,21397,21399,21394,21395,21398,21399,21400,21401,21402,21403,21401,21403,21405,21407,21402,21403,21406,21407,21408,21409,21410,21411,21408,21409,21412,21413,21409,21411,21413,21415,21410,21411,21414,21415,21416,21417,21418,21419,21416,21417,21420,21421,21417,21419,21421,21423,21418,21419,21422,21423,21420,21421,21422,21423,21424,21425,21426,21427,21425,21427,21429,21431,21432,21433,21434,21435,21433,21435,21437,21439,21436,21437,21438,21439,21440,21441,21442,21443,21441,21443,21445,21447,21442,21443,21446,21447,21440,21442,21444,21446,21448,21449,21450,21451,21450,21451,21454,21455,21456,21457,21458,21459,21457,21459,21461,21463,21458,21459,21462,21463,21464,21465,21466,21467,21465,21467,21469,21471,21466,21467,21470,21471,21472,21473,21474,21475,21472,21473,21476,21477,21474,21475,21478,21479,21476,21477,21478,21479,21480,21481,21482,21483,21484,21485,21486,21487,21490,21491,21494,21495,21492,21493,21494,21495,21498,21499,21502,21503,21500,21501,21502,21503,21504,21505,21508,21509,21506,21507,21510,21511,21504,21506,21508,21510,21508,21509,21510,21511,21512,21513,21516,21517,21514,21515,21518,21519,21516,21517,21518,21519,21521,21523,21525,21527,21524,21525,21526,21527,21532,21533,21534,21535,21538,21539,21542,21543,21536,21538,21540,21542,21546,21547,21550,21551,21553,21555,21557,21559,21554,21555,21558,21559,21562,21563,21566,21567,21568,21569,21570,21571,21569,21571,21573,21575,21570,21571,21574,21575,21568,21570,21572,21574,21576,21577,21578,21579,21578,21579,21582,21583,21576,21578,21580,21582,21584,21585,21586,21587,21585,21587,21589,21591,21586,21587,21590,21591,21584,21586,21588,21590,21592,21593,21594,21595,21593,21595,21597,21599,21594,21595,21598,21599,21600,21601,21602,21603,21600,21601,21604,21605,21601,21603,21605,21607,21602,21603,21606,21607,21600,21602,21604,21606,21608,21609,21610,21611,21608,21609,21612,21613,21610,21611,21614,21615,21608,21610,21612,21614,21616,21617,21618,21619,21617,21619,21621,21623,21616,21618,21620,21622,21624,21625,21626,21627,21625,21627,21629,21631,21632,21633,21634,21635,21633,21635,21637,21639,21634,21635,21638,21639,21632,21634,21636,21638,21640,21641,21642,21643,21642,21643,21646,21647,21640,21642,21644,21646,21648,21649,21650,21651,21649,21651,21653,21655,21650,21651,21654,21655,21648,21650,21652,21654,21656,21657,21658,21659,21658,21659,21662,21663,21656,21658,21660,21662,21664,21665,21666,21667,21664,21665,21668,21669,21665,21667,21669,21671,21666,21667,21670,21671,21664,21666,21668,21670,21672,21673,21674,21675,21672,21673,21676,21677,21673,21675,21677,21679,21674,21675,21678,21679,21680,21681,21682,21683,21681,21683,21685,21687,21680,21682,21684,21686,21688,21689,21690,21691,21688,21690,21692,21694,21696,21697,21698,21699,21698,21699,21702,21703,21700,21701,21702,21703,21704,21705,21706,21707,21706,21707,21710,21711,21708,21709,21710,21711,21712,21713,21716,21717,21714,21715,21718,21719,21716,21717,21718,21719,21724,21725,21726,21727,21730,21731,21734,21735,21732,21733,21734,21735,21738,21739,21742,21743,21740,21741,21742,21743,21746,21747,21750,21751,21754,21755,21758,21759,21760,21761,21762,21763,21761,21763,21765,21767,21768,21769,21770,21771,21769,21771,21773,21775,21776,21777,21778,21779,21777,21779,21781,21783,21784,21785,21786,21787,21785,21787,21789,21791,21788,21789,21790,21791,21792,21793,21794,21795,21793,21795,21797,21799,21800,21801,21802,21803,21801,21803,21805,21807,21808,21809,21810,21811,21809,21811,21813,21815,21812,21813,21814,21815,21817,21819,21821,21823,21820,21821,21822,21823,21825,21827,21829,21831,21824,21826,21828,21830,21828,21829,21830,21831,21836,21837,21838,21839,21841,21843,21845,21847,21849,21851,21853,21855,21856,21857,21858,21859,21856,21857,21860,21861,21857,21859,21861,21863,21864,21865,21866,21867,21864,21865,21868,21869,21865,21867,21869,21871,21872,21873,21874,21875,21872,21873,21876,21877,21873,21875,21877,21879,21874,21875,21878,21879,21880,21881,21882,21883,21881,21883,21885,21887,21888,21889,21890,21891,21888,21889,21892,21893,21889,21891,21893,21895,21892,21893,21894,21895,21896,21897,21898,21899,21896,21897,21900,21901,21897,21899,21901,21903,21900,21901,21902,21903,21904,21905,21908,21909,21905,21907,21909,21911,21906,21907,21910,21911,21913,21915,21917,21919,21920,21921,21922,21923,21920,21921,21924,21925,21921,21923,21925,21927,21928,21929,21930,21931,21928,21929,21932,21933,21929,21931,21933,21935,21936,21937,21938,21939,21936,21937,21940,21941,21937,21939,21941,21943,21944,21945,21946,21947,21944,21945,21948,21949,21945,21947,21949,21951,21952,21953,21954,21955,21952,21953,21956,21957,21954,21955,21958,21959,21956,21957,21958,21959,21960,21961,21962,21963,21964,21965,21966,21967,21968,21969,21972,21973,21976,21977,21980,21981,21984,21985,21986,21987,21984,21986,21988,21990,21992,21993,21994,21995,21992,21994,21996,21998,22000,22001,22002,22003,22000,22002,22004,22006,22004,22005,22006,22007,22008,22010,22012,22014,22016,22017,22018,22019,22016,22018,22020,22022,22024,22025,22026,22027,22032,22033,22034,22035,22033,22035,22037,22039,22040,22041,22042,22043,22048,22049,22050,22051,22049,22051,22053,22055,22050,22051,22054,22055,22048,22050,22052,22054,22056,22057,22058,22059,22058,22059,22062,22063,22064,22065,22066,22067,22065,22067,22069,22071,22066,22067,22070,22071,22072,22073,22074,22075,22073,22075,22077,22079,22074,22075,22078,22079,22080,22081,22082,22083,22081,22083,22085,22087,22082,22083,22086,22087,22084,22085,22086,22087,22088,22089,22090,22091,22089,22091,22093,22095,22090,22091,22094,22095,22088,22090,22092,22094,22092,22093,22094,22095,22097,22099,22101,22103,22098,22099,22102,22103,22105,22107,22109,22111,22106,22107,22110,22111,22104,22106,22108,22110,22112,22113,22114,22115,22112,22113,22116,22117,22114,22115,22118,22119,22120,22121,22122,22123,22128,22129,22130,22131,22130,22131,22134,22135,22136,22137,22138,22139,22138,22139,22142,22143,22144,22145,22146,22147,22144,22146,22148,22150,22148,22149,22150,22151,22152,22154,22156,22158,22160,22161,22162,22163,22160,22162,22164,22166,22168,22169,22170,22171,22168,22170,22172,22174,22176,22177,22178,22179,22176,22177,22180,22181,22176,22178,22180,22182,22180,22181,22182,22183,22184,22185,22186,22187,22184,22186,22188,22190,22188,22189,22190,22191,22194,22195,22198,22199,22192,22194,22196,22198,22200,22202,22204,22206,22208,22209,22210,22211,22208,22209,22212,22213,22216,22217,22218,22219,22224,22225,22226,22227,22226,22227,22230,22231,22232,22233,22234,22235,22240,22241,22242,22243,22240,22241,22244,22245,22241,22243,22245,22247,22240,22242,22244,22246,22248,22249,22250,22251,22248,22249,22252,22253,22249,22251,22253,22255,22248,22250,22252,22254,22256,22257,22258,22259,22256,22257,22260,22261,22257,22259,22261,22263,22258,22259,22262,22263,22256,22258,22260,22262,22264,22265,22266,22267,22265,22267,22269,22271,22264,22266,22268,22270,22272,22273,22274,22275,22272,22273,22276,22277,22273,22275,22277,22279,22276,22277,22278,22279,22280,22281,22282,22283,22280,22281,22284,22285,22281,22283,22285,22287,22284,22285,22286,22287,22288,22289,22292,22293,22289,22291,22293,22295,22290,22291,22294,22295,22297,22299,22301,22303,22304,22305,22306,22307,22304,22305,22308,22309,22305,22307,22309,22311,22312,22313,22314,22315,22312,22313,22316,22317,22313,22315,22317,22319,22320,22321,22322,22323,22320,22321,22324,22325,22321,22323,22325,22327,22328,22329,22330,22331,22328,22329,22332,22333,22329,22331,22333,22335,22336,22337,22338,22339,22336,22337,22340,22341,22338,22339,22342,22343,22340,22341,22342,22343,22344,22345,22346,22347,22348,22349,22350,22351,22352,22353,22356,22357,22360,22361,22364,22365,22368,22369,22370,22371,22368,22369,22372,22373,22368,22370,22372,22374,22376,22377,22378,22379,22376,22377,22380,22381,22376,22378,22380,22382,22384,22385,22386,22387,22384,22385,22388,22389,22384,22386,22388,22390,22388,22389,22390,22391,22392,22393,22396,22397,22392,22394,22396,22398,22400,22401,22402,22403,22400,22401,22404,22405,22400,22402,22404,22406,22408,22409,22410,22411,22408,22409,22412,22413,22408,22410,22412,22414,22416,22417,22418,22419,22416,22417,22420,22421,22416,22418,22420,22422,22424,22425,22426,22427,22424,22425,22428,22429,22424,22426,22428,22430,22432,22433,22436,22437,22433,22435,22437,22439,22434,22435,22438,22439,22432,22434,22436,22438,22440,22441,22444,22445,22441,22443,22445,22447,22442,22443,22446,22447,22448,22449,22452,22453,22449,22451,22453,22455,22450,22451,22454,22455,22457,22459,22461,22463,22458,22459,22462,22463,22456,22458,22460,22462,22464,22465,22468,22469,22466,22467,22470,22471,22474,22475,22478,22479,22480,22482,22484,22486,22488,22490,22492,22494,22496,22497,22500,22501,22496,22498,22500,22502,22504,22506,22508,22510,22514,22515,22518,22519,22512,22514,22516,22518,22520,22522,22524,22526,22528,22529,22532,22533,22528,22530,22532,22534,22532,22533,22534,22535,22536,22537,22540,22541,22536,22538,22540,22542,22540,22541,22542,22543,22544,22545,22548,22549,22545,22547,22549,22551,22544,22546,22548,22550,22548,22549,22550,22551,22552,22553,22556,22557,22556,22557,22558,22559,22560,22561,22564,22565,22562,22563,22566,22567,22560,22562,22564,22566,22564,22565,22566,22567,22568,22569,22572,22573,22570,22571,22574,22575,22568,22570,22572,22574,22572,22573,22574,22575,22577,22579,22581,22583,22576,22578,22580,22582,22580,22581,22582,22583,22588,22589,22590,22591,22592,22593,22596,22597,22592,22594,22596,22598,22600,22601,22604,22605,22600,22602,22604,22606,22608,22609,22612,22613,22608,22610,22612,22614,22616,22617,22620,22621,22616,22618,22620,22622,22624,22625,22626,22627,22624,22625,22628,22629,22626,22627,22630,22631,22632,22633,22634,22635,22640,22641,22642,22643,22640,22641,22644,22645,22648,22649,22652,22653,22656,22657,22660,22661,22660,22661,22662,22663,22664,22665,22668,22669,22672,22673,22674,22675,22672,22673,22676,22677,22673,22675,22677,22679,22676,22677,22678,22679,22680,22681,22684,22685,22681,22683,22685,22687,22688,22689,22692,22693,22689,22691,22693,22695,22692,22693,22694,22695,22696,22697,22700,22701,22697,22699,22701,22703,22700,22701,22702,22703,22704,22705,22708,22709,22705,22707,22709,22711,22706,22707,22710,22711,22712,22713,22714,22715,22712,22713,22716,22717,22713,22715,22717,22719,22714,22715,22718,22719,22721,22723,22725,22727,22728,22729,22730,22731,22729,22731,22733,22735,22736,22737,22738,22739,22736,22737,22740,22741,22744,22745,22746,22747,22744,22745,22748,22749,22745,22747,22749,22751,22752,22753,22754,22755,22752,22753,22756,22757,22753,22755,22757,22759,22754,22755,22758,22759,22752,22754,22756,22758,22760,22761,22762,22763,22760,22761,22764,22765,22762,22763,22766,22767,22768,22769,22770,22771,22769,22771,22773,22775,22776,22777,22778,22779,22784,22785,22788,22789,22784,22786,22788,22790,22792,22793,22796,22797,22800,22801,22804,22805,22801,22803,22805,22807,22808,22809,22812,22813,22809,22811,22813,22815,22816,22817,22820,22821,22817,22819,22821,22823,22816,22818,22820,22822,22820,22821,22822,22823,22824,22825,22828,22829,22824,22826,22828,22830,22828,22829,22830,22831,22832,22833,22836,22837,22833,22835,22837,22839,22832,22834,22836,22838,22836,22837,22838,22839,22840,22841,22844,22845,22841,22843,22845,22847,22844,22845,22846,22847,22848,22849,22852,22853,22849,22851,22853,22855,22850,22851,22854,22855,22848,22850,22852,22854,22852,22853,22854,22855,22856,22857,22860,22861,22858,22859,22862,22863,22856,22858,22860,22862,22860,22861,22862,22863,22865,22867,22869,22871,22864,22866,22868,22870,22868,22869,22870,22871,22873,22875,22877,22879,22876,22877,22878,22879,22880,22881,22884,22885,22881,22883,22885,22887,22880,22882,22884,22886,22888,22889,22892,22893,22888,22890,22892,22894,22896,22897,22900,22901,22897,22899,22901,22903,22896,22898,22900,22902,22904,22905,22908,22909,22904,22906,22908,22910,22912,22913,22914,22915,22912,22913,22916,22917,22914,22915,22918,22919,22920,22921,22922,22923,22928,22929,22930,22931,22928,22929,22932,22933,22936,22937,22938,22939,22936,22937,22940,22941,22944,22945,22948,22949,22952,22953,22956,22957,22960,22961,22964,22965,22961,22963,22965,22967,22964,22965,22966,22967,22968,22969,22972,22973,22969,22971,22973,22975,22972,22973,22974,22975,22976,22977,22980,22981,22977,22979,22981,22983,22984,22985,22986,22987,22984,22985,22988,22989,22985,22987,22989,22991,22992,22993,22994,22995,22992,22993,22996,22997,22993,22995,22997,22999,23000,23001,23002,23003,23000,23001,23004,23005,23001,23003,23005,23007,23000,23002,23004,23006,23008,23009,23010,23011,23008,23009,23012,23013,23016,23017,23020,23021,23017,23019,23021,23023,23024,23025,23028,23029,23025,23027,23029,23031,23032,23033,23036,23037,23033,23035,23037,23039,23034,23035,23038,23039,23036,23037,23038,23039,23040,23041,23044,23045,23041,23043,23045,23047,23042,23043,23046,23047,23044,23045,23046,23047,23048,23049,23050,23051,23048,23049,23052,23053,23049,23051,23053,23055,23050,23051,23054,23055,23052,23053,23054,23055,23056,23057,23060,23061,23057,23059,23061,23063,23058,23059,23062,23063,23065,23067,23069,23071,23066,23067,23070,23071,23064,23066,23068,23070,23068,23069,23070,23071,23073,23075,23077,23079,23074,23075,23078,23079,23072,23074,23076,23078,23076,23077,23078,23079,23080,23081,23082,23083,23082,23083,23086,23087,23084,23085,23086,23087,23090,23091,23094,23095,23097,23099,23101,23103,23098,23099,23102,23103,23100,23101,23102,23103,23105,23107,23109,23111,23106,23107,23110,23111,23108,23109,23110,23111,23113,23115,23117,23119,23114,23115,23118,23119,23116,23117,23118,23119,23121,23123,23125,23127,23122,23123,23126,23127,23124,23125,23126,23127,23128,23129,23130,23131,23129,23131,23133,23135,23128,23130,23132,23134,23132,23133,23134,23135,23137,23139,23141,23143,23136,23138,23140,23142,23148,23149,23150,23151,23156,23157,23158,23159,23160,23161,23164,23165,23161,23163,23165,23167,23168,23169,23172,23173,23169,23171,23173,23175,23176,23177,23180,23181,23177,23179,23181,23183,23176,23178,23180,23182,23184,23185,23188,23189,23192,23193,23196,23197,23193,23195,23197,23199,23200,23201,23204,23205,23201,23203,23205,23207,23208,23209,23212,23213,23209,23211,23213,23215,23210,23211,23214,23215,23217,23219,23221,23223,23224,23225,23226,23227,23224,23225,23228,23229,23225,23227,23229,23231,23226,23227,23230,23231,23232,23233,23234,23235,23232,23233,23236,23237,23233,23235,23237,23239,23240,23241,23242,23243,23240,23241,23244,23245,23242,23243,23246,23247,23248,23249,23250,23251,23250,23251,23254,23255,23256,23257,23258,23259,23258,23259,23262,23263,23256,23258,23260,23262,23264,23265,23266,23267,23264,23265,23268,23269,23266,23267,23270,23271,23264,23266,23268,23270,23272,23273,23274,23275,23274,23275,23278,23279,23280,23281,23282,23283,23280,23281,23284,23285,23282,23283,23286,23287,23288,23289,23290,23291,23289,23291,23293,23295,23292,23293,23294,23295,23297,23299,23301,23303,23304,23305,23306,23307,23312,23313,23314,23315,23320,23321,23324,23325,23320,23322,23324,23326,23328,23329,23332,23333,23336,23337,23340,23341,23337,23339,23341,23343,23344,23345,23348,23349,23352,23353,23356,23357,23352,23354,23356,23358,23356,23357,23358,23359,23360,23361,23364,23365,23360,23362,23364,23366,23368,23369,23370,23371,23368,23369,23372,23373,23376,23377,23380,23381,23384,23385,23388,23389,23385,23387,23389,23391,23388,23389,23390,23391,23392,23393,23396,23397,23393,23395,23397,23399,23400,23401,23402,23403,23400,23401,23404,23405,23408,23409,23412,23413,23416,23417,23420,23421,23416,23418,23420,23422,23420,23421,23422,23423,23424,23425,23428,23429,23424,23426,23428,23430,23428,23429,23430,23431,23432,23433,23436,23437,23434,23435,23438,23439,23432,23434,23436,23438,23436,23437,23438,23439,23440,23442,23444,23446,23444,23445,23446,23447,23448,23449,23450,23451,23448,23449,23452,23453,23448,23450,23452,23454,23452,23453,23454,23455,23456,23457,23458,23459,23456,23457,23460,23461,23456,23458,23460,23462,23460,23461,23462,23463,23464,23465,23468,23469,23466,23467,23470,23471,23464,23466,23468,23470,23472,23474,23476,23478,23480,23481,23484,23485,23480,23482,23484,23486,23484,23485,23486,23487,23488,23489,23492,23493,23488,23490,23492,23494,23492,23493,23494,23495,23496,23497,23498,23499,23496,23497,23500,23501,23496,23498,23500,23502,23500,23501,23502,23503,23504,23505,23508,23509,23504,23506,23508,23510,23512,23513,23516,23517,23513,23515,23517,23519,23512,23514,23516,23518,23516,23517,23518,23519,23520,23521,23524,23525,23521,23523,23525,23527,23520,23522,23524,23526,23524,23525,23526,23527,23528,23529,23530,23531,23528,23529,23532,23533,23532,23533,23534,23535,23536,23537,23540,23541,23544,23545,23548,23549,23545,23547,23549,23551,23544,23546,23548,23550,23548,23549,23550,23551,23552,23553,23556,23557,23553,23555,23557,23559,23552,23554,23556,23558,23556,23557,23558,23559,23560,23561,23562,23563,23560,23561,23564,23565,23560,23562,23564,23566,23564,23565,23566,23567,23568,23569,23572,23573,23568,23570,23572,23574,23576,23577,23580,23581,23577,23579,23581,23583,23576,23578,23580,23582,23580,23581,23582,23583,23584,23585,23588,23589,23585,23587,23589,23591,23584,23586,23588,23590,23588,23589,23590,23591,23592,23593,23594,23595,23592,23593,23596,23597,23593,23595,23597,23599,23596,23597,23598,23599,23600,23601,23604,23605,23601,23603,23605,23607,23608,23609,23612,23613,23609,23611,23613,23615,23610,23611,23614,23615,23612,23613,23614,23615,23616,23617,23620,23621,23618,23619,23622,23623,23620,23621,23622,23623,23624,23626,23628,23630,23628,23629,23630,23631,23636,23637,23638,23639,23640,23641,23644,23645,23641,23643,23645,23647,23644,23645,23646,23647,23648,23649,23652,23653,23652,23653,23654,23655,23656,23657,23660,23661,23656,23658,23660,23662,23660,23661,23662,23663,23664,23665,23668,23669,23668,23669,23670,23671,23672,23673,23676,23677,23673,23675,23677,23679,23674,23675,23678,23679,23672,23674,23676,23678,23676,23677,23678,23679,23680,23681,23684,23685,23682,23683,23686,23687,23684,23685,23686,23687,23690,23691,23694,23695,23688,23690,23692,23694,23692,23693,23694,23695,23698,23699,23702,23703,23696,23698,23700,23702,23700,23701,23702,23703,23704,23705,23708,23709,23705,23707,23709,23711,23706,23707,23710,23711,23704,23706,23708,23710,23708,23709,23710,23711,23712,23713,23716,23717,23714,23715,23718,23719,23716,23717,23718,23719,23720,23721,23724,23725,23720,23722,23724,23726,23724,23725,23726,23727,23728,23729,23732,23733,23728,23730,23732,23734,23732,23733,23734,23735,23736,23737,23738,23739,23736,23737,23740,23741,23738,23739,23742,23743,23736,23738,23740,23742,23740,23741,23742,23743,23744,23745,23748,23749,23746,23747,23750,23751,23744,23746,23748,23750,23752,23753,23756,23757,23754,23755,23758,23759,23752,23754,23756,23758,23756,23757,23758,23759,23760,23761,23764,23765,23762,23763,23766,23767,23760,23762,23764,23766,23764,23765,23766,23767,23768,23769,23770,23771,23769,23771,23773,23775,23770,23771,23774,23775,23768,23770,23772,23774,23772,23773,23774,23775,23777,23779,23781,23783,23778,23779,23782,23783,23776,23778,23780,23782,23786,23787,23790,23791,23788,23789,23790,23791,23794,23795,23798,23799,23796,23797,23798,23799,23800,23801,23802,23803,23801,23803,23805,23807,23802,23803,23806,23807,23800,23802,23804,23806,23804,23805,23806,23807,23809,23811,23813,23815,23810,23811,23814,23815,23808,23810,23812,23814,23818,23819,23822,23823,23816,23818,23820,23822,23820,23821,23822,23823,23826,23827,23830,23831,23824,23826,23828,23830,23828,23829,23830,23831,23832,23833,23834,23835,23833,23835,23837,23839,23832,23834,23836,23838,23836,23837,23838,23839,23841,23843,23845,23847,23840,23842,23844,23846,23849,23851,23853,23855,23852,23853,23854,23855,23857,23859,23861,23863,23860,23861,23862,23863,23864,23865,23866,23867,23864,23865,23868,23869,23865,23867,23869,23871,23868,23869,23870,23871,23872,23873,23874,23875,23873,23875,23877,23879,23876,23877,23878,23879,23881,23883,23885,23887,23882,23883,23886,23887,23889,23891,23893,23895,23896,23897,23900,23901,23900,23901,23902,23903,23908,23909,23910,23911,23914,23915,23918,23919,23916,23917,23918,23919,23924,23925,23926,23927,23928,23929,23932,23933,23928,23930,23932,23934,23932,23933,23934,23935,23936,23937,23940,23941,23936,23938,23940,23942,23940,23941,23942,23943,23944,23945,23946,23947,23944,23945,23948,23949,23944,23946,23948,23950,23948,23949,23950,23951,23952,23953,23956,23957,23952,23954,23956,23958,23960,23961,23964,23965,23961,23963,23965,23967,23960,23962,23964,23966,23964,23965,23966,23967,23968,23969,23972,23973,23969,23971,23973,23975,23968,23970,23972,23974,23972,23973,23974,23975,23976,23977,23978,23979,23976,23977,23980,23981,23980,23981,23982,23983,23984,23985,23988,23989,23992,23993,23996,23997,23992,23994,23996,23998,23996,23997,23998,23999,24000,24001,24004,24005,24000,24002,24004,24006,24004,24005,24006,24007,24008,24009,24012,24013,24009,24011,24013,24015,24008,24010,24012,24014,24012,24013,24014,24015,24016,24017,24020,24021,24020,24021,24022,24023,24024,24025,24028,24029,24026,24027,24030,24031,24024,24026,24028,24030,24028,24029,24030,24031,24032,24033,24036,24037,24034,24035,24038,24039,24032,24034,24036,24038,24036,24037,24038,24039,24041,24043,24045,24047,24040,24042,24044,24046,24044,24045,24046,24047,24052,24053,24054,24055,24056,24057,24060,24061,24058,24059,24062,24063,24056,24058,24060,24062,24060,24061,24062,24063,24064,24065,24068,24069,24066,24067,24070,24071,24064,24066,24068,24070,24068,24069,24070,24071,24072,24073,24076,24077,24073,24075,24077,24079,24072,24074,24076,24078,24076,24077,24078,24079,24080,24081,24084,24085,24084,24085,24086,24087,24088,24089,24092,24093,24090,24091,24094,24095,24088,24090,24092,24094,24096,24097,24100,24101,24098,24099,24102,24103,24096,24098,24100,24102,24105,24107,24109,24111,24106,24107,24110,24111,24104,24106,24108,24110,24114,24115,24118,24119,24120,24121,24122,24123,24122,24123,24126,24127,24120,24122,24124,24126,24128,24129,24130,24131,24128,24130,24132,24134,24136,24137,24140,24141,24136,24138,24140,24142,24144,24146,24148,24150,24154,24155,24158,24159,24152,24154,24156,24158,24156,24157,24158,24159,24160,24162,24164,24166,24164,24165,24166,24167,24168,24169,24172,24173,24168,24170,24172,24174,24176,24178,24180,24182,24184,24185,24186,24187,24184,24185,24188,24189,24186,24187,24190,24191,24184,24186,24188,24190,24192,24193,24194,24195,24192,24194,24196,24198,24200,24201,24202,24203,24200,24201,24204,24205,24200,24202,24204,24206,24208,24209,24210,24211,24208,24209,24212,24213,24208,24210,24212,24214,24216,24217,24218,24219,24216,24217,24220,24221,24218,24219,24222,24223,24216,24218,24220,24222,24220,24221,24222,24223,24224,24225,24226,24227,24224,24226,24228,24230,24228,24229,24230,24231,24232,24233,24236,24237,24232,24234,24236,24238,24240,24241,24244,24245,24240,24242,24244,24246,24248,24249,24250,24251,24248,24249,24252,24253,24249,24251,24253,24255,24248,24250,24252,24254,24256,24257,24258,24259,24256,24257,24260,24261,24264,24265,24266,24267,24264,24265,24268,24269,24264,24266,24268,24270,24272,24273,24274,24275,24272,24273,24276,24277,24272,24274,24276,24278,24280,24281,24282,24283,24280,24281,24284,24285,24281,24283,24285,24287,24282,24283,24286,24287,24280,24282,24284,24286,24288,24289,24290,24291,24288,24289,24292,24293,24290,24291,24294,24295,24296,24297,24298,24299,24296,24298,24300,24302,24304,24305,24306,24307,24304,24306,24308,24310,24312,24313,24314,24315,24312,24313,24316,24317,24313,24315,24317,24319,24314,24315,24318,24319,24312,24314,24316,24318,24320,24321,24322,24323,24320,24321,24324,24325,24322,24323,24326,24327,24328,24329,24330,24331,24328,24329,24332,24333,24328,24330,24332,24334,24336,24337,24338,24339,24336,24337,24340,24341,24336,24338,24340,24342,24344,24345,24348,24349,24345,24347,24349,24351,24346,24347,24350,24351,24344,24346,24348,24350,24352,24353,24356,24357,24354,24355,24358,24359,24362,24363,24366,24367,24360,24362,24364,24366,24370,24371,24374,24375,24368,24370,24372,24374,24377,24379,24381,24383,24378,24379,24382,24383,24376,24378,24380,24382,24380,24381,24382,24383,24385,24387,24389,24391,24386,24387,24390,24391,24384,24386,24388,24390,24392,24393,24394,24395,24394,24395,24398,24399,24402,24403,24406,24407,24408,24410,24412,24414,24412,24413,24414,24415,24416,24418,24420,24422,24424,24425,24426,24427,24424,24426,24428,24430,24432,24434,24436,24438,24440,24441,24442,24443,24440,24441,24444,24445,24440,24442,24444,24446,24444,24445,24446,24447,24448,24449,24452,24453,24448,24450,24452,24454,24452,24453,24454,24455,24456,24457,24458,24459,24456,24457,24460,24461,24456,24458,24460,24462,24460,24461,24462,24463,24464,24465,24466,24467,24464,24465,24468,24469,24464,24466,24468,24470,24472,24473,24474,24475,24472,24473,24476,24477,24473,24475,24477,24479,24472,24474,24476,24478,24476,24477,24478,24479,24480,24481,24484,24485,24481,24483,24485,24487,24480,24482,24484,24486,24484,24485,24486,24487,24488,24489,24490,24491,24488,24489,24492,24493,24492,24493,24494,24495,24496,24497,24498,24499,24496,24497,24500,24501,24504,24505,24506,24507,24504,24505,24508,24509,24504,24506,24508,24510,24508,24509,24510,24511,24512,24513,24514,24515,24512,24513,24516,24517,24512,24514,24516,24518,24516,24517,24518,24519,24520,24521,24522,24523,24520,24521,24524,24525,24521,24523,24525,24527,24520,24522,24524,24526,24524,24525,24526,24527,24528,24529,24530,24531,24528,24529,24532,24533,24532,24533,24534,24535,24536,24537,24540,24541,24538,24539,24542,24543,24536,24538,24540,24542,24540,24541,24542,24543,24544,24545,24548,24549,24546,24547,24550,24551,24544,24546,24548,24550,24548,24549,24550,24551,24553,24555,24557,24559,24552,24554,24556,24558,24556,24557,24558,24559,24564,24565,24566,24567,24568,24569,24572,24573,24570,24571,24574,24575,24568,24570,24572,24574,24572,24573,24574,24575,24576,24577,24580,24581,24578,24579,24582,24583,24576,24578,24580,24582,24580,24581,24582,24583,24584,24585,24588,24589,24585,24587,24589,24591,24584,24586,24588,24590,24588,24589,24590,24591,24592,24593,24596,24597,24596,24597,24598,24599,24600,24601,24604,24605,24602,24603,24606,24607,24600,24602,24604,24606,24608,24609,24612,24613,24610,24611,24614,24615,24608,24610,24612,24614,24617,24619,24621,24623,24618,24619,24622,24623,24616,24618,24620,24622,24626,24627,24630,24631,24632,24633,24634,24635,24634,24635,24638,24639,24632,24634,24636,24638,24640,24641,24642,24643,24642,24643,24646,24647,24640,24642,24644,24646,24648,24649,24650,24651,24648,24650,24652,24654,24656,24657,24658,24659,24656,24658,24660,24662,24664,24665,24668,24669,24665,24667,24669,24671,24664,24666,24668,24670,24672,24673,24676,24677,24680,24682,24684,24686,24688,24690,24692,24694,24696,24697,24698,24699,24696,24697,24700,24701,24698,24699,24702,24703,24700,24701,24702,24703,24704,24705,24706,24707,24708,24709,24710,24711,24712,24713,24716,24717,24720,24721,24724,24725,24728,24729,24730,24731,24728,24729,24732,24733,24736,24737,24738,24739,24736,24737,24740,24741,24744,24745,24746,24747,24744,24745,24748,24749,24746,24747,24750,24751,24752,24753,24754,24755,24760,24761,24762,24763,24760,24761,24764,24765,24762,24763,24766,24767,24768,24769,24770,24771,24768,24769,24772,24773,24776,24777,24778,24779,24776,24777,24780,24781,24778,24779,24782,24783,24784,24785,24786,24787,24786,24787,24790,24791,24792,24793,24794,24795,24794,24795,24798,24799,24796,24797,24798,24799,24802,24803,24806,24807,24808,24809,24810,24811,24816,24817,24818,24819,24824,24825,24826,24827,24824,24825,24828,24829,24825,24827,24829,24831,24832,24833,24834,24835,24832,24833,24836,24837,24833,24835,24837,24839,24840,24841,24842,24843,24840,24841,24844,24845,24841,24843,24845,24847,24840,24842,24844,24846,24848,24849,24850,24851,24848,24849,24852,24853,24856,24857,24858,24859,24856,24857,24860,24861,24857,24859,24861,24863,24858,24859,24862,24863,24864,24865,24866,24867,24864,24865,24868,24869,24865,24867,24869,24871,24866,24867,24870,24871,24872,24873,24874,24875,24873,24875,24877,24879,24872,24874,24876,24878,24880,24881,24882,24883,24888,24889,24890,24891,24888,24889,24892,24893,24889,24891,24893,24895,24896,24897,24898,24899,24896,24897,24900,24901,24897,24899,24901,24903,24904,24905,24906,24907,24904,24905,24908,24909,24905,24907,24909,24911,24912,24913,24914,24915,24912,24913,24916,24917,24913,24915,24917,24919,24920,24921,24924,24925,24921,24923,24925,24927,24922,24923,24926,24927,24920,24922,24924,24926,24928,24929,24932,24933,24930,24931,24934,24935,24937,24939,24941,24943,24945,24947,24949,24951,24952,24953,24956,24957,24956,24957,24958,24959,24960,24961,24964,24965,24964,24965,24966,24967,24968,24969,24972,24973,24970,24971,24974,24975,24972,24973,24974,24975,24980,24981,24982,24983,24984,24985,24988,24989,24988,24989,24990,24991,24992,24993,24996,24997,25000,25001,25002,25003,25000,25001,25004,25005,25008,25009,25012,25013,25016,25017,25018,25019,25016,25017,25020,25021,25016,25018,25020,25022,25020,25021,25022,25023,25024,25025,25028,25029,25024,25026,25028,25030,25032,25033,25034,25035,25032,25033,25036,25037,25032,25034,25036,25038,25040,25041,25042,25043,25040,25041,25044,25045,25040,25042,25044,25046,25048,25049,25050,25051,25048,25049,25052,25053,25050,25051,25054,25055,25048,25050,25052,25054,25056,25057,25058,25059,25056,25057,25060,25061,25058,25059,25062,25063,25056,25058,25060,25062,25060,25061,25062,25063,25064,25065,25066,25067,25064,25066,25068,25070,25072,25073,25074,25075,25072,25074,25076,25078,25076,25077,25078,25079,25080,25081,25084,25085,25081,25083,25085,25087,25080,25082,25084,25086,25088,25089,25092,25093,25096,25097,25100,25101,25096,25098,25100,25102,25104,25105,25108,25109,25104,25106,25108,25110,25112,25113,25116,25117,25114,25115,25118,25119,25116,25117,25118,25119,25124,25125,25126,25127,25128,25129,25132,25133,25132,25133,25134,25135,25136,25137,25140,25141,25140,25141,25142,25143,25144,25145,25148,25149,25145,25147,25149,25151,25146,25147,25150,25151,25148,25149,25150,25151,25152,25153,25156,25157,25154,25155,25158,25159,25156,25157,25158,25159,25160,25162,25164,25166,25164,25165,25166,25167,25172,25173,25174,25175,25176,25177,25180,25181,25177,25179,25181,25183,25184,25185,25188,25189,25192,25193,25196,25197,25192,25194,25196,25198,25200,25201,25204,25205,25208,25209,25210,25211,25208,25209,25212,25213,25209,25211,25213,25215,25212,25213,25214,25215,25216,25217,25218,25219,25216,25217,25220,25221,25217,25219,25221,25223,25220,25221,25222,25223,25224,25225,25226,25227,25224,25225,25228,25229,25225,25227,25229,25231,25224,25226,25228,25230,25228,25229,25230,25231,25232,25233,25234,25235,25232,25233,25236,25237,25236,25237,25238,25239,25240,25241,25242,25243,25240,25241,25244,25245,25241,25243,25245,25247,25242,25243,25246,25247,25248,25249,25250,25251,25248,25249,25252,25253,25249,25251,25253,25255,25250,25251,25254,25255,25256,25257,25258,25259,25257,25259,25261,25263,25256,25258,25260,25262,25264,25265,25266,25267,25272,25273,25274,25275,25272,25273,25276,25277,25273,25275,25277,25279,25280,25281,25282,25283,25280,25281,25284,25285,25281,25283,25285,25287,25288,25289,25290,25291,25288,25289,25292,25293,25289,25291,25293,25295,25296,25297,25298,25299,25296,25297,25300,25301,25297,25299,25301,25303,25304,25305,25308,25309,25305,25307,25309,25311,25306,25307,25310,25311,25304,25306,25308,25310,25312,25313,25316,25317,25314,25315,25318,25319,25321,25323,25325,25327,25329,25331,25333,25335,25336,25337,25340,25341,25337,25339,25341,25343,25340,25341,25342,25343,25344,25345,25348,25349,25345,25347,25349,25351,25348,25349,25350,25351,25352,25353,25356,25357,25353,25355,25357,25359,25354,25355,25358,25359,25356,25357,25358,25359,25361,25363,25365,25367,25364,25365,25366,25367,25368,25369,25372,25373,25369,25371,25373,25375,25372,25373,25374,25375,25376,25377,25380,25381,25377,25379,25381,25383,25380,25381,25382,25383,25384,25385,25386,25387,25384,25385,25388,25389,25385,25387,25389,25391,25388,25389,25390,25391,25392,25393,25396,25397,25393,25395,25397,25399,25400,25401,25402,25403,25400,25401,25404,25405,25401,25403,25405,25407,25400,25402,25404,25406,25404,25405,25406,25407,25408,25409,25412,25413,25409,25411,25413,25415,25408,25410,25412,25414,25412,25413,25414,25415,25416,25417,25418,25419,25417,25419,25421,25423,25416,25418,25420,25422,25420,25421,25422,25423,25424,25425,25426,25427,25425,25427,25429,25431,25424,25426,25428,25430,25432,25433,25434,25435,25433,25435,25437,25439,25434,25435,25438,25439,25432,25434,25436,25438,25440,25441,25442,25443,25442,25443,25446,25447,25440,25442,25444,25446,25444,25445,25446,25447,25448,25449,25450,25451,25449,25451,25453,25455,25448,25450,25452,25454,25456,25457,25458,25459,25456,25458,25460,25462,25460,25461,25462,25463,25464,25465,25468,25469,25465,25467,25469,25471,25464,25466,25468,25470,25472,25473,25476,25477,25473,25475,25477,25479,25481,25483,25485,25487,25480,25482,25484,25486,25488,25490,25492,25494,25498,25499,25502,25503,25500,25501,25502,25503,25508,25509,25510,25511,25512,25513,25516,25517,25516,25517,25518,25519,25524,25525,25526,25527,25529,25531,25533,25535,25530,25531,25534,25535,25532,25533,25534,25535,25538,25539,25542,25543,25540,25541,25542,25543,25544,25546,25548,25550,25548,25549,25550,25551,25556,25557,25558,25559,25560,25561,25564,25565,25561,25563,25565,25567,25564,25565,25566,25567,25568,25569,25572,25573,25572,25573,25574,25575,25576,25578,25580,25582,25580,25581,25582,25583,25588,25589,25590,25591,25593,25595,25597,25599,25594,25595,25598,25599,25596,25597,25598,25599,25601,25603,25605,25607,25602,25603,25606,25607,25604,25605,25606,25607,25608,25609,25610,25611,25609,25611,25613,25615,25610,25611,25614,25615,25612,25613,25614,25615,25617,25619,25621,25623,25618,25619,25622,25623,25625,25627,25629,25631,25626,25627,25630,25631,25624,25626,25628,25630,25628,25629,25630,25631,25633,25635,25637,25639,25634,25635,25638,25639,25632,25634,25636,25638,25636,25637,25638,25639,25640,25641,25642,25643,25642,25643,25646,25647,25644,25645,25646,25647,25650,25651,25654,25655,25657,25659,25661,25663,25658,25659,25662,25663,25660,25661,25662,25663,25665,25667,25669,25671,25666,25667,25670,25671,25668,25669,25670,25671,25673,25675,25677,25679,25672,25674,25676,25678,25676,25677,25678,25679,25684,25685,25686,25687,25688,25689,25692,25693,25689,25691,25693,25695,25692,25693,25694,25695,25696,25697,25700,25701,25697,25699,25701,25703,25700,25701,25702,25703,25705,25707,25709,25711,25704,25706,25708,25710,25708,25709,25710,25711,25716,25717,25718,25719,25720,25721,25724,25725,25721,25723,25725,25727,25722,25723,25726,25727,25724,25725,25726,25727,25728,25729,25732,25733,25729,25731,25733,25735,25730,25731,25734,25735,25732,25733,25734,25735,25737,25739,25741,25743,25736,25738,25740,25742,25740,25741,25742,25743,25748,25749,25750,25751,25752,25753,25756,25757,25753,25755,25757,25759,25760,25761,25764,25765,25761,25763,25765,25767,25768,25769,25772,25773,25769,25771,25773,25775,25768,25770,25772,25774,25776,25777,25780,25781,25784,25785,25786,25787,25784,25785,25788,25789,25785,25787,25789,25791,25792,25793,25794,25795,25793,25795,25797,25799,25801,25803,25805,25807,25802,25803,25806,25807,25809,25811,25813,25815,25816,25817,25820,25821,25817,25819,25821,25823,25820,25821,25822,25823,25825,25827,25829,25831,25828,25829,25830,25831,25833,25835,25837,25839,25834,25835,25838,25839,25841,25843,25845,25847,25848,25849,25850,25851,25848,25849,25852,25853,25849,25851,25853,25855,25850,25851,25854,25855,25856,25857,25858,25859,25857,25859,25861,25863,25864,25865,25866,25867,25865,25867,25869,25871,25866,25867,25870,25871,25872,25873,25874,25875,25873,25875,25877,25879,25874,25875,25878,25879,25880,25881,25882,25883,25880,25881,25884,25885,25881,25883,25885,25887,25882,25883,25886,25887,25884,25885,25886,25887,25888,25889,25890,25891,25889,25891,25893,25895,25892,25893,25894,25895,25897,25899,25901,25903,25898,25899,25902,25903,25905,25907,25909,25911,25906,25907,25910,25911,25912,25913,25914,25915,25913,25915,25917,25919,25914,25915,25918,25919,25912,25914,25916,25918,25920,25921,25922,25923,25922,25923,25926,25927,25928,25929,25930,25931,25929,25931,25933,25935,25936,25937,25938,25939,25937,25939,25941,25943,25944,25945,25946,25947,25944,25945,25948,25949,25945,25947,25949,25951,25944,25946,25948,25950,25952,25953,25954,25955,25952,25953,25956,25957,25960,25961,25962,25963,25961,25963,25965,25967,25968,25969,25970,25971,25969,25971,25973,25975,25976,25977,25978,25979,25976,25977,25980,25981,25977,25979,25981,25983,25978,25979,25982,25983,25976,25978,25980,25982,25984,25985,25986,25987,25984,25985,25988,25989,25986,25987,25990,25991,25992,25993,25994,25995,25993,25995,25997,25999,26000,26001,26002,26003,26001,26003,26005,26007,26008,26009,26010,26011,26008,26009,26012,26013,26009,26011,26013,26015,26008,26010,26012,26014,26016,26017,26020,26021,26024,26025,26028,26029,26025,26027,26029,26031,26032,26033,26034,26035,26032,26033,26036,26037,26033,26035,26037,26039,26040,26041,26042,26043,26040,26041,26044,26045,26041,26043,26045,26047,26040,26042,26044,26046,26044,26045,26046,26047,26048,26049,26052,26053,26049,26051,26053,26055,26048,26050,26052,26054,26056,26057,26058,26059,26056,26057,26060,26061,26064,26065,26068,26069,26073,26075,26077,26079,26076,26077,26078,26079,26081,26083,26085,26087,26088,26089,26090,26091,26089,26091,26093,26095,26096,26097,26098,26099,26097,26099,26101,26103,26104,26105,26106,26107,26105,26107,26109,26111,26106,26107,26110,26111,26108,26109,26110,26111,26113,26115,26117,26119,26114,26115,26118,26119,26116,26117,26118,26119,26120,26121,26122,26123,26121,26123,26125,26127,26122,26123,26126,26127,26124,26125,26126,26127,26128,26129,26130,26131,26129,26131,26133,26135,26130,26131,26134,26135,26136,26137,26138,26139,26137,26139,26141,26143,26138,26139,26142,26143,26136,26138,26140,26142,26140,26141,26142,26143,26145,26147,26149,26151,26146,26147,26150,26151,26144,26146,26148,26150,26148,26149,26150,26151,26152,26153,26154,26155,26154,26155,26158,26159,26156,26157,26158,26159,26160,26161,26162,26163,26162,26163,26166,26167,26168,26169,26170,26171,26169,26171,26173,26175,26170,26171,26174,26175,26172,26173,26174,26175,26176,26177,26178,26179,26177,26179,26181,26183,26178,26179,26182,26183,26180,26181,26182,26183,26184,26185,26186,26187,26185,26187,26189,26191,26184,26186,26188,26190,26188,26189,26190,26191,26192,26193,26194,26195,26196,26197,26198,26199,26200,26201,26204,26205,26201,26203,26205,26207,26204,26205,26206,26207,26208,26209,26212,26213,26209,26211,26213,26215,26212,26213,26214,26215,26217,26219,26221,26223,26216,26218,26220,26222,26220,26221,26222,26223,26228,26229,26230,26231,26232,26233,26236,26237,26233,26235,26237,26239,26234,26235,26238,26239,26236,26237,26238,26239,26240,26241,26244,26245,26241,26243,26245,26247,26242,26243,26246,26247,26244,26245,26246,26247,26249,26251,26253,26255,26248,26250,26252,26254,26252,26253,26254,26255,26260,26261,26262,26263,26264,26265,26268,26269,26265,26267,26269,26271,26272,26273,26276,26277,26273,26275,26277,26279,26280,26281,26284,26285,26281,26283,26285,26287,26280,26282,26284,26286,26288,26289,26292,26293,26296,26297,26298,26299,26296,26297,26300,26301,26297,26299,26301,26303,26304,26305,26306,26307,26304,26305,26308,26309,26305,26307,26309,26311,26312,26313,26314,26315,26313,26315,26317,26319,26320,26321,26322,26323,26321,26323,26325,26327,26329,26331,26333,26335,26330,26331,26334,26335,26328,26330,26332,26334,26338,26339,26342,26343,26345,26347,26349,26351,26353,26355,26357,26359,26360,26361,26362,26363,26360,26361,26364,26365,26362,26363,26366,26367,26364,26365,26366,26367,26368,26369,26370,26371,26372,26373,26374,26375,26378,26379,26382,26383,26386,26387,26390,26391,26392,26393,26394,26395,26394,26395,26398,26399,26400,26401,26402,26403,26408,26409,26410,26411,26408,26409,26412,26413,26416,26417,26418,26419,26424,26425,26426,26427,26424,26425,26428,26429,26426,26427,26430,26431,26432,26433,26434,26435,26440,26441,26442,26443,26440,26441,26444,26445,26448,26449,26450,26451,26448,26449,26452,26453,26456,26457,26458,26459,26456,26457,26460,26461,26460,26461,26462,26463,26464,26465,26468,26469,26472,26473,26474,26475,26480,26481,26482,26483,26488,26489,26490,26491,26490,26491,26494,26495,26488,26490,26492,26494,26496,26497,26498,26499,26498,26499,26502,26503,26496,26498,26500,26502,26504,26505,26506,26507,26504,26505,26508,26509,26506,26507,26510,26511,26504,26506,26508,26510,26512,26513,26514,26515,26512,26514,26516,26518,26520,26521,26522,26523,26522,26523,26526,26527,26520,26522,26524,26526,26524,26525,26526,26527,26528,26529,26530,26531,26530,26531,26534,26535,26528,26530,26532,26534,26532,26533,26534,26535,26536,26537,26540,26541,26538,26539,26542,26543,26536,26538,26540,26542,26544,26546,26548,26550,26552,26553,26554,26555,26554,26555,26558,26559,26552,26554,26556,26558,26560,26561,26562,26563,26562,26563,26566,26567,26560,26562,26564,26566,26568,26569,26570,26571,26570,26571,26574,26575,26572,26573,26574,26575,26578,26579,26582,26583,26584,26585,26586,26587,26585,26587,26589,26591,26586,26587,26590,26591,26592,26593,26594,26595,26593,26595,26597,26599,26594,26595,26598,26599,26600,26601,26602,26603,26602,26603,26606,26607,26604,26605,26606,26607,26610,26611,26614,26615,26616,26617,26618,26619,26617,26619,26621,26623,26618,26619,26622,26623,26616,26618,26620,26622,26624,26625,26626,26627,26625,26627,26629,26631,26626,26627,26630,26631,26624,26626,26628,26630,26632,26633,26634,26635,26634,26635,26638,26639,26636,26637,26638,26639,26642,26643,26646,26647,26648,26649,26650,26651,26649,26651,26653,26655,26656,26657,26658,26659,26657,26659,26661,26663,26664,26665,26666,26667,26665,26667,26669,26671,26668,26669,26670,26671,26673,26675,26677,26679,26680,26681,26682,26683,26680,26681,26684,26685,26681,26683,26685,26687,26688,26689,26690,26691,26688,26689,26692,26693,26696,26697,26698,26699,26696,26698,26700,26702,26704,26705,26706,26707,26712,26713,26714,26715,26713,26715,26717,26719,26714,26715,26718,26719,26720,26721,26722,26723,26722,26723,26726,26727,26728,26729,26730,26731,26728,26730,26732,26734,26736,26737,26738,26739,26744,26745,26746,26747,26744,26745,26748,26749,26745,26747,26749,26751,26744,26746,26748,26750,26752,26753,26754,26755,26752,26753,26756,26757,26760,26761,26762,26763,26760,26761,26764,26765,26760,26762,26764,26766,26768,26769,26770,26771,26768,26769,26772,26773,26768,26770,26772,26774,26776,26777,26780,26781,26777,26779,26781,26783,26778,26779,26782,26783,26776,26778,26780,26782,26784,26785,26788,26789,26786,26787,26790,26791,26792,26794,26796,26798,26800,26802,26804,26806,26808,26809,26812,26813,26808,26810,26812,26814,26812,26813,26814,26815,26816,26817,26820,26821,26816,26818,26820,26822,26824,26825,26826,26827,26824,26825,26828,26829,26832,26833,26836,26837,26840,26841,26844,26845,26841,26843,26845,26847,26844,26845,26846,26847,26848,26849,26852,26853,26849,26851,26853,26855,26856,26857,26858,26859,26856,26857,26860,26861,26864,26865,26868,26869,26872,26873,26876,26877,26873,26875,26877,26879,26872,26874,26876,26878,26876,26877,26878,26879,26880,26881,26884,26885,26881,26883,26885,26887,26880,26882,26884,26886,26888,26889,26890,26891,26888,26889,26892,26893,26896,26897,26900,26901,26905,26907,26909,26911,26908,26909,26910,26911,26913,26915,26917,26919,26920,26921,26922,26923,26921,26923,26925,26927,26929,26931,26933,26935,26937,26939,26941,26943,26938,26939,26942,26943,26940,26941,26942,26943,26945,26947,26949,26951,26948,26949,26950,26951,26952,26953,26956,26957,26953,26955,26957,26959,26961,26963,26965,26967,26968,26969,26970,26971,26970,26971,26974,26975,26976,26977,26978,26979,26984,26985,26988,26989}; + +//d_idx2 size 37800: +RAJA::Index_type rajaperf::apps::FEMSWEEP::g_idx2[37800] = +{56,58,60,62,8,9,12,13,24,25,26,27,48,50,52,54,208,209,212,213,16,17,18,19,26,27,30,31,40,42,44,46,232,233,236,237,488,489,490,491,32,34,36,38,480,481,482,483,60,61,62,63,72,74,76,78,40,41,44,45,472,473,474,475,52,53,54,55,112,114,116,118,224,225,228,229,464,465,466,467,58,59,62,63,120,122,124,126,216,217,220,221,64,66,68,70,88,90,92,94,120,121,124,125,72,73,74,75,80,82,84,86,112,113,116,117,432,433,434,435,92,93,94,95,1720,1722,1724,1726,104,105,108,109,424,425,426,427,1696,1698,1700,1702,96,97,100,101,1704,1706,1708,1710,152,153,156,157,121,123,125,127,104,105,106,107,1712,1714,1716,1718,144,145,148,149,113,115,117,119,400,401,402,403,124,125,126,127,136,137,140,141,392,393,394,395,128,129,132,133,152,154,156,158,184,185,188,189,217,219,221,223,136,137,138,139,144,146,148,150,176,177,180,181,225,227,229,231,368,369,370,371,156,157,158,159,1864,1866,1868,1870,168,169,172,173,360,361,362,363,1872,1874,1876,1878,160,161,164,165,1880,1882,1884,1886,3928,3929,3932,3933,185,187,189,191,168,169,170,171,1856,1858,1860,1862,3920,3921,3924,3925,177,179,181,183,336,337,338,339,188,189,190,191,3912,3913,3916,3917,249,251,253,255,328,329,330,331,3904,3905,3908,3909,193,195,197,199,218,219,222,223,3896,3897,3900,3901,201,203,205,207,248,249,250,251,210,211,214,215,3888,3889,3892,3893,240,241,242,243,216,218,220,222,232,233,234,235,224,225,226,227,248,249,252,253,233,235,237,239,280,281,282,283,240,241,244,245,272,273,274,275,248,250,252,254,3848,3849,3852,3853,264,265,266,267,3840,3841,3844,3845,256,257,258,259,282,283,286,287,328,330,332,334,3832,3833,3836,3837,265,267,269,271,312,313,314,315,274,275,278,279,3824,3825,3828,3829,304,305,306,307,490,491,494,495,280,282,284,286,296,297,298,299,466,467,470,471,368,370,372,374,288,289,290,291,458,459,462,463,376,378,380,382,312,313,316,317,297,299,301,303,584,585,586,587,498,499,502,503,304,305,308,309,576,577,578,579,312,314,316,318,3784,3785,3788,3789,600,601,602,603,320,322,324,326,3776,3777,3780,3781,592,593,594,595,332,333,334,335,378,379,382,383,344,346,348,350,3768,3769,3772,3773,936,937,938,939,370,371,374,375,336,338,340,342,3760,3761,3764,3765,362,363,366,367,1848,1850,1852,1854,3752,3753,3756,3757,344,345,346,347,354,355,358,359,1840,1842,1844,1846,3744,3745,3748,3749,928,929,930,931,364,365,366,367,410,411,414,415,1800,1802,1804,1806,377,379,381,383,952,953,954,955,402,403,406,407,1792,1794,1796,1798,369,371,373,375,394,395,398,399,376,377,378,379,386,387,390,391,944,945,946,947,396,397,398,399,442,443,446,447,408,410,412,414,457,459,461,463,984,985,986,987,434,435,438,439,400,402,404,406,465,467,469,471,426,427,430,431,1784,1786,1788,1790,408,409,410,411,418,419,422,423,1776,1778,1780,1782,960,961,962,963,428,429,430,431,1736,1738,1740,1742,441,443,445,447,1016,1017,1018,1019,1728,1730,1732,1734,433,435,437,439,473,475,477,479,440,441,442,443,449,451,453,455,992,993,994,995,476,477,478,479,456,457,460,461,505,507,509,511,536,537,538,539,468,469,470,471,497,499,501,503,544,545,546,547,474,475,478,479,489,491,493,495,481,483,485,487,488,489,492,493,504,505,506,507,496,497,498,499,506,507,510,511,568,569,570,571,512,513,514,515,536,538,540,542,568,569,572,573,520,521,522,523,528,530,532,534,560,561,564,565,720,721,722,723,540,541,542,543,1000,1002,1004,1006,552,553,556,557,744,745,746,747,992,994,996,998,544,545,548,549,984,986,988,990,584,585,588,589,569,571,573,575,552,553,554,555,976,978,980,982,624,625,628,629,561,563,565,567,736,737,738,739,572,573,574,575,632,633,636,637,728,729,730,731,576,577,580,581,584,586,588,590,600,601,604,605,632,633,634,635,944,946,948,950,592,593,596,597,624,625,626,627,936,938,940,942,3496,3497,3500,3501,601,603,605,607,616,617,618,619,3488,3489,3492,3493,608,609,610,611,634,635,638,639,616,618,620,622,3480,3481,3484,3485,664,665,666,667,626,627,630,631,912,914,916,918,3472,3473,3476,3477,656,657,658,659,904,906,908,910,633,635,637,639,648,649,650,651,640,641,642,643,730,731,734,735,648,650,652,654,664,665,668,669,696,697,698,699,738,739,742,743,880,882,884,886,656,657,660,661,688,689,690,691,872,874,876,878,3432,3433,3436,3437,665,667,669,671,680,681,682,683,3424,3425,3428,3429,672,673,674,675,698,699,702,703,680,682,684,686,3416,3417,3420,3421,12216,12217,12218,12219,690,691,694,695,848,850,852,854,3408,3409,3412,3413,12192,12193,12194,12195,762,763,766,767,840,842,844,846,697,699,701,703,12200,12201,12202,12203,706,707,710,711,12208,12209,12210,12211,732,733,734,735,714,715,718,719,760,762,764,766,12104,12105,12106,12107,724,725,726,727,752,754,756,758,12112,12113,12114,12115,744,746,748,750,728,729,732,733,736,738,740,742,746,747,750,751,792,794,796,798,760,761,762,763,784,786,788,790,752,753,754,755,776,778,780,782,760,761,764,765,12120,12121,12122,12123,768,770,772,774,12096,12097,12098,12099,796,797,798,799,778,779,782,783,824,826,828,830,840,841,844,845,12152,12153,12154,12155,788,789,790,791,816,818,820,822,12128,12129,12130,12131,1004,1005,1006,1007,808,810,812,814,792,793,796,797,980,981,982,983,800,802,804,806,880,881,884,885,972,973,974,975,810,811,814,815,1240,1242,1244,1246,888,889,892,893,824,825,826,827,1012,1013,1014,1015,1232,1234,1236,1238,816,817,818,819,1224,1226,1228,1230,824,825,828,829,12136,12137,12138,12139,1216,1218,1220,1222,832,833,836,837,12144,12145,12146,12147,892,893,894,895,1208,1210,1212,1214,856,857,860,861,841,843,845,847,12168,12169,12170,12171,884,885,886,887,848,849,852,853,12160,12161,12162,12163,876,877,878,879,856,858,860,862,3240,3241,3244,3245,12184,12185,12186,12187,868,869,870,871,1184,1186,1188,1190,3232,3233,3236,3237,12176,12177,12178,12179,924,925,926,927,890,891,894,895,1176,1178,1180,1182,3224,3225,3228,3229,873,875,877,879,916,917,918,919,882,883,886,887,3216,3217,3220,3221,908,909,910,911,888,890,892,894,900,901,902,903,1152,1154,1156,1158,956,957,958,959,970,971,974,975,1144,1146,1148,1150,920,921,924,925,905,907,909,911,948,949,950,951,978,979,982,983,912,913,916,917,940,941,942,943,920,922,924,926,3176,3177,3180,3181,932,933,934,935,1120,1122,1124,1126,3168,3169,3172,3173,954,955,958,959,1112,1114,1116,1118,3160,3161,3164,3165,937,939,941,943,946,947,950,951,3152,3153,3156,3157,986,987,990,991,952,954,956,958,962,963,966,967,1088,1090,1092,1094,1018,1019,1022,1023,1080,1082,1084,1086,985,987,989,991,968,969,970,971,1010,1011,1014,1015,1072,1074,1076,1078,977,979,981,983,988,989,990,991,1002,1003,1006,1007,994,995,998,999,1016,1018,1020,1022,1000,1001,1002,1003,1008,1010,1012,1014,1020,1021,1022,1023,1032,1034,1036,1038,1024,1026,1028,1030,1740,1741,1742,1743,1048,1050,1052,1054,1080,1081,1084,1085,1032,1033,1034,1035,1040,1042,1044,1046,1072,1073,1076,1077,1232,1233,1234,1235,1052,1053,1054,1055,1512,1514,1516,1518,1064,1065,1068,1069,1256,1257,1258,1259,1748,1749,1750,1751,1504,1506,1508,1510,1056,1057,1060,1061,1772,1773,1774,1775,1496,1498,1500,1502,1096,1097,1100,1101,1081,1083,1085,1087,1064,1065,1066,1067,1488,1490,1492,1494,1136,1137,1140,1141,1073,1075,1077,1079,1248,1249,1250,1251,1084,1085,1086,1087,1144,1145,1148,1149,1240,1241,1242,1243,1780,1781,1782,1783,1088,1089,1092,1093,1804,1805,1806,1807,1096,1098,1100,1102,1112,1113,1116,1117,1144,1145,1146,1147,1812,1813,1814,1815,1456,1458,1460,1462,1104,1105,1108,1109,1136,1137,1138,1139,1836,1837,1838,1839,1448,1450,1452,1454,2984,2985,2988,2989,1113,1115,1117,1119,1128,1129,1130,1131,1844,1845,1846,1847,2976,2977,2980,2981,1120,1121,1122,1123,1146,1147,1150,1151,1128,1130,1132,1134,2968,2969,2972,2973,1176,1177,1178,1179,1138,1139,1142,1143,1424,1426,1428,1430,2960,2961,2964,2965,1168,1169,1170,1171,1416,1418,1420,1422,1145,1147,1149,1151,1160,1161,1162,1163,1152,1153,1154,1155,1242,1243,1246,1247,1160,1162,1164,1166,1176,1177,1180,1181,1208,1209,1210,1211,1250,1251,1254,1255,1392,1394,1396,1398,1168,1169,1172,1173,1200,1201,1202,1203,1384,1386,1388,1390,2920,2921,2924,2925,1177,1179,1181,1183,1192,1193,1194,1195,2912,2913,2916,2917,1184,1185,1186,1187,1210,1211,1214,1215,1192,1194,1196,1198,2904,2905,2908,2909,13080,13081,13082,13083,1202,1203,1206,1207,1360,1362,1364,1366,2896,2897,2900,2901,13056,13057,13058,13059,1274,1275,1278,1279,1352,1354,1356,1358,1209,1211,1213,1215,13112,13113,13114,13115,1218,1219,1222,1223,13088,13089,13090,13091,1244,1245,1246,1247,1226,1227,1230,1231,1272,1274,1276,1278,13144,13145,13146,13147,1236,1237,1238,1239,1264,1266,1268,1270,13152,13153,13154,13155,1256,1258,1260,1262,1240,1241,1244,1245,1248,1250,1252,1254,1258,1259,1262,1263,1304,1306,1308,1310,1272,1273,1274,1275,1296,1298,1300,1302,1264,1265,1266,1267,1288,1290,1292,1294,1272,1273,1276,1277,13176,13177,13178,13179,1280,1282,1284,1286,13120,13121,13122,13123,1308,1309,1310,1311,1290,1291,1294,1295,1336,1338,1340,1342,1352,1353,1356,1357,13208,13209,13210,13211,1300,1301,1302,1303,1328,1330,1332,1334,13184,13185,13186,13187,1516,1517,1518,1519,1320,1322,1324,1326,1304,1305,1308,1309,1492,1493,1494,1495,1312,1314,1316,1318,1392,1393,1396,1397,1484,1485,1486,1487,1322,1323,1326,1327,25808,25810,25812,25814,1400,1401,1404,1405,1336,1337,1338,1339,1524,1525,1526,1527,25800,25802,25804,25806,1328,1329,1330,1331,25792,25794,25796,25798,1336,1337,1340,1341,13192,13193,13194,13195,25784,25786,25788,25790,1344,1345,1348,1349,13200,13201,13202,13203,1404,1405,1406,1407,25776,25778,25780,25782,1368,1369,1372,1373,1353,1355,1357,1359,13000,13001,13002,13003,1396,1397,1398,1399,1360,1361,1364,1365,13040,13041,13042,13043,1388,1389,1390,1391,1368,1370,1372,1374,2728,2729,2732,2733,13048,13049,13050,13051,1380,1381,1382,1383,25752,25754,25756,25758,2720,2721,2724,2725,12992,12993,12994,12995,1436,1437,1438,1439,1402,1403,1406,1407,25744,25746,25748,25750,2712,2713,2716,2717,1385,1387,1389,1391,1428,1429,1430,1431,1394,1395,1398,1399,2704,2705,2708,2709,1420,1421,1422,1423,1400,1402,1404,1406,1412,1413,1414,1415,25720,25722,25724,25726,1468,1469,1470,1471,1482,1483,1486,1487,25712,25714,25716,25718,1432,1433,1436,1437,1417,1419,1421,1423,1460,1461,1462,1463,1490,1491,1494,1495,1424,1425,1428,1429,1452,1453,1454,1455,1432,1434,1436,1438,2664,2665,2668,2669,1444,1445,1446,1447,25688,25690,25692,25694,2656,2657,2660,2661,2044,2045,2046,2047,1466,1467,1470,1471,25680,25682,25684,25686,2648,2649,2652,2653,1449,1451,1453,1455,2036,2037,2038,2039,1458,1459,1462,1463,2640,2641,2644,2645,2028,2029,2030,2031,1498,1499,1502,1503,1464,1466,1468,1470,2020,2021,2022,2023,1474,1475,1478,1479,25656,25658,25660,25662,1564,1565,1566,1567,1530,1531,1534,1535,25648,25650,25652,25654,1497,1499,1501,1503,1480,1481,1482,1483,1522,1523,1526,1527,25640,25642,25644,25646,1489,1491,1493,1495,1500,1501,1502,1503,1514,1515,1518,1519,1556,1557,1558,1559,1506,1507,1510,1511,1548,1549,1550,1551,1528,1530,1532,1534,1512,1513,1514,1515,1520,1522,1524,1526,1532,1533,1534,1535,25600,25602,25604,25606,1540,1541,1542,1543,25592,25594,25596,25598,1596,1597,1598,1599,25584,25586,25588,25590,1560,1561,1564,1565,1545,1547,1549,1551,1588,1589,1590,1591,1552,1553,1556,1557,1745,1747,1749,1751,1580,1581,1582,1583,1560,1562,1564,1566,2024,2025,2028,2029,1769,1771,1773,1775,1572,1573,1574,1575,25560,25562,25564,25566,2016,2017,2020,2021,1612,1613,1614,1615,1594,1595,1598,1599,25552,25554,25556,25558,2008,2009,2012,2013,1577,1579,1581,1583,1652,1653,1654,1655,1586,1587,1590,1591,2000,2001,2004,2005,1761,1763,1765,1767,1660,1661,1662,1663,1592,1594,1596,1598,1753,1755,1757,1759,1604,1605,1606,1607,25528,25530,25532,25534,1628,1629,1630,1631,25520,25522,25524,25526,1608,1609,1612,1613,1657,1659,1661,1663,1620,1621,1622,1623,25512,25514,25516,25518,1968,1969,1972,1973,1649,1651,1653,1655,1626,1627,1630,1631,25504,25506,25508,25510,1960,1961,1964,1965,1641,1643,1645,1647,25496,25498,25500,25502,1633,1635,1637,1639,1640,1641,1644,1645,1689,1691,1693,1695,1656,1657,1658,1659,1936,1937,1940,1941,1681,1683,1685,1687,1648,1649,1650,1651,1658,1659,1662,1663,1928,1929,1932,1933,1673,1675,1677,1679,1665,1667,1669,1671,1692,1693,1694,1695,1672,1673,1676,1677,1721,1723,1725,1727,1752,1753,1754,1755,1684,1685,1686,1687,1904,1905,1908,1909,1713,1715,1717,1719,1760,1761,1762,1763,1690,1691,1694,1695,1896,1897,1900,1901,1705,1707,1709,1711,1697,1699,1701,1703,1704,1705,1708,1709,1720,1721,1722,1723,1872,1873,1876,1877,1712,1713,1714,1715,1722,1723,1726,1727,1864,1865,1868,1869,1784,1785,1786,1787,1728,1729,1730,1731,1752,1754,1756,1758,1784,1785,1788,1789,1736,1737,1738,1739,1744,1746,1748,1750,1776,1777,1780,1781,1756,1757,1758,1759,1768,1769,1772,1773,1760,1761,1764,1765,1816,1817,1820,1821,1785,1787,1789,1791,1768,1769,1770,1771,1808,1809,1812,1813,1777,1779,1781,1783,1788,1789,1790,1791,1800,1801,1804,1805,1792,1793,1796,1797,1868,1869,1870,1871,1816,1818,1820,1822,1848,1849,1852,1853,1800,1801,1802,1803,1808,1810,1812,1814,1840,1841,1844,1845,1820,1821,1822,1823,2024,2026,2028,2030,1832,1833,1836,1837,1908,1909,1910,1911,2000,2002,2004,2006,1824,1825,1828,1829,1916,1917,1918,1919,1992,1994,1996,1998,2264,2265,2268,2269,1849,1851,1853,1855,1832,1833,1834,1835,2032,2034,2036,2038,2256,2257,2260,2261,1841,1843,1845,1847,1852,1853,1854,1855,2248,2249,2252,2253,1860,1861,1862,1863,2240,2241,2244,2245,1884,1885,1886,1887,1866,1867,1870,1871,1912,1914,1916,1918,2232,2233,2236,2237,1876,1877,1878,1879,1904,1906,1908,1910,1896,1898,1900,1902,1880,1881,1884,1885,1888,1890,1892,1894,2208,2209,2212,2213,1898,1899,1902,1903,1944,1946,1948,1950,2200,2201,2204,2205,1912,1913,1914,1915,1936,1938,1940,1942,1904,1905,1906,1907,1928,1930,1932,1934,1912,1913,1916,1917,1920,1922,1924,1926,2176,2177,2180,2181,1948,1949,1950,1951,1930,1931,1934,1935,1976,1978,1980,1982,2168,2169,2172,2173,1992,1993,1994,1995,1940,1941,1942,1943,1968,1970,1972,1974,2000,2001,2002,2003,1960,1962,1964,1966,1944,1945,1948,1949,1952,1954,1956,1958,2144,2145,2148,2149,1962,1963,1966,1967,25320,25322,25324,25326,2136,2137,2140,2141,1976,1977,1978,1979,25312,25314,25316,25318,1968,1969,1970,1971,25288,25290,25292,25294,1976,1977,1980,1981,2008,2009,2010,2011,25272,25274,25276,25278,2112,2113,2116,2117,1984,1985,1986,1987,2010,2011,2014,2015,25264,25266,25268,25270,2104,2105,2108,2109,1993,1995,1997,1999,2040,2041,2042,2043,2002,2003,2006,2007,2096,2097,2100,2101,2032,2033,2034,2035,2008,2010,2012,2014,2024,2025,2026,2027,25240,25242,25244,25246,2016,2017,2018,2019,25232,25234,25236,25238,2040,2041,2044,2045,2025,2027,2029,2031,2032,2033,2036,2037,2040,2042,2044,2046,2056,2057,2060,2061,25208,25210,25212,25214,2048,2049,2052,2053,2108,2109,2110,2111,25200,25202,25204,25206,2072,2073,2076,2077,2057,2059,2061,2063,2648,2649,2650,2651,2100,2101,2102,2103,2064,2065,2068,2069,2257,2259,2261,2263,2640,2641,2642,2643,2092,2093,2094,2095,2072,2074,2076,2078,2536,2537,2540,2541,2281,2283,2285,2287,2632,2633,2634,2635,2084,2085,2086,2087,25176,25178,25180,25182,2528,2529,2532,2533,2624,2625,2626,2627,2124,2125,2126,2127,2106,2107,2110,2111,25168,25170,25172,25174,2520,2521,2524,2525,2089,2091,2093,2095,2164,2165,2166,2167,2098,2099,2102,2103,2512,2513,2516,2517,2273,2275,2277,2279,2172,2173,2174,2175,2104,2106,2108,2110,2265,2267,2269,2271,2116,2117,2118,2119,25144,25146,25148,25150,2140,2141,2142,2143,25136,25138,25140,25142,2120,2121,2124,2125,2169,2171,2173,2175,2132,2133,2134,2135,25128,25130,25132,25134,2480,2481,2484,2485,2161,2163,2165,2167,2138,2139,2142,2143,25120,25122,25124,25126,2472,2473,2476,2477,2153,2155,2157,2159,25112,25114,25116,25118,2145,2147,2149,2151,2152,2153,2156,2157,2201,2203,2205,2207,2168,2169,2170,2171,2448,2449,2452,2453,2193,2195,2197,2199,2160,2161,2162,2163,2170,2171,2174,2175,2440,2441,2444,2445,2185,2187,2189,2191,2177,2179,2181,2183,2204,2205,2206,2207,2184,2185,2188,2189,2233,2235,2237,2239,2264,2265,2266,2267,2196,2197,2198,2199,2416,2417,2420,2421,2225,2227,2229,2231,2272,2273,2274,2275,2202,2203,2206,2207,2408,2409,2412,2413,2217,2219,2221,2223,2209,2211,2213,2215,2216,2217,2220,2221,3929,3931,3933,3935,2232,2233,2234,2235,2384,2385,2388,2389,3937,3939,3941,3943,2224,2225,2226,2227,2234,2235,2238,2239,2376,2377,2380,2381,3945,3947,3949,3951,2296,2297,2298,2299,3921,3923,3925,3927,2240,2241,2242,2243,2264,2266,2268,2270,2296,2297,2300,2301,3753,3755,3757,3759,2248,2249,2250,2251,2256,2258,2260,2262,2288,2289,2292,2293,3745,3747,3749,3751,2976,2977,2978,2979,2268,2269,2270,2271,2280,2281,2284,2285,2984,2985,2986,2987,2272,2273,2276,2277,2328,2329,2332,2333,2297,2299,2301,2303,2280,2281,2282,2283,2320,2321,2324,2325,2289,2291,2293,2295,2992,2993,2994,2995,2300,2301,2302,2303,2312,2313,2316,2317,3737,3739,3741,3743,3000,3001,3002,3003,2304,2305,2308,2309,3729,3731,3733,3735,2380,2381,2382,2383,2328,2330,2332,2334,2360,2361,2364,2365,3689,3691,3693,3695,2312,2313,2314,2315,2320,2322,2324,2326,2352,2353,2356,2357,3681,3683,3685,3687,3008,3009,3010,3011,2332,2333,2334,2335,2536,2538,2540,2542,2344,2345,2348,2349,3032,3033,3034,3035,2420,2421,2422,2423,2512,2514,2516,2518,2336,2337,2340,2341,2428,2429,2430,2431,2504,2506,2508,2510,4728,4729,4732,4733,2361,2363,2365,2367,2344,2345,2346,2347,2544,2546,2548,2550,4704,4705,4708,4709,2353,2355,2357,2359,3040,3041,3042,3043,2364,2365,2366,2367,4696,4697,4700,4701,3673,3675,3677,3679,3064,3065,3066,3067,2372,2373,2374,2375,4672,4673,4676,4677,3665,3667,3669,3671,2396,2397,2398,2399,2378,2379,2382,2383,2424,2426,2428,2430,4664,4665,4668,4669,4009,4011,4013,4015,2388,2389,2390,2391,2416,2418,2420,2422,3985,3987,3989,3991,2408,2410,2412,2414,2392,2393,2396,2397,3993,3995,3997,3999,2400,2402,2404,2406,4608,4609,4612,4613,4001,4003,4005,4007,2410,2411,2414,2415,2456,2458,2460,2462,4616,4617,4620,4621,2424,2425,2426,2427,2448,2450,2452,2454,2416,2417,2418,2419,2440,2442,2444,2446,2424,2425,2428,2429,2432,2434,2436,2438,4656,4657,4660,4661,2460,2461,2462,2463,2442,2443,2446,2447,2488,2490,2492,2494,4824,4825,4828,4829,2504,2505,2506,2507,2452,2453,2454,2455,2480,2482,2484,2486,2512,2513,2514,2515,2472,2474,2476,2478,2456,2457,2460,2461,2464,2466,2468,2470,4816,4817,4820,4821,2474,2475,2478,2479,24936,24938,24940,24942,4808,4809,4812,4813,2488,2489,2490,2491,24928,24930,24932,24934,2480,2481,2482,2483,24904,24906,24908,24910,2488,2489,2492,2493,2520,2521,2522,2523,24888,24890,24892,24894,4800,4801,4804,4805,2496,2497,2498,2499,2522,2523,2526,2527,24880,24882,24884,24886,4792,4793,4796,4797,2505,2507,2509,2511,2552,2553,2554,2555,2514,2515,2518,2519,4736,4737,4740,4741,2544,2545,2546,2547,2520,2522,2524,2526,2536,2537,2538,2539,24856,24858,24860,24862,2528,2529,2530,2531,24848,24850,24852,24854,2552,2553,2556,2557,2537,2539,2541,2543,2616,2617,2618,2619,2544,2545,2548,2549,2592,2593,2594,2595,2552,2554,2556,2558,4760,4761,4764,4765,2584,2585,2586,2587,24824,24826,24828,24830,4768,4769,4772,4773,2560,2561,2562,2563,2618,2619,2622,2623,24816,24818,24820,24822,7080,7081,7084,7085,2585,2587,2589,2591,2568,2569,2570,2571,2610,2611,2614,2615,24808,24810,24812,24814,7072,7073,7076,7077,2577,2579,2581,2583,2768,2769,2770,2771,2588,2589,2590,2591,2602,2603,2606,2607,7096,7097,7100,7101,3049,3051,3053,3055,2792,2793,2794,2795,2594,2595,2598,2599,7088,7089,7092,7093,3041,3043,3045,3047,2634,2635,2638,2639,2616,2618,2620,2622,3033,3035,3037,3039,2600,2601,2602,2603,2674,2675,2678,2679,2608,2610,2612,2614,3025,3027,3029,3031,2784,2785,2786,2787,2620,2621,2622,2623,2682,2683,2686,2687,24800,24802,24804,24806,2776,2777,2778,2779,2626,2627,2630,2631,24792,24794,24796,24798,2650,2651,2654,2655,24784,24786,24788,24790,2633,2635,2637,2639,2680,2681,2682,2683,2642,2643,2646,2647,2993,2995,2997,2999,2672,2673,2674,2675,2648,2650,2652,2654,2985,2987,2989,2991,2664,2665,2666,2667,24776,24778,24780,24782,2656,2657,2658,2659,24768,24770,24772,24774,2680,2681,2684,2685,2665,2667,2669,2671,2712,2713,2714,2715,2672,2673,2676,2677,2961,2963,2965,2967,2704,2705,2706,2707,2680,2682,2684,2686,2953,2955,2957,2959,2696,2697,2698,2699,24760,24762,24764,24766,2688,2689,2690,2691,2714,2715,2718,2719,24752,24754,24756,24758,2776,2777,2780,2781,2697,2699,2701,2703,2744,2745,2746,2747,2706,2707,2710,2711,2784,2785,2788,2789,2929,2931,2933,2935,2736,2737,2738,2739,2712,2714,2716,2718,2921,2923,2925,2927,2728,2729,2730,2731,24744,24746,24748,24750,2720,2721,2722,2723,24736,24738,24740,24742,2744,2745,2748,2749,2729,2731,2733,2735,12984,12985,12986,12987,2736,2737,2740,2741,2897,2899,2901,2903,12960,12961,12962,12963,2744,2746,2748,2750,2808,2809,2812,2813,2889,2891,2893,2895,12952,12953,12954,12955,24728,24730,24732,24734,2752,2753,2756,2757,12928,12929,12930,12931,2780,2781,2782,2783,24720,24722,24724,24726,2760,2761,2764,2765,2809,2811,2813,2815,12920,12921,12922,12923,2772,2773,2774,2775,24712,24714,24716,24718,7056,7057,7060,7061,2801,2803,2805,2807,12896,12897,12898,12899,2778,2779,2782,2783,24704,24706,24708,24710,7064,7065,7068,7069,2793,2795,2797,2799,24696,24698,24700,24702,2785,2787,2789,2791,2792,2793,2796,2797,2841,2843,2845,2847,2808,2809,2810,2811,7040,7041,7044,7045,2833,2835,2837,2839,2800,2801,2802,2803,2810,2811,2814,2815,7048,7049,7052,7053,2825,2827,2829,2831,12904,12905,12906,12907,2817,2819,2821,2823,12912,12913,12914,12915,2844,2845,2846,2847,2890,2891,2894,2895,2824,2825,2828,2829,2873,2875,2877,2879,12688,12689,12690,12691,2836,2837,2838,2839,7152,7153,7156,7157,2865,2867,2869,2871,12712,12713,12714,12715,3052,3053,3054,3055,2842,2843,2846,2847,7144,7145,7148,7149,2857,2859,2861,2863,3028,3029,3030,3031,2930,2931,2934,2935,2849,2851,2853,2855,3020,3021,3022,3023,2938,2939,2942,2943,2856,2857,2860,2861,3289,3291,3293,3295,2872,2873,2874,2875,3060,3061,3062,3063,7136,7137,7140,7141,3281,3283,3285,3287,2864,2865,2866,2867,2874,2875,2878,2879,7160,7161,7164,7165,3273,3275,3277,3279,12720,12721,12722,12723,2882,2883,2886,2887,3265,3267,3269,3271,12672,12673,12674,12675,2940,2941,2942,2943,2906,2907,2910,2911,2888,2890,2892,2894,3257,3259,3261,3263,12664,12665,12666,12667,2932,2933,2934,2935,2898,2899,2902,2903,12640,12641,12642,12643,2924,2925,2926,2927,2905,2907,2909,2911,12632,12633,12634,12635,2916,2917,2918,2919,3233,3235,3237,3239,12608,12609,12610,12611,2972,2973,2974,2975,2920,2922,2924,2926,2936,2937,2940,2941,3225,3227,3229,3231,2964,2965,2966,2967,2928,2929,2932,2933,2956,2957,2958,2959,2937,2939,2941,2943,2948,2949,2950,2951,3201,3203,3205,3207,3004,3005,3006,3007,2970,2971,2974,2975,2952,2954,2956,2958,3016,3017,3020,3021,3193,3195,3197,3199,2996,2997,2998,2999,2962,2963,2966,2967,3024,3025,3028,3029,2988,2989,2990,2991,2969,2971,2973,2975,2980,2981,2982,2983,3169,3171,3173,3175,2984,2986,2988,2990,3000,3001,3004,3005,3161,3163,3165,3167,2992,2993,2996,2997,3032,3033,3036,3037,3001,3003,3005,3007,3008,3009,3012,3013,3137,3139,3141,3143,3032,3034,3036,3038,3064,3065,3068,3069,3129,3131,3133,3135,3016,3017,3018,3019,3024,3026,3028,3030,3056,3057,3060,3061,3121,3123,3125,3127,3036,3037,3038,3039,3048,3049,3052,3053,3040,3041,3044,3045,7112,7113,7116,7117,3065,3067,3069,3071,3048,3049,3050,3051,7104,7105,7108,7109,3057,3059,3061,3063,3068,3069,3070,3071,7128,7129,7132,7133,3081,3083,3085,3087,7120,7121,7124,7125,3073,3075,3077,3079,3676,3677,3678,3679,3130,3131,3134,3135,7368,7369,7372,7373,3097,3099,3101,3103,3080,3081,3082,3083,3122,3123,3126,3127,7376,7377,7380,7381,3089,3091,3093,3095,3280,3281,3282,3283,3100,3101,3102,3103,3114,3115,3118,3119,7400,7401,7404,7405,3561,3563,3565,3567,3304,3305,3306,3307,3652,3653,3654,3655,3106,3107,3110,3111,7408,7409,7412,7413,3553,3555,3557,3559,3708,3709,3710,3711,3146,3147,3150,3151,3128,3130,3132,3134,3545,3547,3549,3551,3112,3113,3114,3115,3186,3187,3190,3191,3120,3122,3124,3126,3537,3539,3541,3543,3296,3297,3298,3299,3132,3133,3134,3135,3194,3195,3198,3199,3288,3289,3290,3291,3684,3685,3686,3687,3138,3139,3142,3143,3740,3741,3742,3743,3162,3163,3166,3167,3145,3147,3149,3151,3192,3193,3194,3195,3716,3717,3718,3719,3154,3155,3158,3159,3505,3507,3509,3511,3184,3185,3186,3187,3772,3773,3774,3775,3160,3162,3164,3166,3497,3499,3501,3503,3176,3177,3178,3179,3748,3749,3750,3751,3168,3169,3170,3171,3192,3193,3196,3197,3177,3179,3181,3183,3224,3225,3226,3227,3184,3185,3188,3189,3473,3475,3477,3479,3216,3217,3218,3219,3192,3194,3196,3198,3465,3467,3469,3471,3208,3209,3210,3211,3200,3201,3202,3203,3226,3227,3230,3231,3288,3289,3292,3293,3209,3211,3213,3215,3256,3257,3258,3259,3218,3219,3222,3223,3296,3297,3300,3301,3441,3443,3445,3447,3248,3249,3250,3251,3224,3226,3228,3230,3433,3435,3437,3439,3240,3241,3242,3243,3232,3233,3234,3235,3256,3257,3260,3261,3241,3243,3245,3247,12600,12601,12602,12603,3248,3249,3252,3253,3409,3411,3413,3415,12576,12577,12578,12579,3256,3258,3260,3262,3320,3321,3324,3325,3401,3403,3405,3407,12568,12569,12570,12571,3264,3265,3268,3269,12544,12545,12546,12547,3292,3293,3294,3295,3272,3273,3276,3277,3321,3323,3325,3327,12536,12537,12538,12539,3284,3285,3286,3287,7168,7169,7172,7173,3313,3315,3317,3319,12512,12513,12514,12515,3290,3291,3294,3295,7176,7177,7180,7181,3305,3307,3309,3311,3297,3299,3301,3303,3304,3305,3308,3309,3353,3355,3357,3359,3320,3321,3322,3323,7184,7185,7188,7189,3345,3347,3349,3351,3312,3313,3314,3315,3322,3323,3326,3327,7192,7193,7196,7197,3337,3339,3341,3343,12520,12521,12522,12523,3329,3331,3333,3335,12528,12529,12530,12531,3356,3357,3358,3359,3402,3403,3406,3407,3336,3337,3340,3341,3385,3387,3389,3391,12304,12305,12306,12307,3348,3349,3350,3351,7648,7649,7652,7653,3377,3379,3381,3383,12328,12329,12330,12331,3564,3565,3566,3567,3354,3355,3358,3359,7656,7657,7660,7661,3369,3371,3373,3375,3540,3541,3542,3543,3442,3443,3446,3447,3361,3363,3365,3367,3532,3533,3534,3535,3450,3451,3454,3455,3368,3369,3372,3373,3384,3385,3386,3387,3572,3573,3574,3575,7664,7665,7668,7669,3376,3377,3378,3379,3386,3387,3390,3391,7672,7673,7676,7677,12336,12337,12338,12339,3394,3395,3398,3399,12288,12289,12290,12291,3452,3453,3454,3455,3418,3419,3422,3423,3400,3402,3404,3406,12280,12281,12282,12283,3444,3445,3446,3447,3410,3411,3414,3415,12256,12257,12258,12259,3436,3437,3438,3439,3417,3419,3421,3423,12248,12249,12250,12251,3428,3429,3430,3431,12224,12225,12226,12227,3484,3485,3486,3487,3432,3434,3436,3438,3448,3449,3452,3453,3476,3477,3478,3479,3440,3441,3444,3445,3468,3469,3470,3471,3449,3451,3453,3455,3460,3461,3462,3463,3516,3517,3518,3519,3482,3483,3486,3487,3464,3466,3468,3470,3528,3529,3532,3533,3508,3509,3510,3511,3474,3475,3478,3479,3536,3537,3540,3541,3500,3501,3502,3503,3481,3483,3485,3487,3492,3493,3494,3495,3788,3789,3790,3791,3496,3498,3500,3502,3512,3513,3516,3517,3780,3781,3782,3783,3504,3505,3508,3509,3804,3805,3806,3807,3544,3545,3548,3549,3513,3515,3517,3519,3796,3797,3798,3799,3520,3521,3524,3525,3596,3597,3598,3599,3544,3546,3548,3550,3576,3577,3580,3581,3528,3529,3530,3531,3536,3538,3540,3542,3568,3569,3572,3573,3548,3549,3550,3551,3560,3561,3564,3565,3636,3637,3638,3639,3552,3553,3556,3557,3644,3645,3646,3647,7432,7433,7436,7437,3577,3579,3581,3583,3560,3561,3562,3563,7440,7441,7444,7445,3569,3571,3573,3575,3580,3581,3582,3583,7464,7465,7468,7469,3588,3589,3590,3591,7472,7473,7476,7477,3612,3613,3614,3615,3594,3595,3598,3599,3640,3642,3644,3646,4296,4297,4300,4301,3604,3605,3606,3607,3794,3795,3798,3799,3632,3634,3636,3638,4076,4077,4078,4079,3818,3819,3822,3823,3624,3626,3628,3630,3608,3609,3612,3613,4068,4069,4070,4071,3616,3618,3620,3622,4304,4305,4308,4309,4060,4061,4062,4063,3626,3627,3630,3631,3656,3658,3660,3662,4328,4329,4332,4333,3640,3641,3642,3643,4052,4053,4054,4055,3810,3811,3814,3815,3696,3698,3700,3702,3632,3633,3634,3635,3802,3803,3806,3807,3704,3706,3708,3710,3640,3641,3644,3645,3648,3650,3652,3654,4336,4337,4340,4341,3660,3661,3662,3663,3706,3707,3710,3711,3672,3674,3676,3678,4360,4361,4364,4365,4020,4021,4022,4023,3698,3699,3702,3703,3664,3666,3668,3670,4368,4369,4372,4373,4012,4013,4014,4015,3690,3691,3694,3695,4392,4393,4396,4397,3672,3673,3674,3675,3682,3683,3686,3687,4400,4401,4404,4405,3692,3693,3694,3695,3738,3739,3742,3743,3705,3707,3709,3711,3988,3989,3990,3991,3730,3731,3734,3735,3697,3699,3701,3703,3980,3981,3982,3983,3722,3723,3726,3727,3704,3705,3706,3707,3714,3715,3718,3719,3724,3725,3726,3727,3770,3771,3774,3775,3736,3738,3740,3742,3801,3803,3805,3807,3956,3957,3958,3959,3762,3763,3766,3767,3728,3730,3732,3734,3809,3811,3813,3815,3948,3949,3950,3951,3754,3755,3758,3759,3736,3737,3738,3739,3746,3747,3750,3751,3756,3757,3758,3759,3769,3771,3773,3775,3924,3925,3926,3927,3761,3763,3765,3767,3916,3917,3918,3919,3833,3835,3837,3839,3768,3769,3770,3771,3777,3779,3781,3783,3836,3837,3838,3839,3800,3801,3804,3805,3785,3787,3789,3791,3828,3829,3830,3831,3792,3793,3796,3797,3820,3821,3822,3823,3800,3802,3804,3806,3812,3813,3814,3815,3868,3869,3870,3871,3834,3835,3838,3839,3817,3819,3821,3823,3860,3861,3862,3863,3826,3827,3830,3831,3852,3853,3854,3855,3832,3834,3836,3838,3844,3845,3846,3847,3900,3901,3902,3903,3912,3914,3916,3918,3864,3865,3868,3869,3849,3851,3853,3855,3892,3893,3894,3895,3856,3857,3860,3861,3884,3885,3886,3887,3864,3866,3868,3870,4072,4073,4076,4077,3876,3877,3878,3879,3952,3954,3956,3958,4048,4049,4052,4053,3898,3899,3902,3903,3960,3962,3964,3966,4040,4041,4044,4045,3881,3883,3885,3887,3890,3891,3894,3895,4080,4081,4084,4085,3896,3898,3900,3902,3904,3906,3908,3910,3928,3930,3932,3934,3960,3961,3964,3965,3912,3913,3914,3915,3920,3922,3924,3926,3952,3953,3956,3957,3932,3933,3934,3935,3944,3945,3948,3949,3936,3937,3940,3941,3992,3993,3996,3997,3961,3963,3965,3967,3944,3945,3946,3947,3984,3985,3988,3989,3953,3955,3957,3959,3964,3965,3966,3967,3976,3977,3980,3981,3968,3969,3972,3973,3992,3994,3996,3998,4024,4025,4028,4029,4041,4043,4045,4047,3976,3977,3978,3979,3984,3986,3988,3990,4016,4017,4020,4021,4049,4051,4053,4055,3996,3997,3998,3999,4008,4009,4012,4013,4000,4001,4004,4005,4600,4601,4604,4605,4025,4027,4029,4031,4008,4009,4010,4011,4592,4593,4596,4597,4017,4019,4021,4023,4028,4029,4030,4031,4584,4585,4588,4589,4057,4059,4061,4063,4576,4577,4580,4581,4033,4035,4037,4039,4042,4043,4046,4047,4120,4121,4124,4125,4089,4091,4093,4095,4056,4057,4058,4059,4081,4083,4085,4087,4048,4049,4050,4051,4056,4057,4060,4061,4073,4075,4077,4079,4112,4113,4116,4117,4065,4067,4069,4071,4092,4093,4094,4095,4074,4075,4078,4079,4104,4105,4108,4109,4084,4085,4086,4087,4088,4089,4092,4093,4096,4097,4100,4101,4120,4122,4124,4126,4152,4153,4156,4157,4104,4105,4106,4107,4112,4114,4116,4118,4144,4145,4148,4149,4304,4305,4306,4307,4124,4125,4126,4127,4584,4586,4588,4590,4136,4137,4140,4141,4328,4329,4330,4331,4576,4578,4580,4582,4128,4129,4132,4133,4568,4570,4572,4574,4168,4169,4172,4173,4153,4155,4157,4159,4136,4137,4138,4139,4560,4562,4564,4566,4208,4209,4212,4213,4145,4147,4149,4151,4320,4321,4322,4323,4156,4157,4158,4159,4216,4217,4220,4221,4312,4313,4314,4315,4160,4161,4164,4165,4168,4170,4172,4174,4184,4185,4188,4189,4216,4217,4218,4219,4528,4530,4532,4534,4176,4177,4180,4181,4208,4209,4210,4211,4520,4522,4524,4526,5656,5657,5660,5661,4185,4187,4189,4191,4200,4201,4202,4203,5632,5633,5636,5637,4192,4193,4194,4195,4218,4219,4222,4223,4200,4202,4204,4206,5640,5641,5644,5645,4248,4249,4250,4251,4210,4211,4214,4215,4496,4498,4500,4502,5648,5649,5652,5653,4240,4241,4242,4243,4488,4490,4492,4494,4217,4219,4221,4223,4232,4233,4234,4235,4224,4225,4226,4227,4314,4315,4318,4319,4232,4234,4236,4238,4248,4249,4252,4253,4280,4281,4282,4283,4322,4323,4326,4327,4464,4466,4468,4470,4240,4241,4244,4245,4272,4273,4274,4275,4456,4458,4460,4462,5744,5745,5748,5749,4249,4251,4253,4255,4264,4265,4266,4267,5768,5769,5772,5773,4256,4257,4258,4259,4282,4283,4286,4287,4264,4266,4268,4270,5776,5777,5780,5781,7512,7513,7514,7515,4274,4275,4278,4279,4432,4434,4436,4438,5728,5729,5732,5733,7504,7505,7506,7507,4346,4347,4350,4351,4424,4426,4428,4430,4281,4283,4285,4287,7496,7497,7498,7499,4290,4291,4294,4295,7488,7489,7490,7491,4316,4317,4318,4319,4298,4299,4302,4303,4344,4346,4348,4350,7480,7481,7482,7483,4308,4309,4310,4311,4336,4338,4340,4342,7472,7473,7474,7475,4328,4330,4332,4334,4312,4313,4316,4317,4320,4322,4324,4326,4330,4331,4334,4335,4376,4378,4380,4382,4344,4345,4346,4347,4368,4370,4372,4374,4336,4337,4338,4339,4360,4362,4364,4366,4344,4345,4348,4349,7432,7433,7434,7435,4352,4354,4356,4358,7424,7425,7426,7427,4380,4381,4382,4383,4362,4363,4366,4367,4408,4410,4412,4414,4424,4425,4428,4429,7416,7417,7418,7419,4372,4373,4374,4375,4400,4402,4404,4406,7408,7409,7410,7411,4588,4589,4590,4591,4392,4394,4396,4398,4376,4377,4380,4381,4564,4565,4566,4567,4384,4386,4388,4390,4464,4465,4468,4469,4556,4557,4558,4559,4394,4395,4398,4399,4680,4682,4684,4686,4472,4473,4476,4477,4408,4409,4410,4411,4596,4597,4598,4599,4672,4674,4676,4678,4400,4401,4402,4403,4696,4698,4700,4702,4408,4409,4412,4413,7368,7369,7370,7371,4688,4690,4692,4694,4416,4417,4420,4421,7360,7361,7362,7363,4476,4477,4478,4479,5032,5034,5036,5038,4440,4441,4444,4445,4425,4427,4429,4431,7352,7353,7354,7355,4468,4469,4470,4471,4432,4433,4436,4437,7344,7345,7346,7347,4460,4461,4462,4463,4440,4442,4444,4446,5720,5721,5724,5725,7336,7337,7338,7339,4452,4453,4454,4455,5024,5026,5028,5030,5712,5713,5716,5717,7328,7329,7330,7331,4508,4509,4510,4511,4474,4475,4478,4479,5048,5050,5052,5054,5704,5705,5708,5709,4457,4459,4461,4463,4500,4501,4502,4503,4466,4467,4470,4471,5696,5697,5700,5701,4492,4493,4494,4495,4472,4474,4476,4478,4484,4485,4486,4487,5040,5042,5044,5046,4540,4541,4542,4543,4554,4555,4558,4559,5080,5082,5084,5086,4504,4505,4508,4509,4489,4491,4493,4495,4532,4533,4534,4535,4562,4563,4566,4567,4496,4497,4500,4501,4524,4525,4526,4527,4504,4506,4508,4510,5688,5689,5692,5693,4516,4517,4518,4519,5056,5058,5060,5062,5680,5681,5684,5685,4538,4539,4542,4543,5112,5114,5116,5118,5672,5673,5676,5677,4521,4523,4525,4527,4530,4531,4534,4535,5664,5665,5668,5669,4570,4571,4574,4575,4536,4538,4540,4542,4546,4547,4550,4551,5088,5090,5092,5094,4602,4603,4606,4607,4632,4634,4636,4638,4569,4571,4573,4575,4552,4553,4554,4555,4594,4595,4598,4599,4640,4642,4644,4646,4561,4563,4565,4567,4572,4573,4574,4575,4586,4587,4590,4591,4578,4579,4582,4583,4600,4602,4604,4606,4584,4585,4586,4587,4592,4594,4596,4598,4604,4605,4606,4607,4664,4666,4668,4670,4608,4610,4612,4614,4616,4618,4620,4622,4632,4633,4636,4637,4664,4665,4666,4667,4816,4818,4820,4822,4624,4625,4628,4629,4656,4657,4658,4659,4840,4842,4844,4846,5096,5097,5100,5101,4633,4635,4637,4639,4648,4649,4650,4651,5088,5089,5092,5093,4640,4641,4642,4643,4666,4667,4670,4671,4648,4650,4652,4654,5080,5081,5084,5085,4680,4681,4682,4683,4658,4659,4662,4663,4832,4834,4836,4838,5072,5073,5076,5077,4720,4721,4722,4723,4824,4826,4828,4830,4665,4667,4669,4671,4728,4729,4730,4731,4672,4673,4674,4675,4728,4730,4732,4734,4680,4681,4684,4685,4696,4697,4698,4699,4720,4722,4724,4726,5040,5041,5044,5045,4688,4689,4690,4691,4698,4699,4702,4703,4712,4714,4716,4718,5032,5033,5036,5037,6864,6865,6866,6867,4704,4706,4708,4710,7120,7121,7122,7123,4732,4733,4734,4735,4760,4762,4764,4766,4712,4713,4716,4717,7112,7113,7114,7115,4724,4725,4726,4727,4752,4754,4756,4758,5008,5009,5012,5013,6888,6889,6890,6891,4730,4731,4734,4735,4744,4746,4748,4750,5000,5001,5004,5005,4736,4738,4740,4742,4828,4829,4830,4831,4792,4794,4796,4798,4744,4745,4748,4749,4760,4761,4762,4763,4836,4837,4838,4839,4784,4786,4788,4790,4976,4977,4980,4981,4752,4753,4754,4755,4762,4763,4766,4767,4776,4778,4780,4782,4968,4969,4972,4973,6928,6929,6930,6931,4768,4770,4772,4774,7088,7089,7090,7091,4796,4797,4798,4799,21312,21314,21316,21318,4776,4777,4780,4781,7080,7081,7082,7083,4788,4789,4790,4791,21320,21322,21324,21326,4944,4945,4948,4949,6952,6953,6954,6955,4860,4861,4862,4863,4794,4795,4798,4799,22912,22914,22916,22918,4936,4937,4940,4941,4804,4805,4806,4807,22976,22978,22980,22982,4812,4813,4814,4815,22968,22970,22972,22974,4856,4857,4860,4861,4825,4827,4829,4831,22960,22962,22964,22966,4848,4849,4852,4853,4817,4819,4821,4823,4840,4841,4844,4845,4824,4825,4826,4827,4832,4833,4836,4837,4844,4845,4846,4847,4856,4858,4860,4862,4888,4889,4892,4893,4848,4850,4852,4854,4880,4881,4884,4885,22952,22954,22956,22958,4872,4873,4876,4877,4856,4857,4858,4859,22936,22938,22940,22942,4864,4865,4868,4869,4876,4877,4878,4879,22928,22930,22932,22934,4920,4921,4924,4925,4889,4891,4893,4895,4936,4937,4938,4939,22944,22946,22948,22950,4912,4913,4916,4917,4881,4883,4885,4887,4904,4905,4908,4909,5097,5099,5101,5103,4888,4889,4890,4891,4896,4897,4900,4901,5073,5075,5077,5079,4976,4977,4978,4979,4908,4909,4910,4911,4920,4922,4924,4926,5360,5361,5364,5365,5065,5067,5069,5071,4984,4985,4986,4987,4912,4914,4916,4918,5352,5353,5356,5357,5105,5107,5109,5111,22688,22690,22692,22694,5328,5329,5332,5333,4920,4921,4922,4923,22696,22698,22700,22702,5312,5313,5316,5317,4928,4929,4930,4931,4938,4939,4942,4943,22704,22706,22708,22710,5304,5305,5308,5309,4985,4987,4989,4991,4952,4953,4954,4955,22920,22922,22924,22926,4977,4979,4981,4983,4944,4945,4946,4947,21448,21450,21452,21454,4952,4953,4956,4957,4969,4971,4973,4975,6944,6945,6946,6947,21456,21458,21460,21462,5280,5281,5284,5285,4961,4963,4965,4967,6616,6617,6618,6619,4988,4989,4990,4991,4970,4971,4974,4975,5272,5273,5276,5277,5017,5019,5021,5023,6624,6625,6626,6627,4980,4981,4982,4983,5009,5011,5013,5015,6936,6937,6938,6939,4984,4985,4988,4989,5001,5003,5005,5007,5248,5249,5252,5253,4993,4995,4997,4999,5068,5069,5070,5071,5002,5003,5006,5007,5240,5241,5244,5245,5049,5051,5053,5055,5016,5017,5018,5019,5076,5077,5078,5079,5041,5043,5045,5047,5008,5009,5010,5011,5016,5017,5020,5021,5033,5035,5037,5039,6880,6881,6882,6883,5216,5217,5220,5221,5025,5027,5029,5031,6680,6681,6682,6683,5052,5053,5054,5055,5034,5035,5038,5039,5208,5209,5212,5213,6688,6689,6690,6691,5044,5045,5046,5047,6872,6873,6874,6875,5084,5085,5086,5087,5048,5049,5052,5053,5060,5061,5062,5063,5184,5185,5188,5189,5116,5117,5118,5119,5082,5083,5086,5087,5064,5066,5068,5070,5176,5177,5180,5181,5108,5109,5110,5111,5074,5075,5078,5079,5168,5169,5172,5173,5100,5101,5102,5103,5081,5083,5085,5087,5092,5093,5094,5095,5096,5098,5100,5102,5112,5113,5116,5117,5104,5105,5108,5109,5128,5129,5132,5133,5113,5115,5117,5119,5120,5121,5124,5125,5128,5130,5132,5134,5144,5145,5148,5149,5673,5675,5677,5679,5176,5177,5178,5179,5352,5354,5356,5358,5136,5137,5140,5141,5168,5169,5170,5171,5344,5346,5348,5350,5488,5489,5492,5493,5145,5147,5149,5151,5160,5161,5162,5163,5496,5497,5500,5501,5513,5515,5517,5519,5152,5153,5154,5155,5178,5179,5182,5183,5160,5162,5164,5166,5472,5473,5476,5477,5521,5523,5525,5527,5192,5193,5194,5195,5170,5171,5174,5175,5368,5370,5372,5374,5480,5481,5484,5485,5232,5233,5234,5235,5360,5362,5364,5366,5177,5179,5181,5183,5240,5241,5242,5243,5681,5683,5685,5687,5184,5185,5186,5187,5240,5242,5244,5246,5192,5193,5196,5197,5705,5707,5709,5711,5208,5209,5210,5211,5232,5234,5236,5238,5464,5465,5468,5469,5865,5867,5869,5871,5200,5201,5202,5203,5210,5211,5214,5215,5224,5226,5228,5230,5456,5457,5460,5461,5873,5875,5877,5879,6352,6353,6354,6355,5216,5218,5220,5222,5713,5715,5717,5719,6696,6697,6698,6699,5244,5245,5246,5247,5272,5274,5276,5278,5224,5225,5228,5229,6672,6673,6674,6675,5236,5237,5238,5239,5264,5266,5268,5270,5448,5449,5452,5453,6376,6377,6378,6379,5242,5243,5246,5247,5256,5258,5260,5262,5440,5441,5444,5445,5248,5250,5252,5254,5364,5365,5366,5367,5304,5306,5308,5310,5256,5257,5260,5261,5272,5273,5274,5275,5372,5373,5374,5375,5296,5298,5300,5302,5432,5433,5436,5437,5264,5265,5266,5267,5274,5275,5278,5279,5288,5290,5292,5294,5424,5425,5428,5429,6416,6417,6418,6419,5280,5282,5284,5286,6632,6633,6634,6635,5308,5309,5310,5311,21696,21698,21700,21702,5288,5289,5292,5293,6608,6609,6610,6611,5300,5301,5302,5303,21704,21706,21708,21710,5416,5417,5420,5421,6440,6441,6442,6443,5324,5325,5326,5327,5306,5307,5310,5311,22624,22626,22628,22630,5408,5409,5412,5413,5316,5317,5318,5319,22720,22722,22724,22726,5332,5333,5334,5335,22672,22674,22676,22678,5320,5321,5324,5325,5361,5363,5365,5367,5340,5341,5342,5343,22664,22666,22668,22670,5400,5401,5404,5405,5369,5371,5373,5375,22680,22682,22684,22686,5336,5337,5340,5341,5353,5355,5357,5359,22656,22658,22660,22662,5392,5393,5396,5397,5345,5347,5349,5351,5354,5355,5358,5359,5384,5385,5388,5389,5368,5369,5370,5371,5360,5361,5362,5363,5368,5369,5372,5373,5376,5377,5380,5381,5388,5389,5390,5391,5400,5402,5404,5406,5481,5483,5485,5487,5432,5433,5434,5435,5392,5394,5396,5398,5489,5491,5493,5495,22648,22650,22652,22654,5400,5401,5402,5403,22640,22642,22644,22646,5408,5409,5410,5411,22632,22634,22636,22638,5433,5435,5437,5439,5416,5417,5418,5419,21792,21794,21796,21798,5425,5427,5429,5431,6432,6433,6434,6435,5436,5437,5438,5439,5449,5451,5453,5455,6424,6425,6426,6427,5441,5443,5445,5447,5484,5485,5486,5487,5465,5467,5469,5471,5448,5449,5450,5451,5457,5459,5461,5463,6368,6369,6370,6371,5468,5469,5470,5471,5881,5883,5885,5887,6360,6361,6362,6363,5476,5477,5478,5479,5857,5859,5861,5863,5500,5501,5502,5503,5480,5482,5484,5486,5529,5531,5533,5535,5492,5493,5494,5495,5497,5499,5501,5503,5505,5507,5509,5511,5514,5515,5518,5519,5561,5563,5565,5567,5528,5529,5530,5531,5674,5675,5678,5679,5553,5555,5557,5559,5520,5521,5522,5523,5682,5683,5686,5687,5528,5529,5532,5533,5545,5547,5549,5551,5864,5865,5866,5867,5537,5539,5541,5543,5856,5857,5858,5859,5564,5565,5566,5567,5546,5547,5550,5551,5585,5587,5589,5591,5848,5849,5850,5851,5556,5557,5558,5559,5690,5691,5694,5695,5593,5595,5597,5599,5840,5841,5842,5843,5666,5667,5670,5671,5560,5561,5564,5565,5577,5579,5581,5583,5569,5571,5573,5575,5578,5579,5582,5583,5617,5619,5621,5623,5584,5585,5586,5587,5658,5659,5662,5663,5625,5627,5629,5631,5592,5593,5594,5595,5594,5595,5598,5599,5609,5611,5613,5615,5808,5809,5810,5811,5650,5651,5654,5655,5601,5603,5605,5607,5752,5753,5754,5755,5628,5629,5630,5631,5642,5643,5646,5647,5608,5609,5612,5613,5760,5761,5762,5763,5620,5621,5622,5623,5800,5801,5802,5803,5626,5627,5630,5631,5634,5635,5638,5639,5656,5658,5660,5662,5640,5641,5642,5643,5648,5650,5652,5654,5768,5769,5770,5771,5660,5661,5662,5663,5688,5690,5692,5694,5744,5745,5746,5747,5664,5666,5668,5670,5672,5674,5676,5678,5688,5689,5690,5691,5680,5681,5682,5683,5689,5691,5693,5695,5704,5705,5706,5707,5696,5697,5698,5699,5704,5706,5708,5710,5840,5841,5844,5845,5745,5747,5749,5751,5720,5721,5722,5723,5864,5865,5868,5869,5712,5713,5714,5715,5872,5873,5876,5877,5721,5723,5725,5727,6056,6057,6058,6059,5832,5833,5836,5837,5729,5731,5733,5735,6048,6049,6050,6051,5748,5749,5750,5751,5736,5737,5740,5741,5777,5779,5781,5783,6040,6041,6042,6043,5756,5757,5758,5759,5832,5834,5836,5838,5816,5817,5820,5821,5785,5787,5789,5791,5960,5961,5962,5963,5752,5753,5756,5757,5769,5771,5773,5775,5840,5842,5844,5846,5808,5809,5812,5813,5761,5763,5765,5767,5770,5771,5774,5775,5800,5801,5804,5805,5784,5785,5786,5787,5776,5777,5778,5779,5784,5785,5788,5789,6016,6017,6018,6019,5792,5793,5796,5797,6008,6009,6010,6011,5804,5805,5806,5807,5816,5818,5820,5822,6000,6001,6002,6003,5808,5810,5812,5814,5848,5850,5852,5854,5816,5817,5818,5819,5824,5826,5828,5830,5952,5953,5954,5955,5852,5853,5854,5855,5834,5835,5838,5839,5880,5882,5884,5886,5944,5945,5946,5947,5844,5845,5846,5847,5872,5874,5876,5878,5936,5937,5938,5939,5864,5866,5868,5870,5848,5849,5852,5853,5856,5858,5860,5862,5866,5867,5870,5871,5880,5881,5882,5883,5872,5873,5874,5875,5880,5881,5884,5885,5896,5897,5898,5899,5888,5889,5890,5891,5898,5899,5902,5903,6360,6362,6364,6366,5945,5947,5949,5951,5912,5913,5914,5915,6058,6059,6062,6063,6352,6354,6356,6358,5937,5939,5941,5943,5904,5905,5906,5907,6066,6067,6070,6071,6344,6346,6348,6350,5912,5913,5916,5917,5929,5931,5933,5935,6248,6249,6250,6251,6336,6338,6340,6342,5921,5923,5925,5927,6240,6241,6242,6243,5948,5949,5950,5951,5930,5931,5934,5935,5969,5971,5973,5975,6232,6233,6234,6235,5940,5941,5942,5943,6074,6075,6078,6079,5977,5979,5981,5983,6224,6225,6226,6227,6050,6051,6054,6055,5944,5945,5948,5949,5961,5963,5965,5967,5953,5955,5957,5959,5962,5963,5966,5967,6001,6003,6005,6007,5968,5969,5970,5971,6042,6043,6046,6047,6009,6011,6013,6015,5976,5977,5978,5979,5978,5979,5982,5983,5993,5995,5997,5999,6192,6193,6194,6195,6034,6035,6038,6039,5985,5987,5989,5991,6136,6137,6138,6139,6012,6013,6014,6015,6026,6027,6030,6031,5992,5993,5996,5997,6144,6145,6146,6147,6004,6005,6006,6007,6184,6185,6186,6187,6010,6011,6014,6015,6018,6019,6022,6023,7514,7515,7518,7519,6040,6042,6044,6046,6024,6025,6026,6027,7522,7523,7526,7527,6032,6034,6036,6038,6152,6153,6154,6155,6044,6045,6046,6047,7530,7531,7534,7535,6072,6074,6076,6078,6128,6129,6130,6131,7506,7507,7510,7511,6048,6050,6052,6054,7338,7339,7342,7343,6056,6058,6060,6062,6072,6073,6074,6075,7330,7331,7334,7335,6696,6698,6700,6702,6064,6065,6066,6067,7322,7323,7326,7327,6704,6706,6708,6710,6073,6075,6077,6079,6088,6089,6090,6091,7314,7315,7318,7319,6080,6081,6082,6083,7274,7275,7278,7279,6088,6090,6092,6094,6224,6225,6228,6229,6129,6131,6133,6135,6104,6105,6106,6107,7266,7267,7270,7271,6744,6746,6748,6750,6248,6249,6252,6253,6096,6097,6098,6099,7258,7259,7262,7263,6752,6754,6756,6758,6256,6257,6260,6261,6105,6107,6109,6111,9256,9257,9258,9259,7250,7251,7254,7255,6216,6217,6220,6221,6113,6115,6117,6119,9248,9249,9250,9251,6132,6133,6134,6135,7594,7595,7598,7599,6120,6121,6124,6125,6161,6163,6165,6167,9240,9241,9242,9243,6140,6141,6142,6143,6216,6218,6220,6222,6200,6201,6204,6205,6169,6171,6173,6175,9160,9161,9162,9163,7570,7571,7574,7575,6136,6137,6140,6141,6153,6155,6157,6159,6224,6226,6228,6230,6192,6193,6196,6197,6145,6147,6149,6151,6154,6155,6158,6159,6184,6185,6188,6189,6168,6169,6170,6171,7578,7579,7582,7583,6160,6161,6162,6163,7586,7587,7590,7591,6168,6169,6172,6173,9216,9217,9218,9219,6176,6177,6180,6181,9208,9209,9210,9211,6188,6189,6190,6191,6200,6202,6204,6206,9200,9201,9202,9203,6192,6194,6196,6198,6232,6234,6236,6238,6200,6201,6202,6203,6208,6210,6212,6214,9152,9153,9154,9155,6236,6237,6238,6239,6218,6219,6222,6223,6264,6266,6268,6270,9144,9145,9146,9147,6228,6229,6230,6231,6256,6258,6260,6262,9136,9137,9138,9139,6248,6250,6252,6254,6232,6233,6236,6237,6240,6242,6244,6246,6250,6251,6254,6255,6328,6330,6332,6334,6264,6265,6266,6267,6304,6306,6308,6310,6256,6257,6258,6259,6296,6298,6300,6302,6264,6265,6268,6269,9096,9097,9098,9099,6272,6274,6276,6278,9088,9089,9090,9091,6332,6333,6334,6335,6298,6299,6302,6303,6280,6282,6284,6286,9080,9081,9082,9083,6324,6325,6326,6327,6290,6291,6294,6295,6480,6482,6484,6486,9072,9073,9074,9075,6316,6317,6318,6319,6762,6763,6766,6767,6504,6506,6508,6510,6297,6299,6301,6303,8720,8721,8722,8723,6308,6309,6310,6311,6754,6755,6758,6759,8728,8729,8730,8731,6348,6349,6350,6351,6746,6747,6750,6751,6312,6314,6316,6318,6328,6329,6332,6333,6388,6389,6390,6391,6738,6739,6742,6743,6496,6498,6500,6502,6320,6321,6324,6325,6396,6397,6398,6399,6488,6490,6492,6494,6329,6331,6333,6335,6340,6341,6342,6343,6364,6365,6366,6367,6346,6347,6350,6351,6392,6394,6396,6398,6356,6357,6358,6359,6706,6707,6710,6711,6384,6386,6388,6390,6698,6699,6702,6703,6376,6378,6380,6382,6360,6361,6364,6365,6368,6370,6372,6374,6378,6379,6382,6383,6424,6426,6428,6430,6392,6393,6394,6395,6674,6675,6678,6679,6416,6418,6420,6422,6384,6385,6386,6387,6666,6667,6670,6671,6408,6410,6412,6414,6392,6393,6396,6397,6400,6402,6404,6406,6428,6429,6430,6431,6410,6411,6414,6415,6456,6458,6460,6462,6488,6489,6490,6491,6420,6421,6422,6423,6642,6643,6646,6647,6448,6450,6452,6454,6496,6497,6498,6499,6634,6635,6638,6639,6440,6442,6444,6446,6424,6425,6428,6429,6432,6434,6436,6438,6442,6443,6446,6447,21776,21778,21780,21782,6456,6457,6458,6459,6610,6611,6614,6615,21712,21714,21716,21718,6448,6449,6450,6451,6602,6603,6606,6607,21736,21738,21740,21742,6456,6457,6460,6461,6520,6521,6522,6523,21768,21770,21772,21774,6464,6465,6466,6467,6522,6523,6526,6527,21760,21762,21764,21766,6489,6491,6493,6495,6472,6473,6474,6475,6514,6515,6518,6519,19656,19658,19660,19662,6481,6483,6485,6487,8976,8977,8978,8979,6492,6493,6494,6495,6506,6507,6510,6511,8968,8969,8970,8971,6498,6499,6502,6503,6554,6555,6558,6559,6520,6522,6524,6526,6504,6505,6506,6507,6546,6547,6550,6551,6512,6514,6516,6518,8928,8929,8930,8931,6524,6525,6526,6527,6538,6539,6542,6543,19664,19666,19668,19670,8920,8921,8922,8923,6530,6531,6534,6535,21752,21754,21756,21758,6604,6605,6606,6607,6586,6587,6590,6591,21744,21746,21748,21750,6553,6555,6557,6559,6536,6537,6538,6539,6578,6579,6582,6583,19688,19690,19692,19694,6545,6547,6549,6551,8912,8913,8914,8915,6556,6557,6558,6559,6570,6571,6574,6575,6761,6763,6765,6767,8936,8937,8938,8939,6644,6645,6646,6647,6562,6563,6566,6567,6737,6739,6741,6743,6652,6653,6654,6655,7026,7027,7030,7031,6584,6586,6588,6590,6729,6731,6733,6735,6568,6569,6570,6571,7018,7019,7022,7023,6576,6578,6580,6582,6769,6771,6773,6775,8488,8489,8490,8491,6588,6589,6590,6591,6994,6995,6998,6999,19696,19698,19700,19702,8496,8497,8498,8499,6596,6597,6598,6599,6978,6979,6982,6983,21392,21394,21396,21398,6620,6621,6622,6623,6970,6971,6974,6975,21400,21402,21404,21406,6600,6601,6604,6605,6649,6651,6653,6655,6612,6613,6614,6615,21728,21730,21732,21734,6641,6643,6645,6647,6618,6619,6622,6623,21720,21722,21724,21726,6633,6635,6637,6639,6946,6947,6950,6951,21408,21410,21412,21414,6625,6627,6629,6631,6938,6939,6942,6943,6632,6633,6636,6637,6681,6683,6685,6687,6648,6649,6650,6651,6673,6675,6677,6679,6640,6641,6642,6643,6650,6651,6654,6655,6665,6667,6669,6671,6914,6915,6918,6919,6657,6659,6661,6663,6684,6685,6686,6687,6906,6907,6910,6911,6664,6665,6668,6669,6713,6715,6717,6719,6728,6729,6730,6731,6676,6677,6678,6679,6705,6707,6709,6711,6736,6737,6738,6739,6682,6683,6686,6687,6697,6699,6701,6703,6882,6883,6886,6887,6689,6691,6693,6695,6874,6875,6878,6879,6696,6697,6700,6701,7329,7331,7333,7335,6712,6713,6714,6715,6704,6705,6706,6707,6714,6715,6718,6719,6744,6745,6746,6747,6850,6851,6854,6855,7321,7323,7325,7327,6720,6721,6722,6723,6842,6843,6846,6847,6728,6730,6732,6734,6744,6745,6748,6749,7265,7267,7269,7271,6776,6777,6778,6779,6834,6835,6838,6839,6736,6737,6740,6741,6768,6769,6770,6771,6745,6747,6749,6751,6760,6761,6762,6763,6752,6753,6754,6755,6778,6779,6782,6783,6760,6762,6764,6766,8704,8705,8706,8707,6770,6771,6774,6775,8712,8713,8714,8715,6794,6795,6798,6799,6777,6779,6781,6783,8688,8689,8690,8691,6786,6787,6790,6791,7257,7259,7261,7263,8696,8697,8698,8699,6844,6845,6846,6847,6810,6811,6814,6815,6792,6794,6796,6798,7233,7235,7237,7239,8672,8673,8674,8675,6836,6837,6838,6839,6802,6803,6806,6807,7016,7018,7020,7022,8680,8681,8682,8683,6828,6829,6830,6831,7154,7155,7158,7159,7008,7010,7012,7014,6809,6811,6813,6815,8208,8209,8210,8211,6820,6821,6822,6823,7162,7163,7166,7167,7225,7227,7229,7231,8216,8217,8218,8219,6860,6861,6862,6863,7138,7139,7142,7143,6824,6826,6828,6830,6840,6841,6844,6845,7217,7219,7221,7223,6900,6901,6902,6903,7146,7147,7150,7151,7032,7034,7036,7038,6832,6833,6836,6837,6908,6909,6910,6911,7024,7026,7028,7030,6841,6843,6845,6847,6852,6853,6854,6855,7289,7291,7293,7295,6876,6877,6878,6879,6858,6859,6862,6863,6904,6906,6908,6910,7297,7299,7301,7303,6868,6869,6870,6871,7130,7131,7134,7135,6896,6898,6900,6902,7385,7387,7389,7391,7122,7123,7126,7127,6888,6890,6892,6894,6872,6873,6876,6877,7361,7363,7365,7367,6880,6882,6884,6886,7353,7355,7357,7359,6890,6891,6894,6895,6936,6938,6940,6942,6904,6905,6906,6907,7114,7115,7118,7119,6928,6930,6932,6934,6896,6897,6898,6899,7106,7107,7110,7111,6920,6922,6924,6926,6904,6905,6908,6909,6912,6914,6916,6918,6940,6941,6942,6943,6922,6923,6926,6927,6968,6970,6972,6974,7024,7025,7026,7027,6932,6933,6934,6935,7098,7099,7102,7103,6960,6962,6964,6966,7032,7033,7034,7035,7090,7091,7094,7095,6952,6954,6956,6958,6936,6937,6940,6941,6944,6946,6948,6950,6954,6955,6958,6959,21424,21426,21428,21430,6968,6969,6970,6971,7082,7083,7086,7087,21328,21330,21332,21334,6960,6961,6962,6963,7074,7075,7078,7079,21368,21370,21372,21374,6968,6969,6972,6973,6984,6985,6986,6987,21376,21378,21380,21382,6976,6977,6978,6979,6986,6987,6990,6991,21384,21386,21388,21390,7025,7027,7029,7031,6992,6993,6994,6995,7066,7067,7070,7071,21360,21362,21364,21366,7033,7035,7037,7039,7000,7001,7002,7003,7002,7003,7006,7007,20048,20050,20052,20054,7017,7019,7021,7023,8456,8457,8458,8459,7058,7059,7062,7063,20056,20058,20060,20062,7009,7011,7013,7015,8432,8433,8434,8435,7036,7037,7038,7039,7050,7051,7054,7055,7016,7017,7020,7021,8424,8425,8426,8427,7028,7029,7030,7031,8464,8465,8466,8467,7034,7035,7038,7039,7042,7043,7046,7047,7100,7101,7102,7103,7064,7066,7068,7070,7145,7147,7149,7151,7048,7049,7050,7051,7056,7058,7060,7062,7153,7155,7157,7159,8400,8401,8402,8403,7068,7069,7070,7071,20064,20066,20068,20070,8392,8393,8394,8395,7076,7077,7078,7079,21352,21354,21356,21358,7084,7085,7086,7087,21344,21346,21348,21350,7097,7099,7101,7103,21336,21338,21340,21342,7089,7091,7093,7095,7113,7115,7117,7119,7096,7097,7098,7099,7105,7107,7109,7111,7116,7117,7118,7119,7129,7131,7133,7135,7144,7145,7146,7147,7121,7123,7125,7127,7369,7371,7373,7375,7128,7129,7130,7131,7377,7379,7381,7383,7136,7137,7138,7139,7144,7146,7148,7150,7177,7179,7181,7183,7160,7161,7162,7163,7152,7153,7154,7155,7161,7163,7165,7167,8200,8201,8202,8203,7169,7171,7173,7175,8192,8193,8194,8195,7180,7181,7182,7183,7224,7225,7228,7229,7193,7195,7197,7199,8184,8185,8186,8187,7380,7381,7382,7383,7216,7217,7220,7221,7185,7187,7189,7191,7404,7405,7406,7407,7208,7209,7212,7213,7657,7659,7661,7663,7192,7193,7194,7195,7200,7201,7204,7205,7649,7651,7653,7655,8160,8161,8162,8163,7212,7213,7214,7215,7224,7226,7228,7230,7240,7241,7244,7245,7641,7643,7645,7647,8152,8153,8154,8155,7396,7397,7398,7399,7216,7218,7220,7222,7280,7281,7284,7285,7633,7635,7637,7639,7388,7389,7390,7391,7288,7289,7292,7293,7224,7225,7226,7227,7232,7233,7236,7237,8128,8129,8130,8131,7292,7293,7294,7295,7256,7257,7260,7261,7241,7243,7245,7247,8120,8121,8122,8123,7284,7285,7286,7287,7248,7249,7252,7253,7601,7603,7605,7607,8112,8113,8114,8115,7276,7277,7278,7279,7256,7258,7260,7262,7593,7595,7597,7599,8104,8105,8106,8107,7268,7269,7270,7271,8096,8097,8098,8099,7324,7325,7326,7327,7290,7291,7294,7295,7273,7275,7277,7279,7316,7317,7318,7319,7282,7283,7286,7287,7569,7571,7573,7575,7308,7309,7310,7311,7288,7290,7292,7294,7561,7563,7565,7567,7300,7301,7302,7303,7356,7357,7358,7359,7386,7387,7390,7391,7320,7321,7324,7325,7305,7307,7309,7311,7348,7349,7350,7351,7394,7395,7398,7399,7312,7313,7316,7317,7537,7539,7541,7543,7340,7341,7342,7343,7320,7322,7324,7326,7529,7531,7533,7535,7332,7333,7334,7335,7354,7355,7358,7359,7337,7339,7341,7343,7346,7347,7350,7351,7505,7507,7509,7511,7418,7419,7422,7423,7352,7354,7356,7358,7497,7499,7501,7503,7362,7363,7366,7367,7370,7371,7374,7375,7417,7419,7421,7423,7384,7385,7386,7387,7409,7411,7413,7415,7376,7377,7378,7379,7384,7385,7388,7389,7401,7403,7405,7407,7393,7395,7397,7399,7420,7421,7422,7423,7402,7403,7406,7407,7449,7451,7453,7455,7412,7413,7414,7415,7441,7443,7445,7447,7416,7417,7420,7421,7433,7435,7437,7439,7425,7427,7429,7431,7434,7435,7438,7439,7496,7497,7500,7501,7481,7483,7485,7487,7448,7449,7450,7451,7473,7475,7477,7479,7440,7441,7442,7443,7448,7449,7452,7453,7465,7467,7469,7471,7656,7657,7658,7659,7536,7537,7540,7541,7457,7459,7461,7463,7632,7633,7634,7635,7484,7485,7486,7487,7466,7467,7470,7471,7544,7545,7548,7549,7624,7625,7626,7627,7476,7477,7478,7479,7664,7665,7666,7667,7480,7481,7484,7485,7488,7489,7492,7493,7496,7498,7500,7502,7512,7513,7516,7517,7544,7545,7546,7547,7504,7505,7508,7509,7536,7537,7538,7539,7513,7515,7517,7519,7528,7529,7530,7531,7520,7521,7522,7523,7546,7547,7550,7551,7528,7530,7532,7534,7576,7577,7578,7579,7538,7539,7542,7543,7568,7569,7570,7571,7545,7547,7549,7551,7560,7561,7562,7563,7552,7553,7554,7555,7626,7627,7630,7631,7560,7562,7564,7566,7576,7577,7580,7581,7608,7609,7610,7611,7634,7635,7638,7639,7568,7569,7572,7573,7600,7601,7602,7603,7577,7579,7581,7583,7592,7593,7594,7595,7584,7585,7586,7587,7610,7611,7614,7615,7592,7594,7596,7598,7768,7769,7770,7771,7602,7603,7606,7607,7760,7761,7762,7763,7642,7643,7646,7647,7609,7611,7613,7615,7752,7753,7754,7755,7618,7619,7622,7623,7744,7745,7746,7747,7628,7629,7630,7631,7674,7675,7678,7679,7640,7642,7644,7646,7736,7737,7738,7739,7666,7667,7670,7671,7632,7634,7636,7638,7658,7659,7662,7663,7640,7641,7642,7643,7650,7651,7654,7655,7712,7713,7714,7715,7660,7661,7662,7663,7673,7675,7677,7679,7704,7705,7706,7707,7665,7667,7669,7671,7672,7673,7674,7675,7680,7681,7682,7683,12338,12339,12342,12343,7704,7706,7708,7710,7736,7737,7740,7741,7688,7689,7690,7691,12346,12347,12350,12351,7696,7698,7700,7702,7728,7729,7732,7733,7888,7889,7890,7891,7708,7709,7710,7711,12322,12323,12326,12327,8168,8170,8172,8174,7720,7721,7724,7725,7912,7913,7914,7915,12330,12331,12334,12335,8160,8162,8164,8166,7712,7713,7716,7717,8152,8154,8156,8158,7752,7753,7756,7757,7737,7739,7741,7743,7720,7721,7722,7723,8144,8146,8148,8150,7792,7793,7796,7797,7729,7731,7733,7735,7904,7905,7906,7907,7740,7741,7742,7743,7800,7801,7804,7805,7896,7897,7898,7899,7744,7745,7748,7749,7752,7754,7756,7758,7768,7769,7772,7773,7800,7801,7802,7803,8112,8114,8116,8118,7760,7761,7764,7765,7792,7793,7794,7795,8104,8106,8108,8110,9240,9241,9244,9245,7769,7771,7773,7775,7784,7785,7786,7787,9216,9217,9220,9221,7776,7777,7778,7779,7802,7803,7806,7807,7784,7786,7788,7790,9224,9225,9228,9229,7832,7833,7834,7835,7794,7795,7798,7799,8080,8082,8084,8086,9232,9233,9236,9237,7824,7825,7826,7827,8072,8074,8076,8078,7801,7803,7805,7807,7816,7817,7818,7819,7808,7809,7810,7811,7898,7899,7902,7903,7816,7818,7820,7822,7832,7833,7836,7837,7864,7865,7866,7867,7906,7907,7910,7911,8048,8050,8052,8054,7824,7825,7828,7829,7856,7857,7858,7859,8040,8042,8044,8046,9328,9329,9332,9333,7833,7835,7837,7839,7848,7849,7850,7851,9352,9353,9356,9357,7840,7841,7842,7843,7866,7867,7870,7871,7848,7850,7852,7854,9360,9361,9364,9365,10704,10705,10706,10707,7858,7859,7862,7863,8016,8018,8020,8022,9312,9313,9316,9317,10696,10697,10698,10699,7930,7931,7934,7935,8008,8010,8012,8014,7865,7867,7869,7871,10672,10673,10674,10675,7874,7875,7878,7879,10656,10657,10658,10659,7900,7901,7902,7903,7882,7883,7886,7887,7928,7930,7932,7934,10648,10649,10650,10651,7892,7893,7894,7895,10906,10907,10910,10911,7920,7922,7924,7926,10640,10641,10642,10643,12354,12355,12358,12359,7912,7914,7916,7918,7896,7897,7900,7901,7904,7906,7908,7910,7914,7915,7918,7919,7960,7962,7964,7966,7928,7929,7930,7931,12362,12363,12366,12367,7952,7954,7956,7958,7920,7921,7922,7923,10914,10915,10918,10919,7944,7946,7948,7950,7928,7929,7932,7933,10632,10633,10634,10635,7936,7938,7940,7942,10624,10625,10626,10627,7964,7965,7966,7967,7946,7947,7950,7951,7992,7994,7996,7998,8008,8009,8012,8013,10616,10617,10618,10619,7956,7957,7958,7959,10970,10971,10974,10975,7984,7986,7988,7990,10608,10609,10610,10611,8172,8173,8174,8175,12490,12491,12494,12495,7976,7978,7980,7982,7960,7961,7964,7965,8148,8149,8150,8151,7968,7970,7972,7974,8048,8049,8052,8053,8140,8141,8142,8143,7978,7979,7982,7983,8264,8266,8268,8270,8056,8057,8060,8061,7992,7993,7994,7995,8180,8181,8182,8183,12498,12499,12502,12503,8256,8258,8260,8262,7984,7985,7986,7987,10978,10979,10982,10983,8280,8282,8284,8286,7992,7993,7996,7997,10600,10601,10602,10603,8272,8274,8276,8278,8000,8001,8004,8005,10592,10593,10594,10595,8060,8061,8062,8063,8616,8618,8620,8622,8024,8025,8028,8029,8009,8011,8013,8015,10584,10585,10586,10587,8052,8053,8054,8055,8016,8017,8020,8021,10576,10577,10578,10579,8044,8045,8046,8047,8024,8026,8028,8030,9304,9305,9308,9309,10568,10569,10570,10571,8036,8037,8038,8039,8608,8610,8612,8614,9296,9297,9300,9301,10560,10561,10562,10563,8092,8093,8094,8095,8058,8059,8062,8063,8632,8634,8636,8638,9288,9289,9292,9293,8041,8043,8045,8047,8084,8085,8086,8087,8050,8051,8054,8055,9280,9281,9284,9285,8076,8077,8078,8079,8056,8058,8060,8062,8068,8069,8070,8071,8624,8626,8628,8630,8124,8125,8126,8127,8138,8139,8142,8143,8664,8666,8668,8670,8088,8089,8092,8093,8073,8075,8077,8079,8116,8117,8118,8119,8146,8147,8150,8151,8080,8081,8084,8085,8108,8109,8110,8111,8088,8090,8092,8094,9272,9273,9276,9277,8100,8101,8102,8103,8640,8642,8644,8646,9264,9265,9268,9269,8122,8123,8126,8127,8696,8698,8700,8702,9256,9257,9260,9261,8105,8107,8109,8111,8114,8115,8118,8119,9248,9249,9252,9253,8154,8155,8158,8159,8120,8122,8124,8126,8130,8131,8134,8135,8672,8674,8676,8678,8186,8187,8190,8191,8216,8218,8220,8222,8153,8155,8157,8159,8136,8137,8138,8139,8178,8179,8182,8183,8224,8226,8228,8230,8145,8147,8149,8151,8156,8157,8158,8159,8170,8171,8174,8175,8162,8163,8166,8167,12522,12523,12526,12527,8184,8186,8188,8190,8168,8169,8170,8171,12482,12483,12486,12487,8176,8178,8180,8182,8188,8189,8190,8191,12506,12507,12510,12511,8248,8250,8252,8254,12514,12515,12518,12519,8192,8194,8196,8198,12722,12723,12726,12727,8200,8202,8204,8206,8216,8217,8220,8221,8248,8249,8250,8251,12714,12715,12718,12719,8400,8402,8404,8406,8208,8209,8212,8213,8240,8241,8242,8243,8424,8426,8428,8430,8680,8681,8684,8685,8217,8219,8221,8223,8232,8233,8234,8235,8672,8673,8676,8677,8224,8225,8226,8227,8250,8251,8254,8255,8232,8234,8236,8238,8664,8665,8668,8669,8264,8265,8266,8267,8242,8243,8246,8247,8416,8418,8420,8422,8656,8657,8660,8661,8304,8305,8306,8307,12706,12707,12710,12711,8408,8410,8412,8414,8249,8251,8253,8255,8312,8313,8314,8315,12730,12731,12734,12735,8256,8257,8258,8259,12738,12739,12742,12743,8312,8314,8316,8318,8264,8265,8268,8269,8280,8281,8282,8283,8304,8306,8308,8310,8624,8625,8628,8629,8272,8273,8274,8275,8282,8283,8286,8287,8296,8298,8300,8302,8616,8617,8620,8621,10216,10217,10218,10219,14234,14235,14238,14239,8288,8290,8292,8294,10392,10393,10394,10395,8316,8317,8318,8319,14242,14243,14246,14247,8344,8346,8348,8350,8296,8297,8300,8301,10384,10385,10386,10387,8308,8309,8310,8311,8336,8338,8340,8342,8592,8593,8596,8597,10224,10225,10226,10227,8314,8315,8318,8319,8328,8330,8332,8334,8584,8585,8588,8589,12746,12747,12750,12751,8320,8322,8324,8326,8412,8413,8414,8415,12874,12875,12878,12879,8376,8378,8380,8382,8328,8329,8332,8333,8344,8345,8346,8347,8420,8421,8422,8423,8368,8370,8372,8374,8560,8561,8564,8565,8336,8337,8338,8339,8346,8347,8350,8351,8360,8362,8364,8366,8552,8553,8556,8557,10248,10249,10250,10251,14298,14299,14302,14303,8352,8354,8356,8358,10376,10377,10378,10379,8380,8381,8382,8383,14306,14307,14310,14311,18176,18178,18180,18182,8360,8361,8364,8365,10368,10369,10370,10371,8372,8373,8374,8375,18184,18186,18188,18190,8528,8529,8532,8533,10256,10257,10258,10259,8444,8445,8446,8447,8378,8379,8382,8383,20008,20010,20012,20014,8520,8521,8524,8525,8388,8389,8390,8391,12882,12883,12886,12887,20096,20098,20100,20102,8396,8397,8398,8399,12890,12891,12894,12895,20080,20082,20084,20086,8440,8441,8444,8445,8409,8411,8413,8415,12898,12899,12902,12903,20072,20074,20076,20078,8432,8433,8436,8437,8401,8403,8405,8407,12906,12907,12910,12911,8424,8425,8428,8429,8408,8409,8410,8411,12866,12867,12870,12871,8416,8417,8420,8421,8428,8429,8430,8431,8440,8442,8444,8446,8472,8473,8476,8477,8432,8434,8436,8438,8464,8465,8468,8469,20040,20042,20044,20046,8456,8457,8460,8461,8440,8441,8442,8443,20016,20018,20020,20022,8448,8449,8452,8453,8460,8461,8462,8463,20024,20026,20028,20030,8504,8505,8508,8509,8473,8475,8477,8479,8520,8521,8522,8523,20032,20034,20036,20038,8496,8497,8500,8501,8465,8467,8469,8471,8488,8489,8492,8493,8681,8683,8685,8687,8472,8473,8474,8475,8480,8481,8484,8485,8657,8659,8661,8663,8560,8561,8562,8563,8492,8493,8494,8495,8504,8506,8508,8510,8944,8945,8948,8949,8649,8651,8653,8655,8568,8569,8570,8571,8496,8498,8500,8502,8936,8937,8940,8941,8689,8691,8693,8695,19704,19706,19708,19710,8912,8913,8916,8917,8504,8505,8506,8507,19712,19714,19716,19718,8896,8897,8900,8901,8512,8513,8514,8515,8522,8523,8526,8527,19760,19762,19764,19766,8888,8889,8892,8893,8569,8571,8573,8575,8536,8537,8538,8539,20000,20002,20004,20006,8561,8563,8565,8567,8528,8529,8530,8531,18312,18314,18316,18318,8536,8537,8540,8541,8553,8555,8557,8559,10264,10265,10266,10267,18320,18322,18324,18326,8864,8865,8868,8869,8545,8547,8549,8551,10016,10017,10018,10019,8572,8573,8574,8575,8554,8555,8558,8559,8856,8857,8860,8861,8601,8603,8605,8607,10040,10041,10042,10043,8564,8565,8566,8567,8593,8595,8597,8599,10240,10241,10242,10243,8568,8569,8572,8573,8585,8587,8589,8591,8832,8833,8836,8837,8577,8579,8581,8583,8652,8653,8654,8655,8586,8587,8590,8591,8824,8825,8828,8829,8633,8635,8637,8639,8600,8601,8602,8603,8660,8661,8662,8663,8625,8627,8629,8631,8592,8593,8594,8595,8600,8601,8604,8605,8617,8619,8621,8623,10232,10233,10234,10235,8800,8801,8804,8805,8609,8611,8613,8615,10048,10049,10050,10051,8636,8637,8638,8639,8618,8619,8622,8623,8792,8793,8796,8797,10072,10073,10074,10075,8628,8629,8630,8631,10208,10209,10210,10211,8668,8669,8670,8671,8632,8633,8636,8637,8644,8645,8646,8647,8768,8769,8772,8773,8700,8701,8702,8703,8666,8667,8670,8671,8648,8650,8652,8654,8760,8761,8764,8765,8692,8693,8694,8695,8658,8659,8662,8663,8752,8753,8756,8757,8684,8685,8686,8687,8665,8667,8669,8671,8676,8677,8678,8679,8680,8682,8684,8686,8696,8697,8700,8701,8688,8689,8692,8693,8712,8713,8716,8717,8697,8699,8701,8703,8704,8705,8708,8709,8712,8714,8716,8718,8728,8729,8732,8733,9257,9259,9261,9263,8760,8761,8762,8763,8936,8938,8940,8942,8720,8721,8724,8725,8752,8753,8754,8755,8928,8930,8932,8934,9072,9073,9076,9077,8729,8731,8733,8735,8744,8745,8746,8747,9080,9081,9084,9085,9097,9099,9101,9103,8736,8737,8738,8739,8762,8763,8766,8767,8744,8746,8748,8750,9056,9057,9060,9061,9105,9107,9109,9111,8776,8777,8778,8779,8754,8755,8758,8759,8952,8954,8956,8958,9064,9065,9068,9069,8816,8817,8818,8819,8944,8946,8948,8950,8761,8763,8765,8767,8824,8825,8826,8827,9265,9267,9269,9271,8768,8769,8770,8771,8824,8826,8828,8830,8776,8777,8780,8781,9289,9291,9293,9295,8792,8793,8794,8795,8816,8818,8820,8822,9048,9049,9052,9053,9449,9451,9453,9455,8784,8785,8786,8787,8794,8795,8798,8799,8808,8810,8812,8814,9040,9041,9044,9045,9457,9459,9461,9463,9832,9833,9834,9835,8800,8802,8804,8806,9297,9299,9301,9303,10064,10065,10066,10067,8828,8829,8830,8831,8856,8858,8860,8862,8808,8809,8812,8813,10056,10057,10058,10059,8820,8821,8822,8823,8848,8850,8852,8854,9032,9033,9036,9037,9840,9841,9842,9843,8826,8827,8830,8831,8840,8842,8844,8846,9024,9025,9028,9029,8832,8834,8836,8838,8948,8949,8950,8951,8888,8890,8892,8894,8840,8841,8844,8845,8856,8857,8858,8859,8956,8957,8958,8959,8880,8882,8884,8886,9016,9017,9020,9021,8848,8849,8850,8851,8858,8859,8862,8863,8872,8874,8876,8878,9008,9009,9012,9013,9864,9865,9866,9867,8864,8866,8868,8870,10032,10033,10034,10035,8892,8893,8894,8895,18560,18562,18564,18566,8872,8873,8876,8877,10024,10025,10026,10027,8884,8885,8886,8887,18568,18570,18572,18574,9000,9001,9004,9005,9872,9873,9874,9875,8908,8909,8910,8911,8890,8891,8894,8895,19624,19626,19628,19630,8992,8993,8996,8997,8900,8901,8902,8903,19752,19754,19756,19758,8916,8917,8918,8919,19728,19730,19732,19734,8904,8905,8908,8909,8945,8947,8949,8951,8924,8925,8926,8927,19632,19634,19636,19638,8984,8985,8988,8989,8953,8955,8957,8959,19680,19682,19684,19686,8920,8921,8924,8925,8937,8939,8941,8943,19672,19674,19676,19678,8976,8977,8980,8981,8929,8931,8933,8935,8938,8939,8942,8943,8968,8969,8972,8973,8952,8953,8954,8955,8944,8945,8946,8947,8952,8953,8956,8957,8960,8961,8964,8965,8972,8973,8974,8975,8984,8986,8988,8990,9065,9067,9069,9071,9016,9017,9018,9019,8976,8978,8980,8982,9073,9075,9077,9079,19648,19650,19652,19654,8984,8985,8986,8987,19640,19642,19644,19646,8992,8993,8994,8995,19616,19618,19620,19622,9017,9019,9021,9023,9000,9001,9002,9003,18656,18658,18660,18662,9009,9011,9013,9015,9880,9881,9882,9883,9020,9021,9022,9023,9033,9035,9037,9039,9856,9857,9858,9859,9025,9027,9029,9031,9068,9069,9070,9071,9049,9051,9053,9055,9032,9033,9034,9035,9041,9043,9045,9047,9848,9849,9850,9851,9052,9053,9054,9055,9465,9467,9469,9471,9824,9825,9826,9827,9060,9061,9062,9063,9441,9443,9445,9447,9084,9085,9086,9087,9064,9066,9068,9070,9113,9115,9117,9119,9076,9077,9078,9079,9081,9083,9085,9087,9089,9091,9093,9095,9098,9099,9102,9103,9145,9147,9149,9151,9112,9113,9114,9115,9258,9259,9262,9263,9137,9139,9141,9143,9104,9105,9106,9107,9266,9267,9270,9271,9112,9113,9116,9117,9129,9131,9133,9135,9448,9449,9450,9451,9121,9123,9125,9127,9440,9441,9442,9443,9148,9149,9150,9151,9130,9131,9134,9135,9169,9171,9173,9175,9432,9433,9434,9435,9140,9141,9142,9143,9274,9275,9278,9279,9177,9179,9181,9183,9424,9425,9426,9427,9250,9251,9254,9255,9144,9145,9148,9149,9161,9163,9165,9167,9153,9155,9157,9159,9162,9163,9166,9167,9201,9203,9205,9207,9168,9169,9170,9171,9242,9243,9246,9247,9209,9211,9213,9215,9176,9177,9178,9179,9178,9179,9182,9183,9193,9195,9197,9199,9392,9393,9394,9395,9234,9235,9238,9239,9185,9187,9189,9191,9336,9337,9338,9339,9212,9213,9214,9215,9226,9227,9230,9231,9192,9193,9196,9197,9344,9345,9346,9347,9204,9205,9206,9207,9384,9385,9386,9387,9210,9211,9214,9215,9218,9219,9222,9223,9240,9242,9244,9246,9224,9225,9226,9227,9232,9234,9236,9238,9352,9353,9354,9355,9244,9245,9246,9247,9272,9274,9276,9278,9328,9329,9330,9331,9248,9250,9252,9254,9256,9258,9260,9262,9272,9273,9274,9275,9264,9265,9266,9267,9273,9275,9277,9279,9288,9289,9290,9291,9280,9281,9282,9283,9288,9290,9292,9294,9424,9425,9428,9429,9329,9331,9333,9335,9304,9305,9306,9307,9448,9449,9452,9453,9296,9297,9298,9299,9456,9457,9460,9461,9305,9307,9309,9311,9648,9649,9650,9651,9416,9417,9420,9421,9313,9315,9317,9319,9632,9633,9634,9635,9332,9333,9334,9335,9320,9321,9324,9325,9361,9363,9365,9367,9624,9625,9626,9627,9340,9341,9342,9343,9416,9418,9420,9422,9400,9401,9404,9405,9369,9371,9373,9375,9544,9545,9546,9547,9336,9337,9340,9341,9353,9355,9357,9359,9424,9426,9428,9430,9392,9393,9396,9397,9345,9347,9349,9351,9354,9355,9358,9359,9384,9385,9388,9389,9368,9369,9370,9371,9360,9361,9362,9363,9368,9369,9372,9373,9600,9601,9602,9603,9376,9377,9380,9381,9592,9593,9594,9595,9388,9389,9390,9391,9400,9402,9404,9406,9584,9585,9586,9587,9392,9394,9396,9398,9432,9434,9436,9438,9400,9401,9402,9403,9408,9410,9412,9414,9536,9537,9538,9539,9436,9437,9438,9439,9418,9419,9422,9423,9464,9466,9468,9470,9528,9529,9530,9531,9428,9429,9430,9431,9456,9458,9460,9462,9520,9521,9522,9523,9448,9450,9452,9454,9432,9433,9436,9437,9440,9442,9444,9446,9450,9451,9454,9455,9464,9465,9466,9467,9456,9457,9458,9459,9464,9465,9468,9469,9480,9481,9482,9483,9472,9473,9474,9475,9482,9483,9486,9487,9824,9826,9828,9830,9529,9531,9533,9535,9496,9497,9498,9499,9650,9651,9654,9655,9832,9834,9836,9838,9521,9523,9525,9527,9488,9489,9490,9491,9658,9659,9662,9663,9792,9794,9796,9798,9496,9497,9500,9501,9513,9515,9517,9519,9744,9745,9746,9747,9816,9818,9820,9822,9505,9507,9509,9511,9752,9753,9754,9755,9532,9533,9534,9535,9514,9515,9518,9519,9553,9555,9557,9559,9728,9729,9730,9731,9524,9525,9526,9527,9642,9643,9646,9647,9561,9563,9565,9567,9736,9737,9738,9739,9634,9635,9638,9639,9528,9529,9532,9533,9545,9547,9549,9551,9537,9539,9541,9543,9546,9547,9550,9551,9585,9587,9589,9591,9552,9553,9554,9555,9626,9627,9630,9631,9593,9595,9597,9599,9560,9561,9562,9563,9562,9563,9566,9567,9577,9579,9581,9583,9720,9721,9722,9723,9618,9619,9622,9623,9569,9571,9573,9575,9688,9689,9690,9691,9596,9597,9598,9599,9610,9611,9614,9615,9576,9577,9580,9581,9704,9705,9706,9707,9588,9589,9590,9591,9712,9713,9714,9715,9594,9595,9598,9599,9602,9603,9606,9607,10706,10707,10710,10711,9624,9626,9628,9630,9608,9609,9610,9611,10714,10715,10718,10719,9616,9618,9620,9622,9696,9697,9698,9699,9628,9629,9630,9631,10690,10691,10694,10695,9640,9642,9644,9646,9680,9681,9682,9683,10698,10699,10702,10703,9632,9634,9636,9638,10570,10571,10574,10575,9648,9650,9652,9654,9640,9641,9642,9643,10530,10531,10534,10535,9656,9658,9660,9662,9672,9673,9674,9675,10562,10563,10566,10567,10064,10066,10068,10070,9656,9657,9658,9659,10554,10555,10558,10559,10104,10106,10108,10110,9664,9665,9666,9667,10546,10547,10550,10551,10112,10114,10116,10118,9744,9745,9748,9749,9673,9675,9677,9679,10538,10539,10542,10543,9736,9737,9740,9741,9681,9683,9685,9687,10730,10731,10734,10735,9688,9689,9692,9693,9697,9699,9701,9703,9736,9738,9740,9742,9720,9721,9724,9725,9705,9707,9709,9711,10722,10723,10726,10727,9704,9705,9708,9709,9712,9713,9716,9717,9720,9722,9724,9726,9728,9730,9732,9734,9738,9739,9742,9743,9752,9754,9756,9758,9744,9746,9748,9750,9784,9786,9788,9790,9752,9753,9756,9757,9760,9762,9764,9766,9820,9821,9822,9823,9786,9787,9790,9791,9768,9770,9772,9774,9812,9813,9814,9815,9778,9779,9782,9783,9904,9906,9908,9910,9804,9805,9806,9807,10122,10123,10126,10127,9928,9930,9932,9934,9785,9787,9789,9791,9796,9797,9798,9799,10114,10115,10118,10119,9836,9837,9838,9839,10106,10107,10110,10111,9800,9802,9804,9806,9816,9817,9820,9821,9844,9845,9846,9847,10098,10099,10102,10103,9920,9922,9924,9926,9808,9809,9812,9813,9852,9853,9854,9855,9912,9914,9916,9918,9817,9819,9821,9823,9828,9829,9830,9831,9834,9835,9838,9839,9848,9850,9852,9854,10066,10067,10070,10071,9840,9842,9844,9846,10058,10059,10062,10063,9864,9866,9868,9870,9848,9849,9852,9853,9856,9858,9860,9862,9866,9867,9870,9871,9880,9882,9884,9886,9912,9913,9914,9915,10034,10035,10038,10039,9872,9874,9876,9878,9920,9921,9922,9923,10026,10027,10030,10031,18576,18578,18580,18582,9880,9881,9884,9885,9944,9945,9946,9947,18640,18642,18644,18646,9888,9889,9890,9891,9946,9947,9950,9951,18632,18634,18636,18638,9913,9915,9917,9919,9896,9897,9898,9899,9938,9939,9942,9943,18624,18626,18628,18630,9905,9907,9909,9911,9916,9917,9918,9919,9930,9931,9934,9935,9922,9923,9926,9927,9978,9979,9982,9983,9944,9946,9948,9950,9928,9929,9930,9931,9970,9971,9974,9975,9936,9938,9940,9942,9948,9949,9950,9951,9962,9963,9966,9967,18616,18618,18620,18622,9954,9955,9958,9959,18600,18602,18604,18606,10028,10029,10030,10031,10010,10011,10014,10015,18592,18594,18596,18598,9977,9979,9981,9983,9960,9961,9962,9963,10002,10003,10006,10007,18608,18610,18612,18614,9969,9971,9973,9975,9980,9981,9982,9983,9994,9995,9998,9999,10121,10123,10125,10127,10036,10037,10038,10039,9986,9987,9990,9991,10097,10099,10101,10103,10044,10045,10046,10047,10322,10323,10326,10327,10008,10010,10012,10014,10089,10091,10093,10095,9992,9993,9994,9995,10314,10315,10318,10319,10000,10002,10004,10006,10129,10131,10133,10135,10012,10013,10014,10015,10290,10291,10294,10295,18256,18258,18260,18262,10020,10021,10022,10023,10274,10275,10278,10279,18264,18266,18268,18270,10266,10267,10270,10271,18272,18274,18276,18278,10024,10025,10028,10029,10041,10043,10045,10047,18584,18586,18588,18590,10033,10035,10037,10039,10042,10043,10046,10047,10057,10059,10061,10063,10242,10243,10246,10247,10049,10051,10053,10055,10234,10235,10238,10239,10056,10057,10060,10061,10073,10075,10077,10079,10088,10089,10090,10091,10065,10067,10069,10071,10096,10097,10098,10099,10074,10075,10078,10079,10104,10105,10106,10107,10210,10211,10214,10215,10561,10563,10565,10567,10080,10081,10082,10083,10202,10203,10206,10207,10088,10090,10092,10094,10104,10105,10108,10109,10553,10555,10557,10559,10136,10137,10138,10139,10194,10195,10198,10199,10096,10097,10100,10101,10128,10129,10130,10131,10105,10107,10109,10111,10120,10121,10122,10123,10112,10113,10114,10115,10138,10139,10142,10143,10120,10122,10124,10126,10130,10131,10134,10135,10154,10155,10158,10159,10137,10139,10141,10143,10146,10147,10150,10151,10545,10547,10549,10551,10204,10205,10206,10207,10170,10171,10174,10175,10152,10154,10156,10158,10497,10499,10501,10503,10196,10197,10198,10199,10162,10163,10166,10167,10312,10314,10316,10318,10188,10189,10190,10191,10418,10419,10422,10423,10304,10306,10308,10310,10169,10171,10173,10175,10180,10181,10182,10183,10426,10427,10430,10431,10489,10491,10493,10495,10220,10221,10222,10223,10402,10403,10406,10407,10184,10186,10188,10190,10200,10201,10204,10205,10481,10483,10485,10487,10228,10229,10230,10231,10410,10411,10414,10415,10328,10330,10332,10334,10192,10193,10196,10197,10236,10237,10238,10239,10320,10322,10324,10326,10201,10203,10205,10207,10212,10213,10214,10215,10505,10507,10509,10511,10218,10219,10222,10223,10232,10234,10236,10238,10585,10587,10589,10591,10394,10395,10398,10399,10224,10226,10228,10230,10593,10595,10597,10599,10386,10387,10390,10391,10248,10250,10252,10254,10232,10233,10236,10237,10240,10242,10244,10246,10250,10251,10254,10255,10264,10266,10268,10270,10320,10321,10322,10323,10378,10379,10382,10383,10256,10258,10260,10262,10328,10329,10330,10331,10370,10371,10374,10375,18192,18194,18196,18198,10264,10265,10268,10269,10280,10281,10282,10283,18288,18290,18292,18294,10272,10273,10274,10275,10282,10283,10286,10287,18240,18242,18244,18246,10321,10323,10325,10327,10288,10289,10290,10291,10362,10363,10366,10367,18232,18234,18236,18238,10329,10331,10333,10335,10296,10297,10298,10299,10298,10299,10302,10303,18248,18250,18252,18254,10313,10315,10317,10319,10354,10355,10358,10359,18224,18226,18228,18230,10305,10307,10309,10311,10332,10333,10334,10335,10346,10347,10350,10351,10312,10313,10316,10317,10324,10325,10326,10327,10330,10331,10334,10335,10338,10339,10342,10343,10380,10381,10382,10383,14346,14347,14350,14351,10360,10362,10364,10366,10409,10411,10413,10415,10344,10345,10346,10347,14386,14387,14390,14391,10352,10354,10356,10358,10417,10419,10421,10423,10364,10365,10366,10367,14394,14395,14398,14399,18216,18218,18220,18222,10372,10373,10374,10375,14338,14339,14342,14343,18208,18210,18212,18214,14330,14331,14334,14335,18200,18202,18204,18206,10377,10379,10381,10383,14274,14275,14278,14279,10385,10387,10389,10391,14266,14267,14270,14271,10393,10395,10397,10399,10408,10409,10410,10411,14210,14211,14214,14215,10601,10603,10605,10607,10400,10401,10402,10403,14202,14203,14206,14207,10408,10410,10412,10414,10441,10443,10445,10447,10424,10425,10426,10427,14178,14179,14182,14183,10416,10417,10418,10419,14186,14187,14190,14191,10425,10427,10429,10431,14194,14195,14198,14199,10433,10435,10437,10439,10444,10445,10446,10447,11018,11019,11022,11023,10488,10489,10492,10493,10457,10459,10461,10463,10604,10605,10606,10607,11010,11011,11014,11015,10480,10481,10484,10485,10449,10451,10453,10455,10612,10613,10614,10615,11034,11035,11038,11039,10472,10473,10476,10477,10793,10795,10797,10799,10456,10457,10458,10459,11026,11027,11030,11031,10464,10465,10468,10469,10785,10787,10789,10791,10476,10477,10478,10479,10488,10490,10492,10494,10512,10513,10516,10517,10777,10779,10781,10783,10620,10621,10622,10623,10480,10482,10484,10486,10520,10521,10524,10525,10769,10771,10773,10775,10596,10597,10598,10599,10504,10505,10508,10509,10488,10489,10490,10491,10496,10497,10500,10501,10508,10509,10510,10511,10544,10545,10548,10549,10513,10515,10517,10519,10588,10589,10590,10591,10552,10553,10556,10557,10521,10523,10525,10527,10524,10525,10526,10527,10536,10537,10540,10541,10737,10739,10741,10743,10580,10581,10582,10583,10528,10529,10532,10533,10681,10683,10685,10687,10572,10573,10574,10575,10552,10554,10556,10558,10689,10691,10693,10695,10536,10537,10538,10539,10544,10546,10548,10550,10729,10731,10733,10735,10556,10557,10558,10559,10564,10565,10566,10567,10586,10587,10590,10591,10569,10571,10573,10575,10578,10579,10582,10583,10697,10699,10701,10703,10618,10619,10622,10623,10584,10586,10588,10590,10673,10675,10677,10679,10594,10595,10598,10599,10602,10603,10606,10607,10617,10619,10621,10623,11002,11003,11006,11007,10609,10611,10613,10615,10946,10947,10950,10951,10616,10617,10620,10621,10633,10635,10637,10639,10625,10627,10629,10631,10634,10635,10638,10639,10672,10673,10676,10677,10649,10651,10653,10655,10768,10769,10770,10771,10938,10939,10942,10943,10641,10643,10645,10647,10792,10793,10794,10795,10882,10883,10886,10887,10648,10649,10652,10653,10800,10801,10802,10803,10656,10657,10660,10661,10760,10761,10762,10763,10672,10674,10676,10678,10704,10705,10708,10709,10664,10665,10666,10667,10762,10763,10766,10767,10680,10682,10684,10686,10712,10713,10716,10717,10744,10745,10746,10747,10696,10697,10700,10701,10680,10681,10682,10683,10770,10771,10774,10775,10688,10689,10692,10693,10736,10737,10738,10739,10700,10701,10702,10703,10713,10715,10717,10719,10728,10729,10730,10731,10705,10707,10709,10711,10712,10713,10714,10715,10720,10721,10722,10723,10746,10747,10750,10751,10728,10730,10732,10734,10738,10739,10742,10743,10778,10779,10782,10783,10745,10747,10749,10751,10754,10755,10758,10759,10764,10765,10766,10767,10810,10811,10814,10815,10776,10778,10780,10782,10802,10803,10806,10807,10768,10770,10772,10774,10794,10795,10798,10799,10776,10777,10778,10779,10786,10787,10790,10791,10796,10797,10798,10799,10826,10827,10830,10831,10809,10811,10813,10815,10866,10867,10870,10871,10801,10803,10805,10807,10874,10875,10878,10879,10808,10809,10810,10811,10818,10819,10822,10823,10876,10877,10878,10879,10842,10843,10846,10847,10824,10826,10828,10830,10868,10869,10870,10871,10834,10835,10838,10839,11024,11026,11028,11030,10860,10861,10862,10863,11306,11307,11310,11311,11048,11050,11052,11054,10841,10843,10845,10847,10852,10853,10854,10855,11298,11299,11302,11303,10892,10893,10894,10895,11290,11291,11294,11295,10856,10858,10860,10862,10872,10873,10876,10877,10932,10933,10934,10935,11282,11283,11286,11287,11040,11042,11044,11046,10864,10865,10868,10869,10940,10941,10942,10943,11032,11034,11036,11038,10873,10875,10877,10879,10884,10885,10886,10887,10908,10909,10910,10911,10890,10891,10894,10895,10936,10938,10940,10942,10900,10901,10902,10903,11250,11251,11254,11255,10928,10930,10932,10934,12380,12381,12382,12383,11242,11243,11246,11247,10920,10922,10924,10926,10904,10905,10908,10909,12356,12357,12358,12359,10912,10914,10916,10918,12364,12365,12366,12367,10922,10923,10926,10927,10968,10970,10972,10974,10936,10937,10938,10939,12372,12373,12374,12375,11218,11219,11222,11223,10960,10962,10964,10966,10928,10929,10930,10931,11210,11211,11214,11215,10952,10954,10956,10958,10936,10937,10940,10941,10944,10946,10948,10950,10972,10973,10974,10975,10954,10955,10958,10959,11000,11002,11004,11006,11032,11033,11034,11035,10964,10965,10966,10967,11186,11187,11190,11191,10992,10994,10996,10998,11040,11041,11042,11043,12468,12469,12470,12471,11178,11179,11182,11183,10984,10986,10988,10990,10968,10969,10972,10973,12492,12493,12494,12495,10976,10978,10980,10982,12500,12501,12502,12503,10986,10987,10990,10991,14232,14234,14236,14238,11000,11001,11002,11003,12452,12453,12454,12455,11154,11155,11158,11159,14224,14226,14228,14230,10992,10993,10994,10995,11146,11147,11150,11151,14216,14218,14220,14222,11000,11001,11004,11005,11064,11065,11066,11067,14208,14210,14212,14214,11008,11009,11010,11011,11066,11067,11070,11071,14200,14202,14204,14206,11033,11035,11037,11039,11016,11017,11018,11019,11058,11059,11062,11063,14192,14194,14196,14198,11025,11027,11029,11031,11036,11037,11038,11039,11050,11051,11054,11055,11042,11043,11046,11047,11098,11099,11102,11103,11064,11066,11068,11070,11048,11049,11050,11051,11090,11091,11094,11095,11056,11058,11060,11062,11068,11069,11070,11071,11082,11083,11086,11087,14152,14154,14156,14158,11074,11075,11078,11079,14144,14146,14148,14150,11148,11149,11150,11151,11130,11131,11134,11135,14136,14138,14140,14142,11097,11099,11101,11103,11080,11081,11082,11083,11122,11123,11126,11127,14128,14130,14132,14134,11089,11091,11093,11095,11100,11101,11102,11103,11114,11115,11118,11119,11305,11307,11309,11311,11188,11189,11190,11191,11106,11107,11110,11111,11281,11283,11285,11287,11196,11197,11198,11199,11402,11403,11406,11407,11128,11130,11132,11134,11273,11275,11277,11279,11112,11113,11114,11115,11394,11395,11398,11399,11120,11122,11124,11126,11313,11315,11317,11319,11132,11133,11134,11135,11418,11419,11422,11423,14088,14090,14092,14094,11140,11141,11142,11143,11410,11411,11414,11415,14080,14082,14084,14086,11164,11165,11166,11167,11754,11755,11758,11759,14072,14074,14076,14078,11144,11145,11148,11149,11193,11195,11197,11199,11156,11157,11158,11159,14064,14066,14068,14070,11185,11187,11189,11191,12444,12445,12446,12447,11162,11163,11166,11167,14056,14058,14060,14062,11177,11179,11181,11183,12436,12437,12438,12439,11746,11747,11750,11751,14048,14050,14052,14054,11169,11171,11173,11175,12428,12429,12430,12431,11770,11771,11774,11775,11176,11177,11180,11181,11225,11227,11229,11231,11192,11193,11194,11195,12420,12421,12422,12423,11217,11219,11221,11223,11184,11185,11186,11187,11194,11195,11198,11199,11209,11211,11213,11215,11762,11763,11766,11767,11201,11203,11205,11207,11228,11229,11230,11231,11802,11803,11806,11807,11208,11209,11212,11213,11257,11259,11261,11263,11272,11273,11274,11275,11220,11221,11222,11223,11249,11251,11253,11255,11280,11281,11282,11283,12412,12413,12414,12415,11226,11227,11230,11231,11241,11243,11245,11247,12404,12405,12406,12407,11778,11779,11782,11783,11233,11235,11237,11239,12396,12397,12398,12399,11834,11835,11838,11839,11240,11241,11244,11245,11256,11257,11258,11259,12388,12389,12390,12391,11248,11249,11250,11251,11258,11259,11262,11263,11288,11289,11290,11291,11810,11811,11814,11815,11264,11265,11266,11267,11354,11355,11358,11359,11272,11274,11276,11278,11288,11289,11292,11293,11320,11321,11322,11323,11362,11363,11366,11367,11280,11281,11284,11285,11312,11313,11314,11315,11289,11291,11293,11295,11304,11305,11306,11307,11296,11297,11298,11299,11322,11323,11326,11327,11304,11306,11308,11310,11314,11315,11318,11319,11386,11387,11390,11391,11321,11323,11325,11327,11330,11331,11334,11335,11356,11357,11358,11359,11338,11339,11342,11343,11384,11386,11388,11390,11348,11349,11350,11351,11538,11539,11542,11543,11376,11378,11380,11382,11820,11821,11822,11823,11562,11563,11566,11567,11368,11370,11372,11374,11352,11353,11356,11357,11812,11813,11814,11815,11360,11362,11364,11366,11804,11805,11806,11807,11370,11371,11374,11375,11400,11402,11404,11406,11384,11385,11386,11387,11796,11797,11798,11799,11554,11555,11558,11559,11440,11442,11444,11446,11376,11377,11378,11379,11546,11547,11550,11551,11448,11450,11452,11454,11384,11385,11388,11389,11392,11394,11396,11398,11404,11405,11406,11407,11450,11451,11454,11455,11416,11418,11420,11422,11764,11765,11766,11767,11442,11443,11446,11447,11408,11410,11412,11414,11756,11757,11758,11759,11434,11435,11438,11439,13584,13586,13588,13590,11416,11417,11418,11419,11426,11427,11430,11431,13840,13842,13844,13846,11436,11437,11438,11439,11482,11483,11486,11487,13832,13834,13836,13838,11449,11451,11453,11455,11732,11733,11734,11735,11474,11475,11478,11479,13608,13610,13612,13614,11441,11443,11445,11447,11724,11725,11726,11727,11466,11467,11470,11471,11448,11449,11450,11451,11458,11459,11462,11463,11468,11469,11470,11471,11514,11515,11518,11519,11480,11482,11484,11486,11545,11547,11549,11551,11700,11701,11702,11703,11506,11507,11510,11511,11472,11474,11476,11478,11553,11555,11557,11559,11692,11693,11694,11695,11498,11499,11502,11503,13648,13650,13652,13654,11480,11481,11482,11483,11490,11491,11494,11495,13808,13810,13812,13814,11500,11501,11502,11503,13800,13802,13804,13806,11513,11515,11517,11519,11668,11669,11670,11671,13672,13674,13676,13678,11505,11507,11509,11511,11660,11661,11662,11663,11577,11579,11581,11583,11512,11513,11514,11515,11521,11523,11525,11527,11580,11581,11582,11583,11544,11545,11548,11549,11529,11531,11533,11535,11572,11573,11574,11575,11536,11537,11540,11541,11564,11565,11566,11567,11544,11546,11548,11550,11556,11557,11558,11559,11612,11613,11614,11615,11578,11579,11582,11583,11561,11563,11565,11567,11604,11605,11606,11607,11570,11571,11574,11575,11596,11597,11598,11599,11576,11578,11580,11582,11588,11589,11590,11591,11644,11645,11646,11647,11656,11658,11660,11662,11608,11609,11612,11613,11593,11595,11597,11599,11636,11637,11638,11639,11600,11601,11604,11605,11628,11629,11630,11631,11608,11610,11612,11614,11816,11817,11820,11821,11620,11621,11622,11623,11696,11698,11700,11702,11792,11793,11796,11797,12084,12085,12086,12087,11642,11643,11646,11647,11704,11706,11708,11710,11784,11785,11788,11789,11625,11627,11629,11631,12076,12077,12078,12079,11634,11635,11638,11639,11824,11825,11828,11829,12052,12053,12054,12055,11640,11642,11644,11646,12036,12037,12038,12039,11648,11650,11652,11654,12028,12029,12030,12031,11672,11674,11676,11678,11704,11705,11708,11709,11656,11657,11658,11659,11664,11666,11668,11670,11696,11697,11700,11701,11676,11677,11678,11679,13664,13666,13668,13670,11688,11689,11692,11693,12004,12005,12006,12007,13336,13338,13340,13342,11680,11681,11684,11685,11996,11997,11998,11999,13344,13346,13348,13350,11736,11737,11740,11741,11705,11707,11709,11711,11688,11689,11690,11691,13656,13658,13660,13662,11728,11729,11732,11733,11697,11699,11701,11703,11708,11709,11710,11711,11720,11721,11724,11725,11972,11973,11974,11975,11712,11713,11716,11717,11964,11965,11966,11967,11736,11738,11740,11742,11768,11769,11772,11773,11785,11787,11789,11791,11720,11721,11722,11723,11728,11730,11732,11734,11760,11761,11764,11765,11793,11795,11797,11799,11740,11741,11742,11743,13600,13602,13604,13606,11752,11753,11756,11757,11940,11941,11942,11943,13400,13402,13404,13406,11744,11745,11748,11749,11932,11933,11934,11935,13408,13410,13412,13414,11769,11771,11773,11775,11752,11753,11754,11755,13592,13594,13596,13598,11761,11763,11765,11767,11772,11773,11774,11775,11801,11803,11805,11807,11908,11909,11910,11911,11777,11779,11781,11783,11900,11901,11902,11903,11786,11787,11790,11791,11833,11835,11837,11839,11800,11801,11802,11803,11892,11893,11894,11895,11825,11827,11829,11831,11792,11793,11794,11795,11800,11801,11804,11805,11817,11819,11821,11823,11809,11811,11813,11815,11836,11837,11838,11839,11818,11819,11822,11823,11828,11829,11830,11831,11852,11853,11854,11855,11832,11833,11836,11837,11844,11845,11846,11847,11868,11869,11870,11871,11850,11851,11854,11855,11896,11898,11900,11902,12392,12393,12396,12397,11860,11861,11862,11863,12074,12075,12078,12079,11888,11890,11892,11894,12212,12213,12214,12215,12066,12067,12070,12071,11880,11882,11884,11886,11864,11865,11868,11869,12220,12221,12222,12223,11872,11874,11876,11878,12232,12233,12236,12237,12196,12197,12198,12199,11882,11883,11886,11887,11912,11914,11916,11918,12240,12241,12244,12245,11896,11897,11898,11899,12204,12205,12206,12207,12090,12091,12094,12095,11952,11954,11956,11958,11888,11889,11890,11891,12082,12083,12086,12087,11960,11962,11964,11966,11896,11897,11900,11901,11904,11906,11908,11910,12400,12401,12404,12405,11916,11917,11918,11919,11962,11963,11966,11967,11928,11930,11932,11934,12424,12425,12428,12429,12188,12189,12190,12191,11954,11955,11958,11959,11920,11922,11924,11926,12584,12585,12588,12589,12180,12181,12182,12183,11946,11947,11950,11951,13072,13074,13076,13078,12592,12593,12596,12597,11928,11929,11930,11931,11938,11939,11942,11943,13416,13418,13420,13422,12432,12433,12436,12437,11948,11949,11950,11951,11994,11995,11998,11999,13392,13394,13396,13398,11961,11963,11965,11967,12172,12173,12174,12175,11986,11987,11990,11991,13096,13098,13100,13102,11953,11955,11957,11959,12164,12165,12166,12167,11978,11979,11982,11983,11960,11961,11962,11963,11970,11971,11974,11975,11980,11981,11982,11983,12026,12027,12030,12031,11992,11994,11996,11998,12081,12083,12085,12087,12156,12157,12158,12159,12018,12019,12022,12023,11984,11986,11988,11990,12089,12091,12093,12095,12148,12149,12150,12151,12010,12011,12014,12015,13136,13138,13140,13142,11992,11993,11994,11995,12002,12003,12006,12007,13352,13354,13356,13358,12012,12013,12014,12015,13328,13330,13332,13334,12025,12027,12029,12031,12140,12141,12142,12143,13160,13162,13164,13166,12017,12019,12021,12023,12132,12133,12134,12135,12041,12043,12045,12047,12024,12025,12026,12027,12033,12035,12037,12039,12044,12045,12046,12047,12080,12081,12084,12085,12049,12051,12053,12055,12124,12125,12126,12127,12088,12089,12092,12093,12057,12059,12061,12063,12060,12061,12062,12063,12072,12073,12076,12077,12116,12117,12118,12119,12064,12065,12068,12069,12108,12109,12110,12111,12088,12090,12092,12094,12072,12073,12074,12075,12080,12082,12084,12086,12092,12093,12094,12095,12100,12101,12102,12103,12122,12123,12126,12127,12152,12154,12156,12158,12200,12201,12204,12205,12105,12107,12109,12111,12114,12115,12118,12119,12208,12209,12212,12213,12120,12122,12124,12126,12128,12130,12132,12134,12136,12138,12140,12142,12152,12153,12156,12157,13152,13154,13156,13158,12144,12145,12148,12149,13144,13146,13148,13150,12168,12169,12172,12173,12153,12155,12157,12159,12160,12161,12164,12165,12168,12170,12172,12174,12184,12185,12188,12189,12201,12203,12205,12207,13088,13090,13092,13094,12176,12177,12180,12181,13080,13082,13084,13086,12600,12601,12604,12605,12185,12187,12189,12191,12576,12577,12580,12581,12193,12195,12197,12199,12202,12203,12206,12207,12248,12249,12252,12253,12217,12219,12221,12223,12209,12211,12213,12215,12216,12217,12220,12221,12224,12225,12228,12229,12248,12250,12252,12254,12280,12281,12284,12285,12232,12233,12234,12235,12240,12242,12244,12246,12272,12273,12276,12277,12392,12393,12394,12395,12252,12253,12254,12255,12584,12586,12588,12590,12264,12265,12268,12269,12400,12401,12402,12403,12576,12578,12580,12582,12256,12257,12260,12261,12568,12570,12572,12574,12304,12305,12308,12309,12281,12283,12285,12287,12264,12265,12266,12267,12560,12562,12564,12566,12312,12313,12316,12317,12273,12275,12277,12279,12408,12409,12410,12411,12284,12285,12286,12287,12296,12297,12300,12301,12384,12385,12386,12387,12288,12289,12292,12293,12304,12306,12308,12310,12336,12337,12340,12341,12296,12297,12298,12299,12312,12314,12316,12318,12344,12345,12348,12349,12376,12377,12378,12379,12528,12530,12532,12534,12328,12329,12332,12333,12312,12313,12314,12315,12472,12474,12476,12478,12320,12321,12324,12325,12368,12369,12370,12371,12332,12333,12334,12335,12480,12482,12484,12486,12345,12347,12349,12351,12360,12361,12362,12363,12520,12522,12524,12526,12337,12339,12341,12343,12344,12345,12346,12347,12352,12353,12354,12355,12378,12379,12382,12383,12360,12362,12364,12366,12370,12371,12374,12375,12488,12490,12492,12494,12410,12411,12414,12415,12464,12466,12468,12470,12377,12379,12381,12383,12386,12387,12390,12391,12394,12395,12398,12399,12408,12410,12412,12414,12400,12402,12404,12406,12424,12426,12428,12430,12408,12409,12412,12413,12416,12418,12420,12422,12564,12565,12566,12567,12426,12427,12430,12431,12440,12442,12444,12446,12464,12465,12468,12469,12588,12589,12590,12591,12432,12434,12436,12438,12596,12597,12598,12599,12776,12778,12780,12782,12440,12441,12444,12445,12556,12557,12558,12559,12768,12770,12772,12774,12448,12449,12452,12453,12460,12461,12462,12463,12760,12762,12764,12766,12496,12497,12500,12501,12465,12467,12469,12471,12540,12541,12542,12543,12554,12555,12558,12559,12680,12682,12684,12686,12504,12505,12508,12509,12473,12475,12477,12479,12476,12477,12478,12479,12488,12489,12492,12493,12532,12533,12534,12535,12562,12563,12566,12567,12480,12481,12484,12485,12524,12525,12526,12527,12504,12506,12508,12510,12488,12489,12490,12491,12496,12498,12500,12502,12508,12509,12510,12511,12736,12738,12740,12742,12516,12517,12518,12519,12728,12730,12732,12734,12538,12539,12542,12543,12720,12722,12724,12726,12521,12523,12525,12527,12530,12531,12534,12535,12570,12571,12574,12575,12536,12538,12540,12542,12546,12547,12550,12551,12672,12674,12676,12678,12602,12603,12606,12607,12664,12666,12668,12670,12569,12571,12573,12575,12552,12553,12554,12555,12594,12595,12598,12599,12656,12658,12660,12662,12561,12563,12565,12567,12572,12573,12574,12575,12586,12587,12590,12591,12578,12579,12582,12583,12600,12602,12604,12606,12584,12585,12586,12587,12592,12594,12596,12598,12604,12605,12606,12607,12616,12618,12620,12622,12608,12610,12612,12614,13082,13083,13086,13087,12632,12634,12636,12638,12664,12665,12668,12669,12616,12617,12618,12619,13074,13075,13078,13079,12624,12626,12628,12630,12656,12657,12660,12661,12776,12777,12778,12779,12636,12637,12638,12639,13066,13067,13070,13071,12968,12970,12972,12974,12648,12649,12652,12653,12784,12785,12786,12787,13058,13059,13062,13063,12960,12962,12964,12966,12640,12641,12644,12645,12952,12954,12956,12958,12688,12689,12692,12693,12665,12667,12669,12671,12648,12649,12650,12651,12944,12946,12948,12950,12696,12697,12700,12701,12657,12659,12661,12663,12792,12793,12794,12795,12668,12669,12670,12671,12680,12681,12684,12685,12768,12769,12770,12771,12672,12673,12676,12677,12688,12690,12692,12694,12720,12721,12724,12725,12680,12681,12682,12683,12696,12698,12700,12702,12728,12729,12732,12733,12760,12761,12762,12763,12912,12914,12916,12918,12712,12713,12716,12717,12696,12697,12698,12699,12856,12858,12860,12862,12704,12705,12708,12709,12752,12753,12754,12755,12716,12717,12718,12719,12864,12866,12868,12870,12729,12731,12733,12735,12744,12745,12746,12747,12904,12906,12908,12910,12721,12723,12725,12727,12728,12729,12730,12731,12736,12737,12738,12739,12762,12763,12766,12767,12744,12746,12748,12750,14232,14233,14234,14235,12754,12755,12758,12759,12872,12874,12876,12878,14240,14241,14242,14243,12794,12795,12798,12799,12848,12850,12852,12854,12761,12763,12765,12767,14248,14249,14250,14251,12770,12771,12774,12775,14224,14225,14226,14227,12778,12779,12782,12783,12792,12794,12796,12798,14056,14057,14058,14059,13418,13419,13422,13423,12784,12786,12788,12790,14048,14049,14050,14051,13426,13427,13430,13431,12808,12810,12812,12814,12792,12793,12796,12797,14040,14041,14042,14043,12800,12802,12804,12806,14032,14033,14034,14035,12948,12949,12950,12951,12810,12811,12814,12815,12824,12826,12828,12830,12848,12849,12852,12853,13992,13993,13994,13995,12972,12973,12974,12975,13466,13467,13470,13471,12816,12818,12820,12822,13984,13985,13986,13987,12980,12981,12982,12983,13474,13475,13478,13479,15976,15978,15980,15982,12824,12825,12828,12829,13976,13977,13978,13979,12940,12941,12942,12943,15968,15970,15972,15974,12832,12833,12836,12837,13968,13969,13970,13971,12844,12845,12846,12847,15960,15962,15964,15966,12880,12881,12884,12885,12849,12851,12853,12855,14312,14313,14314,14315,12924,12925,12926,12927,12938,12939,12942,12943,15880,15882,15884,15886,12888,12889,12892,12893,12857,12859,12861,12863,12860,12861,12862,12863,12872,12873,12876,12877,14288,14289,14290,14291,12916,12917,12918,12919,12946,12947,12950,12951,12864,12865,12868,12869,12908,12909,12910,12911,12888,12890,12892,12894,12872,12873,12874,12875,12880,12882,12884,12886,14296,14297,14298,14299,12892,12893,12894,12895,15936,15938,15940,15942,14304,14305,14306,14307,12900,12901,12902,12903,15928,15930,15932,15934,12922,12923,12926,12927,15920,15922,15924,15926,12905,12907,12909,12911,12914,12915,12918,12919,12954,12955,12958,12959,12920,12922,12924,12926,12930,12931,12934,12935,15872,15874,15876,15878,12986,12987,12990,12991,15864,15866,15868,15870,12953,12955,12957,12959,12936,12937,12938,12939,12978,12979,12982,12983,15856,15858,15860,15862,12945,12947,12949,12951,12956,12957,12958,12959,12970,12971,12974,12975,12962,12963,12966,12967,13050,13051,13054,13055,12984,12986,12988,12990,12968,12969,12970,12971,13026,13027,13030,13031,12976,12978,12980,12982,12988,12989,12990,12991,13018,13019,13022,13023,15816,15818,15820,15822,12994,12995,12998,12999,15808,15810,15812,15814,13002,13003,13006,13007,15800,15802,15804,15806,13049,13051,13053,13055,13016,13017,13018,13019,13202,13203,13206,13207,15792,15794,15796,15798,13041,13043,13045,13047,13008,13009,13010,13011,13226,13227,13230,13231,15440,15442,15444,15446,13016,13017,13020,13021,13033,13035,13037,13039,13480,13481,13482,13483,15448,15450,15452,15454,13025,13027,13029,13031,13472,13473,13474,13475,13052,13053,13054,13055,13034,13035,13038,13039,13065,13067,13069,13071,13464,13465,13466,13467,13044,13045,13046,13047,13218,13219,13222,13223,13105,13107,13109,13111,13456,13457,13458,13459,13210,13211,13214,13215,13048,13049,13052,13053,13113,13115,13117,13119,13057,13059,13061,13063,13114,13115,13118,13119,13081,13083,13085,13087,13064,13065,13066,13067,13106,13107,13110,13111,13073,13075,13077,13079,13424,13425,13426,13427,13084,13085,13086,13087,13098,13099,13102,13103,13416,13417,13418,13419,13090,13091,13094,13095,13146,13147,13150,13151,13112,13114,13116,13118,13096,13097,13098,13099,13138,13139,13142,13143,13104,13106,13108,13110,13392,13393,13394,13395,13116,13117,13118,13119,13130,13131,13134,13135,13384,13385,13386,13387,13122,13123,13126,13127,13178,13179,13182,13183,13208,13210,13212,13214,13145,13147,13149,13151,13128,13129,13130,13131,13170,13171,13174,13175,13216,13218,13220,13222,13137,13139,13141,13143,13360,13361,13362,13363,13148,13149,13150,13151,13162,13163,13166,13167,13352,13353,13354,13355,13154,13155,13158,13159,13176,13178,13180,13182,13160,13161,13162,13163,13168,13170,13172,13174,13328,13329,13330,13331,13180,13181,13182,13183,13240,13242,13244,13246,13320,13321,13322,13323,13184,13186,13188,13190,13192,13194,13196,13198,13208,13209,13212,13213,13240,13241,13242,13243,15696,15698,15700,15702,13200,13201,13204,13205,13232,13233,13234,13235,15688,15690,15692,15694,13209,13211,13213,13215,13224,13225,13226,13227,13216,13217,13218,13219,13242,13243,13246,13247,13224,13226,13228,13230,13272,13273,13274,13275,13234,13235,13238,13239,15648,15650,15652,15654,13264,13265,13266,13267,15640,15642,15644,15646,13241,13243,13245,13247,13256,13257,13258,13259,13248,13249,13250,13251,13256,13258,13260,13262,13272,13273,13276,13277,13321,13323,13325,13327,13304,13305,13306,13307,15632,15634,15636,15638,13264,13265,13268,13269,13296,13297,13298,13299,15656,15658,15660,15662,13480,13481,13484,13485,13273,13275,13277,13279,13288,13289,13290,13291,13456,13457,13460,13461,13361,13363,13365,13367,13280,13281,13282,13283,13306,13307,13310,13311,13288,13290,13292,13294,13448,13449,13452,13453,13369,13371,13373,13375,13744,13745,13746,13747,13298,13299,13302,13303,15208,15210,15212,15214,13488,13489,13492,13493,13736,13737,13738,13739,15216,15218,15220,15222,13305,13307,13309,13311,13712,13713,13714,13715,13313,13315,13317,13319,13696,13697,13698,13699,13324,13325,13326,13327,13368,13369,13372,13373,13337,13339,13341,13343,13688,13689,13690,13691,13360,13361,13364,13365,13329,13331,13333,13335,13352,13353,13356,13357,13336,13337,13338,13339,13344,13345,13348,13349,13664,13665,13666,13667,13356,13357,13358,13359,13368,13370,13372,13374,13400,13401,13404,13405,13656,13657,13658,13659,13360,13362,13364,13366,13392,13393,13396,13397,13384,13385,13388,13389,13368,13369,13370,13371,13376,13377,13380,13381,13632,13633,13634,13635,13388,13389,13390,13391,13448,13450,13452,13454,13432,13433,13436,13437,13401,13403,13405,13407,13624,13625,13626,13627,13456,13458,13460,13462,13424,13425,13428,13429,13393,13395,13397,13399,13416,13417,13420,13421,13400,13401,13402,13403,13408,13409,13412,13413,13600,13601,13602,13603,13420,13421,13422,13423,13432,13434,13436,13438,14048,14049,14052,14053,13592,13593,13594,13595,13424,13426,13428,13430,13464,13466,13468,13470,13432,13433,13434,13435,13440,13442,13444,13446,14040,14041,14044,14045,13568,13569,13570,13571,13468,13469,13470,13471,13450,13451,13454,13455,13496,13498,13500,13502,13984,13985,13988,13989,13560,13561,13562,13563,13460,13461,13462,13463,13488,13490,13492,13494,13552,13553,13554,13555,13480,13482,13484,13486,13464,13465,13468,13469,13472,13474,13476,13478,13482,13483,13486,13487,15424,15426,15428,15430,13496,13497,13498,13499,15432,15434,15436,15438,13488,13489,13490,13491,15408,15410,15412,15414,13496,13497,13500,13501,13512,13513,13514,13515,15416,15418,15420,15422,13976,13977,13980,13981,13504,13505,13506,13507,13514,13515,13518,13519,15392,15394,15396,15398,13952,13953,13956,13957,13561,13563,13565,13567,13528,13529,13530,13531,13738,13739,13742,13743,15400,15402,15404,15406,13553,13555,13557,13559,13520,13521,13522,13523,13730,13731,13734,13735,14928,14930,14932,14934,13528,13529,13532,13533,13545,13547,13549,13551,13872,13873,13874,13875,14936,14938,14940,14942,13944,13945,13948,13949,13537,13539,13541,13543,13880,13881,13882,13883,13564,13565,13566,13567,13546,13547,13550,13551,13936,13937,13940,13941,13577,13579,13581,13583,13856,13857,13858,13859,13556,13557,13558,13559,13754,13755,13758,13759,13617,13619,13621,13623,13864,13865,13866,13867,13746,13747,13750,13751,13560,13561,13564,13565,13625,13627,13629,13631,14008,14009,14012,14013,13569,13571,13573,13575,13626,13627,13630,13631,14016,14017,14020,14021,13593,13595,13597,13599,13576,13577,13578,13579,13618,13619,13622,13623,14104,14105,14108,14109,13585,13587,13589,13591,13848,13849,13850,13851,13596,13597,13598,13599,13610,13611,13614,13615,14080,14081,14084,14085,13840,13841,13842,13843,13602,13603,13606,13607,14072,14073,14076,14077,13658,13659,13662,13663,13624,13626,13628,13630,13608,13609,13610,13611,13650,13651,13654,13655,13616,13618,13620,13622,13832,13833,13834,13835,13628,13629,13630,13631,13642,13643,13646,13647,13824,13825,13826,13827,13634,13635,13638,13639,13690,13691,13694,13695,13744,13746,13748,13750,13657,13659,13661,13663,13640,13641,13642,13643,13682,13683,13686,13687,13752,13754,13756,13758,13649,13651,13653,13655,13816,13817,13818,13819,13660,13661,13662,13663,13674,13675,13678,13679,13808,13809,13810,13811,13666,13667,13670,13671,13688,13690,13692,13694,13672,13673,13674,13675,13680,13682,13684,13686,13800,13801,13802,13803,13692,13693,13694,13695,13704,13706,13708,13710,13792,13793,13794,13795,13696,13698,13700,13702,13712,13714,13716,13718,13744,13745,13748,13749,13704,13705,13706,13707,13720,13722,13724,13726,13752,13753,13756,13757,13784,13785,13786,13787,15176,15178,15180,15182,13736,13737,13740,13741,13720,13721,13722,13723,15152,15154,15156,15158,13728,13729,13732,13733,13776,13777,13778,13779,13740,13741,13742,13743,15144,15146,15148,15150,13753,13755,13757,13759,13768,13769,13770,13771,15184,15186,15188,15190,13745,13747,13749,13751,13752,13753,13754,13755,13760,13761,13762,13763,13786,13787,13790,13791,13768,13770,13772,13774,13864,13865,13868,13869,13817,13819,13821,13823,13778,13779,13782,13783,15120,15122,15124,15126,13872,13873,13876,13877,15112,15114,15116,15118,13785,13787,13789,13791,13793,13795,13797,13799,13816,13817,13820,13821,13801,13803,13805,13807,13808,13809,13812,13813,13816,13818,13820,13822,13832,13833,13836,13837,13824,13825,13828,13829,13864,13866,13868,13870,13848,13849,13852,13853,13833,13835,13837,13839,13840,13841,13844,13845,13848,13850,13852,13854,14088,14089,14092,14093,13856,13858,13860,13862,14096,14097,14100,14101,13866,13867,13870,13871,13880,13882,13884,13886,13896,13897,13900,13901,13872,13874,13876,13878,14920,14922,14924,14926,13880,13881,13884,13885,14912,14914,14916,14918,13888,13889,13892,13893,13948,13949,13950,13951,14904,14906,14908,14910,13912,13913,13916,13917,13897,13899,13901,13903,13940,13941,13942,13943,13904,13905,13908,13909,14097,14099,14101,14103,13932,13933,13934,13935,13912,13914,13916,13918,14376,14377,14380,14381,14121,14123,14125,14127,13924,13925,13926,13927,14880,14882,14884,14886,14368,14369,14372,14373,13964,13965,13966,13967,13946,13947,13950,13951,14872,14874,14876,14878,14360,14361,14364,14365,13929,13931,13933,13935,14004,14005,14006,14007,13938,13939,13942,13943,14352,14353,14356,14357,14113,14115,14117,14119,14012,14013,14014,14015,13944,13946,13948,13950,14105,14107,14109,14111,13956,13957,13958,13959,14848,14850,14852,14854,13980,13981,13982,13983,14840,14842,14844,14846,13960,13961,13964,13965,14009,14011,14013,14015,13972,13973,13974,13975,14832,14834,14836,14838,14320,14321,14324,14325,14001,14003,14005,14007,13978,13979,13982,13983,14824,14826,14828,14830,14312,14313,14316,14317,13993,13995,13997,13999,14816,14818,14820,14822,13985,13987,13989,13991,13992,13993,13996,13997,14041,14043,14045,14047,14008,14009,14010,14011,14288,14289,14292,14293,14033,14035,14037,14039,14000,14001,14002,14003,14010,14011,14014,14015,14280,14281,14284,14285,14025,14027,14029,14031,14017,14019,14021,14023,14044,14045,14046,14047,14024,14025,14028,14029,14073,14075,14077,14079,14104,14105,14106,14107,14036,14037,14038,14039,14256,14257,14260,14261,14065,14067,14069,14071,14112,14113,14114,14115,14042,14043,14046,14047,14248,14249,14252,14253,14057,14059,14061,14063,14049,14051,14053,14055,14056,14057,14060,14061,14072,14073,14074,14075,14224,14225,14228,14229,14064,14065,14066,14067,14074,14075,14078,14079,14216,14217,14220,14221,14136,14137,14138,14139,14080,14081,14082,14083,14104,14106,14108,14110,14136,14137,14140,14141,14088,14089,14090,14091,14096,14098,14100,14102,14128,14129,14132,14133,14108,14109,14110,14111,14120,14121,14124,14125,14112,14113,14116,14117,14168,14169,14172,14173,14137,14139,14141,14143,14120,14121,14122,14123,14160,14161,14164,14165,14129,14131,14133,14135,14140,14141,14142,14143,14152,14153,14156,14157,14144,14145,14148,14149,14220,14221,14222,14223,14168,14170,14172,14174,14200,14201,14204,14205,14152,14153,14154,14155,14160,14162,14164,14166,14192,14193,14196,14197,14172,14173,14174,14175,14376,14378,14380,14382,14184,14185,14188,14189,14260,14261,14262,14263,14352,14354,14356,14358,14176,14177,14180,14181,14268,14269,14270,14271,14344,14346,14348,14350,14201,14203,14205,14207,14184,14185,14186,14187,14384,14386,14388,14390,14193,14195,14197,14199,14204,14205,14206,14207,14212,14213,14214,14215,14236,14237,14238,14239,14218,14219,14222,14223,14264,14266,14268,14270,14228,14229,14230,14231,14256,14258,14260,14262,14248,14250,14252,14254,14232,14233,14236,14237,14240,14242,14244,14246,14250,14251,14254,14255,14296,14298,14300,14302,14264,14265,14266,14267,14288,14290,14292,14294,14256,14257,14258,14259,14280,14282,14284,14286,14264,14265,14268,14269,14272,14274,14276,14278,14300,14301,14302,14303,14282,14283,14286,14287,14328,14330,14332,14334,14344,14345,14346,14347,14292,14293,14294,14295,14320,14322,14324,14326,14352,14353,14354,14355,14312,14314,14316,14318,14296,14297,14300,14301,14304,14306,14308,14310,14314,14315,14318,14319,14488,14490,14492,14494,14328,14329,14330,14331,14480,14482,14484,14486,14320,14321,14322,14323,14472,14474,14476,14478,14328,14329,14332,14333,14360,14361,14362,14363,14464,14466,14468,14470,14336,14337,14338,14339,14362,14363,14366,14367,14456,14458,14460,14462,14345,14347,14349,14351,14392,14393,14394,14395,14354,14355,14358,14359,14384,14385,14386,14387,14360,14362,14364,14366,14376,14377,14378,14379,14432,14434,14436,14438,14368,14369,14370,14371,14424,14426,14428,14430,14392,14393,14396,14397,14377,14379,14381,14383,14384,14385,14388,14389,14392,14394,14396,14398,14400,14402,14404,14406,14460,14461,14462,14463,14426,14427,14430,14431,14408,14410,14412,14414,18216,18217,18220,18221,14452,14453,14454,14455,14418,14419,14422,14423,14608,14610,14612,14614,18056,18057,18060,18061,14444,14445,14446,14447,14890,14891,14894,14895,14632,14634,14636,14638,14425,14427,14429,14431,14436,14437,14438,14439,14882,14883,14886,14887,14476,14477,14478,14479,14874,14875,14878,14879,14440,14442,14444,14446,14456,14457,14460,14461,14516,14517,14518,14519,14866,14867,14870,14871,14624,14626,14628,14630,14448,14449,14452,14453,14524,14525,14526,14527,14616,14618,14620,14622,18096,18097,18100,18101,14457,14459,14461,14463,14468,14469,14470,14471,18208,18209,18212,18213,14492,14493,14494,14495,14474,14475,14478,14479,14520,14522,14524,14526,18200,18201,18204,18205,14484,14485,14486,14487,14834,14835,14838,14839,14512,14514,14516,14518,15964,15965,15966,15967,14826,14827,14830,14831,14504,14506,14508,14510,14488,14489,14492,14493,15940,15941,15942,15943,14496,14498,14500,14502,18176,18177,18180,18181,15948,15949,15950,15951,14506,14507,14510,14511,14552,14554,14556,14558,18168,18169,18172,18173,14520,14521,14522,14523,15956,15957,15958,15959,14802,14803,14806,14807,14544,14546,14548,14550,14512,14513,14514,14515,14794,14795,14798,14799,14536,14538,14540,14542,14520,14521,14524,14525,14528,14530,14532,14534,18120,18121,18124,18125,14556,14557,14558,14559,14538,14539,14542,14543,14584,14586,14588,14590,18112,18113,18116,18117,14616,14617,14618,14619,14548,14549,14550,14551,14770,14771,14774,14775,14576,14578,14580,14582,14624,14625,14626,14627,16052,16053,16054,16055,14762,14763,14766,14767,14568,14570,14572,14574,14552,14553,14556,14557,16076,16077,16078,16079,14560,14562,14564,14566,18160,18161,18164,18165,16084,16085,16086,16087,14570,14571,14574,14575,17424,17426,17428,17430,17840,17841,17844,17845,14584,14585,14586,14587,16036,16037,16038,16039,14738,14739,14742,14743,17416,17418,17420,17422,14576,14577,14578,14579,14730,14731,14734,14735,17392,17394,17396,17398,14584,14585,14588,14589,14648,14649,14650,14651,17376,17378,17380,17382,17832,17833,17836,17837,14592,14593,14594,14595,14650,14651,14654,14655,17368,17370,17372,17374,18032,18033,18036,18037,14617,14619,14621,14623,14600,14601,14602,14603,14642,14643,14646,14647,17360,17362,17364,17366,18040,18041,18044,18045,14609,14611,14613,14615,14620,14621,14622,14623,14634,14635,14638,14639,18048,18049,18052,18053,14626,14627,14630,14631,18104,18105,18108,18109,14682,14683,14686,14687,14648,14650,14652,14654,14632,14633,14634,14635,14674,14675,14678,14679,14640,14642,14644,14646,14652,14653,14654,14655,14666,14667,14670,14671,17352,17354,17356,17358,14658,14659,14662,14663,17344,17346,17348,17350,14732,14733,14734,14735,14714,14715,14718,14719,17336,17338,17340,17342,14681,14683,14685,14687,14664,14665,14666,14667,14706,14707,14710,14711,17328,17330,17332,17334,14673,14675,14677,14679,14684,14685,14686,14687,14698,14699,14702,14703,14889,14891,14893,14895,14772,14773,14774,14775,14690,14691,14694,14695,14865,14867,14869,14871,14780,14781,14782,14783,14986,14987,14990,14991,14712,14714,14716,14718,14857,14859,14861,14863,14696,14697,14698,14699,14978,14979,14982,14983,14704,14706,14708,14710,14897,14899,14901,14903,14716,14717,14718,14719,15002,15003,15006,15007,17320,17322,17324,17326,14724,14725,14726,14727,14994,14995,14998,14999,17312,17314,17316,17318,14748,14749,14750,14751,15338,15339,15342,15343,17304,17306,17308,17310,14728,14729,14732,14733,14777,14779,14781,14783,14740,14741,14742,14743,17296,17298,17300,17302,14769,14771,14773,14775,16028,16029,16030,16031,14746,14747,14750,14751,17288,17290,17292,17294,14761,14763,14765,14767,16020,16021,16022,16023,15330,15331,15334,15335,17280,17282,17284,17286,14753,14755,14757,14759,16012,16013,16014,16015,15354,15355,15358,15359,14760,14761,14764,14765,14809,14811,14813,14815,14776,14777,14778,14779,16004,16005,16006,16007,14801,14803,14805,14807,14768,14769,14770,14771,14778,14779,14782,14783,14793,14795,14797,14799,15346,15347,15350,15351,14785,14787,14789,14791,14812,14813,14814,14815,15386,15387,15390,15391,14792,14793,14796,14797,14841,14843,14845,14847,14856,14857,14858,14859,14804,14805,14806,14807,14833,14835,14837,14839,14864,14865,14866,14867,15996,15997,15998,15999,14810,14811,14814,14815,14825,14827,14829,14831,15988,15989,15990,15991,15362,15363,15366,15367,14817,14819,14821,14823,15980,15981,15982,15983,15418,15419,15422,15423,14824,14825,14828,14829,14840,14841,14842,14843,15972,15973,15974,15975,14832,14833,14834,14835,14842,14843,14846,14847,14872,14873,14874,14875,15394,15395,15398,15399,14848,14849,14850,14851,14938,14939,14942,14943,14856,14858,14860,14862,14872,14873,14876,14877,14904,14905,14906,14907,14946,14947,14950,14951,14864,14865,14868,14869,14896,14897,14898,14899,14873,14875,14877,14879,14888,14889,14890,14891,14880,14881,14882,14883,14906,14907,14910,14911,14888,14890,14892,14894,14898,14899,14902,14903,14970,14971,14974,14975,14905,14907,14909,14911,14914,14915,14918,14919,14940,14941,14942,14943,14922,14923,14926,14927,14968,14970,14972,14974,14932,14933,14934,14935,15122,15123,15126,15127,14960,14962,14964,14966,15404,15405,15406,15407,15146,15147,15150,15151,14952,14954,14956,14958,14936,14937,14940,14941,15396,15397,15398,15399,14944,14946,14948,14950,15388,15389,15390,15391,14954,14955,14958,14959,14984,14986,14988,14990,14968,14969,14970,14971,15380,15381,15382,15383,15138,15139,15142,15143,15024,15026,15028,15030,14960,14961,14962,14963,15130,15131,15134,15135,15032,15034,15036,15038,14968,14969,14972,14973,14976,14978,14980,14982,14988,14989,14990,14991,15034,15035,15038,15039,15000,15002,15004,15006,15348,15349,15350,15351,15026,15027,15030,15031,14992,14994,14996,14998,15340,15341,15342,15343,15018,15019,15022,15023,16936,16938,16940,16942,15000,15001,15002,15003,15010,15011,15014,15015,17112,17114,17116,17118,15020,15021,15022,15023,15066,15067,15070,15071,17104,17106,17108,17110,15033,15035,15037,15039,15316,15317,15318,15319,15058,15059,15062,15063,16944,16946,16948,16950,15025,15027,15029,15031,15308,15309,15310,15311,15050,15051,15054,15055,15032,15033,15034,15035,15042,15043,15046,15047,15052,15053,15054,15055,15098,15099,15102,15103,15064,15066,15068,15070,15129,15131,15133,15135,15284,15285,15286,15287,15090,15091,15094,15095,15056,15058,15060,15062,15137,15139,15141,15143,15276,15277,15278,15279,15082,15083,15086,15087,16968,16970,16972,16974,15064,15065,15066,15067,15074,15075,15078,15079,17096,17098,17100,17102,15084,15085,15086,15087,17088,17090,17092,17094,15097,15099,15101,15103,15252,15253,15254,15255,16976,16978,16980,16982,15089,15091,15093,15095,15244,15245,15246,15247,15161,15163,15165,15167,15096,15097,15098,15099,15105,15107,15109,15111,15164,15165,15166,15167,15128,15129,15132,15133,15113,15115,15117,15119,15156,15157,15158,15159,15120,15121,15124,15125,15148,15149,15150,15151,15128,15130,15132,15134,15140,15141,15142,15143,15196,15197,15198,15199,15162,15163,15166,15167,15145,15147,15149,15151,15188,15189,15190,15191,15154,15155,15158,15159,15180,15181,15182,15183,15160,15162,15164,15166,15172,15173,15174,15175,15228,15229,15230,15231,15240,15242,15244,15246,15192,15193,15196,15197,15177,15179,15181,15183,15220,15221,15222,15223,15184,15185,15188,15189,15212,15213,15214,15215,15192,15194,15196,15198,15400,15401,15404,15405,15204,15205,15206,15207,15280,15282,15284,15286,15376,15377,15380,15381,15668,15669,15670,15671,15226,15227,15230,15231,15288,15290,15292,15294,15368,15369,15372,15373,15209,15211,15213,15215,15660,15661,15662,15663,15218,15219,15222,15223,15408,15409,15412,15413,15636,15637,15638,15639,15224,15226,15228,15230,15620,15621,15622,15623,15232,15234,15236,15238,15612,15613,15614,15615,15256,15258,15260,15262,15288,15289,15292,15293,15240,15241,15242,15243,15248,15250,15252,15254,15280,15281,15284,15285,15260,15261,15262,15263,16984,16986,16988,16990,15272,15273,15276,15277,15588,15589,15590,15591,16736,16738,16740,16742,15264,15265,15268,15269,15580,15581,15582,15583,16760,16762,16764,16766,15320,15321,15324,15325,15289,15291,15293,15295,15272,15273,15274,15275,16960,16962,16964,16966,15312,15313,15316,15317,15281,15283,15285,15287,15292,15293,15294,15295,15304,15305,15308,15309,15556,15557,15558,15559,15296,15297,15300,15301,15548,15549,15550,15551,15320,15322,15324,15326,15352,15353,15356,15357,15369,15371,15373,15375,15304,15305,15306,15307,15312,15314,15316,15318,15344,15345,15348,15349,15377,15379,15381,15383,15324,15325,15326,15327,16952,16954,16956,16958,15336,15337,15340,15341,15524,15525,15526,15527,16768,16770,16772,16774,15328,15329,15332,15333,15516,15517,15518,15519,16792,16794,16796,16798,15353,15355,15357,15359,15336,15337,15338,15339,16928,16930,16932,16934,15345,15347,15349,15351,15356,15357,15358,15359,15385,15387,15389,15391,15492,15493,15494,15495,15361,15363,15365,15367,15484,15485,15486,15487,15370,15371,15374,15375,15417,15419,15421,15423,15384,15385,15386,15387,15476,15477,15478,15479,15409,15411,15413,15415,15376,15377,15378,15379,15384,15385,15388,15389,15401,15403,15405,15407,15393,15395,15397,15399,15420,15421,15422,15423,15402,15403,15406,15407,15412,15413,15414,15415,15436,15437,15438,15439,15416,15417,15420,15421,15428,15429,15430,15431,15452,15453,15454,15455,15434,15435,15438,15439,15480,15482,15484,15486,15976,15977,15980,15981,15444,15445,15446,15447,15658,15659,15662,15663,15472,15474,15476,15478,15796,15797,15798,15799,15650,15651,15654,15655,15464,15466,15468,15470,15448,15449,15452,15453,15804,15805,15806,15807,15456,15458,15460,15462,15816,15817,15820,15821,15780,15781,15782,15783,15466,15467,15470,15471,15496,15498,15500,15502,15824,15825,15828,15829,15480,15481,15482,15483,15788,15789,15790,15791,15674,15675,15678,15679,15536,15538,15540,15542,15472,15473,15474,15475,15666,15667,15670,15671,15544,15546,15548,15550,15480,15481,15484,15485,15488,15490,15492,15494,15984,15985,15988,15989,15500,15501,15502,15503,15546,15547,15550,15551,15512,15514,15516,15518,16008,16009,16012,16013,15772,15773,15774,15775,15538,15539,15542,15543,15504,15506,15508,15510,16168,16169,16172,16173,15764,15765,15766,15767,15530,15531,15534,15535,16552,16554,16556,16558,16176,16177,16180,16181,15512,15513,15514,15515,15522,15523,15526,15527,16784,16786,16788,16790,16016,16017,16020,16021,15532,15533,15534,15535,15578,15579,15582,15583,16776,16778,16780,16782,15545,15547,15549,15551,15756,15757,15758,15759,15570,15571,15574,15575,16560,16562,16564,16566,15537,15539,15541,15543,15748,15749,15750,15751,15562,15563,15566,15567,15544,15545,15546,15547,15554,15555,15558,15559,15564,15565,15566,15567,15610,15611,15614,15615,15576,15578,15580,15582,15665,15667,15669,15671,15740,15741,15742,15743,15602,15603,15606,15607,15568,15570,15572,15574,15673,15675,15677,15679,15732,15733,15734,15735,15594,15595,15598,15599,16584,16586,16588,16590,15576,15577,15578,15579,15586,15587,15590,15591,16752,16754,16756,16758,15596,15597,15598,15599,16744,16746,16748,16750,15609,15611,15613,15615,15724,15725,15726,15727,16592,16594,16596,16598,15601,15603,15605,15607,15716,15717,15718,15719,15625,15627,15629,15631,15608,15609,15610,15611,15617,15619,15621,15623,15628,15629,15630,15631,15664,15665,15668,15669,15633,15635,15637,15639,15708,15709,15710,15711,15672,15673,15676,15677,15641,15643,15645,15647,15644,15645,15646,15647,15656,15657,15660,15661,15700,15701,15702,15703,15648,15649,15652,15653,15692,15693,15694,15695,15672,15674,15676,15678,15656,15657,15658,15659,15664,15666,15668,15670,15676,15677,15678,15679,15684,15685,15686,15687,25844,25845,25846,25847,15706,15707,15710,15711,15736,15738,15740,15742,15784,15785,15788,15789,15689,15691,15693,15695,25788,25789,25790,25791,15698,15699,15702,15703,15792,15793,15796,15797,25796,25797,25798,25799,15704,15706,15708,15710,25836,25837,25838,25839,15712,15714,15716,15718,25860,25861,25862,25863,15720,15722,15724,15726,15736,15737,15740,15741,25900,25901,25902,25903,16600,16602,16604,16606,15728,15729,15732,15733,25908,25909,25910,25911,16576,16578,16580,16582,15752,15753,15756,15757,15737,15739,15741,15743,25852,25853,25854,25855,15744,15745,15748,15749,25924,25925,25926,25927,15752,15754,15756,15758,15768,15769,15772,15773,15785,15787,15789,15791,25916,25917,25918,25919,16568,16570,16572,16574,15760,15761,15764,15765,25940,25941,25942,25943,16544,16546,16548,16550,16184,16185,16188,16189,15769,15771,15773,15775,25932,25933,25934,25935,16160,16161,16164,16165,15777,15779,15781,15783,25764,25765,25766,25767,15786,15787,15790,15791,15832,15833,15836,15837,15801,15803,15805,15807,25772,25773,25774,25775,15793,15795,15797,15799,25780,25781,25782,25783,15800,15801,15804,15805,25756,25757,25758,25759,15808,15809,15812,15813,24740,24741,24742,24743,15832,15834,15836,15838,15864,15865,15868,15869,15816,15817,15818,15819,15824,15826,15828,15830,15856,15857,15860,15861,15976,15977,15978,15979,15836,15837,15838,15839,16168,16170,16172,16174,15848,15849,15852,15853,15984,15985,15986,15987,24612,24613,24614,24615,16160,16162,16164,16166,15840,15841,15844,15845,24620,24621,24622,24623,16152,16154,16156,16158,15888,15889,15892,15893,15865,15867,15869,15871,15848,15849,15850,15851,16144,16146,16148,16150,15896,15897,15900,15901,15857,15859,15861,15863,15992,15993,15994,15995,15868,15869,15870,15871,15880,15881,15884,15885,15968,15969,15970,15971,24732,24733,24734,24735,15872,15873,15876,15877,24724,24725,24726,24727,15888,15890,15892,15894,15920,15921,15924,15925,15880,15881,15882,15883,15896,15898,15900,15902,15928,15929,15932,15933,15960,15961,15962,15963,24644,24645,24646,24647,16112,16114,16116,16118,15912,15913,15916,15917,15896,15897,15898,15899,16056,16058,16060,16062,15904,15905,15908,15909,15952,15953,15954,15955,15916,15917,15918,15919,16064,16066,16068,16070,20088,20089,20092,20093,15929,15931,15933,15935,15944,15945,15946,15947,24660,24661,24662,24663,16104,16106,16108,16110,20136,20137,20140,20141,15921,15923,15925,15927,24716,24717,24718,24719,20072,20073,20076,20077,15928,15929,15930,15931,20080,20081,20084,20085,15936,15937,15938,15939,15962,15963,15966,15967,15944,15946,15948,15950,20096,20097,20100,20101,15954,15955,15958,15959,16072,16074,16076,16078,20104,20105,20108,20109,15994,15995,15998,15999,16048,16050,16052,16054,15961,15963,15965,15967,15970,15971,15974,15975,15978,15979,15982,15983,15992,15994,15996,15998,15984,15986,15988,15990,16008,16010,16012,16014,15992,15993,15996,15997,16000,16002,16004,16006,16148,16149,16150,16151,16010,16011,16014,16015,16024,16026,16028,16030,16048,16049,16052,16053,16172,16173,16174,16175,16016,16018,16020,16022,16180,16181,16182,16183,16368,16370,16372,16374,16024,16025,16028,16029,16140,16141,16142,16143,16352,16354,16356,16358,16032,16033,16036,16037,16044,16045,16046,16047,16344,16346,16348,16350,16080,16081,16084,16085,16049,16051,16053,16055,16124,16125,16126,16127,16138,16139,16142,16143,16264,16266,16268,16270,16088,16089,16092,16093,16057,16059,16061,16063,16060,16061,16062,16063,16072,16073,16076,16077,16116,16117,16118,16119,16146,16147,16150,16151,16064,16065,16068,16069,16108,16109,16110,16111,16088,16090,16092,16094,20120,20121,20124,20125,16072,16073,16074,16075,16080,16082,16084,16086,20112,20113,20116,20117,16092,16093,16094,16095,16320,16322,16324,16326,20360,20361,20364,20365,16100,16101,16102,16103,16312,16314,16316,16318,20368,20369,20372,20373,24236,24237,24238,24239,16122,16123,16126,16127,16304,16306,16308,16310,20168,20169,20172,20173,16105,16107,16109,16111,24652,24653,24654,24655,16114,16115,16118,16119,20128,20129,20132,20133,24636,24637,24638,24639,16154,16155,16158,16159,16120,16122,16124,16126,24244,24245,24246,24247,16130,16131,16134,16135,16256,16258,16260,16262,24252,24253,24254,24255,16186,16187,16190,16191,16248,16250,16252,16254,16153,16155,16157,16159,16136,16137,16138,16139,16178,16179,16182,16183,16240,16242,16244,16246,16145,16147,16149,16151,16156,16157,16158,16159,16170,16171,16174,16175,24628,24629,24630,24631,16162,16163,16166,16167,24604,24605,24606,24607,16184,16186,16188,16190,16168,16169,16170,16171,16176,16178,16180,16182,16188,16189,16190,16191,16200,16202,16204,16206,24276,24277,24278,24279,16192,16194,16196,16198,24268,24269,24270,24271,16546,16547,16550,16551,16216,16218,16220,16222,16248,16249,16252,16253,16200,16201,16202,16203,16554,16555,16558,16559,16208,16210,16212,16214,16240,16241,16244,16245,16368,16369,16370,16371,16220,16221,16222,16223,16514,16515,16518,16519,16464,16466,16468,16470,16232,16233,16236,16237,16376,16377,16378,16379,24100,24101,24102,24103,16538,16539,16542,16543,16472,16474,16476,16478,16224,16225,16228,16229,24108,24109,24110,24111,16448,16450,16452,16454,16272,16273,16276,16277,16249,16251,16253,16255,16232,16233,16234,16235,16456,16458,16460,16462,16280,16281,16284,16285,16241,16243,16245,16247,16360,16361,16362,16363,16252,16253,16254,16255,16264,16265,16268,16269,16352,16353,16354,16355,24260,24261,24262,24263,16256,16257,16260,16261,24188,24189,24190,24191,16272,16274,16276,16278,16304,16305,16308,16309,16264,16265,16266,16267,16280,16282,16284,16286,16312,16313,16316,16317,16344,16345,16346,16347,24180,24181,24182,24183,16440,16442,16444,16446,16296,16297,16300,16301,16280,16281,16282,16283,16408,16410,16412,16414,16288,16289,16292,16293,16336,16337,16338,16339,16300,16301,16302,16303,16424,16426,16428,16430,20432,20433,20436,20437,16313,16315,16317,16319,16328,16329,16330,16331,24172,24173,24174,24175,16432,16434,16436,16438,20648,20649,20652,20653,16305,16307,16309,16311,24196,24197,24198,24199,20176,20177,20180,20181,16312,16313,16314,16315,20392,20393,20396,20397,16320,16321,16322,16323,16346,16347,16350,16351,16328,16330,16332,16334,20400,20401,20404,20405,17424,17425,17426,17427,16338,16339,16342,16343,16416,16418,16420,16422,20424,20425,20428,20429,17432,17433,17434,17435,16362,16363,16366,16367,16400,16402,16404,16406,16345,16347,16349,16351,17408,17409,17410,17411,16354,16355,16358,16359,17416,17417,17418,17419,16370,16371,16374,16375,16360,16362,16364,16366,17288,17289,17290,17291,16378,16379,16382,16383,16392,16394,16396,16398,17248,17249,17250,17251,16786,16787,16790,16791,16376,16378,16380,16382,17280,17281,17282,17283,16826,16827,16830,16831,16384,16386,16388,16390,17272,17273,17274,17275,16468,16469,16470,16471,16834,16835,16838,16839,16392,16393,16396,16397,17264,17265,17266,17267,16460,16461,16462,16463,16400,16401,16404,16405,17256,17257,17258,17259,16412,16413,16414,16415,16416,16417,16420,16421,17448,17449,17450,17451,16444,16445,16446,16447,16458,16459,16462,16463,16424,16425,16428,16429,16428,16429,16430,16431,20464,20465,20468,20469,17440,17441,17442,17443,16436,16437,16438,16439,20456,20457,20460,20461,24132,24133,24134,24135,16442,16443,16446,16447,20656,20657,20660,20661,24124,24125,24126,24127,16450,16451,16454,16455,24116,24117,24118,24119,16474,16475,16478,16479,16456,16457,16458,16459,16466,16467,16470,16471,16476,16477,16478,16479,16506,16507,16510,16511,24092,24093,24094,24095,16482,16483,16486,16487,26404,26405,26406,26407,16490,16491,16494,16495,16537,16539,16541,16543,16504,16505,16506,16507,26396,26397,26398,26399,16626,16627,16630,16631,16529,16531,16533,16535,16496,16497,16498,16499,16650,16651,16654,16655,16504,16505,16508,16509,16521,16523,16525,16527,16840,16841,16842,16843,16513,16515,16517,16519,16832,16833,16834,16835,16540,16541,16542,16543,16522,16523,16526,16527,16553,16555,16557,16559,16824,16825,16826,16827,16532,16533,16534,16535,16642,16643,16646,16647,16561,16563,16565,16567,16816,16817,16818,16819,26284,26285,26286,26287,16634,16635,16638,16639,16536,16537,16540,16541,16569,16571,16573,16575,26276,26277,26278,26279,16545,16547,16549,16551,26268,26269,26270,26271,16570,16571,16574,16575,16552,16553,16554,16555,16562,16563,16566,16567,16784,16785,16786,16787,16572,16573,16574,16575,16586,16587,16590,16591,16776,16777,16778,16779,26292,26293,26294,26295,16578,16579,16582,16583,26300,26301,26302,26303,16602,16603,16606,16607,16632,16634,16636,16638,16584,16585,16586,16587,16594,16595,16598,16599,16640,16642,16644,16646,16752,16753,16754,16755,16604,16605,16606,16607,16664,16666,16668,16670,16744,16745,16746,16747,26316,26317,26318,26319,16608,16610,16612,16614,26324,26325,26326,26327,16616,16618,16620,16622,16632,16633,16636,16637,16664,16665,16666,16667,26380,26381,26382,26383,16624,16625,16628,16629,16656,16657,16658,16659,26388,26389,26390,26391,16633,16635,16637,16639,16648,16649,16650,16651,26308,26309,26310,26311,16640,16641,16642,16643,16666,16667,16670,16671,16648,16650,16652,16654,16696,16697,16698,16699,16658,16659,16662,16663,16688,16689,16690,16691,16665,16667,16669,16671,16680,16681,16682,16683,16672,16673,16674,16675,16680,16682,16684,16686,16696,16697,16700,16701,16745,16747,16749,16751,16728,16729,16730,16731,16688,16689,16692,16693,16720,16721,16722,16723,16840,16841,16844,16845,16697,16699,16701,16703,16712,16713,16714,16715,16816,16817,16820,16821,16753,16755,16757,16759,16704,16705,16706,16707,16730,16731,16734,16735,16712,16714,16716,16718,16808,16809,16812,16813,16761,16763,16765,16767,17040,17041,17042,17043,16722,16723,16726,16727,16848,16849,16852,16853,17032,17033,17034,17035,16729,16731,16733,16735,17008,17009,17010,17011,16737,16739,16741,16743,16992,16993,16994,16995,16748,16749,16750,16751,16760,16761,16764,16765,16984,16985,16986,16987,16752,16753,16756,16757,16776,16777,16780,16781,16760,16761,16762,16763,16768,16769,16772,16773,16960,16961,16962,16963,16780,16781,16782,16783,16808,16810,16812,16814,16792,16793,16796,16797,16952,16953,16954,16955,16816,16818,16820,16822,16784,16785,16788,16789,16824,16826,16828,16830,16792,16793,16794,16795,16800,16802,16804,16806,17280,17281,17284,17285,16928,16929,16930,16931,16828,16829,16830,16831,16810,16811,16814,16815,16856,16858,16860,16862,17272,17273,17276,17277,16920,16921,16922,16923,16820,16821,16822,16823,16848,16850,16852,16854,16912,16913,16914,16915,16840,16842,16844,16846,16824,16825,16828,16829,16832,16834,16836,16838,16842,16843,16846,16847,16856,16857,16858,16859,16848,16849,16850,16851,16856,16857,16860,16861,16872,16873,16874,16875,17264,17265,17268,17269,16864,16865,16866,16867,16874,16875,16878,16879,17216,17217,17220,17221,16921,16923,16925,16927,16888,16889,16890,16891,17034,17035,17038,17039,16913,16915,16917,16919,16880,16881,16882,16883,17026,17027,17030,17031,16888,16889,16892,16893,16905,16907,16909,16911,17136,17137,17138,17139,17208,17209,17212,17213,16897,16899,16901,16903,17144,17145,17146,17147,16924,16925,16926,16927,16906,16907,16910,16911,17200,17201,17204,17205,16937,16939,16941,16943,17120,17121,17122,17123,16916,16917,16918,16919,17050,17051,17054,17055,16945,16947,16949,16951,17128,17129,17130,17131,17042,17043,17046,17047,16920,16921,16924,16925,16953,16955,16957,16959,17224,17225,17228,17229,16929,16931,16933,16935,16954,16955,16958,16959,17304,17305,17308,17309,16936,16937,16938,16939,16946,16947,16950,16951,17312,17313,17316,17317,17112,17113,17114,17115,16956,16957,16958,16959,16970,16971,16974,16975,17104,17105,17106,17107,16962,16963,16966,16967,16986,16987,16990,16991,17040,17042,17044,17046,16968,16969,16970,16971,16978,16979,16982,16983,17048,17050,17052,17054,17096,17097,17098,17099,16988,16989,16990,16991,17000,17002,17004,17006,17088,17089,17090,17091,16992,16994,16996,16998,17008,17010,17012,17014,17040,17041,17044,17045,17000,17001,17002,17003,17016,17018,17020,17022,17048,17049,17052,17053,17080,17081,17082,17083,17032,17033,17036,17037,17016,17017,17018,17019,17024,17025,17028,17029,17072,17073,17074,17075,17036,17037,17038,17039,17049,17051,17053,17055,17064,17065,17066,17067,17041,17043,17045,17047,17048,17049,17050,17051,17056,17057,17058,17059,17082,17083,17086,17087,17064,17066,17068,17070,17128,17129,17132,17133,17097,17099,17101,17103,17074,17075,17078,17079,17136,17137,17140,17141,17081,17083,17085,17087,17089,17091,17093,17095,17096,17097,17100,17101,17104,17105,17108,17109,17128,17130,17132,17134,17112,17113,17116,17117,17120,17122,17124,17126,17320,17321,17324,17325,17130,17131,17134,17135,17144,17146,17148,17150,17160,17161,17164,17165,17136,17138,17140,17142,17144,17145,17148,17149,17152,17153,17156,17157,17212,17213,17214,17215,17176,17177,17180,17181,17161,17163,17165,17167,17204,17205,17206,17207,17168,17169,17172,17173,17321,17323,17325,17327,17196,17197,17198,17199,17176,17178,17180,17182,17512,17513,17516,17517,17329,17331,17333,17335,17188,17189,17190,17191,17504,17505,17508,17509,17236,17237,17238,17239,17210,17211,17214,17215,17496,17497,17500,17501,17193,17195,17197,17199,17244,17245,17246,17247,17202,17203,17206,17207,17488,17489,17492,17493,17337,17339,17341,17343,17228,17229,17230,17231,17208,17210,17212,17214,17313,17315,17317,17319,17220,17221,17222,17223,17268,17269,17270,17271,17232,17233,17236,17237,17225,17227,17229,17231,17276,17277,17278,17279,17240,17241,17244,17245,17305,17307,17309,17311,17260,17261,17262,17263,17456,17457,17460,17461,17241,17243,17245,17247,17252,17253,17254,17255,17400,17401,17404,17405,17297,17299,17301,17303,17274,17275,17278,17279,17256,17258,17260,17262,17408,17409,17412,17413,17289,17291,17293,17295,17266,17267,17270,17271,17448,17449,17452,17453,17273,17275,17277,17279,17281,17283,17285,17287,17288,17289,17292,17293,17304,17305,17306,17307,17416,17417,17420,17421,17296,17297,17298,17299,17306,17307,17310,17311,17392,17393,17396,17397,17336,17337,17338,17339,17312,17313,17314,17315,17336,17337,17340,17341,17320,17321,17322,17323,17328,17329,17332,17333,17340,17341,17342,17343,17352,17353,17356,17357,17344,17345,17348,17349,17396,17397,17398,17399,17488,17490,17492,17494,17368,17369,17372,17373,17352,17353,17354,17355,17512,17514,17516,17518,17360,17361,17364,17365,17372,17373,17374,17375,17520,17522,17524,17526,18016,18017,18020,18021,17380,17381,17382,17383,17480,17482,17484,17486,18024,18025,18028,18029,17428,17429,17430,17431,17394,17395,17398,17399,17384,17386,17388,17390,17808,17809,17812,17813,17436,17437,17438,17439,17402,17403,17406,17407,17464,17466,17468,17470,17768,17769,17772,17773,17480,17481,17482,17483,17420,17421,17422,17423,17400,17402,17404,17406,17412,17413,17414,17415,17456,17458,17460,17462,17488,17489,17490,17491,17448,17450,17452,17454,17432,17433,17436,17437,17417,17419,17421,17423,17424,17425,17428,17429,17432,17434,17436,17438,17800,17801,17804,17805,17440,17442,17444,17446,17776,17777,17780,17781,17450,17451,17454,17455,17736,17737,17740,17741,17464,17465,17466,17467,17456,17457,17458,17459,17464,17465,17468,17469,17496,17497,17498,17499,17744,17745,17748,17749,17472,17473,17474,17475,17498,17499,17502,17503,17544,17545,17548,17549,17481,17483,17485,17487,17528,17529,17530,17531,17490,17491,17494,17495,17552,17553,17556,17557,17520,17521,17522,17523,17496,17498,17500,17502,17512,17513,17514,17515,17504,17505,17506,17507,17528,17529,17532,17533,17513,17515,17517,17519,17520,17521,17524,17525,17528,17530,17532,17534,17560,17561,17564,17565,17536,17537,17540,17541,17548,17549,17550,17551,17592,17593,17596,17597,17561,17563,17565,17567,17748,17749,17750,17751,17584,17585,17588,17589,17553,17555,17557,17559,17772,17773,17774,17775,17576,17577,17580,17581,18025,18027,18029,18031,17560,17561,17562,17563,17568,17569,17572,17573,18017,18019,18021,18023,17580,17581,17582,17583,17592,17594,17596,17598,17608,17609,17612,17613,18009,18011,18013,18015,17764,17765,17766,17767,17584,17586,17588,17590,17648,17649,17652,17653,18001,18003,18005,18007,17756,17757,17758,17759,17656,17657,17660,17661,17592,17593,17594,17595,17600,17601,17604,17605,17660,17661,17662,17663,17624,17625,17628,17629,17609,17611,17613,17615,17652,17653,17654,17655,17616,17617,17620,17621,17969,17971,17973,17975,17644,17645,17646,17647,17624,17626,17628,17630,18872,18873,18876,18877,17961,17963,17965,17967,17636,17637,17638,17639,18848,18849,18852,18853,17692,17693,17694,17695,17658,17659,17662,17663,18856,18857,18860,18861,17641,17643,17645,17647,17684,17685,17686,17687,17650,17651,17654,17655,18864,18865,18868,18869,17937,17939,17941,17943,17676,17677,17678,17679,17656,17658,17660,17662,17929,17931,17933,17935,17668,17669,17670,17671,17724,17725,17726,17727,17754,17755,17758,17759,17688,17689,17692,17693,17673,17675,17677,17679,17716,17717,17718,17719,17762,17763,17766,17767,17680,17681,17684,17685,17905,17907,17909,17911,17708,17709,17710,17711,17688,17690,17692,17694,18960,18961,18964,18965,17897,17899,17901,17903,17700,17701,17702,17703,18984,18985,18988,18989,20508,20509,20510,20511,17722,17723,17726,17727,18992,18993,18996,18997,17705,17707,17709,17711,20500,20501,20502,20503,17714,17715,17718,17719,18944,18945,18948,18949,17873,17875,17877,17879,20492,20493,20494,20495,17786,17787,17790,17791,17720,17722,17724,17726,17865,17867,17869,17871,20484,20485,20486,20487,17730,17731,17734,17735,20476,20477,20478,20479,17738,17739,17742,17743,17785,17787,17789,17791,17752,17753,17754,17755,20468,20469,20470,20471,17777,17779,17781,17783,17744,17745,17746,17747,17752,17753,17756,17757,17769,17771,17773,17775,17761,17763,17765,17767,17788,17789,17790,17791,17770,17771,17774,17775,17817,17819,17821,17823,17780,17781,17782,17783,17809,17811,17813,17815,20428,20429,20430,20431,17784,17785,17788,17789,17801,17803,17805,17807,20420,20421,20422,20423,17793,17795,17797,17799,20412,20413,20414,20415,17802,17803,17806,17807,17864,17865,17868,17869,17849,17851,17853,17855,17816,17817,17818,17819,20404,20405,20406,20407,17841,17843,17845,17847,17808,17809,17810,17811,17816,17817,17820,17821,17833,17835,17837,17839,18024,18025,18026,18027,17904,17905,17908,17909,17825,17827,17829,17831,18000,18001,18002,18003,17852,17853,17854,17855,17834,17835,17838,17839,17912,17913,17916,17917,18129,18131,18133,18135,17992,17993,17994,17995,17844,17845,17846,17847,18113,18115,18117,18119,18032,18033,18034,18035,20364,20365,20366,20367,17848,17849,17852,17853,18161,18163,18165,18167,20356,20357,20358,20359,17856,17857,17860,17861,18153,18155,18157,18159,20348,20349,20350,20351,17864,17866,17868,17870,17880,17881,17884,17885,18345,18347,18349,18351,17912,17913,17914,17915,20340,20341,20342,20343,17872,17873,17876,17877,17904,17905,17906,17907,20332,20333,20334,20335,18936,18937,18940,18941,17881,17883,17885,17887,17896,17897,17898,17899,20324,20325,20326,20327,18928,18929,18932,18933,18337,18339,18341,18343,17888,17889,17890,17891,17914,17915,17918,17919,17896,17898,17900,17902,18920,18921,18924,18925,18361,18363,18365,18367,17944,17945,17946,17947,17906,17907,17910,17911,18912,18913,18916,18917,17936,17937,17938,17939,17913,17915,17917,17919,17928,17929,17930,17931,18353,18355,18357,18359,17920,17921,17922,17923,17994,17995,17998,17999,17928,17930,17932,17934,17944,17945,17948,17949,18393,18395,18397,18399,17976,17977,17978,17979,18002,18003,18006,18007,17936,17937,17940,17941,17968,17969,17970,17971,18904,18905,18908,18909,17945,17947,17949,17951,17960,17961,17962,17963,18896,18897,18900,18901,18369,18371,18373,18375,17952,17953,17954,17955,17978,17979,17982,17983,17960,17962,17964,17966,18888,18889,18892,18893,18425,18427,18429,18431,17970,17971,17974,17975,18880,18881,18884,18885,18010,18011,18014,18015,17977,17979,17981,17983,17986,17987,17990,17991,18401,18403,18405,18407,17996,17997,17998,17999,18042,18043,18046,18047,18008,18010,18012,18014,18073,18075,18077,18079,18034,18035,18038,18039,18000,18002,18004,18006,18081,18083,18085,18087,18026,18027,18030,18031,18008,18009,18010,18011,18018,18019,18022,18023,18028,18029,18030,18031,18041,18043,18045,18047,18033,18035,18037,18039,18105,18107,18109,18111,18040,18041,18042,18043,18049,18051,18053,18055,18108,18109,18110,18111,18072,18073,18076,18077,18057,18059,18061,18063,18100,18101,18102,18103,18064,18065,18068,18069,18217,18219,18221,18223,18092,18093,18094,18095,18072,18074,18076,18078,18408,18409,18412,18413,18225,18227,18229,18231,18084,18085,18086,18087,18400,18401,18404,18405,18132,18133,18134,18135,18106,18107,18110,18111,18392,18393,18396,18397,18089,18091,18093,18095,18140,18141,18142,18143,18098,18099,18102,18103,18384,18385,18388,18389,18233,18235,18237,18239,18124,18125,18126,18127,18104,18106,18108,18110,18209,18211,18213,18215,18116,18117,18118,18119,18164,18165,18166,18167,18128,18129,18132,18133,18121,18123,18125,18127,18172,18173,18174,18175,18136,18137,18140,18141,18201,18203,18205,18207,18156,18157,18158,18159,18352,18353,18356,18357,18137,18139,18141,18143,18148,18149,18150,18151,18296,18297,18300,18301,18193,18195,18197,18199,19972,19973,19974,19975,18170,18171,18174,18175,18152,18154,18156,18158,18304,18305,18308,18309,18185,18187,18189,18191,19980,19981,19982,19983,18162,18163,18166,18167,18344,18345,18348,18349,20116,20117,20118,20119,18169,18171,18173,18175,20108,20109,20110,20111,18177,18179,18181,18183,20100,20101,20102,20103,18184,18185,18188,18189,18200,18201,18202,18203,20012,20013,20014,20015,18312,18313,18316,18317,18192,18193,18194,18195,18202,18203,18206,18207,18288,18289,18292,18293,18232,18233,18234,18235,18208,18209,18210,18211,18232,18233,18236,18237,18216,18217,18218,18219,18224,18225,18228,18229,18236,18237,18238,18239,18248,18249,18252,18253,18240,18241,18244,18245,18292,18293,18294,18295,18384,18386,18388,18390,18264,18265,18268,18269,18248,18249,18250,18251,18408,18410,18412,18414,18256,18257,18260,18261,18268,18269,18270,18271,18416,18418,18420,18422,18608,18609,18612,18613,18276,18277,18278,18279,18376,18378,18380,18382,18592,18593,18596,18597,18324,18325,18326,18327,18290,18291,18294,18295,18280,18282,18284,18286,18584,18585,18588,18589,18332,18333,18334,18335,18298,18299,18302,18303,18360,18362,18364,18366,18504,18505,18508,18509,18376,18377,18378,18379,18316,18317,18318,18319,18296,18298,18300,18302,18308,18309,18310,18311,18352,18354,18356,18358,18384,18385,18386,18387,19996,19997,19998,19999,18344,18346,18348,18350,18328,18329,18332,18333,18313,18315,18317,18319,20004,20005,20006,20007,18320,18321,18324,18325,19764,19765,19766,19767,18328,18330,18332,18334,18560,18561,18564,18565,19772,19773,19774,19775,18336,18338,18340,18342,18552,18553,18556,18557,19780,19781,19782,19783,18346,18347,18350,18351,18544,18545,18548,18549,18360,18361,18362,18363,19988,19989,19990,19991,18352,18353,18354,18355,18360,18361,18364,18365,18392,18393,18394,18395,18496,18497,18500,18501,18368,18369,18370,18371,18394,18395,18398,18399,18488,18489,18492,18493,18377,18379,18381,18383,18424,18425,18426,18427,18386,18387,18390,18391,18480,18481,18484,18485,18416,18417,18418,18419,18392,18394,18396,18398,18408,18409,18410,18411,18400,18401,18402,18403,18424,18425,18428,18429,18409,18411,18413,18415,18416,18417,18420,18421,18424,18426,18428,18430,18440,18441,18444,18445,18432,18433,18436,18437,18492,18493,18494,18495,18888,18890,18892,18894,18456,18457,18460,18461,18441,18443,18445,18447,18484,18485,18486,18487,18448,18449,18452,18453,18609,18611,18613,18615,18476,18477,18478,18479,18456,18458,18460,18462,18704,18705,18708,18709,18617,18619,18621,18623,18468,18469,18470,18471,18728,18730,18732,18734,18712,18713,18716,18717,18516,18517,18518,18519,18490,18491,18494,18495,18736,18738,18740,18742,18688,18689,18692,18693,18473,18475,18477,18479,18524,18525,18526,18527,18482,18483,18486,18487,18696,18697,18700,18701,18601,18603,18605,18607,18508,18509,18510,18511,18488,18490,18492,18494,18593,18595,18597,18599,18500,18501,18502,18503,18896,18898,18900,18902,18548,18549,18550,18551,18920,18922,18924,18926,18512,18513,18516,18517,18505,18507,18509,18511,18556,18557,18558,18559,18520,18521,18524,18525,18585,18587,18589,18591,18540,18541,18542,18543,19080,19082,19084,19086,18680,18681,18684,18685,18521,18523,18525,18527,18532,18533,18534,18535,18648,18649,18652,18653,18577,18579,18581,18583,19588,19589,19590,19591,18554,18555,18558,18559,18536,18538,18540,18542,18664,18665,18668,18669,18569,18571,18573,18575,19596,19597,19598,19599,18546,18547,18550,18551,19088,19090,19092,19094,18672,18673,18676,18677,19788,19789,19790,19791,18928,18930,18932,18934,18553,18555,18557,18559,19748,19749,19750,19751,18561,18563,18565,18567,19756,19757,19758,19759,18568,18569,18572,18573,18584,18585,18586,18587,19628,19629,19630,19631,18656,18657,18660,18661,18576,18577,18578,18579,18586,18587,18590,18591,18640,18641,18644,18645,18600,18601,18602,18603,18592,18593,18594,18595,18600,18601,18604,18605,18608,18609,18610,18611,18632,18633,18636,18637,18616,18617,18618,18619,18616,18617,18620,18621,18624,18625,18628,18629,18636,18637,18638,18639,18704,18706,18708,18710,18644,18645,18646,18647,18696,18698,18700,18702,18660,18661,18662,18663,18648,18650,18652,18654,18668,18669,18670,18671,18680,18682,18684,18686,18696,18697,18698,18699,19620,19621,19622,19623,18664,18666,18668,18670,19612,19613,19614,19615,18672,18674,18676,18678,19604,19605,19606,19607,19096,19098,19100,19102,18680,18681,18682,18683,19072,19074,19076,19078,18688,18689,18690,18691,18744,18746,18748,18750,18697,18699,18701,18703,18712,18713,18714,18715,18704,18705,18706,18707,18712,18714,18716,18718,18720,18722,18724,18726,18748,18749,18750,18751,18730,18731,18734,18735,18776,18778,18780,18782,18740,18741,18742,18743,18890,18891,18894,18895,18768,18770,18772,18774,19084,19085,19086,19087,18898,18899,18902,18903,18760,18762,18764,18766,18744,18745,18748,18749,19076,19077,19078,19079,18752,18754,18756,18758,19068,19069,19070,19071,18762,18763,18766,18767,18800,18802,18804,18806,18776,18777,18778,18779,19060,19061,19062,19063,18906,18907,18910,18911,18808,18810,18812,18814,18768,18769,18770,18771,18882,18883,18886,18887,18792,18794,18796,18798,18776,18777,18780,18781,18784,18786,18788,18790,18804,18805,18806,18807,18794,18795,18798,18799,18832,18834,18836,18838,18812,18813,18814,18815,18874,18875,18878,18879,18840,18842,18844,18846,19028,19029,19030,19031,18810,18811,18814,18815,18824,18826,18828,18830,18972,18973,18974,18975,18866,18867,18870,18871,18816,18818,18820,18822,18980,18981,18982,18983,18858,18859,18862,18863,18824,18825,18828,18829,18840,18841,18842,18843,19020,19021,19022,19023,18832,18833,18834,18835,18842,18843,18846,18847,18850,18851,18854,18855,18860,18861,18862,18863,18873,18875,18877,18879,18988,18989,18990,18991,18865,18867,18869,18871,18964,18965,18966,18967,18905,18907,18909,18911,18872,18873,18874,18875,18881,18883,18885,18887,18908,18909,18910,18911,18889,18891,18893,18895,18900,18901,18902,18903,18924,18925,18926,18927,18904,18906,18908,18910,18916,18917,18918,18919,18940,18941,18942,18943,18960,18962,18964,18966,19056,19057,19060,19061,18921,18923,18925,18927,18932,18933,18934,18935,19080,19081,19084,19085,19276,19277,19278,19279,18936,18938,18940,18942,19088,19089,19092,19093,19268,19269,19270,19271,18944,18946,18948,18950,19048,19049,19052,19053,19260,19261,19262,19263,18992,18994,18996,18998,18952,18953,18956,18957,18960,18961,18962,18963,19180,19181,19182,19183,19000,19002,19004,19006,19032,19033,19036,19037,19049,19051,19053,19055,18968,18969,18970,18971,18984,18986,18988,18990,18968,18969,18972,18973,18976,18978,18980,18982,19024,19025,19028,19029,19057,19059,19061,19063,19004,19005,19006,19007,18986,18987,18990,18991,19016,19017,19020,19021,18996,18997,18998,18999,19236,19237,19238,19239,19000,19001,19004,19005,19228,19229,19230,19231,19008,19009,19012,19013,19220,19221,19222,19223,19033,19035,19037,19039,19016,19017,19018,19019,19025,19027,19029,19031,19036,19037,19038,19039,19065,19067,19069,19071,19172,19173,19174,19175,19041,19043,19045,19047,19164,19165,19166,19167,19050,19051,19054,19055,19097,19099,19101,19103,19064,19065,19066,19067,19156,19157,19158,19159,19089,19091,19093,19095,19056,19057,19058,19059,19064,19065,19068,19069,19081,19083,19085,19087,19073,19075,19077,19079,19100,19101,19102,19103,19082,19083,19086,19087,19092,19093,19094,19095,19116,19117,19118,19119,19096,19097,19100,19101,19108,19109,19110,19111,19132,19133,19134,19135,19114,19115,19118,19119,19160,19162,19164,19166,19601,19603,19605,19607,19124,19125,19126,19127,19274,19275,19278,19279,19152,19154,19156,19158,19593,19595,19597,19599,19468,19469,19470,19471,19282,19283,19286,19287,19144,19146,19148,19150,19128,19129,19132,19133,19569,19571,19573,19575,19460,19461,19462,19463,19136,19138,19140,19142,19553,19555,19557,19559,19452,19453,19454,19455,19146,19147,19150,19151,19184,19186,19188,19190,19160,19161,19162,19163,19444,19445,19446,19447,19290,19291,19294,19295,19192,19194,19196,19198,19152,19153,19154,19155,19266,19267,19270,19271,19176,19178,19180,19182,19160,19161,19164,19165,19168,19170,19172,19174,19188,19189,19190,19191,19178,19179,19182,19183,19216,19218,19220,19222,19196,19197,19198,19199,19258,19259,19262,19263,19224,19226,19228,19230,19412,19413,19414,19415,19194,19195,19198,19199,19208,19210,19212,19214,19356,19357,19358,19359,19250,19251,19254,19255,19200,19202,19204,19206,19364,19365,19366,19367,19242,19243,19246,19247,19208,19209,19212,19213,19224,19225,19226,19227,19404,19405,19406,19407,19216,19217,19218,19219,19226,19227,19230,19231,19234,19235,19238,19239,19244,19245,19246,19247,20506,20507,20510,20511,19257,19259,19261,19263,19372,19373,19374,19375,20514,20515,20518,20519,19249,19251,19253,19255,19348,19349,19350,19351,20522,20523,20526,20527,19289,19291,19293,19295,19256,19257,19258,19259,20498,20499,20502,20503,19265,19267,19269,19271,19292,19293,19294,19295,20330,20331,20334,20335,19273,19275,19277,19279,19284,19285,19286,19287,20322,20323,20326,20327,19785,19787,19789,19791,19308,19309,19310,19311,20314,20315,20318,20319,19288,19290,19292,19294,19793,19795,19797,19799,19300,19301,19302,19303,20306,20307,20310,20311,19324,19325,19326,19327,20266,20267,20270,20271,19344,19346,19348,19350,19440,19441,19444,19445,19305,19307,19309,19311,19316,19317,19318,19319,20258,20259,20262,20263,19464,19465,19468,19469,19833,19835,19837,19839,22028,22029,22030,22031,20250,20251,20254,20255,19320,19322,19324,19326,19472,19473,19476,19477,19841,19843,19845,19847,22020,22021,22022,22023,20242,20243,20246,20247,19328,19330,19332,19334,19432,19433,19436,19437,22012,22013,22014,22015,20586,20587,20590,20591,19376,19378,19380,19382,19336,19337,19340,19341,19344,19345,19346,19347,21932,21933,21934,21935,19384,19386,19388,19390,19416,19417,19420,19421,19433,19435,19437,19439,19352,19353,19354,19355,20562,20563,20566,20567,19368,19370,19372,19374,19352,19353,19356,19357,19360,19362,19364,19366,19408,19409,19412,19413,19441,19443,19445,19447,19388,19389,19390,19391,19370,19371,19374,19375,19400,19401,19404,19405,19380,19381,19382,19383,20570,20571,20574,20575,21988,21989,21990,21991,20578,20579,20582,20583,19384,19385,19388,19389,21980,21981,21982,21983,19392,19393,19396,19397,21972,21973,21974,21975,19417,19419,19421,19423,19400,19401,19402,19403,19409,19411,19413,19415,19420,19421,19422,19423,19449,19451,19453,19455,21924,21925,21926,21927,19425,19427,19429,19431,21916,21917,21918,21919,19434,19435,19438,19439,19481,19483,19485,19487,19448,19449,19450,19451,21908,21909,21910,21911,19473,19475,19477,19479,19440,19441,19442,19443,19448,19449,19452,19453,19465,19467,19469,19471,19457,19459,19461,19463,19484,19485,19486,19487,19466,19467,19470,19471,19545,19547,19549,19551,19476,19477,19478,19479,19521,19523,19525,19527,21868,21869,21870,21871,19480,19481,19484,19485,19513,19515,19517,19519,21860,21861,21862,21863,19489,19491,19493,19495,21852,21853,21854,21855,19514,19515,19518,19519,19497,19499,19501,19503,19544,19545,19546,19547,21844,21845,21846,21847,19506,19507,19510,19511,19657,19659,19661,19663,19536,19537,19538,19539,21588,21589,21590,21591,19850,19851,19854,19855,19512,19514,19516,19518,19665,19667,19669,19671,19528,19529,19530,19531,21596,21597,21598,21599,19842,19843,19846,19847,19520,19521,19522,19523,19834,19835,19838,19839,19544,19545,19548,19549,19529,19531,19533,19535,19568,19569,19570,19571,19826,19827,19830,19831,19536,19537,19540,19541,19673,19675,19677,19679,19576,19577,19578,19579,19544,19546,19548,19550,19649,19651,19653,19655,19560,19561,19562,19563,19552,19553,19554,19555,19570,19571,19574,19575,19561,19563,19565,19567,19600,19601,19602,19603,19578,19579,19582,19583,19641,19643,19645,19647,19608,19609,19610,19611,19794,19795,19798,19799,19577,19579,19581,19583,19592,19593,19594,19595,19738,19739,19742,19743,19633,19635,19637,19639,19584,19585,19586,19587,19746,19747,19750,19751,19592,19594,19596,19598,19608,19609,19612,19613,19625,19627,19629,19631,19786,19787,19790,19791,19600,19601,19604,19605,19609,19611,19613,19615,19617,19619,19621,19623,19644,19645,19646,19647,19626,19627,19630,19631,19636,19637,19638,19639,19754,19755,19758,19759,19676,19677,19678,19679,19730,19731,19734,19735,19640,19641,19644,19645,19652,19653,19654,19655,19660,19661,19662,19663,19674,19675,19678,19679,21764,21765,21766,21767,19666,19667,19670,19671,21756,21757,21758,21759,19690,19691,19694,19695,19672,19673,19674,19675,19682,19683,19686,19687,19692,19693,19694,19695,19706,19707,19710,19711,19824,19826,19828,19830,19728,19729,19730,19731,21748,21749,21750,21751,19698,19699,19702,19703,19848,19850,19852,19854,21396,21397,21398,21399,20050,20051,20054,20055,19856,19858,19860,19862,19704,19705,19706,19707,20034,20035,20038,20039,19816,19818,19820,19822,19712,19713,19714,19715,20026,20027,20030,20031,19720,19722,19724,19726,19728,19729,19732,19733,19760,19761,19762,19763,19820,19821,19822,19823,19946,19947,19950,19951,19800,19802,19804,19806,19736,19737,19740,19741,19768,19769,19770,19771,19736,19738,19740,19742,19752,19753,19754,19755,19828,19829,19830,19831,19792,19794,19796,19798,19744,19745,19746,19747,19770,19771,19774,19775,19784,19786,19788,19790,19753,19755,19757,19759,19762,19763,19766,19767,20002,20003,20006,20007,19768,19770,19772,19774,19994,19995,19998,19999,19776,19778,19780,19782,19804,19805,19806,19807,19986,19987,19990,19991,20320,20322,20324,20326,19784,19785,19788,19789,19796,19797,19798,19799,19836,19837,19838,19839,19802,19803,19806,19807,19812,19813,19814,19815,19938,19939,19942,19943,20312,20314,20316,20318,19868,19869,19870,19871,19930,19931,19934,19935,20256,20258,20260,20262,19832,19833,19836,19837,19817,19819,19821,19823,19860,19861,19862,19863,19922,19923,19926,19927,19824,19825,19828,19829,19852,19853,19854,19855,19832,19834,19836,19838,19844,19845,19846,19847,21572,21573,21574,21575,19866,19867,19870,19871,19849,19851,19853,19855,21580,21581,21582,21583,19858,19859,19862,19863,21556,21557,21558,21559,19882,19883,19886,19887,19864,19866,19868,19870,21564,21565,21566,21567,19874,19875,19878,19879,20248,20250,20252,20254,21540,21541,21542,21543,19898,19899,19902,19903,20224,20226,20228,20230,19881,19883,19885,19887,19928,19929,19930,19931,21548,21549,21550,21551,19890,19891,19894,19895,20049,20051,20053,20055,19920,19921,19922,19923,21204,21205,21206,21207,20146,20147,20150,20151,19896,19898,19900,19902,20057,20059,20061,20063,19912,19913,19914,19915,21212,21213,21214,21215,20154,20155,20158,20159,20216,20218,20220,20222,19904,19905,19906,19907,20130,20131,20134,20135,20208,20210,20212,20214,19928,19929,19932,19933,19913,19915,19917,19919,19952,19953,19954,19955,20138,20139,20142,20143,19920,19921,19924,19925,20041,20043,20045,20047,19960,19961,19962,19963,19928,19930,19932,19934,20033,20035,20037,20039,19944,19945,19946,19947,20280,20282,20284,20286,19936,19937,19938,19939,19954,19955,19958,19959,20288,20290,20292,20294,19945,19947,19949,19951,19984,19985,19986,19987,19962,19963,19966,19967,20025,20027,20029,20031,19992,19993,19994,19995,20122,20123,20126,20127,20376,20378,20380,20382,19961,19963,19965,19967,19976,19977,19978,19979,20090,20091,20094,20095,20017,20019,20021,20023,19968,19969,19970,19971,20106,20107,20110,20111,19976,19978,19980,19982,19992,19993,19996,19997,20009,20011,20013,20015,20114,20115,20118,20119,20352,20354,20356,20358,19984,19985,19988,19989,20344,20346,20348,20350,19993,19995,19997,19999,20001,20003,20005,20007,20028,20029,20030,20031,20010,20011,20014,20015,20020,20021,20022,20023,20098,20099,20102,20103,20044,20045,20046,20047,20082,20083,20086,20087,20024,20025,20028,20029,20036,20037,20038,20039,20052,20053,20054,20055,20042,20043,20046,20047,20060,20061,20062,20063,20074,20075,20078,20079,21388,21389,21390,21391,20058,20059,20062,20063,21364,21365,21366,21367,20066,20067,20070,20071,21356,21357,21358,21359,24714,24715,24718,24719,20144,20146,20148,20150,20072,20073,20074,20075,20136,20138,20140,20142,20080,20081,20082,20083,20088,20090,20092,20094,20096,20097,20098,20099,20140,20141,20142,20143,20120,20122,20124,20126,20104,20105,20106,20107,20104,20106,20108,20110,20112,20114,20116,20118,20124,20125,20126,20127,20360,20362,20364,20366,20132,20133,20134,20135,20368,20370,20372,20374,20156,20157,20158,20159,20168,20170,20172,20174,20137,20139,20141,20143,20148,20149,20150,20151,21196,21197,21198,21199,24658,24659,24662,24663,20152,20154,20156,20158,21188,21189,21190,21191,24650,24651,24654,24655,20160,20162,20164,20166,21180,21181,21182,21183,24234,24235,24238,24239,20184,20186,20188,20190,20216,20217,20220,20221,20168,20169,20170,20171,20176,20178,20180,20182,20208,20209,20212,20213,20368,20369,20370,20371,20188,20189,20190,20191,20648,20650,20652,20654,20200,20201,20204,20205,20392,20393,20394,20395,21156,21157,21158,21159,24194,24195,24198,24199,20640,20642,20644,20646,20192,20193,20196,20197,21148,21149,21150,21151,20632,20634,20636,20638,20232,20233,20236,20237,20217,20219,20221,20223,20200,20201,20202,20203,20624,20626,20628,20630,20272,20273,20276,20277,20209,20211,20213,20215,20384,20385,20386,20387,20220,20221,20222,20223,20280,20281,20284,20285,20376,20377,20378,20379,21124,21125,21126,21127,20224,20225,20228,20229,21116,21117,21118,21119,20232,20234,20236,20238,20248,20249,20252,20253,20280,20281,20282,20283,21108,21109,21110,21111,20592,20594,20596,20598,20240,20241,20244,20245,20272,20273,20274,20275,21100,21101,21102,21103,20584,20586,20588,20590,20249,20251,20253,20255,20264,20265,20266,20267,21092,21093,21094,21095,20256,20257,20258,20259,20282,20283,20286,20287,20264,20266,20268,20270,20312,20313,20314,20315,20274,20275,20278,20279,20560,20562,20564,20566,20304,20305,20306,20307,20552,20554,20556,20558,20281,20283,20285,20287,20296,20297,20298,20299,20288,20289,20290,20291,20378,20379,20382,20383,20296,20298,20300,20302,20312,20313,20316,20317,20344,20345,20346,20347,20386,20387,20390,20391,20528,20530,20532,20534,20304,20305,20308,20309,20336,20337,20338,20339,20520,20522,20524,20526,20313,20315,20317,20319,20328,20329,20330,20331,20320,20321,20322,20323,20346,20347,20350,20351,20328,20330,20332,20334,20338,20339,20342,20343,20496,20498,20500,20502,20410,20411,20414,20415,20488,20490,20492,20494,20345,20347,20349,20351,20354,20355,20358,20359,20380,20381,20382,20383,20362,20363,20366,20367,20408,20410,20412,20414,20372,20373,20374,20375,20400,20402,20404,20406,20392,20394,20396,20398,20376,20377,20380,20381,20384,20386,20388,20390,20394,20395,20398,20399,20440,20442,20444,20446,20408,20409,20410,20411,20432,20434,20436,20438,20400,20401,20402,20403,20424,20426,20428,20430,20408,20409,20412,20413,20416,20418,20420,20422,20444,20445,20446,20447,20426,20427,20430,20431,20472,20474,20476,20478,20488,20489,20492,20493,20436,20437,20438,20439,20464,20466,20468,20470,20652,20653,20654,20655,20456,20458,20460,20462,20440,20441,20444,20445,20628,20629,20630,20631,20448,20450,20452,20454,20528,20529,20532,20533,20620,20621,20622,20623,20458,20459,20462,20463,20536,20537,20540,20541,20472,20473,20474,20475,20660,20661,20662,20663,20464,20465,20466,20467,20472,20473,20476,20477,20480,20481,20484,20485,20540,20541,20542,20543,20504,20505,20508,20509,20489,20491,20493,20495,20532,20533,20534,20535,20496,20497,20500,20501,20524,20525,20526,20527,20504,20506,20508,20510,20516,20517,20518,20519,20572,20573,20574,20575,20538,20539,20542,20543,20521,20523,20525,20527,20564,20565,20566,20567,20530,20531,20534,20535,20556,20557,20558,20559,20536,20538,20540,20542,20548,20549,20550,20551,20604,20605,20606,20607,20618,20619,20622,20623,20568,20569,20572,20573,20553,20555,20557,20559,20596,20597,20598,20599,20626,20627,20630,20631,20560,20561,20564,20565,20588,20589,20590,20591,20568,20570,20572,20574,20580,20581,20582,20583,20764,20765,20766,20767,20602,20603,20606,20607,20585,20587,20589,20591,20756,20757,20758,20759,20594,20595,20598,20599,20748,20749,20750,20751,20634,20635,20638,20639,20600,20602,20604,20606,20740,20741,20742,20743,20610,20611,20614,20615,20732,20733,20734,20735,20666,20667,20670,20671,20633,20635,20637,20639,20616,20617,20618,20619,20658,20659,20662,20663,20625,20627,20629,20631,20636,20637,20638,20639,20650,20651,20654,20655,20708,20709,20710,20711,20642,20643,20646,20647,20700,20701,20702,20703,24170,24171,24174,24175,20664,20666,20668,20670,20648,20649,20650,20651,20656,20658,20660,20662,20668,20669,20670,20671,20676,20677,20678,20679,24130,24131,24134,24135,20684,20685,20686,20687,24138,24139,24142,24143,20728,20729,20732,20733,20697,20699,20701,20703,20884,20885,20886,20887,23938,23939,23942,23943,20720,20721,20724,20725,20689,20691,20693,20695,20908,20909,20910,20911,23946,23947,23950,23951,20712,20713,20716,20717,21161,21163,21165,21167,20696,20697,20698,20699,24162,24163,24166,24167,20704,20705,20708,20709,21153,21155,21157,21159,20716,20717,20718,20719,20728,20730,20732,20734,20744,20745,20748,20749,21145,21147,21149,21151,20900,20901,20902,20903,20720,20722,20724,20726,20784,20785,20788,20789,21137,21139,21141,21143,20892,20893,20894,20895,20792,20793,20796,20797,20728,20729,20730,20731,20736,20737,20740,20741,20796,20797,20798,20799,20760,20761,20764,20765,20745,20747,20749,20751,20788,20789,20790,20791,20752,20753,20756,20757,21105,21107,21109,21111,20780,20781,20782,20783,20760,20762,20764,20766,22008,22009,22012,22013,21097,21099,21101,21103,20772,20773,20774,20775,21984,21985,21988,21989,20828,20829,20830,20831,20794,20795,20798,20799,21992,21993,21996,21997,20777,20779,20781,20783,20820,20821,20822,20823,20786,20787,20790,20791,22000,22001,22004,22005,21073,21075,21077,21079,20812,20813,20814,20815,20792,20794,20796,20798,21065,21067,21069,21071,20804,20805,20806,20807,20860,20861,20862,20863,20890,20891,20894,20895,20824,20825,20828,20829,20809,20811,20813,20815,20852,20853,20854,20855,20898,20899,20902,20903,20816,20817,20820,20821,21041,21043,21045,21047,20844,20845,20846,20847,20824,20826,20828,20830,22096,22097,22100,22101,21033,21035,21037,21039,20836,20837,20838,20839,22120,22121,22124,22125,23308,23309,23310,23311,20858,20859,20862,20863,22128,22129,22132,22133,20841,20843,20845,20847,23300,23301,23302,23303,20850,20851,20854,20855,22080,22081,22084,22085,21009,21011,21013,21015,23276,23277,23278,23279,20922,20923,20926,20927,20856,20858,20860,20862,21001,21003,21005,21007,23260,23261,23262,23263,20866,20867,20870,20871,23252,23253,23254,23255,20874,20875,20878,20879,20921,20923,20925,20927,20888,20889,20890,20891,23244,23245,23246,23247,23922,23923,23926,23927,20913,20915,20917,20919,20880,20881,20882,20883,23930,23931,23934,23935,20888,20889,20892,20893,20905,20907,20909,20911,20897,20899,20901,20903,20924,20925,20926,20927,20906,20907,20910,20911,20953,20955,20957,20959,20916,20917,20918,20919,23954,23955,23958,23959,20945,20947,20949,20951,23236,23237,23238,23239,23866,23867,23870,23871,20920,20921,20924,20925,20937,20939,20941,20943,23228,23229,23230,23231,20929,20931,20933,20935,23220,23221,23222,23223,20938,20939,20942,20943,21000,21001,21004,21005,20985,20987,20989,20991,20952,20953,20954,20955,23212,23213,23214,23215,23858,23859,23862,23863,20977,20979,20981,20983,20944,20945,20946,20947,24410,24411,24414,24415,20952,20953,20956,20957,20969,20971,20973,20975,21160,21161,21162,21163,21040,21041,21044,21045,20961,20963,20965,20967,21136,21137,21138,21139,20988,20989,20990,20991,20970,20971,20974,20975,21048,21049,21052,21053,21265,21267,21269,21271,21128,21129,21130,21131,20980,20981,20982,20983,24434,24435,24438,24439,21249,21251,21253,21255,21168,21169,21170,21171,23204,23205,23206,23207,23834,23835,23838,23839,20984,20985,20988,20989,21297,21299,21301,21303,23196,23197,23198,23199,20992,20993,20996,20997,21289,21291,21293,21295,23188,23189,23190,23191,21000,21002,21004,21006,21016,21017,21020,21021,21481,21483,21485,21487,21048,21049,21050,21051,23180,23181,23182,23183,21008,21009,21012,21013,21040,21041,21042,21043,23172,23173,23174,23175,22072,22073,22076,22077,21017,21019,21021,21023,21032,21033,21034,21035,23164,23165,23166,23167,22064,22065,22068,22069,21473,21475,21477,21479,21024,21025,21026,21027,21050,21051,21054,21055,21032,21034,21036,21038,22056,22057,22060,22061,21497,21499,21501,21503,21080,21081,21082,21083,21042,21043,21046,21047,22048,22049,22052,22053,21072,21073,21074,21075,21049,21051,21053,21055,21064,21065,21066,21067,21489,21491,21493,21495,21056,21057,21058,21059,21130,21131,21134,21135,21064,21066,21068,21070,21080,21081,21084,21085,21529,21531,21533,21535,21112,21113,21114,21115,21138,21139,21142,21143,21072,21073,21076,21077,21104,21105,21106,21107,22040,22041,22044,22045,21081,21083,21085,21087,21096,21097,21098,21099,22032,22033,22036,22037,21505,21507,21509,21511,21088,21089,21090,21091,21114,21115,21118,21119,21096,21098,21100,21102,22024,22025,22028,22029,21561,21563,21565,21567,21106,21107,21110,21111,22016,22017,22020,22021,21146,21147,21150,21151,21113,21115,21117,21119,21122,21123,21126,21127,21537,21539,21541,21543,21132,21133,21134,21135,21178,21179,21182,21183,21144,21146,21148,21150,21209,21211,21213,21215,21170,21171,21174,21175,21136,21138,21140,21142,21217,21219,21221,21223,21162,21163,21166,21167,21144,21145,21146,21147,21154,21155,21158,21159,21164,21165,21166,21167,24202,24203,24206,24207,21177,21179,21181,21183,24418,24419,24422,24423,21169,21171,21173,21175,24426,24427,24430,24431,21241,21243,21245,21247,21176,21177,21178,21179,24226,24227,24230,24231,21185,21187,21189,21191,21244,21245,21246,21247,24674,24675,24678,24679,21208,21209,21212,21213,21193,21195,21197,21199,21236,21237,21238,21239,24666,24667,24670,24671,21200,21201,21204,21205,21353,21355,21357,21359,21228,21229,21230,21231,21208,21210,21212,21214,21544,21545,21548,21549,21361,21363,21365,21367,21220,21221,21222,21223,21536,21537,21540,21541,21268,21269,21270,21271,21242,21243,21246,21247,21528,21529,21532,21533,21225,21227,21229,21231,21276,21277,21278,21279,21234,21235,21238,21239,21520,21521,21524,21525,21369,21371,21373,21375,21260,21261,21262,21263,24458,24459,24462,24463,21240,21242,21244,21246,21345,21347,21349,21351,21252,21253,21254,21255,24450,24451,24454,24455,21300,21301,21302,21303,24442,24443,24446,24447,21264,21265,21268,21269,21257,21259,21261,21263,21308,21309,21310,21311,24466,24467,24470,24471,21272,21273,21276,21277,21337,21339,21341,21343,21292,21293,21294,21295,21488,21489,21492,21493,21273,21275,21277,21279,21284,21285,21286,21287,21432,21433,21436,21437,21329,21331,21333,21335,22908,22909,22910,22911,21306,21307,21310,21311,21288,21290,21292,21294,21440,21441,21444,21445,21321,21323,21325,21327,22900,22901,22902,22903,21298,21299,21302,21303,21480,21481,21484,21485,22996,22997,22998,22999,24994,24995,24998,24999,21305,21307,21309,21311,22988,22989,22990,22991,24834,24835,24838,24839,21313,21315,21317,21319,22980,22981,22982,22983,24826,24827,24830,24831,21320,21321,21324,21325,21336,21337,21338,21339,22916,22917,22918,22919,21448,21449,21452,21453,21328,21329,21330,21331,21338,21339,21342,21343,21424,21425,21428,21429,21368,21369,21370,21371,24818,24819,24822,24823,21344,21345,21346,21347,24810,24811,24814,24815,21368,21369,21372,21373,21352,21353,21354,21355,24706,24707,24710,24711,21360,21361,21364,21365,21372,21373,21374,21375,21384,21385,21388,21389,21376,21377,21380,21381,21428,21429,21430,21431,21520,21522,21524,21526,21400,21401,21404,21405,21384,21385,21386,21387,21544,21546,21548,21550,21392,21393,21396,21397,21404,21405,21406,21407,21552,21554,21556,21558,21744,21745,21748,21749,21412,21413,21414,21415,21512,21514,21516,21518,21728,21729,21732,21733,21460,21461,21462,21463,21426,21427,21430,21431,21416,21418,21420,21422,21720,21721,21724,21725,21468,21469,21470,21471,21434,21435,21438,21439,21496,21498,21500,21502,21640,21641,21644,21645,21512,21513,21514,21515,21452,21453,21454,21455,21432,21434,21436,21438,21444,21445,21446,21447,21488,21490,21492,21494,21520,21521,21522,21523,22892,22893,22894,22895,21480,21482,21484,21486,21464,21465,21468,21469,21449,21451,21453,21455,22924,22925,22926,22927,21456,21457,21460,21461,22708,22709,22710,22711,21464,21466,21468,21470,21696,21697,21700,21701,22716,22717,22718,22719,21472,21474,21476,21478,21688,21689,21692,21693,22748,22749,22750,22751,21482,21483,21486,21487,21680,21681,21684,21685,21496,21497,21498,21499,22884,22885,22886,22887,21488,21489,21490,21491,21496,21497,21500,21501,21528,21529,21530,21531,21632,21633,21636,21637,21504,21505,21506,21507,21530,21531,21534,21535,21624,21625,21628,21629,21513,21515,21517,21519,21560,21561,21562,21563,21522,21523,21526,21527,21616,21617,21620,21621,21552,21553,21554,21555,21528,21530,21532,21534,21544,21545,21546,21547,21536,21537,21538,21539,21560,21561,21564,21565,21545,21547,21549,21551,21552,21553,21556,21557,21560,21562,21564,21566,21576,21577,21580,21581,21568,21569,21572,21573,21628,21629,21630,21631,22024,22026,22028,22030,21592,21593,21596,21597,21577,21579,21581,21583,21620,21621,21622,21623,21584,21585,21588,21589,21745,21747,21749,21751,21612,21613,21614,21615,21592,21594,21596,21598,21840,21841,21844,21845,21753,21755,21757,21759,21604,21605,21606,21607,21864,21866,21868,21870,21848,21849,21852,21853,21652,21653,21654,21655,21626,21627,21630,21631,21872,21874,21876,21878,21824,21825,21828,21829,21609,21611,21613,21615,21660,21661,21662,21663,21618,21619,21622,21623,21832,21833,21836,21837,21737,21739,21741,21743,21644,21645,21646,21647,21624,21626,21628,21630,21729,21731,21733,21735,21636,21637,21638,21639,22032,22034,22036,22038,21684,21685,21686,21687,22056,22058,22060,22062,21648,21649,21652,21653,21641,21643,21645,21647,21692,21693,21694,21695,21656,21657,21660,21661,21721,21723,21725,21727,21676,21677,21678,21679,22216,22218,22220,22222,21816,21817,21820,21821,21657,21659,21661,21663,21668,21669,21670,21671,21784,21785,21788,21789,21713,21715,21717,21719,22620,22621,22622,22623,21690,21691,21694,21695,21672,21674,21676,21678,21800,21801,21804,21805,21705,21707,21709,21711,22612,22613,22614,22615,21682,21683,21686,21687,22224,22226,22228,22230,21808,21809,21812,21813,22740,22741,22742,22743,22064,22066,22068,22070,21689,21691,21693,21695,22732,22733,22734,22735,21697,21699,21701,21703,22724,22725,22726,22727,21704,21705,21708,21709,21720,21721,21722,21723,22628,22629,22630,22631,21792,21793,21796,21797,21712,21713,21714,21715,21722,21723,21726,21727,21776,21777,21780,21781,21736,21737,21738,21739,21728,21729,21730,21731,21736,21737,21740,21741,21744,21745,21746,21747,21768,21769,21772,21773,21752,21753,21754,21755,21752,21753,21756,21757,21760,21761,21764,21765,21772,21773,21774,21775,21840,21842,21844,21846,21780,21781,21782,21783,21832,21834,21836,21838,21796,21797,21798,21799,21784,21786,21788,21790,21804,21805,21806,21807,21816,21818,21820,21822,21832,21833,21834,21835,22636,22637,22638,22639,21800,21802,21804,21806,22604,22605,22606,22607,21808,21810,21812,21814,22596,22597,22598,22599,22232,22234,22236,22238,21816,21817,21818,21819,22208,22210,22212,22214,21824,21825,21826,21827,21880,21882,21884,21886,21833,21835,21837,21839,21848,21849,21850,21851,21840,21841,21842,21843,21848,21850,21852,21854,21856,21858,21860,21862,21884,21885,21886,21887,21866,21867,21870,21871,21912,21914,21916,21918,21876,21877,21878,21879,22026,22027,22030,22031,21904,21906,21908,21910,22220,22221,22222,22223,22034,22035,22038,22039,21896,21898,21900,21902,21880,21881,21884,21885,22212,22213,22214,22215,21888,21890,21892,21894,22204,22205,22206,22207,21898,21899,21902,21903,21936,21938,21940,21942,21912,21913,21914,21915,22196,22197,22198,22199,22042,22043,22046,22047,21944,21946,21948,21950,21904,21905,21906,21907,22018,22019,22022,22023,21928,21930,21932,21934,21912,21913,21916,21917,21920,21922,21924,21926,21940,21941,21942,21943,21930,21931,21934,21935,21968,21970,21972,21974,21948,21949,21950,21951,22010,22011,22014,22015,21976,21978,21980,21982,22164,22165,22166,22167,21946,21947,21950,21951,21960,21962,21964,21966,22108,22109,22110,22111,22002,22003,22006,22007,21952,21954,21956,21958,22116,22117,22118,22119,21994,21995,21998,21999,21960,21961,21964,21965,21976,21977,21978,21979,22156,22157,22158,22159,21968,21969,21970,21971,21978,21979,21982,21983,21986,21987,21990,21991,21996,21997,21998,21999,22009,22011,22013,22015,22124,22125,22126,22127,22001,22003,22005,22007,22100,22101,22102,22103,22041,22043,22045,22047,22008,22009,22010,22011,22017,22019,22021,22023,22044,22045,22046,22047,22025,22027,22029,22031,22036,22037,22038,22039,22060,22061,22062,22063,22040,22042,22044,22046,22052,22053,22054,22055,22076,22077,22078,22079,22096,22098,22100,22102,22192,22193,22196,22197,22057,22059,22061,22063,22068,22069,22070,22071,22216,22217,22220,22221,22420,22421,22422,22423,22072,22074,22076,22078,22224,22225,22228,22229,22404,22405,22406,22407,22080,22082,22084,22086,22184,22185,22188,22189,22396,22397,22398,22399,22128,22130,22132,22134,22088,22089,22092,22093,22096,22097,22098,22099,22316,22317,22318,22319,22136,22138,22140,22142,22168,22169,22172,22173,22185,22187,22189,22191,22104,22105,22106,22107,22120,22122,22124,22126,22104,22105,22108,22109,22112,22114,22116,22118,22160,22161,22164,22165,22193,22195,22197,22199,22140,22141,22142,22143,22122,22123,22126,22127,22152,22153,22156,22157,22132,22133,22134,22135,22372,22373,22374,22375,22136,22137,22140,22141,22364,22365,22366,22367,22144,22145,22148,22149,22356,22357,22358,22359,22169,22171,22173,22175,22152,22153,22154,22155,22161,22163,22165,22167,22172,22173,22174,22175,22201,22203,22205,22207,22308,22309,22310,22311,22177,22179,22181,22183,22300,22301,22302,22303,22186,22187,22190,22191,22233,22235,22237,22239,22200,22201,22202,22203,22292,22293,22294,22295,22225,22227,22229,22231,22192,22193,22194,22195,22200,22201,22204,22205,22217,22219,22221,22223,22209,22211,22213,22215,22236,22237,22238,22239,22218,22219,22222,22223,22228,22229,22230,22231,22252,22253,22254,22255,22232,22233,22236,22237,22244,22245,22246,22247,22268,22269,22270,22271,22250,22251,22254,22255,22296,22298,22300,22302,22593,22595,22597,22599,22260,22261,22262,22263,22418,22419,22422,22423,22288,22290,22292,22294,22609,22611,22613,22615,22516,22517,22518,22519,22426,22427,22430,22431,22280,22282,22284,22286,22264,22265,22268,22269,22561,22563,22565,22567,22524,22525,22526,22527,22272,22274,22276,22278,22585,22587,22589,22591,22500,22501,22502,22503,22282,22283,22286,22287,22320,22322,22324,22326,22296,22297,22298,22299,22508,22509,22510,22511,22410,22411,22414,22415,22328,22330,22332,22334,22288,22289,22290,22291,22402,22403,22406,22407,22312,22314,22316,22318,22296,22297,22300,22301,22304,22306,22308,22310,22324,22325,22326,22327,22314,22315,22318,22319,22352,22354,22356,22358,22332,22333,22334,22335,22394,22395,22398,22399,22360,22362,22364,22366,22492,22493,22494,22495,22330,22331,22334,22335,22344,22346,22348,22350,22460,22461,22462,22463,22386,22387,22390,22391,22336,22338,22340,22342,22476,22477,22478,22479,22378,22379,22382,22383,22344,22345,22348,22349,22360,22361,22362,22363,22484,22485,22486,22487,22352,22353,22354,22355,22362,22363,22366,22367,22370,22371,22374,22375,22380,22381,22382,22383,23306,23307,23310,23311,22393,22395,22397,22399,22468,22469,22470,22471,23314,23315,23318,23319,22385,22387,22389,22391,22452,22453,22454,22455,23290,23291,23294,23295,22409,22411,22413,22415,22392,22393,22394,22395,23298,23299,23302,23303,22401,22403,22405,22407,22412,22413,22414,22415,23170,23171,23174,23175,22417,22419,22421,22423,22444,22445,22446,22447,23130,23131,23134,23135,22425,22427,22429,22431,22428,22429,22430,22431,23162,23163,23166,23167,22737,22739,22741,22743,22436,22437,22438,22439,23154,23155,23158,23159,22777,22779,22781,22783,23146,23147,23150,23151,22440,22442,22444,22446,22512,22513,22516,22517,22785,22787,22789,22791,23138,23139,23142,23143,22448,22450,22452,22454,22504,22505,22508,22509,23330,23331,23334,23335,22464,22466,22468,22470,22456,22457,22460,22461,22472,22474,22476,22478,22488,22489,22492,22493,22505,22507,22509,22511,23322,23323,23326,23327,22472,22473,22476,22477,22480,22481,22484,22485,22489,22491,22493,22495,22497,22499,22501,22503,22506,22507,22510,22511,22521,22523,22525,22527,22513,22515,22517,22519,22520,22521,22524,22525,22553,22555,22557,22559,22529,22531,22533,22535,22554,22555,22558,22559,22537,22539,22541,22543,22584,22585,22586,22587,22546,22547,22550,22551,22649,22651,22653,22655,22576,22577,22578,22579,22794,22795,22798,22799,22552,22554,22556,22558,22657,22659,22661,22663,22568,22569,22570,22571,22786,22787,22790,22791,22560,22561,22562,22563,22778,22779,22782,22783,22584,22585,22588,22589,22569,22571,22573,22575,22608,22609,22610,22611,22770,22771,22774,22775,22576,22577,22580,22581,22665,22667,22669,22671,22616,22617,22618,22619,22584,22586,22588,22590,22641,22643,22645,22647,22600,22601,22602,22603,22592,22593,22594,22595,22610,22611,22614,22615,22601,22603,22605,22607,22618,22619,22622,22623,22633,22635,22637,22639,22738,22739,22742,22743,22617,22619,22621,22623,22730,22731,22734,22735,22625,22627,22629,22631,22668,22669,22670,22671,22722,22723,22726,22727,22632,22633,22636,22637,22644,22645,22646,22647,22652,22653,22654,22655,22666,22667,22670,22671,22658,22659,22662,22663,22682,22683,22686,22687,22664,22665,22666,22667,22674,22675,22678,22679,22684,22685,22686,22687,22698,22699,22702,22703,22768,22770,22772,22774,22720,22721,22722,22723,22690,22691,22694,22695,22792,22794,22796,22798,22946,22947,22950,22951,22800,22802,22804,22806,22696,22697,22698,22699,22930,22931,22934,22935,22760,22762,22764,22766,22704,22705,22706,22707,22922,22923,22926,22927,22712,22714,22716,22718,22720,22721,22724,22725,22764,22765,22766,22767,22890,22891,22894,22895,22744,22746,22748,22750,22728,22729,22732,22733,22728,22730,22732,22734,22772,22773,22774,22775,22736,22738,22740,22742,22780,22781,22782,22783,22746,22747,22750,22751,22756,22757,22758,22759,22882,22883,22886,22887,23160,23162,23164,23166,22812,22813,22814,22815,22874,22875,22878,22879,23152,23154,23156,23158,22776,22777,22780,22781,22761,22763,22765,22767,22804,22805,22806,22807,22866,22867,22870,22871,22768,22769,22772,22773,22796,22797,22798,22799,22776,22778,22780,22782,22788,22789,22790,22791,22810,22811,22814,22815,22793,22795,22797,22799,22802,22803,22806,22807,22826,22827,22830,22831,22808,22810,22812,22814,22818,22819,22822,22823,23144,23146,23148,23150,22842,22843,22846,22847,23096,23098,23100,23102,22825,22827,22829,22831,22872,22873,22874,22875,22834,22835,22838,22839,22945,22947,22949,22951,22864,22865,22866,22867,23018,23019,23022,23023,22840,22842,22844,22846,22953,22955,22957,22959,22856,22857,22858,22859,23026,23027,23030,23031,23088,23090,23092,23094,22848,22849,22850,22851,23002,23003,23006,23007,23080,23082,23084,23086,22872,22873,22876,22877,22857,22859,22861,22863,22896,22897,22898,22899,23010,23011,23014,23015,22864,22865,22868,22869,22937,22939,22941,22943,22904,22905,22906,22907,22872,22874,22876,22878,22929,22931,22933,22935,22888,22889,22890,22891,23104,23106,23108,23110,22880,22881,22882,22883,22898,22899,22902,22903,23184,23186,23188,23190,22889,22891,22893,22895,22906,22907,22910,22911,22921,22923,22925,22927,22994,22995,22998,22999,23192,23194,23196,23198,22905,22907,22909,22911,22986,22987,22990,22991,22913,22915,22917,22919,22940,22941,22942,22943,22978,22979,22982,22983,22920,22921,22924,22925,22932,22933,22934,22935,22948,22949,22950,22951,22938,22939,22942,22943,22956,22957,22958,22959,22970,22971,22974,22975,22954,22955,22958,22959,22962,22963,22966,22967,24938,24939,24942,24943,23016,23018,23020,23022,22968,22969,22970,22971,24890,24891,24894,24895,23008,23010,23012,23014,22976,22977,22978,22979,24882,24883,24886,24887,22984,22986,22988,22990,23012,23013,23014,23015,24874,24875,24878,24879,22992,22994,22996,22998,23004,23005,23006,23007,24986,24987,24990,24991,23200,23202,23204,23206,23028,23029,23030,23031,24978,24979,24982,24983,23040,23042,23044,23046,23009,23011,23013,23015,23020,23021,23022,23023,24898,24899,24902,24903,24946,24947,24950,24951,23024,23026,23028,23030,24954,24955,24958,24959,23032,23034,23036,23038,23506,23507,23510,23511,23056,23058,23060,23062,23088,23089,23092,23093,23040,23041,23042,23043,23498,23499,23502,23503,23048,23050,23052,23054,23080,23081,23084,23085,23200,23201,23202,23203,23060,23061,23062,23063,23490,23491,23494,23495,23392,23394,23396,23398,23072,23073,23076,23077,23208,23209,23210,23211,23482,23483,23486,23487,23384,23386,23388,23390,23064,23065,23068,23069,23376,23378,23380,23382,23112,23113,23116,23117,23089,23091,23093,23095,23072,23073,23074,23075,23368,23370,23372,23374,23120,23121,23124,23125,23081,23083,23085,23087,23216,23217,23218,23219,23092,23093,23094,23095,23104,23105,23108,23109,23192,23193,23194,23195,23096,23097,23100,23101,23112,23114,23116,23118,23144,23145,23148,23149,23104,23105,23106,23107,23120,23122,23124,23126,23152,23153,23156,23157,23184,23185,23186,23187,23336,23338,23340,23342,23136,23137,23140,23141,23120,23121,23122,23123,23280,23282,23284,23286,23128,23129,23132,23133,23176,23177,23178,23179,23140,23141,23142,23143,23288,23290,23292,23294,23153,23155,23157,23159,23168,23169,23170,23171,23328,23330,23332,23334,23145,23147,23149,23151,23152,23153,23154,23155,23160,23161,23162,23163,23186,23187,23190,23191,23168,23170,23172,23174,23178,23179,23182,23183,23296,23298,23300,23302,23218,23219,23222,23223,23272,23274,23276,23278,23185,23187,23189,23191,23194,23195,23198,23199,23202,23203,23206,23207,23216,23218,23220,23222,23842,23843,23846,23847,23208,23210,23212,23214,23850,23851,23854,23855,23232,23234,23236,23238,23216,23217,23220,23221,23224,23226,23228,23230,23372,23373,23374,23375,23234,23235,23238,23239,23248,23250,23252,23254,23272,23273,23276,23277,23396,23397,23398,23399,23890,23891,23894,23895,23240,23242,23244,23246,23404,23405,23406,23407,23898,23899,23902,23903,23248,23249,23252,23253,23364,23365,23366,23367,23256,23257,23260,23261,23268,23269,23270,23271,23304,23305,23308,23309,23273,23275,23277,23279,23348,23349,23350,23351,23362,23363,23366,23367,23312,23313,23316,23317,23281,23283,23285,23287,23284,23285,23286,23287,23296,23297,23300,23301,23340,23341,23342,23343,23370,23371,23374,23375,23288,23289,23292,23293,23332,23333,23334,23335,23312,23314,23316,23318,23296,23297,23298,23299,23304,23306,23308,23310,23316,23317,23318,23319,23324,23325,23326,23327,23346,23347,23350,23351,23329,23331,23333,23335,23338,23339,23342,23343,23378,23379,23382,23383,23344,23346,23348,23350,23354,23355,23358,23359,23410,23411,23414,23415,23377,23379,23381,23383,23360,23361,23362,23363,23402,23403,23406,23407,23369,23371,23373,23375,23380,23381,23382,23383,23394,23395,23398,23399,23386,23387,23390,23391,23474,23475,23478,23479,23408,23410,23412,23414,23392,23393,23394,23395,23450,23451,23454,23455,23400,23402,23404,23406,23412,23413,23414,23415,23442,23443,23446,23447,23418,23419,23422,23423,23426,23427,23430,23431,23473,23475,23477,23479,23440,23441,23442,23443,23626,23627,23630,23631,23465,23467,23469,23471,23432,23433,23434,23435,23650,23651,23654,23655,23440,23441,23444,23445,23457,23459,23461,23463,23904,23905,23906,23907,23449,23451,23453,23455,23896,23897,23898,23899,23476,23477,23478,23479,23458,23459,23462,23463,23489,23491,23493,23495,23888,23889,23890,23891,23468,23469,23470,23471,23642,23643,23646,23647,23529,23531,23533,23535,23880,23881,23882,23883,23634,23635,23638,23639,23472,23473,23476,23477,23537,23539,23541,23543,23481,23483,23485,23487,23538,23539,23542,23543,23505,23507,23509,23511,23488,23489,23490,23491,23530,23531,23534,23535,23497,23499,23501,23503,23848,23849,23850,23851,23508,23509,23510,23511,23522,23523,23526,23527,24977,24979,24981,24983,23840,23841,23842,23843,23514,23515,23518,23519,24953,24955,24957,24959,23570,23571,23574,23575,23536,23538,23540,23542,24961,24963,24965,24967,23520,23521,23522,23523,23562,23563,23566,23567,23528,23530,23532,23534,24969,24971,24973,24975,23816,23817,23818,23819,23540,23541,23542,23543,23554,23555,23558,23559,23808,23809,23810,23811,23546,23547,23550,23551,23602,23603,23606,23607,23632,23634,23636,23638,23569,23571,23573,23575,23552,23553,23554,23555,23594,23595,23598,23599,23640,23642,23644,23646,23561,23563,23565,23567,23784,23785,23786,23787,23572,23573,23574,23575,23586,23587,23590,23591,25065,25067,25069,25071,23776,23777,23778,23779,23578,23579,23582,23583,25089,25091,25093,25095,26834,26835,26838,26839,23600,23602,23604,23606,25097,25099,25101,25103,23584,23585,23586,23587,26826,26827,26830,26831,23592,23594,23596,23598,25049,25051,25053,25055,23752,23753,23754,23755,23604,23605,23606,23607,26818,26819,26822,26823,23664,23666,23668,23670,23744,23745,23746,23747,26810,26811,26814,26815,23608,23610,23612,23614,26802,26803,26806,26807,23616,23618,23620,23622,23632,23633,23636,23637,23664,23665,23666,23667,26794,26795,26798,26799,23624,23625,23628,23629,23656,23657,23658,23659,23633,23635,23637,23639,23648,23649,23650,23651,23640,23641,23642,23643,23666,23667,23670,23671,23648,23650,23652,23654,23696,23697,23698,23699,23658,23659,23662,23663,23688,23689,23690,23691,26754,26755,26758,26759,23665,23667,23669,23671,23680,23681,23682,23683,26746,26747,26750,26751,23672,23673,23674,23675,26738,26739,26742,26743,23680,23682,23684,23686,23696,23697,23700,23701,23745,23747,23749,23751,23728,23729,23730,23731,26730,26731,26734,26735,23688,23689,23692,23693,23720,23721,23722,23723,23904,23905,23908,23909,23697,23699,23701,23703,23712,23713,23714,23715,23880,23881,23884,23885,23785,23787,23789,23791,23704,23705,23706,23707,23730,23731,23734,23735,23712,23714,23716,23718,23872,23873,23876,23877,23793,23795,23797,23799,24000,24001,24002,24003,23722,23723,23726,23727,23912,23913,23916,23917,23992,23993,23994,23995,26690,26691,26694,26695,23729,23731,23733,23735,24016,24017,24018,24019,26682,26683,26686,26687,23737,23739,23741,23743,24008,24009,24010,24011,23748,23749,23750,23751,26674,26675,26678,26679,23792,23793,23796,23797,23761,23763,23765,23767,24352,24353,24354,24355,26666,26667,26670,26671,23784,23785,23788,23789,23753,23755,23757,23759,26658,26659,26662,26663,23776,23777,23780,23781,25041,25043,25045,25047,23760,23761,23762,23763,26650,26651,26654,26655,23768,23769,23772,23773,25033,25035,25037,25039,24344,24345,24346,24347,23780,23781,23782,23783,23792,23794,23796,23798,23824,23825,23828,23829,25025,25027,25029,25031,24368,24369,24370,24371,23784,23786,23788,23790,23816,23817,23820,23821,25017,25019,25021,25023,23808,23809,23812,23813,23792,23793,23794,23795,23800,23801,23804,23805,24360,24361,24362,24363,23812,23813,23814,23815,23872,23874,23876,23878,23856,23857,23860,23861,23825,23827,23829,23831,24400,24401,24402,24403,23880,23882,23884,23886,23848,23849,23852,23853,23817,23819,23821,23823,23840,23841,23844,23845,25009,25011,25013,25015,23824,23825,23826,23827,23832,23833,23836,23837,25001,25003,25005,25007,24376,24377,24378,24379,23844,23845,23846,23847,23856,23858,23860,23862,24993,24995,24997,24999,24432,24433,24434,24435,23848,23850,23852,23854,24985,24987,24989,24991,23888,23890,23892,23894,23856,23857,23858,23859,23864,23866,23868,23870,24408,24409,24410,24411,23892,23893,23894,23895,23874,23875,23878,23879,23920,23922,23924,23926,23952,23953,23954,23955,23884,23885,23886,23887,23912,23914,23916,23918,23960,23961,23962,23963,23904,23906,23908,23910,23888,23889,23892,23893,23896,23898,23900,23902,23906,23907,23910,23911,23920,23921,23922,23923,23912,23913,23914,23915,23920,23921,23924,23925,23984,23985,23986,23987,23928,23929,23930,23931,23986,23987,23990,23991,23953,23955,23957,23959,23936,23937,23938,23939,23978,23979,23982,23983,23945,23947,23949,23951,24136,24137,24138,24139,23956,23957,23958,23959,23970,23971,23974,23975,24417,24419,24421,24423,24160,24161,24162,24163,23962,23963,23966,23967,24409,24411,24413,24415,24002,24003,24006,24007,23984,23986,23988,23990,24401,24403,24405,24407,23968,23969,23970,23971,24042,24043,24046,24047,23976,23978,23980,23982,24393,24395,24397,24399,24152,24153,24154,24155,23988,23989,23990,23991,24050,24051,24054,24055,24144,24145,24146,24147,23994,23995,23998,23999,24018,24019,24022,24023,24001,24003,24005,24007,24048,24049,24050,24051,24010,24011,24014,24015,24361,24363,24365,24367,24040,24041,24042,24043,26186,26187,26190,26191,24016,24018,24020,24022,24353,24355,24357,24359,24032,24033,24034,24035,26442,26443,26446,26447,24024,24025,24026,24027,26434,26435,26438,26439,24048,24049,24052,24053,24033,24035,24037,24039,24080,24081,24082,24083,26210,26211,26214,26215,24040,24041,24044,24045,24329,24331,24333,24335,24072,24073,24074,24075,24048,24050,24052,24054,24321,24323,24325,24327,24064,24065,24066,24067,24056,24057,24058,24059,24082,24083,24086,24087,24144,24145,24148,24149,24065,24067,24069,24071,24112,24113,24114,24115,24074,24075,24078,24079,24152,24153,24156,24157,24297,24299,24301,24303,24104,24105,24106,24107,26250,26251,26254,26255,24080,24082,24084,24086,24289,24291,24293,24295,24096,24097,24098,24099,26410,26411,26414,26415,24088,24089,24090,24091,26402,26403,26406,26407,24112,24113,24116,24117,24097,24099,24101,24103,26274,26275,26278,26279,24104,24105,24108,24109,24265,24267,24269,24271,24112,24114,24116,24118,24176,24177,24180,24181,24257,24259,24261,24263,24120,24121,24124,24125,24148,24149,24150,24151,24128,24129,24132,24133,24177,24179,24181,24183,24140,24141,24142,24143,24169,24171,24173,24175,24146,24147,24150,24151,24161,24163,24165,24167,24153,24155,24157,24159,24160,24161,24164,24165,24209,24211,24213,24215,24176,24177,24178,24179,24201,24203,24205,24207,24168,24169,24170,24171,24178,24179,24182,24183,24193,24195,24197,24199,24185,24187,24189,24191,24212,24213,24214,24215,24258,24259,24262,24263,24192,24193,24196,24197,24241,24243,24245,24247,24204,24205,24206,24207,24233,24235,24237,24239,24420,24421,24422,24423,24210,24211,24214,24215,24225,24227,24229,24231,24396,24397,24398,24399,24298,24299,24302,24303,24217,24219,24221,24223,24388,24389,24390,24391,24306,24307,24310,24311,24224,24225,24228,24229,24681,24683,24685,24687,24240,24241,24242,24243,24428,24429,24430,24431,24673,24675,24677,24679,24232,24233,24234,24235,24242,24243,24246,24247,24649,24651,24653,24655,24250,24251,24254,24255,24633,24635,24637,24639,24308,24309,24310,24311,24274,24275,24278,24279,24256,24258,24260,24262,24625,24627,24629,24631,24300,24301,24302,24303,24266,24267,24270,24271,24292,24293,24294,24295,26266,26267,26270,26271,24273,24275,24277,24279,24284,24285,24286,24287,25938,25939,25942,25943,24601,24603,24605,24607,24340,24341,24342,24343,25946,25947,25950,25951,24288,24290,24292,24294,24304,24305,24308,24309,24593,24595,24597,24599,24332,24333,24334,24335,26258,26259,26262,26263,24296,24297,24300,24301,24324,24325,24326,24327,24305,24307,24309,24311,24316,24317,24318,24319,24569,24571,24573,24575,24372,24373,24374,24375,24338,24339,24342,24343,24320,24322,24324,24326,24384,24385,24388,24389,24561,24563,24565,24567,24364,24365,24366,24367,24330,24331,24334,24335,24392,24393,24396,24397,24356,24357,24358,24359,26202,26203,26206,26207,24337,24339,24341,24343,24348,24349,24350,24351,26002,26003,26006,26007,24537,24539,24541,24543,26010,26011,26014,26015,24352,24354,24356,24358,24368,24369,24372,24373,24529,24531,24533,24535,26194,26195,26198,26199,24360,24361,24364,24365,24400,24401,24404,24405,24369,24371,24373,24375,24376,24377,24380,24381,24505,24507,24509,24511,24400,24402,24404,24406,24432,24433,24436,24437,24497,24499,24501,24503,24384,24385,24386,24387,24392,24394,24396,24398,24424,24425,24428,24429,24489,24491,24493,24495,24404,24405,24406,24407,24416,24417,24420,24421,24408,24409,24412,24413,24433,24435,24437,24439,24416,24417,24418,24419,24425,24427,24429,24431,24436,24437,24438,24439,24449,24451,24453,24455,24441,24443,24445,24447,24996,24997,24998,24999,24498,24499,24502,24503,24465,24467,24469,24471,24448,24449,24450,24451,24490,24491,24494,24495,24457,24459,24461,24463,24672,24673,24674,24675,24468,24469,24470,24471,24482,24483,24486,24487,24809,24811,24813,24815,24664,24665,24666,24667,24836,24837,24838,24839,24474,24475,24478,24479,24817,24819,24821,24823,24844,24845,24846,24847,24514,24515,24518,24519,24496,24498,24500,24502,24793,24795,24797,24799,24480,24481,24482,24483,24554,24555,24558,24559,24488,24490,24492,24494,24801,24803,24805,24807,24688,24689,24690,24691,24500,24501,24502,24503,24562,24563,24566,24567,24680,24681,24682,24683,25004,25005,25006,25007,24506,24507,24510,24511,25028,25029,25030,25031,24530,24531,24534,24535,24513,24515,24517,24519,24560,24561,24562,24563,25188,25189,25190,25191,24522,24523,24526,24527,24785,24787,24789,24791,24552,24553,24554,24555,25196,25197,25198,25199,25674,25675,25678,25679,24528,24530,24532,24534,24777,24779,24781,24783,24544,24545,24546,24547,25036,25037,25038,25039,26018,26019,26022,26023,24536,24537,24538,24539,25994,25995,25998,25999,24560,24561,24564,24565,24545,24547,24549,24551,24592,24593,24594,24595,25698,25699,25702,25703,24552,24553,24556,24557,24769,24771,24773,24775,24584,24585,24586,24587,24560,24562,24564,24566,24761,24763,24765,24767,24576,24577,24578,24579,24568,24569,24570,24571,24594,24595,24598,24599,24680,24681,24684,24685,24577,24579,24581,24583,24624,24625,24626,24627,24586,24587,24590,24591,24688,24689,24692,24693,24753,24755,24757,24759,24616,24617,24618,24619,25738,25739,25742,25743,24592,24594,24596,24598,24745,24747,24749,24751,24608,24609,24610,24611,25954,25955,25958,25959,24600,24601,24602,24603,25930,25931,25934,25935,24624,24625,24628,24629,24609,24611,24613,24615,25762,25763,25766,25767,24616,24617,24620,24621,24737,24739,24741,24743,24624,24626,24628,24630,24640,24641,24644,24645,24729,24731,24733,24735,24632,24633,24636,24637,24684,24685,24686,24687,24648,24649,24652,24653,24641,24643,24645,24647,24692,24693,24694,24695,24656,24657,24660,24661,24721,24723,24725,24727,24676,24677,24678,24679,24657,24659,24661,24663,24668,24669,24670,24671,24713,24715,24717,24719,24690,24691,24694,24695,24672,24674,24676,24678,24705,24707,24709,24711,24682,24683,24686,24687,24689,24691,24693,24695,24697,24699,24701,24703,24804,24805,24806,24807,24754,24755,24758,24759,24704,24705,24708,24709,24720,24721,24722,24723,24812,24813,24814,24815,24712,24713,24714,24715,24722,24723,24726,24727,24730,24731,24734,24735,24756,24757,24758,24759,24738,24739,24742,24743,24748,24749,24750,24751,25754,25755,25758,25759,24772,24773,24774,24775,25746,25747,25750,25751,24752,24753,24756,24757,24764,24765,24766,24767,24788,24789,24790,24791,24770,24771,24774,24775,24800,24801,24804,24805,24780,24781,24782,24783,25690,25691,25694,25695,25204,25205,25206,25207,25682,25683,25686,25687,24784,24785,24788,24789,25180,25181,25182,25183,24792,24793,24796,24797,24852,24853,24854,24855,24816,24817,24820,24821,24800,24801,24802,24803,24808,24809,24812,24813,24820,24821,24822,24823,24828,24829,24830,24831,24884,24885,24886,24887,24850,24851,24854,24855,24832,24834,24836,24838,24876,24877,24878,24879,24842,24843,24846,24847,24992,24994,24996,24998,24868,24869,24870,24871,25186,25187,25190,25191,25000,25002,25004,25006,24849,24851,24853,24855,24860,24861,24862,24863,25178,25179,25182,25183,24908,24909,24910,24911,25170,25171,25174,25175,24864,24866,24868,24870,24880,24881,24884,24885,24916,24917,24918,24919,25162,25163,25166,25167,25008,25010,25012,25014,24872,24873,24876,24877,24900,24901,24902,24903,24984,24986,24988,24990,24881,24883,24885,24887,24892,24893,24894,24895,24940,24941,24942,24943,24906,24907,24910,24911,24896,24898,24900,24902,24948,24949,24950,24951,24914,24915,24918,24919,24976,24978,24980,24982,24932,24933,24934,24935,25130,25131,25134,25135,24912,24914,24916,24918,24924,24925,24926,24927,25074,25075,25078,25079,24968,24970,24972,24974,25082,25083,25086,25087,24960,24962,24964,24966,24944,24945,24948,24949,24929,24931,24933,24935,25122,25123,25126,25127,24936,24937,24940,24941,24944,24946,24948,24950,24952,24954,24956,24958,24962,24963,24966,24967,24976,24977,24978,24979,25090,25091,25094,25095,24968,24969,24970,24971,25066,25067,25070,25071,24976,24977,24980,24981,25008,25009,25010,25011,24984,24985,24986,24987,25010,25011,25014,25015,24992,24993,24994,24995,25002,25003,25006,25007,25012,25013,25014,25015,25026,25027,25030,25031,25018,25019,25022,25023,25068,25069,25070,25071,25042,25043,25046,25047,25161,25163,25165,25167,25024,25025,25026,25027,25034,25035,25038,25039,25185,25187,25189,25191,25044,25045,25046,25047,25378,25379,25382,25383,25193,25195,25197,25199,25052,25053,25054,25055,25370,25371,25374,25375,25153,25155,25157,25159,25100,25101,25102,25103,25362,25363,25366,25367,25064,25065,25068,25069,25057,25059,25061,25063,25108,25109,25110,25111,25282,25283,25286,25287,25072,25073,25076,25077,25137,25139,25141,25143,25152,25153,25154,25155,25092,25093,25094,25095,25073,25075,25077,25079,25084,25085,25086,25087,25129,25131,25133,25135,25160,25161,25162,25163,25106,25107,25110,25111,25088,25090,25092,25094,25121,25123,25125,25127,25098,25099,25102,25103,25338,25339,25342,25343,25105,25107,25109,25111,25330,25331,25334,25335,25113,25115,25117,25119,25322,25323,25326,25327,25120,25121,25124,25125,25136,25137,25138,25139,25128,25129,25130,25131,25138,25139,25142,25143,25168,25169,25170,25171,25274,25275,25278,25279,25144,25145,25146,25147,25266,25267,25270,25271,25152,25154,25156,25158,25168,25169,25172,25173,25200,25201,25202,25203,25258,25259,25262,25263,25160,25161,25164,25165,25192,25193,25194,25195,25169,25171,25173,25175,25184,25185,25186,25187,25176,25177,25178,25179,25202,25203,25206,25207,25184,25186,25188,25190,25194,25195,25198,25199,25218,25219,25222,25223,25201,25203,25205,25207,25210,25211,25214,25215,25268,25269,25270,25271,25234,25235,25238,25239,25216,25218,25220,25222,25680,25681,25682,25683,25260,25261,25262,25263,25226,25227,25230,25231,25376,25378,25380,25382,25672,25673,25674,25675,25252,25253,25254,25255,25570,25571,25574,25575,25384,25386,25388,25390,25233,25235,25237,25239,25664,25665,25666,25667,25244,25245,25246,25247,25562,25563,25566,25567,25656,25657,25658,25659,25292,25293,25294,25295,25554,25555,25558,25559,25248,25250,25252,25254,25264,25265,25268,25269,25300,25301,25302,25303,25546,25547,25550,25551,25392,25394,25396,25398,25256,25257,25260,25261,25284,25285,25286,25287,25368,25370,25372,25374,25265,25267,25269,25271,25276,25277,25278,25279,25324,25325,25326,25327,25290,25291,25294,25295,25280,25282,25284,25286,25332,25333,25334,25335,25298,25299,25302,25303,25360,25362,25364,25366,25316,25317,25318,25319,25514,25515,25518,25519,25296,25298,25300,25302,25308,25309,25310,25311,25458,25459,25462,25463,25352,25354,25356,25358,25466,25467,25470,25471,25344,25346,25348,25350,25328,25329,25332,25333,25313,25315,25317,25319,25506,25507,25510,25511,25320,25321,25324,25325,25328,25330,25332,25334,25336,25338,25340,25342,25346,25347,25350,25351,26832,26834,26836,26838,25360,25361,25362,25363,25474,25475,25478,25479,26840,26842,26844,26846,25352,25353,25354,25355,25450,25451,25454,25455,26848,26850,26852,26854,25360,25361,25364,25365,25392,25393,25394,25395,26824,26826,26828,26830,25368,25369,25370,25371,25394,25395,25398,25399,26656,26658,26660,26662,25376,25377,25378,25379,25386,25387,25390,25391,26648,26650,26652,26654,26016,26017,26018,26019,25396,25397,25398,25399,25410,25411,25414,25415,26640,26642,26644,26646,26024,26025,26026,26027,25402,25403,25406,25407,26632,26634,26636,26638,25452,25453,25454,25455,25426,25427,25430,25431,26592,26594,26596,26598,25545,25547,25549,25551,25408,25409,25410,25411,25418,25419,25422,25423,26584,26586,26588,26590,25569,25571,25573,25575,26064,26065,26066,26067,25428,25429,25430,25431,26576,26578,26580,26582,25577,25579,25581,25583,26072,26073,26074,26075,25436,25437,25438,25439,26568,26570,26572,26574,25537,25539,25541,25543,25484,25485,25486,25487,26912,26914,26916,26918,25448,25449,25452,25453,25441,25443,25445,25447,25492,25493,25494,25495,25456,25457,25460,25461,25521,25523,25525,25527,25536,25537,25538,25539,25476,25477,25478,25479,26888,26890,26892,26894,25457,25459,25461,25463,25468,25469,25470,25471,25513,25515,25517,25519,25544,25545,25546,25547,25490,25491,25494,25495,25472,25474,25476,25478,25505,25507,25509,25511,25482,25483,25486,25487,26896,26898,26900,26902,26904,26906,26908,26910,25489,25491,25493,25495,25497,25499,25501,25503,25504,25505,25508,25509,25520,25521,25522,25523,25512,25513,25514,25515,25522,25523,25526,25527,25552,25553,25554,25555,25528,25529,25530,25531,25536,25538,25540,25542,25552,25553,25556,25557,25584,25585,25586,25587,25544,25545,25548,25549,25576,25577,25578,25579,25553,25555,25557,25559,25568,25569,25570,25571,25560,25561,25562,25563,25586,25587,25590,25591,25568,25570,25572,25574,25648,25649,25650,25651,25578,25579,25582,25583,25624,25625,25626,25627,25585,25587,25589,25591,25616,25617,25618,25619,25592,25593,25594,25595,25616,25618,25620,25622,25648,25649,25652,25653,25600,25601,25602,25603,25608,25610,25612,25614,25640,25641,25644,25645,25800,25801,25802,25803,25620,25621,25622,25623,26080,26082,26084,26086,25632,25633,25636,25637,25824,25825,25826,25827,26072,26074,26076,26078,25624,25625,25628,25629,26064,26066,26068,26070,25664,25665,25668,25669,25649,25651,25653,25655,25632,25633,25634,25635,26056,26058,26060,26062,25704,25705,25708,25709,25641,25643,25645,25647,25816,25817,25818,25819,25652,25653,25654,25655,25712,25713,25716,25717,25808,25809,25810,25811,25656,25657,25660,25661,25664,25666,25668,25670,25680,25681,25684,25685,25712,25713,25714,25715,26024,26026,26028,26030,25672,25673,25676,25677,25704,25705,25706,25707,26016,26018,26020,26022,25681,25683,25685,25687,25696,25697,25698,25699,25688,25689,25690,25691,25714,25715,25718,25719,25696,25698,25700,25702,25744,25745,25746,25747,25706,25707,25710,25711,25992,25994,25996,25998,25736,25737,25738,25739,25984,25986,25988,25990,25713,25715,25717,25719,25728,25729,25730,25731,25720,25721,25722,25723,25810,25811,25814,25815,25728,25730,25732,25734,25744,25745,25748,25749,25776,25777,25778,25779,25818,25819,25822,25823,25960,25962,25964,25966,25736,25737,25740,25741,25768,25769,25770,25771,25952,25954,25956,25958,25745,25747,25749,25751,25760,25761,25762,25763,25752,25753,25754,25755,25778,25779,25782,25783,25760,25762,25764,25766,25770,25771,25774,25775,25928,25930,25932,25934,25842,25843,25846,25847,25920,25922,25924,25926,25777,25779,25781,25783,25786,25787,25790,25791,25812,25813,25814,25815,25794,25795,25798,25799,25840,25842,25844,25846,25804,25805,25806,25807,25832,25834,25836,25838,25824,25826,25828,25830,25808,25809,25812,25813,25816,25818,25820,25822,25826,25827,25830,25831,25872,25874,25876,25878,25840,25841,25842,25843,25864,25866,25868,25870,25832,25833,25834,25835,25856,25858,25860,25862,25840,25841,25844,25845,25848,25850,25852,25854,25876,25877,25878,25879,25858,25859,25862,25863,25904,25906,25908,25910,25920,25921,25924,25925,25868,25869,25870,25871,25896,25898,25900,25902,26084,26085,26086,26087,25888,25890,25892,25894,25872,25873,25876,25877,26060,26061,26062,26063,25880,25882,25884,25886,25960,25961,25964,25965,26052,26053,26054,26055,25890,25891,25894,25895,26344,26346,26348,26350,25968,25969,25972,25973,25904,25905,25906,25907,26092,26093,26094,26095,26336,26338,26340,26342,25896,25897,25898,25899,26312,26314,26316,26318,25904,25905,25908,25909,26296,26298,26300,26302,25912,25913,25916,25917,25972,25973,25974,25975,26288,26290,26292,26294,25936,25937,25940,25941,25921,25923,25925,25927,25964,25965,25966,25967,25928,25929,25932,25933,25956,25957,25958,25959,25936,25938,25940,25942,25948,25949,25950,25951,26264,26266,26268,26270,26004,26005,26006,26007,25970,25971,25974,25975,26256,26258,26260,26262,25953,25955,25957,25959,25996,25997,25998,25999,25962,25963,25966,25967,25988,25989,25990,25991,25968,25970,25972,25974,25980,25981,25982,25983,26232,26234,26236,26238,26036,26037,26038,26039,26050,26051,26054,26055,26224,26226,26228,26230,26000,26001,26004,26005,25985,25987,25989,25991,26028,26029,26030,26031,26058,26059,26062,26063,25992,25993,25996,25997,26020,26021,26022,26023,26000,26002,26004,26006,26012,26013,26014,26015,26200,26202,26204,26206,26652,26653,26654,26655,26034,26035,26038,26039,26192,26194,26196,26198,26017,26019,26021,26023,26026,26027,26030,26031,26066,26067,26070,26071,26032,26034,26036,26038,26644,26645,26646,26647,26042,26043,26046,26047,26168,26170,26172,26174,26588,26589,26590,26591,26098,26099,26102,26103,26160,26162,26164,26166,26065,26067,26069,26071,26048,26049,26050,26051,26090,26091,26094,26095,26152,26154,26156,26158,26057,26059,26061,26063,26068,26069,26070,26071,26082,26083,26086,26087,26074,26075,26078,26079,26096,26098,26100,26102,26080,26081,26082,26083,26088,26090,26092,26094,26100,26101,26102,26103,26112,26114,26116,26118,26580,26581,26582,26583,26104,26106,26108,26110,26556,26557,26558,26559,26128,26130,26132,26134,26160,26161,26164,26165,26112,26113,26114,26115,26120,26122,26124,26126,26152,26153,26156,26157,26336,26337,26338,26339,26132,26133,26134,26135,26472,26474,26476,26478,26144,26145,26148,26149,26328,26329,26330,26331,26548,26549,26550,26551,26480,26482,26484,26486,26136,26137,26140,26141,26540,26541,26542,26543,26456,26458,26460,26462,26176,26177,26180,26181,26161,26163,26165,26167,26144,26145,26146,26147,26464,26466,26468,26470,26216,26217,26220,26221,26153,26155,26157,26159,26352,26353,26354,26355,26164,26165,26166,26167,26224,26225,26228,26229,26344,26345,26346,26347,26612,26613,26614,26615,26168,26169,26172,26173,26620,26621,26622,26623,26176,26178,26180,26182,26192,26193,26196,26197,26224,26225,26226,26227,26708,26709,26710,26711,26448,26450,26452,26454,26184,26185,26188,26189,26216,26217,26218,26219,26684,26685,26686,26687,26440,26442,26444,26446,26193,26195,26197,26199,26208,26209,26210,26211,26676,26677,26678,26679,26200,26201,26202,26203,26226,26227,26230,26231,26208,26210,26212,26214,26256,26257,26258,26259,26218,26219,26222,26223,26432,26434,26436,26438,26248,26249,26250,26251,26424,26426,26428,26430,26225,26227,26229,26231,26240,26241,26242,26243,26232,26233,26234,26235,26346,26347,26350,26351,26240,26242,26244,26246,26256,26257,26260,26261,26288,26289,26290,26291,26354,26355,26358,26359,26416,26418,26420,26422,26248,26249,26252,26253,26280,26281,26282,26283,26408,26410,26412,26414,26257,26259,26261,26263,26272,26273,26274,26275,26264,26265,26266,26267,26290,26291,26294,26295,26272,26274,26276,26278,26282,26283,26286,26287,26400,26402,26404,26406,26306,26307,26310,26311,26392,26394,26396,26398,26289,26291,26293,26295,26298,26299,26302,26303,26348,26349,26350,26351,26314,26315,26318,26319,26304,26306,26308,26310,26356,26357,26358,26359,26322,26323,26326,26327,26384,26386,26388,26390,26340,26341,26342,26343,26320,26322,26324,26326,26332,26333,26334,26335,26376,26378,26380,26382,26368,26370,26372,26374,26352,26353,26356,26357,26337,26339,26341,26343,26344,26345,26348,26349,26352,26354,26356,26358,26360,26362,26364,26366,26468,26469,26470,26471,26370,26371,26374,26375,26416,26417,26420,26421,26384,26385,26386,26387,26476,26477,26478,26479,26376,26377,26378,26379,26384,26385,26388,26389,26392,26393,26396,26397,26420,26421,26422,26423,26400,26401,26404,26405,26412,26413,26414,26415,26436,26437,26438,26439,26418,26419,26422,26423,26428,26429,26430,26431,26452,26453,26454,26455,26466,26467,26470,26471,26432,26433,26436,26437,26444,26445,26446,26447,26692,26693,26694,26695,26450,26451,26454,26455,26700,26701,26702,26703,26458,26459,26462,26463,26500,26501,26502,26503,26482,26483,26486,26487,26464,26465,26466,26467,26474,26475,26478,26479,26484,26485,26486,26487,26492,26493,26494,26495,26516,26517,26518,26519,26496,26497,26500,26501,26545,26547,26549,26551,26508,26509,26510,26511,26696,26697,26700,26701,26537,26539,26541,26543,26980,26981,26982,26983,26514,26515,26518,26519,26720,26721,26724,26725,26529,26531,26533,26535,26972,26973,26974,26975,26521,26523,26525,26527,26964,26965,26966,26967,26528,26529,26532,26533,26561,26563,26565,26567,26544,26545,26546,26547,26956,26957,26958,26959,26712,26713,26716,26717,26601,26603,26605,26607,26536,26537,26538,26539,26546,26547,26550,26551,26704,26705,26708,26709,26609,26611,26613,26615,26553,26555,26557,26559,26564,26565,26566,26567,26608,26609,26612,26613,26577,26579,26581,26583,26924,26925,26926,26927,26600,26601,26604,26605,26569,26571,26573,26575,26916,26917,26918,26919,26592,26593,26596,26597,26576,26577,26578,26579,26584,26585,26588,26589,26596,26597,26598,26599,26608,26610,26612,26614,26640,26641,26644,26645,26892,26893,26894,26895,26600,26602,26604,26606,26632,26633,26636,26637,26884,26885,26886,26887,26624,26625,26628,26629,26608,26609,26610,26611,26616,26617,26620,26621,26628,26629,26630,26631,26704,26706,26708,26710,26672,26673,26676,26677,26641,26643,26645,26647,26860,26861,26862,26863,26712,26714,26716,26718,26664,26665,26668,26669,26633,26635,26637,26639,26852,26853,26854,26855,26656,26657,26660,26661,26640,26641,26642,26643,26648,26649,26652,26653,26660,26661,26662,26663,26672,26674,26676,26678,26828,26829,26830,26831,26664,26666,26668,26670,26820,26821,26822,26823,26736,26738,26740,26742,26672,26673,26674,26675,26680,26682,26684,26686,26740,26741,26742,26743,26706,26707,26710,26711,26688,26690,26692,26694,26732,26733,26734,26735,26698,26699,26702,26703,26724,26725,26726,26727,26705,26707,26709,26711,26716,26717,26718,26719,26772,26773,26774,26775,26720,26722,26724,26726,26736,26737,26740,26741,26764,26765,26766,26767,26728,26729,26732,26733,26756,26757,26758,26759,26737,26739,26741,26743,26748,26749,26750,26751,26804,26805,26806,26807,26770,26771,26774,26775,26752,26754,26756,26758,26817,26819,26821,26823,26796,26797,26798,26799,26762,26763,26766,26767,26788,26789,26790,26791,26978,26979,26982,26983,26769,26771,26773,26775,26780,26781,26782,26783,26954,26955,26958,26959,26857,26859,26861,26863,26946,26947,26950,26951,26784,26786,26788,26790,26800,26801,26804,26805,26865,26867,26869,26871,26986,26987,26990,26991,26792,26793,26796,26797,26801,26803,26805,26807,26809,26811,26813,26815,26866,26867,26870,26871,26833,26835,26837,26839,26816,26817,26818,26819,26858,26859,26862,26863,26825,26827,26829,26831,26836,26837,26838,26839,26850,26851,26854,26855,26842,26843,26846,26847,26898,26899,26902,26903,26864,26866,26868,26870,26848,26849,26850,26851,26890,26891,26894,26895,26856,26858,26860,26862,26868,26869,26870,26871,26882,26883,26886,26887,26874,26875,26878,26879,26930,26931,26934,26935,26944,26946,26948,26950,26897,26899,26901,26903,26880,26881,26882,26883,26922,26923,26926,26927,26952,26954,26956,26958,26889,26891,26893,26895,26900,26901,26902,26903,26914,26915,26918,26919,26906,26907,26910,26911,26928,26930,26932,26934,26912,26913,26914,26915,26920,26922,26924,26926,26932,26933,26934,26935,26960,26962,26964,26966,26936,26938,26940,26942,26992,26994,26996,26998,26944,26945,26948,26949,26960,26961,26962,26963,26984,26986,26988,26990,26952,26953,26954,26955,26962,26963,26966,26967,26976,26978,26980,26982,26968,26970,26972,26974,26996,26997,26998,26999,26976,26977,26980,26981,26988,26989,26990,26991,26994,26995,26998,26999}; + +#endif diff --git a/src/apps/FEM_MACROS.hpp b/src/apps/FEM_MACROS.hpp index fd4386324..d3c2c9e0d 100644 --- a/src/apps/FEM_MACROS.hpp +++ b/src/apps/FEM_MACROS.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/FIR-Cuda.cpp b/src/apps/FIR-Cuda.cpp index 9605d85b1..045f32e0a 100644 --- a/src/apps/FIR-Cuda.cpp +++ b/src/apps/FIR-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/FIR-Hip.cpp b/src/apps/FIR-Hip.cpp index a3272cb23..3dd295657 100644 --- a/src/apps/FIR-Hip.cpp +++ b/src/apps/FIR-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/FIR-OMP.cpp b/src/apps/FIR-OMP.cpp index 5fcad1616..fe4a17893 100644 --- a/src/apps/FIR-OMP.cpp +++ b/src/apps/FIR-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -74,10 +74,12 @@ void FIR::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), fir_lam); } diff --git a/src/apps/FIR-OMPTarget.cpp b/src/apps/FIR-OMPTarget.cpp index 3ba913846..10db513fb 100644 --- a/src/apps/FIR-OMPTarget.cpp +++ b/src/apps/FIR-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,6 +69,8 @@ void FIR::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + FIR_COEFF; FIR_DATA_SETUP_OMP_TARGET; @@ -76,7 +78,7 @@ void FIR::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { FIR_BODY; }); diff --git a/src/apps/FIR-Seq.cpp b/src/apps/FIR-Seq.cpp index 001ffd194..546609b30 100644 --- a/src/apps/FIR-Seq.cpp +++ b/src/apps/FIR-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,10 +73,12 @@ void FIR::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), fir_lam); } diff --git a/src/apps/FIR-Sycl.cpp b/src/apps/FIR-Sycl.cpp index eee240a5f..4eccef8af 100644 --- a/src/apps/FIR-Sycl.cpp +++ b/src/apps/FIR-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -25,15 +25,10 @@ namespace apps #define FIR_DATA_SETUP_SYCL \ Real_ptr coeff; \ \ - allocAndInitSyclDeviceData(in, m_in, getActualProblemSize(), qu); \ - allocAndInitSyclDeviceData(out, m_out, getActualProblemSize(), qu); \ Real_ptr tcoeff = &coeff_array[0]; \ allocAndInitSyclDeviceData(coeff, tcoeff, FIR_COEFFLEN, qu); #define FIR_DATA_TEARDOWN_SYCL \ - getSyclDeviceData(m_out, out, getActualProblemSize(), qu); \ - deallocSyclDeviceData(in, qu); \ - deallocSyclDeviceData(out, qu); \ deallocSyclDeviceData(coeff, qu); diff --git a/src/apps/FIR.cpp b/src/apps/FIR.cpp index f4a2de7e8..e250cb91e 100644 --- a/src/apps/FIR.cpp +++ b/src/apps/FIR.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -40,6 +40,8 @@ FIR::FIR(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/apps/FIR.hpp b/src/apps/FIR.hpp index 72968045f..11e5c8e2c 100644 --- a/src/apps/FIR.hpp +++ b/src/apps/FIR.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/LTIMES-Cuda.cpp b/src/apps/LTIMES-Cuda.cpp index a0142d1aa..1a90cf8db 100644 --- a/src/apps/LTIMES-Cuda.cpp +++ b/src/apps/LTIMES-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -21,6 +21,8 @@ namespace rajaperf namespace apps { +using namespace ltimes_idx; + // // Define thread block shape for CUDA execution // @@ -36,23 +38,22 @@ namespace apps static_assert(m_block_sz*g_block_sz*z_block_sz == block_size, "Invalid block_size"); #define LTIMES_NBLOCKS_CUDA \ - dim3 nblocks(static_cast(RAJA_DIVIDE_CEILING_INT(num_m, m_block_sz)), \ - static_cast(RAJA_DIVIDE_CEILING_INT(num_g, g_block_sz)), \ - static_cast(RAJA_DIVIDE_CEILING_INT(num_z, z_block_sz))); + dim3 nblocks(static_cast(RAJA_DIVIDE_CEILING_INT(*num_m, m_block_sz)), \ + static_cast(RAJA_DIVIDE_CEILING_INT(*num_g, g_block_sz)), \ + static_cast(RAJA_DIVIDE_CEILING_INT(*num_z, z_block_sz))); template < size_t m_block_size, size_t g_block_size, size_t z_block_size > __launch_bounds__(m_block_size*g_block_size*z_block_size) -__global__ void ltimes(Real_ptr phidat, Real_ptr elldat, Real_ptr psidat, - Index_type num_d, - Index_type num_m, Index_type num_g, Index_type num_z) +__global__ void ltimes(PHI_VIEW phi, ELL_VIEW ell, PSI_VIEW psi, + ID num_d, IM num_m, IG num_g, IZ num_z) { - Index_type m = blockIdx.x * m_block_size + threadIdx.x; - Index_type g = blockIdx.y * g_block_size + threadIdx.y; - Index_type z = blockIdx.z * z_block_size + threadIdx.z; + IM m(blockIdx.x * m_block_size + threadIdx.x); + IG g(blockIdx.y * g_block_size + threadIdx.y); + IZ z(blockIdx.z * z_block_size + threadIdx.z); if (m < num_m && g < num_g && z < num_z) { - for (Index_type d = 0; d < num_d; ++d ) { + for (ID d(0); d < num_d; ++d ) { LTIMES_BODY; } } @@ -60,12 +61,12 @@ __global__ void ltimes(Real_ptr phidat, Real_ptr elldat, Real_ptr psidat, template < size_t m_block_size, size_t g_block_size, size_t z_block_size, typename Lambda > __launch_bounds__(m_block_size*g_block_size*z_block_size) -__global__ void ltimes_lam(Index_type num_m, Index_type num_g, Index_type num_z, +__global__ void ltimes_lam(IM num_m, IG num_g, IZ num_z, Lambda body) { - Index_type m = blockIdx.x * m_block_size + threadIdx.x; - Index_type g = blockIdx.y * g_block_size + threadIdx.y; - Index_type z = blockIdx.z * z_block_size + threadIdx.z; + IM m(blockIdx.x * m_block_size + threadIdx.x); + IG g(blockIdx.y * g_block_size + threadIdx.y); + IZ z(blockIdx.z * z_block_size + threadIdx.z); if (m < num_m && g < num_g && z < num_z) { body(z, g, m); @@ -74,7 +75,7 @@ __global__ void ltimes_lam(Index_type num_m, Index_type num_g, Index_type num_z, template < size_t block_size > -void LTIMES::runCudaVariantImpl(VariantID vid) +void LTIMES::runCudaVariantImpl(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); @@ -95,7 +96,7 @@ void LTIMES::runCudaVariantImpl(VariantID vid) (ltimes), nblocks, nthreads_per_block, shmem, res.get_stream(), - phidat, elldat, psidat, + phi, ell, psi, num_d, num_m, num_g, num_z ); } @@ -106,9 +107,8 @@ void LTIMES::runCudaVariantImpl(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - auto ltimes_lambda = [=] __device__ (Index_type z, Index_type g, - Index_type m) { - for (Index_type d = 0; d < num_d; ++d ) { + auto ltimes_lambda = [=] __device__ (IZ z, IG g, IM m) { + for (ID d(0); d < num_d; ++d ) { LTIMES_BODY; } }; @@ -130,46 +130,161 @@ void LTIMES::runCudaVariantImpl(VariantID vid) } else if ( vid == RAJA_CUDA ) { - LTIMES_VIEWS_RANGES_RAJA; - - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::CudaKernelFixedAsync, //z - RAJA::statement::For<2, RAJA::cuda_global_size_y_direct, //g - RAJA::statement::For<3, RAJA::cuda_global_size_x_direct, //m - RAJA::statement::For<0, RAJA::seq_exec, //d - RAJA::statement::Lambda<0> + if (tune_idx == 0) { + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::CudaKernelFixedAsync, //z + RAJA::statement::For<2, RAJA::cuda_global_size_y_direct, //g + RAJA::statement::For<3, RAJA::cuda_global_size_x_direct, //m + RAJA::statement::For<0, RAJA::seq_exec, //d + RAJA::statement::Lambda<0> + > > > > > - > - >; + >; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::kernel_resource( - RAJA::make_tuple(IDRange(0, num_d), - IZRange(0, num_z), - IGRange(0, num_g), - IMRange(0, num_m)), + RAJA::make_tuple(IDRange(0, *num_d), + IZRange(0, *num_z), + IGRange(0, *num_g), + IMRange(0, *num_m)), res, [=] __device__ (ID d, IZ z, IG g, IM m) { - LTIMES_BODY_RAJA; + LTIMES_BODY; } ); } stopTimer(); + } else if (tune_idx == 1) { + + constexpr bool async = true; + + using launch_policy = RAJA::LaunchPolicy>; + + using z_policy = RAJA::LoopPolicy>; + + using g_policy = RAJA::LoopPolicy>; + + using m_policy = RAJA::LoopPolicy>; + + using d_policy = RAJA::LoopPolicy; + + const size_t z_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_z, z_block_sz); + + const size_t g_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_g, g_block_sz); + + const size_t m_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_m, m_block_sz); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(m_grid_sz, g_grid_sz, z_grid_sz), + RAJA::Threads(m_block_sz, g_block_sz, z_block_sz)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, IZRange(0, *num_z), + [&](IZ z) { + RAJA::loop(ctx, IGRange(0, *num_g), + [&](IG g) { + RAJA::loop(ctx, IMRange(0, *num_m), + [&](IM m) { + RAJA::loop(ctx, IDRange(0, *num_d), + [&](ID d) { + LTIMES_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); + } + } else { getCout() << "\n LTIMES : Unknown Cuda variant id = " << vid << std::endl; } } -RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(LTIMES, Cuda) +void LTIMES::runCudaVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_CUDA) { + + if (tune_idx == t) { + setBlockSize(block_size); + runCudaVariantImpl(vid, 0); + + } + + t += 1; + + if (tune_idx == t) { + setBlockSize(block_size); + runCudaVariantImpl(vid, 1); + + } + + t += 1; + + } else { + + if (tune_idx == t) { + setBlockSize(block_size); + runCudaVariantImpl(vid, 0); + + } + + t += 1; + } + + } + + }); +} + +void LTIMES::setCudaTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_CUDA) { + addVariantTuningName(vid, "kernel_"+std::to_string(block_size)); + addVariantTuningName(vid, "launch_"+std::to_string(block_size)); + } else { + addVariantTuningName(vid, "block_"+std::to_string(block_size)); + } + + } + + }); + +} } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES-Hip.cpp b/src/apps/LTIMES-Hip.cpp index 949694d10..6a4c9984c 100644 --- a/src/apps/LTIMES-Hip.cpp +++ b/src/apps/LTIMES-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -21,6 +21,8 @@ namespace rajaperf namespace apps { +using namespace ltimes_idx; + // // Define thread block shape for Hip execution // @@ -35,23 +37,22 @@ namespace apps dim3 nthreads_per_block(LTIMES_THREADS_PER_BLOCK_TEMPLATE_PARAMS_HIP); #define LTIMES_NBLOCKS_HIP \ - dim3 nblocks(static_cast(RAJA_DIVIDE_CEILING_INT(num_m, m_block_sz)), \ - static_cast(RAJA_DIVIDE_CEILING_INT(num_g, g_block_sz)), \ - static_cast(RAJA_DIVIDE_CEILING_INT(num_z, z_block_sz))); + dim3 nblocks(static_cast(RAJA_DIVIDE_CEILING_INT(*num_m, m_block_sz)), \ + static_cast(RAJA_DIVIDE_CEILING_INT(*num_g, g_block_sz)), \ + static_cast(RAJA_DIVIDE_CEILING_INT(*num_z, z_block_sz))); template < size_t m_block_size, size_t g_block_size, size_t z_block_size > __launch_bounds__(m_block_size*g_block_size*z_block_size) -__global__ void ltimes(Real_ptr phidat, Real_ptr elldat, Real_ptr psidat, - Index_type num_d, - Index_type num_m, Index_type num_g, Index_type num_z) +__global__ void ltimes(PHI_VIEW phi, ELL_VIEW ell, PSI_VIEW psi, + ID num_d, IM num_m, IG num_g, IZ num_z) { - Index_type m = blockIdx.x * m_block_size + threadIdx.x; - Index_type g = blockIdx.y * g_block_size + threadIdx.y; - Index_type z = blockIdx.z * z_block_size + threadIdx.z; + IM m(blockIdx.x * m_block_size + threadIdx.x); + IG g(blockIdx.y * g_block_size + threadIdx.y); + IZ z(blockIdx.z * z_block_size + threadIdx.z); if (m < num_m && g < num_g && z < num_z) { - for (Index_type d = 0; d < num_d; ++d ) { + for (ID d(0); d < num_d; ++d ) { LTIMES_BODY; } } @@ -59,12 +60,12 @@ __global__ void ltimes(Real_ptr phidat, Real_ptr elldat, Real_ptr psidat, template < size_t m_block_size, size_t g_block_size, size_t z_block_size, typename Lambda > __launch_bounds__(m_block_size*g_block_size*z_block_size) -__global__ void ltimes_lam(Index_type num_m, Index_type num_g, Index_type num_z, +__global__ void ltimes_lam(IM num_m, IG num_g, IZ num_z, Lambda body) { - Index_type m = blockIdx.x * m_block_size + threadIdx.x; - Index_type g = blockIdx.y * g_block_size + threadIdx.y; - Index_type z = blockIdx.z * z_block_size + threadIdx.z; + IM m(blockIdx.x * m_block_size + threadIdx.x); + IG g(blockIdx.y * g_block_size + threadIdx.y); + IZ z(blockIdx.z * z_block_size + threadIdx.z); if (m < num_m && g < num_g && z < num_z) { body(z, g, m); @@ -73,7 +74,7 @@ __global__ void ltimes_lam(Index_type num_m, Index_type num_g, Index_type num_z, template < size_t block_size > -void LTIMES::runHipVariantImpl(VariantID vid) +void LTIMES::runHipVariantImpl(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); @@ -94,7 +95,7 @@ void LTIMES::runHipVariantImpl(VariantID vid) (ltimes), nblocks, nthreads_per_block, shmem, res.get_stream(), - phidat, elldat, psidat, + phi, ell, psi, num_d, num_m, num_g, num_z ); } @@ -105,9 +106,8 @@ void LTIMES::runHipVariantImpl(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - auto ltimes_lambda = [=] __device__ (Index_type z, Index_type g, - Index_type m) { - for (Index_type d = 0; d < num_d; ++d ) { + auto ltimes_lambda = [=] __device__ (IZ z, IG g, IM m) { + for (ID d(0); d < num_d; ++d ) { LTIMES_BODY; } }; @@ -129,46 +129,161 @@ void LTIMES::runHipVariantImpl(VariantID vid) } else if ( vid == RAJA_HIP ) { - LTIMES_VIEWS_RANGES_RAJA; - - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::HipKernelFixedAsync, //z - RAJA::statement::For<2, RAJA::hip_global_size_y_direct, //g - RAJA::statement::For<3, RAJA::hip_global_size_x_direct, //m - RAJA::statement::For<0, RAJA::seq_exec, //d - RAJA::statement::Lambda<0> + if (tune_idx == 0) { + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::HipKernelFixedAsync, //z + RAJA::statement::For<2, RAJA::hip_global_size_y_direct, //g + RAJA::statement::For<3, RAJA::hip_global_size_x_direct, //m + RAJA::statement::For<0, RAJA::seq_exec, //d + RAJA::statement::Lambda<0> + > > > > > - > - >; + >; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_resource( - RAJA::make_tuple(IDRange(0, num_d), - IZRange(0, num_z), - IGRange(0, num_g), - IMRange(0, num_m)), - res, - [=] __device__ (ID d, IZ z, IG g, IM m) { - LTIMES_BODY_RAJA; - } - ); + RAJA::kernel_resource( + RAJA::make_tuple(IDRange(0, *num_d), + IZRange(0, *num_z), + IGRange(0, *num_g), + IMRange(0, *num_m)), + res, + [=] __device__ (ID d, IZ z, IG g, IM m) { + LTIMES_BODY; + } + ); + + } + stopTimer(); + + } else if (tune_idx == 1) { + + constexpr bool async = true; + + using launch_policy = RAJA::LaunchPolicy>; + + using z_policy = RAJA::LoopPolicy>; + + using g_policy = RAJA::LoopPolicy>; + + using m_policy = RAJA::LoopPolicy>; + + using d_policy = RAJA::LoopPolicy; + const size_t z_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_z, z_block_sz); + + const size_t g_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_g, g_block_sz); + + const size_t m_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_m, m_block_sz); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(m_grid_sz, g_grid_sz, z_grid_sz), + RAJA::Threads(m_block_sz, g_block_sz, z_block_sz)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, IZRange(0, *num_z), + [&](IZ z) { + RAJA::loop(ctx, IGRange(0, *num_g), + [&](IG g) { + RAJA::loop(ctx, IMRange(0, *num_m), + [&](IM m) { + RAJA::loop(ctx, IDRange(0, *num_d), + [&](ID d) { + LTIMES_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); } else { getCout() << "\n LTIMES : Unknown Hip variant id = " << vid << std::endl; } } -RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(LTIMES, Hip) +void LTIMES::runHipVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_HIP) { + + if (tune_idx == t) { + setBlockSize(block_size); + runHipVariantImpl(vid, 0); + + } + + t += 1; + + if (tune_idx == t) { + setBlockSize(block_size); + runHipVariantImpl(vid, 1); + + } + + t += 1; + + } else { + + if (tune_idx == t) { + setBlockSize(block_size); + runHipVariantImpl(vid, 0); + + } + + t += 1; + } + + } + + }); +} + +void LTIMES::setHipTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_HIP) { + addVariantTuningName(vid, "kernel_"+std::to_string(block_size)); + addVariantTuningName(vid, "launch_"+std::to_string(block_size)); + } else { + addVariantTuningName(vid, "block_"+std::to_string(block_size)); + } + + } + + }); + +} } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES-OMP.cpp b/src/apps/LTIMES-OMP.cpp index 80c4a4a0e..7b965361d 100644 --- a/src/apps/LTIMES-OMP.cpp +++ b/src/apps/LTIMES-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -17,8 +17,9 @@ namespace rajaperf namespace apps { +using namespace ltimes_idx; -void LTIMES::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +void LTIMES::runOpenMPVariant(VariantID vid, size_t tune_idx) { #if defined(RAJA_ENABLE_OPENMP) && defined(RUN_OPENMP) @@ -34,10 +35,11 @@ void LTIMES::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx for (RepIndex_type irep = 0; irep < run_reps; ++irep) { #pragma omp parallel for - for (Index_type z = 0; z < num_z; ++z ) { - for (Index_type g = 0; g < num_g; ++g ) { - for (Index_type m = 0; m < num_m; ++m ) { - for (Index_type d = 0; d < num_d; ++d ) { + for (RAJA::Index_type iz = 0; iz < *num_z; ++iz ) { + IZ z(iz); + for (IG g(0); g < num_g; ++g ) { + for (IM m(0); m < num_m; ++m ) { + for (ID d(0); d < num_d; ++d ) { LTIMES_BODY; } } @@ -52,8 +54,7 @@ void LTIMES::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case Lambda_OpenMP : { - auto ltimes_base_lam = [=](Index_type d, Index_type z, - Index_type g, Index_type m) { + auto ltimes_base_lam = [=](ID d, IZ z, IG g, IM m) { LTIMES_BODY; }; @@ -61,10 +62,11 @@ void LTIMES::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx for (RepIndex_type irep = 0; irep < run_reps; ++irep) { #pragma omp parallel for - for (Index_type z = 0; z < num_z; ++z ) { - for (Index_type g = 0; g < num_g; ++g ) { - for (Index_type m = 0; m < num_m; ++m ) { - for (Index_type d = 0; d < num_d; ++d ) { + for (RAJA::Index_type iz = 0; iz < *num_z; ++iz ) { + IZ z(iz); + for (IG g(0); g < num_g; ++g ) { + for (IM m(0); m < num_m; ++m ) { + for (ID d(0); d < num_d; ++d ) { ltimes_base_lam(d, z, g, m); } } @@ -79,37 +81,85 @@ void LTIMES::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_OpenMP : { - LTIMES_VIEWS_RANGES_RAJA; + auto res{getHostResource()}; - auto ltimes_lam = [=](ID d, IZ z, IG g, IM m) { - LTIMES_BODY_RAJA; - }; + if (tune_idx == 0) { - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::For<1, RAJA::omp_parallel_for_exec, // z - RAJA::statement::For<2, RAJA::seq_exec, // g - RAJA::statement::For<3, RAJA::seq_exec, // m - RAJA::statement::For<0, RAJA::seq_exec, // d - RAJA::statement::Lambda<0> + auto ltimes_lam = [=](ID d, IZ z, IG g, IM m) { + LTIMES_BODY; + }; + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::For<1, RAJA::omp_parallel_for_exec, // z + RAJA::statement::For<2, RAJA::seq_exec, // g + RAJA::statement::For<3, RAJA::seq_exec, // m + RAJA::statement::For<0, RAJA::seq_exec, // d + RAJA::statement::Lambda<0> + > > > > - > - >; + >; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::kernel_resource( RAJA::make_tuple(IDRange(0, *num_d), + IZRange(0, *num_z), + IGRange(0, *num_g), + IMRange(0, *num_m)), + res, + ltimes_lam + ); + + } + stopTimer(); + + } else if (tune_idx == 1) { + + using launch_policy = RAJA::LaunchPolicy; + + using z_policy = RAJA::LoopPolicy; + + using g_policy = RAJA::LoopPolicy; + + using m_policy = RAJA::LoopPolicy; + + using d_policy = RAJA::LoopPolicy; - RAJA::kernel( RAJA::make_tuple(IDRange(0, num_d), - IZRange(0, num_z), - IGRange(0, num_g), - IMRange(0, num_m)), - ltimes_lam - ); + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, IZRange(0, *num_z), + [&](IZ z) { + RAJA::loop(ctx, IGRange(0, *num_g), + [&](IG g) { + RAJA::loop(ctx, IMRange(0, *num_m), + [&](IM m) { + RAJA::loop(ctx, IDRange(0, *num_d), + [&](ID d) { + LTIMES_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); break; } @@ -125,5 +175,17 @@ void LTIMES::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx #endif } +void LTIMES::setOpenMPTuningDefinitions(VariantID vid) +{ + + if (vid == RAJA_OpenMP) { + addVariantTuningName(vid, "kernel"); + addVariantTuningName(vid, "launch"); + } else { + addVariantTuningName(vid, "default"); + } + +} + } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES-OMPTarget.cpp b/src/apps/LTIMES-OMPTarget.cpp index da7047d20..75e957de9 100644 --- a/src/apps/LTIMES-OMPTarget.cpp +++ b/src/apps/LTIMES-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -21,6 +21,7 @@ namespace rajaperf namespace apps { +using namespace ltimes_idx; void LTIMES::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { @@ -33,12 +34,15 @@ void LTIMES::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - #pragma omp target is_device_ptr(phidat, elldat, psidat) device( did ) + #pragma omp target firstprivate(psi, ell, phi, num_z, num_g, num_m, num_d) device( did ) #pragma omp teams distribute parallel for schedule(static, 1) collapse(3) - for (Index_type z = 0; z < num_z; ++z ) { - for (Index_type g = 0; g < num_g; ++g ) { - for (Index_type m = 0; m < num_m; ++m ) { - for (Index_type d = 0; d < num_d; ++d ) { + for (RAJA::Index_type iz = 0; iz < *num_z; ++iz ) { + for (RAJA::Index_type ig = 0; ig < *num_g; ++ig ) { + for (RAJA::Index_type im = 0; im < *num_m; ++im ) { + IZ z(iz); + IG g(ig); + IM m(im); + for (ID d(0); d < num_d; ++d ) { LTIMES_BODY; } } @@ -50,7 +54,7 @@ void LTIMES::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } else if ( vid == RAJA_OpenMPTarget ) { - LTIMES_VIEWS_RANGES_RAJA; + auto res{getOmpTargetResource()}; using EXEC_POL = RAJA::KernelPolicy< @@ -65,12 +69,13 @@ void LTIMES::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(IDRange(0, num_d), - IZRange(0, num_z), - IGRange(0, num_g), - IMRange(0, num_m)), + RAJA::kernel_resource( RAJA::make_tuple(IDRange(0, *num_d), + IZRange(0, *num_z), + IGRange(0, *num_g), + IMRange(0, *num_m)), + res, [=] (ID d, IZ z, IG g, IM m) { - LTIMES_BODY_RAJA; + LTIMES_BODY; }); } @@ -81,6 +86,17 @@ void LTIMES::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } } +void LTIMES::setOpenMPTargetTuningDefinitions(VariantID vid) +{ + + if (vid == RAJA_OpenMPTarget) { + addVariantTuningName(vid, "kernel"); + } else { + addVariantTuningName(vid, "default"); + } + +} + } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES-Seq.cpp b/src/apps/LTIMES-Seq.cpp index 66503ed26..c145eaecc 100644 --- a/src/apps/LTIMES-Seq.cpp +++ b/src/apps/LTIMES-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -17,8 +17,9 @@ namespace rajaperf namespace apps { +using namespace ltimes_idx; -void LTIMES::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +void LTIMES::runSeqVariant(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); @@ -31,10 +32,10 @@ void LTIMES::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - for (Index_type z = 0; z < num_z; ++z ) { - for (Index_type g = 0; g < num_g; ++g ) { - for (Index_type m = 0; m < num_m; ++m ) { - for (Index_type d = 0; d < num_d; ++d ) { + for (IZ z(0); z < num_z; ++z ) { + for (IG g(0); g < num_g; ++g ) { + for (IM m(0); m < num_m; ++m ) { + for (ID d(0); d < num_d; ++d ) { LTIMES_BODY; } } @@ -50,18 +51,17 @@ void LTIMES::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) #if defined(RUN_RAJA_SEQ) case Lambda_Seq : { - auto ltimes_base_lam = [=](Index_type d, Index_type z, - Index_type g, Index_type m) { + auto ltimes_base_lam = [=](ID d, IZ z, IG g, IM m) { LTIMES_BODY; }; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - for (Index_type z = 0; z < num_z; ++z ) { - for (Index_type g = 0; g < num_g; ++g ) { - for (Index_type m = 0; m < num_m; ++m ) { - for (Index_type d = 0; d < num_d; ++d ) { + for (IZ z(0); z < num_z; ++z ) { + for (IG g(0); g < num_g; ++g ) { + for (IM m(0); m < num_m; ++m ) { + for (ID d(0); d < num_d; ++d ) { ltimes_base_lam(d, z, g, m); } } @@ -76,38 +76,85 @@ void LTIMES::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { - LTIMES_VIEWS_RANGES_RAJA; + auto res{getHostResource()}; - auto ltimes_lam = [=](ID d, IZ z, IG g, IM m) { - LTIMES_BODY_RAJA; - }; + if (tune_idx == 0) { + auto ltimes_lam = [=](ID d, IZ z, IG g, IM m) { + LTIMES_BODY; + }; - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::For<1, RAJA::seq_exec, // z - RAJA::statement::For<2, RAJA::seq_exec, // g - RAJA::statement::For<3, RAJA::seq_exec, // m - RAJA::statement::For<0, RAJA::seq_exec, // d - RAJA::statement::Lambda<0> + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::For<1, RAJA::seq_exec, // z + RAJA::statement::For<2, RAJA::seq_exec, // g + RAJA::statement::For<3, RAJA::seq_exec, // m + RAJA::statement::For<0, RAJA::seq_exec, // d + RAJA::statement::Lambda<0> + > > > > - > - >; + >; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::kernel_resource( RAJA::make_tuple(IDRange(0, *num_d), + IZRange(0, *num_z), + IGRange(0, *num_g), + IMRange(0, *num_m)), + res, + ltimes_lam + ); + + } + stopTimer(); + + } else if (tune_idx == 1) { + + using launch_policy = RAJA::LaunchPolicy; + + using z_policy = RAJA::LoopPolicy; + + using g_policy = RAJA::LoopPolicy; + + using m_policy = RAJA::LoopPolicy; + + using d_policy = RAJA::LoopPolicy; - RAJA::kernel( RAJA::make_tuple(IDRange(0, num_d), - IZRange(0, num_z), - IGRange(0, num_g), - IMRange(0, num_m)), - ltimes_lam - ); + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, IZRange(0, *num_z), + [&](IZ z) { + RAJA::loop(ctx, IGRange(0, *num_g), + [&](IG g) { + RAJA::loop(ctx, IMRange(0, *num_m), + [&](IM m) { + RAJA::loop(ctx, IDRange(0, *num_d), + [&](ID d) { + LTIMES_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); break; } @@ -121,5 +168,17 @@ void LTIMES::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) } +void LTIMES::setSeqTuningDefinitions(VariantID vid) +{ + + if (vid == RAJA_Seq) { + addVariantTuningName(vid, "kernel"); + addVariantTuningName(vid, "launch"); + } else { + addVariantTuningName(vid, "default"); + } + +} + } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES-Sycl.cpp b/src/apps/LTIMES-Sycl.cpp index 541a132f7..794592e17 100644 --- a/src/apps/LTIMES-Sycl.cpp +++ b/src/apps/LTIMES-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -21,6 +21,8 @@ namespace rajaperf namespace apps { +using namespace ltimes_idx; + // // Define work-group shape for SYCL execution // @@ -29,7 +31,7 @@ namespace apps #define z_wg_sz (integer::lesser_of_squarest_factor_pair(work_group_size/m_wg_sz)) template -void LTIMES::runSyclVariantImpl(VariantID vid) +void LTIMES::runSyclVariantImpl(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); @@ -40,9 +42,9 @@ void LTIMES::runSyclVariantImpl(VariantID vid) if ( vid == Base_SYCL ) { - sycl::range<3> global_dim(z_wg_sz * RAJA_DIVIDE_CEILING_INT(num_z, z_wg_sz), - g_wg_sz * RAJA_DIVIDE_CEILING_INT(num_g, g_wg_sz), - m_wg_sz * RAJA_DIVIDE_CEILING_INT(num_m, m_wg_sz)); + sycl::range<3> global_dim(z_wg_sz * RAJA_DIVIDE_CEILING_INT(*num_z, z_wg_sz), + g_wg_sz * RAJA_DIVIDE_CEILING_INT(*num_g, g_wg_sz), + m_wg_sz * RAJA_DIVIDE_CEILING_INT(*num_m, m_wg_sz)); sycl::range<3> wkgroup_dim(z_wg_sz, g_wg_sz, m_wg_sz); startTimer(); @@ -52,12 +54,12 @@ void LTIMES::runSyclVariantImpl(VariantID vid) h.parallel_for(sycl::nd_range<3> ( global_dim, wkgroup_dim), [=] (sycl::nd_item<3> item) { - Index_type m = item.get_global_id(2); - Index_type g = item.get_global_id(1); - Index_type z = item.get_global_id(0); + IM m(item.get_global_id(2)); + IG g(item.get_global_id(1)); + IZ z(item.get_global_id(0)); if (m < num_m && g < num_g && z < num_z) { - for (Index_type d = 0; d < num_d; ++d) { + for (ID d(0); d < num_d; ++d) { LTIMES_BODY; } } @@ -70,45 +72,160 @@ void LTIMES::runSyclVariantImpl(VariantID vid) } else if ( vid == RAJA_SYCL ) { - LTIMES_VIEWS_RANGES_RAJA; - - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::SyclKernelAsync< - RAJA::statement::For<1, RAJA::sycl_global_2, //z - RAJA::statement::For<2, RAJA::sycl_global_1, //g - RAJA::statement::For<3, RAJA::sycl_global_0, //m - RAJA::statement::For<0, RAJA::seq_exec, //d - RAJA::statement::Lambda<0> + if (tune_idx == 0) { + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::SyclKernelAsync< + RAJA::statement::For<1, RAJA::sycl_global_0, //z + RAJA::statement::For<2, RAJA::sycl_global_1, //g + RAJA::statement::For<3, RAJA::sycl_global_2, //m + RAJA::statement::For<0, RAJA::seq_exec, //d + RAJA::statement::Lambda<0> + > > > > > - > - >; + >; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::kernel_resource( - RAJA::make_tuple(IDRange(0, num_d), - IZRange(0, num_z), - IGRange(0, num_g), - IMRange(0, num_m)), + RAJA::make_tuple(IDRange(0, *num_d), + IZRange(0, *num_z), + IGRange(0, *num_g), + IMRange(0, *num_m)), res, [=] (ID d, IZ z, IG g, IM m) { - LTIMES_BODY_RAJA; + LTIMES_BODY; }); } stopTimer(); + } else if (tune_idx == 1) { + + constexpr bool async = true; + + using launch_policy = RAJA::LaunchPolicy>; + + using z_policy = RAJA::LoopPolicy; + + using g_policy = RAJA::LoopPolicy; + + using m_policy = RAJA::LoopPolicy; + + using d_policy = RAJA::LoopPolicy; + + const size_t z_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_z, z_wg_sz); + + const size_t g_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_g, g_wg_sz); + + const size_t m_grid_sz = RAJA_DIVIDE_CEILING_INT(*num_m, m_wg_sz); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(m_grid_sz, g_grid_sz, z_grid_sz), + RAJA::Threads(m_wg_sz, g_wg_sz, z_wg_sz)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, IZRange(0, *num_z), + [&](IZ z) { + RAJA::loop(ctx, IGRange(0, *num_g), + [&](IG g) { + RAJA::loop(ctx, IMRange(0, *num_m), + [&](IM m) { + RAJA::loop(ctx, IDRange(0, *num_d), + [&](ID d) { + LTIMES_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); + } + } else { std::cout << "\n LTIMES : Unknown Sycl variant id = " << vid << std::endl; } } -RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(LTIMES, Sycl) +void LTIMES::runSyclVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto work_group_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(work_group_size)) { + + if (vid == RAJA_SYCL) { + + if (tune_idx == t) { + setBlockSize(work_group_size); + runSyclVariantImpl(vid, 0); + + } + + t += 1; + + if (tune_idx == t) { + setBlockSize(work_group_size); + runSyclVariantImpl(vid, 1); + + } + + t += 1; + + } else { + + if (tune_idx == t) { + setBlockSize(work_group_size); + runSyclVariantImpl(vid, 0); + + } + + t += 1; + } + + } + + }); +} + +void LTIMES::setSyclTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto work_group_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(work_group_size)) { + + if (vid == RAJA_SYCL) { + addVariantTuningName(vid, "kernel_"+std::to_string(work_group_size)); + addVariantTuningName(vid, "launch_"+std::to_string(work_group_size)); + } else { + addVariantTuningName(vid, "block_"+std::to_string(work_group_size)); + } + + } + + }); + +} } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES.cpp b/src/apps/LTIMES.cpp index 798d44715..41c54b8d1 100644 --- a/src/apps/LTIMES.cpp +++ b/src/apps/LTIMES.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -53,7 +53,10 @@ LTIMES::LTIMES(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); + setUsesFeature(Launch); setUsesFeature(View); setVariantDefined( Base_Seq ); diff --git a/src/apps/LTIMES.hpp b/src/apps/LTIMES.hpp index 0e74f187f..7833e3e33 100644 --- a/src/apps/LTIMES.hpp +++ b/src/apps/LTIMES.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -31,52 +31,25 @@ #define RAJAPerf_Apps_LTIMES_HPP #define LTIMES_DATA_SETUP \ - Real_ptr phidat = m_phidat; \ - Real_ptr elldat = m_elldat; \ - Real_ptr psidat = m_psidat; \ + ID num_d(m_num_d); \ + IZ num_z(m_num_z); \ + IG num_g(m_num_g); \ + IM num_m(m_num_m); \ \ - Index_type num_d = m_num_d; \ - Index_type num_z = m_num_z; \ - Index_type num_g = m_num_g; \ - Index_type num_m = m_num_m; + PSI_VIEW psi(m_psidat, \ + RAJA::make_permuted_layout( {{*num_z, *num_g, *num_d}}, \ + RAJA::as_array >::get() ) ); \ + ELL_VIEW ell(m_elldat, \ + RAJA::make_permuted_layout( {{*num_m, *num_d}}, \ + RAJA::as_array >::get() ) ); \ + PHI_VIEW phi(m_phidat, \ + RAJA::make_permuted_layout( {{*num_z, *num_g, *num_m}}, \ + RAJA::as_array >::get() ) ); #define LTIMES_BODY \ - phidat[m+ (g * num_m) + (z * num_m * num_g)] += \ - elldat[d+ (m * num_d)] * psidat[d+ (g * num_d) + (z * num_d * num_g)]; - -#define LTIMES_BODY_RAJA \ phi(z, g, m) += ell(m, d) * psi(z, g, d); -#define LTIMES_VIEWS_RANGES_RAJA \ - using namespace ltimes_idx; \ -\ - using PSI_VIEW = RAJA::TypedView, \ - IZ, IG, ID>; \ - using ELL_VIEW = RAJA::TypedView, \ - IM, ID>; \ - using PHI_VIEW = RAJA::TypedView, \ - IZ, IG, IM>; \ -\ - PSI_VIEW psi(psidat, \ - RAJA::make_permuted_layout( {{num_z, num_g, num_d}}, \ - RAJA::as_array >::get() ) ); \ - ELL_VIEW ell(elldat, \ - RAJA::make_permuted_layout( {{num_m, num_d}}, \ - RAJA::as_array >::get() ) ); \ - PHI_VIEW phi(phidat, \ - RAJA::make_permuted_layout( {{num_z, num_g, num_m}}, \ - RAJA::as_array >::get() ) ); \ -\ - using IDRange = RAJA::TypedRangeSegment; \ - using IZRange = RAJA::TypedRangeSegment; \ - using IGRange = RAJA::TypedRangeSegment; \ - using IMRange = RAJA::TypedRangeSegment; - - #include "common/KernelBase.hpp" #include "RAJA/RAJA.hpp" @@ -97,6 +70,21 @@ namespace ltimes_idx { RAJA_INDEX_VALUE(IZ, "IZ"); RAJA_INDEX_VALUE(IG, "IG"); RAJA_INDEX_VALUE(IM, "IM"); + + using PSI_VIEW = RAJA::TypedView, + IZ, IG, ID>; + using ELL_VIEW = RAJA::TypedView, + IM, ID>; + using PHI_VIEW = RAJA::TypedView, + IZ, IG, IM>; + + using IDRange = RAJA::TypedRangeSegment; + using IZRange = RAJA::TypedRangeSegment; + using IGRange = RAJA::TypedRangeSegment; + using IMRange = RAJA::TypedRangeSegment; } class LTIMES : public KernelBase @@ -118,16 +106,19 @@ class LTIMES : public KernelBase void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); void runSyclVariant(VariantID vid, size_t tune_idx); + void setSeqTuningDefinitions(VariantID vid); + void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); template < size_t block_size > - void runCudaVariantImpl(VariantID vid); + void runCudaVariantImpl(VariantID vid, size_t tune_idx); template < size_t block_size > - void runHipVariantImpl(VariantID vid); + void runHipVariantImpl(VariantID vid, size_t tune_idx); template < size_t work_group_size > - void runSyclVariantImpl(VariantID vid); + void runSyclVariantImpl(VariantID vid, size_t tune_idx); private: static const size_t default_gpu_block_size = 256; diff --git a/src/apps/LTIMES_NOVIEW-Cuda.cpp b/src/apps/LTIMES_NOVIEW-Cuda.cpp index 9486f20e2..572e4a0ae 100644 --- a/src/apps/LTIMES_NOVIEW-Cuda.cpp +++ b/src/apps/LTIMES_NOVIEW-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,7 +73,7 @@ __global__ void ltimes_noview_lam(Index_type num_m, Index_type num_g, Index_type template < size_t block_size > -void LTIMES_NOVIEW::runCudaVariantImpl(VariantID vid) +void LTIMES_NOVIEW::runCudaVariantImpl(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); @@ -129,45 +129,162 @@ void LTIMES_NOVIEW::runCudaVariantImpl(VariantID vid) } else if ( vid == RAJA_CUDA ) { - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::CudaKernelFixedAsync, //z - RAJA::statement::For<2, RAJA::cuda_global_size_y_direct, //g - RAJA::statement::For<3, RAJA::cuda_global_size_x_direct, //m - RAJA::statement::For<0, RAJA::seq_exec, //d - RAJA::statement::Lambda<0> + if (tune_idx == 0) { + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::CudaKernelFixedAsync, //z + RAJA::statement::For<2, RAJA::cuda_global_size_y_direct, //g + RAJA::statement::For<3, RAJA::cuda_global_size_x_direct, //m + RAJA::statement::For<0, RAJA::seq_exec, //d + RAJA::statement::Lambda<0> + > > > > > - > - >; + >; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment(0, num_d), + RAJA::RangeSegment(0, num_z), + RAJA::RangeSegment(0, num_g), + RAJA::RangeSegment(0, num_m)), + res, + [=] __device__ (Index_type d, Index_type z, + Index_type g, Index_type m) { + LTIMES_NOVIEW_BODY; + } + ); - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + } + stopTimer(); - RAJA::kernel_resource( - RAJA::make_tuple(RAJA::RangeSegment(0, num_d), - RAJA::RangeSegment(0, num_z), - RAJA::RangeSegment(0, num_g), - RAJA::RangeSegment(0, num_m)), - res, - [=] __device__ (Index_type d, Index_type z, - Index_type g, Index_type m) { - LTIMES_NOVIEW_BODY; - } - ); + } else if (tune_idx == 1) { + + constexpr bool async = true; + + using launch_policy = RAJA::LaunchPolicy>; + + using z_policy = RAJA::LoopPolicy>; + + using g_policy = RAJA::LoopPolicy>; + + using m_policy = RAJA::LoopPolicy>; + + using d_policy = RAJA::LoopPolicy; + + const size_t z_grid_sz = RAJA_DIVIDE_CEILING_INT(num_z, z_block_sz); + + const size_t g_grid_sz = RAJA_DIVIDE_CEILING_INT(num_g, g_block_sz); + const size_t m_grid_sz = RAJA_DIVIDE_CEILING_INT(num_m, m_block_sz); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(m_grid_sz, g_grid_sz, z_grid_sz), + RAJA::Threads(m_block_sz, g_block_sz, z_block_sz)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, RAJA::RangeSegment(0, num_z), + [&](Index_type z) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_g), + [&](Index_type g) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_m), + [&](Index_type m) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_d), + [&](Index_type d) { + LTIMES_NOVIEW_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); } else { getCout() << "\n LTIMES_NOVIEW : Unknown Cuda variant id = " << vid << std::endl; } } -RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(LTIMES_NOVIEW, Cuda) +void LTIMES_NOVIEW::runCudaVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_CUDA) { + + if (tune_idx == t) { + setBlockSize(block_size); + runCudaVariantImpl(vid, 0); + + } + + t += 1; + + if (tune_idx == t) { + setBlockSize(block_size); + runCudaVariantImpl(vid, 1); + + } + + t += 1; + + } else { + + if (tune_idx == t) { + setBlockSize(block_size); + runCudaVariantImpl(vid, 0); + + } + + t += 1; + } + + } + + }); +} + +void LTIMES_NOVIEW::setCudaTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_CUDA) { + addVariantTuningName(vid, "kernel_"+std::to_string(block_size)); + addVariantTuningName(vid, "launch_"+std::to_string(block_size)); + } else { + addVariantTuningName(vid, "block_"+std::to_string(block_size)); + } + + } + + }); + +} } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES_NOVIEW-Hip.cpp b/src/apps/LTIMES_NOVIEW-Hip.cpp index be6e2d756..39aeefffa 100644 --- a/src/apps/LTIMES_NOVIEW-Hip.cpp +++ b/src/apps/LTIMES_NOVIEW-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,7 +73,7 @@ __global__ void ltimes_noview_lam(Index_type num_m, Index_type num_g, Index_type template < size_t block_size > -void LTIMES_NOVIEW::runHipVariantImpl(VariantID vid) +void LTIMES_NOVIEW::runHipVariantImpl(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); @@ -129,45 +129,162 @@ void LTIMES_NOVIEW::runHipVariantImpl(VariantID vid) } else if ( vid == RAJA_HIP ) { - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::HipKernelFixedAsync, //z - RAJA::statement::For<2, RAJA::hip_global_size_y_direct, //g - RAJA::statement::For<3, RAJA::hip_global_size_x_direct, //m - RAJA::statement::For<0, RAJA::seq_exec, //d - RAJA::statement::Lambda<0> + if (tune_idx == 0) { + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::HipKernelFixedAsync, //z + RAJA::statement::For<2, RAJA::hip_global_size_y_direct, //g + RAJA::statement::For<3, RAJA::hip_global_size_x_direct, //m + RAJA::statement::For<0, RAJA::seq_exec, //d + RAJA::statement::Lambda<0> + > > > > > - > - >; + >; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment(0, num_d), + RAJA::RangeSegment(0, num_z), + RAJA::RangeSegment(0, num_g), + RAJA::RangeSegment(0, num_m)), + res, + [=] __device__ (Index_type d, Index_type z, + Index_type g, Index_type m) { + LTIMES_NOVIEW_BODY; + } + ); - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + } + stopTimer(); - RAJA::kernel_resource( - RAJA::make_tuple(RAJA::RangeSegment(0, num_d), - RAJA::RangeSegment(0, num_z), - RAJA::RangeSegment(0, num_g), - RAJA::RangeSegment(0, num_m)), - res, - [=] __device__ (Index_type d, Index_type z, - Index_type g, Index_type m) { - LTIMES_NOVIEW_BODY; - } - ); + } else if (tune_idx == 1) { + + constexpr bool async = true; + + using launch_policy = RAJA::LaunchPolicy>; + + using z_policy = RAJA::LoopPolicy>; + + using g_policy = RAJA::LoopPolicy>; + + using m_policy = RAJA::LoopPolicy>; + + using d_policy = RAJA::LoopPolicy; + + const size_t z_grid_sz = RAJA_DIVIDE_CEILING_INT(num_z, z_block_sz); + + const size_t g_grid_sz = RAJA_DIVIDE_CEILING_INT(num_g, g_block_sz); + const size_t m_grid_sz = RAJA_DIVIDE_CEILING_INT(num_m, m_block_sz); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(m_grid_sz, g_grid_sz, z_grid_sz), + RAJA::Threads(m_block_sz, g_block_sz, z_block_sz)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, RAJA::RangeSegment(0, num_z), + [&](Index_type z) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_g), + [&](Index_type g) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_m), + [&](Index_type m) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_d), + [&](Index_type d) { + LTIMES_NOVIEW_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); } else { getCout() << "\n LTIMES_NOVIEW : Unknown Hip variant id = " << vid << std::endl; } } -RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(LTIMES_NOVIEW, Hip) +void LTIMES_NOVIEW::runHipVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_HIP) { + + if (tune_idx == t) { + setBlockSize(block_size); + runHipVariantImpl(vid, 0); + + } + + t += 1; + + if (tune_idx == t) { + setBlockSize(block_size); + runHipVariantImpl(vid, 1); + + } + + t += 1; + + } else { + + if (tune_idx == t) { + setBlockSize(block_size); + runHipVariantImpl(vid, 0); + + } + + t += 1; + } + + } + + }); +} + +void LTIMES_NOVIEW::setHipTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + if (vid == RAJA_HIP) { + addVariantTuningName(vid, "kernel_"+std::to_string(block_size)); + addVariantTuningName(vid, "launch_"+std::to_string(block_size)); + } else { + addVariantTuningName(vid, "block_"+std::to_string(block_size)); + } + + } + + }); + +} } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES_NOVIEW-OMP.cpp b/src/apps/LTIMES_NOVIEW-OMP.cpp index 900606076..e703093c2 100644 --- a/src/apps/LTIMES_NOVIEW-OMP.cpp +++ b/src/apps/LTIMES_NOVIEW-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -18,7 +18,7 @@ namespace apps { -void LTIMES_NOVIEW::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +void LTIMES_NOVIEW::runOpenMPVariant(VariantID vid, size_t tune_idx) { #if defined(RAJA_ENABLE_OPENMP) && defined(RUN_OPENMP) @@ -26,11 +26,6 @@ void LTIMES_NOVIEW::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t LTIMES_NOVIEW_DATA_SETUP; - auto ltimesnoview_lam = [=](Index_type d, Index_type z, - Index_type g, Index_type m) { - LTIMES_NOVIEW_BODY; - }; - switch ( vid ) { case Base_OpenMP : { @@ -57,6 +52,11 @@ void LTIMES_NOVIEW::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case Lambda_OpenMP : { + auto ltimesnoview_lam = [=](Index_type d, Index_type z, + Index_type g, Index_type m) { + LTIMES_NOVIEW_BODY; + }; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { @@ -79,31 +79,86 @@ void LTIMES_NOVIEW::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::For<1, RAJA::omp_parallel_for_exec, // z - RAJA::statement::For<2, RAJA::seq_exec, // g - RAJA::statement::For<3, RAJA::seq_exec, // m - RAJA::statement::For<0, RAJA::seq_exec, // d - RAJA::statement::Lambda<0> + auto res{getHostResource()}; + + if (tune_idx == 0) { + + auto ltimesnoview_lam = [=](Index_type d, Index_type z, + Index_type g, Index_type m) { + LTIMES_NOVIEW_BODY; + }; + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::For<1, RAJA::omp_parallel_for_exec, // z + RAJA::statement::For<2, RAJA::seq_exec, // g + RAJA::statement::For<3, RAJA::seq_exec, // m + RAJA::statement::For<0, RAJA::seq_exec, // d + RAJA::statement::Lambda<0> + > > > > - > - >; + >; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment(0, num_d), + RAJA::RangeSegment(0, num_z), + RAJA::RangeSegment(0, num_g), + RAJA::RangeSegment(0, num_m)), + res, + ltimesnoview_lam + ); + + } + stopTimer(); + + } else if (tune_idx == 1) { + + using launch_policy = RAJA::LaunchPolicy; + + using z_policy = RAJA::LoopPolicy; - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment(0, num_d), - RAJA::RangeSegment(0, num_z), - RAJA::RangeSegment(0, num_g), - RAJA::RangeSegment(0, num_m)), - ltimesnoview_lam - ); + using g_policy = RAJA::LoopPolicy; + + using m_policy = RAJA::LoopPolicy; + + using d_policy = RAJA::LoopPolicy; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, RAJA::RangeSegment(0, num_z), + [&](Index_type z) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_g), + [&](Index_type g) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_m), + [&](Index_type m) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_d), + [&](Index_type d) { + LTIMES_NOVIEW_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); break; } @@ -119,5 +174,17 @@ void LTIMES_NOVIEW::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t #endif } +void LTIMES_NOVIEW::setOpenMPTuningDefinitions(VariantID vid) +{ + + if (vid == RAJA_OpenMP) { + addVariantTuningName(vid, "kernel"); + addVariantTuningName(vid, "launch"); + } else { + addVariantTuningName(vid, "default"); + } + +} + } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES_NOVIEW-OMPTarget.cpp b/src/apps/LTIMES_NOVIEW-OMPTarget.cpp index 1ffddaeaa..82636f2a9 100644 --- a/src/apps/LTIMES_NOVIEW-OMPTarget.cpp +++ b/src/apps/LTIMES_NOVIEW-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,6 +50,8 @@ void LTIMES_NOVIEW::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + using EXEC_POL = RAJA::KernelPolicy< RAJA::statement::Collapse( RAJA::make_tuple(RAJA::RangeSegment(0, num_d), - RAJA::RangeSegment(0, num_z), - RAJA::RangeSegment(0, num_g), - RAJA::RangeSegment(0, num_m)), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment(0, num_d), + RAJA::RangeSegment(0, num_z), + RAJA::RangeSegment(0, num_g), + RAJA::RangeSegment(0, num_m)), + res, [=] (Index_type d, Index_type z, Index_type g, Index_type m) { LTIMES_NOVIEW_BODY; }); @@ -79,6 +83,17 @@ void LTIMES_NOVIEW::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } } +void LTIMES_NOVIEW::setOpenMPTargetTuningDefinitions(VariantID vid) +{ + + if (vid == RAJA_OpenMPTarget) { + addVariantTuningName(vid, "kernel"); + } else { + addVariantTuningName(vid, "default"); + } + +} + } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES_NOVIEW-Seq.cpp b/src/apps/LTIMES_NOVIEW-Seq.cpp index d4c6e4f41..b93361af0 100644 --- a/src/apps/LTIMES_NOVIEW-Seq.cpp +++ b/src/apps/LTIMES_NOVIEW-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -18,19 +18,12 @@ namespace apps { -void LTIMES_NOVIEW::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +void LTIMES_NOVIEW::runSeqVariant(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); LTIMES_NOVIEW_DATA_SETUP; -#if defined(RUN_RAJA_SEQ) - auto ltimesnoview_lam = [=](Index_type d, Index_type z, - Index_type g, Index_type m) { - LTIMES_NOVIEW_BODY; - }; -#endif - switch ( vid ) { case Base_Seq : { @@ -57,6 +50,11 @@ void LTIMES_NOVIEW::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune #if defined(RUN_RAJA_SEQ) case Lambda_Seq : { + auto ltimesnoview_lam = [=](Index_type d, Index_type z, + Index_type g, Index_type m) { + LTIMES_NOVIEW_BODY; + }; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { @@ -78,31 +76,86 @@ void LTIMES_NOVIEW::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::For<1, RAJA::seq_exec, // z - RAJA::statement::For<2, RAJA::seq_exec, // g - RAJA::statement::For<3, RAJA::seq_exec, // m - RAJA::statement::For<0, RAJA::seq_exec, // d - RAJA::statement::Lambda<0> + auto res{getHostResource()}; + + if (tune_idx == 0) { + + auto ltimesnoview_lam = [=](Index_type d, Index_type z, + Index_type g, Index_type m) { + LTIMES_NOVIEW_BODY; + }; + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::For<1, RAJA::seq_exec, // z + RAJA::statement::For<2, RAJA::seq_exec, // g + RAJA::statement::For<3, RAJA::seq_exec, // m + RAJA::statement::For<0, RAJA::seq_exec, // d + RAJA::statement::Lambda<0> + > > > > - > - >; + >; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment(0, num_d), + RAJA::RangeSegment(0, num_z), + RAJA::RangeSegment(0, num_g), + RAJA::RangeSegment(0, num_m)), + res, + ltimesnoview_lam + ); + + } + stopTimer(); + + } else if (tune_idx == 1) { + + using launch_policy = RAJA::LaunchPolicy; - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment(0, num_d), - RAJA::RangeSegment(0, num_z), - RAJA::RangeSegment(0, num_g), - RAJA::RangeSegment(0, num_m)), - ltimesnoview_lam - ); + using z_policy = RAJA::LoopPolicy; + + using g_policy = RAJA::LoopPolicy; + + using m_policy = RAJA::LoopPolicy; + + using d_policy = RAJA::LoopPolicy; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, RAJA::RangeSegment(0, num_z), + [&](Index_type z) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_g), + [&](Index_type g) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_m), + [&](Index_type m) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_d), + [&](Index_type d) { + LTIMES_NOVIEW_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); break; } @@ -116,5 +169,17 @@ void LTIMES_NOVIEW::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune } +void LTIMES_NOVIEW::setSeqTuningDefinitions(VariantID vid) +{ + + if (vid == RAJA_Seq) { + addVariantTuningName(vid, "kernel"); + addVariantTuningName(vid, "launch"); + } else { + addVariantTuningName(vid, "default"); + } + +} + } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES_NOVIEW-Sycl.cpp b/src/apps/LTIMES_NOVIEW-Sycl.cpp index d9b5cfaf6..fbeb0848e 100644 --- a/src/apps/LTIMES_NOVIEW-Sycl.cpp +++ b/src/apps/LTIMES_NOVIEW-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -29,7 +29,7 @@ namespace apps #define z_wg_sz (integer::lesser_of_squarest_factor_pair(work_group_size/m_wg_sz)) template -void LTIMES_NOVIEW::runSyclVariantImpl(VariantID vid) +void LTIMES_NOVIEW::runSyclVariantImpl(VariantID vid, size_t tune_idx) { const Index_type run_reps = getRunReps(); @@ -70,43 +70,160 @@ void LTIMES_NOVIEW::runSyclVariantImpl(VariantID vid) } else if ( vid == RAJA_SYCL ) { - using EXEC_POL = - RAJA::KernelPolicy< - RAJA::statement::SyclKernelAsync< - RAJA::statement::For<1, RAJA::sycl_global_2, //z - RAJA::statement::For<2, RAJA::sycl_global_1, //g - RAJA::statement::For<3, RAJA::sycl_global_0, //m - RAJA::statement::For<0, RAJA::seq_exec, //d - RAJA::statement::Lambda<0> + if (tune_idx == 0) { + + using EXEC_POL = + RAJA::KernelPolicy< + RAJA::statement::SyclKernelAsync< + RAJA::statement::For<1, RAJA::sycl_global_0, //z + RAJA::statement::For<2, RAJA::sycl_global_1, //g + RAJA::statement::For<3, RAJA::sycl_global_2, //m + RAJA::statement::For<0, RAJA::seq_exec, //d + RAJA::statement::Lambda<0> + > > > > > - > - >; + >; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment(0, num_d), + RAJA::RangeSegment(0, num_z), + RAJA::RangeSegment(0, num_g), + RAJA::RangeSegment(0, num_m)), + res, + [=] (Index_type d, Index_type z, Index_type g, Index_type m) { + LTIMES_NOVIEW_BODY; + }); - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + } + stopTimer(); - RAJA::kernel_resource( - RAJA::make_tuple(RAJA::RangeSegment(0, num_d), - RAJA::RangeSegment(0, num_z), - RAJA::RangeSegment(0, num_g), - RAJA::RangeSegment(0, num_m)), - res, - [=] (Index_type d, Index_type z, Index_type g, Index_type m) { - LTIMES_NOVIEW_BODY; - }); + } else if (tune_idx == 1) { + + constexpr bool async = true; + + using launch_policy = RAJA::LaunchPolicy>; + + using z_policy = RAJA::LoopPolicy; + + using g_policy = RAJA::LoopPolicy; + + using m_policy = RAJA::LoopPolicy; + + using d_policy = RAJA::LoopPolicy; + + const size_t z_grid_sz = RAJA_DIVIDE_CEILING_INT(num_z, z_wg_sz); + + const size_t g_grid_sz = RAJA_DIVIDE_CEILING_INT(num_g, g_wg_sz); + const size_t m_grid_sz = RAJA_DIVIDE_CEILING_INT(num_m, m_wg_sz); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::launch( res, + RAJA::LaunchParams(RAJA::Teams(m_grid_sz, g_grid_sz, z_grid_sz), + RAJA::Threads(m_wg_sz, g_wg_sz, z_wg_sz)), + [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { + + RAJA::loop(ctx, RAJA::RangeSegment(0, num_z), + [&](Index_type z) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_g), + [&](Index_type g) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_m), + [&](Index_type m) { + RAJA::loop(ctx, RAJA::RangeSegment(0, num_d), + [&](Index_type d) { + LTIMES_NOVIEW_BODY + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + } + ); // RAJA::loop + + } // outer lambda (ctx) + ); // RAJA::launch + + } // loop over kernel reps + stopTimer(); } - stopTimer(); } else { std::cout << "\n LTIMES_NOVIEW : Unknown Sycl variant id = " << vid << std::endl; } } -RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(LTIMES_NOVIEW, Sycl) +void LTIMES_NOVIEW::runSyclVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto work_group_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(work_group_size)) { + + if (vid == RAJA_SYCL) { + + if (tune_idx == t) { + setBlockSize(work_group_size); + runSyclVariantImpl(vid, 0); + + } + + t += 1; + + if (tune_idx == t) { + setBlockSize(work_group_size); + runSyclVariantImpl(vid, 1); + + } + + t += 1; + + } else { + + if (tune_idx == t) { + setBlockSize(work_group_size); + runSyclVariantImpl(vid, 0); + + } + + t += 1; + } + + } + + }); +} + +void LTIMES_NOVIEW::setSyclTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto work_group_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(work_group_size)) { + + if (vid == RAJA_SYCL) { + addVariantTuningName(vid, "kernel_"+std::to_string(work_group_size)); + addVariantTuningName(vid, "launch_"+std::to_string(work_group_size)); + } else { + addVariantTuningName(vid, "block_"+std::to_string(work_group_size)); + } + + } + + }); + +} } // end namespace apps } // end namespace rajaperf diff --git a/src/apps/LTIMES_NOVIEW.cpp b/src/apps/LTIMES_NOVIEW.cpp index 0e675d487..2ce2c26be 100644 --- a/src/apps/LTIMES_NOVIEW.cpp +++ b/src/apps/LTIMES_NOVIEW.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -53,7 +53,10 @@ LTIMES_NOVIEW::LTIMES_NOVIEW(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); + setUsesFeature(Launch); setVariantDefined( Base_Seq ); setVariantDefined( Lambda_Seq ); diff --git a/src/apps/LTIMES_NOVIEW.hpp b/src/apps/LTIMES_NOVIEW.hpp index 4829b8171..8c0d4652b 100644 --- a/src/apps/LTIMES_NOVIEW.hpp +++ b/src/apps/LTIMES_NOVIEW.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -11,7 +11,7 @@ /// /// for (Index_type z = 0; z < num_z; ++z ) { /// for (Index_type g = 0; g < num_g; ++g ) { -/// for (Index_type m = 0; z < num_m; ++m ) { +/// for (Index_type m = 0; m < num_m; ++m ) { /// for (Index_type d = 0; d < num_d; ++d ) { /// /// phi[m+ (g * num_m) + (z * num_m * num_g)] += @@ -68,16 +68,19 @@ class LTIMES_NOVIEW : public KernelBase void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); void runSyclVariant(VariantID vid, size_t tune_idx); + void setSeqTuningDefinitions(VariantID vid); + void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); template < size_t block_size > - void runCudaVariantImpl(VariantID vid); + void runCudaVariantImpl(VariantID vid, size_t tune_idx); template < size_t block_size > - void runHipVariantImpl(VariantID vid); + void runHipVariantImpl(VariantID vid, size_t tune_idx); template < size_t work_group_size > - void runSyclVariantImpl(VariantID vid); + void runSyclVariantImpl(VariantID vid, size_t tune_idx); private: static const size_t default_gpu_block_size = 256; diff --git a/src/apps/MASS3DEA-Cuda.cpp b/src/apps/MASS3DEA-Cuda.cpp index 649fd5b01..61bb26f1f 100644 --- a/src/apps/MASS3DEA-Cuda.cpp +++ b/src/apps/MASS3DEA-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MASS3DEA-Hip.cpp b/src/apps/MASS3DEA-Hip.cpp index 2eeabadeb..292146c9a 100644 --- a/src/apps/MASS3DEA-Hip.cpp +++ b/src/apps/MASS3DEA-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MASS3DEA-OMP.cpp b/src/apps/MASS3DEA-OMP.cpp index 2b77eeb6e..b0f350df4 100644 --- a/src/apps/MASS3DEA-OMP.cpp +++ b/src/apps/MASS3DEA-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -71,6 +71,8 @@ void MASS3DEA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_OpenMP: { + auto res{getHostResource()}; + //Currently Teams requires two policies if compiled with a device using launch_policy = RAJA::LaunchPolicy; @@ -86,7 +88,7 @@ void MASS3DEA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i for (RepIndex_type irep = 0; irep < run_reps; ++irep) { //Grid is empty as the host does not need a compute grid to be specified - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/MASS3DEA-OMPTarget.cpp b/src/apps/MASS3DEA-OMPTarget.cpp index 6f41914ab..be3f3d8d4 100644 --- a/src/apps/MASS3DEA-OMPTarget.cpp +++ b/src/apps/MASS3DEA-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MASS3DEA-Seq.cpp b/src/apps/MASS3DEA-Seq.cpp index f3b0cfc99..192d2e205 100644 --- a/src/apps/MASS3DEA-Seq.cpp +++ b/src/apps/MASS3DEA-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,6 +69,8 @@ void MASS3DEA::runSeqVariant(VariantID vid, #if defined(RUN_RAJA_SEQ) case RAJA_Seq: { + auto res{getHostResource()}; + // Currently Teams requires two policies if compiled with a device using launch_policy = RAJA::LaunchPolicy; @@ -83,7 +85,7 @@ void MASS3DEA::runSeqVariant(VariantID vid, startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/MASS3DEA-Sycl.cpp b/src/apps/MASS3DEA-Sycl.cpp index a2dfd87f3..41ee72fb3 100644 --- a/src/apps/MASS3DEA-Sycl.cpp +++ b/src/apps/MASS3DEA-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -39,14 +39,14 @@ void MASS3DEA::runSyclVariantImpl(VariantID vid) { for (RepIndex_type irep = 0; irep < run_reps; ++irep) { constexpr size_t shmem = 0; - qu->submit([&](cl::sycl::handler& h) { + qu->submit([&](::sycl::handler& h) { ::sycl::local_accessor s_B(::sycl::range<2>(MEA_Q1D,MEA_D1D),h); ::sycl::local_accessor s_D(::sycl::range<3>(MEA_Q1D,MEA_Q1D,MEA_Q1D),h); h.parallel_for - (cl::sycl::nd_range<3>(gridSize, workGroupSize), - [=] (cl::sycl::nd_item<3> itm) { + (::sycl::nd_range<3>(gridSize, workGroupSize), + [=] (::sycl::nd_item<3> itm) { const Index_type e = itm.get_group(2); diff --git a/src/apps/MASS3DEA.cpp b/src/apps/MASS3DEA.cpp index 9689c35ae..7fe1284a7 100644 --- a/src/apps/MASS3DEA.cpp +++ b/src/apps/MASS3DEA.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -44,6 +44,8 @@ MASS3DEA::MASS3DEA(const RunParams& params) setFLOPsPerRep(m_NE * 7 * ea_mat_entries); + setComplexity(Complexity::N); + setUsesFeature(Launch); setVariantDefined( Base_Seq ); diff --git a/src/apps/MASS3DEA.hpp b/src/apps/MASS3DEA.hpp index 7c0ea6e02..486604cf3 100644 --- a/src/apps/MASS3DEA.hpp +++ b/src/apps/MASS3DEA.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MASS3DPA-Cuda.cpp b/src/apps/MASS3DPA-Cuda.cpp index 60092ef7f..fb55e045c 100644 --- a/src/apps/MASS3DPA-Cuda.cpp +++ b/src/apps/MASS3DPA-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MASS3DPA-Hip.cpp b/src/apps/MASS3DPA-Hip.cpp index 1fbd0dea9..9d2068f2a 100644 --- a/src/apps/MASS3DPA-Hip.cpp +++ b/src/apps/MASS3DPA-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MASS3DPA-OMP.cpp b/src/apps/MASS3DPA-OMP.cpp index 4c6b2867c..367443797 100644 --- a/src/apps/MASS3DPA-OMP.cpp +++ b/src/apps/MASS3DPA-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -98,7 +98,8 @@ void MASS3DPA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_OpenMP: { - //Currently Teams requires two policies if compiled with a device + auto res{getHostResource()}; + using launch_policy = RAJA::LaunchPolicy; using outer_x = RAJA::LoopPolicy; @@ -111,7 +112,7 @@ void MASS3DPA::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i for (RepIndex_type irep = 0; irep < run_reps; ++irep) { //Grid is empty as the host does not need a compute grid to be specified - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/MASS3DPA-OMPTarget.cpp b/src/apps/MASS3DPA-OMPTarget.cpp index d74c14641..6b91fb380 100644 --- a/src/apps/MASS3DPA-OMPTarget.cpp +++ b/src/apps/MASS3DPA-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MASS3DPA-Seq.cpp b/src/apps/MASS3DPA-Seq.cpp index e22068169..f1a9b83f6 100644 --- a/src/apps/MASS3DPA-Seq.cpp +++ b/src/apps/MASS3DPA-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -96,6 +96,8 @@ void MASS3DPA::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) #if defined(RUN_RAJA_SEQ) case RAJA_Seq: { + auto res{getHostResource()}; + //Currently Teams requires two policies if compiled with a device using launch_policy = RAJA::LaunchPolicy; @@ -108,7 +110,7 @@ void MASS3DPA::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::launch( + RAJA::launch( res, RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { diff --git a/src/apps/MASS3DPA-Sycl.cpp b/src/apps/MASS3DPA-Sycl.cpp index 7d65034a7..5f3feee59 100644 --- a/src/apps/MASS3DPA-Sycl.cpp +++ b/src/apps/MASS3DPA-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -41,7 +41,7 @@ void MASS3DPA::runSyclVariantImpl(VariantID vid) { startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - qu->submit([&](cl::sycl::handler& h) { + qu->submit([&](::sycl::handler& h) { constexpr int MQ1 = MPA_Q1D; constexpr int MD1 = MPA_D1D; @@ -52,8 +52,8 @@ void MASS3DPA::runSyclVariantImpl(VariantID vid) { auto sm1_vec = ::sycl::local_accessor(::sycl::range<1>(MDQ * MDQ * MDQ), h); h.parallel_for - (cl::sycl::nd_range<3>(gridSize, workGroupSize), - [=] (cl::sycl::nd_item<3> itm) { + (::sycl::nd_range<3>(gridSize, workGroupSize), + [=] (::sycl::nd_item<3> itm) { const Index_type e = itm.get_group(2); diff --git a/src/apps/MASS3DPA.cpp b/src/apps/MASS3DPA.cpp index f60e64c3e..07898094f 100644 --- a/src/apps/MASS3DPA.cpp +++ b/src/apps/MASS3DPA.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -47,6 +47,9 @@ MASS3DPA::MASS3DPA(const RunParams& params) 2 * MPA_Q1D * MPA_Q1D * MPA_Q1D * MPA_D1D + 2 * MPA_Q1D * MPA_Q1D * MPA_D1D * MPA_D1D + 2 * MPA_Q1D * MPA_D1D * MPA_D1D * MPA_D1D + MPA_D1D * MPA_D1D * MPA_D1D)); + + setComplexity(Complexity::N); + setUsesFeature(Launch); setVariantDefined( Base_Seq ); diff --git a/src/apps/MASS3DPA.hpp b/src/apps/MASS3DPA.hpp index 0e11e234b..a15d0e5f3 100644 --- a/src/apps/MASS3DPA.hpp +++ b/src/apps/MASS3DPA.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MATVEC_3D_STENCIL-Cuda.cpp b/src/apps/MATVEC_3D_STENCIL-Cuda.cpp index e5ef75f08..3de83e554 100644 --- a/src/apps/MATVEC_3D_STENCIL-Cuda.cpp +++ b/src/apps/MATVEC_3D_STENCIL-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MATVEC_3D_STENCIL-Hip.cpp b/src/apps/MATVEC_3D_STENCIL-Hip.cpp index a24757cb8..ab3486f69 100644 --- a/src/apps/MATVEC_3D_STENCIL-Hip.cpp +++ b/src/apps/MATVEC_3D_STENCIL-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MATVEC_3D_STENCIL-OMP.cpp b/src/apps/MATVEC_3D_STENCIL-OMP.cpp index 6365aed70..7c1a4d5d7 100644 --- a/src/apps/MATVEC_3D_STENCIL-OMP.cpp +++ b/src/apps/MATVEC_3D_STENCIL-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,9 +73,10 @@ void MATVEC_3D_STENCIL::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A case RAJA_OpenMP : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto matvec_3d_lam = [=](Index_type i) { MATVEC_3D_STENCIL_BODY; @@ -84,7 +85,7 @@ void MATVEC_3D_STENCIL::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, zones, matvec_3d_lam); } diff --git a/src/apps/MATVEC_3D_STENCIL-OMPTarget.cpp b/src/apps/MATVEC_3D_STENCIL-OMPTarget.cpp index 09a3093d4..be68a10f4 100644 --- a/src/apps/MATVEC_3D_STENCIL-OMPTarget.cpp +++ b/src/apps/MATVEC_3D_STENCIL-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -61,14 +61,15 @@ void MATVEC_3D_STENCIL::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UN } else if ( vid == RAJA_OpenMPTarget ) { - camp::resources::Resource working_res{camp::resources::Omp::get_default()}; + auto res{getOmpTargetResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, zones, [=](Index_type i) { MATVEC_3D_STENCIL_BODY; }); diff --git a/src/apps/MATVEC_3D_STENCIL-Seq.cpp b/src/apps/MATVEC_3D_STENCIL-Seq.cpp index 795a01e19..7d888ed29 100644 --- a/src/apps/MATVEC_3D_STENCIL-Seq.cpp +++ b/src/apps/MATVEC_3D_STENCIL-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,9 +69,9 @@ void MATVEC_3D_STENCIL::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_Seq : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto matvec_3d_lam = [=](Index_type i) { MATVEC_3D_STENCIL_BODY; @@ -80,7 +80,7 @@ void MATVEC_3D_STENCIL::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall(zones, matvec_3d_lam); + RAJA::forall(res, zones, matvec_3d_lam); } stopTimer(); diff --git a/src/apps/MATVEC_3D_STENCIL-Sycl.cpp b/src/apps/MATVEC_3D_STENCIL-Sycl.cpp index c6110f2d8..c52825794 100644 --- a/src/apps/MATVEC_3D_STENCIL-Sycl.cpp +++ b/src/apps/MATVEC_3D_STENCIL-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/MATVEC_3D_STENCIL.cpp b/src/apps/MATVEC_3D_STENCIL.cpp index 2b8cb6978..081a648af 100644 --- a/src/apps/MATVEC_3D_STENCIL.cpp +++ b/src/apps/MATVEC_3D_STENCIL.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -83,6 +83,8 @@ MATVEC_3D_STENCIL::MATVEC_3D_STENCIL(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); @@ -144,15 +146,10 @@ void MATVEC_3D_STENCIL::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx m_matrix.ufc = m_matrix.dbc + m_domain->jp + m_domain->kp ; m_matrix.ufr = m_matrix.dbl + 1 + m_domain->jp + m_domain->kp ; - allocAndInitDataConst(m_real_zones, m_domain->n_real_zones, - static_cast(-1), vid); - - { - auto reset_rz = scopedMoveData(m_real_zones, m_domain->n_real_zones, vid); - - setRealZones_3d(m_real_zones, *m_domain); - } + auto reset_rz = allocAndInitDataConstForInit(m_real_zones, m_domain->n_real_zones, + static_cast(-1), vid); + setRealZones_3d(m_real_zones, *m_domain); } void MATVEC_3D_STENCIL::updateChecksum(VariantID vid, size_t tune_idx) diff --git a/src/apps/MATVEC_3D_STENCIL.hpp b/src/apps/MATVEC_3D_STENCIL.hpp index a537e7149..cf9521363 100644 --- a/src/apps/MATVEC_3D_STENCIL.hpp +++ b/src/apps/MATVEC_3D_STENCIL.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/NODAL_ACCUMULATION_3D-Cuda.cpp b/src/apps/NODAL_ACCUMULATION_3D-Cuda.cpp index 494d70bbb..e081fc480 100644 --- a/src/apps/NODAL_ACCUMULATION_3D-Cuda.cpp +++ b/src/apps/NODAL_ACCUMULATION_3D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/NODAL_ACCUMULATION_3D-Hip.cpp b/src/apps/NODAL_ACCUMULATION_3D-Hip.cpp index da8f5dd12..88a85d2a0 100644 --- a/src/apps/NODAL_ACCUMULATION_3D-Hip.cpp +++ b/src/apps/NODAL_ACCUMULATION_3D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/NODAL_ACCUMULATION_3D-OMP.cpp b/src/apps/NODAL_ACCUMULATION_3D-OMP.cpp index a17576c98..96758804b 100644 --- a/src/apps/NODAL_ACCUMULATION_3D-OMP.cpp +++ b/src/apps/NODAL_ACCUMULATION_3D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -109,9 +109,10 @@ void NODAL_ACCUMULATION_3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUS case RAJA_OpenMP : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto nodal_accumulation_3d_lam = [=](Index_type i) { NODAL_ACCUMULATION_3D_RAJA_ATOMIC_BODY(RAJA::omp_atomic); @@ -120,7 +121,7 @@ void NODAL_ACCUMULATION_3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUS startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, zones, nodal_accumulation_3d_lam); } diff --git a/src/apps/NODAL_ACCUMULATION_3D-OMPTarget.cpp b/src/apps/NODAL_ACCUMULATION_3D-OMPTarget.cpp index 7d5c59614..79d7abbc7 100644 --- a/src/apps/NODAL_ACCUMULATION_3D-OMPTarget.cpp +++ b/src/apps/NODAL_ACCUMULATION_3D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,14 +73,15 @@ void NODAL_ACCUMULATION_3D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPER } else if ( vid == RAJA_OpenMPTarget ) { - camp::resources::Resource working_res{camp::resources::Omp::get_default()}; + auto res{getOmpTargetResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, zones, [=](Index_type i) { NODAL_ACCUMULATION_3D_RAJA_ATOMIC_BODY(RAJA::omp_atomic); }); diff --git a/src/apps/NODAL_ACCUMULATION_3D-Seq.cpp b/src/apps/NODAL_ACCUMULATION_3D-Seq.cpp index cf176d4c1..8aa47f9ce 100644 --- a/src/apps/NODAL_ACCUMULATION_3D-Seq.cpp +++ b/src/apps/NODAL_ACCUMULATION_3D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,9 +69,9 @@ void NODAL_ACCUMULATION_3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ case RAJA_Seq : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto nodal_accumulation_3d_lam = [=](Index_type i) { NODAL_ACCUMULATION_3D_RAJA_ATOMIC_BODY(RAJA::seq_atomic); @@ -80,7 +80,7 @@ void NODAL_ACCUMULATION_3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall(zones, nodal_accumulation_3d_lam); + RAJA::forall(res, zones, nodal_accumulation_3d_lam); } stopTimer(); diff --git a/src/apps/NODAL_ACCUMULATION_3D.cpp b/src/apps/NODAL_ACCUMULATION_3D.cpp index 5bbbbb986..69a63b653 100644 --- a/src/apps/NODAL_ACCUMULATION_3D.cpp +++ b/src/apps/NODAL_ACCUMULATION_3D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,6 +50,8 @@ NODAL_ACCUMULATION_3D::NODAL_ACCUMULATION_3D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Atomic); @@ -80,14 +82,11 @@ void NODAL_ACCUMULATION_3D::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune { allocAndInitDataConst(m_x, m_nodal_array_length, 0.0, vid); allocAndInitDataConst(m_vol, m_zonal_array_length, 1.0, vid); - allocAndInitDataConst(m_real_zones, m_domain->n_real_zones, - static_cast(-1), vid); - { - auto reset_rz = scopedMoveData(m_real_zones, m_domain->n_real_zones, vid); + auto reset_rz = allocAndInitDataConstForInit(m_real_zones, m_domain->n_real_zones, + static_cast(-1), vid); - setRealZones_3d(m_real_zones, *m_domain); - } + setRealZones_3d(m_real_zones, *m_domain); } void NODAL_ACCUMULATION_3D::updateChecksum(VariantID vid, size_t tune_idx) diff --git a/src/apps/NODAL_ACCUMULATION_3D.hpp b/src/apps/NODAL_ACCUMULATION_3D.hpp index 085c0099a..cdaaf66c8 100644 --- a/src/apps/NODAL_ACCUMULATION_3D.hpp +++ b/src/apps/NODAL_ACCUMULATION_3D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/PRESSURE-Cuda.cpp b/src/apps/PRESSURE-Cuda.cpp index c98e3a48a..4680104c4 100644 --- a/src/apps/PRESSURE-Cuda.cpp +++ b/src/apps/PRESSURE-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/PRESSURE-Hip.cpp b/src/apps/PRESSURE-Hip.cpp index 18d4a1c88..42c071acc 100644 --- a/src/apps/PRESSURE-Hip.cpp +++ b/src/apps/PRESSURE-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/PRESSURE-OMP.cpp b/src/apps/PRESSURE-OMP.cpp index ceab0286c..be4dad511 100644 --- a/src/apps/PRESSURE-OMP.cpp +++ b/src/apps/PRESSURE-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -91,15 +91,17 @@ void PRESSURE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::region( [=]() { - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), pressure_lam1); - RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( + RAJA::forall< RAJA::omp_for_nowait_static_exec< > >( res, RAJA::RangeSegment(ibegin, iend), pressure_lam2); }); // end omp parallel region diff --git a/src/apps/PRESSURE-OMPTarget.cpp b/src/apps/PRESSURE-OMPTarget.cpp index 4d0b61f58..ea957836e 100644 --- a/src/apps/PRESSURE-OMPTarget.cpp +++ b/src/apps/PRESSURE-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -57,17 +57,19 @@ void PRESSURE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::region( [=]() { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { PRESSURE_BODY1; }); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { PRESSURE_BODY2; }); diff --git a/src/apps/PRESSURE-Seq.cpp b/src/apps/PRESSURE-Seq.cpp index 18fc0929e..726f8d4fd 100644 --- a/src/apps/PRESSURE-Seq.cpp +++ b/src/apps/PRESSURE-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -78,15 +78,17 @@ void PRESSURE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { RAJA::region( [=]() { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), pressure_lam1); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), pressure_lam2); }); // end sequential region (for single-source code) diff --git a/src/apps/PRESSURE-Sycl.cpp b/src/apps/PRESSURE-Sycl.cpp index 2b0e3b4dd..5e1a41a59 100644 --- a/src/apps/PRESSURE-Sycl.cpp +++ b/src/apps/PRESSURE-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/PRESSURE.cpp b/src/apps/PRESSURE.cpp index ed1e00306..a51f43729 100644 --- a/src/apps/PRESSURE.cpp +++ b/src/apps/PRESSURE.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -37,6 +37,8 @@ PRESSURE::PRESSURE(const RunParams& params) 1 ) * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/apps/PRESSURE.hpp b/src/apps/PRESSURE.hpp index d1cffe62a..d7b406ba9 100644 --- a/src/apps/PRESSURE.hpp +++ b/src/apps/PRESSURE.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -82,7 +82,6 @@ class PRESSURE : public KernelBase void runCudaVariantImpl(VariantID vid); template < size_t block_size > void runHipVariantImpl(VariantID vid); - template < size_t work_group_size > void runSyclVariantImpl(VariantID vid); diff --git a/src/apps/VOL3D-Cuda.cpp b/src/apps/VOL3D-Cuda.cpp index 378aa36bc..867b3ebe6 100644 --- a/src/apps/VOL3D-Cuda.cpp +++ b/src/apps/VOL3D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/VOL3D-Hip.cpp b/src/apps/VOL3D-Hip.cpp index 704008006..bc28fd7a0 100644 --- a/src/apps/VOL3D-Hip.cpp +++ b/src/apps/VOL3D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/VOL3D-OMP.cpp b/src/apps/VOL3D-OMP.cpp index 7c6562c47..b5f219c8a 100644 --- a/src/apps/VOL3D-OMP.cpp +++ b/src/apps/VOL3D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -70,10 +70,12 @@ void VOL3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), vol3d_lam); } diff --git a/src/apps/VOL3D-OMPTarget.cpp b/src/apps/VOL3D-OMPTarget.cpp index d97a5889a..67c66960c 100644 --- a/src/apps/VOL3D-OMPTarget.cpp +++ b/src/apps/VOL3D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -56,10 +56,12 @@ void VOL3D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { VOL3D_BODY; diff --git a/src/apps/VOL3D-Seq.cpp b/src/apps/VOL3D-Seq.cpp index d174ad43c..eb7af09a0 100644 --- a/src/apps/VOL3D-Seq.cpp +++ b/src/apps/VOL3D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,10 +69,12 @@ void VOL3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), vol3d_lam); } diff --git a/src/apps/VOL3D-Sycl.cpp b/src/apps/VOL3D-Sycl.cpp index 37c7bc90f..c670b8288 100644 --- a/src/apps/VOL3D-Sycl.cpp +++ b/src/apps/VOL3D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/VOL3D.cpp b/src/apps/VOL3D.cpp index 16951253d..11ef9030c 100644 --- a/src/apps/VOL3D.cpp +++ b/src/apps/VOL3D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -47,6 +47,8 @@ VOL3D::VOL3D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); @@ -77,20 +79,14 @@ VOL3D::~VOL3D() void VOL3D::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { - allocAndInitDataConst(m_x, m_array_length, 0.0, vid); - allocAndInitDataConst(m_y, m_array_length, 0.0, vid); - allocAndInitDataConst(m_z, m_array_length, 0.0, vid); - - { - auto reset_x = scopedMoveData(m_x, m_array_length, vid); - auto reset_y = scopedMoveData(m_y, m_array_length, vid); - auto reset_z = scopedMoveData(m_z, m_array_length, vid); - - Real_type dx = 0.3; - Real_type dy = 0.2; - Real_type dz = 0.1; - setMeshPositions_3d(m_x, dx, m_y, dy, m_z, dz, *m_domain); - } + auto reset_x = allocAndInitDataConstForInit(m_x, m_array_length, 0.0, vid); + auto reset_y = allocAndInitDataConstForInit(m_y, m_array_length, 0.0, vid); + auto reset_z = allocAndInitDataConstForInit(m_z, m_array_length, 0.0, vid); + + Real_type dx = 0.3; + Real_type dy = 0.2; + Real_type dz = 0.1; + setMeshPositions_3d(m_x, dx, m_y, dy, m_z, dz, *m_domain); allocAndInitDataConst(m_vol, m_array_length, 0.0, vid); diff --git a/src/apps/VOL3D.hpp b/src/apps/VOL3D.hpp index 6847ce13f..a3f13650c 100644 --- a/src/apps/VOL3D.hpp +++ b/src/apps/VOL3D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/ZONAL_ACCUMULATION_3D-Cuda.cpp b/src/apps/ZONAL_ACCUMULATION_3D-Cuda.cpp index f33c8656d..f5e9f4393 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D-Cuda.cpp +++ b/src/apps/ZONAL_ACCUMULATION_3D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/ZONAL_ACCUMULATION_3D-Hip.cpp b/src/apps/ZONAL_ACCUMULATION_3D-Hip.cpp index c92d7b6db..e534e3c15 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D-Hip.cpp +++ b/src/apps/ZONAL_ACCUMULATION_3D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/ZONAL_ACCUMULATION_3D-OMP.cpp b/src/apps/ZONAL_ACCUMULATION_3D-OMP.cpp index 9b0890ef4..24436b0c9 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D-OMP.cpp +++ b/src/apps/ZONAL_ACCUMULATION_3D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,9 +73,10 @@ void ZONAL_ACCUMULATION_3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUS case RAJA_OpenMP : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto zonal_accumulation_3d_lam = [=](Index_type i) { ZONAL_ACCUMULATION_3D_BODY; @@ -84,7 +85,7 @@ void ZONAL_ACCUMULATION_3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUS startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, zones, zonal_accumulation_3d_lam); } diff --git a/src/apps/ZONAL_ACCUMULATION_3D-OMPTarget.cpp b/src/apps/ZONAL_ACCUMULATION_3D-OMPTarget.cpp index 0a4f96119..fdb2376a6 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D-OMPTarget.cpp +++ b/src/apps/ZONAL_ACCUMULATION_3D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -55,14 +55,15 @@ void ZONAL_ACCUMULATION_3D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPER } else if ( vid == RAJA_OpenMPTarget ) { - camp::resources::Resource working_res{camp::resources::Omp::get_default()}; + auto res{getOmpTargetResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, zones, [=](Index_type i) { ZONAL_ACCUMULATION_3D_BODY; }); diff --git a/src/apps/ZONAL_ACCUMULATION_3D-Seq.cpp b/src/apps/ZONAL_ACCUMULATION_3D-Seq.cpp index ea9be8c17..09b6c2714 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D-Seq.cpp +++ b/src/apps/ZONAL_ACCUMULATION_3D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,9 +69,10 @@ void ZONAL_ACCUMULATION_3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ case RAJA_Seq : { - camp::resources::Resource working_res{camp::resources::Host::get_default()}; + auto res{getHostResource()}; + RAJA::TypedListSegment zones(real_zones, iend, - working_res, RAJA::Unowned); + res, RAJA::Unowned); auto zonal_accumulation_3d_lam = [=](Index_type i) { ZONAL_ACCUMULATION_3D_BODY; @@ -80,7 +81,7 @@ void ZONAL_ACCUMULATION_3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall(zones, zonal_accumulation_3d_lam); + RAJA::forall(res, zones, zonal_accumulation_3d_lam); } stopTimer(); diff --git a/src/apps/ZONAL_ACCUMULATION_3D-Sycl.cpp b/src/apps/ZONAL_ACCUMULATION_3D-Sycl.cpp index 67b25086e..bcf8d2d00 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D-Sycl.cpp +++ b/src/apps/ZONAL_ACCUMULATION_3D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/ZONAL_ACCUMULATION_3D.cpp b/src/apps/ZONAL_ACCUMULATION_3D.cpp index 993f65a07..775e4dc18 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D.cpp +++ b/src/apps/ZONAL_ACCUMULATION_3D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -49,6 +49,8 @@ ZONAL_ACCUMULATION_3D::ZONAL_ACCUMULATION_3D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); @@ -81,14 +83,11 @@ void ZONAL_ACCUMULATION_3D::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune { allocAndInitDataConst(m_x, m_nodal_array_length, 1.0, vid); allocAndInitDataConst(m_vol, m_zonal_array_length, 0.0, vid); - allocAndInitDataConst(m_real_zones, m_domain->n_real_zones, - static_cast(-1), vid); - { - auto reset_rz = scopedMoveData(m_real_zones, m_domain->n_real_zones, vid); + auto reset_rz = allocAndInitDataConstForInit(m_real_zones, m_domain->n_real_zones, + static_cast(-1), vid); - setRealZones_3d(m_real_zones, *m_domain); - } + setRealZones_3d(m_real_zones, *m_domain); } void ZONAL_ACCUMULATION_3D::updateChecksum(VariantID vid, size_t tune_idx) diff --git a/src/apps/ZONAL_ACCUMULATION_3D.hpp b/src/apps/ZONAL_ACCUMULATION_3D.hpp index 572490caa..758682764 100644 --- a/src/apps/ZONAL_ACCUMULATION_3D.hpp +++ b/src/apps/ZONAL_ACCUMULATION_3D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/apps/mixed_fem_helper.hpp b/src/apps/mixed_fem_helper.hpp index 6ee3b1a06..602cbda58 100644 --- a/src/apps/mixed_fem_helper.hpp +++ b/src/apps/mixed_fem_helper.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/ARRAY_OF_PTRS-Kokkos.cpp b/src/basic-kokkos/ARRAY_OF_PTRS-Kokkos.cpp index 9bf30fba9..0d1b0c847 100644 --- a/src/basic-kokkos/ARRAY_OF_PTRS-Kokkos.cpp +++ b/src/basic-kokkos/ARRAY_OF_PTRS-Kokkos.cpp @@ -22,7 +22,7 @@ void ARRAY_OF_PTRS::runKokkosVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t ARRAY_OF_PTRS_DATA_SETUP; using view_type = std::decay_t; - auto x_view[ARRAY_OF_PTRS_MAX_ARRAY_SIZE]; + view_type x_view[ARRAY_OF_PTRS_MAX_ARRAY_SIZE]; for (Index_type a = 0; a < array_size; ++a) { x_view[a] = getViewFromPointer(x[a], iend) ; } diff --git a/src/basic-kokkos/CMakeLists.txt b/src/basic-kokkos/CMakeLists.txt index 25969c207..cfea6b6a6 100644 --- a/src/basic-kokkos/CMakeLists.txt +++ b/src/basic-kokkos/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/basic-kokkos/DAXPY-Kokkos.cpp b/src/basic-kokkos/DAXPY-Kokkos.cpp index eb2cc1e83..6feb4a084 100644 --- a/src/basic-kokkos/DAXPY-Kokkos.cpp +++ b/src/basic-kokkos/DAXPY-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/DAXPY_ATOMIC-Kokkos.cpp b/src/basic-kokkos/DAXPY_ATOMIC-Kokkos.cpp index aadcf9401..7ff24535f 100644 --- a/src/basic-kokkos/DAXPY_ATOMIC-Kokkos.cpp +++ b/src/basic-kokkos/DAXPY_ATOMIC-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/IF_QUAD-Kokkos.cpp b/src/basic-kokkos/IF_QUAD-Kokkos.cpp index a67b041c7..e7d9cad9a 100644 --- a/src/basic-kokkos/IF_QUAD-Kokkos.cpp +++ b/src/basic-kokkos/IF_QUAD-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/INIT3-Kokkos.cpp b/src/basic-kokkos/INIT3-Kokkos.cpp index b07c6f881..27f229c3f 100644 --- a/src/basic-kokkos/INIT3-Kokkos.cpp +++ b/src/basic-kokkos/INIT3-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/INIT_VIEW1D-Kokkos.cpp b/src/basic-kokkos/INIT_VIEW1D-Kokkos.cpp index efd1ed118..f137e7b2d 100644 --- a/src/basic-kokkos/INIT_VIEW1D-Kokkos.cpp +++ b/src/basic-kokkos/INIT_VIEW1D-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/INIT_VIEW1D_OFFSET-Kokkos.cpp b/src/basic-kokkos/INIT_VIEW1D_OFFSET-Kokkos.cpp index 996ec6225..c83db18ff 100644 --- a/src/basic-kokkos/INIT_VIEW1D_OFFSET-Kokkos.cpp +++ b/src/basic-kokkos/INIT_VIEW1D_OFFSET-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/MULADDSUB-Kokkos.cpp b/src/basic-kokkos/MULADDSUB-Kokkos.cpp index fb2f59ac2..b2830bd20 100644 --- a/src/basic-kokkos/MULADDSUB-Kokkos.cpp +++ b/src/basic-kokkos/MULADDSUB-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/NESTED_INIT-Kokkos.cpp b/src/basic-kokkos/NESTED_INIT-Kokkos.cpp index fb5b5ba98..a6472a0aa 100644 --- a/src/basic-kokkos/NESTED_INIT-Kokkos.cpp +++ b/src/basic-kokkos/NESTED_INIT-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/PI_ATOMIC-Kokkos.cpp b/src/basic-kokkos/PI_ATOMIC-Kokkos.cpp index 6247970b1..51407748e 100644 --- a/src/basic-kokkos/PI_ATOMIC-Kokkos.cpp +++ b/src/basic-kokkos/PI_ATOMIC-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/REDUCE3_INT-Kokkos.cpp b/src/basic-kokkos/REDUCE3_INT-Kokkos.cpp index e461c00a1..d91de98d3 100644 --- a/src/basic-kokkos/REDUCE3_INT-Kokkos.cpp +++ b/src/basic-kokkos/REDUCE3_INT-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic-kokkos/TRAP_INT-Kokkos.cpp b/src/basic-kokkos/TRAP_INT-Kokkos.cpp index 43b629cad..2a2637fe1 100644 --- a/src/basic-kokkos/TRAP_INT-Kokkos.cpp +++ b/src/basic-kokkos/TRAP_INT-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/ARRAY_OF_PTRS-Cuda.cpp b/src/basic/ARRAY_OF_PTRS-Cuda.cpp index e9cdd2349..2bcbe8eaf 100644 --- a/src/basic/ARRAY_OF_PTRS-Cuda.cpp +++ b/src/basic/ARRAY_OF_PTRS-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/ARRAY_OF_PTRS-Hip.cpp b/src/basic/ARRAY_OF_PTRS-Hip.cpp index aa5777fb4..980dbaaa3 100644 --- a/src/basic/ARRAY_OF_PTRS-Hip.cpp +++ b/src/basic/ARRAY_OF_PTRS-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/ARRAY_OF_PTRS-OMP.cpp b/src/basic/ARRAY_OF_PTRS-OMP.cpp index 774fd8f98..ec8135ec0 100644 --- a/src/basic/ARRAY_OF_PTRS-OMP.cpp +++ b/src/basic/ARRAY_OF_PTRS-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void ARRAY_OF_PTRS::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), array_of_ptrs_lam); } diff --git a/src/basic/ARRAY_OF_PTRS-OMPTarget.cpp b/src/basic/ARRAY_OF_PTRS-OMPTarget.cpp index 02301ca1e..673217955 100644 --- a/src/basic/ARRAY_OF_PTRS-OMPTarget.cpp +++ b/src/basic/ARRAY_OF_PTRS-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void ARRAY_OF_PTRS::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ARRAY_OF_PTRS_BODY(x); }); diff --git a/src/basic/ARRAY_OF_PTRS-Seq.cpp b/src/basic/ARRAY_OF_PTRS-Seq.cpp index dd22e010d..00a132ee5 100644 --- a/src/basic/ARRAY_OF_PTRS-Seq.cpp +++ b/src/basic/ARRAY_OF_PTRS-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void ARRAY_OF_PTRS::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), array_of_ptrs_lam); } diff --git a/src/basic/ARRAY_OF_PTRS-Sycl.cpp b/src/basic/ARRAY_OF_PTRS-Sycl.cpp index c3d987987..0fddc19ee 100644 --- a/src/basic/ARRAY_OF_PTRS-Sycl.cpp +++ b/src/basic/ARRAY_OF_PTRS-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/ARRAY_OF_PTRS.cpp b/src/basic/ARRAY_OF_PTRS.cpp index 9f0995d0d..9b7577d05 100644 --- a/src/basic/ARRAY_OF_PTRS.cpp +++ b/src/basic/ARRAY_OF_PTRS.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -35,6 +35,8 @@ ARRAY_OF_PTRS::ARRAY_OF_PTRS(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(m_array_size * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/basic/ARRAY_OF_PTRS.hpp b/src/basic/ARRAY_OF_PTRS.hpp index 029353f45..bbebbf25e 100644 --- a/src/basic/ARRAY_OF_PTRS.hpp +++ b/src/basic/ARRAY_OF_PTRS.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/CMakeLists.txt b/src/basic/CMakeLists.txt index ee71119ce..7bd2debfd 100644 --- a/src/basic/CMakeLists.txt +++ b/src/basic/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # @@ -35,6 +35,13 @@ blt_add_library( DAXPY_ATOMIC-Cuda.cpp DAXPY_ATOMIC-OMP.cpp DAXPY_ATOMIC-OMPTarget.cpp + EMPTY.cpp + EMPTY-Seq.cpp + EMPTY-Hip.cpp + EMPTY-Cuda.cpp + EMPTY-OMP.cpp + EMPTY-OMPTarget.cpp + EMPTY-Sycl.cpp IF_QUAD.cpp IF_QUAD-Seq.cpp IF_QUAD-Hip.cpp diff --git a/src/basic/COPY8-Cuda.cpp b/src/basic/COPY8-Cuda.cpp index f8f1aeb31..b776a6cab 100644 --- a/src/basic/COPY8-Cuda.cpp +++ b/src/basic/COPY8-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/COPY8-Hip.cpp b/src/basic/COPY8-Hip.cpp index 714a00a0b..0cf3b49a7 100644 --- a/src/basic/COPY8-Hip.cpp +++ b/src/basic/COPY8-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/COPY8-OMP.cpp b/src/basic/COPY8-OMP.cpp index a8dec3228..108db08b6 100644 --- a/src/basic/COPY8-OMP.cpp +++ b/src/basic/COPY8-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void COPY8::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), copy8_lam); } diff --git a/src/basic/COPY8-OMPTarget.cpp b/src/basic/COPY8-OMPTarget.cpp index 63a207ba8..c21a6ddcc 100644 --- a/src/basic/COPY8-OMPTarget.cpp +++ b/src/basic/COPY8-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void COPY8::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { COPY8_BODY; }); diff --git a/src/basic/COPY8-Seq.cpp b/src/basic/COPY8-Seq.cpp index 32bf188d6..3ecdf335b 100644 --- a/src/basic/COPY8-Seq.cpp +++ b/src/basic/COPY8-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void COPY8::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), copy8_lam); } diff --git a/src/basic/COPY8-Sycl.cpp b/src/basic/COPY8-Sycl.cpp index 8ce2a8e24..bdf78f84e 100644 --- a/src/basic/COPY8-Sycl.cpp +++ b/src/basic/COPY8-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/COPY8.cpp b/src/basic/COPY8.cpp index ce8847032..5ce1685cd 100644 --- a/src/basic/COPY8.cpp +++ b/src/basic/COPY8.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ COPY8::COPY8(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/basic/COPY8.hpp b/src/basic/COPY8.hpp index 61945eed3..1afa1bcb9 100644 --- a/src/basic/COPY8.hpp +++ b/src/basic/COPY8.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -81,8 +81,6 @@ class COPY8 : public KernelBase void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); void runSyclVariant(VariantID vid, size_t tune_idx); - void runKokkosVariant(VariantID vid, size_t tune_idx); - void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); diff --git a/src/basic/DAXPY-Cuda.cpp b/src/basic/DAXPY-Cuda.cpp index d58468ba3..bf381a3a5 100644 --- a/src/basic/DAXPY-Cuda.cpp +++ b/src/basic/DAXPY-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/DAXPY-Hip.cpp b/src/basic/DAXPY-Hip.cpp index f08dba1fc..f84ac40e7 100644 --- a/src/basic/DAXPY-Hip.cpp +++ b/src/basic/DAXPY-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/DAXPY-OMP.cpp b/src/basic/DAXPY-OMP.cpp index 8f1b95641..6ec71edd9 100644 --- a/src/basic/DAXPY-OMP.cpp +++ b/src/basic/DAXPY-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void DAXPY::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), daxpy_lam); } diff --git a/src/basic/DAXPY-OMPTarget.cpp b/src/basic/DAXPY-OMPTarget.cpp index fc36ad257..be6a330c3 100644 --- a/src/basic/DAXPY-OMPTarget.cpp +++ b/src/basic/DAXPY-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void DAXPY::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { DAXPY_BODY; }); diff --git a/src/basic/DAXPY-Seq.cpp b/src/basic/DAXPY-Seq.cpp index e23cc5e6f..6947c2862 100644 --- a/src/basic/DAXPY-Seq.cpp +++ b/src/basic/DAXPY-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void DAXPY::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), daxpy_lam); } diff --git a/src/basic/DAXPY-Sycl.cpp b/src/basic/DAXPY-Sycl.cpp index 15642a08b..aaeec66eb 100644 --- a/src/basic/DAXPY-Sycl.cpp +++ b/src/basic/DAXPY-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/DAXPY.cpp b/src/basic/DAXPY.cpp index fafb9bb66..2cdd97d99 100644 --- a/src/basic/DAXPY.cpp +++ b/src/basic/DAXPY.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ DAXPY::DAXPY(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(2 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/basic/DAXPY.hpp b/src/basic/DAXPY.hpp index db9edba60..43c2f6a90 100644 --- a/src/basic/DAXPY.hpp +++ b/src/basic/DAXPY.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/DAXPY_ATOMIC-Cuda.cpp b/src/basic/DAXPY_ATOMIC-Cuda.cpp index c4cee2dd2..c8e3a76a5 100644 --- a/src/basic/DAXPY_ATOMIC-Cuda.cpp +++ b/src/basic/DAXPY_ATOMIC-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/DAXPY_ATOMIC-Hip.cpp b/src/basic/DAXPY_ATOMIC-Hip.cpp index 258c979b6..fd90e8278 100644 --- a/src/basic/DAXPY_ATOMIC-Hip.cpp +++ b/src/basic/DAXPY_ATOMIC-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/DAXPY_ATOMIC-OMP.cpp b/src/basic/DAXPY_ATOMIC-OMP.cpp index a41c6c049..329b50efc 100644 --- a/src/basic/DAXPY_ATOMIC-OMP.cpp +++ b/src/basic/DAXPY_ATOMIC-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -70,10 +70,12 @@ void DAXPY_ATOMIC::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { DAXPY_ATOMIC_RAJA_BODY(RAJA::omp_atomic); }); diff --git a/src/basic/DAXPY_ATOMIC-OMPTarget.cpp b/src/basic/DAXPY_ATOMIC-OMPTarget.cpp index ae7319e25..f9e5025f8 100644 --- a/src/basic/DAXPY_ATOMIC-OMPTarget.cpp +++ b/src/basic/DAXPY_ATOMIC-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void DAXPY_ATOMIC::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { DAXPY_ATOMIC_RAJA_BODY(RAJA::omp_atomic); }); diff --git a/src/basic/DAXPY_ATOMIC-Seq.cpp b/src/basic/DAXPY_ATOMIC-Seq.cpp index 9fd78fecf..d387147ab 100644 --- a/src/basic/DAXPY_ATOMIC-Seq.cpp +++ b/src/basic/DAXPY_ATOMIC-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -65,10 +65,12 @@ void DAXPY_ATOMIC::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { DAXPY_ATOMIC_RAJA_BODY(RAJA::seq_atomic); diff --git a/src/basic/DAXPY_ATOMIC.cpp b/src/basic/DAXPY_ATOMIC.cpp index 24ec906c4..ef1891bbd 100644 --- a/src/basic/DAXPY_ATOMIC.cpp +++ b/src/basic/DAXPY_ATOMIC.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ DAXPY_ATOMIC::DAXPY_ATOMIC(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 1*sizeof(Real_type) * getActualProblemSize() ); setFLOPsPerRep(2 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/basic/DAXPY_ATOMIC.hpp b/src/basic/DAXPY_ATOMIC.hpp index 17bf3979b..43679cd5d 100644 --- a/src/basic/DAXPY_ATOMIC.hpp +++ b/src/basic/DAXPY_ATOMIC.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/EMPTY-Cuda.cpp b/src/basic/EMPTY-Cuda.cpp new file mode 100644 index 000000000..b59cce200 --- /dev/null +++ b/src/basic/EMPTY-Cuda.cpp @@ -0,0 +1,184 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "EMPTY.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_CUDA) + +#include "common/CudaDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace basic +{ + +template < size_t block_size > +__launch_bounds__(block_size) +__global__ void empty(Index_type iend) +{ + Index_type i = blockIdx.x * block_size + threadIdx.x; + if (i < iend) { + EMPTY_BODY; + } +} + +template < size_t block_size > +__launch_bounds__(block_size) +__global__ void empty_grid_stride(Index_type iend) +{ + Index_type i = blockIdx.x * block_size + threadIdx.x; + Index_type grid_stride = gridDim.x * block_size; + for ( ; i < iend; i += grid_stride) { + EMPTY_BODY; + } +} + + +template < size_t block_size, typename MappingHelper > +void EMPTY::runCudaVariantImpl(VariantID vid) +{ + const Index_type run_reps = getRunReps(); + const Index_type ibegin = 0; + const Index_type iend = getActualProblemSize(); + + auto res{getCudaResource()}; + + EMPTY_DATA_SETUP; + + if ( vid == Base_CUDA ) { + + auto func = MappingHelper::direct + ? &empty + : &empty_grid_stride; + + constexpr size_t shmem = 0; + const size_t max_grid_size = RAJAPERF_CUDA_GET_MAX_BLOCKS( + MappingHelper, func, block_size, shmem); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + const size_t normal_grid_size = RAJA_DIVIDE_CEILING_INT(iend, block_size); + const size_t grid_size = std::min(normal_grid_size, max_grid_size); + + RPlaunchCudaKernel( func, + grid_size, block_size, + shmem, res.get_stream(), + iend ); + + } + stopTimer(); + + } else if ( vid == Lambda_CUDA ) { + + auto empty_lambda = [=] __device__ (Index_type i) { + EMPTY_BODY; + }; + + auto func = MappingHelper::direct + ? &lambda_cuda_forall + : &lambda_cuda_forall_grid_stride; + + constexpr size_t shmem = 0; + const size_t max_grid_size = RAJAPERF_CUDA_GET_MAX_BLOCKS( + MappingHelper, func, block_size, shmem); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + const size_t normal_grid_size = RAJA_DIVIDE_CEILING_INT(iend, block_size); + const size_t grid_size = std::min(normal_grid_size, max_grid_size); + + RPlaunchCudaKernel( func, + grid_size, block_size, + shmem, res.get_stream(), + ibegin, iend, empty_lambda ); + + } + stopTimer(); + + } else if ( vid == RAJA_CUDA ) { + + using exec_policy = std::conditional_t, + RAJA::cuda_exec_occ_calc>; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::forall< exec_policy >( res, + RAJA::RangeSegment(ibegin, iend), [=] __device__ (Index_type i) { + EMPTY_BODY; + }); + + } + stopTimer(); + + } else { + getCout() << "\n EMPTY : Unknown Cuda variant id = " << vid << std::endl; + } +} + +void EMPTY::runCudaVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + seq_for(gpu_mapping::forall_helpers{}, [&](auto mapping_helper) { + + if (tune_idx == t) { + + setBlockSize(block_size); + runCudaVariantImpl(vid); + + } + + t += 1; + + }); + + } + + }); + +} + +void EMPTY::setCudaTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + seq_for(gpu_mapping::forall_helpers{}, [&](auto mapping_helper) { + + addVariantTuningName(vid, decltype(mapping_helper)::get_name()+"_"+ + std::to_string(block_size)); + + }); + + } + + }); + +} + +} // end namespace basic +} // end namespace rajaperf + +#endif // RAJA_ENABLE_CUDA diff --git a/src/basic/EMPTY-Hip.cpp b/src/basic/EMPTY-Hip.cpp new file mode 100644 index 000000000..269ee4599 --- /dev/null +++ b/src/basic/EMPTY-Hip.cpp @@ -0,0 +1,184 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "EMPTY.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_HIP) + +#include "common/HipDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace basic +{ + +template < size_t block_size > +__launch_bounds__(block_size) +__global__ void empty(Index_type iend) +{ + Index_type i = blockIdx.x * block_size + threadIdx.x; + if (i < iend) { + EMPTY_BODY; + } +} + +template < size_t block_size > +__launch_bounds__(block_size) +__global__ void empty_grid_stride(Index_type iend) +{ + Index_type i = blockIdx.x * block_size + threadIdx.x; + Index_type grid_stride = gridDim.x * block_size; + for ( ; i < iend; i += grid_stride) { + EMPTY_BODY; + } +} + + +template < size_t block_size, typename MappingHelper > +void EMPTY::runHipVariantImpl(VariantID vid) +{ + const Index_type run_reps = getRunReps(); + const Index_type ibegin = 0; + const Index_type iend = getActualProblemSize(); + + auto res{getHipResource()}; + + EMPTY_DATA_SETUP; + + if ( vid == Base_HIP ) { + + auto func = MappingHelper::direct + ? &empty + : &empty_grid_stride; + + constexpr size_t shmem = 0; + const size_t max_grid_size = RAJAPERF_HIP_GET_MAX_BLOCKS( + MappingHelper, func, block_size, shmem); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + const size_t normal_grid_size = RAJA_DIVIDE_CEILING_INT(iend, block_size); + const size_t grid_size = std::min(normal_grid_size, max_grid_size); + + RPlaunchHipKernel( func, + grid_size, block_size, + shmem, res.get_stream(), + iend ); + + } + stopTimer(); + + } else if ( vid == Lambda_HIP ) { + + auto empty_lambda = [=] __device__ (Index_type i) { + EMPTY_BODY; + }; + + auto func = MappingHelper::direct + ? &lambda_hip_forall + : &lambda_hip_forall_grid_stride; + + constexpr size_t shmem = 0; + const size_t max_grid_size = RAJAPERF_HIP_GET_MAX_BLOCKS( + MappingHelper, func, block_size, shmem); + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + const size_t normal_grid_size = RAJA_DIVIDE_CEILING_INT(iend, block_size); + const size_t grid_size = std::min(normal_grid_size, max_grid_size); + + RPlaunchHipKernel( func, + grid_size, block_size, + shmem, res.get_stream(), + ibegin, iend, empty_lambda ); + + } + stopTimer(); + + } else if ( vid == RAJA_HIP ) { + + using exec_policy = std::conditional_t, + RAJA::hip_exec_occ_calc>; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::forall< exec_policy >( res, + RAJA::RangeSegment(ibegin, iend), [=] __device__ (Index_type i) { + EMPTY_BODY; + }); + + } + stopTimer(); + + } else { + getCout() << "\n EMPTY : Unknown Hip variant id = " << vid << std::endl; + } +} + +void EMPTY::runHipVariant(VariantID vid, size_t tune_idx) +{ + size_t t = 0; + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + seq_for(gpu_mapping::forall_helpers{}, [&](auto mapping_helper) { + + if (tune_idx == t) { + + setBlockSize(block_size); + runHipVariantImpl(vid); + + } + + t += 1; + + }); + + } + + }); + +} + +void EMPTY::setHipTuningDefinitions(VariantID vid) +{ + + seq_for(gpu_block_sizes_type{}, [&](auto block_size) { + + if (run_params.numValidGPUBlockSize() == 0u || + run_params.validGPUBlockSize(block_size)) { + + seq_for(gpu_mapping::forall_helpers{}, [&](auto mapping_helper) { + + addVariantTuningName(vid, decltype(mapping_helper)::get_name()+"_"+ + std::to_string(block_size)); + + }); + + } + + }); + +} + +} // end namespace basic +} // end namespace rajaperf + +#endif // RAJA_ENABLE_HIP diff --git a/src/basic/EMPTY-OMP.cpp b/src/basic/EMPTY-OMP.cpp new file mode 100644 index 000000000..d27e4b278 --- /dev/null +++ b/src/basic/EMPTY-OMP.cpp @@ -0,0 +1,99 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "EMPTY.hpp" + +#include "RAJA/RAJA.hpp" + +#include + +namespace rajaperf +{ +namespace basic +{ + + +void EMPTY::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ +#if defined(RAJA_ENABLE_OPENMP) && defined(RUN_OPENMP) + + const Index_type run_reps = getRunReps(); + const Index_type ibegin = 0; + const Index_type iend = getActualProblemSize(); + + EMPTY_DATA_SETUP; + + switch ( vid ) { + + case Base_OpenMP : { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + #pragma omp parallel for + for (Index_type i = ibegin; i < iend; ++i ) { + EMPTY_BODY; + } + + } + stopTimer(); + + break; + } + + case Lambda_OpenMP : { + + auto empty_lam = [=](Index_type i) { + EMPTY_BODY; + }; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + #pragma omp parallel for + for (Index_type i = ibegin; i < iend; ++i ) { + empty_lam(i); + } + + } + stopTimer(); + + break; + } + + case RAJA_OpenMP : { + + auto res{getHostResource()}; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { + EMPTY_BODY; + }); + + } + stopTimer(); + + break; + } + + default : { + getCout() << "\n EMPTY : Unknown variant id = " << vid << std::endl; + } + + } + +#else + RAJA_UNUSED_VAR(vid); +#endif +} + +} // end namespace basic +} // end namespace rajaperf diff --git a/src/basic/EMPTY-OMPTarget.cpp b/src/basic/EMPTY-OMPTarget.cpp new file mode 100644 index 000000000..ade99a7aa --- /dev/null +++ b/src/basic/EMPTY-OMPTarget.cpp @@ -0,0 +1,75 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "EMPTY.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_TARGET_OPENMP) + +#include "common/OpenMPTargetDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace basic +{ + + // + // Define threads per team for target execution + // + const size_t threads_per_team = 256; + + +void EMPTY::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ + const Index_type run_reps = getRunReps(); + const Index_type ibegin = 0; + const Index_type iend = getActualProblemSize(); + + EMPTY_DATA_SETUP; + + if ( vid == Base_OpenMPTarget ) { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + #pragma omp target device( did ) + #pragma omp teams distribute parallel for thread_limit(threads_per_team) schedule(static, 1) + for (Index_type i = ibegin; i < iend; ++i ) { + EMPTY_BODY; + } + + } + stopTimer(); + + } else if ( vid == RAJA_OpenMPTarget ) { + + auto res{getOmpTargetResource()}; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { + EMPTY_BODY; + }); + + } + stopTimer(); + + } else { + getCout() << "\n EMPTY : Unknown OMP Target variant id = " << vid << std::endl; + } +} + +} // end namespace basic +} // end namespace rajaperf + +#endif // RAJA_ENABLE_TARGET_OPENMP diff --git a/src/basic/EMPTY-Seq.cpp b/src/basic/EMPTY-Seq.cpp new file mode 100644 index 000000000..6d2bc1509 --- /dev/null +++ b/src/basic/EMPTY-Seq.cpp @@ -0,0 +1,95 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "EMPTY.hpp" + +#include "RAJA/RAJA.hpp" + +#include + +namespace rajaperf +{ +namespace basic +{ + + +void EMPTY::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ + const Index_type run_reps = getRunReps(); + const Index_type ibegin = 0; + const Index_type iend = getActualProblemSize(); + + EMPTY_DATA_SETUP; + + switch ( vid ) { + + case Base_Seq : { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + for (Index_type i = ibegin; i < iend; ++i ) { + EMPTY_BODY; + } + + } + stopTimer(); + + break; + } + +#if defined(RUN_RAJA_SEQ) + case Lambda_Seq : { + + auto empty_lam = [=](Index_type i) { + EMPTY_BODY; + }; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + for (Index_type i = ibegin; i < iend; ++i ) { + empty_lam(i); + } + + } + stopTimer(); + + break; + } + + case RAJA_Seq : { + + auto res{getHostResource()}; + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), + [=](Index_type i) { + EMPTY_BODY; + }); + + } + stopTimer(); + + break; + } +#endif + + default : { + getCout() << "\n EMPTY : Unknown variant id = " << vid << std::endl; + } + + } + +} + +} // end namespace basic +} // end namespace rajaperf diff --git a/src/basic/EMPTY-Sycl.cpp b/src/basic/EMPTY-Sycl.cpp new file mode 100644 index 000000000..fff69c548 --- /dev/null +++ b/src/basic/EMPTY-Sycl.cpp @@ -0,0 +1,82 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "EMPTY.hpp" + +#include "RAJA/RAJA.hpp" + +#if defined(RAJA_ENABLE_SYCL) + +#include "common/SyclDataUtils.hpp" + +#include + +namespace rajaperf +{ +namespace basic +{ + +template +void EMPTY::runSyclVariantImpl(VariantID vid) +{ + const Index_type run_reps = getRunReps(); + const Index_type ibegin = 0; + const Index_type iend = getActualProblemSize(); + + auto res{getSyclResource()}; + auto qu = res.get_queue(); + + EMPTY_DATA_SETUP; + + if ( vid == Base_SYCL ) { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + const size_t global_size = work_group_size * RAJA_DIVIDE_CEILING_INT(iend, work_group_size); + + qu->submit([&] (sycl::handler& h) { + h.parallel_for(sycl::nd_range<1>(global_size, work_group_size), + [=] (sycl::nd_item<1> item ) { + + Index_type i = item.get_global_id(0); + if (i < iend) { + EMPTY_BODY; + } + + }); + }); + + } + stopTimer(); + + } else if ( vid == RAJA_SYCL ) { + + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + + RAJA::forall< RAJA::sycl_exec >( res, + RAJA::RangeSegment(ibegin, iend), [=] (Index_type i) { + EMPTY_BODY; + }); + + } + stopTimer(); + + } else { + std::cout << "\n EMPTY : Unknown Sycl variant id = " << vid << std::endl; + } + +} +RAJAPERF_GPU_BLOCK_SIZE_TUNING_DEFINE_BOILERPLATE(EMPTY, Sycl) + +} // end namespace basic +} // end namespace rajaperf + + +#endif // RAJA_ENABLE_SYCL diff --git a/src/basic/EMPTY.cpp b/src/basic/EMPTY.cpp new file mode 100644 index 000000000..f7532de8b --- /dev/null +++ b/src/basic/EMPTY.cpp @@ -0,0 +1,77 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +#include "EMPTY.hpp" + +#include "RAJA/RAJA.hpp" + +#include "common/DataUtils.hpp" + +namespace rajaperf +{ +namespace basic +{ + + +EMPTY::EMPTY(const RunParams& params) + : KernelBase(rajaperf::Basic_EMPTY, params) +{ + setDefaultProblemSize(1000000); + setDefaultReps(1000); + + setActualProblemSize( getTargetProblemSize() ); + + setItsPerRep( getActualProblemSize() ); + setKernelsPerRep( 1 ); + setBytesReadPerRep( 0 ); + setBytesWrittenPerRep( 0 ); + setBytesAtomicModifyWrittenPerRep( 0 ); + setFLOPsPerRep( 0 ); + + setComplexity(Complexity::N); + + setUsesFeature(Forall); + + setVariantDefined( Base_Seq ); + setVariantDefined( Lambda_Seq ); + setVariantDefined( RAJA_Seq ); + + setVariantDefined( Base_OpenMP ); + setVariantDefined( Lambda_OpenMP ); + setVariantDefined( RAJA_OpenMP ); + + setVariantDefined( Base_OpenMPTarget ); + setVariantDefined( RAJA_OpenMPTarget ); + + setVariantDefined( Base_CUDA ); + setVariantDefined( Lambda_CUDA ); + setVariantDefined( RAJA_CUDA ); + + setVariantDefined( Base_HIP ); + setVariantDefined( Lambda_HIP ); + setVariantDefined( RAJA_HIP ); +} + +EMPTY::~EMPTY() +{ +} + +void EMPTY::setUp(VariantID RAJAPERF_UNUSED_ARG(vid), size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ +} + +void EMPTY::updateChecksum(VariantID RAJAPERF_UNUSED_ARG(vid), size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ +} + +void EMPTY::tearDown(VariantID RAJAPERF_UNUSED_ARG(vid), size_t RAJAPERF_UNUSED_ARG(tune_idx)) +{ +} + +} // end namespace basic +} // end namespace rajaperf diff --git a/src/basic/EMPTY.hpp b/src/basic/EMPTY.hpp new file mode 100644 index 000000000..5e7a1b156 --- /dev/null +++ b/src/basic/EMPTY.hpp @@ -0,0 +1,80 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +/// +/// EMPTY kernel reference implementation: +/// +/// for (Index_type i = ibegin; i < iend; ++i ) { +/// +/// } +/// + +#ifndef RAJAPerf_Basic_EMPTY_HPP +#define RAJAPerf_Basic_EMPTY_HPP + +#define EMPTY_DATA_SETUP + +// Add something that will stop the loop from being optimized out +// while adding as little overhead as possible. +#if defined(_WIN32) || defined(_WIN64) +// Generate a loop with one write to the stack. +#define EMPTY_BODY volatile auto unused = i; RAJA_UNUSED_VAR( unused ) ; +#else +// Generate an empty loop. +#define EMPTY_BODY asm volatile ( "" ) ; RAJA_UNUSED_VAR( i ) ; +#endif + + +#include "common/KernelBase.hpp" + +namespace rajaperf +{ +class RunParams; + +namespace basic +{ + +class EMPTY : public KernelBase +{ +public: + + EMPTY(const RunParams& params); + + ~EMPTY(); + + void setUp(VariantID vid, size_t tune_idx); + void updateChecksum(VariantID vid, size_t tune_idx); + void tearDown(VariantID vid, size_t tune_idx); + + void runSeqVariant(VariantID vid, size_t tune_idx); + void runOpenMPVariant(VariantID vid, size_t tune_idx); + void runCudaVariant(VariantID vid, size_t tune_idx); + void runHipVariant(VariantID vid, size_t tune_idx); + void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); + void runSyclVariant(VariantID vid, size_t tune_idx); + + void setCudaTuningDefinitions(VariantID vid); + void setHipTuningDefinitions(VariantID vid); + void setSyclTuningDefinitions(VariantID vid); + + template < size_t block_size, typename MappingHelper > + void runCudaVariantImpl(VariantID vid); + template < size_t block_size, typename MappingHelper > + void runHipVariantImpl(VariantID vid); + template < size_t work_group_size > + void runSyclVariantImpl(VariantID vid); + +private: + static const size_t default_gpu_block_size = 256; + using gpu_block_sizes_type = integer::make_gpu_block_size_list_type; +}; + +} // end namespace basic +} // end namespace rajaperf + +#endif // closing endif for header file include guard diff --git a/src/basic/IF_QUAD-Cuda.cpp b/src/basic/IF_QUAD-Cuda.cpp index da959e485..3634460d5 100644 --- a/src/basic/IF_QUAD-Cuda.cpp +++ b/src/basic/IF_QUAD-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/IF_QUAD-Hip.cpp b/src/basic/IF_QUAD-Hip.cpp index 259306d0f..be898577c 100644 --- a/src/basic/IF_QUAD-Hip.cpp +++ b/src/basic/IF_QUAD-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/IF_QUAD-OMP.cpp b/src/basic/IF_QUAD-OMP.cpp index 297decc78..e08e105e8 100644 --- a/src/basic/IF_QUAD-OMP.cpp +++ b/src/basic/IF_QUAD-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void IF_QUAD::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_id case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), ifquad_lam); } diff --git a/src/basic/IF_QUAD-OMPTarget.cpp b/src/basic/IF_QUAD-OMPTarget.cpp index bedec322c..6de6d9da0 100644 --- a/src/basic/IF_QUAD-OMPTarget.cpp +++ b/src/basic/IF_QUAD-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void IF_QUAD::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { IF_QUAD_BODY; }); diff --git a/src/basic/IF_QUAD-Seq.cpp b/src/basic/IF_QUAD-Seq.cpp index 14735ecd8..bb838c76a 100644 --- a/src/basic/IF_QUAD-Seq.cpp +++ b/src/basic/IF_QUAD-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void IF_QUAD::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), ifquad_lam); } diff --git a/src/basic/IF_QUAD-Sycl.cpp b/src/basic/IF_QUAD-Sycl.cpp index 17e569c6f..378fe7359 100644 --- a/src/basic/IF_QUAD-Sycl.cpp +++ b/src/basic/IF_QUAD-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/IF_QUAD.cpp b/src/basic/IF_QUAD.cpp index 58ccb9f58..ef1129a32 100644 --- a/src/basic/IF_QUAD.cpp +++ b/src/basic/IF_QUAD.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -37,6 +37,8 @@ IF_QUAD::IF_QUAD(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/basic/IF_QUAD.hpp b/src/basic/IF_QUAD.hpp index a742d22eb..151b4ad8c 100644 --- a/src/basic/IF_QUAD.hpp +++ b/src/basic/IF_QUAD.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INDEXLIST-Cuda.cpp b/src/basic/INDEXLIST-Cuda.cpp index afcb54176..52654fb0b 100644 --- a/src/basic/INDEXLIST-Cuda.cpp +++ b/src/basic/INDEXLIST-Cuda.cpp @@ -30,13 +30,13 @@ using cuda_items_per_thread_type = integer::make_gpu_items_per_thread_list_type< template < size_t block_size, size_t items_per_thread > __launch_bounds__(block_size) -__global__ void indexlist(Real_ptr x, - Int_ptr list, - Index_type* block_counts, - Index_type* grid_counts, - unsigned* block_readys, - Index_type* len, - Index_type iend) +__global__ void indexlist_custom(Real_ptr x, + Int_ptr list, + Index_type* block_counts, + Index_type* grid_counts, + unsigned* block_readys, + Index_type* len, + Index_type iend) { // blocks do start running in order in cuda, so a block with a higher // index can wait on a block with a lower index without deadlocking @@ -78,7 +78,7 @@ __global__ void indexlist(Real_ptr x, template < size_t block_size, size_t items_per_thread > -void INDEXLIST::runCudaVariantImpl(VariantID vid) +void INDEXLIST::runCudaVariantCustom(VariantID vid) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -107,7 +107,7 @@ void INDEXLIST::runCudaVariantImpl(VariantID vid) cudaErrchk( cudaMemsetAsync(block_readys, 0, sizeof(unsigned)*grid_size, res.get_stream()) ); - RPlaunchCudaKernel( (indexlist), + RPlaunchCudaKernel( (indexlist_custom), grid_size, block_size, shmem_size, res.get_stream(), x+ibegin, list+ibegin, @@ -135,7 +135,7 @@ void INDEXLIST::runCudaVariant(VariantID vid, size_t tune_idx) { size_t t = 0; - if ( vid == Base_CUDA ) { + if ( vid == Base_CUDA && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { @@ -148,7 +148,7 @@ void INDEXLIST::runCudaVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runCudaVariantImpl::value >(vid); @@ -166,7 +166,7 @@ void INDEXLIST::runCudaVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runCudaVariantImpl(vid); + runCudaVariantCustom(vid); } @@ -189,7 +189,7 @@ void INDEXLIST::runCudaVariant(VariantID vid, size_t tune_idx) void INDEXLIST::setCudaTuningDefinitions(VariantID vid) { - if ( vid == Base_CUDA ) { + if ( vid == Base_CUDA && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { diff --git a/src/basic/INDEXLIST-Hip.cpp b/src/basic/INDEXLIST-Hip.cpp index 3be527d35..ef8801e46 100644 --- a/src/basic/INDEXLIST-Hip.cpp +++ b/src/basic/INDEXLIST-Hip.cpp @@ -30,13 +30,13 @@ using hip_items_per_thread_type = integer::make_gpu_items_per_thread_list_type< template < size_t block_size, size_t items_per_thread > __launch_bounds__(block_size) -__global__ void indexlist(Real_ptr x, - Int_ptr list, - Index_type* block_counts, - Index_type* grid_counts, - unsigned* block_readys, - Index_type* len, - Index_type iend) +__global__ void indexlist_custom(Real_ptr x, + Int_ptr list, + Index_type* block_counts, + Index_type* grid_counts, + unsigned* block_readys, + Index_type* len, + Index_type iend) { // It looks like blocks do not start running in order in hip, so a block // with a higher index can't wait on a block with a lower index without @@ -77,7 +77,7 @@ __global__ void indexlist(Real_ptr x, } template < size_t block_size, size_t items_per_thread > -void INDEXLIST::runHipVariantImpl(VariantID vid) +void INDEXLIST::runHipVariantCustom(VariantID vid) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -107,7 +107,7 @@ void INDEXLIST::runHipVariantImpl(VariantID vid) hipErrchk( hipMemsetAsync(block_readys, 0, sizeof(unsigned)*grid_size, res.get_stream()) ); - RPlaunchHipKernel( (indexlist), + RPlaunchHipKernel( (indexlist_custom), grid_size, block_size, shmem_size, res.get_stream(), x+ibegin, list+ibegin, @@ -135,7 +135,7 @@ void INDEXLIST::runHipVariant(VariantID vid, size_t tune_idx) { size_t t = 0; - if ( vid == Base_HIP ) { + if ( vid == Base_HIP && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { @@ -148,7 +148,7 @@ void INDEXLIST::runHipVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runHipVariantImpl::value >(vid); @@ -166,7 +166,7 @@ void INDEXLIST::runHipVariant(VariantID vid, size_t tune_idx) if (tune_idx == t) { - runHipVariantImpl(vid); + runHipVariantCustom(vid); } @@ -189,7 +189,7 @@ void INDEXLIST::runHipVariant(VariantID vid, size_t tune_idx) void INDEXLIST::setHipTuningDefinitions(VariantID vid) { - if ( vid == Base_HIP ) { + if ( vid == Base_HIP && run_params.getEnableCustomScan() ) { seq_for(gpu_block_sizes_type{}, [&](auto block_size) { diff --git a/src/basic/INDEXLIST.cpp b/src/basic/INDEXLIST.cpp index 0336d0643..d4ab1d659 100644 --- a/src/basic/INDEXLIST.cpp +++ b/src/basic/INDEXLIST.cpp @@ -35,6 +35,8 @@ INDEXLIST::INDEXLIST(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Scan); @@ -48,9 +50,13 @@ INDEXLIST::INDEXLIST(const RunParams& params) setVariantDefined( Base_OpenMPTarget ); #endif - setVariantDefined( Base_CUDA ); + if (run_params.getEnableCustomScan()) { + + setVariantDefined( Base_CUDA ); + + setVariantDefined( Base_HIP ); - setVariantDefined( Base_HIP ); + } } INDEXLIST::~INDEXLIST() diff --git a/src/basic/INDEXLIST.hpp b/src/basic/INDEXLIST.hpp index bdf00a446..7ec1414bf 100644 --- a/src/basic/INDEXLIST.hpp +++ b/src/basic/INDEXLIST.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -65,9 +65,9 @@ class INDEXLIST : public KernelBase void setHipTuningDefinitions(VariantID vid); template < size_t block_size, size_t items_per_thread > - void runCudaVariantImpl(VariantID vid); + void runCudaVariantCustom(VariantID vid); template < size_t block_size, size_t items_per_thread > - void runHipVariantImpl(VariantID vid); + void runHipVariantCustom(VariantID vid); private: static const size_t default_gpu_block_size = 256; diff --git a/src/basic/INDEXLIST_3LOOP-OMP.cpp b/src/basic/INDEXLIST_3LOOP-OMP.cpp index 57cb14c23..74ebe5c3c 100644 --- a/src/basic/INDEXLIST_3LOOP-OMP.cpp +++ b/src/basic/INDEXLIST_3LOOP-OMP.cpp @@ -198,12 +198,14 @@ void INDEXLIST_3LOOP::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG case RAJA_OpenMP : { + auto res{getHostResource()}; + INDEXLIST_3LOOP_DATA_SETUP_OMP; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { counts[i] = (INDEXLIST_3LOOP_CONDITIONAL) ? 1 : 0; @@ -212,7 +214,7 @@ void INDEXLIST_3LOOP::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG RAJA::exclusive_scan_inplace( RAJA::make_span(counts+ibegin, iend+1-ibegin)); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { if (counts[i] != counts[i+1]) { diff --git a/src/basic/INDEXLIST_3LOOP-Seq.cpp b/src/basic/INDEXLIST_3LOOP-Seq.cpp index 3828c5652..91afe7c59 100644 --- a/src/basic/INDEXLIST_3LOOP-Seq.cpp +++ b/src/basic/INDEXLIST_3LOOP-Seq.cpp @@ -112,21 +112,23 @@ void INDEXLIST_3LOOP::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu case RAJA_Seq : { + auto res{getHostResource()}; + INDEXLIST_3LOOP_DATA_SETUP_Seq; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { counts[i] = (INDEXLIST_3LOOP_CONDITIONAL) ? 1 : 0; }); - RAJA::exclusive_scan_inplace( + RAJA::exclusive_scan_inplace( res, RAJA::make_span(counts+ibegin, iend+1-ibegin)); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { if (counts[i] != counts[i+1]) { diff --git a/src/basic/INDEXLIST_3LOOP.cpp b/src/basic/INDEXLIST_3LOOP.cpp index 1759f10b0..733397f2e 100644 --- a/src/basic/INDEXLIST_3LOOP.cpp +++ b/src/basic/INDEXLIST_3LOOP.cpp @@ -43,6 +43,8 @@ INDEXLIST_3LOOP::INDEXLIST_3LOOP(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Scan); diff --git a/src/basic/INDEXLIST_3LOOP.hpp b/src/basic/INDEXLIST_3LOOP.hpp index 5cd2ac8ab..ed20cb67b 100644 --- a/src/basic/INDEXLIST_3LOOP.hpp +++ b/src/basic/INDEXLIST_3LOOP.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT3-Cuda.cpp b/src/basic/INIT3-Cuda.cpp index 8b3cb9bb7..f938f43ee 100644 --- a/src/basic/INIT3-Cuda.cpp +++ b/src/basic/INIT3-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT3-Hip.cpp b/src/basic/INIT3-Hip.cpp index be0f2e74f..535740f4f 100644 --- a/src/basic/INIT3-Hip.cpp +++ b/src/basic/INIT3-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT3-OMP.cpp b/src/basic/INIT3-OMP.cpp index 346a92399..2b21b4c8a 100644 --- a/src/basic/INIT3-OMP.cpp +++ b/src/basic/INIT3-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void INIT3::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), init3_lam); } diff --git a/src/basic/INIT3-OMPTarget.cpp b/src/basic/INIT3-OMPTarget.cpp index 0caee8c80..3ce5c0853 100644 --- a/src/basic/INIT3-OMPTarget.cpp +++ b/src/basic/INIT3-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void INIT3::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { INIT3_BODY; }); diff --git a/src/basic/INIT3-Seq.cpp b/src/basic/INIT3-Seq.cpp index 20feb79a4..430b46f7f 100644 --- a/src/basic/INIT3-Seq.cpp +++ b/src/basic/INIT3-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void INIT3::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), init3_lam); } diff --git a/src/basic/INIT3-Sycl.cpp b/src/basic/INIT3-Sycl.cpp index ea5277730..6b96a15d8 100644 --- a/src/basic/INIT3-Sycl.cpp +++ b/src/basic/INIT3-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT3.cpp b/src/basic/INIT3.cpp index 1f0da97f3..f18cfcbba 100644 --- a/src/basic/INIT3.cpp +++ b/src/basic/INIT3.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ INIT3::INIT3(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/basic/INIT3.hpp b/src/basic/INIT3.hpp index 7e5f6a026..872edc6c0 100644 --- a/src/basic/INIT3.hpp +++ b/src/basic/INIT3.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D-Cuda.cpp b/src/basic/INIT_VIEW1D-Cuda.cpp index e535ac041..19090a002 100644 --- a/src/basic/INIT_VIEW1D-Cuda.cpp +++ b/src/basic/INIT_VIEW1D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D-Hip.cpp b/src/basic/INIT_VIEW1D-Hip.cpp index 130a62a42..12001fff5 100644 --- a/src/basic/INIT_VIEW1D-Hip.cpp +++ b/src/basic/INIT_VIEW1D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D-OMP.cpp b/src/basic/INIT_VIEW1D-OMP.cpp index 52160ab13..1e66ed62b 100644 --- a/src/basic/INIT_VIEW1D-OMP.cpp +++ b/src/basic/INIT_VIEW1D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,6 +68,8 @@ void INIT_VIEW1D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun case RAJA_OpenMP : { + auto res{getHostResource()}; + INIT_VIEW1D_VIEW_RAJA; auto initview1d_lam = [=](Index_type i) { @@ -77,7 +79,7 @@ void INIT_VIEW1D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), initview1d_lam); } diff --git a/src/basic/INIT_VIEW1D-OMPTarget.cpp b/src/basic/INIT_VIEW1D-OMPTarget.cpp index 825fcd569..63e049a24 100644 --- a/src/basic/INIT_VIEW1D-OMPTarget.cpp +++ b/src/basic/INIT_VIEW1D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,12 +51,14 @@ void INIT_VIEW1D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_A } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + INIT_VIEW1D_VIEW_RAJA; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { INIT_VIEW1D_BODY_RAJA; }); diff --git a/src/basic/INIT_VIEW1D-Seq.cpp b/src/basic/INIT_VIEW1D-Seq.cpp index b1c761a5c..851ab4fc1 100644 --- a/src/basic/INIT_VIEW1D-Seq.cpp +++ b/src/basic/INIT_VIEW1D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -65,6 +65,8 @@ void INIT_VIEW1D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_Seq : { + auto res{getHostResource()}; + INIT_VIEW1D_VIEW_RAJA; auto initview1d_lam = [=](Index_type i) { @@ -74,7 +76,7 @@ void INIT_VIEW1D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), initview1d_lam); } diff --git a/src/basic/INIT_VIEW1D-Sycl.cpp b/src/basic/INIT_VIEW1D-Sycl.cpp index ff06d2203..3242a2b2f 100644 --- a/src/basic/INIT_VIEW1D-Sycl.cpp +++ b/src/basic/INIT_VIEW1D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D.cpp b/src/basic/INIT_VIEW1D.cpp index eb24e8e8e..3790de2b8 100644 --- a/src/basic/INIT_VIEW1D.cpp +++ b/src/basic/INIT_VIEW1D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ INIT_VIEW1D::INIT_VIEW1D(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(View); diff --git a/src/basic/INIT_VIEW1D.hpp b/src/basic/INIT_VIEW1D.hpp index 0a3be36c3..05daf479b 100644 --- a/src/basic/INIT_VIEW1D.hpp +++ b/src/basic/INIT_VIEW1D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D_OFFSET-Cuda.cpp b/src/basic/INIT_VIEW1D_OFFSET-Cuda.cpp index 3a13f5210..89f4b861e 100644 --- a/src/basic/INIT_VIEW1D_OFFSET-Cuda.cpp +++ b/src/basic/INIT_VIEW1D_OFFSET-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D_OFFSET-Hip.cpp b/src/basic/INIT_VIEW1D_OFFSET-Hip.cpp index 2940bb59d..06dc59b53 100644 --- a/src/basic/INIT_VIEW1D_OFFSET-Hip.cpp +++ b/src/basic/INIT_VIEW1D_OFFSET-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D_OFFSET-OMP.cpp b/src/basic/INIT_VIEW1D_OFFSET-OMP.cpp index bb6834c17..f69fe2d95 100644 --- a/src/basic/INIT_VIEW1D_OFFSET-OMP.cpp +++ b/src/basic/INIT_VIEW1D_OFFSET-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,6 +68,8 @@ void INIT_VIEW1D_OFFSET::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ case RAJA_OpenMP : { + auto res{getHostResource()}; + INIT_VIEW1D_OFFSET_VIEW_RAJA; auto initview1doffset_lam = [=](Index_type i) { @@ -77,7 +79,7 @@ void INIT_VIEW1D_OFFSET::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), initview1doffset_lam); } diff --git a/src/basic/INIT_VIEW1D_OFFSET-OMPTarget.cpp b/src/basic/INIT_VIEW1D_OFFSET-OMPTarget.cpp index f87fa2625..8a30ae35c 100644 --- a/src/basic/INIT_VIEW1D_OFFSET-OMPTarget.cpp +++ b/src/basic/INIT_VIEW1D_OFFSET-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,12 +51,14 @@ void INIT_VIEW1D_OFFSET::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_U } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + INIT_VIEW1D_OFFSET_VIEW_RAJA; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { INIT_VIEW1D_OFFSET_BODY_RAJA; }); diff --git a/src/basic/INIT_VIEW1D_OFFSET-Seq.cpp b/src/basic/INIT_VIEW1D_OFFSET-Seq.cpp index b7588350a..4603493b4 100644 --- a/src/basic/INIT_VIEW1D_OFFSET-Seq.cpp +++ b/src/basic/INIT_VIEW1D_OFFSET-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -65,6 +65,8 @@ void INIT_VIEW1D_OFFSET::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG case RAJA_Seq : { + auto res{getHostResource()}; + INIT_VIEW1D_OFFSET_VIEW_RAJA; auto initview1doffset_lam = [=](Index_type i) { @@ -74,7 +76,7 @@ void INIT_VIEW1D_OFFSET::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), initview1doffset_lam); } diff --git a/src/basic/INIT_VIEW1D_OFFSET-Sycl.cpp b/src/basic/INIT_VIEW1D_OFFSET-Sycl.cpp index f586540f6..984996acd 100644 --- a/src/basic/INIT_VIEW1D_OFFSET-Sycl.cpp +++ b/src/basic/INIT_VIEW1D_OFFSET-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/INIT_VIEW1D_OFFSET.cpp b/src/basic/INIT_VIEW1D_OFFSET.cpp index 1eef8fc3d..3e028af6c 100644 --- a/src/basic/INIT_VIEW1D_OFFSET.cpp +++ b/src/basic/INIT_VIEW1D_OFFSET.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ INIT_VIEW1D_OFFSET::INIT_VIEW1D_OFFSET(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(View); diff --git a/src/basic/INIT_VIEW1D_OFFSET.hpp b/src/basic/INIT_VIEW1D_OFFSET.hpp index 92a75935d..01a6712d9 100644 --- a/src/basic/INIT_VIEW1D_OFFSET.hpp +++ b/src/basic/INIT_VIEW1D_OFFSET.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/MAT_MAT_SHARED-OMP.cpp b/src/basic/MAT_MAT_SHARED-OMP.cpp index 1646841dd..79452eb46 100644 --- a/src/basic/MAT_MAT_SHARED-OMP.cpp +++ b/src/basic/MAT_MAT_SHARED-OMP.cpp @@ -160,7 +160,8 @@ void MAT_MAT_SHARED::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_OpenMP: { - //Currently Teams requires two policies if compiled with a device + auto res{getHostResource()}; + using launch_policy = RAJA::LaunchPolicy; using outer_x = RAJA::LoopPolicy; @@ -175,7 +176,8 @@ void MAT_MAT_SHARED::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( for (RepIndex_type irep = 0; irep < run_reps; ++irep) { //Grid is empty as the host does not need a compute grid to be specified - RAJA::launch(RAJA::LaunchParams(), + RAJA::launch( res, + RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { RAJA::loop(ctx, RAJA::RangeSegment(0, Ny), diff --git a/src/basic/MAT_MAT_SHARED-Seq.cpp b/src/basic/MAT_MAT_SHARED-Seq.cpp index 53f0542eb..d26f52d91 100644 --- a/src/basic/MAT_MAT_SHARED-Seq.cpp +++ b/src/basic/MAT_MAT_SHARED-Seq.cpp @@ -75,7 +75,6 @@ void MAT_MAT_SHARED::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun #if defined(RUN_RAJA_SEQ) case Lambda_Seq: { - startTimer(); for (Index_type irep = 0; irep < run_reps; ++irep) { @@ -155,6 +154,8 @@ void MAT_MAT_SHARED::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun case RAJA_Seq: { + auto res{getHostResource()}; + using launch_policy = RAJA::LaunchPolicy; using outer_x = RAJA::LoopPolicy; @@ -169,7 +170,8 @@ void MAT_MAT_SHARED::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun for (RepIndex_type irep = 0; irep < run_reps; ++irep) { //Grid is empty as the host does not need a compute grid to be specified - RAJA::launch(RAJA::LaunchParams(), + RAJA::launch( res, + RAJA::LaunchParams(), [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { RAJA::loop(ctx, RAJA::RangeSegment(0, Ny), diff --git a/src/basic/MAT_MAT_SHARED-Sycl.cpp b/src/basic/MAT_MAT_SHARED-Sycl.cpp index 174ac0952..a1a92c5e1 100644 --- a/src/basic/MAT_MAT_SHARED-Sycl.cpp +++ b/src/basic/MAT_MAT_SHARED-Sycl.cpp @@ -47,15 +47,15 @@ void MAT_MAT_SHARED::runSyclVariantImpl(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - qu->submit([&](cl::sycl::handler& h) { + qu->submit([&](::sycl::handler& h) { ::sycl::local_accessor As(::sycl::range<2>(tile_size, tile_size), h); ::sycl::local_accessor Bs(::sycl::range<2>(tile_size, tile_size), h); ::sycl::local_accessor Cs(::sycl::range<2>(tile_size, tile_size), h); h.parallel_for - (cl::sycl::nd_range<3>(gridSize, workGroupSize), - [=] (cl::sycl::nd_item<3> itm) { + (::sycl::nd_range<3>(gridSize, workGroupSize), + [=] (::sycl::nd_item<3> itm) { Index_type tx = itm.get_local_id(2); Index_type ty = itm.get_local_id(1); diff --git a/src/basic/MAT_MAT_SHARED.cpp b/src/basic/MAT_MAT_SHARED.cpp index 61a85e898..dc1b69d95 100644 --- a/src/basic/MAT_MAT_SHARED.cpp +++ b/src/basic/MAT_MAT_SHARED.cpp @@ -35,7 +35,7 @@ MAT_MAT_SHARED::MAT_MAT_SHARED(const RunParams ¶ms) setBytesWrittenPerRep( 1*sizeof(Real_type) * m_N*m_N ); setBytesAtomicModifyWrittenPerRep( 0 ); - const Index_type no_tiles = (TL_SZ + m_N - 1) / TL_SZ; + const Index_type no_tiles = RAJA_DIVIDE_CEILING_INT(m_N, TL_SZ); const Index_type no_blocks = RAJA_DIVIDE_CEILING_INT(m_N, TL_SZ); setFLOPsPerRep(2 * TL_SZ * TL_SZ * TL_SZ * no_tiles * no_blocks * no_blocks); @@ -43,6 +43,7 @@ MAT_MAT_SHARED::MAT_MAT_SHARED(const RunParams ¶ms) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N_to_the_three_halves); setUsesFeature(Launch); diff --git a/src/basic/MAT_MAT_SHARED.hpp b/src/basic/MAT_MAT_SHARED.hpp index b543dd4f7..db448860b 100644 --- a/src/basic/MAT_MAT_SHARED.hpp +++ b/src/basic/MAT_MAT_SHARED.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/MULADDSUB-Cuda.cpp b/src/basic/MULADDSUB-Cuda.cpp index e39cd5a77..49ed4019e 100644 --- a/src/basic/MULADDSUB-Cuda.cpp +++ b/src/basic/MULADDSUB-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/MULADDSUB-Hip.cpp b/src/basic/MULADDSUB-Hip.cpp index bb846eef5..9a9c3255b 100644 --- a/src/basic/MULADDSUB-Hip.cpp +++ b/src/basic/MULADDSUB-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/MULADDSUB-OMP.cpp b/src/basic/MULADDSUB-OMP.cpp index 28f5edab1..eb7b9f028 100644 --- a/src/basic/MULADDSUB-OMP.cpp +++ b/src/basic/MULADDSUB-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void MULADDSUB::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), mas_lam); } diff --git a/src/basic/MULADDSUB-OMPTarget.cpp b/src/basic/MULADDSUB-OMPTarget.cpp index f4d0e716a..2b40bfd3d 100644 --- a/src/basic/MULADDSUB-OMPTarget.cpp +++ b/src/basic/MULADDSUB-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void MULADDSUB::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MULADDSUB_BODY; }); diff --git a/src/basic/MULADDSUB-Seq.cpp b/src/basic/MULADDSUB-Seq.cpp index 40ede6d64..72d03d2c8 100644 --- a/src/basic/MULADDSUB-Seq.cpp +++ b/src/basic/MULADDSUB-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void MULADDSUB::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), mas_lam); } diff --git a/src/basic/MULADDSUB-Sycl.cpp b/src/basic/MULADDSUB-Sycl.cpp index 9bca65221..3c5e77254 100644 --- a/src/basic/MULADDSUB-Sycl.cpp +++ b/src/basic/MULADDSUB-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/MULADDSUB.cpp b/src/basic/MULADDSUB.cpp index 4ab19194c..aaed61b01 100644 --- a/src/basic/MULADDSUB.cpp +++ b/src/basic/MULADDSUB.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ MULADDSUB::MULADDSUB(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(3 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/basic/MULADDSUB.hpp b/src/basic/MULADDSUB.hpp index 1846a49a7..260d07212 100644 --- a/src/basic/MULADDSUB.hpp +++ b/src/basic/MULADDSUB.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/MULTI_REDUCE-Cuda.cpp b/src/basic/MULTI_REDUCE-Cuda.cpp index fa52f9e99..49cda3b08 100644 --- a/src/basic/MULTI_REDUCE-Cuda.cpp +++ b/src/basic/MULTI_REDUCE-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/MULTI_REDUCE-Hip.cpp b/src/basic/MULTI_REDUCE-Hip.cpp index e2106a79e..f8f296e8a 100644 --- a/src/basic/MULTI_REDUCE-Hip.cpp +++ b/src/basic/MULTI_REDUCE-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -21,7 +21,7 @@ namespace rajaperf namespace basic { -constexpr Index_type warp_size = 64; +constexpr Index_type warp_size = RAJA_HIP_WAVESIZE; template < Index_type block_size > __launch_bounds__(block_size) diff --git a/src/basic/MULTI_REDUCE-OMP.cpp b/src/basic/MULTI_REDUCE-OMP.cpp index 2e2ebf5d4..9d086ec8f 100644 --- a/src/basic/MULTI_REDUCE-OMP.cpp +++ b/src/basic/MULTI_REDUCE-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -86,12 +86,14 @@ void MULTI_REDUCE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { MULTI_REDUCE_INIT_VALUES_RAJA(RAJA::omp_multi_reduce); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MULTI_REDUCE_BODY; }); diff --git a/src/basic/MULTI_REDUCE-OMPTarget.cpp b/src/basic/MULTI_REDUCE-OMPTarget.cpp index 8c2e18060..6a00b38d6 100644 --- a/src/basic/MULTI_REDUCE-OMPTarget.cpp +++ b/src/basic/MULTI_REDUCE-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -37,10 +37,12 @@ void MULTI_REDUCE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ if ( vid == Base_OpenMPTarget ) { + MULTI_REDUCE_SETUP_VALUES; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - initOpenMPDeviceData(values, values_init, num_bins); + initOpenMPDeviceData(values, values_init.data(), num_bins); #pragma omp target is_device_ptr(values, bins, data) #pragma omp teams distribute parallel for thread_limit(threads_per_team) schedule(static, 1) @@ -49,11 +51,13 @@ void MULTI_REDUCE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ MULTI_REDUCE_BODY; } - getOpenMPDeviceData(values_final, values, num_bins); + getOpenMPDeviceData(values_final.data(), values, num_bins); } stopTimer(); + MULTI_REDUCE_TEARDOWN_VALUES; + } else { getCout() << "\n MULTI_REDUCE : Unknown OMP Target variant id = " << vid << std::endl; } diff --git a/src/basic/MULTI_REDUCE-Seq.cpp b/src/basic/MULTI_REDUCE-Seq.cpp index a771953aa..534b8a039 100644 --- a/src/basic/MULTI_REDUCE-Seq.cpp +++ b/src/basic/MULTI_REDUCE-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -81,13 +81,15 @@ void MULTI_REDUCE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { MULTI_REDUCE_INIT_VALUES_RAJA(RAJA::seq_multi_reduce); - RAJA::forall( RAJA::RangeSegment(ibegin, iend), - [=](Index_type i) { + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MULTI_REDUCE_BODY; }); diff --git a/src/basic/MULTI_REDUCE.cpp b/src/basic/MULTI_REDUCE.cpp index 8fc6ee6c6..39e39d81a 100644 --- a/src/basic/MULTI_REDUCE.cpp +++ b/src/basic/MULTI_REDUCE.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -41,6 +41,8 @@ MULTI_REDUCE::MULTI_REDUCE(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Atomic); @@ -69,67 +71,64 @@ MULTI_REDUCE::~MULTI_REDUCE() void MULTI_REDUCE::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { - allocData(m_bins, getActualProblemSize(), vid); allocAndInitDataRandValue(m_data, getActualProblemSize(), vid); - { - auto reset_bins = scopedMoveData(m_bins, getActualProblemSize(), vid); - - const bool init_random_per_iterate = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Random); - const bool init_random_sizes = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsRandomSizes); - const bool init_even_sizes = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsEvenSizes); - const bool init_all_one = - (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Single); - - if (init_even_sizes || init_random_sizes || init_all_one) { - Real_ptr data = nullptr; - if (init_even_sizes) { - allocData(data, m_num_bins, Base_Seq); - for (Index_type b = 0; b < m_num_bins; ++b) { - data[b] = static_cast(b+1) / m_num_bins; - } - } else if (init_random_sizes) { - allocAndInitDataRandValue(data, m_num_bins, Base_Seq); - std::sort(data, data+m_num_bins); - } else if (init_all_one) { - allocData(data, m_num_bins, Base_Seq); - for (Index_type b = 0; b < m_num_bins; ++b) { - data[b] = static_cast(0); - } + auto reset_bins = allocDataForInit(m_bins, getActualProblemSize(), vid); + + const bool init_random_per_iterate = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Random); + const bool init_random_sizes = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsRandomSizes); + const bool init_even_sizes = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::RunsEvenSizes); + const bool init_all_one = + (m_bin_assignment_algorithm == RunParams::BinAssignmentAlgorithm::Single); + + if (init_even_sizes || init_random_sizes || init_all_one) { + Real_ptr data = nullptr; + if (init_even_sizes) { + allocData(data, m_num_bins, Base_Seq); + for (Index_type b = 0; b < m_num_bins; ++b) { + data[b] = static_cast(b+1) / m_num_bins; + } + } else if (init_random_sizes) { + allocAndInitDataRandValue(data, m_num_bins, Base_Seq); + std::sort(data, data+m_num_bins); + } else if (init_all_one) { + allocData(data, m_num_bins, Base_Seq); + for (Index_type b = 0; b < m_num_bins; ++b) { + data[b] = static_cast(0); } + } - Index_type actual_prob_size = getActualProblemSize(); - Index_type bin = 0; - for (Index_type i = 0; i < actual_prob_size; ++i) { - Real_type pos = static_cast(i) / actual_prob_size; - while (bin+1 < m_num_bins && pos >= data[bin]) { - bin += 1; - } - m_bins[i] = bin; + Index_type actual_prob_size = getActualProblemSize(); + Index_type bin = 0; + for (Index_type i = 0; i < actual_prob_size; ++i) { + Real_type pos = static_cast(i) / actual_prob_size; + while (bin+1 < m_num_bins && pos >= data[bin]) { + bin += 1; } + m_bins[i] = bin; + } - deallocData(data, Base_Seq); + deallocData(data, Base_Seq); - } else if (init_random_per_iterate) { - Real_ptr data; - allocAndInitDataRandValue(data, getActualProblemSize(), Base_Seq); + } else if (init_random_per_iterate) { + Real_ptr data; + allocAndInitDataRandValue(data, getActualProblemSize(), Base_Seq); - for (Index_type i = 0; i < getActualProblemSize(); ++i) { - m_bins[i] = static_cast(data[i] * m_num_bins); - if (m_bins[i] >= m_num_bins) { - m_bins[i] = m_num_bins - 1; - } - if (m_bins[i] < 0) { - m_bins[i] = 0; - } + for (Index_type i = 0; i < getActualProblemSize(); ++i) { + m_bins[i] = static_cast(data[i] * m_num_bins); + if (m_bins[i] >= m_num_bins) { + m_bins[i] = m_num_bins - 1; + } + if (m_bins[i] < 0) { + m_bins[i] = 0; } - - deallocData(data, Base_Seq); - } else { - throw 1; } + + deallocData(data, Base_Seq); + } else { + throw 1; } m_values_init.resize(m_num_bins, 0.0); diff --git a/src/basic/MULTI_REDUCE.hpp b/src/basic/MULTI_REDUCE.hpp index cf8d99185..14c09b898 100644 --- a/src/basic/MULTI_REDUCE.hpp +++ b/src/basic/MULTI_REDUCE.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -96,10 +96,10 @@ class MULTI_REDUCE : public KernelBase void runCudaVariant(VariantID vid, size_t tune_idx); void runHipVariant(VariantID vid, size_t tune_idx); void runOpenMPTargetVariant(VariantID vid, size_t tune_idx); - void runKokkosVariant(VariantID vid, size_t tune_idx); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + template < Index_type block_size, Index_type preferred_global_replication, Index_type preferred_shared_replication, diff --git a/src/basic/NESTED_INIT-Cuda.cpp b/src/basic/NESTED_INIT-Cuda.cpp index 74e4136d2..2206ebd8d 100644 --- a/src/basic/NESTED_INIT-Cuda.cpp +++ b/src/basic/NESTED_INIT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/NESTED_INIT-Hip.cpp b/src/basic/NESTED_INIT-Hip.cpp index f7ea66dd4..64e7dd24a 100644 --- a/src/basic/NESTED_INIT-Hip.cpp +++ b/src/basic/NESTED_INIT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/NESTED_INIT-OMP.cpp b/src/basic/NESTED_INIT-OMP.cpp index 3fa73fa5b..6ebdd5bab 100644 --- a/src/basic/NESTED_INIT-OMP.cpp +++ b/src/basic/NESTED_INIT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -85,6 +85,8 @@ void NESTED_INIT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun case RAJA_OpenMP : { + auto res{getHostResource()}; + #if defined(USE_OMP_COLLAPSE) using EXEC_POL = RAJA::KernelPolicy< @@ -109,11 +111,12 @@ void NESTED_INIT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment(0, ni), - RAJA::RangeSegment(0, nj), - RAJA::RangeSegment(0, nk)), - nestedinit_lam - ); + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment(0, ni), + RAJA::RangeSegment(0, nj), + RAJA::RangeSegment(0, nk)), + res, + nestedinit_lam + ); } stopTimer(); diff --git a/src/basic/NESTED_INIT-OMPTarget.cpp b/src/basic/NESTED_INIT-OMPTarget.cpp index 6e6538dfd..757bba414 100644 --- a/src/basic/NESTED_INIT-OMPTarget.cpp +++ b/src/basic/NESTED_INIT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -48,6 +48,8 @@ void NESTED_INIT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_A } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + using EXEC_POL = RAJA::KernelPolicy< RAJA::statement::Collapse( RAJA::make_tuple(RAJA::RangeSegment(0, ni), - RAJA::RangeSegment(0, nj), - RAJA::RangeSegment(0, nk)), - [=](Index_type i, Index_type j, Index_type k) { + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment(0, ni), + RAJA::RangeSegment(0, nj), + RAJA::RangeSegment(0, nk)), + res, + [=](Index_type i, Index_type j, Index_type k) { NESTED_INIT_BODY; }); diff --git a/src/basic/NESTED_INIT-Seq.cpp b/src/basic/NESTED_INIT-Seq.cpp index bc277ce27..a960c130f 100644 --- a/src/basic/NESTED_INIT-Seq.cpp +++ b/src/basic/NESTED_INIT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,6 +73,8 @@ void NESTED_INIT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_Seq : { + auto res{getHostResource()}; + using EXEC_POL = RAJA::KernelPolicy< RAJA::statement::For<2, RAJA::seq_exec, // k @@ -87,11 +89,12 @@ void NESTED_INIT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment(0, ni), - RAJA::RangeSegment(0, nj), - RAJA::RangeSegment(0, nk)), - nestedinit_lam - ); + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment(0, ni), + RAJA::RangeSegment(0, nj), + RAJA::RangeSegment(0, nk)), + res, + nestedinit_lam + ); } stopTimer(); diff --git a/src/basic/NESTED_INIT-Sycl.cpp b/src/basic/NESTED_INIT-Sycl.cpp index 950a6b56b..f4f19fe94 100644 --- a/src/basic/NESTED_INIT-Sycl.cpp +++ b/src/basic/NESTED_INIT-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -48,7 +48,7 @@ void NESTED_INIT::runSyclVariantImpl(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - qu->submit([&] (cl::sycl::handler& h) { + qu->submit([&] (::sycl::handler& h) { h.parallel_for(sycl::nd_range<3> ( global_dim, wkgroup_dim), [=] (sycl::nd_item<3> item) { diff --git a/src/basic/NESTED_INIT.cpp b/src/basic/NESTED_INIT.cpp index 67d1d017b..f0d98b337 100644 --- a/src/basic/NESTED_INIT.cpp +++ b/src/basic/NESTED_INIT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -44,6 +44,8 @@ NESTED_INIT::NESTED_INIT(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(3 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/basic/NESTED_INIT.hpp b/src/basic/NESTED_INIT.hpp index 0c579dd3b..40208565d 100644 --- a/src/basic/NESTED_INIT.hpp +++ b/src/basic/NESTED_INIT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/PI_ATOMIC-Cuda.cpp b/src/basic/PI_ATOMIC-Cuda.cpp index f49c53518..5d7c0d57a 100644 --- a/src/basic/PI_ATOMIC-Cuda.cpp +++ b/src/basic/PI_ATOMIC-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/PI_ATOMIC-Hip.cpp b/src/basic/PI_ATOMIC-Hip.cpp index 637c10156..73a46a4cf 100644 --- a/src/basic/PI_ATOMIC-Hip.cpp +++ b/src/basic/PI_ATOMIC-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/PI_ATOMIC-OMP.cpp b/src/basic/PI_ATOMIC-OMP.cpp index d1f0eb784..90162e395 100644 --- a/src/basic/PI_ATOMIC-OMP.cpp +++ b/src/basic/PI_ATOMIC-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,11 +76,13 @@ void PI_ATOMIC::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { *pi = m_pi_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { double x = (double(i) + 0.5) * dx; RAJA::atomicAdd(pi, dx / (1.0 + x * x)); diff --git a/src/basic/PI_ATOMIC-OMPTarget.cpp b/src/basic/PI_ATOMIC-OMPTarget.cpp index 5f3fe4c82..7cf835830 100644 --- a/src/basic/PI_ATOMIC-OMPTarget.cpp +++ b/src/basic/PI_ATOMIC-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -58,12 +58,14 @@ void PI_ATOMIC::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { initOpenMPDeviceData(pi, &m_pi_init, 1); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { double x = (double(i) + 0.5) * dx; RAJA::atomicAdd(pi, dx / (1.0 + x * x)); diff --git a/src/basic/PI_ATOMIC-Seq.cpp b/src/basic/PI_ATOMIC-Seq.cpp index 698361107..70b623ed5 100644 --- a/src/basic/PI_ATOMIC-Seq.cpp +++ b/src/basic/PI_ATOMIC-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -71,11 +71,14 @@ void PI_ATOMIC::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { *pi = m_pi_init; - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { double x = (double(i) + 0.5) * dx; RAJA::atomicAdd(pi, dx / (1.0 + x * x)); diff --git a/src/basic/PI_ATOMIC.cpp b/src/basic/PI_ATOMIC.cpp index 5a6a5bc04..8f9bb64f0 100644 --- a/src/basic/PI_ATOMIC.cpp +++ b/src/basic/PI_ATOMIC.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ PI_ATOMIC::PI_ATOMIC(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 1*sizeof(Real_type) ); setFLOPsPerRep(6 * getActualProblemSize() + 1); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Atomic); diff --git a/src/basic/PI_ATOMIC.hpp b/src/basic/PI_ATOMIC.hpp index 26a3a7016..5c98f3129 100644 --- a/src/basic/PI_ATOMIC.hpp +++ b/src/basic/PI_ATOMIC.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/PI_REDUCE-Cuda.cpp b/src/basic/PI_REDUCE-Cuda.cpp index 8529897c3..2bfb501b8 100644 --- a/src/basic/PI_REDUCE-Cuda.cpp +++ b/src/basic/PI_REDUCE-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -168,7 +168,8 @@ void PI_REDUCE::runCudaVariantRAJANewReduce(VariantID vid) RAJA::forall< exec_policy >( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tpi), - [=] __device__ (Index_type i, Real_type& pi) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& pi) { PI_REDUCE_BODY; } ); diff --git a/src/basic/PI_REDUCE-Hip.cpp b/src/basic/PI_REDUCE-Hip.cpp index ed2dfd8dd..2142d9caa 100644 --- a/src/basic/PI_REDUCE-Hip.cpp +++ b/src/basic/PI_REDUCE-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -168,7 +168,8 @@ void PI_REDUCE::runHipVariantRAJANewReduce(VariantID vid) res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tpi), - [=] __device__ (Index_type i, Real_type& pi) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& pi) { PI_REDUCE_BODY; } ); diff --git a/src/basic/PI_REDUCE-OMP.cpp b/src/basic/PI_REDUCE-OMP.cpp index 5c83aba6f..96b690b97 100644 --- a/src/basic/PI_REDUCE-OMP.cpp +++ b/src/basic/PI_REDUCE-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -77,6 +77,8 @@ void PI_REDUCE::runOpenMPVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -84,7 +86,7 @@ void PI_REDUCE::runOpenMPVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum pi(m_pi_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { PI_REDUCE_BODY; @@ -102,10 +104,11 @@ void PI_REDUCE::runOpenMPVariant(VariantID vid, size_t tune_idx) Real_type tpi = m_pi_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tpi), - [=] (Index_type i, Real_type& pi) { + [=] (Index_type i, + RAJA::expt::ValOp& pi) { PI_REDUCE_BODY; } ); diff --git a/src/basic/PI_REDUCE-OMPTarget.cpp b/src/basic/PI_REDUCE-OMPTarget.cpp index 351580471..8f4d42e21 100644 --- a/src/basic/PI_REDUCE-OMPTarget.cpp +++ b/src/basic/PI_REDUCE-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -27,7 +27,7 @@ namespace basic const size_t threads_per_team = 256; -void PI_REDUCE::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) +void PI_REDUCE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -56,47 +56,26 @@ void PI_REDUCE::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } else if ( vid == RAJA_OpenMPTarget ) { - if (tune_idx == 0) { + auto res{getOmpTargetResource()}; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - RAJA::ReduceSum pi(m_pi_init); - - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - [=](Index_type i) { - PI_REDUCE_BODY; - }); - - m_pi = 4.0 * pi.get(); - - } - stopTimer(); - - } else if (tune_idx == 1) { - - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - Real_type tpi = m_pi_init; + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tpi), - [=] (Index_type i, Real_type& pi) { - PI_REDUCE_BODY; - } - ); + Real_type tpi = m_pi_init; - m_pi = static_cast(tpi) * 4.0; + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&tpi), + [=] (Index_type i, + RAJA::expt::ValOp& pi) { + PI_REDUCE_BODY; + } + ); - } - stopTimer(); + m_pi = static_cast(tpi) * 4.0; - } else { - getCout() << "\n PI_REDUCE : Unknown OMP Target tuning index = " << tune_idx << std::endl; } + stopTimer(); } else { getCout() << "\n PI_REDUCE : Unknown OMP Target variant id = " << vid << std::endl; @@ -104,14 +83,6 @@ void PI_REDUCE::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } -void PI_REDUCE::setOpenMPTargetTuningDefinitions(VariantID vid) -{ - addVariantTuningName(vid, "default"); - if (vid == RAJA_OpenMPTarget) { - addVariantTuningName(vid, "new"); - } -} - } // end namespace basic } // end namespace rajaperf diff --git a/src/basic/PI_REDUCE-Seq.cpp b/src/basic/PI_REDUCE-Seq.cpp index 4a5b28815..3aa0f1600 100644 --- a/src/basic/PI_REDUCE-Seq.cpp +++ b/src/basic/PI_REDUCE-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -77,6 +77,8 @@ void PI_REDUCE::runSeqVariant(VariantID vid, size_t tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -84,7 +86,8 @@ void PI_REDUCE::runSeqVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum pi(m_pi_init); - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { PI_REDUCE_BODY; }); @@ -101,9 +104,11 @@ void PI_REDUCE::runSeqVariant(VariantID vid, size_t tune_idx) Real_type tpi = m_pi_init; - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tpi), - [=] (Index_type i, Real_type& pi) { + [=] (Index_type i, + RAJA::expt::ValOp& pi) { PI_REDUCE_BODY; } ); diff --git a/src/basic/PI_REDUCE-Sycl.cpp b/src/basic/PI_REDUCE-Sycl.cpp index c95e29583..af589aed1 100644 --- a/src/basic/PI_REDUCE-Sycl.cpp +++ b/src/basic/PI_REDUCE-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -87,7 +87,8 @@ void PI_REDUCE::runSyclVariantImpl(VariantID vid) res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tpi), - [=] (Index_type i, Real_type& pi) { + [=] (Index_type i, + RAJA::expt::ValOp& pi) { PI_REDUCE_BODY; } ); diff --git a/src/basic/PI_REDUCE.cpp b/src/basic/PI_REDUCE.cpp index a258ae8cd..1ad505ad0 100644 --- a/src/basic/PI_REDUCE.cpp +++ b/src/basic/PI_REDUCE.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ PI_REDUCE::PI_REDUCE(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(6 * getActualProblemSize() + 1); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Reduction); diff --git a/src/basic/PI_REDUCE.hpp b/src/basic/PI_REDUCE.hpp index ca6860350..bb4f57ba0 100644 --- a/src/basic/PI_REDUCE.hpp +++ b/src/basic/PI_REDUCE.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -62,7 +62,6 @@ class PI_REDUCE : public KernelBase void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); - void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); template < size_t block_size, typename MappingHelper > diff --git a/src/basic/REDUCE3_INT-Cuda.cpp b/src/basic/REDUCE3_INT-Cuda.cpp index a8d68b31c..1eb3b8939 100644 --- a/src/basic/REDUCE3_INT-Cuda.cpp +++ b/src/basic/REDUCE3_INT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -194,8 +194,10 @@ void REDUCE3_INT::runCudaVariantRAJANewReduce(VariantID vid) RAJA::expt::Reduce(&tvmin), RAJA::expt::Reduce(&tvmax), [=] __device__ (Index_type i, - Int_type& vsum, Int_type& vmin, Int_type& vmax) { - REDUCE3_INT_BODY; + RAJA::expt::ValOp& vsum, + RAJA::expt::ValOp& vmin, + RAJA::expt::ValOp& vmax) { + REDUCE3_INT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE3_INT-Hip.cpp b/src/basic/REDUCE3_INT-Hip.cpp index 12d172de7..a681b21f3 100644 --- a/src/basic/REDUCE3_INT-Hip.cpp +++ b/src/basic/REDUCE3_INT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -194,8 +194,10 @@ void REDUCE3_INT::runHipVariantRAJANewReduce(VariantID vid) RAJA::expt::Reduce(&tvmin), RAJA::expt::Reduce(&tvmax), [=] __device__ (Index_type i, - Int_type& vsum, Int_type& vmin, Int_type& vmax) { - REDUCE3_INT_BODY; + RAJA::expt::ValOp& vsum, + RAJA::expt::ValOp& vmin, + RAJA::expt::ValOp& vmax) { + REDUCE3_INT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE3_INT-OMP.cpp b/src/basic/REDUCE3_INT-OMP.cpp index c9848ac98..7070b0af6 100644 --- a/src/basic/REDUCE3_INT-OMP.cpp +++ b/src/basic/REDUCE3_INT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -91,6 +91,8 @@ void REDUCE3_INT::runOpenMPVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -100,7 +102,7 @@ void REDUCE3_INT::runOpenMPVariant(VariantID vid, size_t tune_idx) RAJA::ReduceMin vmin(m_vmin_init); RAJA::ReduceMax vmax(m_vmax_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { REDUCE3_INT_BODY_RAJA; }); @@ -121,13 +123,16 @@ void REDUCE3_INT::runOpenMPVariant(VariantID vid, size_t tune_idx) Int_type tvmin = m_vmin_init; Int_type tvmax = m_vmax_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tvsum), RAJA::expt::Reduce(&tvmin), RAJA::expt::Reduce(&tvmax), - [=](Index_type i, Int_type& vsum, Int_type& vmin, Int_type& vmax) { - REDUCE3_INT_BODY; + [=](Index_type i, + RAJA::expt::ValOp& vsum, + RAJA::expt::ValOp& vmin, + RAJA::expt::ValOp& vmax) { + REDUCE3_INT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE3_INT-OMPTarget.cpp b/src/basic/REDUCE3_INT-OMPTarget.cpp index d92d37667..7069737f9 100644 --- a/src/basic/REDUCE3_INT-OMPTarget.cpp +++ b/src/basic/REDUCE3_INT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -27,7 +27,7 @@ namespace basic const size_t threads_per_team = 256; -void REDUCE3_INT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) +void REDUCE3_INT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -62,70 +62,40 @@ void REDUCE3_INT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } else if ( vid == RAJA_OpenMPTarget ) { - if (tune_idx == 0) { + auto res{getOmpTargetResource()}; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - RAJA::ReduceSum vsum(m_vsum_init); - RAJA::ReduceMin vmin(m_vmin_init); - RAJA::ReduceMax vmax(m_vmax_init); + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { + Int_type tvsum = m_vsum_init; + Int_type tvmin = m_vmin_init; + Int_type tvmax = m_vmax_init; + + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&tvsum), + RAJA::expt::Reduce(&tvmin), + RAJA::expt::Reduce(&tvmax), + [=](Index_type i, + RAJA::expt::ValOp& vsum, + RAJA::expt::ValOp& vmin, + RAJA::expt::ValOp& vmax) { REDUCE3_INT_BODY_RAJA; - }); - - m_vsum += static_cast(vsum.get()); - m_vmin = RAJA_MIN(m_vmin, static_cast(vmin.get())); - m_vmax = RAJA_MAX(m_vmax, static_cast(vmax.get())); - - } - stopTimer(); - - } else if (tune_idx == 1) { - - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - Int_type tvsum = m_vsum_init; - Int_type tvmin = m_vmin_init; - Int_type tvmax = m_vmax_init; + } + ); - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tvsum), - RAJA::expt::Reduce(&tvmin), - RAJA::expt::Reduce(&tvmax), - [=](Index_type i, Int_type& vsum, Int_type& vmin, Int_type& vmax) { - REDUCE3_INT_BODY; - } - ); + m_vsum += static_cast(tvsum); + m_vmin = RAJA_MIN(m_vmin, static_cast(tvmin)); + m_vmax = RAJA_MAX(m_vmax, static_cast(tvmax)); - m_vsum += static_cast(tvsum); - m_vmin = RAJA_MIN(m_vmin, static_cast(tvmin)); - m_vmax = RAJA_MAX(m_vmax, static_cast(tvmax)); - - } - stopTimer(); - - } else { - getCout() << "\n REDUCE3_INT : Unknown OMP Target tuning index = " << tune_idx << std::endl; } + stopTimer(); } else { getCout() << "\n REDUCE3_INT : Unknown OMP Target variant id = " << vid << std::endl; } } -void REDUCE3_INT::setOpenMPTargetTuningDefinitions(VariantID vid) -{ - addVariantTuningName(vid, "default"); - if (vid == RAJA_OpenMPTarget) { - addVariantTuningName(vid, "new"); - } -} - } // end namespace basic } // end namespace rajaperf diff --git a/src/basic/REDUCE3_INT-Seq.cpp b/src/basic/REDUCE3_INT-Seq.cpp index 32bcfbef6..e972aeb8c 100644 --- a/src/basic/REDUCE3_INT-Seq.cpp +++ b/src/basic/REDUCE3_INT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -87,6 +87,8 @@ void REDUCE3_INT::runSeqVariant(VariantID vid, size_t tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -96,7 +98,7 @@ void REDUCE3_INT::runSeqVariant(VariantID vid, size_t tune_idx) RAJA::ReduceMin vmin(m_vmin_init); RAJA::ReduceMax vmax(m_vmax_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { REDUCE3_INT_BODY_RAJA; }); @@ -117,13 +119,16 @@ void REDUCE3_INT::runSeqVariant(VariantID vid, size_t tune_idx) Int_type tvmin = m_vmin_init; Int_type tvmax = m_vmax_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tvsum), RAJA::expt::Reduce(&tvmin), RAJA::expt::Reduce(&tvmax), - [=](Index_type i, Int_type& vsum, Int_type& vmin, Int_type& vmax) { - REDUCE3_INT_BODY; + [=](Index_type i, + RAJA::expt::ValOp& vsum, + RAJA::expt::ValOp& vmin, + RAJA::expt::ValOp& vmax) { + REDUCE3_INT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE3_INT-Sycl.cpp b/src/basic/REDUCE3_INT-Sycl.cpp index 58ac6f082..e47f59680 100644 --- a/src/basic/REDUCE3_INT-Sycl.cpp +++ b/src/basic/REDUCE3_INT-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -110,8 +110,11 @@ void REDUCE3_INT::runSyclVariantImpl(VariantID vid) RAJA::expt::Reduce(&tvsum), RAJA::expt::Reduce(&tvmin), RAJA::expt::Reduce(&tvmax), - [=] (Index_type i, Int_type& vsum, Int_type& vmin, Int_type& vmax) { - REDUCE3_INT_BODY; + [=] (Index_type i, + RAJA::expt::ValOp& vsum, + RAJA::expt::ValOp& vmin, + RAJA::expt::ValOp& vmax) { + REDUCE3_INT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE3_INT.cpp b/src/basic/REDUCE3_INT.cpp index 3be262b77..3af4be2db 100644 --- a/src/basic/REDUCE3_INT.cpp +++ b/src/basic/REDUCE3_INT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -39,6 +39,8 @@ REDUCE3_INT::REDUCE3_INT(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize() + 1); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Reduction); diff --git a/src/basic/REDUCE3_INT.hpp b/src/basic/REDUCE3_INT.hpp index a3719a845..255816854 100644 --- a/src/basic/REDUCE3_INT.hpp +++ b/src/basic/REDUCE3_INT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -78,7 +78,6 @@ class REDUCE3_INT : public KernelBase void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); - void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); template < size_t block_size, typename MappingHelper > diff --git a/src/basic/REDUCE_STRUCT-Cuda.cpp b/src/basic/REDUCE_STRUCT-Cuda.cpp index 898b453f0..a83f677a2 100644 --- a/src/basic/REDUCE_STRUCT-Cuda.cpp +++ b/src/basic/REDUCE_STRUCT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -233,7 +233,7 @@ void REDUCE_STRUCT::runCudaVariantRAJANewReduce(VariantID vid) Real_type txmax = m_init_max; Real_type tymax = m_init_max; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&txsum), RAJA::expt::Reduce(&tysum), @@ -241,10 +241,14 @@ void REDUCE_STRUCT::runCudaVariantRAJANewReduce(VariantID vid) RAJA::expt::Reduce(&tymin), RAJA::expt::Reduce(&txmax), RAJA::expt::Reduce(&tymax), - [=] __device__ (Index_type i, Real_type& xsum, Real_type& ysum, - Real_type& xmin, Real_type& ymin, - Real_type& xmax, Real_type& ymax) { - REDUCE_STRUCT_BODY; + [=] __device__ (Index_type i, + RAJA::expt::ValOp& xsum, + RAJA::expt::ValOp& ysum, + RAJA::expt::ValOp& xmin, + RAJA::expt::ValOp& ymin, + RAJA::expt::ValOp& xmax, + RAJA::expt::ValOp& ymax ) { + REDUCE_STRUCT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE_STRUCT-Hip.cpp b/src/basic/REDUCE_STRUCT-Hip.cpp index 17fe5ad83..1b0bff9cc 100644 --- a/src/basic/REDUCE_STRUCT-Hip.cpp +++ b/src/basic/REDUCE_STRUCT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -241,10 +241,14 @@ void REDUCE_STRUCT::runHipVariantRAJANewReduce(VariantID vid) RAJA::expt::Reduce(&tymin), RAJA::expt::Reduce(&txmax), RAJA::expt::Reduce(&tymax), - [=] __device__ (Index_type i, Real_type& xsum, Real_type& ysum, - Real_type& xmin, Real_type& ymin, - Real_type& xmax, Real_type& ymax) { - REDUCE_STRUCT_BODY; + [=] __device__ (Index_type i, + RAJA::expt::ValOp& xsum, + RAJA::expt::ValOp& ysum, + RAJA::expt::ValOp& xmin, + RAJA::expt::ValOp& ymin, + RAJA::expt::ValOp& xmax, + RAJA::expt::ValOp& ymax ) { + REDUCE_STRUCT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE_STRUCT-OMP.cpp b/src/basic/REDUCE_STRUCT-OMP.cpp index 8c44d02c0..b23e1b1cb 100644 --- a/src/basic/REDUCE_STRUCT-OMP.cpp +++ b/src/basic/REDUCE_STRUCT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -110,6 +110,8 @@ void REDUCE_STRUCT::runOpenMPVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -122,7 +124,7 @@ void REDUCE_STRUCT::runOpenMPVariant(VariantID vid, size_t tune_idx) RAJA::ReduceMax xmax(m_init_max); RAJA::ReduceMax ymax(m_init_max); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { REDUCE_STRUCT_BODY_RAJA; }); @@ -150,7 +152,7 @@ void REDUCE_STRUCT::runOpenMPVariant(VariantID vid, size_t tune_idx) Real_type txmax = m_init_max; Real_type tymax = m_init_max; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&txsum), RAJA::expt::Reduce(&tysum), @@ -158,10 +160,14 @@ void REDUCE_STRUCT::runOpenMPVariant(VariantID vid, size_t tune_idx) RAJA::expt::Reduce(&tymin), RAJA::expt::Reduce(&txmax), RAJA::expt::Reduce(&tymax), - [=](Index_type i, Real_type& xsum, Real_type& ysum, - Real_type& xmin, Real_type& ymin, - Real_type& xmax, Real_type& ymax) { - REDUCE_STRUCT_BODY; + [=](Index_type i, + RAJA::expt::ValOp& xsum, + RAJA::expt::ValOp& ysum, + RAJA::expt::ValOp& xmin, + RAJA::expt::ValOp& ymin, + RAJA::expt::ValOp& xmax, + RAJA::expt::ValOp& ymax ) { + REDUCE_STRUCT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE_STRUCT-OMPTarget.cpp b/src/basic/REDUCE_STRUCT-OMPTarget.cpp index 594c62ccb..f7f0aec76 100644 --- a/src/basic/REDUCE_STRUCT-OMPTarget.cpp +++ b/src/basic/REDUCE_STRUCT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -27,7 +27,7 @@ namespace basic const size_t threads_per_team = 256; -void REDUCE_STRUCT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) +void REDUCE_STRUCT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -83,76 +83,47 @@ void REDUCE_STRUCT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMPTarget : { - if (tune_idx == 0) { + auto res{getOmpTargetResource()}; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - RAJA::ReduceSum xsum(m_init_sum); - RAJA::ReduceSum ysum(m_init_sum); - RAJA::ReduceMin xmin(m_init_min); - RAJA::ReduceMin ymin(m_init_min); - RAJA::ReduceMax xmax(m_init_max); - RAJA::ReduceMax ymax(m_init_max); - - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - [=](Index_type i) { - REDUCE_STRUCT_BODY_RAJA; - }); - - points.SetCenter(xsum.get()/(points.N), - ysum.get()/(points.N)); - points.SetXMin(xmin.get()); - points.SetXMax(xmax.get()); - points.SetYMin(ymin.get()); - points.SetYMax(ymax.get()); - m_points = points; - - } - stopTimer(); - - } else if (tune_idx == 1) { - - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - Real_type txsum = m_init_sum; - Real_type tysum = m_init_sum; - Real_type txmin = m_init_min; - Real_type tymin = m_init_min; - Real_type txmax = m_init_max; - Real_type tymax = m_init_max; - - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&txsum), - RAJA::expt::Reduce(&tysum), - RAJA::expt::Reduce(&txmin), - RAJA::expt::Reduce(&tymin), - RAJA::expt::Reduce(&txmax), - RAJA::expt::Reduce(&tymax), - [=](Index_type i, Real_type& xsum, Real_type& ysum, - Real_type& xmin, Real_type& ymin, - Real_type& xmax, Real_type& ymax) { - REDUCE_STRUCT_BODY; - } - ); - - points.SetCenter(static_cast(txsum)/(points.N), - static_cast(tysum)/(points.N)); - points.SetXMin(static_cast(txmin)); - points.SetXMax(static_cast(txmax)); - points.SetYMin(static_cast(tymin)); - points.SetYMax(static_cast(tymax)); - m_points = points; + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - } - stopTimer(); + Real_type txsum = m_init_sum; + Real_type tysum = m_init_sum; + Real_type txmin = m_init_min; + Real_type tymin = m_init_min; + Real_type txmax = m_init_max; + Real_type tymax = m_init_max; + + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&txsum), + RAJA::expt::Reduce(&tysum), + RAJA::expt::Reduce(&txmin), + RAJA::expt::Reduce(&tymin), + RAJA::expt::Reduce(&txmax), + RAJA::expt::Reduce(&tymax), + [=](Index_type i, + RAJA::expt::ValOp& xsum, + RAJA::expt::ValOp& ysum, + RAJA::expt::ValOp& xmin, + RAJA::expt::ValOp& ymin, + RAJA::expt::ValOp& xmax, + RAJA::expt::ValOp& ymax ) { + REDUCE_STRUCT_BODY_RAJA; + } + ); + + points.SetCenter(static_cast(txsum)/(points.N), + static_cast(tysum)/(points.N)); + points.SetXMin(static_cast(txmin)); + points.SetXMax(static_cast(txmax)); + points.SetYMin(static_cast(tymin)); + points.SetYMax(static_cast(tymax)); + m_points = points; - } else { - getCout() << "\n REDUCE_STRUCT : Unknown OMP Target tuning index = " << tune_idx << std::endl; } + stopTimer(); break; } @@ -163,14 +134,6 @@ void REDUCE_STRUCT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } -void REDUCE_STRUCT::setOpenMPTargetTuningDefinitions(VariantID vid) -{ - addVariantTuningName(vid, "default"); - if (vid == RAJA_OpenMPTarget) { - addVariantTuningName(vid, "new"); - } -} - } // end namespace basic } // end namespace rajaperf diff --git a/src/basic/REDUCE_STRUCT-Seq.cpp b/src/basic/REDUCE_STRUCT-Seq.cpp index 1e2a68d43..053d52e47 100644 --- a/src/basic/REDUCE_STRUCT-Seq.cpp +++ b/src/basic/REDUCE_STRUCT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -100,6 +100,8 @@ void REDUCE_STRUCT::runSeqVariant(VariantID vid, size_t tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -112,7 +114,7 @@ void REDUCE_STRUCT::runSeqVariant(VariantID vid, size_t tune_idx) RAJA::ReduceMax xmax(m_init_max); RAJA::ReduceMax ymax(m_init_max); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { REDUCE_STRUCT_BODY_RAJA; }); @@ -140,7 +142,7 @@ void REDUCE_STRUCT::runSeqVariant(VariantID vid, size_t tune_idx) Real_type txmax = m_init_max; Real_type tymax = m_init_max; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&txsum), RAJA::expt::Reduce(&tysum), @@ -148,10 +150,14 @@ void REDUCE_STRUCT::runSeqVariant(VariantID vid, size_t tune_idx) RAJA::expt::Reduce(&tymin), RAJA::expt::Reduce(&txmax), RAJA::expt::Reduce(&tymax), - [=](Index_type i, Real_type& xsum, Real_type& ysum, - Real_type& xmin, Real_type& ymin, - Real_type& xmax, Real_type& ymax) { - REDUCE_STRUCT_BODY; + [=](Index_type i, + RAJA::expt::ValOp& xsum, + RAJA::expt::ValOp& ysum, + RAJA::expt::ValOp& xmin, + RAJA::expt::ValOp& ymin, + RAJA::expt::ValOp& xmax, + RAJA::expt::ValOp& ymax ) { + REDUCE_STRUCT_BODY_RAJA; } ); diff --git a/src/basic/REDUCE_STRUCT.cpp b/src/basic/REDUCE_STRUCT.cpp index 764e82f67..2608191dc 100644 --- a/src/basic/REDUCE_STRUCT.cpp +++ b/src/basic/REDUCE_STRUCT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -38,7 +38,8 @@ REDUCE_STRUCT::REDUCE_STRUCT(const RunParams& params) setBytesWrittenPerRep( 6*sizeof(Real_type) ); setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(2 * getActualProblemSize() + 2); - + + setComplexity(Complexity::N); setUsesFeature(Forall); setUsesFeature(Reduction); @@ -70,19 +71,15 @@ void REDUCE_STRUCT::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) m_init_sum = 0.0; m_init_min = std::numeric_limits::max(); m_init_max = std::numeric_limits::lowest(); - allocAndInitData(m_x, getActualProblemSize(), vid); - allocAndInitData(m_y, getActualProblemSize(), vid); - - { - auto reset_x = scopedMoveData(m_x, getActualProblemSize(), vid); - auto reset_y = scopedMoveData(m_y, getActualProblemSize(), vid); - - Real_type dx = Lx/(Real_type)(getActualProblemSize()); - Real_type dy = Ly/(Real_type)(getActualProblemSize()); - for (int i=0;i void runCudaVariantBase(VariantID vid); diff --git a/src/basic/TRAP_INT-Cuda.cpp b/src/basic/TRAP_INT-Cuda.cpp index e58e86923..098c333d4 100644 --- a/src/basic/TRAP_INT-Cuda.cpp +++ b/src/basic/TRAP_INT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -175,7 +175,8 @@ void TRAP_INT::runCudaVariantRAJANewReduce(VariantID vid) RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsumx), - [=] __device__ (Index_type i, Real_type& sumx) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& sumx) { TRAP_INT_BODY; } ); diff --git a/src/basic/TRAP_INT-Hip.cpp b/src/basic/TRAP_INT-Hip.cpp index e60b3ccff..991ee3b94 100644 --- a/src/basic/TRAP_INT-Hip.cpp +++ b/src/basic/TRAP_INT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -176,7 +176,8 @@ void TRAP_INT::runHipVariantRAJANewReduce(VariantID vid) res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsumx), - [=] __device__ (Index_type i, Real_type& sumx) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& sumx) { TRAP_INT_BODY; } ); diff --git a/src/basic/TRAP_INT-OMP.cpp b/src/basic/TRAP_INT-OMP.cpp index f1961483a..5f82804b3 100644 --- a/src/basic/TRAP_INT-OMP.cpp +++ b/src/basic/TRAP_INT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -79,6 +79,8 @@ void TRAP_INT::runOpenMPVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -86,7 +88,7 @@ void TRAP_INT::runOpenMPVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum sumx(m_sumx_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { TRAP_INT_BODY; }); @@ -103,10 +105,11 @@ void TRAP_INT::runOpenMPVariant(VariantID vid, size_t tune_idx) Real_type tsumx = m_sumx_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsumx), - [=] (Index_type i, Real_type& sumx) { + [=] (Index_type i, + RAJA::expt::ValOp& sumx) { TRAP_INT_BODY; } ); diff --git a/src/basic/TRAP_INT-OMPTarget.cpp b/src/basic/TRAP_INT-OMPTarget.cpp index 2c5e4cf56..b9cfd6313 100644 --- a/src/basic/TRAP_INT-OMPTarget.cpp +++ b/src/basic/TRAP_INT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -29,7 +29,7 @@ namespace basic const size_t threads_per_team = 256; -void TRAP_INT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) +void TRAP_INT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -63,60 +63,32 @@ void TRAP_INT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } else if ( vid == RAJA_OpenMPTarget ) { - if (tune_idx == 0) { + auto res{getOmpTargetResource()}; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::ReduceSum sumx(m_sumx_init); + Real_type tsumx = m_sumx_init; - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&tsumx), + [=] (Index_type i, + RAJA::expt::ValOp& sumx) { TRAP_INT_BODY; - }); - - m_sumx += static_cast(sumx.get()) * h; - - } - stopTimer(); - - } else if (tune_idx == 1) { - - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - Real_type tsumx = m_sumx_init; + } + ); - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tsumx), - [=] (Index_type i, Real_type& sumx) { - TRAP_INT_BODY; - } - ); + m_sumx += static_cast(tsumx) * h; - m_sumx += static_cast(tsumx) * h; - - } - stopTimer(); - - } else { - getCout() << "\n TRAP_INT : Unknown OMP Target tuning index = " << tune_idx << std::endl; } + stopTimer(); } else { getCout() << "\n TRAP_INT : Unknown OMP Target variant id = " << vid << std::endl; } } -void TRAP_INT::setOpenMPTargetTuningDefinitions(VariantID vid) -{ - addVariantTuningName(vid, "default"); - if (vid == RAJA_OpenMPTarget) { - addVariantTuningName(vid, "new"); - } -} - } // end namespace basic } // end namespace rajaperf diff --git a/src/basic/TRAP_INT-Seq.cpp b/src/basic/TRAP_INT-Seq.cpp index fa74efdcf..9ca786fa8 100644 --- a/src/basic/TRAP_INT-Seq.cpp +++ b/src/basic/TRAP_INT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -79,6 +79,8 @@ void TRAP_INT::runSeqVariant(VariantID vid, size_t tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -86,7 +88,7 @@ void TRAP_INT::runSeqVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum sumx(m_sumx_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { TRAP_INT_BODY; }); @@ -103,10 +105,11 @@ void TRAP_INT::runSeqVariant(VariantID vid, size_t tune_idx) Real_type tsumx = m_sumx_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsumx), - [=] (Index_type i, Real_type& sumx) { + [=] (Index_type i, + RAJA::expt::ValOp& sumx) { TRAP_INT_BODY; } ); diff --git a/src/basic/TRAP_INT-Sycl.cpp b/src/basic/TRAP_INT-Sycl.cpp index a9795c77e..4b77412b9 100644 --- a/src/basic/TRAP_INT-Sycl.cpp +++ b/src/basic/TRAP_INT-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -85,7 +85,8 @@ void TRAP_INT::runSyclVariantImpl(VariantID vid) res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tsumx), - [=] (Index_type i, Real_type& sumx) { + [=] (Index_type i, + RAJA::expt::ValOp& sumx) { TRAP_INT_BODY; } ); diff --git a/src/basic/TRAP_INT-func.hpp b/src/basic/TRAP_INT-func.hpp index 9c4b90c52..4d62fa1c0 100644 --- a/src/basic/TRAP_INT-func.hpp +++ b/src/basic/TRAP_INT-func.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/basic/TRAP_INT.cpp b/src/basic/TRAP_INT.cpp index 09da695ea..a5a8fbfee 100644 --- a/src/basic/TRAP_INT.cpp +++ b/src/basic/TRAP_INT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ TRAP_INT::TRAP_INT(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(10 * getActualProblemSize()); // 1 sqrt + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Reduction); diff --git a/src/basic/TRAP_INT.hpp b/src/basic/TRAP_INT.hpp index 8f8ca9337..27a606695 100644 --- a/src/basic/TRAP_INT.hpp +++ b/src/basic/TRAP_INT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -75,7 +75,6 @@ class TRAP_INT : public KernelBase void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); - void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); template < size_t block_size, typename MappingHelper > diff --git a/src/comm/CMakeLists.txt b/src/comm/CMakeLists.txt index 9298e7bce..c67cfbe82 100644 --- a/src/comm/CMakeLists.txt +++ b/src/comm/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/comm/HALO_EXCHANGE-Cuda.cpp b/src/comm/HALO_EXCHANGE-Cuda.cpp index ad5482d18..075fba046 100644 --- a/src/comm/HALO_EXCHANGE-Cuda.cpp +++ b/src/comm/HALO_EXCHANGE-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -83,9 +83,9 @@ void HALO_EXCHANGE::runCudaVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } cudaErrchk( cudaStreamSynchronize( res.get_stream() ) ); @@ -101,9 +101,9 @@ void HALO_EXCHANGE::runCudaVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -154,9 +154,7 @@ void HALO_EXCHANGE::runCudaVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } res.wait(); @@ -172,9 +170,7 @@ void HALO_EXCHANGE::runCudaVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_EXCHANGE-Hip.cpp b/src/comm/HALO_EXCHANGE-Hip.cpp index 1b7ffb04a..4237ffe18 100644 --- a/src/comm/HALO_EXCHANGE-Hip.cpp +++ b/src/comm/HALO_EXCHANGE-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -83,9 +83,9 @@ void HALO_EXCHANGE::runHipVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } hipErrchk( hipStreamSynchronize( res.get_stream() ) ); @@ -101,9 +101,9 @@ void HALO_EXCHANGE::runHipVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -154,9 +154,7 @@ void HALO_EXCHANGE::runHipVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } res.wait(); @@ -172,9 +170,7 @@ void HALO_EXCHANGE::runHipVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_EXCHANGE-OMP.cpp b/src/comm/HALO_EXCHANGE-OMP.cpp index 922151704..bdfedb57d 100644 --- a/src/comm/HALO_EXCHANGE-OMP.cpp +++ b/src/comm/HALO_EXCHANGE-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -55,9 +55,7 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -72,9 +70,7 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -123,9 +119,7 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -140,9 +134,7 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -168,6 +160,8 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { + auto res{getHostResource()}; + using EXEC_POL = RAJA::omp_parallel_for_exec; startTimer(); @@ -188,16 +182,14 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t auto halo_exchange_pack_base_lam = [=](Index_type i) { HALO_PACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_exchange_pack_base_lam ); buffer += len; } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -212,9 +204,7 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -222,7 +212,7 @@ void HALO_EXCHANGE::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t auto halo_exchange_unpack_base_lam = [=](Index_type i) { HALO_UNPACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_exchange_unpack_base_lam ); buffer += len; diff --git a/src/comm/HALO_EXCHANGE-OMPTarget.cpp b/src/comm/HALO_EXCHANGE-OMPTarget.cpp index f83eb2826..6847159a3 100644 --- a/src/comm/HALO_EXCHANGE-OMPTarget.cpp +++ b/src/comm/HALO_EXCHANGE-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -59,9 +59,9 @@ void HALO_EXCHANGE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + omp_target_memcpy(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, did, hid); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -76,9 +76,9 @@ void HALO_EXCHANGE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + omp_target_memcpy(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, hid, did); } for (Index_type v = 0; v < num_vars; ++v) { @@ -99,6 +99,8 @@ void HALO_EXCHANGE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + using EXEC_POL = RAJA::omp_target_parallel_for_exec; startTimer(); @@ -119,16 +121,14 @@ void HALO_EXCHANGE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED auto halo_exchange_pack_base_lam = [=](Index_type i) { HALO_PACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_exchange_pack_base_lam ); buffer += len; } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -143,9 +143,7 @@ void HALO_EXCHANGE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -153,7 +151,7 @@ void HALO_EXCHANGE::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED auto halo_exchange_unpack_base_lam = [=](Index_type i) { HALO_UNPACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_exchange_unpack_base_lam ); buffer += len; diff --git a/src/comm/HALO_EXCHANGE-Seq.cpp b/src/comm/HALO_EXCHANGE-Seq.cpp index b5cbbf6f6..243518348 100644 --- a/src/comm/HALO_EXCHANGE-Seq.cpp +++ b/src/comm/HALO_EXCHANGE-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,9 +52,7 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -69,9 +67,7 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -119,9 +115,7 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -136,9 +130,7 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -163,6 +155,8 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { + auto res{getHostResource()}; + using EXEC_POL = RAJA::seq_exec; startTimer(); @@ -183,16 +177,14 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune auto halo_exchange_pack_base_lam = [=](Index_type i) { HALO_PACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_exchange_pack_base_lam ); buffer += len; } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } MPI_Isend(send_buffers[l], len*num_vars, Real_MPI_type, @@ -207,9 +199,7 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -217,7 +207,7 @@ void HALO_EXCHANGE::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune auto halo_exchange_unpack_base_lam = [=](Index_type i) { HALO_UNPACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_exchange_unpack_base_lam ); buffer += len; diff --git a/src/comm/HALO_EXCHANGE.cpp b/src/comm/HALO_EXCHANGE.cpp index bbca8851f..4e4d5f74f 100644 --- a/src/comm/HALO_EXCHANGE.cpp +++ b/src/comm/HALO_EXCHANGE.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -46,6 +46,8 @@ HALO_EXCHANGE::HALO_EXCHANGE(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N_to_the_two_thirds); + setUsesFeature(Forall); setUsesFeature(MPI); @@ -75,12 +77,11 @@ HALO_EXCHANGE::~HALO_EXCHANGE() void HALO_EXCHANGE::setUp(VariantID vid, size_t tune_idx) { - setUp_base(m_my_mpi_rank, m_mpi_dims.data(), vid, tune_idx); + setUp_base(m_my_mpi_rank, m_mpi_dims.data(), m_num_vars, vid, tune_idx); m_vars.resize(m_num_vars, nullptr); for (Index_type v = 0; v < m_num_vars; ++v) { - allocAndInitData(m_vars[v], m_var_size, vid); - auto reset_var = scopedMoveData(m_vars[v], m_var_size, vid); + auto reset_var = allocAndInitDataForInit(m_vars[v], m_var_size, vid); Real_ptr var = m_vars[v]; @@ -88,34 +89,6 @@ void HALO_EXCHANGE::setUp(VariantID vid, size_t tune_idx) var[i] = i + v; } } - - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - m_pack_buffers.resize(s_num_neighbors, nullptr); - m_send_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_pack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_pack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_send_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_pack_buffers[l], buffer_len); - m_send_buffers[l] = m_pack_buffers[l]; - } - } - - m_unpack_buffers.resize(s_num_neighbors, nullptr); - m_recv_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_unpack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_unpack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_recv_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_unpack_buffers[l], buffer_len); - m_recv_buffers[l] = m_unpack_buffers[l]; - } - } } void HALO_EXCHANGE::updateChecksum(VariantID vid, size_t tune_idx) @@ -127,30 +100,6 @@ void HALO_EXCHANGE::updateChecksum(VariantID vid, size_t tune_idx) void HALO_EXCHANGE::tearDown(VariantID vid, size_t tune_idx) { - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_recv_buffers[l]); - deallocData(getDataSpace(vid), m_unpack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_unpack_buffers[l]); - } - } - m_recv_buffers.clear(); - m_unpack_buffers.clear(); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_send_buffers[l]); - deallocData(getDataSpace(vid), m_pack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_pack_buffers[l]); - } - } - m_send_buffers.clear(); - m_pack_buffers.clear(); - for (int v = 0; v < m_num_vars; ++v) { deallocData(m_vars[v], vid); } diff --git a/src/comm/HALO_EXCHANGE.hpp b/src/comm/HALO_EXCHANGE.hpp index 8f3cf1cda..23597e9c3 100644 --- a/src/comm/HALO_EXCHANGE.hpp +++ b/src/comm/HALO_EXCHANGE.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -70,8 +70,6 @@ std::vector pack_mpi_requests(num_neighbors); \ std::vector unpack_mpi_requests(num_neighbors); \ \ - const DataSpace dataSpace = getDataSpace(vid); \ - \ const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); \ \ std::vector pack_buffers = m_pack_buffers; \ @@ -115,6 +113,7 @@ class HALO_EXCHANGE : public HALO_base void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); + template < size_t block_size > void runCudaVariantImpl(VariantID vid); template < size_t block_size > @@ -132,12 +131,6 @@ class HALO_EXCHANGE : public HALO_base Index_type m_var_size; std::vector m_vars; - - std::vector m_pack_buffers; - std::vector m_unpack_buffers; - - std::vector m_send_buffers; - std::vector m_recv_buffers; }; } // end namespace comm diff --git a/src/comm/HALO_EXCHANGE_FUSED-Cuda.cpp b/src/comm/HALO_EXCHANGE_FUSED-Cuda.cpp index a9d161183..1e448194f 100644 --- a/src/comm/HALO_EXCHANGE_FUSED-Cuda.cpp +++ b/src/comm/HALO_EXCHANGE_FUSED-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -143,9 +143,9 @@ void HALO_EXCHANGE_FUSED::runCudaVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } } cudaErrchk( cudaStreamSynchronize( res.get_stream() ) ); @@ -165,9 +165,9 @@ void HALO_EXCHANGE_FUSED::runCudaVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -277,9 +277,7 @@ void HALO_EXCHANGE_FUSED::runCudaVariantWorkGroup(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } res.wait(); @@ -296,9 +294,7 @@ void HALO_EXCHANGE_FUSED::runCudaVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_EXCHANGE_FUSED-Hip.cpp b/src/comm/HALO_EXCHANGE_FUSED-Hip.cpp index 2ac30479b..de6df20f0 100644 --- a/src/comm/HALO_EXCHANGE_FUSED-Hip.cpp +++ b/src/comm/HALO_EXCHANGE_FUSED-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -143,9 +143,9 @@ void HALO_EXCHANGE_FUSED::runHipVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } } hipErrchk( hipStreamSynchronize( res.get_stream() ) ); @@ -165,9 +165,9 @@ void HALO_EXCHANGE_FUSED::runHipVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -277,9 +277,7 @@ void HALO_EXCHANGE_FUSED::runHipVariantWorkGroup(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } res.wait(); @@ -296,9 +294,7 @@ void HALO_EXCHANGE_FUSED::runHipVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_EXCHANGE_FUSED-OMP.cpp b/src/comm/HALO_EXCHANGE_FUSED-OMP.cpp index 1af5d4bb9..5d24aa8fb 100644 --- a/src/comm/HALO_EXCHANGE_FUSED-OMP.cpp +++ b/src/comm/HALO_EXCHANGE_FUSED-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -88,9 +88,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -108,9 +106,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -214,9 +210,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -234,9 +228,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -306,6 +298,8 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantWorkGroup(VariantID vid) case RAJA_OpenMP : { + auto res{getHostResource()}; + using AllocatorHolder = RAJAPoolAllocatorHolder< RAJA::basic_mempool::MemPool>; using Allocator = AllocatorHolder::Allocator; @@ -364,13 +358,11 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantWorkGroup(VariantID vid) } } workgroup group_pack = pool_pack.instantiate(); - worksite site_pack = group_pack.run(); + worksite site_pack = group_pack.run(res); if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -386,9 +378,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -398,7 +388,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPVariantWorkGroup(VariantID vid) } } workgroup group_unpack = pool_unpack.instantiate(); - worksite site_unpack = group_unpack.run(); + worksite site_unpack = group_unpack.run(res); MPI_Waitall(num_neighbors, pack_mpi_requests.data(), MPI_STATUSES_IGNORE); diff --git a/src/comm/HALO_EXCHANGE_FUSED-OMPTarget.cpp b/src/comm/HALO_EXCHANGE_FUSED-OMPTarget.cpp index 18c32437d..ac896cf90 100644 --- a/src/comm/HALO_EXCHANGE_FUSED-OMPTarget.cpp +++ b/src/comm/HALO_EXCHANGE_FUSED-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -120,9 +120,9 @@ void HALO_EXCHANGE_FUSED::runOpenMPTargetVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + omp_target_memcpy(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, did, hid); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -141,9 +141,9 @@ void HALO_EXCHANGE_FUSED::runOpenMPTargetVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + omp_target_memcpy(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, hid, did); } for (Index_type v = 0; v < num_vars; ++v) { @@ -196,6 +196,8 @@ void HALO_EXCHANGE_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + using AllocatorHolder = RAJAPoolAllocatorHolder< RAJA::basic_mempool::MemPool>; using Allocator = AllocatorHolder::Allocator; @@ -254,13 +256,11 @@ void HALO_EXCHANGE_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) } } workgroup group_pack = pool_pack.instantiate(); - worksite site_pack = group_pack.run(); + worksite site_pack = group_pack.run(res); if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -276,9 +276,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -288,7 +286,7 @@ void HALO_EXCHANGE_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) } } workgroup group_unpack = pool_unpack.instantiate(); - worksite site_unpack = group_unpack.run(); + worksite site_unpack = group_unpack.run(res); MPI_Waitall(num_neighbors, pack_mpi_requests.data(), MPI_STATUSES_IGNORE); diff --git a/src/comm/HALO_EXCHANGE_FUSED-Seq.cpp b/src/comm/HALO_EXCHANGE_FUSED-Seq.cpp index bca51de0d..456976e67 100644 --- a/src/comm/HALO_EXCHANGE_FUSED-Seq.cpp +++ b/src/comm/HALO_EXCHANGE_FUSED-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,9 +67,7 @@ void HALO_EXCHANGE_FUSED::runSeqVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -87,9 +85,7 @@ void HALO_EXCHANGE_FUSED::runSeqVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -158,9 +154,7 @@ void HALO_EXCHANGE_FUSED::runSeqVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -178,9 +172,7 @@ void HALO_EXCHANGE_FUSED::runSeqVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -230,6 +222,8 @@ void HALO_EXCHANGE_FUSED::runSeqVariantWorkGroup(VariantID vid) #if defined(RUN_RAJA_SEQ) case RAJA_Seq : { + auto res{getHostResource()}; + using AllocatorHolder = RAJAPoolAllocatorHolder< RAJA::basic_mempool::MemPool>; using Allocator = AllocatorHolder::Allocator; @@ -288,13 +282,11 @@ void HALO_EXCHANGE_FUSED::runSeqVariantWorkGroup(VariantID vid) } } workgroup group_pack = pool_pack.instantiate(); - worksite site_pack = group_pack.run(); + worksite site_pack = group_pack.run(res); if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } for (Index_type l = 0; l < num_neighbors; ++l) { @@ -310,9 +302,7 @@ void HALO_EXCHANGE_FUSED::runSeqVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -322,7 +312,7 @@ void HALO_EXCHANGE_FUSED::runSeqVariantWorkGroup(VariantID vid) } } workgroup group_unpack = pool_unpack.instantiate(); - worksite site_unpack = group_unpack.run(); + worksite site_unpack = group_unpack.run(res); MPI_Waitall(num_neighbors, pack_mpi_requests.data(), MPI_STATUSES_IGNORE); diff --git a/src/comm/HALO_EXCHANGE_FUSED.cpp b/src/comm/HALO_EXCHANGE_FUSED.cpp index be76571a2..f71eea069 100644 --- a/src/comm/HALO_EXCHANGE_FUSED.cpp +++ b/src/comm/HALO_EXCHANGE_FUSED.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -46,6 +46,8 @@ HALO_EXCHANGE_FUSED::HALO_EXCHANGE_FUSED(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N_to_the_two_thirds); + setUsesFeature(Workgroup); setUsesFeature(MPI); @@ -75,12 +77,11 @@ HALO_EXCHANGE_FUSED::~HALO_EXCHANGE_FUSED() void HALO_EXCHANGE_FUSED::setUp(VariantID vid, size_t tune_idx) { - setUp_base(m_my_mpi_rank, m_mpi_dims.data(), vid, tune_idx); + setUp_base(m_my_mpi_rank, m_mpi_dims.data(), m_num_vars, vid, tune_idx); m_vars.resize(m_num_vars, nullptr); for (Index_type v = 0; v < m_num_vars; ++v) { - allocAndInitData(m_vars[v], m_var_size, vid); - auto reset_var = scopedMoveData(m_vars[v], m_var_size, vid); + auto reset_var = allocAndInitDataForInit(m_vars[v], m_var_size, vid); Real_ptr var = m_vars[v]; @@ -88,34 +89,6 @@ void HALO_EXCHANGE_FUSED::setUp(VariantID vid, size_t tune_idx) var[i] = i + v; } } - - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - m_pack_buffers.resize(s_num_neighbors, nullptr); - m_send_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_pack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_pack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_send_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_pack_buffers[l], buffer_len); - m_send_buffers[l] = m_pack_buffers[l]; - } - } - - m_unpack_buffers.resize(s_num_neighbors, nullptr); - m_recv_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_unpack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_unpack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_recv_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_unpack_buffers[l], buffer_len); - m_recv_buffers[l] = m_unpack_buffers[l]; - } - } } void HALO_EXCHANGE_FUSED::updateChecksum(VariantID vid, size_t tune_idx) @@ -127,30 +100,6 @@ void HALO_EXCHANGE_FUSED::updateChecksum(VariantID vid, size_t tune_idx) void HALO_EXCHANGE_FUSED::tearDown(VariantID vid, size_t tune_idx) { - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_recv_buffers[l]); - deallocData(getDataSpace(vid), m_unpack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_unpack_buffers[l]); - } - } - m_recv_buffers.clear(); - m_unpack_buffers.clear(); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_send_buffers[l]); - deallocData(getDataSpace(vid), m_pack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_pack_buffers[l]); - } - } - m_send_buffers.clear(); - m_pack_buffers.clear(); - for (int v = 0; v < m_num_vars; ++v) { deallocData(m_vars[v], vid); } diff --git a/src/comm/HALO_EXCHANGE_FUSED.hpp b/src/comm/HALO_EXCHANGE_FUSED.hpp index a0962be3a..a20551484 100644 --- a/src/comm/HALO_EXCHANGE_FUSED.hpp +++ b/src/comm/HALO_EXCHANGE_FUSED.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,8 +73,6 @@ std::vector pack_mpi_requests(num_neighbors); \ std::vector unpack_mpi_requests(num_neighbors); \ \ - const DataSpace dataSpace = getDataSpace(vid); \ - \ const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); \ \ std::vector pack_buffers = m_pack_buffers; \ @@ -194,12 +192,6 @@ class HALO_EXCHANGE_FUSED : public HALO_base Index_type m_var_size; std::vector m_vars; - - std::vector m_pack_buffers; - std::vector m_unpack_buffers; - - std::vector m_send_buffers; - std::vector m_recv_buffers; }; } // end namespace comm diff --git a/src/comm/HALO_PACKING-Cuda.cpp b/src/comm/HALO_PACKING-Cuda.cpp index 6e09d0805..bdba3d7bc 100644 --- a/src/comm/HALO_PACKING-Cuda.cpp +++ b/src/comm/HALO_PACKING-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -77,9 +77,9 @@ void HALO_PACKING::runCudaVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } cudaErrchk( cudaStreamSynchronize( res.get_stream() ) ); @@ -90,9 +90,9 @@ void HALO_PACKING::runCudaVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -135,9 +135,7 @@ void HALO_PACKING::runCudaVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } res.wait(); @@ -148,9 +146,7 @@ void HALO_PACKING::runCudaVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_PACKING-Hip.cpp b/src/comm/HALO_PACKING-Hip.cpp index 583804396..68e20ffa2 100644 --- a/src/comm/HALO_PACKING-Hip.cpp +++ b/src/comm/HALO_PACKING-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -77,9 +77,9 @@ void HALO_PACKING::runHipVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } hipErrchk( hipStreamSynchronize( res.get_stream() ) ); @@ -90,9 +90,9 @@ void HALO_PACKING::runHipVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -135,9 +135,7 @@ void HALO_PACKING::runHipVariantImpl(VariantID vid) } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } res.wait(); @@ -148,9 +146,7 @@ void HALO_PACKING::runHipVariantImpl(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_PACKING-OMP.cpp b/src/comm/HALO_PACKING-OMP.cpp index bb760f479..a02f0b7f3 100644 --- a/src/comm/HALO_PACKING-OMP.cpp +++ b/src/comm/HALO_PACKING-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -47,9 +47,7 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -58,9 +56,7 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -101,9 +97,7 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -112,9 +106,7 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -138,6 +130,8 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu case RAJA_OpenMP : { + auto res{getHostResource()}; + using EXEC_POL = RAJA::omp_parallel_for_exec; startTimer(); @@ -152,16 +146,14 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu auto halo_packing_pack_base_lam = [=](Index_type i) { HALO_PACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_packing_pack_base_lam ); buffer += len; } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -170,9 +162,7 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -180,7 +170,7 @@ void HALO_PACKING::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu auto halo_packing_unpack_base_lam = [=](Index_type i) { HALO_UNPACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_packing_unpack_base_lam ); buffer += len; diff --git a/src/comm/HALO_PACKING-OMPTarget.cpp b/src/comm/HALO_PACKING-OMPTarget.cpp index d25f4f747..ff2d2bd8a 100644 --- a/src/comm/HALO_PACKING-OMPTarget.cpp +++ b/src/comm/HALO_PACKING-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -53,9 +53,9 @@ void HALO_PACKING::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + omp_target_memcpy(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, did, hid); } } @@ -64,9 +64,9 @@ void HALO_PACKING::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + omp_target_memcpy(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, hid, did); } for (Index_type v = 0; v < num_vars; ++v) { @@ -85,6 +85,8 @@ void HALO_PACKING::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + using EXEC_POL = RAJA::omp_target_parallel_for_exec; startTimer(); @@ -99,16 +101,14 @@ void HALO_PACKING::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ auto halo_packing_pack_base_lam = [=](Index_type i) { HALO_PACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_packing_pack_base_lam ); buffer += len; } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -117,9 +117,7 @@ void HALO_PACKING::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -127,7 +125,7 @@ void HALO_PACKING::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ auto halo_packing_unpack_base_lam = [=](Index_type i) { HALO_UNPACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_packing_unpack_base_lam ); buffer += len; diff --git a/src/comm/HALO_PACKING-Seq.cpp b/src/comm/HALO_PACKING-Seq.cpp index 066116433..9d3c4bfde 100644 --- a/src/comm/HALO_PACKING-Seq.cpp +++ b/src/comm/HALO_PACKING-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -45,9 +45,7 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -56,9 +54,7 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -98,9 +94,7 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -109,9 +103,7 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -134,6 +126,8 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_Seq : { + auto res{getHostResource()}; + using EXEC_POL = RAJA::seq_exec; startTimer(); @@ -148,16 +142,14 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ auto halo_packing_pack_base_lam = [=](Index_type i) { HALO_PACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_packing_pack_base_lam ); buffer += len; } if (separate_buffers) { - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -166,9 +158,7 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -176,7 +166,7 @@ void HALO_PACKING::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ auto halo_packing_unpack_base_lam = [=](Index_type i) { HALO_UNPACK_BODY; }; - RAJA::forall( + RAJA::forall( res, RAJA::TypedRangeSegment(0, len), halo_packing_unpack_base_lam ); buffer += len; diff --git a/src/comm/HALO_PACKING.cpp b/src/comm/HALO_PACKING.cpp index f1569d3aa..cd3fdf044 100644 --- a/src/comm/HALO_PACKING.cpp +++ b/src/comm/HALO_PACKING.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -36,6 +36,8 @@ HALO_PACKING::HALO_PACKING(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N_to_the_two_thirds); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); @@ -64,12 +66,11 @@ void HALO_PACKING::setUp(VariantID vid, size_t tune_idx) { int my_mpi_rank = 0; const int mpi_dims[3] = {1,1,1}; - setUp_base(my_mpi_rank, mpi_dims, vid, tune_idx); + setUp_base(my_mpi_rank, mpi_dims, m_num_vars, vid, tune_idx); m_vars.resize(m_num_vars, nullptr); for (Index_type v = 0; v < m_num_vars; ++v) { - allocAndInitData(m_vars[v], m_var_size, vid); - auto reset_var = scopedMoveData(m_vars[v], m_var_size, vid); + auto reset_var = allocAndInitDataForInit(m_vars[v], m_var_size, vid); Real_ptr var = m_vars[v]; @@ -77,34 +78,6 @@ void HALO_PACKING::setUp(VariantID vid, size_t tune_idx) var[i] = i + v; } } - - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - m_pack_buffers.resize(s_num_neighbors, nullptr); - m_send_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_pack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_pack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_send_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_pack_buffers[l], buffer_len); - m_send_buffers[l] = m_pack_buffers[l]; - } - } - - m_unpack_buffers.resize(s_num_neighbors, nullptr); - m_recv_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_unpack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_unpack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_recv_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_unpack_buffers[l], buffer_len); - m_recv_buffers[l] = m_unpack_buffers[l]; - } - } } void HALO_PACKING::updateChecksum(VariantID vid, size_t tune_idx) @@ -127,30 +100,6 @@ void HALO_PACKING::updateChecksum(VariantID vid, size_t tune_idx) void HALO_PACKING::tearDown(VariantID vid, size_t tune_idx) { - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_recv_buffers[l]); - deallocData(getDataSpace(vid), m_unpack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_unpack_buffers[l]); - } - } - m_recv_buffers.clear(); - m_unpack_buffers.clear(); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_send_buffers[l]); - deallocData(getDataSpace(vid), m_pack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_pack_buffers[l]); - } - } - m_send_buffers.clear(); - m_pack_buffers.clear(); - for (int v = 0; v < m_num_vars; ++v) { deallocData(m_vars[v], vid); } diff --git a/src/comm/HALO_PACKING.hpp b/src/comm/HALO_PACKING.hpp index 7b4531e74..dda6983f5 100644 --- a/src/comm/HALO_PACKING.hpp +++ b/src/comm/HALO_PACKING.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -49,8 +49,6 @@ Index_type num_vars = m_num_vars; \ std::vector vars = m_vars; \ \ - const DataSpace dataSpace = getDataSpace(vid); \ - \ const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); \ \ std::vector pack_buffers = m_pack_buffers; \ @@ -104,12 +102,6 @@ class HALO_PACKING : public HALO_base Index_type m_var_size; std::vector m_vars; - - std::vector m_pack_buffers; - std::vector m_unpack_buffers; - - std::vector m_send_buffers; - std::vector m_recv_buffers; }; } // end namespace comm diff --git a/src/comm/HALO_PACKING_FUSED-Cuda.cpp b/src/comm/HALO_PACKING_FUSED-Cuda.cpp index 7541a30ef..13d826991 100644 --- a/src/comm/HALO_PACKING_FUSED-Cuda.cpp +++ b/src/comm/HALO_PACKING_FUSED-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -141,9 +141,9 @@ void HALO_PACKING_FUSED::runCudaVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } } cudaErrchk( cudaStreamSynchronize( res.get_stream() ) ); @@ -156,9 +156,9 @@ void HALO_PACKING_FUSED::runCudaVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + cudaErrchk( cudaMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + cudaMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -262,9 +262,7 @@ void HALO_PACKING_FUSED::runCudaVariantWorkGroup(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } res.wait(); @@ -274,9 +272,7 @@ void HALO_PACKING_FUSED::runCudaVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_PACKING_FUSED-Hip.cpp b/src/comm/HALO_PACKING_FUSED-Hip.cpp index 7b4d9b064..d39b8505c 100644 --- a/src/comm/HALO_PACKING_FUSED-Hip.cpp +++ b/src/comm/HALO_PACKING_FUSED-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -141,9 +141,9 @@ void HALO_PACKING_FUSED::runHipVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } } hipErrchk( hipStreamSynchronize( res.get_stream() ) ); @@ -156,9 +156,9 @@ void HALO_PACKING_FUSED::runHipVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + hipErrchk( hipMemcpyAsync(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + hipMemcpyDefault, res.get_stream()) ); } for (Index_type v = 0; v < num_vars; ++v) { @@ -262,9 +262,7 @@ void HALO_PACKING_FUSED::runHipVariantWorkGroup(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } res.wait(); @@ -274,9 +272,7 @@ void HALO_PACKING_FUSED::runHipVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { diff --git a/src/comm/HALO_PACKING_FUSED-OMP.cpp b/src/comm/HALO_PACKING_FUSED-OMP.cpp index 143a65501..cde1e9cce 100644 --- a/src/comm/HALO_PACKING_FUSED-OMP.cpp +++ b/src/comm/HALO_PACKING_FUSED-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -80,9 +80,7 @@ void HALO_PACKING_FUSED::runOpenMPVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -93,9 +91,7 @@ void HALO_PACKING_FUSED::runOpenMPVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -191,9 +187,7 @@ void HALO_PACKING_FUSED::runOpenMPVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -204,9 +198,7 @@ void HALO_PACKING_FUSED::runOpenMPVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -274,6 +266,8 @@ void HALO_PACKING_FUSED::runOpenMPVariantWorkGroup(VariantID vid) case RAJA_OpenMP : { + auto res{getHostResource()}; + using AllocatorHolder = RAJAPoolAllocatorHolder< RAJA::basic_mempool::MemPool>; using Allocator = AllocatorHolder::Allocator; @@ -326,13 +320,11 @@ void HALO_PACKING_FUSED::runOpenMPVariantWorkGroup(VariantID vid) } } workgroup group_pack = pool_pack.instantiate(); - worksite site_pack = group_pack.run(); + worksite site_pack = group_pack.run(res); if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -341,9 +333,7 @@ void HALO_PACKING_FUSED::runOpenMPVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -353,7 +343,7 @@ void HALO_PACKING_FUSED::runOpenMPVariantWorkGroup(VariantID vid) } } workgroup group_unpack = pool_unpack.instantiate(); - worksite site_unpack = group_unpack.run(); + worksite site_unpack = group_unpack.run(res); } stopTimer(); diff --git a/src/comm/HALO_PACKING_FUSED-OMPTarget.cpp b/src/comm/HALO_PACKING_FUSED-OMPTarget.cpp index ab0b075b4..f339d8bcc 100644 --- a/src/comm/HALO_PACKING_FUSED-OMPTarget.cpp +++ b/src/comm/HALO_PACKING_FUSED-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -114,9 +114,9 @@ void HALO_PACKING_FUSED::runOpenMPTargetVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + omp_target_memcpy(send_buffers[l], pack_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, did, hid); } } @@ -128,9 +128,9 @@ void HALO_PACKING_FUSED::runOpenMPTargetVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + omp_target_memcpy(unpack_buffers[l], recv_buffers[l], + len*num_vars*sizeof(Real_type), + 0, 0, hid, did); } for (Index_type v = 0; v < num_vars; ++v) { @@ -177,6 +177,8 @@ void HALO_PACKING_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) { const Index_type run_reps = getRunReps(); + auto res{getOmpTargetResource()}; + HALO_PACKING_FUSED_DATA_SETUP; if ( vid == RAJA_OpenMPTarget ) { @@ -233,13 +235,11 @@ void HALO_PACKING_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) } } workgroup group_pack = pool_pack.instantiate(); - worksite site_pack = group_pack.run(); + worksite site_pack = group_pack.run(res); if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -248,9 +248,7 @@ void HALO_PACKING_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -260,7 +258,7 @@ void HALO_PACKING_FUSED::runOpenMPTargetVariantWorkGroup(VariantID vid) } } workgroup group_unpack = pool_unpack.instantiate(); - worksite site_unpack = group_unpack.run(); + worksite site_unpack = group_unpack.run(res); } stopTimer(); diff --git a/src/comm/HALO_PACKING_FUSED-Seq.cpp b/src/comm/HALO_PACKING_FUSED-Seq.cpp index f7c16e253..4a084471f 100644 --- a/src/comm/HALO_PACKING_FUSED-Seq.cpp +++ b/src/comm/HALO_PACKING_FUSED-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -59,9 +59,7 @@ void HALO_PACKING_FUSED::runSeqVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -72,9 +70,7 @@ void HALO_PACKING_FUSED::runSeqVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -135,9 +131,7 @@ void HALO_PACKING_FUSED::runSeqVariantDirect(VariantID vid) if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -148,9 +142,7 @@ void HALO_PACKING_FUSED::runSeqVariantDirect(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -194,6 +186,8 @@ void HALO_PACKING_FUSED::runSeqVariantWorkGroup(VariantID vid) case RAJA_Seq : { #if defined(RUN_RAJA_SEQ) + auto res{getHostResource()}; + const Index_type run_reps = getRunReps(); HALO_PACKING_FUSED_DATA_SETUP; @@ -250,13 +244,11 @@ void HALO_PACKING_FUSED::runSeqVariantWorkGroup(VariantID vid) } } workgroup group_pack = pool_pack.instantiate(); - worksite site_pack = group_pack.run(); + worksite site_pack = group_pack.run(res); if (separate_buffers) { for (Index_type l = 0; l < num_neighbors; ++l) { Index_type len = pack_index_list_lengths[l]; - copyData(DataSpace::Host, send_buffers[l], - dataSpace, pack_buffers[l], - len*num_vars); + res.memcpy(send_buffers[l], pack_buffers[l], len*num_vars*sizeof(Real_type)); } } @@ -265,9 +257,7 @@ void HALO_PACKING_FUSED::runSeqVariantWorkGroup(VariantID vid) Int_ptr list = unpack_index_lists[l]; Index_type len = unpack_index_list_lengths[l]; if (separate_buffers) { - copyData(dataSpace, unpack_buffers[l], - DataSpace::Host, recv_buffers[l], - len*num_vars); + res.memcpy(unpack_buffers[l], recv_buffers[l], len*num_vars*sizeof(Real_type)); } for (Index_type v = 0; v < num_vars; ++v) { @@ -277,7 +267,7 @@ void HALO_PACKING_FUSED::runSeqVariantWorkGroup(VariantID vid) } } workgroup group_unpack = pool_unpack.instantiate(); - worksite site_unpack = group_unpack.run(); + worksite site_unpack = group_unpack.run(res); } stopTimer(); diff --git a/src/comm/HALO_PACKING_FUSED.cpp b/src/comm/HALO_PACKING_FUSED.cpp index 93d29dfbc..da42685d9 100644 --- a/src/comm/HALO_PACKING_FUSED.cpp +++ b/src/comm/HALO_PACKING_FUSED.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -36,6 +36,8 @@ HALO_PACKING_FUSED::HALO_PACKING_FUSED(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N_to_the_two_thirds); + setUsesFeature(Workgroup); setVariantDefined( Base_Seq ); @@ -64,12 +66,11 @@ void HALO_PACKING_FUSED::setUp(VariantID vid, size_t tune_idx) { int my_mpi_rank = 0; const int mpi_dims[3] = {1,1,1}; - setUp_base(my_mpi_rank, mpi_dims, vid, tune_idx); + setUp_base(my_mpi_rank, mpi_dims, m_num_vars, vid, tune_idx); m_vars.resize(m_num_vars, nullptr); for (Index_type v = 0; v < m_num_vars; ++v) { - allocAndInitData(m_vars[v], m_var_size, vid); - auto reset_var = scopedMoveData(m_vars[v], m_var_size, vid); + auto reset_var = allocAndInitDataForInit(m_vars[v], m_var_size, vid); Real_ptr var = m_vars[v]; @@ -77,34 +78,6 @@ void HALO_PACKING_FUSED::setUp(VariantID vid, size_t tune_idx) var[i] = i + v; } } - - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - m_pack_buffers.resize(s_num_neighbors, nullptr); - m_send_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_pack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_pack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_send_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_pack_buffers[l], buffer_len); - m_send_buffers[l] = m_pack_buffers[l]; - } - } - - m_unpack_buffers.resize(s_num_neighbors, nullptr); - m_recv_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_unpack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(getDataSpace(vid), m_unpack_buffers[l], buffer_len); - allocAndInitData(DataSpace::Host, m_recv_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_unpack_buffers[l], buffer_len); - m_recv_buffers[l] = m_unpack_buffers[l]; - } - } } void HALO_PACKING_FUSED::updateChecksum(VariantID vid, size_t tune_idx) @@ -127,30 +100,6 @@ void HALO_PACKING_FUSED::updateChecksum(VariantID vid, size_t tune_idx) void HALO_PACKING_FUSED::tearDown(VariantID vid, size_t tune_idx) { - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_recv_buffers[l]); - deallocData(getDataSpace(vid), m_unpack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_unpack_buffers[l]); - } - } - m_recv_buffers.clear(); - m_unpack_buffers.clear(); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_send_buffers[l]); - deallocData(getDataSpace(vid), m_pack_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_pack_buffers[l]); - } - } - m_send_buffers.clear(); - m_pack_buffers.clear(); - for (int v = 0; v < m_num_vars; ++v) { deallocData(m_vars[v], vid); } diff --git a/src/comm/HALO_PACKING_FUSED.hpp b/src/comm/HALO_PACKING_FUSED.hpp index 065c0be3a..01258fa69 100644 --- a/src/comm/HALO_PACKING_FUSED.hpp +++ b/src/comm/HALO_PACKING_FUSED.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -49,8 +49,6 @@ Index_type num_vars = m_num_vars; \ std::vector vars = m_vars; \ \ - const DataSpace dataSpace = getDataSpace(vid); \ - \ const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); \ \ std::vector pack_buffers = m_pack_buffers; \ @@ -168,12 +166,6 @@ class HALO_PACKING_FUSED : public HALO_base Index_type m_var_size; std::vector m_vars; - - std::vector m_pack_buffers; - std::vector m_unpack_buffers; - - std::vector m_send_buffers; - std::vector m_recv_buffers; }; } // end namespace comm diff --git a/src/comm/HALO_SENDRECV-Cuda.cpp b/src/comm/HALO_SENDRECV-Cuda.cpp index 6d8d1bf56..ea73b84ef 100644 --- a/src/comm/HALO_SENDRECV-Cuda.cpp +++ b/src/comm/HALO_SENDRECV-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/comm/HALO_SENDRECV-Hip.cpp b/src/comm/HALO_SENDRECV-Hip.cpp index 7db6baf83..c81195192 100644 --- a/src/comm/HALO_SENDRECV-Hip.cpp +++ b/src/comm/HALO_SENDRECV-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/comm/HALO_SENDRECV-OMP.cpp b/src/comm/HALO_SENDRECV-OMP.cpp index 347756d81..26df31907 100644 --- a/src/comm/HALO_SENDRECV-OMP.cpp +++ b/src/comm/HALO_SENDRECV-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/comm/HALO_SENDRECV-OMPTarget.cpp b/src/comm/HALO_SENDRECV-OMPTarget.cpp index 42f62289f..8cdb12657 100644 --- a/src/comm/HALO_SENDRECV-OMPTarget.cpp +++ b/src/comm/HALO_SENDRECV-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/comm/HALO_SENDRECV-Seq.cpp b/src/comm/HALO_SENDRECV-Seq.cpp index ab64c9415..86b37ade1 100644 --- a/src/comm/HALO_SENDRECV-Seq.cpp +++ b/src/comm/HALO_SENDRECV-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/comm/HALO_SENDRECV.cpp b/src/comm/HALO_SENDRECV.cpp index 0c57b2c3a..d6ae07bc8 100644 --- a/src/comm/HALO_SENDRECV.cpp +++ b/src/comm/HALO_SENDRECV.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -36,6 +36,8 @@ HALO_SENDRECV::HALO_SENDRECV(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N_to_the_two_thirds); + setUsesFeature(Forall); setUsesFeature(MPI); @@ -58,29 +60,7 @@ HALO_SENDRECV::~HALO_SENDRECV() void HALO_SENDRECV::setUp(VariantID vid, size_t tune_idx) { - setUp_base(m_my_mpi_rank, m_mpi_dims.data(), vid, tune_idx); - - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - m_send_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_pack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(DataSpace::Host, m_send_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_send_buffers[l], buffer_len); - } - } - - m_recv_buffers.resize(s_num_neighbors, nullptr); - for (Index_type l = 0; l < s_num_neighbors; ++l) { - Index_type buffer_len = m_num_vars * m_unpack_index_list_lengths[l]; - if (separate_buffers) { - allocAndInitData(DataSpace::Host, m_recv_buffers[l], buffer_len); - } else { - allocAndInitData(getMPIDataSpace(vid), m_recv_buffers[l], buffer_len); - } - } + setUp_base(m_my_mpi_rank, m_mpi_dims.data(), m_num_vars, vid, tune_idx); } void HALO_SENDRECV::updateChecksum(VariantID vid, size_t tune_idx) @@ -99,26 +79,6 @@ void HALO_SENDRECV::updateChecksum(VariantID vid, size_t tune_idx) void HALO_SENDRECV::tearDown(VariantID vid, size_t tune_idx) { - const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_recv_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_recv_buffers[l]); - } - } - m_recv_buffers.clear(); - - for (int l = 0; l < s_num_neighbors; ++l) { - if (separate_buffers) { - deallocData(DataSpace::Host, m_send_buffers[l]); - } else { - deallocData(getMPIDataSpace(vid), m_send_buffers[l]); - } - } - m_send_buffers.clear(); - tearDown_base(vid, tune_idx); } diff --git a/src/comm/HALO_SENDRECV.hpp b/src/comm/HALO_SENDRECV.hpp index da2a1d1cc..eb79fa4f6 100644 --- a/src/comm/HALO_SENDRECV.hpp +++ b/src/comm/HALO_SENDRECV.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -112,9 +112,6 @@ class HALO_SENDRECV : public HALO_base Index_type m_num_vars; Index_type m_var_size; - - std::vector m_send_buffers; - std::vector m_recv_buffers; }; } // end namespace comm diff --git a/src/comm/HALO_base.cpp b/src/comm/HALO_base.cpp index 84845114c..b34604142 100644 --- a/src/comm/HALO_base.cpp +++ b/src/comm/HALO_base.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,7 +50,8 @@ HALO_base::~HALO_base() } void HALO_base::setUp_base(const int my_mpi_rank, const int* mpi_dims, - VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) + const Index_type num_vars, + VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { m_mpi_ranks.resize(s_num_neighbors, -1); m_send_tags.resize(s_num_neighbors, -1); @@ -64,10 +65,18 @@ void HALO_base::setUp_base(const int my_mpi_rank, const int* mpi_dims, m_recv_tags, m_unpack_index_lists, m_unpack_index_list_lengths, m_halo_width, m_grid_dims, s_num_neighbors, vid); + create_buffers(m_pack_index_list_lengths, m_pack_buffers, m_send_buffers, + s_num_neighbors, num_vars, vid); + create_buffers(m_unpack_index_list_lengths, m_unpack_buffers, m_recv_buffers, + s_num_neighbors, num_vars, vid); } void HALO_base::tearDown_base(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { + destroy_buffers(m_unpack_buffers, m_recv_buffers, + s_num_neighbors, vid); + destroy_buffers(m_pack_buffers, m_send_buffers, + s_num_neighbors, vid); destroy_lists(m_pack_index_lists, m_unpack_index_lists, s_num_neighbors, vid); m_unpack_index_list_lengths.clear(); m_unpack_index_lists.clear(); @@ -233,8 +242,7 @@ void HALO_base::create_lists( (extent.j_max - extent.j_min) * (extent.k_max - extent.k_min) ; - allocAndInitData(pack_index_lists[l], pack_index_list_lengths[l], vid); - auto reset_list = scopedMoveData(pack_index_lists[l], pack_index_list_lengths[l], vid); + auto reset_list = allocAndInitDataForInit(pack_index_lists[l], pack_index_list_lengths[l], vid); Int_ptr pack_list = pack_index_lists[l]; @@ -266,8 +274,7 @@ void HALO_base::create_lists( (extent.j_max - extent.j_min) * (extent.k_max - extent.k_min) ; - allocAndInitData(unpack_index_lists[l], unpack_index_list_lengths[l], vid); - auto reset_list = scopedMoveData(unpack_index_lists[l], unpack_index_list_lengths[l], vid); + auto reset_list = allocAndInitDataForInit(unpack_index_lists[l], unpack_index_list_lengths[l], vid); Int_ptr unpack_list = unpack_index_lists[l]; @@ -307,5 +314,65 @@ void HALO_base::destroy_lists( } } + +void HALO_base::create_buffers(std::vector const& index_list_lengths, + std::vector& our_buffers, + std::vector& mpi_buffers, + const Index_type num_neighbors, + const Index_type num_vars, + VariantID vid) +{ + const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); + + Size_type combined_buffer_size = 0; + for (Index_type l = 0; l < num_neighbors; ++l) { + Index_type buffer_len = num_vars * index_list_lengths[l]; + Size_type buffer_size = getSizePaddedToDataAlignment(buffer_len*sizeof(Real_type)); + combined_buffer_size += buffer_size; + } + + our_buffers.resize(num_neighbors, nullptr); + mpi_buffers.resize(num_neighbors, nullptr); + + if (num_neighbors > 0) { + if (separate_buffers) { + rajaperf::allocAndInitData(getDataSpace(vid), + our_buffers[0], combined_buffer_size, getDataAlignment()); + rajaperf::allocAndInitData(DataSpace::Host, + mpi_buffers[0], combined_buffer_size, getDataAlignment()); + } else { + rajaperf::allocAndInitData(getMPIDataSpace(vid), + our_buffers[0], combined_buffer_size, getDataAlignment()); + mpi_buffers[0] = our_buffers[0]; + } + + for (Index_type l = 1; l < num_neighbors; ++l) { + Index_type last_buffer_len = num_vars * index_list_lengths[l-1]; + Size_type last_buffer_size = getSizePaddedToDataAlignment(last_buffer_len*sizeof(Real_type)); + our_buffers[l] = offsetPointer(our_buffers[l-1], last_buffer_size); + mpi_buffers[l] = offsetPointer(mpi_buffers[l-1], last_buffer_size); + } + } +} + +void HALO_base::destroy_buffers(std::vector& our_buffers, + std::vector& mpi_buffers, + const Index_type num_neighbors, + VariantID vid) +{ + const bool separate_buffers = (getMPIDataSpace(vid) == DataSpace::Copy); + + if (!mpi_buffers.empty()) { + if (separate_buffers) { + deallocData(DataSpace::Host, mpi_buffers[0]); + deallocData(getDataSpace(vid), our_buffers[0]); + } else { + deallocData(getMPIDataSpace(vid), our_buffers[0]); + } + } + mpi_buffers.clear(); + our_buffers.clear(); +} + } // end namespace comm } // end namespace rajaperf diff --git a/src/comm/HALO_base.hpp b/src/comm/HALO_base.hpp index fea021a87..7b3699a54 100644 --- a/src/comm/HALO_base.hpp +++ b/src/comm/HALO_base.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -85,7 +85,8 @@ class HALO_base : public KernelBase ~HALO_base(); void setUp_base(const int my_mpi_rank, const int* mpi_dims, - VariantID vid, size_t tune_idx); + const Index_type num_vars, + VariantID vid, size_t tune_idx); void tearDown_base(VariantID vid, size_t tune_idx); struct Packer { @@ -139,10 +140,14 @@ class HALO_base : public KernelBase std::vector m_send_tags; std::vector m_pack_index_lists; std::vector m_pack_index_list_lengths; + std::vector m_pack_buffers; + std::vector m_send_buffers; std::vector m_recv_tags; std::vector m_unpack_index_lists; std::vector m_unpack_index_list_lengths; + std::vector m_unpack_buffers; + std::vector m_recv_buffers; Extent make_boundary_extent( const message_type msg_type, @@ -168,6 +173,20 @@ class HALO_base : public KernelBase std::vector& unpack_index_lists, const Index_type num_neighbors, VariantID vid); + + void create_buffers( + std::vector const& index_list_lengths, + std::vector& our_buffers, + std::vector& mpi_buffers, + const Index_type num_neighbors, + const Index_type num_vars, + VariantID vid); + + void destroy_buffers( + std::vector& our_buffers, + std::vector& mpi_buffers, + const Index_type num_neighbors, + VariantID vid); }; } // end namespace comm diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index f14076398..3026a377d 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/common/CudaDataUtils.hpp b/src/common/CudaDataUtils.hpp index dea54acf2..03dd6f690 100644 --- a/src/common/CudaDataUtils.hpp +++ b/src/common/CudaDataUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -91,6 +91,30 @@ __global__ void lambda_cuda_forall(Index_type ibegin, Index_type iend, Lambda bo } } +/*! + * \brief Grid stride forall cuda kernel that runs a lambda. + */ +template < typename Lambda > +__global__ void lambda_cuda_forall_grid_stride(Index_type ibegin, Index_type iend, Lambda body) +{ + Index_type i = ibegin + blockIdx.x * blockDim.x + threadIdx.x; + Index_type grid_stride = gridDim.x * blockDim.x; + for ( ; i < iend; i += grid_stride ) { + body(i); + } +} +/// +template < size_t block_size, typename Lambda > +__launch_bounds__(block_size) +__global__ void lambda_cuda_forall_grid_stride(Index_type ibegin, Index_type iend, Lambda body) +{ + Index_type i = ibegin + blockIdx.x * block_size + threadIdx.x; + Index_type grid_stride = gridDim.x * block_size; + for ( ; i < iend; i += grid_stride ) { + body(i); + } +} + /*! * \brief Simple cuda kernel that runs a lambda. */ @@ -155,6 +179,7 @@ inline void copyCudaData(void* dst_ptr, const void* src_ptr, Size_type len) { cudaErrchk( cudaMemcpy( dst_ptr, src_ptr, len, cudaMemcpyDefault ) ); + cudaErrchk( cudaDeviceSynchronize( ) ); } /*! diff --git a/src/common/CudaGridScan.hpp b/src/common/CudaGridScan.hpp index f2c8f2cd1..903b68a6c 100644 --- a/src/common/CudaGridScan.hpp +++ b/src/common/CudaGridScan.hpp @@ -13,6 +13,8 @@ #include #include +#include + namespace rajaperf { namespace detail @@ -23,7 +25,6 @@ namespace cuda // // Define magic numbers for CUDA execution // -const size_t warp_size = 32; const size_t max_static_shmem = 49154; @@ -34,12 +35,12 @@ struct GridScan { using BlockScan = cub::BlockScan; //, cub::BLOCK_SCAN_WARP_SCANS>; using BlockExchange = cub::BlockExchange; - using WarpReduce = cub::WarpReduce; + using WarpReduce32 = cub::WarpReduce; union SharedStorage { typename BlockScan::TempStorage block_scan_storage; typename BlockExchange::TempStorage block_exchange_storage; - typename WarpReduce::TempStorage warp_reduce_storage; + typename WarpReduce32::TempStorage warp_reduce_storage32; volatile DataType prev_grid_count; }; @@ -57,10 +58,6 @@ struct GridScan const bool first_block = (block_id == 0); const bool last_block = (block_id == gridDim.x-1); const bool last_thread = (threadIdx.x == block_size-1); - const bool last_warp = (threadIdx.x >= block_size - warp_size); - const int warp_index = (threadIdx.x % warp_size); - const unsigned warp_index_mask = (1u << warp_index); - const unsigned warp_index_mask_right = warp_index_mask | (warp_index_mask - 1u); __shared__ SharedStorage s_temp_storage; @@ -97,99 +94,127 @@ struct GridScan atomicExch(&block_readys[block_id], 1u); // write block_counts is ready } - // get prev_grid_count using last warp in block - if (last_warp) { - - DataType prev_grid_count = 0; - - // accumulate previous block counts into registers of warp - - int prev_block_base_id = block_id - warp_size; + DataType prev_grid_count = get_previous_grid_count( + block_id, last_block, last_thread, + s_temp_storage.warp_reduce_storage32, s_temp_storage.prev_grid_count, + inclusive, block_counts, grid_counts, block_readys); - unsigned prev_block_ready = 0u; - unsigned prev_blocks_ready_ballot = 0u; - unsigned prev_grids_ready_ballot = 0u; - - // accumulate full warp worths of block counts - // stop if run out of full warps of a grid count is ready - while (prev_block_base_id >= 0) { + for (size_t ti = 0; ti < items_per_thread; ++ti) { + exclusive[ti] = prev_grid_count + exclusive[ti]; + inclusive[ti] = prev_grid_count + inclusive[ti]; + } + } + } - const int prev_block_id = prev_block_base_id + warp_index; + __device__ + static DataType get_previous_grid_count(const int block_id, + const bool last_block, + const bool last_thread, + typename WarpReduce32::TempStorage& s_warp_reduce_storage, + volatile DataType& s_prev_grid_count, + DataType (&inclusive)[items_per_thread], + DataType* block_counts, + DataType* grid_counts, + unsigned* block_readys) + { + const size_t warp_size = 32; - // ensure previous block_counts are ready - do { - prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); + using ballot_type = unsigned; + static_assert(warp_size == sizeof(ballot_type)*CHAR_BIT, ""); - prev_blocks_ready_ballot = __ballot_sync(0xffffffffu, prev_block_ready >= 1u); + // get prev_grid_count using last warp in block + const bool last_warp = (threadIdx.x >= block_size - warp_size); + if (last_warp) { - } while (prev_blocks_ready_ballot != 0xffffffffu); + const int warp_index = (threadIdx.x % warp_size); + const ballot_type warp_index_mask = (ballot_type(1) << warp_index); + const ballot_type warp_index_mask_right = warp_index_mask | (warp_index_mask - ballot_type(1)); - prev_grids_ready_ballot = __ballot_sync(0xffffffffu, prev_block_ready == 2u); + DataType prev_grid_count = 0; - if (prev_grids_ready_ballot != 0u) { - break; - } + // accumulate previous block counts into registers of warp - __threadfence(); // ensure block_counts or grid_counts ready (acquire) + int prev_block_base_id = block_id - warp_size; - // accumulate block_counts for prev_block_id - prev_grid_count += block_counts[prev_block_id]; + unsigned prev_block_ready = 0u; - prev_block_ready = 0u; + ballot_type prev_blocks_ready_ballot = ballot_type(0); + ballot_type prev_grids_ready_ballot = ballot_type(0); - prev_block_base_id -= warp_size; - } + // accumulate full warp worths of block counts + // stop if run out of full warps of a grid count is ready + while (prev_block_base_id >= 0) { const int prev_block_id = prev_block_base_id + warp_index; // ensure previous block_counts are ready - // this checks that block counts is ready for all blocks above - // the highest grid count that is ready - while (~prev_blocks_ready_ballot >= prev_grids_ready_ballot) { - - if (prev_block_id >= 0) { - prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); - } + do { + prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); prev_blocks_ready_ballot = __ballot_sync(0xffffffffu, prev_block_ready >= 1u); - prev_grids_ready_ballot = __ballot_sync(0xffffffffu, prev_block_ready == 2u); + + } while (prev_blocks_ready_ballot != ~ballot_type(0)); + + prev_grids_ready_ballot = __ballot_sync(0xffffffffu, prev_block_ready == 2u); + + if (prev_grids_ready_ballot != ballot_type(0)) { + break; } + __threadfence(); // ensure block_counts or grid_counts ready (acquire) - // read one grid_count from a block with id grid_count_ready_id - // and read the block_counts from blocks with higher ids. - if (warp_index_mask > prev_grids_ready_ballot) { - // accumulate block_counts for prev_block_id - prev_grid_count += block_counts[prev_block_id]; - } else if (prev_grids_ready_ballot == (prev_grids_ready_ballot & warp_index_mask_right)) { - // accumulate grid_count for grid_count_ready_id - prev_grid_count += grid_counts[prev_block_id]; - } + // accumulate block_counts for prev_block_id + prev_grid_count += block_counts[prev_block_id]; + prev_block_ready = 0u; - prev_grid_count = WarpReduce(s_temp_storage.warp_reduce_storage).Sum(prev_grid_count); - prev_grid_count = __shfl_sync(0xffffffffu, prev_grid_count, 0, warp_size); // broadcast output to all threads in warp + prev_block_base_id -= warp_size; + } - if (last_thread) { + const int prev_block_id = prev_block_base_id + warp_index; - if (!last_block) { - grid_counts[block_id] = prev_grid_count + inclusive[items_per_thread-1]; // write inclusive scan result for grid through block - __threadfence(); // ensure grid_counts ready (release) - atomicExch(&block_readys[block_id], 2u); // write grid_counts is ready - } + // ensure previous block_counts are ready + // this checks that block counts is ready for all blocks above + // the highest grid count that is ready + while (~prev_blocks_ready_ballot >= prev_grids_ready_ballot) { - s_temp_storage.prev_grid_count = prev_grid_count; + if (prev_block_id >= 0) { + prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); } + + prev_blocks_ready_ballot = __ballot_sync(0xffffffffu, prev_block_ready >= 1u); + prev_grids_ready_ballot = __ballot_sync(0xffffffffu, prev_block_ready == 2u); + } + __threadfence(); // ensure block_counts or grid_counts ready (acquire) + + // read one grid_count from a block with id grid_count_ready_id + // and read the block_counts from blocks with higher ids. + if (warp_index_mask > prev_grids_ready_ballot) { + // accumulate block_counts for prev_block_id + prev_grid_count += block_counts[prev_block_id]; + } else if (prev_grids_ready_ballot == (prev_grids_ready_ballot & warp_index_mask_right)) { + // accumulate grid_count for grid_count_ready_id + prev_grid_count += grid_counts[prev_block_id]; } - __syncthreads(); - DataType prev_grid_count = s_temp_storage.prev_grid_count; - for (size_t ti = 0; ti < items_per_thread; ++ti) { - exclusive[ti] = prev_grid_count + exclusive[ti]; - inclusive[ti] = prev_grid_count + inclusive[ti]; + prev_grid_count = WarpReduce32(s_warp_reduce_storage).Sum(prev_grid_count); + prev_grid_count = __shfl_sync(0xffffffffu, prev_grid_count, 0, warp_size); // broadcast output to all threads in warp + + if (last_thread) { + + if (!last_block) { + grid_counts[block_id] = prev_grid_count + inclusive[items_per_thread-1]; // write inclusive scan result for grid through block + __threadfence(); // ensure grid_counts ready (release) + atomicExch(&block_readys[block_id], 2u); // write grid_counts is ready + } + + s_prev_grid_count = prev_grid_count; } } + + __syncthreads(); + return s_prev_grid_count; } }; diff --git a/src/common/DataUtils.cpp b/src/common/DataUtils.cpp index 607f5aa00..dcae58395 100644 --- a/src/common/DataUtils.cpp +++ b/src/common/DataUtils.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -19,7 +19,13 @@ #include #include #include +#include + +#if defined(_WIN32) +#include +#else #include +#endif namespace rajaperf { @@ -606,8 +612,8 @@ long double calcChecksumImpl(Data_getter data, Size_type len, ckahan = z - y; tchk = t; #if 0 // RDH DEBUG - if ( (j % 100) == 0 ) { - getCout() << "j : tchk = " << j << " : " << tchk << std::endl; + if ( (j % 10000000) == 0 ) { + getCout() << "j : tchk = " << std::setprecision(std::numeric_limits::max_digits10) << j << " : " << tchk << std::endl; } #endif } diff --git a/src/common/DataUtils.hpp b/src/common/DataUtils.hpp index b2fd990af..ad1031596 100644 --- a/src/common/DataUtils.hpp +++ b/src/common/DataUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/common/Executor.cpp b/src/common/Executor.cpp index 6a951334a..dc514d990 100644 --- a/src/common/Executor.cpp +++ b/src/common/Executor.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -42,7 +42,11 @@ #include #include +#if defined(_WIN32) +#include +#else #include +#endif namespace rajaperf { @@ -331,9 +335,10 @@ void Executor::setupSuite() #if defined(RAJA_PERFSUITE_USE_CALIPER) KernelBase::setCaliperMgrVariantTuning(vid, tstr, - run_params.getOutputDirName(), + run_params.getOutputFilePrefix(), run_params.getAddToSpotConfig(), - run_params.getAddToCaliperConfig()); + run_params.getAddToCaliperConfig(), + tuning_names_order_map.size()); #endif } @@ -674,6 +679,13 @@ KernelBase* Executor::makeKernel() void Executor::runKernel(KernelBase* kernel, bool print_kernel_name) { +#if defined(RAJA_PERFSUITE_ENABLE_MPI) + int num_ranks = -1; + if ( run_params.showProgress() ) { + MPI_Comm_size(MPI_COMM_WORLD, &num_ranks); + } +#endif + if ( run_params.showProgress() || print_kernel_name) { getCout() << endl << "Run kernel -- " << kernel->getName() << endl; } @@ -702,13 +714,32 @@ void Executor::runKernel(KernelBase* kernel, bool print_kernel_name) { // Check if valid tuning if ( run_params.showProgress() ) { - getCout() << "\t\tRunning " << tuning_name << " tuning"; + const auto default_width = getCout().width(); + size_t tuning_width = std::max(size_t(12), tuning_name.size()); + getCout() << "\t\tRunning " << setw(tuning_width) << tuning_name + << setw(default_width) << " tuning" << flush; } kernel->execute(vid, tune_idx); // Execute kernel if ( run_params.showProgress() ) { - getCout() << " -- " << kernel->getLastTime() << " sec." << endl; + getCout() << " -- " << kernel->getLastTime() << " sec."; + + size_t prec = 20; + const auto default_precision = getCout().precision(); + Checksum_type checksum = kernel->getChecksum(vid, tune_idx); +#if defined(RAJA_PERFSUITE_ENABLE_MPI) + { + Checksum_type checksum_sum = 0; + Allreduce(&checksum, &checksum_sum, 1, MPI_SUM, MPI_COMM_WORLD); + checksum = checksum_sum / num_ranks; + } + getCout() << " checksum_avg "; +#else + getCout() << " checksum "; +#endif + getCout() << setprecision(prec) << checksum + << setprecision(default_precision) << endl; } } else { @@ -834,7 +865,11 @@ void Executor::outputRunData() string out_fprefix; string outdir = recursiveMkdir(run_params.getOutputDirName()); if ( !outdir.empty() ) { +#if defined(_WIN32) + _chdir(outdir.c_str()); +#else chdir(outdir.c_str()); +#endif } out_fprefix = "./" + run_params.getOutputFilePrefix(); diff --git a/src/common/Executor.hpp b/src/common/Executor.hpp index 348fb44b7..5d4a41d16 100644 --- a/src/common/Executor.hpp +++ b/src/common/Executor.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/common/GPUUtils.hpp b/src/common/GPUUtils.hpp index dcf309ec9..3db59bc50 100644 --- a/src/common/GPUUtils.hpp +++ b/src/common/GPUUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -220,6 +220,10 @@ struct global_loop_occupancy_grid_stride_helper static std::string get_name() { return "occgs"; } }; +using forall_helpers = camp::list< + global_direct_helper, + global_loop_occupancy_grid_stride_helper >; + using reducer_helpers = camp::list< global_direct_helper, global_loop_occupancy_grid_stride_helper >; diff --git a/src/common/HipDataUtils.hpp b/src/common/HipDataUtils.hpp index 14c1b7381..9711aca78 100644 --- a/src/common/HipDataUtils.hpp +++ b/src/common/HipDataUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -78,6 +78,30 @@ __global__ void lambda_hip_forall(Index_type ibegin, Index_type iend, Lambda bod } } +/*! + * \brief Grid stride forall hip kernel that runs a lambda. + */ +template < typename Lambda > +__global__ void lambda_hip_forall_grid_stride(Index_type ibegin, Index_type iend, Lambda body) +{ + Index_type i = ibegin + blockIdx.x * blockDim.x + threadIdx.x; + Index_type grid_stride = gridDim.x * blockDim.x; + for ( ; i < iend; i += grid_stride) { + body(i); + } +} +/// +template < size_t block_size, typename Lambda > +__launch_bounds__(block_size) +__global__ void lambda_hip_forall_grid_stride(Index_type ibegin, Index_type iend, Lambda body) +{ + Index_type i = ibegin + blockIdx.x * block_size + threadIdx.x; + Index_type grid_stride = gridDim.x * block_size; + for ( ; i < iend; i += grid_stride) { + body(i); + } +} + /*! * \brief Simple hip kernel that runs a lambda. */ @@ -142,6 +166,7 @@ inline void copyHipData(void* dst_ptr, const void* src_ptr, Size_type len) { hipErrchk( hipMemcpy( dst_ptr, src_ptr, len, hipMemcpyDefault ) ); + hipErrchk( hipDeviceSynchronize( ) ); } /*! diff --git a/src/common/HipGridScan.hpp b/src/common/HipGridScan.hpp index c8c0c6e8b..1f5998f09 100644 --- a/src/common/HipGridScan.hpp +++ b/src/common/HipGridScan.hpp @@ -13,7 +13,8 @@ #include #include -#include +#include +#include namespace rajaperf { @@ -25,9 +26,15 @@ namespace hip // // Define magic numbers for HIP execution // -const size_t warp_size = 64; const size_t max_static_shmem = 65536; +template < size_t warp_size > +struct ballot_type_helper; +template < > +struct ballot_type_helper<32> { using type = unsigned; }; +template < > +struct ballot_type_helper<64> { using type = unsigned long long; }; + // perform a grid scan on val and returns the result at each thread // in exclusive and inclusive, note that val is used as scratch space @@ -36,12 +43,14 @@ struct GridScan { using BlockScan = rocprim::block_scan; //, rocprim::block_scan_algorithm::reduce_then_scan>; using BlockExchange = rocprim::block_exchange; - using WarpReduce = rocprim::warp_reduce; + using WarpReduce32 = rocprim::warp_reduce; + using WarpReduce64 = rocprim::warp_reduce; union SharedStorage { typename BlockScan::storage_type block_scan_storage; typename BlockExchange::storage_type block_exchange_storage; - typename WarpReduce::storage_type warp_reduce_storage; + typename WarpReduce32::storage_type warp_reduce_storage32; + typename WarpReduce64::storage_type warp_reduce_storage64; volatile DataType prev_grid_count; }; @@ -59,10 +68,6 @@ struct GridScan const bool first_block = (block_id == 0); const bool last_block = (block_id == static_cast(gridDim.x-1)); const bool last_thread = (threadIdx.x == block_size-1); - const bool last_warp = (threadIdx.x >= block_size - warp_size); - const int warp_index = (threadIdx.x % warp_size); - const unsigned long long warp_index_mask = (1ull << warp_index); - const unsigned long long warp_index_mask_right = warp_index_mask | (warp_index_mask - 1ull); __shared__ SharedStorage s_temp_storage; @@ -99,99 +104,135 @@ struct GridScan atomicExch(&block_readys[block_id], 1u); // write block_counts is ready } - // get prev_grid_count using last warp in block - if (last_warp) { - - DataType prev_grid_count = 0; - - // accumulate previous block counts into registers of warp - - int prev_block_base_id = block_id - warp_size; - - unsigned prev_block_ready = 0u; - unsigned long long prev_blocks_ready_ballot = 0ull; - unsigned long long prev_grids_ready_ballot = 0ull; - - // accumulate full warp worths of block counts - // stop if run out of full warps of a grid count is ready - while (prev_block_base_id >= 0) { + DataType prev_grid_count{}; + if (warpSize == 64) { + prev_grid_count = get_previous_grid_count<64, WarpReduce64>( + block_id, last_block, last_thread, + s_temp_storage.warp_reduce_storage64, s_temp_storage.prev_grid_count, + inclusive, block_counts, grid_counts, block_readys); + } else if (warpSize == 32) { + prev_grid_count = get_previous_grid_count<32, WarpReduce32>( + block_id, last_block, last_thread, + s_temp_storage.warp_reduce_storage32, s_temp_storage.prev_grid_count, + inclusive, block_counts, grid_counts, block_readys); + } else { + assert(warpSize == 32 || warpSize == 64); + } - const int prev_block_id = prev_block_base_id + warp_index; + for (size_t ti = 0; ti < items_per_thread; ++ti) { + exclusive[ti] = prev_grid_count + exclusive[ti]; + inclusive[ti] = prev_grid_count + inclusive[ti]; + } + } + } - // ensure previous block_counts are ready - do { - prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); + template < size_t warp_size, typename WarpReduce > + __device__ + static DataType get_previous_grid_count(const int block_id, + const bool last_block, + const bool last_thread, + typename WarpReduce::storage_type& s_warp_reduce_storage, + volatile DataType& s_prev_grid_count, + DataType (&inclusive)[items_per_thread], + DataType* block_counts, + DataType* grid_counts, + unsigned* block_readys) + { + using ballot_type = typename ballot_type_helper::type; + static_assert(warp_size == sizeof(ballot_type)*CHAR_BIT, ""); - prev_blocks_ready_ballot = __ballot(prev_block_ready >= 1u); + // get prev_grid_count using last warp in block + const bool last_warp = (threadIdx.x >= block_size - warp_size); + if (last_warp) { - } while (prev_blocks_ready_ballot != 0xffffffffffffffffull); + const int warp_index = (threadIdx.x % warp_size); + const ballot_type warp_index_mask = (ballot_type(1) << warp_index); + const ballot_type warp_index_mask_right = warp_index_mask | (warp_index_mask - ballot_type(1)); - prev_grids_ready_ballot = __ballot(prev_block_ready == 2u); + DataType prev_grid_count = 0; - if (prev_grids_ready_ballot != 0ull) { - break; - } + // accumulate previous block counts into registers of warp - __threadfence(); // ensure block_counts or grid_counts ready (acquire) + int prev_block_base_id = block_id - warp_size; - // accumulate block_counts for prev_block_id - prev_grid_count += block_counts[prev_block_id]; + unsigned prev_block_ready = 0u; - prev_block_ready = 0u; + ballot_type prev_blocks_ready_ballot = ballot_type(0); + ballot_type prev_grids_ready_ballot = ballot_type(0); - prev_block_base_id -= warp_size; - } + // accumulate full warp worths of block counts + // stop if run out of full warps of a grid count is ready + while (prev_block_base_id >= 0) { const int prev_block_id = prev_block_base_id + warp_index; // ensure previous block_counts are ready - // this checks that block counts is ready for all blocks above - // the highest grid count that is ready - while (~prev_blocks_ready_ballot >= prev_grids_ready_ballot) { - - if (prev_block_id >= 0) { - prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); - } + do { + prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); prev_blocks_ready_ballot = __ballot(prev_block_ready >= 1u); - prev_grids_ready_ballot = __ballot(prev_block_ready == 2u); + + } while (prev_blocks_ready_ballot != ~ballot_type(0)); + + prev_grids_ready_ballot = __ballot(prev_block_ready == 2u); + + if (prev_grids_ready_ballot != ballot_type(0)) { + break; } + __threadfence(); // ensure block_counts or grid_counts ready (acquire) - // read one grid_count from a block with id grid_count_ready_id - // and read the block_counts from blocks with higher ids. - if (warp_index_mask > prev_grids_ready_ballot) { - // accumulate block_counts for prev_block_id - prev_grid_count += block_counts[prev_block_id]; - } else if (prev_grids_ready_ballot == (prev_grids_ready_ballot & warp_index_mask_right)) { - // accumulate grid_count for grid_count_ready_id - prev_grid_count += grid_counts[prev_block_id]; - } + // accumulate block_counts for prev_block_id + prev_grid_count += block_counts[prev_block_id]; + prev_block_ready = 0u; - WarpReduce().reduce(prev_grid_count, prev_grid_count, s_temp_storage.warp_reduce_storage); - prev_grid_count = __shfl(prev_grid_count, 0, warp_size); // broadcast output to all threads in warp + prev_block_base_id -= warp_size; + } - if (last_thread) { + const int prev_block_id = prev_block_base_id + warp_index; - if (!last_block) { - grid_counts[block_id] = prev_grid_count + inclusive[items_per_thread-1]; // write inclusive scan result for grid through block - __threadfence(); // ensure grid_counts ready (release) - atomicExch(&block_readys[block_id], 2u); // write grid_counts is ready - } + // ensure previous block_counts are ready + // this checks that block counts is ready for all blocks above + // the highest grid count that is ready + while (~prev_blocks_ready_ballot >= prev_grids_ready_ballot) { - s_temp_storage.prev_grid_count = prev_grid_count; + if (prev_block_id >= 0) { + prev_block_ready = atomicCAS(&block_readys[prev_block_id], 11u, 11u); } + + prev_blocks_ready_ballot = __ballot(prev_block_ready >= 1u); + prev_grids_ready_ballot = __ballot(prev_block_ready == 2u); + } + __threadfence(); // ensure block_counts or grid_counts ready (acquire) + + // read one grid_count from a block with id grid_count_ready_id + // and read the block_counts from blocks with higher ids. + if (warp_index_mask > prev_grids_ready_ballot) { + // accumulate block_counts for prev_block_id + prev_grid_count += block_counts[prev_block_id]; + } else if (prev_grids_ready_ballot == (prev_grids_ready_ballot & warp_index_mask_right)) { + // accumulate grid_count for grid_count_ready_id + prev_grid_count += grid_counts[prev_block_id]; } - __syncthreads(); - DataType prev_grid_count = s_temp_storage.prev_grid_count; + WarpReduce().reduce(prev_grid_count, prev_grid_count, s_warp_reduce_storage); + prev_grid_count = __shfl(prev_grid_count, 0, warp_size); // broadcast output to all threads in warp - for (size_t ti = 0; ti < items_per_thread; ++ti) { - exclusive[ti] = prev_grid_count + exclusive[ti]; - inclusive[ti] = prev_grid_count + inclusive[ti]; + if (last_thread) { + + if (!last_block) { + grid_counts[block_id] = prev_grid_count + inclusive[items_per_thread-1]; // write inclusive scan result for grid through block + __threadfence(); // ensure grid_counts ready (release) + atomicExch(&block_readys[block_id], 2u); // write grid_counts is ready + } + + s_prev_grid_count = prev_grid_count; } } + + __syncthreads(); + return s_prev_grid_count; } }; diff --git a/src/common/KernelBase.cpp b/src/common/KernelBase.cpp index 679001df5..754c8ee8c 100644 --- a/src/common/KernelBase.cpp +++ b/src/common/KernelBase.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -15,6 +15,7 @@ #include #include #include +#include namespace rajaperf { @@ -22,6 +23,7 @@ KernelBase::KernelBase(KernelID kid, const RunParams& params) : run_params(params) #if defined(RAJA_ENABLE_TARGET_OPENMP) , did(getOpenMPTargetDevice()) + , hid(getOpenMPTargetHost()) #endif { kernel_id = kid; @@ -36,6 +38,8 @@ KernelBase::KernelBase(KernelID kid, const RunParams& params) uses_feature[fid] = false; } + complexity = Complexity::NumComplexities; + its_per_rep = -1; kernels_per_rep = -1; bytes_read_per_rep = -1; @@ -99,6 +103,8 @@ KernelBase::KernelBase(KernelID kid, const RunParams& params) CALI_ATTR_AGGREGATABLE | CALI_ATTR_SKIP_EVENTS); } + Complexity_attr = cali_create_attribute("Complexity", CALI_TYPE_STRING, + CALI_ATTR_SKIP_EVENTS); #endif } @@ -232,6 +238,15 @@ Size_type KernelBase::getDataAlignment() const return run_params.getDataAlignment(); } +Size_type KernelBase::getSizePaddedToDataAlignment(Size_type size) const +{ + Size_type misalignment = size % run_params.getDataAlignment(); + if (misalignment) { + size += run_params.getDataAlignment() - misalignment; + } + return size; +} + DataSpace KernelBase::getDataSpace(VariantID vid) const { switch ( vid ) { @@ -496,6 +511,7 @@ void KernelBase::print(std::ostream& os) const os << "\t\t\t\t" << getFeatureName(static_cast(j)) << " : " << uses_feature[j] << std::endl; } + os << "\t\t\t algorithmic_complexity = " << getComplexityName(complexity) << std::endl; os << "\t\t\t variant_tuning_names: " << std::endl; for (unsigned j = 0; j < NumVariants; ++j) { os << "\t\t\t\t" << getVariantName(static_cast(j)) @@ -574,6 +590,7 @@ void KernelBase::doOnceCaliMetaBegin(VariantID vid, size_t tune_idx) std::string feature = getFeatureName(fid); cali_set_int(Feature_attrs[feature], usesFeature(fid)); } + cali_set_string(Complexity_attr, getComplexityName(getComplexity()).c_str()); } } @@ -586,9 +603,10 @@ void KernelBase::doOnceCaliMetaEnd(VariantID vid, size_t tune_idx) void KernelBase::setCaliperMgrVariantTuning(VariantID vid, std::string tstr, - const std::string& outdir, + const std::string& outfile, const std::string& addToSpotConfig, - const std::string& addToCaliConfig) + const std::string& addToCaliConfig, + const int num_variants_tunings) { static bool ran_spot_config_check = false; bool config_ok = true; @@ -624,8 +642,9 @@ void KernelBase::setCaliperMgrVariantTuning(VariantID vid, { "expr": "any(max#Reduction)", "as": "FeatureReduction" }, { "expr": "any(max#Atomic)", "as": "FeatureAtomic" }, { "expr": "any(max#View)", "as": "FeatureView" }, - { "expr": "any(max#MPI)", "as": "FeatureMPI" } - ] + { "expr": "any(max#MPI)", "as": "FeatureMPI" }, + ], + "group by": ["Complexity"], }, { "level" : "cross", @@ -650,27 +669,72 @@ void KernelBase::setCaliperMgrVariantTuning(VariantID vid, { "expr": "any(any#max#Reduction)", "as": "FeatureReduction" }, { "expr": "any(any#max#Atomic)", "as": "FeatureAtomic" }, { "expr": "any(any#max#View)", "as": "FeatureView" }, - { "expr": "any(any#max#MPI)", "as": "FeatureMPI" } - ] + { "expr": "any(any#max#MPI)", "as": "FeatureMPI" }, + ], + "group by": ["Complexity"], } ] } )json"; - // Skip check if both empty - if ((!addToSpotConfig.empty() || !addToCaliConfig.empty()) && !ran_spot_config_check) { + // Update these later if CALI_CONFIG present + std::string updatedSpotConfig = addToSpotConfig; + std::string updatedCaliConfig = addToCaliConfig; + + // Parse CALI_CONFIG if provided + const char* cali_config_env = std::getenv("DISABLED_CALI_CONFIG"); + if (cali_config_env) { + std::string cali_config(cali_config_env); + std::cout << "CALI_CONFIG: " << cali_config << std::endl; + + // Match spot() config + std::regex pattern(R"(spot\(([^)]*)\))"); + std::smatch match; + if (std::regex_search(cali_config, match, pattern)) { + std::string spot_config = match[1]; + std::regex file_pattern(R"(\boutput=[^,)]*\.cali)"); + + // Remove cali file from config + std::string withoutFile = std::regex_replace(spot_config, file_pattern, ""); + std::smatch file_match; + if (std::regex_search(spot_config, file_match, file_pattern)) { + std::cout << "WARNING: Removing requested output name from config: '" + << file_match[0] + << "'. Output cali file name will be automatically generated." + << std::endl; + } + + updatedSpotConfig += withoutFile; + } + + // Parameters outside the spot config directly added to cali config + std::string remaining_config = std::regex_replace(cali_config, pattern, ""); + updatedCaliConfig += remaining_config; + + auto trimCommas = [](std::string &str) { + if (!str.empty() && str.front() == ',') + str.erase(0, 1); + if (!str.empty() && str.back() == ',') + str.pop_back(); + }; + trimCommas(updatedCaliConfig); + trimCommas(updatedSpotConfig); + } + + // Caliper configuration check. Skip check if both empty + if ((!updatedSpotConfig.empty() || !updatedCaliConfig.empty()) && !ran_spot_config_check) { cali::ConfigManager cm; std::string check_profile; // If both not empty - if (!addToSpotConfig.empty() && !addToCaliConfig.empty()) { - check_profile = "spot(" + addToSpotConfig + ")," + addToCaliConfig; + if (!updatedSpotConfig.empty() && !updatedCaliConfig.empty()) { + check_profile = "spot(" + updatedSpotConfig + ")," + updatedCaliConfig; } - else if (!addToSpotConfig.empty()) { - check_profile = "spot(" + addToSpotConfig + ")"; + else if (!updatedSpotConfig.empty()) { + check_profile = "spot(" + updatedSpotConfig + ")"; } - // if !addToCaliConfig.empty() + // if !updatedCaliConfig.empty() else { - check_profile = addToCaliConfig; + check_profile = updatedCaliConfig; } std::string msg = cm.check(check_profile.c_str()); @@ -684,21 +748,28 @@ void KernelBase::setCaliperMgrVariantTuning(VariantID vid, std::cout << "Caliper ran Spot config check\n"; } + // Setup variant/tuning caliper config if check passes if(config_ok) { cali::ConfigManager m; mgr[vid][tstr] = m; - std::string od("./"); - if (outdir.size()) { - od = outdir + "/"; - } std::string vstr = getVariantName(vid); - std::string profile = "spot(output=" + od + vstr + "-" + tstr + ".cali"; - if(!addToSpotConfig.empty()) { - profile += "," + addToSpotConfig; + std::string profile; + // If --outfile not provided, give generic name + if (outfile == "RAJAPerf") { + profile = "spot(output=" + vstr + "-" + tstr + ".cali"; + } + else { + // Ensure cali files for each variant/tuning are not same file name + if (num_variants_tunings > 1) + throw std::runtime_error("Error: Cannot use '--outfile' with Caliper if running multiple variants/tunings. Must be running single variant & tuning."); + profile = "spot(output=" + outfile + ".cali"; + } + if(!updatedSpotConfig.empty()) { + profile += "," + updatedSpotConfig; } profile += ")"; - if (!addToCaliConfig.empty()) { - profile += "," + addToCaliConfig; + if (!updatedCaliConfig.empty()) { + profile += "," + updatedCaliConfig; } std::cout << "Profile: " << profile << std::endl; mgr[vid][tstr].add_option_spec(kernel_info_spec); diff --git a/src/common/KernelBase.hpp b/src/common/KernelBase.hpp index 8c7069f3c..e109a317e 100644 --- a/src/common/KernelBase.hpp +++ b/src/common/KernelBase.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -26,7 +26,7 @@ #include "RAJA/policy/hip/raja_hiperrchk.hpp" #endif #if defined(RAJA_ENABLE_SYCL) -#include +#include "RAJA/util/sycl_compat.hpp" #endif #include "camp/resource.hpp" @@ -107,6 +107,7 @@ class KernelBase void setBytesAtomicModifyWrittenPerRep(Index_type bytes) { bytes_atomic_modify_written_per_rep = bytes;} void setFLOPsPerRep(Index_type FLOPs) { FLOPs_per_rep = FLOPs; } void setBlockSize(Index_type size) { kernel_block_size = size; } + void setComplexity(Complexity ac) { complexity = ac; } void setUsesFeature(FeatureID fid) { uses_feature[fid] = true; } @@ -163,6 +164,7 @@ class KernelBase Index_type getBytesAtomicModifyWrittenPerRep() const { return bytes_atomic_modify_written_per_rep; } Index_type getFLOPsPerRep() const { return FLOPs_per_rep; } double getBlockSize() const { return kernel_block_size; } + Complexity getComplexity() const { return complexity; }; Index_type getTargetProblemSize() const; Index_type getRunReps() const; @@ -236,6 +238,11 @@ class KernelBase void execute(VariantID vid, size_t tune_idx); + camp::resources::Host getHostResource() + { + return camp::resources::Host::get_default(); + } + #if defined(RAJA_ENABLE_CUDA) camp::resources::Cuda getCudaResource() { @@ -245,6 +252,7 @@ class KernelBase return camp::resources::Cuda::get_default(); } #endif + #if defined(RAJA_ENABLE_HIP) camp::resources::Hip getHipResource() { @@ -254,6 +262,7 @@ class KernelBase return camp::resources::Hip::get_default(); } #endif + #if defined(RAJA_ENABLE_SYCL) camp::resources::Sycl getSyclResource() { @@ -266,6 +275,13 @@ class KernelBase } #endif +#if defined(RAJA_ENABLE_TARGET_OPENMP) + camp::resources::Omp getOmpTargetResource() + { + return camp::resources::Omp::get_default(); + } +#endif + void synchronize() { #if defined(RAJA_ENABLE_CUDA) @@ -292,6 +308,13 @@ class KernelBase } Size_type getDataAlignment() const; + Size_type getSizePaddedToDataAlignment(Size_type size) const; + + template + T offsetPointer(T ptr, Size_type size) const + { + return (T)(((char*)ptr) + size); + } DataSpace getDataSpace(VariantID vid) const; DataSpace getReductionDataSpace(VariantID vid) const; @@ -347,6 +370,19 @@ class KernelBase ptr, len, getDataAlignment()); } + template + void allocAndCopyHostData(T*& dst_ptr, + const T* src_ptr, + Size_type len, + VariantID vid) + { + rajaperf::allocData(getDataSpace(vid), + dst_ptr, len, getDataAlignment()); + + rajaperf::copyData(getDataSpace(vid), + dst_ptr, DataSpace::Host, src_ptr, len); + } + template void allocAndInitData(T*& ptr, Size_type len, VariantID vid) { @@ -361,6 +397,13 @@ class KernelBase ptr, len, getDataAlignment(), val); } + template + void allocAndInitDataConst(T*& ptr, Size_type len, T val, DataSpace dataSpace) + { + rajaperf::allocAndInitDataConst(dataSpace, + ptr, len, getDataAlignment(), val); + } + template void allocAndInitDataRandSign(T*& ptr, Size_type len, VariantID vid) { @@ -375,6 +418,40 @@ class KernelBase ptr, len, getDataAlignment()); } + template + void allocAndInitDataRandValue(T*& ptr, Size_type len, DataSpace dataSpace) + { + rajaperf::allocAndInitDataRandValue(dataSpace, + ptr, len, getDataAlignment()); + } + + template + rajaperf::AutoDataMover allocDataForInit(T*& ptr, Size_type len, VariantID vid) + { + DataSpace ds = getDataSpace(vid); + DataSpace hds = rajaperf::hostCopyDataSpace(ds); + rajaperf::allocData(hds, ptr, len, getDataAlignment()); + return {ds, hds, ptr, len, getDataAlignment()}; + } + + template + rajaperf::AutoDataMover allocAndInitDataForInit(T*& ptr, Size_type len, VariantID vid) + { + DataSpace ds = getDataSpace(vid); + DataSpace hds = rajaperf::hostCopyDataSpace(ds); + rajaperf::allocAndInitData(hds, ptr, len, getDataAlignment()); + return {ds, hds, ptr, len, getDataAlignment()}; + } + + template + rajaperf::AutoDataMover allocAndInitDataConstForInit(T*& ptr, Size_type len, T val, VariantID vid) + { + DataSpace ds = getDataSpace(vid); + DataSpace hds = rajaperf::hostCopyDataSpace(ds); + rajaperf::allocAndInitDataConst(hds, ptr, len, getDataAlignment(), val); + return {ds, hds, ptr, len, getDataAlignment()}; + } + template rajaperf::AutoDataMover scopedMoveData(T*& ptr, Size_type len, VariantID vid) { @@ -492,9 +569,10 @@ class KernelBase void doOnceCaliMetaEnd(VariantID vid, size_t tune_idx); static void setCaliperMgrVariantTuning(VariantID vid, std::string tstr, - const std::string& outdir, + const std::string& outfile, const std::string& addToSpotConfig, - const std::string& addToCaliConfig); + const std::string& addToCaliConfig, + const int num_variants_tunings); static void setCaliperMgrStart(VariantID vid, std::string tstr) { mgr[vid][tstr].start(); } static void setCaliperMgrStop(VariantID vid, std::string tstr) { mgr[vid][tstr].stop(); } @@ -528,6 +606,7 @@ class KernelBase #if defined(RAJA_ENABLE_TARGET_OPENMP) int did; + int hid; #endif private: @@ -548,6 +627,8 @@ class KernelBase bool uses_feature[NumFeatures]; + Complexity complexity; + std::vector variant_tuning_names[NumVariants]; // @@ -582,6 +663,7 @@ class KernelBase cali_id_t Flops_Rep_attr; cali_id_t BlockSize_attr; std::map Feature_attrs; + cali_id_t Complexity_attr; // we need a Caliper Manager object per variant diff --git a/src/common/KokkosViewUtils.hpp b/src/common/KokkosViewUtils.hpp index 65a700030..0384b2642 100644 --- a/src/common/KokkosViewUtils.hpp +++ b/src/common/KokkosViewUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/common/OpenMPTargetDataUtils.hpp b/src/common/OpenMPTargetDataUtils.hpp index b6875c7f7..14b452ebd 100644 --- a/src/common/OpenMPTargetDataUtils.hpp +++ b/src/common/OpenMPTargetDataUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/common/OutputUtils.cpp b/src/common/OutputUtils.cpp index fbd7f3653..55aa62d36 100644 --- a/src/common/OutputUtils.cpp +++ b/src/common/OutputUtils.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -19,8 +19,12 @@ #include #include +#if defined(_WIN32) +#include "WindowsTypes.hpp" +#else #include #include +#endif namespace rajaperf @@ -102,7 +106,11 @@ std::string recursiveMkdir(const std::string& in_path) * path before sliding along path_buf. */ if ( !outpath.empty() && pos < 0) { +#if defined(_WIN32) + if (_mkdir(path_buf) != 0) { +#else if (mkdir(path_buf, mode) != 0) { +#endif getCout() << " Cannot create directory = " << path_buf << std::endl; outpath = std::string(); @@ -127,7 +135,11 @@ std::string recursiveMkdir(const std::string& in_path) /* make directory if not at end of path */ if (pos < length) { +#if defined(_WIN32) + if (_mkdir(path_buf) != 0) { +#else if (mkdir(path_buf, mode) != 0) { +#endif getCout() << " Cannot create directory = " << path_buf << std::endl; outpath = std::string(); diff --git a/src/common/OutputUtils.hpp b/src/common/OutputUtils.hpp index 197721133..5ef4116cb 100644 --- a/src/common/OutputUtils.hpp +++ b/src/common/OutputUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/common/RAJAPerfSuite.cpp b/src/common/RAJAPerfSuite.cpp index c55dd83bd..b8a30b7b9 100644 --- a/src/common/RAJAPerfSuite.cpp +++ b/src/common/RAJAPerfSuite.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -21,6 +21,7 @@ #include "basic/COPY8.hpp" #include "basic/DAXPY.hpp" #include "basic/DAXPY_ATOMIC.hpp" +#include "basic/EMPTY.hpp" #include "basic/IF_QUAD.hpp" #include "basic/INDEXLIST.hpp" #include "basic/INDEXLIST_3LOOP.hpp" @@ -86,6 +87,7 @@ #include "apps/DIFFUSION3DPA.hpp" #include "apps/EDGE3D.hpp" #include "apps/ENERGY.hpp" +#include "apps/FEMSWEEP.hpp" #include "apps/FIR.hpp" #include "apps/LTIMES.hpp" #include "apps/LTIMES_NOVIEW.hpp" @@ -175,6 +177,7 @@ static const std::string KernelNames [] = std::string("Basic_COPY8"), std::string("Basic_DAXPY"), std::string("Basic_DAXPY_ATOMIC"), + std::string("Basic_EMPTY"), std::string("Basic_IF_QUAD"), std::string("Basic_INDEXLIST"), std::string("Basic_INDEXLIST_3LOOP"), @@ -240,6 +243,7 @@ static const std::string KernelNames [] = std::string("Apps_DIFFUSION3DPA"), std::string("Apps_EDGE3D"), std::string("Apps_ENERGY"), + std::string("Apps_FEMSWEEP"), std::string("Apps_FIR"), std::string("Apps_LTIMES"), std::string("Apps_LTIMES_NOVIEW"), @@ -302,8 +306,8 @@ static const std::string VariantNames [] = std::string("Lambda_OpenMP"), std::string("RAJA_OpenMP"), - std::string("Base_OMPTarget"), - std::string("RAJA_OMPTarget"), + std::string("Base_OpenMPTarget"), + std::string("RAJA_OpenMPTarget"), std::string("Base_CUDA"), std::string("Lambda_CUDA"), @@ -360,6 +364,33 @@ static const std::string FeatureNames [] = }; // END FeatureNames +/*! + ******************************************************************************* + * + * \brief Array of names for each COMPLEXITY used in suite. + * + * IMPORTANT: This is only modified when a new complexity is used in suite. + * + * IT MUST BE KEPT CONSISTENT (CORRESPONDING ONE-TO-ONE) WITH + * ITEMS IN THE Complexity enum IN HEADER FILE!!! + * + ******************************************************************************* + */ +static const std::string ComplexityNames [] = +{ + std::string("N"), + + std::string("NlogN"), + + std::string("N^(3/2)"), + + std::string("N^(2/3)"), + + std::string("Unknown Complexity") // Keep this at the end and DO NOT remove.... + +}; // END ComplexityNames + + /*! ******************************************************************************* * @@ -615,6 +646,19 @@ const std::string& getFeatureName(FeatureID fid) } +/* + ******************************************************************************* + * + * Return complexity name associated with Complexity enum value. + * + ******************************************************************************* + */ +const std::string& getComplexityName(Complexity ac) +{ + return ComplexityNames[static_cast(ac)]; +} + + /* ******************************************************************************* * @@ -771,6 +815,10 @@ KernelBase* getKernelObject(KernelID kid, kernel = new basic::DAXPY_ATOMIC(run_params); break; } + case Basic_EMPTY : { + kernel = new basic::EMPTY(run_params); + break; + } case Basic_IF_QUAD : { kernel = new basic::IF_QUAD(run_params); break; @@ -984,6 +1032,10 @@ KernelBase* getKernelObject(KernelID kid, kernel = new apps::ENERGY(run_params); break; } + case Apps_FEMSWEEP : { + kernel = new apps::FEMSWEEP(run_params); + break; + } case Apps_FIR : { kernel = new apps::FIR(run_params); break; diff --git a/src/common/RAJAPerfSuite.hpp b/src/common/RAJAPerfSuite.hpp index 35a400b32..3e7c69146 100644 --- a/src/common/RAJAPerfSuite.hpp +++ b/src/common/RAJAPerfSuite.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -7,7 +7,7 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /// -/// Types and methods for managing Suite kernels, variants, features, etc.. +/// Types and methods for managing Suite kernels, variants, features, complexities, etc.. /// #ifndef RAJAPerfSuite_HPP @@ -81,6 +81,7 @@ enum KernelID { Basic_COPY8, Basic_DAXPY, Basic_DAXPY_ATOMIC, + Basic_EMPTY, Basic_IF_QUAD, Basic_INDEXLIST, Basic_INDEXLIST_3LOOP, @@ -146,6 +147,7 @@ enum KernelID { Apps_DIFFUSION3DPA, Apps_EDGE3D, Apps_ENERGY, + Apps_FEMSWEEP, Apps_FIR, Apps_LTIMES, Apps_LTIMES_NOVIEW, @@ -264,6 +266,33 @@ enum FeatureID { }; +/*! + ******************************************************************************* + * + * \brief Enumeration defining unique id for each algorithmic COMPLEXITY used in suite. + * + * IMPORTANT: This is only modified when a new complexity is used in suite. + * + * IT MUST BE KEPT CONSISTENT (CORRESPONDING ONE-TO-ONE) WITH + * ITEMS IN THE ComplexityNames ARRAY IN IMPLEMENTATION FILE!!! + * + ******************************************************************************* + */ +enum struct Complexity { + + N = 0, + + N_logN, + + N_to_the_three_halves, + + N_to_the_two_thirds, + + NumComplexities // Keep this one last and NEVER comment out (!!) + +}; + + /*! ******************************************************************************* * @@ -386,6 +415,15 @@ bool isVariantGPU(VariantID vid); */ const std::string& getFeatureName(FeatureID vid); +/*! + ******************************************************************************* + * + * \brief Return algorithmic complexity name associated with Complexity enum value. + * + ******************************************************************************* + */ +const std::string& getComplexityName(Complexity ac); + /*! ******************************************************************************* * diff --git a/src/common/RPTypes.hpp b/src/common/RPTypes.hpp index 9ec2566eb..799f479cb 100644 --- a/src/common/RPTypes.hpp +++ b/src/common/RPTypes.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/common/RunParams.cpp b/src/common/RunParams.cpp index 1665783a9..44793e9f3 100644 --- a/src/common/RunParams.cpp +++ b/src/common/RunParams.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -46,6 +46,7 @@ RunParams::RunParams(int argc, char** argv) array_of_ptrs_array_size(ARRAY_OF_PTRS_MAX_ARRAY_SIZE), halo_width(1), halo_num_vars(3), + enable_custom_scan(true), gpu_stream(1), gpu_block_sizes(), atomic_replications(), @@ -143,6 +144,8 @@ void RunParams::print(std::ostream& str) const str << "\n halo_width = " << halo_width; str << "\n halo_num_vars = " << halo_num_vars; + str << "\n custom_scan = " << (enable_custom_scan ? "enabled" : "disabled"); + str << "\n gpu stream = " << ((gpu_stream == 0) ? "0" : "RAJA default"); str << "\n gpu_block_sizes = "; for (size_t j = 0; j < gpu_block_sizes.size(); ++j) { @@ -353,6 +356,24 @@ void RunParams::parseCommandLineOptions(int argc, char** argv) printKernelFeatures(getCout()); input_state = InfoRequest; + } else if ( opt == std::string("--print-complexities") || + opt == std::string("-pc") ) { + + printComplexityNames(getCout()); + input_state = InfoRequest; + + } else if ( opt == std::string("--print-complexity-kernels") || + opt == std::string("-pck") ) { + + printComplexityKernels(getCout()); + input_state = InfoRequest; + + } else if ( opt == std::string("--print-kernel-complexities") || + opt == std::string("-pkc") ) { + + printKernelComplexities(getCout()); + input_state = InfoRequest; + } else if ( opt == std::string("--npasses") ) { i++; @@ -659,6 +680,14 @@ void RunParams::parseCommandLineOptions(int argc, char** argv) input_state = BadInput; } + } else if ( opt == std::string("--enable_custom_scan") ) { + + enable_custom_scan = true; + + } else if ( opt == std::string("--disable_custom_scan") ) { + + enable_custom_scan = false; + } else if ( opt == std::string("--gpu_stream_0") ) { gpu_stream = 0; @@ -1273,6 +1302,14 @@ void RunParams::printHelpMessage(std::ostream& str) const str << "\t --print-kernel-features, -pkf \n" << "\t (print names of features used by each kernel)\n\n"; + str << "\t --print-complexities, -pc (print names of algorithmic complexities exercised in Suite)\n\n"; + + str << "\t --print-complexity-kernels, -pck \n" + << "\t (print names of kernels that have each complexity)\n\n"; + + str << "\t --print-kernel-complexities, -pkc \n" + << "\t (print the name of the complexity of each kernel)\n\n"; + str << "\t --print-data-spaces, -pds (print names of data spaces)\n\n"; str << "\t Options for selecting output details....\n" @@ -1370,6 +1407,11 @@ void RunParams::printHelpMessage(std::ostream& str) const << "\t\t --exclude-features Forall (exclude all kernels that use RAJA forall)\n" << "\t\t -ef Forall Reduction (exclude all kernels that use RAJA forall or RAJA reductions)\n\n"; + str << "\t --enable_custom_scan [default is to enable tunings with RAJAPerf custom scan]\n" + << "\t (when this option is given, enable custom scan tunings HIP and CUDA kernel variants)\n\n"; + str << "\t --disable_custom_scan [default is to enable tunings with RAJAPerf custom scan]\n" + << "\t (when this option is given, disable custom scan tunings HIP and CUDA kernel variants)\n\n"; + str << "\t Options for selecting run size....\n" << "\t ==================================\n\n";; @@ -1774,6 +1816,51 @@ void RunParams::printKernelFeatures(std::ostream& str) const str.flush(); } +void RunParams::printComplexityNames(std::ostream& str) const +{ + str << "\nAvailable complexities:"; + str << "\n-------------------\n"; + for (int ac = 0; ac < int(Complexity::NumComplexities); ++ac) { + str << getComplexityName(static_cast(ac)) << std::endl; + } + str.flush(); +} + +void RunParams::printComplexityKernels(std::ostream& str) const +{ + str << "\nAvailable complexities and kernels that use each:"; + str << "\n---------------------------------------------\n"; + for (int ac = 0; ac < int(Complexity::NumComplexities); ++ac) { + Complexity tac = static_cast(ac); + str << getComplexityName(tac) << std::endl; + for (int kid = 0; kid < NumKernels; ++kid) { + KernelID tkid = static_cast(kid); + KernelBase* kern = getKernelObject(tkid, *this); + if ( kern->getComplexity() == tac ) { + str << "\t" << getFullKernelName(tkid) << std::endl; + } + delete kern; + } // loop over kernels + str << std::endl; + } // loop over complexities + str.flush(); +} + +void RunParams::printKernelComplexities(std::ostream& str) const +{ + str << "\nAvailable kernels and complexities each uses:"; + str << "\n-----------------------------------------\n"; + for (int kid = 0; kid < NumKernels; ++kid) { + KernelID tkid = static_cast(kid); + str << getFullKernelName(tkid) << std::endl; + KernelBase* kern = getKernelObject(tkid, *this); + Complexity tac = kern->getComplexity(); + str << "\t" << getComplexityName(tac) << std::endl; + delete kern; + } // loop over kernels + str.flush(); +} + /* ******************************************************************************* * @@ -2339,7 +2426,7 @@ void RunParams::processVariantInput() // Assemble invalid input items for output message. if ( !found_it ) { - invalid_variant_input.push_back(variant_input[it]); + invalid_variant_input.push_back(variant_input[it]); } } diff --git a/src/common/RunParams.hpp b/src/common/RunParams.hpp index 46cd78f4f..4ba715964 100644 --- a/src/common/RunParams.hpp +++ b/src/common/RunParams.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -170,6 +170,8 @@ class RunParams { Index_type getHaloWidth() const { return halo_width; } Index_type getHaloNumVars() const { return halo_num_vars; } + bool getEnableCustomScan() const { return enable_custom_scan; } + int getGPUStream() const { return gpu_stream; } size_t numValidGPUBlockSize() const { return gpu_block_sizes.size(); } bool validGPUBlockSize(size_t block_size) const @@ -280,6 +282,9 @@ class RunParams { void printFeatureNames(std::ostream& str) const; void printFeatureKernels(std::ostream& str) const; void printKernelFeatures(std::ostream& str) const; + void printComplexityNames(std::ostream& str) const; + void printComplexityKernels(std::ostream& str) const; + void printKernelComplexities(std::ostream& str) const; void processNpassesCombinerInput(); void processKernelInput(); @@ -315,6 +320,8 @@ class RunParams { Index_type halo_width; /*!< halo width used in halo kernels (input option) */ Index_type halo_num_vars; /*!< num vars used in halo kernels (input option) */ + bool enable_custom_scan; /*!< enable tunings using custom scan implementations (input option) */ + int gpu_stream; /*!< 0 -> use stream 0; anything else -> use raja default stream */ std::vector gpu_block_sizes; /*!< Block sizes for gpu tunings to run (input option) */ std::vector atomic_replications; /*!< Atomic replications for gpu tunings to run (input option) */ diff --git a/src/common/SyclDataUtils.hpp b/src/common/SyclDataUtils.hpp index e426476c4..90902ff75 100644 --- a/src/common/SyclDataUtils.hpp +++ b/src/common/SyclDataUtils.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -20,7 +20,7 @@ #include "common/GPUUtils.hpp" -#include +#include "RAJA/util/sycl_compat.hpp" namespace rajaperf diff --git a/src/common/WindowsTypes.hpp b/src/common/WindowsTypes.hpp new file mode 100644 index 000000000..6a7e829b9 --- /dev/null +++ b/src/common/WindowsTypes.hpp @@ -0,0 +1,41 @@ +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC +// and RAJA Performance Suite project contributors. +// See the RAJAPerf/LICENSE file for details. +// +// SPDX-License-Identifier: (BSD-3-Clause) +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// + +/// +/// Type and value definitions to support Windows builds. +/// Windows has different syntax and does not support all POSIX modes +/// that Linux systems do. +/// + +#ifndef RAJAPerf_WindowsTypes_HPP +#define RAJAPerf_WindowsTypes_HPP + +#include + +#define _CRT_INTERNAL_NONSTDC_NAMES 1 +#include +#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR) + #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif + +#include +#include +#include + +using mode_t = int; + +/// Note: For the POSIX modes that do not have a Windows equivalent, the modes +/// defined here use the POSIX values left shifted 16 bits. + +static constexpr mode_t S_IRUSR = mode_t(_S_IREAD); ///< read by user +static constexpr mode_t S_IWUSR = mode_t(_S_IWRITE); ///< write by user +static constexpr mode_t S_IXUSR = 0x00400000; ///< does nothing + +static constexpr mode_t MS_MODE_MASK = 0x0000ffff; ///< low word + +#endif // closing endif for header file include guard diff --git a/src/lcals-kokkos/CMakeLists.txt b/src/lcals-kokkos/CMakeLists.txt index 7cb6706e8..25ea78656 100644 --- a/src/lcals-kokkos/CMakeLists.txt +++ b/src/lcals-kokkos/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/lcals-kokkos/DIFF_PREDICT-Kokkos.cpp b/src/lcals-kokkos/DIFF_PREDICT-Kokkos.cpp index b8d8311ba..f29d4dc34 100644 --- a/src/lcals-kokkos/DIFF_PREDICT-Kokkos.cpp +++ b/src/lcals-kokkos/DIFF_PREDICT-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/EOS-Kokkos.cpp b/src/lcals-kokkos/EOS-Kokkos.cpp index 2046b540d..272fb2eec 100644 --- a/src/lcals-kokkos/EOS-Kokkos.cpp +++ b/src/lcals-kokkos/EOS-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/FIRST_DIFF-Kokkos.cpp b/src/lcals-kokkos/FIRST_DIFF-Kokkos.cpp index 071e2687c..e740d2c78 100644 --- a/src/lcals-kokkos/FIRST_DIFF-Kokkos.cpp +++ b/src/lcals-kokkos/FIRST_DIFF-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/FIRST_MIN-Kokkos.cpp b/src/lcals-kokkos/FIRST_MIN-Kokkos.cpp index ebc31ddff..c4f961518 100644 --- a/src/lcals-kokkos/FIRST_MIN-Kokkos.cpp +++ b/src/lcals-kokkos/FIRST_MIN-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/FIRST_SUM-Kokkos.cpp b/src/lcals-kokkos/FIRST_SUM-Kokkos.cpp index 37b2d0c41..d271d60b7 100644 --- a/src/lcals-kokkos/FIRST_SUM-Kokkos.cpp +++ b/src/lcals-kokkos/FIRST_SUM-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/GEN_LIN_RECUR-Kokkos.cpp b/src/lcals-kokkos/GEN_LIN_RECUR-Kokkos.cpp index 8dce97c22..1babcf89b 100644 --- a/src/lcals-kokkos/GEN_LIN_RECUR-Kokkos.cpp +++ b/src/lcals-kokkos/GEN_LIN_RECUR-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/HYDRO_1D-Kokkos.cpp b/src/lcals-kokkos/HYDRO_1D-Kokkos.cpp index a2fdcfd02..aa88b6d6e 100644 --- a/src/lcals-kokkos/HYDRO_1D-Kokkos.cpp +++ b/src/lcals-kokkos/HYDRO_1D-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/HYDRO_2D-Kokkos.cpp b/src/lcals-kokkos/HYDRO_2D-Kokkos.cpp index e9b388105..91fb76432 100644 --- a/src/lcals-kokkos/HYDRO_2D-Kokkos.cpp +++ b/src/lcals-kokkos/HYDRO_2D-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/INT_PREDICT-Kokkos.cpp b/src/lcals-kokkos/INT_PREDICT-Kokkos.cpp index 7609b3f3c..b0c1c59ce 100644 --- a/src/lcals-kokkos/INT_PREDICT-Kokkos.cpp +++ b/src/lcals-kokkos/INT_PREDICT-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/PLANCKIAN-Kokkos.cpp b/src/lcals-kokkos/PLANCKIAN-Kokkos.cpp index e5263cf07..7f93f26f2 100644 --- a/src/lcals-kokkos/PLANCKIAN-Kokkos.cpp +++ b/src/lcals-kokkos/PLANCKIAN-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals-kokkos/TRIDIAG_ELIM-Kokkos.cpp b/src/lcals-kokkos/TRIDIAG_ELIM-Kokkos.cpp index f0ec388e7..a026b5bb4 100644 --- a/src/lcals-kokkos/TRIDIAG_ELIM-Kokkos.cpp +++ b/src/lcals-kokkos/TRIDIAG_ELIM-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/CMakeLists.txt b/src/lcals/CMakeLists.txt index 6fc819b2b..56a723a8d 100644 --- a/src/lcals/CMakeLists.txt +++ b/src/lcals/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/lcals/DIFF_PREDICT-Cuda.cpp b/src/lcals/DIFF_PREDICT-Cuda.cpp index a33f1aecf..ea28054de 100644 --- a/src/lcals/DIFF_PREDICT-Cuda.cpp +++ b/src/lcals/DIFF_PREDICT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/DIFF_PREDICT-Hip.cpp b/src/lcals/DIFF_PREDICT-Hip.cpp index 6d25a6f42..87200e63d 100644 --- a/src/lcals/DIFF_PREDICT-Hip.cpp +++ b/src/lcals/DIFF_PREDICT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/DIFF_PREDICT-OMP.cpp b/src/lcals/DIFF_PREDICT-OMP.cpp index 6e2110edb..c387dd457 100644 --- a/src/lcals/DIFF_PREDICT-OMP.cpp +++ b/src/lcals/DIFF_PREDICT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void DIFF_PREDICT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), diffpredict_lam); } diff --git a/src/lcals/DIFF_PREDICT-OMPTarget.cpp b/src/lcals/DIFF_PREDICT-OMPTarget.cpp index 3509b6aaa..5e7831953 100644 --- a/src/lcals/DIFF_PREDICT-OMPTarget.cpp +++ b/src/lcals/DIFF_PREDICT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void DIFF_PREDICT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { DIFF_PREDICT_BODY; }); diff --git a/src/lcals/DIFF_PREDICT-Seq.cpp b/src/lcals/DIFF_PREDICT-Seq.cpp index 9dcd9a035..dc582e27f 100644 --- a/src/lcals/DIFF_PREDICT-Seq.cpp +++ b/src/lcals/DIFF_PREDICT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void DIFF_PREDICT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), diffpredict_lam); } diff --git a/src/lcals/DIFF_PREDICT-Sycl.cpp b/src/lcals/DIFF_PREDICT-Sycl.cpp index 5ac815671..55cad111c 100644 --- a/src/lcals/DIFF_PREDICT-Sycl.cpp +++ b/src/lcals/DIFF_PREDICT-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/DIFF_PREDICT.cpp b/src/lcals/DIFF_PREDICT.cpp index 40ff30713..d12ee75ae 100644 --- a/src/lcals/DIFF_PREDICT.cpp +++ b/src/lcals/DIFF_PREDICT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ DIFF_PREDICT::DIFF_PREDICT(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(9 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/DIFF_PREDICT.hpp b/src/lcals/DIFF_PREDICT.hpp index 7bd77eade..60abcb31b 100644 --- a/src/lcals/DIFF_PREDICT.hpp +++ b/src/lcals/DIFF_PREDICT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/EOS-Cuda.cpp b/src/lcals/EOS-Cuda.cpp index fafbdef56..3a99644b5 100644 --- a/src/lcals/EOS-Cuda.cpp +++ b/src/lcals/EOS-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/EOS-Hip.cpp b/src/lcals/EOS-Hip.cpp index 35c80e320..ffe096694 100644 --- a/src/lcals/EOS-Hip.cpp +++ b/src/lcals/EOS-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/EOS-OMP.cpp b/src/lcals/EOS-OMP.cpp index 88e8e9da1..3208f31a5 100644 --- a/src/lcals/EOS-OMP.cpp +++ b/src/lcals/EOS-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void EOS::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), eos_lam); } diff --git a/src/lcals/EOS-OMPTarget.cpp b/src/lcals/EOS-OMPTarget.cpp index b9bf454eb..b0e4f8d08 100644 --- a/src/lcals/EOS-OMPTarget.cpp +++ b/src/lcals/EOS-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void EOS::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { EOS_BODY; }); diff --git a/src/lcals/EOS-Seq.cpp b/src/lcals/EOS-Seq.cpp index 384a9d260..227795fb7 100644 --- a/src/lcals/EOS-Seq.cpp +++ b/src/lcals/EOS-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void EOS::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), eos_lam); } diff --git a/src/lcals/EOS-Sycl.cpp b/src/lcals/EOS-Sycl.cpp index 898d25bc8..cb95c6cc9 100644 --- a/src/lcals/EOS-Sycl.cpp +++ b/src/lcals/EOS-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/EOS.cpp b/src/lcals/EOS.cpp index a9076c144..2d8db6f23 100644 --- a/src/lcals/EOS.cpp +++ b/src/lcals/EOS.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -41,6 +41,8 @@ EOS::EOS(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/EOS.hpp b/src/lcals/EOS.hpp index fed56916d..b0bb91050 100644 --- a/src/lcals/EOS.hpp +++ b/src/lcals/EOS.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_DIFF-Cuda.cpp b/src/lcals/FIRST_DIFF-Cuda.cpp index 2101da14f..18e9ada37 100644 --- a/src/lcals/FIRST_DIFF-Cuda.cpp +++ b/src/lcals/FIRST_DIFF-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_DIFF-Hip.cpp b/src/lcals/FIRST_DIFF-Hip.cpp index 666b9783d..3cf944168 100644 --- a/src/lcals/FIRST_DIFF-Hip.cpp +++ b/src/lcals/FIRST_DIFF-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_DIFF-OMP.cpp b/src/lcals/FIRST_DIFF-OMP.cpp index b664bfbf7..3c5d42ca1 100644 --- a/src/lcals/FIRST_DIFF-OMP.cpp +++ b/src/lcals/FIRST_DIFF-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void FIRST_DIFF::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), firstdiff_lam); } diff --git a/src/lcals/FIRST_DIFF-OMPTarget.cpp b/src/lcals/FIRST_DIFF-OMPTarget.cpp index bf3a40ad9..54d40a11d 100644 --- a/src/lcals/FIRST_DIFF-OMPTarget.cpp +++ b/src/lcals/FIRST_DIFF-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void FIRST_DIFF::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_AR } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { FIRST_DIFF_BODY; }); diff --git a/src/lcals/FIRST_DIFF-Seq.cpp b/src/lcals/FIRST_DIFF-Seq.cpp index 2382015e0..682174ff1 100644 --- a/src/lcals/FIRST_DIFF-Seq.cpp +++ b/src/lcals/FIRST_DIFF-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void FIRST_DIFF::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_id case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), firstdiff_lam); } diff --git a/src/lcals/FIRST_DIFF-Sycl.cpp b/src/lcals/FIRST_DIFF-Sycl.cpp index 41bacafe3..b499599ee 100644 --- a/src/lcals/FIRST_DIFF-Sycl.cpp +++ b/src/lcals/FIRST_DIFF-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_DIFF.cpp b/src/lcals/FIRST_DIFF.cpp index aa5aaa31a..650a3ecff 100644 --- a/src/lcals/FIRST_DIFF.cpp +++ b/src/lcals/FIRST_DIFF.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -35,6 +35,8 @@ FIRST_DIFF::FIRST_DIFF(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/FIRST_DIFF.hpp b/src/lcals/FIRST_DIFF.hpp index c01907f9b..d85348be5 100644 --- a/src/lcals/FIRST_DIFF.hpp +++ b/src/lcals/FIRST_DIFF.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_MIN-Cuda.cpp b/src/lcals/FIRST_MIN-Cuda.cpp index 08f2ab240..7cfd25f53 100644 --- a/src/lcals/FIRST_MIN-Cuda.cpp +++ b/src/lcals/FIRST_MIN-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -114,8 +114,6 @@ void FIRST_MIN::runCudaVariantBase(VariantID vid) template < size_t block_size, typename MappingHelper > void FIRST_MIN::runCudaVariantRAJA(VariantID vid) { - using reduction_policy = RAJA::cuda_reduce; - using exec_policy = std::conditional_t, RAJA::cuda_exec_occ_calc>; @@ -133,15 +131,16 @@ void FIRST_MIN::runCudaVariantRAJA(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::ReduceMinLoc loc( - m_xmin_init, m_initloc); + RAJA::ReduceMinLoc minloc(m_xmin_init, + m_initloc); RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=] __device__ (Index_type i) { FIRST_MIN_BODY_RAJA; }); - m_minloc = loc.getLoc(); + m_minloc = minloc.getLoc(); } stopTimer(); @@ -168,22 +167,23 @@ void FIRST_MIN::runCudaVariantRAJANewReduce(VariantID vid) if ( vid == RAJA_CUDA ) { - using VL_TYPE = RAJA::expt::ValLoc; - startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - VL_TYPE tloc(m_xmin_init, m_initloc); + RAJA::expt::ValLoc tminloc(m_xmin_init, + m_initloc); RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tloc), - [=] __device__ (Index_type i, VL_TYPE& loc) { - loc.min(x[i], i); + RAJA::expt::Reduce(&tminloc), + [=] __device__ (Index_type i, + RAJA::expt::ValLocOp& minloc) { + FIRST_MIN_BODY_RAJA; } ); - m_minloc = static_cast(tloc.getLoc()); + m_minloc = static_cast(tminloc.getLoc()); } stopTimer(); diff --git a/src/lcals/FIRST_MIN-Hip.cpp b/src/lcals/FIRST_MIN-Hip.cpp index 3c6fd7b35..6096c6d83 100644 --- a/src/lcals/FIRST_MIN-Hip.cpp +++ b/src/lcals/FIRST_MIN-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -114,8 +114,6 @@ void FIRST_MIN::runHipVariantBase(VariantID vid) template < size_t block_size, typename MappingHelper > void FIRST_MIN::runHipVariantRAJA(VariantID vid) { - using reduction_policy = RAJA::hip_reduce; - using exec_policy = std::conditional_t, RAJA::hip_exec_occ_calc>; @@ -133,15 +131,16 @@ void FIRST_MIN::runHipVariantRAJA(VariantID vid) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::ReduceMinLoc loc( - m_xmin_init, m_initloc); + RAJA::ReduceMinLoc minloc(m_xmin_init, + m_initloc); RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=] __device__ (Index_type i) { FIRST_MIN_BODY_RAJA; }); - m_minloc = loc.getLoc(); + m_minloc = minloc.getLoc(); } stopTimer(); @@ -168,22 +167,23 @@ void FIRST_MIN::runHipVariantRAJANewReduce(VariantID vid) if ( vid == RAJA_HIP ) { - using VL_TYPE = RAJA::expt::ValLoc; - startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - VL_TYPE tloc(m_xmin_init, m_initloc); + RAJA::expt::ValLoc tminloc(m_xmin_init, + m_initloc); - RAJA::forall( res, - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tloc), - [=] __device__ (Index_type i, VL_TYPE& loc) { - loc.min(x[i], i); - } - ); - - m_minloc = static_cast(tloc.getLoc()); + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&tminloc), + [=] __device__ (Index_type i, + RAJA::expt::ValLocOp& minloc) { + FIRST_MIN_BODY_RAJA; + } + ); + + m_minloc = static_cast(tminloc.getLoc()); } stopTimer(); diff --git a/src/lcals/FIRST_MIN-OMP.cpp b/src/lcals/FIRST_MIN-OMP.cpp index a9a7f1ba1..4eb71c99c 100644 --- a/src/lcals/FIRST_MIN-OMP.cpp +++ b/src/lcals/FIRST_MIN-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -87,42 +87,46 @@ void FIRST_MIN::runOpenMPVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::ReduceMinLoc loc( - m_xmin_init, m_initloc); + RAJA::ReduceMinLoc minloc(m_xmin_init, + m_initloc); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { FIRST_MIN_BODY_RAJA; }); - m_minloc = loc.getLoc(); + m_minloc = minloc.getLoc(); } stopTimer(); } else if (tune_idx == 1) { - using VL_TYPE = RAJA::expt::ValLoc; - startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - VL_TYPE tloc(m_xmin_init, m_initloc); + RAJA::expt::ValLoc tminloc(m_xmin_init, + m_initloc); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tloc), - [=](Index_type i, VL_TYPE& loc) { - loc.min(x[i], i); + RAJA::expt::Reduce(&tminloc), + [=](Index_type i, + RAJA::expt::ValLocOp& minloc) { + FIRST_MIN_BODY_RAJA; } ); - m_minloc = static_cast(tloc.getLoc()); + m_minloc = static_cast(tminloc.getLoc()); } stopTimer(); diff --git a/src/lcals/FIRST_MIN-OMPTarget.cpp b/src/lcals/FIRST_MIN-OMPTarget.cpp index 578bdfe63..38b33cd16 100644 --- a/src/lcals/FIRST_MIN-OMPTarget.cpp +++ b/src/lcals/FIRST_MIN-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -27,7 +27,7 @@ namespace lcals const size_t threads_per_team = 256; -void FIRST_MIN::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) +void FIRST_MIN::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -60,49 +60,28 @@ void FIRST_MIN::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } else if ( vid == RAJA_OpenMPTarget ) { - if (tune_idx == 0) { + auto res{getOmpTargetResource()}; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::ReduceMinLoc loc( - m_xmin_init, m_initloc); + RAJA::expt::ValLoc tminloc(m_xmin_init, + m_initloc); - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&tminloc), + [=](Index_type i, + RAJA::expt::ValLocOp& minloc) { FIRST_MIN_BODY_RAJA; - }); - - m_minloc = loc.getLoc(); - - } - stopTimer(); - - } else if (tune_idx == 1) { - - using VL_TYPE = RAJA::expt::ValLoc; - - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - VL_TYPE tloc(m_xmin_init, m_initloc); + } + ); - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tloc), - [=](Index_type i, VL_TYPE& loc) { - loc.min(x[i], i); - } - ); + m_minloc = static_cast(tminloc.getLoc()); - m_minloc = static_cast(tloc.getLoc()); - - } - stopTimer(); - - } else { - getCout() << "\n FIRST_MIN : Unknown OMP Target tuning index = " << tune_idx << std::endl; } + stopTimer(); } else { getCout() << "\n FIRST_MIN : Unknown OMP Target variant id = " << vid << std::endl; @@ -110,14 +89,6 @@ void FIRST_MIN::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } -void FIRST_MIN::setOpenMPTargetTuningDefinitions(VariantID vid) -{ - addVariantTuningName(vid, "default"); - if (vid == RAJA_OpenMPTarget) { - addVariantTuningName(vid, "new"); - } -} - } // end namespace lcals } // end namespace rajaperf diff --git a/src/lcals/FIRST_MIN-Seq.cpp b/src/lcals/FIRST_MIN-Seq.cpp index a32ed4962..fa5855f14 100644 --- a/src/lcals/FIRST_MIN-Seq.cpp +++ b/src/lcals/FIRST_MIN-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -79,42 +79,46 @@ void FIRST_MIN::runSeqVariant(VariantID vid, size_t tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::ReduceMinLoc loc( - m_xmin_init, m_initloc); + RAJA::ReduceMinLoc minloc(m_xmin_init, + m_initloc); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { FIRST_MIN_BODY_RAJA; }); - m_minloc = loc.getLoc(); + m_minloc = minloc.getLoc(); } stopTimer(); } else if (tune_idx == 1) { - using VL_TYPE = RAJA::expt::ValLoc; - startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - VL_TYPE tloc(m_xmin_init, m_initloc); + RAJA::expt::ValLoc tminloc(m_xmin_init, + m_initloc); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tloc), - [=](Index_type i, VL_TYPE& loc) { - loc.min(x[i], i); + RAJA::expt::Reduce(&tminloc), + [=](Index_type i, + RAJA::expt::ValLocOp& minloc) { + FIRST_MIN_BODY_RAJA; } ); - m_minloc = static_cast(tloc.getLoc()); + m_minloc = static_cast(tminloc.getLoc()); } stopTimer(); diff --git a/src/lcals/FIRST_MIN-Sycl.cpp b/src/lcals/FIRST_MIN-Sycl.cpp index 616c84dcb..eb6a10c5d 100644 --- a/src/lcals/FIRST_MIN-Sycl.cpp +++ b/src/lcals/FIRST_MIN-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -84,23 +84,24 @@ void FIRST_MIN::runSyclVariantImpl(VariantID vid) } else if ( vid == RAJA_SYCL ) { - using VL_TYPE = RAJA::expt::ValLoc; - startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - VL_TYPE tloc(m_xmin_init, m_initloc); + RAJA::expt::ValLoc tminloc(m_xmin_init, + m_initloc); RAJA::forall< RAJA::sycl_exec >( res, RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tloc), - [=] (Index_type i, VL_TYPE& loc) { - loc.min(x[i], i); + RAJA::expt::Reduce(&tminloc), + [=] (Index_type i, + RAJA::expt::ValLocOp& minloc) { + FIRST_MIN_BODY_RAJA; } ); - m_minloc = static_cast(tloc.getLoc()); + m_minloc = static_cast(tminloc.getLoc()); } stopTimer(); diff --git a/src/lcals/FIRST_MIN.cpp b/src/lcals/FIRST_MIN.cpp index 63a3be8df..4dcdfdaba 100644 --- a/src/lcals/FIRST_MIN.cpp +++ b/src/lcals/FIRST_MIN.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -41,6 +41,8 @@ FIRST_MIN::FIRST_MIN(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Reduction); @@ -73,14 +75,10 @@ FIRST_MIN::~FIRST_MIN() void FIRST_MIN::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { - allocAndInitDataConst(m_x, m_N, 0.0, vid); - - { - auto reset_x = scopedMoveData(m_x, m_N, vid); + auto reset_x = allocAndInitDataConstForInit(m_x, m_N, 0.0, vid); - m_x[ m_N / 2 ] = -1.0e+10; - m_xmin_init = m_x[0]; - } + m_x[ m_N / 2 ] = -1.0e+10; + m_xmin_init = m_x[0]; m_initloc = 0; m_minloc = -1; diff --git a/src/lcals/FIRST_MIN.hpp b/src/lcals/FIRST_MIN.hpp index 1660739fb..fa4804859 100644 --- a/src/lcals/FIRST_MIN.hpp +++ b/src/lcals/FIRST_MIN.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,7 +33,7 @@ } #define FIRST_MIN_BODY_RAJA \ - loc.minloc(x[i], i); + minloc.minloc(x[i], i); #include "common/RPTypes.hpp" @@ -87,7 +87,6 @@ class FIRST_MIN : public KernelBase void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); - void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); template < size_t block_size, typename MappingHelper > diff --git a/src/lcals/FIRST_SUM-Cuda.cpp b/src/lcals/FIRST_SUM-Cuda.cpp index b4a025a20..18c6010fb 100644 --- a/src/lcals/FIRST_SUM-Cuda.cpp +++ b/src/lcals/FIRST_SUM-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_SUM-Hip.cpp b/src/lcals/FIRST_SUM-Hip.cpp index 01c2082d5..0b7b33ebf 100644 --- a/src/lcals/FIRST_SUM-Hip.cpp +++ b/src/lcals/FIRST_SUM-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_SUM-OMP.cpp b/src/lcals/FIRST_SUM-OMP.cpp index 223379dbe..69e1825b9 100644 --- a/src/lcals/FIRST_SUM-OMP.cpp +++ b/src/lcals/FIRST_SUM-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void FIRST_SUM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), firstsum_lam); } diff --git a/src/lcals/FIRST_SUM-OMPTarget.cpp b/src/lcals/FIRST_SUM-OMPTarget.cpp index 932f32fc4..4efc4fd07 100644 --- a/src/lcals/FIRST_SUM-OMPTarget.cpp +++ b/src/lcals/FIRST_SUM-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void FIRST_SUM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { FIRST_SUM_BODY; }); diff --git a/src/lcals/FIRST_SUM-Seq.cpp b/src/lcals/FIRST_SUM-Seq.cpp index 4eba8626e..1eb839950 100644 --- a/src/lcals/FIRST_SUM-Seq.cpp +++ b/src/lcals/FIRST_SUM-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void FIRST_SUM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), firstsum_lam); } diff --git a/src/lcals/FIRST_SUM-Sycl.cpp b/src/lcals/FIRST_SUM-Sycl.cpp index 3d63fdcbc..1bb1769db 100644 --- a/src/lcals/FIRST_SUM-Sycl.cpp +++ b/src/lcals/FIRST_SUM-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/FIRST_SUM.cpp b/src/lcals/FIRST_SUM.cpp index a40bf533a..90af0f664 100644 --- a/src/lcals/FIRST_SUM.cpp +++ b/src/lcals/FIRST_SUM.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -35,6 +35,8 @@ FIRST_SUM::FIRST_SUM(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * (getActualProblemSize()-1)); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/FIRST_SUM.hpp b/src/lcals/FIRST_SUM.hpp index 1fc9c48cd..e47362a69 100644 --- a/src/lcals/FIRST_SUM.hpp +++ b/src/lcals/FIRST_SUM.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/GEN_LIN_RECUR-Cuda.cpp b/src/lcals/GEN_LIN_RECUR-Cuda.cpp index 17e56a2a0..5e1d90aa9 100644 --- a/src/lcals/GEN_LIN_RECUR-Cuda.cpp +++ b/src/lcals/GEN_LIN_RECUR-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/GEN_LIN_RECUR-Hip.cpp b/src/lcals/GEN_LIN_RECUR-Hip.cpp index 5d428fa87..40cf4b27b 100644 --- a/src/lcals/GEN_LIN_RECUR-Hip.cpp +++ b/src/lcals/GEN_LIN_RECUR-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/GEN_LIN_RECUR-OMP.cpp b/src/lcals/GEN_LIN_RECUR-OMP.cpp index d4ac65995..ddd3c3af4 100644 --- a/src/lcals/GEN_LIN_RECUR-OMP.cpp +++ b/src/lcals/GEN_LIN_RECUR-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -79,13 +79,15 @@ void GEN_LIN_RECUR::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(0, N), genlinrecur_lam1); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(1, N+1), genlinrecur_lam2); } diff --git a/src/lcals/GEN_LIN_RECUR-OMPTarget.cpp b/src/lcals/GEN_LIN_RECUR-OMPTarget.cpp index 9932469cb..bc3796e36 100644 --- a/src/lcals/GEN_LIN_RECUR-OMPTarget.cpp +++ b/src/lcals/GEN_LIN_RECUR-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -55,15 +55,17 @@ void GEN_LIN_RECUR::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(0, N), [=] (Index_type k) { GEN_LIN_RECUR_BODY1; }); - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(1, N+1), [=] (Index_type i) { GEN_LIN_RECUR_BODY2; }); diff --git a/src/lcals/GEN_LIN_RECUR-Seq.cpp b/src/lcals/GEN_LIN_RECUR-Seq.cpp index b1d6c3be5..b80ca7403 100644 --- a/src/lcals/GEN_LIN_RECUR-Seq.cpp +++ b/src/lcals/GEN_LIN_RECUR-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,13 +76,15 @@ void GEN_LIN_RECUR::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(0, N), genlinrecur_lam1); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(1, N+1), genlinrecur_lam2); } diff --git a/src/lcals/GEN_LIN_RECUR-Sycl.cpp b/src/lcals/GEN_LIN_RECUR-Sycl.cpp index 06ca45e7b..35a8f3521 100644 --- a/src/lcals/GEN_LIN_RECUR-Sycl.cpp +++ b/src/lcals/GEN_LIN_RECUR-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/GEN_LIN_RECUR.cpp b/src/lcals/GEN_LIN_RECUR.cpp index 80b7f9b10..5206e4c8e 100644 --- a/src/lcals/GEN_LIN_RECUR.cpp +++ b/src/lcals/GEN_LIN_RECUR.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -42,6 +42,8 @@ GEN_LIN_RECUR::GEN_LIN_RECUR(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/GEN_LIN_RECUR.hpp b/src/lcals/GEN_LIN_RECUR.hpp index 33c0895af..6996a59b6 100644 --- a/src/lcals/GEN_LIN_RECUR.hpp +++ b/src/lcals/GEN_LIN_RECUR.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_1D-Cuda.cpp b/src/lcals/HYDRO_1D-Cuda.cpp index 4d89cc5b6..0176ccdf3 100644 --- a/src/lcals/HYDRO_1D-Cuda.cpp +++ b/src/lcals/HYDRO_1D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_1D-Hip.cpp b/src/lcals/HYDRO_1D-Hip.cpp index aa2a12c99..95b777c26 100644 --- a/src/lcals/HYDRO_1D-Hip.cpp +++ b/src/lcals/HYDRO_1D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_1D-OMP.cpp b/src/lcals/HYDRO_1D-OMP.cpp index d3ac150a4..79a59cdad 100644 --- a/src/lcals/HYDRO_1D-OMP.cpp +++ b/src/lcals/HYDRO_1D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,11 +68,12 @@ void HYDRO_1D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_OpenMP : { - startTimer(); + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), hydro1d_lam); } diff --git a/src/lcals/HYDRO_1D-OMPTarget.cpp b/src/lcals/HYDRO_1D-OMPTarget.cpp index b5cf82420..3318dfc28 100644 --- a/src/lcals/HYDRO_1D-OMPTarget.cpp +++ b/src/lcals/HYDRO_1D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,10 +50,12 @@ void HYDRO_1D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { HYDRO_1D_BODY; }); diff --git a/src/lcals/HYDRO_1D-Seq.cpp b/src/lcals/HYDRO_1D-Seq.cpp index 22f257e8d..8d773da74 100644 --- a/src/lcals/HYDRO_1D-Seq.cpp +++ b/src/lcals/HYDRO_1D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void HYDRO_1D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), hydro1d_lam); } diff --git a/src/lcals/HYDRO_1D-Sycl.cpp b/src/lcals/HYDRO_1D-Sycl.cpp index 3ccbad9a7..799b19e9e 100644 --- a/src/lcals/HYDRO_1D-Sycl.cpp +++ b/src/lcals/HYDRO_1D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_1D.cpp b/src/lcals/HYDRO_1D.cpp index c4821788f..fb05917a5 100644 --- a/src/lcals/HYDRO_1D.cpp +++ b/src/lcals/HYDRO_1D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -40,6 +40,8 @@ HYDRO_1D::HYDRO_1D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/HYDRO_1D.hpp b/src/lcals/HYDRO_1D.hpp index 4827fcecd..28fcb3f93 100644 --- a/src/lcals/HYDRO_1D.hpp +++ b/src/lcals/HYDRO_1D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_2D-Cuda.cpp b/src/lcals/HYDRO_2D-Cuda.cpp index ad09dd2a3..4153f5d62 100644 --- a/src/lcals/HYDRO_2D-Cuda.cpp +++ b/src/lcals/HYDRO_2D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_2D-Hip.cpp b/src/lcals/HYDRO_2D-Hip.cpp index 58b530ba8..bce8bc4cc 100644 --- a/src/lcals/HYDRO_2D-Hip.cpp +++ b/src/lcals/HYDRO_2D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_2D-OMP.cpp b/src/lcals/HYDRO_2D-OMP.cpp index 92f1bb080..2e2cede66 100644 --- a/src/lcals/HYDRO_2D-OMP.cpp +++ b/src/lcals/HYDRO_2D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -118,6 +118,8 @@ void HYDRO_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_OpenMP : { + auto res{getHostResource()}; + HYDRO_2D_VIEWS_RAJA; auto hydro2d_lam1 = [=] (Index_type k, Index_type j) { @@ -144,19 +146,22 @@ void HYDRO_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i RAJA::region( [=]() { - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, hydro2d_lam1); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, hydro2d_lam2); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, hydro2d_lam3); }); // end omp parallel region diff --git a/src/lcals/HYDRO_2D-OMPTarget.cpp b/src/lcals/HYDRO_2D-OMPTarget.cpp index f830feefb..f23606b1f 100644 --- a/src/lcals/HYDRO_2D-OMPTarget.cpp +++ b/src/lcals/HYDRO_2D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,6 +68,8 @@ void HYDRO_2D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + HYDRO_2D_VIEWS_RAJA; using EXECPOL = @@ -81,23 +83,26 @@ void HYDRO_2D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, [=] (Index_type k, Index_type j) { HYDRO_2D_BODY1_RAJA; }); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, [=] (Index_type k, Index_type j) { HYDRO_2D_BODY2_RAJA; }); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, [=] (Index_type k, Index_type j) { HYDRO_2D_BODY3_RAJA; }); diff --git a/src/lcals/HYDRO_2D-Seq.cpp b/src/lcals/HYDRO_2D-Seq.cpp index 522dba679..668f05918 100644 --- a/src/lcals/HYDRO_2D-Seq.cpp +++ b/src/lcals/HYDRO_2D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -104,6 +104,8 @@ void HYDRO_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + HYDRO_2D_VIEWS_RAJA; auto hydro2d_lam1 = [=] (Index_type k, Index_type j) { @@ -128,19 +130,22 @@ void HYDRO_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, hydro2d_lam1); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, hydro2d_lam2); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple( RAJA::RangeSegment(kbeg, kend), RAJA::RangeSegment(jbeg, jend)), + res, hydro2d_lam3); } diff --git a/src/lcals/HYDRO_2D-Sycl.cpp b/src/lcals/HYDRO_2D-Sycl.cpp index 975467bc5..b67d5bbb5 100644 --- a/src/lcals/HYDRO_2D-Sycl.cpp +++ b/src/lcals/HYDRO_2D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/HYDRO_2D.cpp b/src/lcals/HYDRO_2D.cpp index d1ae233d0..bd113bd83 100644 --- a/src/lcals/HYDRO_2D.cpp +++ b/src/lcals/HYDRO_2D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -55,6 +55,8 @@ HYDRO_2D::HYDRO_2D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/lcals/HYDRO_2D.hpp b/src/lcals/HYDRO_2D.hpp index 1c9cc8d1c..098c46cad 100644 --- a/src/lcals/HYDRO_2D.hpp +++ b/src/lcals/HYDRO_2D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/INT_PREDICT-Cuda.cpp b/src/lcals/INT_PREDICT-Cuda.cpp index 3ec139130..a74ea7b1d 100644 --- a/src/lcals/INT_PREDICT-Cuda.cpp +++ b/src/lcals/INT_PREDICT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/INT_PREDICT-Hip.cpp b/src/lcals/INT_PREDICT-Hip.cpp index 1e2741cd7..7b5994969 100644 --- a/src/lcals/INT_PREDICT-Hip.cpp +++ b/src/lcals/INT_PREDICT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/INT_PREDICT-OMP.cpp b/src/lcals/INT_PREDICT-OMP.cpp index b33e5cd2b..a884aee80 100644 --- a/src/lcals/INT_PREDICT-OMP.cpp +++ b/src/lcals/INT_PREDICT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,11 +67,13 @@ void INT_PREDICT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun } case RAJA_OpenMP : { + + auto res{getHostResource()}; startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), intpredict_lam); } diff --git a/src/lcals/INT_PREDICT-OMPTarget.cpp b/src/lcals/INT_PREDICT-OMPTarget.cpp index a7e257532..58ec5df29 100644 --- a/src/lcals/INT_PREDICT-OMPTarget.cpp +++ b/src/lcals/INT_PREDICT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void INT_PREDICT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_A } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { INT_PREDICT_BODY; }); diff --git a/src/lcals/INT_PREDICT-Seq.cpp b/src/lcals/INT_PREDICT-Seq.cpp index 1d8e52fda..c8be00aa0 100644 --- a/src/lcals/INT_PREDICT-Seq.cpp +++ b/src/lcals/INT_PREDICT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void INT_PREDICT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_i case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), intpredict_lam); } diff --git a/src/lcals/INT_PREDICT-Sycl.cpp b/src/lcals/INT_PREDICT-Sycl.cpp index 992dbcba1..6a40f0807 100644 --- a/src/lcals/INT_PREDICT-Sycl.cpp +++ b/src/lcals/INT_PREDICT-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/INT_PREDICT.cpp b/src/lcals/INT_PREDICT.cpp index afb4a2ea9..dab77be6c 100644 --- a/src/lcals/INT_PREDICT.cpp +++ b/src/lcals/INT_PREDICT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ INT_PREDICT::INT_PREDICT(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(17 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); @@ -82,15 +84,25 @@ void INT_PREDICT::setUp(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) void INT_PREDICT::updateChecksum(VariantID vid, size_t tune_idx) { - { - auto reset_px = scopedMoveData(m_px, m_array_length, vid); + Real_ptr px_host = m_px; + + DataSpace ds = getDataSpace(vid); + DataSpace hds = rajaperf::hostCopyDataSpace(ds); + if (ds != hds) { + rajaperf::allocData(hds, px_host, m_array_length, getDataAlignment()); + rajaperf::copyData(hds, px_host, ds, m_px, m_array_length); + } - for (Index_type i = 0; i < getActualProblemSize(); ++i) { - m_px[i] -= m_px_initval; - } + for (Index_type i = 0; i < getActualProblemSize(); ++i) { + px_host[i] -= m_px_initval; } - checksum[vid][tune_idx] += calcChecksum(m_px, getActualProblemSize(), vid); + checksum[vid][tune_idx] += calcChecksum(px_host, getActualProblemSize(), vid); + + if (ds != hds) { + rajaperf::copyData(ds, m_px, hds, px_host, m_array_length); + rajaperf::deallocData(hds, px_host); + } } void INT_PREDICT::tearDown(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) diff --git a/src/lcals/INT_PREDICT.hpp b/src/lcals/INT_PREDICT.hpp index 5435af4f4..28d7ebe9e 100644 --- a/src/lcals/INT_PREDICT.hpp +++ b/src/lcals/INT_PREDICT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/PLANCKIAN-Cuda.cpp b/src/lcals/PLANCKIAN-Cuda.cpp index 40a8bf7f0..88c18d48c 100644 --- a/src/lcals/PLANCKIAN-Cuda.cpp +++ b/src/lcals/PLANCKIAN-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/PLANCKIAN-Hip.cpp b/src/lcals/PLANCKIAN-Hip.cpp index 00323115d..d4fe41044 100644 --- a/src/lcals/PLANCKIAN-Hip.cpp +++ b/src/lcals/PLANCKIAN-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/PLANCKIAN-OMP.cpp b/src/lcals/PLANCKIAN-OMP.cpp index e82f9eccd..a5818910d 100644 --- a/src/lcals/PLANCKIAN-OMP.cpp +++ b/src/lcals/PLANCKIAN-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,10 +69,12 @@ void PLANCKIAN::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), planckian_lam); } diff --git a/src/lcals/PLANCKIAN-OMPTarget.cpp b/src/lcals/PLANCKIAN-OMPTarget.cpp index c69732531..59a7d473a 100644 --- a/src/lcals/PLANCKIAN-OMPTarget.cpp +++ b/src/lcals/PLANCKIAN-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,10 +52,12 @@ void PLANCKIAN::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { PLANCKIAN_BODY; }); diff --git a/src/lcals/PLANCKIAN-Seq.cpp b/src/lcals/PLANCKIAN-Seq.cpp index 56c57971b..b7a4ee130 100644 --- a/src/lcals/PLANCKIAN-Seq.cpp +++ b/src/lcals/PLANCKIAN-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void PLANCKIAN::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), planckian_lam); } diff --git a/src/lcals/PLANCKIAN-Sycl.cpp b/src/lcals/PLANCKIAN-Sycl.cpp index 31b43c2f7..d7a53ba86 100644 --- a/src/lcals/PLANCKIAN-Sycl.cpp +++ b/src/lcals/PLANCKIAN-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/PLANCKIAN.cpp b/src/lcals/PLANCKIAN.cpp index cf15e6a29..b33b7ea8b 100644 --- a/src/lcals/PLANCKIAN.cpp +++ b/src/lcals/PLANCKIAN.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ PLANCKIAN::PLANCKIAN(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(4 * getActualProblemSize()); // 1 exp + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/PLANCKIAN.hpp b/src/lcals/PLANCKIAN.hpp index a999d2178..08412db4d 100644 --- a/src/lcals/PLANCKIAN.hpp +++ b/src/lcals/PLANCKIAN.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/TRIDIAG_ELIM-Cuda.cpp b/src/lcals/TRIDIAG_ELIM-Cuda.cpp index 18cc284ea..9175a3343 100644 --- a/src/lcals/TRIDIAG_ELIM-Cuda.cpp +++ b/src/lcals/TRIDIAG_ELIM-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/TRIDIAG_ELIM-Hip.cpp b/src/lcals/TRIDIAG_ELIM-Hip.cpp index 1b0db7e7f..b09e35452 100644 --- a/src/lcals/TRIDIAG_ELIM-Hip.cpp +++ b/src/lcals/TRIDIAG_ELIM-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/TRIDIAG_ELIM-OMP.cpp b/src/lcals/TRIDIAG_ELIM-OMP.cpp index 22673b5f7..c46577985 100644 --- a/src/lcals/TRIDIAG_ELIM-OMP.cpp +++ b/src/lcals/TRIDIAG_ELIM-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void TRIDIAG_ELIM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tu case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), tridiag_elim_lam); } diff --git a/src/lcals/TRIDIAG_ELIM-OMPTarget.cpp b/src/lcals/TRIDIAG_ELIM-OMPTarget.cpp index 5433879a5..609bf996e 100644 --- a/src/lcals/TRIDIAG_ELIM-OMPTarget.cpp +++ b/src/lcals/TRIDIAG_ELIM-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,10 +51,12 @@ void TRIDIAG_ELIM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { TRIDIAG_ELIM_BODY; }); diff --git a/src/lcals/TRIDIAG_ELIM-Seq.cpp b/src/lcals/TRIDIAG_ELIM-Seq.cpp index 0b23c9143..ebe409e77 100644 --- a/src/lcals/TRIDIAG_ELIM-Seq.cpp +++ b/src/lcals/TRIDIAG_ELIM-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void TRIDIAG_ELIM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), tridiag_elim_lam); } diff --git a/src/lcals/TRIDIAG_ELIM-Sycl.cpp b/src/lcals/TRIDIAG_ELIM-Sycl.cpp index 74e23665f..c91ae84be 100644 --- a/src/lcals/TRIDIAG_ELIM-Sycl.cpp +++ b/src/lcals/TRIDIAG_ELIM-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/lcals/TRIDIAG_ELIM.cpp b/src/lcals/TRIDIAG_ELIM.cpp index 9955bee66..0ff1a5cb8 100644 --- a/src/lcals/TRIDIAG_ELIM.cpp +++ b/src/lcals/TRIDIAG_ELIM.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -35,6 +35,8 @@ TRIDIAG_ELIM::TRIDIAG_ELIM(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(2 * (getActualProblemSize()-1)); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/lcals/TRIDIAG_ELIM.hpp b/src/lcals/TRIDIAG_ELIM.hpp index 69c1a2d9c..b940abac8 100644 --- a/src/lcals/TRIDIAG_ELIM.hpp +++ b/src/lcals/TRIDIAG_ELIM.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/CMakeLists.txt b/src/polybench/CMakeLists.txt index 2722a1fac..24f6c613e 100644 --- a/src/polybench/CMakeLists.txt +++ b/src/polybench/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/polybench/POLYBENCH_2MM-Cuda.cpp b/src/polybench/POLYBENCH_2MM-Cuda.cpp index 28b49c779..80d1975fc 100644 --- a/src/polybench/POLYBENCH_2MM-Cuda.cpp +++ b/src/polybench/POLYBENCH_2MM-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_2MM-Hip.cpp b/src/polybench/POLYBENCH_2MM-Hip.cpp index 28308ef32..6d679c684 100644 --- a/src/polybench/POLYBENCH_2MM-Hip.cpp +++ b/src/polybench/POLYBENCH_2MM-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_2MM-OMP.cpp b/src/polybench/POLYBENCH_2MM-OMP.cpp index b73813df8..e0c9be797 100644 --- a/src/polybench/POLYBENCH_2MM-OMP.cpp +++ b/src/polybench/POLYBENCH_2MM-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -137,6 +137,8 @@ void POLYBENCH_2MM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_2MM_VIEWS_RAJA; auto poly_2mm_lam1 = [=](Real_type &dot) { @@ -192,22 +194,24 @@ void POLYBENCH_2MM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk}), RAJA::tuple{0.0}, + res, poly_2mm_lam1, poly_2mm_lam2, poly_2mm_lam3 ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nj}), RAJA::tuple{0.0}, + res, poly_2mm_lam4, poly_2mm_lam5, diff --git a/src/polybench/POLYBENCH_2MM-OMPTarget.cpp b/src/polybench/POLYBENCH_2MM-OMPTarget.cpp index 781139422..9f6c4af0e 100644 --- a/src/polybench/POLYBENCH_2MM-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_2MM-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -61,6 +61,8 @@ void POLYBENCH_2MM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + POLYBENCH_2MM_VIEWS_RAJA; using EXEC_POL = @@ -78,11 +80,12 @@ void POLYBENCH_2MM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk}), RAJA::tuple{0.0}, + res, [=](Real_type &dot) { POLYBENCH_2MM_BODY1_RAJA; @@ -95,11 +98,12 @@ void POLYBENCH_2MM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nj}), RAJA::tuple{0.0}, + res, [=](Real_type &dot) { POLYBENCH_2MM_BODY4_RAJA; diff --git a/src/polybench/POLYBENCH_2MM-Seq.cpp b/src/polybench/POLYBENCH_2MM-Seq.cpp index 5cffa3207..26dc78121 100644 --- a/src/polybench/POLYBENCH_2MM-Seq.cpp +++ b/src/polybench/POLYBENCH_2MM-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -109,6 +109,8 @@ void POLYBENCH_2MM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_2MM_VIEWS_RAJA; auto poly_2mm_lam1 = [=](Real_type &dot) { @@ -150,22 +152,24 @@ void POLYBENCH_2MM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk}), RAJA::tuple{0.0}, + res, poly_2mm_lam1, poly_2mm_lam2, poly_2mm_lam3 ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nj}), RAJA::tuple{0.0}, + res, poly_2mm_lam4, poly_2mm_lam5, diff --git a/src/polybench/POLYBENCH_2MM-Sycl.cpp b/src/polybench/POLYBENCH_2MM-Sycl.cpp index 867ad780e..36a6b76eb 100644 --- a/src/polybench/POLYBENCH_2MM-Sycl.cpp +++ b/src/polybench/POLYBENCH_2MM-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_2MM.cpp b/src/polybench/POLYBENCH_2MM.cpp index 55cc577cc..e7455414d 100644 --- a/src/polybench/POLYBENCH_2MM.cpp +++ b/src/polybench/POLYBENCH_2MM.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -60,6 +60,8 @@ POLYBENCH_2MM::POLYBENCH_2MM(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N_to_the_three_halves); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_2MM.hpp b/src/polybench/POLYBENCH_2MM.hpp index 541682454..077c91716 100644 --- a/src/polybench/POLYBENCH_2MM.hpp +++ b/src/polybench/POLYBENCH_2MM.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_3MM-Cuda.cpp b/src/polybench/POLYBENCH_3MM-Cuda.cpp index 401660aca..99f553277 100644 --- a/src/polybench/POLYBENCH_3MM-Cuda.cpp +++ b/src/polybench/POLYBENCH_3MM-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_3MM-Hip.cpp b/src/polybench/POLYBENCH_3MM-Hip.cpp index 53e106ad1..9c6b8d27f 100644 --- a/src/polybench/POLYBENCH_3MM-Hip.cpp +++ b/src/polybench/POLYBENCH_3MM-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_3MM-OMP.cpp b/src/polybench/POLYBENCH_3MM-OMP.cpp index 19b15098a..9338323d3 100644 --- a/src/polybench/POLYBENCH_3MM-OMP.cpp +++ b/src/polybench/POLYBENCH_3MM-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -176,6 +176,8 @@ void POLYBENCH_3MM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_3MM_VIEWS_RAJA; auto poly_3mm_lam1 = [=] (Real_type &dot) { @@ -242,11 +244,12 @@ void POLYBENCH_3MM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk}), RAJA::tuple{0.0}, + res, poly_3mm_lam1, poly_3mm_lam2, @@ -254,11 +257,12 @@ void POLYBENCH_3MM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nm}), RAJA::tuple{0.0}, + res, poly_3mm_lam4, poly_3mm_lam5, @@ -266,11 +270,12 @@ void POLYBENCH_3MM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nj}), RAJA::tuple{0.0}, + res, poly_3mm_lam7, poly_3mm_lam8, diff --git a/src/polybench/POLYBENCH_3MM-OMPTarget.cpp b/src/polybench/POLYBENCH_3MM-OMPTarget.cpp index d165426d1..25fbd41b9 100644 --- a/src/polybench/POLYBENCH_3MM-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_3MM-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,6 +73,8 @@ void POLYBENCH_3MM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + POLYBENCH_3MM_VIEWS_RAJA; using EXEC_POL = @@ -90,11 +92,12 @@ void POLYBENCH_3MM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk}), RAJA::tuple{0.0}, + res, [=] (Real_type &dot) { POLYBENCH_3MM_BODY1_RAJA; @@ -110,11 +113,12 @@ void POLYBENCH_3MM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nm}), RAJA::tuple{0.0}, + res, [=] (Real_type &dot) { POLYBENCH_3MM_BODY4_RAJA; @@ -130,11 +134,12 @@ void POLYBENCH_3MM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nj}), RAJA::tuple{0.0}, + res, [=] (Real_type &dot) { POLYBENCH_3MM_BODY7_RAJA; diff --git a/src/polybench/POLYBENCH_3MM-Seq.cpp b/src/polybench/POLYBENCH_3MM-Seq.cpp index 24098e109..5e85a7e19 100644 --- a/src/polybench/POLYBENCH_3MM-Seq.cpp +++ b/src/polybench/POLYBENCH_3MM-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -138,6 +138,8 @@ void POLYBENCH_3MM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_3MM_VIEWS_RAJA; auto poly_3mm_lam1 = [=] (Real_type &dot) { @@ -190,11 +192,12 @@ void POLYBENCH_3MM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk}), RAJA::tuple{0.0}, + res, poly_3mm_lam1, poly_3mm_lam2, @@ -202,11 +205,12 @@ void POLYBENCH_3MM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nm}), RAJA::tuple{0.0}, + res, poly_3mm_lam4, poly_3mm_lam5, @@ -214,11 +218,12 @@ void POLYBENCH_3MM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nl}, RAJA::RangeSegment{0, nj}), RAJA::tuple{0.0}, + res, poly_3mm_lam7, poly_3mm_lam8, diff --git a/src/polybench/POLYBENCH_3MM-Sycl.cpp b/src/polybench/POLYBENCH_3MM-Sycl.cpp index b6abea7b9..dd480d33f 100644 --- a/src/polybench/POLYBENCH_3MM-Sycl.cpp +++ b/src/polybench/POLYBENCH_3MM-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_3MM.cpp b/src/polybench/POLYBENCH_3MM.cpp index eb8e63d66..4c4c8546a 100644 --- a/src/polybench/POLYBENCH_3MM.cpp +++ b/src/polybench/POLYBENCH_3MM.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -69,6 +69,8 @@ POLYBENCH_3MM::POLYBENCH_3MM(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N_to_the_three_halves); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_3MM.hpp b/src/polybench/POLYBENCH_3MM.hpp index 0d0cf79af..936714cfa 100644 --- a/src/polybench/POLYBENCH_3MM.hpp +++ b/src/polybench/POLYBENCH_3MM.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ADI-Cuda.cpp b/src/polybench/POLYBENCH_ADI-Cuda.cpp index ff5216dc9..bf5d82142 100644 --- a/src/polybench/POLYBENCH_ADI-Cuda.cpp +++ b/src/polybench/POLYBENCH_ADI-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ADI-Hip.cpp b/src/polybench/POLYBENCH_ADI-Hip.cpp index 51a69a986..6b261fc95 100644 --- a/src/polybench/POLYBENCH_ADI-Hip.cpp +++ b/src/polybench/POLYBENCH_ADI-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ADI-OMP.cpp b/src/polybench/POLYBENCH_ADI-OMP.cpp index 08df1e9f7..9f60786b5 100644 --- a/src/polybench/POLYBENCH_ADI-OMP.cpp +++ b/src/polybench/POLYBENCH_ADI-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -134,6 +134,8 @@ void POLYBENCH_ADI::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_ADI_VIEWS_RAJA; auto poly_adi_lam2 = [=](Index_type i) { @@ -180,10 +182,11 @@ void POLYBENCH_ADI::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t for (Index_type t = 1; t <= tsteps; ++t) { - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, n-1}, RAJA::RangeSegment{1, n-1}, RAJA::RangeStrideSegment{n-2, 0, -1}), + res, poly_adi_lam2, poly_adi_lam3, @@ -192,10 +195,11 @@ void POLYBENCH_ADI::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, n-1}, RAJA::RangeSegment{1, n-1}, RAJA::RangeStrideSegment{n-2, 0, -1}), + res, poly_adi_lam6, poly_adi_lam7, diff --git a/src/polybench/POLYBENCH_ADI-OMPTarget.cpp b/src/polybench/POLYBENCH_ADI-OMPTarget.cpp index 8cee39e2c..fb6d241cd 100644 --- a/src/polybench/POLYBENCH_ADI-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_ADI-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -72,6 +72,8 @@ void POLYBENCH_ADI::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + POLYBENCH_ADI_VIEWS_RAJA; using EXEC_POL = @@ -93,10 +95,11 @@ void POLYBENCH_ADI::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED for (Index_type t = 1; t <= tsteps; ++t) { - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, n-1}, RAJA::RangeSegment{1, n-1}, RAJA::RangeStrideSegment{n-2, 0, -1}), + res, [=] (Index_type i) { POLYBENCH_ADI_BODY2_RAJA; @@ -112,10 +115,11 @@ void POLYBENCH_ADI::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, n-1}, RAJA::RangeSegment{1, n-1}, RAJA::RangeStrideSegment{n-2, 0, -1}), + res, [=] (Index_type i) { POLYBENCH_ADI_BODY6_RAJA; diff --git a/src/polybench/POLYBENCH_ADI-Seq.cpp b/src/polybench/POLYBENCH_ADI-Seq.cpp index 3ec703a50..184cba921 100644 --- a/src/polybench/POLYBENCH_ADI-Seq.cpp +++ b/src/polybench/POLYBENCH_ADI-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -128,6 +128,8 @@ void POLYBENCH_ADI::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_ADI_VIEWS_RAJA; auto poly_adi_lam2 = [=](Index_type i) { @@ -174,10 +176,11 @@ void POLYBENCH_ADI::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune for (Index_type t = 1; t <= tsteps; ++t) { - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, n-1}, RAJA::RangeSegment{1, n-1}, RAJA::RangeStrideSegment{n-2, 0, -1}), + res, poly_adi_lam2, poly_adi_lam3, @@ -186,10 +189,11 @@ void POLYBENCH_ADI::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, n-1}, RAJA::RangeSegment{1, n-1}, RAJA::RangeStrideSegment{n-2, 0, -1}), + res, poly_adi_lam6, poly_adi_lam7, diff --git a/src/polybench/POLYBENCH_ADI-Sycl.cpp b/src/polybench/POLYBENCH_ADI-Sycl.cpp index 0fb3dfb4c..6828ec56f 100644 --- a/src/polybench/POLYBENCH_ADI-Sycl.cpp +++ b/src/polybench/POLYBENCH_ADI-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ADI.cpp b/src/polybench/POLYBENCH_ADI.cpp index 1347975f2..684d5aab6 100644 --- a/src/polybench/POLYBENCH_ADI.cpp +++ b/src/polybench/POLYBENCH_ADI.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -46,6 +46,8 @@ POLYBENCH_ADI::POLYBENCH_ADI(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_ADI.hpp b/src/polybench/POLYBENCH_ADI.hpp index 613202509..2724f9372 100644 --- a/src/polybench/POLYBENCH_ADI.hpp +++ b/src/polybench/POLYBENCH_ADI.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ATAX-Cuda.cpp b/src/polybench/POLYBENCH_ATAX-Cuda.cpp index e83dc9590..b14b202e7 100644 --- a/src/polybench/POLYBENCH_ATAX-Cuda.cpp +++ b/src/polybench/POLYBENCH_ATAX-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ATAX-Hip.cpp b/src/polybench/POLYBENCH_ATAX-Hip.cpp index bbed90a83..b924d6d73 100644 --- a/src/polybench/POLYBENCH_ATAX-Hip.cpp +++ b/src/polybench/POLYBENCH_ATAX-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ATAX-OMP.cpp b/src/polybench/POLYBENCH_ATAX-OMP.cpp index a3880cc8f..88ff02d23 100644 --- a/src/polybench/POLYBENCH_ATAX-OMP.cpp +++ b/src/polybench/POLYBENCH_ATAX-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -106,6 +106,8 @@ void POLYBENCH_ATAX::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_ATAX_VIEWS_RAJA; auto poly_atax_lam1 = [=] (Index_type i, Real_type &dot) { @@ -152,10 +154,11 @@ void POLYBENCH_ATAX::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_atax_lam1, poly_atax_lam2, @@ -163,10 +166,11 @@ void POLYBENCH_ATAX::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_atax_lam4, poly_atax_lam5, diff --git a/src/polybench/POLYBENCH_ATAX-OMPTarget.cpp b/src/polybench/POLYBENCH_ATAX-OMPTarget.cpp index ce7ba4843..00718869f 100644 --- a/src/polybench/POLYBENCH_ATAX-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_ATAX-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -62,6 +62,8 @@ void POLYBENCH_ATAX::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSE } else if (vid == RAJA_OpenMPTarget) { + auto res{getOmpTargetResource()}; + POLYBENCH_ATAX_VIEWS_RAJA; using EXEC_POL1 = @@ -89,10 +91,11 @@ void POLYBENCH_ATAX::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSE startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, [=] (Index_type i, Real_type &dot) { POLYBENCH_ATAX_BODY1_RAJA; @@ -106,10 +109,11 @@ void POLYBENCH_ATAX::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSE ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, [=] (Index_type j, Real_type &dot) { POLYBENCH_ATAX_BODY4_RAJA; diff --git a/src/polybench/POLYBENCH_ATAX-Seq.cpp b/src/polybench/POLYBENCH_ATAX-Seq.cpp index 4791b7018..cf8940035 100644 --- a/src/polybench/POLYBENCH_ATAX-Seq.cpp +++ b/src/polybench/POLYBENCH_ATAX-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -101,6 +101,8 @@ void POLYBENCH_ATAX::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_ATAX_VIEWS_RAJA; auto poly_atax_lam1 = [=] (Index_type i, Real_type &dot) { @@ -148,10 +150,11 @@ void POLYBENCH_ATAX::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_atax_lam1, poly_atax_lam2, @@ -159,10 +162,11 @@ void POLYBENCH_ATAX::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_atax_lam4, poly_atax_lam5, diff --git a/src/polybench/POLYBENCH_ATAX-Sycl.cpp b/src/polybench/POLYBENCH_ATAX-Sycl.cpp index 110e58cd0..37a9bf3b5 100644 --- a/src/polybench/POLYBENCH_ATAX-Sycl.cpp +++ b/src/polybench/POLYBENCH_ATAX-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_ATAX.cpp b/src/polybench/POLYBENCH_ATAX.cpp index e7cb48875..36fba4bfe 100644 --- a/src/polybench/POLYBENCH_ATAX.cpp +++ b/src/polybench/POLYBENCH_ATAX.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -48,6 +48,8 @@ POLYBENCH_ATAX::POLYBENCH_ATAX(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_ATAX.hpp b/src/polybench/POLYBENCH_ATAX.hpp index e6d43bfbc..bd896bf08 100644 --- a/src/polybench/POLYBENCH_ATAX.hpp +++ b/src/polybench/POLYBENCH_ATAX.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FDTD_2D-Cuda.cpp b/src/polybench/POLYBENCH_FDTD_2D-Cuda.cpp index b71772a99..7e297ba9e 100644 --- a/src/polybench/POLYBENCH_FDTD_2D-Cuda.cpp +++ b/src/polybench/POLYBENCH_FDTD_2D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FDTD_2D-Hip.cpp b/src/polybench/POLYBENCH_FDTD_2D-Hip.cpp index ddb62d9a5..b1569ea89 100644 --- a/src/polybench/POLYBENCH_FDTD_2D-Hip.cpp +++ b/src/polybench/POLYBENCH_FDTD_2D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FDTD_2D-OMP.cpp b/src/polybench/POLYBENCH_FDTD_2D-OMP.cpp index 6eaf696f3..83df3c2a5 100644 --- a/src/polybench/POLYBENCH_FDTD_2D-OMP.cpp +++ b/src/polybench/POLYBENCH_FDTD_2D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -124,6 +124,8 @@ void POLYBENCH_FDTD_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_FDTD_2D_VIEWS_RAJA; // @@ -160,25 +162,29 @@ void POLYBENCH_FDTD_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A for (t = 0; t < tsteps; ++t) { - RAJA::forall( RAJA::RangeSegment(0, ny), + RAJA::forall( res, + RAJA::RangeSegment(0, ny), poly_fdtd2d_lam1 ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, nx}, RAJA::RangeSegment{0, ny}), + res, poly_fdtd2d_lam2 ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nx}, RAJA::RangeSegment{1, ny}), + res, poly_fdtd2d_lam3 ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nx-1}, RAJA::RangeSegment{0, ny-1}), + res, poly_fdtd2d_lam4 ); diff --git a/src/polybench/POLYBENCH_FDTD_2D-OMPTarget.cpp b/src/polybench/POLYBENCH_FDTD_2D-OMPTarget.cpp index be8c0491e..977553a82 100644 --- a/src/polybench/POLYBENCH_FDTD_2D-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_FDTD_2D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,6 +76,8 @@ void POLYBENCH_FDTD_2D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UN } else if (vid == RAJA_OpenMPTarget) { + auto res{getOmpTargetResource()}; + POLYBENCH_FDTD_2D_VIEWS_RAJA; using EXEC_POL1 = RAJA::omp_target_parallel_for_exec; @@ -93,30 +95,33 @@ void POLYBENCH_FDTD_2D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UN for (t = 0; t < tsteps; ++t) { - RAJA::forall( RAJA::RangeSegment(0, ny), + RAJA::forall( res, RAJA::RangeSegment(0, ny), [=] (Index_type j) { POLYBENCH_FDTD_2D_BODY1_RAJA; }); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, nx}, RAJA::RangeSegment{0, ny}), + res, [=] (Index_type i, Index_type j) { POLYBENCH_FDTD_2D_BODY2_RAJA; } ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nx}, RAJA::RangeSegment{1, ny}), + res, [=] (Index_type i, Index_type j) { POLYBENCH_FDTD_2D_BODY3_RAJA; } ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nx-1}, RAJA::RangeSegment{0, ny-1}), + res, [=] (Index_type i, Index_type j) { POLYBENCH_FDTD_2D_BODY4_RAJA; } diff --git a/src/polybench/POLYBENCH_FDTD_2D-Seq.cpp b/src/polybench/POLYBENCH_FDTD_2D-Seq.cpp index ed8e43833..55baac8d4 100644 --- a/src/polybench/POLYBENCH_FDTD_2D-Seq.cpp +++ b/src/polybench/POLYBENCH_FDTD_2D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -115,6 +115,8 @@ void POLYBENCH_FDTD_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_FDTD_2D_VIEWS_RAJA; // @@ -151,25 +153,29 @@ void POLYBENCH_FDTD_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( for (t = 0; t < tsteps; ++t) { - RAJA::forall( RAJA::RangeSegment(0, ny), + RAJA::forall(res, + RAJA::RangeSegment(0, ny), poly_fdtd2d_lam1 ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{1, nx}, RAJA::RangeSegment{0, ny}), + res, poly_fdtd2d_lam2 ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nx}, RAJA::RangeSegment{1, ny}), + res, poly_fdtd2d_lam3 ); - RAJA::kernel( + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{0, nx-1}, RAJA::RangeSegment{0, ny-1}), + res, poly_fdtd2d_lam4 ); diff --git a/src/polybench/POLYBENCH_FDTD_2D-Sycl.cpp b/src/polybench/POLYBENCH_FDTD_2D-Sycl.cpp index b409b7569..c81cd184f 100644 --- a/src/polybench/POLYBENCH_FDTD_2D-Sycl.cpp +++ b/src/polybench/POLYBENCH_FDTD_2D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FDTD_2D.cpp b/src/polybench/POLYBENCH_FDTD_2D.cpp index 7f87fd3ef..7315ba2a0 100644 --- a/src/polybench/POLYBENCH_FDTD_2D.cpp +++ b/src/polybench/POLYBENCH_FDTD_2D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -71,6 +71,8 @@ POLYBENCH_FDTD_2D::POLYBENCH_FDTD_2D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_FDTD_2D.hpp b/src/polybench/POLYBENCH_FDTD_2D.hpp index 685c4cf40..bf7157549 100644 --- a/src/polybench/POLYBENCH_FDTD_2D.hpp +++ b/src/polybench/POLYBENCH_FDTD_2D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Cuda.cpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Cuda.cpp index 5edb43b97..02f08e768 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Cuda.cpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Hip.cpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Hip.cpp index ec408396a..973fe074f 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Hip.cpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMP.cpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMP.cpp index 8aab52a55..879ec7388 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMP.cpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -89,6 +89,8 @@ void POLYBENCH_FLOYD_WARSHALL::runOpenMPVariant(VariantID vid, size_t RAJAPERF_U case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_FLOYD_WARSHALL_VIEWS_RAJA; auto poly_floydwarshall_lam = [=](Index_type k, Index_type i, @@ -122,9 +124,11 @@ void POLYBENCH_FLOYD_WARSHALL::runOpenMPVariant(VariantID vid, size_t RAJAPERF_U startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{0, N}, - RAJA::RangeSegment{0, N}, - RAJA::RangeSegment{0, N}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{0, N}, + RAJA::RangeSegment{0, N}, + RAJA::RangeSegment{0, N}), + res, poly_floydwarshall_lam ); diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMPTarget.cpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMPTarget.cpp index f3af4a088..efefc9408 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -49,6 +49,8 @@ void POLYBENCH_FLOYD_WARSHALL::runOpenMPTargetVariant(VariantID vid, size_t RAJA } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + POLYBENCH_FLOYD_WARSHALL_VIEWS_RAJA; using EXEC_POL = @@ -64,9 +66,10 @@ void POLYBENCH_FLOYD_WARSHALL::runOpenMPTargetVariant(VariantID vid, size_t RAJA startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{0, N}, - RAJA::RangeSegment{0, N}, - RAJA::RangeSegment{0, N}), + RAJA::kernel_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, + RAJA::RangeSegment{0, N}, + RAJA::RangeSegment{0, N}), + res, [=] (Index_type k, Index_type i, Index_type j) { POLYBENCH_FLOYD_WARSHALL_BODY_RAJA; } diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Seq.cpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Seq.cpp index 8b088db8e..f2d3cfe62 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Seq.cpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,6 +73,8 @@ void POLYBENCH_FLOYD_WARSHALL::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUS case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_FLOYD_WARSHALL_VIEWS_RAJA; auto poly_floydwarshall_lam = [=](Index_type k, Index_type i, @@ -94,9 +96,11 @@ void POLYBENCH_FLOYD_WARSHALL::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUS startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{0, N}, - RAJA::RangeSegment{0, N}, - RAJA::RangeSegment{0, N}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{0, N}, + RAJA::RangeSegment{0, N}, + RAJA::RangeSegment{0, N}), + res, poly_floydwarshall_lam ); diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Sycl.cpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Sycl.cpp index 415470801..aad5f3ed5 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL-Sycl.cpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL.cpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL.cpp index 149ae87aa..2dc790724 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL.cpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -42,6 +42,8 @@ POLYBENCH_FLOYD_WARSHALL::POLYBENCH_FLOYD_WARSHALL(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N_to_the_three_halves); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_FLOYD_WARSHALL.hpp b/src/polybench/POLYBENCH_FLOYD_WARSHALL.hpp index 618f6e0f6..a6c1e9133 100644 --- a/src/polybench/POLYBENCH_FLOYD_WARSHALL.hpp +++ b/src/polybench/POLYBENCH_FLOYD_WARSHALL.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMM-Cuda.cpp b/src/polybench/POLYBENCH_GEMM-Cuda.cpp index 2307900dd..18145632f 100644 --- a/src/polybench/POLYBENCH_GEMM-Cuda.cpp +++ b/src/polybench/POLYBENCH_GEMM-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMM-Hip.cpp b/src/polybench/POLYBENCH_GEMM-Hip.cpp index f92beaed0..670468535 100644 --- a/src/polybench/POLYBENCH_GEMM-Hip.cpp +++ b/src/polybench/POLYBENCH_GEMM-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMM-OMP.cpp b/src/polybench/POLYBENCH_GEMM-OMP.cpp index 444af4df7..bc977b88e 100644 --- a/src/polybench/POLYBENCH_GEMM-OMP.cpp +++ b/src/polybench/POLYBENCH_GEMM-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -89,6 +89,8 @@ void POLYBENCH_GEMM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_GEMM_VIEWS_RAJA; auto poly_gemm_lam1 = [=](Real_type& dot) { @@ -122,12 +124,13 @@ void POLYBENCH_GEMM::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple( RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk} ), RAJA::tuple{0.0}, // variable for dot + res, poly_gemm_lam1, poly_gemm_lam2, diff --git a/src/polybench/POLYBENCH_GEMM-OMPTarget.cpp b/src/polybench/POLYBENCH_GEMM-OMPTarget.cpp index a660ec35e..65f99928a 100644 --- a/src/polybench/POLYBENCH_GEMM-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_GEMM-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,6 +50,8 @@ void POLYBENCH_GEMM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSE } else if (vid == RAJA_OpenMPTarget) { + auto res{getOmpTargetResource()}; + POLYBENCH_GEMM_VIEWS_RAJA; using EXEC_POL = @@ -68,12 +70,13 @@ void POLYBENCH_GEMM::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSE startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple( RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk} ), RAJA::tuple{0.0}, // variable for dot + res, [=] (Real_type& dot) { POLYBENCH_GEMM_BODY1_RAJA; diff --git a/src/polybench/POLYBENCH_GEMM-Seq.cpp b/src/polybench/POLYBENCH_GEMM-Seq.cpp index 1aaaab119..54ee3378e 100644 --- a/src/polybench/POLYBENCH_GEMM-Seq.cpp +++ b/src/polybench/POLYBENCH_GEMM-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -86,6 +86,8 @@ void POLYBENCH_GEMM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_GEMM_VIEWS_RAJA; auto poly_gemm_lam1 = [=](Real_type& dot) { @@ -120,12 +122,13 @@ void POLYBENCH_GEMM::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple( RAJA::RangeSegment{0, ni}, RAJA::RangeSegment{0, nj}, RAJA::RangeSegment{0, nk} ), RAJA::tuple{0.0}, // variable for dot + res, poly_gemm_lam1, poly_gemm_lam2, diff --git a/src/polybench/POLYBENCH_GEMM-Sycl.cpp b/src/polybench/POLYBENCH_GEMM-Sycl.cpp index 2f4fc09d3..c24c7f7d1 100644 --- a/src/polybench/POLYBENCH_GEMM-Sycl.cpp +++ b/src/polybench/POLYBENCH_GEMM-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMM.cpp b/src/polybench/POLYBENCH_GEMM.cpp index 48769b42f..b97eeda06 100644 --- a/src/polybench/POLYBENCH_GEMM.cpp +++ b/src/polybench/POLYBENCH_GEMM.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -51,6 +51,8 @@ POLYBENCH_GEMM::POLYBENCH_GEMM(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N_to_the_three_halves); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_GEMM.hpp b/src/polybench/POLYBENCH_GEMM.hpp index 14c590596..8bdd64ab9 100644 --- a/src/polybench/POLYBENCH_GEMM.hpp +++ b/src/polybench/POLYBENCH_GEMM.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMVER-Cuda.cpp b/src/polybench/POLYBENCH_GEMVER-Cuda.cpp index d5119ede5..fee8b69d2 100644 --- a/src/polybench/POLYBENCH_GEMVER-Cuda.cpp +++ b/src/polybench/POLYBENCH_GEMVER-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMVER-Hip.cpp b/src/polybench/POLYBENCH_GEMVER-Hip.cpp index f51e15d42..03d63938b 100644 --- a/src/polybench/POLYBENCH_GEMVER-Hip.cpp +++ b/src/polybench/POLYBENCH_GEMVER-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMVER-OMP.cpp b/src/polybench/POLYBENCH_GEMVER-OMP.cpp index 5af84061d..64b2180fa 100644 --- a/src/polybench/POLYBENCH_GEMVER-OMP.cpp +++ b/src/polybench/POLYBENCH_GEMVER-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -135,6 +135,8 @@ void POLYBENCH_GEMVER::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_AR case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_GEMVER_VIEWS_RAJA; auto poly_gemver_lam1 = [=] (Index_type i, Index_type j) { @@ -187,29 +189,34 @@ void POLYBENCH_GEMVER::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_AR startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{0, n}, - RAJA::RangeSegment{0, n}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{0, n}, + RAJA::RangeSegment{0, n}), + res, poly_gemver_lam1 ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, n}, RAJA::RangeSegment{0, n}), RAJA::tuple{0.0}, + res, poly_gemver_lam2, poly_gemver_lam3, poly_gemver_lam4 ); - RAJA::forall (RAJA::RangeSegment{0, n}, + RAJA::forall( res, + RAJA::RangeSegment{0, n}, poly_gemver_lam5 ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, n}, RAJA::RangeSegment{0, n}), RAJA::tuple{0.0}, + res, poly_gemver_lam6, poly_gemver_lam7, diff --git a/src/polybench/POLYBENCH_GEMVER-OMPTarget.cpp b/src/polybench/POLYBENCH_GEMVER-OMPTarget.cpp index 29f487d73..c6c9a73a2 100644 --- a/src/polybench/POLYBENCH_GEMVER-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_GEMVER-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,6 +76,8 @@ void POLYBENCH_GEMVER::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNU } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + POLYBENCH_GEMVER_VIEWS_RAJA; using EXEC_POL1 = @@ -102,17 +104,20 @@ void POLYBENCH_GEMVER::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNU startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{0, n}, - RAJA::RangeSegment{0, n}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{0, n}, + RAJA::RangeSegment{0, n}), + res, [=] (Index_type i, Index_type j) { POLYBENCH_GEMVER_BODY1_RAJA; } ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, n}, RAJA::RangeSegment{0, n}), RAJA::tuple{0.0}, + res, [=] (Index_type /* i */, Real_type &dot) { POLYBENCH_GEMVER_BODY2_RAJA; @@ -125,16 +130,17 @@ void POLYBENCH_GEMVER::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNU } ); - RAJA::forall (RAJA::RangeSegment{0, n}, + RAJA::forall (res, RAJA::RangeSegment{0, n}, [=] (Index_type i) { POLYBENCH_GEMVER_BODY5_RAJA; } ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, n}, RAJA::RangeSegment{0, n}), RAJA::tuple{0.0}, + res, [=] (Index_type i, Real_type &dot) { POLYBENCH_GEMVER_BODY6_RAJA; diff --git a/src/polybench/POLYBENCH_GEMVER-Seq.cpp b/src/polybench/POLYBENCH_GEMVER-Seq.cpp index c1524a2ef..684805214 100644 --- a/src/polybench/POLYBENCH_GEMVER-Seq.cpp +++ b/src/polybench/POLYBENCH_GEMVER-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -126,6 +126,8 @@ void POLYBENCH_GEMVER::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_GEMVER_VIEWS_RAJA; auto poly_gemver_lam1 = [=] (Index_type i, Index_type j) { @@ -178,29 +180,34 @@ void POLYBENCH_GEMVER::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{0, n}, - RAJA::RangeSegment{0, n}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{0, n}, + RAJA::RangeSegment{0, n}), + res, poly_gemver_lam1 ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, n}, RAJA::RangeSegment{0, n}), RAJA::tuple{0.0}, + res, poly_gemver_lam2, poly_gemver_lam3, poly_gemver_lam4 ); - RAJA::forall (RAJA::RangeSegment{0, n}, + RAJA::forall(res, + RAJA::RangeSegment{0, n}, poly_gemver_lam5 ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, n}, RAJA::RangeSegment{0, n}), RAJA::tuple{0.0}, + res, poly_gemver_lam6, poly_gemver_lam7, diff --git a/src/polybench/POLYBENCH_GEMVER-Sycl.cpp b/src/polybench/POLYBENCH_GEMVER-Sycl.cpp index 1242de063..363fb6373 100644 --- a/src/polybench/POLYBENCH_GEMVER-Sycl.cpp +++ b/src/polybench/POLYBENCH_GEMVER-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GEMVER.cpp b/src/polybench/POLYBENCH_GEMVER.cpp index e0db7f361..4a1e2096a 100644 --- a/src/polybench/POLYBENCH_GEMVER.cpp +++ b/src/polybench/POLYBENCH_GEMVER.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -66,6 +66,8 @@ POLYBENCH_GEMVER::POLYBENCH_GEMVER(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setUsesFeature(Kernel); diff --git a/src/polybench/POLYBENCH_GEMVER.hpp b/src/polybench/POLYBENCH_GEMVER.hpp index ef5ad5a8a..ba82900da 100644 --- a/src/polybench/POLYBENCH_GEMVER.hpp +++ b/src/polybench/POLYBENCH_GEMVER.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GESUMMV-Cuda.cpp b/src/polybench/POLYBENCH_GESUMMV-Cuda.cpp index 24ed43947..7d7cffd58 100644 --- a/src/polybench/POLYBENCH_GESUMMV-Cuda.cpp +++ b/src/polybench/POLYBENCH_GESUMMV-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GESUMMV-Hip.cpp b/src/polybench/POLYBENCH_GESUMMV-Hip.cpp index 5a156b799..6ec19b94b 100644 --- a/src/polybench/POLYBENCH_GESUMMV-Hip.cpp +++ b/src/polybench/POLYBENCH_GESUMMV-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GESUMMV-OMP.cpp b/src/polybench/POLYBENCH_GESUMMV-OMP.cpp index bc59ada36..62b520ae8 100644 --- a/src/polybench/POLYBENCH_GESUMMV-OMP.cpp +++ b/src/polybench/POLYBENCH_GESUMMV-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -80,6 +80,8 @@ void POLYBENCH_GESUMMV::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_GESUMMV_VIEWS_RAJA; auto poly_gesummv_lam1 = [=](Real_type& tmpdot, Real_type& ydot) { @@ -108,11 +110,12 @@ void POLYBENCH_GESUMMV::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple( RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N} ), RAJA::make_tuple(static_cast(0.0), static_cast(0.0)), + res, poly_gesummv_lam1, poly_gesummv_lam2, diff --git a/src/polybench/POLYBENCH_GESUMMV-OMPTarget.cpp b/src/polybench/POLYBENCH_GESUMMV-OMPTarget.cpp index 8f572c16a..e2111e2c3 100644 --- a/src/polybench/POLYBENCH_GESUMMV-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_GESUMMV-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -52,6 +52,8 @@ void POLYBENCH_GESUMMV::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UN } else if (vid == RAJA_OpenMPTarget) { + auto res{getOmpTargetResource()}; + POLYBENCH_GESUMMV_VIEWS_RAJA; using EXEC_POL = @@ -68,11 +70,12 @@ void POLYBENCH_GESUMMV::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UN startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple( RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N} ), RAJA::make_tuple(static_cast(0.0), static_cast(0.0)), + res, [=] (Real_type& tmpdot, Real_type& ydot) { diff --git a/src/polybench/POLYBENCH_GESUMMV-Seq.cpp b/src/polybench/POLYBENCH_GESUMMV-Seq.cpp index 34b70708f..95525de22 100644 --- a/src/polybench/POLYBENCH_GESUMMV-Seq.cpp +++ b/src/polybench/POLYBENCH_GESUMMV-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,6 +76,8 @@ void POLYBENCH_GESUMMV::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( } case RAJA_Seq : { + + auto res{getHostResource()}; POLYBENCH_GESUMMV_VIEWS_RAJA; @@ -105,11 +107,12 @@ void POLYBENCH_GESUMMV::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple( RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N} ), RAJA::make_tuple(static_cast(0.0), static_cast(0.0)), + res, poly_gesummv_lam1, poly_gesummv_lam2, diff --git a/src/polybench/POLYBENCH_GESUMMV-Sycl.cpp b/src/polybench/POLYBENCH_GESUMMV-Sycl.cpp index 83197e995..746e8e857 100644 --- a/src/polybench/POLYBENCH_GESUMMV-Sycl.cpp +++ b/src/polybench/POLYBENCH_GESUMMV-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_GESUMMV.cpp b/src/polybench/POLYBENCH_GESUMMV.cpp index 7764c4036..7ba2fd8fc 100644 --- a/src/polybench/POLYBENCH_GESUMMV.cpp +++ b/src/polybench/POLYBENCH_GESUMMV.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -43,6 +43,8 @@ POLYBENCH_GESUMMV::POLYBENCH_GESUMMV(const RunParams& params) setFLOPsPerRep((4 * m_N + 3 ) * m_N ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_GESUMMV.hpp b/src/polybench/POLYBENCH_GESUMMV.hpp index 3d80155ed..816869351 100644 --- a/src/polybench/POLYBENCH_GESUMMV.hpp +++ b/src/polybench/POLYBENCH_GESUMMV.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_HEAT_3D-Cuda.cpp b/src/polybench/POLYBENCH_HEAT_3D-Cuda.cpp index 70fa00a76..282c863b9 100644 --- a/src/polybench/POLYBENCH_HEAT_3D-Cuda.cpp +++ b/src/polybench/POLYBENCH_HEAT_3D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_HEAT_3D-Hip.cpp b/src/polybench/POLYBENCH_HEAT_3D-Hip.cpp index 6a2fb3329..c34a7208c 100644 --- a/src/polybench/POLYBENCH_HEAT_3D-Hip.cpp +++ b/src/polybench/POLYBENCH_HEAT_3D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_HEAT_3D-OMP.cpp b/src/polybench/POLYBENCH_HEAT_3D-OMP.cpp index ba80f5022..e1079ad61 100644 --- a/src/polybench/POLYBENCH_HEAT_3D-OMP.cpp +++ b/src/polybench/POLYBENCH_HEAT_3D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -106,6 +106,8 @@ void POLYBENCH_HEAT_3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_HEAT_3D_VIEWS_RAJA; using EXEC_POL = @@ -123,17 +125,21 @@ void POLYBENCH_HEAT_3D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_A for (Index_type t = 0; t < tsteps; ++t) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, [=](Index_type i, Index_type j, Index_type k) { POLYBENCH_HEAT_3D_BODY1_RAJA; } ); - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, [=](Index_type i, Index_type j, Index_type k) { POLYBENCH_HEAT_3D_BODY2_RAJA; } diff --git a/src/polybench/POLYBENCH_HEAT_3D-OMPTarget.cpp b/src/polybench/POLYBENCH_HEAT_3D-OMPTarget.cpp index 1c3999279..146759113 100644 --- a/src/polybench/POLYBENCH_HEAT_3D-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_HEAT_3D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -61,6 +61,8 @@ void POLYBENCH_HEAT_3D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UN } else if (vid == RAJA_OpenMPTarget) { + auto res{getOmpTargetResource()}; + POLYBENCH_HEAT_3D_VIEWS_RAJA; using EXEC_POL = @@ -76,17 +78,21 @@ void POLYBENCH_HEAT_3D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UN for (Index_type t = 0; t < tsteps; ++t) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, [=] (Index_type i, Index_type j, Index_type k) { POLYBENCH_HEAT_3D_BODY1_RAJA; } ); - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, [=] (Index_type i, Index_type j, Index_type k) { POLYBENCH_HEAT_3D_BODY2_RAJA; } diff --git a/src/polybench/POLYBENCH_HEAT_3D-Seq.cpp b/src/polybench/POLYBENCH_HEAT_3D-Seq.cpp index 115661cc7..208aa8a6d 100644 --- a/src/polybench/POLYBENCH_HEAT_3D-Seq.cpp +++ b/src/polybench/POLYBENCH_HEAT_3D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -101,6 +101,8 @@ void POLYBENCH_HEAT_3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_HEAT_3D_VIEWS_RAJA; using EXEC_POL = @@ -119,9 +121,11 @@ void POLYBENCH_HEAT_3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( for (Index_type t = 0; t < tsteps; ++t) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, [=](Index_type i, Index_type j, Index_type k) { POLYBENCH_HEAT_3D_BODY1_RAJA; @@ -129,9 +133,11 @@ void POLYBENCH_HEAT_3D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG( ); - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, [=](Index_type i, Index_type j, Index_type k) { POLYBENCH_HEAT_3D_BODY2_RAJA; diff --git a/src/polybench/POLYBENCH_HEAT_3D-Sycl.cpp b/src/polybench/POLYBENCH_HEAT_3D-Sycl.cpp index 27341d447..dabe8ec89 100644 --- a/src/polybench/POLYBENCH_HEAT_3D-Sycl.cpp +++ b/src/polybench/POLYBENCH_HEAT_3D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_HEAT_3D.cpp b/src/polybench/POLYBENCH_HEAT_3D.cpp index 1e4272534..a55f5daf3 100644 --- a/src/polybench/POLYBENCH_HEAT_3D.cpp +++ b/src/polybench/POLYBENCH_HEAT_3D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -49,6 +49,8 @@ POLYBENCH_HEAT_3D::POLYBENCH_HEAT_3D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_HEAT_3D.hpp b/src/polybench/POLYBENCH_HEAT_3D.hpp index 590d7b326..f77c6fda4 100644 --- a/src/polybench/POLYBENCH_HEAT_3D.hpp +++ b/src/polybench/POLYBENCH_HEAT_3D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_1D-Cuda.cpp b/src/polybench/POLYBENCH_JACOBI_1D-Cuda.cpp index 570792bbd..90e3780fa 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D-Cuda.cpp +++ b/src/polybench/POLYBENCH_JACOBI_1D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_1D-Hip.cpp b/src/polybench/POLYBENCH_JACOBI_1D-Hip.cpp index d77497459..c4ac68a2a 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D-Hip.cpp +++ b/src/polybench/POLYBENCH_JACOBI_1D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_1D-OMP.cpp b/src/polybench/POLYBENCH_JACOBI_1D-OMP.cpp index 0c7cbae57..8b2c147ab 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D-OMP.cpp +++ b/src/polybench/POLYBENCH_JACOBI_1D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -86,16 +86,20 @@ void POLYBENCH_JACOBI_1D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { for (Index_type t = 0; t < tsteps; ++t) { - RAJA::forall (RAJA::RangeSegment{1, N-1}, + RAJA::forall( res, + RAJA::RangeSegment{1, N-1}, poly_jacobi1d_lam1 ); - RAJA::forall (RAJA::RangeSegment{1, N-1}, + RAJA::forall( res, + RAJA::RangeSegment{1, N-1}, poly_jacobi1d_lam2 ); diff --git a/src/polybench/POLYBENCH_JACOBI_1D-OMPTarget.cpp b/src/polybench/POLYBENCH_JACOBI_1D-OMPTarget.cpp index 35089be71..af3f3d69b 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_JACOBI_1D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -57,17 +57,19 @@ void POLYBENCH_JACOBI_1D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_ } else if (vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { for (Index_type t = 0; t < tsteps; ++t) { - RAJA::forall> ( + RAJA::forall> ( res, RAJA::RangeSegment{1, N-1}, [=] (Index_type i) { POLYBENCH_JACOBI_1D_BODY1; }); - RAJA::forall> ( + RAJA::forall> ( res, RAJA::RangeSegment{1, N-1}, [=] (Index_type i) { POLYBENCH_JACOBI_1D_BODY2; }); diff --git a/src/polybench/POLYBENCH_JACOBI_1D-Seq.cpp b/src/polybench/POLYBENCH_JACOBI_1D-Seq.cpp index 5f3549b41..9a2418e72 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D-Seq.cpp +++ b/src/polybench/POLYBENCH_JACOBI_1D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -84,16 +84,20 @@ void POLYBENCH_JACOBI_1D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_AR case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { for (Index_type t = 0; t < tsteps; ++t) { - RAJA::forall ( RAJA::RangeSegment{1, N-1}, + RAJA::forall ( res, + RAJA::RangeSegment{1, N-1}, poly_jacobi1d_lam1 ); - RAJA::forall ( RAJA::RangeSegment{1, N-1}, + RAJA::forall ( res, + RAJA::RangeSegment{1, N-1}, poly_jacobi1d_lam2 ); diff --git a/src/polybench/POLYBENCH_JACOBI_1D-Sycl.cpp b/src/polybench/POLYBENCH_JACOBI_1D-Sycl.cpp index 8a13f6567..3f473a80b 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D-Sycl.cpp +++ b/src/polybench/POLYBENCH_JACOBI_1D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_1D.cpp b/src/polybench/POLYBENCH_JACOBI_1D.cpp index 59a2520b5..bfcd158c1 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D.cpp +++ b/src/polybench/POLYBENCH_JACOBI_1D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -48,6 +48,8 @@ POLYBENCH_JACOBI_1D::POLYBENCH_JACOBI_1D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_JACOBI_1D.hpp b/src/polybench/POLYBENCH_JACOBI_1D.hpp index f128e5947..5e8775605 100644 --- a/src/polybench/POLYBENCH_JACOBI_1D.hpp +++ b/src/polybench/POLYBENCH_JACOBI_1D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_2D-Cuda.cpp b/src/polybench/POLYBENCH_JACOBI_2D-Cuda.cpp index 2620d0654..d76d15043 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D-Cuda.cpp +++ b/src/polybench/POLYBENCH_JACOBI_2D-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_2D-Hip.cpp b/src/polybench/POLYBENCH_JACOBI_2D-Hip.cpp index 8aac79440..bd610b9a5 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D-Hip.cpp +++ b/src/polybench/POLYBENCH_JACOBI_2D-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_2D-OMP.cpp b/src/polybench/POLYBENCH_JACOBI_2D-OMP.cpp index d3d7b0471..1d7fa4b09 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D-OMP.cpp +++ b/src/polybench/POLYBENCH_JACOBI_2D-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -96,6 +96,8 @@ void POLYBENCH_JACOBI_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_JACOBI_2D_VIEWS_RAJA; auto poly_jacobi2d_lam1 = [=](Index_type i, Index_type j) { @@ -124,8 +126,10 @@ void POLYBENCH_JACOBI_2D::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED for (Index_type t = 0; t < tsteps; ++t) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, poly_jacobi2d_lam1, poly_jacobi2d_lam2 diff --git a/src/polybench/POLYBENCH_JACOBI_2D-OMPTarget.cpp b/src/polybench/POLYBENCH_JACOBI_2D-OMPTarget.cpp index e711660cc..03fc148cd 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_JACOBI_2D-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -57,6 +57,8 @@ void POLYBENCH_JACOBI_2D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_ } else if (vid == RAJA_OpenMPTarget) { + auto res{getOmpTargetResource()}; + POLYBENCH_JACOBI_2D_VIEWS_RAJA; using EXEC_POL = @@ -76,8 +78,10 @@ void POLYBENCH_JACOBI_2D::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_ for (Index_type t = 0; t < tsteps; ++t) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, [=] (Index_type i, Index_type j) { POLYBENCH_JACOBI_2D_BODY1_RAJA; }, diff --git a/src/polybench/POLYBENCH_JACOBI_2D-Seq.cpp b/src/polybench/POLYBENCH_JACOBI_2D-Seq.cpp index 18cc343cd..2f606624d 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D-Seq.cpp +++ b/src/polybench/POLYBENCH_JACOBI_2D-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -90,6 +90,8 @@ void POLYBENCH_JACOBI_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_AR } case RAJA_Seq : { + + auto res{getHostResource()}; POLYBENCH_JACOBI_2D_VIEWS_RAJA; @@ -119,8 +121,10 @@ void POLYBENCH_JACOBI_2D::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_AR for (Index_type t = 0; t < tsteps; ++t) { - RAJA::kernel( RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, - RAJA::RangeSegment{1, N-1}), + RAJA::kernel_resource( + RAJA::make_tuple(RAJA::RangeSegment{1, N-1}, + RAJA::RangeSegment{1, N-1}), + res, poly_jacobi2d_lam1, poly_jacobi2d_lam2 diff --git a/src/polybench/POLYBENCH_JACOBI_2D-Sycl.cpp b/src/polybench/POLYBENCH_JACOBI_2D-Sycl.cpp index ff6dab08b..1aa5be653 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D-Sycl.cpp +++ b/src/polybench/POLYBENCH_JACOBI_2D-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_JACOBI_2D.cpp b/src/polybench/POLYBENCH_JACOBI_2D.cpp index a3b077a1f..576015652 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D.cpp +++ b/src/polybench/POLYBENCH_JACOBI_2D.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -48,6 +48,8 @@ POLYBENCH_JACOBI_2D::POLYBENCH_JACOBI_2D(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_JACOBI_2D.hpp b/src/polybench/POLYBENCH_JACOBI_2D.hpp index df170306e..ddd15ee94 100644 --- a/src/polybench/POLYBENCH_JACOBI_2D.hpp +++ b/src/polybench/POLYBENCH_JACOBI_2D.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_MVT-Cuda.cpp b/src/polybench/POLYBENCH_MVT-Cuda.cpp index 83ea50512..3f3d096fb 100644 --- a/src/polybench/POLYBENCH_MVT-Cuda.cpp +++ b/src/polybench/POLYBENCH_MVT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_MVT-Hip.cpp b/src/polybench/POLYBENCH_MVT-Hip.cpp index 636ad234c..5956a421b 100644 --- a/src/polybench/POLYBENCH_MVT-Hip.cpp +++ b/src/polybench/POLYBENCH_MVT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_MVT-OMP.cpp b/src/polybench/POLYBENCH_MVT-OMP.cpp index bb9c8f221..c855092df 100644 --- a/src/polybench/POLYBENCH_MVT-OMP.cpp +++ b/src/polybench/POLYBENCH_MVT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -116,6 +116,8 @@ void POLYBENCH_MVT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t case RAJA_OpenMP : { + auto res{getHostResource()}; + POLYBENCH_MVT_VIEWS_RAJA; auto poly_mvt_lam1 = [=] (Real_type &dot) { @@ -153,10 +155,11 @@ void POLYBENCH_MVT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t RAJA::region( [=]() { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_mvt_lam1, poly_mvt_lam2, @@ -164,10 +167,11 @@ void POLYBENCH_MVT::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(t ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_mvt_lam4, poly_mvt_lam5, diff --git a/src/polybench/POLYBENCH_MVT-OMPTarget.cpp b/src/polybench/POLYBENCH_MVT-OMPTarget.cpp index 5b278628d..bfd9f25dc 100644 --- a/src/polybench/POLYBENCH_MVT-OMPTarget.cpp +++ b/src/polybench/POLYBENCH_MVT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -62,6 +62,8 @@ void POLYBENCH_MVT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED } else if (vid == RAJA_OpenMPTarget) { + auto res{getOmpTargetResource()}; + POLYBENCH_MVT_VIEWS_RAJA; using EXEC_POL = @@ -80,10 +82,11 @@ void POLYBENCH_MVT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED RAJA::region( [=]() { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, [=] (Real_type &dot) { POLYBENCH_MVT_BODY1_RAJA; @@ -97,10 +100,11 @@ void POLYBENCH_MVT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, [=] (Real_type &dot) { POLYBENCH_MVT_BODY4_RAJA; diff --git a/src/polybench/POLYBENCH_MVT-Seq.cpp b/src/polybench/POLYBENCH_MVT-Seq.cpp index efa2ec452..d57f8ab62 100644 --- a/src/polybench/POLYBENCH_MVT-Seq.cpp +++ b/src/polybench/POLYBENCH_MVT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -102,6 +102,8 @@ void POLYBENCH_MVT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune case RAJA_Seq : { + auto res{getHostResource()}; + POLYBENCH_MVT_VIEWS_RAJA; auto poly_mvt_lam1 = [=] (Real_type &dot) { @@ -139,10 +141,11 @@ void POLYBENCH_MVT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune RAJA::region( [=]() { - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_mvt_lam1, poly_mvt_lam2, @@ -150,10 +153,11 @@ void POLYBENCH_MVT::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune ); - RAJA::kernel_param( + RAJA::kernel_param_resource( RAJA::make_tuple(RAJA::RangeSegment{0, N}, RAJA::RangeSegment{0, N}), RAJA::tuple{0.0}, + res, poly_mvt_lam4, poly_mvt_lam5, diff --git a/src/polybench/POLYBENCH_MVT-Sycl.cpp b/src/polybench/POLYBENCH_MVT-Sycl.cpp index c0a3879ad..70a6c0ae6 100644 --- a/src/polybench/POLYBENCH_MVT-Sycl.cpp +++ b/src/polybench/POLYBENCH_MVT-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/polybench/POLYBENCH_MVT.cpp b/src/polybench/POLYBENCH_MVT.cpp index e8da53a0c..5afb343d7 100644 --- a/src/polybench/POLYBENCH_MVT.cpp +++ b/src/polybench/POLYBENCH_MVT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -49,6 +49,8 @@ POLYBENCH_MVT::POLYBENCH_MVT(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature(Kernel); setVariantDefined( Base_Seq ); diff --git a/src/polybench/POLYBENCH_MVT.hpp b/src/polybench/POLYBENCH_MVT.hpp index a54181833..e52586e46 100644 --- a/src/polybench/POLYBENCH_MVT.hpp +++ b/src/polybench/POLYBENCH_MVT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/rajaperf_config.hpp.in b/src/rajaperf_config.hpp.in index 3d2588378..4fbb3bb6a 100644 --- a/src/rajaperf_config.hpp.in +++ b/src/rajaperf_config.hpp.in @@ -9,7 +9,7 @@ */ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream-kokkos/ADD-Kokkos.cpp b/src/stream-kokkos/ADD-Kokkos.cpp index 1a4280cc9..b9ab81301 100644 --- a/src/stream-kokkos/ADD-Kokkos.cpp +++ b/src/stream-kokkos/ADD-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream-kokkos/CMakeLists.txt b/src/stream-kokkos/CMakeLists.txt index 6ba8dbbb6..df4504290 100644 --- a/src/stream-kokkos/CMakeLists.txt +++ b/src/stream-kokkos/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/stream-kokkos/COPY-Kokkos.cpp b/src/stream-kokkos/COPY-Kokkos.cpp index 3312a57fa..e702bd0aa 100644 --- a/src/stream-kokkos/COPY-Kokkos.cpp +++ b/src/stream-kokkos/COPY-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream-kokkos/DOT-Kokkos.cpp b/src/stream-kokkos/DOT-Kokkos.cpp index ff1124068..d8eea6c5f 100644 --- a/src/stream-kokkos/DOT-Kokkos.cpp +++ b/src/stream-kokkos/DOT-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream-kokkos/MUL-Kokkos.cpp b/src/stream-kokkos/MUL-Kokkos.cpp index e1f17be92..78a2c8904 100644 --- a/src/stream-kokkos/MUL-Kokkos.cpp +++ b/src/stream-kokkos/MUL-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream-kokkos/TRIAD-Kokkos.cpp b/src/stream-kokkos/TRIAD-Kokkos.cpp index 2d5465939..6040a9680 100644 --- a/src/stream-kokkos/TRIAD-Kokkos.cpp +++ b/src/stream-kokkos/TRIAD-Kokkos.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/ADD-Cuda.cpp b/src/stream/ADD-Cuda.cpp index 7b79f1b10..8e21ec4d3 100644 --- a/src/stream/ADD-Cuda.cpp +++ b/src/stream/ADD-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/ADD-Hip.cpp b/src/stream/ADD-Hip.cpp index fe470d391..3fba83763 100644 --- a/src/stream/ADD-Hip.cpp +++ b/src/stream/ADD-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/ADD-OMP.cpp b/src/stream/ADD-OMP.cpp index 22f850da3..aa22b9685 100644 --- a/src/stream/ADD-OMP.cpp +++ b/src/stream/ADD-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void ADD::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), add_lam); } diff --git a/src/stream/ADD-OMPTarget.cpp b/src/stream/ADD-OMPTarget.cpp index c1a1480cf..1837216ac 100644 --- a/src/stream/ADD-OMPTarget.cpp +++ b/src/stream/ADD-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,10 +50,12 @@ void ADD::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { ADD_BODY; }); diff --git a/src/stream/ADD-Seq.cpp b/src/stream/ADD-Seq.cpp index 516fe61a6..a7dbe17ae 100644 --- a/src/stream/ADD-Seq.cpp +++ b/src/stream/ADD-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void ADD::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), add_lam); } diff --git a/src/stream/ADD-Sycl.cpp b/src/stream/ADD-Sycl.cpp index 483672cb1..892821cd6 100644 --- a/src/stream/ADD-Sycl.cpp +++ b/src/stream/ADD-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/ADD.cpp b/src/stream/ADD.cpp index 510f39bb8..9078659f1 100644 --- a/src/stream/ADD.cpp +++ b/src/stream/ADD.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ ADD::ADD(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature(Forall); setVariantDefined( Base_Seq ); diff --git a/src/stream/ADD.hpp b/src/stream/ADD.hpp index 7b96dbf9e..761ce64d7 100644 --- a/src/stream/ADD.hpp +++ b/src/stream/ADD.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/CMakeLists.txt b/src/stream/CMakeLists.txt index bb4de4ce5..325724e82 100644 --- a/src/stream/CMakeLists.txt +++ b/src/stream/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/src/stream/COPY-Cuda.cpp b/src/stream/COPY-Cuda.cpp index a45d45a16..f7b00baa6 100644 --- a/src/stream/COPY-Cuda.cpp +++ b/src/stream/COPY-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/COPY-Hip.cpp b/src/stream/COPY-Hip.cpp index f5e19fac0..736cc35e9 100644 --- a/src/stream/COPY-Hip.cpp +++ b/src/stream/COPY-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/COPY-OMP.cpp b/src/stream/COPY-OMP.cpp index 1718ff5ac..99c6d221d 100644 --- a/src/stream/COPY-OMP.cpp +++ b/src/stream/COPY-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void COPY::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), copy_lam); } diff --git a/src/stream/COPY-OMPTarget.cpp b/src/stream/COPY-OMPTarget.cpp index f1dd5017d..33fc2073a 100644 --- a/src/stream/COPY-OMPTarget.cpp +++ b/src/stream/COPY-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,10 +50,12 @@ void COPY::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { COPY_BODY; }); diff --git a/src/stream/COPY-Seq.cpp b/src/stream/COPY-Seq.cpp index 25b897707..95c998997 100644 --- a/src/stream/COPY-Seq.cpp +++ b/src/stream/COPY-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void COPY::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), copy_lam); } diff --git a/src/stream/COPY-Sycl.cpp b/src/stream/COPY-Sycl.cpp index 4f1049a6e..2357eed41 100644 --- a/src/stream/COPY-Sycl.cpp +++ b/src/stream/COPY-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/COPY.cpp b/src/stream/COPY.cpp index 9cfce257a..cfee91918 100644 --- a/src/stream/COPY.cpp +++ b/src/stream/COPY.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ COPY::COPY(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(0); + setComplexity(Complexity::N); + setUsesFeature( Forall ); setVariantDefined( Base_Seq ); diff --git a/src/stream/COPY.hpp b/src/stream/COPY.hpp index 991406624..e24757da9 100644 --- a/src/stream/COPY.hpp +++ b/src/stream/COPY.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/DOT-Cuda.cpp b/src/stream/DOT-Cuda.cpp index 031355a3e..d4f0dad16 100644 --- a/src/stream/DOT-Cuda.cpp +++ b/src/stream/DOT-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -164,7 +164,8 @@ void DOT::runCudaVariantRAJANewReduce(VariantID vid) RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tdot), - [=] __device__ (Index_type i, Real_type& dot) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& dot) { DOT_BODY; } ); diff --git a/src/stream/DOT-Hip.cpp b/src/stream/DOT-Hip.cpp index 0c3c914a9..86a1a39f0 100644 --- a/src/stream/DOT-Hip.cpp +++ b/src/stream/DOT-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -164,7 +164,8 @@ void DOT::runHipVariantRAJANewReduce(VariantID vid) RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tdot), - [=] __device__ (Index_type i, Real_type& dot) { + [=] __device__ (Index_type i, + RAJA::expt::ValOp& dot) { DOT_BODY; } ); diff --git a/src/stream/DOT-OMP.cpp b/src/stream/DOT-OMP.cpp index d7112336a..490ff09df 100644 --- a/src/stream/DOT-OMP.cpp +++ b/src/stream/DOT-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,6 +76,8 @@ void DOT::runOpenMPVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -83,7 +85,7 @@ void DOT::runOpenMPVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum dot(m_dot_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { DOT_BODY; }); @@ -100,10 +102,11 @@ void DOT::runOpenMPVariant(VariantID vid, size_t tune_idx) Real_type tdot = m_dot_init; - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tdot), - [=] (Index_type i, Real_type& dot) { + [=] (Index_type i, + RAJA::expt::ValOp& dot) { DOT_BODY; } ); diff --git a/src/stream/DOT-OMPTarget.cpp b/src/stream/DOT-OMPTarget.cpp index 238f8fbae..5664b2ea4 100644 --- a/src/stream/DOT-OMPTarget.cpp +++ b/src/stream/DOT-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -26,7 +26,7 @@ namespace stream // const size_t threads_per_team = 256; -void DOT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) +void DOT::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) { const Index_type run_reps = getRunReps(); const Index_type ibegin = 0; @@ -60,46 +60,26 @@ void DOT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) case RAJA_OpenMPTarget : { - if (tune_idx == 0) { + auto res{getOmpTargetResource()}; - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { + startTimer(); + for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::ReduceSum dot(m_dot_init); + Real_type tdot = m_dot_init; - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { + RAJA::forall>( res, + RAJA::RangeSegment(ibegin, iend), + RAJA::expt::Reduce(&tdot), + [=] (Index_type i, + RAJA::expt::ValOp& dot) { DOT_BODY; - }); - - m_dot += static_cast(dot.get()); - - } - stopTimer(); - - } else if (tune_idx == 1) { - - startTimer(); - for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - - Real_type tdot = m_dot_init; + } + ); - RAJA::forall>( - RAJA::RangeSegment(ibegin, iend), - RAJA::expt::Reduce(&tdot), - [=] (Index_type i, Real_type& dot) { - DOT_BODY; - } - ); + m_dot += static_cast(tdot); - m_dot += static_cast(tdot); - - } - stopTimer(); - - } else { - getCout() << "\n DOT : Unknown OMP Target tuning index = " << tune_idx << std::endl; } + stopTimer(); break; } @@ -112,14 +92,6 @@ void DOT::runOpenMPTargetVariant(VariantID vid, size_t tune_idx) } -void DOT::setOpenMPTargetTuningDefinitions(VariantID vid) -{ - addVariantTuningName(vid, "default"); - if (vid == RAJA_OpenMPTarget) { - addVariantTuningName(vid, "new"); - } -} - } // end namespace stream } // end namespace rajaperf diff --git a/src/stream/DOT-Seq.cpp b/src/stream/DOT-Seq.cpp index 4d359775f..8e4e253fa 100644 --- a/src/stream/DOT-Seq.cpp +++ b/src/stream/DOT-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,6 +76,8 @@ void DOT::runSeqVariant(VariantID vid, size_t tune_idx) case RAJA_Seq : { + auto res{getHostResource()}; + if (tune_idx == 0) { startTimer(); @@ -83,7 +85,7 @@ void DOT::runSeqVariant(VariantID vid, size_t tune_idx) RAJA::ReduceSum dot(m_dot_init); - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { DOT_BODY; }); @@ -100,9 +102,11 @@ void DOT::runSeqVariant(VariantID vid, size_t tune_idx) Real_type tdot = m_dot_init; - RAJA::forall( RAJA::RangeSegment(ibegin, iend), + RAJA::forall( res, + RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tdot), - [=] (Index_type i, Real_type& dot) { + [=] (Index_type i, + RAJA::expt::ValOp& dot) { DOT_BODY; } ); diff --git a/src/stream/DOT-Sycl.cpp b/src/stream/DOT-Sycl.cpp index 250f0b680..67490b22a 100644 --- a/src/stream/DOT-Sycl.cpp +++ b/src/stream/DOT-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -76,11 +76,13 @@ void DOT::runSyclVariantImpl(VariantID vid) for (RepIndex_type irep = 0; irep < run_reps; ++irep) { Real_type tdot = m_dot_init; + RAJA::forall< RAJA::sycl_exec >( res, RAJA::RangeSegment(ibegin, iend), RAJA::expt::Reduce(&tdot), - [=] (Index_type i, Real_type& dot) { + [=] (Index_type i, + RAJA::expt::ValOp& dot) { DOT_BODY; } ); diff --git a/src/stream/DOT.cpp b/src/stream/DOT.cpp index 5249c8ebd..4af896a88 100644 --- a/src/stream/DOT.cpp +++ b/src/stream/DOT.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -34,6 +34,8 @@ DOT::DOT(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(2 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature( Forall ); setUsesFeature( Reduction ); diff --git a/src/stream/DOT.hpp b/src/stream/DOT.hpp index 2626dbc5e..1229d861e 100644 --- a/src/stream/DOT.hpp +++ b/src/stream/DOT.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -59,7 +59,6 @@ class DOT : public KernelBase void setOpenMPTuningDefinitions(VariantID vid); void setCudaTuningDefinitions(VariantID vid); void setHipTuningDefinitions(VariantID vid); - void setOpenMPTargetTuningDefinitions(VariantID vid); void setSyclTuningDefinitions(VariantID vid); template < size_t block_size, typename MappingHelper > diff --git a/src/stream/MUL-Cuda.cpp b/src/stream/MUL-Cuda.cpp index 55731255b..06e36e0d0 100644 --- a/src/stream/MUL-Cuda.cpp +++ b/src/stream/MUL-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/MUL-Hip.cpp b/src/stream/MUL-Hip.cpp index 0990ac09b..7544e793e 100644 --- a/src/stream/MUL-Hip.cpp +++ b/src/stream/MUL-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -73,7 +73,7 @@ void MUL::runHipVariantImpl(VariantID vid) constexpr size_t shmem = 0; RPlaunchHipKernel( (lambda_hip_forall), + decltype(mul_lambda)>), grid_size, block_size, shmem, res.get_stream(), ibegin, iend, mul_lambda ); diff --git a/src/stream/MUL-OMP.cpp b/src/stream/MUL-OMP.cpp index e5a17864e..d1ed8e2ee 100644 --- a/src/stream/MUL-OMP.cpp +++ b/src/stream/MUL-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void MUL::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), mul_lam); } diff --git a/src/stream/MUL-OMPTarget.cpp b/src/stream/MUL-OMPTarget.cpp index 07edb732f..deddfee72 100644 --- a/src/stream/MUL-OMPTarget.cpp +++ b/src/stream/MUL-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,10 +50,12 @@ void MUL::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_ } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { MUL_BODY; }); diff --git a/src/stream/MUL-Seq.cpp b/src/stream/MUL-Seq.cpp index 8bffdb3ca..97f957bb9 100644 --- a/src/stream/MUL-Seq.cpp +++ b/src/stream/MUL-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void MUL::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), mul_lam); } diff --git a/src/stream/MUL-Sycl.cpp b/src/stream/MUL-Sycl.cpp index 01be5d872..72177e6a4 100644 --- a/src/stream/MUL-Sycl.cpp +++ b/src/stream/MUL-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/MUL.cpp b/src/stream/MUL.cpp index eedea75c7..2c5e2a594 100644 --- a/src/stream/MUL.cpp +++ b/src/stream/MUL.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -33,6 +33,8 @@ MUL::MUL(const RunParams& params) setBytesAtomicModifyWrittenPerRep( 0 ); setFLOPsPerRep(1 * getActualProblemSize()); + setComplexity(Complexity::N); + setUsesFeature( Forall ); setVariantDefined( Base_Seq ); diff --git a/src/stream/MUL.hpp b/src/stream/MUL.hpp index 6edd6381a..1e04b2c53 100644 --- a/src/stream/MUL.hpp +++ b/src/stream/MUL.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/TRIAD-Cuda.cpp b/src/stream/TRIAD-Cuda.cpp index 89f931f6c..82c9015f9 100644 --- a/src/stream/TRIAD-Cuda.cpp +++ b/src/stream/TRIAD-Cuda.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/TRIAD-Hip.cpp b/src/stream/TRIAD-Hip.cpp index aebaa3ec1..e9654d5f0 100644 --- a/src/stream/TRIAD-Hip.cpp +++ b/src/stream/TRIAD-Hip.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/TRIAD-OMP.cpp b/src/stream/TRIAD-OMP.cpp index abbadb240..aaafb09ac 100644 --- a/src/stream/TRIAD-OMP.cpp +++ b/src/stream/TRIAD-OMP.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -68,10 +68,12 @@ void TRIAD::runOpenMPVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx) case RAJA_OpenMP : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), triad_lam); } diff --git a/src/stream/TRIAD-OMPTarget.cpp b/src/stream/TRIAD-OMPTarget.cpp index 5ec18d155..8ee63b737 100644 --- a/src/stream/TRIAD-OMPTarget.cpp +++ b/src/stream/TRIAD-OMPTarget.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,10 +50,12 @@ void TRIAD::runOpenMPTargetVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tun } else if ( vid == RAJA_OpenMPTarget ) { + auto res{getOmpTargetResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall>( + RAJA::forall>( res, RAJA::RangeSegment(ibegin, iend), [=](Index_type i) { TRIAD_BODY; }); diff --git a/src/stream/TRIAD-Seq.cpp b/src/stream/TRIAD-Seq.cpp index 132892f76..32e23bcff 100644 --- a/src/stream/TRIAD-Seq.cpp +++ b/src/stream/TRIAD-Seq.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -67,10 +67,12 @@ void TRIAD::runSeqVariant(VariantID vid, size_t RAJAPERF_UNUSED_ARG(tune_idx)) case RAJA_Seq : { + auto res{getHostResource()}; + startTimer(); for (RepIndex_type irep = 0; irep < run_reps; ++irep) { - RAJA::forall( + RAJA::forall( res, RAJA::RangeSegment(ibegin, iend), triad_lam); } diff --git a/src/stream/TRIAD-Sycl.cpp b/src/stream/TRIAD-Sycl.cpp index c8ecafdf7..5a0b9518e 100644 --- a/src/stream/TRIAD-Sycl.cpp +++ b/src/stream/TRIAD-Sycl.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/src/stream/TRIAD.cpp b/src/stream/TRIAD.cpp index da6386755..395dce001 100644 --- a/src/stream/TRIAD.cpp +++ b/src/stream/TRIAD.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -37,6 +37,8 @@ TRIAD::TRIAD(const RunParams& params) ( static_cast(getDefaultProblemSize()) / getActualProblemSize() ); + setComplexity(Complexity::N); + setUsesFeature( Forall ); setVariantDefined( Base_Seq ); diff --git a/src/stream/TRIAD.hpp b/src/stream/TRIAD.hpp index afb06cd3c..f901314a4 100644 --- a/src/stream/TRIAD.hpp +++ b/src/stream/TRIAD.hpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 88b61bbe5..6697b66b1 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +# Copyright (c) 2017-25, Lawrence Livermore National Security, LLC # and RAJA Performance Suite project contributors. # See the RAJAPerf/LICENSE file for details. # diff --git a/test/test-raja-perf-suite.cpp b/test/test-raja-perf-suite.cpp index 6f36958c0..1ad403a8a 100644 --- a/test/test-raja-perf-suite.cpp +++ b/test/test-raja-perf-suite.cpp @@ -1,5 +1,5 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// -// Copyright (c) 2017-24, Lawrence Livermore National Security, LLC +// Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // @@ -50,12 +50,19 @@ int main( int argc, char** argv ) TEST(ShortSuiteTest, Basic) { + // default checksum tolerance for test pass/fail + rajaperf::Checksum_type chksum_tol = 1e-7; + // Assemble command line args for basic test std::vector< std::string > sargv{}; sargv.emplace_back(std::string("dummy ")); // for executable name sargv.emplace_back(std::string("--checkrun")); +#if defined(RUN_RAJAPERF_SHORT_TEST) + sargv.emplace_back(std::string("1")); +#else sargv.emplace_back(std::string("3")); +#endif sargv.emplace_back(std::string("--show-progress")); sargv.emplace_back(std::string("--disable-warmup")); @@ -66,10 +73,34 @@ TEST(ShortSuiteTest, Basic) sargv.emplace_back(std::string("HALO_PACKING_FUSED")); #endif -#if (defined(RAJA_COMPILER_CLANG) && __clang_major__ == 11) +#if !defined(_WIN32) + +#if defined(RAJA_ENABLE_TARGET_OPENMP) + // checksum tolerance reduced b/c bas omp target variant of JACOBI_1D + // kernel result is off + chksum_tol = 5e-6; + + sargv.emplace_back(std::string("--exclude-kernels")); + sargv.emplace_back(std::string("Comm")); + sargv.emplace_back(std::string("EDGE3D")); + sargv.emplace_back(std::string("MATVEC_3D_STENCIL")); +#else + +#if ( (defined(RAJA_COMPILER_CLANG) && __clang_major__ == 11) || \ + defined(RUN_RAJAPERF_SHORT_TEST) ) sargv.emplace_back(std::string("--exclude-kernels")); +#if (defined(RAJA_COMPILER_CLANG) && __clang_major__ == 11) sargv.emplace_back(std::string("FIRST_MIN")); #endif +#if defined(RUN_RAJAPERF_SHORT_TEST) + sargv.emplace_back(std::string("Polybench")); +#endif +#endif + +#endif // else + +#endif // !defined(_WIN32) + char *unit_test = getenv("RAJA_PERFSUITE_UNIT_TEST"); if (unit_test != NULL) { @@ -149,7 +180,7 @@ TEST(ShortSuiteTest, Basic) << kernel->getVariantTuningName(vid, tune_idx) << std::endl; EXPECT_GT(rtime, 0.0); - EXPECT_LT(cksum_diff, 1e-7); + EXPECT_LT(cksum_diff, chksum_tol); } } diff --git a/tpl/RAJA b/tpl/RAJA index 378199aac..6e36a9438 160000 --- a/tpl/RAJA +++ b/tpl/RAJA @@ -1 +1 @@ -Subproject commit 378199aac342ee21c2ddfbcbb48413bd1dfac612 +Subproject commit 6e36a94380adbe88fed11a3213fc08461428ece0 diff --git a/tpl/kokkos b/tpl/kokkos index 2834f94af..1a0c2ff6d 160000 --- a/tpl/kokkos +++ b/tpl/kokkos @@ -1 +1 @@ -Subproject commit 2834f94af9b01debf67c1aaa3f0eb0c903d72c8d +Subproject commit 1a0c2ff6daf1068c65529ec04c2c046177847869